threecol_25_50_25_stacked.inc

Go to the documentation of this file.
00001 <?php
00002 // $Id: threecol_25_50_25_stacked.inc,v 1.5.6.7 2008/09/03 03:43:34 sdboyer Exp $
00003 
00004 /**
00005  * implementation of hook_panels_layouts
00006  */
00007 function panels_threecol_25_50_25_stacked_panels_layouts() {
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 }
00024 
00025 /**
00026  * This function uses heredoc notation to make it easier to convert
00027  * to a template.
00028  */
00029 function theme_panels_threecol_25_50_25_stacked($id, $content) {
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 }

Generated on Thu Jul 29 05:00:15 2010 for Panels 2 by  doxygen 1.5.6