Changeset 2576:93f2aabd0607 for plugins/simpleMenu
- Timestamp:
- 11/21/13 11:02:04 (12 years ago)
- Branch:
- 2.6
- Location:
- plugins/simpleMenu
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/simpleMenu/_define.php
r2566 r2576 16 16 /* Description*/ "Simple menu for Dotclear", 17 17 /* Author */ "Franck Paul", 18 /* Version */ '1.1. 1',18 /* Version */ '1.1.2', 19 19 array( 20 20 'permissions' => 'admin', -
plugins/simpleMenu/_public.php
r2566 r2576 96 96 if ($m['descr']) { 97 97 if ($description == 'title') { 98 $title = ' title="'. __($m['descr']).'"';98 $title = ' title="'.html::escapeHTML(__($m['descr'])).'"'; 99 99 } else { 100 $span = ' <span>'. __($m['descr']).'</span>';100 $span = ' <span>'.html::escapeHTML(__($m['descr'])).'</span>'; 101 101 } 102 102 } 103 $label = html::escapeHTML(__($m['label'])); 103 104 104 105 $item = new ArrayObject(array( 105 106 'url' => $href, // URL 106 'label' => __($m['label']),// <a> link label107 'label' => $label, // <a> link label 107 108 'title' => $title, // <a> link title (optional) 108 109 'span' => $span, // description (will be displayed after <a> link) -
plugins/simpleMenu/index.php
r2455 r2576 497 497 if (!$step) { 498 498 $count++; 499 echo '<td class="handle minimal">'.form::field(array('order['.$i.']'),2,3,$count,'position','',false,'title="'.sprintf(__('position of %s'),__($m['label'])).'"'). 499 echo '<td class="handle minimal">'. 500 form::field(array('order['.$i.']'),2,3,$count,'position','',false,'title="'.sprintf(__('position of %s'),html::escapeHTML(__($m['label']))).'"'). 500 501 form::hidden(array('dynorder[]','dynorder-'.$i),$i).'</td>'; 501 502 echo '<td class="minimal">'.form::checkbox(array('items_selected[]','ims-'.$i),$i).'</td>'; 502 echo '<td class="nowrap" scope="row">'.form::field(array('items_label[]','iml-'.$i),'',255, __($m['label'])).'</td>';503 echo '<td class="nowrap">'.form::field(array('items_descr[]','imd-'.$i),'30',255, __($m['descr'])).'</td>';504 echo '<td class="nowrap">'.form::field(array('items_url[]','imu-'.$i),'30',255, $m['url']).'</td>';503 echo '<td class="nowrap" scope="row">'.form::field(array('items_label[]','iml-'.$i),'',255,html::escapeHTML(__($m['label']))).'</td>'; 504 echo '<td class="nowrap">'.form::field(array('items_descr[]','imd-'.$i),'30',255,html::escapeHTML(__($m['descr']))).'</td>'; 505 echo '<td class="nowrap">'.form::field(array('items_url[]','imu-'.$i),'30',255,html::escapeHTML($m['url'])).'</td>'; 505 506 } else { 506 echo '<td class="nowrap" scope="row">'. __($m['label']).'</td>';507 echo '<td class="nowrap">'. __($m['descr']).'</td>';508 echo '<td class="nowrap">'. $m['url'].'</td>';507 echo '<td class="nowrap" scope="row">'.html::escapeHTML(__($m['label'])).'</td>'; 508 echo '<td class="nowrap">'.html::escapeHTML(__($m['descr'])).'</td>'; 509 echo '<td class="nowrap">'.html::escapeHTML($m['url']).'</td>'; 509 510 } 510 511 echo '</tr>';
Note: See TracChangeset
for help on using the changeset viewer.