and this code for :
– add a clock before time
– translate day in french
– replace – by / in bold
– add letter spacing for day
this is the hack but it gives you an idea of what could be quite an improvement with the best code ( customise plugin in administration would be great ?? )
<!-- MODIF - Modification de la ligne pour faire prendre en compte les 2 array dans un foreach -->
<?php foreach(array_combine($dows, $dows2) as $day => $day2): ?>
<?php if( isset($wpotp_options[$day]) && !empty($wpotp_options[$day]) ): ?>
<!-- MODIF - Modification de la ligne pour espacer les lettres et prendre la variable $day2 qui est en francais -->
<dt style="letter-spacing: 3px;"><?php echo ucwords($day2); ?></dt>
<?php foreach( $wpotp_options[$day] as $slot ): ?>
<dd>
<time itemprop="openingHours" datetime="<?php echo substr(ucwords($day), 0, 2); ?> <?php echo $slot['open']; ?>-<?php echo $slot['close']; ?>">
<?php
$imghorloge = ''. get_stylesheet_directory_uri() .'/images/icon_clock.png';
if( $display == '24' ):
// MODIF - Ajout ligne Print
print '<img src="' . $imghorloge . '" alt="" style="margin-right:8px" />';
// MODIF - Remplace le tiret par une barre en gras
echo $slot['open']." <b>/</b> ".$slot['close'];
elseif( $display == '12' ):
$this_open = strtotime($slot['open']);
$this_close = strtotime($slot['close']);
// MODIF- Ajout ligne Print
print '<img src="' . $imghorloge . '" alt="" style="margin-right:8px" />';
// MODIF - Remplace le tiret par une barre en gras
echo date('h:ia', $this_open)." <b>/</b> ".date('h:ia', $this_close);
endif;
?>
</time>
</dd>
<?php endforeach; ?>
<?php elseif( $show_closed === true || $show_closed === 'true' ): ?>
<dt><?php echo ucwords($day); ?></dt>
<dd>Fermé</dd>
<?php endif; ?>
<?php endforeach; ?>
sorry for your eyes i’m not a developper ??
ty