Skip to content

Commit

Permalink
Merge pull request #7 from skeeks-cms/master-n
Browse files Browse the repository at this point in the history
Master n
  • Loading branch information
skeeks-semenov authored Aug 7, 2019
2 parents 29e5dbf + 9b37f5f commit dc90a65
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
15 changes: 10 additions & 5 deletions src/views/breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,30 @@
if (!isset($isShowLast)) {
$isShowLast = false;
}

?>
<section class="g-pb-0">
<div class="g-bg-cover__inner sx-breadcrumbs-wrapper">
<? if (count(\Yii::$app->breadcrumbs->parts) > 1) : ?>
<? $count = count(\Yii::$app->breadcrumbs->parts); ?>
<? $counter = 0; ?>
<ul class="u-list-inline">
<ul class="u-list-inline" itemscope itemtype="http://schema.org/BreadcrumbList">
<? foreach (\Yii::$app->breadcrumbs->parts as $data) : ?>
<? $counter++; ?>
<? if ($counter == $count): ?>
<? if ($isShowLast) : ?>
<li class="list-inline-item">
<span><?= $data['name']; ?></span>
<li class="list-inline-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<span itemprop="name"><?= $data['name']; ?></span>
<link itemprop="item" href="<?= $data['url']; ?>">
<meta itemprop="position" content="<?= $counter; ?>" />
</li>
<? endif; ?>
<? else : ?>
<li class="list-inline-item g-mr-7">
<a href="<?= $data['url']; ?>" class="u-link-v5 g-color-main" title="<?= $data['name']; ?>"><?= $data['name']; ?></a>
<li class="list-inline-item g-mr-7" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="<?= $data['url']; ?>" class="u-link-v5 g-color-main" title="<?= $data['name']; ?>"><?= $data['name']; ?></a>
<i class="fa fa-angle-right g-ml-7"></i>
<meta itemprop="name" content="<?= $data['name']; ?>">
<meta itemprop="position" content="<?= $counter; ?>" />
</li>
<? endif; ?>
<? endforeach; ?>
Expand Down
2 changes: 1 addition & 1 deletion src/views/headers/header-v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@
</nav>
</div>
</header>
<!-- End Header -->
<!-- End Header -->
1 change: 0 additions & 1 deletion src/views/headers/header-v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
</span>
</button>
<!-- End Responsive Toggle Button -->

<!-- Logo -->
<a href="<?= \yii\helpers\Url::home(); ?>" class="navbar-brand" title="<?= $this->theme->title; ?>">
<img src="<?= $this->theme->logo; ?>" alt="<?= $this->theme->title; ?>">
Expand Down
1 change: 0 additions & 1 deletion src/views/headers/header-v3.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@
</span>
</button>
<!-- End Responsive Toggle Button -->

<!-- Logo -->
<a href="<?= \yii\helpers\Url::home(); ?>" title="<?= $this->theme->title; ?>" class="navbar-brand">
<img src="<?= $this->theme->logo; ?>" alt="<?= $this->theme->title; ?>">
Expand Down
10 changes: 9 additions & 1 deletion src/views/modals.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@
//'viewFile' => '@app/views/widgets/FormWidget/fiz-connect'
]); ?>

<? $modal::end(); ?>
<? $modal::end(); ?>
<div style="display: none;" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="<?= $this->theme->title; ?>">
<meta itemprop="telephone" content="<?= $this->theme->phone; ?>">
<meta itemprop="address" content="<?= $this->theme->address; ?>">
<meta itemprop="email" content="<?= $this->theme->email; ?>">
<meta itemprop="url" content="<?= \yii\helpers\Url::home(true); ?>">
<meta itemprop="logo" content="<?= $this->theme->logo; ?>">
</div>

0 comments on commit dc90a65

Please sign in to comment.