Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template for the Detailed mode - artist single page.
- */
- get_header();
- ?>
- <div class="container-fluid">
- <div class="row">
- <div class="col-xs-12">
- <ul class="list-group">
- <li class="list-group-item">
- <div class="ap-header">
- <div class="row">
- <div class="col-xs-12 col-sm-7 col-md-8">
- <div class="pull-left">
- <div class="ap-header-title">
- <h5><?php the_title(); ?></h5>
- <h4>
- <small><?php _e( 'EDIT VIEW', 'tuffaha' ); ?></small>
- </h4>
- </div> <!-- end ap-header-title -->
- </div>
- </div>
- <div class="col-xs-12 col-sm-5 col-md-4">
- <div class="pull-right">
- <div class="ap-header-views">
- <div class="btn-group">
- <a href="?view_type=simple" class="btn btn-default"><?php _e( 'SIMPLE', 'tuffaha' ); ?></a>
- <a href="?view_type=detailed" class="btn btn-default"><?php _e( 'DETAILED', 'tuffaha' ); ?></a>
- <a href="?view_type=edit" class="btn btn-default active"><?php _e( 'EDIT', 'tuffaha' ); ?></a>
- </div>
- </div> <!-- end ap-header-views -->
- </div>
- </div>
- </div>
- </div> <!-- end ap-header -->
- </li>
- <li class="list-group-item">
- <div class="ap-content">
- <div class="row">
- <div class="col-xs-12 col-sm-3 col-sm-push-9 col-md-4 col-md-push-8">
- <div class="ap-content-featimg">
- <a href="#" class="thumbnail" onclick="event.preventDefault()">
- <img class="thumb" src="<?php echo Tuffaha::get_post_img( get_the_ID(), 720, 720, true ); ?>" alt="<?php echo Tuffaha::get_alt_image(); ?>">
- </a>
- <input type="file" id="featured" name="featured" accept="image/*" class="hidden"/>
- <div class="ap-gallery-item-control">
- <div class="ap-gallery-item-buttons">
- <i class="icon-like"></i>
- <i class="icon-dislike"></i>
- <i class="icon-pending"></i>
- <i class="icon-delete"></i>
- </div>
- <div class="ap-gallery-item-info">
- <span><a href="#"><?php _e( 'Suggest better image', 'tuffaha' ); ?></a></span>
- </div>
- </div>
- </div> <!-- end ap-content-featimg -->
- </div>
- <div class="col-xs-12 col-sm-9 col-sm-pull-3 col-md-8 col-md-pull-4">
- <div class="ap-content-terms">
- <dl class="dl-horizontal">
- <?php $boxes = get_option( 'post_boxes' );
- $boxes_positions = get_option( 'post_box_position' );
- foreach ( $boxes_positions as $position => $box_id ) {
- $post_cats = wp_get_post_terms( get_the_ID(), 'category', array(
- 'fields' => 'ids'
- ) );
- $post_tags = wp_get_post_terms( get_the_ID(), 'post_tag', array(
- 'fields' => 'ids'
- ) );
- // if intersection of box cats/tags with post cats/tags aren't equal with box cats/tags
- if ( count( array_intersect( $post_cats, $boxes[ $box_id]['categories'] ) ) != count( $boxes[ $box_id]['categories'] )
- && count( array_intersect( $post_tags, $boxes[ $box_id]['tags'] ) ) != count( $boxes[ $box_id]['tags'] ) ) {
- continue; // continue next foreach cycle without ending current one
- } ?>
- <dt>
- <?php echo $boxes[ $box_id ]['name']; ?>:
- </dt>
- <dd>
- <ul class="list-inline">
- <!-- foreach within this box terms -->
- <li>asdhashd</li>
- <li>asdhashd</li>
- <li>asdhashd</li>
- <li>asdhashd</li>
- <li>asdhashd</li>
- <li>asdhashd</li>
- <li class="suggest"><a href="javascript:void(0)"><?php _e( 'Suggest more', 'tuffaha' ); ?></a></li>
- </ul>
- </dd>
- <?php } ?>
- </dl>
- </div> <!-- end ap-content-terms -->
- </div>
- </div>
- </div> <!-- end ap-content -->
- </li>
- <li class="list-group-item">
- <div class="ap-detailed">
- <a href="?view_type=detailed"><?php _e( 'View detailed information', 'tuffaha' ); ?></a>
- </div> <!-- end ap-detailed -->
- </li>
- <li class="list-group-item">
- <div class="ap-gallery">
- <ul class="block-grid-xs-2 block-grid-sm-4 block-grid-md-6">
- <?php foreach ( Tuffaha::get_post_media_attachments( get_the_ID() )['media'] as $media ) { ?>
- <li class="block-grid-item">
- <div class="ap-gallery-item">
- <a href="#" class="thumbnail" onclick="event.preventDefault()">
- <img class="thumb" src="<?php echo $media[1]; ?>" id="<?php echo $media[0]; ?>" alt="<?php echo Tuffaha::get_alt_image(); ?>">
- </a>
- <div class="ap-gallery-item-control">
- <div class="ap-gallery-item-buttons">
- <i class="icon-like"></i>
- <i class="icon-dislike"></i>
- <i class="icon-pending"></i>
- <i class="icon-delete"></i>
- </div>
- <div class="ap-gallery-item-info">
- <span><a href="<?php echo $media[2];?>"><?php _e( 'Add Info', 'tuffaha' ); ?></a></span>
- </div>
- </div>
- </div>
- </li>
- <?php } ?>
- <li class="block-grid-item">
- <div class="gallery-add-item">
- <a href="#" class="thumbnail" onclick="event.preventDefault()">
- <img class="thumb" src="<?php echo Tuffaha::get_alt_image(); ?>" alt="<?php echo Tuffaha::get_alt_image(); ?>">
- <div class="add-item">
- <i class="icon-more"></i>
- <br/>
- <span><?php _e('Suggest more images', 'tuffaha'); ?></span>
- </div>
- </a>
- <input type="file" multiple="multiple" id="select-images" name="select-images" class="select-images hidden" accept="image/*"/>
- </div>
- </li>
- <li class="block-grid-item new hidden">
- <div class="ap-gallery-item">
- <a href="#" class="thumbnail" onclick="event.preventDefault()">
- <img class="thumb" src="<?php echo Tuffaha::get_alt_image(); ?>" alt="<?php echo Tuffaha::get_alt_image(); ?>">
- </a>
- <div class="ap-gallery-item-control">
- <div class="progress">
- <div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
- <span class="sr-only">Complete (success)</span>
- </div>
- </div>
- <div class="ap-gallery-item-buttons">
- <i class="icon-like"></i>
- <i class="icon-dislike"></i>
- <i class="icon-pending"></i>
- <i class="icon-delete"></i>
- </div>
- <div class="ap-gallery-item-info">
- <span><a href="#"><?php _e( 'Add Info', 'tuffaha' ); ?></a></span>
- </div>
- </div>
- </div>
- </li>
- </ul>
- </div> <!-- end ap-gallery -->
- </li>
- <li class="list-group-item">
- <div class="ap-references">
- <h5><?php _e( 'References', 'tuffaha' ); ?></h5>
- <hr/>
- <ul class="list-unstyled">
- <li><sup>1</sup> Book Author: <i>Book Title</i>. Publisher Name. City. Year, page #.</li>
- <li><sup>2</sup> Article Author: <i>Article Title</i>. Website Name. www.example.com. Year, Month.</li>
- <li><sup>3</sup> Dany Jhones: <i>Beauty and the Beast</i>. Cambrige Press. London. 2006, p. 12.</li>
- <li><sup>4</sup> Book Author: <i>Book Title</i>. Publisher Name. City. Year, page #.</li>
- <li><sup>5</sup> Book Author: <i>Book Title</i>. Publisher Name. City. Year, page #.</li>
- </ul>
- </div> <!-- end ap-references -->
- </li>
- <li class="list-group-item">
- <div class="ap-helpers">
- <h5><?php _e( 'Helpers', 'tuffaha' ); ?></h5>
- <hr/>
- <ul class="list-unstyled">
- <li>Suggested by: Someone Name</li>
- <li>Edited by: Other person, Good Person, Fine Person</li>
- </ul>
- </div> <!-- end ap-helpers -->
- </li>
- </ul>
- </div>
- </div>
- </div>
- <?php
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement