Version Description
Download this release
Release Info
Developer | zourbuth |
Plugin | Flickr Badges Widget |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2.4
- flickr-badges-widget.php +68 -23
- index.php +4 -18
- readme.txt +51 -17
flickr-badges-widget.php
CHANGED
@@ -8,58 +8,79 @@
|
|
8 |
**/
|
9 |
|
10 |
class Flickr_Badges_Widget extends WP_Widget {
|
|
|
11 |
var $prefix;
|
12 |
var $textdomain;
|
13 |
|
14 |
/** Set up the widget's unique name, ID, class, description, and other options. **/
|
15 |
function __construct() {
|
|
|
|
|
16 |
|
17 |
/* Set up the widget control options. */
|
18 |
$control_options = array(
|
19 |
-
'width' =>
|
20 |
'height' => 350,
|
21 |
-
'id_base' =>
|
22 |
);
|
23 |
/** Add some informations to the widget **/
|
24 |
$widget_options = array('classname' => 'widget_flickr', 'description' => __( '[+] Displays a Flickr photo stream from an ID', $this->textdomain ) );
|
25 |
|
26 |
/* Create the widget. */
|
27 |
-
$this->WP_Widget(
|
28 |
|
29 |
add_action( 'load-widgets.php', array(&$this, 'widget_admin') );
|
30 |
|
31 |
if ( is_active_widget(false, false, $this->id_base, true) && !is_admin() ) {
|
32 |
/* load the widget stylesheet for the widgets screen. */
|
33 |
wp_enqueue_style( 'z-flickr', FLICKR_BADGES_WIDGET_URL . 'css/widget.css', false, 0.7, 'screen' );
|
|
|
34 |
}
|
35 |
}
|
36 |
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
function widget_admin() {
|
40 |
wp_enqueue_style( 'z-flickr-admin', FLICKR_BADGES_WIDGET_URL . 'css/dialog.css' );
|
41 |
wp_enqueue_script( 'jquery' );
|
42 |
wp_enqueue_script( 'z-flickr-admin', FLICKR_BADGES_WIDGET_URL . 'js/jquery.dialog.js' );
|
43 |
-
}
|
|
|
44 |
|
45 |
function widget( $args, $instance ) {
|
46 |
extract( $args );
|
47 |
|
48 |
-
|
49 |
$cur_arg = array(
|
50 |
'title' => $instance['title'],
|
51 |
'type' => empty( $instance['type'] ) ? 'user' : $instance['type'],
|
52 |
'flickr_id' => $instance['flickr_id'],
|
53 |
'count' => (int)$instance['count'],
|
54 |
-
'display' => empty( $instance['display'] ) ? 'latest' : $instance['display']
|
|
|
55 |
);
|
56 |
|
57 |
extract( $cur_arg );
|
58 |
|
59 |
-
//
|
60 |
if ( $count < 1 ) $count = 1;
|
61 |
|
62 |
-
|
63 |
if ( !empty( $instance['flickr_id'] ) ) {
|
64 |
|
65 |
// print the before widget
|
@@ -67,23 +88,30 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
67 |
|
68 |
if ( $title ) echo $before_title . $title . $after_title;
|
69 |
|
70 |
-
|
71 |
-
if ( function_exists( 'is_rtl' ) )
|
|
|
72 |
|
73 |
-
//
|
74 |
-
if (!empty( $instance['intro_text'] ) )
|
|
|
75 |
|
76 |
echo "<div class='zframe-flickr-wrap-$dir'>";
|
77 |
echo "<script type='text/javascript' src='http://www.flickr.com/badge_code_v2.gne?count=$count&display=$display&size=s&layout=x&source=$type&$type=$flickr_id'></script>";
|
78 |
echo '</div>';
|
79 |
|
80 |
-
if (!empty( $instance['outro_text'] ) )
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
83 |
echo $after_widget;
|
84 |
}
|
85 |
}
|
86 |
|
|
|
87 |
function update( $new_instance, $old_instance ) {
|
88 |
$instance = $old_instance;
|
89 |
$instance['type'] = strip_tags($new_instance['type']);
|
@@ -91,6 +119,7 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
91 |
$instance['count'] = (int) $new_instance['count'];
|
92 |
$instance['display'] = strip_tags($new_instance['display']);
|
93 |
$instance['title'] = strip_tags($new_instance['title']);
|
|
|
94 |
$instance['tab'] = $new_instance['tab'];
|
95 |
$instance['intro_text'] = $new_instance['intro_text'];
|
96 |
$instance['outro_text'] = $new_instance['outro_text'];
|
@@ -99,14 +128,16 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
99 |
return $instance;
|
100 |
}
|
101 |
|
|
|
102 |
function form( $instance ) {
|
103 |
-
|
104 |
$defaults = array(
|
105 |
'title' => esc_attr__( 'Flickr Widget', $this->textdomain ),
|
106 |
'type' => 'user',
|
107 |
'flickr_id' => '', // 71865026@N00
|
108 |
'count' => 9,
|
109 |
'display' => 'display',
|
|
|
110 |
'tab' => array( 0 => true ),
|
111 |
'intro_text' => '',
|
112 |
'outro_text' => '',
|
@@ -153,7 +184,7 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
153 |
<ul class="nav nav-tabs">
|
154 |
<li class="<?php if ( $instance['tab'][0] ) : ?>active<?php endif; ?>">General<input type="hidden" name="<?php echo $this->get_field_name( 'tab' ); ?>[]" value="<?php echo esc_attr( $instance['tab'][0] ); ?>" /></li>
|
155 |
<li class="<?php if ( $instance['tab'][1] ) : ?>active<?php endif; ?>">Customs<input type="hidden" name="<?php echo $this->get_field_name( 'tab' ); ?>[]" value="<?php echo esc_attr( $instance['tab'][1] ); ?>" /></li>
|
156 |
-
<li class="<?php if ( $instance['tab'][2] ) : ?>active<?php endif; ?>">
|
157 |
</ul>
|
158 |
|
159 |
<ul class="tab-content">
|
@@ -174,9 +205,9 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
174 |
</select>
|
175 |
</li>
|
176 |
<li>
|
177 |
-
<label for="<?php echo $this->get_field_id('flickr_id'); ?>"><?php _e('Flickr ID', $this->textdomain); ?></label>
|
178 |
-
<span class="controlDesc"><?php _e( 'Put the flickr ID here, go to <a href="http://www.idgettr.com" target="_blank">idGettr</a> if you don\'t know your ID.', $this->textdomain ); ?></span>
|
179 |
<input id="<?php echo $this->get_field_id('flickr_id'); ?>" name="<?php echo $this->get_field_name('flickr_id'); ?>" type="text" value="<?php echo esc_attr( $instance['flickr_id'] ); ?>" />
|
|
|
180 |
</li>
|
181 |
<li>
|
182 |
<label for="<?php echo $this->get_field_id('count'); ?>"><?php _e('Number', $this->textdomain); ?></label>
|
@@ -192,6 +223,11 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
192 |
<?php } ?>
|
193 |
</select>
|
194 |
</li>
|
|
|
|
|
|
|
|
|
|
|
195 |
</ul>
|
196 |
</li>
|
197 |
|
@@ -210,17 +246,26 @@ class Flickr_Badges_Widget extends WP_Widget {
|
|
210 |
</li>
|
211 |
<li>
|
212 |
<label for="<?php echo $this->get_field_id('custom'); ?>"><?php _e( 'Custom Script & Stylesheet', $this->textdomain ) ; ?></label>
|
213 |
-
<span class="controlDesc"><?php _e( 'Use this box for additional widget CSS style of custom javascript. Current widget selector: ', $this->textdomain ); ?><?php echo '<
|
214 |
<textarea name="<?php echo $this->get_field_name( 'custom' ); ?>" id="<?php echo $this->get_field_id( 'custom' ); ?>" rows="5" class="widefat code"><?php echo htmlentities($instance['custom']); ?></textarea>
|
215 |
</li>
|
216 |
</ul>
|
217 |
</li>
|
218 |
<li class="tab-pane <?php if ( $instance['tab'][2] ) : ?>active<?php endif; ?>">
|
219 |
<ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
<li>
|
221 |
<a href="http://feedburner.google.com/fb/a/mailverify?uri=zourbuth&loc=en_US">Subscribe to zourbuth by Email</a><br />
|
222 |
<?php _e( 'Like my work? Please consider to ', $this->textdomain ); ?><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W6D3WAJTVKAFC" title="Donate"><?php _e( 'donate', $this->textdomain ); ?></a>.<br /><br />
|
223 |
-
|
|
|
|
|
|
|
224 |
</li>
|
225 |
</ul>
|
226 |
</li>
|
8 |
**/
|
9 |
|
10 |
class Flickr_Badges_Widget extends WP_Widget {
|
11 |
+
|
12 |
var $prefix;
|
13 |
var $textdomain;
|
14 |
|
15 |
/** Set up the widget's unique name, ID, class, description, and other options. **/
|
16 |
function __construct() {
|
17 |
+
$this->prefix = 'zflickr';
|
18 |
+
$this->textdomain = 'flickr-badges-widget';
|
19 |
|
20 |
/* Set up the widget control options. */
|
21 |
$control_options = array(
|
22 |
+
'width' => 500,
|
23 |
'height' => 350,
|
24 |
+
'id_base' => $this->prefix
|
25 |
);
|
26 |
/** Add some informations to the widget **/
|
27 |
$widget_options = array('classname' => 'widget_flickr', 'description' => __( '[+] Displays a Flickr photo stream from an ID', $this->textdomain ) );
|
28 |
|
29 |
/* Create the widget. */
|
30 |
+
$this->WP_Widget($this->prefix, __('Flickr Badge', $this->textdomain), $widget_options, $control_options );
|
31 |
|
32 |
add_action( 'load-widgets.php', array(&$this, 'widget_admin') );
|
33 |
|
34 |
if ( is_active_widget(false, false, $this->id_base, true) && !is_admin() ) {
|
35 |
/* load the widget stylesheet for the widgets screen. */
|
36 |
wp_enqueue_style( 'z-flickr', FLICKR_BADGES_WIDGET_URL . 'css/widget.css', false, 0.7, 'screen' );
|
37 |
+
add_action( 'wp_head', array( &$this, 'print_script' ) );
|
38 |
}
|
39 |
}
|
40 |
|
41 |
+
/**
|
42 |
+
* Push all script and style from the widget "Custom Style & Script" box.
|
43 |
+
* @since 1.2.1
|
44 |
+
**/
|
45 |
+
function print_script() {
|
46 |
+
$settings = $this->get_settings();
|
47 |
+
foreach ( $settings as $key => $setting ){
|
48 |
+
if ( !empty( $setting['custom'] ) )
|
49 |
+
echo $setting['custom'];
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Push the widget stylesheet widget.css into widget admin page
|
56 |
+
* @since 1.2.1
|
57 |
+
**/
|
58 |
function widget_admin() {
|
59 |
wp_enqueue_style( 'z-flickr-admin', FLICKR_BADGES_WIDGET_URL . 'css/dialog.css' );
|
60 |
wp_enqueue_script( 'jquery' );
|
61 |
wp_enqueue_script( 'z-flickr-admin', FLICKR_BADGES_WIDGET_URL . 'js/jquery.dialog.js' );
|
62 |
+
}
|
63 |
+
|
64 |
|
65 |
function widget( $args, $instance ) {
|
66 |
extract( $args );
|
67 |
|
68 |
+
// Set up the arguments for wp_list_categories().
|
69 |
$cur_arg = array(
|
70 |
'title' => $instance['title'],
|
71 |
'type' => empty( $instance['type'] ) ? 'user' : $instance['type'],
|
72 |
'flickr_id' => $instance['flickr_id'],
|
73 |
'count' => (int)$instance['count'],
|
74 |
+
'display' => empty( $instance['display'] ) ? 'latest' : $instance['display'],
|
75 |
+
'copyright' => !empty( $instance['copyright'] ) ? true : false
|
76 |
);
|
77 |
|
78 |
extract( $cur_arg );
|
79 |
|
80 |
+
// If the photo is < 1, set it to 1
|
81 |
if ( $count < 1 ) $count = 1;
|
82 |
|
83 |
+
// If the widget have an ID, we can continue
|
84 |
if ( !empty( $instance['flickr_id'] ) ) {
|
85 |
|
86 |
// print the before widget
|
88 |
|
89 |
if ( $title ) echo $before_title . $title . $after_title;
|
90 |
|
91 |
+
// Get the user direction, rtl or ltr
|
92 |
+
if ( function_exists( 'is_rtl' ) )
|
93 |
+
$dir = is_rtl() ? 'rtl' : 'ltr';
|
94 |
|
95 |
+
// Wrap the widget
|
96 |
+
if (!empty( $instance['intro_text'] ) )
|
97 |
+
echo '<p>' . do_shortcode( $instance['intro_text'] ) . '</p>';
|
98 |
|
99 |
echo "<div class='zframe-flickr-wrap-$dir'>";
|
100 |
echo "<script type='text/javascript' src='http://www.flickr.com/badge_code_v2.gne?count=$count&display=$display&size=s&layout=x&source=$type&$type=$flickr_id'></script>";
|
101 |
echo '</div>';
|
102 |
|
103 |
+
if ( ! empty( $instance['outro_text'] ) )
|
104 |
+
echo '<p>' . do_shortcode( $instance['outro_text'] ) . '</p>';
|
105 |
+
|
106 |
+
if ( $copyright )
|
107 |
+
echo '<a href="http://zourbuth.com/archives/500/flickr-badges-widget-free-wordpress-plugin/"><span style="font-size: 11px;"><span style="color: #0063DC; font-weight: bold;">Flick</span><span style="color: #FF0084; font-weight: bold;">r</span> Badge Widget</span></a>';
|
108 |
+
|
109 |
+
// Print the after widget
|
110 |
echo $after_widget;
|
111 |
}
|
112 |
}
|
113 |
|
114 |
+
|
115 |
function update( $new_instance, $old_instance ) {
|
116 |
$instance = $old_instance;
|
117 |
$instance['type'] = strip_tags($new_instance['type']);
|
119 |
$instance['count'] = (int) $new_instance['count'];
|
120 |
$instance['display'] = strip_tags($new_instance['display']);
|
121 |
$instance['title'] = strip_tags($new_instance['title']);
|
122 |
+
$instance['copyright'] = ( isset( $new_instance['copyright'] ) ? 1 : 0 );
|
123 |
$instance['tab'] = $new_instance['tab'];
|
124 |
$instance['intro_text'] = $new_instance['intro_text'];
|
125 |
$instance['outro_text'] = $new_instance['outro_text'];
|
128 |
return $instance;
|
129 |
}
|
130 |
|
131 |
+
|
132 |
function form( $instance ) {
|
133 |
+
// Set up the default form values.
|
134 |
$defaults = array(
|
135 |
'title' => esc_attr__( 'Flickr Widget', $this->textdomain ),
|
136 |
'type' => 'user',
|
137 |
'flickr_id' => '', // 71865026@N00
|
138 |
'count' => 9,
|
139 |
'display' => 'display',
|
140 |
+
'copyright' => true,
|
141 |
'tab' => array( 0 => true ),
|
142 |
'intro_text' => '',
|
143 |
'outro_text' => '',
|
184 |
<ul class="nav nav-tabs">
|
185 |
<li class="<?php if ( $instance['tab'][0] ) : ?>active<?php endif; ?>">General<input type="hidden" name="<?php echo $this->get_field_name( 'tab' ); ?>[]" value="<?php echo esc_attr( $instance['tab'][0] ); ?>" /></li>
|
186 |
<li class="<?php if ( $instance['tab'][1] ) : ?>active<?php endif; ?>">Customs<input type="hidden" name="<?php echo $this->get_field_name( 'tab' ); ?>[]" value="<?php echo esc_attr( $instance['tab'][1] ); ?>" /></li>
|
187 |
+
<li class="<?php if ( $instance['tab'][2] ) : ?>active<?php endif; ?>">Information<input type="hidden" name="<?php echo $this->get_field_name( 'tab' ); ?>[]" value="<?php echo esc_attr( $instance['tab'][2] ); ?>" /></li>
|
188 |
</ul>
|
189 |
|
190 |
<ul class="tab-content">
|
205 |
</select>
|
206 |
</li>
|
207 |
<li>
|
208 |
+
<label for="<?php echo $this->get_field_id('flickr_id'); ?>"><?php _e('Flickr ID', $this->textdomain); ?></label>
|
|
|
209 |
<input id="<?php echo $this->get_field_id('flickr_id'); ?>" name="<?php echo $this->get_field_name('flickr_id'); ?>" type="text" value="<?php echo esc_attr( $instance['flickr_id'] ); ?>" />
|
210 |
+
<span class="controlDesc"><?php _e( 'Put the flickr ID here, go to <a href="http://goo.gl/PM6rZ" target="_blank">Flickr NSID Lookup</a> if you don\'t know your ID. Example: 71865026@N00', $this->textdomain ); ?></span>
|
211 |
</li>
|
212 |
<li>
|
213 |
<label for="<?php echo $this->get_field_id('count'); ?>"><?php _e('Number', $this->textdomain); ?></label>
|
223 |
<?php } ?>
|
224 |
</select>
|
225 |
</li>
|
226 |
+
<li>
|
227 |
+
<label for="<?php echo $this->get_field_id( 'copyright' ); ?>">
|
228 |
+
<input class="checkbox" type="checkbox" <?php checked( $instance['copyright'], true ); ?> id="<?php echo $this->get_field_id( 'copyright' ); ?>" name="<?php echo $this->get_field_name( 'copyright' ); ?>" /><?php _e( 'Show Copyright', $this->textdomain ); ?></label>
|
229 |
+
<span class="controlDesc"><?php _e( 'Display the plugin name with link in the front end.', $this->textdomain ); ?></span>
|
230 |
+
</li>
|
231 |
</ul>
|
232 |
</li>
|
233 |
|
246 |
</li>
|
247 |
<li>
|
248 |
<label for="<?php echo $this->get_field_id('custom'); ?>"><?php _e( 'Custom Script & Stylesheet', $this->textdomain ) ; ?></label>
|
249 |
+
<span class="controlDesc"><?php _e( 'Use this box for additional widget CSS style of custom javascript. Current widget selector: ', $this->textdomain ); ?><?php echo '<tt>#' . $this->id . '</tt>'; ?></span>
|
250 |
<textarea name="<?php echo $this->get_field_name( 'custom' ); ?>" id="<?php echo $this->get_field_id( 'custom' ); ?>" rows="5" class="widefat code"><?php echo htmlentities($instance['custom']); ?></textarea>
|
251 |
</li>
|
252 |
</ul>
|
253 |
</li>
|
254 |
<li class="tab-pane <?php if ( $instance['tab'][2] ) : ?>active<?php endif; ?>">
|
255 |
<ul>
|
256 |
+
<li>
|
257 |
+
<h3><?php _e( 'Zourbuth Blog Feeds', $this->textdomain ) ; ?></h3>
|
258 |
+
<?php
|
259 |
+
wp_widget_rss_output( 'http://zourbuth.com/feed/', array( 'items' => 8 ) );
|
260 |
+
?>
|
261 |
+
</li>
|
262 |
<li>
|
263 |
<a href="http://feedburner.google.com/fb/a/mailverify?uri=zourbuth&loc=en_US">Subscribe to zourbuth by Email</a><br />
|
264 |
<?php _e( 'Like my work? Please consider to ', $this->textdomain ); ?><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W6D3WAJTVKAFC" title="Donate"><?php _e( 'donate', $this->textdomain ); ?></a>.<br /><br />
|
265 |
+
|
266 |
+
If you like this plugin, please <a href="http://wordpress.org/support/view/plugin-reviews/flickr-badges-widget">give a good rating</a>.<br /><br />
|
267 |
+
|
268 |
+
<span style="font-size: 11px;"><a href="http://wordpress.org/extend/plugins/flickr-badges-widget/"><span style="color: #0063DC; font-weight: bold;">Flick</span><span style="color: #FF0084; font-weight: bold;">r</span> Badge Widget</a> © Copyright <a href="http://zourbuth.com">Zourbuth</a> <?php echo date("Y"); ?></span>.
|
269 |
</li>
|
270 |
</ul>
|
271 |
</li>
|
index.php
CHANGED
@@ -1,16 +1,14 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Flickr Badges Widget
|
4 |
-
Plugin URI: http://zourbuth.com/
|
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.
|
7 |
Author: zourbuth
|
8 |
Author URI: http://zourbuth.com
|
9 |
License: Under GPL2
|
10 |
-
*/
|
11 |
|
12 |
-
|
13 |
-
Copyright 2011 zourbuth (email : zourbuth@gmail.com)
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -33,15 +31,12 @@ add_action( 'plugins_loaded', 'flickr_badges_widget_plugins_loaded' );
|
|
33 |
function flickr_badges_widget_plugins_loaded() {
|
34 |
|
35 |
// Set constant path to the members plugin directory
|
36 |
-
define( 'FLICKR_BADGES_WIDGET_VERSION', '1.
|
37 |
define( 'FLICKR_BADGES_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
38 |
define( 'FLICKR_BADGES_WIDGET_URL', plugin_dir_url( __FILE__ ) );
|
39 |
|
40 |
// Loads and registers the new widgets
|
41 |
add_action( 'widgets_init', 'flickr_badges_widget_init' );
|
42 |
-
|
43 |
-
// Create additional links to plugin list
|
44 |
-
add_filter( 'plugin_row_meta', '_fbw_my_portfolio', 10, 2 );
|
45 |
}
|
46 |
|
47 |
/* Register the extra widgets. Each widget is meant to replace or extend the current default */
|
@@ -53,13 +48,4 @@ function flickr_badges_widget_init() {
|
|
53 |
/* Register widget. */
|
54 |
register_widget( 'Flickr_Badges_Widget' );
|
55 |
}
|
56 |
-
|
57 |
-
function _fbw_my_portfolio($links, $file) {
|
58 |
-
$plugin = plugin_basename(__FILE__);
|
59 |
-
|
60 |
-
if ($file == $plugin) // create link
|
61 |
-
return array_merge( $links, array( sprintf( '<a href="http://codecanyon.net/user/zourbuth/portfolio?ref=zourbuth">Portfolios</a>', $plugin, __('Portfolios') ) ));
|
62 |
-
return $links;
|
63 |
-
}
|
64 |
-
|
65 |
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Flickr Badges Widget
|
4 |
+
Plugin URI: http://zourbuth.com/archives/500/flickr-badge-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.4
|
7 |
Author: zourbuth
|
8 |
Author URI: http://zourbuth.com
|
9 |
License: Under GPL2
|
|
|
10 |
|
11 |
+
Copyright 2012 zourbuth (email : zourbuth@gmail.com)
|
|
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License, version 2, as
|
31 |
function flickr_badges_widget_plugins_loaded() {
|
32 |
|
33 |
// Set constant path to the members plugin directory
|
34 |
+
define( 'FLICKR_BADGES_WIDGET_VERSION', '1.2.4' );
|
35 |
define( 'FLICKR_BADGES_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
36 |
define( 'FLICKR_BADGES_WIDGET_URL', plugin_dir_url( __FILE__ ) );
|
37 |
|
38 |
// Loads and registers the new widgets
|
39 |
add_action( 'widgets_init', 'flickr_badges_widget_init' );
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
/* Register the extra widgets. Each widget is meant to replace or extend the current default */
|
48 |
/* Register widget. */
|
49 |
register_widget( 'Flickr_Badges_Widget' );
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
?>
|
readme.txt
CHANGED
@@ -1,24 +1,40 @@
|
|
1 |
=== Flickr Badges Widget ===
|
2 |
Contributors: zourbuth
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W6D3WAJTVKAFC
|
4 |
-
Tags:
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
-
Display your Flickr latest photostream in widget area.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
This is a simple widget to display your Flickr latest photostream in widget area using javascript from
|
14 |
-
Find your Flickr ID from
|
15 |
With its very beautiful widget interface, tabbed system, and powered by jQuery makes this plugin easier to customize.
|
16 |
-
|
17 |
-
|
18 |
-
<h3>
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
== Installation ==
|
24 |
|
@@ -28,9 +44,11 @@ You can use the built in installer and upgrader, or you can install the plugin m
|
|
28 |
|
29 |
== Frequently Asked Questions ==
|
30 |
|
31 |
-
=
|
|
|
32 |
|
33 |
-
|
|
|
34 |
|
35 |
|
36 |
== Screenshots ==
|
@@ -40,10 +58,26 @@ Please read the FAQ under http://zourbuth.com/plugins/flickr-badges-widget
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
= 1.0 =
|
44 |
* Released
|
45 |
|
46 |
== Upgrade Notice ==
|
47 |
-
|
48 |
-
= 1.0 =
|
49 |
Just upgrade via Wordpress.
|
1 |
=== Flickr Badges Widget ===
|
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
|
5 |
+
Requires at least: 3.5
|
6 |
+
Tested up to: 3.0
|
7 |
+
Stable tag: 1.2.4
|
8 |
|
9 |
+
Display your Flickr latest photostream in a sidebar widget area.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
This is a simple widget to display your Flickr latest photostream in widget area using javascript from http://www.flickr.com/badge_code_v2.gne.
|
14 |
+
Find your Flickr ID from <a href="http://goo.gl/PM6rZ"><strong>Flickr NSID Lookup</strong></a> if you do not know your flickr id.
|
15 |
With its very beautiful widget interface, tabbed system, and powered by jQuery makes this plugin easier to customize.
|
16 |
+
Just put your Flickr ID and your widget will be ready to lunch.
|
17 |
+
|
18 |
+
<h3><strong>Key Features & Options</strong></h3>
|
19 |
+
<ul>
|
20 |
+
<li>Beautiful widget interface</li>
|
21 |
+
<li>The type of images from user or group.</li>
|
22 |
+
<li>Flickr NSID support.</li>
|
23 |
+
<li>Get the image from recent or use random function.</li>
|
24 |
+
<li>Intro text for additional text before the widget content.</li>
|
25 |
+
<li>Outro text for additional text after the widget content.</li>
|
26 |
+
<li>Custom scripts and stylesheets for each widget</li>
|
27 |
+
</ul>
|
28 |
+
|
29 |
+
<h3><strong>Usefull Links</strong></h3>
|
30 |
+
<a href="http://zourbuth.com/?p=500">Flickr Badges Widget - Free WordPress Plugin</a><br />
|
31 |
+
<a href="http://goo.gl/PM6rZ">Flickr NSID Lookup</a>
|
32 |
+
|
33 |
+
<h3><strong>Question & Supports</strong></h3>
|
34 |
+
This plugin does not match to your site style? Is this script not quite working as it should?
|
35 |
+
Having trouble installing? Or need some custom modifications that aren’t already included?
|
36 |
+
Or you want more features on next release? Please leave messages or comments here:<br />
|
37 |
+
http://zourbuth.com/archives/500/flickr-badges-widget-free-wordpress-plugin/
|
38 |
|
39 |
== Installation ==
|
40 |
|
44 |
|
45 |
== Frequently Asked Questions ==
|
46 |
|
47 |
+
= Features Request & Support =
|
48 |
+
http://zourbuth.com/archives/500/flickr-badges-widget-free-wordpress-plugin/
|
49 |
|
50 |
+
= Flickr NSID Lookup =
|
51 |
+
http://goo.gl/PM6rZ
|
52 |
|
53 |
|
54 |
== Screenshots ==
|
58 |
|
59 |
== Changelog ==
|
60 |
|
61 |
+
= 1.2.4 =
|
62 |
+
|
63 |
+
= 1.2.3 =
|
64 |
+
* Widget prefix and localization added
|
65 |
+
|
66 |
+
= 1.2.2 =
|
67 |
+
* Widget admin interface fixed
|
68 |
+
* Widget width reduced
|
69 |
+
|
70 |
+
= 1.2.1 =
|
71 |
+
* Updating Flickr NSID lookup
|
72 |
+
|
73 |
+
= 1.2 =
|
74 |
+
* Updating to WP 3.5.1
|
75 |
+
|
76 |
+
= 1.1 =
|
77 |
+
* Updating to WP 3.5
|
78 |
+
|
79 |
= 1.0 =
|
80 |
* Released
|
81 |
|
82 |
== Upgrade Notice ==
|
|
|
|
|
83 |
Just upgrade via Wordpress.
|