%s', $counter, $widgets );
$counter++;
}
if ( $inside ) {
$output .= sprintf( '
', bizznis_attr( 'footer-widgets' ) );
$output .= sprintf( '
', bizznis_attr( 'footer-widgets-container', array( 'class' => 'wrap' ) ) );
$output .= $inside;
$output .= '
';
$output .= '
';
}
echo apply_filters( 'bizznis_footer_widget_areas', $output, $footer_widgets );
}
/**
* Echo the markup necessary to facilitate the footer credits.
*
* @since 1.0.0
*/
add_filter( 'bizznis_footer_output', 'do_shortcode', 20 );
add_action( 'bizznis_footer_inner', 'bizznis_footer_credits' );
function bizznis_footer_credits() {
# Build the text strings. Includes shortcodes
$backtotop_text = '[footer_backtotop]';
$creds_text = sprintf( '[footer_copyright before="%s "] · [footer_childtheme_link before="" after=" %s"] [footer_bizznis_link url="http://www.bizzthemes.com/" before=""] · [footer_wordpress_link] · [footer_loginout]', __( 'Copyright', 'bizznis' ), __( 'on', 'bizznis' ) );
# Filter the text strings
$backtotop_text = apply_filters( 'bizznis_footer_backtotop_text', $backtotop_text );
$creds_text = apply_filters( 'bizznis_footer_creds_text', $creds_text );
$output = sprintf( '', bizznis_attr( 'footer-creds' ) );
$output .= sprintf( '
', bizznis_attr( 'footer-creds-container', array( 'class' => 'wrap' ) ) );
$output .= '
' . $creds_text . '
';
$output .= '
';
$output .= '
';
echo apply_filters( 'bizznis_footer_output', $output, $backtotop_text, $creds_text );
}
/**
* Echo the footer scripts, defined in Theme Settings.
*
* @since 1.0.0
*/
add_filter( 'bizznis_footer_scripts', 'do_shortcode' );
add_action( 'wp_footer', 'bizznis_footer_scripts' );
function bizznis_footer_scripts() {
echo apply_filters( 'bizznis_footer_scripts', bizznis_option( 'footer_scripts' ) );
}