Exemplo n.º 1
0
                </li>
                <?php 
        }
        ?>
                
            </ul>
        </div><!--mans_cata-->
            <?php 
    }
}
?>
</div>    
    
<div style="margin-top:20px;">
    <?php 
$banners = get_left_random_banners(5);
foreach ($banners as $banner) {
    if ($banner['banner_code'] == '') {
        ?>
        <a target="_blank" <?php 
        echo isset($banner['url']) && $banner['url'] ? 'href="' . $banner['url'] . '"' : '';
        ?>
 >
            <img src="<?php 
        echo base_url('assets/uploads/images/banners/' . $banner['image_name'] . '_l.' . $banner['image_ext']);
        ?>
" width="250" />
        </a>
        <?php 
    } else {
        echo "<div class='banners'>";
Exemplo n.º 2
0
                </li>
                <?php 
        }
        ?>
                
            </ul>
        </div><!--mans_cata-->
            <?php 
    }
}
?>
</div>    
    
<div style="margin-top:20px;">
    <?php 
$banners = get_left_random_banners($banners_limit);
foreach ($banners as $banner) {
    if ($banner['banner_code'] == '') {
        ?>
        <a target="_blank" <?php 
        echo isset($banner['url']) && $banner['url'] ? 'href="' . $banner['url'] . '"' : '';
        ?>
 >
            <img src="<?php 
        echo base_url('assets/uploads/images/banners/' . $banner['image_name'] . '_l.' . $banner['image_ext']);
        ?>
" width="250" />
        </a>
        <?php 
    } else {
        echo "<div class='banners'>";