Changeset 29221
- Timestamp:
- Aug 15, 2014, 6:14:43 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r29220 r29221 420 420 $action, 421 421 '', 422 $edit_user 422 $edit_user, 423 'GUEST_' 423 424 ); 424 425 $template->assign('default', array()); -
trunk/admin/themes/default/template/configuration.tpl
r28980 r29221 855 855 {if isset($default)} 856 856 <div id="configContent"> 857 {$PROFILE_CONTENT} 857 <form method="post" name="profile" action="{$GUEST_F_ACTION}" id="profile" class="properties"> 858 859 {if $GUEST_USERNAME!='guest'} 860 <fieldset> 861 {'The settings for the guest are from the %s user'|@translate:$GUEST_USERNAME} 862 </fieldset> 863 {/if} 864 865 <fieldset> 866 <legend>{'Preferences'|@translate}</legend> 867 <input type="hidden" name="redirect" value="{$GUEST_REDIRECT}"> 868 869 <ul> 870 <li> 871 <span class="property"> 872 <label for="nb_image_page">{'Number of photos per page'|@translate}</label> 873 </span> 874 <input type="text" size="4" maxlength="3" name="nb_image_page" id="nb_image_page" value="{$GUEST_NB_IMAGE_PAGE}"> 875 </li> 876 <li> 877 <span class="property"> 878 <label for="recent_period">{'Recent period'|@translate}</label> 879 </span> 880 <input type="text" size="3" maxlength="2" name="recent_period" id="recent_period" value="{$GUEST_RECENT_PERIOD}"> 881 </li> 882 <li> 883 <span class="property">{'Expand all albums'|@translate}</span> 884 {html_radios name='expand' options=$radio_options selected=$GUEST_EXPAND} 885 </li> 886 {if $GUEST_ACTIVATE_COMMENTS} 887 <li> 888 <span class="property">{'Show number of comments'|@translate}</span> 889 {html_radios name='show_nb_comments' options=$radio_options selected=$GUEST_NB_COMMENTS} 890 </li> 891 {/if} 892 <li> 893 <span class="property">{'Show number of hits'|@translate}</span> 894 {html_radios name='show_nb_hits' options=$radio_options selected=$GUEST_NB_HITS} 895 </li> 896 </ul> 897 </fieldset> 898 899 <p class="bottomButtons"> 900 <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> 901 <input class="submit" type="submit" name="validate" value="{'Submit'|@translate}"> 902 <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> 903 </p> 904 905 </form> 906 858 907 </div> 859 908 {/if} -
trunk/language/en_UK/admin.lang.php
r29079 r29221 803 803 $lang['The Piwigo export plugin allows you to create albums and export photos.'] = 'The Piwigo export plugin allows you to create albums and export photos.'; 804 804 $lang['The Piwigo publish Plug-in allows you to export and synchronize photos from Lightroom directly to your Piwigo photo gallery.'] = 'The Piwigo publish Plug-in allows you to export and synchronize photos from Lightroom directly to your Piwigo photo gallery.'; 805 $lang['The settings for the guest are from the %s user']='The settings for the guest are from the %s user' 805 806 $lang['The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'] = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'; 806 807 $lang['The uploaded file exceeds the upload_max_filesize directive in php.ini: %sB'] = 'The uploaded file exceeds the upload_max_filesize directive in php.ini: %sB'; -
trunk/profile.php
r28587 r29221 70 70 $page['body_id'] = 'theProfilePage'; 71 71 $template->set_filename('profile', 'profile.tpl'); 72 $template->set_filename('profile_content', 'profile_content.tpl'); 72 73 73 74 load_profile_in_template( … … 75 76 make_index_url(), // for redirect 76 77 $userdata ); 78 $template->assign_var_from_handle('PROFILE_CONTENT', 'profile_content'); 79 77 80 78 81 … … 290 293 } 291 294 292 293 function load_profile_in_template($url_action, $url_redirect, $userdata) 295 /** 296 * Assign template variables, from arguments 297 * Used to build profile edition pages 298 * 299 * @param string $url_action 300 * @param string $url_redirect 301 * @param array $userdata 302 */ 303 function load_profile_in_template($url_action, $url_redirect, $userdata, $template_prefixe=null) 294 304 { 295 305 global $template, $conf; 296 297 $template->set_filename('profile_content', 'profile_content.tpl');298 306 299 307 $template->assign('radio_options', … … 304 312 $template->assign( 305 313 array( 306 'USERNAME'=>stripslashes($userdata['username']),307 'EMAIL'=>@$userdata['email'],308 'ALLOW_USER_CUSTOMIZATION'=>$conf['allow_user_customization'],309 'ACTIVATE_COMMENTS'=>$conf['activate_comments'],310 'NB_IMAGE_PAGE'=>$userdata['nb_image_page'],311 'RECENT_PERIOD'=>$userdata['recent_period'],312 'EXPAND' =>$userdata['expand'] ? 'true' : 'false',313 'NB_COMMENTS'=>$userdata['show_nb_comments'] ? 'true' : 'false',314 'NB_HITS'=>$userdata['show_nb_hits'] ? 'true' : 'false',315 'REDIRECT' => $url_redirect,316 'F_ACTION'=>$url_action,314 $template_prefixe.'USERNAME'=>stripslashes($userdata['username']), 315 $template_prefixe.'EMAIL'=>@$userdata['email'], 316 $template_prefixe.'ALLOW_USER_CUSTOMIZATION'=>$conf['allow_user_customization'], 317 $template_prefixe.'ACTIVATE_COMMENTS'=>$conf['activate_comments'], 318 $template_prefixe.'NB_IMAGE_PAGE'=>$userdata['nb_image_page'], 319 $template_prefixe.'RECENT_PERIOD'=>$userdata['recent_period'], 320 $template_prefixe.'EXPAND' =>$userdata['expand'] ? 'true' : 'false', 321 $template_prefixe.'NB_COMMENTS'=>$userdata['show_nb_comments'] ? 'true' : 'false', 322 $template_prefixe.'NB_HITS'=>$userdata['show_nb_hits'] ? 'true' : 'false', 323 $template_prefixe.'REDIRECT' => $url_redirect, 324 $template_prefixe.'F_ACTION'=>$url_action, 317 325 )); 318 326 … … 339 347 340 348 $template->assign('PWG_TOKEN', get_pwg_token()); 341 $template->assign_var_from_handle('PROFILE_CONTENT', 'profile_content');342 349 } 343 350 ?>
Note: See TracChangeset
for help on using the changeset viewer.