modules/mod_news_pro_gk4/tmpl/layout.parts.php
- Code: Select all
function lists($config, $news_id, $news_cid, $news_sid, $news_title, $news_text, $odd, $num) {
if($config['news_short_pages'] > 0) {
$text = '';
if($config['show_list_description']) {
$text = NSP_GK4_Utils::cutText(strip_tags(preg_replace("/{.+?}/", "", $news_text)), $config['list_text_limit'], $config['list_text_limit_type'], '…');
}
if(JString::strlen($text) > 0) $text = '<p>'.$text.'</p>';
$title = $news_title;
$title = NSP_GK4_Utils::cutText($title, $config['list_title_limit'], $config['list_title_limit_type'], '…');
if(JString::strlen($title) > 0) $title = '<h4><a href="'.JRoute::_(ContentHelperRoute::getArticleRoute($news_id, $news_cid, $news_sid)).'" title="'.$news_title.'">'.$title.'</a></h4>';
// creating rest news list
return '<li class="'.(($odd == 1) ? 'odd' : 'even').(($num >= $config['links_amount'] * $config['links_columns_amount']) ? ' unvisible' : '').'">'.$title.$text.'</li>'; [color=#ff0000].... HERE....[/color]
}
}