HEX
Server: LiteSpeed
System: Linux spg20.cloudpowerdns.com 5.14.0-611.35.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 25 03:46:09 EST 2026 x86_64
User: carrerup (3153)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/carrerup/.trash/techland/woocommerce/init.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

if ( class_exists( 'Redux' ) && class_exists( 'WooCommerce' ) ) {

    if ( ! function_exists( 'techland_dynamic_section' ) ) {
        function techland_dynamic_section($sections)
        {

            global $techland_pre;

            /*************************************************
            ## SINGLE PAGE SECTION
            *************************************************/
            // create sections in the theme options
            $sections[] = array(
                'title' => esc_html__('Shop Page', 'techland'),
                'id' => 'shopsection',
                'icon' => 'el el-shopping-cart-sign',
                'fields' => array()
            );
            // SHOP PAGE SECTION
            $sections[] = array(
                'title' => esc_html__( 'Shop Page Layout', 'techland' ),
                'id' => 'shoplayoutsection',
                'subsection'=> true,
                'icon' => 'el el-website',
                'fields'	=> array(
                    array(
                        'title' => esc_html__( 'Shop Page Layout', 'techland' ),
                        'subtitle' => esc_html__( 'Choose the shop page layout.', 'techland' ),
                        'id' => 'shop_layout',
                        'type' => 'image_select',
                        'options' => array(
                            'left-sidebar' => array(
                                'alt' => 'Left Sidebar',
                                'img' => ReduxFramework::$_url . 'assets/img/2cl.png'
                            ),
                            'full-width' => array(
                                'alt' => 'Full Width',
                                'img' => ReduxFramework::$_url . 'assets/img/1col.png'
                            ),
                            'right-sidebar' => array(
                                'alt' => 'Right Sidebar',
                                'img' => ReduxFramework::$_url . 'assets/img/2cr.png'
                            ),
                        ),
                        'default' => 'right-sidebar'
                    )
                )
            );

            // SINGLE HERO SUBSECTION
            $sections[] = array(
                'title' => esc_html__('Shop Page Hero', 'techland'),
                'desc' => esc_html__('These are shop page hero section settings', 'techland'),
                'id' => 'shopherosubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Single Hero display', 'techland'),
                        'subtitle' => esc_html__('You can enable or disable the site shop page hero section with switch option.', 'techland'),
                        'id' => 'shop_hero_visibility',
                        'type' => 'switch',
                        'default' => 1,
                        'on' => 'On',
                        'off' => 'Off',
                    ),
                    array(
                        'title' => esc_html__('Shop Page Hero Alignment', 'techland'),
                        'subtitle' => esc_html__('Select shop page hero text alignment.', 'techland'),
                        'id' => 'shop_hero_alignment',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => array(
                            '' => esc_html__('Select alignment', 'techland'),
                            'text-right' => esc_html__('right', 'techland'),
                            'text-center' => esc_html__('center', 'techland'),
                            'text-left' => esc_html__('left', 'techland'),
                        ),
                        'default' => 'text-center',
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Shop Page Hero Background', 'techland'),
                        'id' => 'shop_hero_bg',
                        'type' => 'background',
                        'output' => array( '#nt-shop-page .hero-container' ),
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Shop Page Hero Overlay Color', 'techland'),
                        'id' =>'shop_hero_overlay',
                        'type' => 'color_rgba',
                        'mode' => 'background',
                        'output' => array( '#nt-shop-page .hero-container.hero-overlay:before' ),
                        'required' => array( 'shop_hero_visibility', '=', '1' )
                    ),
                    array(
                        'title' => esc_html__('Shop Page Hero Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page Hero Section', 'techland'),
                        'id' =>'shop_hero_pad',
                        'type' => 'spacing',
                        'output' => array('#nt-shop-page .hero-container'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'padding-top' => '',
                            'padding-right' => '',
                            'padding-bottom' => '',
                            'padding-left' => '',
                            'units' => 'px',
                        ),
                        'required' => array( 'shop_hero_visibility', '=', '1' )
                    ),
                    array(
                        'title' => esc_html__('Shop Page Title', 'techland'),
                        'subtitle' => esc_html__('Add your shop page title here.', 'techland'),
                        'id' => 'shop_title',
                        'type' => 'text',
                        'default' => 'Shop',
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Shop Page Title Typography', 'techland'),
                        'id' => 'shop_title_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '#nt-shop-page .nt-hero-title' ),
                        'units' => 'px',
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        ),
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Shop Page Slogan', 'techland'),
                        'subtitle' => esc_html__('Add your shop page slogan here.', 'techland'),
                        'id' => 'shop_slogan',
                        'type' => 'textarea',
                        'default' => '',
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Slogan Typography', 'techland'),
                        'id' => 'shop_slogan_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '#nt-shop-page .nt-hero-subtitle' ),
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        ),
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Shop Page Description', 'techland'),
                        'subtitle' => esc_html__('Add your shop page description here.', 'techland'),
                        'id' => 'shop_desc',
                        'type' => 'textarea',
                        'default' => '',
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Description Typography', 'techland'),
                        'id' => 'shop_desc_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '#nt-shop-page .nt-hero-description' ),
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        ),
                        'required' => array( 'shop_hero_visibility', '=', '1' )
                    )
                )
            );

            // HERO PARALLAX EFFECT
            $sections[] = array(
                'title' => esc_html__('Hero Parallax', 'techland'),
                'id' => 'singleshopheroparallaxsubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Parallax Effect Display', 'techland'),
                        'subtitle' => esc_html__('You can enable or disable the site shop page hero section parallax effect with switch option.', 'techland'),
                        'id' => 'shop_hero_parallax_visibility',
                        'type' => 'switch',
                        'default' => 0,
                        'on' => 'On',
                        'off' => 'Off',
                        'required' => array( 'shop_hero_visibility', '=', '1' )
                    ),
                    array(
                        'title' => esc_html__('Parallax Effect Type', 'techland'),
                        'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
                        'id' => 'shop_hero_parallax_type',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => array(
                            '' => esc_html__('Select type', 'techland'),
                            'scroll' => esc_html__('scroll', 'techland'),
                            'opacity' => esc_html__('opacity', 'techland'),
                            'scale' => esc_html__('scale', 'techland'),
                            'scroll-opacity' => esc_html__('scroll with opacity', 'techland'),
                            'scale-opacity' => esc_html__('scale with opacity', 'techland'),
                        ),
                        'default' => 'scroll',
                        'required' => array(
                            array( 'shop_hero_visibility', '=', '1' ),
                            array( 'shop_hero_parallax_visibility', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Parallax Speed', 'techland'),
                        'subtitle' => esc_html__('You can control parallax effect with speed option.', 'techland'),
                        'id' => 'shop_hero_parallax_speed',
                        'type' => 'slider',
                        'default' => .7,
                        'min' => 0.2,
                        'step' => .1,
                        'max' => 10,
                        'resolution' => 0.1,
                        'display_value' => 'text',
                        'required' => array(
                            array( 'shop_hero_visibility', '=', '1' ),
                            array( 'shop_hero_parallax_visibility', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Use Video', 'techland'),
                        'id' => 'shop_hero_use_video',
                        'type' => 'switch',
                        'default' => 0,
                        'on' => 'On',
                        'off' => 'Off',
                        'required' => array(
                            array( 'shop_hero_visibility', '=', '1' ),
                            array( 'shop_hero_parallax_visibility', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Video Type', 'techland'),
                        'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
                        'id' => 'shop_hero_video_type',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => array(
                            '' => esc_html__('Select type', 'techland'),
                            'social' => esc_html__('Social media ( youtube or vimeo )', 'techland'),
                            'mp4' => esc_html__('Local video (mp4)', 'techland'),
                            'webm' => esc_html__('Local video (webm)', 'techland'),
                            'ogv' => esc_html__('Local video (ogv)', 'techland')
                        ),
                        'default' => 'social',
                        'required' => array(
                            array( 'shop_hero_visibility', '=', '1' ),
                            array( 'shop_hero_parallax_visibility', '=', '1' ),
                            array( 'shop_hero_use_video', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Video URL', 'techland'),
                        'subtitle' => esc_html__('Add your video url here.', 'techland'),
                        'id' => 'shop_hero_video_url',
                        'type' => 'text',
                        'default' => 'https://www.youtube.com/embed/1zG1iq9LZ2U',
                        'required' => array(
                            array( 'shop_hero_visibility', '=', '1' ),
                            array( 'shop_hero_parallax_visibility', '=', '1' ),
                            array( 'shop_hero_use_video', '=', '1' )
                        )
                    ),
                    // information
                    array(
                        'id' =>'info_shop_prlx',
                        'type' => 'info',
                        'style' => 'success',
                        'title' => esc_html__('Info!', 'techland'),
                        'icon' => 'el el-info-circle',
                        'customizer' => false,
                        'desc' => sprintf(esc_html__('If you want to use the hero parallax effect, please activate the %s.', 'techland'), '<b>Hero Section</b>'),
                        'required' => array( 'shop_hero_visibility', '!=', '1' )
                    )
                )
            );
            // SINGLE CONTENT SUBSECTION
            $sections[] = array(
                'title' => esc_html__('Shop Page Content', 'techland'),
                'id' => 'shopcontentsubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Shop Page Content Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page content.', 'techland'),
                        'id' =>'shop_content_pad',
                        'type' => 'spacing',
                        'output' => array('#nt-shop-page .nt-theme-inner-container'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'padding-top' => '',
                            'padding-right' => '',
                            'padding-bottom' => '',
                            'padding-left' => '',
                            'units' => 'px'
                        )
                    ),
                    array(
                        'title' => esc_html__('Shop Post Column', 'techland'),
                        'subtitle' => esc_html__('You can control post column with this option.', 'techland'),
                        'id' => 'shop_column',
                        'type' => 'slider',
                        'default' => 2,
                        'min' => 1,
                        'step' => 1,
                        'max' => 4,
                        'display_value' => 'text',
                    ),
                    array(
                        'title' => esc_html__('Shop Post Count', 'techland'),
                        'subtitle' => esc_html__('You can control show post count with this option.', 'techland'),
                        'id' => 'shop_perpage',
                        'type' => 'slider',
                        'default' => 6,
                        'min' => 1,
                        'step' => 1,
                        'max' => 30,
                        'display_value' => 'text'
                    )
                )
            );
            $sections[] = array(
                'title' => esc_html__('Shop Page Post Style', 'techland'),
                'id' => 'shoppoststylesubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Post Color Style', 'techland'),
                        'subtitle' => esc_html__('Select your color.', 'techland'),
                        'id' => 'shop_theme_color',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => array(
                            'default' => esc_html__('Default', 'techland'),
                            '1' => esc_html__('Blue', 'techland'),
                            '2' => esc_html__('Orange', 'techland'),
                            '3' => esc_html__('Indigo', 'techland'),
                            '4' => esc_html__('Sunglow', 'techland'),
                            '5' => esc_html__('Cerise Red', 'techland'),
                            '6' => esc_html__('Mantis', 'techland'),
                            'custom' => esc_html__('Custom Color', 'techland')
                        ),
                        'default' => '1',
                    ),
                    array(
                        'title' => esc_html__('Custom Color', 'techland'),
                        'subtitle' => esc_html__('Change post color.', 'techland'),
                        'id' => 'shop_custom_color',
                        'type' => 'color',
                        'default' => '#30aafc',
                        'required' => array( 'shop_theme_color', '=', 'custom' )
                    ),
                    // post button ( view cart )
                    array(
                        'title' => esc_html__('Post Background Color', 'techland'),
                        'subtitle' => esc_html__('Change post background color.', 'techland'),
                        'id' => 'shop_viewcartbtn_bgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce ul.products li.product, .woocommerce-page ul.products li.product')
                    ),
                    array(
                        'title' => esc_html__('Post Border', 'techland'),
                        'subtitle' => esc_html__('Set your custom border styles for the posts.', 'techland'),
                        'id' => 'shop_post_brd',
                        'type' => 'border',
                        'all' => false,
                        'output' => array('.woocommerce ul.products li.product, .woocommerce-page ul.products li.product')
                    ),
                    array(
                        'title' => esc_html__('Post Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post.', 'techland'),
                        'id' =>'shop_post_pad',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product, .woocommerce-page ul.products li.product'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'units' => 'px'
                        )
                    ),
                    array(
                        'title' => esc_html__('Post Margin', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post.', 'techland'),
                        'id' =>'shop_post_margin',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product, .woocommerce-page ul.products li.product'),
                        'mode' => 'margin',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'units' => 'px'
                        )
                    ),
                    // post itle
                    array(
                        'title' => esc_html__('Shop Loop Post Title Typography', 'techland'),
                        'id' => 'shop_post_title_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '.woocommerce ul.products li.product .woocommerce-loop-product__title' ),
                        'units' => 'px',
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        )
                    ),
                    array(
                        'title' => esc_html__('Shop Loop Post Title Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post title.', 'techland'),
                        'id' =>'shop_post_title_pad',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product .woocommerce-loop-product__title'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'padding-top' => '',
                            'padding-right' => '',
                            'padding-bottom' => '',
                            'padding-left' => '',
                            'units' => 'px'
                        )
                    ),
                    array(
                        'title' => esc_html__('Shop Loop Post Title Margin', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post title.', 'techland'),
                        'id' =>'shop_post_title_margin',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product .woocommerce-loop-product__title'),
                        'mode' => 'margin',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'padding-top' => '',
                            'padding-right' => '',
                            'padding-bottom' => '',
                            'padding-left' => '',
                            'units' => 'px'
                        )
                    ),
                    array(
                        'title' => esc_html__('Shop Loop Post Price Typography', 'techland'),
                        'id' => 'shop_post_price_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '.woocommerce ul.products li.product .price' ),
                        'units' => 'px',
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        )
                    ),
                    array(
                        'title' => esc_html__('Shop Loop Post Price Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post title.', 'techland'),
                        'id' =>'shop_post_price_pad',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product .price'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'units' => 'px'
                        )
                    ),
                    array(
                        'title' => esc_html__('Shop Loop Post Price Margin', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post title.', 'techland'),
                        'id' =>'shop_post_price_margin',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product .price'),
                        'mode' => 'margin',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'units' => 'px'
                        )
                    ),
                    // post button ( Add to cart )
                    array(
                        'title' => esc_html__('Button Background ( Add to cart )', 'techland'),
                        'subtitle' => esc_html__('Change theme main color.', 'techland'),
                        'id' => 'shop_addtocartbtn_bgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce ul.products li.product .button')
                    ),
                    array(
                        'title' => esc_html__('Hover Button Background ( Add to cart )', 'techland'),
                        'subtitle' => esc_html__('Change theme main color.', 'techland'),
                        'id' => 'shop_addtocartbtn_hvrbgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce ul.products li.product .button')
                    ),
                    array(
                        'title' => esc_html__('Button Title ( Add to cart )', 'techland'),
                        'subtitle' => esc_html__('Change theme main color.', 'techland'),
                        'id' => 'shop_addtocartbtn_bgcolor',
                        'type' => 'color',
                        'default' => '',
                        'output' => array('.woocommerce ul.products li.product .button')
                    ),
                    array(
                        'title' => esc_html__('Hover Button Title ( Add to cart )', 'techland'),
                        'subtitle' => esc_html__('Change theme main color.', 'techland'),
                        'id' => 'shop_addtocartbtn_hvrbgcolor',
                        'type' => 'color',
                        'default' => '',
                        'output' => array('.woocommerce ul.products li.product .button')
                    ),
                    array(
                        'title' => esc_html__('Button Border ( Add to cart )', 'techland'),
                        'subtitle' => esc_html__('Change theme main color.', 'techland'),
                        'id' => 'shop_addtocartbtn_brd',
                        'type' => 'border',
                        'output' => array('.woocommerce ul.products li.product .button')
                    ),
                    array(
                        'title' => esc_html__('Hover Button Border ( Add to cart )', 'techland'),
                        'subtitle' => esc_html__('Change theme main color.', 'techland'),
                        'id' => 'shop_addtocartbtn_hvrbrd',
                        'type' => 'border',
                        'output' => array('.woocommerce ul.products li.product .button')
                    ),
                    // post button ( view cart )
                    array(
                        'title' => esc_html__('Button Background ( View cart )', 'techland'),
                        'subtitle' => esc_html__('Change button background color.', 'techland'),
                        'id' => 'shop_viewcartbtn_bgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce a.added_to_cart')
                    ),
                    array(
                        'title' => esc_html__('Hover Button Background ( View cart )', 'techland'),
                        'subtitle' => esc_html__('Change button hover background color.', 'techland'),
                        'id' => 'shop_viewcartbtn_hvrbgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce a.added_to_cart')
                    ),
                    array(
                        'title' => esc_html__('Button Title ( View cart )', 'techland'),
                        'subtitle' => esc_html__('Change button title color.', 'techland'),
                        'id' => 'shop_viewcartbtn_color',
                        'type' => 'color',
                        'default' => '',
                        'output' => array('.woocommerce a.added_to_cart')
                    ),
                    array(
                        'title' => esc_html__('Hover Button Title ( View cart )', 'techland'),
                        'subtitle' => esc_html__('Change button hover title color.', 'techland'),
                        'id' => 'shop_viewcartbtn_hvrcolor',
                        'type' => 'color',
                        'default' => '',
                        'output' => array('.woocommerce a.added_to_cart')
                    ),
                    array(
                        'title' => esc_html__('Button Border ( View cart )', 'techland'),
                        'subtitle' => esc_html__('Change hover button border style.', 'techland'),
                        'id' => 'shop_viewcartbtn_brd',
                        'type' => 'border',
                        'output' => array('.woocommerce a.added_to_cart')
                    ),
                    array(
                        'title' => esc_html__('Hover Button Border ( View cart )', 'techland'),
                        'subtitle' => esc_html__('Change hover button border style.', 'techland'),
                        'id' => 'shop_viewcartbtn_hvrbrd',
                        'type' => 'border',
                        'output' => array('.woocommerce a.added_to_cart')
                    ),
                    array(
                        'title' => esc_html__('Buttons Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post buttons.', 'techland'),
                        'id' =>'shop_postbtn_pad',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product .button,.woocommerce a.added_to_cart'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'units' => 'px'
                        )
                    ),
                    array(
                        'title' => esc_html__('Buttons Margin', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site shop page post buttons.', 'techland'),
                        'id' =>'shop_postbtn_margin',
                        'type' => 'spacing',
                        'output' => array('.woocommerce ul.products li.product .button,.woocommerce a.added_to_cart'),
                        'mode' => 'margin',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'units' => 'px'
                        )
                    ),
                    array(
                        'title' => esc_html__('Sale Label Background Color', 'techland'),
                        'subtitle' => esc_html__('Change sale label background color.', 'techland'),
                        'id' => 'shop_sale_bgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce span.onsale,.woocommerce ul.products li.product .onsale, .woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle')
                    ),
                    array(
                        'title' => esc_html__('Sale Label Text Color', 'techland'),
                        'subtitle' => esc_html__('Change sale label text color.', 'techland'),
                        'id' => 'shop_sale_color',
                        'type' => 'color',
                        'default' => '',
                        'output' => array('.woocommerce span.onsale,.woocommerce ul.products li.product .onsale')
                    ),
                    array(
                        'title' => esc_html__('Pagination Background Color', 'techland'),
                        'subtitle' => esc_html__('Change shop page pagination background color.', 'techland'),
                        'id' => 'shop_pagination_bgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce .nt-pagination .nt-pagination-inner .nt-pagination-item .nt-pagination-link')
                    ),
                    array(
                        'title' => esc_html__('Active Pagination Background Color', 'techland'),
                        'subtitle' => esc_html__('Change shop page pagination hover and active item background color.', 'techland'),
                        'id' => 'shop_pagination_hvrbgcolor',
                        'type' => 'color',
                        'mode' => 'background',
                        'default' => '',
                        'output' => array('.woocommerce .nt-pagination .nt-pagination-inner .nt-pagination-item.active .nt-pagination-link')
                    ),
                    array(
                        'title' => esc_html__('Pagination Text Color', 'techland'),
                        'subtitle' => esc_html__('Change shop page pagination text color.', 'techland'),
                        'id' => 'shop_pagination_color',
                        'type' => 'color',
                        'default' => '',
                        'output' => array('.woocommerce .nt-pagination .nt-pagination-inner .nt-pagination-item .nt-pagination-link')
                    ),
                    array(
                        'title' => esc_html__('Active Pagination Text Color', 'techland'),
                        'subtitle' => esc_html__('Change shop page pagination hover and active item text color.', 'techland'),
                        'id' => 'shop_pagination_hvrcolor',
                        'type' => 'color',
                        'default' => '',
                        'output' => array('.woocommerce .nt-pagination .nt-pagination-inner .nt-pagination-item.active .nt-pagination-link')
                    ),
                    array(
                        'title' => esc_html__('Pagination Border', 'techland'),
                        'subtitle' => esc_html__('Change pagination item border style.', 'techland'),
                        'id' => 'shop_pagination_brd',
                        'type' => 'border',
                        'output' => array('.woocommerce .nt-pagination .nt-pagination-inner .nt-pagination-item .nt-pagination-link')
                    ),
                    array(
                        'title' => esc_html__('Active Pagination Border', 'techland'),
                        'subtitle' => esc_html__('Change pagination active item border style.', 'techland'),
                        'id' => 'shop_pagination_hvrbrd',
                        'type' => 'border',
                        'output' => array('.woocommerce .nt-pagination .nt-pagination-inner .nt-pagination-item.active .nt-pagination-link')
                    ),
                )
            );
            $sections[] =array(
                'title' => esc_html__('Shop Before/After Content', 'techland'),
                'id' => 'shopbeforeaftercontentsubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Before Shop Content Template', 'techland'),
                        'subtitle' => esc_html__('Select your template for before shop content.', 'techland'),
                        'id' => 'vc_before_shop_templates',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
                    ),
                    array(
                        'title' => esc_html__('After Shop Content Template', 'techland'),
                        'subtitle' => esc_html__('Select your template for after shop content.', 'techland'),
                        'id' => 'vc_after_shop_templates',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
                    )
                )
            );

            /*************************************************
            ## SINGLE PAGE SECTION
            *************************************************/
            // create sections in the theme options
            $sections[] = array(
                'title' => esc_html__('Shop Single Page', 'techland'),
                'id' => 'singleshopsection',
                'icon' => 'el el-shopping-cart-sign',
                'fields' => array()
            );
            // SHOP PAGE SECTION
            $sections[] = array(
                'title' => esc_html__('General', 'techland'),
                'id' => 'singleshopgeneral',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__( 'Single Page Layout', 'techland' ),
                        'subtitle' => esc_html__( 'Choose the single page layout.', 'techland' ),
                        'id' => 'single_shop_layout',
                        'type' => 'image_select',
                        'options' => array(
                            'left-sidebar' => array(
                                'alt' => 'Left Sidebar',
                                'img' => ReduxFramework::$_url . 'assets/img/2cl.png'
                            ),
                            'full-width' => array(
                                'alt' => 'Full Width',
                                'img' => ReduxFramework::$_url . 'assets/img/1col.png'
                            ),
                            'right-sidebar' => array(
                                'alt' => 'Right Sidebar',
                                'img' => ReduxFramework::$_url . 'assets/img/2cr.png'
                            ),
                        ),
                        'default' => 'full-width'
                    ),
                    array(
                        'title' => esc_html__('Single Related Title', 'techland'),
                        'subtitle' => esc_html__('Add your single shop page related section title here.', 'techland'),
                        'id' => 'single_shop_related_title',
                        'type' => 'text',
                        'default' => 'Related Products'
                    ),
                    array(
                        'title' => esc_html__('Related Post Column', 'techland'),
                        'subtitle' => esc_html__('You can control related post column with this option.', 'techland'),
                        'id' => 'single_shop_related_column',
                        'type' => 'slider',
                        'default' => 3,
                        'min' => 1,
                        'step' => 1,
                        'max' => 4,
                        'display_value' => 'text'
                    ),
                    array(
                        'title' => esc_html__('Related Post Count', 'techland'),
                        'subtitle' => esc_html__('You can control show related post count with this option.', 'techland'),
                        'id' => 'single_shop_related_count',
                        'type' => 'slider',
                        'default' => 6,
                        'min' => 1,
                        'step' => 1,
                        'max' => 24,
                        'display_value' => 'text'
                    )
                )
            );
            // SINGLE HERO SUBSECTION
            $sections[] = array(
                'title' => esc_html__('Single Hero', 'techland'),
                'desc' => esc_html__('These are single page hero section settings!', 'techland'),
                'id' => 'singleshopherosubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Single Hero display', 'techland'),
                        'subtitle' => esc_html__('You can enable or disable the site single page hero section with switch option.', 'techland'),
                        'id' => 'single_shop_hero_visibility',
                        'type' => 'switch',
                        'default' => 1,
                        'on' => 'On',
                        'off' => 'Off',
                    ),
                    array(
                        'title' => esc_html__('Single Hero Alignment', 'techland'),
                        'subtitle' => esc_html__('Select single page hero text alignment.', 'techland'),
                        'id' => 'single_shop_hero_alignment',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => array(
                            '' => esc_html__('Select alignment', 'techland'),
                            'text-right' => esc_html__('right', 'techland'),
                            'text-center' => esc_html__('center', 'techland'),
                            'text-left' => esc_html__('left', 'techland'),
                        ),
                        'default' => 'text-center',
                        'required' => array( 'single_shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Single Hero Background', 'techland'),
                        'id' => 'single_shop_hero_bg',
                        'type' => 'background',
                        'output' => array( '#nt-woo-single .hero-container' ),
                        'required' => array( 'single_shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Single Hero Overlay Color', 'techland'),
                        'id' =>'single_shop_hero_overlay',
                        'type' => 'color_rgba',
                        'mode' => 'background',
                        'output' => array( '#nt-woo-single .hero-container.hero-overlay:before' ),
                        'required' => array( 'single_shop_hero_visibility', '=', '1' )
                    ),
                    array(
                        'title' => esc_html__('Single Hero Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site single page Hero Section', 'techland'),
                        'id' =>'single_shop_hero_pad',
                        'type' => 'spacing',
                        'output' => array('#nt-woo-single .hero-container'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'padding-top' => '',
                            'padding-right' => '',
                            'padding-bottom' => '',
                            'padding-left' => '',
                            'units' => 'px',
                        ),
                        'required' => array( 'single_shop_hero_visibility', '=', '1' )
                    ),
                    array(
                        'title' => esc_html__('Single Page Title', 'techland'),
                        'subtitle' => esc_html__('Add your single shop page title here.', 'techland'),
                        'id' => 'single_shop_title',
                        'type' => 'text',
                        'default' => 'Shop',
                        'required' => array( 'shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Single Title Typography', 'techland'),
                        'id' => 'single_shop_title_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '#nt-woo-single .nt-hero-title' ),
                        'units' => 'px',
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        ),
                        'required' => array( 'single_shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Single Slogan', 'techland'),
                        'subtitle' => esc_html__('Add your single page slogan here.', 'techland'),
                        'id' => 'single_shop_slogan',
                        'type' => 'textarea',
                        'default' => '',
                        'required' => array( 'single_shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Single Slogan Typography', 'techland'),
                        'id' => 'single_shop_slogan_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '#nt-woo-single .nt-hero-subtitle' ),
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        ),
                        'required' => array( 'single_shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Single Description', 'techland'),
                        'subtitle' => esc_html__('Add your single page description here.', 'techland'),
                        'id' => 'single_shop_desc',
                        'type' => 'textarea',
                        'default' => '',
                        'required' => array( 'single_shop_hero_visibility', '=', '1' ),
                    ),
                    array(
                        'title' => esc_html__('Single Description Typography', 'techland'),
                        'id' => 'single_shop_desc_typo',
                        'type' => 'typography',
                        'font-backup' => false,
                        'letter-spacing' => true,
                        'text-transform' => true,
                        'all_styles' => true,
                        'output' => array( '#nt-woo-single .nt-hero-description' ),
                        'default' => array(
                            'color' => '',
                            'font-style' => '',
                            'font-family' => '',
                            'google' => true,
                            'font-size' => '',
                            'line-height' => ''
                        ),
                        'required' => array( 'single_shop_hero_visibility', '=', '1' )
                    )
                )
            );

            // HERO PARALLAX EFFECT
            $sections[] = array(
                'title' => esc_html__('Hero Parallax', 'techland'),
                'id' => 'singleshopheroparallaxsubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Parallax Effect Display', 'techland'),
                        'subtitle' => esc_html__('You can enable or disable the site single page hero section parallax effect with switch option.', 'techland'),
                        'id' => 'single_shop_hero_parallax_visibility',
                        'type' => 'switch',
                        'default' => 0,
                        'on' => 'On',
                        'off' => 'Off',
                        'required' => array( 'single_shop_hero_visibility', '=', '1' )
                    ),
                    array(
                        'title' => esc_html__('Parallax Effect Type', 'techland'),
                        'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
                        'id' => 'single_shop_hero_parallax_type',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => array(
                            '' => esc_html__('Select type', 'techland'),
                            'scroll' => esc_html__('scroll', 'techland'),
                            'opacity' => esc_html__('opacity', 'techland'),
                            'scale' => esc_html__('scale', 'techland'),
                            'scroll-opacity' => esc_html__('scroll with opacity', 'techland'),
                            'scale-opacity' => esc_html__('scale with opacity', 'techland'),
                        ),
                        'default' => 'scroll',
                        'required' => array(
                            array( 'single_shop_hero_visibility', '=', '1' ),
                            array( 'single_shop_hero_parallax_visibility', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Parallax Speed', 'techland'),
                        'subtitle' => esc_html__('You can control parallax effect with speed option.', 'techland'),
                        'id' => 'single_shop_hero_parallax_speed',
                        'type' => 'slider',
                        'default' => .7,
                        'min' => 0.2,
                        'step' => .1,
                        'max' => 10,
                        'resolution' => 0.1,
                        'display_value' => 'text',
                        'required' => array(
                            array( 'single_shop_hero_visibility', '=', '1' ),
                            array( 'single_shop_hero_parallax_visibility', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Use Video', 'techland'),
                        'id' => 'single_shop_hero_use_video',
                        'type' => 'switch',
                        'default' => 0,
                        'on' => 'On',
                        'off' => 'Off',
                        'required' => array(
                            array( 'single_shop_hero_visibility', '=', '1' ),
                            array( 'single_shop_hero_parallax_visibility', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Video Type', 'techland'),
                        'subtitle' => esc_html__('Select hero section parallax effect type.', 'techland'),
                        'id' => 'single_shop_hero_video_type',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => array(
                            '' => esc_html__('Select type', 'techland'),
                            'social' => esc_html__('Social media ( youtube or vimeo )', 'techland'),
                            'mp4' => esc_html__('Local video (mp4)', 'techland'),
                            'webm' => esc_html__('Local video (webm)', 'techland'),
                            'ogv' => esc_html__('Local video (ogv)', 'techland')
                        ),
                        'default' => 'social',
                        'required' => array(
                            array( 'single_shop_hero_visibility', '=', '1' ),
                            array( 'single_shop_hero_parallax_visibility', '=', '1' ),
                            array( 'single_shop_hero_use_video', '=', '1' )
                        )
                    ),
                    array(
                        'title' => esc_html__('Video URL', 'techland'),
                        'subtitle' => esc_html__('Add your video url here.', 'techland'),
                        'id' => 'single_shop_hero_video_url',
                        'type' => 'text',
                        'default' => 'https://www.youtube.com/embed/1zG1iq9LZ2U',
                        'required' => array(
                            array( 'single_shop_hero_visibility', '=', '1' ),
                            array( 'single_shop_hero_parallax_visibility', '=', '1' ),
                            array( 'single_shop_hero_use_video', '=', '1' )
                        )
                    ),
                    // information
                    array(
                        'id' =>'info_single_shop_prlx',
                        'type' => 'info',
                        'style' => 'success',
                        'title' => esc_html__('Info!', 'techland'),
                        'icon' => 'el el-info-circle',
                        'customizer' => false,
                        'desc' => sprintf(esc_html__('If you want to use the hero parallax effect, please activate the %s.', 'techland'), '<b>Hero Section</b>'),
                        'required' => array( 'single_shop_hero_visibility', '!=', '1' )
                    )
                )
            );

            // SINGLE CONTENT SUBSECTION
            $sections[] = array(
                'title' => esc_html__('Single Content', 'techland'),
                'id' => 'singleshopcontentsubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Single Content Padding', 'techland'),
                        'subtitle' => esc_html__('You can set the top spacing of the site single page content.', 'techland'),
                        'id' =>'single_shop_content_pad',
                        'type' => 'spacing',
                        'output' => array('#nt-woo-single .nt-theme-inner-container'),
                        'mode' => 'padding',
                        'units' => array('em', 'px'),
                        'units_extended' => 'false',
                        'default' => array(
                            'padding-top' => '',
                            'padding-right' => '',
                            'padding-bottom' => '',
                            'padding-left' => '',
                            'units' => 'px'
                        )
                    )
                )
            );
            $sections[] =array(
                'title' => esc_html__('Shop Before/After Content', 'techland'),
                'id' => 'singleshopbeforeaftercontentsubsection',
                'subsection' => true,
                'icon' => 'el el-brush',
                'fields' => array(
                    array(
                        'title' => esc_html__('Before Single Content Template', 'techland'),
                        'subtitle' => esc_html__('Select your template for before single content.', 'techland'),
                        'id' => 'vc_before_singleshop_templates',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
                    ),
                    array(
                        'title' => esc_html__('After Single Content Template', 'techland'),
                        'subtitle' => esc_html__('Select your template for after single content.', 'techland'),
                        'id' => 'vc_after_singleshop_templates',
                        'type' => 'select',
                        'customizer' => true,
                        'options' => function_exists('techland_vc_saved_template_list') ? techland_vc_saved_template_list() : array('no-template' => esc_html__('No exists templates', 'techland')),
                    )
                )
            );
            return $sections;
        }
        add_filter('redux/options/'.$techland_pre.'/sections', 'techland_dynamic_section');
    }
}

