| @@ 26-42 (lines=17) @@ | ||
| 23 | * @since 1.1.0 |
|
| 24 | * @return void |
|
| 25 | */ |
|
| 26 | public function __construct() {
|
|
| 27 | /* Widget variable settings. */ |
|
| 28 | $this->woo_widget_cssclass = 'widget_sensei_category_courses'; |
|
| 29 | $this->woo_widget_description = __( 'This widget will output a list of Courses for a specific category.', 'woothemes-sensei' ); |
|
| 30 | $this->woo_widget_idbase = 'sensei_category_courses'; |
|
| 31 | $this->woo_widget_title = __( 'Sensei - Category Courses', 'woothemes-sensei' ); |
|
| 32 | ||
| 33 | /* Widget settings. */ |
|
| 34 | $widget_ops = array( 'classname' => $this->woo_widget_cssclass, 'description' => $this->woo_widget_description ); |
|
| 35 | ||
| 36 | /* Widget control settings. */ |
|
| 37 | $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => $this->woo_widget_idbase ); |
|
| 38 | ||
| 39 | /* Create the widget. */ |
|
| 40 | parent::__construct( $this->woo_widget_idbase, $this->woo_widget_title, $widget_ops, $control_ops ); |
|
| 41 | ||
| 42 | } // End __construct() |
|
| 43 | ||
| 44 | /** |
|
| 45 | * Display the widget on the frontend. |
|
| @@ 26-41 (lines=16) @@ | ||
| 23 | * @since 1.1.0 |
|
| 24 | * @return void |
|
| 25 | */ |
|
| 26 | public function __construct() {
|
|
| 27 | /* Widget variable settings. */ |
|
| 28 | $this->woo_widget_cssclass = 'widget_sensei_course_categories'; |
|
| 29 | $this->woo_widget_description = __( 'This widget will output a list of Course Categories.', 'woothemes-sensei' ); |
|
| 30 | $this->woo_widget_idbase = 'sensei_course_categories'; |
|
| 31 | $this->woo_widget_title = __( 'Sensei - Course Categories', 'woothemes-sensei' ); |
|
| 32 | ||
| 33 | /* Widget settings. */ |
|
| 34 | $widget_ops = array( 'classname' => $this->woo_widget_cssclass, 'description' => $this->woo_widget_description ); |
|
| 35 | ||
| 36 | /* Widget control settings. */ |
|
| 37 | $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => $this->woo_widget_idbase ); |
|
| 38 | ||
| 39 | /* Create the widget. */ |
|
| 40 | parent::__construct( $this->woo_widget_idbase, $this->woo_widget_title, $widget_ops, $control_ops ); |
|
| 41 | } // End __construct() |
|
| 42 | ||
| 43 | /** |
|
| 44 | * Display the widget on the frontend. |
|