updated theme GeneratePress
version 3.0.2
This commit is contained in:
@ -16,10 +16,11 @@ if ( ! function_exists( 'generate_get_defaults' ) ) {
|
||||
* @since 0.1
|
||||
*/
|
||||
function generate_get_defaults() {
|
||||
return apply_filters( 'generate_option_defaults',
|
||||
return apply_filters(
|
||||
'generate_option_defaults',
|
||||
array(
|
||||
'hide_title' => '',
|
||||
'hide_tagline' => '',
|
||||
'hide_tagline' => true,
|
||||
'logo' => '',
|
||||
'inline_logo_site_branding' => false,
|
||||
'retina_logo' => '',
|
||||
@ -27,18 +28,18 @@ if ( ! function_exists( 'generate_get_defaults' ) ) {
|
||||
'top_bar_width' => 'full',
|
||||
'top_bar_inner_width' => 'contained',
|
||||
'top_bar_alignment' => 'right',
|
||||
'container_width' => '1100',
|
||||
'container_alignment' => 'boxes',
|
||||
'container_width' => '1200',
|
||||
'container_alignment' => 'text',
|
||||
'header_layout_setting' => 'fluid-header',
|
||||
'header_inner_width' => 'contained',
|
||||
'nav_alignment_setting' => ( is_rtl() ) ? 'right' : 'left',
|
||||
'header_alignment_setting' => ( is_rtl() ) ? 'right' : 'left',
|
||||
'nav_alignment_setting' => is_rtl() ? 'right' : 'left',
|
||||
'header_alignment_setting' => is_rtl() ? 'right' : 'left',
|
||||
'nav_layout_setting' => 'fluid-nav',
|
||||
'nav_inner_width' => 'contained',
|
||||
'nav_position_setting' => 'nav-below-header',
|
||||
'nav_position_setting' => 'nav-float-right',
|
||||
'nav_drop_point' => '',
|
||||
'nav_dropdown_type' => 'hover',
|
||||
'nav_dropdown_direction' => 'right',
|
||||
'nav_dropdown_direction' => is_rtl() ? 'left' : 'right',
|
||||
'nav_search' => 'disable',
|
||||
'content_layout_setting' => 'separate-containers',
|
||||
'layout_setting' => 'right-sidebar',
|
||||
@ -50,15 +51,16 @@ if ( ! function_exists( 'generate_get_defaults' ) ) {
|
||||
'footer_widget_setting' => '3',
|
||||
'footer_bar_alignment' => 'right',
|
||||
'back_to_top' => '',
|
||||
'background_color' => '#efefef',
|
||||
'text_color' => '#3a3a3a',
|
||||
'background_color' => '#f7f8f9',
|
||||
'text_color' => '#222222',
|
||||
'link_color' => '#1e73be',
|
||||
'link_color_hover' => '#000000',
|
||||
'link_color_visited' => '',
|
||||
'font_awesome_essentials' => true,
|
||||
'icons' => 'font',
|
||||
'icons' => 'svg',
|
||||
'combine_css' => true,
|
||||
'dynamic_css_cache' => true,
|
||||
'structure' => 'flexbox',
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -69,30 +71,31 @@ if ( ! function_exists( 'generate_get_color_defaults' ) ) {
|
||||
* Set default options
|
||||
*/
|
||||
function generate_get_color_defaults() {
|
||||
return apply_filters( 'generate_color_option_defaults',
|
||||
return apply_filters(
|
||||
'generate_color_option_defaults',
|
||||
array(
|
||||
'top_bar_background_color' => '#636363',
|
||||
'top_bar_text_color' => '#ffffff',
|
||||
'top_bar_link_color' => '#ffffff',
|
||||
'top_bar_link_color_hover' => '#303030',
|
||||
'header_background_color' => '#ffffff',
|
||||
'header_text_color' => '#3a3a3a',
|
||||
'header_link_color' => '#3a3a3a',
|
||||
'header_text_color' => '',
|
||||
'header_link_color' => '',
|
||||
'header_link_hover_color' => '',
|
||||
'site_title_color' => '#222222',
|
||||
'site_tagline_color' => '#757575',
|
||||
'navigation_background_color' => '#222222',
|
||||
'navigation_text_color' => '#ffffff',
|
||||
'navigation_background_hover_color' => '#3f3f3f',
|
||||
'navigation_text_hover_color' => '#ffffff',
|
||||
'navigation_background_current_color' => '#3f3f3f',
|
||||
'navigation_text_current_color' => '#ffffff',
|
||||
'subnavigation_background_color' => '#3f3f3f',
|
||||
'subnavigation_text_color' => '#ffffff',
|
||||
'subnavigation_background_hover_color' => '#4f4f4f',
|
||||
'subnavigation_text_hover_color' => '#ffffff',
|
||||
'subnavigation_background_current_color' => '#4f4f4f',
|
||||
'subnavigation_text_current_color' => '#ffffff',
|
||||
'navigation_background_color' => '#ffffff',
|
||||
'navigation_text_color' => '#515151',
|
||||
'navigation_background_hover_color' => '#ffffff',
|
||||
'navigation_text_hover_color' => '#7a8896',
|
||||
'navigation_background_current_color' => '#ffffff',
|
||||
'navigation_text_current_color' => '#7a8896',
|
||||
'subnavigation_background_color' => '#eaeaea',
|
||||
'subnavigation_text_color' => '#515151',
|
||||
'subnavigation_background_hover_color' => '#eaeaea',
|
||||
'subnavigation_text_hover_color' => '#7a8896',
|
||||
'subnavigation_background_current_color' => '#eaeaea',
|
||||
'subnavigation_text_current_color' => '#7a8896',
|
||||
'navigation_search_background_color' => '',
|
||||
'navigation_search_text_color' => '',
|
||||
'content_background_color' => '#ffffff',
|
||||
@ -100,11 +103,11 @@ if ( ! function_exists( 'generate_get_color_defaults' ) ) {
|
||||
'content_link_color' => '',
|
||||
'content_link_hover_color' => '',
|
||||
'content_title_color' => '',
|
||||
'blog_post_title_color' => '',
|
||||
'blog_post_title_hover_color' => '',
|
||||
'blog_post_title_color' => '#222222',
|
||||
'blog_post_title_hover_color' => '#55555e',
|
||||
'entry_meta_text_color' => '#595959',
|
||||
'entry_meta_link_color' => '#595959',
|
||||
'entry_meta_link_color_hover' => '#1e73be',
|
||||
'entry_meta_link_color' => '',
|
||||
'entry_meta_link_color_hover' => '',
|
||||
'h1_color' => '',
|
||||
'h2_color' => '',
|
||||
'h3_color' => '',
|
||||
@ -115,24 +118,24 @@ if ( ! function_exists( 'generate_get_color_defaults' ) ) {
|
||||
'sidebar_widget_text_color' => '',
|
||||
'sidebar_widget_link_color' => '',
|
||||
'sidebar_widget_link_hover_color' => '',
|
||||
'sidebar_widget_title_color' => '#000000',
|
||||
'sidebar_widget_title_color' => '',
|
||||
'footer_widget_background_color' => '#ffffff',
|
||||
'footer_widget_text_color' => '',
|
||||
'footer_widget_link_color' => '',
|
||||
'footer_widget_link_hover_color' => '',
|
||||
'footer_widget_title_color' => '#000000',
|
||||
'footer_background_color' => '#222222',
|
||||
'footer_background_color' => '#55555e',
|
||||
'footer_text_color' => '#ffffff',
|
||||
'footer_link_color' => '#ffffff',
|
||||
'footer_link_hover_color' => '#606060',
|
||||
'footer_link_hover_color' => '#d3d3d3',
|
||||
'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' => '#3f3f3f',
|
||||
'form_button_background_color' => '#55555e',
|
||||
'form_button_background_color_hover' => '#3f4047',
|
||||
'form_button_text_color' => '#ffffff',
|
||||
'form_button_text_color_hover' => '#ffffff',
|
||||
'back_to_top_background_color' => 'rgba( 0,0,0,0.4 )',
|
||||
@ -161,8 +164,8 @@ if ( ! function_exists( 'generate_get_default_fonts' ) ) {
|
||||
'body_font_weight' => 'normal',
|
||||
'body_font_transform' => 'none',
|
||||
'body_font_size' => '17',
|
||||
'body_line_height' => '1.5', // no unit
|
||||
'paragraph_margin' => '1.5', // em
|
||||
'body_line_height' => '1.5', // no unit.
|
||||
'paragraph_margin' => '1.5', // em.
|
||||
'font_top_bar' => 'inherit',
|
||||
'font_top_bar_category' => '',
|
||||
'font_top_bar_variants' => '',
|
||||
@ -174,8 +177,8 @@ if ( ! function_exists( 'generate_get_default_fonts' ) ) {
|
||||
'font_site_title_variants' => '',
|
||||
'site_title_font_weight' => 'bold',
|
||||
'site_title_font_transform' => 'none',
|
||||
'site_title_font_size' => '45',
|
||||
'mobile_site_title_font_size' => '30',
|
||||
'site_title_font_size' => '25',
|
||||
'mobile_site_title_font_size' => '',
|
||||
'font_site_tagline' => 'inherit',
|
||||
'font_site_tagline_category' => '',
|
||||
'font_site_tagline_variants' => '',
|
||||
@ -205,50 +208,53 @@ if ( ! function_exists( 'generate_get_default_fonts' ) ) {
|
||||
'font_heading_1' => 'inherit',
|
||||
'font_heading_1_category' => '',
|
||||
'font_heading_1_variants' => '',
|
||||
'heading_1_weight' => '300',
|
||||
'heading_1_weight' => 'normal',
|
||||
'heading_1_transform' => 'none',
|
||||
'heading_1_font_size' => '40',
|
||||
'heading_1_line_height' => '1.2', // em
|
||||
'heading_1_font_size' => '42',
|
||||
'heading_1_line_height' => '1.2', // em.
|
||||
'heading_1_margin_bottom' => '20',
|
||||
'mobile_heading_1_font_size' => '30',
|
||||
'mobile_heading_1_font_size' => '31',
|
||||
'font_heading_2' => 'inherit',
|
||||
'font_heading_2_category' => '',
|
||||
'font_heading_2_variants' => '',
|
||||
'heading_2_weight' => '300',
|
||||
'heading_2_weight' => 'normal',
|
||||
'heading_2_transform' => 'none',
|
||||
'heading_2_font_size' => '30',
|
||||
'heading_2_line_height' => '1.2', // em
|
||||
'heading_2_font_size' => '35',
|
||||
'heading_2_line_height' => '1.2', // em.
|
||||
'heading_2_margin_bottom' => '20',
|
||||
'mobile_heading_2_font_size' => '25',
|
||||
'mobile_heading_2_font_size' => '27',
|
||||
'font_heading_3' => 'inherit',
|
||||
'font_heading_3_category' => '',
|
||||
'font_heading_3_variants' => '',
|
||||
'heading_3_weight' => 'normal',
|
||||
'heading_3_transform' => 'none',
|
||||
'heading_3_font_size' => '20',
|
||||
'heading_3_line_height' => '1.2', // em
|
||||
'heading_3_font_size' => '29',
|
||||
'heading_3_line_height' => '1.2', // em.
|
||||
'heading_3_margin_bottom' => '20',
|
||||
'mobile_heading_3_font_size' => '24',
|
||||
'font_heading_4' => 'inherit',
|
||||
'font_heading_4_category' => '',
|
||||
'font_heading_4_variants' => '',
|
||||
'heading_4_weight' => 'normal',
|
||||
'heading_4_transform' => 'none',
|
||||
'heading_4_font_size' => '',
|
||||
'heading_4_line_height' => '', // em
|
||||
'heading_4_font_size' => '24',
|
||||
'heading_4_line_height' => '', // em.
|
||||
'mobile_heading_4_font_size' => '22',
|
||||
'font_heading_5' => 'inherit',
|
||||
'font_heading_5_category' => '',
|
||||
'font_heading_5_variants' => '',
|
||||
'heading_5_weight' => 'normal',
|
||||
'heading_5_transform' => 'none',
|
||||
'heading_5_font_size' => '',
|
||||
'heading_5_line_height' => '', // em
|
||||
'heading_5_font_size' => '20',
|
||||
'heading_5_line_height' => '', // em.
|
||||
'mobile_heading_5_font_size' => '19',
|
||||
'font_heading_6' => 'inherit',
|
||||
'font_heading_6_category' => '',
|
||||
'font_heading_6_variants' => '',
|
||||
'heading_6_weight' => 'normal',
|
||||
'heading_6_transform' => 'none',
|
||||
'heading_6_font_size' => '',
|
||||
'heading_6_line_height' => '', // em
|
||||
'heading_6_line_height' => '', // em.
|
||||
'font_footer' => 'inherit',
|
||||
'font_footer_category' => '',
|
||||
'font_footer_variants' => '',
|
||||
@ -277,12 +283,16 @@ if ( ! function_exists( 'generate_spacing_get_defaults' ) ) {
|
||||
function generate_spacing_get_defaults( $filter = true ) {
|
||||
$defaults = array(
|
||||
'top_bar_top' => '10',
|
||||
'top_bar_right' => '10',
|
||||
'top_bar_right' => '40',
|
||||
'top_bar_bottom' => '10',
|
||||
'top_bar_left' => '10',
|
||||
'header_top' => '40',
|
||||
'top_bar_left' => '40',
|
||||
'mobile_top_bar_top' => '',
|
||||
'mobile_top_bar_right' => '30',
|
||||
'mobile_top_bar_bottom' => '',
|
||||
'mobile_top_bar_left' => '30',
|
||||
'header_top' => '20',
|
||||
'header_right' => '40',
|
||||
'header_bottom' => '40',
|
||||
'header_bottom' => '20',
|
||||
'header_left' => '40',
|
||||
'menu_item' => '20',
|
||||
'menu_item_height' => '60',
|
||||
@ -298,8 +308,8 @@ if ( ! function_exists( 'generate_spacing_get_defaults' ) ) {
|
||||
'mobile_content_left' => '30',
|
||||
'separator' => '20',
|
||||
'mobile_separator' => '',
|
||||
'left_sidebar_width' => '25',
|
||||
'right_sidebar_width' => '25',
|
||||
'left_sidebar_width' => '30',
|
||||
'right_sidebar_width' => '30',
|
||||
'widget_top' => '40',
|
||||
'widget_right' => '40',
|
||||
'widget_bottom' => '40',
|
||||
@ -310,9 +320,13 @@ if ( ! function_exists( 'generate_spacing_get_defaults' ) ) {
|
||||
'footer_widget_container_left' => '40',
|
||||
'footer_widget_separator' => '40',
|
||||
'footer_top' => '20',
|
||||
'footer_right' => '20',
|
||||
'footer_right' => '40',
|
||||
'footer_bottom' => '20',
|
||||
'footer_left' => '20',
|
||||
'footer_left' => '40',
|
||||
'mobile_footer_top' => '',
|
||||
'mobile_footer_right' => '30',
|
||||
'mobile_footer_bottom' => '',
|
||||
'mobile_footer_left' => '30',
|
||||
);
|
||||
|
||||
if ( $filter ) {
|
||||
|
Reference in New Issue
Block a user