You are here

node.tpl.php in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.2

Same filename and directory in other branches
  1. 7 themes/vartheme2/templates/nodes/node.tpl.php

File

themes/vartheme2/templates/nodes/node.tpl.php
View source
<article id="node-<?php

print $node->nid;
?>" class="<?php

print $classes;
?>"<?php

print $attributes;
?>>

  <?php

if ($title_prefix || $title_suffix || $display_submitted || !$status || !$page && $title) {
  ?>
    <header>
      <?php

  print render($title_prefix);
  ?>
      <?php

  if (!$page && $title) {
    ?>
        <h2<?php

    print $title_attributes;
    ?>><a href="<?php

    print $node_url;
    ?>"><?php

    print $title;
    ?></a></h2>
      <?php

  }
  ?>
      <?php

  print render($title_suffix);
  ?>

      <?php

  if ($display_submitted) {
    ?>
        <p class="submitted">
          <?php

    print $user_picture;
    ?>
          <?php

    print $submitted;
    ?>
        </p>
      <?php

  }
  ?>
    </header>
  <?php

}
?>

  <div class="content clearfix"<?php

print $content_attributes;
?>>
    <?php


// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
print render($content);
?>
  </div>

  <div class="clearfix">
    <?php

print render($content['links']);
?>
    <?php

print render($content['comments']);
?>
  </div>

</article>