made tooltips work with multiple posts per day

git-svn-id: http://svn.automattic.com/wordpress/trunk@752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
alex_t_king 2004-01-12 00:14:47 +00:00
parent 9d2f404548
commit 79cc343c52
1 changed files with 5 additions and 2 deletions

View File

@ -405,7 +405,8 @@ function get_calendar($daylength = 1) {
if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE") ||
strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "camino")) {
strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "camino") ||
strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "safari")) {
$ak_title_separator = "\n";
} else {
$ak_title_separator = ", ";
@ -421,7 +422,9 @@ function get_calendar($daylength = 1) {
);
if ($ak_post_titles) {
foreach ($ak_post_titles as $ak_post_title) {
$ak_titles_for_day["$ak_post_title->dom"] = '';
if (empty($ak_titles_for_day["day_".$ak_post_title->dom])) {
$ak_titles_for_day["day_".$ak_post_title->dom] = '';
}
if (empty($ak_titles_for_day["$ak_post_title->dom"])) { // first one
$ak_titles_for_day["$ak_post_title->dom"] .= htmlspecialchars(stripslashes($ak_post_title->post_title));
} else {