Browse Source

Update draft support.

Must do:
- script that check for draft and move them to published if date time is ok
- implement date time picker in edit post
pull/51/head
BlackCodec 11 years ago
parent
commit
6a19bb0068
3 changed files with 10 additions and 5 deletions
  1. +1
    -1
      system/admin/views/no-posts.html.php
  2. +1
    -1
      system/admin/views/user-posts.html.php
  3. +8
    -3
      system/htmly.php

+ 1
- 1
system/admin/views/no-posts.html.php View File

@ -1 +1 @@
<h1>No posts found!</h1>
<h1>No <?php echo ($draft)?'drafts':'posts';?> found!</h1>

+ 1
- 1
system/admin/views/user-posts.html.php View File

@ -34,4 +34,4 @@
<?php endif;?>
</div>
<?php endif;?>
<?php } else { echo 'No posts found!'; }?>
<?php } else { echo 'No '.(($draft)?'drafts':'posts').' found!'; }?>

+ 8
- 3
system/htmly.php View File

@ -399,6 +399,7 @@ get('/admin/posts', function () {
render('no-posts',array(
'head_contents' => head_contents('All blog posts - ' . blog_title(), blog_description(), site_url()),
'bodyclass' => 'noposts',
'draft' => false
));
die;
@ -415,7 +416,8 @@ get('/admin/posts', function () {
'posts' => $posts,
'bodyclass' => 'all-posts',
'breadcrumb' => '',
'pagination' => has_pagination($total, $perpage, $page)
'pagination' => has_pagination($total, $perpage, $page),
'draft' => false
));
}
else {
@ -455,6 +457,7 @@ get('/admin/drafts', function () {
render('no-posts',array(
'head_contents' => head_contents('All blog posts - ' . blog_title(), blog_description(), site_url()),
'bodyclass' => 'noposts',
'draft' => true,
));
die;
@ -525,7 +528,8 @@ get('/admin/mine', function(){
'name' => $bio->title,
'bodyclass' => 'userposts',
'breadcrumb' => '<a href="' . site_url() . '">' .config('breadcrumb.home'). '</a> &#187; Profile for: ' . $bio->title,
'pagination' => has_pagination($total, $perpage, $page)
'pagination' => has_pagination($total, $perpage, $page),
'draft' => false
));
die;
}
@ -583,7 +587,8 @@ get('/admin/minedrafts', function(){
'name' => $bio->title,
'bodyclass' => 'userposts',
'breadcrumb' => '<a href="' . site_url() . '">' .config('breadcrumb.home'). '</a> &#187; Profile for: ' . $bio->title,
'pagination' => has_pagination($total, $perpage, $page)
'pagination' => has_pagination($total, $perpage, $page),
'draft' => true
));
die;
}


Loading…
Cancel
Save