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