1 ) ? 'first' : ''; /* * The footer widget area is triggered if any of the areas * have widgets. So let's check that first. * * If none of the sidebars have widgets, then let's bail early. */ if ( ! is_active_sidebar( 'footer-1' ) && ! is_active_sidebar( 'footer-2' ) && ! is_active_sidebar( 'footer-3' ) && ! is_active_sidebar( 'footer-4' ) ) return; // If we get this far, we have widgets. Let do this. echo ''; } endif; if ( ! function_exists( 'amy_footer_credits' ) ) : /** * Prints the footer widgets. */ function amy_footer_credits() { if ( get_theme_mod( 'amy_footer_credits' ) ) { $footer_credits = html_entity_decode( get_theme_mod( 'amy_footer_credits' ) ); } else { $footer_credits = sprintf( '%1$s WPshed · %3$s WordPress ', esc_html__( 'Theme by', 'amy' ), esc_url( 'https://wpshed.com' ), esc_html__( 'Powered by', 'amy' ), esc_url( 'https://wordpress.org' ) ); } printf( '

%1$s © %2$s %4$s · %5$s

', __( 'Copyright', 'amy' ), date( 'Y' ), esc_url( home_url( '/' ) ), get_bloginfo( 'name' ), $footer_credits ); } endif;