rep__agency_opening_hours_html()
This function, is used to generate HTML representation for agency opening hours based on the provided agency post ID.
Namespace
REP_Malcolm
Parameters
$post_id
int
Key value pair of opening hours to render as html..
Return
string
Agency opening hours
Source
File: \includes\rep-helper-functions.php
function rep__agency_opening_hours_html( $post_id ){
return lp__data_list_html( array(
'mon' => [ 'label' => 'Mon', 'value' => lp__get_field_value( "open_hr_monday", $post_id )],
'tue' => [ 'label' => 'Tue', 'value' => lp__get_field_value( "open_hr_tuesday", $post_id )],
'wed' => [ 'label' => 'Wed', 'value' => lp__get_field_value( "open_hr_wednesday", $post_id )],
'thu' => [ 'label' => 'Thu', 'value' => lp__get_field_value( "open_hr_thursday", $post_id )],
'fri' => [ 'label' => 'Fri', 'value' => lp__get_field_value( "open_hr_friday", $post_id )],
'sat' => [ 'label' => 'Sat', 'value' => lp__get_field_value( "open_hr_saturday", $post_id )],
'sun' => [ 'label' => 'Sun', 'value' => lp__get_field_value( "open_hr_sunday", $post_id )],
), array( 'el_classes' => 'lp-opening-hours', 'el_class_prefix' => 'lp-' ) );
}