Détaile module à terminer
This commit is contained in:
parent
8923dd9a2d
commit
316faabcbc
@ -28,7 +28,9 @@ class addon extends common {
|
||||
'upload' => self::GROUP_ADMIN,
|
||||
'storeDownload'=> self::GROUP_ADMIN
|
||||
];
|
||||
|
||||
const URL_STORE = 'http://zwiicms.fr/?modules/list';
|
||||
const BASEURL_STORE = 'http://zwiicms.fr/';
|
||||
|
||||
// Gestion des modules
|
||||
public static $modInstal = [];
|
||||
@ -245,7 +247,7 @@ class addon extends common {
|
||||
$ico = template::ico('update');
|
||||
}
|
||||
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'],
|
||||
mb_detect_encoding(strftime('%d %B %Y', $store[$key]['fileDate']), 'UTF-8', true)
|
||||
? strftime('%d %B %Y', $store[$key]['fileDate'])
|
||||
@ -280,8 +282,9 @@ class addon extends common {
|
||||
: utf8_encode(strftime('%d %B %Y', self::$storeItem ['fileDate']));
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
'title' =>self::$storeItem['title'],
|
||||
'view' => 'item'
|
||||
'title' =>'Module ' . self::$storeItem['title'],
|
||||
'view' => 'item',
|
||||
'display' => self::DISPLAY_LAYOUT_LIGHT
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,3 @@
|
||||
* @link http://zwiicms.fr/
|
||||
*/
|
||||
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
@ -1,36 +1,41 @@
|
||||
<div class="row">
|
||||
<div class="col2">
|
||||
<?php echo template::button('configItemBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl() . 'addon/store',
|
||||
'ico' => 'left',
|
||||
'value' => 'Retour'
|
||||
]); ?>
|
||||
<div class="col9">
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo $module::$storeItem['content']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col9">
|
||||
<div class="row">
|
||||
<div class="col9">
|
||||
<?php echo $module::$storeItem['content'];?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php
|
||||
echo '<img class="downloadItemPicture" src="' . $module::BASEURL_STORE . 'site/file/source/' . $module::$storeItem['picture'] .
|
||||
'" alt="' . $module::$storeItem['picture'] . '">';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<img src="https://www.zwiicms.fr/site/file/source/<?php echo $module::$storeItem['picture'];?>"/>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12 textAlignCenter">
|
||||
<?php echo 'Version n°' . $module::$storeItem['fileVersion']; ?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
Version <?php echo $module::$storeItem['fileVersion'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12 textAlignCenter">
|
||||
<?php echo ' du ' . $module::$storeItem['fileDate']; ?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
Publié le <?php echo $module::$storeItem['fileDate'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12 textAlignCenter">
|
||||
<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>
|
Loading…
Reference in New Issue
Block a user