[ 'color' => 'var(--background-color, #f8f9fb)' ], 'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ], 'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ], 'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ], ]); $page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';'; $page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';'; $page_container_style .= '--tainacan-item-background-hover-color:' . $background_color_palette['color3']['color'] . ';'; $page_container_style .= '--tainacan-input-background-color:' . $background_color_palette['color4']['color'] . ';'; $page_container_style .= '--tainacan-primary-color:' . $background_color_palette['color5']['color'] . ';'; $text_color_palette = get_theme_mod('tainacan-terms-items_archive_items_list_text_palette', [ 'color1' => [ 'color' => 'var(--paletteColor1,#3eaf7c)' ], 'color2' => [ 'color' => 'var(--headingColor, rgba(44, 62, 80, 1))' ], 'color3' => [ 'color' => 'var(--color, #454647)' ], 'color4' => [ 'color' => '#555758' ], 'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ], ]); $page_container_style .= '--tainacan-secondary:' . $text_color_palette['color1']['color'] . ';'; $page_container_style .= '--tainacan-heading-color:' . $text_color_palette['color2']['color'] . ';'; $page_container_style .= '--tainacan-label-color:' . $text_color_palette['color3']['color'] . ';'; $page_container_style .= '--tainacan-info-color:' . $text_color_palette['color4']['color'] . ';'; $page_container_style .= '--tainacan-input-color:' . $text_color_palette['color5']['color'] . ';'; $page_container_style .= 'background-color: var(--tainacan-background-color, #f8f9fb);'; // Fetches current term to obtain proper image $current_term = tainacan_get_term(); $current_taxonomy = get_taxonomy( $current_term->taxonomy ); $current_term = \Tainacan\Repositories\Terms::get_instance()->fetch($current_term->term_id, $current_term->taxonomy); $image = $current_term->get_header_image_id(); $src = wp_get_attachment_image_src($image, 'full'); ?>
'tainacan-terms-items_archive' ], [] ); foreach ($hero_elements as $index => $single_hero_element) { if ($single_hero_element['id'] == 'custom_thumbnail') { $is_thumbnail_enabled = $single_hero_element['enabled']; } } if ( $is_thumbnail_enabled && $src && $src[0] ) { $thumbnail_element = '
'; } $elements = $thumbnail_element . blocksy_render_view( get_template_directory() . '/inc/components/hero/elements.php', [ 'type' => 'type-1' ] ); echo blocksy_output_hero_section([ 'type' => 'type-1', 'source' => false, 'elements' => $elements ]); ?>
get_theme_mod('tainacan-terms-items_archive_display_filters_panel', 'yes') == 'no', 'start_with_filters_hidden' => get_theme_mod('tainacan-terms-items_archive_start_with_filters_hidden', 'no') == 'yes', 'hide_hide_filters_button' => get_theme_mod('tainacan-terms-items_archive_show_hide_filters_button', 'yes') == 'no', 'show_filters_button_inside_search_control' => get_theme_mod('tainacan-terms-items_archive_show_filters_button_inside_search_control', 'yes') == 'yes', 'filters_as_modal' => get_theme_mod('tainacan-terms-items_archive_filters_as_modal', 'no') == 'yes', 'hide_search' => get_theme_mod('tainacan-terms-items_archive_show_search', 'yes') == 'no', 'hide_advanced_search' => get_theme_mod('tainacan-terms-items_archive_show_advanced_search', 'yes') == 'no', 'hide_sorting_area' => get_theme_mod('tainacan-terms-items_archive_show_sorting_area', 'yes') == 'no', 'hide_sort_by_button' => get_theme_mod('tainacan-terms-items_archive_show_sort_by_button', 'yes') == 'no', 'hide_displayed_metadata_dropdown' => get_theme_mod('tainacan-terms-items_archive_show_displayed_metadata_dropdown', 'yes') == 'no', 'show_inline_view_mode_options' => get_theme_mod('tainacan-terms-items_archive_show_inline_view_mode_options', 'no') == 'yes', 'show_fullscreen_with_view_modes' => get_theme_mod('tainacan-terms-items_archive_show_fullscreen_with_view_modes', 'no') == 'yes', 'hide_exposers_button' => get_theme_mod('tainacan-terms-items_archive_show_exposers_button', 'yes') == 'no', 'hide_pagination_area' => get_theme_mod('tainacan-terms-items_archive_has_pagination', 'yes') == 'no', ]); ?>