Skip to content
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 …" />
<div class="filter-layout">
<aside class="filter-sidebar">
<div class="filter-filters">
<ul class="filter-categories">
<a href="<?= $page->url() ?>"><span class="filter-category-icon"><?= icon('list') ?></span> All recipes</a>
<a href="?new=true"><span class="filter-category-icon"><?= icon('star-outline') ?></span> New recipes</a>
<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>
<?php endforeach ?>
<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 ?>
<?php snippet('recipes', ['recipes' => $recipes]) ?>
<?php snippet('footer') ?>
You can’t perform that action at this time.