Esempio n. 1
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
Esempio n. 2
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>';
Esempio n. 3
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">