array( 'value' => 'cupcake', 'label' => __( 'Confetti', 'buttercream' ) ), 'yellow' => array( 'value' => 'yellow', 'label' => __( 'Chocolate Orange', 'buttercream' ) ), 'red' => array( 'value' => 'red', 'label' => __( 'Red Velvet', 'buttercream' ) ) ); 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' => '', 'responsive' => 'off', '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 .= '

' . __( 'Responsive Layout', 'buttercream' ) . ' - ' . __( 'If enabled, your blog will shrink to better fit smaller screen sizes and mobile devices. Turned off by default.', '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' ) . '

'; //Store Post Formats tab content in variable $post_formats_content = '

' . __( 'Buttercream is a sleek theme out of the box, but post formats make it shine. It works seamlessly with', 'buttercream' ) . ' ' . __( 'Crowd Favorite\'s Post Formats Admin UI', 'buttercream' ) . '.

'; $post_formats_content .= '

' . __( 'If you don\'t have or want to use the plugin, you can also use the custom fields (keys and values) noted below.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'If you don\'t use the custom fields, whatever you place in the post content area will be displayed instead, however it won\'t have any special formatting.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Here\'s how to make the most of your microblog with Buttercream:', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Audio', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Key', 'buttercream' ) . ' - _format_audio_embed
'; $post_formats_content .= '' . __( 'Value', 'buttercream' ) . '' . __( ' - Embed code or OEmbed URL', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Insert an OEmbed link or Embed code into the custom field. You may use WordPress\' native [audio] embed. When using the [audio] shortcode, this format works best:', 'buttercream' ) . '

'; $post_formats_content .= '
[audio http://myurl.com/audiofile.mp3|bgcolor=FFFFFF]
'; $post_formats_content .= '

' . __( 'Where http://myurl.com/audiofile.mp3 is the path to your (MP3) audio file and FFFFFF is a hex color value that most closely matches the background color of your chosen theme style.', 'buttercream' ) . ' ' . __( 'For more information on how to use WordPress audio embeds, follow the guide here.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Video', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Key', 'buttercream' ) . ' - _format_video_embed
'; $post_formats_content .= '' . __( 'Value', 'buttercream' ) . '' . __( ' - Embed code or OEmbed URL', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Insert an OEmbed link or Embed code into the custom field.', 'buttercream' ) . ' ' . __( 'For more information on embedding video in WordPress, look here.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Image', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Set a Featured Image, and if provided, the post title will become the image caption.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Gallery', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Simply insert your WordPress gallery into the content area. Your blog index page will display the first three images in the gallery followed by the post title, which links to the full gallery.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Chat', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Paste a chat transcript into the content area.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Link', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Key', 'buttercream' ) . ' - _format_link_url
'; $post_formats_content .= '' . __( 'Value', 'buttercream' ) . ' - ' . __( 'Link URL', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'The post title will be displayed as the link text. Additional content will be displayed underneath.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Quote', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Key', 'buttercream' ) . ' - _format_quote_source_name
'; $post_formats_content .= '' . __( 'Value', 'buttercream' ) . ' - ' . __( 'Name of the quote\'s source (optional)', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Key', 'buttercream' ) . ' - _format_quote_source_url
'; $post_formats_content .= '' . __( 'Value', 'buttercream' ) . ' - ' . __( 'Link to the source (optional)', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Simply put the text you want to quote in the content area of your post. Optionally, you can add the name of the source and a link in the custom fields above. The quote is displayed in a blockquote format, set apart from your other posts. No post title is displayed.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Aside', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Similar to a Facebook update. Paste your aside into the content area and the text will appear centered in a fancier font. No post title is displayed.', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Status', 'buttercream' ) . '

'; $post_formats_content .= '

' . __( 'Similar to a Twitter post. Paste your status update into the content area and the text will appear with a timestamp. No post title is displayed.', 'buttercream' ) . '

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