Обработка фильтрами анонсов статей
foreach($content_list as $con){ $con['tagline'] = cmsTagLine('content', $con['id'], true); $con['comments'] = $inCore->getCommentsCount('article', $con['id']); $con['user_access'] = true; // îñòàâëåíî äëÿ ñîâìåñòèìîñòè ñî ñòàðûìè øàáëîíàìè, óáðàòü â ñëåä âåðñèÿõ. $con['url'] = $model->getArticleURL(null, $con['seolink']); $con['image'] = (file_exists(PATH.'/images/photos/small/article'.$con['id'].'.jpg') ? 'article'.$con['id'].'.jpg' : ''); $cons[] = $con; }
foreach($content_list as $con){ $con['tagline'] = cmsTagLine('content', $con['id'], true); $con['comments'] = $inCore->getCommentsCount('article', $con['id']); $con['user_access'] = true; // îñòàâëåíî äëÿ ñîâìåñòèìîñòè ñî ñòàðûìè øàáëîíàìè, óáðàòü â ñëåä âåðñèÿõ. $con['url'] = $model->getArticleURL(null, $con['seolink']); $con['image'] = (file_exists(PATH.'/images/photos/small/article'.$con['id'].'.jpg') ? 'article'.$con['id'].'.jpg' : ''); $con['description'] = $inCore->processFilters($con['description']); $cons[] = $con; }
Замените строку
$con['description'] = $inCore->processFilters($con['description']);
$inCore->processFilters($con['description']);
Добавлю еще — чтобы фильтрами обрабатывался и модуль новых статей, нужно в файле /modules/mod_latest/module.php
while($con = $inDB->fetch_assoc($result)){ $articles[$next]['id'] = $con['id']; $articles[$next]['title'] = $con['title']; $articles[$next]['hits'] = $con['hits']; $articles[$next]['href'] = $model->getArticleURL(null, $con['seolink']); $articles[$next]['author'] = $con['author']; $articles[$next]['authorhref'] = cmsUser::getProfileURL($con['author_login']); $articles[$next]['comments'] = $cfg['showcom'] ? $inCore->getCommentsCount('article', $con['id']) : false; $articles[$next]['date'] = $inCore->dateformat($con['fdate']); $articles[$next]['description'] = $con['description']; $articles[$next]['image'] = (file_exists(PATH.'/images/photos/small/article'.$con['id'].'.jpg') ? 'article'.$con['id'].'.jpg' : ''); }
$inCore->processFilters($articles[$next]['description']);
while($con = $inDB->fetch_assoc($result)){ $articles[$next]['id'] = $con['id']; $articles[$next]['title'] = $con['title']; $articles[$next]['hits'] = $con['hits']; $articles[$next]['href'] = $model->getArticleURL(null, $con['seolink']); $articles[$next]['author'] = $con['author']; $articles[$next]['authorhref'] = cmsUser::getProfileURL($con['author_login']); $articles[$next]['comments'] = $cfg['showcom'] ? $inCore->getCommentsCount('article', $con['id']) : false; $articles[$next]['date'] = $inCore->dateformat($con['fdate']); $articles[$next]['description'] = $con['description']; $articles[$next]['image'] = (file_exists(PATH.'/images/photos/small/article'.$con['id'].'.jpg') ? 'article'.$con['id'].'.jpg' : ''); $inCore->processFilters($articles[$next]['description']); }