TPLDIR.'/images/header-logo.png',
'random-default' => false,
'width' => 300,
'height' => 60,
'header-text' => false,
'uploads' => true,
);
add_theme_support( 'custom-header', $hjyl_logo );
// Add menu
register_nav_menus( array(
'primary' => __( 'Primary Navigation','bb10'),
'mobile' => __( 'Mobile Navigation', 'bb10'),
) );
};
//Custom wp_list_pages
function hjyl_wp_list_pages(){
echo "
";
echo wp_list_pages('title_li=&depth=1');
echo "
";
}
// Enqueue style-file, if it exists.
function hjyl_script() {
if( !IsMobile ){
wp_enqueue_style( 'bb10', get_stylesheet_uri(), array(), '20150628', false);
}else{
wp_enqueue_style('mobile', TPLDIR . '/css/mobile.css', array(), '20150628', 'all', false);
};
wp_enqueue_script( 'bb10', TPLDIR . '/js/bb10.js', array(), '20150628', true);
wp_enqueue_script( 'comments-ajax', TPLDIR . '/js/comments-ajax.js', array(), '20150628', true);
wp_localize_script('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( 'archives', TPLDIR . '/js/archives.js', array(), '20150628', false);
wp_enqueue_style( 'archives', TPLDIR . '/css/archives.css', array(), '20150628', 'screen');
};
if(is_404()){
wp_enqueue_style( '4041', '//fonts.googleapis.com/css?family=Press+Start+2P', array(), '20150628', 'screen');
wp_enqueue_style( '4042', '//fonts.googleapis.com/css?family=Oxygen:700', array(), '20150628', 'screen');
wp_enqueue_style( '4043', TPLDIR . '/css/404.css', array(), '20150628', 'screen');
}
}
//copyright below single
function hjyl_copyright($content) {
if( is_single() ){
$content.= '--'.__('CopyRights','bb10').': '.get_bloginfo('name').' » '.get_the_title().'
';
}
return $content;
}
// Add sidebar
function hjyl_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' => '
',
));
}
//par_pagenavi
function olo_pagenavi(){
$args = array(
'base' => '%_%',
'format' => '?page=%#%',
'total' => 1,
'current' => 0,
'show_all' => False,
'end_size' => 1,
'mid_size' => 2,
'prev_next' => True,
'prev_text' => __('<< Previous', 'bb10'),
'next_text' => __('Next >>', 'bb10'),
'type' => 'plain',
'add_args' => False,
'add_fragment' => ''
);
echo paginate_links( $args );
}
//Load Custom parts
require( dirname( __FILE__ ) . '/inc/theme_inc.php' );
require( dirname( __FILE__ ) . '/inc/bbComment.php' );
$hjyl_theme_options = get_option('hjyl_theme_options');
?>