Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- Super Container -->
- <div class="super-container main-content-area" id="section-content">
- <!-- 960 Container -->
- <div class="container">
- <!-- CONTENT -->
- <div class="eleven columns content">
- <!-- 404 MESSAGE -->
- <?php if ( ! have_posts() ) : ?>
- <h2 class="title"><span>Ohhhh Snap! We can't find the page...</span></h2>
- <div class="the_content">
- <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sidewinder' ); ?></p>
- <?php get_template_part( 'element', 'search' ); ?>
- </div>
- <?php endif; ?>
- <!-- THE POST LOOP -->
- <?php while ( have_posts() ) : the_post(); ?>
- <h2 class="title"><span><?php the_title(); ?></span></h2>
- <!-- Featured Image -->
- <?php if(get_option_tree('show_featured_image') == 'Yes') : ?>
- <?php if (has_post_thumbnail( $post->ID )) {
- if (get_option_tree('sencha') == 'Yes') {
- $sencha = 'http://src.sencha.io/';
- } else {
- $sencha = '';
- }
- $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>
- <a href="<?php echo $image[0]; ?>" data-rel="prettyPhoto">
- <img class="aligncenter" src="<?php echo $sencha; ?><?php echo get_template_directory_uri(); ?>/functions/timthumb/timthumb.php?src=<?php echo $image[0]; ?>&w=940&zc=1" alt="<?php the_title(); ?>" />
- </a>
- <br class="clearfix" />
- <?php } else {} ?>
- <?php endif; ?>
- <?php the_content(); ?>
- <?php wp_link_pages('before=<br /><div id="page-links"><span>Pages:</span>&after=</div><hr />&link_before=<div>&link_after=</div>'); ?>
- <?php endwhile; ?>
- <div class="bottomLinkBox">
- <?php
- if($post->post_parent) {
- $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order");
- $title_heading = get_the_title($post->post_parent);
- }
- else {
- $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
- $title_heading = get_the_title($post->ID);
- }
- if ($children) { ?>
- <h2> <?php echo $title_heading; ?> </h2>
- <ul>
- <?php echo $children; ?>
- </ul>
- </div>
- <?php } ?>
- </div>
- </div>
- <!-- /CONTENT -->
- <!-- ============================================== -->
- <!-- SIDEBAR -->
- <div class="five columns sidebar">
- <div id="style-sidebar">
- <?php dynamic_sidebar( 'default-widget-area' ); ?>
- </div>
- </div>
- <!-- /SIDEBAR -->
- <!-- /End 960 Container -->
- </div>
- <!-- /End Super Container -->
- <!-- ============================================== -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement