threecol_25_50_25.inc File Reference

Go to the source code of this file.

Functions

 panels_threecol_25_50_25_panels_layouts ()
 theme_panels_threecol_25_50_25 ($id, $content)


Function Documentation

panels_threecol_25_50_25_panels_layouts (  ) 

implementation of hook_panels_layouts

Definition at line 5 of file threecol_25_50_25.inc.

00005                                                    {
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 }

theme_panels_threecol_25_50_25 ( id,
content 
)

This function uses heredoc notation to make it easier to convert to a template.

Definition at line 25 of file threecol_25_50_25.inc.

00025                                                        {
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 Thu Jul 29 05:00:17 2010 for Panels 2 by  doxygen 1.5.6