コード例 #1
0
 * @author YouTech Company http://www.smartaddons.com
 */
defined('_JEXEC') or die;
ImageHelper::setDefault($params);
include JModuleHelper::getLayoutPath($module->module, $layout . '_tabs');
if (in_array($params->get('position', 'top'), array('top', 'left'))) {
    echo $tabs_markup;
}
?>
<div class="spt-tabs-content" >
	<?php 
$j = 1;
foreach ($list as $key => $items) {
    $item0 = array_shift($items[1]);
    $list_child = $items[1];
    $img = K2SimpleTabsHelper::getK2Image($item0, $params);
    $img = ImageHelper::init($img)->src();
    $condition_col1 = $img;
    $condition_col2 = $item0->displaytitle != '' || $item0->displayIntrotext != '' || (int) $params->get('item_readmore_display', 1) && $params->get('item_readmore_text') != '' || $item0->tags != '';
    $condition_col3 = !empty($list_child) && ((int) $params->get('other_title_display', 1) || (int) $params->get('item_viewall_display', 1));
    $class_col = '';
    if ($condition_col1 && $condition_col2 && $condition_col3) {
        $class_col = '';
    } else {
        if ($condition_col1 && $condition_col2 || $condition_col1 && $condition_col3 || $condition_col2 && $condition_col3) {
            $class_col = ' spl-col50';
        } else {
            if ($condition_col1 || $condition_col2 || $condition_col3) {
                $class_col = ' spl-col100';
            }
        }
コード例 #2
0
">
			<?php 
    if (!empty($list_child)) {
        ?>
			
				<div class="spt-col-three spt-col <?php 
        echo $class_col;
        ?>
">
				   <div class="spt-col-inner"> 
						<ul class="spt-other-items"> 
						  <?php 
        $i = 0;
        foreach ($list_child as $key => $item) {
            if ($i >= 0) {
                $img_other = K2SimpleTabsHelper::getK2Image($item, $params);
                ?>
							<li class="spt-other-item">
								<?php 
                if ($img_other) {
                    ?>
								<div class="images-other">
									<a title="<?php 
                    echo $item->title;
                    ?>
" href="<?php 
                    echo $item->link;
                    ?>
"  <?php 
                    echo K2SimpleTabsHelper::parseTarget($params->get('item_link_target', '_blank'));
                    ?>