Hello,
i wish i could change the display of oncoming events in the wordpress sidebar, including words in the DATE tag.
For example, the oncoming events are displayed like this :
17 avril 2011 16 h 00 min
And i wish i could have it like that :
Le 17 avril 2011 à 16 h 00 min
Is it possible to do so, i guess it’s somewhere in a template date display but i can’t find it in sidebar.php and scheduler.php.
Thank you for your help.
Ludo
Hello,
You need to modify $sidebarEvent variable in the wordpress\wp-content\plugins\event-calendar-scheduler\sidebar.php file.
Best regards,
Ilya
Hi Ilya,
this is what i get :
<?php
$sidebarHeader = '<div class="scheduler_sidebar_header"><h3>Uncoming events</h3></div>';
$sidebarEvent = '<h4 class="scheduler_sidebar_link"><a href="{*URL*}#date={*DATE_SQL*},mode=month" target="_blank">{*DATE*}</a></h4><div class="scheduler_sidebar_text">{*TEXT*}</div>';
$sidebarEvent = '<li class="scheduler_sidebar_link"><a href="{*URL*}#date={*DATE_SQL*},mode=month">{*DATE*}</a><p class="scheduler_sidebar_text">{*TEXT*}</p></li>';
?>
Could you tell me how to add something (“à” or “-” or “|” for example) between the date and the hour like in my previous example (Le 17 avril 2011 à 16 h 00 min)
Regards,
Ludo
Hello,
I am sorry, actually you need to edit another function
Go to scheduler.php file in the plugin directory and modify line
$start_date = date_i18n(get_option('date_format').' '.get_option('time_format'), $start_date);
like here (added ‘—’ character)
$start_date = date_i18n(get_option('date_format').' — '.get_option('time_format'), $start_date);
Best regards,
Ilya
Just what i needed !
Thanks for your help Ilya !