BB10_TPLDIR.'/images/header-logo.png',
'random-default' => false,
'width' => 300,
'height' => 60,
'header-text' => false,
'uploads' => true,
);
add_theme_support( 'custom-header', $bb10_logo );
// Add menu
register_nav_menus( array(
'primary' => __( 'Primary Navigation','bb10'),
'mobile' => __( 'Mobile Navigation', 'bb10'),
) );
};
//Custom wp_list_pages
function bb10_wp_list_pages(){
echo "
";
echo wp_list_pages('title_li=&depth=1');
echo "
";
}
// Enqueue style-file, if it exists.
function bb10_script() {
if( !bb10_IsMobile ){
wp_enqueue_style( 'bb10-style', get_stylesheet_uri(), array(), '20150709', false);
}else{
wp_enqueue_style('bb10-mobile', BB10_TPLDIR . '/css/bb10-mobile.css', array(), '20150709', 'all', false);
};
wp_enqueue_script( 'jquery' );
wp_enqueue_style( 'font-awesome', BB10_TPLDIR . '/css/font-awesome.min.css', array(), '20150709', 'all');
wp_enqueue_script( 'bb10-js', BB10_TPLDIR . '/js/bb10.js', array(), '20150709', true);
wp_enqueue_script( 'bb10-comments-ajax', BB10_TPLDIR . '/js/bb10-comments-ajax.js', array(), '20150709', true);
wp_localize_script('bb10-comments-ajax', 'ajaxL10n', array(
'edt1' => __('Before Refresh, you can','bb10'),
'edt2' => __('Edit','bb10'),
'cancel_edit' => __('Cancel Editing','bb10'),
'txt1' => __('Wait a moment...','bb10'),
'txt3' => __('Good Comment','bb10')
));
if ( is_singular() && comments_open() ) wp_enqueue_script( 'comment-reply' );
if( is_page('archives') ){
wp_enqueue_script( 'bb10-archives', BB10_TPLDIR . '/js/bb10-archives.js', array(), '20150709', false);
wp_enqueue_style( 'bb10-archives', BB10_TPLDIR . '/css/bb10-archives.css', array(), '20150709', 'all');
};
if(is_404()){
wp_enqueue_style( 'bb10-4041', '//fonts.googleapis.com/css?family=Press+Start+2P', array(), '20150709', 'all');
wp_enqueue_style( 'bb10-4042', '//fonts.googleapis.com/css?family=Oxygen:700', array(), '20150709', 'all');
wp_enqueue_style( 'bb10-4043', BB10_TPLDIR . '/css/bb10-404.css', array(), '20150709', 'all');
}
}
//copyright below single
function bb10_copyright($content) {
if( is_single() ){
$content.= '--'.__('CopyRights','bb10').': '.get_bloginfo('name').' » '.get_the_title().'
';
}
return $content;
}
// Add sidebar
function bb10_widgets(){
register_sidebar(array(
'name' =>''.__('Home', 'bb10').'',
'id' => 'home',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name'=>''.__('Single', 'bb10').'',
'id' => 'single',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name'=>''.__('404', 'bb10').'',
'id' => 'error',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name'=>''.__('Other', 'bb10').'',
'id' => 'other',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
}
//Load Custom parts
require( get_template_directory() . '/inc/theme_inc.php' );
require( get_template_directory() . '/inc/bbComment.php' );
$bb10_theme_options = get_option('bb10_theme_options');
?>