Created
September 9, 2014 20:48
-
-
Save benjolabs/383aaedf6c1c5109828c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*------------------------------------------------------------------------------------ | |
* Teaser layout | |
*-----------------------------------------------------------------------------------*/ | |
if ($teaser) : | |
?> | |
<article class="teaser<?php print ($is_admin) ? ' contextual-links-region' : ''; ?>"> | |
<?php print render($title_suffix); ?> | |
<?php print '<p class="meta">'.render($content['field_release_date']).'</p>'; ?> | |
<h3><?php print $title; ?></h3> | |
<div class="article-content txt-m"> | |
<?php print render($content['body']); ?> | |
<?php print render($content['links']['node']); ?> | |
</div> | |
</article> | |
<?php | |
/*------------------------------------------------------------------------------------ | |
* Full display layout | |
*-----------------------------------------------------------------------------------*/ | |
else : | |
?> | |
<article class="full"> | |
<?php print render($content['field_release_date']); ?> | |
<h1><?php print $title; ?></h1> | |
<div class="article-content txt-m"> | |
<?php print render($content['body']); ?> | |
</div> | |
</article> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment