mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 18:47:54 +01:00
landingzero styling fixes.
This commit is contained in:
parent
323bdcc8aa
commit
830814b5a1
@ -122,9 +122,18 @@ if(false === $cached)
|
||||
$menu_text[] = $tp->simpleParse($template['item'], $vars);
|
||||
}
|
||||
$cached = $template['start'].implode(varset($template['separator'],''), $menu_text).$template['end'];
|
||||
|
||||
$ns->setContent('text', $cached);
|
||||
|
||||
if($cached)
|
||||
{
|
||||
if(!$parms['showarchive']) $cached .= '<div class="e-menu-link news-menu-archive"><a class="btn btn-default btn-sm" href="'.e_PLUGIN_ABS.'blogcalendar_menu/archive.php">'.BLOGCAL_L2.'</a></div>';
|
||||
if(!$parms['showarchive'])
|
||||
{
|
||||
$footer = '<div class="e-menu-link news-menu-archive"><a class="btn btn-default btn-sm" href="'.e_PLUGIN_ABS.'blogcalendar_menu/archive.php">'.BLOGCAL_L2.'</a></div>';
|
||||
$ns->setContent('footer', $footer);
|
||||
$cached .= $footer;
|
||||
|
||||
}
|
||||
$cached = $ns->tablerender(BLOGCAL_L1." ".$req_year, $cached, 'news_months_menu', true);
|
||||
}
|
||||
e107::getCache()->set($cString, $cached);
|
||||
|
@ -258,4 +258,13 @@ a.list-group-item {
|
||||
.options .e-instant-edit {
|
||||
right: initial;
|
||||
margin-right: initial;
|
||||
}
|
||||
}
|
||||
|
||||
article .panel-footer i {
|
||||
padding-left: 10px;
|
||||
}
|
||||
article .panel-footer i.fa-user {
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.news-menu-archive { text-align:right }
|
@ -19,10 +19,10 @@ global $sc_style;
|
||||
$NEWS_MENU_TEMPLATE['category']['start'] = '<ul class="nav nav-list 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><a class="e-menu-link newscats{active}" href="{NEWS_CATEGORY_URL}">{NEWS_CATEGORY_TITLE} <span class="pull-right">{NEWS_CATEGORY_NEWS_COUNT}</span></a></li>
|
||||
';
|
||||
|
||||
$NEWS_MENU_WRAPPER['category']['NEWS_CATEGORY_NEWS_COUNT'] = "({---})"; // Wrap brackets around the news count when value is returned.
|
||||
//$NEWS_MENU_WRAPPER['category']['NEWS_CATEGORY_NEWS_COUNT'] = "({---})"; // Wrap brackets around the news count when value is returned.
|
||||
//$NEWS_MENU_TEMPLATE['category']['separator'] = '<br />';
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ $NEWS_MENU_WRAPPER['category']['NEWS_CATEGORY_NEWS_COUNT'] = "({---})"; // Wrap
|
||||
$NEWS_MENU_TEMPLATE['months']['start'] = '<ul class="nav nav-list 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} ({count})</a></li>
|
||||
<li><a class="e-menu-link newsmonths{active}" href="{url}">{month} <span class="badge pull-right">{count}</span></a></li>
|
||||
';
|
||||
//$NEWS_MENU_TEMPLATE['months']['separator'] = '<br />';
|
||||
|
||||
|
@ -108,6 +108,13 @@ function tablestyle($caption, $text, $id='', $info=array())
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
if($style === 'menu' && !empty($info['footer']) && !empty($info['text']))
|
||||
{
|
||||
$style = 'menu-footer';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($style == 'menu')
|
||||
{
|
||||
@ -119,7 +126,20 @@ function tablestyle($caption, $text, $id='', $info=array())
|
||||
</div>';
|
||||
return;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if($style == 'menu-footer')
|
||||
{
|
||||
echo '<div class="panel panel-default">
|
||||
<div class="panel-heading">'.$caption.'</div>
|
||||
<div class="panel-body">
|
||||
'.$info['text'].'
|
||||
</div>
|
||||
<div class="panel-footer text-align:right">'.$info['footer'].'</div>
|
||||
</div>';
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
if($style == 'portfolio')
|
||||
{
|
||||
|
@ -6,6 +6,7 @@
|
||||
<category>generic</category>
|
||||
<plugins>
|
||||
<plugin name='gallery' url='core' />
|
||||
<plugin name='rss_menu' url='core' />
|
||||
<plugin name='social' url='core' />
|
||||
</plugins>
|
||||
<keywords>
|
||||
|
Loading…
x
Reference in New Issue
Block a user