true, 'blog_archives' => true, 'posts' => false, 'pages' => false, 'search' => true, 'error' => true, 'shop_home' => true, 'shop_arhives' => true, ]); $is_enabled_by_rules = false; $has_transparent_header = false; if (is_home() && is_front_page()) { if (!blocksy_akg('blog_home', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if (is_category() || is_tag()) { if (!blocksy_akg('blog_archives', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if (is_singular('post')) { if (!blocksy_akg('posts', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if (blocksy_is_page()) { if (!blocksy_akg('pages', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if (is_search()) { if (!blocksy_akg('search', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if (is_404()) { if (!blocksy_akg('error', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if (function_exists('is_shop') && is_shop()) { if (!blocksy_akg('shop_home', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if ( function_exists('is_shop') && ( is_product_category() || is_product_tag() ) && blocksy_akg('shop_arhives', $rules) ) { if (!blocksy_akg('shop_home', $rules)) { $has_transparent_header = true; $is_enabled_by_rules = true; } } if ($check_only_forced) { return $is_enabled_by_rules; } } if (is_singular('post') || blocksy_is_page()) { $post_options = blocksy_get_post_options(); if ( blocksy_akg( 'has_transparent_header', $post_options, 'default' ) !== 'default' ) { $has_transparent_header = blocksy_akg( 'has_transparent_header', $post_options, 'default' ) === 'enabled'; } } return $has_transparent_header; }