'', 'support' => 0 ); return apply_filters( 'pachyderm_default_theme_options', $default_theme_options ); } /** * Returns the options array for Pachyderm. * */ function pachyderm_get_theme_options() { return get_option( 'pachyderm_theme_options', pachyderm_get_default_theme_options() ); } /** * Renders the Custom CSS setting field. * */ function pachyderm_settings_field_custom_css() { $options = pachyderm_get_theme_options(); ?> />

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

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

'; $theme_options_content .= '

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

'; $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.', 'pachyderm' ) . '

'; $theme_options_content .= '

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

'; $theme_options_content .= '

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

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