Version Description
- Added SSL parameter if being used.
Download this release
Release Info
Developer | zourbuth |
Plugin | Flickr Badges Widget |
Version | 1.2.7 |
Comparing to | |
See all releases |
Code changes from version 1.2.6 to 1.2.7
- index.php +2 -2
- readme.txt +5 -2
- widget.php +3 -1
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Flickr Badges Widget
|
4 |
Plugin URI: http://www.ground6.com/wordpress-plugins/flickr-badges-widget/
|
5 |
Description: Display your Flickr latest photostream in widget area using javascript. Easy to customize, just put your Flickr id and your widget ready to lunch.
|
6 |
-
Version: 1.2.
|
7 |
Author: zourbuth
|
8 |
Author URI: http://zourbuth.com
|
9 |
License: Under GPL2
|
@@ -37,7 +37,7 @@ if ( ! defined( 'ABSPATH' ) )
|
|
37 |
* Set constant path to the members plugin directory
|
38 |
* @since 1.0
|
39 |
*/
|
40 |
-
define( 'FLICKR_BADGES_WIDGET_VERSION', '1.2.
|
41 |
define( 'FLICKR_BADGES_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
42 |
define( 'FLICKR_BADGES_WIDGET_URL', plugin_dir_url( __FILE__ ) );
|
43 |
|
3 |
Plugin Name: Flickr Badges Widget
|
4 |
Plugin URI: http://www.ground6.com/wordpress-plugins/flickr-badges-widget/
|
5 |
Description: Display your Flickr latest photostream in widget area using javascript. Easy to customize, just put your Flickr id and your widget ready to lunch.
|
6 |
+
Version: 1.2.7
|
7 |
Author: zourbuth
|
8 |
Author URI: http://zourbuth.com
|
9 |
License: Under GPL2
|
37 |
* Set constant path to the members plugin directory
|
38 |
* @since 1.0
|
39 |
*/
|
40 |
+
define( 'FLICKR_BADGES_WIDGET_VERSION', '1.2.7' );
|
41 |
define( 'FLICKR_BADGES_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
42 |
define( 'FLICKR_BADGES_WIDGET_URL', plugin_dir_url( __FILE__ ) );
|
43 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: zourbuth
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W6D3WAJTVKAFC
|
4 |
Tags: flickr, widget, badge, feed, photostream, javascript, sidebar, gallery, photo, photo gallery, photography, sidebar, user, group, image, images, recent, random, picture, image-widget
|
5 |
-
Requires at least:
|
6 |
Tested up to: 3.0
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
A fast plugin toisplay your Flickr photostream in a sidebar easily without authentication.
|
10 |
|
@@ -64,6 +64,9 @@ http://www.ground6.com/wordpress-plugins/flickr-badges-widget/screenshots/
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
67 |
= 1.2.6 =
|
68 |
* Fixed widget transparent background
|
69 |
* Updated to WordPress 3.9 compliance
|
2 |
Contributors: zourbuth
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W6D3WAJTVKAFC
|
4 |
Tags: flickr, widget, badge, feed, photostream, javascript, sidebar, gallery, photo, photo gallery, photography, sidebar, user, group, image, images, recent, random, picture, image-widget
|
5 |
+
Requires at least: 4.1.1
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 1.2.7
|
8 |
|
9 |
A fast plugin toisplay your Flickr photostream in a sidebar easily without authentication.
|
10 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.2.7 =
|
68 |
+
* Added SSL parameter if being used.
|
69 |
+
|
70 |
= 1.2.6 =
|
71 |
* Fixed widget transparent background
|
72 |
* Updated to WordPress 3.9 compliance
|
widget.php
CHANGED
@@ -136,9 +136,11 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
136 |
|
137 |
echo "<div class='flickr-badge-wrapper zframe-flickr-wrap-$dir'>";
|
138 |
|
|
|
|
|
139 |
// If the widget have an ID, we can continue
|
140 |
if ( ! empty( $instance['flickr_id'] ) )
|
141 |
-
echo "<script type='text/javascript' src='
|
142 |
else
|
143 |
echo '<p>' . __('Please provide an Flickr ID', $this->textdomain) . '</p>';
|
144 |
|
136 |
|
137 |
echo "<div class='flickr-badge-wrapper zframe-flickr-wrap-$dir'>";
|
138 |
|
139 |
+
$protocol = is_ssl() ? 'https' : 'http';
|
140 |
+
|
141 |
// If the widget have an ID, we can continue
|
142 |
if ( ! empty( $instance['flickr_id'] ) )
|
143 |
+
echo "<script type='text/javascript' src='$protocol://www.flickr.com/badge_code_v2.gne?count=$count&display=$display&size=$size&layout=x&source=$type&$type=$flickr_id'></script>";
|
144 |
else
|
145 |
echo '<p>' . __('Please provide an Flickr ID', $this->textdomain) . '</p>';
|
146 |
|