Example #1
0
 private function setHtmlTags($html)
 {
     ## defaults
     $html = str_replace('[[JSDateFormat]]', helpers::getDateFormat(), $html);
     $html = str_replace('[[BatchTemplate]]', $this->buildBatchTemplate(), $html);
     ## tranlated text labels
     $html = str_replace('[[SubjectText]]', helpers::translate('mwc_event_subject'), $html);
     $html = str_replace('[[LocationText]]', helpers::translate('mwc_event_location'), $html);
     $html = str_replace('[[NotifyText]]', helpers::translate('mwc_event_notify'), $html);
     $html = str_replace('[[StartText]]', helpers::translate('mwc_event_start'), $html);
     $html = str_replace('[[EndText]]', helpers::translate('mwc_event_end'), $html);
     $html = str_replace('[[AlldayText]]', helpers::translate('mwc_event_allday'), $html);
     $html = str_replace('[[AddText]]', helpers::translate('mwc_event_add'), $html);
     $html = str_replace('[[DeleteText]]', helpers::translate('mwc_event_delete'), $html);
     $html = str_replace('[[SaveText]]', helpers::translate('mwc_event_save'), $html);
     $html = str_replace('[[CloseText]]', helpers::translate('mwc_event_close'), $html);
     $html = str_replace('[[DelimiterTitle]]', helpers::translate('mwc_batch_delimiter_title'), $html);
     $html = str_replace('[[DelimiterText]]', helpers::translate('mwc_batch_delimiter_text'), $html);
     ## remove any missed labels
     $html = preg_replace('[(\\[\\[)+.+(\\]\\])]', '', $html);
     return $html;
 }