Advertisement
TangibleDesign

Untitled

Oct 14th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. <?php if ( $myhome_estate->has_user_profile() ) : ?>
  2. <section class="mh-estate__agent">
  3. <div class="mh-widget-title">
  4. <h3 class="mh-widget-title__text">
  5. <a href="<?php echo esc_url( $myhome_agent->get_link() ); ?>"
  6. title="<?php echo esc_attr( $myhome_agent->get_name() ); ?>">
  7. <?php echo esc_html( $myhome_agent->get_name() ); ?>
  8. </a>
  9. </h3>
  10. </div>
  11.  
  12. <div class="mh-estate__agent__content">
  13.  
  14. <?php if ( $myhome_agent->has_image() ) : ?>
  15. <a class="mh-estate__agent__thumbnail-wrapper"
  16. href="<?php echo esc_url( $myhome_agent->get_link() ); ?>"
  17. title="<?php echo esc_attr( $myhome_agent->get_name() ); ?>">
  18. <?php
  19. My_Home_Image::the_image(
  20. $myhome_agent->get_image_id(),
  21. 'square',
  22. $myhome_agent->get_name()
  23. );
  24. ?>
  25. </a>
  26. <?php endif; ?>
  27.  
  28. <div class="position-relative">
  29.  
  30. <?php if ( $myhome_agent->has_phone() ) : ?>
  31. <div class="mh-estate__agent__phone">
  32. <a href="tel:<?php echo esc_attr( $myhome_agent->get_phone_href() ); ?>">
  33. <i class="flaticon-phone"></i><?php echo esc_html( $myhome_agent->get_phone() ); ?>
  34. </a>
  35. </div>
  36. <?php endif; ?>
  37.  
  38. <?php if ( $myhome_agent->has_email() ) : ?>
  39. <div class="mh-estate__agent__email">
  40. <a href="mailto:<?php echo esc_attr( $myhome_agent->get_email() ); ?>">
  41. <i class="flaticon-mail-2"></i><?php echo esc_html( $myhome_agent->get_email() ); ?>
  42. </a>
  43. </div>
  44. <?php endif; ?>
  45.  
  46. <?php
  47.  
  48. $myhome_agent_facebook = $myhome_agent->get_facebook();
  49. $myhome_agent_twitter = $myhome_agent->get_twitter();
  50. $myhome_agent_instagram = $myhome_agent->get_instagram();
  51. $myhome_agent_linkedin = $myhome_agent->get_linkedin();
  52.  
  53. if ( ! empty( $myhome_agent_facebook ) || ! empty( $myhome_agent_twitter )
  54. || ! empty( $myhome_agent_instagram ) || ! empty( $myhome_agent_linkedin ) ) : ?>
  55. <div class="mh-estate__agent__social-icons">
  56. <?php if ( ! empty( $myhome_agent_facebook ) ) : ?>
  57. <a href="<?php echo esc_url( $myhome_agent->get_facebook() ); ?>" target="_blank">
  58. <i class="fa fa-facebook"></i>
  59. </a>
  60. <?php endif;
  61.  
  62. if ( ! empty( $myhome_agent_twitter ) ) : ?>
  63. <a href="<?php echo esc_url( $myhome_agent->get_twitter() ); ?>" target="_blank">
  64. <i class="fa fa-twitter"></i>
  65. </a>
  66. <?php endif;
  67.  
  68. if ( ! empty( $myhome_agent_instagram ) ) : ?>
  69. <a href="<?php echo esc_url( $myhome_agent->get_instagram() ); ?>" target="_blank">
  70. <i class="fa fa-instagram"></i>
  71. </a>
  72. <?php endif;
  73.  
  74. if ( ! empty( $myhome_agent_linkedin ) ) : ?>
  75. <a href="<?php echo esc_url( $myhome_agent->get_linkedin() ); ?>" target="_blank">
  76. <i class="fa fa-linkedin"></i>
  77. </a>
  78. <?php endif; ?>
  79. </div>
  80. <?php endif; ?>
  81.  
  82. <a href="<?php echo esc_url( $myhome_agent->get_link() ); ?>"
  83. title="<?php echo esc_attr( $myhome_agent->get_name() ); ?>"
  84. class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary mdl-button--full-width">
  85. <?php printf( esc_html__( 'All by %s', 'myhome' ), $myhome_agent->get_name() ); ?>
  86. </a>
  87.  
  88. </div>
  89. </div>
  90. </section>
  91. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement