You are here

panels-onecol.tpl.php in Panels 6.2

Template for a 3 column panel layout.

This template provides a very simple "one column" panel display layout.

Variables:

  • $id: An optional CSS id to use for the layout.
  • $content: An array of content, each item in the array is keyed to one panel of the layout. This layout supports the following sections: $content['middle']: The only panel in the layout.

File

layouts/onecol/panels-onecol.tpl.php
View source
<?php

/**
 * @file
 * Template for a 3 column panel layout.
 *
 * This template provides a very simple "one column" panel display layout.
 *
 * Variables:
 * - $id: An optional CSS id to use for the layout.
 * - $content: An array of content, each item in the array is keyed to one
 *   panel of the layout. This layout supports the following sections:
 *   $content['middle']: The only panel in the layout.
 */
?>
<div class="panel-display panel-1col clear-block" <?php

if (!empty($css_id)) {
  print "id=\"{$css_id}\"";
}
?>>
  <div class="panel-panel panel-col">
    <div><?php

print $content['middle'];
?></div>
  </div>
</div>