From 0d388c17f32040943c6abb1ff525f06878431485 Mon Sep 17 00:00:00 2001 From: spiderr Date: Sat, 6 Apr 2013 16:19:47 -0400 Subject: major clean up for Smarty 3.0 and another pass at cleaning the top menus --- templates/admin_login.tpl | 14 +++++++------- templates/admin_login_role.tpl | 14 +++++++------- templates/admin_users.tpl | 4 ++-- templates/edit_personal_page.tpl | 4 ++-- templates/login.tpl | 2 +- templates/menu_users.tpl | 3 ++- templates/my_group_edit.tpl | 2 +- templates/my_role_edit.tpl | 2 +- templates/register.tpl | 2 +- templates/role_register.tpl | 2 +- templates/user_assigned_modules.tpl | 10 +++++----- templates/user_preferences.tpl | 2 +- users_rss.php | 2 +- 13 files changed, 32 insertions(+), 31 deletions(-) diff --git a/templates/admin_login.tpl b/templates/admin_login.tpl index 9ed7696..cf2bf0b 100644 --- a/templates/admin_login.tpl +++ b/templates/admin_login.tpl @@ -40,7 +40,7 @@ {if $feature == 'users_random_number_reg'} {formfeedback warning=$warning} {/if} - {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {if $output.type == 'text'} {if $feature eq 'cookie_domain' && $gBitSystem->getConfig($feature) eq ''} @@ -53,7 +53,7 @@ {else} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput} {/foreach} @@ -135,14 +135,14 @@ {foreach from=$registerSettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {if $output.type == 'text'} {else} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput}
{/foreach} @@ -161,14 +161,14 @@ {foreach from=$httpSettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {if $output.type == 'text'} {else} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput}
{/foreach} @@ -198,7 +198,7 @@ {else} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput} {/foreach} diff --git a/templates/admin_login_role.tpl b/templates/admin_login_role.tpl index 7b1a0f3..9097087 100644 --- a/templates/admin_login_role.tpl +++ b/templates/admin_login_role.tpl @@ -40,7 +40,7 @@ {if $feature == 'users_random_number_reg'} {formfeedback warning=$warning} {/if} - {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {if $output.type == 'text'} {if $feature eq 'cookie_domain' && $gBitSystem->getConfig($feature) eq ''} @@ -53,7 +53,7 @@ {else} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput} {/foreach} @@ -120,14 +120,14 @@ {foreach from=$registerSettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {if $output.type == 'text'} {else} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput}
{/foreach} @@ -146,14 +146,14 @@ {foreach from=$httpSettings key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {if $output.type == 'text'} {else} {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput}
{/foreach} @@ -183,7 +183,7 @@ {else} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput} {/foreach} diff --git a/templates/admin_users.tpl b/templates/admin_users.tpl index e05ae02..79de81f 100644 --- a/templates/admin_users.tpl +++ b/templates/admin_users.tpl @@ -14,10 +14,10 @@ {foreach from=$formFeatures key=feature item=output}
- {formlabel label=`$output.label` for=$feature} + {formlabel label=$output.label for=$feature} {forminput} {html_checkboxes name="settings[$feature]" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature} - {formhelp note=`$output.note` page=`$output.link`} + {formhelp note=$output.note page=$output.link} {/forminput}
{/foreach} diff --git a/templates/edit_personal_page.tpl b/templates/edit_personal_page.tpl index 9a47e94..61227df 100644 --- a/templates/edit_personal_page.tpl +++ b/templates/edit_personal_page.tpl @@ -22,7 +22,7 @@ - {formfeedback warning=`$errors.edit_conflict`} + {formfeedback warning=$errors.edit_conflict} {/if}
@@ -70,7 +70,7 @@
- {formfeedback warning=`$errors.title`} + {formfeedback warning=$errors.title} {formlabel label="$conDescr Title" for="title"} {forminput} {if $gBitUser->hasPermission( 'p_wiki_rename_page' ) || !$pageInfo.page_id} diff --git a/templates/login.tpl b/templates/login.tpl index 6dd3ee2..3dd33b5 100644 --- a/templates/login.tpl +++ b/templates/login.tpl @@ -1,7 +1,7 @@ {strip} {/strip} diff --git a/templates/menu_users.tpl b/templates/menu_users.tpl index 3bada4f..b0865ba 100644 --- a/templates/menu_users.tpl +++ b/templates/menu_users.tpl @@ -2,7 +2,8 @@ {if !$icons_only} {assign var=location value=menu} {/if} -
    + {tr}{$packageMenuTitle}{/tr} +
{/foreach} diff --git a/templates/role_register.tpl b/templates/role_register.tpl index 84e37c7..324a9c8 100644 --- a/templates/role_register.tpl +++ b/templates/role_register.tpl @@ -208,7 +208,7 @@ {else} {/if} - {formhelp note=`$output.note` page=`$output.page` link=`$output.link`} + {formhelp note=$output.note page=$output.page link=$output.link} {/forminput}
{/foreach} diff --git a/templates/user_assigned_modules.tpl b/templates/user_assigned_modules.tpl index 5acdfbe..7947128 100644 --- a/templates/user_assigned_modules.tpl +++ b/templates/user_assigned_modules.tpl @@ -25,15 +25,15 @@ {tr}Position {$modules.$area[ix].ord}{/tr}
{$modules.$area[ix].name}
- {smartlink ititle="Up" ibiticon="liberty/move_up" fMove=up fPackage=$fPackage fModule=`$modules.$area[ix].module_id`} - {smartlink ititle="Down" ibiticon="liberty/move_down" fMove=down fPackage=$fPackage fModule=`$modules.$area[ix].module_id`} + {smartlink ititle="Up" ibiticon="liberty/move_up" fMove=up fPackage=$fPackage fModule=$modules.$area[ix].module_id} + {smartlink ititle="Down" ibiticon="liberty/move_down" fMove=down fPackage=$fPackage fModule=$modules.$area[ix].module_id} {if $colkey eq 'right'} - {smartlink ititle="Move to Left" ibiticon="liberty/move_left" fMove=left fPackage=$fPackage fModule=`$modules.$area[ix].module_id`} + {smartlink ititle="Move to Left" ibiticon="liberty/move_left" fMove=left fPackage=$fPackage fModule=$modules.$area[ix].module_id} {elseif $colkey eq 'left'} - {smartlink ititle="Move to Right" ibiticon="liberty/move_right" fMove=right fPackage=$fPackage fModule=`$modules.$area[ix].module_id`} + {smartlink ititle="Move to Right" ibiticon="liberty/move_right" fMove=right fPackage=$fPackage fModule=$modules.$area[ix].module_id} {/if} {if $column[ix].type ne 'P'} - {smartlink ititle="Unassign" booticon="icon-trash" ionclick="return confirm('Are you sure you want to remove `$modules.$area[ix].name`?');" fMove=unassign fPackage=$fPackage fModule=`$modules.$area[ix].module_id`} + {smartlink ititle="Unassign" booticon="icon-trash" ionclick="return confirm('Are you sure you want to remove `$modules.$area[ix].name`?');" fMove=unassign fPackage=$fPackage fModule=$modules.$area[ix].module_id} {/if}
diff --git a/templates/user_preferences.tpl b/templates/user_preferences.tpl index fe2f059..8650aea 100644 --- a/templates/user_preferences.tpl +++ b/templates/user_preferences.tpl @@ -140,7 +140,7 @@
{formhelp note="Internal data is stored using UTC time stamps, these can then be displayed using your current browser timezone offset (which ignores daylight saving), or a fixed timezone which will also manage the correct daylight saving"} {/forminput} diff --git a/users_rss.php b/users_rss.php index c9d092e..70a5e74 100644 --- a/users_rss.php +++ b/users_rss.php @@ -57,7 +57,7 @@ if( !$gBitUser->hasPermission( 'p_users_view_user_list' ) ) { if( $gBitUser->hasPermission( 'p_users_admin' ) ) { $item->description .= tra( "Email Address" ).': '.$feed['email'].'
'; } - require_once $gBitSmarty->_get_plugin_filepath( 'modifier', 'bit_short_datetime' ); + $gBitSmarty->loadPlugin( 'smarty_modifier_bit_short_datetime' ); $item->description .= tra( "Member Since" ).": ".smarty_modifier_bit_short_datetime( $feed['registration_date'] ).'
'; $item->date = ( int )$feed['registration_date']; -- cgit v1.3