-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
xtrasolutionsco.com
/
wp-content
/
themes
/
insurez
/
inc
/
common
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
cloudflare
--
NONE
insurez-breadcrumb.php
6.841KB
Edit File
Delete File
Rename
insurez-scripts.php
3.303KB
Edit File
Delete File
Rename
insurez-widgets.php
1.879KB
Edit File
Delete File
Rename
<?php /** * Breadcrumbs for insurez theme. * * @package insurez * @author Theme_Pure * @copyright Copyright (c) 2022, Theme_Pure * @link https://www.weblearnbd.net * @since insurez 1.0.0 */ $header_search_logo = get_theme_mod("header_logo",get_template_directory_uri() . '/assets/img/logo/footer-logo.png'); function insurez_breadcrumb_func() { global $post; $breadcrumb_class = ''; $breadcrumb_show = 1; if ( is_front_page() && is_home() ) { $title = get_theme_mod('breadcrumb_blog_title', __('Blog','insurez')); $breadcrumb_class = 'home_front_page'; } elseif ( is_front_page() ) { $title = get_theme_mod('breadcrumb_blog_title', __('Blog','insurez')); $breadcrumb_show = 0; } elseif ( is_home() ) { if ( get_option( 'page_for_posts' ) ) { $title = get_the_title( get_option( 'page_for_posts') ); } } elseif ( is_single() && 'post' == get_post_type() ) { $title = get_the_title(); } elseif ( is_single() && 'product' == get_post_type() ) { $title = get_theme_mod( 'breadcrumb_product_details', __( 'Shop', 'insurez' ) ); } elseif ( is_single() && 'courses' == get_post_type() ) { $title = esc_html__( 'Course Details', 'insurez' ); } elseif ( is_search() ) { $title = esc_html__( 'Search Results for : ', 'insurez' ) . get_search_query(); } elseif ( is_404() ) { $title = esc_html__( 'Page not Found', 'insurez' ); } elseif ( is_archive() ) { $title = get_the_archive_title(); } else { $title = get_the_title(); } $_id = get_the_ID(); if ( is_single() && 'product' == get_post_type() ) { $_id = $post->ID; } elseif ( function_exists("is_shop") AND is_shop() ) { $_id = wc_get_page_id('shop'); } elseif ( is_home() && get_option( 'page_for_posts' ) ) { $_id = get_option( 'page_for_posts' ); } $is_breadcrumb = function_exists('tm_field')? tm_field('insurez_check_bredcrumb',$_id) : 'off'; $breadcrumb_show_hide = !$is_breadcrumb || ($is_breadcrumb == 'off') && $breadcrumb_show == 1; if ( $breadcrumb_show_hide ) { $bg_img_from_page = function_exists('tm_image_field')? tm_image_field('insurez_breadcrumb_bg') : ''; $hide_bg_img = function_exists('tm_field')? tm_field('insurez_check_bredcrumb_img') : 'on'; // get_theme_mod $bg_img = get_theme_mod( 'breadcrumb_image' ); $breadcrumb_padding = get_theme_mod( 'breadcrumb_padding' ); $breadcrumb_bg_color = get_theme_mod( 'breadcrumb_bg_color', '#f3fbfe' ); if ( $hide_bg_img == 'off' ) { $bg_main_img = ''; }else{ $bg_main_img = !empty( $bg_img_from_page ) ? $bg_img_from_page['url'] : $bg_img; } ?> <!-- breadcrumb-area start --> <div class="wrapper-box p-relative "> <div class="breadcrumb__bg breadcrumb__bg__overlay pt-130 pb-130 <?php print esc_attr( $breadcrumb_class );?> " data-background="<?php print esc_url($bg_main_img);?>"> <div class="container"> <div class="row"> <div class="col-xxl-12"> <div class="breadcrumb__content p-relative z-index-1 text-center"> <?php if(function_exists('bcn_display')) : ?> <div class="breadcrumb__list mb-10"> <?php bcn_display(); ?> </div> <?php endif; ?> <?php if(!empty($title)) : ?> <h3 class="breadcrumb__title mb-20"><?php echo insurez_kses( $title ); ?></h3> <?php endif; ?> </div> </div> </div> </div> </div> </div> <!-- breadcrumb-area end --> <?php } } add_action( 'insurez_before_main_content', 'insurez_breadcrumb_func' ); // insurez_search_form function insurez_search_form() { ?> <!-- header-search-end --> <!-- search popup start --> <div class="search__popup z-index-8"> <div class="container"> <div class="row"> <div class="col-xxl-12"> <div class="search__wrapper"> <div class="search__top d-flex justify-content-between align-items-center"> <div class="search__logo"> <?php insurez_header_logo(); ?> </div> <div class="search__close"> <button type="button" class="search__close-btn search-close-btn"> <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17 1L1 17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> <path d="M1 1L17 17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </button> </div> </div> <div class="search__form"> <form action="<?php print esc_url( home_url( '/' ) );?>"> <div class="search__input"> <input class="search-input-field" type="search" name="s" value="<?php print esc_attr( get_search_query() )?>" placeholder="<?php print esc_attr__( 'Type here to search...', 'insurez' );?>"> <span class="search-focus-border"></span> <button type="submit"> <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M9.55 18.1C14.272 18.1 18.1 14.272 18.1 9.55C18.1 4.82797 14.272 1 9.55 1C4.82797 1 1 4.82797 1 9.55C1 14.272 4.82797 18.1 9.55 18.1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> <path d="M19.0002 19.0002L17.2002 17.2002" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /> </svg> </button> </div> </form> </div> </div> </div> </div> </div> </div> <div class="search-popup-overlay"></div> <!-- search popup end --> <?php } add_action( 'insurez_before_main_content', 'insurez_search_form' );
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat