From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QPcXC-0007CW-NY for garchives@archives.gentoo.org; Thu, 26 May 2011 15:31:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D19661C152; Thu, 26 May 2011 15:31:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9303A1C152 for ; Thu, 26 May 2011 15:31:31 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 275561B4033 for ; Thu, 26 May 2011 15:31:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 7F38580505 for ; Thu, 26 May 2011 15:31:30 +0000 (UTC) From: "Theo Chatzimichos" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Theo Chatzimichos" Message-ID: <7760ec0827376447b71ff7aaaf3b6eeee94ded6a.tampakrap@gentoo> Subject: [gentoo-commits] proj/blogs-gentoo:master commit in: / X-VCS-Repository: proj/blogs-gentoo X-VCS-Files: header.php X-VCS-Directories: / X-VCS-Committer: tampakrap X-VCS-Committer-Name: Theo Chatzimichos X-VCS-Revision: 7760ec0827376447b71ff7aaaf3b6eeee94ded6a Date: Thu, 26 May 2011 15:31:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 5a4c900f070bd6ee11d018519d83f8a9 commit: 7760ec0827376447b71ff7aaaf3b6eeee94ded6a Author: Theo Chatzimichos gentoo org> AuthorDate: Thu May 26 15:32:13 2011 +0000 Commit: Theo Chatzimichos gentoo org> CommitDate: Thu May 26 15:32:13 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/blogs-gentoo.= git;a=3Dcommit;h=3D7760ec08 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 @@ + + + + + +; charset=3D" /> + +<?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></t= itle> + +<meta name=3D"generator" content=3D"WordPress <?php bloginfo('version');= ?>" /> <!-- leave this for stats --> + +<link rel=3D"stylesheet" href=3D"<?php bloginfo('stylesheet_url'); ?>" t= ype=3D"text/css" media=3D"all" /> +<link rel=3D"stylesheet" href=3D"<?php bloginfo('stylesheet_directory');= ?>/print.css" type=3D"text/css" media=3D"print" /> + +<!-- Sidebar docking boxes (dbx) by Brothercake - http://www.brothercake= .com/ --> +<script type=3D"text/javascript" src=3D"<?php bloginfo('stylesheet_direc= tory'); ?>/dbx.js"></script> +<script type=3D"text/javascript" src=3D"<?php bloginfo('stylesheet_direc= tory'); ?>/dbx-key.js"></script> +<link rel=3D"stylesheet" type=3D"text/css" href=3D"<?php bloginfo('style= sheet_directory'); ?>/dbx.css" media=3D"screen, projection" /> + +<!--[if lt IE 7]> +<link rel=3D"stylesheet" href=3D"<?php bloginfo('stylesheet_directory');= ?>/ie-gif.css" type=3D"text/css" /> +<![endif]--> + +<link rel=3D"alternate" type=3D"application/rss+xml" title=3D"<?php blog= info('name'); ?> RSS Feed" href=3D"<?php bloginfo('rss2_url'); ?>" /> +<link rel=3D"pingback" href=3D"<?php bloginfo('pingback_url'); ?>" /> +<link rel=3D"shortcut icon" href=3D"/wp-content/themes/wp-oxygen/images/= mini-blogroll.png" /> + +<?php wp_head(); ?> +</head> +<body> +<div id=3D"page"> + <div id=3D"wrapper"> + <div id=3D"header"> + <?php if ( get_bloginfo("name") =3D=3D "Straight from tha bloK" ) { ?= > + <a href=3D"<?php echo get_settings('home'); ?>"><img src=3D"http= ://blogs.gentoo.org/tampakrap/files/2009/12/banner.png"></a> + <?php } else { ?> + <h1><a href=3D"<?php echo get_settings('home'); ?>"><?php bloginfo(= 'name'); ?></a></h1> + <?php } ?> + <div class=3D"description"><?php bloginfo('description'); ?></div> + <?php include (TEMPLATEPATH . '/searchform.php'); ?> + </div><!-- /header --> + + <div id=3D"left-col"> + <div id=3D"nav"> + <ul> + <li class=3D"page_item <?php if ( is_home() ) { ?>current_page= _item<?php } ?>"><a href=3D"<?php echo get_settings('home'); ?>/" title=3D= "<?php _e('Home', 'itheme')?>"><?php _e('Home', 'itheme')?></a></li> + <?php wp_list_pages('sort_column=3Dmenu_order&depth=3D1&title_li=3D'= );?> + </ul> + </div><!-- /nav --> + + <?php /* Menu for subpages of current page (thanks to K2 theme for t= his code) */ + global $notfound; + if (is_page() and ($notfound !=3D '1')) { + $current_page =3D $post->ID; + while($current_page) { + $page_query =3D $wpdb->get_row("SELECT ID, post_title, post_= status, post_parent FROM $wpdb->posts WHERE ID =3D '$current_page'"); + $current_page =3D $page_query->post_parent; + } + $parent_id =3D $page_query->ID; + $parent_title =3D $page_query->post_title; + + // if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post= _parent =3D '$parent_id' AND post_status !=3D 'attachment'")) { + if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_pa= rent =3D '$parent_id' AND post_type !=3D 'attachment'")) { + ?> + + <div id=3D"subnav"> + <ul> + <?php wp_list_pages('sort_column=3Dmenu_order&depth=3D1&title_li= =3D&child_of=3D'. $parent_id); ?> + </ul> + </div><!-- /sub nav --> + <?php } } ?> +=09