member->get_guest_cookies(); if( $only_new_guests && wpfval( $guest, 'email' ) ) return; $checkbox_forum_privacy = wpforo_setting( 'legal', 'checkbox_forum_privacy' ); $forum_privacy_text = wpforo_setting( 'legal', 'forum_privacy_text' ); if( $checkbox_forum_privacy && $forum_privacy_text ) { $forum_home = preg_replace( '|\?.+$|', '', wpforo_home_url() ); $str_privacy = wpforo_phrase( 'forum privacy policy', false, 'native' ); $str_privacy_label = wpforo_phrase( 'I have read and agree to the %s.', false ); $str_privacy_link = ' ' . $str_privacy . ''; $str_privacy = sprintf( $str_privacy_label, $str_privacy_link ); $str_privacy_text = wpautop( stripslashes( (string) $forum_privacy_text ) ); $str_privacy_text = apply_filters( 'wpforo_legal_forum_privacy_text', $str_privacy_text ); $url = parse_url( get_bloginfo( 'url' ) ); $find = [ '[forum-name]', '[forum-url]' ]; $domain = ( wpfval( $url, 'host' ) ) ? $url['host'] : $_SERVER['HTTP_HOST']; $replace = [ WPF()->board->get_current( 'settings' )['title'], $domain ]; $str_privacy_text = str_replace( $find, $replace, $str_privacy_text ); ?>
member->get_guest_cookies(); if( $only_new_guests && wpfval( $guest, 'email' ) ) return false; $rules_checkbox = wpforo_setting( 'legal', 'rules_checkbox' ); $rules_text = wpforo_setting( 'legal', 'rules_text' ); if( $rules_checkbox && $rules_text ) { $forum_home = preg_replace( '|\?.+$|', '', wpforo_home_url() ); $str_rules = wpforo_phrase( 'forum rules', false, 'native' ); $str_rules_text = wpforo_phrase( 'I have read and agree to abide by the %s.', false ); $str_rules_link = ' ' . $str_rules . ''; $str_rules = sprintf( $str_rules_text, $str_rules_link ); $str_rules_text = apply_filters( 'wpforo_legal_forum_rules_text', $rules_text ); ?> member->get_guest_cookies(); if( $only_new_guests && wpfval( $guest, 'email' ) ) return false; $str_and = ''; $str_terms = ''; $str_privacy = ''; $str_site_name = get_bloginfo( 'name' ); $str_site_name = $str_site_name ?: wpforo_phrase( 'the website', false ); $str_terms_privacy = wpforo_phrase( 'I have read and agree to the', false ); $str_if_no_pages = sprintf( wpforo_phrase( 'I have read and agree to %s privacy policy.', false ), $str_site_name ); if( $page_terms = wpforo_setting( 'legal', 'page_terms' ) ) { $term_url = $page_terms; $term_pageid = wpforo_wp_url_to_postid( $term_url ); $str_terms = wpforo_phrase( 'Terms', false ); $term_title = ( $term_pageid ) ? get_the_title( $term_pageid ) : $str_terms; $str_terms = ' ' . $str_terms . ' '; } if( $page_privacy = wpforo_setting( 'legal', 'page_privacy' ) ) { $privacy_url = $page_privacy; $privacy_pageid = wpforo_wp_url_to_postid( $privacy_url ); $str_privacy = wpforo_phrase( 'Privacy Policy', false ); $privacy_title = ( $privacy_pageid ) ? get_the_title( $privacy_pageid ) : $str_privacy; $str_privacy = ' ' . $str_privacy . ' '; } if( $str_terms && $str_privacy ) { $str_and = wpforo_phrase( 'and', false, 'lower' ); } if( $str_terms || $str_privacy || ( wpforo_setting( 'legal', 'checkbox_forum_privacy' ) && wpforo_setting( 'legal', 'forum_privacy_text' ) ) ) { $terms_privacy = $str_terms_privacy . ' ' . $str_terms . ' ' . $str_and . ' ' . $str_privacy; $terms_privacy = apply_filters( 'wpforo_legal_checkbox_label_terms_and_privacy', $terms_privacy ); if( ( $str_terms || $str_privacy ) && $terms_privacy ) { ?> board->get_current( 'settings' )['title'], $domain ]; $str_privacy_text = str_replace( $find, $replace, $str_privacy_text ); $str_privacy_text = apply_filters( 'wpforo_legal_forum_privacy_output', $str_privacy_text ); ?>