GET['view'] ) ) $view = sanitize_title( WPF()->GET['view'] ); if( ! empty( WPF()->GET['wpfpaged'] ) ) $paged = intval( WPF()->GET['wpfpaged'] ); if( ! empty( WPF()->GET['wpff'] ) ) $args['forumid'] = intval( WPF()->GET['wpff'] ); if( ! empty( WPF()->GET['prefixid'] ) ) { $args['prefixid'] = intval( WPF()->GET['prefixid'] ); $prefix_query = '&prefixid=' . $args['prefixid']; } $type = ( $view && $view !== 'unapproved' ? 'topics' : wpforo_setting( 'topics', 'recent_posts_type' ) ); if( $view === 'unapproved' ) $type = 'posts'; if( $view === 'prefix' ) $type = 'topics'; if( ! is_user_logged_in() || ! WPF()->usergroup->can( 'aum' ) ) { $args['private'] = 0; $args['status'] = 0; } $days = apply_filters( 'wpforo_recent_posts_limit', 30 ); if( $type === 'topics' ) { $end_date = time() - ( intval( $days ) * 24 * 60 * 60 ); if( wpfval( $args, 'prefixid' ) ) $args['prefix'] = (int) wpfval( $args, 'prefixid' ); $args['where'] = "`modified` > '" . gmdate( 'Y-m-d H:i:s', $end_date ) . "'"; $args['orderby'] = ( ! empty( WPF()->GET['wpfob'] ) ) ? wpforo_sanitize_orderby( WPF()->GET['wpfob'], 'topics', 'modified' ) : 'modified'; $args['order'] = 'DESC'; $args['offset'] = ( $paged - 1 ) * wpforo_setting( 'topics', 'topics_per_page' ); $args['row_count'] = wpforo_setting( 'topics', 'topics_per_page' ); switch( $view ) { case 'unread': $args['read'] = false; break; case 'no-replies': $args['where'] = null; $args['include'] = wpforo_get_not_replied_topicids(); break; case 'solved': $args['solved'] = 1; break; case 'unsolved': $args['solved'] = 0; break; case 'closed': $args['closed'] = 1; break; case 'opened': $args['closed'] = 0; break; case 'sticky': $args['type'] = 1; break; case 'private': $args['private'] = 1; break; case 'unapproved': $args['status'] = 1; break; case 'prefix': $args['where'] = null; break; } $topics = $view === 'no-replies' && empty( $args['include'] ) ? [] : WPF()->topic->get_topics( $args, $items_count ); } else { $end_date = time() - ( intval( $days ) * 24 * 60 * 60 ); if( $view !== 'unapproved' ) $args['where'] = "`created` > '" . gmdate( 'Y-m-d H:i:s', $end_date ) . "'"; $args['orderby'] = ( ! empty( WPF()->GET['wpfob'] ) ) ? wpforo_sanitize_orderby( WPF()->GET['wpfob'], 'posts', 'created' ) : 'created'; $args['order'] = 'DESC'; $args['offset'] = ( $paged - 1 ) * wpforo_setting( 'topics', 'posts_per_page' ); $args['row_count'] = wpforo_setting( 'topics', 'posts_per_page' ); switch( $view ) { case 'unapproved': $args['status'] = 1; break; } $posts = WPF()->post->get_posts( $args, $items_count ); } ?>

 | 
tpl->pagenavi( $paged, $items_count, $args['row_count'], false ); ?>
1 ) ? ( $intro_posts - 1 ) : $intro_posts = 0; } $first_poster = wpforo_member( $first_post ); if( ! $view && apply_filters( 'wpforo_recent_topics_intro', true, $topic ) ) { $posts = WPF()->post->get_posts( [ 'topicid' => $topic['topicid'], 'orderby' => '`is_first_post` ASC, `created` DESC, `postid` DESC', 'row_count' => $intro_posts ] ); } } $topic_url = wpforo_topic( $topic['topicid'], 'url' ); $topic_posturl = ( $view == 'unread' && wpfval( $last_post, 'url' ) ) ? $last_post['url'] : WPF()->topic->get_url( $topicid ); $post_toglle = wpforo_setting( 'topics', 'layout_extended_intro_posts_toggle' ); ?>
 
usergroup->can( 'va' ) && wpforo_setting( 'profiles', 'avatars' ) ): ?>

 |  :

 
  •  
     

  • ( $intro_posts + 1 ) ): ?>

 
usergroup->can( 'va' ) && wpforo_setting( 'profiles', 'avatars' ) ): ?>  

,

 

tpl->pagenavi( $paged, $items_count, $args['row_count'], false ); ?>