'© ' . date('Y') . ' ' . get_bloginfo('name'), 'intro_text' => '', 'featured_cat' => '', 'layout_view' => 'latest', 'logo_path' => '/images/logo.png', 'vcard' => true, 'webfonts' => true, 'gplus_author' => '', 'g_analytics' => '', 'breadcrumbs' => true, 'display_home' => false ); if ( is_admin() ) : // Load only if we are viewing an admin page function wpb_register_settings() { // Register settings and call sanitation functions register_setting( 'wpb_theme_options', 'wpb_options', 'wpb_validate_options' ); } add_action( 'admin_init', 'wpb_register_settings' ); // Store categories in array $wpb_categories[0] = array( 'value' => 0, 'label' => '' ); $wpb_cats = get_categories(); $i = 1; foreach( $wpb_cats as $wpb_cat ) : $wpb_categories[$wpb_cat->cat_ID] = array( 'value' => $wpb_cat->cat_ID, 'label' => $wpb_cat->cat_name ); $i++; endforeach; // Store layouts views in array $wpb_layouts = array( 'latest' => array( 'value' => 'latest', 'label' => 'Latest Posts' ), 'single' => array( 'value' => 'single', 'label' => 'Single page or post' ), 'category' => array( 'value' => 'category', 'label' => 'Items from category' ), ); function wpb_theme_options() { // Add theme options page to the addmin menu add_theme_page( 'Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'wpb_theme_options_page' ); } add_action( 'admin_menu', 'wpb_theme_options' ); // Function to generate options page function wpb_theme_options_page() { global $wpb_options, $wpb_categories, $wpb_layouts; if ( ! isset( $_REQUEST['updated'] ) ) $_REQUEST['updated'] = false; // This checks whether the form has just been submitted. ?>
" . get_current_theme() . __( ' Theme Options' ) . ""; // This shows the page's name and an icon if one has been provided ?>

Homepage View />
vCard meta />
Google Webfonts />
Breadcrumbs /> />