three-25-50-25--events.tpl.php in Drupal Commons 7.3
Adativetheme implementation to present a Panels layout.
Available variables:
- $content: An array of content, each item in the array is keyed to one panel of the layout.
- $css_id: unique id if present.
- $panel_prefix: prints a wrapper when this template is used in certain context, such as when rendered by Display Suite or other module - the wrapper is added by Adaptivetheme in the appropriate process function.
- $panel_suffix: closing element for the $prefix.
See also
adaptivetheme_preprocess_three_25_50_25()
adaptivetheme_preprocess_node()
adaptivetheme_process_node()
File
themes/commons/commons_origins/templates/panels/three-25-50-25--events.tpl.phpView source
<?php
/**
* @file
* Adativetheme implementation to present a Panels layout.
*
* Available variables:
* - $content: An array of content, each item in the array is keyed to one
* panel of the layout.
* - $css_id: unique id if present.
* - $panel_prefix: prints a wrapper when this template is used in certain context,
* such as when rendered by Display Suite or other module - the wrapper is
* added by Adaptivetheme in the appropriate process function.
* - $panel_suffix: closing element for the $prefix.
*
* @see adaptivetheme_preprocess_three_25_50_25()
* @see adaptivetheme_preprocess_node()
* @see adaptivetheme_process_node()
*/
// Ensure variables are always set. In the last hours before cutting a stable
// release I found these are not set when inside a Field Collection using Display
// Suite, even though they are initialized in the templates preprocess function.
// This is a workaround, that may or may not go away.
$panel_prefix = isset($panel_prefix) ? $panel_prefix : '';
$panel_suffix = isset($panel_suffix) ? $panel_suffix : '';
print $panel_prefix;
?>
<div class="three-25-50-25 at-panel panel-display clearfix" <?php
if (!empty($css_id)) {
print "id=\"{$css_id}\"";
}
?>>
<?php
if ($content['three_25_50_25_top']) {
?>
<div class="region region-three-25-50-25-top region-conditional-stack">
<div class="region-inner clearfix">
<?php
print $content['three_25_50_25_top'];
?>
</div>
</div>
<?php
}
?>
<div class="region region-three-25-50-25-first">
<div class="region-inner commons-pod clearfix">
<?php
print $content['three_25_50_25_first'];
?>
</div>
</div>
<div class="region region-three-25-50-25-second">
<div class="region-inner clearfix">
<?php
print $content['three_25_50_25_second'];
?>
</div>
</div>
<div class="region region-three-25-50-25-third">
<div class="region-inner clearfix">
<?php
print $content['three_25_50_25_third'];
?>
</div>
</div>
<?php
if ($content['three_25_50_25_bottom']) {
?>
<div class="region region-three-25-50-25-bottom region-conditional-stack">
<div class="region-inner clearfix">
<?php
print $content['three_25_50_25_bottom'];
?>
</div>
</div>
<?php
}
?>
</div>
<?php
print $panel_suffix;