Dotclear

Changeset 2335:db52e903ff91


Ignore:
Timestamp:
10/11/13 07:49:40 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Amélioration de la sémantique et de la présentation des configurateurs de Blowup et Ductile.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/js/color-picker.js

    r2101 r2335  
    3434               span.css('position','relative'); 
    3535          } 
    36           span.css('display','block'); 
     36          span.css('display','inline-block'); 
    3737           
    3838          /*ligne supprimée car elle ne fait pas le calcul 
  • locales/fr/plugins.po

    r2311 r2335  
    588588 
    589589msgid "Solid color" 
    590 msgstr "Couleur" 
     590msgstr "Couleur pleine" 
    591591 
    592592msgid "Custom..." 
     
    624624 
    625625msgid "Background color fill:" 
    626 msgstr "Couleur de remplissage du fond :" 
     626msgstr "Remplissage de la couleur du fond :" 
    627627 
    628628msgid "Main text font:" 
  • plugins/blowupConfig/index.php

    r2256 r2335  
    290290 
    291291echo 
    292 '<p class="field"><label for="blog_title_hide">'.__('Hide main title').' '. 
    293 form::checkbox('blog_title_hide',1,$blowup_user['blog_title_hide']).'</label></p>'. 
     292'<p class="field"><label for="blog_title_hide">'.__('Hide main title').'</label> '. 
     293form::checkbox('blog_title_hide',1,$blowup_user['blog_title_hide']).'</p>'. 
    294294 
    295295'<p class="field"><label for="blog_title_f">'.__('Main title font:').'</label> '. 
     
    316316 
    317317     echo 
    318      '<h4 class="border-top">'.__('Top image').'</h4>'. 
     318     '<h5 class="pretty-title">'.__('Top image').'</h4>'. 
    319319     '<p class="field"><label for="top_image">'.__('Top image').'</label> '. 
    320320     form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</p>'. 
  • themes/ductile/_config.php

    r2003 r2335  
    438438 
    439439echo '<div class="multi-part" id="themes-list'.($conf_tab == 'html' ? '' : '-html').'" title="'.__('Content').'">'. 
    440 '<h3 class="out-of-screen-if-js">'.__('Content').'</h3>'; 
     440'<h3>'.__('Content').'</h3>'; 
    441441 
    442442echo '<form id="theme_config" action="blog_theme.php?conf=1" method="post" enctype="multipart/form-data">'; 
    443443 
    444 echo '<fieldset><legend>'.__('Header').'</legend>'. 
    445 '<p class="field"><label for="subtitle_hidden">'.__('Hide blog description:').' '. 
    446 form::checkbox('subtitle_hidden',1,$ductile_user['subtitle_hidden']).'</label>'.'</p>'; 
     444echo '<h4>'.__('Header').'</h4>'. 
     445'<p class="field"><label for="subtitle_hidden">'.__('Hide blog description:').'</label> '. 
     446form::checkbox('subtitle_hidden',1,$ductile_user['subtitle_hidden']).'</p>'; 
     447echo '<p class="field"><label for="logo_src">'.__('Logo URL:').'</label> '. 
     448     form::field('logo_src',40,255,$ductile_user['logo_src']).'</p>'; 
    447449if ($core->plugins->moduleExists('simpleMenu')) 
    448450{ 
    449451     echo '<p>'.sprintf(__('To configure the top menu go to the <a href="%s">Simple Menu administration page</a>.'),'plugin.php?p=simpleMenu').'</p>'; 
    450452} 
    451 echo '<p class="field"><label for="logo_src">'.__('Logo URL:').' '. 
    452      form::field('logo_src',40,255,$ductile_user['logo_src']).'</label>'.'</p>'; 
    453 echo '</fieldset>'; 
    454  
    455 echo '<fieldset><legend>'.__('Stickers').'</legend>'; 
     453 
     454echo '<h4 class="border-top pretty-title">'.__('Stickers').'</h4>'; 
    456455 
    457456echo  
     
    483482'</table></div>'; 
    484483 
    485 echo '</fieldset>'; 
    486  
    487 echo '<fieldset><legend>'.__('Entries list types and limits').'</legend>'; 
    488  
    489 echo '<table id="entrieslist">'.'<caption>'.__('Entries lists').'</caption>'. 
     484echo '<h4 class="border-top pretty-title">'.__('Entries list types and limits').'</h4>'; 
     485 
     486echo '<table id="entrieslist">'.'<caption class="hidden">'.__('Entries lists').'</caption>'. 
    490487'<thead>'. 
    491488'<tr>'. 
     
    513510'</table>'; 
    514511 
    515 echo '</fieldset>'; 
    516  
    517 echo '<fieldset><legend>'.__('Miscellaneous options').'</legend>'; 
    518 echo '<p class="field"><label for="preview_not_mandatory">'.__('Comment preview is not mandatory:').' '. 
    519 form::checkbox('preview_not_mandatory',1,$ductile_user['preview_not_mandatory']).'</label>'.'</p>'; 
    520 echo '</fieldset>'; 
     512echo '<h4 class="border-top pretty-title">'.__('Miscellaneous options').'</h4>'; 
     513echo '<p><label for="preview_not_mandatory" class="classic">'.__('Comment preview is not mandatory:').'</label> '. 
     514form::checkbox('preview_not_mandatory',1,$ductile_user['preview_not_mandatory']).'</p>'; 
    521515 
    522516echo '<p><input type="hidden" name="conf_tab" value="html" /></p>'; 
     
    534528echo '<h3>'.__('General settings').'</h3>'; 
    535529 
    536 echo '<fieldset><legend>'.__('Fonts').'</legend>'; 
     530echo '<h4 class="pretty-title">'.__('Fonts').'</h4>'; 
    537531 
    538532echo '<div class="two-cols">'; 
    539533echo '<div class="col">'; 
    540534echo 
    541 '<p class="field"><label for="body_font">'.__('Main:').' '. 
    542 form::combo('body_font',$fonts,$ductile_user['body_font']).'</label>'. 
     535'<h5>'.__('Main text').'</h5>'. 
     536'<p class="field"><label for="body_font">'.__('Main font:').'</label> '. 
     537form::combo('body_font',$fonts,$ductile_user['body_font']). 
    543538(!empty($ductile_user['body_font']) ? ' '.fontDef($ductile_user['body_font']) : ''). 
     539' <span class="form-note">'.__('Set to Default to use a webfont.').'</span>'. 
    544540'</p>'. 
    545 '<p class="form-note">'.__('Set main font to Default to use webfont below.').'</p> '. 
    546541'<p class="field"><label for="body_webfont_family">'.__('Webfont family:').'</label> '. 
    547542form::field('body_webfont_family',25,255,$ductile_user['body_webfont_family']).'</p>'. 
    548543'<p class="field"><label for="body_webfont_url">'.__('Webfont URL:').'</label> '. 
    549544form::field('body_webfont_url',50,255,$ductile_user['body_webfont_url']).'</p>'. 
    550 '<p class="field"><label for="body_webfont_url">'.__('Webfont API:').' '. 
    551 form::combo('body_webfont_api',$webfont_apis,$ductile_user['body_webfont_api']).'</label>'.'</p>'; 
     545'<p class="field"><label for="body_webfont_url">'.__('Webfont API:').'</label> '. 
     546form::combo('body_webfont_api',$webfont_apis,$ductile_user['body_webfont_api']).'</p>'; 
    552547echo '</div>'; 
    553548echo '<div class="col">'; 
    554549echo 
    555 '<p class="field"><label for="alternate_font">'.__('Secondary:').' '. 
    556 form::combo('alternate_font',$fonts,$ductile_user['alternate_font']).'</label>'. 
     550'<h5>'.__('Secondary text').'</h5>'. 
     551'<p class="field"><label for="alternate_font">'.__('Secondary font:').'</label> '. 
     552form::combo('alternate_font',$fonts,$ductile_user['alternate_font']). 
    557553(!empty($ductile_user['alternate_font']) ? ' '.fontDef($ductile_user['alternate_font']) : ''). 
     554' <span class="form-note">'.__('Set to Default to use a webfont.').'</span>'. 
    558555'</p>'. 
    559 '<p class="form-note">'.__('Set secondary font to Default to use webfont below.').'</p> '. 
    560556'<p class="field"><label for="alternate_webfont_family">'.__('Webfont family:').'</label> '. 
    561557form::field('alternate_webfont_family',25,255,$ductile_user['alternate_webfont_family']).'</p>'. 
    562558'<p class="field"><label for="alternate_webfont_url">'.__('Webfont URL:').'</label> '. 
    563559form::field('alternate_webfont_url',50,255,$ductile_user['alternate_webfont_url']).'</p>'. 
    564 '<p class="field"><label for="alternate_webfont_api">'.__('Webfont API:').' '. 
    565 form::combo('alternate_webfont_api',$webfont_apis,$ductile_user['alternate_webfont_api']).'</label>'.'</p>'; 
    566 echo '</div>'; 
    567 echo '</div>'; 
    568 echo '</fieldset>'; 
    569  
     560'<p class="field"><label for="alternate_webfont_api">'.__('Webfont API:').'</label> '. 
     561form::combo('alternate_webfont_api',$webfont_apis,$ductile_user['alternate_webfont_api']).'</p>'; 
     562echo '</div>'; 
     563echo '</div>'; 
     564 
     565echo '<h4 class="clear border-top pretty-title">'.__('Titles').'</h4>'; 
    570566echo '<div class="two-cols">'; 
    571567echo '<div class="col">'; 
    572  
    573 echo '<fieldset><legend>'.__('Blog title').'</legend>'. 
    574 '<p class="field"><label for="blog_title_w">'.__('In bold:').' '. 
    575 form::checkbox('blog_title_w',1,$ductile_user['blog_title_w']).'</label>'.'</p>'. 
     568echo '<h5>'.__('Blog title').'</h5>'. 
     569'<p class="field"><label for="blog_title_w">'.__('In bold:').'</label> '. 
     570form::checkbox('blog_title_w',1,$ductile_user['blog_title_w']).'</p>'. 
    576571 
    577572'<p class="field"><label for="blog_title_s">'.__('Font size (in em by default):').'</label> '. 
     
    583578     (!empty($ductile_user['blog_title_s']) ? $ductile_user['blog_title_s'] : '2em'), 
    584579     $ductile_user['blog_title_w']). 
    585 '</p>'. 
    586 '</fieldset>'; 
     580'</p>'; 
    587581 
    588582echo '</div>'; 
    589583echo '<div class="col">'; 
    590584 
    591 echo '<fieldset><legend>'.__('Post title').'</legend>'. 
    592 '<p class="field"><label for="post_title_w">'.__('In bold:').' '. 
    593 form::checkbox('post_title_w',1,$ductile_user['post_title_w']).'</label>'.'</p>'. 
     585echo '<h5>'.__('Post title').'</h5>'. 
     586'<p class="field"><label for="post_title_w">'.__('In bold:').'</label> '. 
     587form::checkbox('post_title_w',1,$ductile_user['post_title_w']).'</p>'. 
    594588 
    595589'<p class="field"><label for="post_title_s">'.__('Font size (in em by default):').'</label> '. 
     
    601595     (!empty($ductile_user['post_title_s']) ? $ductile_user['post_title_s'] : '2.5em'), 
    602596     $ductile_user['post_title_w']). 
    603 '</p>'. 
    604 '</fieldset>'; 
    605  
    606 echo '</div>'; 
    607 echo '</div>'; 
    608  
    609 echo '<fieldset><legend>'.__('Titles without link').'</legend>'. 
     597'</p>'; 
     598 
     599echo '</div>'; 
     600echo '</div>'; 
     601 
     602echo '<h5>'.__('Titles without link').'</h5>'. 
    610603 
    611604'<p class="field picker"><label for="post_simple_title_c">'.__('Color:').'</label> '. 
     
    614607     '1.1em',  // H5 minimum size 
    615608     false). 
    616 '</p>'. 
    617 '</fieldset>'; 
    618  
    619 echo '<fieldset><legend>'.__('Inside posts links').'</legend>'. 
    620 '<p class="field"><label for="post_link_w">'.__('In bold:').' '. 
    621 form::checkbox('post_link_w',1,$ductile_user['post_link_w']).'</label>'.'</p>'. 
     609'</p>'; 
     610 
     611echo '<h4 class="border-top pretty-title">'.__('Inside posts links').'</h4>'. 
     612'<p class="field"><label for="post_link_w">'.__('In bold:').'</label> '. 
     613form::checkbox('post_link_w',1,$ductile_user['post_link_w']).'</p>'. 
    622614 
    623615'<p class="field picker"><label for="post_link_v_c">'.__('Normal and visited links color:').'</label> '. 
     
    633625     '1em', 
    634626     $ductile_user['post_link_w']). 
    635 '</p>'. 
    636 '</fieldset>'; 
    637  
    638 echo '<h3>'.__('Mobile specific settings').'</h3>'; 
     627'</p>'; 
     628 
     629echo '<h3 class="border-top">'.__('Mobile specific settings').'</h3>'; 
    639630 
    640631echo '<div class="two-cols">'; 
    641632echo '<div class="col">'; 
    642633 
    643 echo '<fieldset><legend>'.__('Blog title').'</legend>'. 
    644 '<p class="field"><label for="blog_title_w_m">'.__('In bold:').' '. 
    645 form::checkbox('blog_title_w_m',1,$ductile_user['blog_title_w_m']).'</label>'.'</p>'. 
     634echo '<h4 class="pretty-title">'.__('Blog title').'</h4>'. 
     635'<p class="field"><label for="blog_title_w_m">'.__('In bold:').'</label> '. 
     636form::checkbox('blog_title_w_m',1,$ductile_user['blog_title_w_m']).'</p>'. 
    646637 
    647638'<p class="field"><label for="blog_title_s_m">'.__('Font size (in em by default):').'</label> '. 
     
    653644     (!empty($ductile_user['blog_title_s_m']) ? $ductile_user['blog_title_s_m'] : '1.8em'), 
    654645     $ductile_user['blog_title_w_m']). 
    655 '</p>'. 
    656 '</fieldset>'; 
     646'</p>'; 
    657647 
    658648echo '</div>'; 
    659649echo '<div class="col">'; 
    660650 
    661 echo '<fieldset><legend>'.__('Post title').'</legend>'. 
    662 '<p class="field"><label for="post_title_w_m">'.__('In bold:').' '. 
    663 form::checkbox('post_title_w_m',1,$ductile_user['post_title_w_m']).'</label>'.'</p>'. 
     651echo '<h4 class="pretty-title">'.__('Post title').'</h4>'. 
     652'<p class="field"><label for="post_title_w_m">'.__('In bold:').'</label> '. 
     653form::checkbox('post_title_w_m',1,$ductile_user['post_title_w_m']).'</p>'. 
    664654 
    665655'<p class="field"><label for="post_title_s_m">'.__('Font size (in em by default):').'</label> '. 
     
    671661     (!empty($ductile_user['post_title_s_m']) ? $ductile_user['post_title_s_m'] : '1.5em'), 
    672662     $ductile_user['post_title_w_m']). 
    673 '</p>'. 
    674 '</fieldset>'; 
     663'</p>'; 
    675664 
    676665echo '</div>'; 
     
    678667 
    679668echo '<p><input type="hidden" name="conf_tab" value="css" /></p>'; 
    680 echo '<p class="clear"><input type="submit" value="'.__('Save').'" />'.$core->formNonce().'</p>'; 
     669echo '<p class="clear border-top"><input type="submit" value="'.__('Save').'" />'.$core->formNonce().'</p>'; 
    681670echo '</form>'; 
    682671 
Note: See TracChangeset for help on using the changeset viewer.

Sites map