diff --git a/woocommerce/widgets/widgets.php b/woocommerce/widgets/widgets.php new file mode 100644 index 0000000..ff7451f --- /dev/null +++ b/woocommerce/widgets/widgets.php @@ -0,0 +1,32 @@ +'; + $cart_icon = ''; + + ob_start(); +?> + + +widget_cssclass = 'woocommerce widget_minicart'; + $this->widget_description = __( "Display the user's Cart.", 'ycb' ); + $this->widget_id = 'woocommerce_widget_minicart'; + $this->widget_name = __( 'YCB Mini Cart', 'ycb' ); + $this->settings = array(); + + parent::__construct(); + } + + /** + * widget function. + * + * @see WP_Widget + * + * @param array $args + * @param array $instance + */ + public function widget( $args, $instance ) { + global $theme_options; + + $cart_icon = ''; + + $this->widget_start( $args, $instance ); + + echo '