View difference between Paste ID: hcQSDptq and R0UrTtUq
SHOW: | | - or go back to the newest paste.
1
<?php
2
3
/**
4
 * @file
5
 * LiteJazz page.tpl.php
6
 *
7
 * for Default theme implementation to display a block see modules/system/page.tpl.php.
8
 */
9
?>
10
<div id="page">
11
  <div id="masthead">
12
    <div id="header" class="clearfix">
13
      <div class="header-right">
14
        <div class="header-left">
15
      <?php if($page['search_box']): ?>
16
      <!-- Searchbox-region-->
17
        <div id="searchbox">
18
        <?php print render($page['search_box']); ?>
19
        </div>
20
      <!-- /Searchbox-region -->
21
      <?php endif; ?>
22
          <?php if ($logo): ?>
23
            <div id="logo-title">
24
                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>">
25
                <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" />
26
                </a>
27
            </div>
28
          <?php endif; ?>
29
          <!-- /logo-title -->
30
          <?php if ($site_name || $site_slogan): ?>
31
            <div id="name-and-slogan">
32
              <?php if ($site_name): ?>
33
                <h1 id='site-name'>
34
                  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>">
35
                    <?php print $site_name; ?>
36
                  </a>
37
                </h1>
38
              <?php endif; ?>
39
              <?php if ($site_slogan): ?>
40
                <div id='site-slogan'>
41
                  <?php print $site_slogan; ?>
42
                </div>
43
              <?php endif; ?>
44
            </div>
45
         <?php endif; ?>
46
         <!-- /name-and-slogan -->
47
            <?php if ($page['header']): ?>
48
              <div style="clear:both"></div>
49
              <?php print render($page['header']); ?>
50
            <?php endif; ?>
51
          </div>
52
          <!-- /header-left -->
53
        </div>
54
        <!-- /header-right -->
55
      </div>
56
      <!-- /header -->
57
    </div>
58
 
59
      <div id="navigation" class="menu <?php if ($main_menu) { print "withprimary"; } if ($secondary_menu) { print " withsecondary"; } ?> ">
60
        <!-- navigation main/secondary menu -->
61
        <div id="primarymenu" class="clearfix">
62
          <?php if ($main_menu) : ?>
63
            <!-- main menu -->
64
            <?php print theme(
65
              'links__system_main_menu',
66
              array(
67
              'links' =>
68
              $main_menu,
69
              'attributes' => array(
70
              'id' => array('primary'),
71
              'class' => array(
72
              'menu',
73
              'clearfix'
74
              )),
75
              ));
76
            ?>
77
            <!-- /main menu -->
78
          <?php endif; ?>
79
        </div>
80
        <div id="secondarymenu" class="clearfix">
81
          <?php if ($secondary_menu) : ?>
82
            <!-- secondary menu -->
83
            <?php print theme(
84
              'links__system_secondary_menu',
85
              array('links' => $secondary_menu,
86
              'attributes' =>
87
              array(
88
              'id' => array('secondary'),
89
              'class' =>
90
              array(
91
              'links secondary-links',
92
              'clearfix'
93
              )),
94
              ));
95
            ?>
96
            <!-- secondary menu -->
97
          <?php endif; ?>
98
        </div>
99
      </div>
100
 
101
    <?php if ($page['suckerfish']): ?>
102
      <div id="suckerfishmenu" class="clearfix">
103
        <?php print render($page['suckerfish']); ?>
104
      </div>
105
    <?php endif; ?>
106
    <!-- /navigation -->
107
    <?php
108
      $section1count = 0;
109
      if ($page['user1'])  { $section1count++; }
110
      if ($page['user2'])  { $section1count++; }
111
      if ($page['user3'])  { $section1count++; }
112
    ?>
113
    <?php if ($section1count): ?>
114
      <?php $section1width = 'width' . floor(99 / $section1count); ?>
115
      <div class="clearfix clr" id="section1">
116
        <div class="sections">
117
          <?php if ($page['user1']): ?>
118
            <div class="section <?php echo $section1width ?>">
119
              <?php print render($page['user1']); ?>
120
            </div>
121
          <?php endif; ?>
122
          <?php if ($page['user2']): ?>
123
            <div class="section <?php echo $section1width ?>">
124
              <?php print render($page['user2']); ?>
125
            </div>
126
          <?php endif; ?>
127
          <?php if ($page['user3']): ?>
128
            <div class="section <?php echo $section1width ?>">
129
              <?php print render($page['user3']); ?>
130
            </div>
131
          <?php endif; ?>
132
        </div>
133
        <div style="clear:both">
134
        </div>
135
      </div>
136
      <!-- /section1 -->
137
    <?php endif; ?>
138
    <div class="clearfix" id="middlecontainer">
139
      <?php if ($page['sidebar_first']) { ?>
140
        <div id="sidebar-left"><?php print render($page['sidebar_first']) ?> </div>
141
      <?php } ?>
142
      <div id="main">
143
        <div id="squeeze">
144
          <?php if (theme_get_setting('litejazz_breadcrumb')): ?>
