47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('edition_retour', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl() . $this->getUrl(0),
|
|
'ico' => 'left',
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'configTextButtonBack'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
if( function_exists('datefmt_create') && function_exists('datefmt_create') && extension_loaded('intl') ){
|
|
$fmt = datefmt_create(
|
|
$this->getData(['config', 'i18n', 'langBase']),
|
|
IntlDateFormatter::FULL,
|
|
IntlDateFormatter::SHORT,
|
|
null,
|
|
IntlDateFormatter::GREGORIAN
|
|
);
|
|
$datedeb = datefmt_format($fmt, $module::$evenement['datedebut']);
|
|
$datefin = datefmt_format($fmt, $module::$evenement['datefin']);
|
|
} else {
|
|
$datedeb = date("d/m/Y - H:i",$module::$evenement['datedebut']);
|
|
$datefin = date("d/m/Y - H:i",$module::$evenement['datefin']);
|
|
}
|
|
?>
|
|
<div class="row">
|
|
<div class="col6 offset3">
|
|
<div class="block">
|
|
<h4><?php echo $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateStart']).' ';
|
|
echo $datedeb.'<br>';
|
|
echo $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateEnd']).' ';
|
|
echo $datefin;?> </h4>
|
|
<p><?php echo $module::$evenement['texte'];?></p>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|