Skip to content

Commit

Permalink
Replaced renegade PHP short tags per Theme-Check
Browse files Browse the repository at this point in the history
  • Loading branch information
splorp committed Oct 20, 2013
1 parent 7d18f4c commit ceb8472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archives.php
Expand Up @@ -23,13 +23,13 @@
endwhile;
?>
<li>
<h3><a href="<?php echo get_year_link($year); ?>" title="<?= $year ?> Archives"><?= $year ?></a></h3>
<h3><a href="<?php echo get_year_link($year); ?>" title="<?php $year ?> Archives"><?php $year ?></a></h3>
<ul><?php
$months = $wpdb->get_col("SELECT DISTINCT MONTH(post_date) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'post' AND YEAR(post_date) = $year ORDER BY post_date ASC");
foreach($months as $month) :
$tstamp = mktime(0, 0, 0, $month, 1, $year);
?>
<li class="m<?= $month ?>"><a href="<?php echo get_month_link($year, $month); ?> " title="<?php echo date("M", $tstamp); ?> <?= $year?>"><span><?php echo date("m", $tstamp); ?></span></a></li>
<li class="m<?php $month ?>"><a href="<?php echo get_month_link($year, $month); ?> " title="<?php echo date("M", $tstamp); ?> <?php $year?>"><span><?php echo date("m", $tstamp); ?></span></a></li>
<?php endforeach; ?>
</ul>
</li>
Expand Down

0 comments on commit ceb8472

Please sign in to comment.