/** * total functions and definitions * * @package total */ if ( ! function_exists( 'total_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function total_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on total, use a find and replace * to change 'total' to the name of your theme in all the template files */ load_theme_textdomain( 'total', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size( 'total-portfolio-thumb', 400, 400, true ); add_image_size( 'total-team-thumb', 350, 420, true ); add_image_size( 'total-blog-thumb', 400, 280, true ); add_image_size( 'total-thumb', 100, 100, true ); add_image_size( 'total-blog-header', 720, 360, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'total' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'total_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_theme_support( 'custom-logo', array( 'height' => 62, 'width' => 300, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( '.ht-site-title', '.ht-site-description' ), ) ); add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); /* * This theme styles the visual editor to resemble the theme style, * specifically font, colors, icons, and column width. */ add_editor_style( array( 'css/editor-style.css', total_fonts_url() ) ); } endif; // total_setup add_action( 'after_setup_theme', 'total_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function total_content_width() { $GLOBALS['content_width'] = apply_filters( 'total_content_width', 640 ); } add_action( 'after_setup_theme', 'total_content_width', 0 ); /** * Enables the Excerpt meta box in Page edit screen. */ function total_add_excerpt_support_for_pages() { add_post_type_support( 'page', 'excerpt' ); } add_action( 'init', 'total_add_excerpt_support_for_pages' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function total_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Right Sidebar', 'total' ), 'id' => 'total-right-sidebar', 'description' => __( 'Add widgets here to appear in your sidebar.', 'total' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => esc_html__( 'Left Sidebar', 'total' ), 'id' => 'total-left-sidebar', 'description' => __( 'Add widgets here to appear in your sidebar.', 'total' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => esc_html__( 'Shop Sidebar', 'total' ), 'id' => 'total-shop-sidebar', 'description' => __( 'Add widgets here to appear in your sidebar of shop page.', 'total' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer One', 'total' ), 'id' => 'total-footer1', 'description' => __( 'Add widgets here to appear in your Footer.', 'total' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Two', 'total' ), 'id' => 'total-footer2', 'description' => __( 'Add widgets here to appear in your Footer.', 'total' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Three', 'total' ), 'id' => 'total-footer3', 'description' => __( 'Add widgets here to appear in your Footer.', 'total' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Four', 'total' ), 'id' => 'total-footer4', 'description' => __( 'Add widgets here to appear in your Footer.', 'total' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); } add_action( 'widgets_init', 'total_widgets_init' ); if ( ! function_exists( 'total_fonts_url' ) ) : /** * Register Google fonts for Total. * * @since Total 1.0 * * @return string Google fonts URL for the theme. */ function total_fonts_url() { $fonts_url = ''; $fonts = array(); $subsets = 'latin,latin-ext'; /* * Translators: If there are characters in your language that are not supported * by Open Sans, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Pontano Sans font: on or off', 'total' ) ) { $fonts[] = 'Pontano Sans'; } /* * Translators: If there are characters in your language that are not supported * by Inconsolata, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Oswald font: on or off', 'total' ) ) { $fonts[] = 'Oswald:400,700,300'; } /* * Translators: To add an additional character subset specific to your language, * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language. */ $subset = _x( 'no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'total' ); if ( 'cyrillic' == $subset ) { $subsets .= ',cyrillic,cyrillic-ext'; } elseif ( 'greek' == $subset ) { $subsets .= ',greek,greek-ext'; } elseif ( 'devanagari' == $subset ) { $subsets .= ',devanagari'; } elseif ( 'vietnamese' == $subset ) { $subsets .= ',vietnamese'; } if ( $fonts ) { $fonts_url = add_query_arg( array( 'family' => urlencode(implode( '|', $fonts )) , 'subset' => urlencode($subsets) , ), '//fonts.googleapis.com/css' ); } return esc_url_raw($fonts_url); } endif; /** * Enqueue scripts and styles. */ function total_scripts() { wp_enqueue_script( 'jquery-nav', get_template_directory_uri() . '/js/jquery.nav.js', array('jquery'), '1.00', true ); wp_enqueue_script( 'owl-carousel', get_template_directory_uri() . '/js/owl.carousel.js', array('jquery'), '1.00', true ); wp_enqueue_script( 'isotope-pkgd', get_template_directory_uri() . '/js/isotope.pkgd.js', array('jquery', 'imagesloaded' ), '1.00', true ); wp_enqueue_script( 'nivo-lightbox', get_template_directory_uri() . '/js/nivo-lightbox.js', array('jquery'), '1.00', true ); wp_enqueue_script( 'superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery'), '1.00', true ); wp_enqueue_script( 'jquery-stellar', get_template_directory_uri() . '/js/jquery.stellar.js', array('imagesloaded'), '1.00', false ); wp_enqueue_script( 'wow', get_template_directory_uri() . '/js/wow.js', array('jquery'), '1.00', true ); wp_enqueue_script( 'odometer', get_template_directory_uri() . '/js/odometer.js', array('jquery'), '1.00', true ); wp_enqueue_script( 'waypoint', get_template_directory_uri() . '/js/waypoint.js', array('jquery'), '1.00', true ); wp_enqueue_script( 'total-custom', get_template_directory_uri() . '/js/total-custom.js', array('jquery'), '1.01', true ); wp_localize_script( 'total-custom', 'total_localize', array('template_path' => get_template_directory_uri() )); wp_enqueue_style( 'total-style', get_stylesheet_uri(), array( 'animate', 'font-awesome', 'owl-carousel', 'nivo-lightbox'), '1.0' ); wp_enqueue_style( 'total-fonts', total_fonts_url(), array(), null ); wp_enqueue_style( 'animate', get_template_directory_uri() . '/css/animate.css', array(), '1.0' ); wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array(), '4.4.0' ); wp_enqueue_style( 'owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css', array(), '1.3.3' ); wp_enqueue_style( 'nivo-lightbox', get_template_directory_uri() . '/css/nivo-lightbox.css', array(), '1.3.3' ); wp_add_inline_style( 'total-style', total_dymanic_styles() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'total_scripts' ); /** * Enqueue admin style */ function total_admin_scripts() { wp_enqueue_style( 'total-admin-style', get_template_directory_uri() . '/inc/css/admin-style.css', array(), '1.0' ); wp_enqueue_media(); wp_enqueue_script( 'total-admin-scripts', get_template_directory_uri() . '/inc/js/admin-scripts.js', array('jquery'), '1.00', true ); } add_action( 'admin_enqueue_scripts', 'total_admin_scripts' ); /** * Breadcrumb */ require get_template_directory() . '/inc/breadcrumbs.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/total-functions.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Metabox additions. */ require get_template_directory() . '/inc/total-metabox.php'; /** * FontAwesome Array */ require get_template_directory() . '/inc/font-awesome-list.php'; /** * Welcome Page. */ require get_template_directory() . '/welcome/welcome.php'; /** * Demo Import. */ require get_template_directory() . '/welcome/importer.php'; /** * Dynamic Styles additions. */ require get_template_directory() . '/inc/style.php'; /** * Widgets additions. */ require get_template_directory() . '/inc/widgets/widget-fields.php'; require get_template_directory() . '/inc/widgets/widget-contact-info.php'; require get_template_directory() . '/inc/widgets/widget-personal-info.php'; require get_template_directory() . '/inc/widgets/widget-latest-post.php'; <!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="https://www.calorytech.com/xmlrpc.php"> <link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet"> <link rel='dns-prefetch' href='//s.w.org' /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.0\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/www.calorytech.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.5.18"}}; !function(e,a,t){var n,r,o,i=a.createElement("canvas"),p=i.getContext&&i.getContext("2d");function s(e,t){var a=String.fromCharCode;p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,e),0,0);e=i.toDataURL();return p.clearRect(0,0,i.width,i.height),p.fillText(a.apply(this,t),0,0),e===i.toDataURL()}function c(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(o=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},r=0;r<o.length;r++)t.supports[o[r]]=function(e){if(!p||!p.fillText)return!1;switch(p.textBaseline="top",p.font="600 32px Arial",e){case"flag":return s([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])?!1:!s([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!s([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]);case"emoji":return!s([55357,56424,8205,55356,57212],[55357,56424,8203,55356,57212])}return!1}(o[r]),t.supports.everything=t.supports.everything&&t.supports[o[r]],"flag"!==o[r]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[o[r]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(n=t.source||{}).concatemoji?c(n.concatemoji):n.wpemoji&&n.twemoji&&(c(n.twemoji),c(n.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel='stylesheet' id='wp-block-library-css' href='https://www.calorytech.com/wp-includes/css/dist/block-library/style.min.css?ver=5.5.18' type='text/css' media='all' /> <link rel="https://api.w.org/" href="https://www.calorytech.com/wp-json/" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.calorytech.com/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://www.calorytech.com/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 5.5.18" /> <link rel="icon" href="https://www.calorytech.com/wp-content/uploads/2020/01/2020-01-24.png" sizes="32x32" /> <link rel="icon" href="https://www.calorytech.com/wp-content/uploads/2020/01/2020-01-24.png" sizes="192x192" /> <link rel="apple-touch-icon" href="https://www.calorytech.com/wp-content/uploads/2020/01/2020-01-24.png" /> <meta name="msapplication-TileImage" content="https://www.calorytech.com/wp-content/uploads/2020/01/2020-01-24.png" /> <style type="text/css" id="wp-custom-css"> .ref_text p { font-size: 14px; } </style> </head> <body class="error404 wp-custom-logo"> <div id="ht-page"> <header id="ht-masthead" class="ht-site-header"> <div class="ht-container ht-clearfix"> <div id="ht-site-branding"> <a href="https://www.calorytech.com/" class="custom-logo-link" rel="home"><img width="1230" height="337" src="https://www.calorytech.com/wp-content/uploads/2022/12/Logo.png" class="custom-logo" alt="CALORY TECH" srcset="https://www.calorytech.com/wp-content/uploads/2022/12/Logo.png 1230w, https://www.calorytech.com/wp-content/uploads/2022/12/Logo-300x82.png 300w, https://www.calorytech.com/wp-content/uploads/2022/12/Logo-1024x281.png 1024w, https://www.calorytech.com/wp-content/uploads/2022/12/Logo-768x210.png 768w" sizes="(max-width: 1230px) 100vw, 1230px" /></a> </div><!-- .site-branding --> <nav id="ht-site-navigation" class="ht-main-navigation"> <div class="toggle-bar"><span></span></div> <div class="ht-menu ht-clearfix"><ul id="menu-primary-menu" class="ht-clearfix"><li id="menu-item-26" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-26"><a href="https://www.calorytech.com/">Home</a></li> <li id="menu-item-23" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-23"><a href="https://www.calorytech.com/about-us/">About Us</a></li> <li id="menu-item-28" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28"><a href="https://www.calorytech.com/products/">Products</a></li> <li id="menu-item-29" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-29"><a href="https://www.calorytech.com/technology/">Technology</a></li> <li id="menu-item-332" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-332"><a href="https://www.calorytech.com/media/">Media</a></li> <li id="menu-item-25" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-25"><a href="https://www.calorytech.com/contact-us/">Contact Us</a></li> </ul></div> </nav><!-- #ht-site-navigation --> </div> </header><!-- #ht-masthead --> <div id="ht-content" class="ht-site-content ht-clearfix"> <header class="ht-main-header"> <div class="ht-container"> <h1 class="ht-main-title">404 Error</h1> </div> </header><!-- .entry-header --> <div class="ht-container"> <div class="oops-text">Oops! That page can’t be found.</div> <span class="error-404">404</span> </div> </div><!-- #content --> <footer id="ht-colophon" class="ht-site-footer"> <div id="ht-bottom-footer"> <div class="ht-container"> <div class="ht-site-info"> <div class="foot-space"> <div class="ali-ma">E-mail Us : <a href="mailto:info@calorytech.com">info@calorytech.com</a></div> <span>Copyright© 2023Calorytech</span> <span>|</span><span><a href="https://aimconsultant.in/" target="_blank" rel="nofollow">Designed and Developed by AIM CONSULTANT</a></span>. </div><!-- #site-info --> </div> </div> </footer><!-- #colophon --> </div><!-- #page --> <div id="ht-back-top" class="ht-hide"><i class="fa fa-angle-up" aria-hidden="true"></i></div> <script type='text/javascript' src='https://www.calorytech.com/wp-includes/js/wp-embed.min.js?ver=5.5.18' id='wp-embed-js'></script> </body> <script>'undefined'=== typeof _trfq || (window._trfq = []);'undefined'=== typeof _trfd && (window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'},{'ap':'cpsh-oh'},{'server':'sg2plzcpnl506136'},{'dcenter':'sg2'},{'cp_id':'5024282'},{'cp_cl':'8'}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/traffic-assets/js/tccl.min.js'></script></html>