Dotclear


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

Let labels be labels, the end (I hope so).

Location:
plugins/blogroll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/blogroll/edit.php

    r1358 r1454  
    103103?> 
    104104 
    105 <?php echo '<p><a href="'.$p_url.'">'.__('Return to blogroll').'</a></p>'; ?> 
     105<?php echo '<p><a class="back" href="'.$p_url.'">'.__('Return to blogroll').'</a></p>'; ?> 
    106106 
    107107<?php 
     
    114114     echo 
    115115     '<form action="'.$p_url.'" method="post">'. 
    116      '<fieldset><legend>'.__('Edit category').'</legend>'. 
    117       
    118      '<p><label for="link_desc" class="required classic"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 
    119      form::field('link_desc',30,255,html::escapeHTML($link_desc)).'</label> '. 
     116     '<h3>'.__('Edit category').'</h3>'. 
     117      
     118     '<p><label for="link_desc" class="required classic"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
     119     form::field('link_desc',30,255,html::escapeHTML($link_desc)). 
    120120      
    121121     form::hidden('edit',1). 
     
    123123     $core->formNonce(). 
    124124     '<input type="submit" name="edit_cat" value="'.__('Save').'"/></p>'. 
    125      '</fieldset>'. 
    126125     '</form>'; 
    127126} 
     
    133132      
    134133     echo 
    135      '<form action="plugin.php" method="post">'. 
    136      '<fieldset class="two-cols"><legend>'.__('Edit link').'</legend>'. 
    137       
    138      '<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 
    139      form::field('link_title',30,255,html::escapeHTML($link_title)).'</label></p>'. 
    140       
    141      '<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').' '. 
    142      form::field('link_href',30,255,html::escapeHTML($link_href)).'</label></p>'. 
    143       
    144      '<p class="col"><label for="link_desc">'.__('Description:').' '. 
    145      form::field('link_desc',30,255,html::escapeHTML($link_desc)).'</label></p>'. 
    146       
    147      '<p class="col"><label for="link_lang">'.__('Language:').' '. 
    148      form::field('link_lang',5,5,html::escapeHTML($link_lang)).'</label></p>'. 
    149       
    150      '<p>'.form::hidden('p','blogroll'). 
    151      form::hidden('edit',1). 
    152      form::hidden('id',$id). 
    153      $core->formNonce(). 
    154      '<input type="submit" name="edit_link" value="'.__('Save').'"/></p>'. 
    155      '</fieldset>'. 
     134     '<form action="plugin.php" method="post" class="two-cols">'. 
     135 
     136     '<div class="col30 first-col">'. 
     137     '<div class="fieldset">'. 
     138     '<h3>'.__('Edit link').'</h3>'. 
     139      
     140     '<p><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
     141     form::field('link_title',30,255,html::escapeHTML($link_title)).'</p>'. 
     142      
     143     '<p><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '. 
     144     form::field('link_href',30,255,html::escapeHTML($link_href)).'</p>'. 
     145      
     146     '<p><label for="link_desc">'.__('Description:').'</label> '. 
     147     form::field('link_desc',30,255,html::escapeHTML($link_desc)).'</p>'. 
     148      
     149     '<p><label for="link_lang">'.__('Language:').'</label> '. 
     150     form::field('link_lang',5,5,html::escapeHTML($link_lang)).'</p>'. 
     151     '</div>'. 
     152     '</div>'. 
    156153      
    157154      
    158155     # XFN nightmare 
    159      '<fieldset><legend>'.__('XFN').'</legend>'. 
     156     '<div class="col70 last-col">'. 
     157     '<h3>'.__('XFN informations').'</h3>'. 
    160158     '<table class="noborder">'. 
    161159      
    162      '<tr>'. 
     160     '<tr class="line">'. 
    163161     '<th>'.__('_xfn_Me').'</th>'. 
    164162     '<td><p>'.'<label class="classic">'. 
     
    167165     '</tr>'. 
    168166      
    169      '<tr>'. 
     167     '<tr class="line">'. 
    170168     '<th>'.__('_xfn_Friendship').'</th>'. 
    171169     '<td><p>'. 
     
    180178     '</tr>'. 
    181179      
    182      '<tr>'. 
     180     '<tr class="line">'. 
    183181     '<th>'.__('_xfn_Physical').'</th>'. 
    184182     '<td><p>'. 
     
    188186     '</tr>'. 
    189187      
    190      '<tr>'. 
     188     '<tr class="line">'. 
    191189     '<th>'.__('_xfn_Professional').'</th>'. 
    192190     '<td><p>'. 
     
    198196     '</tr>'. 
    199197      
    200      '<tr>'. 
     198     '<tr class="line">'. 
    201199     '<th>'.__('_xfn_Geographical').'</th>'. 
    202200     '<td><p>'. 
     
    209207     '</tr>'. 
    210208      
    211      '<tr>'. 
     209     '<tr class="line">'. 
    212210     '<th>'.__('_xfn_Family').'</th>'. 
    213211     '<td><p>'. 
     
    226224     '</tr>'. 
    227225      
    228      '<tr>'. 
     226     '<tr class="line">'. 
    229227     '<th>'.__('_xfn_Romantic').'</th>'. 
    230228     '<td><p>'. 
     
    241239     '</table>'. 
    242240      
    243      '</fieldset>'. 
     241     '</div>'. 
     242     '<p class="clear">'.form::hidden('p','blogroll'). 
     243     form::hidden('edit',1). 
     244     form::hidden('id',$id). 
     245     $core->formNonce(). 
     246     '<input type="submit" name="edit_link" value="'.__('Save').'"/></p>'. 
    244247      
    245248     '</form>'; 
  • plugins/blogroll/index.php

    r1358 r1454  
    277277'<div class="multi-part clear" id="add-link" title="'.__('Add a link').'">'. 
    278278'<form action="plugin.php" method="post" id="add-link-form">'. 
    279 '<fieldset><legend>'.__('Add a new link').'</legend>'. 
    280 '<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 
     279'<h3>'.__('Add a new link').'</h3>'. 
     280'<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    281281form::field('link_title',30,255,$link_title). 
    282 '</label></p>'. 
    283  
    284 '<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').' '. 
     282'</p>'. 
     283 
     284'<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '. 
    285285form::field('link_href',30,255,$link_href). 
    286 '</label></p>'. 
    287  
    288 '<p class="col"><label for="link_desc">'.__('Description:').' '. 
     286'</p>'. 
     287 
     288'<p class="col"><label for="link_desc">'.__('Description:').'</label> '. 
    289289form::field('link_desc',30,255,$link_desc). 
    290 '</label></p>'. 
    291  
    292 '<p class="col"><label for="link_lang">'.__('Language:').' '. 
     290'</p>'. 
     291 
     292'<p class="col"><label for="link_lang">'.__('Language:').'</label> '. 
    293293form::field('link_lang',5,5,$link_lang). 
    294 '</label></p>'. 
     294'</p>'. 
    295295'<p>'.form::hidden(array('p'),'blogroll'). 
    296296$core->formNonce(). 
    297297'<input type="submit" name="add_link" value="'.__('Save').'" /></p>'. 
    298 '</fieldset>'. 
    299298'</form>'. 
    300299'</div>'; 
     
    303302'<div class="multi-part" id="add-cat" title="'.__('Add a category').'">'. 
    304303'<form action="plugin.php" method="post" id="add-category-form">'. 
    305 '<fieldset><legend>'.__('Add a new category').'</legend>'. 
    306 '<p><label for="cat_title" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').' '. 
    307 form::field('cat_title',30,255,$cat_title).'</label> '. 
     304'<h3>'.__('Add a new category').'</h3>'. 
     305'<p><label for="cat_title" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
     306form::field('cat_title',30,255,$cat_title).' '. 
    308307form::hidden(array('p'),'blogroll'). 
    309308$core->formNonce(). 
    310309'<input type="submit" name="add_cat" value="'.__('Save').'" /></p>'. 
    311 '</fieldset>'. 
    312310'</form>'. 
    313311'</div>'; 
     
    318316     echo 
    319317     '<form action="plugin.php" method="post" id="import-links-form" enctype="multipart/form-data">'. 
    320      '<fieldset><legend>'.__('Import links').'</legend>'. 
    321      '<p><label for="links_file" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('OPML or XBEL File:').' '. 
    322      '<input type="file" id="links_file" name="links_file" /></label></p>'. 
     318     '<h3>'.__('Import links').'</h3>'. 
     319     '<p><label for="links_file" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('OPML or XBEL File:').'</label> '. 
     320     '<input type="file" id="links_file" name="links_file" /></p>'. 
    323321     '<p>'.form::hidden(array('p'),'blogroll'). 
    324322     $core->formNonce(). 
    325323     '<input type="submit" name="import_links" value="'.__('Import').'" /></p>'. 
    326      '</fieldset>'. 
    327324     '</form>'; 
    328325} 
     
    330327     echo 
    331328     '<form action="plugin.php" method="post" id="import-links-form">'. 
    332      '<fieldset><legend>'.__('Import links').'</legend>'; 
     329     '<h3>'.__('Import links').'</h3>'; 
    333330     if (empty($imported)) { 
    334331          echo '<p>'.__('Nothing to import').'</p>'; 
     
    371368     } 
    372369     echo 
    373      '</fieldset>'. 
    374370     '</form>'; 
    375371} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map