Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php snippet('header') ?>
- <main class="main" role="main">
- <h1><time><?php echo $page->year() ?></time>/<?php echo $page->number() ?> <?php echo $page->title()->html() ?></h1>
- <?php foreach($page->images()->sortBy('sort', 'asc') as $image): ?>
- <figure>
- <img src="<?php echo thumb($image, array('width' => 880, 'height' => 900, 'upscale' => true))->url();?>" alt="<?php echo $page->title()->html() ?>">
- </figure>
- <?php endforeach ?>
- <?php
- $editorial = $page->children()->find('editorial');
- ?>
- <h2><?= $editorial->title() ?></h2>
- <div class="text"><?= $editorial->Editorial()->excerpt(200) ?>
- <a class="read_more" href="<?php echo $editorial->url() ?>"><?php echo l::get('more') ?></a>
- </div>
- <br/>
- <h2>In this issue</h2>
- <ul class="responsive-thumbnails" data-max-width="300px" data-max-height="300px" data-padding="10px">
- <?php foreach($page->children()->find('projects')->children() as $subpage): ?>
- <li>
- <a href="<?php echo $subpage->url() ?>">
- <?php echo thumb($subpage->image(), array('width' => 300, 'height' => 200, 'crop' => true)); ?>
- </a>
- <div class="metadata">
- <strong class="project_author"><?php echo html($subpage->author()) ?></strong>
- <span class="project_title"><?php echo html($subpage->title()) ?></span>
- </div>
- </li>
- <?php endforeach ?>
- </ul>
- </main>
- <?php snippet('footer') ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement