diff --git a/framework/elements/articles/articles.php b/framework/elements/articles/articles.php index 4faba1e2..6d5d09fc 100644 --- a/framework/elements/articles/articles.php +++ b/framework/elements/articles/articles.php @@ -236,8 +236,9 @@ $info_margin_before_title = $params->get('info_margin_before_title', ''); $info_margin_after_intro = $params->get('info_margin_after_intro', ''); -$enable_intro_text = $params->get('enable_intro_text', 1); +$enable_intro_text = $params->get('enable_intro_text', 1); $content_font_style = $params->get('content_font_style'); +$intro_limit = $params->get('intro_limit', 0); if (!empty($content_font_style)) { Style::renderTypography('#'.$element->id.' .astroid-article-introtext', $content_font_style); } @@ -356,7 +357,7 @@ echo ''; } if (!empty($item->introtext) && $enable_intro_text) { - echo '
' . $item->introtext . '
'; + echo '
' . mb_substr(strip_tags($item->introtext), 0, $intro_limit, 'UTF-8') . '
'; } if (count($info_after_intro)) {