Plugin Directory

Changeset 1599763


Ignore:
Timestamp:
02/20/2017 01:04:14 PM (9 years ago)
Author:
Sohelwpexpert
Message:

Update Some Debugging Code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • my-wp-accordion/trunk/plugin-hook.php

    r1247224 r1599763  
    44Plugin URI: http://paisleyfarmersmarket.ca/sohels/
    55Description: This plugin will add an expand collapse accordion feature inside a post or page.
    6 Author: md sohel
     6Author: sohelwpexpert
    77Author URI: http://paisleyfarmersmarket.ca/sohels/
    8 Version: 1.0
     8Version: 1.1
    99*/
    1010
    1111
    1212/*Some Set-up*/
    13 define('WP_ACCORDION_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
     13define('WP_ACCORDION_THREE_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
    1414
    1515
    16 /* Adding Latest jQuery from Wordpress */
    17 function wp_accordion_latest_jquery() {
    18     wp_enqueue_script('jquery');
     16
     17function ms_wp_accordion_three_latest_jquery() {
     18/**
     19 * Register global styles & scripts.
     20 */
     21wp_register_style('wp-accordion-plugin-style', WP_ACCORDION_THREE_PLUGIN_PATH.'css/style.css');
     22
     23wp_register_script('wp-accordion-plugin-script-active', WP_ACCORDION_THREE_PLUGIN_PATH.'js/florida-custom.js', array( 'jquery' ));
     24
     25
     26/**
     27 * Enqueue global styles & scripts.
     28 */
     29 
     30wp_enqueue_style('wp-accordion-plugin-style');
     31
     32wp_enqueue_script('wp-accordion-plugin-script-active');
     33wp_enqueue_script('jquery');
    1934}
    20 add_action('init', 'wp_accordion_latest_jquery');
    21 
    22 /* Adding plugin javascript Main file */
    23 //wp_enqueue_script('wp-accordion-plugin-main', WP_ACCORDION_PLUGIN_PATH.'js/ppm-accordion-main.js', array('jquery'));
    24 
    25 /* Adding plugin javascript active file */
    26 wp_enqueue_script('wp-accordion-plugin-script-active', WP_ACCORDION_PLUGIN_PATH.'js/florida-custom.js', array('jquery'), '1.0', true);
    27 
    28 /* Adding Plugin custm CSS file */
    29 wp_enqueue_style('wp-accordion-plugin-style', WP_ACCORDION_PLUGIN_PATH.'css/style.css');
    30 
     35add_action( 'wp_enqueue_scripts', 'ms_wp_accordion_three_latest_jquery' );
    3136
    3237
Note: See TracChangeset for help on using the changeset viewer.