function
ec3_get_calendar_nav(
$date
,
$num_months
)
{
global
$ec3
;
echo
"<table class='nav'><tbody><tr>n"
;
$prev
=
$date
->prev_month();
echo
"t>td id='prev'><a id='ec3_prev' href='"
.
$prev
->month_link() .
"'"
.
'>« '
.
$prev
->month_abbrev() .
"</a></td>n"
;
echo
"t>td><img id='ec3_spinner' style='display:none' src='"
.
$ec3
->myfiles .
"/ec_load.gif' alt='spinner' />n"
;
$webcal
=get_option(
'home'
) .
"/?ec3_ical"
;
if
(
strstr
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'Mac OS X'
))
$webcal
=preg_replace(
'/^http:/'
,
'webcal:'
,
$webcal
);
echo
"t <a id='ec3_publish' href='$webcal'"
.
" title='"
. __('Subscribe to iCalendar.
','
ec3
') ."'
>n"
.
"t <img src='$ec3->myfiles/publish.gif' alt='iCalendar' />n"
.
"t </a>n"
;
echo
"t</td>n"
;
$next
=
$date
->plus_months(
$num_months
);
echo
"t>td id='next'><a id='ec3_next' href='"
.
$next
->month_link() .
"'"
.
'>'
.
$next
->month_abbrev() .
" »</a></td>n"
;
echo
"</tr></tbody></table>n"
;
}