Dotclear

Changeset 1499:fc4bc1ece727 for plugins


Ignore:
Timestamp:
08/20/13 16:47:16 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Let fieldsets be fieldsets (work in progress): blogpref, category, blogtheme, langs, media, plugins, user actions, antispam, importexport.

Location:
plugins
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/_admin.php

    r1474 r1499  
    6868          $ttl = $settings->antispam->antispam_moderation_ttl; 
    6969          echo 
    70           '<fieldset><legend>Antispam</legend>'. 
     70          '<div class="fieldset"><h4>Antispam</h4>'. 
    7171          '<p><label for="antispam_moderation_ttl" class="classic">'.__('Delete junk comments older than').' '. 
    7272          form::field('antispam_moderation_ttl', 3, 3, $ttl). 
    7373          ' '.__('days'). 
    7474          '</label></p>'. 
    75           '</fieldset>'; 
     75          '</div>'; 
    7676     } 
    7777      
  • plugins/antispam/filters/class.dc.filter.iplookup.php

    r1468 r1499  
    7676 
    7777          $res .= 
    78           '<form action="'.html::escapeURL($url).'" method="post">'. 
    79           '<fieldset><legend>' . __('IP Lookup servers') . '</legend>'. 
     78          '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 
     79          '<h3>' . __('IP Lookup servers') . '</h3>'. 
    8080          '<p><label for="bls">'.__('Add here a coma separated list of servers.').'</label>'. 
    8181          form::textarea('bls',40,3,html::escapeHTML($bls),'maximal'). 
     
    8383          '<p><input type="submit" value="'.__('Save').'" /></p>'. 
    8484          $this->core->formNonce().'</p>'. 
    85           '</fieldset>'. 
    8685          '</form>'; 
    8786 
  • plugins/blowupConfig/config.js

    r89 r1499  
    4949      
    5050     $('#theme_config').prepend(styles_combo); 
    51      $(styles_combo).wrap('<fieldset></fieldset>').before('<legend>' + dotclear.msg.predefined_styles + '</legend>').wrap('<p></p>'); 
     51     $(styles_combo).wrap('<div class="fieldset"></div>').before('<h3>' + dotclear.msg.predefined_styles + '</h3>').wrap('<p></p>'); 
    5252      
    5353     $(styles_combo).change(function() { 
     
    6262      
    6363     // Code import 
    64      var e = $('#bu_export ~ fieldset:first'); 
     64     var e = $('#bu_export_content'); 
    6565     e.toggle(); 
    6666      
  • plugins/blowupConfig/index.php

    r1454 r1499  
    235235 
    236236echo 
    237 '<p><a class="back" href="blog_theme.php">'.__('back').'</a></p>'; 
     237'<p><a class="back" href="blog_theme.php">'.__('Back to Blog themes').'</a></p>'; 
    238238 
    239239 
     
    249249echo '<form id="theme_config" action="'.$p_url.'" method="post" enctype="multipart/form-data">'; 
    250250 
    251 echo '<fieldset><legend>'.__('General').'</legend>'; 
     251echo '<div class="fieldset"><h3>'.__('Customization').'</h3>'. 
     252'<h4>'.__('General').'</h4>'; 
    252253 
    253254if ($can_write_images) { 
     
    272273'<p class="field"><label for="body_line_height">'.__('Text line height:').'</label> '. 
    273274form::field('body_line_height',7,7,$blowup_user['body_line_height']).'</p>'. 
    274 '</fieldset>'. 
    275  
    276 '<fieldset><legend>'.__('Links').'</legend>'. 
     275 
     276'<h4 class="border-top">'.__('Links').'</h4>'. 
    277277'<p class="field"><label for="body_link_c">'.__('Links color:').'</label> '. 
    278278form::field('body_link_c',7,7,$blowup_user['body_link_c'],'colorpicker').'</p>'. 
     
    283283'<p class="field"><label for="body_link_f_c">'.__('Focus links color:').'</label> '. 
    284284form::field('body_link_f_c',7,7,$blowup_user['body_link_f_c'],'colorpicker').'</p>'. 
    285 '</fieldset>'. 
    286  
    287 '<fieldset><legend>'.__('Page top').'</legend>'; 
     285 
     286'<h4 class="border-top">'.__('Page top').'</h4>'; 
    288287 
    289288if ($can_write_images) { 
     
    310309 
    311310'<p class="field"><label for="blog_title_p">'.__('Main title position (x:y)').'</label> '. 
    312 form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</p>'. 
    313 '</fieldset>'; 
     311form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</p>'; 
    314312 
    315313if ($can_write_images) { 
     
    321319 
    322320     echo 
    323      '<fieldset><legend>'.__('Top image').'</legend>'. 
     321     '<h4 class="border-top">'.__('Top image').'</h4>'. 
    324322     '<p class="field"><label for="top_image">'.__('Top image').'</label> '. 
    325323     form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</p>'. 
     
    331329     '</p>'. 
    332330 
    333      '<h3>'.__('Preview').'</h3>'. 
     331     '<h5>'.__('Preview').'</h5>'. 
    334332     '<div class="grid" style="width:800px;border:1px solid #ccc;">'. 
    335333     '<img style="display:block;" src="'.$preview_image.'" alt="" id="image-preview" />'. 
    336      '</div>'. 
    337      '</fieldset>'; 
    338 } 
    339  
    340 echo 
    341 '<fieldset><legend>'.__('Sidebar').'</legend>'. 
     334     '</div>'; 
     335} 
     336 
     337echo 
     338'<h4 class="border-top">'.__('Sidebar').'</h4>'. 
    342339'<p class="field"><label for="sidebar_position">'.__('Sidebar position:').'</label> '. 
    343340form::combo('sidebar_position',array(__('right')=>'right',__('left')=>'left'),$blowup_user['sidebar_position']).'</p>'. 
     
    383380'</fieldset>'. 
    384381 
    385 '<fieldset><legend>'.__('Entries').'</legend>'. 
     382'<h4 class="border-top">'.__('Entries').'</h4>'. 
    386383'<p class="field"><label for="date_title_f">'.__('Date title font:').'</label> '. 
    387384form::combo('date_title_f',blowupConfig::fontsList(),$blowup_user['date_title_f']).'</p>'. 
     
    421418'<p class="field"><label for="post_commentmy_c">'.__('My comment text color:').'</label> '. 
    422419form::field('post_commentmy_c',7,7,$blowup_user['post_commentmy_c'],'colorpicker').'</p>'. 
    423 '</fieldset>'. 
    424  
    425 '<fieldset><legend>'.__('Footer').'</legend>'. 
     420 
     421'<h4 class="border-top">'.__('Footer').'</h4>'. 
    426422'<p class="field"><label for="footer_f">'.__('Footer font:').'</label> '. 
    427423form::combo('footer_f',blowupConfig::fontsList(),$blowup_user['footer_f']).'</p>'. 
     
    437433 
    438434'<p class="field"><label for="footer_bg_c">'.__('Footer background color:').'</label> '. 
    439 form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</p>'. 
    440 '</fieldset>'; 
    441  
    442 echo 
    443 '<fieldset><legend>'.__('Additional CSS').'</legend>'. 
     435form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</p>'; 
     436 
     437echo 
     438'<h4 class="border-top">'.__('Additional CSS').'</h4>'. 
    444439'<p><label for="extra_css">'.__('Any additional CSS styles (must be written using the CSS syntax):').'</label> '. 
    445440form::textarea('extra_css',72,5,html::escapeHTML($blowup_user['extra_css']),'maximal','',false,'title="'.__('Additional CSS').'"'). 
    446441'</p>'. 
    447 '</fieldset>'; 
     442'</div>'; 
    448443 
    449444 
     
    461456} 
    462457echo 
    463 '<h3 id="bu_export">'.__('Configuration import / export').'</h3><fieldset>'. 
     458'<div class="fieldset">'. 
     459'<h3 id="bu_export">'.__('Configuration import / export').'</h3>'. 
     460'<div id="bu_export_content">'. 
    464461'<p>'.__('You can share your configuration using the following code. To apply a configuration, paste the code, click on "Apply code" and save.').'</p>'. 
    465462'<p>'.form::textarea('export_code',72,5,implode('; ',$tmp_array),'maximal','',false,'title="'.__('Copy this code:').'"').'</p>'. 
    466 '</fieldset>'; 
     463'</div>'. 
     464'</div>'; 
    467465 
    468466echo 
  • plugins/daInstaller/index.php

    r1454 r1499  
    298298'<!-- Search -->'. 
    299299'<div class="multi-part" id="search" title="'.__('Search').'">'. 
    300      '<fieldset><legend>'.__('Search options'). 
    301      '</legend>'. 
    302      '<form method="get" action="'.$p_url.'">'. 
     300     '<form method="get" action="'.$p_url.'" class="fieldset">'. 
     301     '<h3>'.__('Search').'</h3>'. 
    303302     '<p>'.form::hidden('p','daInstaller'). 
    304303     '<label for="q" class="classic">'.__('Query:').'&nbsp;</label> '. 
    305      form::field('q',30,255,html::escapeHTML($q)). 
    306      '<label for="mode" class="classic">'. 
     304     form::field('q',30,255,html::escapeHTML($q)).'</p>'. 
     305     '<p><label for="mode" class="classic">'. 
    307306     form::radio(array('mode','mode'),'plugins',$mode == 'plugins'). 
    308307     ' '.__('Plugins').'&nbsp;</label> '. 
    309308     '<label for="mode2" class="classic">'. 
    310      form::radio(array('mode','mode2'),'themes',$mode == 'themes') 
    311      .' '.__('Themes').'&nbsp;</label> '. 
    312      '<input type="submit" value="'.__('Search').'" /></p>'. 
    313      '</form>'. 
    314      '</fieldset>'; 
     309     form::radio(array('mode','mode2'),'themes',$mode == 'themes'). 
     310     ' '.__('Themes').'&nbsp;</label></p>'. 
     311     '<p><input type="submit" value="'.__('Search').'" /></p>'. 
     312     '</form>'; 
    315313if (!empty($q)) { 
    316314     echo '<p><strong>'.sprintf(__('%u %s found'),$s_m_nb,__($mode)).'</strong></p>'; 
  • plugins/importExport/inc/class.dc.export.flat.php

    r840 r1499  
    191191     { 
    192192          echo 
    193           '<form action="'.$this->getURL(true).'" method="post">'. 
    194           '<fieldset><legend>'.__('Single blog').'</legend>'. 
     193          '<form action="'.$this->getURL(true).'" method="post" class="fieldset">'. 
     194          '<h3>'.__('Single blog').'</h3>'. 
    195195          '<p>'.sprintf(__('This will create an export of your current blog: %s'),html::escapeHTML($this->core->blog->name)).'</p>'. 
    196196           
     
    211211          $this->core->formNonce().'</p>'. 
    212212           
    213           '</fieldset>'. 
    214213          '</form>'; 
    215214           
     
    217216          { 
    218217               echo 
    219                '<form action="'.$this->getURL(true).'" method="post">'. 
    220                '<fieldset><legend>'.__('Multiple blogs').'</legend>'. 
     218               '<form action="'.$this->getURL(true).'" method="post" class="fieldset">'. 
     219               '<h3>'.__('Multiple blogs').'</h3>'. 
    221220               '<p>'.__('This will create an export of all the content of your database.').'</p>'. 
    222221                
     
    234233               $this->core->formNonce().'</p>'. 
    235234                
    236                '</fieldset>'. 
    237235               '</form>'; 
    238236          } 
  • plugins/importExport/inc/class.dc.import.flat.php

    r1454 r1499  
    180180           
    181181          echo 
    182           '<form action="'.$this->getURL(true).'" method="post" enctype="multipart/form-data">'. 
    183           '<fieldset><legend>'.__('Single blog').'</legend>'. 
    184           '<p>'.sprintf(__('This will import a single blog backup as new content in the current blog: %s.'),html::escapeHTML($this->core->blog->name)).'</p>'. 
     182          '<form action="'.$this->getURL(true).'" method="post" enctype="multipart/form-data" class="fieldset">'. 
     183          '<h3>'.__('Single blog').'</h3>'. 
     184          '<p>'.sprintf(__('This will import a single blog backup as new content in the current blog: <strong>%s</strong>.'),html::escapeHTML($this->core->blog->name)).'</p>'. 
    185185           
    186186          '<p><label for="up_single_file" class="classic">'.__('Upload a backup file'). 
     
    203203          '<input type="submit" value="'.__('Import').'" /></p>'. 
    204204           
    205           '</fieldset>'. 
    206205          '</form>'; 
    207206           
     
    209208          { 
    210209               echo 
    211                '<form action="'.$this->getURL(true).'" method="post" enctype="multipart/form-data" id="formfull">'. 
    212                '<fieldset><legend>'.__('Multiple blogs').'</legend>'. 
     210               '<form action="'.$this->getURL(true).'" method="post" enctype="multipart/form-data" id="formfull" class="fieldset">'. 
     211               '<h3>'.__('Multiple blogs').'</h3>'. 
    213212               '<p class="warning">'.__('This will reset all the content of your database, except users.').'</p>'. 
    214213                
     
    235234               '<input type="submit" value="'.__('Import').'" /></p>'. 
    236235                
    237                '</fieldset>'. 
    238236               '</form>'; 
    239237          } 
  • plugins/importExport/locales/fr/main.po

    r841 r1499  
    223223 
    224224#: inc/class.dc.import.flat.php:184 
    225 msgid "This will import a single blog backup as new content in the current blog: %s." 
     225msgid "This will import a single blog backup as new content in the current blog: <strong>%s</strong>." 
    226226msgstr "Ceci va charger une sauvegarde de blog comme un nouveau contenu dans le blog en cours : %s." 
    227227 
Note: See TracChangeset for help on using the changeset viewer.

Sites map