Skip to content

Instantly share code, notes, and snippets.

@jclapp23
Created July 25, 2013 14:37
Show Gist options
  • Save jclapp23/6080324 to your computer and use it in GitHub Desktop.
Save jclapp23/6080324 to your computer and use it in GitHub Desktop.
WP_Cal_Demo #7
<?php
$calendar_output .= '<td style="position:relative">';
if ( in_array($day, $daywithpost) ){ // any posts today?
$title_div = "<div class='event-titles'>";
foreach($ak_titles_for_day[$day] as $ak_title){
$title_div .= "<a href='".$ak_title['url']."' title='".$ak_title['title']."'>".$ak_title['title']."</a><br/>";
}
$title_div .= "</div>";
$calendar_output .= "<span class='event-day'>$day</span>".$title_div;
}
else{
$calendar_output .= $day;
}
$calendar_output .= '</td>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment