12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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( '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 );
- function dw_scripts() {
- global $post;
- //wp_enqueue_style( 'style', get_stylesheet_uri() );
- wp_enqueue_style( 'style', get_template_directory_uri() . '/css/style.min.css');
- //wp_enqueue_style( 'boot', get_template_directory_uri() . '/css/bootstrap.css');
- //wp_enqueue_style( 'jasny', get_template_directory_uri() . '/css/jasny-bootstrap.css');
- wp_deregister_script('jquery');
- wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-2.1.1.min.js', array(), false, 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 );
- if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
- wp_enqueue_script( 'comment-reply', '', '', '', true );
- }
- }
- add_action( 'wp_enqueue_scripts', 'dw_scripts' );
- function dw_editor() {
- //add_editor_style( 'style.css' );
- }
- add_action( 'init', 'dw_editor' );
- ?>
|