All pastes #1774921 Raw Edit

Someone

public text v1 · immutable
#1774921 ·published 2010-02-01 23:04 UTC
rendered paste body
<!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" xml:lang="en" lang="en">


<head>

  <title><?php

    if ( is_single() ) { single_post_title(); }      

    elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); }

    elseif ( is_page() ) { single_post_title(''); }

    elseif ( is_search() ) { bloginfo('name'); print ' | Search results for ' . wp_specialchars($s); get_page_number(); }

    elseif ( is_404() ) { bloginfo('name'); print ' | Not Found'; }

    else { bloginfo('name'); wp_title('|'); get_page_number(); }

   ?></title>



<meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />		



<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>



<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( __( '%s latest posts', 'your-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />



<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'your-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />



<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />



</head>



<body>

<div id="wrapper">

<a href="http://www.carrieduncandesign.com/wordpress/"><img class="masthead" src="http://www.carrieduncandesign.com/wordpress/wp-content/themes/LR/images/logo.jpg" alt="home" border="0" /></a>   



<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : // begin search form ?>

     <div id="search">

          <label for="s"><?php _e( 'Search', 'your-theme' ); ?></label>

               <form id="searchform" class="blog-search" method="get" action="<?php bloginfo('home'); ?>">

                    <div id="searchinput">

               <input id="s" name="s" type="text" class="text" value="<?php the_search_query() ?>" size="31" tabindex="1" /></div>

                    <div id="searchsubmit">

                         <input type="submit" class="button" value="<?php _e( 'Go', 'your-theme' ); ?>" tabindex="2" /></div>

               </form>

     </div><!-- #search -->

<?php endif; // end search form  ?><?php /* The menu */ ?>



            <div id="menu">

<?php if (is_search() || is_404()) { ?>

        <ul>

                <li><a href="<?php echo get_settings('home'); ?>/" title="blog"></a></li>

                <?php wp_list_pages('depth=1&sort_column=menu_order&title_li='); ?>

        </ul>

<?php } else { ?>

        <ul>

                <li<?php if(is_home){ echo ' class="current_page_item" ';}?>><a href="<?php echo get_settings('home'); ?>/"  title="blog"></a></li>

                <?php wp_list_pages('depth=1&sort_row=menu_order&title_li='); ?>

<?php

        if($post->post_parent)

                $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else

                $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");

        if ($children) { ?>

                <?php echo $children; ?>

                <?php } ?>

        </ul>

<?php } ?>

        </div><!-- menu -->