lexicon-overview-section.tpl.php in Lexicon 7
Default theme implementation for displaying a section of terms in the Lexicon overview page.
This template renders a section of Lexicon terms in the Lexicon overview page.
Available variables:
- $lexicon_section: section object.
- $lexicon_section->letter: The letter the section is for.
- $lexicon_section->id: The id to be used as the anchor of the section.
- $lexicon_overview_items: Lexicon overview items as rendered by lexicon-overview-item.tpl.php
1 theme call to lexicon-overview-section.tpl.php
- _lexicon_overview in includes/
lexicon.pages.inc - Lexicon overview function that creates all the data end renders the output through the various theme templates.
File
templates/lexicon-overview-section.tpl.phpView source
<?php
/**
* @file
* Default theme implementation for displaying a section of terms in the Lexicon
* overview page.
*
* This template renders a section of Lexicon terms in the Lexicon overview
* page.
*
* Available variables:
* - $lexicon_section: section object.
* - $lexicon_section->letter: The letter the section is for.
* - $lexicon_section->id: The id to be used as the anchor of the section.
* - $lexicon_overview_items: Lexicon overview items as rendered by
* lexicon-overview-item.tpl.php
*/
if (isset($lexicon_section)) {
?>
<a id="<?php
print $lexicon_section->id;
?>"></a>
<h2 class="lexicon-letter"><?php
print drupal_strtoupper($lexicon_section->letter);
?></h2>
<?php
}
if (!empty($lexicon_overview_items)) {
?>
<dl>
<?php
print $lexicon_overview_items;
?>
</dl>
<?php
}
else {
?>
<p>
<?php
print t('There are no terms to display.');
?>
</p>
<?php
}