X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Feditpost.php;h=9a80d0b2f4ba622badbaac42f617e973eeed926a;hb=48642a8544ccc52003829985e22cc2aa71711816;hp=75b686bcd9c25d0ae46469368e9c2c5e14a828ff;hpb=28b085569abe388473399555d9e3d5b9c7ce5580;p=friendica.git diff --git a/mod/editpost.php b/mod/editpost.php index 75b686bcd9..9a80d0b2f4 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'] @@ -55,14 +60,12 @@ function editpost_content(&$a) { $tpl = get_markup_template("jot.tpl"); - + if(($group) || (is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid']))))) $lockstate = 'lock'; else $lockstate = 'unlock'; - $celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false); - $jotplugins = ''; $jotnets = ''; @@ -82,25 +85,28 @@ 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 .= '