array( 'value' => 'cupcake', 'label' => __( 'Confetti', 'buttercream' ), 'defaults' => array( 'default-color' => 'ef3d46', 'default-description-color' => '82573f', 'default-header-image' => get_template_directory_uri() . '/img/cupcake.png', ) ), 'yellow' => array( 'value' => 'yellow', 'label' => __( 'Chocolate Orange', 'buttercream' ), 'defaults' => array( 'default-color' => '663300', 'default-description-color' => 'ed8d4b', 'default-header-image' => get_template_directory_uri() . '/img/yellow.png', ) ), 'red' => array( 'value' => 'red', 'label' => __( 'Red Velvet', 'buttercream' ), 'defaults' => array( 'default-color' => '444', 'default-description-color' => 'ab3030', 'default-header-image' => get_template_directory_uri() . '/img/red.png', ) ), ); return apply_filters( 'buttercream_theme_style', $buttercream_theme_style ); } /** * Returns the default options for Buttercream. * */ function buttercream_get_default_theme_options() { $default_theme_options = array( 'theme_style' => 'cupcake', 'custom_css' => '', 'support' => 0 ); return apply_filters( 'buttercream_default_theme_options', $default_theme_options ); } /** * Returns the options array for Buttercream. * */ function buttercream_get_theme_options() { return get_option( 'buttercream_theme_options', buttercream_get_default_theme_options() ); } /** * Renders the Theme Style setting field. * */ function buttercream_settings_field_theme_style() { $options = buttercream_get_theme_options(); foreach ( buttercream_theme_style() as $button ) { ?>
/>

"; echo ".layout .description { width: 300px; float: left; text-align: center; margin-bottom: 10px; padding: 10px; }"; echo ""; } add_action( 'admin_enqueue_scripts', 'buttercream_theme_options_admin_styles' ); /** * Add a contextual help menu to the Theme Options panel */ function buttercream_contextual_help() { global $buttercream_options_hook; $screen = get_current_screen(); if ( $screen->id == $buttercream_options_hook ) { //Store Theme Options tab in variable $theme_options_content = '

' . __( 'For basic support, please post in the WordPress forums.', 'buttercream' ) . '

'; $theme_options_content .= '

' . __( 'Theme Style', 'buttercream' ) . ' - ' . __( 'This is where you can choose the overall look and feel of your blog. Defaults to Confetti.', 'buttercream' ) . '

'; $theme_options_content .= '

' . __( 'Custom CSS', 'buttercream' ) . ' - ' . __( 'You can override the theme\'s default CSS by putting your own code here. It should be in the format:', 'buttercream' ) . '

'; $theme_options_content .= '
.some-class { width: 100px; }
'; $theme_options_content .= '
#some-id { background-color: #fff; }
'; $theme_options_content .= '

' . __( 'Replacing any classes, ID\'s, etc. with the ones you want to override, and within them the attributes you want to change.', 'buttercream' ) . '

'; $theme_options_content .= '

' . __( 'Support Caroline Themes/Hide Donate Button', 'buttercream' ) . ' - ' . __( 'If you like my themes and find them useful, please donate! Checking the box will hide this information.', 'buttercream' ) . '

'; $theme_options_content .= '

' . __( 'Visit Caroline Themes for more free WordPress themes!', 'buttercream' ) . '

'; $screen->add_help_tab( array ( 'id' => 'buttercream-theme-options', 'title' => __( 'Theme Options', 'buttercream' ), 'content' => $theme_options_content ) ); } } ?>