Browse Source

Libellés + optimisation

pull/6/head
Fred Tempez 2 years ago
parent
commit
6330400c63
  1. 3
      core/class/template.class.php
  2. 4
      module/gallery/gallery.php
  3. 2
      module/gallery/view/edit/edit.php

3
core/class/template.class.php

@ -638,8 +638,7 @@ class template {
$j = 0;
foreach($body as $tr) {
// Id de ligne pour les tableaux drag and drop
$html .= '<tr id="' . $rowsId[$j] . '">';
$j++;
$html .= '<tr id="' . $rowsId[$j++] . '">';
$i = 0;
foreach($tr as $td) {
$html .= '<td class="col' . $cols[$i++] . '">' . $td . '</td>';

4
module/gallery/gallery.php

@ -24,8 +24,8 @@ class gallery extends common {
];
public static $sort = [
'SORT_ASC' => 'Alphabétique naturel',
'SORT_DSC' => 'Alphabétique naturel inverse',
'SORT_ASC' => 'Alphabétique ',
'SORT_DSC' => 'Alphabétique inversé',
'none' => 'Aucun tri',
];

2
module/gallery/view/edit/edit.php

@ -45,6 +45,6 @@
</div>
</div>
<?php if($module::$pictures): ?>
<?php echo template::table([4, 1, 7], $module::$pictures, ['Image', 'Album','Légende']); ?>
<?php echo template::table([4, 1, 7], $module::$pictures, ['Image', 'Couverture','Légende']); ?>
<?php endif; ?>
<?php echo template::formClose(); ?>
Loading…
Cancel
Save