Guest User

node.tpl.php

a guest
Nov 28th, 2013
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /**
  4.  * @file
  5.  * LiteJazz node.tpl.php
  6.  *
  7.  * for Default theme implementation to display a block see modules/node/node.tpl.php.
  8.  */
  9. ?>
  10.   <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  11.   <?php if ($picture) { print $user_picture; }?>
  12.   <?php print render($title_prefix); ?>
  13.   <?php if (!$page) { ?>
  14.     <?php if ($title) { ?>
  15.       <h2 <?php print $title_attributes; ?>><a href="<?php print $node_url?>"><?php print $title?></a></h2>
  16.     <?php }; ?>
  17.   <?php }; ?>
  18.   <?php print render($title_suffix); ?>
  19.   <?php if ($submitted) { ?>
  20.     <span class="submitted"><?php print $submitted?></span>
  21.   <?php }; ?>
  22.   <div class="content KonaBody">
  23.     <?php print $content_attributes?>
  24.     <?php
  25.     hide($content['comments']);
  26.     hide($content['links']);
  27.     print render($content);?>
  28.   </div>
  29.     <?php
  30.       if ($teaser) {
  31.       unset($content['links']['comment']['#links']['comment-add']);
  32.       unset($content['links']['comment']['#links']['comment_forbidden']);
  33.     }
  34.     ?>
  35.   <div class="clearfix clear"></div>
  36.   <?php if (!empty($content['links']['node']['#links']) || !empty($content['links']['comment']['#links']) || !empty($content['links']['blog']['#links'])): ?>
  37.     <div class="links">&raquo; <?php print render($content['links']); ?></div>
  38.   <?php endif; ?>
  39.       <?php if ($content_share): ?>
  40.   <div>
  41.     <?php print render($content_share); ?>
  42.   </div>
  43. <?php endif; ?>
  44.   <?php if ($content['comments'] && ($page)) { ?>
  45.     <?php print render($content['comments']); ?>
  46.   <?php }; ?>
  47. </div>
RAW Paste Data