Changeset 1013694
- Timestamp:
- 10/25/2014 04:41:28 AM (11 years ago)
- Location:
- wp-jump-menu
- Files:
-
- 64 added
- 6 edited
-
tags/3.3.1 (added)
-
tags/3.3.1/assets (added)
-
tags/3.3.1/assets/WpjmWalkerClass.php (added)
-
tags/3.3.1/assets/css (added)
-
tags/3.3.1/assets/css/wpjm-settings.css (added)
-
tags/3.3.1/assets/js (added)
-
tags/3.3.1/assets/js/chosen (added)
-
tags/3.3.1/assets/js/chosen/chosen-sprite.png (added)
-
tags/3.3.1/assets/js/chosen/chosen-sprite@2x.png (added)
-
tags/3.3.1/assets/js/chosen/chosen-wpadmin.css (added)
-
tags/3.3.1/assets/js/chosen/chosen.css (added)
-
tags/3.3.1/assets/js/chosen/chosen.jquery.js (added)
-
tags/3.3.1/assets/js/chosen/chosen.jquery.min.js (added)
-
tags/3.3.1/assets/js/colorpicker (added)
-
tags/3.3.1/assets/js/colorpicker/css (added)
-
tags/3.3.1/assets/js/colorpicker/css/colorpicker.css (added)
-
tags/3.3.1/assets/js/colorpicker/css/layout.css (added)
-
tags/3.3.1/assets/js/colorpicker/images (added)
-
tags/3.3.1/assets/js/colorpicker/images/Thumbs.db (added)
-
tags/3.3.1/assets/js/colorpicker/images/blank.gif (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_background.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_hex.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_hsb_b.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_hsb_h.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_hsb_s.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_indic.gif (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_overlay.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_rgb_b.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_rgb_g.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_rgb_r.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_select.gif (added)
-
tags/3.3.1/assets/js/colorpicker/images/colorpicker_submit.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_background.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_hex.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_hsb_b.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_hsb_h.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_hsb_s.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_indic.gif (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_rgb_b.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_rgb_g.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_rgb_r.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/custom_submit.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/select.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/select2.png (added)
-
tags/3.3.1/assets/js/colorpicker/images/slider.png (added)
-
tags/3.3.1/assets/js/colorpicker/js (added)
-
tags/3.3.1/assets/js/colorpicker/js/colorpicker.js (added)
-
tags/3.3.1/assets/js/colorpicker/js/eye.js (added)
-
tags/3.3.1/assets/js/colorpicker/js/layout.js (added)
-
tags/3.3.1/assets/js/colorpicker/js/utils.js (added)
-
tags/3.3.1/assets/js/jquery.ui.position.js (added)
-
tags/3.3.1/assets/js/jquery.ui.theme.css (added)
-
tags/3.3.1/assets/js/jqueryfunctions.js (added)
-
tags/3.3.1/languages (added)
-
tags/3.3.1/languages/wp-jump-menu-es_US.mo (added)
-
tags/3.3.1/languages/wp-jump-menu-es_US.po (added)
-
tags/3.3.1/readme.txt (added)
-
tags/3.3.1/screenshot-1.png (added)
-
tags/3.3.1/screenshot-2.png (added)
-
tags/3.3.1/screenshot-3.png (added)
-
tags/3.3.1/settings.php (added)
-
tags/3.3.1/wp-jump-menu.php (added)
-
trunk/assets/css (added)
-
trunk/assets/css/wpjm-settings.css (added)
-
trunk/assets/js/colorpicker/css/layout.css (modified) (2 diffs)
-
trunk/assets/js/colorpicker/js/colorpicker.js (modified) (6 diffs)
-
trunk/assets/js/jqueryfunctions.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/settings.php (modified) (3 diffs)
-
trunk/wp-jump-menu.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-jump-menu/trunk/assets/js/colorpicker/css/layout.css
r290497 r1013694 1 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 1 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 2 2 margin:0; 3 3 padding:0; … … 7 7 border-spacing:0; 8 8 } 9 fieldset,img { 9 fieldset,img { 10 10 border:0; 11 11 } -
wp-jump-menu/trunk/assets/js/colorpicker/js/colorpicker.js
r425251 r1013694 3 3 * Color picker 4 4 * Author: Stefan Petre www.eyecon.ro 5 * 5 * 6 6 * Dual licensed under the MIT and GPL licenses 7 * 7 * 8 8 */ 9 9 (function ($) { … … 113 113 field: field, 114 114 val: parseInt(field.val(), 10), 115 preview: $(this).parent().parent().data('colorpicker').livePreview 115 preview: $(this).parent().parent().data('colorpicker').livePreview 116 116 }; 117 117 $(document).bind('mouseup', current, upIncrement); … … 223 223 }, 224 224 hide = function (ev) { 225 225 226 226 if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) { 227 227 if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) { … … 265 265 b: Math.min(100, Math.max(0, hsb.b)) 266 266 }; 267 }, 267 }, 268 268 fixRGB = function (rgb) { 269 269 return { … … 284 284 } 285 285 return hex; 286 }, 286 }, 287 287 HexToRGB = function (hex) { 288 288 var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16); … … 303 303 hsb.b = max; 304 304 if (max != 0) { 305 305 306 306 } 307 307 hsb.s = max != 0 ? 255 * delta / max : 0; -
wp-jump-menu/trunk/assets/js/jqueryfunctions.js
r639481 r1013694 1 1 jQuery(document).ready(function() { 2 2 3 3 if (jQuery('#wpjm-options-form').length > 0) { 4 4 … … 53 53 } 54 54 55 55 56 56 57 57 }); -
wp-jump-menu/trunk/readme.txt
r1013556 r1013694 7 7 Requires at least: 3.2.1 8 8 Tested up to: 4.0 9 Stable tag: 3.3 9 Stable tag: 3.3.1 10 10 11 11 Creates a drop-down menu in the admin area which makes it easy to jump to a page, post, custom post type or media file for editing. … … 54 54 == Frequently Asked Questions == 55 55 56 = Is there any way to add additional content to the jump menu? = 57 58 Yes. 59 60 There are two filters that run at the beginning of the menu and at the end. 61 62 The first is: 63 64 `wpjm-filter-beginning-of-list` 65 66 which happens after the first <option> which is "Select to Edit" 67 68 and the second is: 69 70 `wpjm-filter-end-of-list` 71 72 which happens just before the last <optgroup> which is for the Jump Menu Settings page. 73 74 Your filter function would look something like this: 75 76 function wpjm_filter( $wpjm_string ) { 77 78 $wpjm_string .= '<optgroup label="Global Content Blocks">'; 79 $wpjm_string .= '<option value="url-on-select">Option Name</option>'; 80 $wpjm_string .= '</optgroup>'; 81 82 return $wpjm_string; 83 84 } 85 86 And your apply_filters would look like this: 87 88 `apply_filters( 'wpjm-beginning-of-list', 'wpjm-filter' )` 89 56 90 = The jump menu isn't working. = 57 91 … … 62 96 = How do I put my logo in? = 63 97 64 You need to upload your logo icon, through WordPress maybe, and get the full URL to the image. This you will put into the Logo Icon field in the options.98 The branding options are only accessible when the position of the jump menu is set to top or bottom, and not WP Admin Bar. You need to upload your logo icon, through WordPress maybe, and get the full URL to the image. This you will put into the Logo Icon field in the options. 65 99 66 100 == Screenshots == … … 73 107 74 108 == Changelog == 109 110 = 3.3.1 = 111 * Resolved conflict with SOLA Newsletters plugin (and other plugins that used the same colorpicker javascript) 112 * Added filters for adding items at the beginning or end of menu (see FAQ for more instructions) 113 * Fixed some styling issues on the settings page 75 114 76 115 = 3.3 = -
wp-jump-menu/trunk/settings.php
r1013556 r1013694 413 413 <thead> 414 414 <tr> 415 <th scope="col" id="cb" class="manage-column column-cb check-column"><input type="checkbox" /></th> 416 <th scope="col" class="wpjm-post-types-title-col">Post Types</th> 417 <th scope="col" class="wpjm-numberposts-col">Show</th> 418 <th scope="col" class="wpjm-order-by-col">Order By</th> 419 <th scope="col" class="wpjm-order-col">Order</th> 420 <th scope="col" class="wpjm-showdrafts-col">Post Status</th> 415 <th scope="col" id="cb" class="manage-column column-cb check-column"> 416 <label class="screen-reader-text" for="cb-select-all-1">Select All</label> 417 <input id="cb-select-all-1" type="checkbox" /></th> 418 <th scope="col" class="manage-column wpjm-post-types-title-col">Post Types</th> 419 <th scope="col" class="manage-column wpjm-numberposts-col">Show</th> 420 <th scope="col" class="manage-column wpjm-order-by-col">Order By</th> 421 <th scope="col" class="manage-column wpjm-order-col">Order</th> 422 <th scope="col" class="manage-column wpjm-showdrafts-col">Post Status</th> 421 423 </tr> 422 424 </thead> 423 425 <tfoot> 424 426 <tr> 425 <th scope="col" class="manage-column column-cb check-column"><input type="checkbox" /></th> 426 <th scope="col" class="wpjm-post-types-title-col">Post Types</th> 427 <th scope="col" class="wpjm-numberposts-col">Show</th> 428 <th scope="col" class="wpjm-order-by-col">Order By</th> 429 <th scope="col" class="wpjm-order-col">Order</th> 430 <th scope="col" class="wpjm-showdrafts-col">Post Status</th> 427 <th scope="col" class="manage-column column-cb check-column"> 428 <label class="screen-reader-text" for="cb-select-all-2">Select All</label> 429 <input id="cb-select-all-2" type="checkbox" /></th> 430 <th scope="col" class="manage-column wpjm-post-types-title-col">Post Types</th> 431 <th scope="col" class="manage-column wpjm-numberposts-col">Show</th> 432 <th scope="col" class="manage-column wpjm-order-by-col">Order By</th> 433 <th scope="col" class="manage-column wpjm-order-col">Order</th> 434 <th scope="col" class="manage-column wpjm-showdrafts-col">Post Status</th> 431 435 </tr> 432 436 </tfoot> 433 <tbody >437 <tbody id="the-list"> 434 438 <?php 435 439 … … 492 496 } 493 497 ?> 494 <tr class="<?php if ($alt==""){ $alt = "alternate"; } else { echo $alt; $alt = "";} ?>" valign="top">498 <tr class="<?php if ($alt==""){ $alt = "alternate"; echo $alt; } else { $alt = ""; echo $alt; } ?>" valign="top"> 495 499 <th class="check-column" scope="row"> 496 500 <input type="checkbox" name="wpjm_options[postTypes][<?php echo $pt->name; ?>][show]" id="wpjm_postType_<?php echo $pt->name; ?>" value="1" <?php checked($wpjm_options['postTypes'][$pt->name]['show'], 1 ); ?> /> … … 586 590 <br> 587 591 </div> 588 <script>589 // Hide the left TH column next to the table of post types590 ;(function($){591 $('#wpjm-post-types-table').parent().parent().prev().hide();592 })(jQuery);593 </script>594 592 <?php 595 593 } -
wp-jump-menu/trunk/wp-jump-menu.php
r1013556 r1013694 3 3 * @package WP_Jump_Menu 4 4 * @author Jim Krill 5 * @version 3.3 5 * @version 3.3.1 6 6 */ 7 7 /* … … 9 9 Plugin URI: http://wpjumpmenu.com 10 10 Description: Creates a drop-down menu (jump menu) in a bar across the top or bottom of the screen that makes it easy to jump right to a page, post, or custom post type in the admin area to edit. 11 Version: 3.3 11 Version: 3.3.1 12 12 Author: Jim Krill 13 13 Author URI: http://krillwebdesign.com … … 40 40 $this->path = plugin_dir_path( __FILE__ ); 41 41 $this->dir = plugins_url( '', __FILE__ ); 42 $this->version = '3.3 ';42 $this->version = '3.3.1'; 43 43 $this->upgrade_version = ''; 44 44 $this->options = get_option( 'wpjm_options' ); … … 81 81 82 82 // actions 83 add_action('admin_menu', array( $this,'admin_menu')); 84 add_action('admin_print_scripts', array( $this,'admin_head')); 85 add_action('admin_print_styles', array( $this, 'wpjm_css')); 86 add_action('plugin_action_links', array( $this,'plugin_action_links'), 10, 2); 87 add_action('wp_print_scripts', array( $this, 'wpjm_js')); 83 add_action( 'admin_menu', array( $this, 'admin_menu' ) ); 84 add_action( 'admin_print_scripts', array( $this, 'admin_head' ) ); 85 add_action( 'admin_print_scripts-settings_page_wpjm-options', array( $this, 'wpjm_settings_scripts' ) ); 86 add_action( 'admin_print_styles', array( $this, 'wpjm_css') ); 87 add_action( 'plugin_action_links', array( $this,'plugin_action_links'), 10, 2 ); 88 add_action( 'wp_print_scripts', array( $this, 'wpjm_js') ); 88 89 89 90 if ( $this->options['position'] == 'wpAdminBar' ) … … 124 125 'wpjm-colorpicker-css' => $this->dir . '/assets/js/colorpicker/css/colorpicker.css', 125 126 'chosencss' => $this->dir . '/assets/js/chosen/chosen.css', 126 'chosencss-wpadminbar' => $this->dir . '/assets/js/chosen/chosen-wpadmin.css' 127 'chosencss-wpadminbar' => $this->dir . '/assets/js/chosen/chosen-wpadmin.css', 128 'wpjm-settings-css' => $this->dir . '/assets/css/wpjm-settings.css' 127 129 ); 128 130 … … 157 159 { 158 160 $this->options_page = add_options_page('Jump Menu Options','Jump Menu Options', 'edit_posts', 'wpjm-options', array( $this, 'wpjm_options_page')); 161 error_log(print_r($this->options_page,true)); 159 162 } 160 163 … … 176 179 wp_enqueue_script( 'wpjm-jquery-ui-position' ); 177 180 wp_enqueue_script( 'wpjm-jquery-functions' ); 181 182 } 183 184 function wpjm_settings_scripts() 185 { 186 // Colorpicker 178 187 wp_enqueue_script( 'wpjm-jquery-colorpicker' ); 179 180 // Colorpicker181 188 wp_enqueue_style( 'wpjm-colorpicker-css' ); 182 189 190 // Settings page CSS 191 wp_enqueue_style( 'wpjm-settings-css' ); 183 192 } 184 193 … … 215 224 <form action="options.php" method="post" id="wpjm-options-form"> 216 225 <?php settings_fields('wpjm_options'); ?> 217 <?php do_settings_sections('wpjm'); ?> 226 <div class="wpjm-post-types-wrapper"> 227 <?php do_settings_sections('wpjm'); ?> 228 </div> 218 229 <p class="submit"> 219 230 <input type="Submit" type="submit" value="<?php esc_attr_e('Save Changes'); ?>" class="button button-primary" /> 220 231 </p> 221 <?php do_settings_sections('wpjm-2'); ?> 232 <div class="wpjm-additional-settings-wrapper"> 233 <?php do_settings_sections('wpjm-2'); ?> 234 </div> 222 235 223 236 <p class="submit"> … … 473 486 } 474 487 $wpjm_string .= '<option>Select to Edit</option>'; 488 489 $wpjm_string = apply_filters( 'wpjm-filter-beginning-of-list', $wpjm_string ); 475 490 476 491 // Loop through custom posts types, and echo them out … … 738 753 } // end if ($custom_post_types) 739 754 755 $wpjm_string = apply_filters( 'wpjm-filter-end-of-list', $wpjm_string ); 756 740 757 // Print the options page link 741 758 if ( current_user_can( 'activate_plugins' ) ) { … … 746 763 747 764 } 765 766 748 767 749 768 // Close the select drop down … … 946 965 } 947 966 967 968 948 969 } 949 970
Note: See TracChangeset
for help on using the changeset viewer.