/*************************************************
## WOOCOMMERCE HERO FUNCTION
*************************************************/

if(! function_exists('techland_woo_hero_section')) {
    function techland_woo_hero_section()
    {
        if (class_exists( 'WooCommerce' )) {

            if ( is_shop() ) {
                $name = 'shop';
                $h_t  = '' != techland_settings('shop_title') ? techland_settings('shop_title') : '';
            } elseif ( is_product() ) {
                $name = 'single_shop';
                $h_t  = '' != techland_settings('single_shop_title') ? techland_settings('single_shop_title') : '';
            } else {
                $name = 'shop';
                $h_t  = esc_html__( 'Shop', 'techland' );
            }

            $attr = array();

            $classes = 'start-screen page-id-'.get_the_ID().' hero-container bg-white';
            // page hero background image overlay
            $classes .= techland_settings($name.'_hero_overlay') != '' ? ' hero-overlay': '';
            // page hero options from theme-options panel
            $parallax = techland_settings($name.'_hero_parallax_visibility', '0');

            $h_bg = techland_settings($name.'_hero_bg');
            $classes .= !empty($h_bg['background-image']) || !empty($h_bg['background-color']) ? '' : ' default-bg';

            if ( $parallax == '1' ) {

                wp_enqueue_script('jarallax');

                $h_video      = techland_settings($name.'_hero_use_video', '0');
                $h_video_type = techland_settings($name.'_hero_video_type');
                $h_video_url  = techland_settings($name.'_hero_video_url');
                $speed        = techland_settings($name.'_hero_parallax_speed');
                $p_type       = techland_settings($name.'_parallax_type');

                $classes .= !empty($h_bg['background-image']) ? ' jarallax __bgimg' : '';
                $attr[]   = 'data-img-src="'.esc_url($h_bg['background-image']).'"';
                $attr[]   = $h_bg && $p_type ? 'data-type="'.$p_type.'"' : 'data-type="scroll"';
                $attr[]   = $h_bg && $h_bg['background-position'] ? 'data-img-position="'.esc_attr($h_bg['background-position']).'"' : 'data-img-position="50% 90%"';
                $attr[]   = $h_bg && $h_bg['background-size'] ? 'data-img-size="'.esc_attr($h_bg['background-size']).'"' : 'data-img-size="cover"';
                $attr[]   = $h_bg && $h_bg['background-repeat'] ? 'data-img-repeat="'.esc_attr($h_bg['background-repeat']).'"' : 'data-img-repeat="no-repeat"';
                $attr[]   = $h_bg && $speed ? 'data-speed="'.$speed.'"' : 'data-speed="0.7"';

                if ( $h_video == '1' && $h_video_url ) {
                    if ( $h_video_type == 'mp4' || $h_video_type == 'webm' || $h_video_type == 'ogv' ) {
                        $classes .= ' jarallax __bgvideo __localvideo';
                        $attr[]   = 'data-jarallax-video="'.$h_video_type.':'.esc_url($h_video_url).'"';
                    }
                    if ( $h_video_type == 'social' ) {
                        $classes .= ' jarallax __bgvideo __socialvideo';
                        $attr[]   = $h_video_url ? 'data-jarallax-video="'.esc_url($h_video_url).'"' : '';
                    }
                }
            }

            // page breadcrumbs
            $h_b = techland_settings('breadcrumbs_visibility', '0');
            // page hero text alignment
            $h_a = techland_settings($name.'_hero_alignment', 'text-center');

            $h_v = techland_settings($name.'_hero_visibility', '1');

            if ( $h_v != '0' ) {
                ?>
                <div id="nt-hero" class="<?php echo esc_attr($classes); ?>"<?php echo implode(' ', $attr ); ?>>
                    <div class="start-screen__content__item align-items-center <?php echo esc_attr($h_a); ?>">
                        <div class="container">
                            <div class="row">
                                <div class="col-12 col-md-12">
                                    <div class="hero-innner-last-child">
                                        <?php
                                        // page hero slogan
                                        if ( '' != techland_settings($name.'_slogan') ) {
                                            ?>
                                            <h6 class="nt-hero-subtitle __subtitle"><?php echo wp_kses(techland_settings($name.'_slogan'), techland_allowed_html()); ?></h6>
                                            <?php
                                        }
                                        // page hero title
                                        if ( $h_t ) {
                                            if ( is_product_category() || is_product_tag() ) {
                                                ?>
                                                <h1 class="nt-hero-title hero__title"><span><?php woocommerce_page_title(); ?></span></h1>
                                                <?php
                                            } else {
                                                ?>
                                                <h1 class="nt-hero-title hero__title"><span><?php echo wp_kses($h_t, techland_allowed_html()); ?></span></h1>
                                                <?php
                                            }
                                        } else {
                                            ?>
                                            <h1 class="nt-hero-title hero__title"><span><?php woocommerce_page_title(); ?></span></h1>
                                            <?php
                                        }
                                        // page hero description
                                        if ( is_product_category() || is_product_tag() ) {
                                            ?>
                                            <div class="nt-hero-description"><?php do_action( 'woocommerce_archive_description' ); ?></div>
                                            <?php
                                        } else {
                                            if ( '' != techland_settings($name.'_desc') ) {
                                                ?>
                                                <p class="nt-hero-description"><?php echo wp_kses(techland_settings($name.'_desc'), techland_allowed_html()); ?></p>
                                                <?php
                                            }
                                        }

                                        // page breadcrumbs
                                        if ( '1' == techland_settings('breadcrumbs_visibility', '0') ) {
                                            echo techland_breadcrumbs();
                                        }
                                        ?>

                                    </div><!-- End hero-innner-last-child -->
                                </div><!-- End hero-content -->
                            </div><!-- End column -->
                        </div><!-- End row -->
                    </div><!-- End container -->
                </div><!-- End hero-container -->
                <?php
            } // hide hero area
        }
    }
}


