threecol_33_34_33.inc

Go to the documentation of this file.
00001 <?php
00002 // $Id: threecol_33_34_33.inc,v 1.5.6.6 2008/09/03 03:43:34 sdboyer Exp $
00003 /**
00004  * implementation of hook_panels_layouts
00005  */
00006 function panels_threecol_33_34_33_panels_layouts() {
00007   $items['threecol_33_34_33'] = array(
00008     'title' => t('Three column 33/34/33'),
00009     'icon' => 'layouts/threecol_33_34_33.png',
00010     'theme' => 'panels_threecol_33_34_33',
00011     'css' => 'layouts/threecol_33_34_33.css',
00012     'panels' => array(
00013       'left' => t('Left side'),
00014       'middle' => t('Middle column'),
00015       'right' => t('Right side')
00016     ),
00017   );
00018 
00019   return $items;
00020 }
00021 
00022 /**
00023  * This function uses heredoc notation to make it easier to convert
00024  * to a template.
00025  */
00026 function theme_panels_threecol_33_34_33($id, $content) {
00027   if ($id) {
00028     $idstr = " id='$id'";
00029   }
00030 
00031   $output = <<<EOT
00032 <div class="panel-display panel-3col-33 clear-block" $idstr>
00033   <div class="panel-panel panel-col-first">
00034     <div class="inside">$content[left]</div>
00035   </div>
00036 
00037   <div class="panel-panel panel-col">
00038     <div class="inside">$content[middle]</div>
00039   </div>
00040 
00041   <div class="panel-panel panel-col-last">
00042     <div class="inside">$content[right]</div>
00043   </div>
00044 </div>
00045 EOT;
00046   return $output;
00047 }

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