Projet

Général

Profil

Paste
Télécharger (7,76 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / jackson / templates / page.tpl.php @ 87dbc3bf

1
<?php
2
?>
3

    
4
  <div id="page-wrapper">
5
    <div id="page">
6
  
7
      <div id="header"><div class="container section header clearfix">
8
  
9
        <?php if ($logo): ?>
10
          <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo" class="logo">
11
            <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
12
          </a>
13
        <?php endif; ?>
14
        <div id="log-in-out">
15
        <?php if(!$logged_in) print l('log in', 'user/login'); ?>
16
        <?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t('Secondary menu'))); ?>
17
        </div>
18
  
19
        <?php if ($site_name || $site_slogan): ?>
20
          <div id="name-and-slogan">
21
            <?php if ($site_name): ?>
22
              <?php if ($title): ?>
23
                <div id="site-name"><strong>
24
                  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
25
                </strong></div>
26
              <?php else: /* Use h1 when the content title is empty */ ?>
27
                <h1 id="site-name">
28
                  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
29
                </h1>
30
              <?php endif; ?>
31
            <?php endif; ?>
32
  
33
            <?php if ($site_slogan): ?>
34
              <div id="site-slogan"><?php print $site_slogan; ?></div>
35
            <?php endif; ?>
36
          </div> <!-- /#name-and-slogan -->
37
        <?php endif; ?>
38
          <?php print render($page['header']); ?>
39

    
40
      </div><!-- /.section .header -->
41
    </div> <!-- /#header -->
42
  
43
      <?php if($main_menu || $page['superfish_menu'] ): ?>
44
        <div id="navigation">
45
          <div class="container navigation section">
46
            <?php if($page['superfish_menu']) {
47
              print render($page['superfish_menu']);
48
            } else {
49
              print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('id' => 'main-menu', 'class' => array('links', 'clearfix'))));        
50
            }
51
            ?>
52
          </div><!-- /.section .navigation -->
53
        </div> <!-- /#navigation -->
54
      <?php endif; ?>
55
  
56
      <div id="banner-wrap" class="slider-content <?php if(!$page['banner']) print 'empty' ?>">
57
        <?php if ($page['banner']): ?>
58
             <div id="banner" class="clearfix">
59
               <div class="container region">
60
                 <?php print render ($page['banner']); ?>
61
               </div>
62
             </div>
63
        <?php endif; ?>
64
      </div>
65
  
66
  
67
      <div id="main-wrapper">
68
      <?php print $messages; ?>
69
    
70
        <?php if ($page['preface_one'] || $page['preface_two'] || $page['preface_three']): ?>
71
          <div id="preface" class="clearfix">
72
            <div class="container preface clearfix">
73
               <?php if ($page['preface_one']): ?>
74
              <div class="section preface-one<?php print' preface-'.  $preface; ?>">
75
                <div class="gutter">
76
                  <?php print render($page['preface_one']); ?>
77
                </div>
78
              </div>
79
              <?php endif; ?>
80
              <?php if ($page['preface_two']): ?>
81
              <div class="section preface-two<?php print' preface-'.  $preface; ?>">
82
                <div class="gutter">
83
                  <?php print render($page['preface_two']); ?>
84
                </div>
85
              </div>
86
              <?php endif; ?>
87
              <?php if ($page['preface_three']): ?>
88
              <div class="section preface-three<?php print' preface-'. $preface; ?>">
89
                <div class="gutter">
90
                  <?php print render($page['preface_three']); ?>
91
                </div>
92
              </div>
93
              <?php endif; ?>
94
            </div>
95
          </div>
96
        <?php endif; ?>
97
        
98
<div id="content-wrap" class="container content-wrap clearfix">
99
        
100
        <div id="main" class="main clearfix">
101

    
102
          <div id="content" class="column clear-fix">
103
          <?php if ($page['sidebar_first']): ?>
104
            <div id="first-sidebar" class="column sidebar first-sidebar">
105
              <div class="section">
106
                <div class="gutter">
107
                  <?php print render($page['sidebar_first']); ?>
108
                </div>
109
              </div><!-- /.section -->
110
            </div><!-- /#sidebar-first -->
111
          <?php endif; ?>
112
    
113
            <div class="page-content content-column section">
114
              <div class="gutter">
115
                <?php if ($breadcrumb): ?>
116
                  <div id="breadcrumb" class="container"><?php print $breadcrumb; ?></div>
117
                <?php endif; ?>
118
                <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
119
                <a id="main-content"></a>
120
                <?php print render($title_prefix); ?>
121
                <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
122
                <?php print render($title_suffix); ?>
123
                <?php if ($tabs): ?><div class="tabs"><?php print render($tabs); ?></div><?php endif; ?>
124
                <?php print render($page['help']); ?>
125
                <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
126
                <?php print render($page['content']); ?>
127
                <?php print $feed_icons; ?>
128
              </div>
129
            </div><!-- /.section .content .gutter -->
130
          </div> <!-- /#content -->
131
    
132
        </div><!-- /#main -->
133
        
134
        <?php if ($page['sidebar_second']): ?>
135
          <div id="second-sidebar" class="column sidebar second-sidebar">
136
            <div class="section">
137
              <div class="gutter">
138
                <?php print render($page['sidebar_second']); ?>
139
              </div><!-- /.gutter -->
140
            </div><!-- /.section -->
141
          </div> <!-- /#sidebar-second -->
142
        <?php endif; ?>
143
    
144
      </div> <!-- /#main-wrapper -->
145
  
146
</div><!-- /#content-main -->
147
  
148
    </div><!-- /#page -->
149
    
150
    <div id="footer">
151
      <?php if ($page['bottom_one'] || $page['bottom_two'] || $page['bottom_three'] || $page['bottom_four']): ?>
152
      <div id="bottom" class="container clearfix">
153
        <?php if ($page['bottom_one']): ?>
154
          <div class="region bottom bottom-one<?php print ' bottom-' .  $bottom; ?>">
155
            <div class="gutter">
156
              <?php print render($page['bottom_one']); ?>
157
            </div>
158
          </div>
159
        <?php endif; ?>
160
        <?php if ($page['bottom_two']): ?>
161
          <div class="region bottom bottom-two<?php print ' bottom-' .  $bottom; ?>">
162
            <div class="gutter">
163
              <?php print render($page['bottom_two']); ?>
164
            </div>
165
          </div>
166
        <?php endif; ?>
167
        <?php if ($page['bottom_three']): ?>
168
          <div class="region bottom bottom-three<?php print ' bottom-' . $bottom; ?>">
169
            <div class="gutter">
170
              <?php print render($page['bottom_three']); ?>
171
            </div>
172
          </div>
173
        <?php endif; ?>
174
        <?php if ($page['bottom_four']): ?>
175
          <div class="region bottom bottom-four<?php print ' bottom-'. $bottom; ?>">
176
            <div class="gutter">
177
              <?php print render($page['bottom_four']); ?>
178
            </div>
179
          </div>
180
        <?php endif; ?>
181
      </div>
182
      <?php endif; ?>
183
      <div class="container section footer">
184
        <?php print render($page['footer']); ?>
185
        <div id="levelten"><?php print l('Drupal Theme', 'http://www.leveltendesign.com/'); ?> by LevelTen Interactive</div>
186
      </div><!-- /.section -->
187
    </div> <!-- /#footer -->
188
    
189
  </div> <!-- /#page-wrapper -->