Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 1.47 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. // Extract the first image.
  3. $first_image = field_view_value('node', $node, 'field_image', $content['field_image']['#items'][0], 'full');
  4. $first_image['#image_style'] = 'project';
  5. hide($content['field_image'][0]);
  6. ?>
  7. <article<?php print $attributes; ?>>
  8.   <?php print render($title_prefix); ?>
  9.   <?php print render($title_suffix); ?>
  10.   <div class="content clearfix"<?php print $content_attributes; ?>>
  11.     <div class="grid-7 omega">
  12.       <?php if (!$page && $title): ?>
  13.         <h2 <?php print $title_attributes; ?>><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
  14.       <?php else: ?>
  15.         <h1<?php print $title_attributes; ?>><?php print $title; ?></h1>
  16.       <?php endif; ?>
  17.       <?php print render($content['field_client']); ?>
  18.       <?php print render($content['field_url']); ?>
  19.       <?php print render($content['field_services']); ?>
  20.        <?php print render($content['field_team']); ?>
  21.       <?php print render($content['body']); ?>
  22.     </div>
  23.     <div class="grid-8 alpha">
  24.       <?php print render($first_image); ?>
  25.       <?php print render($content['field_images']); ?>
  26.     </div>
  27.   </div>
  28.   <?php print render($content); ?>
  29.   <?php if (!empty($content['links'])): ?>
  30.     <div class="links clearfix"><?php print render($content['links']); ?></div>
  31.   <?php endif; ?>
  32.   <?php print render($content['comments']); ?>
  33. </article>
  34. <?php if($work_view): ?>
  35.   <section class="work">
  36.     <?php print $work_view; ?>
  37.   </section>
  38. <?php endif; ?>