diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-11 02:11:28 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-18 02:55:12 +0000 |
commit | 1fc0b4320c8921ad59bf4d41a88bf9936e1f653d (patch) | |
tree | 8d630f864f4a2760f72307e68553cc2ee0c516d4 /apps/settings/templates | |
parent | d364edcf6a18fa237dc53f6b95614851ed5fdc9a (diff) | |
download | nextcloud-server-1fc0b4320c8921ad59bf4d41a88bf9936e1f653d.tar.gz nextcloud-server-1fc0b4320c8921ad59bf4d41a88bf9936e1f653d.zip |
Add global profile toggle config
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r-- | apps/settings/templates/settings/personal/personal.info.php | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/apps/settings/templates/settings/personal/personal.info.php b/apps/settings/templates/settings/personal/personal.info.php index 19265ebfc85..98009cc52be 100644 --- a/apps/settings/templates/settings/personal/personal.info.php +++ b/apps/settings/templates/settings/personal/personal.info.php @@ -239,24 +239,28 @@ script('settings', [ <input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>"> </form> </div> - <div class="personal-settings-setting-box"> - <div id="vue-organisation-section"></div> - </div> - <div class="personal-settings-setting-box"> - <div id="vue-role-section"></div> - </div> - <div class="personal-settings-setting-box"> - <div id="vue-headline-section"></div> - </div> - <div class="personal-settings-setting-box"> - <div id="vue-biography-section"></div> - </div> + <?php if ($_['profileEnabledGlobally']) : ?> + <div class="personal-settings-setting-box"> + <div id="vue-organisation-section"></div> + </div> + <div class="personal-settings-setting-box"> + <div id="vue-role-section"></div> + </div> + <div class="personal-settings-setting-box"> + <div id="vue-headline-section"></div> + </div> + <div class="personal-settings-setting-box"> + <div id="vue-biography-section"></div> + </div> + <?php endif; ?> </div> <div class="profile-settings-container"> - <div class="personal-settings-setting-box"> - <div id="vue-profile-section"></div> - </div> + <?php if ($_['profileEnabledGlobally']) : ?> + <div class="personal-settings-setting-box"> + <div id="vue-profile-section"></div> + </div> + <?php endif; ?> <div class="personal-settings-setting-box personal-settings-language-box"> <div id="vue-language-section"></div> </div> @@ -304,6 +308,8 @@ script('settings', [ </div> -<div class="personal-settings-section"> - <div id="vue-profile-visibility-section"></div> -</div> +<?php if ($_['profileEnabledGlobally']) : ?> + <div class="personal-settings-section"> + <div id="vue-profile-visibility-section"></div> + </div> +<?php endif; ?> |