• 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)
  • Thread Starter speedy_snail

    (@speedy_snail)

    I’ve also made some minor updates to the following files found here (/wp-content/plugins/book-a-room/templates/public/)

    • publicShowRooms.php
    • publicRequest.php
    • error.php

    The update means that the usual Step 1. is skipped (choosing a branch), and instead it starts from the usual Step 2. (Step 2. is renamed to Step 1. obviously, and Step 3. to Step 2. etc).

    This change only occurs if there is one branch.

    Hope it helps.

    A copy of the files (with changes) can be found here:

    https://www.dropbox.com/sh/yf8velsqulfwo1v/AAAc8u4T82WGyNw2ifhEvGVaa?dl=0

    Thanks!

    • This reply was modified 6 years, 3 months ago by speedy_snail.
Viewing 1 replies (of 1 total)
  • The topic ‘Improve display for only one Branch’ is closed to new replies.