Skip to content

Instantly share code, notes, and snippets.

@St0iK
Last active July 16, 2016 22:20
Show Gist options
  • Select an option

  • Save St0iK/6ec0919278f39d454cc1dbf830ec913c to your computer and use it in GitHub Desktop.

Select an option

Save St0iK/6ec0919278f39d454cc1dbf830ec913c to your computer and use it in GitHub Desktop.
/**
* Homepagetemplate block
*
*
<p>CMS homepage content goes here.</p>
<p>{{widget type="Creode\Banner\Block\Widget\BannerSlider" group="group" sliderwidth="500"}}</p>
<p>{{widget type="Creode\Customreviews\Block\Widget\Customreviewsslider" group="homepagereviews" sliderwidth="500"}}</p>
<p>{{widget type="Creode\Featuredproduct\Block\Widget\Featuredproduct" title="Title" product_title="Product Title" background_image="test" button_text="test" button_link="test"}}</p>
<p>{{widget type="Creode\Categoryblocks\Block\Widget\Categoryblocks" title_1="dsfsdf" category_title_1="sdf" image_1="sdf" button_text_1="sdf" button_link_1="sdf" title_2="sdf" category_title_2="asd" image_2="asd" button_text_2="asd" button_link_2="asd" title_3="asd" category_title_3="asd" image_3="asd" button_text_3="asdasd" button_link_3="asd" title_4="asd" category_title_4="asd" image_4="asd" button_text_4="asdasd" button_link_4="asdasdasd"}}</p>
<p></p>
<p>{{widget type="Magento\CatalogWidget\Block\Product\ProductsList" title="Title" show_pager="1" products_per_page="5" products_count="10" template="product/widget/content/grid.phtml" conditions_encoded="a:1:[i:1;a:4:[s:4:`type`;s:50:`Magento|CatalogWidget|Model|Rule|Condition|Combine`;s:10:`aggregator`;s:3:`all`;s:5:`value`;s:1:`1`;s:9:`new_child`;s:0:``;]]" page_var_name="pxsbsj"}}</p>
<p></p>
<p></p>
<p>{{widget type="Creode\Staticblocktypeone\Block\Widget\Staticblocktypeone" title_1="asdasdasd" sub_title_1="asdasdasd" background_image_1="asdasd" link_1="asdasd" title_2="asd" sub_title_2="asd" background_image_2="a" link_2="asda" title_3="asd" sub_title_3="asdasd" background_image_3="asdasd" link_3="asdasdasdasd"}}</p>
<p>{{widget type="Creode\Staticblocktypetwo\Block\Widget\Staticblocktypetwo" title_1="asdad" image_1="asd" button_text_1="asdas" button_link_1="asd" title_2="asd" image_2="addfsd" button_text_2="sdfsdf" button_link_2="sfsdfsdf"}}</p>
*/
// public function getTitle()
// {
// // " group="homepagereviews" sliderwidth="500"
// // setTemplate("widget/bannerslider.phtml")
// // {{widget type="Creode\Categoryblocks\Block\Widget\Categoryblocks" title_1="dsfsdf" category_title_1="sdf" image_1="sdf" button_text_1="sdf" button_link_1="sdf" title_2="sdf" category_title_2="asd" image_2="asd" button_text_2="asd" button_link_2="asd" title_3="asd" category_title_3="asd" image_3="asd" button_text_3="asdasd" button_link_3="asd" title_4="asd" category_title_4="asd" image_4="asd" button_text_4="asdasd" button_link_4="asdasdasd"}}
// return $this->getLayout()->createBlock("Creode\Categoryblocks\Block\Widget\Categoryblocks")->setButtonText2("OLO setButtonText2")
// ->setCategoryTitle1("categoryTitle1")->toHtml();
// return $this->getLayout()->createBlock("Creode\Customreviews\Block\Widget\Customreviewsslider")->setGroup("homepagereviews")->setSliderwidth("500")->toHtml();
// return $this->scopeConfig->getValue(self::XML_PATH_EMAIL_RECIPIENT, $storeScope);
// return "Creode Homepagetemplate Homepagetemplate";
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment