Add a new block : body-class

This commit is contained in:
touffies
2013-10-01 11:53:19 +02:00
parent ed335847ce
commit 988fe23b78
13 changed files with 24 additions and 1 deletions

View File

@@ -4,6 +4,8 @@
{check_auth context="front" roles="CUSTOMER" login_tpl="login"}
{/block}
{block name="body-class"}page-account{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">{intl l="You are here"}: </strong>

View File

@@ -4,6 +4,8 @@
{check_auth context="front" roles="CUSTOMER" login_tpl="login"}
{/block}
{block name="body-class"}page-address{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">{intl l="You are here"}: </strong>

View File

@@ -4,6 +4,8 @@
{check_auth context="front" roles="CUSTOMER" login_tpl="login"}
{/block}
{block name="body-class"}page-address{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">You are here: </strong>

View File

@@ -10,6 +10,8 @@
</nav><!-- /.nav-breadcrumb -->
{/block}
{block name="body-class"}page-cart{/block}
{block name="main-content"}
<div class="main">
<article id="cart" class="col-main" role="main" aria-labelledby="main-label">

View File

@@ -1,5 +1,6 @@
{extends file="layout.tpl"}
{block name="body-class"}page-home{/block}
{block name="main-content"}
<section class="carousel-container">

View File

@@ -35,7 +35,7 @@ URL: http://www.thelia.net
{block name="stylesheet"}{/block}
</head>
<body class="page-home" itemscope itemtype="http://schema.org/WebPage">
<body class="{block name="body-class"}{/block}" itemscope itemtype="http://schema.org/WebPage">
<!-- Accessibility -->
<a class="sr-only" href="#content">Skip to content</a>

View File

@@ -1,5 +1,7 @@
{extends file="layout.tpl"}
{block name="body-class"}page-login{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">{intl l="You are here"}: </strong>

View File

@@ -5,6 +5,8 @@
{check_cart_not_empty}
{/block}
{block name="body-class"}page-order-delivery{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">You are here: </strong>

View File

@@ -6,6 +6,8 @@
{check_valid_delivery}
{/block}
{block name="body-class"}page-order-invoice{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">You are here: </strong>

View File

@@ -1,5 +1,7 @@
{extends file="layout.tpl"}
{block name="body-class"}page-order-payment{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">You are here: </strong>

View File

@@ -1,5 +1,7 @@
{extends file="layout.tpl"}
{block name="body-class"}page-password{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">{intl l="You are here"} </strong>

View File

@@ -1,5 +1,7 @@
{extends file="layout.tpl"}
{block name="body-class"}page-product{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">You are here: </strong>

View File

@@ -1,5 +1,7 @@
{extends file="layout.tpl"}
{block name="body-class"}page-register{/block}
{block name="breadcrumb"}
<nav class="nav-breadcrumb" role="navigation" aria-labelledby="breadcrumb-label">
<strong id="breadcrumb-label">{intl l="You are here"}: </strong>