Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header ();
- ?>
- <!-- Page Title -->
- <section class="page-header">
- <div class="container">
- <div class="row">
- <div class="col-md-6">
- <div class="page-title">
- <h2><?php
- if( is_archive() ){
- ?>
- <h2><?php echo single_cat_title("", false); ?></h2>
- <?php
- //the_archive_title();
- }
- else if( is_home() ){
- wp_title(' ');
- }
- else{
- the_title();
- }
- ?></h2>
- <p><?php bloginfo('description');?></p>
- </div>
- </div>
- <div class="col-md-6">
- <ul class="page-breadcrumb">
- <?php if (function_exists('busiprof_custom_breadcrumbs')) busiprof_custom_breadcrumbs();?>
- </ul>
- </div>
- </div>
- </div>
- </section>
- <!-- End of Page Title -->
- <div class="clearfix"></div>
- <?php
- $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
- ?>
- <!-- Container -->
- <<section id="section" class="portfolio">
- <div class="container">
- <!-- Section Title -->
- <div class="row">
- <div class="col-md-12">
- <div class="section-title">
- <?php
- if( $current_options['project_texonomy_tag_line'] != '' )
- { ?>
- <h1 class="section-heading"><?php echo $current_options['project_texonomy_tag_line']; ?> </h1>
- <?php }
- if( $current_options['project_texonomy_description_tag'] != '')
- {
- ?>
- <p><?php echo $current_options['project_texonomy_description_tag']; ?></p>
- <?php } ?>
- </div>
- </div>
- </div>
- <!-- /Section Title -->
- <!-- Portfolio Item -->
- <div class="row">
- <?php
- $j=1;
- if( have_posts() )
- { while ( have_posts() ) : the_post();
- ?>
- <?php if($current_options['taxonomy_project_list'] == 2) { ?>
- <div class="col-md-6 col-sm-6 col-xs-12">
- <?php } else if($current_options['taxonomy_project_list'] == 3) { ?>
- <div class="col-md-4 col-sm-6 col-xs-12">
- <?php } else if($current_options['taxonomy_project_list'] == 4) { ?>
- <div class="col-md-3 col-sm-6 col-xs-12">
- <?php } ?>
- <aside class="post">
- <figure class="post-thumbnail">
- <?php if(has_post_thumbnail())
- {
- the_post_thumbnail( );
- $post_thumbnail_id = get_post_thumbnail_id();
- $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
- }
- ?>
- <div class="thumbnail-showcase-overlay">
- <div class="thumbnail-showcase-overlay-inner">
- <div class="thumbnail-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 } ?>
- </div>
- </div>
- </div>
- </figure>
- <div class="portfolio-info">
- <?php
- if(get_post_meta( get_the_ID(),'portfolio_link', true ))
- { $portfolio_link=get_post_meta( get_the_ID(),'portfolio_link', true ); }
- else { $portfolio_link = get_post_permalink(); } ?>
- <div class="entry-header">
- <h4 class="entry-title"><a href="<?php echo $portfolio_link; ?>" <?php if(get_post_meta( get_the_ID(),'portfolio_target', true )) { echo "target='_blank'"; } ?> ><?php echo the_title(); ?></a></h4>
- </div>
- <div class="entry-content">
- <p><?php echo get_post_meta( get_the_ID(),'project_title_description', true ); ?></p>
- </div>
- </div>
- </aside>
- </div>
- <?php
- if($j%$current_options['taxonomy_project_list']==0){ echo "<div class='clearfix'></div>"; } $j++; $norecord=1; endwhile; ?>
- </div>
- <?php wp_reset_postdata();} ?>
- </div>
- </div>
- </div>
- </section>
- <!-- End of Portfolio Section -->
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment