Changeset 1599763
- Timestamp:
- 02/20/2017 01:04:14 PM (9 years ago)
- File:
-
- 1 edited
-
my-wp-accordion/trunk/plugin-hook.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
my-wp-accordion/trunk/plugin-hook.php
r1247224 r1599763 4 4 Plugin URI: http://paisleyfarmersmarket.ca/sohels/ 5 5 Description: This plugin will add an expand collapse accordion feature inside a post or page. 6 Author: md sohel6 Author: sohelwpexpert 7 7 Author URI: http://paisleyfarmersmarket.ca/sohels/ 8 Version: 1. 08 Version: 1.1 9 9 */ 10 10 11 11 12 12 /*Some Set-up*/ 13 define('WP_ACCORDION_ PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );13 define('WP_ACCORDION_THREE_PLUGIN_PATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' ); 14 14 15 15 16 /* Adding Latest jQuery from Wordpress */ 17 function wp_accordion_latest_jquery() { 18 wp_enqueue_script('jquery'); 16 17 function ms_wp_accordion_three_latest_jquery() { 18 /** 19 * Register global styles & scripts. 20 */ 21 wp_register_style('wp-accordion-plugin-style', WP_ACCORDION_THREE_PLUGIN_PATH.'css/style.css'); 22 23 wp_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 30 wp_enqueue_style('wp-accordion-plugin-style'); 31 32 wp_enqueue_script('wp-accordion-plugin-script-active'); 33 wp_enqueue_script('jquery'); 19 34 } 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 35 add_action( 'wp_enqueue_scripts', 'ms_wp_accordion_three_latest_jquery' ); 31 36 32 37
Note: See TracChangeset
for help on using the changeset viewer.