threecol_25_50_25.inc

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

Generated on Sun Feb 5 05:00:13 2012 for Panels 2 by  doxygen 1.5.6