mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
Update functions.php
This commit is contained in:
parent
e5e87717f4
commit
85f8abf537
1 changed files with 12 additions and 1 deletions
|
|
@ -875,6 +875,8 @@ function get_category_info($category = null)
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$tmp[] = default_category($category);
|
||||
}
|
||||
return $tmp;
|
||||
}
|
||||
|
|
@ -929,7 +931,16 @@ function default_category($category = null)
|
|||
$tmp = array();
|
||||
$desc = new stdClass;
|
||||
|
||||
if ($category == 'uncategorized') {
|
||||
if (is_null($category)) {
|
||||
$desc->title = i18n("Uncategorized");
|
||||
$desc->url = site_url() . 'category/uncategorized';
|
||||
$desc->slug = 'uncategorized';
|
||||
$desc->body = '<p>' . i18n('Uncategorized_comment') . '</p>';
|
||||
$desc->md = 'uncategorized.md';
|
||||
$desc->description = i18n('Uncategorized_comment');
|
||||
$desc->file = '';
|
||||
$desc->count = get_categorycount($desc->slug);
|
||||
} elseif ($category == 'uncategorized') {
|
||||
$desc->title = i18n("Uncategorized");
|
||||
$desc->url = site_url() . 'category/uncategorized';
|
||||
$desc->slug = 'uncategorized';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue