-
Notifications
You must be signed in to change notification settings - Fork 0
/
buttons.phtml
42 lines (36 loc) · 1.24 KB
/
buttons.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* YAWIK Landingpages
*
* @author Mathias Gelhausen <gelhausen@cross-solution.de>
* @filesource
* @copyright 2019 Cross Solution <https://www.cross-solution.de>
* @license MIT
*/
/* Provided variables:
* - $landingpages : Options\LandingpagesOptions
* - $slug : string|null
*/
declare(strict_types=1);
?>
<?php if ($children = $category->getCategories()):?>
<ul class="list-inline">
<?php foreach ($children as $child): ?>
<li><a class="btn btn-default" href="<?=$this->url('lang/landingpages', ['slug' => $child->getSlug()], true)?>"><?=$child->getName()?></a></li>
<?php endforeach ?>
</ul>
<?php endif ?>
<?php if ($pages = $category->getLandingpages()): ?>
<ul class="list-inline">
<?php foreach ($pages as $page): ?>
<li><a class="btn btn-default" href="<?=$this->url('lang/landingpages', ['slug' => $page->getSlug()], true)?>"><?=$page->getName()?></a></li>
<?php endforeach ?>
</ul>
<?php endif ?>
<?php if ($items = $category->getCombined()): ?>
<ul class="list-inline">
<?php foreach ($items as $item): ?>
<li><a class="btn btn-default" href="<?=$this->url('lang/landingpages', ['slug' => $item->getSlug()], true)?>"><?=$item->getName()?></a></li>
<?php endforeach ?>
</ul>
<?php endif ?>