'Right Sidebar',
'before_title' => '
',
'after_title' => '
',
'before_widget' => '',
'after_widget' => '',
));
}
/*
* Theme Check Fixes
*/
if ( ! isset( $content_width ) ) {
$content_width = 900;
}
add_theme_support( 'automatic-feed-links' );
/**
* Theme Scripts
*/
function theme_scripts() {
wp_enqueue_script(
'galleria',
get_template_directory_uri() . '/js/galleria.js',
array( 'jquery' )
);
}
add_action( 'wp_enqueue_scripts', 'theme_scripts' );
/**
* Theme Styles
*/
function theme_styles() {
wp_register_style(
'theme-style',
get_template_directory_uri() . '/style.css',
'all'
);
wp_register_style(
'galleria-dots',
get_template_directory_uri() . '/js/galleria.dots.css',
'all'
);
// enqueing:
wp_enqueue_style( 'theme-style' );
wp_enqueue_style( 'galleria-dots' );
}
add_action( 'wp_enqueue_scripts', 'theme_styles' );
/**
* Theme Menu
*/
register_nav_menu( 'main', 'Main Menu' );
if ( is_singular() ) {
wp_enqueue_script( 'comment-reply' );
}
/**
* Header Slider
*
* Get Posts with Featured images and add them to Header Slideshow
*/
function business_slider( $slidesNumber ) {
$recent = new WP_Query( array(
'posts_per_page' => $slidesNumber,
'meta_key' => '_thumbnail_id'
));
if ( $recent->have_posts() ) :
while ( $recent->have_posts() ) :
$recent->the_post();
the_post_thumbnail( array( 950, 290 ), array( 'class' => 'featuredslide' ) );
endwhile;
endif;
wp_reset_postdata();
}