-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-jq-radio-slider.php
More file actions
28 lines (24 loc) · 1.19 KB
/
wp-jq-radio-slider.php
File metadata and controls
28 lines (24 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
Plugin Name: wp-jq-radio-slider
Description: This plugin converts a Radio Button to a ui-slider when it has the class "lw-slider"
*/
$plugindir = dirname( __FILE__ );
define( 'MYPLUGINNAME_PATH', plugin_dir_url(__FILE__) );
function new_theme_styles() {
wp_register_style( 'jquery-ui', MYPLUGINNAME_PATH . 'styles/jquery-ui/jquery-ui.css', 'all' );
wp_enqueue_style( 'jquery-ui' );
}
add_action('wp_print_styles', 'new_theme_styles');
function my_contacScripts_method() {
//wp_register_script( 'jQuery-UI', 'http://code.jquery.com/ui/1.10.3/jquery-ui.js', array('jquery'),NULL,false);
//wp_enqueue_script( 'jQuery-UI' );
//wp_register_script( 'jquery-ui-touch-punch', MYPLUGINNAME_PATH.'scripts/jquery-ui-touch-punch.js',array('jQuery-UI'),NULL,false);
//wp_enqueue_script( 'jquery-ui-touch-punch' );
//wp_register_script( 'jquery-fastClick', MYPLUGINNAME_PATH.'scripts/jQuery-fastClick.js',array('jquery'),NULL,false);
//wp_enqueue_script( 'jquery-fastClick' );
wp_register_script( 'functions.js', plugin_dir_url(__FILE__).'scripts/functions.js',array('jquery-ui-slider'),NULL,true);
wp_enqueue_script( 'functions.js' );
}
add_action('wp_enqueue_scripts', 'my_contacScripts_method');
?>