Changeset 950841
- Timestamp:
- 07/18/2014 07:30:35 AM (12 years ago)
- Location:
- cfb-scroll-to-top/trunk
- Files:
-
- 2 edited
-
cfbscrollup.php (modified) (1 diff)
-
script.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cfb-scroll-to-top/trunk/cfbscrollup.php
r950829 r950841 10 10 */ 11 11 //Adding Latest jQuery from Wordpress 12 function cfb_scrollup_latest_jquery(){13 wp_enqueue_script('jquery');12 function scrollup_insert_jquery(){ 13 wp_enqueue_script('jquery'); 14 14 } 15 add_ action('init', 'cfb_scrollup_latest_jquery');15 add_filter('init','scrollup_insert_jquery'); 16 16 //define plugin path and url 17 17 define( 'CFB_SCROLLUP_URL', plugin_dir_url( __FILE__ ) ); -
cfb-scroll-to-top/trunk/script.php
r950829 r950841 7 7 //Loading sript here 8 8 function cfbscrllup_js(){ 9 wp_deregister_script('jquery');; 10 wp_enqueue_script( 'plugin_js_main', plugins_url( '/js/jquery.scrollUp.min.js' , __FILE__ ) , array( 'jquery') , false); 9 wp_enqueue_script( 'scrollUp_main_js', plugins_url( '/js/jquery.scrollUp.min.js' , __FILE__ ) , array( 'jquery') , false); 11 10 } 12 11 add_action( 'wp_enqueue_scripts', 'cfbscrllup_js' );
Note: See TracChangeset
for help on using the changeset viewer.