/[drupal]/contributions/modules/cck/modules/fieldgroup/fieldgroup-simple.tpl.php
ViewVC logotype

Diff of /contributions/modules/cck/modules/fieldgroup/fieldgroup-simple.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Sat Feb 28 23:56:17 2009 UTC revision 1.2, Sun Mar 1 00:59:44 2009 UTC
# Line 0  Line 1 
1    <?php
2    // $Id: fieldgroup-simple.tpl.php,v 1.1.2.1 2009/02/28 23:56:17 yched Exp $
3    
4    /**
5     * @file fieldgroup-simple.tpl.php
6     * Default theme implementation to display the a 'simple-styled' fieldgroup.
7     *
8     * Available variables:
9     * - $group_name - The group name
10     * - $group_name_css - The css-compatible group name.
11     * - $label - The group label
12     * - $description - The group description
13     * - $content - The group content
14     *
15     * @see template_preprocess_fieldgroup_simple()
16     */
17    ?>
18    <?php if ($content) : ?>
19    <div class="fieldgroup <?php print $group_name_css; ?>">
20    
21      <?php if ($label): ?>
22        <h2><?php print $label; ?></h2>
23    
24        <?php if ($description): ?>
25          <div class="description"><?php print $description; ?></div>
26        <?php endif; ?>
27    
28      <?php endif; ?>
29    
30      <div class="content"><?php print $content; ?></div>
31    
32    </div>
33    <?php endif; ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2