Making schema.org
Well, nothing is clear with this scheme :(
This commit is contained in:
parent
075a6d8a27
commit
0742e2b112
2 changed files with 22 additions and 22 deletions
app/templates/layouts
|
@ -1,16 +1,16 @@
|
|||
@section ('crumbs')
|
||||
<nav>
|
||||
<ol class="f-crumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
|
||||
<ol class="f-crumbs" itemscope itemtype="https://schema.org/BreadcrumbList">
|
||||
@foreach ($p->crumbs as $cur)
|
||||
@if (\is_object($cur[0]))
|
||||
<li class="f-crumb @if ($cur[0]->is_subscribed) f-subscribed @endif" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><!-- inline -->
|
||||
<li class="f-crumb @if ($cur[0]->is_subscribed) f-subscribed @endif" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><!-- inline -->
|
||||
<a class="f-crumb-a @if ($cur[2]) active" aria-current="page @endif" href="{{ $cur[0]->link }}" itemprop="item">
|
||||
<span itemprop="name">{!! __($cur[1]) !!}</span>
|
||||
</a>
|
||||
<meta itemprop="position" content="{!! @iteration !!}">
|
||||
</li><!-- endinline -->
|
||||
@else
|
||||
<li class="f-crumb" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><!-- inline -->
|
||||
<li class="f-crumb" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><!-- inline -->
|
||||
@if ($cur[0])
|
||||
<a class="f-crumb-a @if ($cur[2]) active" aria-current="page @endif" href="{{ $cur[0] }}" itemprop="item">
|
||||
<span itemprop="name">{!! __($cur[1]) !!}</span>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<body>
|
||||
<div id="fork" @if ($p->fNavigation) class="f-with-nav" @endif>
|
||||
<header id="fork-header">
|
||||
<h1 id="id-fhth1"><a id="id-fhtha" href="{{ $p->fRootLink }}">{{ $p->fTitle }}</a></h1>
|
||||
<h1 id="id-fhth1"><a id="id-fhtha" rel="home" href="{{ $p->fRootLink }}">{{ $p->fTitle }}</a></h1>
|
||||
@if ('' != $p->fDescription)
|
||||
<p id="id-fhtdesc">{!! $p->fDescription !!}</p>
|
||||
@endif
|
||||
|
@ -25,22 +25,22 @@
|
|||
<div id="fork-navdir">
|
||||
<input id="id-mn-checkbox" class="f-menu-checkbox" type="checkbox">
|
||||
<label id="id-mn-label" class="f-menu-toggle" for="id-mn-checkbox"><span class="f-menu-tsp">{!! __('Main menu') !!}</span></label>
|
||||
<ul class="f-menu-items">
|
||||
<ul class="f-menu-items" itemscope itemtype="https://schema.org/SiteNavigationElement" role="menu">
|
||||
@foreach ($p->fNavigation as $key => $val)
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item"><!-- inline -->
|
||||
<a class="f-menu-a @if ($key == $p->fIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif>
|
||||
<span class="f-menu-span">{!! __($val[1]) !!}</span>
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item" itemprop="about" itemscope itemtype="https://schema.org/ItemList" role="menuitem"><!-- inline -->
|
||||
<a class="f-menu-a @if ($key == $p->fIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif itemprop="url">
|
||||
<span class="f-menu-span" itemprop="name">{!! __($val[1]) !!}</span>
|
||||
</a>
|
||||
@if ($val[3])
|
||||
<ul class="f-submenu-items">
|
||||
<ul class="f-submenu-items" itemscope itemtype="https://schema.org/SiteNavigationElement" role="menu">
|
||||
@foreach ($val[3] as $key => $val)
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item">
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item" itemprop="about" itemscope itemtype="https://schema.org/ItemList" role="menuitem">
|
||||
@if ($val[0])
|
||||
<a class="f-menu-a @if ($key == $p->fSubIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif>
|
||||
<span class="f-menu-span">{!! __($val[1]) !!}</span>
|
||||
<a class="f-menu-a @if ($key == $p->fSubIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif itemprop="url">
|
||||
<span class="f-menu-span" itemprop="name">{!! __($val[1]) !!}</span>
|
||||
</a>
|
||||
@else
|
||||
<span class="f-menu-span">{!! __($val[1]) !!}</span>
|
||||
<span class="f-menu-span" itemprop="name">{!! __($val[1]) !!}</span>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
|
@ -50,22 +50,22 @@
|
|||
@endforeach
|
||||
</ul>
|
||||
@if ($p->fNavigationUser)
|
||||
<ul class="f-menu-user-items">
|
||||
<ul class="f-menu-user-items" itemscope itemtype="https://schema.org/SiteNavigationElement" role="menu">
|
||||
@foreach ($p->fNavigationUser as $key => $val)
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item @if ($val[4]) f-mi-{{ \implode(' f-mi-', $val[4]) }} @endif"><!-- inline -->
|
||||
<a class="f-menu-a @if ($key == $p->fIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif>
|
||||
<span class="f-menu-span">{!! __($val[1]) !!}</span>
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item @if ($val[4]) f-mi-{{ \implode(' f-mi-', $val[4]) }} @endif" itemprop="about" itemscope itemtype="https://schema.org/ItemList" role="menuitem"><!-- inline -->
|
||||
<a class="f-menu-a @if ($key == $p->fIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif itemprop="url">
|
||||
<span class="f-menu-span" itemprop="name">{!! __($val[1]) !!}</span>
|
||||
</a>
|
||||
@if ($val[3])
|
||||
<ul class="f-submenu-items">
|
||||
<ul class="f-submenu-items" itemscope itemtype="https://schema.org/SiteNavigationElement" role="menu">
|
||||
@foreach ($val[3] as $key => $val)
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item">
|
||||
<li id="fork-nav-{{ $key }}" class="f-menu-item" itemprop="about" itemscope itemtype="https://schema.org/ItemList" role="menuitem">
|
||||
@if ($val[0])
|
||||
<a class="f-menu-a @if ($key == $p->fSubIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif>
|
||||
<span class="f-menu-span">{!! __($val[1]) !!}</span>
|
||||
<a class="f-menu-a @if ($key == $p->fSubIndex) active @endif" href="{{ $val[0] }}" @if ($val[2]) title="{{ __($val[2]) }}" @endif itemprop="url">
|
||||
<span class="f-menu-span" itemprop="name">{!! __($val[1]) !!}</span>
|
||||
</a>
|
||||
@else
|
||||
<span class="f-menu-span">{!! __($val[1]) !!}</span>
|
||||
<span class="f-menu-span" itemprop="name">{!! __($val[1]) !!}</span>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
|
|
Loading…
Add table
Reference in a new issue