Advertisement
Guest User

Untitled

a guest
Mar 21st, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.19 KB | None | 0 0
  1. <?php if( vp_option('portfolio_enable') == '1') { ?>
  2.      
  3.                                                                             <div class="carousel">
  4.                                         <div class="header-wrapper">
  5.                                         <h2><?php echo vp_option('portfolio_text'); ?></h2>
  6.                                         </div>
  7.                                                                             <nav class="carousel-nav">
  8.                                             <a class="port-nav left"></a><a class="port-nav right"></a>
  9.                                         </nav>
  10.                                         <div data-index="0" class="carousel-item-container row" >
  11.      
  12.                                                                             <?php
  13.                                                                             $args = array(
  14.                                                                             'posts_per_page' => '8',
  15.                                                                             'orderby'  => 'date',
  16.                                                                             'order'    => 'DESC',
  17.                                                                             'post_type' => 'portfolio',
  18.                                                                             );
  19.                                                                                                                                            
  20.                                                                             query_posts($args);
  21.                                                                             while ( have_posts() ) : the_post();
  22.                                                                             ?>
  23.      
  24.                                             <div class="one_fourth columns item">
  25.                                                 <div class="ts-display-pf-img">
  26.                                                     <a class="image" href="<?php echo get_permalink($post->ID); ?>" target="_self">
  27.      
  28.                                                     <span class="rollover"></span>
  29.                                                     <?php the_post_thumbnail('portfolio-threecol'); ?>
  30.                                                     </a>                                                  
  31.                                                 </div>
  32.                                                 <div class="ts-display-pf-text">
  33.                                                     <h2><a class="image" href="<?php echo get_permalink($post->ID); ?>" target="_self"><?php the_title(); ?></a></h2>
  34.                                                 </div>
  35.                                             </div>
  36.                                            
  37.                                          <?php endwhile; ?>  
  38.                                            
  39.                                             </div>
  40.                                     </div>
  41.                                    
  42.                                     <div class="bottom separator"></div>
  43.                                    
  44.     <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement