Version Description
Released on: 18th November, 2019
Features:
- Fetch new Posts feature added.
Fixes:
- Minor bug fixes.
Download this release
Release Info
Developer | blossomthemes |
Plugin | BlossomThemes Social Feed |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.9 to 1.2.0
- README.txt +17 -2
- admin/class-blossomthemes-instagram-feed-admin.php +10 -2
- admin/css/blossomthemes-instagram-feed-admin.min.css +116 -1
- admin/js/blossomthemes-instagram-feed-admin.min.js +32 -1
- blossomthemes-instagram-feed.php +2 -2
- includes/class-blossomthemes-instagram-feed-ajax.php +58 -0
- includes/class-blossomthemes-instagram-feed-settings.php +5 -4
- includes/class-blossomthemes-instagram-feed-shortcodes.php +1 -1
- includes/class-blossomthemes-instagram-feed.php +5 -0
- includes/template/backend/general.php +57 -7
- languages/blossomthemes-instagram-feed.pot +261 -252
- public/js/blossomthemes-instagram-feed-public.min.js +16 -1
README.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: blossomthemes
|
|
3 |
Donate link: https://blossomthemes.com
|
4 |
Tags: instagram, popup, responsive, insta widget
|
5 |
Requires at least: 4.3
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -66,6 +66,21 @@ If you do not enter the Instagram username in the widget, the username assigned
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.1.9 =
|
70 |
* Feature: Posts fetch interval added
|
71 |
* Improvement: Split the plugin settings page into general and usage template
|
3 |
Donate link: https://blossomthemes.com
|
4 |
Tags: instagram, popup, responsive, insta widget
|
5 |
Requires at least: 4.3
|
6 |
+
Tested up to: 5.3
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.2.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.2.0 =
|
70 |
+
|
71 |
+
Released on: 18th November, 2019
|
72 |
+
|
73 |
+
Features:
|
74 |
+
|
75 |
+
* Fetch new Posts feature added.
|
76 |
+
|
77 |
+
Fixes:
|
78 |
+
|
79 |
+
* Minor bug fixes.
|
80 |
+
|
81 |
+
= 1.1.10 =
|
82 |
+
* Fix: Initial Instagram connection issue
|
83 |
+
|
84 |
= 1.1.9 =
|
85 |
* Feature: Posts fetch interval added
|
86 |
* Improvement: Split the plugin settings page into general and usage template
|
admin/class-blossomthemes-instagram-feed-admin.php
CHANGED
@@ -96,7 +96,12 @@ class Blossomthemes_Instagram_Feed_Admin {
|
|
96 |
* class.
|
97 |
*/
|
98 |
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
}
|
102 |
|
@@ -133,6 +138,9 @@ class Blossomthemes_Instagram_Feed_Admin {
|
|
133 |
public function sanitize( $input ) {
|
134 |
$result = array();
|
135 |
|
|
|
|
|
|
|
136 |
$result['access-token'] = sanitize_text_field( $input['access-token'] );
|
137 |
|
138 |
$validation_result = Blossomthemes_Instagram_Feed_API::is_access_token_valid( $result['access-token'] );
|
@@ -172,7 +180,7 @@ class Blossomthemes_Instagram_Feed_Admin {
|
|
172 |
if ( $invalid_access_token ): ?>
|
173 |
<div class="error notice is-dismissible">
|
174 |
<p>
|
175 |
-
<?php _e( 'BlossomThemes: Invalid or expired
|
176 |
</p>
|
177 |
</div>
|
178 |
|
96 |
* class.
|
97 |
*/
|
98 |
|
99 |
+
|
100 |
+
wp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/blossomthemes-instagram-feed-admin.min.js', array( 'jquery' ), $this->version, false );
|
101 |
+
wp_localize_script( $this->plugin_name, 'blossomthemesInstagramFeed', array(
|
102 |
+
'ajaxurl' => admin_url('admin-ajax.php')
|
103 |
+
));
|
104 |
+
wp_enqueue_script( $this->plugin_name);
|
105 |
|
106 |
}
|
107 |
|
138 |
public function sanitize( $input ) {
|
139 |
$result = array();
|
140 |
|
141 |
+
// Delete user feed cache.
|
142 |
+
delete_option( 'blossomthemes_instagram_user_feed' );
|
143 |
+
|
144 |
$result['access-token'] = sanitize_text_field( $input['access-token'] );
|
145 |
|
146 |
$validation_result = Blossomthemes_Instagram_Feed_API::is_access_token_valid( $result['access-token'] );
|
180 |
if ( $invalid_access_token ): ?>
|
181 |
<div class="error notice is-dismissible">
|
182 |
<p>
|
183 |
+
<?php _e( 'BlossomThemes: Invalid or expired Instagram Access Token. Please reconnect Instagram.', 'blossomthemes-instagram-feed' ); ?>
|
184 |
</p>
|
185 |
</div>
|
186 |
|
admin/css/blossomthemes-instagram-feed-admin.min.css
CHANGED
@@ -1 +1,116 @@
|
|
1 |
-
.btss-backend-sidebar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.btss-backend-sidebar {
|
2 |
+
display: inline-block;
|
3 |
+
float: right;
|
4 |
+
width: 20%
|
5 |
+
}
|
6 |
+
|
7 |
+
.btss-backend-sidebar .thumbnail {
|
8 |
+
padding: 12px;
|
9 |
+
line-height: 1.4em;
|
10 |
+
font-size: 13px;
|
11 |
+
border: 1px solid #e5e5e5;
|
12 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
|
13 |
+
background: #fff;
|
14 |
+
margin-bottom: 20px
|
15 |
+
}
|
16 |
+
|
17 |
+
form.btif-settings-form {
|
18 |
+
background: #fff;
|
19 |
+
padding: 10px;
|
20 |
+
width: 78%;
|
21 |
+
float: left
|
22 |
+
}
|
23 |
+
|
24 |
+
.thumbnail-review {
|
25 |
+
background: #fff;
|
26 |
+
padding: 12px;
|
27 |
+
margin: 0
|
28 |
+
}
|
29 |
+
|
30 |
+
.btif-option-field-wrap label {
|
31 |
+
margin: 10px 15px 10px 0;
|
32 |
+
display: inline-block;
|
33 |
+
font-weight: 600
|
34 |
+
}
|
35 |
+
|
36 |
+
.btif-inner-wrap .nav-tab-active,
|
37 |
+
.btif-inner-wrap .nav-tab-active:focus,
|
38 |
+
.btif-inner-wrap .nav-tab-active:focus:active,
|
39 |
+
.btif-inner-wrap .nav-tab-active:hover {
|
40 |
+
border-bottom: 1px solid #fff;
|
41 |
+
background: #fff;
|
42 |
+
color: #000
|
43 |
+
}
|
44 |
+
|
45 |
+
.btif-inner-wrap {
|
46 |
+
background: #fff;
|
47 |
+
width: 77.5%;
|
48 |
+
float: left;
|
49 |
+
padding: 15px;
|
50 |
+
border: 1px solid #ddd
|
51 |
+
}
|
52 |
+
|
53 |
+
.blossomthemes-instagram-feed-settings {
|
54 |
+
display: none
|
55 |
+
}
|
56 |
+
|
57 |
+
.blossomthemes-instagram-feed-settings.general {
|
58 |
+
display: block
|
59 |
+
}
|
60 |
+
|
61 |
+
div#blossomthemes-instagram-feed-settings-usage .shortcode-usage {
|
62 |
+
width: 30%
|
63 |
+
}
|
64 |
+
|
65 |
+
.btif-option-field-wrap label {
|
66 |
+
width: 150px;
|
67 |
+
padding-right: 20px;
|
68 |
+
margin: 0
|
69 |
+
}
|
70 |
+
|
71 |
+
.btif-option-field-wrap input[type="text"],
|
72 |
+
.btif-option-field-wrap input[type="number"],
|
73 |
+
.btif-option-field-wrap select {
|
74 |
+
width: 320px;
|
75 |
+
height: 35px;
|
76 |
+
box-shadow: none
|
77 |
+
}
|
78 |
+
|
79 |
+
.btif-option-field-wrap {
|
80 |
+
margin-bottom: 25px;
|
81 |
+
}
|
82 |
+
|
83 |
+
.blossomthemes-instagram-feed-settings
|
84 |
+
.btif-option-field-wrap:last-child {
|
85 |
+
display: flex;
|
86 |
+
flex: auto;
|
87 |
+
align-items: center;
|
88 |
+
}
|
89 |
+
|
90 |
+
#btif-fetch-new-posts {
|
91 |
+
height: 35px;
|
92 |
+
display: flex;
|
93 |
+
justify-content: center;
|
94 |
+
align-items: center;
|
95 |
+
}
|
96 |
+
|
97 |
+
#btif-fetch-new-posts-loader,
|
98 |
+
#btif-fetch-new-posts-success,
|
99 |
+
#btif-fetch-new-posts-failure {
|
100 |
+
display: inline-flex;
|
101 |
+
}
|
102 |
+
|
103 |
+
|
104 |
+
p.btif-description {
|
105 |
+
margin-left: 175px;
|
106 |
+
font-style: italic
|
107 |
+
}
|
108 |
+
|
109 |
+
.btif-settings-form .button-connect {
|
110 |
+
margin-bottom: 40px
|
111 |
+
}
|
112 |
+
|
113 |
+
.btif-settings-form .blossomthemes-instagram-feed-settings-submit {
|
114 |
+
border-top: 1px solid rgba(0, 0, 0, .1);
|
115 |
+
margin-top: 40px
|
116 |
+
}
|
admin/js/blossomthemes-instagram-feed-admin.min.js
CHANGED
@@ -1 +1,32 @@
|
|
1 |
-
jQuery(document).ready(function(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
$(".btss-tab-trigger").click(function() {
|
3 |
+
$(".btss-tab-trigger").removeClass("nav-tab-active"), $(this).addClass("nav-tab-active");
|
4 |
+
var s = $(this).data("configuration");
|
5 |
+
$(".blossomthemes-instagram-feed-settings").hide(), $("#blossomthemes-instagram-feed-settings-" + s).show();
|
6 |
+
});
|
7 |
+
|
8 |
+
// Fetched new instagram posts.
|
9 |
+
$("#btif-fetch-new-posts").click(function(event){
|
10 |
+
$.ajax({
|
11 |
+
url: blossomthemesInstagramFeed.ajaxurl,
|
12 |
+
type: 'post',
|
13 |
+
dataType: 'json',
|
14 |
+
data: { action: 'btif_fetch_new_posts'},
|
15 |
+
beforeSend: function(xhr) {
|
16 |
+
jQuery('#btif-fetch-new-posts-loader').css('display', 'inline');
|
17 |
+
jQuery('#btif-fetch-new-posts-failure').css('display', 'none');
|
18 |
+
jQuery('#btif-fetch-new-posts-success').css('display', 'none');
|
19 |
+
}
|
20 |
+
}).done(function(data){
|
21 |
+
jQuery('#btif-fetch-new-posts-loader').css('display', 'none');
|
22 |
+
if ( data.success) {
|
23 |
+
jQuery('#btif-fetch-new-posts-success').css('display', 'inline');
|
24 |
+
} else {
|
25 |
+
jQuery('#btif-fetch-new-posts-failure').css('display', 'inline');
|
26 |
+
}
|
27 |
+
}).fail(function(data){
|
28 |
+
jQuery('#btif-fetch-new-posts-failure').css('display', 'inline');
|
29 |
+
jQuery('#btif-fetch-new-posts-loader').css('display', 'none');
|
30 |
+
});
|
31 |
+
});
|
32 |
+
});
|
blossomthemes-instagram-feed.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: BlossomThemes Social Feed
|
16 |
* Plugin URI: https://wordpress.org/plugins/blossomthemes-instagram-feed
|
17 |
* Description: Show instagram feed on your website using shortcode and widget.
|
18 |
-
* Version: 1.
|
19 |
* Author: blossomthemes
|
20 |
* Author URI: https://blossomthemes.com
|
21 |
* License: GPL-2.0+
|
@@ -32,7 +32,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
32 |
define( 'BTIF_BASE_PATH', dirname( __FILE__ ) );
|
33 |
define( 'BTIF_FILE_PATH', __FILE__ );
|
34 |
define( 'BTIF_FILE_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
|
35 |
-
define( 'BTIF_PLUGIN_VERSION', '1.
|
36 |
|
37 |
// Instagram API image limit.
|
38 |
if ( ! defined( 'BTIF_INSTAGRAM_API_IMAGE_LIMIT' ) ) {
|
15 |
* Plugin Name: BlossomThemes Social Feed
|
16 |
* Plugin URI: https://wordpress.org/plugins/blossomthemes-instagram-feed
|
17 |
* Description: Show instagram feed on your website using shortcode and widget.
|
18 |
+
* Version: 1.2.0
|
19 |
* Author: blossomthemes
|
20 |
* Author URI: https://blossomthemes.com
|
21 |
* License: GPL-2.0+
|
32 |
define( 'BTIF_BASE_PATH', dirname( __FILE__ ) );
|
33 |
define( 'BTIF_FILE_PATH', __FILE__ );
|
34 |
define( 'BTIF_FILE_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
|
35 |
+
define( 'BTIF_PLUGIN_VERSION', '1.2.0' );
|
36 |
|
37 |
// Instagram API image limit.
|
38 |
if ( ! defined( 'BTIF_INSTAGRAM_API_IMAGE_LIMIT' ) ) {
|
includes/class-blossomthemes-instagram-feed-ajax.php
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Handles Ajax requests.
|
4 |
+
*/
|
5 |
+
class Blossomthemes_Instagram_Feed_Ajax {
|
6 |
+
/**
|
7 |
+
* Ajax actions with function callback lists.
|
8 |
+
*/
|
9 |
+
private $ajax_actions = array(
|
10 |
+
'btif_fetch_new_posts' => array(
|
11 |
+
'priv' => 'fetch_new_posts'
|
12 |
+
),
|
13 |
+
);
|
14 |
+
|
15 |
+
public function __construct() {
|
16 |
+
// Initializes hooks.
|
17 |
+
foreach( $this->ajax_actions as $action => $callbacks ) {
|
18 |
+
if ( isset( $callbacks['nopriv'] ) ) {
|
19 |
+
add_action( "wp_ajax_nopriv_{$action}", array( $this, $callbacks['nopriv'] ) );
|
20 |
+
}
|
21 |
+
|
22 |
+
if ( isset( $callbacks['priv'] ) ) {
|
23 |
+
add_action( "wp_ajax_{$action}", array( $this, $callbacks['priv'] ) );
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
27 |
+
|
28 |
+
public function fetch_new_posts() {
|
29 |
+
// Return if error if token is invalid.
|
30 |
+
$invalid_access_token = get_option( 'blossomthemes_instagram_invalid_token' );
|
31 |
+
if ( false === $invalid_access_token ) {
|
32 |
+
wp_send_json_error();
|
33 |
+
return;
|
34 |
+
}
|
35 |
+
|
36 |
+
// Get feed settings.
|
37 |
+
$options = get_option( 'blossomthemes_instagram_feed_settings' );
|
38 |
+
|
39 |
+
$photos = isset( $options['photos'] ) ? absint( $options['photos'] ) : 5;
|
40 |
+
$photo_size = isset( $options['photo_size'] ) ? $options['photo_size'] : 'low_resolution';
|
41 |
+
|
42 |
+
// Delete fetch already to fetch again.
|
43 |
+
delete_transient( 'blossomthemes_instagram_data_fetch' );
|
44 |
+
|
45 |
+
// Get instance.
|
46 |
+
$feed_api = Blossomthemes_Instagram_Feed_API::getInstance();
|
47 |
+
|
48 |
+
// Get images.
|
49 |
+
$feed_api->get_items( $photos, $photo_size );
|
50 |
+
|
51 |
+
// Send response.
|
52 |
+
if ( false === $feed_api ) {
|
53 |
+
wp_send_json_error();
|
54 |
+
} else {
|
55 |
+
wp_send_json_success();
|
56 |
+
}
|
57 |
+
}
|
58 |
+
}
|
includes/class-blossomthemes-instagram-feed-settings.php
CHANGED
@@ -56,7 +56,7 @@ class BlossomThemes_Instagram_Feed_Settings {
|
|
56 |
$oauth_url .= '?auth_site=' . esc_url( admin_url( 'admin.php?page=class-blossomthemes-instagram-feed-admin.php' ) );
|
57 |
$oauth_url.='&hl=en';
|
58 |
|
59 |
-
$options = get_option( 'blossomthemes_instagram_feed_settings'
|
60 |
$photo_size = isset( $options['photo_size'] ) ? esc_attr( $options['photo_size'] ) : 'low_resolution';
|
61 |
|
62 |
// Changed to the new instagram image size.
|
@@ -74,12 +74,13 @@ class BlossomThemes_Instagram_Feed_Settings {
|
|
74 |
'oauth_url' => $oauth_url,
|
75 |
'access_token' => isset( $options['access-token'] ) ? $options['access-token'] : '',
|
76 |
'username' => isset( $options['username'] ) ? $options['username'] : '',
|
77 |
-
'photos' => isset( $options['photos'] ) ? $options['photos'] :
|
78 |
'size' => $photo_size,
|
79 |
-
'photos_row' => isset( $options['photos_row'] ) ? $options['photos_row'] :
|
80 |
'follow_me' => isset( $options['follow_me'] ) ? $options['follow_me'] : '',
|
81 |
'pull_duration' => isset( $options['pull_duration'] ) ? $options['pull_duration'] : 1,
|
82 |
-
'pull_unit' => isset( $options['pull_unit'] ) ? $options['pull_unit'] : 'days'
|
|
|
83 |
);
|
84 |
|
85 |
// Extrat the variables from the array.
|
56 |
$oauth_url .= '?auth_site=' . esc_url( admin_url( 'admin.php?page=class-blossomthemes-instagram-feed-admin.php' ) );
|
57 |
$oauth_url.='&hl=en';
|
58 |
|
59 |
+
$options = get_option( 'blossomthemes_instagram_feed_settings' );
|
60 |
$photo_size = isset( $options['photo_size'] ) ? esc_attr( $options['photo_size'] ) : 'low_resolution';
|
61 |
|
62 |
// Changed to the new instagram image size.
|
74 |
'oauth_url' => $oauth_url,
|
75 |
'access_token' => isset( $options['access-token'] ) ? $options['access-token'] : '',
|
76 |
'username' => isset( $options['username'] ) ? $options['username'] : '',
|
77 |
+
'photos' => isset( $options['photos'] ) ? $options['photos'] : 5,
|
78 |
'size' => $photo_size,
|
79 |
+
'photos_row' => isset( $options['photos_row'] ) ? $options['photos_row'] : 5,
|
80 |
'follow_me' => isset( $options['follow_me'] ) ? $options['follow_me'] : '',
|
81 |
'pull_duration' => isset( $options['pull_duration'] ) ? $options['pull_duration'] : 1,
|
82 |
+
'pull_unit' => isset( $options['pull_unit'] ) ? $options['pull_unit'] : 'days',
|
83 |
+
'meta' => isset( $options['meta'] ) ? $options['meta'] : true,
|
84 |
);
|
85 |
|
86 |
// Extrat the variables from the array.
|
includes/class-blossomthemes-instagram-feed-shortcodes.php
CHANGED
@@ -98,6 +98,6 @@ class BlossomThemes_Instagram_Feed_Shortcodes
|
|
98 |
|
99 |
$output = ob_get_contents();
|
100 |
ob_end_clean();
|
101 |
-
return $output;
|
102 |
}
|
103 |
}
|
98 |
|
99 |
$output = ob_get_contents();
|
100 |
ob_end_clean();
|
101 |
+
return apply_filters( 'btif_instagram_shortcode_filter', $output );
|
102 |
}
|
103 |
}
|
includes/class-blossomthemes-instagram-feed.php
CHANGED
@@ -142,6 +142,10 @@ class Blossomthemes_Instagram_Feed {
|
|
142 |
*/
|
143 |
require_once BTIF_BASE_PATH . '/includes/class-blossomthemes-instagram-feed-api.php';
|
144 |
|
|
|
|
|
|
|
|
|
145 |
|
146 |
$this->loader = new Blossomthemes_Instagram_Feed_Loader();
|
147 |
|
@@ -174,6 +178,7 @@ class Blossomthemes_Instagram_Feed {
|
|
174 |
private function define_admin_hooks() {
|
175 |
|
176 |
$plugin_admin = new Blossomthemes_Instagram_Feed_Admin( $this->get_plugin_name(), $this->get_version() );
|
|
|
177 |
|
178 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
179 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
142 |
*/
|
143 |
require_once BTIF_BASE_PATH . '/includes/class-blossomthemes-instagram-feed-api.php';
|
144 |
|
145 |
+
/**
|
146 |
+
* The class responsible for handling ajax requests.
|
147 |
+
*/
|
148 |
+
require_once BTIF_BASE_PATH . '/includes/class-blossomthemes-instagram-feed-ajax.php';
|
149 |
|
150 |
$this->loader = new Blossomthemes_Instagram_Feed_Loader();
|
151 |
|
178 |
private function define_admin_hooks() {
|
179 |
|
180 |
$plugin_admin = new Blossomthemes_Instagram_Feed_Admin( $this->get_plugin_name(), $this->get_version() );
|
181 |
+
$plugin_ajax = new Blossomthemes_Instagram_Feed_Ajax( $this->get_plugin_name(), $this->get_version() );
|
182 |
|
183 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
184 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
includes/template/backend/general.php
CHANGED
@@ -114,7 +114,7 @@
|
|
114 |
<?php _e( 'Show Likes/Comments', 'blossomthemes-instagram-feed' ); ?>
|
115 |
</label>
|
116 |
<input type="checkbox" value="1" id="likes-comments"
|
117 |
-
name="blossomthemes_instagram_feed_settings[meta]" <?php checked( $
|
118 |
</div>
|
119 |
|
120 |
<!-- Check for New Posts -->
|
@@ -122,17 +122,67 @@
|
|
122 |
<label for="transient-pull-interval">
|
123 |
<?php _e( 'Check for new posts every', 'blossomthemes-instagram-feed' ); ?>
|
124 |
</label>
|
125 |
-
<input
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
|
|
130 |
|
131 |
<select id="blossomthemes_instagram_feed_settings[pull_unit]"
|
132 |
-
|
|
|
133 |
<option <?php selected( $pull_unit, 'hours' ); ?> value="hours"><?php _e( 'Hours', 'blossomthemes-instagram-feed' ) ?></option>
|
134 |
<option <?php selected( $pull_unit, 'days' ); ?> value="days"><?php _e( 'Days', 'blossomthemes-instagram-feed' ) ?></option>
|
135 |
<option <?php selected( $pull_unit, 'minutes' ); ?> value="minutes"><?php _e( 'Minutes', 'blossomthemes-instagram-feed' ) ?></option>
|
136 |
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
</div>
|
138 |
</div>
|
114 |
<?php _e( 'Show Likes/Comments', 'blossomthemes-instagram-feed' ); ?>
|
115 |
</label>
|
116 |
<input type="checkbox" value="1" id="likes-comments"
|
117 |
+
name="blossomthemes_instagram_feed_settings[meta]" <?php checked( $meta, true ); ?>>
|
118 |
</div>
|
119 |
|
120 |
<!-- Check for New Posts -->
|
122 |
<label for="transient-pull-interval">
|
123 |
<?php _e( 'Check for new posts every', 'blossomthemes-instagram-feed' ); ?>
|
124 |
</label>
|
125 |
+
<input type="number"
|
126 |
+
id="transient-pull-interval"
|
127 |
+
style="width: 102px;"
|
128 |
+
name="blossomthemes_instagram_feed_settings[pull_duration]"
|
129 |
+
value="<?php echo esc_attr( $pull_duration ) ?>"
|
130 |
+
min="1" />
|
131 |
|
132 |
<select id="blossomthemes_instagram_feed_settings[pull_unit]"
|
133 |
+
style = "width: 102px;"
|
134 |
+
name="blossomthemes_instagram_feed_settings[pull_unit]">
|
135 |
<option <?php selected( $pull_unit, 'hours' ); ?> value="hours"><?php _e( 'Hours', 'blossomthemes-instagram-feed' ) ?></option>
|
136 |
<option <?php selected( $pull_unit, 'days' ); ?> value="days"><?php _e( 'Days', 'blossomthemes-instagram-feed' ) ?></option>
|
137 |
<option <?php selected( $pull_unit, 'minutes' ); ?> value="minutes"><?php _e( 'Minutes', 'blossomthemes-instagram-feed' ) ?></option>
|
138 |
</select>
|
139 |
+
<button type="button" id="btif-fetch-new-posts"
|
140 |
+
class="button button-large">
|
141 |
+
<?php echo _e( 'Fetch new posts', 'blossomthemes-instagram-feed'); ?>
|
142 |
+
<span id="btif-fetch-new-posts-loader" style="display: none;">
|
143 |
+
<svg class="lds-spinner" width="28px" height="28px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;"><g transform="rotate(0 50 50)">
|
144 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
145 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.875s" repeatCount="indefinite"></animate>
|
146 |
+
</rect>
|
147 |
+
</g><g transform="rotate(45 50 50)">
|
148 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
149 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"></animate>
|
150 |
+
</rect>
|
151 |
+
</g><g transform="rotate(90 50 50)">
|
152 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
153 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.625s" repeatCount="indefinite"></animate>
|
154 |
+
</rect>
|
155 |
+
</g><g transform="rotate(135 50 50)">
|
156 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
157 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"></animate>
|
158 |
+
</rect>
|
159 |
+
</g><g transform="rotate(180 50 50)">
|
160 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
161 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.375s" repeatCount="indefinite"></animate>
|
162 |
+
</rect>
|
163 |
+
</g><g transform="rotate(225 50 50)">
|
164 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
165 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"></animate>
|
166 |
+
</rect>
|
167 |
+
</g><g transform="rotate(270 50 50)">
|
168 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
169 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.125s" repeatCount="indefinite"></animate>
|
170 |
+
</rect>
|
171 |
+
</g><g transform="rotate(315 50 50)">
|
172 |
+
<rect x="45.5" y="19.5" rx="9.1" ry="3.9" width="9" height="21" fill="#1087b0">
|
173 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animate>
|
174 |
+
</rect>
|
175 |
+
</g>
|
176 |
+
</svg>
|
177 |
+
</span>
|
178 |
+
|
179 |
+
<span id="btif-fetch-new-posts-success" style="display: none;">
|
180 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 512 512"><path fill="#32BEA6" d="M504.1,256C504.1,119,393,7.9,256,7.9C119,7.9,7.9,119,7.9,256C7.9,393,119,504.1,256,504.1C393,504.1,504.1,393,504.1,256z"/><path fill="#FFF" d="M392.6,172.9c-5.8-15.1-17.7-12.7-30.6-10.1c-7.7,1.6-42,11.6-96.1,68.8c-22.5,23.7-37.3,42.6-47.1,57c-6-7.3-12.8-15.2-20-22.3C176.7,244.2,152,229,151,228.4c-10.3-6.3-23.8-3.1-30.2,7.3c-6.3,10.3-3.1,23.8,7.2,30.2c0.2,0.1,21.4,13.2,39.6,31.5c18.6,18.6,35.5,43.8,35.7,44.1c4.1,6.2,11,9.8,18.3,9.8c1.2,0,2.5-0.1,3.8-0.3c8.6-1.5,15.4-7.9,17.5-16.3c0.1-0.2,8.8-24.3,54.7-72.7c37-39.1,61.7-51.5,70.3-54.9c0.1,0,0.1,0,0.3,0c0,0,0.3-0.1,0.8-0.4c1.5-0.6,2.3-0.8,2.3-0.8c-0.4,0.1-0.6,0.1-0.6,0.1l0-0.1c4-1.7,11.4-4.9,11.5-5C393.3,196.1,397,184.1,392.6,172.9z"/></svg>
|
181 |
+
</span>
|
182 |
+
|
183 |
+
<span id="btif-fetch-new-posts-failure" style="display: none;">
|
184 |
+
<img width="16" height="16" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAExklEQVRYR9WZbUxbZRTH/+e2HYwh0NZpZAu0TYyLRsWpH8biCx/UJVMj0AtmkSgx6hL5YpyKyXTKVOSDxsXM16kzmuloYQvGvWiMM3Eqic6ZuIX50nYwJonrBWRhUHrvMbelHQVK2/vc4nySph/uPf//7zl53u55CIJtuM5dCYlqGVgFoEL/cfwfBPRj+kdAHzTeY+8OnhSxJCPBw7KriiE1gnEXCFflpME4Bmg9ROi0+0JHc4qNJyH7FpYrrgQsbcSoA1FOsXNcmJkBv02lzSV7Ar9lS5GVqSJ7KsD8IggbAJKyFc/qPUYUxO8XTEafX9YzcDpTTEbgEa/7do2oE0BpJjHB56MSc0OZP/jFQjoLAiv17kchYRtAFkGYLMNZJaDZ7gt+lC4gLbAiu18HqCVLJ1NfY+YXHP7gswTwbOF5gZV610ZI0pumUuQoxho/7OwKvpsROOytrCayHAJgy9HD7NenoEZrHN39h2cKp2Q4XLdiJVkKjgBYbra7Qb2/WZ1c7ewePJWITwWW3QcIdIdB8byEMfig0xdcNwd42Ou6lUn6Oi+ugqLEWo3dH9KH6fmdTvF6DoNQLaidr/BvHb7ATUlgxeu6FyR9ki83M3RJ02rtXaG9sTGsyO5PAWo0QzhfGsz8odMffID4etgUj+cMASUiZrYbb4M68Du0oVCKjHRxOayXVyHy/T4ReTD4tNMXXEFmTLaljY+hsL4FfHYEY21NUEPHY3BSuQclz+0ClS3H5MGPMf7eFjFoVVtDitfzMghPGVXSoUpf+zIZnoDmyEQSNvFw7JkGRE/8ZNRK36g7KCy69koSip98B7bVNSnQiE7FMpto0b4fMba1CZiKGAbW12RSZPdRgK41rKIHWpegeNMbKdAz9WKwLzUDE+NCNszcq2d4iECXCilNQ1/UugPWa9amSKl//IJ/2u4Tho2JMp/Ux/AECAWiwNJlLpRs2QVypPZ99kQU8mFMkiJ7RkS/JtLBJuBMhB7Vh0Qfga4w2nNaVoLSVw6kZDZ6vBc8MT5nIo5uWg9Whoxa6WvxCX3SHQLoFqMqZL8EZdu+AgqLYhI67Fj7g4Cqpk7EaASjT9wJbfBPo1b6IP5GBxbelq2rbkBx6w6ogV8x1vEQMHkuDqWvHo9vh+3qapx9tQVTR0QPg7xbH8OtANoFuh0PLVh6HnS2mJ59wSVtWvJpmq7i/CwMvAgCBO262Gkt7PUMEGHlIngatkgefuLA7p1EdL9htcUIZLzt8Ac2xs/D/7cDfAzajDNFvjLN+M7hD8T2/ORXc1h2rSNI+/PlKaI770fodJaFNhERqHSxaT/zY5PvwiuknClEpKrId2ow0aE5tTWlrmItLFZ9S/rPS1Wsajc7u0M/zMz+BVsMJGjNdl9o5+yhkr7c6vW8BcIj+RiXGTUZHQ5/QD8yzGkLF7RlzwYAHwBYktHEnBcirHGTsyuoV/znbRmvDMJy5RpA8hOo3Bym+VWY+S8rc21pV6h3IZ+MwHrwyPoKOxdZNnO8Im92tiPM2nbLOW1r2ef9w5mSkhVwQmT4HpeLrVI7wI1mXHuB0ElT3GrfG0otFy1AnRNwEly/WGQ0ANLdhi4WCZ8RtN15v1icr+PZX93yMWjoEb26/Rc6jtfU5/NTSgAAAABJRU5ErkJggg==" />
|
185 |
+
</span>
|
186 |
+
</button>
|
187 |
</div>
|
188 |
</div>
|
languages/blossomthemes-instagram-feed.pot
CHANGED
@@ -1,253 +1,262 @@
|
|
1 |
-
# Copyright (C) 2019 blossomthemes
|
2 |
-
# This file is distributed under the GPL-2.0+.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: BlossomThemes Social Feed 1.
|
6 |
-
"Report-Msgid-Bugs-To: "
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"Content-
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
"
|
24 |
-
"
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
#:
|
53 |
-
msgid "
|
54 |
-
msgstr ""
|
55 |
-
|
56 |
-
#: includes/class-blossomthemes-instagram-feed-shortcodes.php:
|
57 |
-
#: includes/widgets/widget-blossomthemes-instagram-feed.php:
|
58 |
-
msgid "
|
59 |
-
msgstr ""
|
60 |
-
|
61 |
-
#: includes/
|
62 |
-
#: includes/
|
63 |
-
msgid "
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: includes/template/backend/general.php:
|
67 |
-
|
68 |
-
"
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
"
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
"Access Token
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: includes/template/backend/general.php:
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
#: includes/
|
109 |
-
msgid "
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: includes/template/backend/general.php:
|
113 |
-
#: includes/widgets/widget-blossomthemes-instagram-feed.php:
|
114 |
-
msgid "
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: includes/template/backend/general.php:
|
118 |
-
#: includes/widgets/widget-blossomthemes-instagram-feed.php:
|
119 |
-
msgid "
|
120 |
-
msgstr ""
|
121 |
-
|
122 |
-
#: includes/template/backend/general.php:
|
123 |
-
#: includes/widgets/widget-blossomthemes-instagram-feed.php:
|
124 |
-
msgid "
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: includes/template/backend/general.php:
|
128 |
-
#: includes/widgets/widget-blossomthemes-instagram-feed.php:
|
129 |
-
msgid "
|
130 |
-
msgstr ""
|
131 |
-
|
132 |
-
#: includes/template/backend/general.php:
|
133 |
-
#: includes/widgets/widget-blossomthemes-instagram-feed.php:
|
134 |
-
msgid "
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: includes/template/backend/general.php:
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
"
|
224 |
-
"
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 blossomthemes
|
2 |
+
# This file is distributed under the GPL-2.0+.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: BlossomThemes Social Feed 1.2.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: \n"
|
7 |
+
"POT-Creation-Date: 2019-11-18 09:50:39+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: WP Travel Engine\n"
|
13 |
+
"Language-Team: \n"
|
14 |
+
"X-Poedit-KeywordsList: "
|
15 |
+
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
|
16 |
+
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
17 |
+
"Language: en_US\n"
|
18 |
+
"X-Poedit-SearchPath-0: ../../blossomthemes-instagram-feed\n"
|
19 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20 |
+
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
21 |
+
|
22 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:149
|
23 |
+
msgid "Access Token rejected by Instagram API. Please add valid Access Token."
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:183
|
27 |
+
msgid ""
|
28 |
+
"BlossomThemes: Invalid or expired Instagram Access Token. Please reconnect "
|
29 |
+
"Instagram."
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:193
|
33 |
+
msgid "Please configure BlossomThemes Social Feed"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:195
|
37 |
+
msgid "If you have just installed or updated this plugin, please go to the"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:197
|
41 |
+
msgid "Settings Page"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:198
|
45 |
+
msgid "and connect it with your Instagram account."
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:199
|
49 |
+
msgid "You can ignore this message if you have already configured it."
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: admin/class-blossomthemes-instagram-feed-admin.php:200
|
53 |
+
msgid "Dismiss this notice"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: includes/class-blossomthemes-instagram-feed-shortcodes.php:35
|
57 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:87
|
58 |
+
msgid "BlossomThemes Social Feed misconfigured, check plugin & widget settings."
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: includes/class-blossomthemes-instagram-feed-shortcodes.php:39
|
62 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:91
|
63 |
+
msgid "No posts available!"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: includes/template/backend/general.php:8
|
67 |
+
#: includes/template/backend/general.php:25
|
68 |
+
msgid "Connect with Instagram"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: includes/template/backend/general.php:10
|
72 |
+
msgid ""
|
73 |
+
"To get started click the button below. You’ll be prompted to authorize "
|
74 |
+
"BlossomThemes Social Feed to access your Instagram photos."
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: includes/template/backend/general.php:12
|
78 |
+
msgid "For help, please refer to this video tutorial."
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: includes/template/backend/general.php:17
|
82 |
+
msgid ""
|
83 |
+
"Due to recent Instagram API changes it is no longer possible to display "
|
84 |
+
"photos from a different Instagram account than yours. The widget will "
|
85 |
+
"automatically display the latest photos of the account which was authorized "
|
86 |
+
"on this page."
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: includes/template/backend/general.php:27
|
90 |
+
msgid "Re-connect with Instagram"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: includes/template/backend/general.php:35
|
94 |
+
msgid "Access Token"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: includes/template/backend/general.php:44
|
98 |
+
msgid ""
|
99 |
+
"Access Token is used as key to access your photos from Instagram so they "
|
100 |
+
"can be displayed."
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: includes/template/backend/general.php:51
|
104 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:212
|
105 |
+
msgid "Username"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: includes/template/backend/general.php:62
|
109 |
+
msgid "Number of Photos"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: includes/template/backend/general.php:73
|
113 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:222
|
114 |
+
msgid "Photo size"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: includes/template/backend/general.php:77
|
118 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:224
|
119 |
+
msgid "Thumbnail"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: includes/template/backend/general.php:80
|
123 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:225
|
124 |
+
msgid "Small"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: includes/template/backend/general.php:83
|
128 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:226
|
129 |
+
msgid "Large"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: includes/template/backend/general.php:92
|
133 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:231
|
134 |
+
msgid "Photos Per Row"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: includes/template/backend/general.php:103
|
138 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:241
|
139 |
+
msgid "Profile Link Text"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: includes/template/backend/general.php:114
|
143 |
+
msgid "Show Likes/Comments"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: includes/template/backend/general.php:123
|
147 |
+
msgid "Check for new posts every"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: includes/template/backend/general.php:135
|
151 |
+
msgid "Hours"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: includes/template/backend/general.php:136
|
155 |
+
msgid "Days"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: includes/template/backend/general.php:137
|
159 |
+
msgid "Minutes"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: includes/template/backend/general.php:141
|
163 |
+
msgid "Fetch new posts"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#. Plugin Name of the plugin/theme
|
167 |
+
msgid "BlossomThemes Social Feed"
|
168 |
+
msgstr ""
|
169 |
+
|
170 |
+
#: includes/template/backend/settings.php:15
|
171 |
+
msgid "General"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: includes/template/backend/settings.php:19
|
175 |
+
msgid "Usage"
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: includes/template/backend/sidebar.php:3
|
179 |
+
msgid "More WordPress Themes and Plugins?"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: includes/template/backend/sidebar.php:5
|
183 |
+
msgid "Visit us at: "
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: includes/template/backend/sidebar.php:6
|
187 |
+
msgid "Blossom Themes"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
+
#: includes/template/backend/sidebar.php:9
|
191 |
+
msgid "Please fill free to leave us a review, if you found this plugin helpful."
|
192 |
+
msgstr ""
|
193 |
+
|
194 |
+
#: includes/template/backend/sidebar.php:10
|
195 |
+
msgid "Leave a Review"
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
#: includes/template/backend/usage.php:7
|
199 |
+
msgid "Uses"
|
200 |
+
msgstr ""
|
201 |
+
|
202 |
+
#: includes/template/backend/usage.php:10
|
203 |
+
msgid "Display via Shortcode"
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: includes/template/backend/usage.php:16
|
207 |
+
msgid "Copy this Shortcode to display your instagram gallery in pages/posts => "
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: includes/template/backend/usage.php:26
|
211 |
+
msgid "Display via PHP Function"
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: includes/template/backend/usage.php:32
|
215 |
+
msgid "Copy the PHP Function below to display your instagram gallery in templates :"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:25
|
219 |
+
msgid "BlossomThemes: Feed for Instagram"
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:26
|
223 |
+
msgid "A widget that displays your latest Instagram photos."
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:158
|
227 |
+
msgid "Instagram"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:199
|
231 |
+
msgid ""
|
232 |
+
"Please configure <a href=\"%1$s\">Plugin Settings</a> before using this "
|
233 |
+
"widget."
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:207
|
237 |
+
msgid "Title"
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:217
|
241 |
+
msgid "Number of photos"
|
242 |
+
msgstr ""
|
243 |
+
|
244 |
+
#: includes/widgets/widget-blossomthemes-instagram-feed.php:237
|
245 |
+
msgid "Display Comments/Likes"
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
#. Plugin URI of the plugin/theme
|
249 |
+
msgid "https://wordpress.org/plugins/blossomthemes-instagram-feed"
|
250 |
+
msgstr ""
|
251 |
+
|
252 |
+
#. Description of the plugin/theme
|
253 |
+
msgid "Show instagram feed on your website using shortcode and widget."
|
254 |
+
msgstr ""
|
255 |
+
|
256 |
+
#. Author of the plugin/theme
|
257 |
+
msgid "blossomthemes"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#. Author URI of the plugin/theme
|
261 |
+
msgid "https://blossomthemes.com"
|
262 |
msgstr ""
|
public/js/blossomthemes-instagram-feed-public.min.js
CHANGED
@@ -1 +1,16 @@
|
|
1 |
-
jQuery(document).ready(function(e){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function(e) {
|
2 |
+
e(".popup-gallery").magnificPopup({
|
3 |
+
delegate: "a",
|
4 |
+
type: "image",
|
5 |
+
gallery: {
|
6 |
+
enabled: !0
|
7 |
+
}
|
8 |
+
}), e(".popup-modal").magnificPopup({
|
9 |
+
type: "inline",
|
10 |
+
preloader: !1,
|
11 |
+
focus: "#username",
|
12 |
+
modal: !0
|
13 |
+
}), e(document).on("click", ".popup-modal-dismiss", function(p) {
|
14 |
+
p.preventDefault(), e.magnificPopup.close()
|
15 |
+
});
|
16 |
+
});
|