?AlkantarClanX12

Your IP : 216.73.216.177


Current Path : /home/r/a/n/rankinh/lynkandco/wp-content/plugins/nexteuv-pro/modules/woocommerce/category/
Upload File :
Current File : /home/r/a/n/rankinh/lynkandco/wp-content/plugins/nexteuv-pro/modules/woocommerce/category/index.php

<?php

/**
 * Listings - Category
 */


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

if( !class_exists( 'NextEuv_Pro_Listing_Category' ) ) {

    class NextEuv_Pro_Listing_Category {

        private static $_instance = null;

        private $settings;

        public static function instance() {

            if ( is_null( self::$_instance ) ) {
                self::$_instance = new self();
            }

            return self::$_instance;

        }

        function __construct() {

            /* Load Modules */
                $this->load_modules();

            /* Loop Shop Per Page */
                add_filter( 'loop_shop_per_page', array ( $this, 'woo_loop_shop_per_page' ) );

        }

        /*
        Load Modules
        */
            function load_modules() {

                /* Customizer */
                    include_once NEXTEUV_PRO_DIR_PATH.'modules/woocommerce/category/customizer/index.php';

            }

        /*
        Loop Shop Per Page
        */
            function woo_loop_shop_per_page( $count ) {

                if( is_product_category() ) {
                    $count = nexteuv_customizer_settings('wdt-woo-category-page-product-per-page' );
                }

                return $count;

            }

    }

}


if( !function_exists('nexteuv_listing_category') ) {
	function nexteuv_listing_category() {
		return NextEuv_Pro_Listing_Category::instance();
	}
}

nexteuv_listing_category();