Projet

Général

Profil

Paste
Télécharger (1,58 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ds / drush / example_layout / example-layout.tpl.php @ 651307cd

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

    
26
  <!-- Needed to activate contextual links -->
27
  <?php if (isset($title_suffix['contextual_links'])): ?>
28
    <?php print render($title_suffix['contextual_links']); ?>
29
  <?php endif; ?>
30

    
31
  <!-- regions -->
32

    
33
  <<?php print $left_wrapper ?> class="ds-left<?php print $left_classes; ?>">
34
    <?php print $left; ?>
35
  </<?php print $left_wrapper ?>>
36

    
37
  <<?php print $right_wrapper ?> class="ds-right<?php print $right_classes; ?>">
38
    <?php print $right; ?>
39
  </<?php print $right_wrapper ?>>
40

    
41
  <!-- These comments are required for the Drush command. You can remove them in your own copy -->
42
  <!-- /regions -->
43

    
44
</<?php print $layout_wrapper ?>>
45

    
46
<!-- Needed to activate display suite support on forms -->
47
<?php if (!empty($drupal_render_children)): ?>
48
  <?php print $drupal_render_children ?>
49
<?php endif; ?>