emulsion 2.6.1

deleted

	//	add_filter( 'render_block_core/template-part', 'emulsion_fse_footer_content_filter', 10, 2 );
	//	add_filter( 'render_block_core/template-part', 'emulsion_fse_header_content_filter', 10, 2 );
	//	add_filter( 'render_block_core/template-part', 'emulsion_fse_footer_content_filter', 10, 2 );

if ( ! function_exists( 'emulsion_fse_footer_content_filter' ) ) {

	function emulsion_fse_footer_content_filter( $content, $block ) {

		if ( 'footer' == $block['attrs']['slug'] ) {

			if ( 'transitional' == emulsion_get_theme_operation_mode() ) {
				//return str_replace( '<footer', '<footer style="display:none"', $content );
			}
			/*
			  $policy_page_link	 = '';
			  $policy_page_title	 = '';
			  $policy_page_url	 = '';
			  $policy_page_id		 = (int) get_option( 'wp_page_for_privacy_policy' );

			  if ( $policy_page_id && get_post_status( $policy_page_id ) === 'publish' ) {

			  $policy_page_title	 = wp_kses_post( get_the_title( $policy_page_id ) );
			  $policy_page_url	 = esc_url( get_permalink( $policy_page_id ) );
			  $policy_page_link	 = sprintf( '<a href="%1$s" class="emulsion-privacy-policy">%2$s</a>', esc_url( $policy_page_url ), $policy_page_title );
			  }
			  $html = str_replace( array( '%current_year%', '%privacy_policy%' ), array( date( 'Y' ), $policy_page_link ), $content );

			  return $html; */
		}
		return $content;
	}

}

if ( ! function_exists( 'emulsion_fse_header_content_filter' ) ) {

	function emulsion_fse_header_content_filter( $content, $block ) {

		if ( 'header' == $block['attrs']['slug'] && 'transitional' == emulsion_get_theme_operation_mode() ) {

			return str_replace( '<header', '<header style="display:none"', $content );
		}
		return $content;
	}

}

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

[emulsion_relate_posts]