This repository was archived by the owner on Oct 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwdw-options.php
More file actions
512 lines (467 loc) · 25.3 KB
/
Copy pathwdw-options.php
File metadata and controls
512 lines (467 loc) · 25.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
<?php
/**
* Add the options page
*
* @since 0.1
*/
add_action( 'admin_menu', 'wdw_menu' );
function wdw_menu() {
global $wdw_menu_page;
$wdw_menu_page = add_options_page(
__( 'Delicious Wishlist for WordPress Options', 'delicious-wishlist-for-wordpress' ), // The title of the displayed page
__( 'Delicious Wishlist', 'delicious-wishlist-for-wordpress' ), // The title in the admin sidebar
'manage_options', // Who can modify this options
'wdw-options', // The slug of this options page
'wdw_options_page' ); // The callback function to create the options page
// Adds my_help_tab when my_admin_page loads
add_action('load-' . $wdw_menu_page, 'wdw_contextual_help');
}
/**
* Add a contextual help tab
*/
function wdw_contextual_help() {
global $wdw_menu_page;
// Text to display
$text = '<p><strong>' . __( 'USER GUIDE', 'delicious-wishlist-for-wordpress' ) . '</strong></p>';
$text .= '<p><strong>' . __( 'Installation', 'delicious-wishlist-for-wordpress' ) . '</strong></p>';
$text .= '<p>' . __( 'This plugin allows you to publish in your blog a wishlist using your Delicious bookmarks. In order to make this, when you visit a web page with something you like, tag that page with two different bookmarks: <code>wishlist</code> and, if it is very important, <code>***</code> (three stars). Then, when you visit a page with something less important, you could use <code>wishlist</code> and <code>**</code> (two stars), and finally for a page with something even less important, you could use <code>wishlist</code> and <code>*</code> (one star). It\'s not mandatory to use these exact tags: you can choose your own tags, but consider that you have to bookmark a page with at least two different tags: one general to collect all your bookmarks relative to your wishlist, and another to mark that page depending on the importance of the stuff for you.', 'delicious-wishlist-for-wordpress' ) . '</p>';
$text .= '<p>' . __( 'When you are done with an item (you have bought it or someone gave it to you as a gift), you can edit that bookmark on Delicious and remove the star(s), leaving only the main tag (e.g., <code>wishlist</code>), so you can maintain in Delicious an archive of all desired items.', 'delicious-wishlist-for-wordpress' ) . '</p>';
$text .= '<p>' . __( 'To start, fill in the fields in the form below. The values are not case sensitive.', 'delicious-wishlist-for-wordpress' ) . '</p>';
$text .= '<p>' . __('When you are done filling those fields, clic on the "Save Changes" button, create a new page, and give it a title you want. In the body of the page, paste the following shortcode:', 'delicious-wishlist-for-wordpress' );
$text .= '<p><pre>[my-delicious-wishlist]</pre></p>';
$text .= '<p>' . __( 'You can add some text before and/or after the shortcode. Save the page and preview it. If you are satisfied, publish it!', 'delicious-wishlist-for-wordpress' ) . '</p>';
$text .= '<p><strong>' . __( 'The widget', 'delicious-wishlist-for-wordpress' ) . '</strong></p>';
$text .= '<p>' . __( 'Do not forget to check out the special widget in the Widget page!', 'delicious-wishlist-for-wordpress' ) . '</p>';
$text .= '<p><strong>' . __( 'Changing the style of the Wishlist page', 'delicious-wishlist-for-wordpress' ) . '</strong></p>';
$text .= '<p>' . __( 'The page is stylized using the css file included in the plugin directory. If you want to restyle the page, you can put a css file in the root directory of the theme you are using, create your styles, and name it <code>wdw.css</code>. All future versions of this plugin will load only your own css file.', 'delicious-wishlist-for-wordpress' ) . '</p>';
$text .= '<p><strong>' . __( 'For more information:', 'delicious-wishlist-for-wordpress' ) . '</strong></p>';
$text .= '<ul>';
$text .= '<li><a href="http://www.aldolat.it/wordpress/wordpress-plugins/delicious-wishlist-for-wordpress/">' . __( 'Plugin\'s Page', 'delicious-wishlist-for-wordpress' ) . '</a></li>';
$text .= '<li><a href="http://www.aldolat.it/support/forum/51">' . __( 'Support Forums', 'delicious-wishlist-for-wordpress' ) . '</a></li>';
$text .= '</ul>';
$screen = get_current_screen();
$screen->add_help_tab( array(
'id' => 'wdw-help',
'title' => 'Delicious Whishlist for WordPress Help',
'content' => $text
) );
}
/**
* Load the options page
*
* @since 0.1
* @since 0.5 Alternative feeds
* @since 1.0 Use or not the plugin CSS file
*/
function wdw_options_page() { ?>
<div class="wrap">
<h2><?php _e('Delicious Wishlist for WordPress Options', 'delicious-wishlist-for-wordpress'); ?></h2>
<p>
<strong>
<?php _e( 'The User Guide is located at the top of this page: click on the Help button.', 'delicious-wishlist-for-wordpress' ); ?>
</strong>
<br />
<?php printf( __( 'You are running the version %s of this plugin.', 'delicious-wishlist-for-wordpress' ), WDW_VERSION ); ?>
</p>
<div class="clear"></div>
<div id="poststuff" style="width: 830px;">
<div style="float: right; width: 255px;">
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Support me!', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p><?php _e('If you find this plugin useful, please help me continuing to develop it.', 'delicious-wishlist-for-wordpress'); ?></p>
<p><?php _e('The easiest way to do this is to make a donation via PayPal, a well-known and secure method to make me happy!', 'delicious-wishlist-for-wordpress'); ?></p>
<form style="text-align: center" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="11189816">
<input type="image" src="https://www.paypal.com/it_IT/IT/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="<?php _e('PayPal - The safer, easier way to pay online!', 'delicious-wishlist-for-wordpress'); ?>">
<img alt="" border="0" src="https://www.paypal.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
<p style="text-align: center;">
<a style="font-weight: bold;" href="http://www.aldolat.it/info/wishlist/">
<?php _e('If you want, you may also visit my wishlist.', 'delicious-wishlist-for-wordpress').' →'; ?>
</a>
</p>
</div>
</div>
<!-- close Support Me -->
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Help & feedback', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p>
<?php printf( __('<strong>Need help?</strong> %1$sVisit my forums%2$s (you can write in English too) or visit the %3$sOfficial WordPress Forums%2$s.', 'delicious-wishlist-for-wordpress'), '<a href="http://www.aldolat.it/support/forum/51">', '</a>', '<a href="http://wordpress.org/tags/delicious-wishlist-for-wordpress?forum_id=10">' ); ?>
</p>
<p>
<?php printf( __('<strong>Want to give a feedback?</strong> Come on %smy blog%s and drop a comment. It will be very appreciated.', 'delicious-wishlist-for-wordpress'), '<a href="http://www.aldolat.it/wordpress/wordpress-plugins/delicious-wishlist-for-wordpress/">', '</a>' ); ?>
</p>
<p>
<?php printf( __('You can also <strong>rate this plugin</strong> on the %sWordPress plugins page%s.', 'delicious-wishlist-for-wordpress'), '<a href="http://wordpress.org/extend/plugins/delicious-wishlist-for-wordpress/">', '</a>' ); ?>
</p>
</div>
</div>
<!-- close Help & Feedback -->
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Uninstall info', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p>
<?php _e('If you decide to uninstall this plugin, it will delete any options it created, so to clean the database. No further user action is required. Deactivating the plugin, however, will not erase any data.', 'delicious-wishlist-for-wordpress'); ?>
</p>
</div>
</div>
<!-- close Uninstall Info -->
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Credits', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p>
<?php printf( __('My thanks go to all people who contributed in revisioning and helping me in any form, and in particular to %1$s and to %2$s for their great idea behind this work.', 'delicious-wishlist-for-wordpress'), '<a href="http://www.nicoladagostino.net/">Nicola D\'Agostino</a>', '<a href="http://suzupearl.com/">Barbara Arianna Ripepi</a>' ); ?>
</p>
</div>
</div>
<!-- close Credits -->
</div>
<!-- close container right -->
<div style="width: 560px;">
<form method="post" action="options.php">
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Core Settings', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p>
<?php _e('These are the main options and it\'s mandatory to set them up.', 'delicious-wishlist-for-wordpress'); ?>
</p>
<?php
settings_fields( 'wdw-options-group' );
$wdws = (array) get_option( 'wdw_options' );
?>
<table class="widefat" style="clear: none;">
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Delicious Username', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_nickname]" value="<?php if( isset( $wdws['wdw_delicious_nickname'] ) ) echo esc_attr( $wdws['wdw_delicious_nickname'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Main Delicious Wishlist Tag', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_tag_wishlist]" value="<?php if( isset( $wdws['wdw_delicious_tag_wishlist'] ) ) echo esc_attr( $wdws['wdw_delicious_tag_wishlist'] ); ?>" />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Title for "Most Wanted" section', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_title_high]" value="<?php if( isset( $wdws['wdw_delicious_title_high'] ) ) echo esc_attr( $wdws['wdw_delicious_title_high'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Delicious "Most Wanted" Tag', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_tag_high]" value="<?php if( isset( $wdws['wdw_delicious_tag_high'] ) ) echo esc_attr( $wdws['wdw_delicious_tag_high'] ); ?>" />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Title for "Medium Wanted" section', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_title_medium]" value="<?php if( isset( $wdws['wdw_delicious_title_medium'] ) ) echo esc_attr( $wdws['wdw_delicious_title_medium'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Delicious "Medium Wanted" Tag', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_tag_medium]" value="<?php if( isset( $wdws['wdw_delicious_tag_medium'] ) ) echo esc_attr( $wdws['wdw_delicious_tag_medium'] ); ?>" />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Title for "Low Wanted" section', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_title_low]" value="<?php if( isset( $wdws['wdw_delicious_title_low'] ) ) echo esc_attr( $wdws['wdw_delicious_title_low'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Delicious "Low Wanted" Tag', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_tag_low]" value="<?php if( isset( $wdws['wdw_delicious_tag_low'] ) ) echo esc_attr( $wdws['wdw_delicious_tag_low'] ); ?>" />
</td>
</tr>
</table>
<p class="submit" style="padding: 0.5em 0;">
<input type="submit" class="button-primary" value="<?php _e('Save Changes', 'delicious-wishlist-for-wordpress'); ?>" />
</p>
</div>
</div>
<!-- close postbox core settings -->
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Optional Settings', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p>
<?php _e('These options are not mandatory: it\'s up to you to set them up.', 'delicious-wishlist-for-wordpress'); ?>
</p>
<table class="widefat" style="clear: none;">
<tr valign="top">
<th scope="row">
<?php printf( __('How many items%1$s(max 100)%2$s', 'delicious-wishlist-for-wordpress'), '<br /><small>', '</small>' ); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_howmany]" value="<?php if( isset( $wdws['wdw_delicious_howmany'] ) ) echo esc_attr( $wdws['wdw_delicious_howmany'] ); else echo '5'; ?>" />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php printf( __('Feed cache time%1$s(in seconds, min 3600)%2$s', 'delicious-wishlist-for-wordpress'), '<br /><small>', '</small>' ); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_cache]" value="<?php if( isset( $wdws['wdw_delicious_cache'] ) ) echo esc_attr( $wdws['wdw_delicious_cache'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('HTML element for titles', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<select name="wdw_options[wdw_title_element]">
<?php $wdwTitleElement = isset( $wdws['wdw_title_element'] ) ? $wdws['wdw_title_element'] : 'h3'; ?>
<option <?php selected( 'h1', $wdwTitleElement ) ; ?> value="h1">
<?php _e('H1', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'h2', $wdwTitleElement ); ?> value="h2">
<?php _e('H2', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'h3', $wdwTitleElement ); ?> value="h3">
<?php _e('H3', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'h4', $wdwTitleElement ); ?> value="h4">
<?php _e('H4', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'h5', $wdwTitleElement ); ?> value="h5">
<?php _e('H5', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'div', $wdwTitleElement ); ?> value="div">
<?php _e('DIV', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'span', $wdwTitleElement ); ?> value="span">
<?php _e('SPAN', 'delicious-wishlist-for-wordpress'); ?>
</option>
</select>
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Icons style', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<select name="wdw_options[wdw_delicious_icons]">
<?php $my_wdw_style = $wdws['wdw_delicious_icons']; ?>
<option <?php selected('stars', $my_wdw_style); ?> value="stars">
<?php _e('Stars', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected('faces', $my_wdw_style); ?> value="faces">
<?php _e('Smilies', 'delicious-wishlist-for-wordpress'); ?>
</option>
</select>
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php printf( __('Truncate tag description%1$s(in characters, 0 = do not truncate)%2$s', 'delicious-wishlist-for-wordpress'), '<br /><small>', '</small>' ); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_truncate]" value="<?php if( isset( $wdws['wdw_delicious_truncate'] ) ) echo esc_attr( $wdws['wdw_delicious_truncate'] ); else echo '0'; ?>" />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Read More text', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_more]" value="<?php if( isset( $wdws['wdw_delicious_more'] ) ) echo esc_attr( $wdws['wdw_delicious_more'] ); else _e( 'Read more', 'delicious-wishlist-for-wordpress' ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Use the CSS of the plugin', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input type="checkbox" value="1" name="wdw_options[wdw_css]" id="wdw_css" <?php if( isset( $wdws['wdw_css'] ) ) checked( $wdws['wdw_css'] ); ?> />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Link to the author', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input type="checkbox" value="1" name="wdw_options[wdw_backlink]" id="wdw_backlink" <?php if( isset( $wdws['wdw_backlink'] ) ) checked( $wdws['wdw_backlink'] ); ?> />
</td>
</tr>
</table>
<p class="submit" style="padding: 0.5em 0;">
<input type="submit" class="button-primary" value="<?php _e('Save Changes', 'delicious-wishlist-for-wordpress'); ?>" />
</p>
</div>
</div>
<!-- close postbox optional settings -->
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Bookmark Settings', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p>
<?php _e('These options are not mandatory: it\'s up to you to set them up.', 'delicious-wishlist-for-wordpress'); ?>
</p>
<table class="widefat" style="clear: none;">
<tr valign="top">
<th scope="row">
<?php _e('Display date', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input type="checkbox" value="1" name="wdw_options[wdw_date]" id="wdw_date" <?php if( isset( $wdws['wdw_date'] ) ) checked( $wdws['wdw_date'] ); ?> />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Text before date', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_pre_date]" value="<?php if( isset( $wdws['wdw_delicious_pre_date'] ) ) echo esc_attr( $wdws['wdw_delicious_pre_date'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Display tags...', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input type="checkbox" value="1" name="wdw_options[wdw_tags]" id="wdw_tags" <?php if( isset( $wdws['wdw_tags'] ) ) checked( $wdws['wdw_tags'] ); ?> />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('... but do not display my Wishlist tags', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input type="checkbox" value="1" name="wdw_options[wdw_remove_tags]" id="wdw_remove_tags" <?php if( isset( $wdws['wdw_remove_tags'] ) ) checked( $wdws['wdw_remove_tags'] ); ?> />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Text before tags list', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_pre_tags]" value="<?php if( isset( $wdws['wdw_delicious_pre_tags'] ) ) echo esc_attr( $wdws['wdw_delicious_pre_tags'] ); ?>" />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Text before each tag', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_pre_tag]" value="<?php if( isset( $wdws['wdw_pre_tag'] ) ) echo esc_attr( $wdws['wdw_pre_tag'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Tag Separator', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<select name="wdw_options[wdw_tag_sep]">
<?php $wdwTagSep = isset( $wdws['wdw_tag_sep'] ) ? $wdws['wdw_tag_sep'] : 'space'; ?>
<option <?php selected( 'space', $wdwTagSep ); ?> value="space">
<?php _e('Space', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'comma', $wdwTagSep ); ?> value="comma">
<?php _e('Comma', 'delicious-wishlist-for-wordpress'); ?>
</option>
<option <?php selected( 'comma-space', $wdwTagSep ); ?> value="comma-space">
<?php _e('Comma and Space', 'delicious-wishlist-for-wordpress'); ?>
</option>
</select>
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Sort Tags in alphabetical order', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input type="checkbox" value="1" name="wdw_options[wdw_sort_tag]" id="wdw_css" <?php if( isset( $wdws['wdw_sort_tag'] ) ) checked( $wdws['wdw_sort_tag'] ); ?> />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Display Section', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input type="checkbox" value="1" name="wdw_options[wdw_section]" id="wdw_css" <?php if( isset( $wdws['wdw_section'] ) ) checked( $wdws['wdw_section'] ); ?> />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Text before section', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_pre_section]" value="<?php if( isset( $wdws['wdw_pre_section'] ) ) echo esc_attr( $wdws['wdw_pre_section'] ); ?>" />
</td>
</tr>
</table>
<p class="submit" style="padding: 0.5em 0;">
<input type="submit" class="button-primary" value="<?php _e('Save Changes', 'delicious-wishlist-for-wordpress'); ?>" />
</p>
</div>
</div>
<!-- close postbox tag settings -->
<div class="postbox">
<h3 style="cursor: default;"><?php _e('Alternative feed source', 'delicious-wishlist-for-wordpress'); ?></h3>
<div class="inside">
<p>
<?php _e('If you experience problems in fetching your feeds directly from Delicious, you can use another service that fetches your feeds for you (such as FeedBurner or Yahoo! Pipes or other services). Enter here the alternative feed URLs, that this plugin will use instead of Delicious\' feeds.', 'delicious-wishlist-for-wordpress'); ?>
</p>
<table class="widefat" style="clear: none;">
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Feed for High Tag section:', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_alt_feed_ht]" value="<?php if( isset( $wdws['wdw_delicious_alt_feed_ht'] ) ) echo esc_url( $wdws['wdw_delicious_alt_feed_ht'] ); ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row">
<?php _e('Feed for Medium Tag section:', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_alt_feed_mt]" value="<?php if( isset( $wdws['wdw_delicious_alt_feed_mt'] ) ) echo esc_url( $wdws['wdw_delicious_alt_feed_mt'] ); ?>" />
</td>
</tr>
<tr valign="top" class="alternate">
<th scope="row">
<?php _e('Feed for Low Tag section:', 'delicious-wishlist-for-wordpress'); ?>
</th>
<td>
<input style="width: 100%;" type="text" name="wdw_options[wdw_delicious_alt_feed_lt]" value="<?php if( isset( $wdws['wdw_delicious_alt_feed_lt'] ) ) echo esc_url( $wdws['wdw_delicious_alt_feed_lt'] ); ?>" />
</td>
</tr>
</table>
<p class="submit" style="padding: 0.5em 0;">
<input type="submit" class="button-primary" value="<?php _e('Save Changes', 'delicious-wishlist-for-wordpress'); ?>" />
</p>
</div>
</div>
<!-- close postbox alternative feed source -->
</form>
<!-- close form -->
</div>
<!-- close container left -->
</div>
<!-- close poststuff -->
</div>
<!-- close wrap -->
<?php }