'home', 'queriedObject' => $queried_object, 'pathInfo' => array( 'author_permastruct' => $wp_rewrite->get_author_permastruct(), 'host' => preg_replace( '#^http(s)?://#i', '', untrailingslashit( get_option( 'home' ) ) ), 'path' => _s_backbone_get_request_path(), 'use_trailing_slashes' => $wp_rewrite->use_trailing_slashes, 'parameters' => _s_backbone_get_request_parameters(), ), ); if ( is_category() || is_tag() || is_tax() ) { $local['loopType'] = 'archive'; $local['taxonomy'] = get_taxonomy( $queried_object->taxonomy ); } elseif ( is_search() ) { $local['loopType'] = 'search'; $local['searchQuery'] = get_search_query(); } elseif ( is_author() ) { $local['loopType'] = 'author'; } //set the page we're on so that Backbone can load the proper state if ( is_paged() ) { $local['page'] = absint( get_query_var( 'paged' ) ) + 1; } wp_localize_script( '_s_backbone-loop', 'settings', $local ); } } add_action( 'wp_enqueue_scripts', 'dw_scripts' ); function dw_editor() { //add_editor_style( 'style.css' ); } add_action( 'init', 'dw_editor' ); ?>