1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 18:11:56 +02:00

news_archive_menu templated

This commit is contained in:
Jimako
2018-01-09 09:51:00 +01:00
parent 414d91f831
commit 0e9b99f335
2 changed files with 54 additions and 34 deletions

View File

@@ -34,10 +34,7 @@ $NEWS_MENU_TEMPLATE['months']['item'] = '
';
//$NEWS_MENU_TEMPLATE['months']['separator'] = '<br />';
// latest menu
$NEWS_MENU_TEMPLATE['latest']['start'] = '<ul class="news-menu-latest">';
@@ -130,6 +127,23 @@ $NEWS_MENU_TEMPLATE['carousel']['nav'] = '<li data-target="#news-carousel" data-
// TODO
$NEWS_MENU_TEMPLATE['archive'] = array();
$NEWS_MENU_TEMPLATE['archive']['start'] = '<ul class="news-archive-menu">';
$NEWS_MENU_TEMPLATE['archive']['end'] = '</ul>';
$NEWS_MENU_TEMPLATE['archive']['year_start'] = "<li>
<a class='e-expandit {EXPANDOPEN}' href='#{YEAR_ID}'>{YEAR_NAME}</a>
<ul id='{YEAR_ID}' class='news-archive-menu-months' style='display:{YEAR_DISPLAY}'>
";
$NEWS_MENU_TEMPLATE['archive']['year_end'] = '</ul></li>';
$NEWS_MENU_TEMPLATE['archive']['month_start'] = "<li>
<a class='e-expandit' href='#{MONTH_ID}'>{MONTH_NAME}<span class='badge'>{MONTH_COUNT}</span></a>
<ul id='{MONTH_ID}' class='news-archive-menu-items' style='display:none'>
";
$NEWS_MENU_TEMPLATE['archive']['month_end'] = '</ul></li>';
$NEWS_MENU_TEMPLATE['archive']['item'] = "
<li><a href='{ITEM_URL}'>{ITEM_TITLE}</a></li>
";