From 38bce29b33636536c01e54ae94080b8d7ef76091 Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Tue, 21 Jan 2025 15:27:28 +0100 Subject: [PATCH] fixes #2313 remove privacy level from gallery and anything related to having this configuration here --- admin/configuration.php | 1 - .../template/configuration_display.tpl | 7 ---- picture.php | 1 - themes/default/template/picture.tpl | 34 ------------------- 4 files changed, 43 deletions(-) diff --git a/admin/configuration.php b/admin/configuration.php index 4dfaf1a65..d185a26c0 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -109,7 +109,6 @@ $display_info_checkboxes = array( 'categories', 'visits', 'rating_score', - 'privacy_level', ); // image order management diff --git a/admin/themes/default/template/configuration_display.tpl b/admin/themes/default/template/configuration_display.tpl index 88a8942c8..85feaab28 100644 --- a/admin/themes/default/template/configuration_display.tpl +++ b/admin/themes/default/template/configuration_display.tpl @@ -313,13 +313,6 @@ -
  • - -
  • diff --git a/picture.php b/picture.php index d10c70509..7c2f54dda 100644 --- a/picture.php +++ b/picture.php @@ -799,7 +799,6 @@ if (is_admin()) ); } - $template->assign('available_permission_levels', get_privacy_level_options()); } // favorite manipulation diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 96be12f30..8473bbfd0 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -297,40 +297,6 @@ y.callService( {/if} -{if $display_info.privacy_level and isset($available_permission_levels)} -
    -
    {'Who can see this photo?'|@translate}
    -
    -
    - {$available_permission_levels[$current.level]} -
    -{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} -{footer_script require='jquery'}{strip} -function setPrivacyLevel(id, level){ -(new PwgWS('{$ROOT_URL}')).callService( - "pwg.images.setPrivacyLevel", { image_id:id, level:level}, - { - method: "POST", - onFailure: function(num, text) { alert(num + " " + text); }, - onSuccess: function(result) { - jQuery('#privacyLevelBox .switchCheck').css('visibility','hidden'); - jQuery('#switchLevel'+level).prev('.switchCheck').css('visibility','visible'); - jQuery('#privacyLevelLink').text(jQuery('#switchLevel'+level).text()); - } - } - ); -} -(window.SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox"); -{/strip}{/footer_script} - -
    -
    -{/if} {/strip}