From cbe559474ad73396743d84afdd036ea9755c16a5 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Wed, 8 Feb 2006 13:17:41 +0000 Subject: Make Theme/Permissions/Group optional in pigeonholes --- templates/edit_pigeonholes.tpl | 48 ++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 21 deletions(-) (limited to 'templates/edit_pigeonholes.tpl') diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl index 89d8046..f788d61 100644 --- a/templates/edit_pigeonholes.tpl +++ b/templates/edit_pigeonholes.tpl @@ -42,29 +42,35 @@ {/forminput} -
- {formlabel label="Theme" for="pigeonhole-style"} - {forminput} - {html_options id="pigeonhole-style" name="pigeonhole[prefs][style]" output=$styles values=$styles selected=$gContent->mPrefs.style} - {formhelp note="This theme will be applied when viewing any page belonging to this category." warning="Setting is inherited from parent category."} - {/forminput} -
+ {if $gBitSystem->isFeatureActive( 'pigeonholes_themes' )} +
+ {formlabel label="Theme" for="pigeonhole-style"} + {forminput} + {html_options id="pigeonhole-style" name="pigeonhole[prefs][style]" output=$styles values=$styles selected=$gContent->mPrefs.style} + {formhelp note="This theme will be applied when viewing any page belonging to this category." warning="Setting is inherited from parent category."} + {/forminput} +
+ {/if} -
- {formlabel label="Permission" for="perm"} - {forminput} - {html_options name="pigeonhole[prefs][permission]" id="perm" options=$perms selected=`$gContent->mPrefs.permission`} - {formhelp note="Permission required to view any page in this category." warning="Setting is inherited from parent category."} - {/forminput} -
+ {if $gBitSystem->isFeatureActive( 'pigeonholes_permissions' )} +
+ {formlabel label="Permission" for="perm"} + {forminput} + {html_options name="pigeonhole[prefs][permission]" id="perm" options=$perms selected=`$gContent->mPrefs.permission`} + {formhelp note="Permission required to view any page in this category." warning="Setting is inherited from parent category."} + {/forminput} +
+ {/if} -
- {formlabel label="Group" for="group"} - {forminput} - {html_options name="pigeonhole[prefs][group_id]" id="group" options=$groups selected=`$gContent->mPrefs.group_id`} - {formhelp note="Users of only this group can view the content of this category." warning="Setting is inherited from parent category."} - {/forminput} -
+ {if $gBitSystem->isFeatureActive( 'pigeonholes_groups' )} +
+ {formlabel label="Group" for="group"} + {forminput} + {html_options name="pigeonhole[prefs][group]" id="group" options=$groups selected=`$gContent->mPrefs.group_id`} + {formhelp note="Users of only this group can view the content of this category." warning="Setting is inherited from parent category."} + {/forminput} +
+ {/if}
{formlabel label="Content" for="pigeonhole-content"} -- cgit v1.3