Version Description
(2014-10-14) = * added filterbar item "daterange" (to view all, upcoming and past) * added options to change feed name and feed description * added "Duplicate" and "Add new" button in edit event view * corrected embedding of feed (should solve some problems and increase speed) * corrected view of event details for single day events * changed standard value for feed link in html head to true
Download this release
Release Info
Developer | mibuthu |
Plugin | Event List |
Version | 0.6.8 |
Comparing to | |
See all releases |
Code changes from version 0.6.7 to 0.6.8
- admin/includes/admin-main.php +4 -3
- admin/includes/admin-new.php +4 -1
- admin/includes/admin-settings.php +7 -0
- event-list.php +2 -2
- includes/feed.php +19 -15
- includes/filterbar.php +46 -11
- includes/options.php +15 -2
- includes/sc_event-list.php +8 -6
- readme.txt +15 -6
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- screenshot-8.png +0 -0
- screenshot-9.png +0 -0
admin/includes/admin-main.php
CHANGED
@@ -101,14 +101,15 @@ class EL_Admin_Main {
|
|
101 |
|
102 |
private function show_page_header($action, $editview=false) {
|
103 |
if($editview) {
|
104 |
-
$
|
|
|
105 |
}
|
106 |
else {
|
107 |
-
$header = 'Events
|
108 |
}
|
109 |
echo '
|
110 |
<div class="wrap">
|
111 |
-
<div id="icon-edit-pages" class="icon32"><br /></div><h2>'.$header.'</h2>';
|
112 |
$this->show_message($action);
|
113 |
}
|
114 |
|
101 |
|
102 |
private function show_page_header($action, $editview=false) {
|
103 |
if($editview) {
|
104 |
+
$duplicate_link = add_query_arg(array('id'=>$_GET['id'], 'action'=>'copy'), '?page=el_admin_new');
|
105 |
+
$header = 'Edit Event <a href="'.$duplicate_link.'" class="add-new-h2">'.__('Duplicate').'</a>';
|
106 |
}
|
107 |
else {
|
108 |
+
$header = 'Events';
|
109 |
}
|
110 |
echo '
|
111 |
<div class="wrap">
|
112 |
+
<div id="icon-edit-pages" class="icon32"><br /></div><h2>'.$header.' <a href="?page=el_admin_new" class="add-new-h2">'.__('Add New').'</a></h2>';
|
113 |
$this->show_message($action);
|
114 |
}
|
115 |
|
admin/includes/admin-new.php
CHANGED
@@ -38,7 +38,10 @@ class EL_Admin_New {
|
|
38 |
wp_die(__('You do not have sufficient permissions to access this page.'));
|
39 |
}
|
40 |
$out = '<div class="wrap">
|
41 |
-
<div id="icon-edit-pages" class="icon32"><br /></div><h2>Add New Event</h2>';
|
|
|
|
|
|
|
42 |
$out .= $this->edit_event();
|
43 |
$out .= '</div>';
|
44 |
echo $out;
|
38 |
wp_die(__('You do not have sufficient permissions to access this page.'));
|
39 |
}
|
40 |
$out = '<div class="wrap">
|
41 |
+
<div id="icon-edit-pages" class="icon32"><br /></div><h2>'.__('Add New Event').'</h2>';
|
42 |
+
if($this->is_duplicate) {
|
43 |
+
$out .= '<span style="color:silver">('.sprintf(__('Duplicate of event id:%d'), $_GET['id']).')</span>';
|
44 |
+
}
|
45 |
$out .= $this->edit_event();
|
46 |
$out .= '</div>';
|
47 |
echo $out;
|
admin/includes/admin-settings.php
CHANGED
@@ -31,10 +31,17 @@ class EL_Admin_Settings {
|
|
31 |
wp_die(__('You do not have sufficient permissions to access this page.'));
|
32 |
}
|
33 |
$out = '';
|
|
|
34 |
if(isset($_GET['settings-updated'])) {
|
|
|
35 |
$out .= '<div id="message" class="updated">
|
36 |
<p><strong>'.__('Settings saved.').'</strong></p>
|
37 |
</div>';
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
// normal output
|
31 |
wp_die(__('You do not have sufficient permissions to access this page.'));
|
32 |
}
|
33 |
$out = '';
|
34 |
+
// check for changed settings
|
35 |
if(isset($_GET['settings-updated'])) {
|
36 |
+
// show "settings saved" message
|
37 |
$out .= '<div id="message" class="updated">
|
38 |
<p><strong>'.__('Settings saved.').'</strong></p>
|
39 |
</div>';
|
40 |
+
// check feed rewrite status and update it if required
|
41 |
+
if('feed' == $_GET['tab']) {
|
42 |
+
require_once(EL_PATH.'includes/feed.php');
|
43 |
+
EL_Feed::get_instance()->update_feed_rewrite_status();
|
44 |
+
}
|
45 |
}
|
46 |
|
47 |
// normal output
|
event-list.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Event List
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/event-list/
|
5 |
Description: Manage your events and show them in a list view on your site.
|
6 |
-
Version: 0.6.
|
7 |
Author: Michael Burtscher
|
8 |
Author URI: http://wordpress.org/extend/plugins/event-list/
|
9 |
License: GPLv2
|
@@ -95,7 +95,7 @@ class Event_List {
|
|
95 |
|
96 |
public function print_styles() {
|
97 |
global $post;
|
98 |
-
if(is_active_widget(null, null, 'event_list_widget') || strstr($post->post_content, '[event-list')) {
|
99 |
$this->enqueue_styles();
|
100 |
}
|
101 |
}
|
3 |
Plugin Name: Event List
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/event-list/
|
5 |
Description: Manage your events and show them in a list view on your site.
|
6 |
+
Version: 0.6.8
|
7 |
Author: Michael Burtscher
|
8 |
Author URI: http://wordpress.org/extend/plugins/event-list/
|
9 |
License: GPLv2
|
95 |
|
96 |
public function print_styles() {
|
97 |
global $post;
|
98 |
+
if(is_active_widget(null, null, 'event_list_widget') || (is_object($post) && strstr($post->post_content, '[event-list'))) {
|
99 |
$this->enqueue_styles();
|
100 |
}
|
101 |
}
|
includes/feed.php
CHANGED
@@ -36,7 +36,7 @@ class EL_Feed {
|
|
36 |
}
|
37 |
|
38 |
public function print_head_feed_link() {
|
39 |
-
echo '<link rel="alternate" type="application/rss+xml" title="'.get_bloginfo_rss('name').' »
|
40 |
}
|
41 |
|
42 |
public function print_eventlist_feed() {
|
@@ -58,7 +58,7 @@ class EL_Feed {
|
|
58 |
<title>'.get_bloginfo_rss('name').'</title>
|
59 |
<atom:link href="'.apply_filters('self_link', get_bloginfo()).'" rel="self" type="application/rss+xml" />
|
60 |
<link>'.get_bloginfo_rss('url').'</link>
|
61 |
-
<description>'
|
62 |
<lastBuildDate>'.mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false).'</lastBuildDate>
|
63 |
<language>'.get_option('rss_language').'</language>
|
64 |
<sy:updatePeriod>'.apply_filters('rss_update_period', 'hourly').'</sy:updatePeriod>
|
@@ -85,26 +85,30 @@ class EL_Feed {
|
|
85 |
}
|
86 |
|
87 |
public function add_eventlist_feed() {
|
88 |
-
|
89 |
-
add_feed('eventlist', array(&$this, 'print_eventlist_feed'));
|
90 |
-
add_action('generate_rewrite_rules', array(&$this, 'eventlist_feed_rewrite'));
|
91 |
-
$wp_rewrite->flush_rules();
|
92 |
-
}
|
93 |
-
|
94 |
-
public function eventlist_feed_rewrite() {
|
95 |
-
global $wp_rewrite;
|
96 |
-
$feed_rules = array('feed/(.+)' => 'index.php?feed='.$wp_rewrite->preg_index(1));
|
97 |
-
$wp_rewrite->rules = $feed_rules + $wp_rewrite->rules;
|
98 |
}
|
99 |
|
100 |
public function eventlist_feed_url() {
|
101 |
if(get_option('permalink_structure')) {
|
102 |
-
$feed_link = get_bloginfo('url').'/feed/
|
103 |
}
|
104 |
else {
|
105 |
-
$feed_link = get_bloginfo('url').'/?feed=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
-
return $feed_link;
|
108 |
}
|
109 |
|
110 |
private function format_date($start_date, $end_date) {
|
36 |
}
|
37 |
|
38 |
public function print_head_feed_link() {
|
39 |
+
echo '<link rel="alternate" type="application/rss+xml" title="'.get_bloginfo_rss('name').' » '.$this->options->get('el_feed_description').'" href="'.$this->eventlist_feed_url().'" />';
|
40 |
}
|
41 |
|
42 |
public function print_eventlist_feed() {
|
58 |
<title>'.get_bloginfo_rss('name').'</title>
|
59 |
<atom:link href="'.apply_filters('self_link', get_bloginfo()).'" rel="self" type="application/rss+xml" />
|
60 |
<link>'.get_bloginfo_rss('url').'</link>
|
61 |
+
<description>'.$this->options->get('el_feed_description').'</description>
|
62 |
<lastBuildDate>'.mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false).'</lastBuildDate>
|
63 |
<language>'.get_option('rss_language').'</language>
|
64 |
<sy:updatePeriod>'.apply_filters('rss_update_period', 'hourly').'</sy:updatePeriod>
|
85 |
}
|
86 |
|
87 |
public function add_eventlist_feed() {
|
88 |
+
add_feed($this->options->get('el_feed_name'), array(&$this, 'print_eventlist_feed'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
public function eventlist_feed_url() {
|
92 |
if(get_option('permalink_structure')) {
|
93 |
+
$feed_link = get_bloginfo('url').'/feed/';
|
94 |
}
|
95 |
else {
|
96 |
+
$feed_link = get_bloginfo('url').'/?feed=';
|
97 |
+
}
|
98 |
+
return $feed_link.$this->options->get('el_feed_name');
|
99 |
+
}
|
100 |
+
|
101 |
+
public function update_feed_rewrite_status() {
|
102 |
+
$feeds = array_keys(get_option('rewrite_rules'), 'index.php?&feed=$matches[1]');
|
103 |
+
$feed_rewrite_status = (0 < count(preg_grep('@[(\|]'.$this->options->get('el_feed_name').'[\|)]@', $feeds))) ? true : false;
|
104 |
+
if('1' == $this->options->get('el_enable_feed') && !$feed_rewrite_status) {
|
105 |
+
// add eventlist feed to rewrite rules
|
106 |
+
flush_rewrite_rules(false);
|
107 |
+
}
|
108 |
+
elseif('1' != $this->options->get('el_enable_feed') && $feed_rewrite_status) {
|
109 |
+
// remove eventlist feed from rewrite rules
|
110 |
+
flush_rewrite_rules(false);
|
111 |
}
|
|
|
112 |
}
|
113 |
|
114 |
private function format_date($start_date, $end_date) {
|
includes/filterbar.php
CHANGED
@@ -42,7 +42,7 @@ class EL_Filterbar {
|
|
42 |
<div class="filterbar subsubsub">';
|
43 |
// prepare filterbar-items
|
44 |
//split 3 section (left, center, right) seperated by semicolon
|
45 |
-
$sections = explode(";", $args['filterbar_items']);
|
46 |
$section_align = array('left', 'center', 'right');
|
47 |
for($i=0; $i<sizeof($sections) && $i<3; $i++) {
|
48 |
if(strlen($sections[$i]) > 0) {
|
@@ -67,6 +67,9 @@ class EL_Filterbar {
|
|
67 |
case 'years':
|
68 |
$out .= $this->show_years($url, $args, $item_array[1], 'std', $options);
|
69 |
break;
|
|
|
|
|
|
|
70 |
case 'cats':
|
71 |
$out .= $this->show_cats($url, $args, $item_array[1], 'std', $options);
|
72 |
break;
|
@@ -81,17 +84,7 @@ class EL_Filterbar {
|
|
81 |
$out .= '</div>';
|
82 |
return $out;
|
83 |
}
|
84 |
-
/* TODO: implementation of show_all and show_upcoming
|
85 |
-
private function show_all() {
|
86 |
-
$elements[] = $this->all_element();
|
87 |
-
return $this->show_hlist($elements);
|
88 |
-
}
|
89 |
|
90 |
-
private function show_upcoming() {
|
91 |
-
$elements[] = $this->upcoming_element();
|
92 |
-
return $this->show_hlist($elements);
|
93 |
-
}
|
94 |
-
*/
|
95 |
public function show_years($url, &$args, $type='hlist', $subtype='std', $options=array()) {
|
96 |
$args = $this->parse_args($args);
|
97 |
$argname = 'date'.$args['sc_id_for_url'];
|
@@ -147,6 +140,48 @@ class EL_Filterbar {
|
|
147 |
}
|
148 |
}
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
public function show_cats($url, &$args, $type='dropdown', $subtype='std', $options=array()) {
|
151 |
$args = $this->parse_args($args);
|
152 |
$argname = 'cat'.$args['sc_id_for_url'];
|
42 |
<div class="filterbar subsubsub">';
|
43 |
// prepare filterbar-items
|
44 |
//split 3 section (left, center, right) seperated by semicolon
|
45 |
+
$sections = explode(";", html_entity_decode($args['filterbar_items']));
|
46 |
$section_align = array('left', 'center', 'right');
|
47 |
for($i=0; $i<sizeof($sections) && $i<3; $i++) {
|
48 |
if(strlen($sections[$i]) > 0) {
|
67 |
case 'years':
|
68 |
$out .= $this->show_years($url, $args, $item_array[1], 'std', $options);
|
69 |
break;
|
70 |
+
case 'daterange':
|
71 |
+
$out .= $this->show_daterange($url, $args, $item_array[1], 'std', $options);
|
72 |
+
break;
|
73 |
case 'cats':
|
74 |
$out .= $this->show_cats($url, $args, $item_array[1], 'std', $options);
|
75 |
break;
|
84 |
$out .= '</div>';
|
85 |
return $out;
|
86 |
}
|
|
|
|
|
|
|
|
|
|
|
87 |
|
|
|
|
|
|
|
|
|
|
|
88 |
public function show_years($url, &$args, $type='hlist', $subtype='std', $options=array()) {
|
89 |
$args = $this->parse_args($args);
|
90 |
$argname = 'date'.$args['sc_id_for_url'];
|
140 |
}
|
141 |
}
|
142 |
|
143 |
+
public function show_daterange($url, &$args, $type='hlist', $subtype='std', $options) {
|
144 |
+
$args = $this->parse_args($args);
|
145 |
+
$argname = 'date'.$args['sc_id_for_url'];
|
146 |
+
// prepare displayed elements
|
147 |
+
if(isset($options['item_order'])) {
|
148 |
+
$items = explode('&', $options['item_order']);
|
149 |
+
}
|
150 |
+
else {
|
151 |
+
$items = array('all', 'upcoming', 'past');
|
152 |
+
}
|
153 |
+
$elements = array();
|
154 |
+
foreach($items as $item) {
|
155 |
+
// show all
|
156 |
+
switch($item) {
|
157 |
+
case 'all':
|
158 |
+
$elements[] = $this->all_element();
|
159 |
+
break;
|
160 |
+
case 'upcoming':
|
161 |
+
$elements[] = $this->upcoming_element();
|
162 |
+
break;
|
163 |
+
case 'past':
|
164 |
+
$elements[] = $this->past_element();
|
165 |
+
}
|
166 |
+
}
|
167 |
+
// set actual selection
|
168 |
+
if(is_numeric($args['event_id'])) {
|
169 |
+
$actual = null;
|
170 |
+
}
|
171 |
+
elseif('all' === $args['actual_date'] || 'upcoming' === $args['actual_date'] || 'past' === $args['actual_date']) {
|
172 |
+
$actual = $args['actual_date'];
|
173 |
+
}
|
174 |
+
else {
|
175 |
+
$actual = null;
|
176 |
+
}
|
177 |
+
if('dropdown' === $type) {
|
178 |
+
return $this->show_dropdown($elements, $argname, $subtype, $actual, $args['sc_id_for_url']);
|
179 |
+
}
|
180 |
+
else {
|
181 |
+
return $this->show_hlist($elements, $url, $argname, $actual);
|
182 |
+
}
|
183 |
+
}
|
184 |
+
|
185 |
public function show_cats($url, &$args, $type='dropdown', $subtype='std', $options=array()) {
|
186 |
$args = $this->parse_args($args);
|
187 |
$argname = 'cat'.$args['sc_id_for_url'];
|
includes/options.php
CHANGED
@@ -81,7 +81,6 @@ class EL_Options {
|
|
81 |
'type' => 'text',
|
82 |
'std_val' => '',
|
83 |
'label' => __('Date format in edit form'),
|
84 |
-
'caption' => __('Specific date format in new/edit event form'),
|
85 |
'desc' => __('This option sets a specific date format for the event date fields in the new/edit event form.<br />
|
86 |
The standard is an empty string to use the wordpress standard setting.<br />
|
87 |
All available options to specify the format can be found <a href="http://php.net/manual/en/function.date.php" target="_blank">here</a>')),
|
@@ -94,6 +93,20 @@ class EL_Options {
|
|
94 |
'desc' => __('This option activates a RSS feed for the events.<br />
|
95 |
You have to enable this option if you want to use one of the RSS feed features.')),
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
'el_feed_upcoming_only' => array('section' => 'feed',
|
98 |
'type' => 'checkbox',
|
99 |
'std_val' => '',
|
@@ -104,7 +117,7 @@ class EL_Options {
|
|
104 |
|
105 |
'el_head_feed_link' => array('section' => 'feed',
|
106 |
'type' => 'checkbox',
|
107 |
-
'std_val' => '',
|
108 |
'label' => __('Add RSS feed link in head'),
|
109 |
'caption' => __('Add RSS feed link in the html head'),
|
110 |
'desc' => __('This option adds a RSS feed in the html head for the events.<br />
|
81 |
'type' => 'text',
|
82 |
'std_val' => '',
|
83 |
'label' => __('Date format in edit form'),
|
|
|
84 |
'desc' => __('This option sets a specific date format for the event date fields in the new/edit event form.<br />
|
85 |
The standard is an empty string to use the wordpress standard setting.<br />
|
86 |
All available options to specify the format can be found <a href="http://php.net/manual/en/function.date.php" target="_blank">here</a>')),
|
93 |
'desc' => __('This option activates a RSS feed for the events.<br />
|
94 |
You have to enable this option if you want to use one of the RSS feed features.')),
|
95 |
|
96 |
+
'el_feed_name' => array('section' => 'feed',
|
97 |
+
'type' => 'text',
|
98 |
+
'std_val' => 'eventlist',
|
99 |
+
'label' => __('Feed name'),
|
100 |
+
'desc' => __('This options sets the feed name. The standard value is "eventlist".<br />
|
101 |
+
This name will be used in the feed url (e.g. <code>domain.com/?feed=eventlist</code> or <code>domain.com/feed/eventlist</code> for an installation with permalinks')),
|
102 |
+
|
103 |
+
'el_feed_description' => array('section' => 'feed',
|
104 |
+
'type' => 'text',
|
105 |
+
'std_val' => 'Eventlist Feed',
|
106 |
+
'label' => __('Feed Description'),
|
107 |
+
'desc' => __('This options sets the feed description. The standard value is "Eventlist Feed".<br />
|
108 |
+
This description will be used in the title for the feed link in the html head and for the description in the feed itself.')),
|
109 |
+
|
110 |
'el_feed_upcoming_only' => array('section' => 'feed',
|
111 |
'type' => 'checkbox',
|
112 |
'std_val' => '',
|
117 |
|
118 |
'el_head_feed_link' => array('section' => 'feed',
|
119 |
'type' => 'checkbox',
|
120 |
+
'std_val' => '1',
|
121 |
'label' => __('Add RSS feed link in head'),
|
122 |
'caption' => __('Add RSS feed link in the html head'),
|
123 |
'desc' => __('This option adds a RSS feed in the html head for the events.<br />
|
includes/sc_event-list.php
CHANGED
@@ -76,21 +76,22 @@ class SC_Event_List {
|
|
76 |
Choose "false" to always hide and "true" to always show the navigation.<br />
|
77 |
With "event_list_only" the filterbar is only visible in the event list and with "single_event_only" only for a single event'),
|
78 |
|
79 |
-
'filterbar_items' => array('val' => 'years_hlist<br />years_dropdown<br />cats_hlist<br />cats_dropdown<br />reset_link',
|
80 |
'std_val' => 'years_hlist',
|
81 |
'desc' => 'This attribute specifies the available items in the filterbar. This options are only valid if the filterbar is displayed (see show_filterbar attribute).<br /><br />
|
82 |
Find below an overview of the available filterbar items and their options:<br />
|
83 |
<small><table class="el-filterbar-table">
|
84 |
<th class="el-filterbar-item">filterbar item</th><th class="el-filterbar-desc">description</th><th class="el-filterbar-options">item options</th><th class="el-filterbar-values">option values</th><th class="el-filterbar-default">default value</th><th class="el-filterbar-desc2">option description</th></thead>
|
85 |
<tr><td>years</td><td>Show a list of all available years. Additional there are some special entries available (see item options).</td><td>show_all<br />show_upcoming<br />show_past<br />years_order</td><td>true | false<br />true | false<br />true | false<br />desc | asc</td><td>true<br />true<br />false<br />desc</td><td>Add an entry to show all events.<br />Add an entry to show all upcoming events.<br />Add an entry to show events in the past.<br />Set descending or ascending order of year entries.</tr>
|
|
|
86 |
<tr><td>cats</td><td>Show a list of all available categories.</td><td>show_all</td><td>true | false</td><td>true</td><td>Add an entry to show events from all categories.</td></tr>
|
87 |
<tr><td>reset</td><td>Only a link to reset the eventlist filter to standard.</td><td>caption</td><td>any text</td><td>Reset</td><td>Set the caption of the link.</td></tr>
|
88 |
</table></small>
|
89 |
Find below an overview of the available filterbar display options:<br />
|
90 |
<small><table class="el-filterbar-table">
|
91 |
<th class="el-filterbar-doption">display option</th><th class="el-filterbar-desc3">description</th><th class="el-filterbar-for">available for</th></thead>
|
92 |
-
<tr><td>hlist</td><td>"hlist" shows a horizonal list seperated by "|" with a link to each item</td><td>years,
|
93 |
-
<tr><td>dropdown</td><td>"dropdown" shows a select box where an item can be choosen. After the selection of an item the page is reloaded via javascript to show the filtered events.</td><td>years,
|
94 |
<tr><td>link</td><td>"link" shows a simple link which can be clicked.</td><td>reset</td></tr>
|
95 |
</table></small>
|
96 |
<p>Find below some declaration examples with descriptions:</p>
|
@@ -241,13 +242,14 @@ class SC_Event_List {
|
|
241 |
return $out;
|
242 |
}
|
243 |
|
244 |
-
private function html_event_details(
|
245 |
-
$event = $this->db->get_event(
|
246 |
$out = $this->html_filterbar($a);
|
247 |
$out .= '
|
248 |
<h2>Event Information:</h2>
|
249 |
<ul class="single-event-view">';
|
250 |
-
$
|
|
|
251 |
$out .= '</ul>';
|
252 |
return $out;
|
253 |
}
|
76 |
Choose "false" to always hide and "true" to always show the navigation.<br />
|
77 |
With "event_list_only" the filterbar is only visible in the event list and with "single_event_only" only for a single event'),
|
78 |
|
79 |
+
'filterbar_items' => array('val' => 'years_hlist<br />years_dropdown<br />daterange_hlist<br />daterange_dropdown<br />cats_hlist<br />cats_dropdown<br />reset_link',
|
80 |
'std_val' => 'years_hlist',
|
81 |
'desc' => 'This attribute specifies the available items in the filterbar. This options are only valid if the filterbar is displayed (see show_filterbar attribute).<br /><br />
|
82 |
Find below an overview of the available filterbar items and their options:<br />
|
83 |
<small><table class="el-filterbar-table">
|
84 |
<th class="el-filterbar-item">filterbar item</th><th class="el-filterbar-desc">description</th><th class="el-filterbar-options">item options</th><th class="el-filterbar-values">option values</th><th class="el-filterbar-default">default value</th><th class="el-filterbar-desc2">option description</th></thead>
|
85 |
<tr><td>years</td><td>Show a list of all available years. Additional there are some special entries available (see item options).</td><td>show_all<br />show_upcoming<br />show_past<br />years_order</td><td>true | false<br />true | false<br />true | false<br />desc | asc</td><td>true<br />true<br />false<br />desc</td><td>Add an entry to show all events.<br />Add an entry to show all upcoming events.<br />Add an entry to show events in the past.<br />Set descending or ascending order of year entries.</tr>
|
86 |
+
<tr><td>daterange</td><td>With this item you can display the special entries "all", "upcoming" and "past". You can use all or only some of the available values and you can specify their order.</td><td>item_order</td><td>all | upcoming | past</td><td>all&upcoming&past</td><td>Specifies the displayed values and their order. The items must be seperated by "&".</td></tr>
|
87 |
<tr><td>cats</td><td>Show a list of all available categories.</td><td>show_all</td><td>true | false</td><td>true</td><td>Add an entry to show events from all categories.</td></tr>
|
88 |
<tr><td>reset</td><td>Only a link to reset the eventlist filter to standard.</td><td>caption</td><td>any text</td><td>Reset</td><td>Set the caption of the link.</td></tr>
|
89 |
</table></small>
|
90 |
Find below an overview of the available filterbar display options:<br />
|
91 |
<small><table class="el-filterbar-table">
|
92 |
<th class="el-filterbar-doption">display option</th><th class="el-filterbar-desc3">description</th><th class="el-filterbar-for">available for</th></thead>
|
93 |
+
<tr><td>hlist</td><td>"hlist" shows a horizonal list seperated by "|" with a link to each item</td><td>years, daterange, cats</td></tr>
|
94 |
+
<tr><td>dropdown</td><td>"dropdown" shows a select box where an item can be choosen. After the selection of an item the page is reloaded via javascript to show the filtered events.</td><td>years, daterange, cats</td></tr>
|
95 |
<tr><td>link</td><td>"link" shows a simple link which can be clicked.</td><td>reset</td></tr>
|
96 |
</table></small>
|
97 |
<p>Find below some declaration examples with descriptions:</p>
|
242 |
return $out;
|
243 |
}
|
244 |
|
245 |
+
private function html_event_details(&$a) {
|
246 |
+
$event = $this->db->get_event($a['event_id']);
|
247 |
$out = $this->html_filterbar($a);
|
248 |
$out .= '
|
249 |
<h2>Event Information:</h2>
|
250 |
<ul class="single-event-view">';
|
251 |
+
$single_day_only = ($event->start_date == $event->end_date) ? true : false;
|
252 |
+
$out .= $this->html_event($event, $a, $single_day_only);
|
253 |
$out .= '</ul>';
|
254 |
return $out;
|
255 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mibuthu
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W54LNZMWF9KW2
|
4 |
Tags: event, events, list, listview, calendar, schedule, shortcode, page, category, categories, filter, admin, attribute, widget, sidebar, feed, rss
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 0.6.
|
8 |
Plugin URI: http://wordpress.org/extend/plugins/event-list
|
9 |
Licence: GPLv2
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -63,14 +63,23 @@ Another possibility would be to call the wordpress function "do_shortcode()".
|
|
63 |
2. Admin page: New/edit event form
|
64 |
3. Admin page: Categories
|
65 |
4. Admin page: Settings (general tab)
|
66 |
-
5. Admin page: Settings (
|
67 |
-
6. Admin page:
|
68 |
-
7. Admin page:
|
69 |
-
8.
|
|
|
70 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
= 0.6.7 (2014-06-18) =
|
75 |
* added month and day support in date_filter
|
76 |
* added available date and date range formats description in admin about page
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W54LNZMWF9KW2
|
4 |
Tags: event, events, list, listview, calendar, schedule, shortcode, page, category, categories, filter, admin, attribute, widget, sidebar, feed, rss
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.0
|
7 |
+
Stable tag: 0.6.8
|
8 |
Plugin URI: http://wordpress.org/extend/plugins/event-list
|
9 |
Licence: GPLv2
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
63 |
2. Admin page: New/edit event form
|
64 |
3. Admin page: Categories
|
65 |
4. Admin page: Settings (general tab)
|
66 |
+
5. Admin page: Settings (admin page tab)
|
67 |
+
6. Admin page: Settings (feed tab)
|
68 |
+
7. Admin page: About page with help and shortcode attributes list
|
69 |
+
8. Admin page: Widget with the available options
|
70 |
+
9. Example page created with [event-list] shortcode
|
71 |
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 0.6.8 (2014-10-14) =
|
76 |
+
* added filterbar item "daterange" (to view all, upcoming and past)
|
77 |
+
* added options to change feed name and feed description
|
78 |
+
* added "Duplicate" and "Add new" button in edit event view
|
79 |
+
* corrected embedding of feed (should solve some problems and increase speed)
|
80 |
+
* corrected view of event details for single day events
|
81 |
+
* changed standard value for feed link in html head to true
|
82 |
+
|
83 |
= 0.6.7 (2014-06-18) =
|
84 |
* added month and day support in date_filter
|
85 |
* added available date and date range formats description in admin about page
|
screenshot-4.png
CHANGED
Binary file
|
screenshot-5.png
CHANGED
Binary file
|
screenshot-6.png
CHANGED
Binary file
|
screenshot-7.png
CHANGED
Binary file
|
screenshot-8.png
CHANGED
Binary file
|
screenshot-9.png
ADDED
Binary file
|