-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
31 lines (28 loc) · 1008 Bytes
/
functions.php
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
29
30
31
<?php
/**
* functions.php equivalent for WP plugins.
*
* @since 1.0
*/
add_theme_support('post-thumbnails', array('testimonials_8'));
/**
* Flush rewrite for our custom post type.
*
* @since 1.0
*/
function wpt8_rewrite_flush_rules() {
flush_rewrite_rules();
}
/**
* Custom stylesheet and javascript
*
* @since 1.0
*/
function wpt8_enqueu_scripts() {
// wp_enqueue_script('rater', plugin_dir_url(__FILE__) . 'assets/js/libs/rater.min.js', array('jquery'), '1.0', true);
wp_enqueue_style('rateyo', '//cdnjs.cloudflare.com/ajax/libs/rateYo/2.3.2/jquery.rateyo.min.css', array(), '2.3.2', 'screen');
wp_enqueue_script('rateyo', '//cdnjs.cloudflare.com/ajax/libs/rateYo/2.3.2/jquery.rateyo.min.js', array('jquery'), '2.3.2', true);
wp_enqueue_style('app', plugin_dir_url(__FILE__) . 'assets/css/app.css', array(), '1.0', 'screen');
wp_enqueue_script('app', plugin_dir_url(__FILE__) . 'assets/js/app.js', array(), '1.0', true);
}
add_action('admin_enqueue_scripts', 'wpt8_enqueu_scripts');