Created
July 12, 2014 16:54
-
-
Save curtismchale/3fd84b97efd76e2a4a54 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Registers and enqueues scripts and styles | |
| * | |
| * @uses wp_enqueue_style | |
| * @uses wp_enqueue_script | |
| * | |
| * @since 1.0 | |
| * @author SFNdesign, Curtis McHale | |
| */ | |
| public function enqueue(){ | |
| // styles plugin | |
| wp_enqueue_style( 'golf_search_styles', plugins_url( '/$plugin-folder-name/golf-search-styles.css' ), '', '1.0', 'all'); | |
| // styles theme | |
| wp_enqueue_style( 'golf_search_styles', get_template_directory_uri().'/stylesheet.css', '', '1.0', 'all'); | |
| // scripts theme | |
| wp_enqueue_script('jqueryvalidate', get_template_directory_uri().'/assets/js/jquery.validate.min.js', array('jquery'), '1.0', true); | |
| // scripts plugin | |
| wp_enqueue_script('jqueryvalidate', plugins_url( '/$plugin-folder-name/scripts.js' ), array('jquery'), '1.0', true); | |
| wp_localize_script( 'career_front_scripts', 'UserDir', array( | |
| 'ajaxurl' => admin_url( 'admin-ajax.php' ), | |
| 'career_ajax_nonce' => wp_create_nonce( 'career_ajax_nonce' ), | |
| 'pluploadflash' => includes_url() . 'js/plupload/plupload.flash.swf', | |
| 'pluploadsilver' => includes_url() . 'js/plupload/plupload.silverlight.xap', | |
| ) ); | |
| } | |
| add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment