Uname: Linux premium72.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.2.29 [ PHP INFO ] PHP os: Linux
Server Ip: 198.54.125.95
Your Ip: 216.73.216.164
User: matican (532) | Group: matican (531)
Safe Mode: OFF
Disable Function:
NONE

name : footer-options.php
<?php
    if ( class_exists( 'WooCommerce' ) && is_shop() || class_exists( 'WooCommerce' ) && is_product_tag()  || class_exists( 'WooCommerce' ) && is_product_category()  ) {
   
        $dabble_shop_id = get_option( 'woocommerce_shop_page_id' ); 
        $footer_type = get_post_meta($dabble_shop_id, 'footer_select', true);
        $header_width_meta = get_post_meta($dabble_shop_id, 'header_width_custom', true);
        if ($header_width_meta != ''){
            $header_width = ( $header_width_meta == 'full' ) ? 'container-fluid': 'container';
        }else{
            $header_width = !empty($dabble_option['header-grid']) ? $dabble_option['header-grid'] : '' ;
            $header_width = ( $header_width == 'full' ) ? 'container-fluid': 'container';
        }

        $footer_bg             = get_post_meta($dabble_shop_id,'footer_bg', true);
        $footer_bg_img         = get_post_meta($dabble_shop_id,'footer_bg_img', true);
        $copyright_bg          = get_post_meta($dabble_shop_id,'copyright_bg', true);
        $hide_footer_subscribe = get_post_meta($dabble_shop_id, 'hide_footer_subscribe', true);
        $copyright_trans       = get_post_meta($dabble_shop_id,'copyright_trans', true);
        $bg_pos                = get_post_meta($dabble_shop_id,'footer_bg_position', true);
        $copy_space            = get_post_meta($dabble_shop_id,'copyright_padding', true);
        $copy_trans            = ($copyright_trans=="yes") ? 'transparent' : '';
        $footer_bg_img         = ($footer_bg_img) ? $footer_bg_img : '';
        $footer_bg_pos         = ($bg_pos) ? $bg_pos : 'inherit';
        $footer_bg             = ($footer_bg) ? $footer_bg : '';
        $footer_select         = get_post_meta($dabble_shop_id,'footer_select', true);
        $footer_select         = ($footer_select) ? $footer_select : '';
        $footer_style          = get_post_meta($dabble_shop_id,'footer_style', true);

    } elseif (is_home() && !is_front_page() || is_home() && is_front_page()){

        $footer_type = get_post_meta(get_queried_object_id(), 'footer_select', true);
        $header_width_meta = get_post_meta(get_queried_object_id(), 'header_width_custom', true);
        if ($header_width_meta != ''){
            $header_width = ( $header_width_meta == 'full' ) ? 'container-fluid': 'container';
        }else{
            $header_width = !empty($dabble_option['header-grid']) ? $dabble_option['header-grid'] : '' ;
            $header_width = ( $header_width == 'full' ) ? 'container-fluid': 'container';
        }

        $footer_bg             = get_post_meta(get_queried_object_id(),'footer_bg', true);
        $footer_bg_img         = get_post_meta(get_queried_object_id(),'footer_bg_img', true);
        $copyright_bg          = get_post_meta(get_queried_object_id(),'copyright_bg', true);
        $hide_footer_subscribe = get_post_meta(get_queried_object_id(), 'hide_footer_subscribe', true);
        $copyright_trans       = get_post_meta(get_queried_object_id(),'copyright_trans', true);
        $bg_pos                = get_post_meta(get_queried_object_id(),'footer_bg_position', true);
        $copy_space            = get_post_meta(get_queried_object_id(),'copyright_padding', true);
        $copy_trans            = ($copyright_trans=="yes") ? 'transparent' : '';
        $footer_bg_img         = ($footer_bg_img) ? $footer_bg_img : '';
        $footer_bg_pos         = ($bg_pos) ? $bg_pos : 'inherit';
        $footer_bg             = ($footer_bg) ? $footer_bg : '';
        $footer_select         = get_post_meta(get_queried_object_id(),'footer_select', true);
        $footer_select         = ($footer_select) ? $footer_select : '';
        $footer_style          = get_post_meta(get_queried_object_id(),'footer_style', true);

    } else {
        $footer_type = get_post_meta(get_queried_object_id(), 'footer_select', true);
        $header_width_meta = get_post_meta(get_queried_object_id(), 'header_width_custom', true);
        if ($header_width_meta != ''){
            $header_width = ( $header_width_meta == 'full' ) ? 'container-fluid': 'container';
        }else{
            $header_width = !empty($dabble_option['header-grid']) ? $dabble_option['header-grid'] : '' ;
            $header_width = ( $header_width == 'full' ) ? 'container-fluid': 'container';
        }

        $footer_bg       = get_post_meta(get_queried_object_id(),'footer_bg', true);
        $footer_bg_img   = get_post_meta(get_queried_object_id(),'footer_bg_img', true);
        $copyright_bg    = get_post_meta(get_queried_object_id(),'copyright_bg', true);
        $copyright_trans = get_post_meta(get_queried_object_id(),'copyright_trans', true);
        $hide_footer_subscribe = get_post_meta(get_queried_object_id(), 'hide_footer_subscribe', true);
        $bg_pos          = get_post_meta(get_queried_object_id(),'footer_bg_position', true);
        $copy_space      = get_post_meta(get_queried_object_id(),'copyright_padding', true);
        $copy_trans      = ($copyright_trans=="yes") ? 'transparent' : '';
        $footer_bg_img   = ($footer_bg_img) ? $footer_bg_img : '';
        $footer_bg_pos   = ($bg_pos) ? $bg_pos : 'inherit';
        $footer_bg       = ($footer_bg) ? $footer_bg : '';
        $footer_select   = get_post_meta(get_queried_object_id(),'footer_select', true);
        $footer_select   = ($footer_select) ? $footer_select : '';
        $footer_style   = get_post_meta(get_queried_object_id(),'footer_style', true);
        
}  
© 2025 XylotrechusZ