Advertisement
vikasrao999

Untitled

Jun 9th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.60 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Magento
  5. *
  6. * NOTICE OF LICENSE
  7. *
  8. * This source file is subject to the Academic Free License (AFL 3.0)
  9. * that is bundled with this package in the file LICENSE_AFL.txt.
  10. * It is also available through the world-wide-web at this URL:
  11. * http://opensource.org/licenses/afl-3.0.php
  12. * If you did not receive a copy of the license and are unable to
  13. * obtain it through the world-wide-web, please send an email
  14. * to license@magentocommerce.com so we can send you a copy immediately.
  15. *
  16. * DISCLAIMER
  17. *
  18. * Do not edit or add to this file if you wish to upgrade Magento to newer
  19. * versions in the future. If you wish to customize Magento for your
  20. * needs please refer to http://www.magentocommerce.com for more information.
  21. *
  22. * @category design
  23. * @package base_default
  24. * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
  25. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  26. */
  27.  
  28. Supported layout update handles (action):
  29. - catalog_product_gallery
  30. - catalog_product_compare_index
  31.  
  32. Supported layout update handles (special):
  33. - default
  34. - catalog_category_default
  35. - catalog_category_layered
  36. - catalog_product_view
  37.  
  38. -->
  39. <layout version="0.1.0">
  40.  
  41. <!--Default layout, loads most of the pages-->
  42. <catalog_category_view>
  43. <remove name="block-community" />
  44. <remove name="block-user5" />
  45. <reference name="left">
  46. </reference>
  47. </catalog_category_view>
  48. <default>
  49. <!-- Mage_Catalog -->
  50. <reference name="root">
  51. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  52. </reference>
  53. <reference name="top.menu">
  54. <block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/>
  55. </reference>
  56. <reference name="top.mobinav">
  57. <block type="catalog/navigation" name="catalog.topmobinav" template="catalog/navigation/mobinav.phtml"/>
  58. </reference>
  59. <!--<reference name="banner">
  60.  
  61. </reference> -->
  62. <reference name="footer_links">
  63. <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
  64. </reference>
  65. <block type="catalog/product_price_template" name="catalog_product_price_template" />
  66.  
  67. </default>
  68.  
  69. <!--Category default layout-->
  70. <catalog_category_default translate="label">
  71. <label>Catalog Category (Non-Anchor)</label>
  72. <reference name="content">
  73. <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  74. <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  75. <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  76. <block type="page/html_pager" name="product_list_toolbar_pager"/>
  77. </block>
  78. <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>5</count></action>
  79. <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
  80. <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
  81. <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
  82. <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
  83. <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  84. </block>
  85. </block>
  86. </reference>
  87. </catalog_category_default>
  88.  
  89. <!--Category layered navigation layout-->
  90. <catalog_category_layered translate="label">
  91. <label>Catalog Category (Anchor)</label>
  92. <reference name="left">
  93. </reference>
  94. <reference name="content">
  95. <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
  96. <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
  97. <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
  98. <block type="page/html_pager" name="product_list_toolbar_pager"/>
  99. </block>
  100. <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>5</count></action>
  101. <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
  102. <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
  103. <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
  104. <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
  105. <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
  106. </block>
  107. </block>
  108. </reference>
  109. </catalog_category_layered>
  110.  
  111. <catalog_category_layered_nochildren translate="label">
  112. <label>Catalog Category (Without Subcategories)</label>
  113. <remove name="right.poll" />
  114. <remove name="right.reports.product.viewed" />
  115. <reference name="right">
  116. </reference>
  117. </catalog_category_layered_nochildren>
  118.  
  119. <!--Compare products page-->
  120. <catalog_product_compare_index translate="label">
  121. <label>Catalog Product Compare List</label>
  122. <!-- Mage_Catalog -->
  123. <reference name="root">
  124. <action method="setTemplate"><template>page/popup.phtml</template></action>
  125. </reference>
  126. <reference name="head">
  127. <action method="addJs"><script>scriptaculous/scriptaculous.js</script></action>
  128. <action method="addJs"><script>varien/product.js</script></action>
  129. </reference>
  130. <reference name="content">
  131. <block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>
  132. </reference>
  133. </catalog_product_compare_index>
  134.  
  135. <customer_account_index>
  136. <reference name="right">
  137. <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
  138. </reference>
  139. </customer_account_index>
  140.  
  141. <!--Product view-->
  142. <catalog_product_view translate="label">
  143. <remove name="block-community" />
  144. <remove name="block-user5" />
  145. <label>Catalog Product View (Any)</label>
  146. <!-- Mage_Catalog -->
  147. <reference name="root">
  148. <action method="setTemplate"><template>page/1column.phtml</template></action>
  149. </reference>
  150. <reference name="head">
  151. <action method="addJs"><script>varien/product.js</script></action>
  152. <action method="addJs"><script>varien/configurable.js</script></action>
  153. <action method="addItem"><type>js_css</type><name>calendar/calendar-win2k-1.css</name><params/></action>
  154. <action method="addItem"><type>js</type><name>calendar/calendar.js</name></action>
  155. <action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name></action>
  156. </reference>
  157. <reference name="content">
  158. <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
  159. <block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
  160. <block type="core/text_list" name="alert.urls" as="alert_urls" translate="label">
  161. <label>Alert Urls</label>
  162. </block>
  163. <action method="setTierPriceTemplate"><template>catalog/product/view/tierprices.phtml</template></action>
  164.  
  165. <block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml">
  166. <action method="setColumnCount"><columns>4</columns></action>
  167. <action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
  168. </block>
  169. <block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
  170.  
  171. <block type="catalog/product_list_related" name="catalog.product.related" as="product_related" template="catalog/product/list/related.phtml"/>
  172.  
  173. <block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
  174. <action method="addToParentGroup"><group>detailed_info</group></action>
  175. </block>
  176. <block type="catalog/product_view_attributes" name="product.attributes" as="additional" template="catalog/product/view/attributes.phtml">
  177.  
  178. </block>
  179. <block type="catalog/product_view" name="product.info.addto" as="addto" template="catalog/product/view/addto.phtml"/>
  180. <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="catalog/product/view/addtocart.phtml"/>
  181.  
  182. <block type="catalog/product_view" name="product.info.options.wrapper" as="product_options_wrapper" template="catalog/product/view/options/wrapper.phtml" translate="label">
  183. <label>Info Column Options Wrapper</label>
  184. <block type="core/template" name="options_js" template="catalog/product/view/options/js.phtml"/>
  185. <block type="catalog/product_view_options" name="product.info.options" as="product_options" template="catalog/product/view/options.phtml">
  186. <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/view/options/type/text.phtml</template></action>
  187. <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/view/options/type/file.phtml</template></action>
  188. <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/view/options/type/select.phtml</template></action>
  189. <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/view/options/type/date.phtml</template></action>
  190. </block>
  191. <block type="core/html_calendar" name="html_calendar" as="html_calendar" template="page/js/calendar.phtml"/>
  192. </block>
  193. <block type="catalog/product_view" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="catalog/product/view/options/wrapper/bottom.phtml" translate="label">
  194. <label>Bottom Block Options Wrapper</label>
  195. <action method="insert"><block>product.tierprices</block></action>
  196. <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/>
  197. <action method="append"><block>product.info.addtocart</block></action>
  198. <action method="append"><block>product.info.addto</block></action>
  199.  
  200. </block>
  201.  
  202. <block type="core/template_facade" name="product.info.container1" as="container1">
  203. <action method="setDataByKey"><key>alias_in_layout</key><value>container1</value></action>
  204. <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  205. <action method="append"><block>product.info.options.wrapper</block></action>
  206. <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  207. </block>
  208. <block type="core/template_facade" name="product.info.container2" as="container2">
  209. <action method="setDataByKey"><key>alias_in_layout</key><value>container2</value></action>
  210. <action method="setDataByKeyFromRegistry"><key>options_container</key><key_in_registry>product</key_in_registry></action>
  211. <action method="append"><block>product.info.options.wrapper</block></action>
  212. <action method="append"><block>product.info.options.wrapper.bottom</block></action>
  213. </block>
  214. <action method="unsetCallChild"><child>container1</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  215. <action method="unsetCallChild"><child>container2</child><call>ifEquals</call><if>0</if><key>alias_in_layout</key><key>options_container</key></action>
  216. </block>
  217. </reference>
  218. <reference name="right">
  219. <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
  220. </reference>
  221. <reference name="content">
  222. <reference name="product.info">
  223. <block type="page/html_pager" name="product_review_list.toolbar"/>
  224. <block type="review/product_view_list" name="product.info.product_additional_data" as="product_reviews" template="review/product/view/list.phtml" />
  225. <block type="review/form" name="product.review.form" as="review_form"/>
  226. </reference>
  227. </reference>
  228. </catalog_product_view>
  229.  
  230. <!--Additional block dependant on product type-->
  231. <PRODUCT_TYPE_simple translate="label" module="catalog">
  232. <label>Catalog Product View (Simple)</label>
  233. <reference name="product.info">
  234. <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
  235. <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
  236. <label>Product Extra Info</label>
  237. </block>
  238. </block>
  239. </reference>
  240. </PRODUCT_TYPE_simple>
  241. <PRODUCT_TYPE_configurable translate="label" module="catalog">
  242. <label>Catalog Product View (Configurable)</label>
  243. <reference name="product.info">
  244. <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
  245. <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
  246. <label>Product Extra Info</label>
  247. </block>
  248. </block>
  249. </reference>
  250. <reference name="product.info.options.wrapper">
  251. <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
  252. </reference>
  253. </PRODUCT_TYPE_configurable>
  254. <PRODUCT_TYPE_grouped translate="label" module="catalog">
  255. <label>Catalog Product View (Grouped)</label>
  256. <reference name="product.info">
  257. <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
  258. <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
  259. <label>Product Extra Info</label>
  260. </block>
  261. </block>
  262. </reference>
  263. </PRODUCT_TYPE_grouped>
  264. <PRODUCT_TYPE_virtual translate="label" module="catalog">
  265. <label>Catalog Product View (Virtual)</label>
  266. <reference name="product.info">
  267. <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
  268. <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
  269. <label>Product Extra Info</label>
  270. </block>
  271. </block>
  272. </reference>
  273. </PRODUCT_TYPE_virtual>
  274.  
  275. <!--Product send to friend-->
  276. <catalog_product_send translate="label">
  277. <label>Catalog Product Email to a Friend</label>
  278. <!-- Mage_Catalog -->
  279. <reference name="root">
  280. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  281. </reference>
  282. <reference name="head">
  283. <action method="addJs"><script>varien/product.js</script></action>
  284. </reference>
  285. <reference name="content">
  286. <block type="catalog/product_send" name="product.send" template="catalog/product/send.phtml">
  287. </block>
  288. </reference>
  289. </catalog_product_send>
  290.  
  291. <!--Product additional images gallery popup-->
  292. <catalog_product_gallery translate="label">
  293. <label>Catalog Product Image Gallery Popup</label>
  294. <!-- Mage_Catalog -->
  295. <reference name="root">
  296. <action method="setTemplate"><template>page/popup.phtml</template></action>
  297. </reference>
  298. <reference name="content">
  299. <block type="catalog/product_gallery" name="catalog_product_gallery" template="catalog/product/gallery.phtml"/>
  300. </reference>
  301. </catalog_product_gallery>
  302.  
  303. <!--SEO Site Map-->
  304. <catalog_seo_sitemap translate="label">
  305. <label>Catalog Seo Sitemap (Common)</label>
  306. <remove name="right"/>
  307. <!--<remove name="left"/>-->
  308.  
  309. <reference name="root">
  310. <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  311. </reference>
  312. <reference name="content">
  313. <block type="page/template_container" name="seo.sitemap.container" template="catalog/seo/sitemap/container.phtml">
  314. <block type="page/template_links" name="seo.sitemap.links" as="links" template="page/template/links.phtml"/>
  315. <block type="page/html_pager" name="seo.sitemap.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  316. <block type="page/html_pager" name="seo.sitemap.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  317. </block>
  318. </reference>
  319. </catalog_seo_sitemap>
  320.  
  321. <catalog_seo_sitemap_category translate="label">
  322. <label>Catalog Seo Sitemap (Category List)</label>
  323. <update handle="catalog_seo_sitemap" />
  324. <reference name="seo.sitemap.container">
  325. <action method="setTitle" translate="title" module="catalog"><title>Categories</title></action>
  326. <block type="catalog/seo_sitemap_category" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  327. <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  328. <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  329. <action method="setItemsTitle" translate="title" module="catalog"><title>categories</title></action>
  330. </block>
  331. </reference>
  332. <reference name="seo.sitemap.links">
  333. <action method="addLink" translate="label title" module="catalog"><label>Products Sitemap</label><url helper="catalog/map/getProductUrl"/><title>Products Sitemap</title></action>
  334. </reference>
  335. </catalog_seo_sitemap_category>
  336.  
  337. <catalog_seo_sitemap_category_tree translate="label">
  338. <label>Catalog Seo Sitemap (Category Tree)</label>
  339. <reference name="seo.sitemap.container">
  340. <remove name="seo.sitemap.pager.top" />
  341. <remove name="seo.sitemap.pager.bottom" />
  342. <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.top" as="pager_top" template="page/html/pager.phtml"/>
  343. <block type="catalog/seo_sitemap_tree_pager" name="seo.sitemap.tree.pager.bottom" as="pager_bottom" template="page/html/pager.phtml"/>
  344. <remove name="seo.sitemap.sitemap" />
  345. <block type="catalog/seo_sitemap_tree_category" name="seo.sitemap.sitemap_tree" as="sitemap" after="pager_top" template="catalog/seo/tree.phtml">
  346. <action method="bindPager"><pager>seo.sitemap.tree.pager.top</pager></action>
  347. <action method="bindPager"><pager>seo.sitemap.tree.pager.bottom</pager></action>
  348. </block>
  349. </reference>
  350. </catalog_seo_sitemap_category_tree>
  351.  
  352. <catalog_seo_sitemap_product translate="label">
  353. <label>Catalog Seo Sitemap (Product List)</label>
  354. <update handle="catalog_seo_sitemap" />
  355. <reference name="seo.sitemap.container">
  356. <action method="setTitle" translate="title" module="catalog"><title>Products</title></action>
  357. <block type="catalog/seo_sitemap_product" name="seo.sitemap.sitemap" as="sitemap" after="pager_top" template="catalog/seo/sitemap.phtml">
  358. <action method="bindPager"><pager>seo.sitemap.pager.top</pager></action>
  359. <action method="bindPager"><pager>seo.sitemap.pager.bottom</pager></action>
  360. <action method="setItemsTitle" translate="title" module="catalog"><title>products</title></action>
  361. </block>
  362. </reference>
  363. <reference name="seo.sitemap.links">
  364. <action method="addLink" translate="label title" module="catalog"><label>Categories Sitemap</label><url helper="catalog/map/getCategoryUrl"/><title>Categories Sitemap</title></action>
  365. </reference>
  366. </catalog_seo_sitemap_product>
  367.  
  368.  
  369. <!--Catalog search terms block-->
  370. <catalog_seo_searchterm_popular translate="label">
  371. <label>Catalog Seo Popular Search Terms</label>
  372. <remove name="right"/>
  373. <remove name="left"/>
  374. <reference name="root">
  375. <action method="setTemplate"><template>page/1column.phtml</template></action>
  376. </reference>
  377. <reference name="content">
  378. <block type="catalog/seo_searchterm" name="seo.searchterm" template="catalog/seo/searchterm.phtml"/>
  379. </reference>
  380. </catalog_seo_searchterm_popular>
  381.  
  382. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement