web/wp-content/themes/newsworthy/header.php
changeset 1 0d28b7c10758
equal deleted inserted replaced
0:0d9a58d2c515 1:0d28b7c10758
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     2 
       
     3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
     4 
       
     5 <head>
       
     6 
       
     7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
     8 
       
     9 <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" title="style (screen)" />
       
    10 
       
    11 <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/tabs.css" type="text/css" media="screen" />
       
    12 
       
    13 <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/tabber.js"></script>
       
    14 
       
    15 
       
    16 
       
    17 <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
       
    18 
       
    19 
       
    20 
       
    21 <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
       
    22 
       
    23 <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
       
    24 
       
    25 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
       
    26 
       
    27 
       
    28 
       
    29 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
       
    30 
       
    31 
       
    32 
       
    33 <?php wp_head(); ?>
       
    34 
       
    35 </head>
       
    36 
       
    37 
       
    38 
       
    39 <body>
       
    40 
       
    41 <div id="wrap">
       
    42 
       
    43 	
       
    44 
       
    45 <div id="sitemeta">
       
    46 
       
    47 	<?php wp_loginout(); ?><?php wp_register(' | ', ''); ?>
       
    48 
       
    49 </div>
       
    50 
       
    51 <div id="content">
       
    52 
       
    53 <form id="searchform" method="get" action="<?php bloginfo('url'); ?>/">
       
    54 
       
    55 <input type="text" name="s" class="search" value="Search..." onfocus="if
       
    56 
       
    57 (this.value==this.defaultValue) this.value='';" /> 
       
    58 
       
    59 </form>
       
    60 
       
    61 <h1 class="head"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
       
    62 
       
    63 <h2 class="head"><?php bloginfo('description'); ?></h2>
       
    64 
       
    65 <div id="menubar">
       
    66 
       
    67   <ul class="nav">
       
    68 
       
    69 	<li><a class="meta" href="<?php bloginfo('rss2_url'); ?>">Subscribe</a></li>
       
    70 
       
    71 <li<?php if (is_home() || is_paged() || is_page() || is_404()) { echo ' class="up"'; } ?>><a href="<?php echo get_option('home'); ?>">Home</a></li>
       
    72 
       
    73 <?php wp_list_categories('title_li=&depth=1'); ?>
       
    74 
       
    75 	<li><div class="clearboth">&nbsp;</div></li>
       
    76 
       
    77   </ul>
       
    78 
       
    79 </div>
       
    80 
       
    81 <div id="submenu">
       
    82 
       
    83 <ul>
       
    84 
       
    85 <?php
       
    86 
       
    87 if (is_category()) {
       
    88 
       
    89   $this_category = get_category($cat);
       
    90 
       
    91   if (get_category_children($this_category->cat_ID) != "") {
       
    92 
       
    93     wp_list_categories('orderby=id&show_count=0&title_li=
       
    94 
       
    95 &use_desc_for_title=1&child_of='.$this_category->cat_ID);
       
    96 
       
    97   }
       
    98 
       
    99 } else { wp_list_pages('title_li=&depth=1'); } ?>
       
   100 
       
   101 	<li><div class="clearboth">&nbsp;</div></li>
       
   102 
       
   103 </ul>
       
   104 
       
   105 </div>
       
   106 
       
   107 <div id="maincontent">