https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/KMU-CSR-PLANER/wp-content/themes/betheme/functions/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/KMU-CSR-PLANER/wp-content/themes/betheme/functions/widgets/class-mfn-widgets.php
<?php
if (! defined('ABSPATH')) {
	exit; // Exit if accessed directly
}

if (! class_exists('Mfn_Widgets')) {
  class Mfn_Widgets
  {
		private $widgets = array(
			'comments',
			'flickr',
			'login',
			'menu',
			'posts',
			'tags',
			'attributes', // Shop Attributes widget
		);

  	/**
  	 * Mfn_Widgets constructor
  	 */

  	public function __construct()
  	{
  		// fires after all default WordPress widgets have been registered.
  		add_action('widgets_init', array($this, 'register'));
  	}

  	/**
  	 * Register new widgets
  	 */

  	public function register()
  	{
			foreach ( $this->widgets as $widget ){

				if($widget == 'attributes' && ( mfn_opts_get('variable-swatches') == 0 || !function_exists('is_woocommerce') ) ){
					continue;
				}

				$widget_class = 'Mfn_Widget_'. ucfirst($widget);

				require_once(get_theme_file_path('/functions/widgets/class-mfn-widget-'. $widget .'.php'));
				register_widget($widget_class);

			}
  	}

  }
}

new Mfn_Widgets();

https://t.me/RX1948 - 2025