<?php if (is_single()) { ?> <hr class="post_separator"> <?php } ?> <div class="post_footer"> <div class="post_date"> <?php echo getTheDate($post->ID); ?> </div> <div class="post_share"> <script type="text/javascript"> <?php $link = get_permalink(); ?> document.write(VK.Share.button({url: "<?php echo $link; ?> "},{type: "custom", text: "<img src=\"http://vk.com/images/share_32_eng.png\" width=\"32\" height=\"32\" title=\"Поделиться\" />", eng: 1})); </script> </div> </div>
<?php for ($x = 0; $x < count($monthsInYear); $x++) { if ($monthsInYear[$x] == $currentMonth) { echo '<option selected value="day.php?value=' . $monthsInYear[$x] . '">' . $textMonths[$x] . '</option>'; } else { echo '<option value="day.php?value=' . $monthsInYear[$x] . '">' . $textMonths[$x] . '</option>'; } } ?> </select> </h1> <?php $monthsInYear = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"); $textMonths = array("Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"); $testing = sortByMonth($quotes, $currentMonth, $Theyear); $poppyseeds = getTheDate($quotes, $currentMonth, $Theyear); function dates_month($month, $year) { $num = cal_days_in_month(CAL_GREGORIAN, $month, $year); $dates_month = array(); for ($i = 1; $i <= $num; $i++) { $mktime = mktime(0, 0, 0, $month, $i, $year); $date = date("n-j-Y", $mktime); $dates_month[$i] = $date; } return $dates_month; } $dates = dates_month($currentMonth, $Theyear); if (count($testing) > 0) { ?>