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 =[
'none' => 'Aucune',
'solid' => 'Tiret',
'inset' => '3D enfoncé',
'outset'=> '3D surélevé',
'ridge' => 'Relief 1',
'groove'=> 'Relief 2'
'solid' => 'Tiret'
];
// Signature de l'article
@ -252,7 +248,8 @@ class news extends common {
// Générer la feuille de CSS
$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 .= '}';

View File

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