Visual Portfolio, Photo Gallery & Post Grid - Version 2.13.1

Version Description

Download this release

Release Info

Developer nko
Plugin Icon 128x128 Visual Portfolio, Photo Gallery & Post Grid
Version 2.13.1
Comparing to
See all releases

Code changes from version 2.13.0 to 2.13.1

assets/admin/js/elementor.js CHANGED
@@ -2,7 +2,7 @@
2
  * Additional js for Elementor
3
  *
4
  * Name : Visual Portfolio
5
- * Version : 2.13.0
6
  * Author : nK https://nkdev.info
7
  */
8
  import { throttle } from 'throttle-debounce';
2
  * Additional js for Elementor
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 2.13.1
6
  * Author : nK https://nkdev.info
7
  */
8
  import { throttle } from 'throttle-debounce';
assets/admin/js/mce-dropdown.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.13.0
4
  * Author : nK https://nkdev.info
5
  */
6
  const {
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
  const {
assets/admin/js/script.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.13.0
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
assets/admin/js/vc-frontend.js CHANGED
@@ -2,7 +2,7 @@
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
- * Version : 2.13.0
6
  * Author : nK https://nkdev.info
7
  */
8
  const {
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 2.13.1
6
  * Author : nK https://nkdev.info
7
  */
8
  const {
assets/css/lazyload-rtl.min.css CHANGED
@@ -1 +1 @@
1
- :root{--vp-lazyload-images__background: linear-gradient(270deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__background-second: linear-gradient(90deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__animation-duration: 1.5s;--vp-lazyload-images__animation-second-delay: .3s;--vp-lazyload-transition-duration: .3s;--vp-lazyload-transition-easing: ease-in-out}img.vp-lazyload,img.vp-lazyloaded,img.vp-lazypreload,img.vp-lazyloading{opacity:0;-webkit-transition:var(--vp-lazyload-transition-duration) opacity;-o-transition:var(--vp-lazyload-transition-duration) opacity;transition:var(--vp-lazyload-transition-duration) opacity;will-change:opacity}img.vp-lazyloaded{opacity:1}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before,.vp-portfolio__item-img::after,.vp-portfolio__thumbnail-img::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;visibility:visible;background:var(--vp-lazyload-images__background);opacity:1;-webkit-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;-o-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before,.vp-portfolio__item-img-lazyloading::after,.vp-portfolio__thumbnail-img-lazyloading::after{-webkit-animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{background:var(--vp-lazyload-images__background-second);-webkit-animation-delay:var(--vp-lazyload-images__animation-second-delay);animation-delay:var(--vp-lazyload-images__animation-second-delay)}.vp-portfolio__item-img-lazyloaded::before,.vp-portfolio__thumbnail-img-lazyloaded::before,.vp-portfolio__item-img-lazyloaded::after,.vp-portfolio__thumbnail-img-lazyloaded::after{visibility:visible;opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}@keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}
1
+ :root{--vp-lazyload-images__background: linear-gradient(270deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__background-second: linear-gradient(90deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__animation-duration: 1.5s;--vp-lazyload-images__animation-second-delay: .3s;--vp-lazyload-transition-duration: .3s;--vp-lazyload-transition-easing: ease-in-out}img.vp-lazyload,img.vp-lazyloaded,img.vp-lazypreload,img.vp-lazyloading{opacity:0;-webkit-transition:var(--vp-lazyload-transition-duration) opacity;-o-transition:var(--vp-lazyload-transition-duration) opacity;transition:var(--vp-lazyload-transition-duration) opacity;will-change:opacity}img.vp-lazyloaded{opacity:1}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before,.vp-portfolio__item-img::after,.vp-portfolio__thumbnail-img::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;visibility:visible;background:var(--vp-lazyload-images__background);opacity:1;-webkit-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;-o-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before,.vp-portfolio__item-img-lazyloading::after,.vp-portfolio__thumbnail-img-lazyloading::after{-webkit-animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{background:var(--vp-lazyload-images__background-second);-webkit-animation-delay:var(--vp-lazyload-images__animation-second-delay);animation-delay:var(--vp-lazyload-images__animation-second-delay)}.vp-portfolio__item-img-lazyloaded::before,.vp-portfolio__thumbnail-img-lazyloaded::before,.vp-portfolio__item-img-lazyloaded::after,.vp-portfolio__thumbnail-img-lazyloaded::after{visibility:hidden;opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}@keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}
assets/css/lazyload.min.css CHANGED
@@ -1 +1 @@
1
- :root{--vp-lazyload-images__background: linear-gradient(270deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__background-second: linear-gradient(90deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__animation-duration: 1.5s;--vp-lazyload-images__animation-second-delay: .3s;--vp-lazyload-transition-duration: .3s;--vp-lazyload-transition-easing: ease-in-out}img.vp-lazyload,img.vp-lazyloaded,img.vp-lazypreload,img.vp-lazyloading{opacity:0;-webkit-transition:var(--vp-lazyload-transition-duration) opacity;-o-transition:var(--vp-lazyload-transition-duration) opacity;transition:var(--vp-lazyload-transition-duration) opacity;will-change:opacity}img.vp-lazyloaded{opacity:1}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before,.vp-portfolio__item-img::after,.vp-portfolio__thumbnail-img::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;visibility:visible;background:var(--vp-lazyload-images__background);opacity:1;-webkit-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;-o-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before,.vp-portfolio__item-img-lazyloading::after,.vp-portfolio__thumbnail-img-lazyloading::after{-webkit-animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{background:var(--vp-lazyload-images__background-second);-webkit-animation-delay:var(--vp-lazyload-images__animation-second-delay);animation-delay:var(--vp-lazyload-images__animation-second-delay)}.vp-portfolio__item-img-lazyloaded::before,.vp-portfolio__thumbnail-img-lazyloaded::before,.vp-portfolio__item-img-lazyloaded::after,.vp-portfolio__thumbnail-img-lazyloaded::after{visibility:visible;opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}@keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}
1
+ :root{--vp-lazyload-images__background: linear-gradient(270deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__background-second: linear-gradient(90deg, rgba(140, 140, 140, .15), rgba(140, 140, 140, .05));--vp-lazyload-images__animation-duration: 1.5s;--vp-lazyload-images__animation-second-delay: .3s;--vp-lazyload-transition-duration: .3s;--vp-lazyload-transition-easing: ease-in-out}img.vp-lazyload,img.vp-lazyloaded,img.vp-lazypreload,img.vp-lazyloading{opacity:0;-webkit-transition:var(--vp-lazyload-transition-duration) opacity;-o-transition:var(--vp-lazyload-transition-duration) opacity;transition:var(--vp-lazyload-transition-duration) opacity;will-change:opacity}img.vp-lazyloaded{opacity:1}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before,.vp-portfolio__item-img::after,.vp-portfolio__thumbnail-img::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;visibility:visible;background:var(--vp-lazyload-images__background);opacity:1;-webkit-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;-o-transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility;transition:var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) opacity,var(--vp-lazyload-transition-duration) var(--vp-lazyload-transition-duration) visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before,.vp-portfolio__item-img-lazyloading::after,.vp-portfolio__thumbnail-img-lazyloading::after{-webkit-animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite;animation:vp-lazyload-placeholder var(--vp-lazyload-images__animation-duration) linear infinite}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{background:var(--vp-lazyload-images__background-second);-webkit-animation-delay:var(--vp-lazyload-images__animation-second-delay);animation-delay:var(--vp-lazyload-images__animation-second-delay)}.vp-portfolio__item-img-lazyloaded::before,.vp-portfolio__thumbnail-img-lazyloaded::before,.vp-portfolio__item-img-lazyloaded::after,.vp-portfolio__thumbnail-img-lazyloaded::after{visibility:hidden;opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}@keyframes vp-lazyload-placeholder{0%,100%{opacity:1}50%{opacity:0}}
assets/js/preview.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.13.0
4
  * Author : nK https://nkdev.info
5
  */
6
  const $ = window.jQuery;
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.13.1
4
  * Author : nK https://nkdev.info
5
  */
6
  const $ = window.jQuery;
class-visual-portfolio.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Visual Portfolio, Posts & Image Gallery
4
  * Description: Modern gallery and portfolio plugin with advanced layouts editor. Clean and powerful gallery styles with enormous settings in the Gutenberg block.
5
- * Version: 2.13.0
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
2
  /**
3
  * Plugin Name: Visual Portfolio, Posts & Image Gallery
4
  * Description: Modern gallery and portfolio plugin with advanced layouts editor. Clean and powerful gallery styles with enormous settings in the Gutenberg block.
5
+ * Version: 2.13.1
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
classes/3rd/plugins/class-elementor-widget.php CHANGED
@@ -33,9 +33,9 @@ class Visual_Portfolio_3rd_Elementor_Widget extends \Elementor\Widget_Base {
33
 
34
  if ( $this->is_preview_mode() ) {
35
  wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.min.js', '', '4.2.11', true );
36
- wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '2.13.0', true );
37
 
38
- wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '2.13.0' );
39
  wp_style_add_data( 'visual-portfolio-elementor', 'rtl', 'replace' );
40
  wp_style_add_data( 'visual-portfolio-elementor', 'suffix', '.min' );
41
  }
33
 
34
  if ( $this->is_preview_mode() ) {
35
  wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.min.js', '', '4.2.11', true );
36
+ wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '2.13.1', true );
37
 
38
+ wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '2.13.1' );
39
  wp_style_add_data( 'visual-portfolio-elementor', 'rtl', 'replace' );
40
  wp_style_add_data( 'visual-portfolio-elementor', 'suffix', '.min' );
41
  }
classes/3rd/plugins/class-tinymce.php CHANGED
@@ -72,7 +72,7 @@ class Visual_Portfolio_3rd_TinyMCE {
72
  return;
73
  }
74
 
75
- wp_enqueue_script( 'visual-portfolio-tinymce-localize', visual_portfolio()->plugin_url . 'assets/admin/js/mce-localize.min.js', array(), '2.13.0', true );
76
  wp_localize_script( 'visual-portfolio-tinymce-localize', 'VPTinyMCEData', $data_tiny_mce );
77
  }
78
  }
72
  return;
73
  }
74
 
75
+ wp_enqueue_script( 'visual-portfolio-tinymce-localize', visual_portfolio()->plugin_url . 'assets/admin/js/mce-localize.min.js', array(), '2.13.1', true );
76
  wp_localize_script( 'visual-portfolio-tinymce-localize', 'VPTinyMCEData', $data_tiny_mce );
77
  }
78
  }
classes/3rd/plugins/class-vc.php CHANGED
@@ -35,7 +35,7 @@ class Visual_Portfolio_3rd_VC {
35
  */
36
  public function admin_enqueue_scripts( $page ) {
37
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
38
- wp_enqueue_script( 'visual-portfolio-vc-frontend', visual_portfolio()->plugin_url . 'assets/admin/js/vc-frontend.min.js', array( 'jquery' ), '2.13.0', true );
39
  }
40
  }
41
 
35
  */
36
  public function admin_enqueue_scripts( $page ) {
37
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
38
+ wp_enqueue_script( 'visual-portfolio-vc-frontend', visual_portfolio()->plugin_url . 'assets/admin/js/vc-frontend.min.js', array( 'jquery' ), '2.13.1', true );
39
  }
40
  }
41
 
classes/class-admin.php CHANGED
@@ -44,9 +44,9 @@ class Visual_Portfolio_Admin {
44
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
45
  );
46
 
47
- wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '2.13.0', true );
48
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
49
- wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', array(), '2.13.0' );
50
  wp_style_add_data( 'visual-portfolio-admin', 'rtl', 'replace' );
51
  wp_style_add_data( 'visual-portfolio-admin', 'suffix', '.min' );
52
  }
@@ -60,8 +60,8 @@ class Visual_Portfolio_Admin {
60
  );
61
 
62
  if ( 'vp_lists' === get_post_type() ) {
63
- wp_enqueue_script( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.js', array( 'jquery' ), '2.13.0', true );
64
- wp_enqueue_style( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.css', array(), '2.13.0' );
65
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'rtl', 'replace' );
66
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'suffix', '.min' );
67
 
@@ -216,7 +216,7 @@ class Visual_Portfolio_Admin {
216
  // phpcs:ignore
217
  if ( 'visual_portfolio_go_pro' === $_GET['page'] ) {
218
  // phpcs:ignore
219
- wp_redirect( 'https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=admin_page&utm_content=2.13.0' );
220
  exit();
221
  }
222
  }
44
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
45
  );
46
 
47
+ wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '2.13.1', true );
48
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
49
+ wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', array(), '2.13.1' );
50
  wp_style_add_data( 'visual-portfolio-admin', 'rtl', 'replace' );
51
  wp_style_add_data( 'visual-portfolio-admin', 'suffix', '.min' );
52
  }
60
  );
61
 
62
  if ( 'vp_lists' === get_post_type() ) {
63
+ wp_enqueue_script( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.js', array( 'jquery' ), '2.13.1', true );
64
+ wp_enqueue_style( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.css', array(), '2.13.1' );
65
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'rtl', 'replace' );
66
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'suffix', '.min' );
67
 
216
  // phpcs:ignore
217
  if ( 'visual_portfolio_go_pro' === $_GET['page'] ) {
218
  // phpcs:ignore
219
+ wp_redirect( 'https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=admin_page&utm_content=2.13.1' );
220
  exit();
221
  }
222
  }
classes/class-ask-review.php CHANGED
@@ -93,7 +93,7 @@ class Visual_Portfolio_Ask_Review_Notice {
93
  return;
94
  }
95
 
96
- wp_enqueue_script( 'visual-portfolio-ask-review-notice', visual_portfolio()->plugin_url . 'assets/admin/js/ask-review-notice.min.js', array( 'jquery' ), '2.13.0', true );
97
  wp_localize_script(
98
  'visual-portfolio-ask-review-notice',
99
  'VPAskReviewNotice',
93
  return;
94
  }
95
 
96
+ wp_enqueue_script( 'visual-portfolio-ask-review-notice', visual_portfolio()->plugin_url . 'assets/admin/js/ask-review-notice.min.js', array( 'jquery' ), '2.13.1', true );
97
  wp_localize_script(
98
  'visual-portfolio-ask-review-notice',
99
  'VPAskReviewNotice',
classes/class-assets.php CHANGED
@@ -105,11 +105,11 @@ class Visual_Portfolio_Assets {
105
  foreach ( self::$stored_assets[ $type ] as $name => $data ) {
106
  if ( isset( $data['value'] ) && $data['value'] ) {
107
  if ( 'script' === $type ) {
108
- wp_enqueue_script( $name, '', array(), '2.13.0', true );
109
  } elseif ( is_string( $data['value'] ) ) {
110
- visual_portfolio()->include_template_style( $name, $data['value'], array(), '2.13.0' );
111
  } else {
112
- wp_enqueue_style( $name, '', array(), '2.13.0' );
113
  }
114
 
115
  self::$stored_assets[ $type ]['value'] = false;
@@ -272,13 +272,13 @@ class Visual_Portfolio_Assets {
272
 
273
  // Enqueue custom CSS.
274
  if ( ! self::$head_css_included ) {
275
- wp_register_style( $controls_css_handle, false, array(), '2.13.0' );
276
  wp_enqueue_style( $controls_css_handle );
277
  wp_add_inline_style( $controls_css_handle, $dynamic_styles ? $dynamic_styles : ' ' );
278
 
279
  // Enqueue JS instead of CSS when rendering in <body> to prevent W3C errors.
280
  } elseif ( ! wp_script_is( $controls_css_handle, 'enqueued' ) ) {
281
- wp_register_script( $controls_css_handle, false, array(), '2.13.0', true );
282
  wp_enqueue_script( $controls_css_handle );
283
  wp_add_inline_script(
284
  $controls_css_handle,
@@ -394,7 +394,7 @@ class Visual_Portfolio_Assets {
394
  // LazySizes.
395
  if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
396
  wp_register_script( 'lazysizes-object-fit-cover', visual_portfolio()->plugin_url . 'assets/js/lazysizes-object-fit-cover.min.js', array(), '4.1.0', true );
397
- wp_register_script( 'lazysizes-config', visual_portfolio()->plugin_url . 'assets/js/lazysizes-cfg.min.js', array(), '2.13.0', true );
398
  wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/vendor/lazysizes/lazysizes.min.js', array( 'lazysizes-object-fit-cover', 'lazysizes-config' ), '5.2.2', true );
399
  }
400
 
@@ -442,7 +442,7 @@ class Visual_Portfolio_Assets {
442
  );
443
 
444
  foreach ( $vp_styles as $name => $data ) {
445
- wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.13.0' );
446
  wp_style_add_data( $name, 'rtl', 'replace' );
447
  wp_style_add_data( $name, 'suffix', '.min' );
448
  }
@@ -560,7 +560,7 @@ class Visual_Portfolio_Assets {
560
  );
561
 
562
  foreach ( $vp_scripts as $name => $data ) {
563
- wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.13.0', true );
564
  }
565
 
566
  do_action( 'vpf_after_assets_register' );
105
  foreach ( self::$stored_assets[ $type ] as $name => $data ) {
106
  if ( isset( $data['value'] ) && $data['value'] ) {
107
  if ( 'script' === $type ) {
108
+ wp_enqueue_script( $name, '', array(), '2.13.1', true );
109
  } elseif ( is_string( $data['value'] ) ) {
110
+ visual_portfolio()->include_template_style( $name, $data['value'], array(), '2.13.1' );
111
  } else {
112
+ wp_enqueue_style( $name, '', array(), '2.13.1' );
113
  }
114
 
115
  self::$stored_assets[ $type ]['value'] = false;
272
 
273
  // Enqueue custom CSS.
274
  if ( ! self::$head_css_included ) {
275
+ wp_register_style( $controls_css_handle, false, array(), '2.13.1' );
276
  wp_enqueue_style( $controls_css_handle );
277
  wp_add_inline_style( $controls_css_handle, $dynamic_styles ? $dynamic_styles : ' ' );
278
 
279
  // Enqueue JS instead of CSS when rendering in <body> to prevent W3C errors.
280
  } elseif ( ! wp_script_is( $controls_css_handle, 'enqueued' ) ) {
281
+ wp_register_script( $controls_css_handle, false, array(), '2.13.1', true );
282
  wp_enqueue_script( $controls_css_handle );
283
  wp_add_inline_script(
284
  $controls_css_handle,
394
  // LazySizes.
395
  if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
396
  wp_register_script( 'lazysizes-object-fit-cover', visual_portfolio()->plugin_url . 'assets/js/lazysizes-object-fit-cover.min.js', array(), '4.1.0', true );
397
+ wp_register_script( 'lazysizes-config', visual_portfolio()->plugin_url . 'assets/js/lazysizes-cfg.min.js', array(), '2.13.1', true );
398
  wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/vendor/lazysizes/lazysizes.min.js', array( 'lazysizes-object-fit-cover', 'lazysizes-config' ), '5.2.2', true );
399
  }
400
 
442
  );
443
 
444
  foreach ( $vp_styles as $name => $data ) {
445
+ wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.13.1' );
446
  wp_style_add_data( $name, 'rtl', 'replace' );
447
  wp_style_add_data( $name, 'suffix', '.min' );
448
  }
560
  );
561
 
562
  foreach ( $vp_scripts as $name => $data ) {
563
+ wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.13.1', true );
564
  }
565
 
566
  do_action( 'vpf_after_assets_register' );
classes/class-custom-post-type.php CHANGED
@@ -252,7 +252,7 @@ class Visual_Portfolio_Custom_Post_Type {
252
 
253
  global $wp_version;
254
 
255
- $check_string = 'Plugin: 2.13.0 WP: ' . $wp_version;
256
 
257
  if ( get_option( 'visual_portfolio_updated_caps' ) === $check_string ) {
258
  return;
252
 
253
  global $wp_version;
254
 
255
+ $check_string = 'Plugin: 2.13.1 WP: ' . $wp_version;
256
 
257
  if ( get_option( 'visual_portfolio_updated_caps' ) === $check_string ) {
258
  return;
classes/class-gutenberg.php CHANGED
@@ -174,14 +174,14 @@ class Visual_Portfolio_Gutenberg_Block {
174
  'visual-portfolio-gutenberg',
175
  plugins_url( '../gutenberg/index.min.js', __FILE__ ),
176
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'jquery' ),
177
- '2.13.0',
178
  true
179
  );
180
  wp_enqueue_style(
181
  'visual-portfolio-gutenberg',
182
  plugins_url( '../gutenberg/style.min.css', __FILE__ ),
183
  array(),
184
- '2.13.0'
185
  );
186
  wp_style_add_data( 'visual-portfolio-gutenberg', 'rtl', 'replace' );
187
  wp_style_add_data( 'visual-portfolio-gutenberg', 'suffix', '.min' );
@@ -202,7 +202,7 @@ class Visual_Portfolio_Gutenberg_Block {
202
  'visual-portfolio-gutenberg-custom-post-meta',
203
  plugins_url( '../gutenberg/custom-post-meta.min.js', __FILE__ ),
204
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'wp-plugins', 'jquery' ),
205
- '2.13.0',
206
  true
207
  );
208
 
174
  'visual-portfolio-gutenberg',
175
  plugins_url( '../gutenberg/index.min.js', __FILE__ ),
176
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'jquery' ),
177
+ '2.13.1',
178
  true
179
  );
180
  wp_enqueue_style(
181
  'visual-portfolio-gutenberg',
182
  plugins_url( '../gutenberg/style.min.css', __FILE__ ),
183
  array(),
184
+ '2.13.1'
185
  );
186
  wp_style_add_data( 'visual-portfolio-gutenberg', 'rtl', 'replace' );
187
  wp_style_add_data( 'visual-portfolio-gutenberg', 'suffix', '.min' );
202
  'visual-portfolio-gutenberg-custom-post-meta',
203
  plugins_url( '../gutenberg/custom-post-meta.min.js', __FILE__ ),
204
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'wp-plugins', 'jquery' ),
205
+ '2.13.1',
206
  true
207
  );
208
 
classes/class-migration.php CHANGED
@@ -18,7 +18,7 @@ class Visual_Portfolio_Migrations {
18
  *
19
  * @var string
20
  */
21
- protected $version = '2.13.0';
22
 
23
  /**
24
  * Initial version.
18
  *
19
  * @var string
20
  */
21
+ protected $version = '2.13.1';
22
 
23
  /**
24
  * Initial version.
classes/class-preview.php CHANGED
@@ -232,7 +232,7 @@ class Visual_Portfolio_Preview {
232
 
233
  // Enqueue assets.
234
  wp_enqueue_script( 'iframe-resizer-content', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.contentWindow.min.js', array(), '4.2.11', true );
235
- wp_enqueue_script( 'visual-portfolio-preview', visual_portfolio()->plugin_url . 'assets/js/preview.min.js', array( 'jquery', 'iframe-resizer-content' ), '2.13.0', true );
236
 
237
  // Post data for script.
238
  wp_localize_script(
@@ -275,7 +275,7 @@ class Visual_Portfolio_Preview {
275
  Visual_Portfolio_Assets::enqueue( $options );
276
 
277
  // Custom styles.
278
- visual_portfolio()->include_template_style( 'visual-portfolio-preview', 'preview/style', array(), '2.13.0' );
279
 
280
  // Output template.
281
  visual_portfolio()->include_template(
232
 
233
  // Enqueue assets.
234
  wp_enqueue_script( 'iframe-resizer-content', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.contentWindow.min.js', array(), '4.2.11', true );
235
+ wp_enqueue_script( 'visual-portfolio-preview', visual_portfolio()->plugin_url . 'assets/js/preview.min.js', array( 'jquery', 'iframe-resizer-content' ), '2.13.1', true );
236
 
237
  // Post data for script.
238
  wp_localize_script(
275
  Visual_Portfolio_Assets::enqueue( $options );
276
 
277
  // Custom styles.
278
+ visual_portfolio()->include_template_style( 'visual-portfolio-preview', 'preview/style', array(), '2.13.1' );
279
 
280
  // Output template.
281
  visual_portfolio()->include_template(
classes/class-settings.php CHANGED
@@ -591,7 +591,7 @@ class Visual_Portfolio_Settings {
591
  <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
592
  <div>
593
  <p>' . esc_html__( 'Protect your works using watermarks', 'visual-portfolio' ) . '</p>
594
- <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.13.0">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
595
  </div>
596
  </div>
597
  ',
@@ -606,7 +606,7 @@ class Visual_Portfolio_Settings {
606
  <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
607
  <div>
608
  <p>' . esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ) . '</p>
609
- <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.13.0">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
610
  </div>
611
  </div>
612
  ',
@@ -621,7 +621,7 @@ class Visual_Portfolio_Settings {
621
  <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
622
  <div>
623
  <p>' . esc_html__( 'Remove our plugin brand and logos from Front and Admin areas', 'visual-portfolio' ) . '</p>
624
- <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.13.0">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
625
  </div>
626
  </div>
627
  ',
591
  <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
592
  <div>
593
  <p>' . esc_html__( 'Protect your works using watermarks', 'visual-portfolio' ) . '</p>
594
+ <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.13.1">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
595
  </div>
596
  </div>
597
  ',
606
  <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
607
  <div>
608
  <p>' . esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ) . '</p>
609
+ <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.13.1">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
610
  </div>
611
  </div>
612
  ',
621
  <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
622
  <div>
623
  <p>' . esc_html__( 'Remove our plugin brand and logos from Front and Admin areas', 'visual-portfolio' ) . '</p>
624
+ <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.13.1">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
625
  </div>
626
  </div>
627
  ',
classes/class-supported-themes.php CHANGED
@@ -80,7 +80,7 @@ class Visual_Portfolio_Supported_Themes {
80
  public function wp_enqueue_scripts() {
81
  $theme_compat = $this->get_theme_compatibility_style();
82
  if ( $theme_compat ) {
83
- wp_enqueue_style( $theme_compat['name'], $theme_compat['url'], array(), '2.13.0' );
84
  wp_style_add_data( $theme_compat['name'], 'rtl', 'replace' );
85
  wp_style_add_data( $theme_compat['name'], 'suffix', '.min' );
86
  }
80
  public function wp_enqueue_scripts() {
81
  $theme_compat = $this->get_theme_compatibility_style();
82
  if ( $theme_compat ) {
83
+ wp_enqueue_style( $theme_compat['name'], $theme_compat['url'], array(), '2.13.1' );
84
  wp_style_add_data( $theme_compat['name'], 'rtl', 'replace' );
85
  wp_style_add_data( $theme_compat['name'], 'suffix', '.min' );
86
  }
classes/class-welcome-screen.php CHANGED
@@ -88,7 +88,7 @@ class Visual_Portfolio_Welcome_Screen {
88
  <div>
89
  <?php
90
  // translators: %s - pro link.
91
- echo sprintf( esc_html__( 'Want to get more power with Pro? Visit %s', 'visual-portfolio' ), '<a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=pro&utm_content=2.13.0">visualportfolio.co/pro</a>' );
92
  ?>
93
  </div>
94
  </div>
@@ -146,8 +146,8 @@ class Visual_Portfolio_Welcome_Screen {
146
  <hr>
147
 
148
  <div class="vpf-welcome-content-buttons">
149
- <a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=demo&utm_content=2.13.0"><?php echo esc_html__( 'More Features', 'visual-portfolio' ); ?></a>
150
- <a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/documentation/getting-started/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=docs&utm_content=2.13.0"><?php echo esc_html__( 'Documentation', 'visual-portfolio' ); ?></a>
151
  </div>
152
  </div>
153
 
@@ -169,7 +169,7 @@ class Visual_Portfolio_Welcome_Screen {
169
  <li><?php echo esc_html__( 'White Label', 'visual-portfolio' ); ?></li>
170
  <li><?php echo esc_html__( 'And much more...', 'visual-portfolio' ); ?></li>
171
  </ul>
172
- <a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=pro&utm_content=2.13.0"><?php echo esc_html__( 'Upgrade to PRO Now', 'visual-portfolio' ); ?></a>
173
  </div>
174
  </div>
175
  <?php
88
  <div>
89
  <?php
90
  // translators: %s - pro link.
91
+ echo sprintf( esc_html__( 'Want to get more power with Pro? Visit %s', 'visual-portfolio' ), '<a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=pro&utm_content=2.13.1">visualportfolio.co/pro</a>' );
92
  ?>
93
  </div>
94
  </div>
146
  <hr>
147
 
148
  <div class="vpf-welcome-content-buttons">
149
+ <a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=demo&utm_content=2.13.1"><?php echo esc_html__( 'More Features', 'visual-portfolio' ); ?></a>
150
+ <a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/documentation/getting-started/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=docs&utm_content=2.13.1"><?php echo esc_html__( 'Documentation', 'visual-portfolio' ); ?></a>
151
  </div>
152
  </div>
153
 
169
  <li><?php echo esc_html__( 'White Label', 'visual-portfolio' ); ?></li>
170
  <li><?php echo esc_html__( 'And much more...', 'visual-portfolio' ); ?></li>
171
  </ul>
172
+ <a target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=plugin_welcome&utm_medium=link&utm_campaign=pro&utm_content=2.13.1"><?php echo esc_html__( 'Upgrade to PRO Now', 'visual-portfolio' ); ?></a>
173
  </div>
174
  </div>
175
  <?php
gutenberg/components/controls-render/index.js CHANGED
@@ -474,7 +474,7 @@ ControlsRender.Control = function( props ) {
474
  { renderControlHelp ? (
475
  <p>{ renderControlHelp }</p>
476
  ) : '' }
477
- <ProNote.Button target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&amp;utm_medium=link&amp;utm_campaign=block_settings&amp;utm_content=2.13.0">
478
  { __( 'Read More', 'visual-portfolio' ) }
479
  </ProNote.Button>
480
  </ProNote>
474
  { renderControlHelp ? (
475
  <p>{ renderControlHelp }</p>
476
  ) : '' }
477
+ <ProNote.Button target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&amp;utm_medium=link&amp;utm_campaign=block_settings&amp;utm_content=2.13.1">
478
  { __( 'Read More', 'visual-portfolio' ) }
479
  </ProNote.Button>
480
  </ProNote>
readme.md CHANGED
@@ -5,7 +5,7 @@
5
  * Requires at least: 5.4
6
  * Tested up to: 5.8
7
  * Requires PHP: 5.5.9
8
- * Stable tag: 2.13.0
9
  * License: GPLv2 or later
10
  * License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
11
 
@@ -310,6 +310,10 @@ For more information, feel free to visit [Visual Portfolio official website](htt
310
 
311
  ## Changelog ##
312
 
 
 
 
 
313
  = 2.13.0 =
314
 
315
  * added Photo Proofing support in Pro plugin <https://visualportfolio.co/documentation/proofing/>
5
  * Requires at least: 5.4
6
  * Tested up to: 5.8
7
  * Requires PHP: 5.5.9
8
+ * Stable tag: 2.13.1
9
  * License: GPLv2 or later
10
  * License URI: <http://www.gnu.org/licenses/gpl-2.0.html>
11
 
310
 
311
  ## Changelog ##
312
 
313
+ = 2.13.1 =
314
+
315
+ * fixed possible bug with inaccessible links on images in the Classic style
316
+
317
  = 2.13.0 =
318
 
319
  * added Photo Proofing support in Pro plugin <https://visualportfolio.co/documentation/proofing/>