__( 'Displays the contents of the shopping cart for Artistography', $i18n_domain ), ) // Args ); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { GLOBAL $i18n_domain; $orders = new Orders; // outputs the content of the widget echo $args['before_widget']; if ( ! empty( $instance['title'] ) ) { echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title']; } echo $orders->showBasicCart(); echo ""; echo $args['after_widget']; } /** * Outputs the options form on admin * * @param array $instance The widget options */ public function form( $instance ) { GLOBAL $i18n_domain; // outputs the options form on admin $title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Shopping Cart', $i18n_domain ); ?>