Projet

Général

Profil

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

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

1
<?php
2

    
3
/**
4
 * @file
5
 * Gpanel snippet for the three column 25/25/50 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
; 3 col 25-25-50
20
regions[three_25_25_50_top]    = AT Three column 25/25/50 - top
21
regions[three_25_25_50_first]  = AT Three column 25/25/50 - left
22
regions[three_25_25_50_second] = AT Three column 25/25/50 - center
23
regions[three_25_25_50_third]  = AT Three column 25/25/50 - right
24
regions[three_25_25_50_bottom] = AT Three column 25/25/50 - bottom
25

26
 */
27
?>
28

    
29
<?php if (
30
  $page['three_25_25_50_top'] ||
31
  $page['three_25_25_50_first'] ||
32
  $page['three_25_25_50_second'] ||
33
  $page['three_25_25_50_third'] ||
34
  $page['three_25_25_50_bottom']
35
  ): ?>
36
  <!-- Three column 25-25-50 Gpanel -->
37
  <div class="at-panel gpanel panel-display three-25-25-50 clearfix">
38
    <?php print render($page['three_25_25_50_top']); ?>
39
    <?php print render($page['three_25_25_50_first']); ?>
40
    <?php print render($page['three_25_25_50_second']); ?>
41
    <?php print render($page['three_25_25_50_third']); ?>
42
    <?php print render($page['three_25_25_50_bottom']); ?>
43
  </div>
44
<?php endif; ?>