Dotclear


Ignore:
Timestamp:
08/23/13 10:41:38 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Children:
1530:18df991c4c1a, 1531:18a9e84c04e3, 1641:ae5dc7a055e1, 1885:d4803b6eba12
Parents:
1528:41b40915bb82 (diff), 1515:03b3235091cf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge 2.5 commits into default branch

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/blogroll/index.php

    r1504 r1529  
    177177 
    178178<body> 
    179 <h2><?php echo html::escapeHTML($core->blog->name); ?> &rsaquo; <span class="page-title"><?php echo __('Blogroll'); ?></span></h2> 
     179<?php 
     180     echo dcPage::breadcrumb( 
     181          array( 
     182               html::escapeHTML($core->blog->name) => '', 
     183               '<span class="page-title">'.__('Blogroll').'</span>' => '' 
     184          )); 
     185?> 
    180186 
    181187<?php 
     
    277283'<div class="multi-part clear" id="add-link" title="'.__('Add a link').'">'. 
    278284'<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:').' '. 
     285'<h3>'.__('Add a new link').'</h3>'. 
     286'<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    281287form::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:').' '. 
     288'</p>'. 
     289 
     290'<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '. 
    285291form::field('link_href',30,255,$link_href). 
    286 '</label></p>'. 
    287  
    288 '<p class="col"><label for="link_desc">'.__('Description:').' '. 
     292'</p>'. 
     293 
     294'<p class="col"><label for="link_desc">'.__('Description:').'</label> '. 
    289295form::field('link_desc',30,255,$link_desc). 
    290 '</label></p>'. 
    291  
    292 '<p class="col"><label for="link_lang">'.__('Language:').' '. 
     296'</p>'. 
     297 
     298'<p class="col"><label for="link_lang">'.__('Language:').'</label> '. 
    293299form::field('link_lang',5,5,$link_lang). 
    294 '</label></p>'. 
     300'</p>'. 
    295301'<p>'.form::hidden(array('p'),'blogroll'). 
    296302$core->formNonce(). 
    297303'<input type="submit" name="add_link" value="'.__('Save').'" /></p>'. 
    298 '</fieldset>'. 
    299304'</form>'. 
    300305'</div>'; 
     
    303308'<div class="multi-part" id="add-cat" title="'.__('Add a category').'">'. 
    304309'<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> '. 
     310'<h3>'.__('Add a new category').'</h3>'. 
     311'<p><label for="cat_title" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
     312form::field('cat_title',30,255,$cat_title).' '. 
    308313form::hidden(array('p'),'blogroll'). 
    309314$core->formNonce(). 
    310315'<input type="submit" name="add_cat" value="'.__('Save').'" /></p>'. 
    311 '</fieldset>'. 
    312316'</form>'. 
    313317'</div>'; 
     
    318322     echo 
    319323     '<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>'. 
     324     '<h3>'.__('Import links').'</h3>'. 
     325     '<p><label for="links_file" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('OPML or XBEL File:').'</label> '. 
     326     '<input type="file" id="links_file" name="links_file" /></p>'. 
    323327     '<p>'.form::hidden(array('p'),'blogroll'). 
    324328     $core->formNonce(). 
    325329     '<input type="submit" name="import_links" value="'.__('Import').'" /></p>'. 
    326      '</fieldset>'. 
    327330     '</form>'; 
    328331} 
     
    330333     echo 
    331334     '<form action="plugin.php" method="post" id="import-links-form">'. 
    332      '<fieldset><legend>'.__('Import links').'</legend>'; 
     335     '<h3>'.__('Import links').'</h3>'; 
    333336     if (empty($imported)) { 
    334337          echo '<p>'.__('Nothing to import').'</p>'; 
     
    371374     } 
    372375     echo 
    373      '</fieldset>'. 
    374376     '</form>'; 
    375377} 
  • plugins/blogroll/index.php

    r1454 r1529  
    208208 
    209209<div class="multi-part" title="<?php echo __('Blogroll'); ?>"> 
     210 
     211<?php if (!$rs->isEmpty()) { ?> 
     212 
    210213<form action="plugin.php" method="post" id="links-form"> 
    211214<table class="maximal dragable"> 
     
    251254</tbody> 
    252255</table> 
    253 <?php 
    254      if (!$rs->isEmpty()) { 
    255           echo 
    256           '<div class="two-cols">'. 
    257           '<p class="col">'.form::hidden('links_order',''). 
    258           form::hidden(array('p'),'blogroll'). 
    259           $core->formNonce(). 
    260           '<input type="submit" name="saveorder" value="'.__('Save order').'" /></p>'. 
    261            
    262           '<p class="col right"><input type="submit" class="delete" name="removeaction"'. 
    263           ' value="'.__('Delete selected links').'" '. 
    264           'onclick="return window.confirm(\''.html::escapeJS( 
    265                __('Are you sure you want to delete selected links?')).'\');" /></p>'. 
    266           '</div>'; 
    267      } else { 
    268           echo 
    269           '<div><p>'.__('The link list is empty.').'</p></div>'; 
    270      } 
    271 ?> 
     256 
     257<div class="two-cols"> 
     258<p class="col"> 
     259<?php 
     260     echo  
     261     form::hidden('links_order',''). 
     262     form::hidden(array('p'),'blogroll'). 
     263     $core->formNonce(); 
     264?> 
     265<input type="submit" name="saveorder" value="<?php echo __('Save order'); ?>" /></p> 
     266<p class="col right"><input type="submit" class="delete" name="removeaction" 
     267      value="<?php echo __('Delete selected links'); ?>"  
     268      onclick="return window.confirm(' 
     269      <?php echo html::escapeJS(__('Are you sure you want to delete selected links?')); ?>');" /></p> 
     270</div> 
    272271</form> 
     272 
     273<?php 
     274} else { 
     275     echo '<div><p>'.__('The link list is empty.').'</p></div>'; 
     276} 
     277?> 
     278 
    273279</div> 
    274280 
Note: See TracChangeset for help on using the changeset viewer.

Sites map