12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- if ( ! function_exists( 'dw_setup' ) ):
- function dw_setup() {
- require( get_template_directory() . '/inc/template.php' );
- require( get_template_directory() . '/inc/tweaks.php' );
- }
- endif;
- add_action( 'after_setup_theme', 'dw_setup' );
- 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() );
- if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
- wp_enqueue_script( 'comment-reply' );
- }
- }
- add_action( 'wp_enqueue_scripts', 'dw_scripts' );
- function dw_editor() {
- //add_editor_style( 'style.css' );
- }
- 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) {
-
- }
- ?>
|