/** * 8Store Lite functions and definitions * * @package 8Store Lite */ if ( ! function_exists( 'eightstore_lite_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 eightstore_lite_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on 8Store Lite, use a find and replace * to change 'eightstore-lite' to the name of your theme in all the template files */ load_theme_textdomain( 'eightstore-lite', 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('eightstore-promo-small', 520, 260, true); add_image_size('eightstore-promo-large', 520, 520, true); add_image_size('eightstore-blog-image', 290, 260, true); add_image_size('eightstore-testimonial-image', 70, 70, true); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'eightstore-lite' ), ) ); /* * 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', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'eightstore_lite_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); add_editor_style( array( 'css/editor-style.css') ); } endif; // eightstore_lite_setup add_action( 'after_setup_theme', 'eightstore_lite_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 eightstore_lite_content_width() { $GLOBALS['content_width'] = apply_filters( 'eightstore_lite_content_width', 640 ); } add_action( 'after_setup_theme', 'eightstore_lite_content_width', 0 ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function eightstore_lite_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'eightstore-lite' ), 'id' => 'sidebar-1', 'description' => 'Sidebar', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); register_sidebar( array( 'name' => __( 'Shop Sidebar', 'eightstore-lite' ), 'id' => 'shop', 'description' => '', 'before_widget' => '<div id="%1$s" class="%2$s '.eightstore_lite_count_widgets( 'shop' ).'">', 'after_widget' => '</div>', 'before_title' => '<span class="widget-title">', 'after_title' => '</span>', ) ); register_sidebar( array( 'name' => esc_html__( 'Language Translator', 'eightstore-lite' ), 'id' => 'eightstore-lite-language-option', 'description' => 'Add Plugin and place its widget here.', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Product Widget 1', 'eightstore-lite' ), 'id' => 'widget-product-1', 'description' => 'Show a slider of product', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Promo Widget 1', 'eightstore-lite' ), 'id' => 'widget-promo-1', 'description' => 'Show banner or text or some call to action', 'before_widget' => '<aside id="%1$s" class="widget %2$s '.eightstore_lite_count_widgets('widget-promo-1').'">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Category Widget 1', 'eightstore-lite' ), 'id' => 'widget-category-1', 'description' => 'Show a slider with category details and product of it.', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Promo Widget 2', 'eightstore-lite' ), 'id' => 'widget-promo-2', 'description' => 'Show banner or text or some call to action', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Category Widget 2', 'eightstore-lite' ), 'id' => 'widget-category-2', 'description' => 'Show a slider with category details and product of it.', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Promo Widget 3', 'eightstore-lite' ), 'id' => 'widget-promo-3', 'description' => 'Show banner or text or some call to action', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Product Widget 2', 'eightstore-lite' ), 'id' => 'widget-product-2', 'description' => 'Show a slider of product', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => esc_html__( 'Promo Widget 4', 'eightstore-lite' ), 'id' => 'widget-promo-4', 'description' => 'Show banner or text or some call to action', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => __( 'Sidebar - Left', 'eightstore-lite' ), 'id' => 'sidebar-left', 'description' => '', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', ) ); register_sidebar( array( 'name' => __( 'Sidebar - Right', 'eightstore-lite' ), 'id' => 'sidebar-right', 'description' => '', 'before_widget' => '<aside id="%1$s" class="widget %2$s ">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); register_sidebar( array( 'name' => esc_html__( 'Top Footer Widgets', 'eightstore-lite' ), 'id' => 'footer-1', 'description' => '', 'before_widget' => '<aside id="%1$s" class="top-footer-widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="footer-widget-title">', 'after_title' => '</h2>', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widgets', 'eightstore-lite' ), 'id' => 'footer-2', 'description' => '', 'before_widget' => '<aside id="%1$s" class="main-footer-widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h2 class="footer-widget-title">', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'eightstore_lite_widgets_init' ); /** * Enqueue scripts and styles. */ function eightstore_lite_scripts() { $font_args = array( 'family' => 'Open+Sans:400,600,700,300|Oswald:400,700,300|Dosis:400,300,500,600,700|Lato:400,300,700,900', ); wp_enqueue_style('eightstore-google-fonts', add_query_arg($font_args, "//fonts.googleapis.com/css")); wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css' ); wp_enqueue_style( 'eightstore-animate', get_template_directory_uri() . '/css/animate.css'); wp_enqueue_style( 'eightstore-slick', get_template_directory_uri() . '/css/slick.css'); wp_enqueue_style( 'eightstore-fancybox', get_template_directory_uri() . '/css/fancybox.css'); wp_enqueue_style( 'eightstore-custom-scrollcss', get_template_directory_uri() . '/css/jquery.mCustomScrollbar.css'); wp_enqueue_style( 'eightstore-style', get_stylesheet_uri() ); wp_enqueue_style( 'eightstore-keyboard', get_template_directory_uri() . '/css/keyboard.css' ); //check if responsive mode is enabled. if(get_theme_mod('is_mode_responsive')!='1'){ wp_enqueue_style( 'eightstore-responsive', get_template_directory_uri() . '/css/responsive.css'); } if(is_rtl()){ wp_enqueue_style( 'eightstore-rtl', get_template_directory_uri() . '/css/rtl.css'); } wp_enqueue_script( 'eightstore-mousewheel', get_template_directory_uri() . '/js/jquery.mousewheel-3.0.4.pack.js', array('jquery'), '3.0.4', true ); wp_enqueue_script( 'eightstore-fancybox', get_template_directory_uri() . '/js/jquery.fancybox-1.3.4.js', array('jquery'), '1.3.4', true ); wp_enqueue_script( 'eightstore-wow', get_template_directory_uri() . '/js/wow.min.js',array(),'1.1.2',true); wp_enqueue_script( 'eightstore-slick', get_template_directory_uri() . '/js/slick.js', array('jquery'), '1.5.0', true ); wp_enqueue_script( 'eightstore-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); wp_enqueue_script( 'eightstore-custom-scrolljs', get_template_directory_uri() . '/js/jquery.mCustomScrollbar.concat.min.js', array(), '20130115', true ); wp_enqueue_script( 'eightstore-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script('eightstore-custom-scripts', get_template_directory_uri() . '/js/custom-scripts.js', array(), '20150611', true ); } add_action( 'wp_enqueue_scripts', 'eightstore_lite_scripts' ); /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.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/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Load Custom functions file. */ require get_template_directory() . '/inc/eightstore-functions.php'; /** * Custom Customizer additions. */ require get_template_directory() . '/inc/eightstore-customizer.php'; /** * Custom Sanitizer additions. */ require get_template_directory() . '/inc/eightstore-sanitizer.php'; /** * Custom Metabox Additions. */ require get_template_directory() . '/inc/eightstore-metabox.php'; /** * Custom Typography dropdown */ require get_template_directory() . '/inc/typography-dropdown.php'; /** * Custom Control Type additions. */ require get_template_directory() . '/inc/controls/custom-switch.php'; require get_template_directory() . '/inc/controls/custom-chooseimage.php'; require get_template_directory() . '/inc/controls/category-dropdown.php'; /** * Custom Widget Types additions. */ require get_template_directory() . '/inc/widgets/es-widgets.php'; /** * Load Custom Styles */ require get_template_directory() . '/css/config-styles.php'; /** * Load support Information */ require get_template_directory() . '/welcome/welcome-config.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.restez.net/xmlrpc.php"> <meta name='robots' content='max-image-preview:large' /> <link rel="alternate" type="application/rss+xml" title="Rest EZ » sleep aids Category Feed" href="https://www.restez.net/product-category/sleep-aids/feed/" /> <style id='wp-img-auto-sizes-contain-inline-css' type='text/css'> img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px} /*# sourceURL=wp-img-auto-sizes-contain-inline-css */ </style> <style id='wp-emoji-styles-inline-css' 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 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } /*# sourceURL=wp-emoji-styles-inline-css */ </style> <style id='wp-block-library-inline-css' type='text/css'> :root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}} /*# sourceURL=wp-block-library-inline-css */ </style> <style id='classic-theme-styles-inline-css' type='text/css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} /*# sourceURL=/wp-includes/css/classic-themes.min.css */ </style> <link rel='stylesheet' id='contact-form-7-css' href='https://www.restez.net/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=6.1.5' type='text/css' media='all' /> <link rel='stylesheet' id='woocommerce-layout-css' href='https://www.restez.net/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css?ver=10.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='woocommerce-smallscreen-css' href='https://www.restez.net/wp-content/plugins/woocommerce/assets/css/woocommerce-smallscreen.css?ver=10.6.1' type='text/css' media='only screen and (max-width: 768px)' /> <link rel='stylesheet' id='woocommerce-general-css' href='https://www.restez.net/wp-content/plugins/woocommerce/assets/css/woocommerce.css?ver=10.6.1' type='text/css' media='all' /> <style id='woocommerce-inline-inline-css' type='text/css'> .woocommerce form .form-row .required { visibility: visible; } /*# sourceURL=woocommerce-inline-inline-css */ </style> <link rel='stylesheet' id='wc-gateway-ppec-frontend-css' href='https://www.restez.net/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/assets/css/wc-gateway-ppec-frontend.css?ver=2.1.3' type='text/css' media='all' /> <script type="text/javascript" src="https://www.restez.net/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script> <script type="text/javascript" src="https://www.restez.net/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1" id="jquery-migrate-js"></script> <script type="text/javascript" src="https://www.restez.net/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.7.0-wc.10.6.1" id="wc-jquery-blockui-js" defer="defer" data-wp-strategy="defer"></script> <script type="text/javascript" id="wc-add-to-cart-js-extra"> /* <![CDATA[ */ var wc_add_to_cart_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_view_cart":"View cart","cart_url":"https://www.restez.net/cart/","is_cart":"","cart_redirect_after_add":"yes"}; //# sourceURL=wc-add-to-cart-js-extra /* ]]> */ </script> <script type="text/javascript" src="https://www.restez.net/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=10.6.1" id="wc-add-to-cart-js" defer="defer" data-wp-strategy="defer"></script> <script type="text/javascript" src="https://www.restez.net/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4-wc.10.6.1" id="wc-js-cookie-js" defer="defer" data-wp-strategy="defer"></script> <script type="text/javascript" id="woocommerce-js-extra"> /* <![CDATA[ */ var woocommerce_params = {"ajax_url":"/wp-admin/admin-ajax.php","wc_ajax_url":"/?wc-ajax=%%endpoint%%","i18n_password_show":"Show password","i18n_password_hide":"Hide password"}; //# sourceURL=woocommerce-js-extra /* ]]> */ </script> <script type="text/javascript" src="https://www.restez.net/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=10.6.1" id="woocommerce-js" defer="defer" data-wp-strategy="defer"></script> <link rel="https://api.w.org/" href="https://www.restez.net/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://www.restez.net/wp-json/wp/v2/product_cat/24" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.restez.net/xmlrpc.php?rsd" /> <meta name="generator" content="WordPress 6.9.4" /> <meta name="generator" content="WooCommerce 10.6.1" /> <noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style></noscript> <style type="text/css" id="wp-custom-css"> .checkout-button {display:none;} </style> </head> <body class="wp-theme-eightstore-lite theme-eightstore-lite fl-builder-lite-2-10-1-2 fl-no-js woocommerce woocommerce-page woocommerce-no-js"> <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content">Skip to content</a> <header id="masthead" class="site-header" role="banner"> <div class="top-header"> <div class="store-wrapper clear"> <div class="header-callto"> <a href="#"><i class="fa fa-phone"></i>(801) 300-2542</a> | <a href="#"><i class="fa fa-envelope"></i> info@restez.net</a> <div class="es-social-header"> </div> </div> </div> </div><!-- Top Header --> <div class="main-header"> <div class="store-wrapper"> <div class="site-branding"> <a class="header-image" href="https://www.restez.net/" rel="home"> <img src="https://www.restez.net/wp-content/uploads/rest-ez-logo.png" width="324" height="91" alt=""> </a> <div class="site-titles"> <h1 class="site-title"><a href="https://www.restez.net/" rel="home">Rest EZ</a></h1> <a href="https://www.restez.net/" rel="home"><div class="site-description">Soft Gel Sleep Aid</div></a> </div> </div><!-- .site-branding --> <div class="right-links"> <!-- if enabled from customizer --> <div class="my-account"> <i class="fa fa-unlock-alt"></i> <div class="welcome-user">