Created
July 30, 2016 23:04
-
-
Save ahgood/ec8b97e10b7b620b5ba9d8312a7f3fa2 to your computer and use it in GitHub Desktop.
Magento phtml file include static block sample
This file contains hidden or 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="grid12-4"> | |
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-middle-caption-position1')->toHtml(); ?> | |
<?php echo $this->getLayout()->createBlock('ultimo/product_list_featured') | |
->setData('category_id', '37') | |
->setData('product_count', '8') | |
->setData('breakpoints', '[0, 1]') | |
->setData('timeout', '4000') | |
->setData('centered', '1') | |
->setData('size', 'size-s') | |
->setData('hide_button', '0') | |
->setData('block_name', 'Recommended Products') | |
->setTemplate('catalog/product/list_featured_slider_col1.phtml')->toHtml(); | |
?> | |
</div> | |
<div class="grid12-4" style="padding-top:18px;"> | |
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-middle-caption-position2')->toHtml(); ?> | |
</div> | |
<div class="grid12-4" style="padding-top:18px;"> | |
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-middle-caption')->toHtml(); ?> | |
</div> | |
<div class="clearer"></div> | |
<div class="grid12-8"> | |
<div class="widget widget-static-block"> | |
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-infomation-tips')->toHtml(); ?> | |
</div> | |
</div> | |
</div> | |
<div class="grid12-4"> | |
<div class="bloc_since widget"> | |
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('home-since')->toHtml(); ?> | |
</div> | |
</div> | |
</div> | |
<div class="clearer"></div> | |
<br/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment