Version Description
- Replaced all short PHP tags with long ones to ensure the plugin worked as expected even on sites where PHP short tags were disabled. Props to drdanchaz over at the WordPress.org forums for the tip-off.
- Added more specific selectors to the wop.css to target ul>li as well as ul.
Download this release
Release Info
Developer | toddhalfpenny |
Plugin | Widgets on Pages |
Version | 0.0.11 |
Comparing to | |
See all releases |
Code changes from version 0.0.10 to 0.0.11
- readme.txt +9 -4
- widgets_on_pages.php +6 -6
- wop.css +2 -1
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: toddhalfpenny
|
|
3 |
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.
|
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 |
|
@@ -30,13 +30,13 @@ Sidebars can also be named via the Widgets on Pages options page and that name c
|
|
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
|
32 |
1. Add the shortcut `[widgets_on_pages id=x]` to the page or post in the place where you'd like your widgets to appear (where 'x' = the id of the sidebar to use (or the name if you have named it such as `[widgets_on_pages id=TagCloud]`). If using only the default sidebar then no 'id' argument is needed (i.e. `[widgets_on_pages]`).
|
33 |
-
1. To add a sidebar into a theme you can add the following type of code to the relevant PHP theme file.
|
34 |
1. If you see bullet points/images next to the widget titles when using this plugin use the 'Enable Styling' setting in the options page
|
35 |
|
36 |
|
37 |
== Frequently Asked Questions ==
|
38 |
|
39 |
-
= How can I remove the bullet points which appear next to each widget?
|
40 |
|
41 |
Simply select the 'Enable Styling' setting in the Widgets on Pages options page.
|
42 |
|
@@ -54,6 +54,11 @@ Yes... you can have an unlimited number of sidebars defined. The number availabl
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
= 0.0.10 =
|
58 |
|
59 |
1. Added option to add CSS file to auto remove bullets... this has been the biggest cause of support mails/forum posts.
|
3 |
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.4.1
|
7 |
+
Stable tag: 0.0.11
|
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 |
|
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
|
32 |
1. Add the shortcut `[widgets_on_pages id=x]` to the page or post in the place where you'd like your widgets to appear (where 'x' = the id of the sidebar to use (or the name if you have named it such as `[widgets_on_pages id=TagCloud]`). If using only the default sidebar then no 'id' argument is needed (i.e. `[widgets_on_pages]`).
|
33 |
+
1. To add a sidebar into a theme you can add the following type of code to the relevant PHP theme file. `<?php widgets_on_template("wop_1"); ?>`
|
34 |
1. If you see bullet points/images next to the widget titles when using this plugin use the 'Enable Styling' setting in the options page
|
35 |
|
36 |
|
37 |
== Frequently Asked Questions ==
|
38 |
|
39 |
+
= How can I remove the bullet points which appear next to each widget? =
|
40 |
|
41 |
Simply select the 'Enable Styling' setting in the Widgets on Pages options page.
|
42 |
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 0.0.11 =
|
58 |
+
|
59 |
+
1. Replaced all short PHP tags with long ones to ensure the plugin worked as expected even on sites where PHP short tags were disabled. Props to drdanchaz over at the WordPress.org forums for the tip-off.
|
60 |
+
1. Added more specific selectors to the wop.css to target ul>li as well as ul.
|
61 |
+
|
62 |
= 0.0.10 =
|
63 |
|
64 |
1. Added option to add CSS file to auto remove bullets... this has been the biggest cause of support mails/forum posts.
|
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 |
|
@@ -102,7 +102,7 @@ function wop_plugin_options() {
|
|
102 |
<tr valign="top">
|
103 |
<th scope="row">Enable styling (remove bullets etc)</th>
|
104 |
<td>
|
105 |
-
<? echo '<input name="wop_options_field[enable_css]" type="checkbox" value="1" class="code" ' . checked( 1, $enable_css, false ) . ' />';
|
106 |
?>
|
107 |
</td>
|
108 |
</tr>
|
@@ -119,15 +119,15 @@ function wop_plugin_options() {
|
|
119 |
</p>
|
120 |
</td></tr>
|
121 |
<tr><td><h3>Optional Sidebar Names</h3></td><td></td></tr>
|
122 |
-
<?
|
123 |
for ($sidebar = 1; $sidebar <= ($num_add_sidebars + 1); $sidebar++) {
|
124 |
$option_id = 'wop_name_' . $sidebar;
|
125 |
?>
|
126 |
<tr valign="top">
|
127 |
-
<th scope="row">WoP sidebar <? echo $sidebar;?> name:</th>
|
128 |
-
<td><input type='text' name="wop_options_field[<? echo $option_id;?>]" size='35' value="<?php echo $options[$option_id];?>" /></td>
|
129 |
</tr>
|
130 |
-
<?
|
131 |
}
|
132 |
?>
|
133 |
<tr><td></td><td>
|
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.11
|
26 |
Author URI: http://gingerbreaddesign.co.uk/todd
|
27 |
*/
|
28 |
|
102 |
<tr valign="top">
|
103 |
<th scope="row">Enable styling (remove bullets etc)</th>
|
104 |
<td>
|
105 |
+
<?php echo '<input name="wop_options_field[enable_css]" type="checkbox" value="1" class="code" ' . checked( 1, $enable_css, false ) . ' />';
|
106 |
?>
|
107 |
</td>
|
108 |
</tr>
|
119 |
</p>
|
120 |
</td></tr>
|
121 |
<tr><td><h3>Optional Sidebar Names</h3></td><td></td></tr>
|
122 |
+
<?php
|
123 |
for ($sidebar = 1; $sidebar <= ($num_add_sidebars + 1); $sidebar++) {
|
124 |
$option_id = 'wop_name_' . $sidebar;
|
125 |
?>
|
126 |
<tr valign="top">
|
127 |
+
<th scope="row">WoP sidebar <?php echo $sidebar;?> name:</th>
|
128 |
+
<td><input type='text' name="wop_options_field[<?php echo $option_id;?>]" size='35' value="<?php echo $options[$option_id];?>" /></td>
|
129 |
</tr>
|
130 |
+
<?php
|
131 |
}
|
132 |
?>
|
133 |
<tr><td></td><td>
|
wop.css
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
.widgets_on_page ul {list-style:none;background:none;}
|
|
1 |
+
.widgets_on_page ul, .widgets_on_page ul li {list-style:none;background:none;}
|
2 |
+
|