Changeset 1051129
- Timestamp:
- 12/21/2014 11:10:05 PM (11 years ago)
- Location:
- meta-widget-customizer
- Files:
-
- 1 added
- 2 edited
- 7 copied
-
tags/0.7 (added)
-
tags/0.7/lang (copied) (copied from meta-widget-customizer/trunk/lang)
-
tags/0.7/meta-widget-customizer.css (copied) (copied from meta-widget-customizer/trunk/meta-widget-customizer.css)
-
tags/0.7/meta-widget-customizer.js (copied) (copied from meta-widget-customizer/trunk/meta-widget-customizer.js)
-
tags/0.7/meta-widget-customizer.php (copied) (copied from meta-widget-customizer/trunk/meta-widget-customizer.php) (5 diffs)
-
tags/0.7/readme.txt (copied) (copied from meta-widget-customizer/trunk/readme.txt) (2 diffs)
-
tags/0.7/screenshot-1.png (copied) (copied from meta-widget-customizer/trunk/screenshot-1.png)
-
tags/0.7/screenshot-2.png (copied) (copied from meta-widget-customizer/trunk/screenshot-2.png)
-
trunk/meta-widget-customizer.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
meta-widget-customizer/tags/0.7/meta-widget-customizer.php
r1051115 r1051129 6 6 Description: Adds a customizable meta widget for the sidebar 7 7 Author: Henri Benoit 8 Version: 0. 6.48 Version: 0.7 9 9 Author URI: http://benohead 10 10 License: GPL2 … … 383 383 for="meta_widget_customizer_googlesearch"><?php echo __('Google search'); ?></label> 384 384 <p>Show also links from this category:</p> 385 <?php wp_dropdown_categories(array('hide_empty' => 0, 'id' => 'meta_widget_customizer_select_category', 'name' => 'meta_widget_customizer_select_category', 'selected' => $data['select_category'], 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category')); ?>385 <?php wp_dropdown_categories(array('hide_empty' => 0, 'id' => 'meta_widget_customizer_select_category', 'name' => 'meta_widget_customizer_select_category', 'selected' => isset($data['select_category']) ? $data['select_category'] : 0, 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category')); ?> 386 386 <p>Show also items from this feed:</p> 387 387 <label for="meta_widget_customizer_feedurl"><?php echo __('Feed URL'); ?></label><input … … 393 393 </p> 394 394 <?php 395 if (isset($_POST['meta_widget_customizer_title'])) { 396 $data['title'] = esc_attr($_POST['meta_widget_customizer_title']); 397 $data['username'] = esc_attr($_POST['meta_widget_customizer_username']); 398 $data['translate'] = esc_attr($_POST['meta_widget_customizer_translate']); 399 $data['logintabs'] = esc_attr($_POST['meta_widget_customizer_logintabs']); 400 $data['register'] = esc_attr($_POST['meta_widget_customizer_register']); 401 $data['login'] = esc_attr($_POST['meta_widget_customizer_login']); 402 $data['lostpassword'] = esc_attr($_POST['meta_widget_customizer_lostpassword']); 403 $data['editlink'] = esc_attr($_POST['meta_widget_customizer_editlink']); 404 $data['adminlink'] = esc_attr($_POST['meta_widget_customizer_adminlink']); 405 $data['xhtmlvalid'] = esc_attr($_POST['meta_widget_customizer_xhtmlvalid']); 406 $data['entriesrss'] = esc_attr($_POST['meta_widget_customizer_entriesrss']); 407 $data['commentsrss'] = esc_attr($_POST['meta_widget_customizer_commentsrss']); 408 $data['wordpressorg'] = esc_attr($_POST['meta_widget_customizer_wordpressorg']); 409 $data['googlesearch'] = esc_attr($_POST['meta_widget_customizer_googlesearch']); 410 $data['select_category'] = esc_attr($_POST['meta_widget_customizer_select_category']); 411 $data['feedurl'] = esc_attr($_POST['meta_widget_customizer_feedurl']); 412 $data['feeditems'] = esc_attr($_POST['meta_widget_customizer_feeditems']); 395 $data['title'] = isset($_POST['meta_widget_customizer_title']) ? esc_attr($_POST['meta_widget_customizer_title']) :''; 396 $data['username'] = isset($_POST['meta_widget_customizer_username']) ? esc_attr($_POST['meta_widget_customizer_username']) :0; 397 $data['translate'] = isset($_POST['meta_widget_customizer_translate']) ? esc_attr($_POST['meta_widget_customizer_translate']) :0; 398 $data['logintabs'] = isset($_POST['meta_widget_customizer_logintabs']) ? esc_attr($_POST['meta_widget_customizer_logintabs']) :0; 399 $data['register'] = isset($_POST['meta_widget_customizer_register']) ? esc_attr($_POST['meta_widget_customizer_register']) :0; 400 $data['login'] = isset($_POST['meta_widget_customizer_login']) ? esc_attr($_POST['meta_widget_customizer_login']) :0; 401 $data['lostpassword'] = isset($_POST['meta_widget_customizer_lostpassword']) ? esc_attr($_POST['meta_widget_customizer_lostpassword']) :0; 402 $data['editlink'] = isset($_POST['meta_widget_customizer_editlink']) ? esc_attr($_POST['meta_widget_customizer_editlink']) :0; 403 $data['adminlink'] = isset($_POST['meta_widget_customizer_adminlink']) ? esc_attr($_POST['meta_widget_customizer_adminlink']) :0; 404 $data['xhtmlvalid'] = isset($_POST['meta_widget_customizer_xhtmlvalid']) ? esc_attr($_POST['meta_widget_customizer_xhtmlvalid']) :0; 405 $data['entriesrss'] = isset($_POST['meta_widget_customizer_entriesrss']) ? esc_attr($_POST['meta_widget_customizer_entriesrss']) :0; 406 $data['commentsrss'] = isset($_POST['meta_widget_customizer_commentsrss']) ? esc_attr($_POST['meta_widget_customizer_commentsrss']) :0; 407 $data['wordpressorg'] = isset($_POST['meta_widget_customizer_wordpressorg']) ? esc_attr($_POST['meta_widget_customizer_wordpressorg']) :0; 408 $data['googlesearch'] = isset($_POST['meta_widget_customizer_googlesearch']) ? esc_attr($_POST['meta_widget_customizer_googlesearch']) :0; 409 $data['select_category'] = isset($_POST['meta_widget_customizer_select_category']) ? esc_attr($_POST['meta_widget_customizer_select_category']) : 0; 410 $data['feedurl'] = isset($_POST['meta_widget_customizer_feedurl']) ? esc_attr($_POST['meta_widget_customizer_feedurl']) :NULL; 411 $data['feeditems'] = isset($_POST['meta_widget_customizer_feeditems']) ? esc_attr($_POST['meta_widget_customizer_feeditems']) :0; 413 412 update_option('meta_widget_customizer', $data); 414 }415 413 } 416 414 … … 432 430 'wordpressorg' => 1, 433 431 'googlesearch' => 0, 434 ' customlinks' => NULL,432 'select_category' => NULL, 435 433 'feedurl' => NULL, 436 434 'feeditems' => 0, … … 531 529 <p>Show also links from this category:</p> 532 530 <?php 533 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'meta_widget_customizer[select_category]', 'selected' => $data['select_category'], 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category'));531 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'meta_widget_customizer[select_category]', 'selected' => isset($data['select_category']) ? $data['select_category'] : 0, 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category')); 534 532 ?> 535 533 <p>You can add a new category where you'll store the links you want to be able to display in the meta -
meta-widget-customizer/tags/0.7/readme.txt
r1051115 r1051129 4 4 Tags: meta,widget,customize,custom,links,hide,sidebar 5 5 Requires at least: 2.8 6 Tested up to: 4. 07 Stable tag: 0. 6.46 Tested up to: 4.1 7 Stable tag: 0.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 0.7 = 52 Fixed PHP warnings 53 Fixed issue saving state of unchecked checkboxes 54 51 55 = 0.6.4 = 52 56 Fixed translate URL -
meta-widget-customizer/trunk/meta-widget-customizer.php
r1018395 r1051129 6 6 Description: Adds a customizable meta widget for the sidebar 7 7 Author: Henri Benoit 8 Version: 0. 6.48 Version: 0.7 9 9 Author URI: http://benohead 10 10 License: GPL2 … … 383 383 for="meta_widget_customizer_googlesearch"><?php echo __('Google search'); ?></label> 384 384 <p>Show also links from this category:</p> 385 <?php wp_dropdown_categories(array('hide_empty' => 0, 'id' => 'meta_widget_customizer_select_category', 'name' => 'meta_widget_customizer_select_category', 'selected' => $data['select_category'], 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category')); ?>385 <?php wp_dropdown_categories(array('hide_empty' => 0, 'id' => 'meta_widget_customizer_select_category', 'name' => 'meta_widget_customizer_select_category', 'selected' => isset($data['select_category']) ? $data['select_category'] : 0, 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category')); ?> 386 386 <p>Show also items from this feed:</p> 387 387 <label for="meta_widget_customizer_feedurl"><?php echo __('Feed URL'); ?></label><input … … 393 393 </p> 394 394 <?php 395 if (isset($_POST['meta_widget_customizer_title'])) { 396 $data['title'] = esc_attr($_POST['meta_widget_customizer_title']); 397 $data['username'] = esc_attr($_POST['meta_widget_customizer_username']); 398 $data['translate'] = esc_attr($_POST['meta_widget_customizer_translate']); 399 $data['logintabs'] = esc_attr($_POST['meta_widget_customizer_logintabs']); 400 $data['register'] = esc_attr($_POST['meta_widget_customizer_register']); 401 $data['login'] = esc_attr($_POST['meta_widget_customizer_login']); 402 $data['lostpassword'] = esc_attr($_POST['meta_widget_customizer_lostpassword']); 403 $data['editlink'] = esc_attr($_POST['meta_widget_customizer_editlink']); 404 $data['adminlink'] = esc_attr($_POST['meta_widget_customizer_adminlink']); 405 $data['xhtmlvalid'] = esc_attr($_POST['meta_widget_customizer_xhtmlvalid']); 406 $data['entriesrss'] = esc_attr($_POST['meta_widget_customizer_entriesrss']); 407 $data['commentsrss'] = esc_attr($_POST['meta_widget_customizer_commentsrss']); 408 $data['wordpressorg'] = esc_attr($_POST['meta_widget_customizer_wordpressorg']); 409 $data['googlesearch'] = esc_attr($_POST['meta_widget_customizer_googlesearch']); 410 $data['select_category'] = esc_attr($_POST['meta_widget_customizer_select_category']); 411 $data['feedurl'] = esc_attr($_POST['meta_widget_customizer_feedurl']); 412 $data['feeditems'] = esc_attr($_POST['meta_widget_customizer_feeditems']); 395 $data['title'] = isset($_POST['meta_widget_customizer_title']) ? esc_attr($_POST['meta_widget_customizer_title']) :''; 396 $data['username'] = isset($_POST['meta_widget_customizer_username']) ? esc_attr($_POST['meta_widget_customizer_username']) :0; 397 $data['translate'] = isset($_POST['meta_widget_customizer_translate']) ? esc_attr($_POST['meta_widget_customizer_translate']) :0; 398 $data['logintabs'] = isset($_POST['meta_widget_customizer_logintabs']) ? esc_attr($_POST['meta_widget_customizer_logintabs']) :0; 399 $data['register'] = isset($_POST['meta_widget_customizer_register']) ? esc_attr($_POST['meta_widget_customizer_register']) :0; 400 $data['login'] = isset($_POST['meta_widget_customizer_login']) ? esc_attr($_POST['meta_widget_customizer_login']) :0; 401 $data['lostpassword'] = isset($_POST['meta_widget_customizer_lostpassword']) ? esc_attr($_POST['meta_widget_customizer_lostpassword']) :0; 402 $data['editlink'] = isset($_POST['meta_widget_customizer_editlink']) ? esc_attr($_POST['meta_widget_customizer_editlink']) :0; 403 $data['adminlink'] = isset($_POST['meta_widget_customizer_adminlink']) ? esc_attr($_POST['meta_widget_customizer_adminlink']) :0; 404 $data['xhtmlvalid'] = isset($_POST['meta_widget_customizer_xhtmlvalid']) ? esc_attr($_POST['meta_widget_customizer_xhtmlvalid']) :0; 405 $data['entriesrss'] = isset($_POST['meta_widget_customizer_entriesrss']) ? esc_attr($_POST['meta_widget_customizer_entriesrss']) :0; 406 $data['commentsrss'] = isset($_POST['meta_widget_customizer_commentsrss']) ? esc_attr($_POST['meta_widget_customizer_commentsrss']) :0; 407 $data['wordpressorg'] = isset($_POST['meta_widget_customizer_wordpressorg']) ? esc_attr($_POST['meta_widget_customizer_wordpressorg']) :0; 408 $data['googlesearch'] = isset($_POST['meta_widget_customizer_googlesearch']) ? esc_attr($_POST['meta_widget_customizer_googlesearch']) :0; 409 $data['select_category'] = isset($_POST['meta_widget_customizer_select_category']) ? esc_attr($_POST['meta_widget_customizer_select_category']) : 0; 410 $data['feedurl'] = isset($_POST['meta_widget_customizer_feedurl']) ? esc_attr($_POST['meta_widget_customizer_feedurl']) :NULL; 411 $data['feeditems'] = isset($_POST['meta_widget_customizer_feeditems']) ? esc_attr($_POST['meta_widget_customizer_feeditems']) :0; 413 412 update_option('meta_widget_customizer', $data); 414 }415 413 } 416 414 … … 432 430 'wordpressorg' => 1, 433 431 'googlesearch' => 0, 434 ' customlinks' => NULL,432 'select_category' => NULL, 435 433 'feedurl' => NULL, 436 434 'feeditems' => 0, … … 531 529 <p>Show also links from this category:</p> 532 530 <?php 533 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'meta_widget_customizer[select_category]', 'selected' => $data['select_category'], 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category'));531 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'meta_widget_customizer[select_category]', 'selected' => isset($data['select_category']) ? $data['select_category'] : 0, 'show_count' => 1, 'show_option_none' => __('None'), 'taxonomy' => 'link_category')); 534 532 ?> 535 533 <p>You can add a new category where you'll store the links you want to be able to display in the meta -
meta-widget-customizer/trunk/readme.txt
r1018395 r1051129 4 4 Tags: meta,widget,customize,custom,links,hide,sidebar 5 5 Requires at least: 2.8 6 Tested up to: 4. 07 Stable tag: 0. 6.46 Tested up to: 4.1 7 Stable tag: 0.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 0.7 = 52 Fixed PHP warnings 53 Fixed issue saving state of unchecked checkboxes 54 51 55 = 0.6.4 = 52 56 Fixed translate URL
Note: See TracChangeset
for help on using the changeset viewer.