Browse Source

Bring in "garland_reloaded" features: wide screen, content-top, q formatting.

Frederic G. MARAND 11 years ago
parent
commit
0e13d6017c
5 changed files with 145 additions and 1 deletions
  1. 38 0
      garland_fgm.css
  2. 8 1
      garland_fgm.info
  3. BIN
      images/bg-navigation.png
  4. 95 0
      page.tpl.php
  5. 4 0
      template.php

+ 38 - 0
garland_fgm.css

@@ -1,5 +1,6 @@
 @CHARSET "UTF-8";
 
+/* Make the admin_menu font more readable */
 #admin-menu {
   font-size: 12px;
 }
@@ -27,3 +28,40 @@ code {
   padding: 0.2em 0.5em;
   text-shadow: 0.2em 0.2em 2em grey; 
 }
+
+q {
+  font-style: italic;  
+}
+
+q::before {
+  content: open-quote;
+}
+
+q::after {
+  content: close-quote;
+}
+
+  /* A flashy color for content-top blocks for emergency situations */
+#contenttop {
+  min-height: 1em;
+  background: #fff url(images/bg-navigation.png) repeat 50% 100%;
+  border:  1px solid orange ;
+  margin-bottom: 1em;
+  padding: 1em;
+}
+
+
+/* Spread wider on wide screens */
+#wrapper #container {
+  margin: 0 auto;
+  padding: 0 20px;
+  max-width: 2048px;
+}
+
+/* Push logo a bit further down to better align it with the H1 */
+#wrapper #container #header h1 img {
+  padding-top: 16px;
+  padding-right: 20px; /* LTR */
+  float: left; /* LTR */
+}
+

+ 8 - 1
garland_fgm.info

@@ -1,9 +1,16 @@
 
 name = Garland for FGM
-description = Garland with bigger text
+description = Garland + bigger text, wider area, content-top, and a few code-oriented extras.
 core = 6.x
 engine = phptemplate
 base theme = garland
 
+regions[header] = Header
+regions[left] = Left sidebar
+regions[right] = Right sidebar
+regions[contenttop] = Content top
+regions[content] = Content
+regions[footer] = Footer
+
 ; Style sheets.
 stylesheets[all][] = garland_fgm.css

BIN
images/bg-navigation.png


+ 95 - 0
page.tpl.php

@@ -0,0 +1,95 @@
+<?php
+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
+  <head>
+    <?php print $head ?>
+    <title><?php print $head_title ?></title>
+    <?php print $styles ?>
+    <?php print $scripts ?>
+    <!--[if lt IE 7]>
+      <?php print phptemplate_get_ie_styles(); ?>
+    <![endif]-->
+  </head>
+  <body<?php print phptemplate_body_class($left, $right); ?>>
+
+<!-- Layout -->
+  <div id="header-region" class="clear-block"><?php print $header; ?></div>
+
+    <div id="wrapper">
+    <div id="container" class="clear-block">
+
+      <div id="header">
+        <div id="logo-floater">
+        <?php
+          // Prepare header
+          $site_fields = array();
+          if ($site_name) {
+            $site_fields[] = check_plain($site_name);
+          }
+          if ($site_slogan) {
+            $site_fields[] = check_plain($site_slogan);
+          }
+          $site_title = implode(' ', $site_fields);
+          if ($site_fields) {
+            $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
+          }
+          $site_html = implode(' ', $site_fields);
+
+          if ($logo || $site_title) {
+            print '<h1><a href="'. check_url($front_page) .'" title="'. $site_title .'">';
+            if ($logo) {
+              print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
+            }
+            print $site_html .'</a></h1>';
+          }
+        ?>
+        </div>
+
+        <?php if (isset($primary_links)) : ?>
+          <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
+        <?php endif; ?>
+        <?php if (isset($secondary_links)) : ?>
+          <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
+        <?php endif; ?>
+
+      </div> <!-- /header -->
+
+      <?php if ($left): ?>
+        <div id="sidebar-left" class="sidebar">
+          <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
+          <?php print $left ?>
+        </div>
+      <?php endif; ?>
+
+      <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
+          <?php print $breadcrumb; ?>
+          <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
+          <?php if ($contenttop): print '<div id="contenttop">' . $contenttop . '</div>'; endif ?>
+          <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
+          <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
+          <?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?>
+          <?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
+          <?php if ($show_messages && $messages): print $messages; endif; ?>
+          <?php print $help; ?>
+          <div class="clear-block">
+            <?php print $content ?>
+          </div>
+          <?php print $feed_icons ?>
+          <div id="footer"><?php print $footer_message . $footer ?></div>
+      </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
+
+      <?php if ($right): ?>
+        <div id="sidebar-right" class="sidebar">
+          <?php if (!$left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
+          <?php print $right ?>
+        </div>
+      <?php endif; ?>
+
+    </div> <!-- /container -->
+  </div>
+<!-- /layout -->
+
+  <?php print $closure ?>
+  </body>
+</html>

+ 4 - 0
template.php

@@ -0,0 +1,4 @@
+<?php
+function garland_fgm_preprocess_page(&$vars) {
+//  dsm($vars);
+}