24 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettings.php');
55 $this->tpl =
new ilTemplate(
'tpl.minical.html',
true,
true,
'Services/Calendar');
57 $this->lng->loadLanguageModule(
'dateplaner');
69 $this->parentobject = $a_parentobject;
79 return $this->parentobject;
89 $ftpl =
new ilTemplate(
"tpl.calendar_block_frame.html",
true,
true,
97 $ftpl->setVariable(
"BLOCK_TITLE", $lng->txt(
"calendar"));
98 $ftpl->setVariable(
"CONTENT",
$tpl->get());
111 include_once(
'Services/Calendar/classes/class.ilCalendarUtil.php');
112 for($i = (
int) $this->user_settings->getWeekStart();$i < (7 + (int) $this->user_settings->getWeekStart());$i++)
114 $a_tpl->setCurrentBlock(
'month_header_col');
116 $a_tpl->parseCurrentBlock();
118 $a_tpl->setCurrentBlock(
'month_header_col');
119 $a_tpl->setVariable(
'TXT_WEEKDAY',
" ");
120 $a_tpl->parseCurrentBlock();
122 include_once(
'Services/Calendar/classes/class.ilCalendarSchedule.php');
124 $this->scheduler->calculate();
129 $this->user_settings->getWeekStart())->
get() as $date)
135 $a_tpl->setCurrentBlock(
'month_col');
137 if(count($this->scheduler->getByDay($date,$ilUser->getTimeZone())))
139 $a_tpl->setVariable(
'DAY_CLASS',
'calminiapp');
140 #$a_tpl->setVariable('TD_CLASS','calminiapp');
143 include_once(
'./Services/Calendar/classes/class.ilCalendarUtil.php');
146 $a_tpl->setVariable(
'TD_CLASS',
'calminitoday');
150 $a_tpl->setVariable(
'TD_CLASS',
'calmininow');
154 $a_tpl->setVariable(
'TD_CLASS',
'calministd');
158 $a_tpl->setVariable(
'TD_CLASS',
'calminiprev');
162 $a_tpl->setVariable(
'TD_CLASS',
'calmininext');
170 $ilCtrl->clearParametersByClass(
'ilcalendardaygui');
171 $ilCtrl->setParameterByClass(
'ilcalendardaygui',
'seed',$date->get(
IL_CAL_DATE));
172 $a_tpl->setVariable(
'OPEN_DAY_VIEW', $ilCtrl->getLinkTargetByClass(
'ilcalendardaygui',
''));
173 $ilCtrl->clearParametersByClass(
'ilcalendardaygui');
175 $a_tpl->setVariable(
'MONTH_DAY',$month_day);
183 $a_tpl->parseCurrentBlock();
185 if($counter and !($counter % 7))
187 $a_tpl->setCurrentBlock(
'month_row');
188 $ilCtrl->clearParametersByClass(
'ilcalendarweekgui');
189 $ilCtrl->setParameterByClass(
'ilcalendarweekgui',
'seed',$date->get(
IL_CAL_DATE));
190 $a_tpl->setVariable(
'OPEN_WEEK_VIEW', $ilCtrl->getLinkTargetByClass(
'ilcalendarweekgui',
''));
191 $ilCtrl->clearParametersByClass(
'ilcalendarweekgui');
192 $a_tpl->setVariable(
'TD_CLASS',
'calminiweek');
193 $a_tpl->setVariable(
'WEEK',
195 $a_tpl->parseCurrentBlock();
198 $a_tpl->setCurrentBlock(
'mini_month');
200 $a_tpl->setVariable(
'TXT_MONTH',
203 $myseed = clone($this->seed);
204 $ilCtrl->setParameterByClass(
'ilcalendarmonthgui',
'seed',$myseed->get(
IL_CAL_DATE));
205 $a_tpl->setVariable(
'OPEN_MONTH_VIEW',$ilCtrl->getLinkTargetByClass(
'ilcalendarmonthgui',
''));
213 $a_tpl->setVariable(
'PREV_MONTH',
214 $ilCtrl->getLinkTarget($this->getParentObject(),
""));
218 $a_tpl->setVariable(
'NEXT_MONTH',
219 $ilCtrl->getLinkTarget($this->getParentObject(),
""));
222 $a_tpl->parseCurrentBlock();