Example #1
0
    $intro = '<div class=&quot;top-space-xs&quot;>' . $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";
}
// Para imagens remotas ou sem largura e altura definidas, será mostrada a imagem original...
$imgFile = baseHelper::thumbnail($img, $this->imgW, $this->imgH);
// container interno -> controla o tamanho, ou a área visível da imagem
$cssW = $this->imgW ? 'width:' . $this->imgW . 'px;' : '';
$cssH = $this->imgH ? 'height:' . $this->imgH . 'px;' : '';
$image .= '<div class="img-responsive" style="width:100%;' . $cssH . 'overflow:hidden;">';
// imagem
// propriedades da imagem
$props = ' src="' . $imgFile . '"';
$props .= ' title="' . $head . $intro . '"';
$imgTag = '<img class="img-responsive" ' . $props . ' />';
$image .= '<a href="' . $link . '">' . $imgTag . '</a>';
// fecha container interno
$image .= '</div>';
// slider
echo '<a href="' . $link . '">' . $image . '</a>';
Example #2
0
    // FECHA OS ITENS
    echo $this->params->get('enable_slide') ? '</ul>' : '</div>';
}
// INTRODUÇÕES DOS ARQUIVOS -> itens
$introcount = count($this->intro_items);
$counter = 0;
if (!empty($this->intro_items)) {
    foreach ($this->intro_items as $key => &$item) {
        // vars
        $rowcount = (int) $key % (int) $this->columns + 1;
        $row = $counter / $this->columns;
        $itemState = $item->state == 0 ? ' system-unpublished' : '';
        $this->item =& $item;
        // CLASSE INDICANDO A CATEGORIA
        // retira os acentos e espaços do nome da categoria
        $classCateg = str_replace(' ', '', baseHelper::removeAcentos(strtolower($this->item->category_title)));
        // inicia uma nova linha se for a primeira coluna
        if ($rowcount == 1) {
            $row = $counter / $this->columns;
            echo '<div class="items-row cols-' . (int) $this->columns . ' row-' . $row . ' row">';
        }
        // MOSTRA O ITEM
        $grid = round(12 / $this->columns);
        echo '
				<div class="col-sm-' . $grid . '">
					<div class="item ' . $layout . ' ' . $classCateg . ' column-' . $rowcount . $itemState . ' clearfix" style="' . $itemHeight . '">
						' . $this->loadTemplate('intro') . '
					</div><!-- end item -->
				</div><!-- end col -->
				';
        $counter++;
Example #3
0
			';
    }
    $head = $head ? '<h4 class="page-header clearfix">' . $head . $filter . '</h4>' : $filter;
}
// NOME
$name = $this->contact->name && $this->params->get('show_name') ? $this->contact->name : '';
// POSIÇÃO
$pos = $this->contact->con_position && $this->params->get('show_position') ? '<span class="label label-info">' . $this->contact->con_position . '</span>' : '';
// TAG DESPUBLICADO
$unpub = $this->item->published == 0 ? '<span class="label label-warning">' . JText::_('JUNPUBLISHED') . '></span>' : '';
// IMAGEM
$image = '';
$s = '65px';
$sz = ' style="width:' . $s . ';height:' . $s . '"';
if ($this->contact->image && $this->params->get('show_image')) {
    $image = '<img class="img-thumbnail obj-to-left" src="' . baseHelper::thumbnail($this->contact->image, $s, $s) . '" ' . $sz . ' />';
}
// LINK VCARD
$vcard = '';
if ($this->params->get('allow_vcard')) {
    $vcard = JText::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS') . '
		<a href="' . JRoute::_('index.php?option=com_contact&amp;view=contact&amp;id=' . $this->contact->id . '&amp;format=vcf') . '">
			' . JText::_('COM_CONTACT_VCARD') . '
		</a>
		';
}
// OUTRAS INFORMAÇÕES
$info = $this->contact->misc && $this->params->get('show_misc') ? '<div class="contact-miscinfo">' . $this->contact->misc . '</div>' : '';
// FORMULÁRIO
$form = $this->params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id) ? $this->loadTemplate('form') : '';
// LINKS
Example #4
0
        $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) {
Example #5
0
        }
        ?>
			
				<?php 
        $images = json_decode($item->core_images);
        ?>
				<?php 
        if ($this->params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) {
            ?>
					<div class="item-image pull-left right-space-sm">
						<a href="<?php 
            echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router));
            ?>
">
							<?php 
            $img = baseHelper::thumbnail(htmlspecialchars($images->image_intro), '100', '80');
            ?>
							<img src="<?php 
            echo $img;
            ?>
" class="img-responsive" alt="<?php 
            echo htmlspecialchars($images->image_intro_alt);
            ?>
">
						</a>
					</div>
				<?php 
        }
        ?>
				
				<h3 class="item-title">