Konark

footer.php

Jul 28th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.86 KB | None | 0 0
  1. <?php
  2. /** Themify Default Variables
  3.  @var object */
  4.     global $themify; ?>
  5.  
  6.     <?php themify_layout_after(); //hook ?>
  7.     </div>
  8.     <!-- /body -->
  9.        
  10.     <div id="footerwrap">
  11.    
  12.         <?php themify_footer_before(); // hook ?>
  13.         <footer id="footer" class="pagewidth clearfix">
  14.             <?php themify_footer_start(); // hook ?>   
  15.  
  16.             <?php get_template_part( 'includes/footer-widgets'); ?>
  17.    
  18.             <p class="back-top"><a href="#header">&uarr;</a></p>
  19.        
  20.             <?php if (function_exists('wp_nav_menu')) {
  21.                 wp_nav_menu(array('theme_location' => 'footer-nav' , 'fallback_cb' => '' , 'container'  => '' , 'menu_id' => 'footer-nav' , 'menu_class' => 'footer-nav'));
  22.             } ?>
  23.    
  24.             <div class="footer-text clearfix">
  25.                 <?php themify_the_footer_text(); ?>
  26.                
  27.             </div>
  28.             <!-- /footer-text -->
  29.             <?php themify_footer_end(); // hook ?>
  30.         </footer>
  31.         <!-- /#footer -->
  32.        <?php themify_footer_after(); // hook ?>
  33.     </div>
  34.     <!-- /#footerwrap -->
  35.    
  36. </div>
  37. <!-- /#pagewrap -->
  38.  
  39. <?php
  40. /**
  41.  *  Stylesheets and Javascript files are enqueued in theme-functions.php
  42.  */
  43. ?>
  44.  
  45. <?php themify_body_end(); // hook ?>
  46. <!-- wp_footer -->
  47. <?php wp_footer(); ?>
  48.  
  49. <script type='text/javascript'>
  50. (function () {
  51.     window['yandexChatWidgetCallback'] = function() {
  52.         try {
  53.             window.yandexChatWidget = new Ya.ChatWidget({
  54.                 guid: 'f217f1bd-ae68-4f86-96f8-1be4a9ea4305',
  55.                 buttonText: '',
  56.                 title: 'Чат',
  57.                 theme: 'light',
  58.                 collapsedDesktop: 'never',
  59.                 collapsedTouch: 'never'
  60.             });
  61.         } catch(e) { }
  62.     };
  63.     var n = document.getElementsByTagName('script')[0],
  64.         s = document.createElement('script');
  65.     s.async = true;
  66.     s.src = 'https://chat.s3.yandex.net/widget.js';
  67.     n.parentNode.insertBefore(s, n);
  68. })();
  69. </script>
  70. </body>
  71. </html>
Add Comment
Please, Sign In to add comment