Changeset 1599746
- Timestamp:
- 02/20/2017 12:48:31 PM (9 years ago)
- File:
-
- 1 edited
-
my-wp-tooltip/trunk/tooltip-min.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
my-wp-tooltip/trunk/tooltip-min.php
r1264759 r1599746 4 4 Plugin URI: http://prowpexpert.com/ 5 5 Description: This plugin will enable tooltip in your Wordpress theme. 6 Author: Md Sohel6 Author: sohelwpexpert 7 7 Author URI: paisleyfarmersmarket.ca/sohels/ 8 8 Version: 1.0 … … 11 11 12 12 /*Some Set-up*/ 13 define(' WP_TOOLTIP_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );13 define('MS_WP_TOOLTIP_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' ); 14 14 15 15 16 /* Adding Latest jQuery from Wordpress */ 17 function wp_tooltip_latest_jquery() { 18 wp_enqueue_script('jquery'); 16 17 function ms_wp_tooltip_plugin_main_js() { 18 /** 19 * Register global styles & scripts. 20 */ 21 wp_register_style('wp-tooltip-bootstrap-style', MS_WP_TOOLTIP_PLUGIN_PATH.'css/bootstrap.css'); 22 wp_register_style('news-style-css', MS_WP_TOOLTIP_PLUGIN_PATH.'css/style.css'); 23 24 wp_register_script('wp-tooltip-plugin-main', MS_WP_TOOLTIP_PLUGIN_PATH.'js/bootstrap.min.js', array( 'jquery' )); 25 wp_register_script('wp-tooltip-plugin-active', MS_WP_TOOLTIP_PLUGIN_PATH.'js/scripts.js', array( 'jquery' )); 26 27 28 /** 29 * Enqueue global styles & scripts. 30 */ 31 32 wp_enqueue_style('wp-tooltip-bootstrap-style'); 33 wp_enqueue_style('news-style-css'); 34 35 wp_enqueue_script('wp-tooltip-plugin-main'); 36 wp_enqueue_script('wp-tooltip-plugin-active'); 37 wp_enqueue_script('jquery'); 19 38 } 20 add_action('init', 'wp_tooltip_latest_jquery'); 21 22 /* Adding plugin javascript Main file */ 23 wp_enqueue_script('wp-tooltip-plugin-main', WP_TOOLTIP_PLUGIN_PATH.'js/bootstrap.min.js', array('jquery')); 24 25 /* Adding plugin javascript active file */ 26 wp_enqueue_script('wp-tooltip-plugin-active', WP_TOOLTIP_PLUGIN_PATH.'js/scripts.js', array('jquery'), '1.0', true); 27 28 /* Adding Plugin custm CSS file */ 29 wp_enqueue_style('wp-tooltip-bootstrap-style', WP_TOOLTIP_PLUGIN_PATH.'css/bootstrap.css'); 30 wp_enqueue_style('wp-tooltip-style', WP_TOOLTIP_PLUGIN_PATH.'css/style.css'); 39 add_action( 'wp_enqueue_scripts', 'ms_wp_tooltip_plugin_main_js' ); 31 40 32 41
Note: See TracChangeset
for help on using the changeset viewer.