| Methods Summary | ||
|---|---|---|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
get_settings( )
Get blog settings, load and saves default settings if needed. Can be filterred using
`<?php add_filter('eventpost_getsettings', 'some_function'); ?>`
actionfilter |
|
public
|
||
public
|
#
get_maps( )
Parse the maps.json file. Custom maps can be added by using the `eventpost_getsettings` filter like the following example:
```
<?php
add_filter('eventpost_getsettings', 'map_function');
function map_function($maps){
array_push($maps, array(
'name'=>'Myt custom map',
'id'=>'custom_map',
'urls'=>array(
'http://a.customurl.org/{z}/{x}/{y}.png',
'http://b.customurl.org/{z}/{x}/{y}.png',
'http://c.customurl.org/{z}/{x}/{y}.png',
)
));
return $maps;
}
?>
```
filter |
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
get_single( \WP_Post $post = NULL, string $class = '', $context = '' )
Generate, return or output date event datas
filter |
|
public
|
#
get_singledate( \WP_Post $post = NULL, string $class = '', $context = '' )
Displays dates of a gieven post
|
|
public
|
#
get_singlecat( \WP_Post $post = NULL, string $class = '', $context = '' )
Displays coloured terms of a given post
|
|
public
|
#
get_singleloc( \WP_Post $post = NULL, string $class = '', $context = '' )
Displays location of a given post
|
|
public
|
#
display_single( string $content )
Uses `the_content` filter to add event details before or after the content of the current post
|
|
public
|
#
print_single( \WP_Post $post = NULL )
Outputs events details (dates, geoloc, terms) of given post
echoes |
|
public
|
||
public
|
#
list_events( array $atts , string $id = 'event_list', string $context = '' )
Return an HTML list of events
filterfilterfilterfilter |
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
display_caldate( string $date , string $cat = '', bool $display = false, $colored = true, $thumbnail = '', $title = '' )
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
#
columns_content( string $column_name , int $post_id )
echoes content of a row in a given column
action |
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
| Constants Summary | ||
|---|---|---|
public
string
|
META_START
|
#
'event_begin'
|
public
string
|
META_END
|
#
'event_end'
|
public
string
|
META_COLOR
|
#
'event_color'
|
public
string
|
META_ADD
|
#
'geo_address'
|
public
string
|
META_LAT
|
#
'geo_latitude'
|
public
string
|
META_LONG
|
#
'geo_longitude'
|
| Properties Summary | ||
|---|---|---|
public
|
$list_id
|
#
NULL
|
public
|
$NomDuMois
|
#
NULL
|
public
|
$Week
|
#
NULL
|
public
|
$settings
|
#
NULL
|
public
|
$dateformat
|
#
NULL
|
public
|
$version
|
#
'4.5'
|
public
|
$map_interactions
|
#
NULL
|
public
|
$quick_edit_fields
|
#
NULL
|
public
|
$Shortcodes
|
#
NULL
|