Dotclear

Changeset 76:b66888fc9356


Ignore:
Timestamp:
05/01/11 10:06:59 (14 years ago)
Author:
kozlika
Branch:
userprefs
Children:
77:397d639833e0, 82:a31a062afd24
Message:

Correction formulaires plugins, étape 2 : Blowup.
ATTENTION : besoin d'aide dans le js, voir commentaire dans le fichier.

Location:
plugins/blowupConfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/blowupConfig/config.js

    r0 r76  
    3636      
    3737     // Predefined styles 
     38     // /!\ needs geek master to add title="Choose a predefined style" in select tag 
    3839     var styles_combo = document.createElement('select'); 
    3940     $(styles_combo).append('<option value="">&nbsp;</option>'); 
  • plugins/blowupConfig/index.php

    r0 r76  
    237237if ($can_write_images) { 
    238238     echo 
    239      '<p class="field"><label>'.__('Background color:').' '. 
     239     '<p class="field"><label for="body_bg_c">'.__('Background color:').' '. 
    240240     form::field('body_bg_c',7,7,$blowup_user['body_bg_c'],'colorpicker').'</label></p>'. 
    241241      
    242      '<p class="field"><label>'.__('Background color fill:').' '. 
     242     '<p class="field"><label for="body_bg_g">'.__('Background color fill:').' '. 
    243243     form::combo('body_bg_g',$gradient_types,$blowup_user['body_bg_g']).'</label></p>'; 
    244244} 
    245245 
    246246echo 
    247 '<p class="field"><label>'.__('Main text font:').' '. 
     247'<p class="field"><label for="body_txt_f">'.__('Main text font:').' '. 
    248248form::combo('body_txt_f',blowupConfig::fontsList(),$blowup_user['body_txt_f']).'</label></p>'. 
    249249 
    250 '<p class="field"><label>'.__('Main text font size:').' '. 
     250'<p class="field"><label for="body_txt_s">'.__('Main text font size:').' '. 
    251251form::field('body_txt_s',7,7,$blowup_user['body_txt_s']).'</label></p>'. 
    252252 
    253 '<p class="field"><label>'.__('Main text color:').' '. 
     253'<p class="field"><label for="body_txt_c">'.__('Main text color:').' '. 
    254254form::field('body_txt_c',7,7,$blowup_user['body_txt_c'],'colorpicker').'</label></p>'. 
    255255 
    256 '<p class="field"><label>'.__('Text line height:').' '. 
     256'<p class="field"><label for="body_line_height">'.__('Text line height:').' '. 
    257257form::field('body_line_height',7,7,$blowup_user['body_line_height']).'</label></p>'. 
    258258'</fieldset>'. 
    259259 
    260260'<fieldset><legend>'.__('Links').'</legend>'. 
    261 '<p class="field"><label>'.__('Links color:').' '. 
     261'<p class="field"><label for="body_link_c">'.__('Links color:').' '. 
    262262form::field('body_link_c',7,7,$blowup_user['body_link_c'],'colorpicker').'</label></p>'. 
    263263 
    264 '<p class="field"><label>'.__('Visited links color:').' '. 
     264'<p class="field"><label for="body_link_v_c">'.__('Visited links color:').' '. 
    265265form::field('body_link_v_c',7,7,$blowup_user['body_link_v_c'],'colorpicker').'</label></p>'. 
    266266 
    267 '<p class="field"><label>'.__('Focus links color:').' '. 
     267'<p class="field"><label for="body_link_f_c">'.__('Focus links color:').' '. 
    268268form::field('body_link_f_c',7,7,$blowup_user['body_link_f_c'],'colorpicker').'</label></p>'. 
    269269'</fieldset>'. 
     
    273273if ($can_write_images) { 
    274274     echo 
    275      '<p class="field"><label>'.__('Prelude color:').' '. 
     275     '<p class="field"><label for="prelude_c">'.__('Prelude color:').' '. 
    276276     form::field('prelude_c',7,7,$blowup_user['prelude_c'],'colorpicker').'</label></p>'; 
    277277} 
    278278 
    279279echo 
    280 '<p class="field"><label>'.__('Hide main title').' '. 
     280'<p class="field"><label for="blog_title_hide">'.__('Hide main title').' '. 
    281281form::checkbox('blog_title_hide',1,$blowup_user['blog_title_hide']).'</label></p>'. 
    282282 
    283 '<p class="field"><label>'.__('Main title font:').' '. 
     283'<p class="field"><label for="blog_title_f">'.__('Main title font:').' '. 
    284284form::combo('blog_title_f',blowupConfig::fontsList(),$blowup_user['blog_title_f']).'</label></p>'. 
    285285 
    286 '<p class="field"><label>'.__('Main title font size:').' '. 
     286'<p class="field"><label for="blog_title_s">'.__('Main title font size:').' '. 
    287287form::field('blog_title_s',7,7,$blowup_user['blog_title_s']).'</label></p>'. 
    288288 
    289 '<p class="field"><label>'.__('Main title color:').' '. 
     289'<p class="field"><label for="blog_title_c">'.__('Main title color:').' '. 
    290290form::field('blog_title_c',7,7,$blowup_user['blog_title_c'],'colorpicker').'</label></p>'. 
    291291 
    292 '<p class="field"><label>'.__('Main title alignment:').' '. 
     292'<p class="field"><label for="blog_title_a">'.__('Main title alignment:').' '. 
    293293form::combo('blog_title_a',array(__('center')=>'center',__('left')=>'left',__('right')=>'right'),$blowup_user['blog_title_a']).'</label></p>'. 
    294294 
    295 '<p class="field"><label>'.__('Main title position (x:y)').' '. 
     295'<p class="field"><label for="blog_title_p">'.__('Main title position (x:y)').' '. 
    296296form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</label></p>'. 
    297297'</fieldset>'; 
     
    306306     echo 
    307307     '<fieldset><legend>'.__('Top image').'</legend>'. 
    308      '<p class="field"><label>'.__('Top image'). 
     308     '<p class="field"><label for="top_image">'.__('Top image'). 
    309309     form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</label></p>'. 
    310310     '<p>'.__('Choose "Custom..." to upload your own image.').'</p>'. 
    311311      
    312      '<p id="uploader"><label>'.__('Add your image:'). 
     312     '<p id="uploader"><label for="upfile">'.__('Add your image:'). 
    313313     ' ('.sprintf(__('JPEG or PNG file, 800 pixels wide, maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'. 
    314      '<input type="file" name="upfile" size="35" />'. 
     314     '<input type="file" name="upfile" id="upfile" size="35" />'. 
    315315     '</label></p>'. 
    316316      
     
    324324echo 
    325325'<fieldset><legend>'.__('Sidebar').'</legend>'. 
    326 '<p class="field"><label>'.__('Sidebar position:').' '. 
     326'<p class="field"><label for="sidebar_position">'.__('Sidebar position:').' '. 
    327327form::combo('sidebar_position',array(__('right')=>'right',__('left')=>'left'),$blowup_user['sidebar_position']).'</label></p>'. 
    328328 
    329 '<p class="field"><label>'.__('Sidebar text font:').' '. 
     329'<p class="field"><label for="sidebar_text_f">'.__('Sidebar text font:').' '. 
    330330form::combo('sidebar_text_f',blowupConfig::fontsList(),$blowup_user['sidebar_text_f']).'</label></p>'. 
    331331 
    332 '<p class="field"><label>'.__('Sidebar text font size:').' '. 
     332'<p class="field"><label for="sidebar_text_s">'.__('Sidebar text font size:').' '. 
    333333form::field('sidebar_text_s',7,7,$blowup_user['sidebar_text_s']).'</label></p>'. 
    334334 
    335 '<p class="field"><label>'.__('Sidebar text color:').' '. 
     335'<p class="field"><label for="sidebar_text_c">'.__('Sidebar text color:').' '. 
    336336form::field('sidebar_text_c',7,7,$blowup_user['sidebar_text_c'],'colorpicker').'</label></p>'. 
    337337 
    338 '<p class="field"><label>'.__('Sidebar titles font:').' '. 
     338'<p class="field"><label for="sidebar_title_f">'.__('Sidebar titles font:').' '. 
    339339form::combo('sidebar_title_f',blowupConfig::fontsList(),$blowup_user['sidebar_title_f']).'</label></p>'. 
    340340 
    341 '<p class="field"><label>'.__('Sidebar titles font size:').' '. 
     341'<p class="field"><label for="sidebar_title_s">'.__('Sidebar titles font size:').' '. 
    342342form::field('sidebar_title_s',7,7,$blowup_user['sidebar_title_s']).'</label></p>'. 
    343343 
    344 '<p class="field"><label>'.__('Sidebar titles color:').' '. 
     344'<p class="field"><label for="sidebar_title_c">'.__('Sidebar titles color:').' '. 
    345345form::field('sidebar_title_c',7,7,$blowup_user['sidebar_title_c'],'colorpicker').'</label></p>'. 
    346346 
    347 '<p class="field"><label>'.__('Sidebar 2nd level titles font:').' '. 
     347'<p class="field"><label for="sidebar_title2_f">'.__('Sidebar 2nd level titles font:').' '. 
    348348form::combo('sidebar_title2_f',blowupConfig::fontsList(),$blowup_user['sidebar_title2_f']).'</label></p>'. 
    349349 
    350 '<p class="field"><label>'.__('Sidebar 2nd level titles font size:').' '. 
     350'<p class="field"><label for="sidebar_title2_s">'.__('Sidebar 2nd level titles font size:').' '. 
    351351form::field('sidebar_title2_s',7,7,$blowup_user['sidebar_title2_s']).'</label></p>'. 
    352352 
    353 '<p class="field"><label>'.__('Sidebar 2nd level titles color:').' '. 
     353'<p class="field"><label for="sidebar_title2_c">'.__('Sidebar 2nd level titles color:').' '. 
    354354form::field('sidebar_title2_c',7,7,$blowup_user['sidebar_title2_c'],'colorpicker').'</label></p>'. 
    355355 
    356 '<p class="field"><label>'.__('Sidebar lines color:').' '. 
     356'<p class="field"><label for="sidebar_line_c">'.__('Sidebar lines color:').' '. 
    357357form::field('sidebar_line_c',7,7,$blowup_user['sidebar_line_c'],'colorpicker').'</label></p>'. 
    358358 
    359 '<p class="field"><label>'.__('Sidebar links color:').' '. 
     359'<p class="field"><label for="sidebar_link_c">'.__('Sidebar links color:').' '. 
    360360form::field('sidebar_link_c',7,7,$blowup_user['sidebar_link_c'],'colorpicker').'</label></p>'. 
    361361 
    362 '<p class="field"><label>'.__('Sidebar visited links color:').' '. 
     362'<p class="field"><label for="sidebar_link_v_c">'.__('Sidebar visited links color:').' '. 
    363363form::field('sidebar_link_v_c',7,7,$blowup_user['sidebar_link_v_c'],'colorpicker').'</label></p>'. 
    364364 
    365 '<p class="field"><label>'.__('Sidebar focus links color:').' '. 
     365'<p class="field"><label for="sidebar_link_f_c">'.__('Sidebar focus links color:').' '. 
    366366form::field('sidebar_link_f_c',7,7,$blowup_user['sidebar_link_f_c'],'colorpicker').'</label></p>'. 
    367367'</fieldset>'. 
    368368 
    369369'<fieldset><legend>'.__('Entries').'</legend>'. 
    370 '<p class="field"><label>'.__('Date title font:').' '. 
     370'<p class="field"><label for="date_title_f">'.__('Date title font:').' '. 
    371371form::combo('date_title_f',blowupConfig::fontsList(),$blowup_user['date_title_f']).'</label></p>'. 
    372372 
    373 '<p class="field"><label>'.__('Date title font size:').' '. 
     373'<p class="field"><label for="date_title_s">'.__('Date title font size:').' '. 
    374374form::field('date_title_s',7,7,$blowup_user['date_title_s']).'</label></p>'. 
    375375 
    376 '<p class="field"><label>'.__('Date title color:').' '. 
     376'<p class="field"><label for="date_title_c">'.__('Date title color:').' '. 
    377377form::field('date_title_c',7,7,$blowup_user['date_title_c'],'colorpicker').'</label></p>'. 
    378378 
    379 '<p class="field"><label>'.__('Entry title font:').' '. 
     379'<p class="field"><label for="post_title_f">'.__('Entry title font:').' '. 
    380380form::combo('post_title_f',blowupConfig::fontsList(),$blowup_user['post_title_f']).'</label></p>'. 
    381381 
    382 '<p class="field"><label>'.__('Entry title font size:').' '. 
     382'<p class="field"><label for="post_title_s">'.__('Entry title font size:').' '. 
    383383form::field('post_title_s',7,7,$blowup_user['post_title_s']).'</label></p>'. 
    384384 
    385 '<p class="field"><label>'.__('Entry title color:').' '. 
     385'<p class="field"><label for="post_title_c">'.__('Entry title color:').' '. 
    386386form::field('post_title_c',7,7,$blowup_user['post_title_c'],'colorpicker').'</label></p>'; 
    387387 
    388388if ($can_write_images) { 
    389389     echo 
    390      '<p class="field"><label>'.__('Comment background color:').' '. 
     390     '<p class="field"><label for="post_comment_bg_c">'.__('Comment background color:').' '. 
    391391     form::field('post_comment_bg_c',7,7,$blowup_user['post_comment_bg_c'],'colorpicker').'</label></p>'; 
    392392} 
    393393 
    394394echo 
    395 '<p class="field"><label>'.__('Comment text color:').' '. 
     395'<p class="field"><label for="post_comment_c">'.__('Comment text color:').' '. 
    396396form::field('post_comment_c',7,7,$blowup_user['post_comment_c'],'colorpicker').'</label></p>'; 
    397397 
    398398if ($can_write_images) { 
    399399     echo 
    400      '<p class="field"><label>'.__('My comment background color:').' '. 
     400     '<p class="field"><label for="post_commentmy_bg_c">'.__('My comment background color:').' '. 
    401401     form::field('post_commentmy_bg_c',7,7,$blowup_user['post_commentmy_bg_c'],'colorpicker').'</label></p>'; 
    402402} 
    403403 
    404404echo 
    405 '<p class="field"><label>'.__('My comment text color:').' '. 
     405'<p class="field"><label for="post_commentmy_c">'.__('My comment text color:').' '. 
    406406form::field('post_commentmy_c',7,7,$blowup_user['post_commentmy_c'],'colorpicker').'</label></p>'. 
    407407'</fieldset>'. 
    408408 
    409409'<fieldset><legend>'.__('Footer').'</legend>'. 
    410 '<p class="field"><label>'.__('Footer font:').' '. 
     410'<p class="field"><label for="footer_f">'.__('Footer font:').' '. 
    411411form::combo('footer_f',blowupConfig::fontsList(),$blowup_user['footer_f']).'</label></p>'. 
    412412 
    413 '<p class="field"><label>'.__('Footer font size:').' '. 
     413'<p class="field"><label for="footer_s">'.__('Footer font size:').' '. 
    414414form::field('footer_s',7,7,$blowup_user['footer_s']).'</label></p>'. 
    415415 
    416 '<p class="field"><label>'.__('Footer color:').' '. 
     416'<p class="field"><label for="footer_c">'.__('Footer color:').' '. 
    417417form::field('footer_c',7,7,$blowup_user['footer_c'],'colorpicker').'</label></p>'. 
    418418 
    419 '<p class="field"><label>'.__('Footer links color:').' '. 
     419'<p class="field"><label for="footer_l_c">'.__('Footer links color:').' '. 
    420420form::field('footer_l_c',7,7,$blowup_user['footer_l_c'],'colorpicker').'</label></p>'. 
    421421 
    422 '<p class="field"><label>'.__('Footer background color:').' '. 
     422'<p class="field"><label for="footer_bg_c">'.__('Footer background color:').' '. 
    423423form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</label></p>'. 
    424424'</fieldset>'; 
     
    438438'<h3 id="bu_export">'.__('Configuration import / export').'</h3><fieldset>'. 
    439439'<p>'.__('You can share your configuration using the following code. To apply a configuration, paste the code, click on "Apply code" and save.').'</p>'. 
    440 '<p>'.form::textarea('export_code',72,5,implode('; ',$tmp_array),'maximal').'</p>'. 
     440'<p>'.form::textarea('export_code',72,5,implode('; ',$tmp_array),'maximal','',false,'title="'.__('Copy this code:').'"').'</p>'. 
    441441'</fieldset>'; 
    442442 
Note: See TracChangeset for help on using the changeset viewer.

Sites map