1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 17:50:12 +02:00

Fixes #3862 - news archive button template added.

This commit is contained in:
Cameron
2019-06-19 13:38:08 -07:00
parent 4c2762d7b9
commit 5a1a1def12
2 changed files with 23 additions and 12 deletions

View File

@@ -129,13 +129,22 @@ if(false === $cached)
{
if(!$parms['showarchive'])
{
$footer = '<div class="e-menu-link news-menu-archive"><a class="btn btn-default btn-secondary btn-sm" href="'.e_PLUGIN_ABS.'blogcalendar_menu/archive.php">'.BLOGCAL_L2.'</a></div>';
$ns->setContent('footer', $footer);
$cached .= $footer;
if(isset($template['footer']))
{
$footer = $tp->replaceConstants($template['footer'],'abs');
$footer = $tp->parseTemplate($footer,true);
$ns->setUniqueId('news-months-menu')->setContent('footer', $footer);
}
else
{
$footer = '<div class="e-menu-link news-menu-archive"><a class="btn btn-default btn-secondary btn-sm" href="'.e_PLUGIN_ABS.'blogcalendar_menu/archive.php">'.BLOGCAL_L2.'</a></div>';
$cached .= $footer;
}
}
$cached = $ns->tablerender(BLOGCAL_L1." ".$req_year, $cached, 'news_months_menu', true);
$ns->setUniqueId(null);
}