__('Header Menu Area, menu_depth is 4', 'foodiz'), 'social' => __('Social Icon Menu Area', 'foodiz') ) ); /* image size */ add_image_size( 'foodiz-blog-thumb', 540, 360, true ); add_image_size( 'foodiz-about-thumb', 350, 233, true ); /* woocommerce */ 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' ); $args = array( 'default-text-color' => '#131230', 'width' => 1000, 'height' => 250, 'flex-width' => true, 'flex-height' => true, ); add_theme_support( 'custom-logo', array() ); $args = array( 'default-text-color' => '#353535', 'width' => 1000, 'height' => 250, 'flex-width' => true, 'flex-height' => true, ); add_theme_support( 'custom-header', $args ); add_theme_support( "custom-background", $args ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'title-tag' ); add_theme_support( 'customize-selective-refresh-widgets' ); add_editor_style(); if ( is_singular() ) { wp_enqueue_script( "comment-reply" ); } add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'script', 'style', ) ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'editor-styles' ); } add_action( 'after_setup_theme','foodiz_setup_theme'); //Foodiz stylesheets & Scripts function foodiz_styles_and_scripts() { // Enqueue Stylesheets wp_enqueue_style('bootstrap-min', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '4.1.3'); wp_enqueue_style('font-awesome-min', get_template_directory_uri() . '/css/font-awesome.min.css'); wp_enqueue_style('owl-carousal-min', get_template_directory_uri() . '/css/owl.carousel.min.css'); wp_enqueue_style('foodiz-style', get_stylesheet_uri()); //Enqueue Scripts wp_enqueue_script( 'jquery' ); wp_enqueue_script('bootstrap-min-js', get_template_directory_uri() . '/js/bootstrap/bootstrap.min.js'); wp_enqueue_script('owl-carousel-min-js', get_template_directory_uri() . '/js/owl.carousel.min.js'); wp_enqueue_script('foodiz-js', get_template_directory_uri() . '/js/foodiz.js'); wp_enqueue_script('foodiz-script-js', get_template_directory_uri() . '/js/foodiz-script.js'); wp_enqueue_script( 'foodiz-footer-script', get_template_directory_uri() . '/js/foodiz-footer-script.js','','','true' ); /* web font */ $font_var = '300,400,600,700,900,300italic,400italic,600italic,700italic,900italic'; $http = ( ! empty( $_SERVER['HTTPS'] ) ) ? "https" : "http"; $main_heading_font1 = get_theme_mod('main_heading_font','Playfair Display'); $main_heading_font = str_replace( ' ' , '+', $main_heading_font1 ); $menu_font1 = get_theme_mod('menu_font', 'Playfair Display'); $menu_font = str_replace( ' ' , '+', $menu_font1 ); $theme_title1 = get_theme_mod('theme_title', 'Playfair Display'); $theme_title = str_replace( ' ' , '+', $theme_title1 ); $desc_font_all1 = get_theme_mod('desc_font_all', 'Playfair Display'); $desc_font_all = str_replace( ' ' , '+', $desc_font_all1 ); wp_enqueue_style('googleFonts', $http . '://fonts.googleapis.com/css?family=' . $main_heading_font . ':' . $font_var); wp_enqueue_style('menu_font', $http . '://fonts.googleapis.com/css?family=' . $menu_font . ':' . $font_var); wp_enqueue_style('theme_title', $http . '://fonts.googleapis.com/css?family=' . $theme_title . ':' . $font_var); wp_enqueue_style('desc_font_all', $http . '://fonts.googleapis.com/css?family=' . $desc_font_all . ':' . $font_var); } add_action('wp_enqueue_scripts', 'foodiz_styles_and_scripts'); //Foodiz Sidebar function foodiz_register_sidebars() { /* Register the 'primary' sidebar. */ register_sidebar( array( 'id' => 'primary', 'name' => __('Sidebar Widget Area', 'foodiz'), 'description' => __('A short description of the sidebar.', 'foodiz'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'footer_1', 'name' => __('Footer Widget Area 1', 'foodiz'), 'description' => __('Add max four Widgets here', 'foodiz'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'footer_2', 'name' => __('Footer Widget Area 2', 'foodiz'), 'description' => __('Add max four Widgets here', 'foodiz'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'id' => 'footer_3', 'name' => __('Footer Widget Area 3', 'foodiz'), 'description' => __('Add max four Widgets here', 'foodiz'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action('widgets_init', 'foodiz_register_sidebars'); /* comment code */ function foodiz_comment($comment, $args, $depth) {?>
  • id="li-comment-">
    •  

    $depth, 'max_depth' => $args['max_depth']))); ?>
    comment_approved == '0') : ?>
    label); ?>

    get( 'Name' ); ?> get('Version') ); ?>

    Foodiz Premium

    Use Coupon Code - OFFER07D Limited Offer

    $22 $15

    View Demo Purchase Now
    admin_url( 'admin-ajax.php' ), ) ); wp_enqueue_script( 'notice-update' ); } add_action( 'wp_ajax_foodiz_dismiss_notice', 'foodiz_notice_dismiss_notice' ); function foodiz_notice_dismiss_notice() { update_option( 'foodiz_notice_dismiss_notice', true ); } /* class for font-family */ if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'foodiz_Font_Control' ) ) : class foodiz_Font_Control extends WP_Customize_Control { public function render_content() {?> label ); ?> false ))); if($response==''){ echo ''; } if( is_wp_error( $response ) ) { echo 'Something went wrong!'; } else { $json_fonts = json_decode($response, true); // that's it $items = $json_fonts['items']; $i = 0; ?>