forked from ZwiiCMS-Team/ZwiiCMS
news perso css et balise sémantique article
This commit is contained in:
parent
2ef99978c4
commit
d24acb3bc2
@ -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 .= '}';
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user