daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Jul 5th, 2018 20 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $corporal_theme_options = corporal_options();
  2.  if($corporal_theme_options['service_layout']==2){ $service_layout='col-md-6'; }
  3.  if($corporal_theme_options['service_layout']==3){ $service_layout='col-md-4'; }
  4.  if($corporal_theme_options['service_layout']==4){ $service_layout='col-md-3'; } ?>
  5. <!-- service-start -->
  6.     <div class="container-fluid cor-services space service1" id="service1">
  7.         <div class="container">
  8.             <div class="row cor_section">
  9.                 <div class="cor_section_heading">
  10.                 <?php if($corporal_theme_options['service_title']!=''){ ?>
  11.                     <h1 class="head-title"><?php echo $corporal_theme_options['service_title']; ?></h1>
  12.                 <?php } if($corporal_theme_options['service_desc']!=''){ ?>
  13.                     <p><?php echo $corporal_theme_options['service_desc']; ?></p>
  14.                 <?php } ?>
  15.                 </div>
  16.             </div>
  17.             <?php $posts_count = $corporal_theme_options['service_count'];
  18.                 $service_data= array('post_type' => 'corporal_service','posts_per_page' =>12);
  19.                 $services = new WP_Query( $service_data );
  20.                 if( $services->have_posts() ){ $count=0; ?>
  21.             <div class="col-md-12 cor_services_post">
  22.             <?php while ( $services->have_posts() ) : $services->the_post();
  23.                 if(get_post_meta( get_the_ID(),'service_icon', true )!=''):
  24.                 $count++; ?>
  25.                 <div class="<?php echo $service_layout; ?> col-sm-6 cor_services_text">
  26.                     <a href="<?php the_permalink(); ?>"><i class="<?php echo get_post_meta( get_the_ID(),'service_icon', true ); ?> hvr-grow"></i></a>
  27.                     <div class="col-md-12 service_desc">
  28.                         <a class="service-title" href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a>
  29.                         <hr>                       
  30.                         <p><?php echo substr(get_the_excerpt(),0, 150); ?></p>
  31.                     </div>
  32.                     <div class="button"><a href="<?php the_permalink(); ?>" class="btn"><?php _e('Read More','corporal-premium'); ?></a></div>
  33.                 </div>
  34.                 <?php endif;
  35.                 if($count%$corporal_theme_options['service_layout']==0){ ?>
  36.                 <div class="col-md-12"></div>
  37.                 <?php } endwhile; ?>
  38.             </div>
  39.                 <?php }else{ ?>
  40.                     <div class="col-md-12 cor_services_post">
  41.                         <div class="col-md-4 col-sm-6 cor_services_text">
  42.                     <i class="fa fa-comments-o hvr-grow"></i>
  43.                     <div class="col-md-12 service_desc">
  44.                         <a href="#"><h3>Creative Design</h3></a>                       
  45.                         <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered.</p>
  46.                     </div>
  47.                     <div class="button"><a href="#" class="btn"> Read More </a></div>
  48.                 </div>
  49.                 <div class="col-md-4 col-sm-6 cor_services_text">
  50.                     <i class="fa fa-code-fork hvr-grow"></i>
  51.                     <div class="col-md-12 service_desc">
  52.                         <a href="#"><h3>Css3 Animation</h3></a>                    
  53.                         <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered.</p>
  54.                     </div>
  55.                     <div class="button"><a href="#" class="btn"> Read More </a></div>
  56.                 </div>
  57.                 <div class="col-md-4 col-sm-6 cor_services_text">
  58.                     <i class="fa fa-map-marker hvr-grow"></i>
  59.                     <div class="col-md-12 service_desc">
  60.                         <a href="#"><h3>User Friendly</h3></a>                     
  61.                         <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered.</p>
  62.                     </div>
  63.                     <div class="button"><a href="#" class="btn"> Read More </a></div>
  64.                 </div>
  65.                 <div class="col-md-12">
  66.                 <div class="col-md-4 col-sm-6 cor_services_text">
  67.                     <i class="fa fa-mobile hvr-grow"></i>
  68.                     <div class="col-md-12 service_desc">
  69.                         <a href="#"><h3>Responsive Design</h3></a>                     
  70.                         <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered.</p>
  71.                     </div>
  72.                     <div class="button"><a href="#" class="btn"> Read More </a></div>
  73.                 </div>
  74.                 <div class="col-md-4 col-sm-6 cor_services_text">
  75.                     <i class="fa fa-code hvr-grow"></i>
  76.                     <div class="col-md-12 service_desc">
  77.                         <a href="#"><h3>Online Project</h3></a>                    
  78.                         <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered.</p>
  79.                     </div>
  80.                     <div class="button"><a href="#" class="btn"> Read More </a></div>
  81.                 </div>
  82.                 <div class="col-md-4 col-sm-6 cor_services_text">
  83.                     <i class="fa fa-fighter-jet hvr-grow"></i>
  84.                     <div class="col-md-12 service_desc">
  85.                         <a href="#"><h3>Fast Responsive</h3></a>                       
  86.                         <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered.</p>
  87.                     </div>
  88.                     <div class="button"><a href="#" class="btn"> Read More </a></div>
  89.                 </div>
  90.                     </div>
  91.                     </div>
  92.                 <?php } ?>
  93.         </div>
  94.     </div>
  95.     <!-- service-end -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top