123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Template part for displaying the content footer.
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
- *
- * @package Pen
- */
- ob_start( 'trim' );
- if ( pen_option_get( 'footer_copyright_display' ) ) {
- ?>
- <div class="site-info">
- <?php
- $copyright = pen_option_get( 'footer_copyright_text' );
- /* Translators: Please refer to the PHP documentation for the date() function. */
- $copyright = str_ireplace( '%YEAR%', date_i18n( esc_html__( 'Y', 'pen' ) ), $copyright );
- $copyright = str_ireplace( '%SITE_NAME%', get_bloginfo( 'name' ), $copyright );
- $site_url = home_url();
- $copyright = str_ireplace( '%SITE_URL%', $site_url, $copyright );
- if ( $copyright ) {
- echo wp_kses( $copyright, wp_kses_allowed_html( 'post' ) );
- } else {
- printf(
- '© %1$s. %2$s',
- esc_html( get_bloginfo( 'name' ) ),
- esc_html__( 'All rights reserved.', 'pen' )
- );
- }
- ?>
- </div><!-- .site-info -->
- <?php
- }
- echo ob_get_clean(); /* phpcs:ignore */
|