<?php if (!defined('PLX_ROOT')) exit; ?>
<?php function shortDate($date) { $year4 = substr($date, 0, 4); $month = intval(substr($date, 4, 2)); $day = intval(substr($date, 6, 2)); echo $day.'/'.$month.'/'.$year4; } ?>
<?php $plxShow->artDate('#num_day #month #num_year(4)'); ?>
<?php shortDate($plxShow->plxMotor->plxRecord_arts->f('date')) ?>
Consultant PluXml
Ancien responsable et développeur de PluXml (2010 à 2018)
Réponses
Nativement non, ce n'est pas possible.
Mais voici comment faire:
Edite le fichier header.php de ton thème
En dessous de
<?php if (!defined('PLX_ROOT')) exit; ?>ajoute les lignes suivantes<?php function shortDate($date) { $year4 = substr($date, 0, 4); $month = intval(substr($date, 4, 2)); $day = intval(substr($date, 6, 2)); echo $day.'/'.$month.'/'.$year4; } ?>Dans les fichiers (home.php, article.php, categorie.php, tags.php, archives.php) où est affiché la date de l'article remplace<?php $plxShow->artDate('#num_day #month #num_year(4)'); ?>par<?php shortDate($plxShow->plxMotor->plxRecord_arts->f('date')) ?>C'est un peu brute comme solution, mais ça répond à ta demande.
Consultant PluXml
Ancien responsable et développeur de PluXml (2010 à 2018)
Idéalement, il faudrait qu'on puisse encoder la date avec les attribut php de la fonction date non ?