threecol_33_34_33.inc in Panels 5
File
layouts/threecol_33_34_33.inc
View source
<?php
function panels_threecol_33_34_33_panels_layouts() {
$items['threecol_33_34_33'] = array(
'module' => 'panels',
'title' => t('Three column 33/34/33'),
'icon' => 'layouts/threecol_33_34_33.png',
'theme' => 'panels_threecol_33_34_33',
'css' => 'layouts/threecol_33_34_33.css',
'content areas' => array(
'left' => t('Left side'),
'middle' => t('Middle column'),
'right' => t('Right side'),
),
);
return $items;
}
function theme_panels_threecol_33_34_33($id, $content) {
if ($id) {
$idstr = " id='{$id}'";
}
$output = <<<EOT
<div class="panel-3col-33" {<span class="php-variable">$idstr</span>}>
<div class="panel-col-first">
<div>{<span class="php-variable">$content</span>[<span class="php-string">'left'</span>]}</div>
</div>
<div class="panel-col">
<div>{<span class="php-variable">$content</span>[<span class="php-string">'middle'</span>]}</div>
</div>
<div class="panel-col-last">
<div>{<span class="php-variable">$content</span>[<span class="php-string">'right'</span>]}</div>
</div>
</div>
<br class="panel-clearer" />
EOT;
return $output;
}