Skip to content

Instantly share code, notes, and snippets.

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