Projet

Général

Profil

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

root / htmltest / sites / all / themes / blogbuzz / templates / page.tpl.php @ 6c38d829

1
<?php
2
// $Id: page.tpl.php,v 1.1.2.1 2011/01/23 05:03:51 antsin Exp $
3

    
4
/*
5
+----------------------------------------------------------------+
6
|   BlogBuzz for Dupal 7.x - Version 1.0                         |
7
|   Copyright (C) 2011 Antsin.com All Rights Reserved.           |
8
|   @license - GNU GENERAL PUBLIC LICENSE                        |
9
|----------------------------------------------------------------|
10
|   Theme Name: BlogBuzz                                         |
11
|   Description: BlogBuzz by Antsin                              |
12
|   Author: Antsin.com                                           |
13
|   Website: http://www.antsin.com/                              |
14
|----------------------------------------------------------------+
15
*/  
16
?>
17

    
18
  <div id="page"><div id="page-inner">
19
    <?php if ($secondary_menu): ?>
20
      <div id="secondary"><div id="secondary-inner">
21
        <?php if ($secondary_nav): print $secondary_nav; endif; ?>
22
      </div></div> <!-- /#secondary-inner, /#secondary -->
23
    <?php endif; ?>
24
    <div id="header"><div id="header-inner" class="clearfix">
25
      <?php if ($logo || $site_name || $site_slogan): ?>
26
        <div id="logo-title">
27
          <?php if ($logo): ?>
28
            <div id="logo"><a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo-image" /></a></div>
29
          <?php endif; ?>
30
                  <div id="site-name-slogan">
31
            <?php if ($site_name): ?>   
32
              <h1 id="site-name"><a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?></a></h1>
33
            <?php endif; ?>
34
            <?php if ($site_slogan): ?>
35
              <span id="site-slogan"><?php print $site_slogan; ?></span>
36
            <?php endif; ?>
37
                  </div>
38
        </div> <!-- /#logo-title -->
39
      <?php endif; ?>
40
          <?php if ($page['header']): ?>
41
        <div id="header-blocks">
42
          <?php print render($page['header']); ?>
43
        </div> <!-- /#header-blocks -->
44
      <?php endif; ?>
45
    </div></div> <!-- /#header-inner, /#header -->
46

    
47
    <?php if ($main_menu || $page['primary_menu']): ?>
48
      <div id="primary">
49
            <div id="primary-inner" class="clearfix">
50
          <?php if ($main_menu && !$page['primary_menu']): ?>
51
            <?php print $primary_nav; ?>
52
                  <?php else: ?>
53
            <span><?php print render($page['primary_menu']); ?></span>
54
                  <?php endif; ?>
55
            </div>
56
          </div>
57
    <?php endif; ?> <!-- /#primary -->
58

    
59
        <div id="main">
60
          <div id="main-inner">
61
            <div class="clearfix">
62
          <?php if ($page['showcase']): ?>
63
                <div id="showcase" ><div id="showcase-inner" class="clearfix">
64
              <?php print render($page['showcase']); ?>
65
                    </div></div>
66
          <?php endif; ?>  
67
          <div id="content">
68
                    <?php if ($breadcrumb && $breadcrumb != '<div class="breadcrumb"></div>'): print '<div id="breadcrumb">'.t('You are here: ').$breadcrumb.'</div>';
69
                    else: print '<div id="breadcrumb">'.t('You are here: ').'<a href="/">Home</a></div>'; 
70
                    endif; ?>        
71
            <div id="content-inner">              
72
                      <?php if ($title || $tabs || $help || $messages): ?>
73
                <div id="content-header">
74
                  <?php if ($title): ?>
75
                    <h1 class="title"><?php print $title; ?></h1>
76
                  <?php endif; ?>
77
                  <?php print $messages; ?>
78
                  <?php if ($tabs): ?>
79
                    <div class="tabs"><?php print render($tabs); ?></div>
80
                  <?php endif; ?>
81
                  <?php print render($page['help']); ?>
