diff --git a/lib/read_footer_i.inc.php b/lib/read_footer_i.inc.php
index 42ba6efc3..229cb6a60 100644
--- a/lib/read_footer_i.inc.php
+++ b/lib/read_footer_i.inc.php
@@ -55,6 +55,37 @@
echo '';
+// {{{書き込みフォーム
+if ($_conf['bottom_res_form']) {
+ $bbs = $aThread->bbs;
+ $key = $aThread->key;
+ $host = $aThread->host;
+ $rescount = $aThread->rescount;
+ $ttitle_en = UrlSafeBase64::encode($aThread->ttitle);
+
+ $submit_value = '書き込む';
+
+ $key_idx = $aThread->keyidx;
+
+ // フォームのオプション読み込み
+ require_once P2_LIB_DIR . '/post_form_options.inc.php';
+
+ $htm['resform_ttitle'] = <<
';
if (!$aThread->diedat) {
if (empty($_conf['disable_res'])) {
- $escaped_url = "post_form.php?{$host_bbs_key_q}&rescount={$aThread->rescount}{$ttitle_en_q}{$_conf['k_at_a']}";
- echo toolbar_i_standard_button('img/glyphish/icons2/08-chat.png', '書込', $escaped_url);
+ if ($_conf['bottom_res_form']) {
+ echo toolbar_i_showhide_button('img/glyphish/icons2/08-chat.png', '書込', 'kakiko');
+ } else {
+ $escaped_url = "post_form.php?{$host_bbs_key_q}&rescount={$aThread->rescount}{$ttitle_en_q}{$_conf['k_at_a']}";
+ echo toolbar_i_standard_button('img/glyphish/icons2/08-chat.png', '書込', $escaped_url);
+ }
} else {
echo toolbar_i_opentab_button('img/glyphish/icons2/08-chat.png', '元スレ', $motothre_url);
}
diff --git a/lib/read_header.inc.php b/lib/read_header.inc.php
index 104d781b9..248f8fd50 100755
--- a/lib/read_header.inc.php
+++ b/lib/read_header.inc.php
@@ -305,11 +305,6 @@
EOP;
}
-if ($_conf['expack.editor.savedraft'] != '0') {
- echo << |