Plugin Directory

Changeset 1599746


Ignore:
Timestamp:
02/20/2017 12:48:31 PM (9 years ago)
Author:
Sohelwpexpert
Message:

Update Some Debugging Code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • my-wp-tooltip/trunk/tooltip-min.php

    r1264759 r1599746  
    44Plugin URI: http://prowpexpert.com/
    55Description: This plugin will enable tooltip in your Wordpress theme.
    6 Author: Md Sohel
     6Author: sohelwpexpert
    77Author URI: paisleyfarmersmarket.ca/sohels/
    88Version: 1.0
     
    1111
    1212/*Some Set-up*/
    13 define('WP_TOOLTIP_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
     13define('MS_WP_TOOLTIP_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
    1414
    1515
    16 /* Adding Latest jQuery from Wordpress */
    17 function wp_tooltip_latest_jquery() {
    18     wp_enqueue_script('jquery');
     16
     17function ms_wp_tooltip_plugin_main_js() {
     18/**
     19 * Register global styles & scripts.
     20 */
     21wp_register_style('wp-tooltip-bootstrap-style', MS_WP_TOOLTIP_PLUGIN_PATH.'css/bootstrap.css');
     22wp_register_style('news-style-css', MS_WP_TOOLTIP_PLUGIN_PATH.'css/style.css');
     23
     24wp_register_script('wp-tooltip-plugin-main', MS_WP_TOOLTIP_PLUGIN_PATH.'js/bootstrap.min.js', array( 'jquery' ));
     25wp_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 
     32wp_enqueue_style('wp-tooltip-bootstrap-style');
     33wp_enqueue_style('news-style-css');
     34
     35wp_enqueue_script('wp-tooltip-plugin-main');
     36wp_enqueue_script('wp-tooltip-plugin-active');
     37wp_enqueue_script('jquery');
    1938}
    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');
     39add_action( 'wp_enqueue_scripts', 'ms_wp_tooltip_plugin_main_js' );
    3140
    3241
Note: See TracChangeset for help on using the changeset viewer.