403Webshell
Server IP : 104.26.5.103  /  Your IP : 216.73.216.4
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/leapdubai/public_html/wp-content/themes/printx/inc/common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/leapdubai/public_html/wp-content/themes/printx/inc/common/printx-breadcrumb.php
<?php
/**
 * Breadcrumbs for printx theme.
 *
 * @package     printx
 * @author      Theme_Pure
 * @copyright   Copyright (c) 2022, Theme_Pure
 * @link        https://www.weblearnbd.net
 * @since       printx 1.0.0
 */


function printx_breadcrumb_func() {
    $breadcrumb_padding = get_theme_mod( 'breadcrumb_padding');
    $breadcrumb_bg_color = get_theme_mod( 'breadcrumb_bg_color', '#F8E7EF');
    $breadcrumb_image = get_theme_mod( 'breadcrumb_image');
    $printx_breadcrumb_bg = function_exists('tpmeta_image_field') ? tpmeta_image_field('printx_breadcrumb_bg') : '';
    $breadImg = $printx_breadcrumb_bg ? $printx_breadcrumb_bg['url'] : $breadcrumb_image;
    $breadImgFinl = $breadImg ? "background-image:url({$breadImg});" : "background-color:{$breadcrumb_bg_color};";
    $is_breadcrumb = function_exists('tpmeta_field')? tpmeta_field('printx_check_bredcrumb') : 'off';

    
    if ( is_front_page() && is_home() ) {
        $title = get_theme_mod('breadcrumb_blog_title', __('Blog','printx'));
    }
    elseif ( is_front_page() ) {
        $title = get_theme_mod('breadcrumb_blog_title', __('Home','printx'));
    }
    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 Details', 'printx' ) );
    } 
    elseif ('product' == get_post_type() ) {
        $title = get_theme_mod( 'breadcrumb_product_details', __( 'Shop', 'printx' ) );
    } 
    elseif ( is_single() && 'courses' == get_post_type() ) {
    $title = esc_html__( 'Course Details', 'printx' );
    } 
    elseif ( is_search() ) {
        $title = esc_html__( 'Search Results for : ', 'printx' ) . get_search_query();
    } 
    elseif ( is_404() ) {
        $title = esc_html__( 'Page not Found', 'printx' );
    } 
    elseif ( is_archive() ) {
        $title = get_the_archive_title();
    } 
    else {
        $title = get_the_title();
    }

    if('off' == $is_breadcrumb || is_404()) :
    $site_title = get_theme_mod('title_tagline');

    $bred_padd = $breadcrumb_padding ? "padding-top: {$breadcrumb_padding['padding-top']}px; padding-bottom: {$breadcrumb_padding['padding-bottom']}px; " : NULL;

    ?>
    <div class="tp-breadcrumb__area fix tp-breadcrumb-height " style="<?php echo esc_attr($breadImgFinl); ?> <?php echo esc_attr($bred_padd); ?>">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="tp-breadcrumb__content text-center z-index-5">
                        <?php if(function_exists('bcn_display')) : ?>
                        <div class="tp-breadcrumb__list">
                            <div class="breadcrumb__list">
                                <?php bcn_display(); ?>
                            </div>
                        </div>
                        <?php endif; ?>
                        <h3 class="tp-breadcrumb__title"><?php echo printx_kses($title); ?></h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php
    endif;
}

add_action( 'printx_before_main_content', 'printx_breadcrumb_func' );

Youez - 2016 - github.com/yon3zu
LinuXploit