Changeset 1201488
- Timestamp:
- 07/18/2015 08:43:29 AM (11 years ago)
- Location:
- wp-jquery-qtip/trunk
- Files:
-
- 12 added
- 2 edited
-
css (added)
-
css/qTip2 (added)
-
css/qTip2/basic (added)
-
css/qTip2/basic/jquery.qtip.css (added)
-
css/qTip2/basic/jquery.qtip.min.css (added)
-
css/qTip2/jquery.qtip.min.css (added)
-
js/qTip2 (added)
-
js/qTip2/basic (added)
-
js/qTip2/basic/jquery.qtip.js (added)
-
js/qTip2/basic/jquery.qtip.min.js (added)
-
js/qTip2/jquery.qtip.min.js (added)
-
js/qTip2/wp_jquery_qtip_tooltip.js (added)
-
readme.txt (modified) (3 diffs)
-
wp-jquery-qtip.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-jquery-qtip/trunk/readme.txt
r650047 r1201488 4 4 Tags: tooltip, link text 5 5 Requires at least: 3.3 6 Tested up to: 3.57 Stable tag: 0.9.06 Tested up to: 4.2.2 7 Stable tag: 1.9.0 8 8 License: MIT License 9 9 License URI: http://www.opensource.org/licenses/mit-license.php 10 10 11 WP jQuery qTip is a plugin that uses qTip v1.0 to display nice looking, user friendly tooltips. Colors and position are easily changeable.11 WP jQuery qTip is a plugin that uses qTip v1.0 and v2.0 to display nice looking, user friendly tooltips. Colors and position are easily changeable. 12 12 13 13 == Description == … … 38 38 and upgraded the plugin to work on the latest (3.5) WordPress. 39 39 40 But wait, this release has preliminary support for qTip2! I'll be lookng at qTip2 and see what I can add. 41 You can continue to use qTip1, I'll provide backwards compatibility for the foreseeable future. 42 Expect support for shortcodes at somepoint as well. 43 40 44 == Screenshots == 41 45 … … 46 50 == Changelog == 47 51 52 = 1.9.0 = 53 * Initial support for qTip2. 54 48 55 = 0.9.0 = 49 56 * Initial release. -
wp-jquery-qtip/trunk/wp-jquery-qtip.php
r650049 r1201488 4 4 Plugin URI: http://www.dougparling.org/ 5 5 Description: JR qTip for Wordpress is a plugin that uses qTip to display nice looking, user friendly tooltips. Colors and position are easily changeable. Based on JR qTip for WordPress by Jacob Ras 6 Version: 0.9.06 Version: 1.9.0 7 7 Author: Doug Sparling 8 8 Author URI: http://www.dougsparling.org 9 9 10 Copyright 2013 Doug Sparling (email : [email protected])10 Copyright 2013-2015 Doug Sparling (email : [email protected]) 11 11 Copyright 2009 Jacob Ras (email : [email protected]) 12 12 … … 29 29 function wp_jquery_qtip() { 30 30 31 $wp_jquery_qtip = get_option( 'wp_jquery_qtip' ); 32 33 if ( $wp_jquery_qtip['enable_qtip'] == 'on' ) { 34 35 wp_enqueue_script( 'jquery' ); 36 37 wp_enqueue_script( 'jquery.qtip', 38 plugin_dir_url( __FILE__ ) . 'js/jquery.qtip-1.0.0-rc3.min.js', 39 array( 'jquery' ), '', 1 ); 40 41 wp_enqueue_script( 'wp_jquery_qtip_tooltip', 42 plugin_dir_url( __FILE__ ) . 'js/wp_jquery_qtip_tooltip.js', 43 array( 'jquery', 'jquery.qtip' ), '', 1 ); 44 45 $params = array( 46 'tooltip_color' => $wp_jquery_qtip['tooltip_color'], 47 'tooltip_target' => $wp_jquery_qtip['tooltip_target'], 48 'tooltip_position' => $wp_jquery_qtip['tooltip_position'] 49 ); 50 51 wp_localize_script( 'wp_jquery_qtip_tooltip', 'wp_jquery_qtip_params', $params ); 52 53 } 31 $wp_jquery_qtip = get_option( 'wp_jquery_qtip' ); 32 33 if ( $wp_jquery_qtip['enable_qtip'] == 'on' ) { 34 35 if ( $wp_jquery_qtip['tooltip_version'] == 1 ) { 36 wp_register_script( 'jquery.qtip', plugins_url( 'js/jquery.qtip-1.0.0-rc3.min.js', __FILE__ ) ); 37 wp_enqueue_script( 'jquery.qtip', array( 'jquery' ) ); 38 39 wp_register_script( 'wp_jquery_qtip_tooltip', plugins_url( 'js/wp_jquery_qtip_tooltip.js', __FILE__ ) ); 40 wp_enqueue_script( 'wp_jquery_qtip_tooltip', array( 'jquery', 'jquery.qtip' ) ); 41 } else { 42 wp_register_script( 'jquery.qtip', plugins_url( 'js/qTip2/jquery.qtip.min.js', __FILE__ ) ); 43 wp_enqueue_script( 'jquery.qtip', array('jquery')); 44 45 wp_register_script( 'wp_jquery_qtip_tooltip', plugins_url( 'js/qTip2/wp_jquery_qtip_tooltip.js', __FILE__ ) ); 46 wp_enqueue_script( 'wp_jquery_qtip_tooltip', array( 'jquery', 'jquery.qtip' ) ); 47 48 wp_register_style('jquery.qtip', plugins_url( 'css/qTip2/jquery.qtip.min.css', __FILE__ ) ); 49 wp_enqueue_style( 'jquery.qtip'); 50 } 51 52 $params = array( 53 'tooltip_version' => $wp_jquery_qtip['tooltip_version'], 54 'tooltip_color' => $wp_jquery_qtip['tooltip_color'], // Style 55 'tooltip_target' => $wp_jquery_qtip['tooltip_target'], 56 'tooltip_position' => $wp_jquery_qtip['tooltip_position'] 57 ); 58 59 wp_localize_script( 'wp_jquery_qtip_tooltip', 'wp_jquery_qtip_params', $params ); 60 61 } 54 62 } 55 63 … … 67 75 $wp_jquery_qtip['enable_qtip'] = ''; 68 76 } 77 $wp_jquery_qtip['tooltip_version'] = $_POST['wp_jquery_qtip_tooltip_version']; 69 78 $wp_jquery_qtip['tooltip_color'] = $_POST['wp_jquery_qtip_tooltip_color']; 70 79 $wp_jquery_qtip['tooltip_target'] = $_POST['wp_jquery_qtip_tooltip_target']; … … 96 105 </tr> 97 106 98 <tr> 99 <th valign="top"> 100 <label>Tooltip color:</label> 107 <tr> 108 <th valign="top"> 109 <label>qTip version</label> 110 </th> 111 <td valign="top"> 112 <select name="wp_jquery_qtip_tooltip_version"> 113 <option <?php if( $wp_jquery_qtip['tooltip_version'] == 1 ) { echo 'selected="selected"'; } ?> value="1">1 </option> 114 <option <?php if( $wp_jquery_qtip['tooltip_version'] == 2 ) { echo 'selected="selected"'; } ?> value="2">2 </option> 115 </select> 116 </td> 117 </tr> 118 119 <tr> 120 <th valign="top"> 121 <label>Tooltip style:</label> 101 122 </th> 102 123 <td valign="top"> … … 164 185 165 186 <div class="postbox"> 166 <h3>Tooltip color& positioning preview:</h3>187 <h3>Tooltip style & positioning preview:</h3> 167 188 <p style="text-align:center;"> 168 189 <img src="<?php echo get_bloginfo('url') . '/wp-content/plugins/wp-jquery-qtip/qtip_positioning.jpg'; ?>" /> … … 189 210 $wp_jquery_qtip = array(); 190 211 $wp_jquery_qtip['enable_qtip'] = 'on'; 212 $wp_jquery_qtip['tooltip_version'] = 1; 191 213 $wp_jquery_qtip['tooltip_color'] = 'cream'; 192 214 $wp_jquery_qtip['tooltip_target'] = 'bottomMiddle';
Note: See TracChangeset
for help on using the changeset viewer.