You are here

bootstrap-4-8.tpl.php in Display Suite Bootstrap Layouts 7

Bootstrap 4-8 template for Display Suite.

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.

File

layouts/twocol/bootstrap_4_8/bootstrap-4-8.tpl.php
View source
<?php

/**
 * @file
 * Bootstrap 4-8 template for Display Suite.
 *
 * 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.
 *
 */
?>


<<?php

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

print $classes;
?>">

<?php

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

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

<div class="row">
<<?php

print $left_wrapper;
?> class="col-sm-4 <?php

print $left_classes;
?>">
<?php

print $left;
?>
</<?php

print $left_wrapper;
?>>

<<?php

print $right_wrapper;
?> class="col-sm-8 <?php

print $right_classes;
?>">
<?php

print $right;
?>
</<?php

print $right_wrapper;
?>>

</div>
</<?php

print $layout_wrapper;
?>>


<?php

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

  print $drupal_render_children;
}