Simple Calendar – Google Calendar Plugin - Version 3.1.18

Version Description

  • July 3, 2018 =
  • Dev: Add filter "simcal_additional_link_attributes" to facilitate additional event link attributes.
Download this release

Release Info

Developer simplecalendar
Plugin Icon 128x128 Simple Calendar – Google Calendar Plugin
Version 3.1.18
Comparing to
See all releases

Code changes from version 3.1.17 to 3.1.18

assets/css/admin-add-calendar.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.17
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.18
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
assets/css/admin.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.17
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.18
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
assets/css/default-calendar-grid.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.17
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.18
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
assets/css/default-calendar-list.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.17
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.18
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
assets/js/admin-add-calendar.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.17
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.18
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
assets/js/admin.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.17
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.18
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
assets/js/default-calendar.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Simple Calendar - 3.1.17
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
1
+ /*! Simple Calendar - 3.1.18
2
  * https://simplecalendar.io
3
  * Copyright (c) Moonstone Media 2018
4
  * Licensed GPLv2+ */
google-calendar-events.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
6
  * Author: Simple Calendar
7
  * Author URI: https://simplecalendar.io
8
- * Version: 3.1.17
9
  * Text Domain: google-calendar-events
10
  * Domain Path: /i18n
11
  *
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
21
  $this_plugin_path = trailingslashit( dirname( __FILE__ ) );
22
  $this_plugin_dir = plugin_dir_url( __FILE__ );
23
  $this_plugin_constants = array(
24
- 'SIMPLE_CALENDAR_VERSION' => '3.1.17',
25
  'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
26
  'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
27
  'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
5
  * Description: Add Google Calendar events to your WordPress site in minutes. Beautiful calendar displays. Fully responsive.
6
  * Author: Simple Calendar
7
  * Author URI: https://simplecalendar.io
8
+ * Version: 3.1.18
9
  * Text Domain: google-calendar-events
10
  * Domain Path: /i18n
11
  *
21
  $this_plugin_path = trailingslashit( dirname( __FILE__ ) );
22
  $this_plugin_dir = plugin_dir_url( __FILE__ );
23
  $this_plugin_constants = array(
24
+ 'SIMPLE_CALENDAR_VERSION' => '3.1.18',
25
  'SIMPLE_CALENDAR_MAIN_FILE' => __FILE__,
26
  'SIMPLE_CALENDAR_URL' => $this_plugin_dir,
27
  'SIMPLE_CALENDAR_ASSETS' => $this_plugin_dir . 'assets/',
includes/events/event-builder.php CHANGED
@@ -826,9 +826,21 @@ class Event_Builder {
826
  ), (array) shortcode_parse_atts( $attr ) );
827
 
828
  $anchor = $tag != 'url' ? 'yes' : $attr['autolink'];
829
- $target = $attr['newwindow'] !== false ? 'target="_blank"' : '';
830
-
831
- return $anchor !== false ? ' <a href="' . esc_url( $url ) . '" ' . $target . '>' . $text . '</a>' : ' ' . $text;
 
 
 
 
 
 
 
 
 
 
 
 
832
  }
833
 
834
  /**
826
  ), (array) shortcode_parse_atts( $attr ) );
827
 
828
  $anchor = $tag != 'url' ? 'yes' : $attr['autolink'];
829
+ $target = false !== $attr['newwindow'] ? 'target="_blank"' : '';
830
+
831
+ /**
832
+ * Add additional event link attributes.
833
+ *
834
+ * @since 3.1.18
835
+ *
836
+ * @param string The additional link attributes.
837
+ * @param array $attr The current shortcode attributes.
838
+ *
839
+ * @return string The modified additional link attributes.
840
+ */
841
+ $additional_link_atts = apply_filters( 'simcal_additional_event_link_attributes', '', $attr );
842
+
843
+ return false !== $anchor ? ' <a href="' . esc_url( $url ) . '" ' . wp_kses_post( $target ) . ' ' . wp_kses_post( $additional_link_atts ) . '>' . $text . '</a>' : ' ' . $text;
844
  }
845
 
846
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: google calendar, calendar, calendars, google, event calendar, custom calen
4
  Requires at least: 4.2
5
  Requires PHP: 5.3+
6
  Tested up to: 4.9
7
- Stable tag: 3.1.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -97,6 +97,9 @@ We'd love your help! Here's a few things you can do:
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 3.1.17 - June 6, 2018 =
101
  * Fix: Issue with calendar settings not saving.
102
 
4
  Requires at least: 4.2
5
  Requires PHP: 5.3+
6
  Tested up to: 4.9
7
+ Stable tag: 3.1.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 3.1.18 - July 3, 2018 =
101
+ * Dev: Add filter "simcal_additional_link_attributes" to facilitate additional event link attributes.
102
+
103
  = 3.1.17 - June 6, 2018 =
104
  * Fix: Issue with calendar settings not saving.
105