urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), 'https://fonts.googleapis.com/css' ); } return $fonts_url; } endif; // Shortcode used in footer copyright if ( ! function_exists( 'agency_plus_apply_theme_shortcode' ) ) : /** * Apply theme shortcode. * * @since 1.0.0 * * @param string $string Content. * @return string Modified content. */ function agency_plus_apply_theme_shortcode( $string ) { if ( empty( $string ) ) { return $string; } $search = array( '[the-year]', '[the-site-title]' ); $replace = array( date_i18n( esc_html_x( 'Y', 'year date format', 'agency-plus' ) ), esc_html( get_bloginfo( 'name', 'display' ) ), ); $string = str_replace( $search, $replace, $string ); return $string; } endif; // Add go to top if ( ! function_exists( 'agency_plus_footer_goto_top' ) ) : /** * Add Go to top. * * @since 1.0.0 */ function agency_plus_footer_goto_top() { $goto_top = agency_plus_get_option( 'enable_goto_top' ); if( 1 == $goto_top ){ echo ''; } } endif; add_action( 'wp_footer', 'agency_plus_footer_goto_top' );