Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <body <?php body_class(); ?>>
- <div id="top"></div>
- <div class="centering">
- <div class="contain">
- <a href="<?php echo home_url(); ?>/"><img class="left title" title="<?php bloginfo('name'); ?>" src="<?php header_image(); ?>" alt="<?php bloginfo('description');?>" ></a>
- <div class="bar"><ul>
- <?php if ( has_nav_menu( 'menu' ) ) : wp_nav_menu( array( 'theme_location' => 'menu' ) ); else : ?>
- <?php wp_list_pages( 'title_li=&depth=1' ); ?>
- <?php endif; ?></ul>
- </div>
- </div><!--contain-->
- </div><!--centering-->
- <div class="center">
- <div class="blank"></div>
- <div class="container">
- <?php if (is_search()) : ?>
- <div class="banner">Your search for <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = esc_html($s, 1); $count = $allsearch->post_count; _e(''); _e('"<span class="search-terms">'); echo $key; _e('</span>"'); _e(' resulted in '); echo $count . ' '; _e('articles found.'); wp_reset_query(); ?></div>
- <?php while (have_posts()) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
- <div class="search">
- <div class="postimg"><?php the_post_thumbnail('page-thumbnail'); ?></div>
- <div class="posttitle"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
- <?php if (is_page()) : else :?><div class="theday"> <?php the_time('l, F jS, Y') ?></div><?php endif; ?>
- <?php the_excerpt(); ?>
- </div></a></div>
- <div class="clear" style="border-bottom:3px solid #DDD;margin:0 10px 0 0 ;"></div>
- <?php endwhile; ?>
- <div class="next"><div class="left"><?php next_posts_link('« Older Entries'); ?></div><div class="right nexting"><?php previous_posts_link('Newer Entries »') ?></div></div>
- <?php elseif (have_posts() && is_home() || is_404() || is_category() || is_day() || is_month() || is_year() || is_paged() || is_archive()) : ?>
- <?php $count = 1 ?>
- <?php while (have_posts()) : the_post(); ?>
- <?php if ($count == 1 || $count == 4 || $count == 5 || $count == 8 || $count == 9 || $count == 12 || $count == 13 || $count == 16 || $count == 17 || $count == 20) : ?>
- <?php if ( has_post_thumbnail()) : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
- <div class="bigimage">
- <div class="overlay"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
- <div class="byte"><?php the_excerpt(); ?></div></div>
- <div class="dates b"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
- <?php the_post_thumbnail('big-thumbnail'); ?>
- </div>
- </a>
- <?php else : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
- <div class="donthide"><div class="bigimage">
- <div class="overlay"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
- <div class="byte"><?php the_excerpt(); ?></div></div>
- <div class="dates b"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
- </div></div></a>
- <?php endif; ?>
- <?php elseif ($count == 2 || $count == 3 || $count == 6 || $count == 7 || $count == 10 || $count == 11 || $count == 14 || $count == 15 || $count == 18 || $count == 19 || $count == 21) : ?>
- <?php if ( has_post_thumbnail()) : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
- <div class="tallimage">
- <div class="overlay2"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
- <div class="byte"><?php the_excerpt(); ?></div>
- </div>
- <div class="dates t"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
- <?php the_post_thumbnail('tall-thumbnail'); ?>
- </div>
- </a>
- <?php else : ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>">
- <div class="donthide"><div class="tallimage">
- <div class="overlay2"><div class="label5"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
- <div class="byte"><?php the_excerpt(); ?></div>
- </div>
- <div class="dates t"><span class="smallerfont"><?php the_time('d') ?></span><br><?php the_time('M') ?><br><?php the_time('Y') ?></div>
- </div></div>
- </a><?php endif; ?>
- <?php endif; ?>
- <?php $count++; ?>
- <?php endwhile; ?>
- <?php $max_page = $wp_query->max_num_pages; ?>
- <?php if ( $max_page >= 2 ) : ?>
- <div class="next"><div class="left"><?php next_posts_link('« Older Entries'); ?></div><div class="right nexting"><?php previous_posts_link('Newer Entries »') ?></div></div>
- <?php endif; ?>
- <?php if (have_posts() != true) : ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="reading">
- <div class="postimg"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/404.png" class="attachment-page-thumbnail wp-post-image" alt="AdventureBound" title="AdventureBound" width="460" height="259"></div>
- <div class="posttitle">What the Dickens.!?</div>
- <div class="theday">What? I haven't the foggiest idea but it could be 1950's...</div>
- <p>Sorry, friend. The page you requested is not in our database. You may have followed a bad external link, or mis-typed a URL. Or you may have finally found the end of the internet hidden within <?php bloginfo('name'); ?>.</p>
- <p>Stay calm, don't freak out, because I'm detecting a 99.9% chance of <a href="http://en.wikipedia.org/wiki/HTTP_404">404 error</a> which means that this wouldn't be the end of the internet and that you may want to load our <a href="<?php echo home_url(); ?>">home</a> page and then try retracing your steps to find what you're looking for.</p>
- </div>
- <?php endif; ?>
- <?php elseif (have_posts()) : the_post();?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="reading">
- <div class="postimg"><?php the_post_thumbnail('page-thumbnail'); ?></div>
- <div class="posttitle"><?php if ( get_the_title() ) { the_title();} else { echo '(No Title)';} ?></div>
- <?php if (is_page()) : else :?><div class="theday"> <?php the_time('l, F jS, Y') ?></div><?php endif; ?>
- <?php the_content(); ?>
- <?php wp_link_pages(); ?>
- <?php if ( is_page()) : ?><?php else : ?>
- <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
- <?php $categories_list = get_the_category_list( __( ', ', 'adventureboundbasic' ) ); if ( $categories_list ):?>
- <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'adventureboundbasic' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );?>
- <?php endif; // End if categories ?>
- <?php the_tags('Tags: ', ', ', '<br />'); ?>
- <?php endif; // End if 'post' == get_post_type() ?>
- <?php endif; ?>
- </div></div>
- <?php if (is_page()) : else :?><?php $max_page = $wp_query->max_num_pages; ?>
- <?php if ( $max_page >= 2 ) : ?><div class="next"><div class="left"><?php previous_post_link('%link', 'Previous Post'); ?> </div><div class="right"><?php next_post_link('%link', 'Next Post'); ?> </div></div><?php endif; ?><?php endif; ?>
- <?php endif; ?><!-- End Have posts -->
- <?php if ( ! is_active_sidebar('widget1' ) || ! is_active_sidebar('widget2') || ! is_active_sidebar('widget3')) : ?>
- <div class="widgetcontain">
- <div class="widget"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('widget1') ) : ?><?php endif; ?></div>
- <div class="widget"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('widget2') ) : ?><?php endif; ?></div>
- <div class="widget"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('widget3') ) : ?><?php endif; ?></div>
- </div><?php else : ?><?php endif; ?>
- </div></div>
- <?php if ( is_search() ) : // Only display Excerpts for Search ?>
- <?php else : ?>
- <?php if ('open' == $post->comment_status) : ?>
- <?php comments_template(); ?>
- <?php endif; ?>
- <?php endif; // End if 'post' == get_post_type() ?>
- <div class="centering">
- <div class="footer">
- <div class="finish">
- </div>
- <div class="hiding">
- <a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?> © <?php echo date('Y'); ?> >></a><a href="<?php bloginfo('rss2_url'); ?>"> RSS FEED >></a><a href="#top" id="anchor1" class="anchorLink"> BACK TO TOP >></a>
- <?php wp_footer(); ?>
- </div>
- </div>
- </div><!--centering-->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement