You are here

function theme_panels_threecol_33_34_33_stacked in Panels 5

Same name and namespace in other branches
  1. 5.2 layouts/threecol_33_34_33_stacked.inc \theme_panels_threecol_33_34_33_stacked()

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

File

layouts/threecol_33_34_33_stacked.inc, line 23

Code

function theme_panels_threecol_33_34_33_stacked($id, $content) {
  if ($id) {
    $idstr = " id='{$id}'";
  }
  $output = <<<EOT
<div class="panel-3col-33-stacked" {<span class="php-variable">$idstr</span>}>
  <div class="panel-col-top">
    <div>{<span class="php-variable">$content</span>[<span class="php-string">'top'</span>]}</div>
  </div>
  <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 class="panel-col-bottom">
    <div>{<span class="php-variable">$content</span>[<span class="php-string">'bottom'</span>]}</div>
  </div>
</div>
<br class="panel-clearer" />
EOT;
  return $output;
}