Version Description
- Addition of the image alt tag for the images.
Download this release
Release Info
Developer | Access Keys |
Plugin | AccessPress Instagram Feed |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.2.5
accesspress-instagram-feed.php
CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
4 |
Plugin name: AccessPress Instagram Feed
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
|
6 |
Description: A plugin to add various instagram widgets with dynamic configuration options.
|
7 |
-
Version: 2.2.
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:accesspress-instagram-feed
|
@@ -14,7 +14,7 @@ License: GPLv2 or later
|
|
14 |
|
15 |
//Decleration of the necessary constants for plugin
|
16 |
if( !defined( 'APIF_VERSION' ) ) {
|
17 |
-
define( 'APIF_VERSION', '2.2.
|
18 |
}
|
19 |
|
20 |
if( !defined( 'APIF_IMAGE_DIR' ) ) {
|
@@ -51,9 +51,9 @@ include_once( 'inc/backend/widget.php' );
|
|
51 |
include_once( 'inc/backend/widgetside.php' );
|
52 |
|
53 |
if( !class_exists( 'IF_Class' ) ) {
|
54 |
-
|
55 |
class IF_Class {
|
56 |
-
|
57 |
var $apif_settings;
|
58 |
/**
|
59 |
* Initializes the plugin functions
|
@@ -186,7 +186,7 @@ if( !class_exists( 'IF_Class' ) ) {
|
|
186 |
ob_get_clean();
|
187 |
return $html;
|
188 |
}
|
189 |
-
|
190 |
//slider shortcode
|
191 |
function ap_instagram_slider() {
|
192 |
ob_start();
|
@@ -204,5 +204,5 @@ if( !class_exists( 'IF_Class' ) ) {
|
|
204 |
}
|
205 |
}
|
206 |
$sc_object = new IF_Class(); //initialization of plugin
|
207 |
-
|
208 |
}
|
4 |
Plugin name: AccessPress Instagram Feed
|
5 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed/
|
6 |
Description: A plugin to add various instagram widgets with dynamic configuration options.
|
7 |
+
Version: 2.2.5
|
8 |
Author: AccessPress Themes
|
9 |
Author URI: http://accesspressthemes.com
|
10 |
Text Domain:accesspress-instagram-feed
|
14 |
|
15 |
//Decleration of the necessary constants for plugin
|
16 |
if( !defined( 'APIF_VERSION' ) ) {
|
17 |
+
define( 'APIF_VERSION', '2.2.5' );
|
18 |
}
|
19 |
|
20 |
if( !defined( 'APIF_IMAGE_DIR' ) ) {
|
51 |
include_once( 'inc/backend/widgetside.php' );
|
52 |
|
53 |
if( !class_exists( 'IF_Class' ) ) {
|
54 |
+
|
55 |
class IF_Class {
|
56 |
+
|
57 |
var $apif_settings;
|
58 |
/**
|
59 |
* Initializes the plugin functions
|
186 |
ob_get_clean();
|
187 |
return $html;
|
188 |
}
|
189 |
+
|
190 |
//slider shortcode
|
191 |
function ap_instagram_slider() {
|
192 |
ob_start();
|
204 |
}
|
205 |
}
|
206 |
$sc_object = new IF_Class(); //initialization of plugin
|
207 |
+
|
208 |
}
|
inc/frontend/instagram-feed.php
CHANGED
@@ -43,6 +43,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
43 |
break;
|
44 |
}
|
45 |
$j++;
|
|
|
46 |
$img = $vm['images']['standard_resolution']['url'];
|
47 |
?>
|
48 |
<?php
|
@@ -70,8 +71,8 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
70 |
?>
|
71 |
<div class="featimg">
|
72 |
<a class="example-image-link" href="<?php echo esc_url($img); ?>" data-lightbox="example-set">
|
73 |
-
<img class="the-thumb" src="<?php echo esc_url($image); ?>">
|
74 |
-
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
|
75 |
</a>
|
76 |
</div>
|
77 |
<a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
|
@@ -132,9 +133,11 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
132 |
}
|
133 |
$j++;
|
134 |
$imgslider = $vm['images']['standard_resolution']['url'];
|
|
|
|
|
135 |
?>
|
136 |
<div class="item">
|
137 |
-
<img src="<?php echo esc_url($imgslider); ?>" />
|
138 |
<?php if ($image_like == '1') : ?>
|
139 |
<!-- Image like count section start -->
|
140 |
<span class="instagram_like_count">
|
@@ -166,6 +169,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
166 |
<ul>
|
167 |
<?php
|
168 |
foreach ($ins_media['data'] as $vm):
|
|
|
169 |
$img = $vm['images']['standard_resolution']['url'];
|
170 |
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
171 |
$image = $vm['images']['standard_resolution']['url'];
|
43 |
break;
|
44 |
}
|
45 |
$j++;
|
46 |
+
$img_alt = $vm['caption']['text'];
|
47 |
$img = $vm['images']['standard_resolution']['url'];
|
48 |
?>
|
49 |
<?php
|
71 |
?>
|
72 |
<div class="featimg">
|
73 |
<a class="example-image-link" href="<?php echo esc_url($img); ?>" data-lightbox="example-set">
|
74 |
+
<img class="the-thumb" src="<?php echo esc_url($image); ?>" alt='<?php echo esc_attr( $img_alt ); ?>'>
|
75 |
+
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>" alt='Transparent Image'>
|
76 |
</a>
|
77 |
</div>
|
78 |
<a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
|
133 |
}
|
134 |
$j++;
|
135 |
$imgslider = $vm['images']['standard_resolution']['url'];
|
136 |
+
$img_alt = $vm['caption']['text'];
|
137 |
+
echo $img_alt;
|
138 |
?>
|
139 |
<div class="item">
|
140 |
+
<img src="<?php echo esc_url($imgslider); ?>" alt='<?php echo esc_attr( $img_alt ); ?>'/>
|
141 |
<?php if ($image_like == '1') : ?>
|
142 |
<!-- Image like count section start -->
|
143 |
<span class="instagram_like_count">
|
169 |
<ul>
|
170 |
<?php
|
171 |
foreach ($ins_media['data'] as $vm):
|
172 |
+
$img_alt = $vm['caption']['text'];
|
173 |
$img = $vm['images']['standard_resolution']['url'];
|
174 |
$image_url = APIF_IMAGE_DIR . '/image-square.png';
|
175 |
$image = $vm['images']['standard_resolution']['url'];
|
inc/frontend/instagram-masaic-light.php
CHANGED
@@ -46,6 +46,7 @@ $rand_no = rand();
|
|
46 |
}
|
47 |
$j++;
|
48 |
$img = $vm['images']['standard_resolution']['url'];
|
|
|
49 |
?>
|
50 |
<?php
|
51 |
if ($i <= 2 || $i == 6 || $i == 7) {
|
@@ -69,19 +70,19 @@ $rand_no = rand();
|
|
69 |
<header class="thumb-elem-header">
|
70 |
<div class="featimg">
|
71 |
<a class="example-image-link" href="<?php echo esc_url($img); ?>" data-lightbox="example-set">
|
72 |
-
<img class="the-thumb" src="<?php echo esc_url($image); ?>">
|
73 |
-
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
|
74 |
</a>
|
75 |
</div>
|
76 |
<a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
|
77 |
<span class="follow">Follow Me</span>
|
78 |
<span class="follow_icon">
|
79 |
-
<img src="<?php echo $flow_icon; ?>"/>
|
80 |
</span>
|
81 |
</a>
|
82 |
</header>
|
83 |
<?php if ($image_like == '1') : ?>
|
84 |
-
<!-- Image like
|
85 |
<span class="instagram_like_count">
|
86 |
<p class="instagram_imge_like">
|
87 |
<span class="insta like_image">
|
@@ -90,7 +91,7 @@ $rand_no = rand();
|
|
90 |
<span class="count"><?php echo $likes = $vm['likes']['count']; ?></span>
|
91 |
</p>
|
92 |
</span>
|
93 |
-
<!-- Image like
|
94 |
<?php endif; ?>
|
95 |
</div>
|
96 |
</div>
|
46 |
}
|
47 |
$j++;
|
48 |
$img = $vm['images']['standard_resolution']['url'];
|
49 |
+
$img_alt = $vm['caption']['text'];
|
50 |
?>
|
51 |
<?php
|
52 |
if ($i <= 2 || $i == 6 || $i == 7) {
|
70 |
<header class="thumb-elem-header">
|
71 |
<div class="featimg">
|
72 |
<a class="example-image-link" href="<?php echo esc_url($img); ?>" data-lightbox="example-set">
|
73 |
+
<img class="the-thumb" src="<?php echo esc_url($image); ?>" alt='<?php echo esc_attr( $img_alt ); ?>'>
|
74 |
+
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>" alt='Transparent Image'>
|
75 |
</a>
|
76 |
</div>
|
77 |
<a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
|
78 |
<span class="follow">Follow Me</span>
|
79 |
<span class="follow_icon">
|
80 |
+
<img src="<?php echo $flow_icon; ?>" alt='Follow'/>
|
81 |
</span>
|
82 |
</a>
|
83 |
</header>
|
84 |
<?php if ($image_like == '1') : ?>
|
85 |
+
<!-- Image like count section start -->
|
86 |
<span class="instagram_like_count">
|
87 |
<p class="instagram_imge_like">
|
88 |
<span class="insta like_image">
|
91 |
<span class="count"><?php echo $likes = $vm['likes']['count']; ?></span>
|
92 |
</p>
|
93 |
</span>
|
94 |
+
<!-- Image like count section end -->
|
95 |
<?php endif; ?>
|
96 |
</div>
|
97 |
</div>
|
inc/frontend/instagram-slider.php
CHANGED
@@ -40,9 +40,10 @@ global $apif_settings, $insta;
|
|
40 |
}
|
41 |
$j++;
|
42 |
$imgslider = $vm['images']['standard_resolution']['url'];
|
|
|
43 |
?>
|
44 |
<div class="item">
|
45 |
-
<img src="<?php echo esc_url($imgslider); ?>" />
|
46 |
<?php if ($image_like == '1') : ?>
|
47 |
<!-- Image like cound section start -->
|
48 |
<span class="instagram_like_count">
|
40 |
}
|
41 |
$j++;
|
42 |
$imgslider = $vm['images']['standard_resolution']['url'];
|
43 |
+
$img_alt = $vm['caption']['text'];
|
44 |
?>
|
45 |
<div class="item">
|
46 |
+
<img src="<?php echo esc_url($imgslider); ?>" alt='<?php echo esc_attr( $img_alt ); ?>'/>
|
47 |
<?php if ($image_like == '1') : ?>
|
48 |
<!-- Image like cound section start -->
|
49 |
<span class="instagram_like_count">
|
inc/frontend/instagram-widget.php
CHANGED
@@ -31,7 +31,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
31 |
$j = 0;
|
32 |
if(isset($ins_media['meta']['error_message'])){
|
33 |
?>
|
34 |
-
<h1 class="widget-title-insta"><span><?php echo $ins_media['meta']['error_message']; ?></span></h1>
|
35 |
<?php
|
36 |
}else if (is_array($ins_media['data']) || is_object($ins_media['data'])) {
|
37 |
foreach ($ins_media['data'] as $vm):
|
@@ -40,6 +40,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
40 |
}
|
41 |
$j++;
|
42 |
$img = $vm['images']['standard_resolution']['url'];
|
|
|
43 |
?>
|
44 |
<?php
|
45 |
if ($i <= 2 || $i == 6 || $i == 7) {
|
@@ -62,13 +63,13 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
|
|
62 |
<div class="thumb-elem large-mosaic-elem small-mosaic-elem hovermove large-mosaic-elem">
|
63 |
<header class="thumb-elem-header">
|
64 |
<div class="featimg">
|
65 |
-
<img class="the-thumb" src="<?php echo esc_url($image); ?>">
|
66 |
-
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>">
|
67 |
</div>
|
68 |
<a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
|
69 |
<span class="follow">Follow Me</span>
|
70 |
<span class="follow_icon">
|
71 |
-
<img src="<?php echo $flow_icon; ?>"/>
|
72 |
</span>
|
73 |
</a>
|
74 |
</header>
|
31 |
$j = 0;
|
32 |
if(isset($ins_media['meta']['error_message'])){
|
33 |
?>
|
34 |
+
<h1 class="widget-title-insta"><span><?php echo $ins_media['meta']['error_message']; ?></span></h1>
|
35 |
<?php
|
36 |
}else if (is_array($ins_media['data']) || is_object($ins_media['data'])) {
|
37 |
foreach ($ins_media['data'] as $vm):
|
40 |
}
|
41 |
$j++;
|
42 |
$img = $vm['images']['standard_resolution']['url'];
|
43 |
+
$img_alt = $vm['caption']['text'];
|
44 |
?>
|
45 |
<?php
|
46 |
if ($i <= 2 || $i == 6 || $i == 7) {
|
63 |
<div class="thumb-elem large-mosaic-elem small-mosaic-elem hovermove large-mosaic-elem">
|
64 |
<header class="thumb-elem-header">
|
65 |
<div class="featimg">
|
66 |
+
<img class="the-thumb" src="<?php echo esc_url($image); ?>" alt='<?php echo esc_attr( $img_alt ); ?>'>
|
67 |
+
<img class="transparent-image" src="<?php echo esc_url($image_url); ?>" alt='Transparent Image'>
|
68 |
</div>
|
69 |
<a href="https://instagram.com/<?php echo $username; ?>" target="_blank" class="image-hover">
|
70 |
<span class="follow">Follow Me</span>
|
71 |
<span class="follow_icon">
|
72 |
+
<img src="<?php echo $flow_icon; ?>" alt="Follow"/>
|
73 |
</span>
|
74 |
</a>
|
75 |
</header>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: instagram, instagram feed, instagram tag, instagram slider, instagarm mosa
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -138,6 +138,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
138 |
5. Backend Display Settings Section
|
139 |
|
140 |
== Changelog ==
|
|
|
|
|
|
|
141 |
= 2.2.4 =
|
142 |
* Added info to get the Instagram user id in the plugin's instagram settings.
|
143 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 2.2.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
138 |
5. Backend Display Settings Section
|
139 |
|
140 |
== Changelog ==
|
141 |
+
= 2.2.5 =
|
142 |
+
* Addition of the image alt tag for the images.
|
143 |
+
|
144 |
= 2.2.4 =
|
145 |
* Added info to get the Instagram user id in the plugin's instagram settings.
|
146 |
|