Lines Matching refs:opt

68         $opt = [];
71 $opt['ns'] = $INFO['namespace'] ?? ''; // this namespace
72 $opt['size'] = 12; // 12px font size
73 $opt['name'] = 'day'; // a boring default page name
74 $opt['year'] = date('Y'); // this year
75 $opt['recent'] = false; // special 1-2 row 'recent pages' view...
76 … $opt['months'] = []; // months to be displayed (csv list), e.g. 1,2,3,4... 1=Sun
77 $opt['weekdays'] = []; // weekdays which should have links (csv links)... 1=Jan
78 $opt['align'] = ''; // default is centred
86 $opt['year'] = $value;
89 $opt['name'] = $value;
93 $opt['size'] = $value;
96 $opt['ns'] = (strpos($value, ':') === false) ? ':' . $value : $value;
99 $opt['recent'] = ((int)$value > 0) ? (int)$value : 0;
102 $opt['months'] = explode(',', $value);
105 $opt['weekdays'] = explode(',', $value);
109 $opt['align'] = $value;
123 return $opt;
129 public function render($mode, Doku_Renderer $renderer, $opt) argument
132 $renderer->doc .= $this->buildCalendar($opt);
156 private function buildCalendar($opt) argument
161 [$years, $first_weekday, $table_cols, $today] = $this->defineCalendar($opt);
166 $font_css = ($opt['size'] != 0) ? ' style="font-size:' . $opt['size'] . 'px;"' : '';
167 if ($opt['align'] == 'left') {
169 } elseif ($opt['align'] == 'right') {
193 $opt,
226 $opt, argument
242 … $cal .= $this->getDayHTML($cur_day, $mth_num, $today, $year_num, $weekday_num, $opt);
259 * @param array $opt config from handler
263 public function getDayHTML($cur_day, $mth_num, $today, $year_num, $weekday_num, $opt) argument
265 if (!$this->isWeekdayToBePrinted($weekday_num, $opt)) {
275 … $id = $pagenameService->getPageId($opt['ns'], $year_num, $month_fmt, $day_fmt, $opt['name']);
293 protected function isWeekdayToBePrinted($weekday_num, $opt) argument
295 if (empty($opt['weekdays'])) {
298 return in_array($weekday_num, $opt['weekdays']);
342 * @param array $opt users options
344 private function defineCalendar($opt) argument
351 $year_range = explode(',', $opt['year']);
355 if ($opt['recent'] > 0) {
359 $prev_date = $today - ($opt['recent'] * 12 * 60 * 60);
372 $yr_first = $yr_last = $opt['year'];
374 $show_all_mths = empty($opt['months']);
382 if ($show_all_mths || in_array($mth_num, $opt['months'])) {