__('Primary Navigation', 'betilu'),
'secondary' => __('Secondary Top Navigation', 'betilu')
));
}
add_action('after_setup_theme', 'betilu_setup');
function betilu_add_theme_scripts() {
// Loads default main stylesheet.
wp_enqueue_style( 'style', get_stylesheet_uri() );
/**
* Adds JavaScript to pages with the comment form to support
* sites with threaded comments (when in use).
*/
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
}
add_action( 'wp_enqueue_scripts', 'betilu_add_theme_scripts' );
// add ie conditional html5 shim to header
function betilu_add_ie_html5_shim () {
echo '';
}
add_action('wp_head', 'betilu_add_ie_html5_shim');
// font imported from googleapolis fonts
add_action( 'betilu', 'wpb_add_google_fonts', 5);
function betilu_add_google_fonts() {
echo "";
}
/**
* customer background color and image support
*/
add_theme_support( 'custom-background' );
$args = array(
'default-color' => 'FAFAFB',
'default-image' => get_template_directory_uri() . '/images/default-background.jpg',
);
add_theme_support( 'custom-background', $args );
/**
* customer header image banner support
*/
add_theme_support( 'custom-header' );
$defaults = array(
'default-image' => get_template_directory_uri() . '/images/default-header.png',
'random-default' => false,
'width' => 192,
'height' => 192,
'flex-height' => true,
'flex-width' => true,
'repeat' => 'no-repeat',
'default-text-color' => 'FFFFFF',
'header-text' => false,
'uploads' => true,
'wp-head-callback' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);
add_theme_support( 'custom-header', $defaults );
/**
* reformat the more link for excerpts
*/
function betilu_excerpt_more($more) {
global $post;
return
'' . __( '
View Full Article...', 'betilu' ) . '';
}
add_filter('excerpt_more', 'betilu_excerpt_more');
function betilu_widgets_init() {
register_sidebar(array(
'name' => __('Lead Article Top Right Box', 'betilu'),
'id' => 'sidebar-2',
'description' => __('Right-side top Lead Article page', 'betilu'),
'before_widget' => '