File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,15 +82,6 @@ class DateFilter extends BaseComponent {
8282 */
8383 protected $ placement = self ::PLACEMENT_BOTTOM_START ;
8484
85- /**
86- * CSS class name used for the icon element.
87- *
88- * @since 4.0.0
89- *
90- * @var string
91- */
92- protected $ icon_class ;
93-
9485 /**
9586 * Button size.
9687 *
@@ -181,26 +172,13 @@ public function placement( string $placement ): self {
181172 return $ this ;
182173 }
183174
184- /**
185- * Set Icon Class.
186- *
187- * @since 4.0.0
188- *
189- * @param string $icon_class CSS class name used for the icon element.
190- *
191- * @return self
192- */
193- public function icon_class ( string $ icon_class ): self {
194- $ this ->icon_class = $ icon_class ;
195- return $ this ;
196- }
197-
198175 /**
199176 * Enable or disable the display of the label text.
200177 *
201178 * @since 4.0.0
202179 *
203180 * @param bool $show_label True to show the label, false to hide it.
181+ *
204182 * @return $this
205183 */
206184 public function show_label ( bool $ show_label ) {
@@ -234,10 +212,6 @@ public function get(): string {
234212 $ popover_classes = 'tutor-popover ' ;
235213 $ icon = Icon::CALENDAR_2 ;
236214
237- if ( ! empty ( $ this ->icon_class ) ) {
238- $ button_classes .= " {$ this ->icon_class }" ;
239- }
240-
241215 if ( $ is_range ) {
242216 $ calendar_options = array (
243217 'type ' => 'multiple ' ,
You can’t perform that action at this time.
0 commit comments