/** * Prints widget on the public side */ function widget($args, $instance) { if (q2w3_inc_manager::check_visibility($this->inc_pages, $this->exc_pages, $this->hide_from_admin)) { echo $args['before_widget']; // Before the widget if ($this->widget_public_title) { echo $args['before_title'] . $this->widget_public_title . $args['after_title']; } // The title if not blanc echo '<div>'; eval('?>' . q2w3_inc_manager::code_align(htmlspecialchars_decode($this->code, ENT_QUOTES), $this->code_align)); // widget code echo '</div>'; echo $args['after_widget']; // After the widget } }