123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?php
- /**
- * The template for displaying the footer.
- *
- * Contains the closing of the #content div and all content after.
- *
- * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
- *
- * @package Pen
- */
- pen_sidebar_get( 'sidebar-left' );
- pen_sidebar_get( 'sidebar-right' );
- ?>
- </div><!-- #content -->
- </div><!-- .pen_container -->
- <?php
- pen_html_jump_menu( 'site' );
- ?>
- </div><!-- #pen_section -->
- <?php
- pen_sidebar_get( 'sidebar-bottom' );
- $connect_html = pen_html_connect( 'footer' );
- $connect_display = $connect_html ? 'show' : 'hide';
- $classes_footer = trim(
- implode(
- ' ',
- array_filter(
- array(
- 'site-footer',
- 'pen_html_connect_' . sanitize_html_class( $connect_display ),
- pen_option_get( 'color_footer_background_transparent' ) ? 'pen_is_transparent' : 'pen_not_transparent',
- )
- )
- )
- );
- ?>
- <footer id="pen_footer" class="<?php echo esc_attr( $classes_footer ); ?>" role="contentinfo">
- <div class="pen_container">
- <?php
- pen_sidebar_get( 'sidebar-footer-left' );
- ?>
- <div class="pen_footer_inner">
- <?php
- pen_sidebar_get( 'sidebar-footer-top' );
- if ( pen_option_get( 'footer_menu_display' ) ) {
- $menu_html = wp_nav_menu(
- array(
- 'theme_location' => 'secondary',
- 'menu_id' => 'secondary-menu',
- 'echo' => false,
- 'fallback_cb' => 'pen_html_footer_menu_fallback',
- )
- );
- if ( '' !== trim( $menu_html ) ) {
- ?>
- <nav id="pen_footer_menu" role="navigation" class="<?php pen_class_animation( 'footer_menu' ); ?>" aria-label="<?php esc_attr_e( 'Footer Menu', 'pen' ); ?>">
- <?php
- echo $menu_html; /* phpcs:ignore */
- ?>
- </nav>
- <?php
- }
- }
- $phone_html = pen_option_get( 'phone', false );
- if ( $phone_html && pen_option_get( 'phone_footer_display' ) ) {
- ?>
- <div class="pen_phone <?php pen_class_animation( 'phone_footer' ); /* phpcs:ignore */ ?>">
- <a href="tel:<?php echo esc_attr( $phone_html ); ?>">
- <?php
- echo esc_html( $phone_html );
- ?>
- </a>
- </div>
- <?php
- }
- echo $connect_html; /* phpcs:ignore */
- get_template_part( 'partials/content', 'copyright' );
- pen_sidebar_get( 'sidebar-footer-bottom' );
- ?>
- </div>
- <?php
- pen_sidebar_get( 'sidebar-footer-right' );
- ?>
- </div>
- <?php
- pen_html_jump_menu( 'footer' );
- ?>
- </footer><!-- #pen_footer -->
- </div><!-- .pen_wrapper -->
- </div><!-- #page -->
- <a id="pen_back" href="#page" title="<?php esc_attr_e( 'Back to top', 'pen' ); ?>"<?php echo ( ! pen_option_get( 'footer_back_to_top_display' ) ) ? ' class="screen-reader-text' : ''; /* phpcs:ignore */ ?>>
- <span class="screen-reader-text">
- <?php
- esc_html_e( 'Back to top', 'pen' );
- ?>
- </span>
- </a>
- <?php
- wp_footer();
- ?>
- <!-- Global site tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-141610064-1"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', 'UA-141610064-1');
- </script>
- </body>
- </html>
- <?php
- ob_end_flush();
|