twocol_stacked.inc

Go to the documentation of this file.
00001 <?php
00002 // $Id: twocol_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_twocol_stacked_panels_layouts() {
00008   $items['twocol_stacked'] = array(
00009     'title' => t('Two column stacked'),
00010     'icon' => 'layouts/twocol_stacked.png',
00011     'theme' => 'panels_twocol_stacked',
00012     'css' => 'layouts/twocol_stacked.css',
00013     'panels' => array(
00014       'top' => t('Top'),
00015       'left' => t('Left side'),
00016       'right' => t('Right side'),
00017       'bottom' => t('Bottom')
00018     ),
00019   );
00020 
00021   return $items;
00022 }
00023 
00024 /**
00025  * This function uses heredoc notation to make it easier to convert
00026  * to a template.
00027  */
00028 function theme_panels_twocol_stacked($id, $content) {
00029   if ($id) {
00030     $idstr = " id='$id'";
00031   }
00032 
00033   $output = <<<EOT
00034 <div class="panel-2col-stacked clear-block panel-display" $idstr>
00035   <div class="panel-col-top panel-panel">
00036     <div class="inside">$content[top]</div>
00037   </div>
00038   <div class="center-wrapper">
00039     <div class="panel-col-first panel-panel">
00040       <div class="inside">$content[left]</div>
00041     </div>
00042 
00043     <div class="panel-col-last panel-panel">
00044       <div class="inside">$content[right]</div>
00045     </div>
00046   </div>
00047   <div class="panel-col-bottom panel-panel">
00048     <div class="inside">$content[bottom]</div>
00049   </div>
00050 </div>
00051 EOT;
00052   return $output;
00053 }

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