Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.38

Version Description

  • Added: Custom css option
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.0.38
Comparing to
See all releases

Code changes from version 1.0.37 to 1.0.38

css/style.css CHANGED
@@ -148,8 +148,8 @@ table.cal_blue.ecwd_calendar_container .day-with-date, table.cal_blue.ecwd_calen
148
  margin-left:inherit !important;
149
  }
150
 
151
- .ecwd_calendar {
152
- font-family: Segoe UI !important;
153
  max-width: 100%;
154
  width: 100%;
155
  float: left;
148
  margin-left:inherit !important;
149
  }
150
 
151
+ .ecwd_calendar {
152
+ font-family: Sans-serif;
153
  max-width: 100%;
154
  width: 100%;
155
  float: left;
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.37
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.38
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.37';
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.38';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
ecwd_class.php CHANGED
@@ -156,9 +156,12 @@ class ECWD {
156
  */
157
 
158
  public function enqueue_styles() {
 
159
  wp_enqueue_style($this->prefix . '-popup-style', plugins_url('/css/ecwd_popup.css', __FILE__), '', $this->version, 'all');
160
  wp_enqueue_style( $this->prefix . '_font-awesome', plugins_url( '/css/font-awesome/font-awesome.css', __FILE__ ), '', $this->version, 'all' );
161
  wp_enqueue_style( $this->prefix . '-public', plugins_url( 'css/style.css', __FILE__ ), '', $this->version, 'all' );
 
 
162
  }
163
 
164
 
156
  */
157
 
158
  public function enqueue_styles() {
159
+ global $ecwd_options;
160
  wp_enqueue_style($this->prefix . '-popup-style', plugins_url('/css/ecwd_popup.css', __FILE__), '', $this->version, 'all');
161
  wp_enqueue_style( $this->prefix . '_font-awesome', plugins_url( '/css/font-awesome/font-awesome.css', __FILE__ ), '', $this->version, 'all' );
162
  wp_enqueue_style( $this->prefix . '-public', plugins_url( 'css/style.css', __FILE__ ), '', $this->version, 'all' );
163
+ $css = (isset($ecwd_options['custom_css'])) ? $ecwd_options['custom_css'] : "";
164
+ wp_add_inline_style($this->prefix . '-public',$css);
165
  }
166
 
167
 
includes/register-settings.php CHANGED
@@ -32,7 +32,8 @@ function ecwd_register_settings() {
32
 
33
  $ecwd_tabs = array(
34
  'general' => 'General',
35
- 'category_archive' => 'Category Page',
 
36
  'fb' => 'FB settings',
37
  'gcal' => 'Gcal settings',
38
  'ical' => 'Ical settings',
@@ -190,7 +191,17 @@ function ecwd_register_settings() {
190
  'type' => 'radio',
191
  'default' => 1
192
  ),
193
- )
 
 
 
 
 
 
 
 
 
 
194
  );
195
  if (1 == get_option('ecwd_old_events')) {
196
  $ecwd_settings['general']['show_repeat_rate'] = array(
@@ -244,10 +255,13 @@ function ecwd_get_settings_field_args($option, $section) {
244
  'name' => $option['name'],
245
  'section' => $section,
246
  'size' => isset($option['size']) ? $option['size'] : null,
 
247
  'options' => isset($option['options']) ? $option['options'] : '',
248
  'std' => isset($option['std']) ? $option['std'] : '',
249
  'href' => isset($option['href']) ? $option['href'] : '',
250
- 'default' => isset($option['default']) ? $option['default'] : ''
 
 
251
  );
252
 
253
  // Link label to input using 'label_for' argument if text, textarea, password, select, or variations of.
@@ -439,6 +453,28 @@ function ecwd_text_callback($args) {
439
  echo $html;
440
  }
441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
442
  /**
443
  * Button callback function
444
  * Valid built-in size CSS class values:
@@ -487,6 +523,7 @@ function ecwd_get_settings() {
487
  $ecwd_tabs = array(
488
  'general' => 'General',
489
  'category_archive' => 'Category Page',
 
490
  'fb' => 'FB settings',
491
  'gcal' => 'Gcal settings',
492
  'ical' => 'Ical settings',
32
 
33
  $ecwd_tabs = array(
34
  'general' => 'General',
35
+ 'category_archive' => 'Category Page',
36
+ 'custom_css' => 'Custom CSS',
37
  'fb' => 'FB settings',
38
  'gcal' => 'Gcal settings',
39
  'ical' => 'Ical settings',
191
  'type' => 'radio',
192
  'default' => 1
193
  ),
194
+ ),
195
+ 'custom_css' => array(
196
+ 'custom_css' => array(
197
+ 'id' => 'custom_css',
198
+ 'name' => __('Custom css', 'ecwd'),
199
+ 'desc' => '',
200
+ 'type' => 'textarea',
201
+ 'cols' => '45',
202
+ 'rows' => '15'
203
+ )
204
+ )
205
  );
206
  if (1 == get_option('ecwd_old_events')) {
207
  $ecwd_settings['general']['show_repeat_rate'] = array(
255
  'name' => $option['name'],
256
  'section' => $section,
257
  'size' => isset($option['size']) ? $option['size'] : null,
258
+ 'class' => isset($option['class']) ? $option['class'] : null,
259
  'options' => isset($option['options']) ? $option['options'] : '',
260
  'std' => isset($option['std']) ? $option['std'] : '',
261
  'href' => isset($option['href']) ? $option['href'] : '',
262
+ 'default' => isset($option['default']) ? $option['default'] : '',
263
+ 'cols' => isset($option['cols']) ? $option['cols'] : '',
264
+ 'rows' => isset($option['rows']) ? $option['rows'] : ''
265
  );
266
 
267
  // Link label to input using 'label_for' argument if text, textarea, password, select, or variations of.
453
  echo $html;
454
  }
455
 
456
+ function ecwd_textarea_callback($args) {
457
+ global $ecwd_options;
458
+
459
+ if (isset($ecwd_options[$args['id']])) {
460
+ $value = $ecwd_options[$args['id']];
461
+ } else {
462
+ $value = isset($args['default']) ? $args['default'] : '';
463
+ }
464
+
465
+ $rows = ( isset($args['rows']) && !is_null($args['rows']) ) ? 'rows="'.$args['rows'].'"' : '';
466
+ $cols = ( isset($args['cols']) && !is_null($args['cols']) ) ? 'cols="'.$args['cols'].'"' : '';
467
+ $size = ( isset($args['size']) && !is_null($args['size']) ) ? $args['size'] : '';
468
+ $html = "\n" . '<textarea type="text" '.$rows.' '.$cols.' class="' . $size . '" id="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']" name="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']">' . esc_attr($value) . '</textarea>' . "\n";
469
+
470
+ // Render and style description text underneath if it exists.
471
+ if (!empty($args['desc'])) {
472
+ $html .= '<p class="description">' . $args['desc'] . '</p>' . "\n";
473
+ }
474
+
475
+ echo $html;
476
+ }
477
+
478
  /**
479
  * Button callback function
480
  * Valid built-in size CSS class values:
523
  $ecwd_tabs = array(
524
  'general' => 'General',
525
  'category_archive' => 'Category Page',
526
+ 'custom_css' => 'Custom CSS',
527
  'fb' => 'FB settings',
528
  'gcal' => 'Gcal settings',
529
  'ical' => 'Ical settings',
js/scripts.js CHANGED
@@ -275,7 +275,7 @@ ecwd_js_init = function () {
275
  });
276
 
277
  jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseout', function (e) {
278
- jQuery(this).find('div.event-details-container').hide();
279
  });
280
  }
281
 
275
  });
276
 
277
  jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseout', function (e) {
278
+ jQuery(this).find('div.event-details-container').css('display', 'none');
279
  });
280
  }
281
 
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
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
- Stable tag: 1.0.37
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -143,6 +143,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
143
 
144
  == Changelog ==
145
 
 
 
 
146
  = 1.0.37 =
147
  * Added: Catalan language support(by Vicenc Huguet)
148
  * Fixed: Views slider js issue
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
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
+ Stable tag: 1.0.38
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
143
 
144
  == Changelog ==
145
 
146
+ = 1.0.38 =
147
+ * Added: Custom css option
148
+
149
  = 1.0.37 =
150
  * Added: Catalan language support(by Vicenc Huguet)
151
  * Fixed: Views slider js issue