} if ($article->emailIconVisible) { $params['metadata-header-icons'][] = $article->emailIcon(); } if ($article->editIconVisible) { $params['metadata-header-icons'][] = $article->editIcon(); } if (strlen($article->hits)) { $params['metadata-header-icons'][] = $article->hitsInfo($article->hits); } // Build article content $content = ''; if (!$article->introVisible) { $content .= $article->event('afterDisplayTitle'); } $content .= $article->event('beforeDisplayContent'); if (strlen($article->images['intro']['image'])) { $content .= $article->image($article->images['intro']); } $content .= $article->intro(artxBalanceTags($article->intro)); if (strlen($article->readmore)) { $content .= $article->readmore($article->readmore, $article->readmoreLink); } $content .= $article->event('afterDisplayContent'); $params['content'] = $content; // Change the order of ""if"" statements to change the order of article metadata footer items. if (strlen($article->category)) { $params['metadata-footer-icons'][] = "<span class=\"dd-postcategoryicon\">" . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink) . "</span>"; } // Render article echo $article->article($params);
function modChrome_artblock($module, &$params, &$attribs) { if (!empty($module->content)) { echo artxBlock($module->showtitle != 0 ? $module->title : '', artxBalanceTags($module->content), $params->get('moduleclass_sfx')); } }