1Sq padding_left_4__hover 4 padding_1_tablet over r]q padding_left_5__hover r]q padding_left_5__hover gq padding_left_6__hover gq padding_left_6__hover 4 padding_1_tablet M{z2 padding_1_last_edited M{z2 padding_1_last_edited padding_1__hover ited padding_1__hover padding_2_tablet padding_2_tablet ΄99 padding_2_last_edited ΄99 padding_2_last_edited olS padding_2__hover ited olS padding_2__hover " padding_3_tablet " padding_3_tablet OC padding_3_last_edited OC padding_3_last_edited PA! padding_3__hover ited PA! padding_3__hover jtM+ padding_4_tablet jtM+ padding_4_tablet Зh4 padding_4_last_edited Зh4 padding_4_last_edited 1+ padding_4__hover ited 1+ padding_4__hover JVf parallax_method_1 KI5 padding_5_tablet KI5 padding_5_tablet QVAUZ padding_5_last_edited QVAUZ padding_5_last_edited 5 padding_5__hover 5 padding_5__hover ,? padding_6_tablet ,? padding_6_tablet Ҫ padding_6_last_edited Ҫ padding_6_last_edited Z? padding_6__hover Z? padding_6__hover JVf parallax_method_1 KVf parallax_method_2 KVf parallax_method_2 LVf parallax_method_3 LVf parallax_method_3 MVf parallax_method_4 MVf parallax_method_4 *T ׇ< custom_css_before_1 NVf parallax_method_5 NVf parallax_method_5 OVf parallax_method_6 OVf parallax_method_6 *T ׇ< custom_css_before_1 +T ׇ< custom_css_before_2 +T ׇ< custom_css_before_2 ,T ׇ< custom_css_before_3 ,T ׇ< custom_css_before_3 -T ׇ< custom_css_before_4 -T ׇ< custom_css_before_4 \bG custom_css_main_1 4 .T ׇ< custom_css_before_5 .T ׇ< custom_css_before_5 /T ׇ< custom_css_before_6 /T ׇ< custom_css_before_6 \bG custom_css_main_1 ]bG custom_css_main_2 ]bG custom_css_main_2 ^bG custom_css_main_3 ^bG custom_css_main_3 _bG custom_css_main_4 _bG custom_css_main_4 2*W custom_css_after_1 `bG custom_css_main_5 `bG custom_css_main_5 abG custom_css_main_6 abG custom_css_main_6 2*W custom_css_after_1 2*W custom_css_after_2 2*W custom_css_after_2 2*W custom_css_after_3 2*W custom_css_after_3 2*W custom_css_after_4 2*W custom_css_after_4 eader', 'wordpress-seo' ), ]; $this->permalink_cleanup_settings = [ 'clean_campaign_tracking_urls' => \__( 'Campaign tracking URL parameters', 'wordpress-seo' ), 'clean_permalinks' => \__( 'Unregistered URL parameters', 'wordpress-seo' ), ]; $this->search_cleanup_settings = [ 'search_cleanup' => \__( 'Filter search terms', 'wordpress-seo' ), 'search_cleanup_emoji' => \__( 'Filter searches with emojis and other special characters', 'wordpress-seo' ), 'search_cleanup_patterns' => \__( 'Filter searches with common spam patterns', 'wordpress-seo' ), 'deny_search_crawling' => \__( 'Prevent search engines from crawling site search URLs', 'wordpress-seo' ), 'redirect_search_pretty_urls' => \__( 'Redirect pretty URLs for search pages to raw format', 'wordpress-seo' ), ]; $this->unused_resources_settings = [ 'remove_emoji_scripts' => \__( 'Emoji scripts', 'wordpress-seo' ), 'deny_wp_json_crawling' => \__( 'Prevent search engines from crawling /wp-json/', 'wordpress-seo' ), ]; } /** * Adds content to the Crawl Cleanup tab. * * @deprecated 20.4 * @codeCoverageIgnore * * @param Yoast_Form $yform The yoast form object. */ public function add_crawl_settings_tab_content( $yform ) { _deprecated_function( __METHOD__, 'Yoast SEO 20.4' ); $this->add_crawl_settings( $yform, false ); } /** * Adds content to the Crawl Cleanup network tab. * * @param Yoast_Form $yform The yoast form object. */ public function add_crawl_settings_tab_content_network( $yform ) { $this->add_crawl_settings( $yform, true ); } /** * Print the settings sections. * * @param Yoast_Form $yform The Yoast form class. * * @return void */ private function add_crawl_settings( $yform ) { $this->print_toggles( $this->basic_settings, $yform, \__( 'Basic crawl settings', 'wordpress-seo' ) ); $this->print_toggles( $this->feed_settings, $yform, \__( 'Feed crawl settings', 'wordpress-seo' ) ); $this->print_toggles( $this->unused_resources_settings, $yform, \__( 'Remove unused resources', 'wordpress-seo' ) ); $first_search_setting = \array_slice( $this->search_cleanup_settings, 0, 1 ); $rest_search_settings = \array_slice( $this->search_cleanup_settings, 1 ); $search_settings_toggles = [ 'off' => \__( 'Disabled', 'wordpress-seo' ), 'on' => \__( 'Enabled', 'wordpress-seo' ), ]; $this->print_toggles( $first_search_setting, $yform, \__( 'Search cleanup settings', 'wordpress-seo' ), $search_settings_toggles ); $this->print_toggles( $rest_search_settings, $yform, '', $search_settings_toggles ); $permalink_warning = \sprintf( /* Translators: %1$s expands to an opening anchor tag for a link leading to the Yoast SEO page of the Permalink Cleanup features, %2$s expands to a closing anchor tag. */ \esc_html__( 'These are expert features, so make sure you know what you\'re doing before removing the parameters. %1$sRead more about how your site can be affected%2$s.', 'wordpress-seo' ), '', '' ); $this->print_toggles( $this->permalink_cleanup_settings, $yform, \__( 'Permalink cleanup settings', 'wordpress-seo' ), [], $permalink_warning ); // Add the original option as hidden, so as not to lose any values if it's disabled and the form is saved. $yform->hidden( 'clean_permalinks_extra_variables', 'clean_permalinks_extra_variables' ); } /** * Prints a list of toggles for an array of settings with labels. * * @param array $settings The settings being displayed. * @param Yoast_Form $yform The Yoast form class. * @param string $title Optional title for the settings being displayed. * @param array $toggles Optional naming of the toggle buttons. * @param string $warning Optional warning to be displayed above the toggles. * * @return void */ private function print_toggles( array $settings, Yoast_Form $yform, $title = '', $toggles = [], $warning = '' ) { if ( ! empty( $title ) ) { echo '
'; if ( \current_user_can( 'manage_options' ) ) { echo \sprintf( /* translators: 1: Link start tag to the Permalinks settings page, 2: Link closing tag. */ \esc_html__( 'This feature is disabled when your site is not using %1$spretty permalinks%2$s.', 'wordpress-seo' ), '', '' ); } else { echo \esc_html__( 'This feature is disabled when your site is not using pretty permalinks.', 'wordpress-seo' ); } echo '
'; } } } /** * Checks if the feature should be disabled due to non-pretty permalinks. * * @param string $setting The setting to be displayed. * * @return bool */ protected function should_feature_be_disabled_permalink( $setting ) { return ( \in_array( $setting, [ 'clean_permalinks', 'clean_campaign_tracking_urls' ], true ) && empty( \get_option( 'permalink_structure' ) ) ); } /** * Checks if the feature should be disabled due to the site being a multisite. * * @param string $setting The setting to be displayed. * * @return bool */ protected function should_feature_be_disabled_multisite( $setting ) { return ( \in_array( $setting, [ 'deny_search_crawling', 'deny_wp_json_crawling' ], true ) && \is_multisite() ); } }