File "archive.php"
Full path: /home5/hallettsvillepow/public_html/wp-content/themes/flexsqueeze151/archive.php
File
size: 0 KB (4.76 KB bytes)
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php get_header(); ?>
<?php if (get_option('flex_feat_display') == "no" OR get_option('flex_feat_pages') != "all") { ?>
<?php } else { ?>
<div id="feature">
<div class="topshadow">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Top Feature') ) : else : ?>
<?php get_template_part( 'feature'); ?>
<?php endif; ?>
<div class="clear"></div>
</div>
</div>
<?php } ?>
<?php if (get_option('flex_nav_show') == "yes" && (get_option('flex_nav_position') == "below feature")) {
get_template_part( 'includes/nav.inc'); }
?>
<?php if (get_option('flex_nav_show') == "yes" && (get_option('flex_nav_position2') == "below feature")) {
get_template_part( 'includes/secondary-nav.inc'); }
?>
<div id="content">
<?php if (get_option('flex_adsense_loc1') == "yes" && !get_option('flex_adsense_loc1banner')) { ?>
<div class="adsenseleaderboard">
<?php
$adsize = get_option('flex_adsense_loc1size');
$adtype = get_option('flex_adsense_loc1type');
$adchannel = get_option('flex_adsense_loc1channel');
include('adsense.php');
?>
</div>
<?php } else if (get_option('flex_adsense_loc1') == "yes" && get_option('flex_adsense_loc1banner')) { ?>
<div class="adsenseleaderboard">
<?php echo stripslashes(get_option('flex_adsense_loc1banner')); ?>
</div>
<?php } ?>
<?php if (get_option('flex_lsb_show') == "yes" && get_option('flex_lsb_pos') == "left of post") { get_sidebar('left'); } ?>
<div class="postwrap">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Top of Post/Page') ) : else : ?>
<?php endif; ?>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php if (get_option('flex_post_archtit') == "no") { ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle"><?php single_cat_title(); ?> Archives</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is a tag archive */ } elseif (is_tag()) { ?>
<h2 class="pagetitle">Archive for '<?php single_tag_title(); ?>'</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Blog Archives</h2>
<?php } ?>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="padding-bottom: 20px;">
<div class="posthead">
<h2><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="postMeta">
<?php if (get_option('flex_metadata_show') == "yes") { ?>
<div class="postdate">
<?php the_time('l, F jS, Y') ?>
at
<?php the_time() ?>
<?php edit_post_link('Edit'); ?>
</div>
<?php } ?>
<?php if (get_option('flex_metadata_comoff') != "no") { ?>
<div class="commentcount">
<?php comments_popup_link('Leave your comment', 'Comments (1)', 'Comments (%)'); ?>
</div>
<?php } ?>
<div class="clear"></div>
</div>
</div>
<div class="postcontent">
<?php the_post_thumbnail('thumbnail'); ?>
<?php if ((get_option('flex_posttext_contex') == "content") || !get_option('flex_posttext_contex')) { the_content('' . get_option('flex_posttext_rm') . ''); } else { the_excerpt(); } ?>
<div class="clear"></div>
</div>
</div>
<?php endwhile; ?>
<?php
if (function_exists('wp_pagenavi')) {
echo '<div id="nextprevious">';
wp_pagenavi();
echo '</div>';
} else {
echo '<div id="nextprevious">';
include('wp-pagenavi.php');
wp_pagenavi();
echo '</div>';
} ?>
<?php else : ?>
<h2>Not Found</h2>
<?php endif; ?>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Bottom of Post/Page') ) : else : ?>
<?php endif; ?>
</div>
<?php if (get_option('flex_lsb_show') == "yes" && get_option('flex_lsb_pos') == "right of post") { get_sidebar('left'); } ?>
<?php if (get_option('flex_rsb_show') == "yes" || !get_option('flex_rsb_show')) { get_sidebar(); } ?>
</div>
<?php get_footer(); ?>