/** * Renders the publishing date input. * * @return string (X)HTML. * * @global array The configuration of the plugins. * @global array The localization of the plugins. */ protected function renderPublishingDate() { global $plugin_cf, $plugin_tx; if ($plugin_cf['realblog']['auto_publish']) { $html = tag('input type="date" name="realblog_startdate" id="date2"' . ' required="required" value="' . date('Y-m-d', $this->article->getPublishingDate()) . '"'); $html .= ' ' . tag('img src="' . $this->imageFolder . 'calendar.png"' . ' id="trig_date2" class="realblog_date_selector" title="' . $plugin_tx['realblog']['tooltip_datepicker'] . '" alt=""'); } else { $html = $plugin_tx['realblog']['startdate_hint']; } return $html; }