/** * Function for rendering the widget * * @param array $args * * @param array $instance */ public function widget($args, $instance) { global $wpdb; $input = array_merge($instance, $args); $this->plugin->set('wpdb', $wpdb); $this->plugin->set('dataConfig', new UTCW_DataConfig($input, $this->plugin)); $this->plugin->set('renderConfig', new UTCW_RenderConfig($input, $this->plugin)); $this->plugin->set('data', new UTCW_Data($this->plugin)); $render = new UTCW_Render($this->plugin); $render->render(); }