Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.57 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying the footer
  4. *
  5. * Contains the closing of the #content div and all content after.
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package Elegant_Magazine
  10. */
  11.  
  12. ?>
  13.  
  14.  
  15. </div>
  16.  
  17. <?php if ( is_active_sidebar('express-off-canvas-panel') ) : ?>
  18. <div id="sidr" class="primary-background">
  19. <a class="sidr-class-sidr-button-close" href="#sidr-nav"><i class="far primary-footer fa-window-close"></i></a>
  20. <?php dynamic_sidebar('express-off-canvas-panel'); ?>
  21. </div>
  22. <?php endif; ?>
  23.  
  24. <?php
  25.  
  26.  
  27. if (is_front_page() || is_home()) {
  28. do_action('elegant_magazine_action_full_width_upper_footer_section');
  29. }
  30.  
  31.  
  32. ?>
  33.  
  34. <footer class="site-footer">
  35. <?php if (is_active_sidebar( 'footer-first-widgets-section') || is_active_sidebar( 'footer-second-widgets-section') || is_active_sidebar( 'footer-third-widgets-section')) : ?>
  36. <div class="primary-footer">
  37. <div class="container">
  38. <div class="row">
  39. <div class="col-sm-12">
  40. <div class="row">
  41. <?php if (is_active_sidebar( 'footer-first-widgets-section') ) : ?>
  42. <div class="primary-footer-area footer-first-widgets-section col-md-4 col-sm-12">
  43. <section class="widget-area">
  44. <?php dynamic_sidebar('footer-first-widgets-section'); ?>
  45. </section>
  46. </div>
  47. <?php endif; ?>
  48.  
  49. <?php if (is_active_sidebar( 'footer-second-widgets-section') ) : ?>
  50. <div class="primary-footer-area footer-second-widgets-section col-md-4 col-sm-12">
  51. <section class="widget-area">
  52. <?php dynamic_sidebar('footer-second-widgets-section'); ?>
  53. </section>
  54. </div>
  55. <?php endif; ?>
  56.  
  57. <?php if (is_active_sidebar( 'footer-third-widgets-section') ) : ?>
  58. <div class="primary-footer-area footer-third-widgets-section col-md-4 col-sm-12">
  59. <section class="widget-area">
  60. <?php dynamic_sidebar('footer-third-widgets-section'); ?>
  61. </section>
  62. </div>
  63. <?php endif; ?>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <?php endif; ?>
  70. <div class="footer-logo-branding">
  71. <div class="container">
  72. <div class="row">
  73. <div class="col-sm-12">
  74. <div class="footer-logo">
  75. <div class="site-branding">
  76. <?php the_custom_logo(); ?>
  77. <h3 class="site-title font-family-1">
  78. <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
  79. </h3>
  80. <?php
  81. $description = get_bloginfo('description', 'display');
  82. if ($description || is_customize_preview()) : ?>
  83. <p class="site-description"><?php echo esc_html($description); ?></p>
  84. <?php
  85. endif; ?>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <?php if (has_nav_menu( 'em-footer-nav' ) || has_nav_menu( 'em-social-nav' )):
  93. $class = 'col-sm-12';
  94. if (has_nav_menu( 'em-footer-nav' ) && has_nav_menu( 'em-social-nav' )){
  95. $class = 'col-sm-6';
  96. }
  97.  
  98. ?>
  99. <div class="secondary-footer">
  100. <div class="container">
  101. <div class="row">
  102. <?php if (has_nav_menu( 'em-footer-nav' )): ?>
  103. <div class="<?php echo esc_attr($class); ?>">
  104. <div class="footer-nav-wrapper">
  105. <?php
  106. wp_nav_menu(array(
  107. 'theme_location' => 'em-footer-nav',
  108. 'menu_id' => 'footer-menu',
  109. 'depth' => 1,
  110. 'container' => 'div',
  111. 'container_class' => 'footer-navigation'
  112. )); ?>
  113. </div>
  114. </div>
  115. <?php endif; ?>
  116. <?php if (has_nav_menu( 'em-social-nav' )): ?>
  117. <div class="<?php echo esc_attr($class); ?>">
  118. <div class="footer-social-wrapper">
  119. <?php
  120. wp_nav_menu(array(
  121. 'theme_location' => 'em-social-nav',
  122. 'link_before' => '<span class="screen-reader-text">',
  123. 'link_after' => '</span>',
  124. 'menu_id' => 'social-menu',
  125. 'container' => 'div',
  126. 'container_class' => 'social-navigation'
  127. ));
  128. ?>
  129. </div>
  130. </div>
  131. <?php endif; ?>
  132. </div>
  133. </div>
  134. </div>
  135. <?php endif; ?>
  136. <div class="site-info">
  137. <div class="container">
  138. <div class="row">
  139. <div class="col-sm-12">
  140. <?php $em_copy_right = elegant_magazine_get_option('footer_copyright_text'); ?>
  141. <?php if (!empty($em_copy_right)): ?>
  142. <?php echo esc_html($em_copy_right); ?>
  143. <?php endif; ?>
  144. <span class="sep"> | </span>
  145. <?php
  146. /* translators: 1: Theme name, 2: Theme author. */
  147. printf(esc_html__('Theme: %1$s by %2$s.', 'elegant-magazine'), '<a href="https://afthemes.com/elegant-magazine">Elegant Magazine</a>', '<a href="https://afthemes.com/">AF themes</a>');
  148. ?>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </footer>
  154. </div>
  155. <a id="scroll-up" class="secondary-color">
  156. <i class="fa fa-angle-up"></i>
  157. </a>
  158. <?php wp_footer(); ?>
  159.  
  160. </body>
  161. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement