Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by sss ( 16 years ago )
<?php
// $Id: node.tpl.php $
$path = get_user_query_url();
?>
<div id="node-<?php print $node->nid; ?>" class="news node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">

<?php print $picture ?>

<?php if ($submitted): ?>
 <span class="submitted<? if (isset($path[1])) echo '-node'?>"><?php print date('d F Y - H:i', $node->field_newsimg[0]['timestamp']-10800); ?></span>
<?php endif; ?>

<?php if (($path[0]=='news') and (!isset($path[1]))): ?>
  <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>

  <div class="content clear-block">
 <? if (isset($path[1])) print '<h2>'.$title.'</h2>'.$content;
  else print $content; ?>
  </div>

  <div class="clear-block">
    <div class="meta">
    <?php if ($taxonomy): ?>
      <div class="terms"><?php print $terms ?></div>
    <?php endif;?>
    </div>

    <?php if ($links): ?>
      <div class="links"><?php print $links; ?></div>
    <?php endif; ?>
  </div>

</div>

 

Revise this Paste

Your Name: Code Language: