%s', $counter, $widgets );
$counter++;
}
if ( $inside ) {
$output .= sprintf( '
', bizznis_attr( 'footer-widgets' ) );
$output .= bizznis_sidebar_title( 'Footer' );
$output .= bizznis_wrapper( 'footer-widgets-wrapper', 'open', false ); #wrapper
$output .= $inside;
$output .= bizznis_wrapper( 'footer-widgets-wrapper', 'close', false ); #wrapper
$output .= '
';
}
echo apply_filters( 'bizznis_footer_widget_areas', $output, $footer_widgets );
}
endif;
add_filter( 'bizznis_footer_output', 'do_shortcode', 20 );
add_action( 'bizznis_footer_inner', 'bizznis_footer_credits' );
/**
* Echo the markup necessary to facilitate the footer credits.
*
* @since 1.0.0
*/
if ( ! function_exists( '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_bizzthemes_link url="http://www.bizzthemes.com/" before="%s "] · [footer_wordpress_link] · [footer_loginout]
', __( 'Copyright', 'bizznis' ), __( 'on', 'bizznis' ), __( 'by', 'bizznis' ) );
# Filter the text strings
$backtotop_text = apply_filters( 'bizznis_footer_backtotop_text', $backtotop_text, $creds_text );
$creds_text = apply_filters( 'bizznis_footer_creds_text', $creds_text, $backtotop_text );
# Build output
$output = sprintf( '', bizznis_attr( 'footer-creds' ) );
$output .= bizznis_wrapper( 'footer-creds-wrapper', 'open', false ); #wrapper
$output .= $creds_text;
$output .= bizznis_wrapper( 'footer-creds-wrapper', 'close', false ); #wrapper
$output .= '
';
echo apply_filters( 'bizznis_footer_output', $output, $backtotop_text, $creds_text );
}
endif;
add_filter( 'bizznis_footer_scripts', 'do_shortcode' );
add_action( 'wp_footer', 'bizznis_footer_scripts' );
/**
* Echo the footer scripts, defined in Theme Settings.
*
* @since 1.0.0
*/
if ( ! function_exists( 'bizznis_footer_scripts' ) ) :
function bizznis_footer_scripts() {
echo apply_filters( 'bizznis_footer_scripts', bizznis_option( 'footer_scripts' ) );
}
endif;