Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header(); ?>
- <!-- Page Title Section -->
- <?php //if (get_post_meta( get_the_ID(), 'banner_chkbx', true )) { ?>
- <div class="page-title-section">
- <div class="overlay">
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <div class="page-title">
- <?php if (get_post_meta( get_the_ID(), 'banner_title', true )) { ?>
- <h1><?php echo (get_post_meta (get_the_ID(),'banner_title', true)); ?></h1>
- <div class="page-title-seprator"></div>
- <?php } else { ?>
- <h1><?php echo single_cat_title("", false); ?></h1>
- <?php } ?>
- <?php if (get_post_meta( get_the_ID(), 'banner_description', true )) { ?>
- <p><?php echo (get_post_meta( get_the_ID(), 'banner_description', true )); ?></p>
- <?php } else { ?>
- <div class="page-title-seprator"></div>
- <p><?php echo 'Autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et dolore feugait.'; ?></p>
- <?php } ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php //} ?>
- <div class="clearfix"></div>
- <!-- /Page Title Section -->
- <?php
- $elitepress_lite_options=theme_data_setup();
- $current_options = wp_parse_args( get_option( 'elitepress_lite_options', array() ), $elitepress_lite_options ); ?>
- <!-- call template -->
- <!-- Portfolio Section -->
- <div class="portfolio-main-section">
- <div class="container">
- <!-- Portfolio Area -->
- <div class="main-portfolio-section" id="myTabContent">
- <?php $norecord=0;
- $args = array (
- 'post_status' => 'publish');
- global $j;
- $j=1;
- $portfolio_query = null;
- $portfolio_query = new WP_Query($args);
- if( have_posts() )
- { ?>
- <div id="portfolio_catgories">
- <div class="row">
- <?php
- while (have_posts()) { the_post();
- if(get_post_meta( get_the_ID(),'project_more_btn_link', true ))
- { $project_more_btn_link = get_post_meta( get_the_ID(),'project_more_btn_link', true );
- } else {
- $project_more_btn_link = '';
- } ?>
- <?php if($current_options['taxonomy_portfolio_list']==2) { ?>
- <div class="col-md-6 col-sm-6 portfolio-area-main">
- <?php } else if($current_options['taxonomy_portfolio_list']==3) { ?>
- <div class="col-md-4 col-sm-6 portfolio-area-main">
- <?php } else if($current_options['taxonomy_portfolio_list']==4) { ?>
- <div class="col-md-3 col-sm-6 portfolio-area-main">
- <?php } ?>
- <div class="portfolio_image_main">
- <?php if($current_options['taxonomy_portfolio_list']==2) {
- elitepress_image_thumbnail('','img-responsive');
- } ?>
- <?php if($current_options['taxonomy_portfolio_list']==3) {
- elitepress_image_thumbnail('','img-responsive');
- } ?>
- <?php if($current_options['taxonomy_portfolio_list']==4) {
- elitepress_image_thumbnail('','img-responsive');
- } ?>
- <?php
- if(has_post_thumbnail())
- {
- $post_thumbnail_id = get_post_thumbnail_id();
- $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
- } ?>
- <div class="portfolio_showcase_overlay">
- <div class="portfolio_showcase_overlay_inner">
- <div class="portfolio_showcase_icons">
- <?php if(isset($post_thumbnail_url)){ ?>
- <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
- <?php }
- elitepress_get_custom_link($project_more_btn_link,get_post_meta( get_the_ID(), 'project_more_btn_target', true ),'<i class="fa fa-link"></i>'); ?>
- </div>
- </div>
- </div>
- </div>
- <div class="portfolio_caption">
- <h4>
- <?php
- elitepress_get_custom_link($project_more_btn_link,get_post_meta( get_the_ID(), 'project_more_btn_target', true ),get_the_title()); ?>
- </h4>
- <?php if(get_post_meta( get_the_ID(), 'project_description', true )){ ?>
- <p><?php echo get_post_meta( get_the_ID(), 'project_description', true ); ?></p>
- <?php }
- if (get_post_meta( get_the_ID(), 'project_more_btn_text', true )){ ?>
- <div class="port-btn"><a href="<?php echo $project_more_btn_link; ?>" <?php if(get_post_meta( get_the_ID(), 'project_more_btn_target', true )) { echo "target='_blank'"; } ?> title="Read More"><?php echo get_post_meta( get_the_ID(), 'project_more_btn_text', true ); ?><i class="fa fa-angle-right"></i></a></div>
- <?php } ?>
- </div>
- </div>
- <?php
- if($j%$current_options['taxonomy_portfolio_list']==0) { echo "<div class='clearfix'></div>"; } $j++;
- $norecord=1;} ?>
- </div>
- </div>
- <?php }
- wp_reset_query(); ?>
- </div>
- </div>
- </div>
- <!-- /Portfolio Section -->
- <?php get_footer(); ?>
- <!-- /Portfolio Section -->
Add Comment
Please, Sign In to add comment