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());
99 $ftpl->setVariable(
"ALT_BLOCK", $lng->txt(
"icon").
" ".$lng->txt(
"calendar"));
112 include_once(
'Services/Calendar/classes/class.ilCalendarUtil.php');
113 $a_tpl->setCurrentBlock(
'month_header_col');
114 $a_tpl->setVariable(
'TXT_WEEKDAY', $lng->txt(
"cal_week_abbrev"));
115 $a_tpl->parseCurrentBlock();
116 for($i = (
int) $this->user_settings->getWeekStart();$i < (7 + (int) $this->user_settings->getWeekStart());$i++)
118 $a_tpl->setCurrentBlock(
'month_header_col');
120 $a_tpl->parseCurrentBlock();
123 include_once(
'Services/Calendar/classes/class.ilCalendarSchedule.php');
125 $this->scheduler->calculate();
130 $this->user_settings->getWeekStart())->
get() as $date)
136 $a_tpl->setCurrentBlock(
'month_col');
138 if(count($this->scheduler->getByDay($date,$ilUser->getTimeZone())))
140 $a_tpl->setVariable(
'DAY_CLASS',
'calminiapp');
141 #$a_tpl->setVariable('TD_CLASS','calminiapp');
144 include_once(
'./Services/Calendar/classes/class.ilCalendarUtil.php');
147 $a_tpl->setVariable(
'TD_CLASS',
'calminitoday');
149 #elseif(ilDateTime::_equals($date,$this->seed,IL_CAL_DAY))
151 # $a_tpl->setVariable('TD_CLASS','calmininow');
155 $a_tpl->setVariable(
'TD_CLASS',
'calministd');
159 $a_tpl->setVariable(
'TD_CLASS',
'calminiprev');
163 $a_tpl->setVariable(
'TD_CLASS',
'calmininext');
171 $ilCtrl->clearParametersByClass(
'ilcalendardaygui');
172 $ilCtrl->setParameterByClass(
'ilcalendardaygui',
'seed',$date->get(
IL_CAL_DATE));
173 $a_tpl->setVariable(
'OPEN_DAY_VIEW', $ilCtrl->getLinkTargetByClass(
'ilcalendardaygui',
''));
174 $ilCtrl->clearParametersByClass(
'ilcalendardaygui');
176 $a_tpl->setVariable(
'MONTH_DAY',$month_day);
184 $a_tpl->parseCurrentBlock();
186 if($counter and !($counter % 7))
188 $a_tpl->setCurrentBlock(
'month_row');
189 $ilCtrl->clearParametersByClass(
'ilcalendarweekgui');
190 $ilCtrl->setParameterByClass(
'ilcalendarweekgui',
'seed',$date->get(
IL_CAL_DATE));
191 $a_tpl->setVariable(
'OPEN_WEEK_VIEW', $ilCtrl->getLinkTargetByClass(
'ilcalendarweekgui',
''));
192 $ilCtrl->clearParametersByClass(
'ilcalendarweekgui');
193 $a_tpl->setVariable(
'TD_CLASS',
'calminiweek');
194 $a_tpl->setVariable(
'WEEK',
196 $a_tpl->parseCurrentBlock();
199 $a_tpl->setCurrentBlock(
'mini_month');
200 $a_tpl->setVariable(
'TXT_MONTH_OVERVIEW', $lng->txt(
"cal_month_overview"));
201 $a_tpl->setVariable(
'TXT_MONTH',
204 $myseed = clone($this->seed);
205 $ilCtrl->setParameterByClass(
'ilcalendarmonthgui',
'seed',$myseed->get(
IL_CAL_DATE));
206 $a_tpl->setVariable(
'OPEN_MONTH_VIEW',$ilCtrl->getLinkTargetByClass(
'ilcalendarmonthgui',
''));
214 $a_tpl->setVariable(
'PREV_MONTH',
215 $ilCtrl->getLinkTarget($this->getParentObject(),
""));
219 $a_tpl->setVariable(
'NEXT_MONTH',
220 $ilCtrl->getLinkTarget($this->getParentObject(),
""));
223 $a_tpl->parseCurrentBlock();