Improvements on tags
This commit is contained in:
parent
63d11a755b
commit
22c75b9d09
@ -74,7 +74,7 @@ function build_posts_per_page($pageNumber=0, $amount=5, $draftPosts=false)
|
||||
|
||||
$list = $dbPosts->getPage($pageNumber, $amount, $draftPosts);
|
||||
|
||||
// There are not post for the pageNumber then NotFound page
|
||||
// There are not post for the pageNumber then true Not found page
|
||||
if(empty($list) && $pageNumber>0) {
|
||||
$Url->setNotFound(true);
|
||||
}
|
||||
@ -115,6 +115,10 @@ if( ($Url->whereAmI()==='post') && ($Url->notFound()===false) )
|
||||
$posts[0] = $Post;
|
||||
}
|
||||
|
||||
}
|
||||
elseif( ($Url->whereAmI()==='tag') && ($Url->notFound()===false) )
|
||||
{
|
||||
|
||||
}
|
||||
// Build post per page
|
||||
else
|
||||
|
@ -57,7 +57,7 @@ class pluginsimpleMDE extends Plugin {
|
||||
status: false,
|
||||
toolbarTips: true,
|
||||
toolbarGuideIcon: true,
|
||||
autofocus: true,
|
||||
autofocus: false,
|
||||
lineWrapping: false,
|
||||
indentWithTabs: true,
|
||||
tabSize: 4,
|
||||
|
@ -25,6 +25,7 @@ class pluginTags extends Plugin {
|
||||
{
|
||||
global $Language;
|
||||
global $dbTags;
|
||||
global $Url;
|
||||
|
||||
$html = '<div class="plugin plugin-tags">';
|
||||
$html .= '<h2>'.$this->getDbField('label').'</h2>';
|
||||
@ -39,7 +40,7 @@ class pluginTags extends Plugin {
|
||||
$count = $dbTags->countPostsByTag($tagKey);
|
||||
|
||||
// Print the parent
|
||||
$html .= '<li><a href="tag/'.$tagKey.'">'.$fields['name'].' ('.$count.')</a></li>';
|
||||
$html .= '<li><a href="'.HTML_PATH_ROOT.$Url->filters('tag').$tagKey.'">'.$fields['name'].' ('.$count.')</a></li>';
|
||||
}
|
||||
|
||||
$html .= '</ul>';
|
||||
|
Loading…
Reference in New Issue
Block a user