';
- echo '| Title | Operations |
';
+ echo '| Title | Operations |
';
+ $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 '| ' . $p->title . ' | ';
echo 'Edit Delete | ';
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 -
+ 404 Not Found -
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 @@
- | Title | Published | Author | Tag | Operations |
+ | Title | Published | Author | Tag | Operations |
-
+
| title ?> |
date) ?> |
author ?> |
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 @@
- | Title | Published | Tag | Operations |
+ | Title | Published | Tag | Operations |
-
+
| title ?> |
date) ?> |
tag ?> |