Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php snippet('header') ?>
- <main class="main" role="main">
- <p>
- <a href="<?php echo $page->parent()->parent()->url() ?>">
- <time><?php echo $page->parent()->parent()->year() ?></time>/<?php echo $page->parent()->parent()->number() ?> <?php echo html($page->parent()->parent()->title()) ?>
- </a>
- </p>
- <h2 class="project_author"><?php echo $page->author() ?></h2>
- <h1 class="project_title"><?php echo $page->title()->html() ?></h1>
- <div class="text">
- <div class="fotorama"
- data-width="100%"
- data-ratio="4/3"
- data-allowfullscreen="native"
- data-arrows="true"
- data-click="true"
- data-swipe="true"
- data-keyboard="true"
- data-transition="crossfade"
- data-hash="true"
- >
- <?php foreach($page->images()->sortBy('sort', 'asc') as $image): ?>
- <img src="<?php echo $image->url() ?>"
- data-caption="<?php echo html($image->caption()) ?> <?php echo html($image->photographer()) ?>"
- data-full="<?php echo $site->url() . '/content/' . $page->diruri(). "/full/" . $image->filename(); ?>" >
- <?php endforeach ?>
- </div>
- <?php echo $page->text()->kirbytext() ?>
- <div class="project_copyright">
- <?php echo $page->copyright() ?>
- </div>
- <div class="author_website">
- <a href="http://<?php echo $page->website() ?>"><?php echo $page->website() ?></a>
- </div>
- </div>
- <nav class="nextprev cf" role="navigation">
- <?php if($prev = $page->prevVisible()): ?>
- <a class="prev" href="<?php echo $prev->url() ?>">← <?php echo l::get('prev') ?></a>
- <?php endif ?>
- <?php if($next = $page->nextVisible()): ?>
- <a class="next" href="<?php echo $next->url() ?>"><?php echo l::get('next') ?> →</a>
- <?php endif ?>
- </nav>
- </main>
- <?php snippet('footer') ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement