current_object['forum'] ) : ?>
board->get_current( 'settings' )['title'] ) ?>
current_object['categories'] ) :
$forum_template = 'forum.php';
if( WPF()->current_object['template'] == 'topic' && WPF()->current_object['layout'] == 4 ) {
$forum_template = 'forum-sub.php';
}
foreach( $cats as $key => $cat ) {
if( WPF()->perm->forum_can( 'vf', $cat['forumid'] ) ) {
$args = [ "parentid" => $cat['forumid'], "type" => 'forum' ];
$forums = WPF()->forum->get_forums( $args );
if( ! empty( $forums ) ) {
$layout = ( $cat['layout'] ? intval( $cat['layout'] ) : 1 );
do_action( 'wpforo_category_loop_start', $cat, $key );
$template_path = wpftpl( 'layouts/' . $layout . '/' . $forum_template );
if( file_exists( $template_path ) ) {
include( $template_path );
}
do_action( 'wpforo_category_loop_end', $cat, $key );
}else{
do_action( 'wpforo_category_loop_no_forums', $cat, $key );
}
}
}
else : ?>