Version Description
- Added additional error handling for the custom link url input.
- Added an option to beg you for link love (disabled by default, and not annoying).
- Slightly changed widget options to look more like the vanilla widget's.
Download this release
Release Info
Developer | bitacre |
Plugin | Custom Meta Widget |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- customMeta.php +76 -51
- readme.txt +24 -21
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
customMeta.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Meta Widget
|
4 |
Plugin URI: http://wikiduh.com/plugins/custom-meta-widget
|
5 |
Description: Clone of the standard Meta widget plus options to hide log in/out, admin, feed and WordPress/custom links.
|
6 |
-
Version: 1.3.
|
7 |
Author: bitacre
|
8 |
Author URI: http://wikiduh.com/
|
9 |
License: GPLv2
|
@@ -14,76 +14,91 @@ class customMetaWidget extends WP_Widget {
|
|
14 |
|
15 |
// PLUGIN STRUCTURE
|
16 |
function customMetaWidget() {
|
17 |
-
|
18 |
$widget_ops = array (
|
19 |
'classname' => 'customMetaWidget',
|
20 |
'description' => 'Clone of the standard Meta widget with options to show or hide log in/out, admin, feed, WordPress/custom links.'
|
21 |
);
|
22 |
|
23 |
-
$this->WP_Widget('customMetaWidget', 'Custom Meta', $widget_ops);
|
24 |
}
|
25 |
|
26 |
// WIDGET'S OPTIONS FORM
|
27 |
function form( $instance ) {
|
28 |
-
|
29 |
$instance = wp_parse_args( ( array ) $instance, array (
|
30 |
'title' => 'Meta',
|
31 |
-
'register'=>1,
|
32 |
-
'login'=>1,
|
33 |
-
'entryrss'=>1,
|
34 |
-
'commentrss'=>1,
|
35 |
-
'wordpress'=>1,
|
36 |
-
'showcustom'=>0,
|
37 |
-
'customurl'=>NULL,
|
38 |
-
'customtext'=>NULL
|
|
|
39 |
) );
|
40 |
|
41 |
-
|
|
|
42 |
<p>
|
43 |
-
<label for="<?php echo $this->
|
44 |
-
<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
|
45 |
</p>
|
46 |
-
|
|
|
47 |
<p>
|
48 |
-
<label for="<?php echo $this->
|
49 |
-
<input id="<?php echo $this->get_field_id('register'); ?>" name="<?php echo $this->get_field_name('register'); ?>" type="checkbox" <?php
|
50 |
</p>
|
51 |
|
|
|
52 |
<p>
|
53 |
-
<label for="<?php echo $this->
|
54 |
-
<input id="<?php echo $this->get_field_id('login'); ?>" name="<?php echo $this->get_field_name('login'); ?>" type="checkbox" <?php
|
55 |
</p>
|
56 |
-
|
|
|
57 |
<p>
|
58 |
-
<label for="<?php echo $this->
|
59 |
-
<input id="<?php echo $this->get_field_id('entryrss'); ?>" name="<?php echo $this->get_field_name('entryrss'); ?>" type="checkbox" <?php
|
60 |
</p>
|
61 |
-
|
|
|
62 |
<p>
|
63 |
-
<label for="<?php echo $this->
|
64 |
-
<input id="<?php echo $this->get_field_id('commentrss'); ?>" name="<?php echo $this->get_field_name('commentrss'); ?>" type="checkbox" <?php
|
65 |
</p>
|
66 |
-
|
|
|
67 |
<p>
|
68 |
-
<label for="<?php echo $this->
|
69 |
-
<input id="<?php echo $this->get_field_id('wordpress'); ?>" name="<?php echo $this->get_field_name('wordpress'); ?>" type="checkbox" <?php
|
70 |
</p>
|
71 |
-
|
|
|
72 |
<p>
|
73 |
-
<label for="<?php echo $this->
|
74 |
-
<input id="<?php echo $this->get_field_id('showcustom'); ?>" name="<?php echo $this->get_field_name('showcustom'); ?>" type="checkbox" <?php
|
75 |
|
76 |
<div style="margin-left:20px;">
|
77 |
-
<label for="<?php echo $this->
|
78 |
-
<input id="<?php echo $this->get_field_id('customurl'); ?>" name="<?php echo $this->get_field_name('customurl'); ?>" type="text" value="<?php echo esc_attr($instance['customurl']); ?>" />
|
79 |
</div>
|
80 |
|
81 |
<div style="margin-left:20px;">
|
82 |
-
<label for="<?php echo $this->
|
83 |
-
<input id="<?php echo $this->get_field_id('customtext'); ?>" name="<?php echo $this->get_field_name('customtext'); ?>" type="text" value="<?php echo esc_attr($instance['customtext']); ?>" />
|
84 |
</div>
|
85 |
</p>
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
<?php // check for errors
|
88 |
if ( esc_attr($instance['showcustom']) ) { // IF 'showcustom' is checked, AND
|
89 |
|
@@ -99,6 +114,7 @@ function form( $instance ) {
|
|
99 |
echo '<p style="color:#FF0000; font-weight:bold;" >You have a custom link with no URL!</p>';
|
100 |
}
|
101 |
}
|
|
|
102 |
// SAVE WIDGET OPTIONS
|
103 |
function update($new_instance, $old_instance) {
|
104 |
$instance = $old_instance;
|
@@ -112,24 +128,28 @@ function update($new_instance, $old_instance) {
|
|
112 |
$instance['showcustom'] = $new_instance['showcustom'];
|
113 |
$instance['customurl'] = $new_instance['customurl'];
|
114 |
$instance['customtext'] = $new_instance['customtext'];
|
|
|
115 |
return $instance;
|
116 |
}
|
117 |
|
118 |
// ACTUAL WIDGET OUTPUT
|
119 |
-
function widget($args, $instance) {
|
120 |
-
extract($args, EXTR_SKIP); // extract arguments
|
121 |
-
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']); // if no title, use default
|
122 |
|
123 |
// insert start of widget HTML comment
|
124 |
echo '
|
125 |
-
<!--
|
|
|
|
|
|
|
126 |
';
|
127 |
|
128 |
// insert pre-widget code (from theme)
|
129 |
echo $before_widget;
|
130 |
|
131 |
// insert widget title
|
132 |
-
echo $before_title . esc_attr($instance['title']) . $after_title; // echo title (inside theme tags)
|
133 |
|
134 |
// start unordered list
|
135 |
echo '
|
@@ -137,38 +157,43 @@ function widget($args, $instance) {
|
|
137 |
';
|
138 |
// ADD LINKS
|
139 |
// 1. register link
|
140 |
-
if(esc_attr($instance['register'])) wp_register('<li>', '</li>');
|
141 |
|
142 |
// 2. login link
|
143 |
-
if(esc_attr($instance['login'])) echo '<li>' . wp_loginout(NULL,FALSE) . '</li>';
|
144 |
|
145 |
// 3. entries RSS link
|
146 |
-
if(esc_attr($instance['entryrss'])) {
|
147 |
echo '<li><a href="';
|
148 |
-
bloginfo('rss2_url');
|
149 |
echo '" title="Syndicate this site using RSS 2.0">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>';
|
150 |
}
|
151 |
|
152 |
// 4. comments RSS link
|
153 |
-
if(esc_attr($instance['commentrss'])) {
|
154 |
echo '<li><a href="';
|
155 |
-
bloginfo('comments_rss2_url');
|
156 |
echo '" title="Syndicate this site using RSS 2.0">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>';
|
157 |
}
|
158 |
|
159 |
// 5. wordpress.org link
|
160 |
-
if(esc_attr($instance['wordpress'])) echo '<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li>';
|
161 |
|
162 |
// 6. custom link
|
163 |
-
if( esc_attr($instance['showcustom']) ) {
|
164 |
// make sure link text & url are set
|
165 |
-
if( !empty($instance['customtext']) && !empty($instance['customurl']) ) echo '<li><a href="' . esc_attr($instance['customurl']) . '">' . esc_attr($instance['customtext']) . '</a></li>';
|
166 |
// otherwise insert error comment
|
167 |
else echo '
|
168 |
<!-- Error: \'Show Custom Link\' is checked, but either the text or URL for that link are not specified.
|
169 |
The link was not displayed because it would be broken. Check the settings for your Custom Meta widget. -->
|
170 |
';
|
171 |
}
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
// end unordered list tag
|
174 |
echo '</ul>';
|
3 |
Plugin Name: Custom Meta Widget
|
4 |
Plugin URI: http://wikiduh.com/plugins/custom-meta-widget
|
5 |
Description: Clone of the standard Meta widget plus options to hide log in/out, admin, feed and WordPress/custom links.
|
6 |
+
Version: 1.3.2
|
7 |
Author: bitacre
|
8 |
Author URI: http://wikiduh.com/
|
9 |
License: GPLv2
|
14 |
|
15 |
// PLUGIN STRUCTURE
|
16 |
function customMetaWidget() {
|
17 |
+
// as shown on the Dashboard > Appearance > Widgets page
|
18 |
$widget_ops = array (
|
19 |
'classname' => 'customMetaWidget',
|
20 |
'description' => 'Clone of the standard Meta widget with options to show or hide log in/out, admin, feed, WordPress/custom links.'
|
21 |
);
|
22 |
|
23 |
+
$this->WP_Widget( 'customMetaWidget', 'Custom Meta', $widget_ops );
|
24 |
}
|
25 |
|
26 |
// WIDGET'S OPTIONS FORM
|
27 |
function form( $instance ) {
|
28 |
+
// set default form values
|
29 |
$instance = wp_parse_args( ( array ) $instance, array (
|
30 |
'title' => 'Meta',
|
31 |
+
'register' => 1,
|
32 |
+
'login' => 1,
|
33 |
+
'entryrss' => 1,
|
34 |
+
'commentrss' => 1,
|
35 |
+
'wordpress' => 1,
|
36 |
+
'showcustom' => 0,
|
37 |
+
'customurl' => NULL,
|
38 |
+
'customtext' => NULL,
|
39 |
+
'linklove' => 0
|
40 |
) );
|
41 |
|
42 |
+
// output HTML for the options form ?>
|
43 |
+
<!-- title -->
|
44 |
<p>
|
45 |
+
<label for="<?php echo $this->get_field_name( 'title' ); ?>">Title:</label>
|
46 |
+
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" />
|
47 |
</p>
|
48 |
+
|
49 |
+
<!-- register -->
|
50 |
<p>
|
51 |
+
<label for="<?php echo $this->get_field_name( 'register' ); ?>">Show 'Register/Admin' link?</label>
|
52 |
+
<input id="<?php echo $this->get_field_id( 'register' ); ?>" name="<?php echo $this->get_field_name( 'register' ); ?>" type="checkbox" value="1" <?php checked( $instance['register'] ); ?> />
|
53 |
</p>
|
54 |
|
55 |
+
<!-- login -->
|
56 |
<p>
|
57 |
+
<label for="<?php echo $this ->get_field_name( 'login' ); ?>">Show 'Log in/out' link?</label>
|
58 |
+
<input id="<?php echo $this->get_field_id( 'login' ); ?>" name="<?php echo $this->get_field_name( 'login' ); ?>" type="checkbox" value="1" <?php checked( $instance['login'] ); ?> />
|
59 |
</p>
|
60 |
+
|
61 |
+
<!-- entry RSS -->
|
62 |
<p>
|
63 |
+
<label for="<?php echo $this->get_field_name( 'entryrss' ); ?>">Show 'Entries RSS' link?</label>
|
64 |
+
<input id="<?php echo $this->get_field_id( 'entryrss' ); ?>" name="<?php echo $this->get_field_name( 'entryrss' ); ?>" type="checkbox" value="1" <?php checked( $instance['entryrss'] ); ?> />
|
65 |
</p>
|
66 |
+
|
67 |
+
<!-- comment RSS -->
|
68 |
<p>
|
69 |
+
<label for="<?php echo $this->get_field_name( 'commentrss' ); ?>">Show 'Comments RSS' link?</label>
|
70 |
+
<input id="<?php echo $this->get_field_id( 'commentrss' ); ?>" name="<?php echo $this->get_field_name( 'commentrss' ); ?>" type="checkbox" value="1" <?php checked( $instance['commentrss'] ); ?> />
|
71 |
</p>
|
72 |
+
|
73 |
+
<!-- wordpress -->
|
74 |
<p>
|
75 |
+
<label for="<?php echo $this->get_field_name( 'wordpress' ); ?>">Show 'Wordpress' link?</label>
|
76 |
+
<input id="<?php echo $this->get_field_id( 'wordpress' ); ?>" name="<?php echo $this->get_field_name( 'wordpress' ); ?>" type="checkbox" value="1" <?php checked( $instance['wordpress'] ); ?> />
|
77 |
</p>
|
78 |
+
|
79 |
+
<!-- custom -->
|
80 |
<p>
|
81 |
+
<label for="<?php echo $this->get_field_name( 'showcustom' ); ?>">Show Custom link? </label>
|
82 |
+
<input id="<?php echo $this->get_field_id( 'showcustom' ); ?>" name="<?php echo $this->get_field_name( 'showcustom' ); ?>" type="checkbox" value="1" <?php checked( $instance['showcustom'] ); ?> />
|
83 |
|
84 |
<div style="margin-left:20px;">
|
85 |
+
<label for="<?php echo $this->get_field_name( 'customurl' ); ?>">URL: </label>
|
86 |
+
<input id="<?php echo $this->get_field_id( 'customurl' ); ?>" name="<?php echo $this->get_field_name( 'customurl' ); ?>" type="text" value="<?php echo esc_attr( $instance['customurl'] ); ?>" />
|
87 |
</div>
|
88 |
|
89 |
<div style="margin-left:20px;">
|
90 |
+
<label for="<?php echo $this->get_field_name( 'customtext' ); ?>">Text: </label>
|
91 |
+
<input id="<?php echo $this->get_field_id( 'customtext' ); ?>" name="<?php echo $this->get_field_name( 'customtext' ); ?>" type="text" value="<?php echo esc_attr( $instance['customtext'] ); ?>" />
|
92 |
</div>
|
93 |
</p>
|
94 |
+
|
95 |
+
<!-- linklove -->
|
96 |
+
<p>
|
97 |
+
<label for="<?php echo $this->get_field_name( 'linklove' ); ?>">Show Plugin link? </label>
|
98 |
+
<input id="<?php echo $this->get_field_id( 'linklove' ); ?>" name="<?php echo $this->get_field_name( 'linklove' ); ?>" type="checkbox" value="1" <?php checked( $instance['linklove'] ); ?> />
|
99 |
+
<br />
|
100 |
+
<small>(An awesome way to support this free plugin!)</small></p>
|
101 |
+
|
102 |
<?php // check for errors
|
103 |
if ( esc_attr($instance['showcustom']) ) { // IF 'showcustom' is checked, AND
|
104 |
|
114 |
echo '<p style="color:#FF0000; font-weight:bold;" >You have a custom link with no URL!</p>';
|
115 |
}
|
116 |
}
|
117 |
+
|
118 |
// SAVE WIDGET OPTIONS
|
119 |
function update($new_instance, $old_instance) {
|
120 |
$instance = $old_instance;
|
128 |
$instance['showcustom'] = $new_instance['showcustom'];
|
129 |
$instance['customurl'] = $new_instance['customurl'];
|
130 |
$instance['customtext'] = $new_instance['customtext'];
|
131 |
+
$instance['linklove'] = $new_instance['linklove'];
|
132 |
return $instance;
|
133 |
}
|
134 |
|
135 |
// ACTUAL WIDGET OUTPUT
|
136 |
+
function widget( $args, $instance ) {
|
137 |
+
extract( $args, EXTR_SKIP ); // extract arguments
|
138 |
+
$title = empty($instance['title']) ? ' ' : apply_filters( 'widget_title', $instance['title'] ); // if no title, use default
|
139 |
|
140 |
// insert start of widget HTML comment
|
141 |
echo '
|
142 |
+
<!--
|
143 |
+
Plugin: Custom Meta Widget
|
144 |
+
Plugin URL: http://wikiduh.com/plugins/custom-meta-widget
|
145 |
+
-->
|
146 |
';
|
147 |
|
148 |
// insert pre-widget code (from theme)
|
149 |
echo $before_widget;
|
150 |
|
151 |
// insert widget title
|
152 |
+
echo $before_title . esc_attr( $instance['title'] ) . $after_title; // echo title (inside theme tags)
|
153 |
|
154 |
// start unordered list
|
155 |
echo '
|
157 |
';
|
158 |
// ADD LINKS
|
159 |
// 1. register link
|
160 |
+
if( esc_attr( $instance['register'] ) ) wp_register( '<li>', '</li>' );
|
161 |
|
162 |
// 2. login link
|
163 |
+
if( esc_attr( $instance['login'] ) ) echo '<li>' . wp_loginout( NULL,FALSE ) . '</li>';
|
164 |
|
165 |
// 3. entries RSS link
|
166 |
+
if( esc_attr( $instance['entryrss'] ) ) {
|
167 |
echo '<li><a href="';
|
168 |
+
bloginfo( 'rss2_url' );
|
169 |
echo '" title="Syndicate this site using RSS 2.0">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>';
|
170 |
}
|
171 |
|
172 |
// 4. comments RSS link
|
173 |
+
if( esc_attr( $instance['commentrss'] ) ) {
|
174 |
echo '<li><a href="';
|
175 |
+
bloginfo( 'comments_rss2_url' );
|
176 |
echo '" title="Syndicate this site using RSS 2.0">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>';
|
177 |
}
|
178 |
|
179 |
// 5. wordpress.org link
|
180 |
+
if( esc_attr( $instance['wordpress'] ) ) echo '<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li>';
|
181 |
|
182 |
// 6. custom link
|
183 |
+
if( esc_attr( $instance['showcustom'] ) ) {
|
184 |
// make sure link text & url are set
|
185 |
+
if( !empty( $instance['customtext'] ) && !empty( $instance['customurl'] ) ) echo '<li><a href="' . esc_attr( $instance['customurl'] ) . '">' . esc_attr( $instance['customtext'] ) . '</a></li>';
|
186 |
// otherwise insert error comment
|
187 |
else echo '
|
188 |
<!-- Error: \'Show Custom Link\' is checked, but either the text or URL for that link are not specified.
|
189 |
The link was not displayed because it would be broken. Check the settings for your Custom Meta widget. -->
|
190 |
';
|
191 |
}
|
192 |
+
|
193 |
+
// 7. link love
|
194 |
+
if( esc_attr( $instance['linklove'] ) ) {
|
195 |
+
echo '<li><a href="http://wikiduh.com/plugins/custom-meta-widget" title="WordPress Plugin Homepage">Custom Meta</a></li>';
|
196 |
+
}
|
197 |
|
198 |
// end unordered list tag
|
199 |
echo '</ul>';
|
readme.txt
CHANGED
@@ -5,48 +5,52 @@ Donate link: http://wikiduh.com/donate
|
|
5 |
Tags: meta, hide, link, admin, simple, widget, default, wordpress.org, change, rss, remove, login
|
6 |
Requires at least: 2.8
|
7 |
Tested up to: 3.3.1
|
8 |
-
Stable tag: 1.3.
|
9 |
|
10 |
-
Clone of the standard Meta widget plus options to hide log in/out, admin, feed and
|
11 |
|
12 |
== Description ==
|
|
|
13 |
|
14 |
-
The standard Meta widget that comes with WordPress offers no customization and requires you to show all 5
|
15 |
-
|
16 |
-
This plugin acts in exactly the same way as the standard Meta widget except that it adds options to the widget's setup page which allow you control which of these 5 links is displayed, with the additional option to add your own custom link.
|
17 |
|
18 |
== Installation ==
|
19 |
-
|
20 |
1. Download the latest zip file and extract the `custom-meta-widget` directory.
|
21 |
2. Upload this directory inside your `/wp-content/plugins/` directory.
|
22 |
3. Activate the 'Custom Meta Widget' on the 'Plugins' menu in WordPress.
|
23 |
-
4. Add the 'Custom Meta' widget to your sidebar (using the Appearance > Widgets menu) and choose which
|
24 |
|
25 |
== Frequently Asked Questions ==
|
26 |
-
|
27 |
= Why does my Meta widget look the same? =
|
|
|
28 |
|
29 |
-
|
30 |
|
31 |
= Which links can I hide/show? =
|
32 |
-
|
33 |
You can remove any, all, or none of the links which appear on the standard Meta widget. You are also able to add a custom link to the list if you wish.
|
34 |
|
35 |
= Why did you make this? =
|
36 |
-
|
37 |
-
I didn't like having the 'Comments RSS' link on the sidebar, but did like having the rest of them. I couldn't find a plugin to do that and manually editing the code to accomplish this is a dirty hack and breaks with every update, so I created a crude plugin to remove just the 'Comments RSS' link. I then cleaned this up and added an options page for all the links so that no one else would have to do this in the future.
|
38 |
|
39 |
= Can you add this feature I just thought of? =
|
40 |
-
|
41 |
Can I? Yes. Will I? Yes, if I think it would be a helpful addition. I'm trying to keep things clean and simple, but there's always room for improvement, so let me know if you think a feature is lacking!
|
42 |
|
43 |
-
|
|
|
44 |
|
|
|
|
|
|
|
|
|
45 |
1. The widget's options page on the Appearance > Widgets menu.
|
46 |
-
2. The widget displayed on the sidebar with
|
47 |
3. Comparison of options between the standard and Custom Meta Widget.
|
48 |
|
49 |
== Changelog ==
|
|
|
|
|
|
|
|
|
50 |
|
51 |
= 1.3.1 =
|
52 |
* Added error handling to prevent blank custom links from being inserted on the sidebar.
|
@@ -62,7 +66,7 @@ Can I? Yes. Will I? Yes, if I think it would be a helpful addition. I'm trying t
|
|
62 |
* Fixed reference to non-existent instance error.
|
63 |
|
64 |
= 1.1 =
|
65 |
-
* Minor improvements to code
|
66 |
* Increased compliance with WordPress style standards.
|
67 |
* Significantly more code commenting.
|
68 |
|
@@ -72,6 +76,9 @@ Can I? Yes. Will I? Yes, if I think it would be a helpful addition. I'm trying t
|
|
72 |
|
73 |
== Upgrade Notice ==
|
74 |
|
|
|
|
|
|
|
75 |
= 1.3.1 =
|
76 |
Adds error handling if a custom link with no url/text is added.
|
77 |
|
@@ -79,21 +86,17 @@ Adds error handling if a custom link with no url/text is added.
|
|
79 |
Adds new custom link functionality.
|
80 |
|
81 |
= 1.2 =
|
82 |
-
|
83 |
Fixes a code error.
|
84 |
|
85 |
= 1.1 =
|
86 |
-
|
87 |
Not essential, no bug fixes just minor structural code changes. (Mostly a test of the SVN repository system which I am new at.)
|
88 |
|
89 |
== Readme Generator ==
|
90 |
* This plugin's readme.txt file was generated by the [WikiDuh Readme Generator](http://wikiduh.com/project/readme-gen) for WordPress Plugins.
|
91 |
|
92 |
== Support ==
|
93 |
-
|
94 |
* [Plugin Homepage](http://wikiduh.com/plugins/custom-meta-widget)
|
95 |
* [plugins@wikiduh.com](mailto:plugins@wikiduh.com)
|
96 |
|
97 |
== Donations ==
|
98 |
-
|
99 |
-
[Donations](http://wikiduh.com/donate) are graciously accepted to support the continued development and maintenance of this and other plugins. We currently accept Paypal and kind words.
|
5 |
Tags: meta, hide, link, admin, simple, widget, default, wordpress.org, change, rss, remove, login
|
6 |
Requires at least: 2.8
|
7 |
Tested up to: 3.3.1
|
8 |
+
Stable tag: 1.3.2
|
9 |
|
10 |
+
Clone of the standard Meta widget plus options to hide log in/out, admin, feed and Wordpress.org/custom links.
|
11 |
|
12 |
== Description ==
|
13 |
+
This plugin acts in exactly the same way as the standard Meta widget except that it adds options which allow you control which of the 5 standard Meta widget links should be displayed, with the additional option to add your own custom link.
|
14 |
|
15 |
+
The standard Meta widget that comes with WordPress offers no customization and requires you to show all 5 of the standard links (register, login, entries rss, comments rss, and Wordpress.org).
|
|
|
|
|
16 |
|
17 |
== Installation ==
|
|
|
18 |
1. Download the latest zip file and extract the `custom-meta-widget` directory.
|
19 |
2. Upload this directory inside your `/wp-content/plugins/` directory.
|
20 |
3. Activate the 'Custom Meta Widget' on the 'Plugins' menu in WordPress.
|
21 |
+
4. Add the 'Custom Meta' widget to your sidebar (using the Appearance > Widgets menu) and choose which customizations you would like.
|
22 |
|
23 |
== Frequently Asked Questions ==
|
|
|
24 |
= Why does my Meta widget look the same? =
|
25 |
+
This plugin does not modify the standard WordPress Meta widget. It is a completely separate widget titled 'Custom Meta.' If you are currently using the standard Meta widget, you will have to remove it from your sidebar and replace it with the Custom Meta widget using the Appearance > Widgets menu.
|
26 |
|
27 |
+
It also looks identical to the standard Meta Widget unless you opt to change which links are shown/hidden in the Appearance > Widgets menu, under the expanded 'Custom Meta' widget .
|
28 |
|
29 |
= Which links can I hide/show? =
|
|
|
30 |
You can remove any, all, or none of the links which appear on the standard Meta widget. You are also able to add a custom link to the list if you wish.
|
31 |
|
32 |
= Why did you make this? =
|
33 |
+
I didn't like having the 'Comments RSS' link on the sidebar, but did like having the rest of them. I couldn't find a plugin to do that and manually editing the code to accomplish this, while simple, is a dirty hack that breaks with every WordPress update, so I created a crude plugin to remove just the 'Comments RSS' link. I then cleaned this up and added an options page for all the links so that no one else would have to do this in the future.
|
|
|
34 |
|
35 |
= Can you add this feature I just thought of? =
|
|
|
36 |
Can I? Yes. Will I? Yes, if I think it would be a helpful addition. I'm trying to keep things clean and simple, but there's always room for improvement, so let me know if you think a feature is lacking!
|
37 |
|
38 |
+
= Will vanilla WordPress ever implement some variation of this? =
|
39 |
+
I don't know man. They haven't yet, so it doesn't look very likely. But I think they should and I would be glad if they did.
|
40 |
|
41 |
+
= Why did you add an option to link to the plugin site, you horrible sellout? =
|
42 |
+
Most people, myself included, are understandably reluctant to donate real currency for free stuff. However, putting a link to my site from your site is just as helpful and a much more comfortable and forthcoming mode of charity, especially in the webmaster community. Also, because I'm a horrible sellout.
|
43 |
+
|
44 |
+
== Screenshots ==
|
45 |
1. The widget's options page on the Appearance > Widgets menu.
|
46 |
+
2. The widget displayed on the sidebar with 3 links hidden and a custom link added.
|
47 |
3. Comparison of options between the standard and Custom Meta Widget.
|
48 |
|
49 |
== Changelog ==
|
50 |
+
= 1.3.2 =
|
51 |
+
* Added additional error handling for the custom link url input.
|
52 |
+
* Added an option to beg you for link love (disabled by default, and not annoying).
|
53 |
+
* Slightly changed widget options to look more like the vanilla widget's.
|
54 |
|
55 |
= 1.3.1 =
|
56 |
* Added error handling to prevent blank custom links from being inserted on the sidebar.
|
66 |
* Fixed reference to non-existent instance error.
|
67 |
|
68 |
= 1.1 =
|
69 |
+
* Minor improvements to code architecture.
|
70 |
* Increased compliance with WordPress style standards.
|
71 |
* Significantly more code commenting.
|
72 |
|
76 |
|
77 |
== Upgrade Notice ==
|
78 |
|
79 |
+
= 1.3.2 =
|
80 |
+
Adds some more error handling, small cosmetic tweaks, and shameless self-promotion.
|
81 |
+
|
82 |
= 1.3.1 =
|
83 |
Adds error handling if a custom link with no url/text is added.
|
84 |
|
86 |
Adds new custom link functionality.
|
87 |
|
88 |
= 1.2 =
|
|
|
89 |
Fixes a code error.
|
90 |
|
91 |
= 1.1 =
|
|
|
92 |
Not essential, no bug fixes just minor structural code changes. (Mostly a test of the SVN repository system which I am new at.)
|
93 |
|
94 |
== Readme Generator ==
|
95 |
* This plugin's readme.txt file was generated by the [WikiDuh Readme Generator](http://wikiduh.com/project/readme-gen) for WordPress Plugins.
|
96 |
|
97 |
== Support ==
|
|
|
98 |
* [Plugin Homepage](http://wikiduh.com/plugins/custom-meta-widget)
|
99 |
* [plugins@wikiduh.com](mailto:plugins@wikiduh.com)
|
100 |
|
101 |
== Donations ==
|
102 |
+
[Donations](http://wikiduh.com/donate) are graciously accepted to support the continued development and maintenance of this and other plugins. We currently accept Paypal, link backs, and kind words. Also, checking the 'show plugin link' option on the widget helps us out greatly!
|
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|