/*************************************************
## ADD CUSTOM CSS FOR WOOCOMMERCE
*************************************************/


if ( !function_exists( 'techland_woo_scripts' ) ) {
    function techland_woo_scripts()
    {
        wp_enqueue_style( 'techland-woocommerce-custom', get_template_directory_uri() . '/woocommerce/woocommerce-custom.css',false, '1.0');
        wp_enqueue_style( 'techland-woocommerce-update', get_template_directory_uri() . '/woocommerce/woocommerce-update.css',false, '1.0');
        wp_enqueue_script('techland-woocommerce-custom', get_template_directory_uri() . '/woocommerce/woocommerce-custom.js', array('jquery'), '1.0', true);
    }
    add_action( 'wp_enqueue_scripts', 'techland_woo_scripts' );
}


/*************************************************
## REMOVE WOOCOMMERCE DEFAULT PAGINATION
*************************************************/

remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );


/*************************************************
## ADD THEME SUPPORT FOR WOOCOMMERCE
*************************************************/

function techland_woo_theme_setup() {

    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' );

}
add_action( 'after_setup_theme', 'techland_woo_theme_setup' );


/*************************************************
## CHANGE NUMBER OF PRODUCTS PER ROW
*************************************************/

/**
* Change number of products that are displayed per page (shop page)
*/

