Changeset 2694:1873a0e11790 for admin/preferences.php
- Timestamp:
- 04/05/14 14:46:47 (11 years ago)
- Branch:
- default
- Children:
- 2700:4ded6c327e04, 3280:d258c9f4317b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/preferences.php
r2682 r2694 67 67 # Formaters combo 68 68 $formaters_combo = dcAdminCombos::getFormatersCombo(); 69 $formaters_combo_editor = array(); 69 70 70 71 if (!empty($user_options['editor']) && !empty($formaters_combo[$user_options['editor']])) { … … 436 437 437 438 echo 438 '<form action="preferences.php " method="post" id="opts-forms">'.439 '<form action="preferences.php#user-options" method="post" id="opts-forms">'. 439 440 '<h3>'.__('My options').'</h3>'; 440 441 … … 468 469 '</div>'; 469 470 470 // hide editor selector if less than 2 editors471 if (count($editors)<2) {472 $editor_class = ' hidden';473 } else {474 $editor_class = '';475 }476 477 471 echo 478 472 '<div class="fieldset">'. 479 473 '<h4>'.__('Edition').'</h4>'. 480 474 481 '<p class="field '.$editor_class.'"><label for="user_editor">'.__('Preferred editor:').'</label>'.482 form::combo('user_editor', $editors_combo,$user_options['editor']).'</p>'.475 '<p class="field"><label for="user_editor">'.__('Preferred editor:').'</label>'. 476 form::combo('user_editor',array_merge(array(__('Choose an editor') => ''),$editors_combo),$user_options['editor']).'</p>'. 483 477 484 478 '<p class="field"><label for="user_post_format">'.__('Preferred format:').'</label>'. 485 form::combo('user_post_format', $formaters_combo_editor,$user_options['post_format']).'</p>'.479 form::combo('user_post_format',array_merge(array('' => ''), $formaters_combo_editor),$user_options['post_format']).'</p>'. 486 480 487 481 '<p class="field"><label for="user_post_status">'.__('Default entry status:').'</label>'.
Note: See TracChangeset
for help on using the changeset viewer.