X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Feditpost.php;h=0cf6d0d4cf7320f7b1812036f99de0d4d8740879;hb=f45a8f1a0365cf47e06220e4d6cfaf88a20bb5e2;hp=d6539e10782a55da57068903c8ccc8ef0265572d;hpb=94204d916025af4461acf01bb7e6ef6192ee4671;p=friendica.git diff --git a/mod/editpost.php b/mod/editpost.php index d6539e1078..0cf6d0d4cf 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -1,6 +1,6 @@ ' . t('Edit post') . ''; + $o .= replace_macros(get_markup_template("section_title.tpl"),array( + '$title' => t('Edit post') + )); $tpl = get_markup_template('jot-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(), - '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), + '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), '$ispublic' => ' ', // t('Visible to everybody'), '$geotag' => $geotag, '$nickname' => $a->user['nickname'] @@ -64,8 +66,6 @@ function editpost_content(&$a) { else $lockstate = 'unlock'; - $celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false); - $jotplugins = ''; $jotnets = ''; @@ -85,25 +85,27 @@ function editpost_content(&$a) { } } - if($mail_enabled) { + // I don't think there's any need for the $jotnets when editing the post, + // and including them makes it difficult for the JS-free theme, so let's + // disable them +/* if($mail_enabled) { $selected = (($pubmail_enabled) ? ' checked="checked" ' : ''); $jotnets .= '