Lines Matching refs:options
25 * @param array $options contains a list of parameters passed to the plugin at the wiki-page
28 function render_gcal(&$options) { argument
36 if(!isset($options['mode'])) $options['mode']='month';
39 if(isset($_REQUEST['mode'])) $options['mode'] = $_REQUEST['mode'];
40 if(isset($_REQUEST['offset'])) $options['offset'] = $_REQUEST['offset'];
41 if(isset($_REQUEST['pages'])) $options['pages'] = $_REQUEST['pages'];
44 if(!isset($options['pages'])) $options['pages'] = '('.$ID.')';
49 $pages = $options['pages'];
69 …if(isset($options["month"])) $month = $options["month"] + $options["offset"] + $_SESSION["offset"];
70 if(isset($options["year"])) $year = $options["year"];
71 if(isset($options["day"])) $day = $options["day"];
79 if(isset($options["offset"])) {
80 switch($options["mode"]) {
81 case "day" : $day += $options["offset"]; break;
82 case "week" : $day += $options["offset"] * 7; break;
83 case "month" : $month += $options["offset"] ; break;
91 if(isset($options['dayshift'])) $reference_date += 60*60*24*$options['dayshift'];
94 switch(strtolower($options["mode"])) {
97 if(isset($options["days"])) {
98 $end_date = strtotime ( "+".($options["days"]-1)." days", $end_date);
105 if(isset($options["days"])) {
106 $end_date = strtotime( "+".($options["days"]-1)." days", $start_date);
118 read_pages_into_calendar($options,$pages,$reference_date);
121 show_gCal_page($options,$pages,$start_date,$end_date);