Templates
From PHPicalWiki
The appearance of the web pages is controlled by a set of files in the templates folder. You can copy the default set in templates/default to generate a variety of custom setups. To specify which one you want to use, change
$template = 'default'; // Template support
in config.inc.php.
The template.php script manipulates these template files to produce the final html output for each page. To customize templates, it helps to know what the different files do, and how they are set up.
Contents |
[edit] Templates
[edit] The main views
admin.tpl | |
error.tpl | |
event.tpl | |
month.tpl | |
print.tpl | |
day.tpl | |
preferences.tpl | |
rss_index.tpl | |
search.tpl | |
week.tpl | |
year.tpl |
[edit] Parts
calendar_nav.tpl | |
footer.tpl | Common footer |
header.tpl | Common HTML header |
month_large.tpl | |
month_medium.tpl | |
month_small.tpl | |
search_box.tpl | |
sidebar.tpl | |
todo.tpl |
[edit] Template tags
{CALENDAR_NAME} | Display name of the calendar being shown |
{DISPLAY_DATE} | |
{DEFAULT_VIEW} | |
{CURRENT_VIEW} | replaced with day, week, month, year etc. |
[edit] Switches
Many of the template files also have a switches that define the boundaries of blocks of html that will be included, excluded, or repeated.
[edit] css
The css file controls the common appearance of the phpicalendar pages.
[edit] See also
Hacks which might be useful.