Changeset 1609:51d77265fb5a for admin/preferences.php
- Timestamp:
- 08/28/13 19:15:41 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/preferences.php
r1607 r1609 393 393 394 394 echo 395 '<h3 class="hidden-if-js">'.__('My profile').'</h3>'. 395 396 '<form action="preferences.php" method="post" id="user-form">'. 396 '<fieldset><legend>'.__('My profile').'</legend>'. 397 '<div class="two-cols">'. 398 '<div class="col">'. 397 399 398 '<p><label for="user_name">'.__('Last Name:').'</label>'. 400 399 form::field('user_name',20,255,html::escapeHTML($user_name)).'</p>'. … … 410 409 411 410 '<p><label for="user_url">'.__('URL:').'</label>'. 412 form::field('user_url',30,255,html::escapeHTML($user_url)).'</p>'. 413 414 '</div>'. 415 416 '<div class="col">'. 417 418 '<p><label for="user_lang">'.__('Language for my interface:').'</label>'. 419 form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</p>'. 420 421 '<p><label for="user_tz">'.__('My timezone:').'</label>'. 422 form::combo('user_tz',dt::getZones(true,true),$user_tz).'</p>'. 423 424 '</div>'. 425 '</div>'. 426 '</fieldset>'; 411 form::field('user_url',30,255,html::escapeHTML($user_url)).'</p>'; 427 412 428 413 if ($core->auth->allowPassChange()) 429 414 { 430 415 echo 431 '<fieldset>'. 432 '<legend>'.__('Change my password').'</legend>'. 416 '<h4 class="vertical-separator">'.__('Change my password').'</h4>'. 433 417 434 418 '<div class="pw-table">'. … … 443 427 '<p><label for="new_pwd_c">'.__('Confirm new password:').'</label>'. 444 428 form::password('new_pwd_c',20,255).'</p>'. 445 '</fieldset>'.446 429 447 '<div class="fieldset">'. 448 '<p class="form-note warn">'.__('If you have changed your email or password you must provide your current password to save these modifications.').'</p>'. 449 '<p><label for="cur_pwd">'.__('Your password:').'</label>'. 430 '<p><label for="cur_pwd">'.__('Your current password:').'</label>'. 450 431 form::password('cur_pwd',20,255).'</p>'. 451 '</div>'; 452 } 453 454 echo 455 '<p class="clear">'. 432 '<p class="form-note warn">'. 433 __('If you have changed your email or password you must provide your current password to save these modifications.'). 434 '</p>'; 435 } 436 437 echo 438 '<p class="clear vertical-separator">'. 456 439 $core->formNonce(). 457 '<input type="submit" accesskey="s" value="'.__(' Save').'" /></p>'.458 '</form>' ;459 460 echo'</div>';440 '<input type="submit" accesskey="s" value="'.__('Update my profile').'" /></p>'. 441 '</form>'. 442 443 '</div>'; 461 444 462 445 # User options : some from actual user profile, dashboard modules, ... … … 465 448 echo 466 449 '<form action="preferences.php" method="post" id="opts-forms">'. 467 '<fieldset><legend>'.__('My options').'</legend>'. 468 469 '<p><label class="ib" for="user_post_format">'.__('Preferred format:').'</label>'. 470 form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</p>'. 471 472 '<p><label class="ib" for="user_post_status">'.__('Default entry status:').'</label>'. 473 form::combo('user_post_status',$status_combo,$user_post_status).'</p>'. 474 475 '<p><label class="ib" for="user_edit_size">'.__('Entry edit field height:').'</label>'. 476 form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</p>'. 477 478 '<p><label for="user_wysiwyg" class="classic">'. 479 form::checkbox('user_wysiwyg',1,$user_options['enable_wysiwyg']).' '. 480 __('Enable WYSIWYG mode').'</label></p>'. 450 '<h3 class="hidden-if-js">'.__('My options').'</h3>'; 451 452 echo 453 '<div class="two-cols">'. 454 455 '<div class="col">'. 456 '<h4>'.__('Interface').'</h4>'. 457 458 '<p><label for="user_lang">'.__('Language for my interface:').'</label>'. 459 form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</p>'. 460 461 '<p><label for="user_tz">'.__('My timezone:').'</label>'. 462 form::combo('user_tz',dt::getZones(true,true),$user_tz).'</p>'. 481 463 482 464 '<p><label for="user_ui_enhanceduploader" class="classic">'. 483 465 form::checkbox('user_ui_enhanceduploader',1,$user_ui_enhanceduploader).' '. 484 __('Activate enhanced uploader in media manager').'</label></p>'. 485 486 '<p><label for="user_ui_nofavmenu" class="classic">'. 487 form::checkbox('user_ui_nofavmenu',1,$user_ui_nofavmenu).' '. 488 __('Hide My favorites menu').'</label></p>'; 489 490 if (count($iconsets_combo) > 1) { 491 echo 492 '<p><label class="ib" for="user_ui_iconset">'.__('Iconset:').'</label>'. 493 form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 494 } else { 495 form::hidden('user_ui_iconset',''); 496 } 466 __('Activate enhanced uploader in media manager').'</label></p>'; 497 467 498 468 if ($core->auth->isSuperAdmin()) { … … 502 472 __('Do not use standard favicon').'</label></p>'. 503 473 '<p class="clear form-note warn">'.__('This will be applied for all users').'.'. 504 '<br class="clear" /></p>';//Opera sucks; 505 } 506 507 echo 508 '</fieldset>'; 509 510 echo 511 '<fieldset><legend>'.__('Accessibility options').'</legend>'. 474 '</p>';//Opera sucks; 475 } 476 477 echo 478 '<h5>'.__('Accessibility').'</h5>'. 512 479 513 480 '<p><label for="user_acc_nodragdrop" class="classic">'. … … 515 482 __('Disable javascript powered drag and drop for ordering items').'</label></p>'. 516 483 517 '<p class="clear form-note info">'.__('Numeric fields will allow to type the elements\' ordering number.').'</p>'. 518 '</fieldset>'; 519 520 echo 521 '<fieldset><legend>'.__('Dashboard modules').'</legend>'. 484 '<p class="clear form-note">'.__('If checked, numeric fields will allow to type the elements\' ordering number.').'</p>'; 485 486 echo 487 '<h4 class="border-top">'.__('Edition').'</h4>'. 488 489 '<p><label for="user_post_format">'.__('Preferred format:').'</label>'. 490 form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</p>'. 491 492 '<p><label for="user_post_status">'.__('Default entry status:').'</label>'. 493 form::combo('user_post_status',$status_combo,$user_post_status).'</p>'. 494 495 '<p><label for="user_edit_size">'.__('Entry edit field height:').'</label>'. 496 form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</p>'. 497 498 '<p><label for="user_wysiwyg" class="classic">'. 499 form::checkbox('user_wysiwyg',1,$user_options['enable_wysiwyg']).' '. 500 __('Enable WYSIWYG mode').'</label></p>'; 501 502 echo 503 '<h4 class="border-top">'.__('Other options').'</h4>'; 504 505 # --BEHAVIOR-- adminPreferencesForm 506 $core->callBehavior('adminPreferencesForm',$core); 507 508 echo 509 '</div>'. 510 511 '<div class="col">'. 512 '<h4>'.__('Dashboard and menu').'</h4>'. 513 514 '<p><label for="user_ui_nofavmenu" class="classic">'. 515 form::checkbox('user_ui_nofavmenu',1,$user_ui_nofavmenu).' '. 516 __('Hide My favorites menu').'</label></p>'; 517 518 if (count($iconsets_combo) > 1) { 519 echo 520 '<p><label for="user_ui_iconset" class="classic">'.__('Iconset:').'</label> '. 521 form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 522 } else { 523 form::hidden('user_ui_iconset',''); 524 } 525 526 echo 527 '<h5>'.('Dashboard modules').'</h5>'. 522 528 523 529 '<p><label for="user_dm_doclinks" class="classic">'. … … 532 538 form::checkbox('user_dm_quickentry',1,$user_dm_quickentry).' '. 533 539 __('Display quick entry form').'</label><br class="clear" />'. //Opera sucks 534 '</p>'. 535 536 '</fieldset>'; 537 538 # --BEHAVIOR-- adminPreferencesForm 539 $core->callBehavior('adminPreferencesForm',$core); 540 541 echo 542 '<p class="clear">'. 540 '</p>'; 541 542 echo 543 '</div>'. 544 '</div>'; 545 546 echo 547 '<p class="clear border-top">'. 543 548 $core->formNonce(). 544 '<input type="submit" accesskey="s" value="'.__('Save ').'" /></p>'.549 '<input type="submit" accesskey="s" value="'.__('Save my options').'" /></p>'. 545 550 '</form>'; 546 551 … … 552 557 echo '<form action="preferences.php" method="post" id="favs-form">'; 553 558 echo '<div class="two-cols">'; 559 554 560 echo '<div class="col70">'; 555 561 echo '<div id="my-favs" class="fieldset"><h3>'.__('My favorites').'</h3>'; … … 600 606 601 607 echo '<div id="default-favs"><h3>'.__('Default favorites').'</h3>'; 602 echo '<p class="form-note info clear">'.__('Those favorites are displayed when My Favorites list is empty.').'</p>';608 echo '<p>'.__('Those favorites are displayed when My Favorites list is empty.').'</p>'; 603 609 $count = 0; 604 610 foreach ($ws->dumpPrefs() as $k => $v) { … … 617 623 echo '</div>'; 618 624 echo '</div>'; 625 626 619 627 echo '<div class="col30 fieldset" id="available-favs">'; 620 628 # Available favorites … … 646 654 '<input type="submit" name="appendaction" value="'.__('Add to my favorites').'" /></p>'; 647 655 echo '</div>'; 656 657 648 658 echo '</div>'; # Two-cols 649 659 echo '</form>';
Note: See TracChangeset
for help on using the changeset viewer.