You are here

scs-newsletter.tpl.php in Simplenews Content Selection 8

Same filename and directory in other branches
  1. 7.2 scs-newsletter.tpl.php

File

scs-newsletter.tpl.php
View source
<?php

/**
 * This template is used to assemble all nodes selected during newsletter
 * creation with Simplenews Content Selection.
 *
 * The following variables are available:
 *    - $toc Table of content, if it exists, as generated by the function
 *    theme_scs_toc() or your own.
 *    - $nodes Array of built selected nodes, ready to be outputed with the
 *    render() function.
 */
?>
<div id="newsletter">
  <?php

if ($toc) {
  ?>
    <div id="toc">
      <?php

  echo $toc;
  ?>
    </div>
  <?php

}
?>
  <?php

foreach ($nodes as $node) {
  ?>
    <?php

  echo render($node);
  ?>
  <?php

}
?>
</div>