Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user feedback] Gallery in CPT

$
0
0

<?php
get_header()?>

<div id="main-wrapper">
<div class="cpsAjaxLoaderCenter">
<div style="text-align:center;margin-top:40px;">
<?php _e('Searching','language');?>
</div>
<img src="<?php bloginfo('template_url')?>/images/common/loader.gif" />
<div style="text-align:center;margin-top:10px">
<?php _e('Please wait','language');?>
</div>
</div>
<div id="two-columns">
<?php cps_ajax_search_results(); ?>
<div class="contents">
<div id="contents-wrapper" class="hideOnSearch">
<?php if ( have_posts() ) while ( have_posts() ) : the_post();?>
<?php $postid = get_the_ID(); ?>
<?php pvc_stats_update($postid); ?>
<h1><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a></h1>
<div class="info">
<p><span class="list">
<?php if ( get_post_meta( get_the_ID(), 'address', true ) ) : ?>
<?php _e( 'Address: ' ); ?>
</span>
<?php the_field('address'); ?><?php endif; ?>
</p>
<p><span class="list">
<?php if ( get_post_meta( get_the_ID(), 'phone', true ) ) : ?>
<?php _e( 'Phone: ' ); ?>
</span>
<?php the_field('phone'); ?><?php endif; ?>
</p>
<p><span class="list">
<?php if ( get_post_meta( get_the_ID(), 'email', true ) ) : ?>
<?php _e( 'Email: ' ); ?>
</span> <a href="mailto:<?php the_field('email'); ?>">
<?php the_field('email'); ?><?php endif; ?>
</a></p>
<p><span class="list">
<?php if ( get_post_meta( get_the_ID(), 'website', true ) ) : ?>
<?php _e( 'Website: ' ); ?>
</span> <a href="http://<?php the_field('website'); ?>">
<?php the_field('website'); ?><?php endif; ?>
</a></p>
<p><span class="list">
<?php if ( get_post_meta( get_the_ID(), 'facebook', true ) ) : ?>
<?php _e( 'Facebook: ' ); ?>
</span> <a href="<?php the_field('facebook'); ?>"><?php endif; ?>
<?php the_field('facebook'); ?>
</a></p>
<p><span class="list">
<?php if ( get_post_meta( get_the_ID(), 'twitter', true ) ) : ?>
<?php _e( 'Twitter: ' ); ?>
</span> <a href="<?php the_field('twitter'); ?>">
<?php the_field('twitter'); ?><?php endif; ?>
</a></p>
</div>
<div style="clear:both;"></div>
<br />
<?php echo do_shortcode('[gallery rel="lightbox"]'); ?>
<!–<h5><?php /*the_time('M, d'); ?> <span class="dividers">|</span><span class="single-author-name"><?php the_author_posts_link() ?></span><span class="dividers">|</span> <span class="single-comments"> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> | <?php if (the_tags('Tags: ', ', ', ' ')); */?></span></h5>–>
<div class="post-details">
<?php /* $video_source = get_post_meta($post->ID, 'video_meta_box_source', true);
$video_id = get_post_meta($post->ID, 'video_meta_box_videoid', true);
if(($video_source == "vimeo") && !empty($video_id)){ ?>
<iframe src="http://player.vimeo.com/video/<?php echo $video_id; ?>?title=0&portrait=0&color=e275c7" width="609" height="400" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe>
<?php } elseif(( $video_source == "youtube") && !empty($video_id)){ ?>
<iframe src="http://www.youtube.com/embed/<?php echo $video_id; ?>" width="609" height="400" frameborder="0" allowfullscreen></iframe>
<?php } */?>
<?php /*if ( has_post_thumbnail() ) {
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_url($image_id);?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('thumbnail');?>
</a>
<?php } */?>
<?php the_content();?>
<!– end of .post-details –>
</div>
<?php echo do_shortcode ( '[codepeople-post-map]' ); ?>
<br />
<?php if ( get_post_meta( get_the_ID(), 'video', true ) ) : ?>
<iframe width="600" height="380" src="<?php echo get_post_meta( get_the_ID(), 'video', true ) ?>?rel=0" frameborder="0" allowfullscreen></iframe>
<?php endif; ?>
<br /><br />
<h3>
<?php _e( 'Contact Us' ); ?>
</h3>
<br />
<?php echo do_shortcode( '[contact-form-7 id="1458" title="contact-form#1"]' ); ?>
<h5 class="contents-tags"><?php if (the_tags('Tags: ', ', ', ' ')); ?></h5>
<?php endwhile; ?>
<?php /* comments_template(); */?>
</div>
<!– end of .contents –>
</div>
<!– end of #content-wrapper –>
</div>
<!– end of #two-columns –>
<div id="right-column">
<?php get_sidebar(); ?>
</div>
<!– end of #right-column –>
</div>
<!– end of #main-wrapper –>
<?php get_footer(); ?>


Viewing all articles
Browse latest Browse all 20145

Trending Articles