... Elxis version 2009.2 codename Electra is out, download it from Elxis Download Center (EDC) ...
Event Calendar (module)
From Elxis Official Documentation
Event Calendar for Elxis CMS 2008.x and 2009.x+ (module)The Event Calendar (module) is a small module by Apostolos Koutsoulelos that renders a small calendar table (month or week view) in the front page displaying the events stored with Event Calendar (component). It also supports fothcoming events, a name calendar, sunrise/sunset time display and tοday history.
PLEASE NOTE: Event Calendar (component) must be prior installed, in order the module to function properly !!!
Contents |
Limitations
Please have in mind that Namedays and Today History are currently supported only for greek language. Anyone willing to patch for other languages should create the appropriate /modules/mod_eventcalendar/anniversaries/$lang.php file according to the greek.php specifications.
Please contact author for further details.
Module parameters
Event Calendar (module) supports these options:
Forth-coming events
Display forthcoming events: Set wether forthcoming events should be displayed after calendar table.
Range: Set the time range for the forthcoming events (in days).
Number: Set the number of displayed forthcoming events.
Day info
Display day info: Set wether day info (place, sunrise/sunset, moonfases, namedays and worlddays) should be displayed after calendar table.
Place: Set your place (leave empty to hide).
Timezone: Set your timezone.
Latitude: Set the decimal value for geographic latitude of your location.
Longitude: Set the decimal value for geographic longitude of your location.
Zenith: Set the zenith value of your location.
Today history
Display Today History: Set whether Today History should be displayed after calendar table.
Events number: Set the number of displayed Today History events; leave empty for all events.
Class Module Suffix
Here is an example of the CSS code that must be added to customize.css file of your template:
.moduletable_evcal {
margin: 0 1px 1px 0;
padding: 0;
}
.moduletable_evcal h3 {
background: url(../images/col_h3.gif) no-repeat 0px 50%;
font-size: 1.0em;
font-weight: bold;
color: #f5f2ea;
margin: 0;
margin-left: -5px;
padding: 5px 0 5px 20px;
border-top: 1px dotted #999;
border-bottom: 1px dotted #999;
}
.moduletable_evcal table {
margin-top: 10px;
margin-bottom: 10px;
width: 98%;
border-collapse: collapse;
font-size: 9px;
}
.moduletable_evcal td.spacer { height: 10px; }
.moduletable_evcal td.subtitle { text-align: center; }
.moduletable_evcal td.subtitle h5 {
margin-top: 5px;
background-color: gray;
color: #2F2D2B;
font-size: 10px;
}
.moduletable_evcal td.weeknum {
border: solid 1px #5A5A5A;
background-color: #C0B6AD;
}
.moduletable_evcal td.weeknum_empty {
border: solid 1px #5A5A5A;
background-color: #C0B6AD;
}
.moduletable_evcal td.navprev {
border: solid 1px #5A5A5A;
text-align: left;
background-color: #C0B6AD;
}
.moduletable_evcal td.nav {
border: solid 1px #5A5A5A;
text-align: center;
background-color: #C0B6AD;
}
.moduletable_evcal td.navnext {
border: solid 1px #5A5A5A;
text-align: right;
background-color: #C0B6AD;
}
.moduletable_evcal td.weeknames {
text-align: center;
border: 1px solid #5A5A5A;
}
.moduletable_evcal td.othermonth {
border: solid 1px #5A5A5A;
text-align: center;
background-color: #ECEAE7;
vertical-align: top;
}
.moduletable_evcal td.othermonth span { color: Gray; }
.moduletable_evcal td.day {
border: solid 1px #5A5A5A;
text-align: center;
background-color: #ECEAE7;
vertical-align: top;
}
.moduletable_evcal td.day_event {
border: solid 1px #5A5A5A;
text-align: center;
background-color: #F8F8F8;
vertical-align: top;
}
.moduletable_evcal td.cur_day {
border: solid 2px #5A5A5A;
text-align: center;
background-color: #ECEAE7;
vertical-align: top;
}
.moduletable_evcal td.cur_day_event {
border: solid 2px #5A5A5A;
text-align: center;
background-color: #F8F8F8;
vertical-align: top;
}
.moduletable_evcal td.day span { color: Black; }
.moduletable_evcal td.cur_day span { color: Black; }
.moduletable_evcal td.day_event span { color: Black; }
.moduletable_evcal td.cur_day_event span { color: Black; }
.moduletable_evcal td.forth_events { vertical-align: top; }
.moduletable_evcal td.forth_events p { margin: 0px }
.moduletable_evcal td.forth_events li {
list-style-type: circle;
margin-left: 15px;
}
.moduletable_evcal td.place {
text-align: center;
border-bottom: 1px dotted black;
}
.moduletable_evcal td.sun-moon {
border-bottom: 1px dotted black;
width: 100%;
}
.moduletable_evcal td.sun-moon table { width: 100%; }
.moduletable_evcal td.sun-moon table td.sun {
text-align: center;
border-right: 1px solid black;
vertical-align: top;
}
.moduletable_evcal td.sun-moon table td.sun p { margin: 0px }
.moduletable_evcal td.sun-moon table td.moon { text-align: center; }
.moduletable_evcal td.sun-moon table td.moon p { margin: 0px }
.moduletable_evcal td.namedays {
width: 100%;
text-align: center;
}
.moduletable_evcal td.namedays p { margin: 0px }
.moduletable_evcal td.worlddays {
width: 100%;
text-align: center;
}
.moduletable_evcal td.worlddays p { margin: 0px }
.moduletable_evcal td.history { text-align: left; }
.moduletable_evcal td.history p {
margin-top: 0px;
margin-bottom: 5px;
margin-left: 5px;
margin-right: 0px
}
.moduletable_evcal td.history p b { color: #2F2D2B; }
Here is the visual result:
Credits
Holiday Calendar Holiday Data File @version holiday_calendar.php 2008-04-20 @package Holiday Calendar @copyright Copyright © 2007-2008 Efthimios Mavrogeorgiadis. All rights reserved. @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL @based on Feidias N. Bourlas' "Istorikon Epeteiologion" http://pheidias.antibaro.gr/Documents/Epeteiologion.txt
moon-phase.cls.php @release June 2003 @authors dan sheeler <dsheeler@cs.uchicago.edu> kumar mcmillan <kumar@chicagomodular.com>
sun.php @based on http://williams.best.vwh.net/sunrise_sunset_algorithm.htm
Changelog
version 0.1 (2009/05/31):
initial release
To do
* a more sophisticated Today History management control (this will propably be pat of Event Calendar (component)


