Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @Theme Name : Quality-Pro
- * @file : index-client.php
- * @package : Quality-Pro
- * @author : Hari Maliya
- * @license : license.txt
- * @filesource : wp-content/themes/quality/index-slider.php
- */
- ?>
- <!-- Quality Cliens Section ---->
- <?php
- $quality_pro_options=theme_data_setup();
- $current_options = wp_parse_args( get_option( 'quality_pro_options', array() ), $quality_pro_options ); ?>
- <div class="container">
- <div class="row">
- <div class="qua_heading_title">
- <?php if($current_options['home_client_title']) { ?>
- <h1><?php echo $current_options['home_client_title']; ?></h1>
- <?php } ?>
- <?php if($current_options['home_client_desciption']) { ?>
- <p><?php echo $current_options['home_client_desciption']; ?></p>
- <?php } ?>
- <div class="qua-separator" id=""></div>
- </div>
- <div class="media_row">
- <?php
- $j=1;
- $count_posts = wp_count_posts( 'quality_clientstrip')->publish;
- $args = array( 'post_type' => 'quality_clientstrip','posts_per_page'=>$count_posts);
- $clientstrip = new WP_Query( $args );
- if( $clientstrip->have_posts())
- { while ( $clientstrip->have_posts() ) : $clientstrip->the_post(); ?>
- <?php $client_link=get_post_meta( get_the_ID(), 'clientstrip_link', true );?>
- <div class="media-column" style="<?php if($i % 4==0) { echo "clearfix;"; echo "border-right:none;"; } if($i >=$start & $i<=$end) { echo "border-bottom:none"; } ?>">
- <div class="media_image">
- <?php if(has_post_thumbnail()) : ?>
- <?php //$tt = the_title(); ?>
- <?php $tt = array('alt'=>"tt")?>
- <a href="<?php echo $client_link;?>" target="<?php if(get_post_meta( get_the_ID(),'meta_client_target', true )) echo "_blank"; ?>" style="height:105px; width:100px;" > <?php the_post_thumbnail('',$tt); ?></a>
- <?php else : ?>
- <img src="<?php echo WEBRITI_TEMPLATE_DIR_URI ?>/images/client/logo.png"/>
- <?php endif; ?>
- </div>
- </div>
- <?php
- if($j%4==0){ echo "<div class='clearfix'></div>"; } $j++; endwhile;
- }
- else {
- for($tt=1; $tt<=8; $tt++)
- { ?>
- <div class="media-column">
- <div class="media_image">
- <img src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/clients/sonny<?php echo $tt; ?>.png" class="img-responsive" title="Sonny">
- </div>
- </div>
- <?php
- }
- }
- ?>
- </div>
- </div>
- </div>
- <!-- /Quality Quality Cliens Section Section ---->
Add Comment
Please, Sign In to add comment