Astra_Builder_Footer::footer_copyright()

Render Footer Copyright Markup!


Description


Source

File: inc/builder/markup/class-astra-builder-footer.php

		public function footer_copyright() {

			$theme_author = astra_get_theme_author_details();

			$content = astra_get_option( 'footer-copyright-editor' );
			if ( $content || is_customize_preview() ) {
				echo '<div class="ast-footer-copyright">';
						$content = str_replace( '[copyright]', '&copy;', $content );
						$content = str_replace( '[current_year]', gmdate( 'Y' ), $content );
						$content = str_replace( '[site_title]', get_bloginfo( 'name' ), $content );
						$content = str_replace( '[theme_author]', '<a href=" ' . esc_url( $theme_author['theme_author_url'] ) . '" rel="nofollow noopener" target="_blank">' . $theme_author['theme_name'] . '</a>', $content );
						echo do_shortcode( wpautop( $content ) );
				echo '</div>';
			}

		}


User Contributed Notes

You must log in before being able to contribute a note or feedback.