forked from wp-plugins/all-in-one-event-calendar
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathosec_overrides.php.example
More file actions
42 lines (37 loc) · 984 Bytes
/
Copy pathosec_overrides.php.example
File metadata and controls
42 lines (37 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
Plugin Name: Osec Overrides example
Plugin URI: https://github.com/digitaldonkey/open-source-event-calendar
Description: Example how to adapt time separators.
Version: 1.0
Author: digitaldonkey
Author URI: https://github.com/digitaldonkey
License: GPL3
*/
/**
* @file
*
* This file shows you how you can change things between
* Dates and times. You may also use i18n to archive the same.
*/
add_filter(
'osec_timespan_time_html_before_start_html',
function () {
/* _x(' @ ', 'Event time separator', 'open-source-event-calendar') */
return ' um ';
}
);
add_filter(
'osec_timespan_time_html_suffix',
function () {
/* _x('', 'Event time suffix', 'open-source-event-calendar') */
return ' Uhr';
}
);
add_filter(
'osec_title_venue_separator',
function () {
/* _x(' @ ', 'Event title-location separator', 'open-source-event-calendar') */
return '— ';
}
);