<?php
//DISPLAY 1 - SAMPLE CONFIGURATION FILE

//SET START AND END DATE (see display.txt for details)
$fromDate = "DAY"; //from date
$tillDate = "MONTH+1"; //till date

//GENERAL SETTINGS (see display.txt for details)
$calID = "mycal"; //calendar to use (ID of the calendar. Blank (""): the default calendar) 
$calName = "Green Calendar"; //calendar header text. Asterisk ("*"): calendar title, blank (""): no header
$login = 0; //show user name and login button in right upper corner (0: no, 1: yes)
$logMsg = "No account yet: contact the administrator"; //message shown at the top of the log in page
$pdfBut = 1; //show PDF file download button in right upper corner (0: no, 1: yes)
$pdfCnf = ""; //name (without extension) of configuration file to be used when producing the PDF file; blank (""): use default)
$sortD = 0; //event sorting on dates; 0: ascending, 1: descending
$maxDays = 0; //max. number of days to show; 0: no maximum
$futEvts = 0; //show ongoing and future events only (0: no, 1: yes). Note: This setting overrules the "from date" and sets it to "DAY"
$evtHead = "#t #e| (age: #a)|"; //event head template (#t: times, #e: event title, #c: event title - category color, #u: event title - owner group color, #o: event owner, #a: age, #/: new line)
$evtBody = "12345"; //event fields to show (list of numbers: 1: venue, 2: category, 3: description, . . . for more see Settings page - Event templates)
$evtWin = 0; //on click open event window (0: no, 1: yes). If the user has post rights, the event add/edit window will open, otherwise the event report window will open
$recOnce = 0; //for recurring events, show only one (the next) occurrence (0: all, 1: next only)
$mulOnce = 0; //for multi-day events, show only one (the next) occurrence (0: all, 1: next only)
$maxImgH = 80; //maximum height of images (in pixels)
$noEvents = "No events"; //message shown when no upcoming events
$icon = "lcal.png"; //path to a favicon shown in the browser tab for the display. Only applicable if the display is shown in its own browser tab

//EVENT FILTERS
$users = "0"; //events of users (event owners) to show (comma separated list of user IDs; 0: all users, the text "own": own events only).
$groups = "0"; //events of users (event owners) in certain groups to show (comma separated list of group IDs; 0: all groups, the text "own": events of users in own group only).
$cats = "0"; //events in categories to show (comma separated list of cat IDs; 0: all categories).
$scats = "0"; //events in subcategories to show (comma separated list of subcat IDs; possible values is 1, 2, 3 and 4; 0: all subcats).
$venue = ""; //show only events with case-insensitive text string present in venue. Blank (""): no filter 
//Note: It is also possible to use a URL parameter 'cats'. The intersection of the $cats setting above and the URL parameter will be applied. Example: www.yoursite.xxx/calendar/display1.php?cats=1,4,5

//MARGINS/BORDERS in pixels
$MOUTR = "8"; //container outer margin
$MINNR = "4"; //container inner margin
$WDCOL = "20"; //date column width in %
$WBORD = "4"; //container border width
$WGRID = "2"; //calendar grid width
$MDATE = "15px"; //date margin - top
$MEVNT = "0px 0px 10px 0px"; //event margins - top right bottom left
$MTITL = "0px 0px 0px 0px"; //title margins - top right bottom left
$MBODY = "0px 0px 0px 10px"; //body margins - top right bottom left

//DATE FORMAT
$dFormat = "w/d M"; //W: Monday, w: Mon, d: 21, M: January, m: Jan, /: new line

//DISPLAY COLORS
$BGENL = "#F0F0F0"; //general background color
$BBORD = "#FFFFFF"; //container background color
$CBORD = "#884444"; //container border color
$CGRID = "#F0F0F0"; //calendar grid border color
$BDATE = "#028940"; //calendar date background color
$CDATE = "#FFFFFF"; //calendar date text color
$CHEAD = "#028940"; //header text color
$BEVNT = "#FFFFDF"; //event background color
$CTITL = "#009900"; //event title color
$CEVNT = "#202030"; //event description color
$CDATI = "#4040E8"; //event date/time color
$CLINK = "#222288"; //URL link color

//FONT STYLE WEIGHT SIZE/LINE-HEIGHT FAMILY
//size and family are required; rest optional
$FBASE = "14px arial,sans-serif"; //base font
$FHEAD = "bold 1.6em arial,sans-serif"; //header
$FDATE = "1.4em tahoma,sans-serif"; //date
$FETIT = "1.1em arial,sans-serif"; //event title
$FEVNT = "1.1em arial,sans-serif"; //event
$FNOEV = "1.0em arial,sans-serif"; //"No events" text

//VERTICAL SPACE in px
$HHEAD = "32"; //header height
$HBRKS = "2"; //extra space between event sections
