예제 #1
0
 function __construct()
 {
     $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML'));
     $control_ops = array('width' => 400, 'height' => 350);
     parent::__construct('text', __('Text'), $widget_ops, $control_ops);
 }
예제 #2
0
 function widget($args, $instance)
 {
     global $current_user;
     if (am4PluginsManager::get("widgets")->isWidgetAvailable($this, $instance)) {
         $instance['text'] = do_shortcode($instance['text']);
         return parent::widget($args, $instance);
     }
 }
 function form($instance)
 {
     WP_Widget_Text::form($instance);
 }