Server IP : 66.29.132.122 / Your IP : 3.149.23.247 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/ |
Upload File : |
<?php /** * Kkart Widget Functions * * Widget related functions and widget registration. * * @package Kkart\Functions * @version 2.3.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Include widget classes. require_once dirname( __FILE__ ) . '/abstracts/abstract-kkart-widget.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-cart.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-layered-nav-filters.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-layered-nav.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-price-filter.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-product-categories.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-product-search.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-product-tag-cloud.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-products.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-rating-filter.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-recent-reviews.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-recently-viewed.php'; require_once dirname( __FILE__ ) . '/widgets/class-kkart-widget-top-rated-products.php'; /** * Register Widgets. * * @since 2.3.0 */ function kkart_register_widgets() { register_widget( 'KKART_Widget_Cart' ); register_widget( 'KKART_Widget_Layered_Nav_Filters' ); register_widget( 'KKART_Widget_Layered_Nav' ); register_widget( 'KKART_Widget_Price_Filter' ); register_widget( 'KKART_Widget_Product_Categories' ); register_widget( 'KKART_Widget_Product_Search' ); register_widget( 'KKART_Widget_Product_Tag_Cloud' ); register_widget( 'KKART_Widget_Products' ); register_widget( 'KKART_Widget_Recently_Viewed' ); if ( 'yes' === get_option( 'kkart_enable_reviews', 'yes' ) ) { register_widget( 'KKART_Widget_Top_Rated_Products' ); register_widget( 'KKART_Widget_Recent_Reviews' ); register_widget( 'KKART_Widget_Rating_Filter' ); } } add_action( 'widgets_init', 'kkart_register_widgets' );