Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

In Over Your Acrchives 1.4.3 previous year fix

By: a guest on Feb 13th, 2012  |  syntax: PHP  |  size: 2.16 KB  |  views: 113  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- a/in-over-your-archives/in_over_your_archives.php   2011-11-09 11:01:26.000000000 -0400
  2. +++ b/in-over-your-archives/in_over_your_archives.php   2012-02-13 14:45:54.946765000 -0400
  3. @@ -390,11 +390,11 @@
  4.                         <li class="date">
  5.                         <?php if($prev_year_posts->have_posts()) : ?>
  6.                                 <!-- <a href="<?php echo get_month_link($current_year - 1, ioya_format_month($current_month)); ?>" class="prevyear" rel="<?php echo ($current_year-1) . ioya_format_month($current_month) ?>">&lt;</a> -->
  7. -                               <a href="<? echo get_site_url() .'/ioya/'.($current_year - 1) .'/'. ioya_format_month($current_month) ?>" class="prevyear" rel="<?php echo ($current_year-1) . ioya_format_month($current_month) ?>">&lt;</a>
  8. +                               <a href="<?php echo get_site_url() .'/ioya/'.($current_year - 1) .'/'. ioya_format_month($current_month) ?>" class="prevyear" rel="<?php echo ($current_year-1) . ioya_format_month($current_month) ?>">&lt;</a>
  9.                         <?php endif; ?>
  10.                         <?php if($next_year_posts->have_posts()) : ?>
  11.                                 <!-- <a href="<?php echo get_month_link($current_year + 1, ioya_format_month($current_month)); ?>" class="nextyear" rel="<?php echo ($current_year+1) . ioya_format_month($current_month) ?>">&gt;</a> -->
  12. -                               <a href="<? echo get_site_url() .'/ioya/'.($current_year + 1) .'/'. ioya_format_month($current_month) ?>" class="nextyear" rel="<?php echo ($current_year+1) . ioya_format_month($current_month) ?>">&gt;</a>
  13. +                               <a href="<?php echo get_site_url() .'/ioya/'.($current_year + 1) .'/'. ioya_format_month($current_month) ?>" class="nextyear" rel="<?php echo ($current_year+1) . ioya_format_month($current_month) ?>">&gt;</a>
  14.                         <?php endif; ?>
  15.                                 <span><?php echo $current_year; ?></span>
  16.                         </li>
  17. @@ -412,7 +412,7 @@
  18.         </div>
  19.  
  20.  <?php if( !$ajax ) : ?>
  21. -<script type="text/javascript">var in_over_your_settings = { year: <?php echo esc_js($current_year) ?>, month: <?php echo esc_js($current_month) ?><? if($cats) { ?>, cat:'<?php echo $cats ?>'<? } ?>};</script>
  22. +<script type="text/javascript">var in_over_your_settings = { year: <?php echo esc_js($current_year) ?>, month: <?php echo esc_js($current_month) ?><?php if($cats) { ?>, cat:'<?php echo $cats ?>'<?php } ?>};</script>
  23.  <?php endif;
  24.  
  25.  }
clone this paste RAW Paste Data