Created
July 23, 2015 08:52
-
-
Save caercam/21e69f79efb900c7476d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Movie Headbox Overview Tab Template view | |
* | |
* Showing a movie's headbox overview tab, Allociné style. | |
* | |
* @since 2.1.4 | |
* | |
* @uses $overview | |
*/ | |
?> | |
<div class="wpmoly headbox allocine movie poster"> | |
<?php if ( ! empty( $poster ) ) : ?> | |
<?php echo $poster; ?> | |
<?php endif; ?> | |
</div> | |
<div class="wpmoly headbox allocine movie section main"> | |
<?php if ( ! empty( $meta['release_date'] ) ) : ?> | |
<div class="wpmoly headbox allocine movie meta release_date"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Release Date', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><strong><?php echo $meta['release_date']; ?></strong></span> | |
<?php if ( ! empty( $meta['runtime'] ) && '—' != $meta['runtime'] ) : ?> | |
<span class="wpmoly headbox allocine movie meta value">(<?php echo $meta['runtime']; ?>)</span> | |
<?php endif; ?> | |
</div> | |
<?php endif; ?> | |
<div class="wpmoly headbox allocine movie meta director"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Directed by', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['director']; ?></span> | |
</div> | |
<div class="wpmoly headbox allocine movie meta cast"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Starring', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['cast']; ?></span> | |
</div> | |
<div class="wpmoly headbox allocine movie meta writer"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Writer', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['writer']; ?></span> | |
</div> | |
<div class="wpmoly headbox allocine movie meta composer"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Composer', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['composer']; ?></span> | |
</div> | |
<div class="wpmoly headbox allocine movie meta genres"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Genres', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['genres']; ?></span> | |
</div> | |
<div class="wpmoly headbox allocine movie meta production_countries"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Country', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['production_countries']; ?></span> | |
</div> | |
<div class="wpmoly headbox allocine movie meta rating"> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Rating', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $rating; ?></span> | |
</div> | |
</div> | |
<div id="movie-headbox-<?php echo $id ?>-details" class="wpmoly headbox allocine movie section details"> | |
<h3 class="wpmoly headbox allocine movie meta sub-title"><?php _e( 'Synopsis and Details', 'wpmovielibrary' ); ?></h3> | |
<p><?php echo $meta['overview']; ?></p> | |
<div class="wpmoly headbox allocine movie subsection"> | |
<ul> | |
<li> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Year of production', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['year']; ?></span> | |
</li> | |
<li> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Release Date', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['release_date']; ?></span> | |
</li> | |
<li> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Local Release Date', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['local_release_date']; ?></span> | |
</li> | |
</ul> | |
</div> | |
<div class="wpmoly headbox allocine movie subsection"> | |
<ul> | |
<li> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Revenue', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['revenue']; ?></span> | |
</li> | |
<li> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Budget', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['budget']; ?></span> | |
</li> | |
<li> | |
<span class="wpmoly headbox allocine movie meta label"><?php _e( 'Language', 'wpmovielibrary' ); ?> </span> | |
<span class="wpmoly headbox allocine movie meta value"><?php echo $meta['spoken_languages']; ?></span> | |
</li> | |
</ul> | |
</div> | |
<div style="clear:both"></div> | |
<div class="wpmoly headbox allocine movie meta more"><a href="#" title="More Details" onclick="wpmoly_headbox.toggle( 'details', <?php echo $id ?> ); return false;"><span class="wpmolicon icon-plus"></span></a></div> | |
</div> | |
<hr /> | |
<div id="movie-headbox-<?php echo $id ?>-photos" class="wpmoly headbox allocine movie section images"> | |
<h3 class="wpmoly headbox allocine movie meta sub-title"><?php _e( 'Photos', 'wpmovielibrary' ); ?></h3> | |
<?php echo $images; ?> | |
<div class="wpmoly headbox allocine movie meta more"><a href="#" title="More Images" onclick="wpmoly_headbox.toggle( 'photos', <?php echo $id ?> ); return false;"><span class="wpmolicon icon-plus"></span></a></div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment