'', 'closed_text' => '', ), is_array( $atts ) ? $atts : array(), 'hourgate_status' ); return StoreStatus::render( $atts['open_text'], $atts['closed_text'] ); } /** * `[hourgate_hours title="" show_closures="no"]`: the same output * as the "Opening hours" block. Unknown attributes are ignored. * * @param array|string $atts Shortcode attributes. * @return string */ public static function hours( $atts ) { $atts = shortcode_atts( array( 'title' => '', 'show_closures' => 'no', ), is_array( $atts ) ? $atts : array(), 'hourgate_hours' ); return HoursTable::render( $atts['title'], $atts['show_closures'] ); } }