Version Description
- Fixed: Minor issues
=
Download this release
Release Info
Developer | mediabeta |
Plugin | Enjoy Instagram feed on website with WordPress Widget and Shortcode |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 3.1
- enjoyinstagram.php +8 -7
- library/enjoyinstagram_shortcode.php +10 -9
- library/enjoyinstagram_shortcode_grid.php +17 -18
- library/enjoyinstagram_shortcode_grid_widget.php +13 -13
- library/enjoyinstagram_shortcode_widget.php +3 -3
- readme.txt +37 -22
- tinymce/tinymce.php +1 -1
enjoyinstagram.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Enjoy Plugin for Instagram
|
4 |
Plugin URI: http://www.mediabeta.com/enjoy-instagram/
|
5 |
Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
|
6 |
-
Version:
|
7 |
Author: F. Prestipino, F. Di Pane - Mediabeta Srl
|
8 |
Author URI: http://www.mediabeta.com/team/
|
9 |
*/
|
@@ -167,7 +167,7 @@ class Settings_enjoyinstagram_Plugin {
|
|
167 |
update_option( 'enjoyinstagram_access_token', $enjoyinstagram_access_token );
|
168 |
|
169 |
|
170 |
-
// get accee token fine
|
171 |
include('library/profile_auth.php');
|
172 |
|
173 |
}
|
@@ -488,11 +488,12 @@ function aggiungo_javascript_in_pannello_amministrazione() {
|
|
488 |
function post_to_url(path, method) {
|
489 |
method = method || "get";
|
490 |
var params = new Array();
|
491 |
-
var client_id = '
|
492 |
-
var client_secret = '
|
493 |
params['client_id'] = client_id;
|
494 |
params['redirect_uri'] = 'http://www.mediabetaprojects.com/put_access_token.php?url_redirect=<?php echo admin_url('options-general.php?page=enjoyinstagram_plugin_options&tab=enjoyinstagram_general_settings'); ?>';
|
495 |
params['response_type'] = 'token';
|
|
|
496 |
|
497 |
var form = document.createElement("form");
|
498 |
form.setAttribute("method", method);
|
@@ -578,8 +579,8 @@ function add_option_client_ajax() {
|
|
578 |
<script type="text/javascript" >
|
579 |
|
580 |
jQuery('#button_autorizza_instagram').click(function() {
|
581 |
-
var client_id = '
|
582 |
-
var client_secret = '
|
583 |
var data = {
|
584 |
action: 'user_option_ajax',
|
585 |
client_id_value: client_id,
|
@@ -704,4 +705,4 @@ require_once('library/enjoyinstagram_shortcode_grid.php');
|
|
704 |
require_once('library/enjoyinstagram_shortcode_widget.php');
|
705 |
require_once('library/enjoyinstagram_shortcode_grid_widget.php');
|
706 |
|
707 |
-
?>
|
3 |
Plugin Name: Enjoy Plugin for Instagram
|
4 |
Plugin URI: http://www.mediabeta.com/enjoy-instagram/
|
5 |
Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
|
6 |
+
Version: 3.1
|
7 |
Author: F. Prestipino, F. Di Pane - Mediabeta Srl
|
8 |
Author URI: http://www.mediabeta.com/team/
|
9 |
*/
|
167 |
update_option( 'enjoyinstagram_access_token', $enjoyinstagram_access_token );
|
168 |
|
169 |
|
170 |
+
// get accee token fine
|
171 |
include('library/profile_auth.php');
|
172 |
|
173 |
}
|
488 |
function post_to_url(path, method) {
|
489 |
method = method || "get";
|
490 |
var params = new Array();
|
491 |
+
var client_id = 'cac0b53396ee466293d81c8fb86835fe';
|
492 |
+
var client_secret = 'this_is_secret';
|
493 |
params['client_id'] = client_id;
|
494 |
params['redirect_uri'] = 'http://www.mediabetaprojects.com/put_access_token.php?url_redirect=<?php echo admin_url('options-general.php?page=enjoyinstagram_plugin_options&tab=enjoyinstagram_general_settings'); ?>';
|
495 |
params['response_type'] = 'token';
|
496 |
+
params['scope']='public_content';
|
497 |
|
498 |
var form = document.createElement("form");
|
499 |
form.setAttribute("method", method);
|
579 |
<script type="text/javascript" >
|
580 |
|
581 |
jQuery('#button_autorizza_instagram').click(function() {
|
582 |
+
var client_id = 'cac0b53396ee466293d81c8fb86835fe';
|
583 |
+
var client_secret = 'this_is_secret';
|
584 |
var data = {
|
585 |
action: 'user_option_ajax',
|
586 |
client_id_value: client_id,
|
705 |
require_once('library/enjoyinstagram_shortcode_widget.php');
|
706 |
require_once('library/enjoyinstagram_shortcode_grid_widget.php');
|
707 |
|
708 |
+
?>
|
library/enjoyinstagram_shortcode.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
function enjoyinstagram_mb_shortcode($atts) {
|
4 |
$shortcode_content = '';
|
5 |
STATIC $i = 1;
|
6 |
-
|
7 |
-
|
8 |
if(get_option('enjoyinstagram_client_id') || get_option('enjoyinstagram_client_id') != '') {
|
9 |
extract( shortcode_atts( array(
|
10 |
'n' => '4',
|
@@ -27,8 +27,8 @@ jQuery(function($) {
|
|
27 |
$(".swipebox").swipebox({
|
28 |
hideBarsDelay : 0
|
29 |
});
|
30 |
-
|
31 |
-
});
|
32 |
jQuery(document).ready(function() {
|
33 |
jQuery("#owl-<?php echo $i; ?>").owlCarousel({
|
34 |
lazyLoad : true,
|
@@ -39,7 +39,7 @@ jQuery("#owl-<?php echo $i; ?>").owlCarousel({
|
|
39 |
itemsMobile : [479,<?php echo get_option('enjoyinstagram_carousel_items_number'); ?>],
|
40 |
stopOnHover: true,
|
41 |
navigation: <?php echo get_option('enjoyinstagram_carousel_navigation'); ?>
|
42 |
-
|
43 |
});
|
44 |
jQuery("#owl-<?php echo $i; ?>").fadeIn();
|
45 |
});
|
@@ -56,7 +56,7 @@ if(get_option('enjoyinstagram_user_or_hashtag')=='hashtag'){
|
|
56 |
$pre_shortcode_content = "<div id=\"owl-".$i."\" class=\"owl-example\" style=\"display:none;\">";
|
57 |
|
58 |
|
59 |
-
if (isHttps()) {
|
60 |
foreach ($result as $entry) {
|
61 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
|
62 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
@@ -65,7 +65,7 @@ $pre_shortcode_content = "<div id=\"owl-".$i."\" class=\"owl-example\" style=\"d
|
|
65 |
|
66 |
|
67 |
|
68 |
-
|
69 |
foreach ($result as $entry) {
|
70 |
if(!empty($entry['caption'])) {
|
71 |
$caption = $entry['caption']['text'];
|
@@ -78,7 +78,8 @@ foreach ($result as $entry) {
|
|
78 |
$shortcode_content .= "<div class=\"box\"><a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry['images']['standard_resolution']['url']}\"><img style=\"width:100%;\" src=\"{$entry['images']['standard_resolution']['url']}\"></a></div>";
|
79 |
}
|
80 |
}
|
81 |
-
|
|
|
82 |
$post_shortcode_content = "</div>";
|
83 |
|
84 |
|
@@ -96,4 +97,4 @@ add_shortcode( 'enjoyinstagram_mb', 'enjoyinstagram_mb_shortcode' );
|
|
96 |
|
97 |
|
98 |
|
99 |
-
?>
|
3 |
function enjoyinstagram_mb_shortcode($atts) {
|
4 |
$shortcode_content = '';
|
5 |
STATIC $i = 1;
|
6 |
+
|
7 |
+
|
8 |
if(get_option('enjoyinstagram_client_id') || get_option('enjoyinstagram_client_id') != '') {
|
9 |
extract( shortcode_atts( array(
|
10 |
'n' => '4',
|
27 |
$(".swipebox").swipebox({
|
28 |
hideBarsDelay : 0
|
29 |
});
|
30 |
+
|
31 |
+
});
|
32 |
jQuery(document).ready(function() {
|
33 |
jQuery("#owl-<?php echo $i; ?>").owlCarousel({
|
34 |
lazyLoad : true,
|
39 |
itemsMobile : [479,<?php echo get_option('enjoyinstagram_carousel_items_number'); ?>],
|
40 |
stopOnHover: true,
|
41 |
navigation: <?php echo get_option('enjoyinstagram_carousel_navigation'); ?>
|
42 |
+
|
43 |
});
|
44 |
jQuery("#owl-<?php echo $i; ?>").fadeIn();
|
45 |
});
|
56 |
$pre_shortcode_content = "<div id=\"owl-".$i."\" class=\"owl-example\" style=\"display:none;\">";
|
57 |
|
58 |
|
59 |
+
if (isHttps()&& !is_null($result)) {
|
60 |
foreach ($result as $entry) {
|
61 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
|
62 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
65 |
|
66 |
|
67 |
|
68 |
+
if(!is_null($result)){
|
69 |
foreach ($result as $entry) {
|
70 |
if(!empty($entry['caption'])) {
|
71 |
$caption = $entry['caption']['text'];
|
78 |
$shortcode_content .= "<div class=\"box\"><a title=\"{$caption}\" rel=\"gallery_swypebox\" class=\"swipebox\" href=\"{$entry['images']['standard_resolution']['url']}\"><img style=\"width:100%;\" src=\"{$entry['images']['standard_resolution']['url']}\"></a></div>";
|
79 |
}
|
80 |
}
|
81 |
+
}
|
82 |
+
|
83 |
$post_shortcode_content = "</div>";
|
84 |
|
85 |
|
97 |
|
98 |
|
99 |
|
100 |
+
?>
|
library/enjoyinstagram_shortcode_grid.php
CHANGED
@@ -18,16 +18,14 @@ $pre_shortcode_content = "<div id=\"grid-".$i."\" class=\"ri-grid ri-grid-size-2
|
|
18 |
|
19 |
|
20 |
|
21 |
-
if (isHttps()) {
|
22 |
foreach ($result as $entry) {
|
23 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
|
24 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
25 |
}
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
foreach ($result as $entry) {
|
32 |
if(!empty($entry['caption'])) {
|
33 |
$caption = $entry['caption']['text'];
|
@@ -35,17 +33,18 @@ foreach ($result as $entry) {
|
|
35 |
$caption = '';
|
36 |
}
|
37 |
$shortcode_content .= "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$entry['images']['standard_resolution']['url']}\"><img src=\"{$entry['images']['standard_resolution']['url']}\"></a></li>";
|
38 |
-
|
39 |
}
|
40 |
-
|
|
|
41 |
$post_shortcode_content = "</ul></div>";
|
42 |
-
|
43 |
?>
|
44 |
|
45 |
-
|
46 |
|
47 |
-
|
48 |
-
|
|
|
49 |
jQuery(function() {
|
50 |
jQuery('#grid-<?php echo $i; ?>').gridrotator({
|
51 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
@@ -62,33 +61,33 @@ $post_shortcode_content = "</ul></div>";
|
|
62 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
63 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
64 |
},
|
65 |
-
|
66 |
w768 : {
|
67 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
68 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
69 |
},
|
70 |
-
|
71 |
w480 : {
|
72 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
73 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
74 |
},
|
75 |
-
|
76 |
w320 : {
|
77 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
78 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
79 |
},
|
80 |
-
|
81 |
w240 : {
|
82 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
83 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
84 |
}
|
85 |
});
|
86 |
-
|
87 |
jQuery('#grid-<?php echo $i; ?>').fadeIn('1000');
|
88 |
-
|
89 |
-
|
90 |
});
|
91 |
-
|
92 |
</script>
|
93 |
<?php
|
94 |
|
18 |
|
19 |
|
20 |
|
21 |
+
if (isHttps() && !is_null($result)) {
|
22 |
foreach ($result as $entry) {
|
23 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
|
24 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
25 |
}
|
26 |
}
|
27 |
|
28 |
+
if(!is_null($result)){
|
|
|
|
|
29 |
foreach ($result as $entry) {
|
30 |
if(!empty($entry['caption'])) {
|
31 |
$caption = $entry['caption']['text'];
|
33 |
$caption = '';
|
34 |
}
|
35 |
$shortcode_content .= "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$entry['images']['standard_resolution']['url']}\"><img src=\"{$entry['images']['standard_resolution']['url']}\"></a></li>";
|
36 |
+
|
37 |
}
|
38 |
+
}
|
39 |
+
|
40 |
$post_shortcode_content = "</ul></div>";
|
41 |
+
|
42 |
?>
|
43 |
|
|
|
44 |
|
45 |
+
|
46 |
+
<script type="text/javascript">
|
47 |
+
|
48 |
jQuery(function() {
|
49 |
jQuery('#grid-<?php echo $i; ?>').gridrotator({
|
50 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
61 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
62 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
63 |
},
|
64 |
+
|
65 |
w768 : {
|
66 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
67 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
68 |
},
|
69 |
+
|
70 |
w480 : {
|
71 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
72 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
73 |
},
|
74 |
+
|
75 |
w320 : {
|
76 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
77 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
78 |
},
|
79 |
+
|
80 |
w240 : {
|
81 |
rows : <?php echo get_option('enjoyinstagram_grid_rows'); ?>,
|
82 |
columns : <?php echo get_option('enjoyinstagram_grid_cols'); ?>
|
83 |
}
|
84 |
});
|
85 |
+
|
86 |
jQuery('#grid-<?php echo $i; ?>').fadeIn('1000');
|
87 |
+
|
88 |
+
|
89 |
});
|
90 |
+
|
91 |
</script>
|
92 |
<?php
|
93 |
|
library/enjoyinstagram_shortcode_grid_widget.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
// Add Shortcode
|
3 |
-
function enjoyinstagram_mb_shortcode_grid_widget($atts) {
|
4 |
if(get_option('enjoyinstagram_client_id') || get_option('enjoyinstagram_client_id') != '') {
|
5 |
extract( shortcode_atts( array(
|
6 |
'id' => 'rigrid_default',
|
@@ -20,7 +20,7 @@ if("{$u_or_h}"=='hashtag'){
|
|
20 |
|
21 |
<?php
|
22 |
|
23 |
-
if (isHttps()) {
|
24 |
foreach ($result as $entry) {
|
25 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry->images->thumbnail->url);
|
26 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
@@ -34,7 +34,7 @@ if("{$u_or_h}"=='hashtag'){
|
|
34 |
<ul>
|
35 |
<?php
|
36 |
|
37 |
-
if($result){
|
38 |
foreach ($result as $entry) {
|
39 |
if(!empty($entry['caption'])) {
|
40 |
$caption = $entry['caption']['text'];
|
@@ -48,17 +48,17 @@ foreach ($result as $entry) {
|
|
48 |
}
|
49 |
|
50 |
echo "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$image}\"><img src=\"{$image}\"></a></li>";
|
51 |
-
|
52 |
}
|
53 |
}
|
54 |
?>
|
55 |
</ul></div>
|
56 |
|
57 |
-
<script type="text/javascript">
|
58 |
-
|
59 |
|
60 |
jQuery(function() {
|
61 |
-
|
62 |
jQuery('#rigrid-<?php echo "{$id}"; ?>').gridrotator({
|
63 |
rows : <?php echo "{$n_r}"; ?>,
|
64 |
columns : <?php echo "{$n_c}"; ?>,
|
@@ -70,22 +70,22 @@ foreach ($result as $entry) {
|
|
70 |
rows : <?php echo "{$n_r}"; ?>,
|
71 |
columns : <?php echo "{$n_c}"; ?>
|
72 |
},
|
73 |
-
|
74 |
w768 : {
|
75 |
rows : <?php echo "{$n_r}"; ?>,
|
76 |
columns : <?php echo "{$n_c}"; ?>
|
77 |
},
|
78 |
-
|
79 |
w480 : {
|
80 |
rows : <?php echo "{$n_r}"; ?>,
|
81 |
columns : <?php echo "{$n_c}"; ?>
|
82 |
},
|
83 |
-
|
84 |
w320 : {
|
85 |
rows : <?php echo "{$n_r}"; ?>,
|
86 |
columns : <?php echo "{$n_c}"; ?>
|
87 |
},
|
88 |
-
|
89 |
w240 : {
|
90 |
rows : <?php echo "{$n_r}"; ?>,
|
91 |
columns : <?php echo "{$n_c}"; ?>
|
@@ -94,14 +94,14 @@ w240 : {
|
|
94 |
jQuery('#rigrid-<?php echo "{$id}"; ?>').fadeIn('slow');
|
95 |
});
|
96 |
|
97 |
-
|
98 |
</script>
|
99 |
<?php
|
100 |
|
101 |
}
|
102 |
?>
|
103 |
|
104 |
-
|
105 |
<?php
|
106 |
}
|
107 |
|
1 |
<?php
|
2 |
// Add Shortcode
|
3 |
+
function enjoyinstagram_mb_shortcode_grid_widget($atts) {
|
4 |
if(get_option('enjoyinstagram_client_id') || get_option('enjoyinstagram_client_id') != '') {
|
5 |
extract( shortcode_atts( array(
|
6 |
'id' => 'rigrid_default',
|
20 |
|
21 |
<?php
|
22 |
|
23 |
+
if (isHttps() && !is_null($result)) {
|
24 |
foreach ($result as $entry) {
|
25 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry->images->thumbnail->url);
|
26 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
34 |
<ul>
|
35 |
<?php
|
36 |
|
37 |
+
if(!is_null($result)){
|
38 |
foreach ($result as $entry) {
|
39 |
if(!empty($entry['caption'])) {
|
40 |
$caption = $entry['caption']['text'];
|
48 |
}
|
49 |
|
50 |
echo "<li><a title=\"{$caption}\" class=\"swipebox_grid\" href=\"{$image}\"><img src=\"{$image}\"></a></li>";
|
51 |
+
|
52 |
}
|
53 |
}
|
54 |
?>
|
55 |
</ul></div>
|
56 |
|
57 |
+
<script type="text/javascript">
|
58 |
+
|
59 |
|
60 |
jQuery(function() {
|
61 |
+
|
62 |
jQuery('#rigrid-<?php echo "{$id}"; ?>').gridrotator({
|
63 |
rows : <?php echo "{$n_r}"; ?>,
|
64 |
columns : <?php echo "{$n_c}"; ?>,
|
70 |
rows : <?php echo "{$n_r}"; ?>,
|
71 |
columns : <?php echo "{$n_c}"; ?>
|
72 |
},
|
73 |
+
|
74 |
w768 : {
|
75 |
rows : <?php echo "{$n_r}"; ?>,
|
76 |
columns : <?php echo "{$n_c}"; ?>
|
77 |
},
|
78 |
+
|
79 |
w480 : {
|
80 |
rows : <?php echo "{$n_r}"; ?>,
|
81 |
columns : <?php echo "{$n_c}"; ?>
|
82 |
},
|
83 |
+
|
84 |
w320 : {
|
85 |
rows : <?php echo "{$n_r}"; ?>,
|
86 |
columns : <?php echo "{$n_c}"; ?>
|
87 |
},
|
88 |
+
|
89 |
w240 : {
|
90 |
rows : <?php echo "{$n_r}"; ?>,
|
91 |
columns : <?php echo "{$n_c}"; ?>
|
94 |
jQuery('#rigrid-<?php echo "{$id}"; ?>').fadeIn('slow');
|
95 |
});
|
96 |
|
97 |
+
|
98 |
</script>
|
99 |
<?php
|
100 |
|
101 |
}
|
102 |
?>
|
103 |
|
104 |
+
|
105 |
<?php
|
106 |
}
|
107 |
|
library/enjoyinstagram_shortcode_widget.php
CHANGED
@@ -46,7 +46,7 @@ function enjoyinstagram_mb_shortcode_widget($atts) {
|
|
46 |
}
|
47 |
|
48 |
|
49 |
-
if (isHttps()){
|
50 |
foreach ($result as $entry) {
|
51 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
|
52 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
@@ -56,7 +56,7 @@ function enjoyinstagram_mb_shortcode_widget($atts) {
|
|
56 |
?>
|
57 |
<div id="owl-<?php echo "{$id}"; ?>" class="owl-example">
|
58 |
<?php
|
59 |
-
if($result){
|
60 |
foreach ($result as $entry) {
|
61 |
if(!empty($entry['caption'])) {
|
62 |
$caption = $entry['caption']['text'];
|
@@ -79,4 +79,4 @@ function enjoyinstagram_mb_shortcode_widget($atts) {
|
|
79 |
add_shortcode( 'enjoyinstagram_mb_widget', 'enjoyinstagram_mb_shortcode_widget' );
|
80 |
|
81 |
|
82 |
-
?>
|
46 |
}
|
47 |
|
48 |
|
49 |
+
if (isHttps() && !is_null($result)){
|
50 |
foreach ($result as $entry) {
|
51 |
$entry['images']['thumbnail']['url'] = str_replace('http://', 'https://', $entry['images']['thumbnail']['url']);
|
52 |
$entry['images']['standard_resolution']['url'] = str_replace('http://', 'https://', $entry['images']['standard_resolution']['url']);
|
56 |
?>
|
57 |
<div id="owl-<?php echo "{$id}"; ?>" class="owl-example">
|
58 |
<?php
|
59 |
+
if(!is_null($result)){
|
60 |
foreach ($result as $entry) {
|
61 |
if(!empty($entry['caption'])) {
|
62 |
$caption = $entry['caption']['text'];
|
79 |
add_shortcode( 'enjoyinstagram_mb_widget', 'enjoyinstagram_mb_shortcode_widget' );
|
80 |
|
81 |
|
82 |
+
?>
|
readme.txt
CHANGED
@@ -1,33 +1,29 @@
|
|
1 |
-
=== Enjoy
|
2 |
Contributors: (mediabeta, frafra85, fabiodipa)
|
3 |
Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
|
4 |
-
Tags: Instagram
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Version:
|
8 |
-
Stable tag:
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
Instagram on your website with shortcodes and widgets
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
|
17 |
-
=
|
18 |
-
|
19 |
-
—————
|
20 |
-
|
21 |
-
= Show Instagram Photos in your website! =
|
22 |
|
23 |
Publish easily Instagram photos in your pages, posts, sidebars thanks to simple shortcodes and widgets.
|
24 |
|
25 |
Each photo can be shown in Carousel and Grid mode with Lightbox effect.
|
26 |
Everything is responsive and optimized for mobile devices.
|
27 |
|
28 |
-
= Here is Live Demo: = http://www.
|
29 |
|
30 |
-
= Basic Features =
|
31 |
|
32 |
* Show pictures of Instagram profiles and/or Hashtags
|
33 |
* Grid View
|
@@ -44,17 +40,29 @@ Everything is responsive and optimized for mobile devices.
|
|
44 |
= Very Simple Installation and Configuration =
|
45 |
* http://www.mediabetaprojects.com/enjoy-instagram-premium/install-enjoy-instagram-wordpress-plugin/
|
46 |
|
47 |
-
= PREMIUM VERSION =
|
48 |
|
49 |
-
= The first and alone wordpress plugin = that gives you the chance to
|
|
|
50 |
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
= See LIVE PREVIEW: = http://www.mediabetaprojects.com/enjoy-instagram-premium/
|
54 |
|
55 |
-
|
56 |
-
*
|
57 |
-
*
|
|
|
58 |
* Autoreload Stream of Photos
|
59 |
* Moderation Panel: In real time you can moderate new photos and decide to approve and to publish or to rejected (Watch how it works:
|
60 |
[youtube https://www.youtube.com/watch?v=W6gNqlghbLE]
|
@@ -92,7 +100,7 @@ http://www.mediabetaprojects.com/enjoy-instagram-premium/install-enjoy-instagram
|
|
92 |
|
93 |
|
94 |
= My profile disappeared. What’s happened? =
|
95 |
-
|
96 |
|
97 |
|
98 |
= Where can i find ShortCodes ? =
|
@@ -102,7 +110,7 @@ If you do not see the button of shortcodes, you can use these shortcode
|
|
102 |
[enjoyinstagram_mb] -> Carousel View
|
103 |
[enjoyinstagram_mb_grid] -> Grid View
|
104 |
|
105 |
-
In the Setting section yon can customize grid and/or
|
106 |
|
107 |
|
108 |
== Screenshots ==
|
@@ -160,6 +168,11 @@ In the Setting section yon can customize grid and/or Carousle view
|
|
160 |
* Banner Removed
|
161 |
= 2.1.3 =
|
162 |
* Add Shortcakes Info
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
== Upgrade Notice ==
|
165 |
|
@@ -204,4 +217,6 @@ In the Setting section yon can customize grid and/or Carousle view
|
|
204 |
= 2.1.2 =
|
205 |
* Banner Removed
|
206 |
= 2.1.3 =
|
207 |
-
* Add Shortcakes Info
|
|
|
|
1 |
+
=== Enjoy Instagram ===
|
2 |
Contributors: (mediabeta, frafra85, fabiodipa)
|
3 |
Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
|
4 |
+
Tags: Instagram,, Instagram feeds, Instagram grid, Instagram carousel, Instagram feed on website, widget instagram, embed instagram feed, responsive carousel, wordpress Instagram, wordpress carousel, Instagram gallery, Instagram images, Lightbox Instagram, Grid Instagram view, Instagram responsive, Instagram touch, Instagram photos,Instagram posts, Instagram page, Instagram widgets
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.6.1
|
7 |
+
Version: 3.1
|
8 |
+
Stable tag: 3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
Instagram feeds on your website with Carousel and Grid view. Display Instagram photos with shortcodes and widgets for Instagram profiles and hashtags on posts, pages, sidebar.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
|
17 |
+
= Instagram pictures in your website with carousel and grid view! =
|
|
|
|
|
|
|
|
|
18 |
|
19 |
Publish easily Instagram photos in your pages, posts, sidebars thanks to simple shortcodes and widgets.
|
20 |
|
21 |
Each photo can be shown in Carousel and Grid mode with Lightbox effect.
|
22 |
Everything is responsive and optimized for mobile devices.
|
23 |
|
24 |
+
= Here is Live Demo: = http://www.mediabetaprojects.com/enjoy-instagram-premium/instagram-feeds-in-your-website-enjoy-instagram-free/
|
25 |
|
26 |
+
= Enjoy Instagram Basic Features =
|
27 |
|
28 |
* Show pictures of Instagram profiles and/or Hashtags
|
29 |
* Grid View
|
40 |
= Very Simple Installation and Configuration =
|
41 |
* http://www.mediabetaprojects.com/enjoy-instagram-premium/install-enjoy-instagram-wordpress-plugin/
|
42 |
|
43 |
+
= Enjoy Instagram PREMIUM VERSION =
|
44 |
|
45 |
+
= The first and alone wordpress plugin = that gives you the chance to have a useful and amazing Moderation Panel!
|
46 |
+
In the premium configuration you will choose which Instagram photos display in your website.
|
47 |
|
48 |
+
= Features introduced in the last premium version =
|
49 |
+
|
50 |
+
* NEW - multi hashtag supported
|
51 |
+
* NEW - pictures with squared format supported
|
52 |
+
* NEW - grid view with border between pictures
|
53 |
+
* NEW - video visualization for browser supporting HTML5
|
54 |
+
* NEW - performance improvement
|
55 |
+
* NEW - cleaning and optimization code
|
56 |
+
* NEW - improvement for css and js loading
|
57 |
+
* NEW - better management of loading images for Grid view
|
58 |
+
* NEW - better management for a big number of pictures in line with the latest Instagram guidelines
|
59 |
|
60 |
= See LIVE PREVIEW: = http://www.mediabetaprojects.com/enjoy-instagram-premium/
|
61 |
|
62 |
+
Other features:
|
63 |
+
* Polaroid View to overlay images as polaroid pictures
|
64 |
+
* Album View to show your pictures organized for username and or hashtags
|
65 |
+
* Badge View that will help you link to and promote your Instagram web profile
|
66 |
* Autoreload Stream of Photos
|
67 |
* Moderation Panel: In real time you can moderate new photos and decide to approve and to publish or to rejected (Watch how it works:
|
68 |
[youtube https://www.youtube.com/watch?v=W6gNqlghbLE]
|
100 |
|
101 |
|
102 |
= My profile disappeared. What’s happened? =
|
103 |
+
Sometimes, when you upgrade the plugin you need also to hook again your Instagram profile. So repeat the step that you can see in slide 4 of this presentation http://www.mediabetaprojects.com/enjoy-instagram-premium/install-enjoy-instagram-wordpress-plugin/
|
104 |
|
105 |
|
106 |
= Where can i find ShortCodes ? =
|
110 |
[enjoyinstagram_mb] -> Carousel View
|
111 |
[enjoyinstagram_mb_grid] -> Grid View
|
112 |
|
113 |
+
In the Setting section yon can customize grid and/or Carousel view
|
114 |
|
115 |
|
116 |
== Screenshots ==
|
168 |
* Banner Removed
|
169 |
= 2.1.3 =
|
170 |
* Add Shortcakes Info
|
171 |
+
= 3.0 =
|
172 |
+
* New Instagram Api Implementation
|
173 |
+
= 3.1 =
|
174 |
+
* Fixed: Minor issues
|
175 |
+
|
176 |
|
177 |
== Upgrade Notice ==
|
178 |
|
217 |
= 2.1.2 =
|
218 |
* Banner Removed
|
219 |
= 2.1.3 =
|
220 |
+
* Add Shortcakes Info
|
221 |
+
= 3.0 =
|
222 |
+
* New Instagram Api Implementation
|
tinymce/tinymce.php
CHANGED
@@ -11,7 +11,7 @@ class add_enjoyinstagram_button {
|
|
11 |
*
|
12 |
* @return void
|
13 |
*/
|
14 |
-
function
|
15 |
// Set path to editor_plugin.js
|
16 |
$this->path = plugins_url('/',__FILE__);
|
17 |
|
11 |
*
|
12 |
* @return void
|
13 |
*/
|
14 |
+
function __construct() {
|
15 |
// Set path to editor_plugin.js
|
16 |
$this->path = plugins_url('/',__FILE__);
|
17 |
|