Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $booking, $wpdb, $wp_query;
- get_header( 'event' );
- ?>
- <div id="events_top"></div>
- <div id="primary">
- <div id="archive">
- <div class="featured_event">
- <?php
- $query3 = new WP_Query(array('cat'=>get_cat_ID('events')));
- if( $query3->have_posts() ) {
- ?><?php
- while($query3->have_posts()) {
- $query3->the_post();
- ?><?php the_post_thumbnail('large-thumb'); ?><?php the_content(); ?><?php wp_reset_query(); ?> <?php
- }
- } ?>
- </div>
- <div id="content" class="content_archive" role="main">
- <div id="wpmudevevents-wrapper">
- <h2><?php _e('Events', Eab_EventsHub::TEXT_DOMAIN); ?></h2>
- <!-- hr -->
- <?php if ( !have_posts() ) : ?>
- <p><?php $event_ptype = get_post_type_object( 'incsub_event' ); echo $event_ptype->labels->not_found; ?></p>
- <?php else: ?>
- <div class="wpmudevevents-list">
- <?php while ( have_posts() ) : the_post(); ?>
- <div class="event <?php echo Eab_Template::get_status_class($post); ?>">
- <div class="wpmudevevents-header">
- <h3><?php echo Eab_Template::get_event_link($post); ?></h3>
- <a href="<?php the_permalink(); ?>" class="wpmudevevents-viewevent"><?php _e('View event', Eab_EventsHub::TEXT_DOMAIN); ?></a>
- </div><?php the_post_thumbnail('small-thumb'); ?>
- <?php the_excerpt(); ?>
- <?php
- echo Eab_Template::get_event_details($post);
- ?>
- <?php
- echo Eab_Template::get_rsvp_form($post);
- ?>
- <!-- hr -->
- </div>
- <?php endwhile; ?>
- </div>
- <?php endif; ?>
- </div>
- <?php echo'<div class="upcoming_events">';
- if ( dynamic_sidebar('home_right_1') ) :
- else :
- endif;
- echo'</div>'; ?>
- </div>
- </div>
- </div>
- <div id="events_bottom"></div>
- <?php get_footer( 'event' ); ?>
- <?php
- echo' <div class="events_top_repeat"></div>';
- echo' <div class="events_bg_repeat"></div>';
- echo' <div class="events_bottom_repeat"></div>';
- ?>
- <script>
- $(document).ready(function(){
- var queryInterval = 1;
- setInterval(fix_menu_top, queryInterval);
- function fix_menu_top() {
- y=$("#events_top").offset().top;
- $(".events_top_repeat").css('top', y);
- }
- });
- </script>
- <script>
- $(document).ready(function(){
- var queryInterval = 1;
- setInterval(fix_menu_top, queryInterval);
- function fix_menu_top() {
- y=$("#events_bottom").offset().top;
- $(".events_bottom_repeat").css('top', y);
- }
- });
- </script>
- <script>
- $(document).ready(function(){
- var queryInterval = 1;
- setInterval(fix_menu_top, queryInterval);
- function fix_menu_top() {
- y=$("#primary").offset().top;
- $(".events_bg_repeat").css('top', y);
- z=$("#primary").height();
- $(".events_bg_repeat").css({'height': z});
- }
- });
- </script>
- <script>
- $(document).ready(function(){
- $('.featured_event hr').remove();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement