stephenharris / Event-Organiser

WordPress plug-in, Event Organiser, development repository
http://wordpress.org/extend/plugins/event-organiser/
GNU General Public License v3.0
99 stars 76 forks source link

Pro Beta: Missing closing div when no tickets available. #70

Closed dariobauer closed 11 years ago

dariobauer commented 11 years ago

When I use the 0.4.3-beta of pro, the <div id="eo-booking-form"> line is added into my html output code without a closing div bracket:

<div class="grid-2-3">

    <p class="meta-time"><span>Date &amp; Time</span> <time datetime="2013-06-01">1 June 2013 8:00 pm to 10:30 pm</time></p>

    <p class="meta-venue"><span>Venue</span> <a href="http://www.openair.co.nz/venue/hobbs-wharf-gulf-harbour ">Hobbs Wharf</a>, The Anchorage, Gulf Harbour</p>

    <p class="meta-synopsis"><span>Synopsis</span></p>
    <p>An expansion of the universe from Robert Ludlum&#8217;s novels, centered on a new hero whose stakes have been triggered by the events of the previous three films.</p>

    <div id="eo-booking-form"><h3 id="eo-booking">Booking</h3><p>This event has sold out.</p>

    <p class="meta-imdb"><span>Internet Movie DataBase (IMDb) Record</span> <a href="http://imdb.com/title/tt1194173">imdb.com/title/tt1194173</a></p>

</div><!-- /.grid-2-3 -->

This causes layout issues. Not sure if this is just me or a bug.

The reason that it places the booking form into the page at that location is that that is where I have Wordpress display the_content.

My PHP code:

<div class="grid-2-3">

    <p class="meta-time"><span>Date &amp; Time</span> <time datetime="<?php echo eo_get_the_start('Y-m-d'); ?>"><?php echo eo_get_the_start('j F Y g:i a'); ?> to <?php echo eo_get_the_end('g:i a'); ?></time></p>

    <p class="meta-venue"><span>Venue</span> <a href="<?php bloginfo('url'); ?>/venue/<?php echo eo_get_venue_slug(); ?> "><?php echo eo_get_venue_name(); ?></a>, <?php $address = eo_get_venue_address(); 
echo $address['address'].", ".$address['city']; ?></p>

    <p class="meta-synopsis"><span>Synopsis</span></p>
    <?php the_content(); ?>

    <?php if ( get_post_meta( $post->ID, '_cmb_imdb', true ) ) : ?>
        <p class="meta-imdb"><span>Internet Movie DataBase (IMDb) Record</span> <a href="http://<?php echo get_post_meta( $post->ID, '_cmb_imdb', true ); ?>"><?php echo get_post_meta( $post->ID, '_cmb_imdb', true ); ?></a></p>
    <?php endif; ?>

</div><!-- /.grid-2-3 -->
stephenharris commented 11 years ago

Thanks!

As in the other thread, please post Pro bugs to https://bitbucket.org/stephenharris/event-organiser-pro/issues?status=new&status=open - or e-mail me. Sorry, should have mentioned this in the e-mail!

stephenharris commented 11 years ago

Thanks, I've fixed this now. Will be in the next beta update.