disable_sidebar() ) ? $no_sidebar : $sidebar ); // params . $args = array( 'content_class' => $sidebar_display ); get_template_part( 'template-parts/head', 'blog', $args ); } /** * Get the sidebar. */ public function sidebar() { if ( $this->disable_sidebar() ) { return false; } get_template_part( 'template-parts/sidebar' ); } /** * Footer section */ public function footer() { ?> sidebar(); ?>