example-layout.tpl.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * @file
  4. * Display Suite example layout template.
  5. *
  6. * Available variables:
  7. *
  8. * Layout:
  9. * - $classes: String of classes that can be used to style this layout.
  10. * - $contextual_links: Renderable array of contextual links.
  11. * - $layout_wrapper: wrapper surrounding the layout.
  12. *
  13. * Regions:
  14. *
  15. * - $left: Rendered content for the "Left" region.
  16. * - $left_classes: String of classes that can be used to style the "Left" region.
  17. * - $left_wrapper: wrapper surrounding the left region.
  18. *
  19. * - $right: Rendered content for the "Right" region.
  20. * - $right_classes: String of classes that can be used to style the "Right" region.
  21. * - $right_wrapper: wrapper surrounding the right region.
  22. */
  23. ?>
  24. <<?php print $layout_wrapper; print $layout_attributes; ?> class="<?php print $classes;?> clearfix">
  25. <!-- Needed to activate contextual links -->
  26. <?php if (isset($title_suffix['contextual_links'])): ?>
  27. <?php print render($title_suffix['contextual_links']); ?>
  28. <?php endif; ?>
  29. <!-- regions -->
  30. <<?php print $left_wrapper ?> class="ds-left<?php print $left_classes; ?>">
  31. <?php print $left; ?>
  32. </<?php print $left_wrapper ?>>
  33. <<?php print $right_wrapper ?> class="ds-right<?php print $right_classes; ?>">
  34. <?php print $right; ?>
  35. </<?php print $right_wrapper ?>>
  36. <!-- These comments are required for the Drush command. You can remove them in your own copy -->
  37. <!-- /regions -->
  38. </<?php print $layout_wrapper ?>>
  39. <!-- Needed to activate display suite support on forms -->
  40. <?php if (!empty($drupal_render_children)): ?>
  41. <?php print $drupal_render_children ?>
  42. <?php endif; ?>