Version Description
(2013-11-09) =
- added number of events in Right Now dashboard widget
- fixed some css issues
Download this release
Release Info
Developer | mibuthu |
Plugin | Event List |
Version | 0.5.2 |
Comparing to | |
See all releases |
Code changes from version 0.5.1 to 0.5.2
- admin/admin.php +13 -0
- event-list.php +1 -1
- includes/css/event-list.css +9 -7
- includes/db.php +6 -0
- includes/sc_event-list.php +4 -2
- readme.txt +7 -2
admin/admin.php
CHANGED
@@ -27,6 +27,7 @@ class EL_Admin {
|
|
27 |
// Register actions
|
28 |
add_action('admin_menu', array(&$this, 'register_pages'));
|
29 |
add_action('plugins_loaded', array(&$this, 'db_upgrade_check'));
|
|
|
30 |
|
31 |
// Register syncing if required
|
32 |
if(1 == $this->options->get('el_sync_cats')) {
|
@@ -69,6 +70,18 @@ class EL_Admin {
|
|
69 |
EL_Db::get_instance()->upgrade_check();
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
public function show_main_page() {
|
73 |
require_once(EL_PATH.'admin/includes/admin-main.php');
|
74 |
EL_Admin_Main::get_instance()->show_main();
|
27 |
// Register actions
|
28 |
add_action('admin_menu', array(&$this, 'register_pages'));
|
29 |
add_action('plugins_loaded', array(&$this, 'db_upgrade_check'));
|
30 |
+
add_action('right_now_content_table_end', array(&$this, 'add_events_to_right_now'));
|
31 |
|
32 |
// Register syncing if required
|
33 |
if(1 == $this->options->get('el_sync_cats')) {
|
70 |
EL_Db::get_instance()->upgrade_check();
|
71 |
}
|
72 |
|
73 |
+
public function add_events_to_right_now() {
|
74 |
+
require_once(EL_PATH.'includes/db.php');
|
75 |
+
$num_events = EL_Db::get_instance()->get_num_events();
|
76 |
+
$event_link = 'admin.php?page=el_admin_main';
|
77 |
+
$out = '
|
78 |
+
<tr>
|
79 |
+
<td class="first b b-events"><a href="'.$event_link.'">'.$num_events.'</a></td>
|
80 |
+
<td class="t events"><a href="'.$event_link.'">'.__('Events').'</a></td>
|
81 |
+
</tr>';
|
82 |
+
echo $out;
|
83 |
+
}
|
84 |
+
|
85 |
public function show_main_page() {
|
86 |
require_once(EL_PATH.'admin/includes/admin-main.php');
|
87 |
EL_Admin_Main::get_instance()->show_main();
|
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.5.
|
7 |
Author: Michael Burtscher
|
8 |
Author URI: http://wordpress.org/extend/plugins/event-list/
|
9 |
License: GPLv2
|
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.5.2
|
7 |
Author: Michael Burtscher
|
8 |
Author URI: http://wordpress.org/extend/plugins/event-list/
|
9 |
License: GPLv2
|
includes/css/event-list.css
CHANGED
@@ -1,17 +1,18 @@
|
|
1 |
ul.event-list-view, ul.single-event-view {
|
2 |
-
list-style: none;
|
3 |
margin: 1em 0 1.5em 0;
|
4 |
padding: 0;
|
5 |
}
|
6 |
|
7 |
li.event {
|
8 |
clear: both;
|
|
|
|
|
9 |
}
|
10 |
|
11 |
.event-date {
|
12 |
-
white-space: nowrap;
|
13 |
float: left;
|
14 |
-
margin
|
15 |
}
|
16 |
|
17 |
.event-list .multi-date {
|
@@ -23,7 +24,6 @@ li.event {
|
|
23 |
width: 3.2em;
|
24 |
border-radius: 5px;
|
25 |
background-color: rgb(230,230,230);
|
26 |
-
overflow: hidden;
|
27 |
}
|
28 |
|
29 |
.event-list .start-date {
|
@@ -68,8 +68,10 @@ li.event {
|
|
68 |
margin: 0 0 0 3.8em;
|
69 |
}
|
70 |
|
71 |
-
.event-
|
72 |
clear: none;
|
|
|
|
|
73 |
}
|
74 |
|
75 |
.event-time {
|
@@ -94,5 +96,5 @@ div.feed a * {
|
|
94 |
}
|
95 |
|
96 |
div.feed img {
|
97 |
-
margin:
|
98 |
-
}
|
1 |
ul.event-list-view, ul.single-event-view {
|
2 |
+
list-style: none !important;
|
3 |
margin: 1em 0 1.5em 0;
|
4 |
padding: 0;
|
5 |
}
|
6 |
|
7 |
li.event {
|
8 |
clear: both;
|
9 |
+
margin: 0 0.5em 1.5em 0.5em;
|
10 |
+
zoom: 1; /* Fix for IE 6+7 */
|
11 |
}
|
12 |
|
13 |
.event-date {
|
|
|
14 |
float: left;
|
15 |
+
margin: 0 0.4em 1.5em 0;
|
16 |
}
|
17 |
|
18 |
.event-list .multi-date {
|
24 |
width: 3.2em;
|
25 |
border-radius: 5px;
|
26 |
background-color: rgb(230,230,230);
|
|
|
27 |
}
|
28 |
|
29 |
.event-list .start-date {
|
68 |
margin: 0 0 0 3.8em;
|
69 |
}
|
70 |
|
71 |
+
.event-title h3 {
|
72 |
clear: none;
|
73 |
+
margin: 0;
|
74 |
+
padding: 0;
|
75 |
}
|
76 |
|
77 |
.event-time {
|
96 |
}
|
97 |
|
98 |
div.feed img {
|
99 |
+
margin: 0 5px 0 2px;
|
100 |
+
}
|
includes/db.php
CHANGED
@@ -107,6 +107,12 @@ class EL_Db {
|
|
107 |
return $date;
|
108 |
}
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
public function update_event( $event_data, $dateformat=NULL ) {
|
111 |
global $wpdb;
|
112 |
// prepare and validate sqldata
|
107 |
return $date;
|
108 |
}
|
109 |
|
110 |
+
public function get_num_events() {
|
111 |
+
global $wpdb;
|
112 |
+
$sql = 'SELECT COUNT(*) FROM '.$this->table;
|
113 |
+
return $wpdb->get_var($sql);
|
114 |
+
}
|
115 |
+
|
116 |
public function update_event( $event_data, $dateformat=NULL ) {
|
117 |
global $wpdb;
|
118 |
// prepare and validate sqldata
|
includes/sc_event-list.php
CHANGED
@@ -262,7 +262,9 @@ class SC_Event_List {
|
|
262 |
else {
|
263 |
$out .= ' multi-day';
|
264 |
}
|
265 |
-
$out .= '"
|
|
|
|
|
266 |
|
267 |
$title = esc_attr($this->db->truncate(min($max_length, $a['title_length']), $event->title));
|
268 |
if( $this->is_visible( $a['link_to_event'] ) ) {
|
@@ -271,7 +273,7 @@ class SC_Event_List {
|
|
271 |
else {
|
272 |
$out .= $title;
|
273 |
}
|
274 |
-
$out .= '</h3>';
|
275 |
if( $event->time != '' && $this->is_visible( $a['show_starttime'] ) ) {
|
276 |
// set time format if a known format is available, else only show the text
|
277 |
$date_array = date_parse( $event->time );
|
262 |
else {
|
263 |
$out .= ' multi-day';
|
264 |
}
|
265 |
+
$out .= '">';
|
266 |
+
|
267 |
+
$out .= '<span class="event-title"><h3>';
|
268 |
|
269 |
$title = esc_attr($this->db->truncate(min($max_length, $a['title_length']), $event->title));
|
270 |
if( $this->is_visible( $a['link_to_event'] ) ) {
|
273 |
else {
|
274 |
$out .= $title;
|
275 |
}
|
276 |
+
$out .= '</h3></span>';
|
277 |
if( $event->time != '' && $this->is_visible( $a['show_starttime'] ) ) {
|
278 |
// set time format if a known format is available, else only show the text
|
279 |
$date_array = date_parse( $event->time );
|
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, admin, attribute, widget, sidebar, feed, rss
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 3.7
|
7 |
-
Stable tag: 0.5.
|
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
|
@@ -70,6 +70,11 @@ Yes, you can create an instance of the "SC_Event_List" class which located in "i
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
|
|
73 |
= 0.5.1 (2013-10-27) =
|
74 |
|
75 |
* added site name in eventlist feed name (similar to standard feed captions)
|
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, admin, attribute, widget, sidebar, feed, rss
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 3.7.1
|
7 |
+
Stable tag: 0.5.2
|
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
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 0.5.2 (2013-11-09) =
|
74 |
+
|
75 |
+
* added number of events in Right Now dashboard widget
|
76 |
+
* fixed some css issues
|
77 |
+
|
78 |
= 0.5.1 (2013-10-27) =
|
79 |
|
80 |
* added site name in eventlist feed name (similar to standard feed captions)
|