Projet

Général

Profil

Paste
Télécharger (2,37 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / panels / three_inset_left / three-inset-left.tpl.php @ 74f6bef0

1
<?php
2
/**
3
 * @file
4
 * Adativetheme implementation to present a Panels layout.
5
 *
6
 * Available variables:
7
 * - $content: An array of content, each item in the array is keyed to one
8
 *   panel of the layout.
9
 * - $css_id: unique id if present.
10
 * - $panel_prefix: prints a wrapper when this template is used in certain context,
11
 *   such as when rendered by Display Suite or other module - the wrapper is
12
 *   added by Adaptivetheme in the appropriate process function.
13
 * - $panel_suffix: closing element for the $prefix.
14
 *
15
 * @see adaptivetheme_preprocess_three_inset_left()
16
 * @see adaptivetheme_preprocess_node()
17
 * @see adaptivetheme_process_node()
18
 */
19

    
20
// Ensure variables are always set. In the last hours before cutting a stable
21
// release I found these are not set when inside a Field Collection using Display
22
// Suite, even though they are initialized in the templates preprocess function.
23
// This is a workaround, that may or may not go away.
24
$panel_prefix = isset($panel_prefix) ? $panel_prefix : '';
25
$panel_suffix = isset($panel_suffix) ? $panel_suffix : '';
26
?>
27
<?php print $panel_prefix; ?>
28
<div class="three-inset-left at-panel panel-display clearfix" <?php if (!empty($css_id)): print "id=\"$css_id\""; endif; ?>>
29
  <div class="region region-three-inset-left-sidebar">
30
    <div class="region-inner clearfix">
31
      <?php print $content['three_inset_left_sidebar']; ?>
32
    </div>
33
  </div>
34
  <div class="inset-wrapper clearfix">
35
    <?php if ($content['three_inset_left_top']): ?>
36
      <div class="region region-three-inset-left-top region-conditional-stack">
37
        <div class="region-inner clearfix">
38
          <?php print $content['three_inset_left_top']; ?>
39
        </div>
40
      </div>
41
    <?php endif; ?>
42
    <div class="region region-three-inset-left-middle">
43
      <div class="region-inner clearfix">
44
        <?php print $content['three_inset_left_middle']; ?>
45
      </div>
46
    </div>
47
    <div class="region region-three-inset-left-inset">
48
      <div class="region-inner clearfix">
49
        <?php print $content['three_inset_left_inset']; ?>
50
      </div>
51
    </div>
52
    <?php if ($content['three_inset_left_bottom']): ?>
53
      <div class="region region-three-inset-left-bottom region-conditional-stack">
54
        <div class="region-inner clearfix">
55
          <?php print $content['three_inset_left_bottom']; ?>
56
        </div>
57
      </div>
58
    <?php endif; ?>
59
  </div>
60
</div>
61
<?php print $panel_suffix; ?>