if (!function_exists('techland_woo_shop_per_page')) {

    add_filter( 'loop_shop_per_page', 'techland_woo_shop_per_page', 20 );

    function techland_woo_shop_per_page( $cols ) {

        // $cols contains the current number of products per page based on the value stored on Options -> Reading
        // Return the number of products you wanna show per page.
        $cols = techland_settings('shop_perpage', '6');

        return $cols;

    }
}

/*************************************************
## CHANGE NUMBER OF PRODUCTS COLUMN
*************************************************/
/**
* Change number or products per row to 3
*/

if (!function_exists('techland_woo_loop_columns')) {

    add_filter('loop_shop_columns', 'techland_woo_loop_columns', 999);

    function techland_woo_loop_columns() {

        return techland_settings('shop_column', '2'); // 2 products per row

    }
}

/**
* Change number of related products output
*/
if (!function_exists('techland_woo_related_products_limit')) {

    add_filter( 'woocommerce_output_related_products_args', 'techland_woo_related_products_limit', 20 );
    function techland_woo_related_products_limit( $args ) {
        $args['posts_per_page'] = techland_settings('single_shop_related_count', '4'); // 4 related products
        $args['columns'] = techland_settings('single_shop_related_column', '3'); // arranged in 2 columns
        return $args;
    }
}

