Version Description
- Corrected shortcode tags show in Widget admin page.
Download this release
Release Info
Developer | toddhalfpenny |
Plugin | Widgets on Pages |
Version | 0.0.9 |
Comparing to | |
See all releases |
Code changes from version 0.0.8 to 0.0.9
- readme.txt +9 -1
- widgets_on_pages.php +15 -8
readme.txt
CHANGED
@@ -4,12 +4,14 @@ Donate link: http://gingerbreaddesign.co.uk/wordpress/plugins/plugins.php
|
|
4 |
Tags: widgets, sidebar, pages, post, shortcode, inline
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 0.0.
|
8 |
|
9 |
Allows 'in-page' widget areas so widgets can be defined via shortcode straight into page/post content. The widgets/sidebars can also be added through the use of template tags.
|
10 |
|
11 |
== Description ==
|
12 |
|
|
|
|
|
13 |
Allows 'in-page' widget areas so widgets can be defined via shortcut straight into page/post content.
|
14 |
There is one default widget area that can be used or you can add more from the settings menu. You can currently have an unlimited number of sidebars.
|
15 |
Each sidebar can be called indepentenly by a shortcode and you can call more than one per post/page.
|
@@ -22,6 +24,8 @@ Sidebars can also be named via the Widgets on Pages options page and that name c
|
|
22 |
== Installation ==
|
23 |
|
24 |
|
|
|
|
|
25 |
1. Install the plugin from within the Dashboard or upload the directory `widgets-on-pages` and all its contents to the `/wp-content/plugins/` directory
|
26 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
27 |
1. Add the widgets you want to the `Widgets on Pages` widget area in the admin screens
|
@@ -50,6 +54,10 @@ Yes... you can have an unlimited number of sidebars defined. The number availabl
|
|
50 |
|
51 |
== Changelog ==
|
52 |
|
|
|
|
|
|
|
|
|
53 |
= 0.0.8 =
|
54 |
|
55 |
1. Resolve potential conflicts with other plugins (contextual help callback).
|
4 |
Tags: widgets, sidebar, pages, post, shortcode, inline
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 0.0.9
|
8 |
|
9 |
Allows 'in-page' widget areas so widgets can be defined via shortcode straight into page/post content. The widgets/sidebars can also be added through the use of template tags.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
''NOTE'' Apologies but you may lose the widgets in your customised sidebars if upgrading from pre 0.0.8 version. The cause of this loss is required to enhance functionality and reduce further possible loss of config when changing/modifying themes. The choice to to do this was not easy but hopefully will make the plugin more stable going forward.
|
14 |
+
|
15 |
Allows 'in-page' widget areas so widgets can be defined via shortcut straight into page/post content.
|
16 |
There is one default widget area that can be used or you can add more from the settings menu. You can currently have an unlimited number of sidebars.
|
17 |
Each sidebar can be called indepentenly by a shortcode and you can call more than one per post/page.
|
24 |
== Installation ==
|
25 |
|
26 |
|
27 |
+
''NOTE'' Apologies but you may lose the widgets in your customised sidebars if upgrading from pre 0.0.8 version. The cause of this loss is required to enhance functionality and reduce further possible loss of config when changing/modifying themes. The choice to to do this was not easy but hopefully will make the plugin more stable going forward.
|
28 |
+
|
29 |
1. Install the plugin from within the Dashboard or upload the directory `widgets-on-pages` and all its contents to the `/wp-content/plugins/` directory
|
30 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
31 |
1. Add the widgets you want to the `Widgets on Pages` widget area in the admin screens
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 0.0.9 =
|
58 |
+
|
59 |
+
1. Corrected shortcode tags show in Widget admin page.
|
60 |
+
|
61 |
= 0.0.8 =
|
62 |
|
63 |
1. Resolve potential conflicts with other plugins (contextual help callback).
|
widgets_on_pages.php
CHANGED
@@ -22,7 +22,7 @@ Plugin Name: Widgets on Pages
|
|
22 |
Plugin URI: http://gingerbreaddesign.co.uk/wordpress/plugins/widgets-on-pages.php
|
23 |
Description: Allows 'in-page' widget areas so widgets can be defined via shortcut straight into page/post content or through the use of a template tag.
|
24 |
Author: Todd Halfpenny
|
25 |
-
Version: 0.0.
|
26 |
Author URI: http://gingerbreaddesign.co.uk/todd
|
27 |
*/
|
28 |
|
@@ -39,7 +39,6 @@ function wop_menu() {
|
|
39 |
|
40 |
}
|
41 |
|
42 |
-
|
43 |
add_filter('plugin_action_links', 'wop_plugin_action_links', 10, 2);
|
44 |
|
45 |
function wop_plugin_action_links($links, $file) {
|
@@ -58,6 +57,7 @@ function wop_plugin_action_links($links, $file) {
|
|
58 |
}
|
59 |
|
60 |
|
|
|
61 |
function register_wop_settings() { // whitelist options
|
62 |
register_setting( 'wop_options', 'wop_options_field' );
|
63 |
}
|
@@ -152,7 +152,7 @@ function wop_install() {
|
|
152 |
/* ===============================
|
153 |
C O N T E X T U A L H E L P
|
154 |
================================*/
|
155 |
-
function
|
156 |
$screen = $_GET['page'];
|
157 |
if ($screen == 'wop_options') {
|
158 |
$text = "<h5>Need help with the Widgets on Pages plugin?</h5>";
|
@@ -162,7 +162,7 @@ function wop_contextual_help($text) {
|
|
162 |
return $text;
|
163 |
}
|
164 |
|
165 |
-
add_action('contextual_help', '
|
166 |
|
167 |
|
168 |
/* ===============================
|
@@ -212,16 +212,19 @@ function reg_wop_sidebar() {
|
|
212 |
if ( function_exists('register_sidebar') )
|
213 |
if ($options['wop_name_1'] != "") :
|
214 |
$name = $options['wop_name_1'];
|
|
|
215 |
else :
|
216 |
$name = 'Widgets on Pages 1';
|
|
|
217 |
endif;
|
218 |
-
$
|
|
|
219 |
$desc = '#1 Widgets on Pages sidebar.
|
220 |
Use shortcode
|
221 |
"[widgets_on_pages' . $sidebar_id .']"';
|
222 |
register_sidebar(array(
|
223 |
'name' => __( $name, 'wop' ),
|
224 |
-
'id' => $
|
225 |
'description' => __( $desc, 'wop' ),
|
226 |
'before_widget' => '<li id="%1$s" class="widget %2$s">',
|
227 |
'after_widget' => '</li>',
|
@@ -236,16 +239,19 @@ register_sidebar(array(
|
|
236 |
$option_id = 'wop_name_' . $sidebar;
|
237 |
if ($options[$option_id] != "") :
|
238 |
$name = $options[$option_id];
|
|
|
239 |
else :
|
240 |
$name = 'Widgets on Pages ' . $sidebar;
|
|
|
241 |
endif;
|
242 |
-
|
|
|
243 |
$desc = '#' . $sidebar . 'Widgets on Pages sidebar.
|
244 |
Use shortcode
|
245 |
"[widgets_on_pages' . $sidebar_id .']"';
|
246 |
register_sidebar(array(
|
247 |
'name' => __( $name, 'wop' ),
|
248 |
-
'id' => $
|
249 |
'description' => __( $desc, 'wop' ),
|
250 |
'before_widget' => '<li id="%1$s" class="widget %2$s">',
|
251 |
'after_widget' => '</li>',
|
@@ -256,6 +262,7 @@ register_sidebar(array(
|
|
256 |
endif;
|
257 |
}
|
258 |
|
|
|
259 |
register_activation_hook(__FILE__,'wop_install');
|
260 |
|
261 |
add_action('admin_init', 'reg_wop_sidebar');
|
22 |
Plugin URI: http://gingerbreaddesign.co.uk/wordpress/plugins/widgets-on-pages.php
|
23 |
Description: Allows 'in-page' widget areas so widgets can be defined via shortcut straight into page/post content or through the use of a template tag.
|
24 |
Author: Todd Halfpenny
|
25 |
+
Version: 0.0.9
|
26 |
Author URI: http://gingerbreaddesign.co.uk/todd
|
27 |
*/
|
28 |
|
39 |
|
40 |
}
|
41 |
|
|
|
42 |
add_filter('plugin_action_links', 'wop_plugin_action_links', 10, 2);
|
43 |
|
44 |
function wop_plugin_action_links($links, $file) {
|
57 |
}
|
58 |
|
59 |
|
60 |
+
|
61 |
function register_wop_settings() { // whitelist options
|
62 |
register_setting( 'wop_options', 'wop_options_field' );
|
63 |
}
|
152 |
/* ===============================
|
153 |
C O N T E X T U A L H E L P
|
154 |
================================*/
|
155 |
+
function my_contextual_help($text) {
|
156 |
$screen = $_GET['page'];
|
157 |
if ($screen == 'wop_options') {
|
158 |
$text = "<h5>Need help with the Widgets on Pages plugin?</h5>";
|
162 |
return $text;
|
163 |
}
|
164 |
|
165 |
+
add_action('contextual_help', 'my_contextual_help', 10, 1);
|
166 |
|
167 |
|
168 |
/* ===============================
|
212 |
if ( function_exists('register_sidebar') )
|
213 |
if ($options['wop_name_1'] != "") :
|
214 |
$name = $options['wop_name_1'];
|
215 |
+
$sidebar_id = ' id="' .$name . '"';
|
216 |
else :
|
217 |
$name = 'Widgets on Pages 1';
|
218 |
+
$sidebar_id = "";
|
219 |
endif;
|
220 |
+
$id = 'wop-1';
|
221 |
+
//$sidebar_id = 'wop-1';
|
222 |
$desc = '#1 Widgets on Pages sidebar.
|
223 |
Use shortcode
|
224 |
"[widgets_on_pages' . $sidebar_id .']"';
|
225 |
register_sidebar(array(
|
226 |
'name' => __( $name, 'wop' ),
|
227 |
+
'id' => $id ,
|
228 |
'description' => __( $desc, 'wop' ),
|
229 |
'before_widget' => '<li id="%1$s" class="widget %2$s">',
|
230 |
'after_widget' => '</li>',
|
239 |
$option_id = 'wop_name_' . $sidebar;
|
240 |
if ($options[$option_id] != "") :
|
241 |
$name = $options[$option_id];
|
242 |
+
$sidebar_id = ' id="' . $name . '"';
|
243 |
else :
|
244 |
$name = 'Widgets on Pages ' . $sidebar;
|
245 |
+
$sidebar_id = ' id=' . $sidebar;
|
246 |
endif;
|
247 |
+
//$sidebar_id = 'wop-' . $sidebar;
|
248 |
+
$id = 'wop-' . $sidebar;
|
249 |
$desc = '#' . $sidebar . 'Widgets on Pages sidebar.
|
250 |
Use shortcode
|
251 |
"[widgets_on_pages' . $sidebar_id .']"';
|
252 |
register_sidebar(array(
|
253 |
'name' => __( $name, 'wop' ),
|
254 |
+
'id' => $id ,
|
255 |
'description' => __( $desc, 'wop' ),
|
256 |
'before_widget' => '<li id="%1$s" class="widget %2$s">',
|
257 |
'after_widget' => '</li>',
|
262 |
endif;
|
263 |
}
|
264 |
|
265 |
+
|
266 |
register_activation_hook(__FILE__,'wop_install');
|
267 |
|
268 |
add_action('admin_init', 'reg_wop_sidebar');
|