%%81^814^814E14EA%%banner.tpl.php 5.44 KB
<?php /* Smarty version 2.6.16, created on 2015-07-24 13:57:57
         compiled from box/banner.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'box/banner.tpl', 12, false),array('function', 'randomize', 'box/banner.tpl', 19, false),)), $this); ?>
<?php if ($this->_tpl_vars['banner']['id'] > 0): ?>
<div class="banner_t" align="center">
        <?php if ($this->_tpl_vars['banner']['type'] == 'flash'): ?>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="<?php echo $this->_tpl_vars['banner']['width']; ?>
" height="<?php echo $this->_tpl_vars['banner']['height']; ?>
" id="wanka" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="http://extremstyle.ua/uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file']; ?>
" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://extremstyle.ua/uploaded/pic/banners/<?php echo $this->_tpl_vars['banner']['file']; ?>
" quality="high" wmode="transparent" bgcolor="#ffffff" width="<?php echo $this->_tpl_vars['banner']['width']; ?>
" height="<?php echo $this->_tpl_vars['banner']['height']; ?>
" name="wanka" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        <param name="wmode" value="transparent">
        </object>
        <?php elseif ($this->_tpl_vars['banner']['type'] == 'image'): ?>
        <a href="http://<?php echo $this->_tpl_vars['banner']['url']; ?>
"><img src="http://i1.extremstyle.ua/pic/banners/<?php echo $this->_tpl_vars['banner']['file']; ?>
" width="<?php echo $this->_tpl_vars['banner']['width']; ?>
" height="<?php echo $this->_tpl_vars['banner']['height']; ?>
" border="0" /></a>
        <?php if ($this->_tpl_vars['banner']['code']): ?><br /><a href="http://<?php echo $this->_tpl_vars['banner']['url']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['banner']['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</a><?php endif; ?>
        <?php elseif ($this->_tpl_vars['banner']['type'] == 'code'): ?>
        <?php echo ((is_array($_tmp=$this->_tpl_vars['banner']['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>

        <?php endif; ?>
</div>
<?php elseif ($this->_tpl_vars['banner'] && count ( $this->_tpl_vars['banner'] ) > 0): ?>
<div class="banner_t" align="center">
        <?php echo smarty_function_randomize(array('var' => 'bb','from' => $this->_tpl_vars['banner'],'sub_place' => $this->_tpl_vars['sub_place']), $this);?>

        <?php if ($this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['type'] == 'flash'): ?>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['width']; ?>
" height="<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['height']; ?>
" id="wanka" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="http://i1.extremstyle.ua/pic/banners/<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['file']; ?>
" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://i1.extremstyle.ua/pic/banners/<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['file']; ?>
" quality="high" wmode="transparent" bgcolor="#ffffff" width="<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['width']; ?>
" height="<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['height']; ?>
" name="wanka" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        <param name="wmode" value="transparent">
        </object>
        <?php elseif ($this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['type'] == 'image'): ?>
        <a href="http://<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['url']; ?>
"><img src="http://i1.extremstyle.ua/pic/banners/<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['file']; ?>
" width="<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['width']; ?>
" height="<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['height']; ?>
" border="0" /></a>
        <?php if ($this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['code']): ?><br /><a href="http://<?php echo $this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['url']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>
</a><?php endif; ?>
        <?php elseif ($this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['type'] == 'code'): ?>
        <?php echo ((is_array($_tmp=$this->_tpl_vars['banner'][$this->_tpl_vars['bb']]['code'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)); ?>

        <?php endif; ?>
</div>
<?php endif; ?>