/** * Renders the archiving date input. * * @return string (X)HTML. * * @global array The configuration of the plugins. * @global array The localization of the plugins. */ protected function renderArchiveDate() { global $plugin_cf, $plugin_tx; if ($plugin_cf['realblog']['auto_archive']) { $html = tag('input type="date" name="realblog_enddate" id="date3"' . ' required="required" value="' . date('Y-m-d', $this->article->getArchivingDate()) . '"'); $html .= ' ' . tag('img src="' . $this->imageFolder . 'calendar.png"' . ' id="trig_date3" class="realblog_date_selector" title="' . $plugin_tx['realblog']['tooltip_datepicker'] . '" alt=""'); } else { $html = $plugin_tx['realblog']['enddate_hint']; } return $html; }