1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Issue #4368 Fixed hardcoded string for 'related' content. Now uses tablerender(). Shortcode processing of {---CAPTION---} added.

This commit is contained in:
Cameron
2021-03-22 11:26:51 -07:00
parent 21f8fdcbf6
commit c33b91ee5c
4 changed files with 14 additions and 7 deletions

View File

@@ -4600,9 +4600,10 @@ var_dump($select_options);*/
if(count($list))
{
return "<div class='e-related clearfix hidden-print'>".$head.implode("\n",$list).$tp->parseTemplate($TEMPLATE['end']). '</div>';
$text = "<div class='e-related clearfix hidden-print'>".$head.implode("\n",$list).$tp->parseTemplate($TEMPLATE['end']). '</div>';
$caption = $tp->parseTemplate(varset($TEMPLATE['caption']));
return e107::getRender()->tablerender($caption, $text, 'related', true);
// return "<div class='e-related clearfix hidden-print'><hr><h4>".defset('LAN_RELATED', 'Related')."</h4><ul class='e-related'>".implode("\n",$list)."</div>"; //XXX Tablerender?
}
}