/*************************************************
## REGISTER SIDEBAR FOR WOOCOMMERCE
*************************************************/


if ( !function_exists( 'techland_woo_widgets_init' ) ) {
    function techland_woo_widgets_init() {

        //Shop page sidebar
        register_sidebar( array(
            'name' => esc_html__( 'Shop Page Sidebar', 'techland' ),
            'id' => 'shop-page-sidebar',
            'description' => esc_html__( 'These widgets for the Shop page.','techland' ),
            'before_widget' => '<div class="nt-sidebar-inner-widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h4 class="nt-sidebar-inner-widget-title widget-title">',
            'after_title' => '</h4>'
        ));
        //Single product sidebar
        register_sidebar( array(
            'name' => esc_html__( 'Shop Single Page Sidebar', 'techland' ),
            'id' => 'shop-single-sidebar',
            'description' => esc_html__( 'These widgets for the Shop Single page.','techland' ),
            'before_widget' => '<div class="nt-sidebar-inner-widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h4 class="nt-sidebar-inner-widget-title widget-title">',
            'after_title' => '</h4>'
        ));
    }
    add_action( 'widgets_init', 'techland_woo_widgets_init' );
}



/************************************************************
## ADD THEME CSS SETTINGS TO WOOCOMMERCE AND WP INLINE STYLE
*************************************************************/


if ( !function_exists( 'techland_woo_theme_css_options' ) ) {
    function techland_woo_theme_css_options() {

        /* CSS to output */

        $theCSS = '';

        $shop_theme_color = techland_settings('shop_theme_color');

        if ( '' != $shop_theme_color ) {
            $theme_color = $shop_theme_color;
            if ( '1' == $theme_color ) {
                $theme_color = '#30aafc';
            } elseif ( '2' == $theme_color ) {
                $theme_color = '#ff6833';
            } elseif ( '3' == $theme_color ) {
                $theme_color = '#341880';
            } elseif ( '4' == $theme_color || '8' == $theme_color ) {
                $theme_color = '#fccb30';
            } elseif ( '5' == $theme_color ) {
                $theme_color = '#db3a58';
            } elseif ( '6' == $theme_color ) {
                $theme_color = '#5ec05a';
            } elseif ( '7' == $theme_color ) {
                $theme_color = '#5b65bd';
            } elseif ( 'custom' == $theme_color ) {
                $theme_color = techland_settings('shop_custom_color');
            }

        } else {

            $theme_color = techland_settings('theme_color');
            if ( '1' == $theme_color ) {
                $theme_color = '#30aafc';
            } elseif ( '2' == $theme_color ) {
                $theme_color = '#ff6833';
            } elseif ( '3' == $theme_color ) {
                $theme_color = '#341880';
            } elseif ( '4' == $theme_color || '8' == $theme_color ) {
                $theme_color = '#fccb30';
            } elseif ( '5' == $theme_color ) {
                $theme_color = '#db3a58';
            } elseif ( '6' == $theme_color ) {
                $theme_color = '#5ec05a';
            } elseif ( '7' == $theme_color ) {
                $theme_color = '#5b65bd';
            } elseif ( 'custom' == $theme_color ) {
                $theme_color = techland_settings('theme_main_color');
            }
        }
        // css color
        $theCSS .= '.product.t-left:hover p.paragraph, .woocommerce #reviews #comments ol.commentlist li .comment-text p.meta .woocommerce-review__published-date , .woocommerce-info::before, a.showcoupon,.woocommerce a.added_to_cart, .woocommerce div.product p.price, .woocommerce div.product span.price, .nt-sidebar .product_list_widget ins .woocommerce-Price-amount.amount { color: '.$theme_color.'; }';
        //css border color
        $theCSS .= '.woocommerce-account .woocommerce-MyAccount-content p a, .woocommerce-error, .woocommerce-info, .woocommerce-message, .woocommerce div.product.sale div.images.woocommerce-product-gallery, .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover, .woocommerce div.product .woocommerce-tabs ul.tabs li.active a, .woocommerce-Address-title .edit {border-color:'.$theme_color.';}';
        $theCSS .= '.stack-title a:hover, .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover, .woocommerce div.product .woocommerce-tabs ul.tabs li.active a, .woocommerce a.added_to_cart, .woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-color:' .$theme_color. '; }';
        //css background color
        $theCSS .= '.woocommerce span.onsale,.single-product .form-submit input#submit:hover,.woocommerce #respond input#submit:hover,.button:hover,.woocommerce button.button:hover,.woocommerce a.button:hover, .woocommerce a.added_to_cart:hover,.woocommerce.single-product .entry-summary button.button.alt, .woocommerce div.product .woocommerce-tabs ul.tabs li.active, .woocommerce .woocommerce-ordering .nice-select .option:hover,.nt-sidebar form.woocommerce-product-search button,.woocommerce .widget_price_filter .price_slider_amount .button,.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: '.$theme_color.';}';

        //theme button bg color
        $theCSS .= '.button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .single-product .form-submit input#submit,a.add_to_cart_button,.single-product .form-submit input#submit:hover{ background-color:'. $theme_color .';border-color:'. $theme_color .'; } ';
        $theCSS .= '.button, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .single-product .form-submit input#submit:hover, a.added_to_cart:hover, .woocommerce ul.products li.product .button{  border-color:'. $theme_color .'; }';

        //theme button title color
        $theCSS .= '.button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .single-product .form-submit input#submit, a.add_to_cart_button, .woocommerce a.added_to_cart:hover, .woocommerce .woocommerce-ordering .nice-select .option:hover{color:#fff;}';
        $theCSS .= '.button, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .single-product .form-submit input#submit:hover, a.added_to_cart:hover{ border-color:'. $theme_color .'; }';

        $theCSS .= '.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: '.$theme_color.';}';

        /* Add CSS to techland-custom-style.css */
        wp_register_style( 'techland-woo-style', false );
        wp_enqueue_style( 'techland-woo-style' );
        wp_add_inline_style( 'techland-woo-style', $theCSS );

    }
    add_action( 'wp_enqueue_scripts', 'techland_woo_theme_css_options' );
}

add_filter( 'woocommerce_prevent_automatic_wizard_redirect', '__return_true' );

/*************************************************
## CUSTOM POST CLASS
*************************************************/

if (! function_exists('nt_techland_post_theme_class')) {
    function nt_techland_post_theme_class($classes)
    {

        if ( is_single() ) {
            $classes[] =  has_blocks() ? 'nt-single-has-block' : '';
        }

        return $classes;
    }
    add_filter('post_class', 'nt_techland_post_theme_class');
}