1 |
commit: 7760ec0827376447b71ff7aaaf3b6eeee94ded6a |
2 |
Author: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 15:32:13 2011 +0000 |
4 |
Commit: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 15:32:13 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/blogs-gentoo.git;a=commit;h=7760ec08 |
7 |
|
8 |
more hardcode of the header banner in wp-oxygen theme |
9 |
|
10 |
--- |
11 |
header.php | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
12 |
1 files changed, 72 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/header.php b/header.php |
15 |
new file mode 100644 |
16 |
index 0000000..385fc1f |
17 |
--- /dev/null |
18 |
+++ b/header.php |
19 |
@@ -0,0 +1,72 @@ |
20 |
+<?php load_theme_textdomain('itheme')?> |
21 |
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
22 |
+<html xmlns="http://www.w3.org/1999/xhtml"> |
23 |
+ |
24 |
+<head profile="http://gmpg.org/xfn/11"> |
25 |
+<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> |
26 |
+ |
27 |
+<title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title> |
28 |
+ |
29 |
+<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> |
30 |
+ |
31 |
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" /> |
32 |
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" type="text/css" media="print" /> |
33 |
+ |
34 |
+<!-- Sidebar docking boxes (dbx) by Brothercake - http://www.brothercake.com/ --> |
35 |
+<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx.js"></script> |
36 |
+<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx-key.js"></script> |
37 |
+<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/dbx.css" media="screen, projection" /> |
38 |
+ |
39 |
+<!--[if lt IE 7]> |
40 |
+<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie-gif.css" type="text/css" /> |
41 |
+<![endif]--> |
42 |
+ |
43 |
+<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> |
44 |
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> |
45 |
+<link rel="shortcut icon" href="/wp-content/themes/wp-oxygen/images/mini-blogroll.png" /> |
46 |
+ |
47 |
+<?php wp_head(); ?> |
48 |
+</head> |
49 |
+<body> |
50 |
+<div id="page"> |
51 |
+ <div id="wrapper"> |
52 |
+ <div id="header"> |
53 |
+ <?php if ( get_bloginfo("name") == "Straight from tha bloK" ) { ?> |
54 |
+ <a href="<?php echo get_settings('home'); ?>"><img src="http://blogs.gentoo.org/tampakrap/files/2009/12/banner.png"></a> |
55 |
+ <?php } else { ?> |
56 |
+ <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1> |
57 |
+ <?php } ?> |
58 |
+ <div class="description"><?php bloginfo('description'); ?></div> |
59 |
+ <?php include (TEMPLATEPATH . '/searchform.php'); ?> |
60 |
+ </div><!-- /header --> |
61 |
+ |
62 |
+ <div id="left-col"> |
63 |
+ <div id="nav"> |
64 |
+ <ul> |
65 |
+ <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> |
66 |
+ <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?> |
67 |
+ </ul> |
68 |
+ </div><!-- /nav --> |
69 |
+ |
70 |
+ <?php /* Menu for subpages of current page (thanks to K2 theme for this code) */ |
71 |
+ global $notfound; |
72 |
+ if (is_page() and ($notfound != '1')) { |
73 |
+ $current_page = $post->ID; |
74 |
+ while($current_page) { |
75 |
+ $page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'"); |
76 |
+ $current_page = $page_query->post_parent; |
77 |
+ } |
78 |
+ $parent_id = $page_query->ID; |
79 |
+ $parent_title = $page_query->post_title; |
80 |
+ |
81 |
+ // if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_status != 'attachment'")) { |
82 |
+ if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_type != 'attachment'")) { |
83 |
+ ?> |
84 |
+ |
85 |
+ <div id="subnav"> |
86 |
+ <ul> |
87 |
+ <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&child_of='. $parent_id); ?> |
88 |
+ </ul> |
89 |
+ </div><!-- /sub nav --> |
90 |
+ <?php } } ?> |
91 |
+ |