Détaile module à terminer

This commit is contained in:
fredtempez 2021-03-26 15:17:08 +01:00
parent 8923dd9a2d
commit 316faabcbc
3 changed files with 38 additions and 34 deletions

View File

@ -28,7 +28,9 @@ class addon extends common {
'upload' => self::GROUP_ADMIN, 'upload' => self::GROUP_ADMIN,
'storeDownload'=> self::GROUP_ADMIN 'storeDownload'=> self::GROUP_ADMIN
]; ];
const URL_STORE = 'http://zwiicms.fr/?modules/list'; const URL_STORE = 'http://zwiicms.fr/?modules/list';
const BASEURL_STORE = 'http://zwiicms.fr/';
// Gestion des modules // Gestion des modules
public static $modInstal = []; public static $modInstal = [];
@ -245,7 +247,7 @@ class addon extends common {
$ico = template::ico('update'); $ico = template::ico('update');
} }
self::$storeList [] = [ self::$storeList [] = [
'<a href="' . helper::baseurl() . $this->getUrl(0) . '/item/' . $key . '">'.$store[$key]['title'].'</a>', '<a href="' . helper::baseurl() . $this->getUrl(0) . '/item/' . $key . '" rel="data-lity">'.$store[$key]['title'].'</a>',
$store[$key]['fileVersion'], $store[$key]['fileVersion'],
mb_detect_encoding(strftime('%d %B %Y', $store[$key]['fileDate']), 'UTF-8', true) mb_detect_encoding(strftime('%d %B %Y', $store[$key]['fileDate']), 'UTF-8', true)
? strftime('%d %B %Y', $store[$key]['fileDate']) ? strftime('%d %B %Y', $store[$key]['fileDate'])
@ -280,8 +282,9 @@ class addon extends common {
: utf8_encode(strftime('%d %B %Y', self::$storeItem ['fileDate'])); : utf8_encode(strftime('%d %B %Y', self::$storeItem ['fileDate']));
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'title' =>self::$storeItem['title'], 'title' =>'Module ' . self::$storeItem['title'],
'view' => 'item' 'view' => 'item',
'display' => self::DISPLAY_LAYOUT_LIGHT
]); ]);
} }

View File

@ -12,7 +12,3 @@
* @link http://zwiicms.fr/ * @link http://zwiicms.fr/
*/ */
/** NE PAS EFFACER
* admin.css
*/

View File

@ -1,36 +1,41 @@
<div class="row"> <div class="row">
<div class="col2"> <div class="col9">
<?php echo template::button('configItemBack', [ <div class="row">
'class' => 'buttonGrey', <div class="col12">
'href' => helper::baseUrl() . 'addon/store', <?php echo $module::$storeItem['content']; ?>
'ico' => 'left', </div>
'value' => 'Retour' </div>
]); ?>
</div> </div>
</div> <div class="row">
<div class="row"> <div class="col12">
<div class="col9"> <?php
<div class="row"> echo '<img class="downloadItemPicture" src="' . $module::BASEURL_STORE . 'site/file/source/' . $module::$storeItem['picture'] .
<div class="col9"> '" alt="' . $module::$storeItem['picture'] . '">';
<?php echo $module::$storeItem['content'];?> ?>
</div>
</div> </div>
</div> </div>
<div class="col3"> <div class="row">
<div class="row"> <div class="col12 textAlignCenter">
<div class="col12"> <?php echo 'Version n°' . $module::$storeItem['fileVersion']; ?>
<img src="https://www.zwiicms.fr/site/file/source/<?php echo $module::$storeItem['picture'];?>"/>
</div>
</div> </div>
<div class="row"> </div>
<div class="col12"> <div class="row">
Version <?php echo $module::$storeItem['fileVersion'];?> <div class="col12 textAlignCenter">
</div> <?php echo ' du ' . $module::$storeItem['fileDate']; ?>
</div> </div>
<div class="row"> </div>
<div class="col12"> <div class="row">
Publié le <?php echo $module::$storeItem['fileDate'];?> <div class="col12 textAlignCenter">
</div> <span>Auteur :
<?php echo $module::$storeItem['fileAuthor']; ?>
</span>
</div>
</div>
<div class="row">
<div class="col12 textAlignCenter">
<span>Licence :
<?php echo $module::$storeItem['fileLicense']; ?>
</span>
</div> </div>
</div> </div>
</div> </div>