section.
*
* @package brisko
*/
final class Footer
{
use Singleton;
/**
* Site Footer
*/
public function site_footer() {
get_template_part( 'template-parts/footer', 'footer' );
}
/**
* Footer credit section
*
* @return void
*/
public function footer_credit() {
printf( esc_html__( '%1$s %2$s %3$s', 'brisko' ), wp_kses_post( $this->copyright() ), ' ', wp_kses_post( $this->poweredby() ) ); // @codingStandardsIgnoreLine
}
/**
* Copyright info
*
* @return string $copyright
*/
public function copyright() {
if ( get_theme_mod( 'footer_copyright' ) !== false ) {
$copyright = ''; // @codingStandardsIgnoreLine
} else {
$copyright = get_bloginfo( 'name' );
}
return $copyright;
}
/**
* Brisko Theme credit powered by
*
* @return string $poweredby
*/
public function poweredby() {
if ( get_theme_mod( 'poweredby' ) !== false ) {
$poweredby = '';
} else {
$poweredby = ' | Powered by Brisko WordPress Theme';
}
return $poweredby;
}
}