'#364D96', 'custom_favicon' => '', 'custom_header_height' => '288' ); if ( is_admin() ) : // Load only if we are viewing an admin page function picolight_register_settings() { // Register the settings register_setting( 'picolight_theme_options', 'picolight_options', 'picolight_validate_options' ); } add_action( 'admin_init', 'picolight_register_settings' ); function picolight_theme_options() { // Add theme options page to the addmin menu add_theme_page( __( 'Options', 'picolight'), __( 'Options', 'picolight'), 'edit_theme_options', 'theme_options', 'picolight_theme_options_page'); } add_action( 'admin_menu', 'picolight_theme_options' ); // Function to generate options page function picolight_theme_options_page() { global $picolight_options, $picolight_categories, $picolight_layouts; if ( ! isset( $_REQUEST['updated'] ) ) $_REQUEST['updated'] = false; // This checks whether the form has just been submitted. ?>
'.get_current_theme().' '.__( 'Options', 'picolight' ).''; // This shows the page's name and an icon if one has been provided ?>




.