if (get_field('wpmt_performance_format') == '3D Digital') {
            echo "Presented in Fabulous 3D!";
        }
        ?>
                </div>
                <?php 
        //endif
        ?>
                <h3>Buy Tickets</h3>
                <div class="fs_showtimes h6_larger">

                    <?php 
        global $post;
        $backup = clone $post;
        if (wpmt_sessions_exist(get_field('wpmt_performance_id'))) {
            wpmt_display_sessions(get_field('wpmt_performance_id'), 7);
            $post = clone $backup;
            echo '<br /><br /><a href="' . wpmt_get_ticket_server_url() . '"></a>';
        } else {
            echo "No tickets available at this time";
            $post = clone $backup;
        }
        ?>
                </div>

                <?php 
        the_field('wpmt_performance_synopsis');
        ?>

                <?php 
        if (get_field('wpmt_performance_rt_rating')) {
function wpmt_cs_display_performance_listing()
{
    ?>

<div class="wpmt_performance_container">

	<div class="wpmt_performance_thumbnail_container">
		<a href="<?php 
    the_permalink();
    ?>
">
			<?php 
    if (get_field('wpmt_performance_poster')) {
        echo wp_get_attachment_image(get_field('wpmt_performance_poster'), $size = 'wpmt_poster', $icon = false, $attr = array('alt' => get_the_title($post), 'title' => get_the_title($post), 'id' => 'poster'));
    } else {
        echo '<img src="http://placehold.it/134x193?text=Performance+Thumbnail" id="thumbnail">';
    }
    ?>
		</a>
	</div>
	<div class="wpmt_performance_info_container">
		<div class="wpmt_performance_title">
			<a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a>
		</div>

		<div class="wpmt_performance_rating">
			<?php 
    echo "<h4>";
    if (get_field('wpmt_performance_genre')) {
        the_field('wpmt_performance_genre');
        echo '<br />';
    }
    if (get_field('wpmt_performance_rating')) {
        the_field('wpmt_performance_rating');
    }
    if (get_field('wpmt_performance_rating') && get_field('wpmt_performance_duration')) {
        echo " / ";
    }
    if (get_field('wpmt_performance_duration')) {
        the_field('wpmt_performance_duration');
        echo " mins";
    }
    echo "<h4>";
    ?>
		</div>

		<div class="wpmt_performance_description">
			<p>
			<?php 
    echo wp_trim_words(get_field('wpmt_performance_synopsis'), 40, '...');
    ?>
			<a href="<?php 
    the_permalink();
    ?>
">[MORE]</a>
			</p>
		</div>

		Buy Tickets

		<div class="fs_showtimes">
			<?php 
    global $post;
    $backup = clone $post;
    if (wpmt_sessions_exist(get_field('wpmt_performance_id'))) {
        wpmt_display_sessions(get_field('wpmt_performance_id'), 2);
        $post = clone $backup;
    } else {
        $post = clone $backup;
        echo "No tickets available at this time";
    }
    ?>
		</div>
	</div> <!-- end wpmt_performance_info_container -->
</div> <!-- end wpmt_performance_container -->

<?php 
}
Пример #3
0
                    <div class="fclear"><p><strong>Reviews: </strong></p><?php 
            the_field('wpmt_film_reviews');
            ?>
</div>
                <?php 
        }
        ?>

                <div><br />Buy Tickets</div>

                <div class="fs_showtimes">
                    <?php 
        global $post;
        $backup = clone $post;
        if (wpmt_sessions_exist(get_field('wpmt_film_id'))) {
            wpmt_display_sessions(get_field('wpmt_film_id'), 7);
            $post = clone $backup;
            echo '<br /><br /><a href="' . wpmt_get_ticket_server_url() . '">[SEE ALL DATES AND TIMES]</a>';
        } else {
            echo "No tickets available at this time";
            $post = clone $backup;
        }
        ?>
                </div>

            </div> <!-- end #fd_description -->


        </div> <!-- end #fd_film -->

