news perso css et balise sémantique article

This commit is contained in:
fredtempez 2022-03-17 12:55:04 +01:00
parent 2ef99978c4
commit d24acb3bc2
2 changed files with 39 additions and 40 deletions

View File

@ -80,11 +80,7 @@ class news extends common {
public static $borderStyle =[ public static $borderStyle =[
'none' => 'Aucune', 'none' => 'Aucune',
'solid' => 'Tiret', 'solid' => 'Tiret'
'inset' => '3D enfoncé',
'outset'=> '3D surélevé',
'ridge' => 'Relief 1',
'groove'=> 'Relief 2'
]; ];
// Signature de l'article // Signature de l'article
@ -252,7 +248,8 @@ class news extends common {
// Générer la feuille de CSS // Générer la feuille de CSS
$style = '.newsFrame {'; $style = '.newsFrame {';
$style .= 'border:' . $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT) . ';'; $style .= 'border-right:' . $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT) . ';';
$style .= 'border-left:' . $this->getInput('newsThemeBorderStyle',helper::FILTER_STRING_SHORT) . ' ' . $this->getInput('newsThemeBorderColor') . ' ' . $this->getInput('newsThemeBorderWidth',helper::FILTER_STRING_SHORT) . ';';
$style .= 'background-color:' . $this->getInput('newsThemeBackgroundColor') . ';'; $style .= 'background-color:' . $this->getInput('newsThemeBackgroundColor') . ';';
$style .= '}'; $style .= '}';

View File

@ -1,4 +1,5 @@
<?php if($module::$news): ?> <?php if($module::$news): ?>
<article>
<div class="row"> <div class="row">
<?php foreach($module::$news as $newsId => $news): ?> <?php foreach($module::$news as $newsId => $news): ?>
<div class="newsFrame col<?php echo $module::$nbrCol ;?>" > <div class="newsFrame col<?php echo $module::$nbrCol ;?>" >
@ -35,6 +36,7 @@
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
</article>
<?php echo $module::$pages; ?> <?php echo $module::$pages; ?>
<?php if ($this->getData(['module',$this->getUrl(0), 'config', 'feeds'])): ?> <?php if ($this->getData(['module',$this->getUrl(0), 'config', 'feeds'])): ?>
<div id="rssFeed"> <div id="rssFeed">