Changeset 1214689
- Timestamp:
- 08/07/2015 08:32:48 AM (11 years ago)
- Location:
- advanced-custom-tooltips/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (1 diff)
-
admin/class-advanced-custom-tooltips-admin.php (modified) (10 diffs)
-
advanced-custom-tooltips.php (modified) (1 diff)
-
includes/class-advanced-custom-tooltips.php (modified) (1 diff)
-
public/class-advanced-custom-tooltips-public.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-custom-tooltips/trunk/README.txt
r1205625 r1214689 70 70 == Changelog == 71 71 72 = 1.0.1 = 73 * Bugfix: Activation warning, tooltips limit & Bootstrap class conflict. 72 74 = 1.0.0 = 73 75 * First release 76 77 == Upgrade Notice == 78 79 = 1.0.1 = 80 * Bugfix: Activation warning, tooltips limit & Bootstrap class conflict. -
advanced-custom-tooltips/trunk/admin/class-advanced-custom-tooltips-admin.php
r1205625 r1214689 94 94 function add_tooltip_cpt() { 95 95 $labels = array( 96 'name' => _x( 'Tooltips', 'post type general name', ' sb-act' ),97 'singular_name' => _x( 'Tooltip', 'post type singular name', ' sb-act' ),98 'menu_name' => _x( 'Tooltips', 'admin menu', ' sb-act' ),99 'name_admin_bar' => _x( 'Tooltips', 'add new on admin bar', ' sb-act' ),100 'add_new' => _x( 'Add New', 'tooltip', ' sb-act' ),101 'add_new_item' => __( 'Add New Tooltip', ' sb-act' ),102 'new_item' => __( 'New Tooltip', ' sb-act' ),103 'edit_item' => __( 'Edit Tooltip', ' sb-act' ),104 'view_item' => __( 'View Tooltip', ' sb-act' ),105 'all_items' => __( 'All Tooltips', ' sb-act' ),106 'search_items' => __( 'Search Tooltips', ' sb-act' ),107 'parent_item_colon' => __( 'Parent Tooltips:', ' sb-act' ),108 'not_found' => __( 'No tooltips found.', ' sb-act' ),109 'not_found_in_trash' => __( 'No tooltips found in Trash.', ' sb-act' )96 'name' => _x( 'Tooltips', 'post type general name', 'advanced-custom-tooltips' ), 97 'singular_name' => _x( 'Tooltip', 'post type singular name', 'advanced-custom-tooltips' ), 98 'menu_name' => _x( 'Tooltips', 'admin menu', 'advanced-custom-tooltips' ), 99 'name_admin_bar' => _x( 'Tooltips', 'add new on admin bar', 'advanced-custom-tooltips' ), 100 'add_new' => _x( 'Add New', 'tooltip', 'advanced-custom-tooltips' ), 101 'add_new_item' => __( 'Add New Tooltip', 'advanced-custom-tooltips' ), 102 'new_item' => __( 'New Tooltip', 'advanced-custom-tooltips' ), 103 'edit_item' => __( 'Edit Tooltip', 'advanced-custom-tooltips' ), 104 'view_item' => __( 'View Tooltip', 'advanced-custom-tooltips' ), 105 'all_items' => __( 'All Tooltips', 'advanced-custom-tooltips' ), 106 'search_items' => __( 'Search Tooltips', 'advanced-custom-tooltips' ), 107 'parent_item_colon' => __( 'Parent Tooltips:', 'advanced-custom-tooltips' ), 108 'not_found' => __( 'No tooltips found.', 'advanced-custom-tooltips' ), 109 'not_found_in_trash' => __( 'No tooltips found in Trash.', 'advanced-custom-tooltips' ) 110 110 ); 111 111 … … 151 151 } 152 152 $tooltip_content = $content; 153 return '<span class=" tooltip" title="' . $tooltip_content . '">' . $tooltip_text . '</span>';153 return '<span class="act-tooltip" title="' . $tooltip_content . '">' . $tooltip_text . '</span>'; 154 154 } 155 155 … … 170 170 endwhile; endif; wp_reset_query(); 171 171 172 return '<span class=" tooltip" title="' . do_shortcode( $tooltip_content ) . '">' . $tooltip_text . '</span>';172 return '<span class="act-tooltip" title="' . do_shortcode( $tooltip_content ) . '">' . $tooltip_text . '</span>'; 173 173 174 174 } … … 193 193 'id' => 'wpact-tooltip-settings', 194 194 'parent_slug' => 'edit.php?post_type=act_tooltip', 195 'page_title' => __( 'Advanced Custom Tooltips - Global Settings', ' wp-craft-blogger' ),196 'menu_title' => __( 'Settings', ' wp-craft-blogger' ),195 'page_title' => __( 'Advanced Custom Tooltips - Global Settings', 'advanced-custom-tooltips' ), 196 'menu_title' => __( 'Settings', 'advanced-custom-tooltips' ), 197 197 'capability' => 'edit_theme_options', 198 198 'menu_slug' => 'wpact-settings', 199 199 'icon_url' => null, 200 200 'position' => null, 201 'updated_message' => __( 'Settings updated', ' wp-craft-blogger' ),202 'reset_message' => __( 'Settings reset', ' wp-craft-blogger' ),203 'button_text' => __( 'Save changes', ' wp-craft-blogger' ),201 'updated_message' => __( 'Settings updated', 'advanced-custom-tooltips' ), 202 'reset_message' => __( 'Settings reset', 'advanced-custom-tooltips' ), 203 'button_text' => __( 'Save changes', 'advanced-custom-tooltips' ), 204 204 'show_buttons' => true, 205 205 'screen_icon' => 'options-general', … … 208 208 array( 209 209 'id' => 'wpact-general', 210 'title' => __( 'General', ' wp-craft-blogger' ),210 'title' => __( 'General', 'advanced-custom-tooltips' ), 211 211 ), 212 212 array( 213 213 'id' => 'wpact-styles', 214 'title' => __( 'Styling', ' wp-craft-blogger' ),214 'title' => __( 'Styling', 'advanced-custom-tooltips' ), 215 215 ), 216 216 ), … … 251 251 array( 252 252 'id' => 'trigger_color', 253 'label' => 'Color for trigger style',253 'label' => __( 'Color for trigger style', 'advanced-custom-tooltips' ), 254 254 'section' => 'wpact-styles', 255 255 'type' => 'colorpicker', … … 258 258 array( 259 259 'id' => 'tooltip_background_color', 260 'label' => 'Color for tooltip background',260 'label' => __( 'Color for tooltip background', 'advanced-custom-tooltips' ), 261 261 'section' => 'wpact-styles', 262 262 'type' => 'colorpicker', … … 265 265 array( 266 266 'id' => 'tooltip_text_color', 267 'label' => 'Color for tooltip text',267 'label' => __( 'Color for tooltip text', 'advanced-custom-tooltips' ), 268 268 'section' => 'wpact-styles', 269 269 'type' => 'colorpicker', … … 272 272 array( 273 273 'id' => 'tooltip_border_color', 274 'label' => 'Color for tooltip border',274 'label' => __( 'Color for tooltip border', 'advanced-custom-tooltips' ), 275 275 'section' => 'wpact-styles', 276 276 'type' => 'colorpicker', … … 279 279 array( 280 280 'id' => 'tooltip_corner_style', 281 'label' => 'Tooltip corner style',281 'label' => __( 'Tooltip corner style', 'advanced-custom-tooltips' ), 282 282 'section' => 'wpact-styles', 283 283 'type' => 'radio', -
advanced-custom-tooltips/trunk/advanced-custom-tooltips.php
r1205625 r1214689 10 10 * Plugin URI: http://codebyshellbot.com/wordpress-plugins/advanced-custom-tooltips 11 11 * Description: Advanced tooltip creator 12 * Version: 1.0. 012 * Version: 1.0.1 13 13 * Author: Shellbot 14 14 * Author URI: http://codebyshellbot.com -
advanced-custom-tooltips/trunk/includes/class-advanced-custom-tooltips.php
r1205625 r1214689 79 79 80 80 $this->plugin_name = 'Advanced Custom Tooltips'; 81 $this->version = '1.0. 0';81 $this->version = '1.0.1'; 82 82 $this->defaults = $this->set_defaults(); 83 83 -
advanced-custom-tooltips/trunk/public/class-advanced-custom-tooltips-public.php
r1205625 r1214689 72 72 $this->version = $version; 73 73 $this->defaults = $defaults; 74 $this->global_settings = array_merge( $defaults, get_option( 'wpact_global_settings' ));74 $this->global_settings = ( get_option( 'wpact_global_settings' ) ? array_merge( $defaults, get_option( 'wpact_global_settings' ) ) : $defaults ); 75 75 76 76 } … … 117 117 case 'all': 118 118 foreach( $tooltips as $tooltip ) { 119 $content = str_replace( $tooltip->post_title, '<span class=" tooltip" title="' . htmlentities( $tooltip->post_content ) . '">' . $tooltip->post_title . '</span>', $content );119 $content = str_replace( $tooltip->post_title, '<span class="act-tooltip" title="' . htmlentities( $tooltip->post_content ) . '">' . $tooltip->post_title . '</span>', $content ); 120 120 } 121 121 break; … … 124 124 $pos = strpos( $content, $tooltip->post_title ); 125 125 if ($pos !== false) { 126 $content = substr_replace( $content, '<span class=" tooltip" title="' . htmlentities( $tooltip->post_content ) . '">' . $tooltip->post_title . '</span>', $pos, strlen( $tooltip->post_title ) );126 $content = substr_replace( $content, '<span class="act-tooltip" title="' . htmlentities( $tooltip->post_content ) . '">' . $tooltip->post_title . '</span>', $pos, strlen( $tooltip->post_title ) ); 127 127 } 128 128 } … … 144 144 $query = array ( 145 145 'post_type' => 'act_tooltip', 146 'posts_per_page' => -1, 146 147 ); 147 148 … … 222 223 <script type="text/javascript"> 223 224 jQuery(document).ready(function() { 224 jQuery('. tooltip').tooltipster({225 jQuery('.act-tooltip').tooltipster({ 225 226 contentAsHTML: true, 226 227 interactive: true
Note: See TracChangeset
for help on using the changeset viewer.