22 changed files with 167 additions and 14 deletions
@ -0,0 +1,47 @@ |
|||
<?php |
|||
|
|||
switch($_GET['q']) { |
|||
case 'raccontare': |
|||
$levels[0] = array('raccontare', '/raccontare'); |
|||
break; |
|||
case 'conoscere': |
|||
$levels[0] = array('conoscere', '/conoscere'); |
|||
break; |
|||
case 'produrre': |
|||
$levels[0] = array('produrre', '/produrre'); |
|||
break; |
|||
case 'acquistare': |
|||
$levels[0] = array('acquistare', '/acquistare'); |
|||
break; |
|||
|
|||
case 'due-cucchiai-di-salute': |
|||
$levels[0] = array('raccontare', '/raccontare'); |
|||
$levels[1] = array('Due cucchiai di salute', '/due-cucchiai-di-salute'); |
|||
break; |
|||
case 'le-variabili-del-gusto': |
|||
$levels[0] = array('raccontare', '/raccontare'); |
|||
$levels[1] = array('Le variabili del gusto', '/le-variabili-del-gusto'); |
|||
break; |
|||
case 'un-olio-da-strippare': |
|||
$levels[0] = array('raccontare', '/raccontare'); |
|||
$levels[1] = array('Un olio da... strippare', '/un-olio-da-strippare'); |
|||
break; |
|||
} |
|||
?> |
|||
|
|||
<div class="component-breadcrumb"> |
|||
<div class="container"> |
|||
<ul class="items"> |
|||
<li class="item"> |
|||
<a class="link" href="/iolovolio">iolovolio</a> |
|||
</li> |
|||
|
|||
<?php |
|||
foreach($levels as $level) { |
|||
echo '<li class="item"> <a class="link" href="'.$level[1].'">'.$level[0].'</a></li>'; |
|||
} |
|||
|
|||
?> |
|||
</ul> |
|||
</div> |
|||
</div> |
@ -0,0 +1,5 @@ |
|||
|
|||
$(document).ready( () => { |
|||
console.log('Load component - breadcrumb') |
|||
|
|||
}) |
@ -0,0 +1,45 @@ |
|||
@import "../../src/scss/variables.scss"; |
|||
@import "../../src/scss/mixins.scss"; |
|||
|
|||
.component-breadcrumb { |
|||
display: block; |
|||
padding-top: $header-height-mobile+60; |
|||
margin-bottom: 20px; |
|||
|
|||
.items { |
|||
display: block; |
|||
list-style: none; |
|||
padding: 20px 0 15px 0; |
|||
border-bottom: 1px solid $black-alpha; |
|||
|
|||
.item { |
|||
display: inline; |
|||
@include font-style($font-sans, 'regular', $font-18); |
|||
color: $gray; |
|||
|
|||
.link { |
|||
color: $gray; |
|||
} |
|||
|
|||
&:after { |
|||
content: '>'; |
|||
padding: 0 4px; |
|||
font-size: $font-14; |
|||
} |
|||
|
|||
&:last-of-type { |
|||
font-weight: bold; |
|||
&:after { |
|||
content: ''; |
|||
} |
|||
} |
|||
|
|||
} |
|||
} |
|||
} |
|||
|
|||
@media (min-width: map-get($grid-breakpoints, 'md')) { |
|||
.component-breadcrumb { |
|||
padding-top: $header-height+60; |
|||
} |
|||
} |
@ -0,0 +1,8 @@ |
|||
<?php |
|||
@include('components/breadcrumb/breadcrumb.php'); |
|||
?> |
|||
|
|||
<div class="component-buy"> |
|||
<div class="row no-gutters"> |
|||
</div> |
|||
</div> |
@ -0,0 +1,5 @@ |
|||
|
|||
$(document).ready( () => { |
|||
console.log('Load component - buy') |
|||
|
|||
}) |
@ -0,0 +1,7 @@ |
|||
@import "../../src/scss/variables.scss"; |
|||
@import "../../src/scss/mixins.scss"; |
|||
|
|||
.component-buy { |
|||
padding-top: $header-height-mobile+60px; |
|||
|
|||
} |
@ -0,0 +1,2 @@ |
|||
|
|||
${require('../components/buy/buy.html')} |
Loading…
Reference in new issue