Projet

Général

Profil

Paste
Télécharger (3,36 ko) Statistiques
| Branche: | Révision:

root / drupal7 / modules / block / tests / themes / block_test_theme / page.tpl.php @ 01dfd3b5

1
<?php
2

    
3
/**
4
 * @file
5
 * Custom theme implementation to display a single Drupal page without
6
 * sidebars. The sidebars are hidden by regions_hidden for this theme, so
7
 * the default page.tpl.php will not work without throwing exceptions.
8
 */
9
?>
10

    
11
  <div id="page-wrapper"><div id="page">
12

    
13
    <div id="header"><div class="section clearfix">
14

    
15
      <?php if ($logo): ?>
16
        <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
17
          <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
18
        </a>
19
      <?php endif; ?>
20

    
21
      <?php if ($site_name || $site_slogan): ?>
22
        <div id="name-and-slogan">
23
          <?php if ($site_name): ?>
24
            <?php if ($title): ?>
25
              <div id="site-name"><strong>
26
                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
27
              </strong></div>
28
            <?php else: /* Use h1 when the content title is empty */ ?>
29
              <h1 id="site-name">
30
                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
31
              </h1>
32
            <?php endif; ?>
33
          <?php endif; ?>
34

    
35
          <?php if ($site_slogan): ?>
36
            <div id="site-slogan"><?php print $site_slogan; ?></div>
37
          <?php endif; ?>
38
        </div> <!-- /#name-and-slogan -->
39
      <?php endif; ?>
40

    
41
      <?php print render($page['header']); ?>
42

    
43
    </div></div> <!-- /.section, /#header -->
44

    
45
    <?php if ($main_menu || $secondary_menu): ?>
46
      <div id="navigation"><div class="section">
47
        <?php print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('id' => 'main-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t('Main menu'))); ?>
48
        <?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'))); ?>
49
      </div></div> <!-- /.section, /#navigation -->
50
    <?php endif; ?>
51

    
52
    <?php if ($breadcrumb): ?>
53
      <div id="breadcrumb"><?php print $breadcrumb; ?></div>
54
    <?php endif; ?>
55

    
56
    <?php print $messages; ?>
57

    
58
    <div id="main-wrapper"><div id="main" class="clearfix">
59

    
60
      <div id="content" class="column"><div class="section">
61
        <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
62
        <a id="main-content"></a>
63
        <?php print render($title_prefix); ?>
64
        <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
65
        <?php print render($title_suffix); ?>
66
        <?php if ($tabs = render($tabs)): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
67
        <?php print render($page['help']); ?>
68
        <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
69
        <?php print render($page['content']); ?>
70
        <?php print $feed_icons; ?>
71
      </div></div> <!-- /.section, /#content -->
72
    </div></div> <!-- /#main, /#main-wrapper -->
73

    
74
    <div id="footer"><div class="section">
75
      <?php print render($page['footer']); ?>
76
    </div></div> <!-- /.section, /#footer -->
77

    
78
  </div></div> <!-- /#page, /#page-wrapper -->