Version Description
- Fixed a bug with the "Hide Video Thumbnails" option not working
- Minor bug fixes
Download this release
Release Info
Developer | WPZOOM |
Plugin | Instagram Widget by WPZOOM |
Version | 2.0.13 |
Comparing to | |
See all releases |
Code changes from version 2.0.12 to 2.0.13
class-wpzoom-instagram-widget-display.php
CHANGED
@@ -267,7 +267,16 @@ class Wpzoom_Instagram_Widget_Display {
|
|
267 |
$wrapper_classes .= ' perpage-' . $perpage;
|
268 |
}
|
269 |
|
270 |
-
$items = $this->api->get_items(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
$errors = $this->api->errors->get_error_messages();
|
272 |
|
273 |
$output .= '<div class="zoom-instagram' . $wrapper_classes . '">';
|
@@ -389,7 +398,7 @@ class Wpzoom_Instagram_Widget_Display {
|
|
389 |
$show_media_type_icons = isset( $args['show-media-type-icons'] ) ? boolval( $args['show-media-type-icons'] ) : true;
|
390 |
$show_media_type_icons_on_hover = isset( $args['hover-media-type-icons'] ) ? boolval( $args['hover-media-type-icons'] ) : true;
|
391 |
$show_date_on_hover = isset( $args['hover-date'] ) ? boolval( $args['hover-date'] ) : true;
|
392 |
-
$hide_video_thumbs = isset( $args['hide-video-thumbs'] ) ? boolval( $args['hide-video-thumbs'] ) :
|
393 |
$image_size = isset( $args['image-size'] ) && in_array( $args['image-size'], array( 'thumbnail', 'low_resolution', 'standard_resolution' ) ) ? $args['image-size'] : 'low_resolution';
|
394 |
$small_class = $image_size <= 180 ? 'small' : '';
|
395 |
$svg_icons = plugin_dir_url( __FILE__ ) . 'dist/images/frontend/wpzoom-instagram-icons.svg';
|
@@ -467,7 +476,7 @@ class Wpzoom_Instagram_Widget_Display {
|
|
467 |
|
468 |
$output .= '<li class="zoom-instagram-widget__item' . $classes . '" ' . $inline_attrs . '><div class="zoom-instagram-widget__item-inner-wrap">';
|
469 |
|
470 |
-
$output .= sprintf( '<img src="%1$s" width="%
|
471 |
|
472 |
if ( $show_overlay ) {
|
473 |
$output .= '<div class="hover-layout zoom-instagram-widget__overlay zoom-instagram-widget__black ' . $small_class . '">';
|
267 |
$wrapper_classes .= ' perpage-' . $perpage;
|
268 |
}
|
269 |
|
270 |
+
$items = $this->api->get_items(
|
271 |
+
array(
|
272 |
+
'image-limit' => $amount,
|
273 |
+
'image-resolution' => $image_size,
|
274 |
+
'image-width' => $image_width,
|
275 |
+
'include-pagination' => true,
|
276 |
+
'disable-video-thumbs' => $hide_video_thumbs,
|
277 |
+
'bypass-transient' => $preview
|
278 |
+
)
|
279 |
+
);
|
280 |
$errors = $this->api->errors->get_error_messages();
|
281 |
|
282 |
$output .= '<div class="zoom-instagram' . $wrapper_classes . '">';
|
398 |
$show_media_type_icons = isset( $args['show-media-type-icons'] ) ? boolval( $args['show-media-type-icons'] ) : true;
|
399 |
$show_media_type_icons_on_hover = isset( $args['hover-media-type-icons'] ) ? boolval( $args['hover-media-type-icons'] ) : true;
|
400 |
$show_date_on_hover = isset( $args['hover-date'] ) ? boolval( $args['hover-date'] ) : true;
|
401 |
+
$hide_video_thumbs = isset( $args['hide-video-thumbs'] ) ? boolval( $args['hide-video-thumbs'] ) : false;
|
402 |
$image_size = isset( $args['image-size'] ) && in_array( $args['image-size'], array( 'thumbnail', 'low_resolution', 'standard_resolution' ) ) ? $args['image-size'] : 'low_resolution';
|
403 |
$small_class = $image_size <= 180 ? 'small' : '';
|
404 |
$svg_icons = plugin_dir_url( __FILE__ ) . 'dist/images/frontend/wpzoom-instagram-icons.svg';
|
476 |
|
477 |
$output .= '<li class="zoom-instagram-widget__item' . $classes . '" ' . $inline_attrs . '><div class="zoom-instagram-widget__item-inner-wrap">';
|
478 |
|
479 |
+
$output .= sprintf( '<img src="%1$s" width="%2$d" height="%3$d" alt="%4$s" />', esc_url( $src ), esc_attr( $width ), esc_attr( $height ), esc_attr( $alt ) );
|
480 |
|
481 |
if ( $show_overlay ) {
|
482 |
$output .= '<div class="hover-layout zoom-instagram-widget__overlay zoom-instagram-widget__black ' . $small_class . '">';
|
class-wpzoom-instagram-widget-settings.php
CHANGED
@@ -64,7 +64,7 @@ class WPZOOM_Instagram_Widget_Settings {
|
|
64 |
'show-overlay' => array( 'type' => 'boolean', 'default' => true ),
|
65 |
'lazy-load' => array( 'type' => 'boolean', 'default' => true ),
|
66 |
'lightbox' => array( 'type' => 'boolean', 'default' => true ),
|
67 |
-
'hide-video-thumbs' => array( 'type' => 'boolean', 'default' =>
|
68 |
'show-media-type-icons' => array( 'type' => 'boolean', 'default' => true ),
|
69 |
'hover-media-type-icons' => array( 'type' => 'boolean', 'default' => true ),
|
70 |
'hover-link' => array( 'type' => 'boolean', 'default' => true ),
|
64 |
'show-overlay' => array( 'type' => 'boolean', 'default' => true ),
|
65 |
'lazy-load' => array( 'type' => 'boolean', 'default' => true ),
|
66 |
'lightbox' => array( 'type' => 'boolean', 'default' => true ),
|
67 |
+
'hide-video-thumbs' => array( 'type' => 'boolean', 'default' => false ),
|
68 |
'show-media-type-icons' => array( 'type' => 'boolean', 'default' => true ),
|
69 |
'hover-media-type-icons' => array( 'type' => 'boolean', 'default' => true ),
|
70 |
'hover-link' => array( 'type' => 'boolean', 'default' => true ),
|
instagram-widget-by-wpzoom.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WPZOOM Instagram Widget & Block
|
4 |
* Plugin URI: https://www.wpzoom.com/plugins/instagram-widget/
|
5 |
* Description: Instagram Widget is a customizable and responsive plugin, made to help you gain even more followers by showcasing your Instagram feed on your WordPress website.
|
6 |
-
* Version: 2.0.
|
7 |
* Author: WPZOOM
|
8 |
* Author URI: https://www.wpzoom.com/
|
9 |
* Text Domain: instagram-widget-by-wpzoom
|
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'WPZOOM_INSTAGRAM_VERSION' ) ) {
|
22 |
-
define( 'WPZOOM_INSTAGRAM_VERSION', '2.0.
|
23 |
}
|
24 |
|
25 |
require_once plugin_dir_path( __FILE__ ) . 'class-wpzoom-instagram-image-uploader.php';
|
3 |
* Plugin Name: WPZOOM Instagram Widget & Block
|
4 |
* Plugin URI: https://www.wpzoom.com/plugins/instagram-widget/
|
5 |
* Description: Instagram Widget is a customizable and responsive plugin, made to help you gain even more followers by showcasing your Instagram feed on your WordPress website.
|
6 |
+
* Version: 2.0.13
|
7 |
* Author: WPZOOM
|
8 |
* Author URI: https://www.wpzoom.com/
|
9 |
* Text Domain: instagram-widget-by-wpzoom
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'WPZOOM_INSTAGRAM_VERSION' ) ) {
|
22 |
+
define( 'WPZOOM_INSTAGRAM_VERSION', '2.0.13' );
|
23 |
}
|
24 |
|
25 |
require_once plugin_dir_path( __FILE__ ) . 'class-wpzoom-instagram-image-uploader.php';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: instagram, instagram feed, instagram gallery, instagram photos, instagram
|
|
5 |
Requires at least: 5.5
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 7.2
|
8 |
-
Stable tag:
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -99,6 +99,10 @@ Yes, you can find the documentation for this plugin with more instructions on ou
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 2.0.12 =
|
103 |
* Improvements to the Full-width style
|
104 |
* Alignment option now available in the Instagram Block
|
5 |
Requires at least: 5.5
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 7.2
|
8 |
+
Stable tag: 2.0.13
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 2.0.13 =
|
103 |
+
* Fixed a bug with the "Hide Video Thumbnails" option not working
|
104 |
+
* Minor bug fixes
|
105 |
+
|
106 |
= 2.0.12 =
|
107 |
* Improvements to the Full-width style
|
108 |
* Alignment option now available in the Instagram Block
|