SHARE
TWEET

Untitled

a guest Feb 26th, 2018 22 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. * @Theme Name   :   wallstreet-Pro
  4. * @file         :   index-client.php
  5. * @package      :   wallstreet-Pro
  6. @author       : webriti
  7. * @filesource   :   wp-content/themes/wallstreet/index-slider.php
  8. */
  9. ?>
  10. <!-- wallstreet Clients Section ---->
  11. <?php $wallstreet_pro_options=theme_data_setup();
  12.       $current_options = wp_parse_args(  get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options ); ?>
  13. <div class="container client-section"> 
  14.     <div class="row">          
  15.         <div class="section_heading_title">
  16.             <?php if($current_options['home_client_title']) { ?>
  17.             <h1><?php echo $current_options['home_client_title']; ?></h1>
  18.             <div class="pagetitle-separator">
  19.             <div class="pagetitle-separator-border">
  20.                 <div class="pagetitle-separator-box"></div>
  21.             </div>
  22.         </div>
  23.             <?php } ?>
  24.             <?php if($current_options['home_client_description']) { ?>
  25.                 <p><?php echo $current_options['home_client_description']; ?></p>
  26.             <?php } ?>
  27.            
  28.         </div>     
  29.         <div class="row">
  30.             <?php
  31.             $j=1;
  32.             $args = array( 'post_type' => 'wallstreet_client','posts_per_page'=>-1);    
  33.             $client = new WP_Query( $args );
  34.             if( $client->have_posts() ){
  35.                
  36.                 while ( $client->have_posts() ) : $client->the_post();
  37.                 ?>
  38.                 <div class="col-md-3">
  39.                     <div class="clients-logo">
  40.                     <?php
  41.                             $defalt_arg =array('class' => "img-responsive");
  42.                             if(has_post_thumbnail()):
  43.                             //the_post_thumbnail('',$defalt_arg);
  44.                             $post_thumbnail_id = get_post_thumbnail_id();
  45.                             $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
  46.                            
  47.                     ?>
  48.                     <?php if($post_thumbnail_url) {?>
  49.                         <a href="<?php if(get_post_meta( get_the_ID(),'clientstrip_link', true ) ) { echo get_post_meta( get_the_ID(),'clientstrip_link', true ); } else { echo '#'; } ?>" <?php if(get_post_meta( get_the_ID(),'meta_client_target', true )) { echo "target='_blank'"; }  ?> ><img class="img-responsive" title="<?php echo get_the_title(); ?>" src="<?php echo $post_thumbnail_url; ?>"></a>
  50.                         <?php } else { ?> <img class="img-responsive" title="<?php echo get_the_title(); ?>" src="<?php echo $post_thumbnail_url; ?>"><?php } ?>
  51.                     </div>
  52.                 </div>
  53.                 <?php
  54.                 if($j%4==0){ echo "<div class='clearfix'></div>"; } $j++;
  55.                
  56.                 endif;
  57.                 endwhile;
  58.  
  59.             }
  60.             else {                                                     
  61.                 for($tt=1; $tt<=4; $tt++)
  62.                 { ?>
  63.                 <div class="col-md-3">
  64.                     <div class="clients-logo">
  65.                         <img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/clients/client<?php echo $tt; ?>.png" class="img-responsive" title="Sonny">
  66.                     </div>
  67.                 </div>
  68.                 <?php
  69.                 }      
  70.             }
  71.             ?>         
  72.         </div>     
  73.     </div>     
  74. </div>
  75.  
  76.  
  77.  
  78.  
  79. <div class="container">
  80. <div class="row">
  81.             <?php if($current_options['contact_address_settings'] == "on"){ ?>
  82.             <div class="col-md-4">
  83.                 <div class="contact-detail-area">
  84.                     <span><i class="fa <?php if($current_options['contact_address_icon']) { echo $current_options['contact_address_icon']; } ?>"></i></span>
  85.                     <?php if($current_options['contact_address_title']) { ?>
  86.                     <h5><?php echo $current_options['contact_address_title']; ?></h5>
  87.                     <?php } ?>
  88.                     <address><?php if($current_options['contact_address_designation_one']) { echo $current_options['contact_address_designation_one']; } ?> </address>
  89.                     <address><?php if($current_options['contact_address_designation_two']) { echo $current_options['contact_address_designation_two']; } ?> </address>
  90.                 </div>
  91.             </div>
  92.             <?php } ?>
  93.             <?php if($current_options['contact_phone_settings'] == "on"){ ?>
  94.             <div class="col-md-4">
  95.                 <div class="contact-detail-area">
  96.                     <span><i class="fa <?php if($current_options['contact_phone_icon']) { echo $current_options['contact_phone_icon']; } ?>"></i></span>
  97.                     <?php if($current_options['contact_phone_title']) { ?>
  98.                     <h5><?php echo $current_options['contact_phone_title']; ?></h5>
  99.                     <?php } ?>
  100.                     <address><?php if($current_options['contact_phone_number_one']) { echo $current_options['contact_phone_number_one']; } ?></address>
  101.                     <address><?php if($current_options['contact_phone_number_two']) { echo $current_options['contact_phone_number_two']; } ?></address>
  102.                 </div>
  103.             </div>
  104.             <?php } ?>
  105.             <?php if($current_options['contact_email_settings'] == "on"){ ?>
  106.             <div class="col-md-4">
  107.                 <div class="contact-detail-area">
  108.                     <span><i class="fa <?php if($current_options['contact_email_icon']) { echo $current_options['contact_email_icon']; } ?>"></i></span>
  109.                     <?php if($current_options['contact_email_title']) { ?>
  110.                     <h5><?php echo $current_options['contact_email_title']; ?></h5>
  111.                     <?php } ?>
  112.                     <address><?php if($current_options['contact_email_number_one']) { echo $current_options['contact_email_number_one']; } ?></address>
  113.                     <address><?php if($current_options['contact_email_number_two']) { echo $current_options['contact_email_number_two']; } ?></address>
  114.                 </div>
  115.             </div>
  116.             <?php } ?>
  117.         </div>
  118.         </div>
  119. <!-- /wallstreet wallstreet Cliens Section Section ---->
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