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:
8
news.php
8
news.php
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user