Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if ($image_type == "intro" || $ImagesTab) {
$item->introtext = trim(strip_tags($item->introtext, '<h2><h3>'));
}
if($model->module_params->text_limit) {
preg_match('/(<img[^>]+>)/i', $item->introtext, $images_text);
$item->introtext = trim(strip_tags($item->introtext, '<h2><h3>'));
if(extension_loaded('mbstring')) {
$item->introtext = mb_strimwidth($item->introtext, 0, $model->module_params->text_limit, '...', 'utf-8');
}
else {
$item->introtext = strlen($item->introtext) > $model->module_params->text_limit ? substr($item->introtext, 0, $model->module_params->text_limit) . '...' : $item->introtext;
}
if(count($images_text) &&
($image_type == "text" || ($image_type == "" && !$ImageIntro))
) {
if(strpos($images_text[0], '://') === false) {
$parts = explode('src="', $images_text[0]);
$images_text[0] = $parts[0] . 'src="' . JURI::root() . $parts[1];
}
$item->introtext = $images_text[0] . $item->introtext;
}
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<h3 itemprop="name" class="item-title">
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->language)); ?>" itemprop="url">
<?php echo $item->title; ?>
</a>
</h3>
You will get a 20% discount on JoomlaShine templates and extensions with this coupon code: JOOMCAR20