<?php /** * The Header for our theme. * * @package Betheme * @author Muffin group * @link https://muffingroup.com */ ?><!DOCTYPE html> <?php if ($_GET && key_exists('mfn-rtl', $_GET)): echo '<html class="no-js" lang="ar" dir="rtl">'; else: ?> <html <?php language_attributes(); ?> class="no-js <?php echo esc_attr(mfn_html_classes()); ?>"<?php mfn_tag_schema(); ?> > <?php endif; ?> <head> <meta charset="<?php bloginfo('charset'); ?>" /> <?php wp_head(); ?> <meta property="og:title" content="DrSharatcancercare" /> <meta property="og:description" content="At its core, dr. sharat cancer care is committed to bridging the gap between medical expertise and patient understanding, to enhancing their journey toward healing and wellness." /> <meta property="og:image" content="https://drsharatcancercare.com/wp-content/uploads/2023/10/logo-final-22.png" /> <meta property="og:url" content="https://drsharatcancercare.com/" /> <meta property="og:type" content="website" /> </head> <body <?php body_class(); ?>> <?php do_action('mfn_hook_top'); ?> <?php get_template_part('includes/header', 'sliding-area'); ?> <?php if (mfn_header_style(true) == 'header-creative') { get_template_part('includes/header', 'creative'); } ?> <div id="Wrapper"> <?php // featured image: parallax $class = ''; $data_parallax = array(); if (mfn_opts_get('img-subheader-attachment') == 'parallax') { $class = 'bg-parallax'; if (mfn_opts_get('parallax') == 'stellar') { $data_parallax['key'] = 'data-stellar-background-ratio'; $data_parallax['value'] = '0.5'; } else { $data_parallax['key'] = 'data-enllax-ratio'; $data_parallax['value'] = '0.3'; } } ?> <?php if (mfn_header_style(true) == 'header-below') { echo mfn_slider(); } ?> <div id="Header_wrapper" class="<?php echo esc_attr($class); ?>" <?php if ($data_parallax) { printf('%s="%.1f"', $data_parallax['key'], $data_parallax['value']); } ?>> <?php if ('mhb' == mfn_header_style()) { // mfn_header action for header builder plugin do_action('mfn_header'); echo mfn_slider(); } else { echo '<header id="Header">'; if ( 'header-creative' != mfn_header_style(true) ) { // NOT header creative if( 'header-shop' == mfn_header_style(true) ){ // header style: shop get_template_part('includes/header', 'style-shop'); } else { // default headers get_template_part('includes/header', 'top-area'); } } if ( 'header-below' != mfn_header_style(true) ) { // header below echo mfn_slider(); } echo '</header>'; } ?> <?php if ( 'intro' != get_post_meta( mfn_ID(), 'mfn-post-template', true ) ){ if( 'all' != mfn_opts_get('subheader') ){ if( ! get_post_meta( mfn_ID(), 'mfn-post-hide-title', true ) ){ $subheader_advanced = mfn_opts_get('subheader-advanced'); if ( is_search() ) { echo '<div id="Subheader">'; echo '<div class="container">'; echo '<div class="column one">'; if (trim($_GET['s'])) { global $wp_query; $total_results = $wp_query->found_posts; } else { $total_results = 0; } $translate['search-results'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-results', 'results found for:') : __('results found for:', 'betheme'); echo '<h1 class="title">'. esc_html($total_results) .' '. esc_html($translate['search-results']) .' '. esc_html($_GET['s']) .'</h1>'; echo '</div>'; echo '</div>'; echo '</div>'; } elseif ( ! mfn_slider_isset() || isset( $subheader_advanced['slider-show'] ) ) { // subheader $subheader_options = mfn_opts_get('subheader'); if (is_home() && ! get_option('page_for_posts') && ! mfn_opts_get('blog-page')) { $subheader_show = false; } elseif (is_array($subheader_options) && isset($subheader_options[ 'hide-subheader' ])) { $subheader_show = false; } elseif (get_post_meta(mfn_ID(), 'mfn-post-hide-title', true)) { $subheader_show = false; } else { $subheader_show = true; } // title if (is_array($subheader_options) && isset($subheader_options[ 'hide-title' ])) { $title_show = false; } else { $title_show = true; } // breadcrumbs if (is_array($subheader_options) && isset($subheader_options[ 'hide-breadcrumbs' ])) { $breadcrumbs_show = false; } else { $breadcrumbs_show = true; } if (is_array($subheader_advanced) && isset($subheader_advanced[ 'breadcrumbs-link' ])) { $breadcrumbs_link = 'has-link'; } else { $breadcrumbs_link = 'no-link'; } // output if ($subheader_show) { echo '<div id="Subheader">'; echo '<div class="container">'; echo '<div class="column one">'; if ($title_show) { $title_tag = mfn_opts_get('subheader-title-tag', 'h1'); echo '<'. esc_attr($title_tag) .' class="title">'. wp_kses(mfn_page_title(), mfn_allowed_html()) .'</'. esc_attr($title_tag) .'>'; } if ($breadcrumbs_show) { mfn_breadcrumbs($breadcrumbs_link); } echo '</div>'; echo '</div>'; echo '</div>'; } } } } } ?> </div> <?php if ( 'intro' == get_post_meta( mfn_ID(), 'mfn-post-template', true ) ) { get_template_part( 'includes/header', 'single-intro' ); } ?> <?php do_action( 'mfn_hook_content_before' );
<?php /** * The template for displaying the footer. * * @package Betheme * @author Muffin group * @link https://muffingroup.com */ // footer classes $footer_options = mfn_opts_get('footer-options'); $footer_classes = []; if( ! empty( $footer_options['full-width'] ) ){ $footer_classes[] = 'full-width'; } $footer_classes = implode( ' ', $footer_classes ); // back_to_top classes $back_to_top_class = mfn_opts_get('back-top-top'); if ($back_to_top_class == 'hide') { $back_to_top_position = false; } elseif (strpos($back_to_top_class, 'sticky') !== false) { $back_to_top_position = 'body'; } elseif (mfn_opts_get('footer-hide') == 1) { $back_to_top_position = 'footer'; } else { $back_to_top_position = 'copyright'; } ?> <?php do_action('mfn_hook_content_after'); ?> <?php if ('hide' != mfn_opts_get('footer-style')): ?> <footer id="Footer" class="clearfix <?php echo $footer_classes; ?>"> <?php if ($footer_call_to_action = mfn_opts_get('footer-call-to-action')): ?> <div class="footer_action"> <div class="container"> <div class="column one column_column"> <?php echo do_shortcode($footer_call_to_action); ?> </div> </div> </div> <?php endif; ?> <?php $sidebars_count = 0; for ($i = 1; $i <= 5; $i++) { if (is_active_sidebar('footer-area-'. $i)) { $sidebars_count++; } } if ($sidebars_count > 0) { $align = mfn_opts_get('footer-align'); echo '<div class="widgets_wrapper '. $align .'">'; echo '<div class="container">'; if ($footer_layout = mfn_opts_get('footer-layout')) { // Theme Options $footer_layout = explode(';', $footer_layout); $footer_cols = $footer_layout[0]; for ($i = 1; $i <= $footer_cols; $i++) { if (is_active_sidebar('footer-area-'. $i)) { echo '<div class="column '. esc_attr($footer_layout[$i]) .'">'; dynamic_sidebar('footer-area-'. $i); echo '</div>'; } } } else { // default with equal width $sidebar_class = ''; switch ($sidebars_count) { case 2: $sidebar_class = 'one-second'; break; case 3: $sidebar_class = 'one-third'; break; case 4: $sidebar_class = 'one-fourth'; break; case 5: $sidebar_class = 'one-fifth'; break; default: $sidebar_class = 'one'; } for ($i = 1; $i <= 5; $i++) { if (is_active_sidebar('footer-area-'. $i)) { echo '<div class="column '. esc_attr($sidebar_class) .'">'; dynamic_sidebar('footer-area-'. $i); echo '</div>'; } } } echo '</div>'; echo '</div>'; } ?> <?php if (mfn_opts_get('footer-hide') != 1 && ! apply_filters( 'betheme_disable_footer', false ) ): ?> <div class="footer_copy"> <div class="container"> <div class="column one"> <?php if ($back_to_top_position == 'copyright') { echo '<a id="back_to_top" class="footer_button" href=""><i class="icon-up-open-big"></i></a>'; } ?> <div class="copyright"> <?php if (mfn_opts_get('footer-copy')) { echo do_shortcode(mfn_opts_get('footer-copy')); } else { echo '&copy; '. esc_html(date('Y')) .' Betheme by <a href="https://muffingroup.com" target="_blank">Muffin group</a> | All Rights Reserved | Powered by <a href="https://wordpress.org" target="_blank">WordPress</a>'; } ?> </div> <?php if (has_nav_menu('social-menu-bottom')) { mfn_wp_social_menu_bottom(); } else { get_template_part('includes/include', 'social'); } ?> </div> </div> </div> <?php endif; ?> <?php if ($back_to_top_position == 'footer') { echo '<a id="back_to_top" class="footer_button in_footer" href=""><i class="icon-up-open-big"></i></a>'; } ?> </footer> <?php endif; ?> </div> <div id="body_overlay"></div> <?php // side slide menu if ( mfn_opts_get('responsive-mobile-menu') ) { get_template_part('includes/header', 'side-slide'); } // login form get_template_part('includes/header', 'login'); ?> <?php if ($back_to_top_position == 'body') { echo '<a id="back_to_top" class="footer_button '. esc_attr($back_to_top_class) .'" href=""><i class="icon-up-open-big"></i></a>'; } ?> <?php if (mfn_opts_get('popup-contact-form')): ?> <div id="popup_contact"> <a class="footer_button" href="#"><i class="<?php echo esc_attr(mfn_opts_get('popup-contact-form-icon', 'icon-mail-line')); ?>"></i></a> <div class="popup_contact_wrapper"> <?php echo do_shortcode(mfn_opts_get('popup-contact-form')); ?> <span class="arrow"></span> </div> </div> <?php endif; ?> <?php if( function_exists('is_woocommerce') && !is_cart() && !is_checkout() && mfn_opts_get('shop-sidecart') ){ get_template_part('includes/woocommerce', 'cart'); } ?> <?php do_action('mfn_hook_bottom'); ?> <?php wp_footer(); ?> </body> </html> <!--Start of Tawk.to Script--> <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); (function(){ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/621629971ffac05b1d7b52f4/1fsj94u5i'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })(); </script> <!--End of Tawk.to Script-->