# firebox/1.1.1/Inc/Core/Widgets.php

FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin &amp; Cart Abandonment, version 1.1.1. 47 lines.

- Page: https://pluginprobe.com/plugins/firebox/1.1.1/code/Inc/Core/Widgets.php
- Raw: https://pluginprobe.com/plugins/firebox/1.1.1/raw/Inc/Core/Widgets.php
- Modified: 2022-07-07T12:43:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/firebox/1.1.1/code/Inc/Core/Widgets.php#L10-L20`.

```php
<?php
/**
 * @package         FireBox
 * @version         1.1.1 Free
 * 
 * @author          FirePlugins <info@fireplugins.com>
 * @link            https://www.fireplugins.com
 * @copyright       Copyright © 2022 FirePlugins All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

namespace FireBox\Core;

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

class Widgets
{
	/**
	 * All Plugin Widgets
	 * 
	 * @return  array
	 */
	private $widgets = [
		'FireBoxButton'
	];
	
    public function __construct()
    {
		add_action('widgets_init', [$this, 'registerAllWidgets']);
	}
	
	/**
	 * Registers all widgets
	 * 
	 * @return  void
	 */
	public function registerAllWidgets()
	{
		foreach ($this->widgets as $widget)
		{
			register_widget('\FireBox\Core\Widgets\\' . $widget);
		}
	}
}
```
