You are here

ds-3col-stacked-fluid.tpl.php in Display Suite 7.2

Same filename and directory in other branches
  1. 7 layouts/ds_3col_stacked_fluid/ds-3col-stacked-fluid.tpl.php

Display Suite fluid 3 column 25/50/25 stacked template.

File

layouts/ds_3col_stacked_fluid/ds-3col-stacked-fluid.tpl.php
View source
<?php

/**
 * @file
 * Display Suite fluid 3 column 25/50/25 stacked template.
 */

// Add sidebar classes so that we can apply the correct width to the center region in css.
if ($left && !$right || $right && !$left) {
  $classes .= ' group-one-sidebar';
}
if ($left && $right) {
  $classes .= ' group-two-sidebars';
}
if ($left) {
  $classes .= ' group-sidebar-left';
}
if ($right) {
  $classes .= ' group-sidebar-right';
}
?>
<<?php

print $layout_wrapper;
print $layout_attributes;
?> class="ds-3col-stacked-fluid <?php

print $classes;
?> clearfix">

  <?php

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

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

}
?>

  <<?php

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

print $header_classes;
?>">
    <?php

print $header;
?>
  </<?php

print $header_wrapper;
?>>

  <?php

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

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

  print $left_classes;
  ?>">
      <?php

  print $left;
  ?>
    </<?php

  print $left_wrapper;
  ?>>
  <?php

}
?>

  <?php

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

  print $middle_wrapper;
  ?> class="group-middle<?php

  print $middle_classes;
  ?>">
      <?php

  print $middle;
  ?>
    </<?php

  print $middle_wrapper;
  ?>>
  <?php

}
?>

  <?php

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

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

  print $right_classes;
  ?>">
      <?php

  print $right;
  ?>
    </<?php

  print $right_wrapper;
  ?>>
  <?php

}
?>

  <<?php

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

print $footer_classes;
?>">
    <?php

print $footer;
?>
  </<?php

print $footer_wrapper;
?>>

</<?php

print $layout_wrapper;
?>>

<?php

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

  print $drupal_render_children;
}