function theme_panels_threecol_25_50_25 in Panels 5.2
Same name and namespace in other branches
- 5 layouts/threecol_25_50_25.inc \theme_panels_threecol_25_50_25()
This function uses heredoc notation to make it easier to convert to a template.
File
- layouts/
threecol_25_50_25.inc, line 25
Code
function theme_panels_threecol_25_50_25($id, $content) {
if ($id) {
$idstr = " id='{$id}'";
}
$output = <<<EOT
<div class="panel-display panel-3col clear-block" {<span class="php-variable">$idstr</span>}>
<div class="panel-panel panel-col-first">
<div class="inside">{<span class="php-variable">$content</span>[<span class="php-string">'left'</span>]}</div>
</div>
<div class="panel-panel panel-col">
<div class="inside">{<span class="php-variable">$content</span>[<span class="php-string">'middle'</span>]}</div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside">{<span class="php-variable">$content</span>[<span class="php-string">'right'</span>]}</div>
</div>
</div>
EOT;
return $output;
}