PluginProbe
Essential Widgets / 1.8
Essential Widgets v1.8
3.2.1 3.3 3.2 trunk 1.0.0 1.0.1 1.1 1.2 1.2.1 1.2.2 1.3 1.4 1.4.1 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.8 1.9 2.0 2.1 2.2 All 31 releases
essential-widgets / includes / widgets / widgets.php

widgets.php in Essential Widgets 1.8, at includes/widgets/widgets.php

21 lines 452 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The template for adding Custom Sidebars and Widgets
4 *
5 * @package Essential_Widgets
6 */
7
8 // Load Archives Widget
9 //
10 $option = essential_widgets_get_options();
11 $widget_list = essential_widgets_list();
12
13 foreach( $widget_list as $key => $value ) {
14 if( 1 == $option[ $key ] ) {
15 $widget_file = str_replace( '_', '-', $key );
16
17 // Enqueue active widget files
18 include plugin_dir_path( __FILE__ ) . 'class-' . $widget_file . '.php';
19 }
20 }
21