'post', 'post_status' => 'publish','posts_per_page' => intval( $post_limit )); $blog_query = new WP_Query( $args ); $blog_section_bg_color = get_theme_mod('bc_blog_section_bg_color'); $blog_section_title_color = get_theme_mod('bc_blog_section_title_color'); $blog_post_title_color = get_theme_mod('bc_blog_post_title_color'); $blog_post_subtitle_color = get_theme_mod('bc_blog_post_subtitle_color'); $blog_post_bg_color = get_theme_mod('bc_blog_bg_color'); $blog_post_text_color = get_theme_mod('bc_blog_text_color'); $blog_post_button_bg = get_theme_mod('bc_blog_button_bg_color'); $blog_post_button_text = get_theme_mod('bc_blog_button_text_color'); $blog_post_button_border = get_theme_mod('bc_blog_button_border_color'); $blog_post_border_color = get_theme_mod('bc_blog_border_color'); $blog_post_border_radius = ((get_theme_mod('bc_blog_border_radius')) ? '5': '0'); $blog_post_arr = []; if ($blog_section_bg_color !== '') { $blog_post_arr['background-color'] = $blog_section_bg_color; } $blogButtonBorderRadius = ((get_theme_mod('bc_blog_button_border_radius')) ? get_theme_mod('bc_blog_button_border_radius') : '0'); $blogButtonStyle = (get_theme_mod('bc_blog_button_style') ? get_theme_mod('bc_blog_button_style') : []); $fontWeight = ''; $fontStyle = ''; $textDecoration = ''; $textTransform = ''; if (in_array('bold', $blogButtonStyle)) { $fontWeight = 'bold'; } if (in_array('italic', $blogButtonStyle)) { $fontStyle = 'italic'; } if (in_array('underline', $blogButtonStyle)) { $textDecoration = 'underline'; } if (in_array('uppercase', $blogButtonStyle)) { $textTransform = 'uppercase'; } if (in_array('capitalize', $blogButtonStyle)) { $textTransform = 'capitalize'; } if (in_array('lowercase', $blogButtonStyle)) { $textTransform = 'lowercase'; } ?>