You are here

node.tpl.php in Drupal for Facebook 6.2

Same filename and directory in other branches
  1. 5.2 themes/fb_fbml/node.tpl.php
  2. 5 themes/fb_fbml/node.tpl.php

File

themes/fb_fbml/node.tpl.php
View source
<?php

/**
 * @file
 * FBML node template.
 */
$class = "class=\"node node-{$type}";
if ($sticky) {
  $class .= " sticky";
}
if (!$status) {
  $class .= " node-unpublished";
}
$class .= "\"";
if (isset($extra_style)) {
  $style = "style = \"{$extra_style}\"";
}
?>
<div <?php

print $class;
?> <?php

print isset($style) ? $style : '';
?>>

<?php

if ($picture || $page == 0 || $submitted || $terms) {
  ?>
<div class="node-header">
  <?php

  if ($picture && $submitted) {
    print $picture;
  }
  if ($page == 0) {
    ?>
  <h2 class="title"><a href="<?php

    print $node_url;
    ?>"><?php

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

  }
  ?>
<span class="submitted"><?php

  print $submitted;
  ?></span>
<span class="taxonomy"><?php

  print $terms;
  ?></span>
</div>
<?php

}
?>
<div class="content"><?php

print $content;
?></div>
<div class="footer">
  <?php

if ($links) {
  ?>
  <div class="links"><?php

  print $links;
  ?></div>
  <?php

}
?>
</div>

<?php

if ($node_bottom && !$teaser) {
  ?>
<div id="node-bottom">
  <?php

  print $node_bottom;
  ?>
</div>
<?php

}
?>


<?php

if (isset($children)) {
  ?>
<div class="children" id="children_<?php

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

  print $children;
  ?>
</div>
<?php

}

/* end if children */
?>

</div>