Catégoris dans le store

This commit is contained in:
Fred Tempez 2021-08-30 22:40:13 +02:00
parent 9d2ae04e88
commit 09048e97a2
3 changed files with 6 additions and 3 deletions

View File

@ -310,6 +310,7 @@ class addon extends common {
$ico = template::ico('update'); $ico = template::ico('update');
} }
self::$storeList [] = [ self::$storeList [] = [
$store[$key]['category'],
'<a href="' . self::BASEURL_STORE . self::MODULE_STORE . $key . '" target="_blank" >'.$store[$key]['title'].'</a>', '<a href="' . self::BASEURL_STORE . self::MODULE_STORE . $key . '" target="_blank" >'.$store[$key]['title'].'</a>',
$store[$key]['version'], $store[$key]['version'],
mb_detect_encoding(strftime('%d %B %Y', $store[$key]['versionDate']), 'UTF-8', true) mb_detect_encoding(strftime('%d %B %Y', $store[$key]['versionDate']), 'UTF-8', true)

View File

@ -9,7 +9,7 @@
</div> </div>
</div> </div>
<?php if($module::$storeList): ?> <?php if($module::$storeList): ?>
<?php echo template::table([4, 2, 2, 3, 1], $module::$storeList, ['Module', 'Version', 'Date', 'Pages', 'Télécharger']); ?> <?php echo template::table([2, 2, 1, 2, 2, 2, 1], $module::$storeList, ['Catégorie', 'Module', 'Version', 'Date', 'Pages', 'Télécharger']); ?>
<?php else: ?> <?php else: ?>
<?php echo template::speech('Le catalogue est vide.'); ?> <?php echo template::speech('Le catalogue est vide.'); ?>
<?php endif; ?> <?php endif; ?>

View File

@ -14,7 +14,7 @@
class download extends common { class download extends common {
const VERSION = '2.1'; const VERSION = '2.2';
const REALNAME = 'Téléchargement'; const REALNAME = 'Téléchargement';
const DELETE = true; const DELETE = true;
const UPDATE = '0.0'; const UPDATE = '0.0';
@ -1048,7 +1048,9 @@ class download extends common {
'versionDate' =>$this->getData(['module', $this->getUrl(0), 'items', $key, 'versionDate']), 'versionDate' =>$this->getData(['module', $this->getUrl(0), 'items', $key, 'versionDate']),
'author' =>$this->getData(['module', $this->getUrl(0), 'items', $key, 'author']), 'author' =>$this->getData(['module', $this->getUrl(0), 'items', $key, 'author']),
'license' => $this->getData(['module', $this->getUrl(0), 'items', $key, 'license']), 'license' => $this->getData(['module', $this->getUrl(0), 'items', $key, 'license']),
'category' => $this->getData(['module', $this->getUrl(0), 'items', $key, 'category']) 'category' => $this->getData(['module', $this->getUrl(0),'categories',
$this->getData(['module', $this->getUrl(0), 'items', $key, 'category'])
])
]; ];
} }
$this->addOutput([ $this->addOutput([