{* To modify and rearrange content blocks in your storefront pages or change the page structure, use the layout editor under Design->Layouts in your admin panel. There, you can: * modify the page layout * make it fluid or static * set the number of columns * add, remove, and move blocks * change block templates and types and more. You only need to edit a .tpl file to create a new template or modify an existing one; often, this is not the case. Basic layouting concepts: This theme uses the Twitter Bootstrap 2.3 CSS framework. A layout consists of four containers (CSS class .container): TOP PANEL, HEADER, CONTENT, and FOOTER. Containers are partitioned with fixed-width grids (CSS classes .span1, .span2, etc.). Content blocks live inside grids. You can drag'n'drop blocks from grid to grid in the layout editor. A block represents a certain content type (e.g. products) and uses a certain template to display it (e.g. list with thumbnails). *} {capture name="page_title"} {hook name="index:title"} {if $page_title} {$page_title} {else} {if $language_direction == "rtl"} {if $breadcrumbs} {foreach from=$breadcrumbs|array_reverse item=i name="bkt"} {if !$smarty.foreach.bkt.last}{if !$smarty.foreach.bkt.last && !$smarty.foreach.bkt.first} :: {/if}{$i.title|strip_tags}{/if} {/foreach} {/if} {else} {foreach from=$breadcrumbs item=i name="bkt"} {if !$smarty.foreach.bkt.first}{$i.title|strip_tags}{if !$smarty.foreach.bkt.last} :: {/if}{/if} {/foreach} {/if} {if !$skip_page_title && $location_data.title}{if $breadcrumbs|count > 1} - {/if}{$location_data.title}{/if} {/if} {/hook} {/capture} {$smarty.capture.page_title|strip|trim nofilter} {include file="meta.tpl"} {hook name="index:links"} {/hook} {include file="common/styles.tpl" include_dropdown=true} {if "DEVELOPMENT"|defined && $smarty.const.DEVELOPMENT == true} {/if} {hook name="index:head_scripts"}{/hook} {hook name="index:body"} {if $runtime.customization_mode.design} {include file="common/toolbar.tpl" title=__("on_site_template_editing") href="customization.disable_mode?type=design&return_url={$config.current_url|urlencode}" } {elseif "THEMES_PANEL"|defined || $auth.user_type === "UserTypes::ADMIN"|enum} {include file="backend:components/bottom_panel/bottom_panel.tpl"} {/if}
{include file="common/loading_box.tpl"} {include file="common/notification.tpl"}
{hook name="index:content"} {* NOTE: render_location - call a Smarty function that builds a page structure according to the layout (see Design->Layouts). The function renders a template and generates blocks depending on 'dispatch'. *} {render_location} {/hook}
{hook name="index:footer"}{/hook}
{include file="common/scripts.tpl"} {if $runtime.customization_mode.design} {include file="backend:common/template_editor.tpl"} {/if} {if $runtime.customization_mode.theme_editor} {include file="backend:common/theme_editor.tpl"} {/if} {/hook}