From 416233c2e467ff2bae8de82367f53fcae6f677f7 Mon Sep 17 00:00:00 2001 From: flop25 Date: Fri, 15 Aug 2014 16:14:43 +0000 Subject: bug:3122 removed admin files profile.tpl and profile_content.tpl, integrated in configuration.tpl take into account default_user_id with a message prefix for template var, to avoid overwriting of already existing vars especially in admin panel git-svn-id: http://piwigo.org/svn/trunk@29221 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/configuration.tpl | 51 ++++++++++++- admin/themes/default/template/profile.tpl | 5 -- admin/themes/default/template/profile_content.tpl | 93 ----------------------- 3 files changed, 50 insertions(+), 99 deletions(-) delete mode 100644 admin/themes/default/template/profile.tpl delete mode 100644 admin/themes/default/template/profile_content.tpl (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index f11390878..0f0a80e20 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -854,6 +854,55 @@ jQuery("input[name='mail_theme']").change(function() { {if isset($default)}
-{$PROFILE_CONTENT} +
+ +{if $GUEST_USERNAME!='guest'} +
+ {'The settings for the guest are from the %s user'|@translate:$GUEST_USERNAME} +
+{/if} + +
+ {'Preferences'|@translate} + + +
    +
  • + + + + +
  • +
  • + + + + +
  • +
  • + {'Expand all albums'|@translate} + {html_radios name='expand' options=$radio_options selected=$GUEST_EXPAND} +
  • + {if $GUEST_ACTIVATE_COMMENTS} +
  • + {'Show number of comments'|@translate} + {html_radios name='show_nb_comments' options=$radio_options selected=$GUEST_NB_COMMENTS} +
  • + {/if} +
  • + {'Show number of hits'|@translate} + {html_radios name='show_nb_hits' options=$radio_options selected=$GUEST_NB_HITS} +
  • +
+
+ +

+ + + +

+ +
+
{/if} diff --git a/admin/themes/default/template/profile.tpl b/admin/themes/default/template/profile.tpl deleted file mode 100644 index 6eac82e44..000000000 --- a/admin/themes/default/template/profile.tpl +++ /dev/null @@ -1,5 +0,0 @@ -
-

{'Profile'|@translate}

-
- -{$PROFILE_CONTENT} diff --git a/admin/themes/default/template/profile_content.tpl b/admin/themes/default/template/profile_content.tpl deleted file mode 100644 index 3c22dd386..000000000 --- a/admin/themes/default/template/profile_content.tpl +++ /dev/null @@ -1,93 +0,0 @@ -
- -
- {'Registration'|@translate} - -
    -
  • - - - - {if not $SPECIAL_USER} - - {else} - {$USERNAME} - {/if} -
  • - {if not $SPECIAL_USER} {* can modify password + email*} -
  • - - - - -
  • -
  • - - - - -
  • -
  • - - - - -
  • - {/if} -
-
- -
- {'Preferences'|@translate} - -
    -
  • - - - - -
  • - {if not $SPECIAL_USER} -
  • - - - - {html_options id=template name=theme options=$template_options selected=$template_selection} -
  • -
  • - - - - {html_options id=language name=language options=$language_options selected=$language_selection} -
  • - {/if} -
  • - - - - -
  • -
  • - {'Expand all albums'|@translate} - {html_radios name='expand' options=$radio_options selected=$EXPAND} -
  • - {if $ACTIVATE_COMMENTS} -
  • - {'Show number of comments'|@translate} - {html_radios name='show_nb_comments' options=$radio_options selected=$NB_COMMENTS} -
  • - {/if} -
  • - {'Show number of hits'|@translate} - {html_radios name='show_nb_hits' options=$radio_options selected=$NB_HITS} -
  • -
-
- -

- - - -

- -
-- cgit v1.2.3