options = EL_Options::get_instance(); $this->daterange = EL_Daterange::get_instance(); } public function show_about() { if(!current_user_can('edit_posts')) { wp_die(__('You do not have sufficient permissions to access this page.')); } echo '
'.sprintf(__('You can manage your events %1$shere%2$s','event-list'), '', '').'.
'.__('To show the events on your site you have 2 possibilities','event-list').':
'.__('The displayed events and their style can be modified with the available widget settings and the available attributes for the shortcode.','event-list').'
'.__('A list of all available shortcode attributes with their description is available below.','event-list').'
'.__('The available widget options are described in their tooltip text.','event-list').'
'.sprintf(__('For the widget it is important to know that you have to insert an URL to the linked event-list page if you enable one of the links options
(%1$s or %2$s). This is required because the widget didn“t know in which page or post the shortcode was included.','event-list'), '"'.__('Add links to the single events','event-list').'"', '"'.__('Add a link to the Event List page','event-list').'"').'
'.sprintf(__('Additionally you have to insert the correct Shortcode ID on the linked page. This ID describes which shortcode should be used on the given page or post if you have more than one.
So the standard value "1" is normally o.k., but if required you can check the ID by looking into the URL of an event link on your linked page or post.
The ID will be added at the end of the query parameter name (e.g. %1$s).','event-list'), 'http://www.your-homepage.com/?page_id=99&event_id1=11').'
'.sprintf(__('Be sure to also check the %1$sSettings page%2$s to get Event List behaving just the way you want.','event-list'), '', '').'
[event-list num_events=10 show_filterbar=false]
'.__('Below you can find a list of all supported attributes with their descriptions and available options:','event-list').'
'; $out .= $this->show_atts_table(); $out .= '| '.__('Attribute name','event-list').' | '.__('Value options','event-list').' | '.__('Default value','event-list').' | '.__('Description','event-list').' |
|---|---|---|---|
| '.$aname.' | '.$a['val'].' | '.$a['std_val'].' | '.$a['desc'].' |
'.__('For date and cat filters you can specify complex filters with the following syntax:','event-list').'
'.sprintf(__('You can use %1$s and %2$s connections to define complex filters. Additionally you can set brackets %3$s for nested queries.','event-list'), __('AND','event-list').' ( "&" )', __('OR','event-list').' ( "|" '.__('or','event-list').' "," )', '( "(" '.__('and','event-list').' ")" )').'
'.__('Examples for cat filters:','event-list').'tennis… '.sprintf(__('Show all events with category %1$s.','event-list'), '"tennis"').'
tennis,hockey… '.sprintf(__('Show all events with category %1$s or %2$s.','event-list'), '"tennis"', '"hockey"').'
tennis|(hockey&winter)… '.sprintf(__('Show all events with category %1$s and all events where category %2$s as well as %3$s is selected.','event-list'), '"tennis"', '"hockey"', '"winter"').'
'.__('For date filters you can use the following date formats:','event-list').'
'.__('For date filters you can use the following daterange formats:','event-list').'