__( 'Primary Menu', 'coller' ),
'footer' => __('Footer Menu', 'coller' )
) );
/**
* Enable support for Post Formats
*/
//add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
/**
* Setup the WordPress core custom background feature.
*/
add_theme_support( 'custom-background', apply_filters( 'coller_custom_background_args', array(
'default-color' => 'f7f7f7',
'default-image' => '',
) ) );
add_editor_style( 'custom-editor-style.css' );
}
endif; // coller_setup
add_action( 'after_setup_theme', 'coller_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*/
function coller_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'coller' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'coller_widgets_init' );
/**
* Enqueue scripts and styles
*/
function coller_scripts() {
wp_enqueue_style( 'coller-style', get_stylesheet_uri(), array('coller-slider-style', 'coller-fonts') );
wp_enqueue_style( 'coller-fonts', '//fonts.googleapis.com/css?family=Lato:400,700' );
wp_enqueue_style( 'coller-slider-style', get_stylesheet_directory_uri()."/css/jquery.bxslider.css" );
wp_enqueue_script('jquery');
wp_enqueue_script( 'coller-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
wp_enqueue_script( 'coller-slider', get_template_directory_uri() . '/js/jquery.bxslider.min.js', array('jquery') );
wp_enqueue_script( 'coller-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
if ( ( of_get_option('slider_enabled') != 0 ) && ( (is_home() == true) || (is_front_page() == true) ) ) {
wp_enqueue_script( 'coller-custom-js', get_template_directory_uri() . '/js/custom.js', array('jquery','coller-slider') );
}
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image() ) {
wp_enqueue_script( 'coller-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
}
}
add_action( 'wp_enqueue_scripts', 'coller_scripts' );
function coller_custom_head_codes() {
if ( (function_exists( 'of_get_option' )) && (of_get_option('headcode1', true) != 1) ) {
echo of_get_option('headcode1', true);
}
if ( (function_exists( 'of_get_option' )) && (of_get_option('customcss1', true) != 1) ) {
echo "";
}
}
add_action('wp_head', 'coller_custom_head_codes');
/**
* 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.
*/
require get_template_directory() . '/inc/jetpack.php';