Changeset 2682:cac55fdd7178 for admin
- Timestamp:
- 03/11/14 20:46:03 (11 years ago)
- Branch:
- default
- Children:
- 2683:fb8aa74332f1, 2684:599c0d392db2
- Location:
- admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/post.php
r2681 r2682 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 3Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 449 449 if ($can_edit_post) 450 450 { 451 if (count($formaters_combo)>0) { 452 $post_format_field = form::combo('post_format',$formaters_combo,$post_format,'maximal'); 453 } else { 454 $post_format_field = '<a href="preferences.php#user-options">'.__('Choose an activated editor').'</a>'; 455 } 456 451 457 $sidebar_items = new ArrayObject(array( 452 458 'status-box' => array( … … 468 474 '<div>'. 469 475 '<h5 id="label_format"><label for="post_format" class="classic">'.__('Text formatting').'</label></h5>'. 470 '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 471 '</p>'. 476 '<p>'.$post_format_field.'</p>'. 472 477 '<p class="format_control control_no_xhtml">'. 473 478 '<a id="convert-xhtml" class="button'.($post_id && $post_format != 'wiki' ? ' hide' : '').'" href="post.php?id='.$post_id.'&xconv=1">'. -
admin/preferences.php
r2679 r2682 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 3Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 68 68 $formaters_combo = dcAdminCombos::getFormatersCombo(); 69 69 70 if (!empty($user_options['editor']) ) {70 if (!empty($user_options['editor']) && !empty($formaters_combo[$user_options['editor']])) { 71 71 $formaters_combo_editor = $formaters_combo[$user_options['editor']]; 72 72 } elseif (count($editors)!=0) { … … 468 468 '</div>'; 469 469 470 // hide editor selector if less than 2 editors 471 if (count($editors)<2) { 472 $editor_class = ' hidden'; 473 } else { 474 $editor_class = ''; 475 } 476 470 477 echo 471 478 '<div class="fieldset">'. 472 479 '<h4>'.__('Edition').'</h4>'. 473 480 474 '<p class="field "><label for="user_editor">'.__('Preferred editor:').'</label>'.481 '<p class="field'.$editor_class.'"><label for="user_editor">'.__('Preferred editor:').'</label>'. 475 482 form::combo('user_editor',$editors_combo,$user_options['editor']).'</p>'. 476 483
Note: See TracChangeset
for help on using the changeset viewer.