source/php/Module/WpWidget/WpWidget.php
public static function displayWidget($widget, $instance = array())
    {
        if (array_key_exists($widget, \Modularity\Module\WpWidget\WpWidget::getWidgetIndexList()) && class_exists($widget)) {
            the_widget($widget, $instance);
        } else {
            echo "Error: Widget prohibited or class not found.";
        }
    }
public static function displayWidget($widget, $instance = array())
    {
        if (array_key_exists($widget, \Modularity\Module\WpWidget\WpWidget::getWidgetIndexList()) && class_exists($widget)) {
            the_widget($widget, $instance);
        } else {
            echo "Error: Widget prohibited or class not found.";
        }
    }
public static function displayWidget ( $ widget , $ instance = array ( ) ) { if ( array_key_exists ( $ widget , \ Modularity \ Module \ WpWidget \ WpWidget :: getWidgetIndexList ( ) ) && class_exists ( $ widget ) ) { the_widget ( $ widget , $ instance ) ; } else { echo "Error: Widget prohibited or class not found." ; } }
Displays the widget
@param  string $widget   The widget type
@param  array  $instance The widget instance
@return void
Displays the widget