Пример #4
0
function wpmt_display_film()
{
    ?>

	<div id='container'>

		<!-- Film Header -->
		<div class="row">
			<div class="col-md-10">
				<h3><a href = "<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></h3>
				<p class="text-muted"><?php 
    the_field('wpmt_film_genre');
    ?>
 / <?php 
    the_field('wpmt_film_rating');
    ?>
</p>
			</div>
		</div><!-- end of Film Header -->


		<!-- Film Body -->
		<hr /><br />
		<div class="row">
			<div class="col-md-4">
				<?php 
    if (!get_field('wpmt_film_youtube_url')) {
        ?>
					<iframe width="640" height="360" src="<?php 
        echo get_field('wpmt_film_youtube_url') . '?rel=0&amp;showinfo=0';
        ?>
" frameborder="0" allowfullscreen></iframe>
				<?php 
    }
    ?>
			</div>

			<div class="col-md-4">
				<?php 
    echo wp_get_attachment_image(get_field('wpmt_film_poster'), $size = 'wpmt_poster', $icon = false, $attr = array('alt' => get_the_title($post), 'title' => get_the_title($post)));
    ?>
			</div>

			<div class="col-md-4">
				<?php 
    echo wp_get_attachment_image(get_field('wpmt_film_image'), $size = 'wpmt_image', $icon = false, $attr = array('alt' => get_the_title($post), 'title' => get_the_title($post)));
    ?>
			</div>


			<div class="col-md-8">
				<p class="lead"><?php 
    the_field('wpmt_film_synopsis');
    ?>
</p>

				<br />
				<?php 
    //save the post
    global $post;
    $backup = clone $post;
    ?>
				<!-- list the date and times -->
				<?php 
    if (wpmt_sessions_exist(get_field('wpmt_film_id'))) {
        wpmt_display_sessions(get_field('wpmt_film_id'));
    } else {
        echo "No tickets available at this time";
    }
    ?>

				<?php 
    //restore the post
    $post = clone $backup;
    ?>
			</div>

		</div><!-- end of Film Body -->


		<!-- people listing -->
		<br /><br /><hr />
		<div class="row">

			<?php 
    if (get_field('wpmt_film_directors')) {
        ?>
				<div class="col-md-4">
					<h4>Directors</h4>
					<?php 
        the_field('wpmt_film_directors');
        ?>
				</div>
			<?php 
    }
    ?>

			<?php 
    if (get_field('wpmt_film_actors')) {
        ?>
				<br />
				<div class="col-md-4">
					<h4>Actors</h4>
					<?php 
        the_field('wpmt_film_actors');
        ?>
				</div>
			<?php 
    }
    ?>

		</div><!-- end of people listing -->

		<br /><hr />

	</div><!-- end of container -->

<?php 
}
Пример #5
0
function wpmt_display_all_sessions()
{
    $args = array('post_type' => 'WPMT_Film', 'posts_per_page' => '-1', 'meta_query' => array(array('key' => 'wpmt_film_id', 'orderby' => 'meta_value', 'order' => 'ASC')));
    $my_query3 = new WP_Query($args);
    $film_id = null;
    if ($my_query3->have_posts()) {
        while ($my_query3->have_posts()) {
            $my_query3->the_post();
            if (wpmt_sessions_exist(get_field('wpmt_film_id'))) {
                echo '<h5>' . get_the_title() . '</h5>';
                wpmt_display_sessions(get_field('wpmt_film_id'), 5);
            }
        }
    }
}
Пример #6
0
function wpmt_cs_display_film_listing()
{
    ?>

	<div class="fs_film">

		<div class="fs_poster">
			<a href="<?php 
    the_permalink();
    ?>
">
				<?php 
    if (get_field('wpmt_film_poster')) {
        echo wp_get_attachment_image(get_field('wpmt_film_poster'), $size = 'wpmt_poster', $icon = false, $attr = array('alt' => get_the_title($post), 'title' => get_the_title($post), 'id' => 'poster'));
    } else {
        echo '<img src="http://placehold.it/134x193?text=Film+Poster" id="poster">';
    }
    ?>
			</a>
		</div>

		<div class="fs_title">
			<a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a>
		</div>

		<div class="fs_rating">
			<?php 
    if (get_field('wpmt_film_genre')) {
        the_field('wpmt_film_genre');
        echo '<br />';
    }
    ?>
			<?php 
    if (get_field('wpmt_film_rating')) {
        the_field('wpmt_film_rating');
    }
    ?>
			<?php 
    if (get_field('wpmt_film_rating') && get_field('wpmt_film_duration')) {
        echo " / ";
    }
    ?>
			<?php 
    if (get_field('wpmt_film_duration')) {
        the_field('wpmt_film_duration');
        echo " mins";
    }
    ?>
		</div>

		<?php 
    //if ( get_field('wpmt_screen_id') == '4' || get_field('wpmt_film_format') == '3D Digital' ) :
    ?>
		<div class="fs_sr_3d">
			<?php 
    //if ( get_field('wpmt_screen_id') == '4' ) 			{ echo "Presented in our intimate 18-seat screening room"; }
    ?>
			<?php 
    if (get_field('wpmt_film_format') == '3D Digital') {
        echo "Presented in Fabulous 3D!";
    }
    ?>
		</div>
		<?php 
    //endif
    ?>

		<div class="fs_description">
			<?php 
    echo wp_trim_words(get_field('wpmt_film_synopsis'), 40, '...');
    ?>
			<a href="<?php 
    the_permalink();
    ?>
">[MORE]</a>
		</div>

		Buy Tickets

		<div class="fs_showtimes">
			<?php 
    global $post;
    $backup = clone $post;
    if (wpmt_sessions_exist(get_field('wpmt_film_id'))) {
        wpmt_display_sessions(get_field('wpmt_film_id'), 2);
        $post = clone $backup;
        echo '<br /><br /><a href="' . get_permalink() . '">[MORE]</a>';
    } else {
        $post = clone $backup;
        echo "No tickets available at this time";
    }
    ?>
		</div>

		<div class="clear">&nbsp;</div>

	</div> <!-- end fs_film -->

<?php 
}