145
            <?php if ($breadcrumb): ?>
146
              <div id="breadcrumb">
147
                <?php print $breadcrumb; ?>
148
              </div>
149
            <?php endif; ?>
150
          <?php  endif; ?>
151
        <?php  if ($page['highlighted']) { ?>
152
          <div id="mission">
153
            <?php  print render($page['highlighted']) ?>
154
          </div>
155
        <?php } ?>
156
        <?php if ($page['content_top']):?>
157
          <div id="content-top">
158
            <?php print render($page['content_top']); ?>
159
          </div>
160
        <?php endif; ?>
161
        <?php  if ($show_messages) { print render($messages); } ?>
162
        <?php if ($title): ?>
163
        <!-- title -->
164
          <div id="branding" class="clearfix">
165
            <?php print render($title_prefix); ?>
166
            <h1 <?php print $title_attributes; ?>><?php print render($title); ?></h1>
167
            <?php print render($title_suffix); ?>
168
          </div>
169
        <!-- /title -->
170
        <?php endif; ?>
171
        <?php if ($tabs): ?>
172
        <div class="tabs"><?php print render($tabs) ?></div>
173
        <?php endif; ?>
174
        <?php print render($page['help']); ?>
175
        <?php if ($action_links): ?>
176
          <!-- action links -->
177
          <ul class="action-links">
178
            <?php print render($action_links); ?>
179
          </ul>
180
          <!-- /action links -->
181
        <?php endif; ?>
182
        <?php print render($page['content']); ?>
183
        <?php print $feed_icons; ?>
184
        <?php if ($page['content_bottom']): ?>
185
          <div id="content-bottom">
186
            <?php print render($page['content_bottom']); ?>
187
          </div>
188
        <?php endif; ?>
189
      </div>
190
    </div>
191
    <?php if ($page['sidebar_second']) { ?>
192
        <div id="sidebar-right"><?php print render($page['sidebar_second']); ?> </div>
193
    <?php } ?>
194
  </div>
195
  <div style="clear:both">
196
</div>
197
<?php
198
  $section2count = 0;
199
  if ($page['user4'])  { $section2count++; }
200
  if ($page['user5'])  { $section2count++; }
201
  if ($page['user6'])  { $section2count++; }
202
?>
203
<?php if ($section2count): ?>
204
  <?php $section2width = 'width' . floor(99 / $section2count); ?>
205
  <div class="clearfix clr" id="section2">
206
    <div class="sections">
207
      <?php if ($page['user4']): ?>
208
        <div class="section <?php echo $section2width ?>">
209
          <?php print render($page['user4']); ?>
210
        </div>
211
      <?php endif; ?>
212
      <?php if ($page['user5']): ?>
213
        <div class="section <?php echo $section2width ?>">
214
          <?php print render($page['user5']); ?>
215
        </div>
216
      <?php endif; ?>
217
        <?php if ($page['user6']): ?>
218
        <div class="section <?php echo $section2width ?>">
219
          <?php print render($page['user6']); ?>
220
        </div>
221
      <?php endif; ?>
222
    </div>
223
    <div style="clear:both">
224
    </div>
225
  </div>
226
<!-- /section2 -->
227
<?php endif; ?>
228
<?php if ($page['footer'] || $page['footer_message'] || theme_get_setting('litejazz_banner')): ?>
229
  <div id="footer">
230
    <?php if ($page['footer']) { ?>
231
      <div id="footer-region">
232
        <?php print render($page['footer']);?>
233
      </div>
234
    <?php } ?>
235
      <?php if ($page['footer_message']) { ?>
236
    <div id="footer-message">
237
        <?php print render($page['footer_message']) ?>
238
    </div><!-- /footer message -->
239
      <?php  } ?>
240
      <?php if (theme_get_setting('litejazz_banner')): ?>
241
      <div class="rooplelogo">
242
      <?php if (theme_get_setting('litejazz_themelogo')) { ?>
243
      <a href="http://www.roopletheme.com" title="RoopleTheme!" target="_blank">
244
        <img src="<?php print base_path() . path_to_theme() . '/images/' . get_litejazz_style() . '/roopletheme.png'; ?>" alt="RoopleTheme!"/>
245
      </a>
246
      <?php } else { ?>
247
      <a href="http://www.roopletheme.com" title="RoopleTheme!" target="_blank">
248
        <img src="<?php print base_path() . path_to_theme() . '/roopletheme.png'; ?>" alt="RoopleTheme!"/>
249
      </a>
250
      <?php } ?>
251
      </div><!-- /rooplelogo -->
252
      <?php endif; ?>
253
    </div>
254
<?php endif; ?>
255
    <div id="footer-wrapper" class="clearfix">
256
      <div class="footer-right">
257
        <div class="footer-left">
258
        </div>
259
        <!-- /footer-left -->
260
      </div>
261
      <!-- /footer-right -->
262
    </div>
263
  <!-- /footer-wrapper -->
264
</div>
265
<!-- LJ VER 2.3 -->