Improve display for only one Branch
-
Explanation:
For people with only a single venue (i.e. only one branch), it looks unusual to the user to see a mention of ‘Meeting Rooms by Branch’. The branch link that autoscrolls to the relevant branch (that comes underneath the ‘Meeting Rooms by Branch’ heading, is also not needed).
I updated the code in /templates/public/publicShowRooms.php to resolve this issue:
<div id="bookaroom_main_container"> <?php if (count( $branchList ) !== 1) { ?> <h2> <?php _e( 'Meeting Rooms by Branch', 'book-a-room' ); ?> </h2> <?php } if ( empty( $branchList ) || count( $branchList ) < 1 ) { # No branches _e( 'There are currently no branches available to reserve a room.', 'book-a-room' ); } else { $linkList = array(); foreach( $branchList as $key => $val ) { $linkList[$val['branchDesc']] = '<a href="#branch-'.$val['branchID'].'">'.$val['branchDesc'].'</a>'; } if (count( $branchList ) !== 1) { echo '<p>'.implode( ' | ', $linkList ).'</p>'; } foreach( $branchList as $key => $val ) { ?>
I hope you consider including this in a future update ??
Thanks
Mike
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Improve display for only one Branch’ is closed to new replies.