~ul10n-portal-dev/ul10n-portal/ul10n-portal-light-drupal-theme

« back to all changes in this revision

Viewing changes to templates/page.tpl.php

  • Committer: David Planella
  • Date: 2011-05-29 16:34:57 UTC
  • Revision ID: david.planella@ubuntu.com-20110529163457-crc3j1fjjrj4myh6
Several theme improvements: collapsible sidebar blocks, now the banner image is not hardcoded and can be specified in a view, the banner message is now proper text, buttons are no longer images and are defined in CSS, fixed padding on most visible nodes, and others

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
</head>
11
11
 
12
12
<body class="<?php print $body_classes; ?>">
 
13
 
13
14
  <!-- Main page: 16-column grid container -->
14
15
  <div id="page" class="container-16 clear-block">
15
16
 
22
23
      <div id="site-menu" class="<?php print ns('grid-16', $linked_logo_img, 5) . ' ' . ns('pull-5', !$linked_logo_img, 5); ?>">
23
24
        <?php print $main_menu_links; ?>
24
25
      </div>
25
 
 
26
 
    </div>
27
 
 
28
 
    <!-- Front page image or slideshow -->
 
26
    </div> <!-- /#site-header -->
 
27
 
 
28
    <!-- Front page image or slideshow -->      
29
29
    <?php if ($is_front): ?>
30
30
      <div id="slideshow" class="clear-block">
31
 
          <div id="slideshow-inner" class="grid-16">&nbsp;
32
 
          <!--
33
 
          <ul id="ubuntu-l10n-slider">
34
 
              <li><img src="/drupal6/sites/default/themes/ubuntu-light-ninesixty/images/slide-civil-1.jpg" alt="" /></li>
35
 
              <li><img src="/drupal6/sites/default/themes/ubuntu-light-ninesixty/images/slide-civil-2.jpg" alt="" /></li>
36
 
          </ul>
37
 
          -->
 
31
        <?php if ($slideshow): ?>
 
32
          <?php print $slideshow; ?>
 
33
        <?php endif; ?>
 
34
      </div>
 
35
    <?php endif; ?>
 
36
 
 
37
    <!-- Main content wrapper -->
 
38
    <div id="main-wrapper" class="<?php if ($is_front) { print 'front-wrapper'; } ?> clear-block">
 
39
 
 
40
      <!-- Main content, breadcrumbs, page title and other blocks -->
 
41
      <div id="main" class="column <?php if ($is_front) { print 'front '; } print ns('grid-16', $left, 3, $right, 4) . ' ' . ns('push-3', !$left, 3); ?>">
 
42
        <?php print $breadcrumb; ?>
 
43
        <?php if ($title): ?>
 
44
          <h1 class="title" id="page-title"><?php print $title; ?></h1>
 
45
        <?php endif; ?>
 
46
        <?php if ($tabs): ?>
 
47
          <div class="tabs"><?php print $tabs; ?></div>
 
48
        <?php endif; ?>
 
49
        <?php print $messages; ?>
 
50
        <?php print $help; ?>
 
51
 
 
52
        <div id="main-content" class="region clear-block">
 
53
          <?php print $content; ?>
38
54
        </div>
39
 
      </div>
40
 
    <?php endif; ?>
41
 
 
42
 
    <div id="main-wrapper" class="<?php if ($is_front) { print 'front-wrapper'; } ?> clear-block">
43
 
 
44
 
    <div id="main" class="column <?php if ($is_front) { print 'front '; } print ns('grid-16', $left, 3, $right, 4) . ' ' . ns('push-3', !$left, 3); ?>">
45
 
      <?php print $breadcrumb; ?>
46
 
      <?php if ($title): ?>
47
 
        <h1 class="title" id="page-title"><?php print $title; ?></h1>
48
 
      <?php endif; ?>
49
 
      <?php if ($tabs): ?>
50
 
        <div class="tabs"><?php print $tabs; ?></div>
51
 
      <?php endif; ?>
52
 
      <?php print $messages; ?>
53
 
      <?php print $help; ?>
54
 
 
55
 
      <div id="main-content" class="region clear-block">
56
 
        <?php print $content; ?>
57
 
      </div>
58
 
 
59
 
    </div>
60
 
 
61
 
  <!-- Optional left sidebar -->
62
 
  <?php if ($left): ?>
63
 
    <div id="sidebar-left" class="column sidebar region grid-3 <?php print ns('pull-13', $right, 4); ?>">
64
 
      <?php print $left; ?>
65
 
    </div>
66
 
  <?php endif; ?>
67
 
 
68
 
  <!-- Optional right sidebar -->
69
 
  <?php if ($right): ?>
70
 
    <div id="sidebar-right" class="column sidebar region grid-4">
71
 
      <?php print $right; ?>
72
 
    </div>
73
 
  <?php endif; ?>
74
 
 
75
 
  </div> <!-- main-wrapper -->
76
 
  </div>
77
 
 
78
 
      <div id="footer" class="container-16 clear-block">
 
55
    </div> <!-- /#main -->
 
56
 
 
57
    <!-- Optional left sidebar -->
 
58
    <?php if ($left): ?>
 
59
      <div id="sidebar-left" class="column sidebar region grid-3 <?php print ns('pull-13', $right, 4); ?>">
 
60
        <?php print $left; ?>
 
61
      </div>
 
62
    <?php endif; ?>
 
63
 
 
64
    <!-- Optional right sidebar -->
 
65
    <?php if ($right): ?>
 
66
      <div id="sidebar-right" class="column sidebar region grid-4">
 
67
        <?php print $right; ?>
 
68
      </div>
 
69
    <?php endif; ?>
 
70
 
 
71
    </div> <!-- /#main-wrapper -->
 
72
 
 
73
  </div> <!-- /#page -->
 
74
 
 
75
  <!-- Footer -->
 
76
  <div id="footer" class="container-16 clear-block">
79
77
    <?php if ($footer): ?>
80
78
      <div id="footer-region" class="region grid-14 clear-block">
81
79
        <?php print $footer; ?>
87
85
        <?php print $footer_message; ?>
88
86
      </div>
89
87
    <?php endif; ?>
90
 
      </div>
91
 
 
 
88
  </div> <!-- /#footer -->
92
89
 
93
90
  <?php print $closure; ?>
94
91
</body>