From ed1359903430658884f3560e45d0c12bc67d8f2f Mon Sep 17 00:00:00 2001 From: spiderr Date: Sat, 6 Apr 2013 16:18:50 -0400 Subject: major clean up for Smarty 3.0 and another pass at cleaning the top menus --- templates/admin_pigeonholes.tpl | 16 ++++++++-------- templates/assign_content.tpl | 2 +- templates/edit_pigeonholes.tpl | 4 ++-- templates/list.tpl | 8 ++++---- templates/menu_pigeonholes.tpl | 3 ++- templates/section_inc.tpl | 2 +- 6 files changed, 18 insertions(+), 17 deletions(-) diff --git a/templates/admin_pigeonholes.tpl b/templates/admin_pigeonholes.tpl index 8030112..8acd0b0 100644 --- a/templates/admin_pigeonholes.tpl +++ b/templates/admin_pigeonholes.tpl @@ -6,10 +6,10 @@ {legend legend="Display Settings"} {foreach from=$pigeonholeDisplaySettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} - {formhelp note=`$output.note` page=`$output.page`} + {formhelp note=$output.note page=$output.page} {/forminput}
{/foreach} @@ -26,10 +26,10 @@ {legend legend="Listing Settings"} {foreach from=$pigeonholeListSettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} - {formhelp note=`$output.note` page=`$output.page`} + {formhelp note=$output.note page=$output.page} {/forminput}
{/foreach} @@ -62,10 +62,10 @@ {legend legend="Pigeonhole Edit Settings"} {foreach from=$pigeonholeEditSettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} - {formhelp note=`$output.note` page=`$output.page`} + {formhelp note=$output.note page=$output.page} {/forminput}
{/foreach} @@ -74,10 +74,10 @@ {legend legend="Pigeonhole Content Edit Settings"} {foreach from=$pigeonholeContentEditSettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} - {formhelp note=`$output.note` page=`$output.page`} + {formhelp note=$output.note page=$output.page} {/forminput}
{/foreach} diff --git a/templates/assign_content.tpl b/templates/assign_content.tpl index 5f0e10f..5e0f8c0 100644 --- a/templates/assign_content.tpl +++ b/templates/assign_content.tpl @@ -132,7 +132,7 @@ {foreach from=$assignableContent item=item} {$item.title|escape} - {assign var=content_type_guid value=`$item.content_type_guid`}{$contentTypes.$content_type_guid} + {assign var=content_type_guid value=$item.content_type_guid}{$contentTypes.$content_type_guid} {foreach from=$pigeonList item=pigeon} {formlabel label="Permission" for="perm"} {forminput} - {html_options name="pigeonhole[prefs][permission]" id="perm" options=$perms selected=`$gContent->mPrefs.permission`} + {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} @@ -77,7 +77,7 @@
{formlabel label="Group" for="group_id"} {forminput} - {html_options name="pigeonhole[prefs][group_id]" id="group_id" options=$groups selected=`$gContent->mPrefs.group_id`} + {html_options name="pigeonhole[prefs][group_id]" id="group_id" 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}
diff --git a/templates/list.tpl b/templates/list.tpl index 6db8af2..1715944 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -29,10 +29,10 @@ {foreach from=$pigeonList item=item} {if $gBitUser->hasPermission( 'p_pigeonholes_update' )}
- {smartlink ititle="Change Structure" ifile="edit_structure.php" booticon="icon-recycle" structure_id=`$item.structure_id`} - {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" booticon="icon-file" structure_id=`$item.structure_id` action=create} - {smartlink ititle="Edit Category" ifile="edit_pigeonholes.php" booticon="icon-edit" structure_id=`$item.structure_id` action="edit"} - {smartlink ititle="Remove Category" ifile="edit_pigeonholes.php" booticon="icon-trash" action="remove" structure_id=`$item.structure_id`} + {smartlink ititle="Change Structure" ifile="edit_structure.php" booticon="icon-recycle" structure_id=$item.structure_id} + {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" booticon="icon-file" structure_id=$item.structure_id action="create"} + {smartlink ititle="Edit Category" ifile="edit_pigeonholes.php" booticon="icon-edit" structure_id=$item.structure_id action="edit"} + {smartlink ititle="Remove Category" ifile="edit_pigeonholes.php" booticon="icon-trash" action="remove" structure_id=$item.structure_id}
{/if}

{$item.display_link}

diff --git a/templates/menu_pigeonholes.tpl b/templates/menu_pigeonholes.tpl index ffcbee0..8b677a0 100644 --- a/templates/menu_pigeonholes.tpl +++ b/templates/menu_pigeonholes.tpl @@ -1,5 +1,6 @@ {strip} -