Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2275/functions
Modified Files:
template.php
Log Message:
Minor feature addition that makes the minical titles links to the month/year calendar as appropriate.
Index: template.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** template.php 5 May 2005 07:07:50 -0000 1.68
--- template.php 6 May 2005 19:04:06 -0000 1.69
***************
*** 846,849 ****
--- 846,858 ----
}
+ $minical_month = date("m", $fake_getdate_time);
+ $minical_year = date("Y", $fake_getdate_time);
+ $first_of_month = $minical_year.$minical_month."01";
+ $first_of_year = $minical_year."0101";
+
+ // Add links in to the month/year views.
+ $dateFormat_month = str_replace("%B", "<a class=\"ps3\" href=\"month.php?cal=$cal&getdate=$first_of_month\">%B</a>", $dateFormat_month);
+ $dateFormat_month = str_replace("%Y", "<a class=\"ps3\" href=\"year.php?cal=$cal&getdate=$first_of_year\">%Y</a>", $dateFormat_month);
+
//$start_day = strtotime($week_start_day);
$start_day = strtotime(dateOfWeek($getdate, $week_start_day));
***************
*** 867,873 ****
}
- $minical_month = date("m", $fake_getdate_time);
- $minical_year = date("Y", $fake_getdate_time);
- $first_of_month = $minical_year.$minical_month."01";
$start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
$i = 0;
--- 876,879 ----
|