1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

News List caption option added to v2 template (same as $NEWSLISTTITLE in v1.x)

This commit is contained in:
Cameron
2013-11-22 17:08:38 -08:00
parent 39786cb670
commit 305d7d2ec9
2 changed files with 7 additions and 2 deletions

View File

@@ -275,11 +275,15 @@ if ($action == 'cat' || $action == 'all' || vartrue($_GET['tag']))
$text .= $tp->parseTemplate("{NEXTPREV={$parms}}");
if(!$NEWSLISTTITLE)
if(varset($template['caption'])) // v2.x
{
$NEWSLISTTITLE = str_replace("{NEWSCATEGORY}",$tp->toHTML($category_name,FALSE,'TITLE'), $template['caption']);
}
elseif(!$NEWSLISTTITLE) // default
{
$NEWSLISTTITLE = LAN_NEWS_82." '".$tp->toHTML($category_name,FALSE,'TITLE')."'";
}
else
else // v1.x
{
$NEWSLISTTITLE = str_replace("{NEWSCATEGORY}",$tp->toHTML($category_name,FALSE,'TITLE'),$NEWSLISTTITLE);
}