You are here

fluid-two-column-stacked-33-66.tpl.php in DS Extra Layouts 7

File

layouts/fluid_two_column_stacked_33_66/fluid-two-column-stacked-33-66.tpl.php
View source
<?php

/**
 * @file
 * Display Suite Two Column Stacked 33 66 template.
 *
 * Available variables:
 *
 * Layout:
 * - $classes: String of classes that can be used to style this layout.
 * - $contextual_links: Renderable array of contextual links.
 * - $layout_wrapper: wrapper surrounding the layout.
 *
 * Regions:
 *
 * - $header: Rendered content for the "Header" region.
 * - $header_classes: String of classes that can be used to style the "Header" 
 * - region.
 *
 * - $left: Rendered content for the "Left" region.
 * - $left_classes: String of classes that can be used to style the "Left" 
 * - region.
 *
 * - $right: Rendered content for the "Right" region.
 * - $right_classes: String of classes that can be used to style the "Right" 
 * - region.
 *
 * - $footer: Rendered content for the "Footer" region.
 * - $footer_classes: String of classes that can be used to style the "Footer" 
 * - region.
 */
if ($left && !$right || $right && !$left) {
  $classes .= ' ds-one-column';
}
if ($left && $right) {
  $classes .= ' ds-two-columns';
}
if ($left) {
  $classes .= ' ds-column-left';
}
if ($right) {
  $classes .= ' ds-column-right';
}
?>
<<?php

print $layout_wrapper;
print $layout_attributes;
?> class="<?php

print $classes;
?> clearfix">

  <!-- Needed to activate contextual links. -->
  <?php

if (isset($title_suffix['contextual_links'])) {
  ?>
    <?php

  print render($title_suffix['contextual_links']);
  ?>
  <?php

}
?>

  <?php

if ($header) {
  ?>
    <<?php

  print $header_wrapper;
  ?> class="ds-header<?php

  print $header_classes;
  ?>">
      <?php

  print $header;
  ?>
    </<?php

  print $header_wrapper;
  ?>>
  <?php

}
?>

  <?php

if ($left) {
  ?>
    <<?php

  print $left_wrapper;
  ?> class="ds-left<?php

  print $left_classes;
  ?>">
      <?php

  print $left;
  ?>
    </<?php

  print $left_wrapper;
  ?>>
  <?php

}
?>

  <?php

if ($right) {
  ?>
    <<?php

  print $right_wrapper;
  ?> class="ds-right<?php

  print $right_classes;
  ?>">
      <?php

  print $right;
  ?>
    </<?php

  print $right_wrapper;
  ?>>
  <?php

}
?>

  <?php

if ($footer) {
  ?>
    <<?php

  print $footer_wrapper;
  ?> class="ds-footer<?php

  print $footer_classes;
  ?>">
      <?php

  print $footer;
  ?>
    </<?php

  print $footer_wrapper;
  ?>>
  <?php

}
?>

</<?php

print $layout_wrapper;
?>>

<!-- Needed to activate display suite support on forms. -->
<?php

if (!empty($drupal_render_children)) {
  ?>
  <?php

  print $drupal_render_children;
}