82
                </div> <!-- /#content-header -->
83
              <?php endif; ?>
84
              <?php print render($page['content']); ?>
85
            </div> <!-- /#content-inner -->        
86
          </div> <!-- /#content -->
87

    
88
          <?php if ($page['sidebar_first']): ?>
89
            <div id="sidebar-left">
90
              <?php print render($page['sidebar_first']); ?>
91
            </div> <!-- /#sidebar-left -->
92
          <?php endif; ?>
93

    
94
          <?php if ($page['sidebar_second']): ?>
95
            <div id="sidebar-right">
96
              <?php print render($page['sidebar_second']); ?>
97
            </div> <!-- /#sidebar-right -->
98
          <?php endif; ?>
99
            </div>
100

    
101
        <?php if ($page['main_bottom_one'] || $page['main_bottom_two'] || $page['main_bottom_three'] || $page['main_bottom_four']): ?>
102
          <div id="main-bottom"><div id="main-bottom-inner" class="main_bottom-<?php print (bool) $page['main_bottom_one'] + (bool) $page['main_bottom_two'] + (bool) $page['main_bottom_three'] + (bool) $page['main_bottom_four']; ?> clearfix">
103
            <?php if ($page['main_bottom_one']): ?>
104
              <div id="main-bottom-one" class="column">
105
                <?php print render($page['main_bottom_one']); ?>
106
              </div><!-- /main-bottom-one -->
107
            <?php endif; ?>
108
            <?php if ($page['main_bottom_two']): ?>
109
              <div id="main-bottom-two" class="column">
110
                <?php print render($page['main_bottom_two']); ?>
111
              </div><!-- /main-bottom-two -->
112
            <?php endif; ?>
113
                <?php if ($page['main_bottom_three']): ?>
114
              <div id="main-bottom-three" class="column">
115
                <?php print render($page['main_bottom_three']); ?>
116
              </div><!-- /main-bottom-three -->
117
            <?php endif; ?>
118
                    <?php if ($page['main_bottom_four']): ?>
119
              <div id="main-bottom-four" class="column">
120
                <?php print render($page['main_bottom_four']); ?>
121
              </div><!-- /main-bottom-four -->
122
            <?php endif; ?>
123
          </div></div> 
124
            <?php endif; ?>  
125
          </div>
126
        </div><!-- /#main-inner, /#main --> 
127

    
128
    <?php if ($page['footer_one'] || $page['footer_two'] || $page['footer_three'] || $page['footer_four']): ?>
129
      <div id="footer"><div id="footer-inner" class="footer-<?php print (bool) $page['footer_one'] + (bool) $page['footer_two'] + (bool) $page['footer_three'] + (bool) $page['footer_four']; ?> clearfix">
130
        <?php if ($page['footer_one']): ?>
131
          <div id="footer-one" class="column">
132
            <?php print render($page['footer_one']); ?>
133
          </div><!-- /footer-one -->
134
        <?php endif; ?>
135
        <?php if ($page['footer_two']): ?>
136
          <div id="footer-two" class="column">
137
            <?php print render($page['footer_two']); ?>
138
          </div><!-- /footer-two -->
139
        <?php endif; ?>
140
                <?php if ($page['footer_three']): ?>
141
          <div id="footer-three" class="column">
142
            <?php print render($page['footer_three']); ?>
143
          </div><!-- /footer-three -->
144
        <?php endif; ?>
145
                <?php if ($page['footer_four']): ?>
146
          <div id="footer-four" class="column">
147
            <?php print render($page['footer_four']); ?>
148
          </div><!-- /footer-four -->
149
        <?php endif; ?>
150
      </div></div> <!-- /#footer-inner, /#footer -->
151
    <?php endif; ?>  
152
    
153
        <div id="closure"><div id="closure-inner"><div id="designed-by"><small><a href="http://www.antsin.com/en/" title="Drupal Theme">Designed by Antsin.com</a></small></div><?php print render($page['footer']); ?></div></div>
154
  </div></div> <!-- /#page-inner, /#page -->