function theme_panels_onecol in Panels 5.2
This function uses heredoc notation to make it easier to convert to a template.
File
- layouts/
onecol.inc, line 34
Code
function theme_panels_onecol($id, $content, $settings) {
if ($id) {
$idstr = " id='{$id}'";
}
if (!empty($settings['plain'])) {
$output = <<<EOT
<div class="panel-display"{<span class="php-variable">$idstr</span>}>{<span class="php-variable">$content</span>[<span class="php-string">'middle'</span>]}</div>
EOT;
}
else {
$output = <<<EOT
<div class="panel-display panel-1col clear-block"{<span class="php-variable">$idstr</span>}>
<div class="panel-panel panel-col">
<div>{<span class="php-variable">$content</span>[<span class="php-string">'middle'</span>]}</div>
</div>
</div>
EOT;
}
return $output;
}