Advertisement
Guest User

issue.php

a guest
Mar 19th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.45 KB | None | 0 0
  1. <?php snippet('header') ?>
  2.  
  3. <main class="main" role="main">
  4.  
  5.   <h1><time><?php echo $page->year() ?></time>/<?php echo $page->number() ?> &nbsp;<?php echo $page->title()->html() ?></h1>
  6.  
  7.   <?php foreach($page->images()->sortBy('sort', 'asc') as $image): ?>
  8.     <figure>
  9.       <img src="<?php echo thumb($image, array('width' => 880, 'height' => 900, 'upscale' => true))->url();?>" alt="<?php echo $page->title()->html() ?>">
  10.     </figure>
  11.   <?php endforeach ?>
  12.  
  13.   <?php
  14.   $editorial = $page->children()->find('editorial');
  15.   ?>
  16.   <h2><?= $editorial->title() ?></h2>
  17.   <div class="text"><?= $editorial->Editorial()->excerpt(200) ?>
  18.   <a class="read_more" href="<?php echo $editorial->url() ?>"><?php echo l::get('more') ?></a>
  19.   </div>
  20.   <br/>
  21.  
  22.   <h2>In this issue</h2>
  23.  
  24.   <ul class="responsive-thumbnails" data-max-width="300px" data-max-height="300px" data-padding="10px">
  25.     <?php foreach($page->children()->find('projects')->children() as $subpage): ?>  
  26.       <li>
  27.         <a href="<?php echo $subpage->url() ?>">
  28.           <?php echo thumb($subpage->image(), array('width' => 300, 'height' => 200, 'crop' => true)); ?>
  29.         </a>
  30.         <div class="metadata">
  31.           <strong class="project_author"><?php echo html($subpage->author()) ?></strong>
  32.           <span class="project_title"><?php echo html($subpage->title()) ?></span>
  33.         </div>
  34.       </li>
  35.     <?php endforeach ?>
  36.   </ul>
  37. </main>
  38.  
  39. <?php snippet('footer') ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement