'333333',
'default-image' => '',
) ) );
}
endif; // trvl_setup
add_action( 'after_setup_theme', 'trvl_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*/
function trvl_widgets_init() {
register_sidebar( array(
'name' => __( 'Footer Widget Area', 'trvl' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'trvl_widgets_init' );
/**
* Enqueue scripts and styles
*/
function trvl_scripts() {
wp_enqueue_style( 'trvl-fonts', get_template_directory_uri() . '/fonts/league-gothic.css', array(), '20130708' );
wp_enqueue_style( 'trvl-style', get_stylesheet_uri() );
wp_enqueue_script( 'trvl-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
if ( is_singular() && wp_attachment_is_image() )
wp_enqueue_script( 'trvl-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
// Loads JavaScript file with functionality specific to Trvl.
if ( is_active_sidebar( 'sidebar-1' ) )
wp_enqueue_script( 'trvl-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery','masonry' ), '20150730', true );
}
add_action( 'wp_enqueue_scripts', 'trvl_scripts' );
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Load Jetpack compatibility file.
*/
if ( file_exists( get_template_directory() . '/inc/jetpack.php' ) )
require get_template_directory() . '/inc/jetpack.php';