/** * Enqueue scripts and styles. */ function atomic_scripts() { wp_enqueue_style('atomic-style', get_stylesheet_uri()); wp_enqueue_script('atomic-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true); wp_enqueue_script('atomic-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true); wp_register_script('atomic-modernizer', get_template_directory_uri() . '/js/vendor/modernizr.js', '', '2.8.3', false); wp_register_script('atomic-foundation-fastclick', get_template_directory_uri() . '/js/vendor/fastclick.js', '', '20151229', true); wp_register_script('atomic-foundation-placeholder', get_template_directory_uri() . '/js/vendor/placeholder.js', '', '20151229', true); wp_register_script('atomic-foundation', get_template_directory_uri() . '/js/foundation/foundation.js', '', '5.5.3', true); wp_register_script('atomic-custom', get_template_directory_uri() . '/js/script.js', '', '20151229', true); wp_enqueue_script('atomic-modernizer'); wp_enqueue_Script('jquery'); wp_enqueue_script('atomic-foundation-fastclick'); wp_enqueue_script('atomic-foundation-placeholder'); wp_enqueue_script('atomic-foundation'); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } }
function crf_admin_script() { wp_enqueue_script('jquery-ui-datepicker'); wp_enqueue_style('crf-admin.css', plugin_dir_url(__FILE__) . 'css/crf-admin.css'); wp_enqueue_style('jquery-ui.css', 'http://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css'); wp_enqueue_script('jquery'); wp_enqueue_Script('jquery-ui-dialog'); wp_enqueue_Script('jquery-ui-sortable'); wp_register_style('crf_googleFonts', 'http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700'); wp_enqueue_style('crf_googleFonts'); wp_enqueue_script('ZeroClipboard.js', plugin_dir_url(__FILE__) . 'js/ZeroClipboard.js'); wp_enqueue_script('jquery-ui-tooltip'); wp_enqueue_style('crf_analytics', plugin_dir_url(__FILE__) . 'css/crf_analytics.css'); wp_enqueue_script('crf_jsapi', 'https://www.google.com/jsapi'); }
function crf_admin_script() { wp_enqueue_script('tcal.js', plugin_dir_url(__FILE__) . 'js/tcal.js'); wp_enqueue_style('tcal.css', plugin_dir_url(__FILE__) . 'css/tcal.css'); wp_enqueue_style('crf-admin.css', plugin_dir_url(__FILE__) . 'css/crf-admin.css'); wp_enqueue_script('jquery'); wp_enqueue_Script('jquery-ui-dialog'); wp_enqueue_Script('jquery-ui-sortable'); wp_register_style('crf_googleFonts', 'http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700'); wp_enqueue_style('crf_googleFonts'); wp_enqueue_script('ZeroClipboard.js', plugin_dir_url(__FILE__) . 'js/ZeroClipboard.js'); wp_enqueue_script('jquery-ui-tooltip'); wp_enqueue_style('crf_analytics', plugin_dir_url(__FILE__) . 'css/crf_analytics.css'); wp_enqueue_script('crf_admin.js', plugin_dir_url(__FILE__) . 'js/admin.js', '', '', true); wp_enqueue_script('crf_jsapi', 'https://www.google.com/jsapi'); wp_enqueue_style('wp-color-picker'); wp_enqueue_script('wp-color-picker'); wp_enqueue_script('jQuery UI Effects'); wp_enqueue_script('jquery-effects-blind'); }