Version Description
- Added notification for meks plugins
Download this release
Release Info
Developer | mekshq |
Plugin | Meks Simple Flickr Widget |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.4
- inc/class-flickr-widget.php +23 -5
- js/admin.js +22 -0
- languages/meks-simple-flickr-widget-en_US.mo +0 -0
- languages/meks-simple-flickr-widget-en_US.po +58 -50
- languages/meks-simple-flickr-widget.pot +58 -50
- meks-simple-flickr-widget.php +83 -6
- readme.txt +20 -9
inc/class-flickr-widget.php
CHANGED
@@ -21,7 +21,8 @@ class MKS_Flickr_Widget extends WP_Widget {
|
|
21 |
'id' => '',
|
22 |
'count' => 9,
|
23 |
't_width' => 85,
|
24 |
-
't_height' => 85
|
|
|
25 |
);
|
26 |
|
27 |
//Allow themes or plugins to modify default parameters
|
@@ -50,10 +51,17 @@ class MKS_Flickr_Widget extends WP_Widget {
|
|
50 |
$photos = $this->get_photos( $instance['id'], $instance['count'] );
|
51 |
|
52 |
if ( !empty( $photos ) ) {
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
echo '<ul class="flickr">';
|
55 |
foreach ( $photos as $photo ) {
|
56 |
-
echo '<li><a href="'
|
57 |
}
|
58 |
echo '</ul>';
|
59 |
echo '<div class="clear"></div>';
|
@@ -72,13 +80,14 @@ class MKS_Flickr_Widget extends WP_Widget {
|
|
72 |
return $cached;
|
73 |
}
|
74 |
|
|
|
75 |
$output = array();
|
76 |
-
$rss = '
|
77 |
$rss = fetch_feed( $rss );
|
78 |
|
79 |
if ( is_wp_error( $rss ) ) {
|
80 |
//check for group feed
|
81 |
-
$rss = '
|
82 |
$rss = fetch_feed( $rss );
|
83 |
}
|
84 |
|
@@ -99,6 +108,7 @@ class MKS_Flickr_Widget extends WP_Widget {
|
|
99 |
set_transient( $transient_key, $output, 60 * 60 * 24 );
|
100 |
}
|
101 |
|
|
|
102 |
|
103 |
return $output;
|
104 |
}
|
@@ -110,6 +120,7 @@ class MKS_Flickr_Widget extends WP_Widget {
|
|
110 |
$instance['count'] = absint( $new_instance['count'] );
|
111 |
$instance['t_width'] = absint( $new_instance['t_width'] );
|
112 |
$instance['t_height'] = absint( $new_instance['t_height'] );
|
|
|
113 |
return $new_instance;
|
114 |
}
|
115 |
|
@@ -140,6 +151,13 @@ class MKS_Flickr_Widget extends WP_Widget {
|
|
140 |
<p>
|
141 |
<label for="<?php echo $this->get_field_id( 't_height' ); ?>"><?php _e( 'Thumbnail height', 'meks-simple-flickr-widget' ); ?>:</label>
|
142 |
<input class="small-text" type="text" value="<?php echo absint( $instance['t_height'] ); ?>" id="<?php echo $this->get_field_id( 't_height' ); ?>" name="<?php echo $this->get_field_name( 't_height' ); ?>" /> px
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
</p>
|
144 |
|
145 |
<?php
|
21 |
'id' => '',
|
22 |
'count' => 9,
|
23 |
't_width' => 85,
|
24 |
+
't_height' => 85,
|
25 |
+
'randomize' => 0,
|
26 |
);
|
27 |
|
28 |
//Allow themes or plugins to modify default parameters
|
51 |
$photos = $this->get_photos( $instance['id'], $instance['count'] );
|
52 |
|
53 |
if ( !empty( $photos ) ) {
|
54 |
+
|
55 |
+
if($instance['randomize']){
|
56 |
+
shuffle($photos);
|
57 |
+
}
|
58 |
+
|
59 |
+
$height = $instance['t_height'] ? $instance['t_height'].'px' : 'auto';
|
60 |
+
$style = 'style="width: '.esc_attr( $instance['t_width'] ).'px; height: '.esc_attr( $height ).';"';
|
61 |
+
|
62 |
echo '<ul class="flickr">';
|
63 |
foreach ( $photos as $photo ) {
|
64 |
+
echo '<li><a href="'.esc_url( $photo['img_url'] ).'" title="'.esc_attr( $photo['title'] ).'" target="_blank"><img src="'.esc_attr( $photo['img_src'] ).'" alt="'.esc_attr( $photo['title'] ).'" '.$style.'/></a></li>';
|
65 |
}
|
66 |
echo '</ul>';
|
67 |
echo '<div class="clear"></div>';
|
80 |
return $cached;
|
81 |
}
|
82 |
|
83 |
+
$protocol = is_ssl() ? 'https' : 'http';
|
84 |
$output = array();
|
85 |
+
$rss = $protocol.'://api.flickr.com/services/feeds/photos_public.gne?id='.$id.'&lang=en-us&format=rss_200';
|
86 |
$rss = fetch_feed( $rss );
|
87 |
|
88 |
if ( is_wp_error( $rss ) ) {
|
89 |
//check for group feed
|
90 |
+
$rss = $protocol.'://api.flickr.com/services/feeds/groups_pool.gne?id='.$id.'&lang=en-us&format=rss_200';
|
91 |
$rss = fetch_feed( $rss );
|
92 |
}
|
93 |
|
108 |
set_transient( $transient_key, $output, 60 * 60 * 24 );
|
109 |
}
|
110 |
|
111 |
+
//print_r( $output );
|
112 |
|
113 |
return $output;
|
114 |
}
|
120 |
$instance['count'] = absint( $new_instance['count'] );
|
121 |
$instance['t_width'] = absint( $new_instance['t_width'] );
|
122 |
$instance['t_height'] = absint( $new_instance['t_height'] );
|
123 |
+
$instance['randomize'] = isset( $new_instance['randomize'] ) ? 1 : 0;
|
124 |
return $new_instance;
|
125 |
}
|
126 |
|
151 |
<p>
|
152 |
<label for="<?php echo $this->get_field_id( 't_height' ); ?>"><?php _e( 'Thumbnail height', 'meks-simple-flickr-widget' ); ?>:</label>
|
153 |
<input class="small-text" type="text" value="<?php echo absint( $instance['t_height'] ); ?>" id="<?php echo $this->get_field_id( 't_height' ); ?>" name="<?php echo $this->get_field_name( 't_height' ); ?>" /> px
|
154 |
+
<small class="howto"><?php _e( 'Note: You can use "0" value for auto height', 'meks-simple-flickr-widget' ); ?></small>
|
155 |
+
</p>
|
156 |
+
|
157 |
+
<p>
|
158 |
+
<label for="<?php echo $this->get_field_id( 'randomize' ); ?>">
|
159 |
+
<input type="checkbox" value="1" id="<?php echo $this->get_field_id( 'randomize' ); ?>" name="<?php echo $this->get_field_name( 'randomize' ); ?>" <?php checked( $instance['randomize'], 1 ); ?>/> <?php _e( 'Randomize photos?', 'meks-simple-flickr-widget' ); ?>
|
160 |
+
</label>
|
161 |
</p>
|
162 |
|
163 |
<?php
|
js/admin.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($) {
|
2 |
+
|
3 |
+
"use strict";
|
4 |
+
|
5 |
+
$(document).ready(function() {
|
6 |
+
|
7 |
+
$('body').on('click', '.meks-notice .notice-dismiss', function(){
|
8 |
+
|
9 |
+
$.ajax( {
|
10 |
+
url: ajaxurl,
|
11 |
+
method: "POST",
|
12 |
+
data: {
|
13 |
+
action: 'meks_remove_notification'
|
14 |
+
}
|
15 |
+
});
|
16 |
+
|
17 |
+
});
|
18 |
+
|
19 |
+
|
20 |
+
});
|
21 |
+
|
22 |
+
})(jQuery);
|
languages/meks-simple-flickr-widget-en_US.mo
CHANGED
Binary file
|
languages/meks-simple-flickr-widget-en_US.po
CHANGED
@@ -1,50 +1,58 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
-
"Last-Translator: MeksHQ <support@mekshq.com>\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.5.7\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: .\n"
|
14 |
-
"X-Poedit-SearchPath-0: ..\n"
|
15 |
-
|
16 |
-
#: ../inc/class-flickr-widget.php:
|
17 |
-
msgid "Display your Flickr photostream"
|
18 |
-
msgstr ""
|
19 |
-
|
20 |
-
#: ../inc/class-flickr-widget.php:
|
21 |
-
msgid "Meks Flickr Widget"
|
22 |
-
msgstr ""
|
23 |
-
|
24 |
-
#: ../inc/class-flickr-widget.php:
|
25 |
-
msgid "Title"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: ../inc/class-flickr-widget.php:
|
29 |
-
msgid "Flickr ID"
|
30 |
-
msgstr ""
|
31 |
-
|
32 |
-
#: ../inc/class-flickr-widget.php:
|
33 |
-
msgid "What's my Flickr ID?"
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: ../inc/class-flickr-widget.php:
|
37 |
-
msgid "Example ID: 23100287@N07"
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: ../inc/class-flickr-widget.php:
|
41 |
-
msgid "Number of photos"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: ../inc/class-flickr-widget.php:
|
45 |
-
msgid "Thumbnail width"
|
46 |
-
msgstr ""
|
47 |
-
|
48 |
-
#: ../inc/class-flickr-widget.php:
|
49 |
-
msgid "Thumbnail height"
|
50 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2016-12-02 17:03+0100\n"
|
5 |
+
"PO-Revision-Date: 2016-12-02 17:04+0100\n"
|
6 |
+
"Last-Translator: MeksHQ <support@mekshq.com>\n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.7\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SearchPath-0: ..\n"
|
15 |
+
|
16 |
+
#: ../inc/class-flickr-widget.php:11
|
17 |
+
msgid "Display your Flickr photostream"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: ../inc/class-flickr-widget.php:13
|
21 |
+
msgid "Meks Flickr Widget"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: ../inc/class-flickr-widget.php:133
|
25 |
+
msgid "Title"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: ../inc/class-flickr-widget.php:137
|
29 |
+
msgid "Flickr ID"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: ../inc/class-flickr-widget.php:137
|
33 |
+
msgid "What's my Flickr ID?"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: ../inc/class-flickr-widget.php:139
|
37 |
+
msgid "Example ID: 23100287@N07"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: ../inc/class-flickr-widget.php:142
|
41 |
+
msgid "Number of photos"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: ../inc/class-flickr-widget.php:147
|
45 |
+
msgid "Thumbnail width"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: ../inc/class-flickr-widget.php:152
|
49 |
+
msgid "Thumbnail height"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: ../inc/class-flickr-widget.php:154
|
53 |
+
msgid "Note: You can use \"0\" value for auto height"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: ../inc/class-flickr-widget.php:159
|
57 |
+
msgid "Randomize photos?"
|
58 |
+
msgstr ""
|
languages/meks-simple-flickr-widget.pot
CHANGED
@@ -1,50 +1,58 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
-
"Last-Translator: MeksHQ <support@mekshq.com>\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.5.7\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: .\n"
|
14 |
-
"X-Poedit-SearchPath-0: ..\n"
|
15 |
-
|
16 |
-
#: ../inc/class-flickr-widget.php:
|
17 |
-
msgid "Display your Flickr photostream"
|
18 |
-
msgstr ""
|
19 |
-
|
20 |
-
#: ../inc/class-flickr-widget.php:
|
21 |
-
msgid "Meks Flickr Widget"
|
22 |
-
msgstr ""
|
23 |
-
|
24 |
-
#: ../inc/class-flickr-widget.php:
|
25 |
-
msgid "Title"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#: ../inc/class-flickr-widget.php:
|
29 |
-
msgid "Flickr ID"
|
30 |
-
msgstr ""
|
31 |
-
|
32 |
-
#: ../inc/class-flickr-widget.php:
|
33 |
-
msgid "What's my Flickr ID?"
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: ../inc/class-flickr-widget.php:
|
37 |
-
msgid "Example ID: 23100287@N07"
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: ../inc/class-flickr-widget.php:
|
41 |
-
msgid "Number of photos"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: ../inc/class-flickr-widget.php:
|
45 |
-
msgid "Thumbnail width"
|
46 |
-
msgstr ""
|
47 |
-
|
48 |
-
#: ../inc/class-flickr-widget.php:
|
49 |
-
msgid "Thumbnail height"
|
50 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2016-12-02 17:03+0100\n"
|
5 |
+
"PO-Revision-Date: 2016-12-02 17:04+0100\n"
|
6 |
+
"Last-Translator: MeksHQ <support@mekshq.com>\n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.7\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SearchPath-0: ..\n"
|
15 |
+
|
16 |
+
#: ../inc/class-flickr-widget.php:11
|
17 |
+
msgid "Display your Flickr photostream"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: ../inc/class-flickr-widget.php:13
|
21 |
+
msgid "Meks Flickr Widget"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: ../inc/class-flickr-widget.php:133
|
25 |
+
msgid "Title"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: ../inc/class-flickr-widget.php:137
|
29 |
+
msgid "Flickr ID"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: ../inc/class-flickr-widget.php:137
|
33 |
+
msgid "What's my Flickr ID?"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: ../inc/class-flickr-widget.php:139
|
37 |
+
msgid "Example ID: 23100287@N07"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: ../inc/class-flickr-widget.php:142
|
41 |
+
msgid "Number of photos"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: ../inc/class-flickr-widget.php:147
|
45 |
+
msgid "Thumbnail width"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: ../inc/class-flickr-widget.php:152
|
49 |
+
msgid "Thumbnail height"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: ../inc/class-flickr-widget.php:154
|
53 |
+
msgid "Note: You can use \"0\" value for auto height"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: ../inc/class-flickr-widget.php:159
|
57 |
+
msgid "Randomize photos?"
|
58 |
+
msgstr ""
|
meks-simple-flickr-widget.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Meks Simple Flickr Widget
|
4 |
-
Plugin URI:
|
5 |
Description: Quickly display your Flickr photos inside WordPress widget. No authorization required (only provide your user id).
|
6 |
-
Author:
|
7 |
-
Version: 1.1.
|
8 |
-
Author URI:
|
9 |
Text Domain: meks-simple-flickr-widget
|
10 |
Domain Path: /languages
|
11 |
*/
|
@@ -30,7 +30,7 @@ Domain Path: /languages
|
|
30 |
|
31 |
define( 'MKS_FLICKR_WIDGET_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
|
32 |
define( 'MKS_FLICKR_WIDGET_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
33 |
-
define( 'MKS_FLICKR_WIDGET_VER', '1.1.
|
34 |
|
35 |
/* Initialize Widget */
|
36 |
if ( !function_exists( 'mks_flickr_widget_init' ) ):
|
@@ -49,4 +49,81 @@ function mks_load_flickr_widget_text_domain() {
|
|
49 |
|
50 |
add_action( 'plugins_loaded', 'mks_load_flickr_widget_text_domain' );
|
51 |
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Meks Simple Flickr Widget
|
4 |
+
Plugin URI: https://mekshq.com
|
5 |
Description: Quickly display your Flickr photos inside WordPress widget. No authorization required (only provide your user id).
|
6 |
+
Author: Meks
|
7 |
+
Version: 1.1.4
|
8 |
+
Author URI: https://mekshq.com
|
9 |
Text Domain: meks-simple-flickr-widget
|
10 |
Domain Path: /languages
|
11 |
*/
|
30 |
|
31 |
define( 'MKS_FLICKR_WIDGET_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
|
32 |
define( 'MKS_FLICKR_WIDGET_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
33 |
+
define( 'MKS_FLICKR_WIDGET_VER', '1.1.4' );
|
34 |
|
35 |
/* Initialize Widget */
|
36 |
if ( !function_exists( 'mks_flickr_widget_init' ) ):
|
49 |
|
50 |
add_action( 'plugins_loaded', 'mks_load_flickr_widget_text_domain' );
|
51 |
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Upsell Meks themes with notice info
|
55 |
+
*
|
56 |
+
* @return void
|
57 |
+
*/
|
58 |
+
add_action( 'admin_notices', 'meks_admin_notice__info' );
|
59 |
+
|
60 |
+
if ( ! function_exists( 'meks_admin_notice__info' ) ) :
|
61 |
+
|
62 |
+
function meks_admin_notice__info() {
|
63 |
+
|
64 |
+
$meks_themes = array( 'shamrock', 'awsm', 'safarica', 'seashell', 'sidewalk', 'throne', 'voice', 'herald', 'vlog', 'gridlove', 'pinhole', 'typology', 'trawell', 'opinion', 'johannes', 'megaphone', 'toucan', 'roogan' );
|
65 |
+
$active_theme = get_option( 'template' );
|
66 |
+
|
67 |
+
|
68 |
+
if ( ! in_array( $active_theme, $meks_themes ) ) {
|
69 |
+
|
70 |
+
if ( get_option('has_transient') == 0 ) {
|
71 |
+
set_transient( 'meks_admin_notice_time_'. get_current_user_id() , true, WEEK_IN_SECONDS );
|
72 |
+
update_option('has_transient', 1);
|
73 |
+
update_option('track_transient', 1);
|
74 |
+
}
|
75 |
+
|
76 |
+
if ( !get_option('meks_admin_notice_info') || ( get_option('track_transient') && !get_transient( 'meks_admin_notice_time_'. get_current_user_id() ) ) ) {
|
77 |
+
|
78 |
+
$all_themes = wp_get_themes();
|
79 |
+
|
80 |
+
?>
|
81 |
+
<div class="meks-notice notice notice-info is-dismissible">
|
82 |
+
<p>
|
83 |
+
<?php
|
84 |
+
echo sprintf( __( 'You are currently using %1$s theme. Did you know that Meks plugins give you more features and flexibility with one of our <a href="%2$s">Meks themes</a>?', 'meks-simple-flickr-widget' ), $all_themes[ $active_theme ], 'https://1.envato.market/4DE2o' );
|
85 |
+
?>
|
86 |
+
</p>
|
87 |
+
</div>
|
88 |
+
<?php
|
89 |
+
|
90 |
+
}
|
91 |
+
} else {
|
92 |
+
delete_option('meks_admin_notice_info');
|
93 |
+
delete_option('has_transient');
|
94 |
+
delete_option('track_transient');
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
+
endif;
|
99 |
+
|
100 |
+
|
101 |
+
/**
|
102 |
+
* Colose/remove info notice with ajax
|
103 |
+
*
|
104 |
+
* @return void
|
105 |
+
*/
|
106 |
+
add_action( 'wp_ajax_meks_remove_notification', 'meks_remove_notification' );
|
107 |
+
add_action( 'wp_ajax_nopriv_meks_remove_notification', 'meks_remove_notification' );
|
108 |
+
|
109 |
+
if ( !function_exists( 'meks_remove_notification' ) ) :
|
110 |
+
function meks_remove_notification() {
|
111 |
+
add_option('meks_admin_notice_info', 1);
|
112 |
+
if ( !get_transient( 'meks_admin_notice_time_'. get_current_user_id() ) ) {
|
113 |
+
update_option('track_transient', 0);
|
114 |
+
}
|
115 |
+
}
|
116 |
+
endif;
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Add admin scripts
|
120 |
+
*
|
121 |
+
* @return void
|
122 |
+
*/
|
123 |
+
add_action( 'admin_enqueue_scripts', 'meks_flicker_enqueue_admin_scripts' );
|
124 |
+
|
125 |
+
if ( !function_exists( 'meks_flicker_enqueue_admin_scripts' ) ) :
|
126 |
+
function meks_flicker_enqueue_admin_scripts() {
|
127 |
+
wp_enqueue_script( 'meks-flicker-widget', MKS_FLICKR_WIDGET_URL . 'js/admin.js', array('jquery'), MKS_FLICKR_WIDGET_VER );
|
128 |
+
}
|
129 |
+
endif;
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Meks Simple Flickr Widget ===
|
2 |
Contributors: mekshq
|
3 |
-
Donate link:
|
4 |
Tags: flickr, widget, sidebar, photos, photostream
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -15,16 +15,18 @@ Quickly display your Flickr photos inside WordPress widget.
|
|
15 |
Quickly display your Flickr photos inside WordPress widget. No authorization required (only provide your user id).
|
16 |
|
17 |
|
18 |
-
|
19 |
|
20 |
* No authorization required (only provide your user id)
|
|
|
21 |
* Change thumbnail size
|
22 |
* Caching system integrated for better performance
|
23 |
|
24 |
-
Simple Flickr Widget plugin is created by <a href="http://mekshq.com" target="_blank">MeksHQ</a>
|
25 |
|
26 |
-
|
27 |
-
|
|
|
|
|
28 |
|
29 |
== Installation ==
|
30 |
|
@@ -34,7 +36,7 @@ Simple Flickr Widget plugin is created by <a href="http://mekshq.com" target="_b
|
|
34 |
|
35 |
== Frequently Asked Questions ==
|
36 |
|
37 |
-
For any questions, error reports and suggestions please
|
38 |
|
39 |
== Screenshots ==
|
40 |
|
@@ -43,7 +45,16 @@ For any questions, error reports and suggestions please email support@mekshq.com
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
-
=1.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
* Full compatibility with WordPress 4.3
|
48 |
|
49 |
= 1.1 =
|
1 |
=== Meks Simple Flickr Widget ===
|
2 |
Contributors: mekshq
|
3 |
+
Donate link: https://mekshq.com/
|
4 |
Tags: flickr, widget, sidebar, photos, photostream
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 1.1.4
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
15 |
Quickly display your Flickr photos inside WordPress widget. No authorization required (only provide your user id).
|
16 |
|
17 |
|
18 |
+
== Features ==
|
19 |
|
20 |
* No authorization required (only provide your user id)
|
21 |
+
* Support both user Flickr users and Flickr groups
|
22 |
* Change thumbnail size
|
23 |
* Caching system integrated for better performance
|
24 |
|
|
|
25 |
|
26 |
+
Simple Flickr Widget plugin is created by [Meks](https://mekshq.com)
|
27 |
+
|
28 |
+
== Live example? ==
|
29 |
+
You can see Simple Flickr Widget live example on our [Voice theme demo website](https://mekshq.com/demo/voice)
|
30 |
|
31 |
== Installation ==
|
32 |
|
36 |
|
37 |
== Frequently Asked Questions ==
|
38 |
|
39 |
+
For any questions, error reports and suggestions please visit https://mekshq.com/contact
|
40 |
|
41 |
== Screenshots ==
|
42 |
|
45 |
|
46 |
== Changelog ==
|
47 |
|
48 |
+
= 1.1.4 =
|
49 |
+
* Added notification for meks plugins
|
50 |
+
|
51 |
+
= 1.1.3 =
|
52 |
+
* Added an option to randomize photos on display
|
53 |
+
* Added support for websites using https protocol
|
54 |
+
* Improved: Now you can use "0" (zero) as height value to enable "auto" height for photos
|
55 |
+
|
56 |
+
|
57 |
+
= 1.1.2 =
|
58 |
* Full compatibility with WordPress 4.3
|
59 |
|
60 |
= 1.1 =
|