emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] A couple of improvements for calendar.php


From: Pierre-François Gomez
Subject: [emacs-wiki-discuss] A couple of improvements for calendar.php
Date: Tue, 01 Feb 2005 13:33:23 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)

Hello,

I've made a couple of improvements to David Wilkinson's calendar.php,
which some of you may use.

He explicitly states on his site that he's not maintaining it anymore,
so at Sacha's suggestion, i post this here.

Attached are :
- the new calendar.php
- a patch to Sacha's planner-include.php to make use of these changes.

Purpose of the patch :

- being able to specify a different link for the "prev"/"next" buttons
  and for the month name.

  Now i can have the "prev"/"next" buttons simply reload the same page
  but for a different month being displayed.
  Hitting the month name leads to the summary page for this month if
  there is a YYYY.MM.php file for it, otherwise the month name is just a
  simple text (as before).

- being able to have some days appear differently from the actual
  current day, or from a "normal" day.

  I use this for my day pages : when i am on one of them, the current
  day page is "selected" (just a new .calendarSelected CSS class) and
  appears surrounded with dotted borders, while the actual current day
  is (as before) highlighted in a distinct way.
  The advantage is that you instantly know "when" you are with regards
  to the actual current day.

You can see how i've set this up (and find some more instructions and
explanations) at http://pf.gomez.free.fr/notebook/CalendarPhp.php

'Hope this is useful :)

-- Pierre-François Gomez

Attachment: calendar.php
Description: a modified version of calendar.php

Attachment: planner-include.php.patch
Description: a patch to sacha's planner-include.php to actually make use of my changes

Attachment: pgpBHAv7Snute.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]