diff --git a/system/htmly.php b/system/htmly.php
index 777a7f7..33d21f8 100644
--- a/system/htmly.php
+++ b/system/htmly.php
@@ -394,7 +394,7 @@ get('/front/edit', function () {
}
});
-// Show the "Add post" page
+// Show the "Add content" page
get('/add/content', function () {
$req = $_GET['type'];
@@ -412,7 +412,7 @@ get('/add/content', function () {
'type' => $type,
'is_admin' => true,
'bodyclass' => 'add-content',
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add post'
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add content'
));
} else {
$login = site_url() . 'login';
@@ -794,7 +794,7 @@ get('/add/category', function () {
'type' => 'is_category',
'is_admin' => true,
'bodyclass' => 'add-category',
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add page'
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add category'
));
} else {
$login = site_url() . 'login';
@@ -841,7 +841,7 @@ post('/add/category', function () {
'type' => 'is_category',
'is_admin' => true,
'bodyclass' => 'add-category',
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add page'
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » Add category'
));
}
});
@@ -1973,7 +1973,7 @@ get('/post/:name', function ($name) {
}
if (config('blog.enable') === 'true') {
- $blog = ' Blog » ';
+ $blog = '
Blog » ';
} else {
$blog = '';
}
@@ -2010,7 +2010,7 @@ get('/post/:name', function ($name) {
'p' => $current,
'author' => $author,
'bodyclass' => 'in-post category-' . $current->ct . ' type-' . $current->type,
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $current->title,
+ 'breadcrumb' => '- ' . config('breadcrumb.home') . '
» '. $blog . '- ' . $current->categoryb . '
' . ' » ' . $current->title . '
',
'prev' => has_prev($prev),
'next' => has_next($next),
'type' => $var,
@@ -2062,7 +2062,7 @@ get('/post/:name/edit', function ($name) {
'type' => $type,
'is_admin' => true,
'bodyclass' => 'edit-post',
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
} else {
render('denied', array(
@@ -2072,7 +2072,7 @@ get('/post/:name/edit', function ($name) {
'p' => $current,
'bodyclass' => 'denied',
'is_admin' => true,
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
}
} else {
@@ -2254,7 +2254,7 @@ get('/post/:name/delete', function ($name) {
'p' => $current,
'is_admin' => true,
'bodyclass' => 'delete-post',
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
} else {
render('denied', array(
@@ -2264,7 +2264,7 @@ get('/post/:name/delete', function ($name) {
'p' => $current,
'is_admin' => true,
'bodyclass' => 'delete-post',
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
}
} else {
@@ -2957,7 +2957,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
}
if (config('blog.enable') === 'true') {
- $blog = ' Blog » ';
+ $blog = 'Blog » ';
} else {
$blog = '';
}
@@ -2994,7 +2994,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
'p' => $current,
'author' => $author,
'bodyclass' => 'in-post category-' . $current->ct . ' type-' . $current->type,
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $current->title,
+ 'breadcrumb' => '- ' . config('breadcrumb.home') . '
» '. $blog . '- ' . $current->categoryb . '
' . ' » ' . $current->title . '
',
'prev' => has_prev($prev),
'next' => has_next($next),
'type' => $var,
@@ -3046,7 +3046,7 @@ get('/:year/:month/:name/edit', function ($year, $month, $name) {
'type' => $type,
'bodyclass' => 'edit-post',
'is_admin' => true,
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
} else {
render('denied', array(
@@ -3056,7 +3056,7 @@ get('/:year/:month/:name/edit', function ($year, $month, $name) {
'p' => $current,
'bodyclass' => 'denied',
'is_admin' => true,
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
}
} else {
@@ -3238,7 +3238,7 @@ get('/:year/:month/:name/delete', function ($year, $month, $name) {
'p' => $current,
'bodyclass' => 'delete-post',
'is_admin' => true,
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
} else {
render('denied', array(
@@ -3248,7 +3248,7 @@ get('/:year/:month/:name/delete', function ($year, $month, $name) {
'p' => $current,
'bodyclass' => 'delete-post',
'is_admin' => true,
- 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
+ 'breadcrumb' => '' . config('breadcrumb.home') . ' » ' . $current->tagb . ' » ' . $current->title
));
}
} else {
diff --git a/system/includes/functions.php b/system/includes/functions.php
index a74df82..ae67524 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -268,13 +268,13 @@ function get_posts($posts, $page = 1, $perpage = 0)
if($str[count($str) - 3] == 'uncategorized') {
$category = default_category();
$post->category = '' . $category->title . '';
- $post->categoryb = '' . $category->title . '';
+ $post->categoryb = '' . $category->title . '';
} else {
foreach ($catC as $k => $v) {
if ($v['0'] === $str[count($str) - 3]) {
$post->category = '' . $v['1'] . '';
- $post->categoryb = '' . $v['1'] . '';
+ $post->categoryb = '' . $v['1'] . '';
}
}
@@ -343,7 +343,7 @@ function get_posts($posts, $page = 1, $perpage = 0)
foreach ($tag as $a) {
$url[] = '' . $a[0] . '';
- $bc[] = '' . $a[0] . '';
+ $bc[] = '' . $a[0] . '';
}
$post->tag = implode(' ', $url);