', $creds_text ) : '';
$output = $backtotop . $creds;
// Only use credits if HTML5.
if ( genesis_html5() ) {
$output = '
' . genesis_strip_p_tags( $creds_text ) . '
';
}
echo apply_filters( 'genesis_footer_output', $output, $backtotop_text, $creds_text );
}
add_filter( 'genesis_footer_scripts', 'do_shortcode' );
add_action( 'wp_footer', 'genesis_footer_scripts' );
/**
* Echo the footer scripts, defined in Theme Settings.
*
* Applies the `genesis_footer_scripts` filter to the value returns from the footer_scripts option.
*
* Also outputs page-specific body scripts if their position is set to 'bottom'.
*
* @since 1.1.0
*/
function genesis_footer_scripts() {
echo apply_filters( 'genesis_footer_scripts', genesis_get_option( 'footer_scripts' ) );
if ( ! is_singular() ) {
return;
}
if ( 'top' != genesis_get_custom_field( '_genesis_scripts_body_position' ) ) {
genesis_custom_field( '_genesis_scripts_body' );
}
}