current_object['forumid'] ) ) { $forumid = WPF()->current_object['forumid']; } if( isset( WPF()->current_object['topicid'] ) ) { $topicid = WPF()->current_object['topicid']; } if( isset( $forumid ) && isset( $topicid ) ) { $rss2 = $url . '?type=rss2&forum=' . intval( $forumid ) . '&topic=' . intval( $topicid ); } elseif( isset( $forumid ) && ! isset( $topicid ) ) { $rss2 = $url . '?type=rss2&forum=' . intval( $forumid ); } if( $general ) { if( $general == 'topic' ) { $rss2 = $url . '?type=rss2&forum=g&topic=g'; } elseif( $general == 'forum' ) { $rss2 = $url . '?type=rss2&forum=g'; } } $rss2 = esc_url( (string) $rss2 ); if( $echo ) { echo $rss2; } else { return $rss2; } } function rss2_forum( $forum = [], $topics = [] ) { if( empty( $forum ) ) { if( ! wpforo_setting( 'rss', 'feed' ) ) { header( 'HTTP/1.0 404 Not Found', true, 404 ); die(); } else { return; } } header( "Content-Type: application/xml; charset" . get_option( 'blog_charset' ) ); echo ''; ?> <?php if( ! isset( $forum['title'] ) || ! $forum['title'] ): ?> <?php echo esc_html( WPF()->board->get_current( 'settings' )['title'] ) . ' - ' . wpforo_phrase( 'Recent Topics', false ) ?> <?php else: ?> <?php echo esc_html( $forum['title'] ); ?> - <?php echo esc_html( WPF()->board->get_current( 'settings' )['title'] ); ?> <?php endif; ?> board->get_current( 'settings' )['desc'] ); ?> wpForo 60 <?php echo wpforo_removebb( esc_html( $topic['title'] ) ); ?> ]]> ]]> '; ?> <?php if( ! isset( $topic['title'] ) || ! $topic['title'] ): ?> <?php echo esc_html( WPF()->board->get_current( 'settings' )['title'] ) . ' - ' . wpforo_phrase( 'Recent Posts', false ); ?> <?php else: ?> <?php echo esc_html( $topic['title'] ); ?> - <?php echo esc_html( wpfval( $forum, 'title' ) ); ?> <?php endif; ?> board->get_current( 'settings' )['desc'] ); ?> wpForo 60 <?php echo wpforo_removebb( esc_html( $post['title'] ) ); ?> ]]> ]]>