# essential-widgets/1.3/includes/widgets/widgets.php

Essential Widgets, version 1.3. 21 lines.

- Page: https://pluginprobe.com/plugins/essential-widgets/1.3/code/includes/widgets/widgets.php
- Raw: https://pluginprobe.com/plugins/essential-widgets/1.3/raw/includes/widgets/widgets.php
- Modified: 2018-12-12T11:14:18+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/essential-widgets/1.3/code/includes/widgets/widgets.php#L10-L20`.

```php
<?php
/**
 * The template for adding Custom Sidebars and Widgets
 *
 * @package Essential_Widgets
 */

// Load Archives Widget
// 
$option = essential_widgets_get_options();
$widget_list = essential_widgets_list();

foreach( $widget_list as $key => $value ) {
	if( 1 == $option[ $key ] ) {
		$widget_file = str_replace( '_', '-', $key );

		// Enqueue active widget files 
		include plugin_dir_path( __FILE__ ) . 'class-' . $widget_file . '.php';
	}
}

```
