__( 'Header Menu', 'vintage-camera' ),
) );
/**
* Add support for Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'gallery', 'image', 'audio', 'video', 'status', 'quote', 'link', 'chat' ) );
/**
* Add support for editor style
*/
add_editor_style();
/**
* Add support for post thumbnails
*/
add_theme_support( 'post-thumbnails' );
/**
* Add support for custom backgrounds
*/
add_theme_support( 'custom-background', apply_filters( 'vintage_camera_custom_background_args', vintage_camera_get_layout_defaults() ) );
}
endif; // vintage_camera_setup
add_action( 'after_setup_theme', 'vintage_camera_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*
* @since Vintage Camera 1.0
*/
function vintage_camera_widgets_init() {
register_sidebar( array(
'id' => 'sidebar-1',
'name' => __( 'Footer Widget Area One' , 'vintage-camera' ),
'before_widget' => '',
'before_title' => '
'
)
);
register_sidebar( array(
'id' => 'sidebar-2',
'name' => __( 'Footer Widget Area Two' , 'vintage-camera' ),
'before_widget' => '',
'before_title' => ''
)
);
register_sidebar( array(
'id' => 'sidebar-3',
'name' => __( 'Footer Widget Area Three' , 'vintage-camera' ),
'before_widget' => '',
'before_title' => ''
)
);
}
add_action( 'widgets_init', 'vintage_camera_widgets_init' );
/**
* Enqueue scripts and styles
*/
function vintage_camera_scripts() {
global $post;
$options = vintage_camera_get_theme_options();
$vintage_camera_themestyle = $options['theme_style'];
wp_register_style( 'vintage-camera-mediaie', get_template_directory_uri() . '/layouts/ie.css', 'media-css' );
wp_register_style( 'vintage-camera-iecolors', get_template_directory_uri() . '/css/iecolors.css' );
// Enqueue color and layout CSS for IE < 9 in conditional tags
$GLOBALS['wp_styles']->add_data( 'vintage-camera-iecolors', 'conditional', 'lt IE 9' );
$GLOBALS['wp_styles']->add_data( 'vintage-camera-mediaie', 'conditional', 'lt IE 9' );
wp_enqueue_style( 'vintage-camera-iecolors' );
wp_enqueue_style( 'vintage-camera-mediaie' );
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_script( 'vintage-camera-small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), '20120206', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image( $post->ID ) ) {
wp_enqueue_script( 'vintage-camera-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
}
}
add_action( 'wp_enqueue_scripts', 'vintage_camera_scripts' );
/**
* Register Google Fonts style.
*/
function vintage_camera_register_fonts() {
wp_register_style(
'vintage-camera-googlefonts',
"https://fonts.googleapis.com/css?family=Sansita+One|Trochut:400,700,400italic|Alegreya:400italic,700italic,400,700",
array(),
'20120821'
);
}
add_action( 'init', 'vintage_camera_register_fonts' );
/**
* Enqueue Google Fonts style.
*/
function vintage_camera_fonts() {
wp_enqueue_style( 'vintage-camera-googlefonts' );
}
add_action( 'wp_enqueue_scripts', 'vintage_camera_fonts' );
/**
* Enqueue Google fonts style to admin screen for custom header display.
*/
function vintage_camera_admin_fonts( $hook_suffix ) {
if ( 'appearance_page_custom-header' != $hook_suffix )
return;
wp_enqueue_style( 'vintage-camera-googlefonts' );
}
add_action( 'admin_enqueue_scripts', 'vintage_camera_admin_fonts' );
/**
* 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/tweaks.php';
/**
* Custom Theme Options.
*/
require get_template_directory() . '/inc/theme-options/theme-options.php';
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';