Browse Source

Détaile module à terminer

master
fredtempez 4 months ago
parent
commit
316faabcbc
  1. 9
      core/module/addon/addon.php
  2. 4
      core/module/addon/view/item/item.css
  3. 59
      core/module/addon/view/item/item.php

9
core/module/addon/addon.php

@ -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
]);
}

4
core/module/addon/view/item/item.css

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

59
core/module/addon/view/item/item.php

@ -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…
Cancel
Save