Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.34 KB | None | 0 0
  1. <?php if (Mage::getStoreConfig('easybanner/info/enabled')):?>
  2. <script src="<?php echo $this->getSkinUrl('js/easybanner/jquery.pikachoose.js')?>" type="text/javascript"></script>
  3.  
  4. <?php if ($this->isVisible()): ?>
  5. <?php $_banner = $this->getBanner(); ?>
  6. <?php if ($_banner->getShowTitle()==1): ?>
  7. <!--<h3><?php // echo $_banner->getTitle(); ?></h3>-->
  8. <?php endif; ?>
  9. <div class="pikachoose" style="width:<?php echo $_banner->getWidth().'px'?>;" >
  10. <ul id="pikame" >        
  11.     <?php $_banner_items = $this->getBannerItems(); ?>
  12.     <?php foreach ($_banner_items as $_banner_item): ?>
  13.     <li>
  14.         <a href="<?php echo $_banner_item->getLinkUrl(); ?>">
  15.             <?php if ($_banner_item->getImage()): ?>
  16.                 <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).$_banner_item->getImage()?>" width="<?php echo $_banner->getWidth().'px'?> "  height=" <?php echo $_banner->getHeight().'px'?>" alt="Wild Pacific Salmon"/>
  17.             <?php elseif ($_banner_item->getImageUrl()): ?>
  18.                 <img src="<?php echo $_banner_item->getImageUrl() ?>" width="<?php echo $_banner->getWidth().'px'?> " height=" <?php echo $_banner->getHeight().'px'?>" alt="Wild Pacific Salmon"  />
  19.             <?php endif; ?>
  20.             </a>  
  21.             <?php  echo $_banner_item->getTitle(); ?>
  22.             <span><?php  echo $_banner_item->getTitle(); ?></span>
  23.     </li>
  24.         <?php endforeach ?>
  25.         <?php endif; ?>
  26. </ul>
  27. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement