From f00ccc6adae2d2c11d128cce7af9b3db41dc52e5 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke <dineshsalunke@consultbop.com> Date: Fri, 3 Nov 2023 13:59:40 +0530 Subject: [PATCH] refactor: index extends page --- templates/index.tpl | 66 +-------------------------------------------- 1 file changed, 1 insertion(+), 65 deletions(-) diff --git a/templates/index.tpl b/templates/index.tpl index bba5192..106fea8 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -22,68 +22,4 @@ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} -<!doctype html> -<html lang="{$language.iso_code}"> - - <head> - {block name='head'} - {include file='_partials/head.tpl'} - {/block} - </head> - - <body id="{$page.page_name}" class="{$page.body_classes|classnames}"> - - {block name='hook_after_body_opening_tag'} - {hook h='displayAfterBodyOpeningTag'} - {/block} - - <main> - {block name='product_activation'} - {include file='catalog/_partials/product-activation.tpl'} - {/block} - - <header id="header"> - {block name='header'} - {include file='_partials/header.tpl'} - {/block} - </header> - - {block name='notifications'} - {include file='_partials/notifications.tpl'} - {/block} - - <section id="wrapper" class="flex flex-col gap-16"> - <div class="relative h-screen w-full bg-gray-100"> - <img src="http://localhost:5004/modules/ps_imageslider/images/a62b5011776c90cd3faacd830d4ea9ffeca982d4_new_site_banner.png" class="absolute w-full h-screen top-0 left-0 object-cover" /> - </div> - {hook h="displayWrapperTop"} - <div class="container mx-auto"> - {block name="content_wrapper"} - <div id="content-wrapper" class="flex flex-col gap-8"> - {hook h="displayContentWrapperTop"} - {$HOOK_HOME nofilter} - {hook h="displayContentWrapperBottom"} - </div> - {/block} - </div> - {hook h="displayWrapperBottom"} - </section> - - <footer id="footer" class="mt-16"> - {block name="footer"} - {include file="_partials/footer.tpl"} - {/block} - </footer> - - </main> - - {block name='javascript_bottom'} - {include file="_partials/javascript.tpl" javascript=$javascript.bottom} - {/block} - - {block name='hook_before_body_closing_tag'} - {hook h='displayBeforeBodyClosingTag'} - {/block} - </body> - -</html> +{extends file=$layout}