You are here

fieldgroup-simple.tpl.php in Content Construction Kit (CCK) 6.2

Same filename and directory in other branches
  1. 6.3 modules/fieldgroup/fieldgroup-simple.tpl.php

fieldgroup-simple.tpl.php Default theme implementation to display the a 'simple-styled' fieldgroup.

Available variables:

  • $group_name - The group name
  • $group_name_css - The css-compatible group name.
  • $label - The group label
  • $description - The group description
  • $content - The group content

File

modules/fieldgroup/fieldgroup-simple.tpl.php
View source
<?php

/**
 * @file fieldgroup-simple.tpl.php
 * Default theme implementation to display the a 'simple-styled' fieldgroup.
 *
 * Available variables:
 * - $group_name - The group name
 * - $group_name_css - The css-compatible group name.
 * - $label - The group label
 * - $description - The group description
 * - $content - The group content
 *
 * @see template_preprocess_fieldgroup_simple()
 */
if ($content) {
  ?>
<div class="fieldgroup <?php

  print $group_name_css;
  ?>">

  <?php

  if ($label) {
    ?>
    <h2><?php

    print $label;
    ?></h2>

    <?php

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

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

    }
    ?>

  <?php

  }
  ?>

  <div class="content"><?php

  print $content;
  ?></div>

</div>
<?php

}