1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-14 01:22:13 +02:00

Fix for landingzero othernews menu.

This commit is contained in:
Cameron 2017-01-29 18:33:48 -08:00
parent e13fca30c5
commit 46e89d103e
4 changed files with 24 additions and 6 deletions

View File

@ -704,8 +704,9 @@ class news_admin_ui extends e_admin_ui
$ecache = e107::getCache();
$ecache->clear("news.php"); //TODO change it to 'news_*' everywhere
$ecache->clear("news_", false, true); //NEW global news cache prefix
$ecache->clear("othernews"); //TODO change it to 'news_othernews' everywhere
$ecache->clear("othernews2"); //TODO change it to 'news_othernews2' everywhere
$ecache->clear("othernews"); //TODO change it to 'news_other' everywhere
$ecache->clear("othernews2"); //TODO change it to 'news_other2' everywhere
//$ecache->clear("nq_news_"); - supported by cache::clear() now
//$ecache->clear("nomd5_news_"); supported by cache::clear() now

View File

@ -44,7 +44,7 @@ if(!empty($parm))
if(!$OTHERNEWS2_STYLE)
{
if(deftrue('BOOTSTRAP')) // v2.x
if(THEME_LEGACY !== true) // v2.x
{
if(!defined("OTHERNEWS_COLS"))
{

View File

@ -49,7 +49,7 @@ if(!empty($parm))
if(!$OTHERNEWS_STYLE)
{
if(deftrue('BOOTSTRAP')) // v2.x
if(THEME_LEGACY !== true) // v2.x
{
if(!defined("OTHERNEWS_COLS"))
{

View File

@ -54,7 +54,8 @@ $NEWS_MENU_WRAPPER['latest']['NEWSCOMMENTCOUNT'] = "({---})";
// Other News Menu.
// Other News Menu.
/*
$NEWS_MENU_TEMPLATE['other']['caption'] = '';
$NEWS_MENU_TEMPLATE['other']['start'] = "
{SETIMAGE: w=700&h=400&crop=1}"; // set the {NEWSIMAGE} dimensions.
@ -71,12 +72,28 @@ $NEWS_MENU_TEMPLATE['other']['item'] = '
</div>
</div>
<div class="col-md-4">
<a href="{NEWSURL}" class="btn btn-primary btn-block">'.LAN_THEME_NEWS_1.'</a>
<a href="{NEWSURL}" class="btn btn-primary btn-block">'.LAN_READ_MORE.'</a>
</div>
</div>';
$NEWS_MENU_TEMPLATE['other']['end'] = "";
*/
$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=500&h=300&crop=1}"; // set the {NEWSIMAGE} dimensions.
$NEWS_MENU_TEMPLATE['other']['item'] = '<div class="item {ACTIVE}">
{NEWSTHUMBNAIL=placeholder}
<h3>{NEWSTITLE}</h3>
<p>{NEWSSUMMARY}</p>
<p class="text-right"><a class="btn btn-primary btn-othernews" href="{NEWSURL}">'.LAN_READ_MORE.' &raquo;</a></p>
</div>';
$NEWS_MENU_TEMPLATE['other']['end'] = "</div></div>";