Dotclear


Ignore:
Timestamp:
08/21/13 01:55:22 (11 years ago)
Author:
Denis Jean-Christian <contact@…>
Branch:
2.5
Message:

Fix html validation on blogroll plugin, fixes #1572

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/blogroll/index.php

    r1179 r1504  
    202202 
    203203<div class="multi-part" title="<?php echo __('Blogroll'); ?>"> 
     204 
     205<?php if (!$rs->isEmpty()) { ?> 
     206 
    204207<form action="plugin.php" method="post" id="links-form"> 
    205208<table class="maximal dragable"> 
     
    245248</tbody> 
    246249</table> 
    247 <?php 
    248      if (!$rs->isEmpty()) { 
    249           echo 
    250           '<div class="two-cols">'. 
    251           '<p class="col">'.form::hidden('links_order',''). 
    252           form::hidden(array('p'),'blogroll'). 
    253           $core->formNonce(). 
    254           '<input type="submit" name="saveorder" value="'.__('Save order').'" /></p>'. 
    255            
    256           '<p class="col right"><input type="submit" class="delete" name="removeaction"'. 
    257           ' value="'.__('Delete selected links').'" '. 
    258           'onclick="return window.confirm(\''.html::escapeJS( 
    259                __('Are you sure you want to delete selected links?')).'\');" /></p>'. 
    260           '</div>'; 
    261      } else { 
    262           echo 
    263           '<div><p>'.__('The link list is empty.').'</p></div>'; 
    264      } 
    265 ?> 
     250 
     251<div class="two-cols"> 
     252<p class="col"> 
     253<?php 
     254     echo  
     255     form::hidden('links_order',''). 
     256     form::hidden(array('p'),'blogroll'). 
     257     $core->formNonce(); 
     258?> 
     259<input type="submit" name="saveorder" value="<?php echo __('Save order'); ?>" /></p> 
     260<p class="col right"><input type="submit" class="delete" name="removeaction" 
     261      value="<?php echo __('Delete selected links'); ?>"  
     262      onclick="return window.confirm(' 
     263      <?php echo html::escapeJS(__('Are you sure you want to delete selected links?')); ?>');" /></p> 
     264</div> 
    266265</form> 
     266 
     267<?php 
     268} else { 
     269     echo '<div><p>'.__('The link list is empty.').'</p></div>'; 
     270} 
     271?> 
     272 
    267273</div> 
    268274 
Note: See TracChangeset for help on using the changeset viewer.

Sites map