Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. <?php $myhome_footer = new My_Home_Footer(); ?>
  2.  
  3. <footer
  4. id="footer"
  5. class="mh-footer-top mh-background-cover <?php echo esc_attr($myhome_footer->get_class()); ?>"
  6. <?php if ($myhome_footer->has_background_image()) : ?>
  7. style="<?php echo esc_attr($myhome_footer->get_style()); ?> background-image: url(<?php echo esc_url(wp_get_attachment_image_url($myhome_footer->get_background_image_id(), 'full')); ?>);"
  8. <?php endif; ?>
  9. >
  10.  
  11. <?php if ($myhome_footer->has_widget_area()) : ?>
  12.  
  13. <div class="mh-footer__inner">
  14. <div class="mh-layout">
  15. <div class="mh-footer__row">
  16.  
  17. <?php if ($myhome_footer->has_information()) : ?>
  18.  
  19. <div class="mh-footer__row__column widget <?php echo esc_attr($myhome_footer->get_widget_class()); ?>">
  20.  
  21. <?php if ($myhome_footer->has_logo()) : ?>
  22. <div class="mh-footer__logo">
  23. <img
  24. src="<?php echo esc_url($myhome_footer->get_logo()); ?>"
  25. alt="<?php echo esc_attr(get_bloginfo('name')); ?>"
  26. >
  27. </div>
  28. <?php endif; ?>
  29.  
  30. <?php if ($myhome_footer->has_text()) : ?>
  31. <div class="mh-footer__text">
  32. <?php echo wp_kses_post($myhome_footer->get_text()); ?>
  33. </div>
  34. <?php endif; ?>
  35.  
  36. <?php if ($myhome_footer->has_address()) : ?>
  37. <address class="mh-footer__contact">
  38. <i class="flaticon-pin"></i>
  39. <?php echo esc_html($myhome_footer->get_address()); ?>
  40. </address>
  41. <?php endif; ?>
  42.  
  43. <?php if ($myhome_footer->has_phone()) : ?>
  44. <div class="mh-footer__contact">
  45. <a href="tel:<?php echo esc_attr($myhome_footer->get_phone_href()) ?>">
  46. <i class="flaticon-phone"></i>
  47. <?php echo esc_html($myhome_footer->get_phone()); ?>
  48. </a>
  49. </div>
  50. <?php endif; ?>
  51.  
  52. <?php if ($myhome_footer->has_email()) : ?>
  53. <div class="mh-footer__contact">
  54. <a href="mailto:<?php echo esc_attr($myhome_footer->get_email()) ?>">
  55. <i class="flaticon-mail-2"></i>
  56. <?php echo esc_html($myhome_footer->get_email()); ?>
  57. </a>
  58. </div>
  59. <?php endif; ?>
  60.  
  61. </div>
  62.  
  63. <?php endif; ?>
  64.  
  65. <?php
  66. if (is_active_sidebar('mh-sidebar-footer')) :
  67. dynamic_sidebar('mh-sidebar-footer');
  68. endif;
  69. ?>
  70.  
  71. </div>
  72. </div>
  73. </div>
  74. <?php endif; ?>
  75.  
  76. <?php if ($myhome_footer->has_copyrights()) : ?>
  77.  
  78. <div class="mh-footer-bottom <?php echo esc_attr($myhome_footer->get_bottom_class()); ?>">
  79. <div class="mh-layout">
  80. <?php echo wp_kses_post($myhome_footer->get_copyrights()); ?>
  81. </div>
  82. </div>
  83.  
  84. <?php endif; ?>
  85.  
  86. </footer>
  87. <account id="myhome-account"></account>
  88. <save-search id="myhome-save-search"></save-search>
  89.  
  90. <?php
  91. if ($myhome_footer->is_compare_enabled()) :
  92. My_Home_Theme()->layout->compare();
  93. endif;
  94. wp_footer();
  95. ?>
  96. </body>
  97. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement