foundation-section.tpl.php in ZURB Section 7.2
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-section.tpl.php
- field_group_pre_render_foundation_group_section in ./
foundation_group.module - Implements field_group_pre_render_<format-type>().
File
templates/foundation-section.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
if (!empty($items)) {
?>
<div data-section="<?php
print $element['#settings']['section_type'];
?>" <?php
print drupal_attributes($element['#attributes']);
?>>
<?php
foreach ($items as $item) {
?>
<section<?php
print drupal_attributes($item['container_attributes']);
?>>
<p class="title" data-section-title><a href="#<?php
print $item['container_attributes']['id'];
?>"><?php
print $item['title'];
?></a></p>
<div data-section-content<?php
print drupal_attributes($item['content_attributes']);
?>>
<?php
print $item['content'];
?>
</div>
</section>
<?php
}
?>
</div>
<?php
}