Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Tmpl - Archive Cat Month
- */
- ?>
- <?php get_header(); ?>
- <div class="lead-content-wrapper">
- <div id="lead-content">
- <div id="notepad-header"></div>
- <div id="content-notepad">
- <div id="sidebar">
- <?php //get sidebar menu items
- include (TEMPLATEPATH . "/inc/sub-menu-accordion.php"); ?>
- </div><!-- /sidebar -->
- <div class="content">
- <?php $year = $_GET['year']; $month = $_GET['month']; $cat = $_GET['cat'];
- $args = array(
- 'posts_per_page' => -1,
- 'cat' => 7,
- 'year' => $y,
- 'monthnum' => $m
- );
- $cat_q = new WP_Query( $args );
- if ( $cat_q->have_posts() ) {
- $p = 0;
- while ( $cat_q->have_posts() ) {
- $cat_q->the_post();
- $p++;
- }
- echo '<div class="post">
- <div class="entry">
- <div id="newsimg">
- <?php if(function_exists('get_the_image')) { get_the_image(array('default_size' => 'medium', 'image_scan' => true, 'link_to_post' => false)); } ?>
- </div>
- <div id="authors"><strong>Posted by:</strong><br /><?php the_author_posts_link() ?><strong><br //><br //>Date Posted:</strong><br /><?php the_time('d F, Y') ?>
- </div>
- Testing
- <h2><?php the_title(); ?></h2>
- <br //>
- <br //>
- <?php the_content(); ?>
- </div>
- <p class="postmetadata">Posted in <?php the_category(', '); ?></p>
- </div> <!-- closes the first div box -->
- <hr />
- <?php endwhile; else: ?>
- <p>Sorry, no posts matched your criteria.</p>
- <?php endif; ?>
- <span class="divider-border"></span>
- <!-- end .content --></div>
- <span class="divider-border"></span>
- <!-- end .content --></div>';
- }
- wp_reset_query();
- $m--;
- }
- $y--;
- }
- ?>
- </div><!-- /notepad-content -->
- <div id="secondary-content-sub">
- <!-- end .footer --></div>
- <div class="footer2">
- <script language="javascript">
- function SimpleSwap(el,which){
- el.src=el.getAttribute(which || "origsrc");
- }
- function SimpleSwapSetup(){
- var x = document.getElementsByTagName("img");
- for (var i=0;i<x.length;i++){
- var oversrc = x[i].getAttribute("oversrc");
- if (!oversrc) continue;
- // preload image
- // comment the next two lines to disable image pre-loading
- x[i].oversrc_img = new Image();
- x[i].oversrc_img.src=oversrc;
- // set event handlers
- x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
- x[i].onmouseout = new Function("SimpleSwap(this);");
- // save original src
- x[i].setAttribute("origsrc",x[i].src);
- }
- }
- </script>
- <?php get_footer(''); ?>
- </div>
- <!-- content-notepad --></div>
- <!-- end lead-content --></div>
- <!-- end .lead-content-wrapper --></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement