|
@@ -204,6 +204,13 @@ function dw_scripts() {
|
|
|
global $wp_rewrite;
|
|
global $wp_rewrite;
|
|
|
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/v4-script.min.js', '', '', true );
|
|
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/v4-script.min.js', '', '', true );
|
|
|
wp_enqueue_script( 'desk', get_template_directory_uri() . '/js/desk.js', '', '', true );
|
|
wp_enqueue_script( 'desk', get_template_directory_uri() . '/js/desk.js', '', '', true );
|
|
|
|
|
+ if ( is_page('desk') ) {
|
|
|
|
|
+ // Lychee photo-stream embed (davidwindham.com/photo). The config <div> lives
|
|
|
|
|
+ // in page-desk.php; this loads the embed lib. Not on archive/search (which
|
|
|
|
|
+ // share this branch), hence the is_page guard.
|
|
|
|
|
+ wp_enqueue_style( 'lychee-embed', 'https://davidwindham.com/photo/embed/lychee-embed.css', array(), '1.0.0' );
|
|
|
|
|
+ wp_enqueue_script( 'lychee-embed', 'https://davidwindham.com/photo/embed/lychee-embed.js', array(), '1.0.0', true );
|
|
|
|
|
+ }
|
|
|
wp_enqueue_script( '_s_backbone-loop', get_template_directory_uri() . '/js/loop.js', array( 'jquery', 'backbone', 'underscore', 'wp-api' ), '1.0', true );
|
|
wp_enqueue_script( '_s_backbone-loop', get_template_directory_uri() . '/js/loop.js', array( 'jquery', 'backbone', 'underscore', 'wp-api' ), '1.0', true );
|
|
|
$queried_object = get_queried_object();
|
|
$queried_object = get_queried_object();
|
|
|
$local = array(
|
|
$local = array(
|