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-50-25.php @ 74f6bef0

1
<?php
2

    
3
/**
4
 * @file
5
 * Gpanel snippet for the three column 25/50/25 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-50-25
20
regions[three_25_50_25_top]    = AT Three column 25/50/25 - top
21
regions[three_25_50_25_first]  = AT Three column 25/50/25 - left
22
regions[three_25_50_25_second] = AT Three column 25/50/25 - center
23
regions[three_25_50_25_third]  = AT Three column 25/50/25 - right
24
regions[three_25_50_25_bottom] = AT Three column 25/50/25 - bottom
25

26
 */
27
?>
28

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