]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
events js: pass only first line of desc as title; item.desc and item.location as...
[friendica.git] / mod / editpost.php
old mode 100644 (file)
new mode 100755 (executable)
index cd0bbf2..f23b305
@@ -35,6 +35,7 @@ function editpost_content(&$a) {
        
        $a->page['htmlhead'] .= replace_macros($tpl, array(
                '$baseurl' => $a->get_baseurl(),
+               '$editselect' =>  (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
                '$ispublic' => '&nbsp;', // t('Visible to <strong>everybody</strong>'),
                '$geotag' => $geotag,
                '$nickname' => $a->user['nickname']
@@ -71,7 +72,7 @@ function editpost_content(&$a) {
 
        if($mail_enabled) {
        $selected = (($pubmail_enabled) ? ' checked="checked" ' : '');
-               $jotnets .= '<div class="profile-jot-net"><input type="checkbox" name="pubmail_enable"' . $selected . 'value="1" /> '
+               $jotnets .= '<div class="profile-jot-net"><input type="checkbox" name="pubmail_enable"' . $selected . ' value="1" /> '
                . t("Post to Email") . '</div>';
        }
                                        
@@ -80,7 +81,9 @@ function editpost_content(&$a) {
        call_hooks('jot_tool', $jotplugins);
        call_hooks('jot_networks', $jotnets);
 
-       $tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));        
+       
+       //$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));      
+       
 
        $o .= replace_macros($tpl,array(
                '$return_path' => $_SESSION['return_url'],
@@ -106,14 +109,17 @@ function editpost_content(&$a) {
                '$emailcc' => t('CC: email addresses'),
                '$public' => t('Public post'),
                '$jotnets' => $jotnets,
+               '$title' => $itm[0]['title'],
+               '$placeholdertitle' => t('Set title'),
                '$emtitle' => t('Example: bob@example.com, mary@example.com'),
                '$lockstate' => $lockstate,
                '$acl' => '', // populate_acl((($group) ? $group_acl : $a->user), $celeb),
                '$bang' => (($group) ? '!' : ''),
-               '$profile_uid' => $_SESSION['uid']
+               '$profile_uid' => $_SESSION['uid'],
+               '$preview' => t('Preview'),
+               '$jotplugins' => $jotplugins,
        ));
 
-
        return $o;
 
 }