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,
96 $ftpl->setVariable(
"BLOCK_TITLE", $lng->txt(
"calendar"));
97 $ftpl->setVariable(
"CONTENT",
$tpl->get());
110 include_once(
'Services/Calendar/classes/class.ilCalendarUtil.php');
111 $a_tpl->setCurrentBlock(
'month_header_col');
112 $a_tpl->setVariable(
'TXT_WEEKDAY', $lng->txt(
"cal_week_abbrev"));
113 $a_tpl->parseCurrentBlock();
114 for($i = (
int) $this->user_settings->getWeekStart();$i < (7 + (int) $this->user_settings->getWeekStart());$i++)
116 $a_tpl->setCurrentBlock(
'month_header_col');
118 $a_tpl->parseCurrentBlock();
121 include_once(
'Services/Calendar/classes/class.ilCalendarSchedule.php');
123 $this->scheduler->calculate();
128 $this->user_settings->getWeekStart())->
get() as $date)
134 $a_tpl->setCurrentBlock(
'month_col');
136 if(count($this->scheduler->getByDay($date,$ilUser->getTimeZone())))
138 $a_tpl->setVariable(
'DAY_CLASS',
'calminiapp');
139 #$a_tpl->setVariable('TD_CLASS','calminiapp');
142 include_once(
'./Services/Calendar/classes/class.ilCalendarUtil.php');
145 $a_tpl->setVariable(
'TD_CLASS',
'calminitoday');
147 #elseif(ilDateTime::_equals($date,$this->seed,IL_CAL_DAY))
149 # $a_tpl->setVariable('TD_CLASS','calmininow');
153 $a_tpl->setVariable(
'TD_CLASS',
'calministd');
157 $a_tpl->setVariable(
'TD_CLASS',
'calminiprev');
161 $a_tpl->setVariable(
'TD_CLASS',
'calmininext');
169 $ilCtrl->clearParametersByClass(
'ilcalendardaygui');
170 $ilCtrl->setParameterByClass(
'ilcalendardaygui',
'seed',$date->get(
IL_CAL_DATE));
171 $a_tpl->setVariable(
'OPEN_DAY_VIEW', $ilCtrl->getLinkTargetByClass(
'ilcalendardaygui',
''));
172 $ilCtrl->clearParametersByClass(
'ilcalendardaygui');
174 $a_tpl->setVariable(
'MONTH_DAY',$month_day);
175 $a_tpl->parseCurrentBlock();
177 if($counter and !($counter % 7))
179 $a_tpl->setCurrentBlock(
'month_row');
180 $ilCtrl->clearParametersByClass(
'ilcalendarweekgui');
181 $ilCtrl->setParameterByClass(
'ilcalendarweekgui',
'seed',$date->get(
IL_CAL_DATE));
182 $a_tpl->setVariable(
'OPEN_WEEK_VIEW', $ilCtrl->getLinkTargetByClass(
'ilcalendarweekgui',
''));
183 $ilCtrl->clearParametersByClass(
'ilcalendarweekgui');
184 $a_tpl->setVariable(
'TD_CLASS',
'calminiweek');
185 $a_tpl->setVariable(
'WEEK',
187 $a_tpl->parseCurrentBlock();
190 $a_tpl->setCurrentBlock(
'mini_month');
191 $a_tpl->setVariable(
'TXT_MONTH_OVERVIEW', $lng->txt(
"cal_month_overview"));
192 $a_tpl->setVariable(
'TXT_MONTH',
195 $myseed = clone($this->seed);
196 $ilCtrl->setParameterByClass(
'ilcalendarmonthgui',
'seed',$myseed->get(
IL_CAL_DATE));
197 $a_tpl->setVariable(
'OPEN_MONTH_VIEW',$ilCtrl->getLinkTargetByClass(
'ilcalendarmonthgui',
''));
205 $a_tpl->setVariable(
'PREV_MONTH',
206 $ilCtrl->getLinkTarget($this->getParentObject(),
""));
210 $a_tpl->setVariable(
'NEXT_MONTH',
211 $ilCtrl->getLinkTarget($this->getParentObject(),
""));
214 $a_tpl->parseCurrentBlock();