Last active
August 29, 2015 14:18
-
-
Save fosturgh/0c5434aa769fac5318de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $banner_name = $this->getBannername() ;?> | |
<div class="single-item slider"> | |
<?php $slide = 1; ?> | |
<?php $static_block = $banner_name . $slide; ?> | |
<?php while ( Mage::getModel('cms/block')->load($static_block)->getIsActive()) { | |
echo '<div>'; | |
echo $this->getLayout()->createBlock('cms/block')->setBlockId($static_block)->toHtml(); | |
echo '</div>'; | |
$slide++; | |
$static_block = $banner_name . $slide; | |
} | |
?> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $banner_name = $this->getBannername() ;?> | |
<div class="single-item slider"> | |
<?php $slide = 1; ?> | |
<?php $static_block = $banner_name . $slide; ?> | |
<?php while ( Mage::getModel('cms/block')->load($static_block)->getIsActive()) { | |
echo '<div>'; | |
echo $this->getLayout()->createBlock('cms/block')->setBlockId($static_block)->toHtml(); | |
echo '</div>'; | |
$slide++; | |
$static_block = $banner_name . $slide; | |
} | |
?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment