Go to the source code of this file.
Functions | |
| panels_twocol_stacked_panels_layouts () | |
| theme_panels_twocol_stacked ($id, $content) | |
| panels_twocol_stacked_panels_layouts | ( | ) |
implementation of hook_panels_layouts
Definition at line 7 of file twocol_stacked.inc.
00007 { 00008 $items['twocol_stacked'] = array( 00009 'title' => t('Two column stacked'), 00010 'icon' => 'layouts/twocol_stacked.png', 00011 'theme' => 'panels_twocol_stacked', 00012 'css' => 'layouts/twocol_stacked.css', 00013 'panels' => array( 00014 'top' => t('Top'), 00015 'left' => t('Left side'), 00016 'right' => t('Right side'), 00017 'bottom' => t('Bottom') 00018 ), 00019 ); 00020 00021 return $items; 00022 }
| theme_panels_twocol_stacked | ( | $ | id, | |
| $ | content | |||
| ) |
This function uses heredoc notation to make it easier to convert to a template.
Definition at line 28 of file twocol_stacked.inc.
00028 { 00029 if ($id) { 00030 $idstr = " id='$id'"; 00031 } 00032 00033 $output = <<<EOT 00034 <div class="panel-2col-stacked clear-block panel-display" $idstr> 00035 <div class="panel-col-top panel-panel"> 00036 <div class="inside">$content[top]</div> 00037 </div> 00038 <div class="center-wrapper"> 00039 <div class="panel-col-first panel-panel"> 00040 <div class="inside">$content[left]</div> 00041 </div> 00042 00043 <div class="panel-col-last panel-panel"> 00044 <div class="inside">$content[right]</div> 00045 </div> 00046 </div> 00047 <div class="panel-col-bottom panel-panel"> 00048 <div class="inside">$content[bottom]</div> 00049 </div> 00050 </div> 00051 EOT; 00052 return $output; 00053 }
1.5.6