mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 10:23:53 +02:00
Othernews and Othernews2 Menu templates updated.
This commit is contained in:
@@ -13,6 +13,11 @@ global $sc_style;
|
||||
$sc_style['NEWS_CATEGORY_NEWS_COUNT']['pre'] = '(';
|
||||
$sc_style['NEWS_CATEGORY_NEWS_COUNT']['post'] = ')';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// category menu
|
||||
$NEWS_MENU_TEMPLATE['category']['start'] = '<ul class="nav nav-list news-menu-category">';
|
||||
$NEWS_MENU_TEMPLATE['category']['end'] = '</ul>';
|
||||
@@ -21,6 +26,11 @@ $NEWS_MENU_TEMPLATE['category']['item'] = '
|
||||
';
|
||||
//$NEWS_MENU_TEMPLATE['category']['separator'] = '<br />';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// months menu
|
||||
$NEWS_MENU_TEMPLATE['months']['start'] = '<ul class="nav nav-list news-menu-months">';
|
||||
$NEWS_MENU_TEMPLATE['months']['end'] = '</ul>';
|
||||
@@ -29,12 +39,59 @@ $NEWS_MENU_TEMPLATE['months']['item'] = '
|
||||
';
|
||||
//$NEWS_MENU_TEMPLATE['months']['separator'] = '<br />';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// latest menu
|
||||
$NEWS_MENU_TEMPLATE['latest']['start'] = '<ul class="nav nav-list news-menu-latest">';
|
||||
// Example
|
||||
//$NEWS_MENU_TEMPLATE['latest']['end'] = '<br />{currentTotal} from {total}';
|
||||
$NEWS_MENU_TEMPLATE['latest']['end'] = '</ul>';
|
||||
$NEWS_MENU_TEMPLATE['latest']['item'] = '
|
||||
<li><a class="e-menu-link newsmonths" href="{NEWSURL}">{NEWSTITLE} ({NEWSCOMMENTCOUNT})</a></li>
|
||||
';
|
||||
$NEWS_MENU_TEMPLATE['latest']['end'] = '</ul>'; // Example: $NEWS_MENU_TEMPLATE['latest']['end'] '<br />{currentTotal} from {total}';
|
||||
$NEWS_MENU_TEMPLATE['latest']['item'] = '<li><a class="e-menu-link newsmonths" href="{NEWSURL}">{NEWSTITLE} ({NEWSCOMMENTCOUNT})</a></li>';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Other News Menu.
|
||||
$NEWS_MENU_TEMPLATE['other']['caption'] = TD_MENU_L1;
|
||||
$NEWS_MENU_TEMPLATE['other']['start'] = "<div id='otherNews' data-interval='false' class='carousel slide othernews-block'>
|
||||
<div class='carousel-inner'>
|
||||
{SETIMAGE: w=400&h=200&crop=1}"; // set the {NEWSIMAGE} dimensions.
|
||||
$NEWS_MENU_TEMPLATE['other']['item'] = '<div class="item {ACTIVE}">
|
||||
{NEWSIMAGE}
|
||||
<h2>{NEWSTITLE}</h2>
|
||||
<p>{NEWSSUMMARY}</p>
|
||||
<p class="text-right"><a class="btn" href="{NEWSURL}">'.LAN_READ_MORE.' »</a></p>
|
||||
</div>';
|
||||
$NEWS_MENU_TEMPLATE['other']['end'] = "</div></div>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Other News Menu. 2
|
||||
|
||||
$NEWS_MENU_TEMPLATE['other2']['caption'] = TD_MENU_L2;
|
||||
$NEWS_MENU_TEMPLATE['other2']['start'] = "<ul class='media-list unstyled othernews2-block'>{SETIMAGE: w=100&h=100&crop=1}"; // set the {NEWSIMAGE} dimensions.
|
||||
$NEWS_MENU_TEMPLATE['other2']['item'] = "<li class='media'>
|
||||
<span class='media-object pull-left'>{NEWSIMAGE}</span>
|
||||
<div class='media-body'><b>{NEWSTITLELINK}</b><br />
|
||||
<small class='muted smalltext'>{NEWSSUMMARY}</small><br />
|
||||
</div>
|
||||
</li>\n";
|
||||
|
||||
$NEWS_MENU_TEMPLATE['other2']['end'] = "</ul>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//$NEWS_MENU_TEMPLATE['latest']['separator'] = '<br />'; // Shouldn't be needed.
|
||||
|
Reference in New Issue
Block a user