From: Hypolite Petovan Date: Thu, 3 Sep 2020 13:58:07 +0000 (-0400) Subject: Move ACL full selector template to subfolder X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a844fd8f58fbdc5ef95c8db4688fd035ba0c28c5;p=friendica.git Move ACL full selector template to subfolder - Fix display overflow in contact complete suggestion box --- diff --git a/src/Core/ACL.php b/src/Core/ACL.php index f35889061d..504e5d847d 100644 --- a/src/Core/ACL.php +++ b/src/Core/ACL.php @@ -303,7 +303,7 @@ class ACL 'emailcc' => $form_prefix ? $form_prefix . '[emailcc]' : 'emailcc', ]; - $tpl = Renderer::getMarkupTemplate('acl_selector.tpl'); + $tpl = Renderer::getMarkupTemplate('acl/full_selector.tpl'); $o = Renderer::replaceMacros($tpl, [ '$public_title' => DI::l10n()->t('Public'), '$public_desc' => DI::l10n()->t('This content will be shown to all your followers and can be seen in the community pages and by anyone with its link.'), diff --git a/view/templates/acl/full_selector.tpl b/view/templates/acl/full_selector.tpl new file mode 100644 index 0000000000..ada05fbd41 --- /dev/null +++ b/view/templates/acl/full_selector.tpl @@ -0,0 +1,269 @@ +
+
+
+ +
+
+

{{$public_desc}}

+ {{if $for_federation}} + {{if $jotnets_fields}} + {{if $jotnets_fields|count < 3}} +
+ {{else}} +
+ {{$jotnets_summary}} + {{/if}} + + {{foreach $jotnets_fields as $jotnets_field}} + {{if $jotnets_field.type == 'checkbox'}} + {{include file="field_checkbox.tpl" field=$jotnets_field.field}} + {{elseif $jotnets_field.type == 'select'}} + {{include file="field_select.tpl" field=$jotnets_field.field}} + {{/if}} + {{/foreach}} + + {{if $jotnets_fields|count >= 3}} +
+ {{else}} +
+ {{/if}} + {{/if}} + {{/if}} +
+
+
+
+ +
+ + + + +
+

{{$custom_desc}}

+ +
+ + +
+ +
+ + +
+
+
+
+
+ + +{{if $for_federation}} +
+ + +
+
+{{/if}} +
+ diff --git a/view/templates/acl_selector.tpl b/view/templates/acl_selector.tpl deleted file mode 100644 index f1943cf3f6..0000000000 --- a/view/templates/acl_selector.tpl +++ /dev/null @@ -1,269 +0,0 @@ -
-
-
- -
-
-

{{$public_desc}}

- {{if $for_federation}} - {{if $jotnets_fields}} - {{if $jotnets_fields|count < 3}} -
- {{else}} -
- {{$jotnets_summary}} - {{/if}} - - {{foreach $jotnets_fields as $jotnets_field}} - {{if $jotnets_field.type == 'checkbox'}} - {{include file="field_checkbox.tpl" field=$jotnets_field.field}} - {{elseif $jotnets_field.type == 'select'}} - {{include file="field_select.tpl" field=$jotnets_field.field}} - {{/if}} - {{/foreach}} - - {{if $jotnets_fields|count >= 3}} -
- {{else}} -
- {{/if}} - {{/if}} - {{/if}} -
-
-
-
- -
- - - - -
-

{{$custom_desc}}

- -
- - -
- -
- - -
-
-
-
-
- - -{{if $for_federation}} -
- - -
-
-{{/if}} -
-