|
@@ -8,21 +8,24 @@ function dw_setup() {
|
|
|
endif;
|
|
|
add_action( 'after_setup_theme', 'dw_setup' );
|
|
|
|
|
|
+add_theme_support( 'automatic-feed-links' );
|
|
|
+add_theme_support( 'menus' );
|
|
|
add_theme_support( 'post-thumbnails' );
|
|
|
set_post_thumbnail_size( 150, 150, true );
|
|
|
add_image_size( 'post-large', 770, 577, true );
|
|
|
-add_theme_support( 'automatic-feed-links' );
|
|
|
-add_theme_support( 'menus' );
|
|
|
+
|
|
|
|
|
|
function dw_scripts() {
|
|
|
global $post;
|
|
|
wp_deregister_script('jquery');
|
|
|
wp_enqueue_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js', array(), false, true);
|
|
|
- wp_enqueue_script( 'jquery', '', '', '', true );
|
|
|
wp_enqueue_style( 'style', get_stylesheet_uri() );
|
|
|
+ wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', 'jquery', '', true );
|
|
|
+ wp_enqueue_script( 'script', get_template_directory_uri() . '/js/script.js', 'jquery', '', true );
|
|
|
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
|
|
- wp_enqueue_script( 'comment-reply' );
|
|
|
+ wp_enqueue_script( 'comment-reply', '', '', '', true );
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
add_action( 'wp_enqueue_scripts', 'dw_scripts' );
|
|
|
|
|
@@ -31,25 +34,4 @@ function dw_editor() {
|
|
|
}
|
|
|
add_action( 'init', 'dw_editor' );
|
|
|
|
|
|
-$comments_args = array(
|
|
|
- 'comment_notes_after' => '',
|
|
|
- 'fields' => apply_filters( 'comment_form_default_fields', $fields ),
|
|
|
- 'comment_field' => '<p class="comment-form-comment">...',
|
|
|
- 'must_log_in' => '<p class="must-log-in">...',
|
|
|
- 'logged_in_as' => '<p class="logged-in-as">...',
|
|
|
- 'comment_notes_before' => '<p class="comment-notes">...',
|
|
|
- //'comment_notes_after' => '<dl class="form-allowed-tags">...',
|
|
|
- 'id_form' => 'commentform',
|
|
|
- 'id_submit' => 'submit',
|
|
|
- 'title_reply' => __( 'Leave a Reply' ),
|
|
|
- 'title_reply_to' => __( 'Leave a Reply to %s' ),
|
|
|
- 'cancel_reply_link' => __( 'Cancel reply' ),
|
|
|
- 'label_submit' => __( 'Post Comment' ),
|
|
|
- );
|
|
|
-comment_form($comments_args);
|
|
|
-
|
|
|
-function dw_ping($comment, $args, $depth) {
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
?>
|