'.$themename.' settings saved.

'; } if ( isset( $_REQUEST['reset'] ) && $_REQUEST['reset'] ) { echo '

'.$themename.' settings reset.

'; } add_theme_page( $themename.' Settings', 'Business Meeting', 'administrator', basename(__FILE__), 'business_admin',get_template_directory_uri() . '/images/icon.png', 61 ); } add_theme_support( 'post-thumbnails' ); $themename = "Business Meeting"; $shortname = "sg"; $options = array ( array( "name" => $themename." Options", "type" => "title"), array( "name" => "General", "type" => "section"), array( "type" => "open"), array( "name" => "Enable Slideshow", "desc" => "If set to \"Yes\" multiple images will be rotated. They must be 950x290 pixels in size, placed in the \"images\" folder of your theme directory and must be named image1.jpg, image2.jpg etc. If set to \"No\" a static image (image1.jpg from the images folder) will be displayed in the header.", "id" => $shortname."_enable_slider", "type" => "select", "options" => array("Yes", "No"), "std" => "Choose Yes or No"), array( "name" => "Number of Slides", "desc" => "Enter the number of slides in your slideshow.", "id" => $shortname."_slidenum", "type" => "text", "std" => "5"), array( "type" => "close") ); function business_add_init() { wp_enqueue_style( 'functions', get_template_directory_uri() . '/functions/functions.css', false, '1.0', 'all' ); } function business_admin() { global $themename, $shortname, $options; $i=0; ?>

"Business Meeting" Theme Settings

This theme supports featured images. If you select a featured image for your post or page it will appear instead of the slider image.


" />
/>

WordPress Hosting by SiteGround

'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(); }