Projet

Général

Profil

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

root / drupal7 / sites / all / themes / adaptivetheme / at_core / layouts / gpanels / three-inset-right.php @ 74f6bef0

1
<?php
2

    
3
/**
4
 * @file
5
 * Gpanel snippet for the three inset right layout
6
 *
7
 * Gpanels are drop in multi-umn 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
; Three Inset Right
20
regions[three_inset_right_sidebar] = AT Inset right - sidebar
21
regions[three_inset_right_top]     = AT Inset right - top
22
regions[three_inset_right_middle]  = AT Inset right - middle
23
regions[three_inset_right_inset]   = AT Inset right - inset
24
regions[three_inset_right_bottom]  = AT Inset right - bottom
25

26
 */
27
?>
28

    
29
<?php if (
30
  $page['three_inset_right_sidebar'] ||
31
  $page['three_inset_right_top'] ||
32
  $page['three_inset_right_middle'] ||
33
  $page['three_inset_right_inset'] ||
34
  $page['three_inset_right_bottom']
35
  ): ?>
36
  <!-- Three inset right Gpanel -->
37
  <div class="at-panel gpanel panel-display three-inset-right clearfix">
38
    <?php print render($page['three_inset_right_sidebar']); ?>
39
    <div class="inset-wrapper clearfix">
40
      <?php print render($page['three_inset_right_top']); ?>
41
      <?php print render($page['three_inset_right_middle']); ?>
42
      <?php print render($page['three_inset_right_inset']); ?>
43
      <?php print render($page['three_inset_right_bottom']); ?>
44
    </div>
45
  </div>
46
<?php endif; ?>