clakeb / custom-business-locations

Add business locations to your WordPress site.
http://wordpress.org/plugins/custom-business-locations/
1 stars 1 forks source link

Seems that table cells are spanning to far #5

Open KingBain opened 10 years ago

KingBain commented 10 years ago

http://jpautobody.ca/?p=63

Looks like part of the map covers over the table on the left ?

KingBain commented 10 years ago

Had to change

class="small-12 columns"

to

class="small-11"

Contact
Phone:
Email:
                                <div class="row collapse">
                                    <table class="small-11">
                                        <thead><tr><th>Hours:</th><th></th></tr></thead>
                                        <tbody>
                                            <?php foreach ( $days as $day ) : ?>
                                                <?php $closed = ( $location[ strtolower( $day ) ]['closed'] == 'closed' ) ? true : false; ?>
                                                <?php $from = ( isset( $location[ strtolower( $day ) ]['from'] ) ) ? $location[ strtolower( $day ) ]['from']   : '12:00'; ?>
                                                <?php $from = date( 'g:i a', strtotime( $from ) ) ?>
                                                <?php $to = ( isset( $location[ strtolower( $day ) ]['to'] ) ) ? $location[ strtolower( $day ) ]['to']   : '12:00'; ?>
                                                <?php $to = date( 'g:i a', strtotime( $to ) ) ?>
                                                <tr>
                                                    <td><?php echo substr( $day, 0, 3 ) ?>.</td>
                                                    <?php if( $closed ) : ?>
                                                        <td><i>( Closed )</i></td>
                                                    <?php else : ?>
                                                        <td><i><?php echo $from ?> - <?php echo $to ?></i></td>
                                                    <?php endif; ?>
                                                </tr>
                                            <?php endforeach; ?>
                                        </tbody>
                                    </table>
                                </div>