foundation-accordion.tpl.php in ZURB Section 7.3
Same filename and directory in other branches
Displays a Zurb Foundation Section component.
Available variables:
- $element array The element to render.
- $items array An array of section items to render.
1 theme call to foundation-accordion.tpl.php
- field_group_pre_render_foundation_group_accordion in ./
foundation_group.module - Implements field_group_pre_render_<format-type>().
File
templates/foundation-accordion.tpl.phpView source
<?php
/**
* @file
* Displays a Zurb Foundation Section component.
*
* Available variables:
* - $element array The element to render.
* - $items array An array of section items to render.
*
* @ingroup themeable
*/
/** <?php print drupal_attributes($element['#attributes']) ?> */
?>
<?php
if (!empty($items)) {
?>
<dl class="accordion" data-accordion>
<?php
foreach ($items as $item) {
?>
<dd>
<a href="#<?php
print $item['container_attributes']['id'];
?>"><?php
print $item['title'];
?></a>
<div id="<?php
print $item['container_attributes']['id'];
?>" <?php
print drupal_attributes($item['content_attributes']);
?>>
<?php
print $item['content'];
?>
</div>
</dd>
<?php
}
?>
</dl>
<?php
}