Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 52 lines (42 sloc) 1.61 KB
<?php snippet('header') ?>
<main class="main">
<div id="cookbook" class="wrap">
<header class="hero filter-hero">
<h1><a href="<?= $page->url() ?>">Cookbook</a></h1>
<input class="filter-search search" placeholder="Search recipes …" />
</header>
<div class="filter-layout">
<aside class="filter-sidebar">
<div class="filter-filters">
<ul class="filter-categories">
<li>
<a href="<?= $page->url() ?>"><span class="filter-category-icon"><?= icon('list') ?></span> All recipes</a>
</li>
<li>
<a href="?new=true"><span class="filter-category-icon"><?= icon('star-outline') ?></span> New recipes</a>
</li>
</ul>
<h2 class="h6 -mb:medium">Categories</h2>
<ul class="filter-categories">
<?php foreach ($categories as $cat): ?>
<li<?php e($category === $cat->slug(), ' aria-current') ?>>
<a href="?category=<?= $cat->slug() ?>"><span class="filter-category-icon"><?= icon($cat->icon()) ?></span> <?= $cat->title() ?></a>
</li>
<?php endforeach ?>
</ul>
</div>
</aside>
<div class="filter-overview">
<h2 class="h6 -mb:medium">
<?php if ($category): ?>
<?php e($category, '<small>Category</small>: ' . $category->title()) ?>
<?php else: ?>
<?= e(get('new'), 'New', 'All') ?> recipes
<?php endif ?>
</h2>
<?php snippet('recipes', ['recipes' => $recipes]) ?>
</div>
</div>
</div>
</main>
<?php snippet('footer') ?>
You can’t perform that action at this time.