Projet

Général

Profil

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

root / drupal7 / sites / all / themes / UrbanSolice / 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

    
15
        <div id="user-links" class="clearfix"><?php if ($user_links) print theme('links', $user_links); ?></div>
16

    
17
  
18
        <?php if ($site_name || $site_slogan): ?>
19
          <div id="name-and-slogan">
20
            <?php if ($site_name): ?>
21
              <?php if ($title): ?>
22
                <div id="site-name"><strong>
23
                  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
24
                </strong></div>
25
              <?php else: /* Use h1 when the content title is empty */ ?>
26
                <h1 id="site-name">
27
                  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
28
                </h1>
29
              <?php endif; ?>
30
            <?php endif; ?>
31
  
32
            <?php if ($site_slogan): ?>
33
              <div id="site-slogan"><?php print $site_slogan; ?></div>
34
            <?php endif; ?>
35
          </div> <!-- /#name-and-slogan -->
36
        <?php endif; ?>
37
          <?php print render($page['header']); ?>
38

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

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