mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Issue #4332 Bootstrap 5 Menu styling: news, login, online menus.
This commit is contained in:
parent
a7d8b1d41f
commit
833d3f6133
@ -169,37 +169,37 @@ if ( ! isset($LOGIN_MENU_LOGGED))
|
||||
|
||||
// New Template for v2. Bullets via CSS etc. Login-Menu Stats may require work.
|
||||
|
||||
$sc_style['LM_MAINTENANCE']['pre'] = '<li class="login-menu-maintenance">';
|
||||
$sc_style['LM_MAINTENANCE']['pre'] = '<li class="list-group-item login-menu-maintenance">';
|
||||
$sc_style['LM_MAINTENANCE']['post'] = '</li>';
|
||||
|
||||
$sc_style['LM_ADMINLINK']['pre'] = '<li class="login-menu-admin">';
|
||||
$sc_style['LM_ADMINLINK']['pre'] = '<li class="list-group-item login-menu-admin">';
|
||||
$sc_style['LM_ADMINLINK']['post'] = '</li>';
|
||||
|
||||
$sc_style['LM_EXTERNAL_LINKS']['pre'] = '<li class="login-menu-external">';
|
||||
$sc_style['LM_EXTERNAL_LINKS']['pre'] = '<li class="list-group-item login-menu-external">';
|
||||
$sc_style['LM_EXTERNAL_LINKS']['post'] = '</li>';
|
||||
|
||||
$sc_style['LM_STATS']['pre'] = '<li class="nav-header login-menu-stats smalltext">'.LAN_LOGINMENU_25.':</li><li>';
|
||||
$sc_style['LM_STATS']['pre'] = '<li class="list-group-item nav-header login-menu-stats smalltext">'.LAN_LOGINMENU_25.':</li><li>';
|
||||
$sc_style['LM_STATS']['post'] = '</li>';
|
||||
|
||||
$sc_style['LM_LISTNEW_LINK']['pre'] = '<li class="login-menu-listnew">';
|
||||
$sc_style['LM_LISTNEW_LINK']['pre'] = '<li class="list-group-item login-menu-listnew">';
|
||||
$sc_style['LM_LISTNEW_LINK']['post'] = '</li>';
|
||||
|
||||
$sc_style['LM_ADMIN_CONFIGURE']['pre'] = '<li class="login-menu-admin-config">';
|
||||
$sc_style['LM_ADMIN_CONFIGURE']['pre'] = '<li class="list-group-item login-menu-admin-config">';
|
||||
$sc_style['LM_ADMIN_CONFIGURE']['post'] = '</li>';
|
||||
|
||||
$sc_style['LM_LOGOUT']['pre'] = '<li class="login-menu-logout">';
|
||||
$sc_style['LM_LOGOUT']['pre'] = '<li class="list-group-item login-menu-logout">';
|
||||
$sc_style['LM_LOGOUT']['post'] = '</li>';
|
||||
|
||||
$sc_style['LM_LOGOUT']['pre'] = '<li class="login-menu-logout">';
|
||||
$sc_style['LM_LOGOUT']['pre'] = '<li class="list-group-item login-menu-logout">';
|
||||
$sc_style['LM_LOGOUT']['post'] = '</li>';
|
||||
|
||||
|
||||
$LOGIN_MENU_LOGGED = '
|
||||
<ul class="login-menu-logged nav nav-list">
|
||||
<ul class="list-group login-menu-logged nav nav-list">
|
||||
{LM_MAINTENANCE}
|
||||
{LM_ADMINLINK}
|
||||
<li class="login-menu-usersettings {LM_ACTIVE: mode=usersettings}">{LM_USERSETTINGS}</li>
|
||||
<li class="login-menu-profile {LM_ACTIVE: mode=profile}">{LM_PROFILE}</li>
|
||||
<li class="list-group-item login-menu-usersettings {LM_ACTIVE: mode=usersettings}">{LM_USERSETTINGS}</li>
|
||||
<li class="list-group-item login-menu-profile {LM_ACTIVE: mode=profile}">{LM_PROFILE}</li>
|
||||
{LM_ADMIN_CONFIGURE}
|
||||
{LM_EXTERNAL_LINKS}
|
||||
{LM_LOGOUT}
|
||||
|
@ -16,10 +16,10 @@ global $sc_style;
|
||||
|
||||
|
||||
// category menu
|
||||
$NEWS_MENU_TEMPLATE['category']['start'] = '<ul class="news-menu-category">';
|
||||
$NEWS_MENU_TEMPLATE['category']['start'] = '<ul class="list-group news-menu-category">';
|
||||
$NEWS_MENU_TEMPLATE['category']['end'] = '</ul>';
|
||||
$NEWS_MENU_TEMPLATE['category']['item'] = '
|
||||
<li><a class="e-menu-link newscats{ACTIVE}" href="{NEWS_CATEGORY_URL}">{NEWS_CATEGORY_TITLE}{NEWS_CATEGORY_NEWS_COUNT}</a></li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center"><a class="e-menu-link newscats{ACTIVE}" href="{NEWS_CATEGORY_URL}">{NEWS_CATEGORY_TITLE}</a><span class="badge bg-primary rounded-pill">{NEWS_CATEGORY_NEWS_COUNT=raw}</span></li>
|
||||
';
|
||||
|
||||
|
||||
@ -27,10 +27,10 @@ $NEWS_MENU_TEMPLATE['category']['item'] = '
|
||||
|
||||
|
||||
// @deprecated months menu - use news archive instead.
|
||||
$NEWS_MENU_TEMPLATE['months']['start'] = '<ul class="news-menu-months">';
|
||||
$NEWS_MENU_TEMPLATE['months']['start'] = '<ul class="list-group news-menu-months">';
|
||||
$NEWS_MENU_TEMPLATE['months']['end'] = '</ul>';
|
||||
$NEWS_MENU_TEMPLATE['months']['item'] = '
|
||||
<li><a class="e-menu-link newsmonths{active}" href="{url}">{month} <span class="badge">{count}</span></a></li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center"><a class="e-menu-link newsmonths{active}" href="{url}">{month}</a> <span class="badge bg-primary rounded-pill">{count}</span></li>
|
||||
';
|
||||
|
||||
// sends value to tablestyle / $options['footer'];
|
||||
@ -41,9 +41,9 @@ $NEWS_MENU_TEMPLATE['months']['item'] = '
|
||||
|
||||
|
||||
// latest menu
|
||||
$NEWS_MENU_TEMPLATE['latest']['start'] = '<ul class="news-menu-latest">';
|
||||
$NEWS_MENU_TEMPLATE['latest']['start'] = '<ul class="list-group news-menu-latest">';
|
||||
$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} <span class="badge">{NEWSCOMMENTCOUNT}</span></a></li>';
|
||||
$NEWS_MENU_TEMPLATE['latest']['item'] = '<li class="list-group-item d-flex justify-content-between align-items-center"><a class="e-menu-link newsmonths" href="{NEWSURL}">{NEWSTITLE}</a><span class="badge bg-primary rounded-pill">{NEWSCOMMENTCOUNT}</span></li>';
|
||||
|
||||
|
||||
|
||||
@ -131,11 +131,11 @@ $NEWS_MENU_TEMPLATE['carousel']['nav'] = '<li data-target="#news-carousel" data-
|
||||
|
||||
|
||||
|
||||
$NEWS_MENU_TEMPLATE['archive']['start'] = '<ul class="news-archive-menu">';
|
||||
$NEWS_MENU_TEMPLATE['archive']['start'] = '<ul class="list-group 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>
|
||||
$NEWS_MENU_TEMPLATE['archive']['year_start'] = "<li class='list-group-item' >
|
||||
<a class='e-expandit {EXPANDOPEN}' href='#{YEAR_ID}' style='display:block'>{YEAR_NAME}</a>
|
||||
<ul id='{YEAR_ID}' class='news-archive-menu-months' style='display:{YEAR_DISPLAY}'>
|
||||
";
|
||||
$NEWS_MENU_TEMPLATE['archive']['year_end'] = '</ul></li>';
|
||||
|
@ -11,8 +11,8 @@
|
||||
$ONLINE_MENU_TEMPLATE = array();
|
||||
|
||||
// Last seen Menu
|
||||
$ONLINE_MENU_TEMPLATE['lastseen']['start'] = "<ul class='lastseen-menu '>";
|
||||
$ONLINE_MENU_TEMPLATE['lastseen']['item'] = "<li>{LASTSEEN_USERLINK} <small class='muted'>{LASTSEEN_DATE}</small></li>";
|
||||
$ONLINE_MENU_TEMPLATE['lastseen']['start'] = "<ul class='list-group lastseen-menu'>";
|
||||
$ONLINE_MENU_TEMPLATE['lastseen']['item'] = "<li class='list-group-item d-flex justify-content-between align-items-center'>{LASTSEEN_USERLINK} <small class='muted'>{LASTSEEN_DATE}</small></li>";
|
||||
$ONLINE_MENU_TEMPLATE['lastseen']['end'] = "</ul>";
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user