Add toggle-switch library

This commit is contained in:
Markus Ankenbrand 2017-02-23 01:04:20 +01:00
parent 3a12120b55
commit f9ec9a8148
4 changed files with 6 additions and 1 deletions

View file

@ -83,7 +83,9 @@
}
}
endwhile;
wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/page-pins-map.js', array('jquery', 'jquery-ui-selectable'));
wp_enqueue_style('toggle_switch', get_stylesheet_directory_uri() . '/css/tinytools.toggleswitch.min.css');
wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/page-pins-map.js', array('jquery'));
wp_enqueue_script('page_pins_map', get_stylesheet_directory_uri() . '/js/page-pins-map.js', array('jquery', 'jquery-ui-selectable', 'toggle_switch'));
wp_localize_script('page_pins_map', 'page_pins_map', array('places' => $locations, 'traveler' => array_values($traveler)));
wp_enqueue_style('page_pins', get_stylesheet_directory_uri() . '/css/page-pins.css');
?>