akhlesh_nagar

Untitled

Mar 3rd, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.66 KB | None | 0 0
  1. <?php
  2. /* @Theme Name : Health-Center
  3. * @file : aboutus.php
  4. * @package : Health-Center
  5. * @author : VibhorPurandare
  6. * @license : license.txt
  7. * @filesource : wp-content/themes/health-center/aboutus.php
  8. */
  9.  
  10. //Template Name:About-Us
  11. get_header();
  12. $current_options=get_option('hc_pro_options');
  13. the_post(); ?>
  14. <!-- HC Page Header Section -->
  15. <div class="container">
  16. <div class="row">
  17. <div class="hc_page_header_area">
  18. <h1><?php the_title(); ?></h1>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- /HC Page Header Section -->
  23. <!-- HC Aboutus Section -->
  24. <div class="container">
  25. <div class="row hc_aboutus_area">
  26. <div class="col-md-6">
  27. <?php $defalt_arg =array('class' => 'hc_img_shadow hc_img_responsive'); ?>
  28. <?php if(has_post_thumbnail()): ?>
  29. <?php the_post_thumbnail('', $defalt_arg); ?>
  30. <?php else : ?>
  31. <img class="hc_img_responsive hc_img_shadow" alt="Health Center" src="<?php echo get_template_directory_uri(); ?>/images/default/aboutus.png">
  32. <?php endif; ?>
  33. </div>
  34. <div class="col-md-6">
  35. <p><?php the_content (); ?></p>
  36. </div>
  37. </div>
  38. </div>
  39. <!-- /HC Aboutus Section -->
  40. <!-- HC Team Section -->
  41. <div class="container">
  42. <div class="row">
  43. <div class="hc_service_title">
  44. <h1>
  45. <?php if($current_options['hc_head_one_team']!='') {
  46. echo $current_options['hc_head_one_team'];
  47. } else { echo _e('Meet Our','health'); } ?>
  48. <?php if($current_options['hc_head_two_team']!='') {
  49. echo $current_options['hc_head_two_team'];
  50. } else { echo _e('Meet Our','health'); } ?>
  51. </h1>
  52. <p>
  53. <?php if($current_options['hc_head_team_tagline']!='') {
  54. echo $current_options['hc_head_team_tagline'];
  55. } else { echo _e('We provide best WordPress solutions for your business. Thanks to our framework you will get more happy customers','health'); } ?>
  56. </p>
  57.  
  58. </div>
  59. </div>
  60. <div class="row hc_team_section">
  61. <?php
  62. $j=1;
  63. $count_posts = wp_count_posts( 'healthcenter_team')->publish;
  64. $arg = array( 'post_type' => 'healthcenter_team','posts_per_page' =>$count_posts);
  65. $team = new WP_Query( $arg );
  66. if($team->have_posts())
  67. { while ( $team->have_posts() ) : $team->the_post(); ?>
  68. <div class="col-md-4">
  69. <div class="hc_team_showcase">
  70. <?php if(has_post_thumbnail()): ?>
  71. <?php the_post_thumbnail('hc_team_thumb'); ?>
  72. <?php endif; ?>
  73. <div class="caption">
  74. <h3><?php the_title(); ?></h3>
  75. <?php $designation=get_post_meta( get_the_ID(), 'meta_designation', true ); ?>
  76. <h6><?php if (!empty($designation)) echo esc_attr($designation); ?></h6>
  77. <?php $description=get_post_meta( get_the_ID(), 'meta_description', true ); ?>
  78. <p><?php if (!empty($description)) echo esc_attr($description); ?></p>
  79. <div class="hc_aboutus1_team_social">
  80. <?php
  81. $fb_url_cb = get_post_meta( get_the_ID(), 'meta_fb_url_cb', true );
  82. $twt_url_cb = get_post_meta( get_the_ID(), 'meta_twt_url_cb', true );
  83. $lnkd_url_cb = get_post_meta( get_the_ID(), 'meta_lnkd_url_cb', true );
  84. $google_url_cb = get_post_meta( get_the_ID(), 'meta_google_url_cb', true );
  85. $fb_url = get_post_meta( get_the_ID(), 'meta_fb_url', true );
  86. $twt_url = get_post_meta( get_the_ID(), 'meta_twt_url', true );
  87. $lnkd_url = get_post_meta( get_the_ID(), 'meta_lnkd_url', true );
  88. $google_url =get_post_meta( get_the_ID(), 'meta_google_url', true );
  89. ?>
  90. <?php if($fb_url_cb==1): ?>
  91. <a href="<?php if(isset($fb_url)){ echo esc_html($fb_url);} else { echo "http://facebook.com"; } ?>" target="_blank" title="Facebook" id="fb_tooltip" class="facebook">&nbsp;</a>
  92. <?php endif; ?>
  93. <?php if($twt_url_cb==1): ?>
  94. <a href="<?php if(isset($twt_url)){ echo esc_html($twt_url);} else { echo "http://twitter.com"; } ?>" target="_blank" title="Twitter" id="twi_tooltip" class="twitter">&nbsp;</a>
  95. <?php endif; ?>
  96. <?php if($lnkd_url_cb==1): ?>
  97. <a href="<?php if(isset($lnkd_url)){ echo esc_html($lnkd_url);} else { echo "http://linkeding.com"; } ?>" target="_blank" title="Linked-in" id="in_tooltip" class="linked-in">&nbsp;</a>
  98. <?php endif; ?>
  99. <?php if($google_url_cb==1): ?>
  100. <a href="<?php if(isset($google_url)){ echo esc_html($google_url);} else { echo "http://google.com"; } ?>" target="_blank" title="Google+" id="plus_tooltip" class="google_plus">&nbsp;</a>
  101. <?php endif; ?>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <?php if($j%4==0){ echo "<div class='clearfix'></div>"; } $j++; endwhile;
  107. }
  108. else
  109. {
  110. for($dp=1; $dp<4; $dp++) { ?>
  111. <div class="col-md-4">
  112. <div class="hc_team_showcase">
  113. <img class="hc_img_responsive" alt="Health Center" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/default/member<?php echo $dp; ?>.png">
  114. <div class="caption">
  115. <h3><?php _e('Jane Doe','health'); ?></h3>
  116. <h6><?php _e('Financial Manager','health'); ?></h6>
  117. <p><?php _e('Aenean dignissim ac leo et varius. Maecenas enim leo, pharetra nec cursuseu, pell entesque eget sapien. Morbi pellentesqu non nulla scelerisque. Pellentesque mollis erat et elit porta venenatis augue. Aendignissim ac leo et varius. Maecenas enim pharetra nec Aendign issim ac leo etvarius','health'); ?></p>
  118. <div class="hc_aboutus1_team_social">
  119. <a href="#" title="Facebook" id="fb_tooltip" class="facebook">&nbsp;</a>
  120. <a href="#" title="Twitter" id="twi_tooltip" class="twitter">&nbsp;</a>
  121. <a href="#" title="Linked-in" id="in_tooltip" class="linked-in">&nbsp;</a>
  122. <a href="#" title="Google+" id="plus_tooltip" class="google_plus">&nbsp;</a>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <?php }
  128. } ?>
  129. </div>
  130. </div><?php get_footer(); ?>
Add Comment
Please, Sign In to add comment