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
| <?xml version="1.0"?> | |
| <config> | |
| <modules> | |
| <Demac_Casl> | |
| <version>0.1.0</version> | |
| </Demac_Casl> | |
| </modules> | |
| <global> | |
| <models> | |
| <demac_casl> |
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
| function scss-compile { | |
| scss --compass -q \ | |
| -I "skin/frontend/enterprise/yeti/scss/styles/" \ | |
| "skin/frontend/enterprise/$1/scss/$1.scss" \ | |
| "skin/frontend/enterprise/$1/css/$1.css" \ | |
| && echo "Compile succeeded!" \ | |
| || echo "Compile failed!" | |
| } | |
| function scss-compile-debug { |
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
| ... | |
| <catalog_category_layered> | |
| <reference name="root"> | |
| <action method="setTemplate" ifconfig="layout_config/layouts/isUsing2Columns><template>page/2columns-left.phtml</template></action> | |
| <action method="setTemplate" ifconfig="layout_config/layouts/isUsing1Column"><template>page/1column.phtml</template></action> | |
| <action method="setTemplate" ifconfig="layout_config/layouts/isUsing3Columns"><template>page/3columns.phtml</template></action> | |
| </reference> | |
| </catalog_category_layered> | |
| ... |
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
| <?php | |
| class DavidF_LayoutConfig_Model_Adminhtml_System_Config_Source_CatalogPage | |
| { | |
| public function toOptionArray() | |
| { | |
| $toReturn = array(); | |
| $toReturn[2]['value'] = '3columns'; | |
| $toReturn[2]['label'] = '3 Columns with Polls'; | |
| $toReturn[1]['value'] = '1column'; |
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
| <?php | |
| class DavidF_LayoutConfig_Model_Observer | |
| { | |
| protected function _findScope($data) | |
| { | |
| if (is_null($data['store']) && $data['website']) { | |
| return $data['website']; | |
| } elseif ($data['store']) { |
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
| <config> | |
| <modules> | |
| <DavidF_LayoutConfig> | |
| <version>0.0.1</version> | |
| </DavidF_LayoutConfig> | |
| </modules> | |
| <global> | |
| <models> | |
| <davidf_layoutconfig> | |
| <class>DavidF_LayoutConfig_Model</class> |
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
| ... | |
| <catalog_category_layered> | |
| <reference name="root"> | |
| <action method="setTemplate"><template>page/2columns-left.phtml</template></action> | |
| <action method="setTemplate" ifconfig="layout_config/layouts/catalog_page"><template>page/1column.phtml</template></action> | |
| </reference> | |
| </catalog_category_layered> | |
| ... |
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
| <?php | |
| class DavidF_LayoutConfig_Model_Adminhtml_System_Config_Source_CatalogPage | |
| { | |
| public function toOptionArray() | |
| { | |
| $toReturn = array(); | |
| $toReturn[1]['value'] = '1'; | |
| $toReturn[1]['label'] = '1 Column with Topnav'; | |
| $toReturn[0]['value'] = '0'; |
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
| <?xml version="1.0"?> | |
| <config> | |
| <tabs> | |
| <layout_config translate="label" module="davidf_layoutconfig"> | |
| <label>Configurable Layout</label> | |
| <sort_order>150</sort_order> | |
| </layout_config> | |
| </tabs> | |
| <sections> | |
| <layout_config translate="label" module="davidf_layoutconfig"> |
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
| <?xml version="1.0"?> | |
| <config> | |
| <modules> | |
| <DavidF_LayoutConfig> | |
| <active>true</active> | |
| <codePool>local</codePool> | |
| </DavidF_LayoutConfig> | |
| </modules> | |
| </config> |