Overview

Namespaces

  • EventPost
  • None

Classes

  • EventPost
  • EventPost_Cal
  • EventPost_List
  • EventPost_Map
  • EventPost_Search
  • EventPost_Shortcodes
  • EventPostChild
  • EventPostMU
  • EventPostWeather

Functions

  • event_post_format_color
  • event_post_get_all_terms
  • eventdetails_block_init
  • EventPost
  • eventpost_list_block_init
  • eventpost_timeline_block_init
  • eventscalendar_block_init
  • eventsmap_block_init
  • get_the_date_end
  • get_the_date_start
  • get_the_dates
  • get_the_location
  • the_date_end
  • the_date_start
  • the_dates
  • the_location
  • Overview
  • Namespace
  • Class

Class EventPost_Shortcodes

Implements all shortcodes features

Package: event-post
Located at inc/shortcodes.php
Methods summary
public
# __construct( )
public
# init( )

Call functions when WP is ready

Call functions when WP is ready

public string
# shortcode_single( array $atts )

shortcode_single

shortcode_single

Parameters

$atts

Returns

string

Filter

: eventpost_params
public string
# shortcode_term( array $atts )

Parameters

$atts

Returns

string
public
# shortcode_cat( $_atts )
public string
# shortcode_list( array $_atts )

Shortcode to display a list of events

Shortcode to display a list of events

Query parameters

  • nb=5 (number of post, -1 is all, default: 5)
  • future=1 (boolean, retreive, or not, events in the future, default = 1)
  • past=0 (boolean, retreive, or not, events in the past, default = 0)
  • cat='' (string, select posts only from the selected category, default=null, for all categories)
  • tag='' (string, select posts only from the selected tag, default=null, for all tags)
  • geo=0 (boolean, retreives or not, only events which have geolocation informations, default=0)
  • order="ASC" (string (can be "ASC" or "DESC")
  • orderby="meta_value" (string (if set to "meta_value" events are sorted by event date, possible values are native posts fileds : "post_title","post_date" etc...)

Display parameters

  • thumbnail="" * (Bool, default:false, used to display posts thumbnails)*
  • thumbnail_size="" * (String, default:"thmbnail", can be set to any existing size : "medium","large","full" etc...)*
  • excerpt="" * (Bool, default:false, used to display posts excerpts)*
  • style="" * (String, add some inline CSS to the list wrapper)*
  • type=div (string, possible values are : div, ul, ol default=div)
  • title='' (string, hidden if no events is found)
  • before_title="<h3>" (string (default <h3>)
  • after_title="</h3>" (string (default </h3>)
  • container_schema="" (string html schema to display list)
  • item_schema="" (string html schema to display item)

Parameters

$_atts

Returns

string

Filter

eventpost_params
public string
# shortcode_timeline( array $_atts )

Shortcode to display a list of events

Shortcode to display a list of events

Query parameters

  • nb=5 (number of post, -1 is all, default: 5)
  • future=1 (boolean, retreive, or not, events in the future, default = 1)
  • past=0 (boolean, retreive, or not, events in the past, default = 0)
  • cat='' (string, select posts only from the selected category, default=null, for all categories)
  • tag='' (string, select posts only from the selected tag, default=null, for all tags)
  • geo=0 (boolean, retreives or not, only events which have geolocation informations, default=0)

Display parameters

  • excerpt="" * (Bool, default:false, used to display posts excerpts)*
  • style="" * (String, add some inline CSS to the list wrapper)*
  • type=div (string, possible values are : div, ul, ol default=div)
  • title='' (string, hidden if no events is found)
  • before_title="<h3>" (string (default <h3>)
  • after_title="</h3>" (string (default </h3>)
  • container_schema="" (string html schema to display list)
  • item_schema="" (string html schema to display item)

Parameters

$_atts

Returns

string

Filter

eventpost_params
public string
# shortcode_map( array $_atts )

Shortcode to display a map of events

Shortcode to display a map of events

Parameters

$_atts

Returns

string

Filter

eventpost_params
public string
# shortcode_cal( array $_atts )

Shortcode to display a calendar of events

Shortcode to display a calendar of events

Parameters

$_atts

Returns

string

Filter

eventpost_params
public type
# shortcode_search( type $_atts )

Parameters

$_atts

Returns

type
Properties summary
public $EP
#
API documentation generated by ApiGen