'; echo '

'; _e('Almost done! Previous GeneratePress options detected in your database. Please click here and delete your current options for new to take full effect.','generate'); echo '

'; echo ''; } } /** * Run various functions */ add_action('after_setup_theme','office_setup'); function office_setup() { // Add functions in here to run after the theme has loaded } if ( !function_exists( 'office_defaults' ) ) : add_filter( 'generate_option_defaults','office_defaults' ); function office_defaults() { $office_defaults = array( 'hide_title' => '', 'hide_tagline' => '', 'logo' => '', 'container_width' => '1150', 'header_layout_setting' => 'contained-header', 'center_header' => 'true', 'center_nav' => 'true', 'nav_alignment_setting' => 'center', 'header_alignment_setting' => 'center', 'nav_layout_setting' => 'contained-nav', 'nav_position_setting' => 'nav-below-header', 'nav_search' => 'enable', 'content_layout_setting' => 'one-container', 'layout_setting' => 'right-sidebar', 'blog_layout_setting' => 'right-sidebar', 'single_layout_setting' => 'right-sidebar', 'post_content' => 'full', 'footer_layout_setting' => 'contained-footer', 'footer_widget_setting' => '3', 'background_color' => '#3d3d3d', 'text_color' => '#3a3a3a', 'link_color' => '#847b46', 'link_color_hover' => '#636363', 'link_color_visited' => '', ); return $office_defaults; } endif; /** * Set default options */ if ( !function_exists( 'office_get_color_defaults' ) ) : add_filter( 'generate_color_option_defaults','office_get_color_defaults' ); function office_get_color_defaults() { $office_color_defaults = array( 'header_background_color' => '', 'header_text_color' => '#3a3a3a', 'header_link_color' => '#ffffff', 'header_link_hover_color' => '#efefef', 'site_title_color' => '#ffffff', 'site_tagline_color' => '#cccccc', 'navigation_background_color' => '#000000', 'navigation_text_color' => '#ffffff', 'navigation_background_hover_color' => '#847f67', 'navigation_text_hover_color' => '#ffffff', 'navigation_background_current_color' => '#847f67', 'navigation_text_current_color' => '#ffffff', 'subnavigation_background_color' => '#847f67', 'subnavigation_text_color' => '#ffffff', 'subnavigation_background_hover_color' => '#847f67', 'subnavigation_text_hover_color' => '#212121', 'subnavigation_background_current_color' => '#847f67', 'subnavigation_text_current_color' => '#212121', 'content_background_color' => '#FFFFFF', 'content_text_color' => '#3a3a3a', 'content_link_color' => '', 'content_link_hover_color' => '', 'content_title_color' => '', 'blog_post_title_color' => '', 'blog_post_title_hover_color' => '', 'entry_meta_text_color' => '#888888', 'entry_meta_link_color' => '#666666', 'entry_meta_link_color_hover' => '#847f67', 'h1_color' => '', 'h2_color' => '', 'h3_color' => '', 'sidebar_widget_background_color' => '#FFFFFF', 'sidebar_widget_text_color' => '#3a3a3a', 'sidebar_widget_link_color' => '', 'sidebar_widget_link_hover_color' => '', 'sidebar_widget_title_color' => '#000000', 'footer_widget_background_color' => '#222222', 'footer_widget_text_color' => '#ffffff', 'footer_widget_link_color' => '#847f67', 'footer_widget_link_hover_color' => '#ffffff', 'footer_widget_title_color' => '#ffffff', 'footer_background_color' => '#000000', 'footer_text_color' => '#ffffff', 'footer_link_color' => '#847f67', 'footer_link_hover_color' => '#ffffff', 'form_background_color' => '#FAFAFA', 'form_text_color' => '#666666', 'form_background_color_focus' => '#FFFFFF', 'form_text_color_focus' => '#666666', 'form_border_color' => '#CCCCCC', 'form_border_color_focus' => '#BFBFBF', 'form_button_background_color' => '#666666', 'form_button_background_color_hover' => '#847f67', 'form_button_text_color' => '#FFFFFF', 'form_button_text_color_hover' => '#FFFFFF' ); return $office_color_defaults; } endif; /** * Set default options */ if ( !function_exists('office_get_default_fonts') ) : add_filter( 'generate_font_option_defaults','office_get_default_fonts' ); function office_get_default_fonts() { $office_font_defaults = array( 'font_body' => 'Open Sans', 'body_font_weight' => '300', 'body_font_transform' => 'none', 'body_font_size' => '19', 'font_site_title' => 'inherit', 'site_title_font_weight' => '300', 'site_title_font_transform' => 'none', 'site_title_font_size' => '78', 'font_site_tagline' => 'inherit', 'site_tagline_font_weight' => '300', 'site_tagline_font_transform' => 'none', 'site_tagline_font_size' => '20', 'font_navigation' => 'inherit', 'navigation_font_weight' => '300', 'navigation_font_transform' => 'none', 'navigation_font_size' => '17', 'font_widget_title' => 'inherit', 'widget_title_font_weight' => '300', 'widget_title_font_transform' => 'none', 'widget_title_font_size' => '23', 'widget_content_font_size' => '19', 'font_heading_1' => 'inherit', 'heading_1_weight' => '300', 'heading_1_transform' => 'none', 'heading_1_font_size' => '40', 'font_heading_2' => 'inherit', 'heading_2_weight' => '300', 'heading_2_transform' => 'none', 'heading_2_font_size' => '30', 'font_heading_3' => 'inherit', 'heading_3_weight' => 'normal', 'heading_3_transform' => 'none', 'heading_3_font_size' => '20', 'font_heading_4' => 'inherit', 'heading_4_weight' => 'normal', 'heading_4_transform' => 'none', 'heading_4_font_size' => '15', ); return $office_font_defaults; } endif; /** * Set default options */ if ( !function_exists( 'office_get_spacing_defaults' ) ) : add_filter( 'generate_spacing_option_defaults','office_get_spacing_defaults' ); function office_get_spacing_defaults() { $office_spacing_defaults = array( 'header_top' => '60', 'header_right' => '40', 'header_bottom' => '60', 'header_left' => '40', 'menu_item' => '20', 'menu_item_height' => '70', 'sub_menu_item_height' => '10', 'content_top' => '50', 'content_right' => '50', 'content_bottom' => '50', 'content_left' => '50', 'separator' => '15', 'left_sidebar_width' => '25', 'right_sidebar_width' => '25', 'widget_top' => '50', 'widget_right' => '50', 'widget_bottom' => '50', 'widget_left' => '50', 'footer_widget_container_top' => '50', 'footer_widget_container_right' => '0', 'footer_widget_container_bottom' => '50', 'footer_widget_container_left' => '0', 'footer_top' => '20', 'footer_right' => '0', 'footer_bottom' => '20', 'footer_left' => '0', ); return $office_spacing_defaults; } endif;