Projet

Général

Profil

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

root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / gpanels / two-brick.php @ 74f6bef0

1
<?php
2

    
3
/**
4
 * @file
5
 * Gpanel snippet for the two column brick layout
6
 *
7
 * Gpanels are drop in multi-column snippets for displaying blocks.
8
 * Most Gpanels are stacked, meaning they have top and bottom regions
9
 * by default, however you do not need to use them. You should always
10
 * use all the horizonal regions or you might experience layout issues.
11
 *
12
 * How to use:
13
 * 1. Copy and paste the code snippet into your page.tpl.php file.
14
 * 2. Copy and paste the region definitions to your themes .info file.
15
 * 3. Clear the cache (in Performance settings) to refresh the theme registry.
16

17
Region Deinitions:
18

19
; 2 col 2x50
20
regions[two_brick_top]         = AT Two column brick - top
21
regions[two_brick_left_above]  = AT Two column brick - left above
22
regions[two_brick_right_above] = AT Two column brick - right above
23
regions[two_brick_middle]      = AT Two column brick - middle
24
regions[two_brick_left_below]  = AT Two column brick - left below
25
regions[two_brick_right_below] = AT Two column brick - right below
26
regions[two_brick_bottom]      = AT Two column brick - bottom
27

28
 */
29
?>
30

    
31
<?php if (
32
  $page['two_brick_top'] ||
33
  $page['two_brick_left_above'] ||
34
  $page['two_brick_right_above'] ||
35
  $page['two_brick_middle'] ||
36
  $page['two_brick_left_below'] ||
37
  $page['two_brick_right_below'] ||
38
  $page['two_brick_bottom']
39
  ): ?>
40
  <!-- Two column brick Gpanel -->
41
  <div class="at-panel gpanel panel-display two-brick clearfix">
42
    <?php print render($page['two_brick_top']); ?>
43
    <div class="panel-row row-1 clearfix">
44
      <?php print render($page['two_brick_left_above']); ?>
45
      <?php print render($page['two_brick_right_above']); ?>
46
    </div>
47
    <?php print render($page['two_brick_middle']); ?>
48
    <div class="panel-row row-2 clearfix">
49
      <?php print render($page['two_brick_left_below']); ?>
50
      <?php print render($page['two_brick_right_below']); ?>
51
    </div>
52
    <?php print render($page['two_brick_bottom']); ?>
53
  </div>
54
<?php endif; ?>