|
@@ -29,10 +29,14 @@ function dw_scripts() {
|
|
|
wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/scripts.js', 'jquery', '', true );
|
|
|
wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', 'jquery', '', true );
|
|
|
wp_enqueue_script( 'init', get_template_directory_uri() . '/js/init.js', 'jquery', '', true );
|
|
|
+ //wp_enqueue_script( 'api', get_template_directory_uri() . '/js/wp-api.js', 'jquery', '', true );
|
|
|
+
|
|
|
+ //wp_register_script( 'wp-api', get_template_directory_uri() . '/js/wp-api.js', array( 'jquery', 'backbone', 'underscore' ), '1.1', true );
|
|
|
|
|
|
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
|
|
wp_enqueue_script( 'comment-reply' );
|
|
|
- } elseif ( is_home() || is_front_page() || is_archive() || is_search() ) {
|
|
|
+ } elseif ( is_page('notebook') || is_front_page() || is_archive() || is_search() ) {
|
|
|
+
|
|
|
global $wp_rewrite;
|
|
|
|
|
|
wp_enqueue_script( '_s_backbone-loop', get_template_directory_uri() . '/js/loop.js', array( 'jquery', 'backbone', 'underscore', 'wp-api' ), '1.0', true );
|