security->getIndex('/action/options-reading'), Typecho_Widget_Helper_Form::POST_METHOD); /** 文章日期格式 */ $postDateFormat = new Typecho_Widget_Helper_Form_Element_Text('postDateFormat', NULL, $this->options->postDateFormat, _t('文章日期格式'), _t('此格式用于指定显示在文章归档中的日期默认显示格式.') . '
' . _t('在某些主题中这个格式可能不会生效, 因为主题作者可以自定义日期格式.') . '
' . _t('请参考 PHP 日期格式写法.')); $postDateFormat->input->setAttribute('class', 'w-40 mono'); $form->addInput($postDateFormat->addRule('xssCheck', _t('请不要在日期格式中使用特殊字符'))); //首页显示 $frontPageParts = explode(':', $this->options->frontPage); $frontPageType = $frontPageParts[0]; $frontPageValue = count($frontPageParts) > 1 ? $frontPageParts[1] : ''; $frontPageOptions = array( 'recent' => _t('显示最新发布的文章') ); $frontPattern = '' . 'options->frontArchive && 'recent' != $frontPageType ? ' checked' : '') .' /> '; // 页面列表 $pages = $this->db->fetchAll($this->db->select('cid', 'title') ->from('table.contents')->where('type = ?', 'page') ->where('status = ?', 'publish')->where('created < ?', $this->options->gmtTime)); if (!empty($pages)) { $pagesSelect = ''; $frontPageOptions['page'] = _t('使用 %s 页面作为首页', '' . $pagesSelect . '