Version Description
- Added: Grab the first post image option
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.62 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.61 to 1.0.62
- ecwd.php +1 -1
- ecwd_admin_class.php +1 -1
- ecwd_class.php +1 -1
- includes/calendar-class.php +9 -0
- includes/register-settings.php +7 -0
- readme.txt +4 -1
ecwd.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Event Calendar WD
|
| 4 |
* Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
|
| 5 |
* Description: Event Calendar WD is an easy event management and planning tool with advanced features.
|
| 6 |
-
* Version: 1.0.
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 3 |
* Plugin Name: Event Calendar WD
|
| 4 |
* Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
|
| 5 |
* Description: Event Calendar WD is an easy event management and planning tool with advanced features.
|
| 6 |
+
* Version: 1.0.62
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
ecwd_admin_class.php
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
class ECWD_Admin {
|
| 7 |
|
| 8 |
protected static $instance = null;
|
| 9 |
-
protected $version = '1.0.
|
| 10 |
protected $ecwd_page = null;
|
| 11 |
protected $notices = null;
|
| 12 |
|
| 6 |
class ECWD_Admin {
|
| 7 |
|
| 8 |
protected static $instance = null;
|
| 9 |
+
protected $version = '1.0.62';
|
| 10 |
protected $ecwd_page = null;
|
| 11 |
protected $notices = null;
|
| 12 |
|
ecwd_class.php
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
*/
|
| 7 |
class ECWD {
|
| 8 |
|
| 9 |
-
protected $version = '1.0.
|
| 10 |
protected $plugin_name = 'event-calendar-wd';
|
| 11 |
protected $prefix = 'ecwd';
|
| 12 |
protected static $instance = null;
|
| 6 |
*/
|
| 7 |
class ECWD {
|
| 8 |
|
| 9 |
+
protected $version = '1.0.62';
|
| 10 |
protected $plugin_name = 'event-calendar-wd';
|
| 11 |
protected $prefix = 'ecwd';
|
| 12 |
protected static $instance = null;
|
includes/calendar-class.php
CHANGED
|
@@ -1419,7 +1419,16 @@ class Calendar {
|
|
| 1419 |
}
|
| 1420 |
|
| 1421 |
public function getAndReplaceFirstImage($content) {
|
|
|
|
| 1422 |
$first_img = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1423 |
ob_start();
|
| 1424 |
ob_end_clean();
|
| 1425 |
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches);
|
| 1419 |
}
|
| 1420 |
|
| 1421 |
public function getAndReplaceFirstImage($content) {
|
| 1422 |
+
global $ecwd_options;
|
| 1423 |
$first_img = '';
|
| 1424 |
+
if($ecwd_options){
|
| 1425 |
+
if(!isset($ecwd_options["move_first_image"]) || intval($ecwd_options["move_first_image"])===0){
|
| 1426 |
+
return array(
|
| 1427 |
+
'image' => "",
|
| 1428 |
+
'content' => $content
|
| 1429 |
+
);
|
| 1430 |
+
}
|
| 1431 |
+
}
|
| 1432 |
ob_start();
|
| 1433 |
ob_end_clean();
|
| 1434 |
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches);
|
includes/register-settings.php
CHANGED
|
@@ -244,6 +244,13 @@ function ecwd_register_settings() {
|
|
| 244 |
'default' => '0',
|
| 245 |
'labels' => array('DESC', 'ASC')
|
| 246 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
),
|
| 248 |
'category_archive' => array(
|
| 249 |
'category_archive_slug' => array(
|
| 244 |
'default' => '0',
|
| 245 |
'labels' => array('DESC', 'ASC')
|
| 246 |
),
|
| 247 |
+
'move_first_image' => array(
|
| 248 |
+
'id' => 'move_first_image',
|
| 249 |
+
'name' => __('Grab the first post image', 'ecwd'),
|
| 250 |
+
'desc' => '',
|
| 251 |
+
'type' => 'radio',
|
| 252 |
+
'default' => 1
|
| 253 |
+
),
|
| 254 |
),
|
| 255 |
'category_archive' => array(
|
| 256 |
'category_archive_slug' => array(
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
|
|
| 4 |
Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, facebook integration, widget, reservation
|
| 5 |
Requires at least: 3.9
|
| 6 |
Tested up to: 4.5
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -155,6 +155,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
|
|
| 155 |
|
| 156 |
== Changelog ==
|
| 157 |
|
|
|
|
|
|
|
|
|
|
| 158 |
= 1.0.61 =
|
| 159 |
* Fixed: Conflict with Page Builder by SiteOrigin
|
| 160 |
* Fixed: Bug on trashed events
|
| 4 |
Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting , appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, facebook integration, widget, reservation
|
| 5 |
Requires at least: 3.9
|
| 6 |
Tested up to: 4.5
|
| 7 |
+
Stable tag: 1.0.62
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 155 |
|
| 156 |
== Changelog ==
|
| 157 |
|
| 158 |
+
= 1.0.62 =
|
| 159 |
+
* Added: Grab the first post image option
|
| 160 |
+
|
| 161 |
= 1.0.61 =
|
| 162 |
* Fixed: Conflict with Page Builder by SiteOrigin
|
| 163 |
* Fixed: Bug on trashed events
|
