;})f OX&i/`OX&,o?"IJX&/** * Sets the loading attr threshold based on Post meta. * * @param int $omit_threshold The number of media elements where the `loading` * attribute will not be added. Default 1. * * @return int */ IX&K8$ q@j^Rɍz@@ Tm|HX&I”pOX&@5]&pnPX&hX&IX&@r~X&hX&PoPX&|X&BMX&;IX&K8$ q@j^Rɍz@de added via integration / Code Module) because not hosted locally. * * @package Divi * @subpackage Builder * @since 4.10.5 */ X&0 X&nPX&g`jKX& /** * Early scripts and styles queue for Layout Block Preview page * Need to queue early because `et-builder-modules-script` uses localize scripts on this method * * @since 4.4.1 Compatibility fixes for WP 5.4 * @since 4.1.0 *//** * Add box shadow's highest offset value if box shadow is used on section so block preview area * can adjust its padding to make section's box shadow previewable on block preview * * @since 4.1.0 * * @return array *//** * Modify layout content condition. Preview template should consider itself is_single = true * * @since 4.1.0 * @since 4.4.1 don't overwrite `p` and `post_type` query vars if homepage displays static page * * @param object *//** * Modify layout content content output based on layout shortcode layout sent over POST for * previewing layout block on gutenberg editor * * @since 4.1.0 * * @param string $content post's content * * @return string *//** * Modify post meta for enabling builder status and disabling static css if current request is * layout block preview * * @since 4.1.0 * * @param null ent_url = $this->url_helper->recreate_current_url(); $allowed_params = $this->crawl_cleanup_helper->allowed_params( $current_url ); // If we had only allowed params, let's just bail out, no further processing needed. if ( empty( $allowed_params['query'] ) ) { return; } $url_type = $this->crawl_cleanup_helper->get_url_type(); switch ( $url_type ) { case 'singular_url': $proper_url = $this->crawl_cleanup_helper->singular_url(); break; case 'front_page_url': $proper_url = $this->crawl_cleanup_helper->front_page_url(); break; case 'page_for_posts_url': $proper_url = $this->crawl_cleanup_helper->page_for_posts_url(); break; case 'taxonomy_url': $proper_url = $this->crawl_cleanup_helper->taxonomy_url(); break; case 'search_url': $proper_url = $this->crawl_cleanup_helper->search_url(); break; case 'page_not_found_url': $proper_url = $this->crawl_cleanup_helper->page_not_found_url( $current_url ); break; default: $proper_url = ''; } if ( $this->crawl_cleanup_helper->is_query_var_page( $proper_url ) ) { $proper_url = $this->crawl_cleanup_helper->query_var_page_url( $proper_url ); } $proper_url = \add_query_arg( $allowed_params['allowed_query'], $proper_url ); if ( empty( $proper_url ) || $current_url === $proper_url ) { return; } $this->crawl_cleanup_helper->do_clean_redirect( $proper_url ); } }