fieldgroup-simple.tpl.php in Content Construction Kit (CCK) 6.3
Same filename and directory in other branches
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 also
File
modules/fieldgroup/fieldgroup-simple.tpl.phpView 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
}