diff --git a/system/admin/admin.php b/system/admin/admin.php index f1c58d7..ce00efd 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -315,9 +315,20 @@ function get_recent_posts() { $posts = get_profile($_SESSION['user'], 1, 5); if(!empty($posts)) { echo ''; - echo ''; + echo ''; + $i = 0; $len = count($posts); foreach($posts as $p) { - echo ''; + if ($i == 0) { + $class = 'item first'; + } + elseif ($i == $len - 1) { + $class = 'item last'; + } + else { + $class = 'item'; + } + $i++; + echo ''; echo ''; echo ''; echo ''; @@ -336,9 +347,20 @@ function get_recent_pages() { if(!empty($posts)) { krsort($posts); echo '
TitlePublishedTagOperations
TitlePublishedTagOperations
' . $p->title . '' . date('d F Y', $p->date) . '' . $p->tag . '
'; - echo ''; + echo ''; + $i = 0; $len = count($posts); foreach($posts as $p) { - echo ''; + if ($i == 0) { + $class = 'item first'; + } + elseif ($i == $len - 1) { + $class = 'item last'; + } + else { + $class = 'item'; + } + $i++; + echo ''; echo ''; echo ''; echo ''; diff --git a/system/admin/views/404.html.php b/system/admin/views/404.html.php index c5fa4d2..96439e7 100644 --- a/system/admin/views/404.html.php +++ b/system/admin/views/404.html.php @@ -5,7 +5,7 @@ - 404 Not Found - <?php echo config('blog.title') ?> + 404 Not Found - <?php echo blog_title() ?> diff --git a/system/admin/views/layout.html.php b/system/admin/views/layout.html.php index a1e20e7..313afe5 100644 --- a/system/admin/views/layout.html.php +++ b/system/admin/views/layout.html.php @@ -11,8 +11,8 @@
- - + +
@@ -28,8 +28,8 @@
diff --git a/system/admin/views/posts-list.html.php b/system/admin/views/posts-list.html.php index 97e30d0..3f9354e 100644 --- a/system/admin/views/posts-list.html.php +++ b/system/admin/views/posts-list.html.php @@ -1,22 +1,22 @@

TitleOperations
TitleOperations
' . $p->title . 'Edit Delete
- + - + diff --git a/system/admin/views/user-posts.html.php b/system/admin/views/user-posts.html.php index c162fe4..427f970 100644 --- a/system/admin/views/user-posts.html.php +++ b/system/admin/views/user-posts.html.php @@ -1,22 +1,22 @@

TitlePublishedAuthorTagOperations
TitlePublishedAuthorTagOperations
title ?> date) ?> author ?>
- + - +
TitlePublishedTagOperations
TitlePublishedTagOperations
title ?> date) ?> tag ?>