Advertisement
Guest User

projects.php

a guest
Mar 19th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.84 KB | None | 0 0
  1. <?php snippet('header') ?>
  2.  
  3. <main class="main" role="main">
  4.  
  5.   <p>
  6.     <a href="<?php echo $page->parent()->parent()->url() ?>">
  7.      <time><?php echo $page->parent()->parent()->year() ?></time>/<?php echo $page->parent()->parent()->number() ?> <?php echo html($page->parent()->parent()->title()) ?>
  8.    </a>
  9.  </p>
  10.  
  11.  <h2 class="project_author"><?php echo $page->author() ?></h2>
  12.  <h1 class="project_title"><?php echo $page->title()->html() ?></h1>
  13.  
  14.      <div class="text">
  15.  
  16.       <div class="fotorama"
  17.       data-width="100%"
  18.       data-ratio="4/3"
  19.       data-allowfullscreen="native"
  20.       data-arrows="true"
  21.       data-click="true"
  22.       data-swipe="true"
  23.       data-keyboard="true"
  24.       data-transition="crossfade"
  25.       data-hash="true"
  26.       >
  27.  
  28.       <?php foreach($page->images()->sortBy('sort', 'asc') as $image): ?>
  29.         <img src="<?php echo $image->url() ?>"
  30.         data-caption="<?php echo html($image->caption()) ?> <?php echo html($image->photographer()) ?>"
  31.         data-full="<?php echo $site->url() . '/content/' . $page->diruri(). "/full/" . $image->filename(); ?>" >
  32.       <?php endforeach ?>
  33.  
  34.  
  35.  
  36.     </div>
  37.  
  38.     <?php echo $page->text()->kirbytext() ?>
  39.  
  40.     <div class="project_copyright">
  41.       <?php echo $page->copyright() ?>
  42.     </div>
  43.     <div class="author_website">
  44.       <a href="http://<?php echo $page->website() ?>"><?php echo $page->website() ?></a>
  45.     </div>
  46.  
  47.   </div>
  48.  
  49.   <nav class="nextprev cf" role="navigation">
  50.     <?php if($prev = $page->prevVisible()): ?>
  51.       <a class="prev" href="<?php echo $prev->url() ?>">&larr; <?php echo l::get('prev') ?></a>
  52.     <?php endif ?>
  53.     <?php if($next = $page->nextVisible()): ?>
  54.       <a class="next" href="<?php echo $next->url() ?>"><?php echo l::get('next') ?> &rarr;</a>
  55.     <?php endif ?>
  56.   </nav>
  57.  
  58. </main>
  59.  
  60. <?php snippet('footer') ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement