WordPress.org

Make WordPress Themes


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • davis/1.03/functions.php

    r60386 r62179  
    11<?php 
    22 
    3 // Theme setup 
     3/* THEME SETUP 
     4------------------------------------------------ */ 
     5 
    46function davis_setup() { 
    57     
     
    2527     
    2628    // Make the theme translation ready 
    27     load_theme_textdomain( 'davis', get_template_directory() . '/languages'); 
     29    load_theme_textdomain( 'davis', get_template_directory() . '/languages' ); 
    2830     
    2931    $locale_file = get_template_directory() . "/languages/" . get_locale(); 
     
    3739 
    3840 
    39 // Register and enqueue styles 
     41/* ENQUEUE STYLES 
     42------------------------------------------------ */ 
     43 
    4044function davis_load_style() { 
    4145    if ( ! is_admin() ) { 
    42         wp_enqueue_style( 'hitchcock_googleFonts', '//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic' ); 
    43         wp_enqueue_style( 'hitchcock_style', get_stylesheet_uri() ); 
     46        wp_register_style( 'davis_fonts', '//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic' ); 
     47        wp_enqueue_style( 'davis_style', get_stylesheet_uri(), array( 'davis_fonts' ) ); 
    4448    }  
    4549} 
     
    4751 
    4852 
    49 // Enqueue comment-reply.js 
     53/* ENQUEUE COMMENT-REPLY.JS 
     54------------------------------------------------ */ 
     55 
    5056function davis_load_scripts(){ 
    51     if ( ( !is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); 
     57    if ( ( ! is_admin() ) && is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 
     58        wp_enqueue_script( 'comment-reply' ); 
     59    } 
    5260} 
    5361add_action( 'wp_print_scripts', 'davis_load_scripts' ); 
Note: See TracChangeset for help on using the changeset viewer.