public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Theo Chatzimichos" <tampakrap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/blogs-gentoo:master commit in: /
Date: Thu, 26 May 2011 15:31:30 +0000 (UTC)	[thread overview]
Message-ID: <7760ec0827376447b71ff7aaaf3b6eeee94ded6a.tampakrap@gentoo> (raw)

commit:     7760ec0827376447b71ff7aaaf3b6eeee94ded6a
Author:     Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
AuthorDate: Thu May 26 15:32:13 2011 +0000
Commit:     Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
CommitDate: Thu May 26 15:32:13 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/blogs-gentoo.git;a=commit;h=7760ec08

more hardcode of the header banner in wp-oxygen theme

---
 header.php |   72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 72 insertions(+), 0 deletions(-)

diff --git a/header.php b/header.php
new file mode 100644
index 0000000..385fc1f
--- /dev/null
+++ b/header.php
@@ -0,0 +1,72 @@
+<?php load_theme_textdomain('itheme')?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head profile="http://gmpg.org/xfn/11">
+<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
+
+<title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title>
+
+<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
+
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" type="text/css" media="print" />
+
+<!-- Sidebar docking boxes (dbx) by Brothercake - http://www.brothercake.com/ -->
+<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx.js"></script>
+<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx-key.js"></script>
+<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/dbx.css" media="screen, projection" />
+
+<!--[if lt IE 7]>
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie-gif.css" type="text/css" />
+<![endif]-->
+
+<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
+<link rel="shortcut icon" href="/wp-content/themes/wp-oxygen/images/mini-blogroll.png" />
+
+<?php wp_head(); ?>
+</head>
+<body>
+<div id="page">
+  <div id="wrapper">
+    <div id="header">
+	  <?php if ( get_bloginfo("name") == "Straight from tha bloK" ) { ?>
+        <a href="<?php echo get_settings('home'); ?>"><img src="http://blogs.gentoo.org/tampakrap/files/2009/12/banner.png"></a>
+      <?php } else { ?>
+	    <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
+	  <?php } ?>
+      <div class="description"><?php bloginfo('description'); ?></div>
+      <?php include (TEMPLATEPATH . '/searchform.php'); ?>
+    </div><!-- /header -->
+
+    <div id="left-col">
+      <div id="nav">
+        <ul>
+          <li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>/" title="<?php _e('Home', 'itheme')?>"><?php _e('Home', 'itheme')?></a></li>
+		  <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
+        </ul>
+      </div><!-- /nav -->
+
+    <?php /* Menu for subpages of current page (thanks to K2 theme for this code) */
+    global $notfound;
+    if (is_page() and ($notfound != '1')) {
+        $current_page = $post->ID;
+        while($current_page) {
+            $page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
+            $current_page = $page_query->post_parent;
+        }
+        $parent_id = $page_query->ID;
+        $parent_title = $page_query->post_title;
+
+        // if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_status != 'attachment'")) {
+        if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_type != 'attachment'")) {
+    ?>
+
+    <div id="subnav">
+      <ul>
+        <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&child_of='. $parent_id); ?>
+      </ul>
+    </div><!-- /sub nav -->
+    <?php } } ?>
+	



                 reply	other threads:[~2011-05-26 15:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7760ec0827376447b71ff7aaaf3b6eeee94ded6a.tampakrap@gentoo \
    --to=tampakrap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox