HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/gopalak/public_html/wp-content/themes/open-shop/customizer/section/woo/shop.php
<?php
$wp_customize->add_setting('open_shop_prd_view', array(
        'default'        => 'grid-view',
        'capability'     => 'edit_theme_options',
        'sanitize_callback' => 'open_shop_sanitize_select',
    ));
    $wp_customize->add_control('open_shop_prd_view', array(
        'settings' => 'open_shop_prd_view',
        'label'   => __('Display Product View','open-shop'),
        'description' => __('(Select layout to display products at shop page.)','open-shop'),
        'section' => 'open-shop-woo-shop-page',
        'type'    => 'select',
        'choices' => array(
        'grid-view'   => __('Grid','open-shop'), 
        'list-view'     => __('List','open-shop'),
        
        )
    )); 
/************************/
//Shop product pagination
/************************/
   $wp_customize->add_setting('open_shop_pagination', array(
        'default'        => 'num',
        'capability'     => 'edit_theme_options',
        'sanitize_callback' => 'open_shop_sanitize_select',
    ));
    $wp_customize->add_control('open_shop_pagination', array(
        'settings' => 'open_shop_pagination',
        'label'   => __('Post Pagination','open-shop'),
        'section' => 'open-shop-woo-shop-page',
        'type'    => 'select',
        'choices' => array(
        'num'     => __('Numbered','open-shop'),
        'click'   => __('Load More (Pro)','open-shop'), 
        'scroll'  => __('Infinite Scroll (Pro)','open-shop'), 
        )
    ));

/****************/
// doc link
/****************/
$wp_customize->add_setting('open_shop_shop_page_more', array(
    'sanitize_callback' => 'open_shop_sanitize_text',
    ));
$wp_customize->add_control(new Open_Shop_Misc_Control( $wp_customize, 'open_shop_shop_page_more',
            array(
        'section'     => 'open-shop-woo-shop-page',
        'type'        => 'doc-link',
        'url'         => 'https://themehunk.com/docs/open-shop/#shop-page',
        'description' => esc_html__( 'To know more go with this', 'open-shop' ),
        'priority'   =>  100,
    )));