You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
1.8 KiB

<?php $_from = $this->_var['ad_posti']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'posti');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['posti']):
?>
<?php if ($this->_var['posti']['posti_type'] == 'floor_banner'): ?>
<div class="floor-banner-body" <?php if ($this->_var['posti']['link_color']): ?>style="background:<?php echo $this->_var['posti']['link_color']; ?>;"<?php endif; ?>>
<div class="floor-banner w1200">
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img style="max-width:<?php echo $this->_var['posti']['ad_width']; ?>px; max-height:<?php echo $this->_var['posti']['ad_height']; ?>px;" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadBrandBanner2.gif" class="lazy" data-original="<?php echo $this->_var['posti']['ad_code']; ?>"/></a>
</div>
</div>
<?php elseif ($this->_var['posti']['posti_type'] == 'top_banner'): ?>
<div class="top-banner" <?php if ($this->_var['posti']['link_color']): ?>style="background:<?php echo $this->_var['posti']['link_color']; ?>;"<?php endif; ?>>
<div class="module w1200">
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img width="<?php echo $this->_var['posti']['ad_width']; ?>" height="<?php echo $this->_var['posti']['ad_height']; ?>" src="<?php echo $this->_var['posti']['ad_code']; ?>" /></a>
<div class="close"></div>
</div>
</div>
<?php else: ?>
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img width="<?php echo $this->_var['posti']['ad_width']; ?>" height="<?php echo $this->_var['posti']['ad_height']; ?>" src="<?php echo $this->_var['posti']['ad_code']; ?>" /></a>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>