From f44846555a555f9ef97731d8c847e109a54c8224 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Fri, 4 Dec 2015 19:29:13 +0100 Subject: [PATCH] quattro: hide acl button in edit post fix #1780 --- mod/editpost.php | 5 +++-- view/theme/quattro/templates/jot.tpl | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/mod/editpost.php b/mod/editpost.php index 0cf6d0d4cf..9a80d0b2f4 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -60,7 +60,7 @@ 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 @@ -99,10 +99,11 @@ function editpost_content(&$a) { call_hooks('jot_tool', $jotplugins); //call_hooks('jot_networks', $jotnets); - + //$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins)); $o .= replace_macros($tpl,array( + '$is_edit' => true, '$return_path' => $_SESSION['return_url'], '$action' => 'item', '$share' => t('Save'), diff --git a/view/theme/quattro/templates/jot.tpl b/view/theme/quattro/templates/jot.tpl index f72e3ccb4f..41d633b25c 100644 --- a/view/theme/quattro/templates/jot.tpl +++ b/view/theme/quattro/templates/jot.tpl @@ -6,7 +6,7 @@ {{/if}}
- + @@ -29,19 +29,21 @@
  • {{$shortweblink}}
  • {{$shortvideo}}
  • {{$shortaudio}}
  • -
  • {{$preview}}
  • {{$jotplugins}} + {{if !$is_edit}}
  • + {{/if}}
  • - +
    -- 2.39.5