// tamnho máx para o título if (!empty($this->headerLength)) { $texto = $this->escape($this->item->title); $title = baseHelper::textLimit($texto, $this->headerLength); } else { $title = $this->escape($this->item->title); } $head = '<h3 class="item-title no-margin" style="font-size:' . $this->fontSize . ';">' . $title . '</h3>'; // CONTEÚDO / INTRODUÇÃO $intro = ''; if ($this->showDescription == 1) { $intro = $this->item->introtext; // Limite de caracteres -> se for informado, o html do texto é retirado. vide: strip_tags() if ($this->introLength) { $texto = strip_tags($intro); $intro = baseHelper::textLimit($texto, $this->introLength); } $intro = '<div class="top-space-xs">' . $intro . '</div>'; } // IMAGEM $image = ''; // Verifica se existe uma imagem para a introdução $img = isset($images->image_intro) && !empty($images->image_intro) ? $images->image_intro : NULL; if ($this->showImage != 2) { // Senão houver imagem de introdução, verifica se tem uma para o conteúdo $img = is_null($img) && isset($images->image_fulltext) && !empty($images->image_fulltext) ? $images->image_fulltext : $img; // Se não houverem imagens de conteúdo e for informada uma imagem default... $img = is_null($img) && isset($this->imgDef) && !empty($this->imgDef) ? $this->imgDef : $img; } if (is_null($img)) { $img = JURI::root() . "images/template/no-image.jpg";
$props = ' src="' . $imgFile . '"'; $props .= ' alt="' . htmlspecialchars($images->image_intro_alt) . '"'; $imgTag = '<img class="img-responsive ' . $this->imageStyle . '" ' . $props . ' />'; $layer = '<span class="item-image-layer"></span>'; $image .= '<a href="' . $link . '" class="' . $setContentMode . '"' . $setModalParams . '>' . $imgTag . $layer . '</a>'; // fecha container principal $image .= '</div>'; } } // HEADER -> TÍTULO $head = ''; if ($this->showTitle) { // tamnho máx para o título if (!empty($this->headerLength)) { $texto = $this->escape($this->item->title); $title = baseHelper::textLimit($texto, $this->headerLength); } else { $title = $this->escape($this->item->title); } // tamanho da fonte $hh = 'font-size:' . $this->fontSize . ';'; // altura mínima do header $hh .= !empty($this->headerHeight) ? 'min-height:' . str_replace('px', '', $this->headerHeight) . 'px' : ''; // no formato 'galeria de imagens' a introdução fica no título if ($this->descriptionPos) { $title .= $intro; } // verifica se o título tem link.. $head = $params->get('link_titles') ? '<a href="' . $link . '" class="' . $setContentMode . '"' . $setModalParams . '>' . $title . '</a>' : $title; // aviso se o item não estiver publicado if ($this->item->state == 0) {