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
<div class="your-class"> | |
<div>your content</div> | |
<div>your content</div> | |
<div>your content</div> | |
</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; |
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 if( get_field('your-field') ): ?> | |
<?php get_field('your-field'); ?> | |
<?php endif; ?> |
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 if(get_field('some-field', 'option') == 'on') : ?><!–Output if toggled 'on'–> | |
<?php else : ?> | |
<!–Output if toggled 'off'–> | |
<?php endif; ?> |