From a6cc0f5e5cf42c9a3a5b35a9d02cc25977a5896a Mon Sep 17 00:00:00 2001 From: lsces Date: Sun, 24 Aug 2025 14:41:07 +0100 Subject: Initial population in github --- templates/choose_protection.tpl | 18 ++++++++++++++++++ templates/protector_service_icon.tpl | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 templates/choose_protection.tpl create mode 100755 templates/protector_service_icon.tpl (limited to 'templates') diff --git a/templates/choose_protection.tpl b/templates/choose_protection.tpl new file mode 100755 index 0000000..9084600 --- /dev/null +++ b/templates/choose_protection.tpl @@ -0,0 +1,18 @@ +{strip} +
+ {formlabel label="Protection Level"} + {forminput} + {if $gBitSystem->isFeatureActive( 'protector_single_role' )} + Assign content to the following user role:
+ {html_options name="$protector[role_id]" options=$protectorRolesId selected=$serviceHash.protector.role_id} + {formhelp note="Users assigned to this role can view this content item."} + {else} + Limit access to the following user roles:
+ {foreach from=$protectorRoles key=roleId item=role} + {$role.role_name}
+ {/foreach} + {formhelp note="Users assigned to these roles can view this content item."} + {/if} + {/forminput} +
+{/strip} \ No newline at end of file diff --git a/templates/protector_service_icon.tpl b/templates/protector_service_icon.tpl new file mode 100755 index 0000000..83452a5 --- /dev/null +++ b/templates/protector_service_icon.tpl @@ -0,0 +1,16 @@ +{if !$serviceHash and $gContent->mInfo} + {assign var=serviceHash value=$gContent->mInfo} +{/if} + +{if !empty($serviceHash.is_hidden) and $serviceHash.is_hidden=='y'} + {assign var=securityLabel value="Hidden"} +{/if} +{if !empty($serviceHash.is_private) and $serviceHash.is_private=='y'} + {assign var=securityLabel value="Private"} +{/if} +{if !empty($serviceHash.access_answer) and $serviceHash.access_answer} + {assign var=securityLabel value="Password Required"} +{/if} +{if !empty($securityLabel)} + {booticon iname="icon-lock" ipackage="icons" iexplain=$securityLabel iforce=icon_text} +{/if} -- cgit v1.3