浏览代码

replaced subscribe section with search block

Maggie 4 年之前
父节点
当前提交
c426875d95
共有 2 个文件被更改,包括 3 次插入7 次删除
  1. 0 4
      skatepark/inc/block-patterns.php
  2. 3 3
      skatepark/inc/patterns/pre-footer.php

+ 0 - 4
skatepark/inc/block-patterns.php

@@ -21,10 +21,6 @@ if ( ! function_exists( 'skatepark_register_block_patterns' ) ) :
 				'pre-footer',
 			);
 
-			if ( class_exists( 'WP_Block_Type_Registry' ) && \WP_Block_Type_Registry::get_instance()->is_registered( 'jetpack/subscriptions' ) ) {
-				$block_patterns[] = 'pre-footer';
-			}
-
 			foreach ( $block_patterns as $block_pattern ) {
 				register_block_pattern(
 					'skatepark/' . $block_pattern,

+ 3 - 3
skatepark/inc/patterns/pre-footer.php

@@ -36,9 +36,9 @@ return array(
 
 		<!-- wp:column -->
 		<div class="wp-block-column"><!-- wp:heading {"level":3,"fontSize":"tiny"} -->
-		<h3 class="has-tiny-font-size"><strong>' . esc_html__( 'Subscribe', 'skatepark' ) . '</strong></h3><!-- /wp:heading --><!-- wp:jetpack/subscriptions {"submitButtonText":"' . esc_html__( 'Submit', 'skatepark' ) . '","buttonBackgroundColor":"background","textColor":"primary","fontSize":"14px","customFontSize":"14px","borderRadius":0,"borderWeight":3,"borderColor":"#000000","customBorderColor":"#000000","spacing":0} -->
-		<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" submit_button_text="' . esc_html__( 'Submit', 'skatepark' ) . '" custom_font_size="14px" custom_border_radius="0" custom_border_weight="3" custom_border_color="#000000" custom_padding="15" custom_spacing="10" submit_button_classes="no-border-radius has-14-px-font-size has-000000-border-color has-text-color has-primary-color has-background has-background-background-color" email_field_classes="no-border-radius has-14-px-font-size has-000000-border-color" show_only_email_and_button="true"]</div>
-		<!-- /wp:jetpack/subscriptions --></div>
+		<h3 class="has-tiny-font-size"><strong>' . esc_html__( 'Search', 'skatepark' ) . '</strong></h3><!-- /wp:heading --><!-- wp:heading {"level":3,"fontSize":"tiny"} -->
+		<h3 class="has-tiny-font-size"><strong>Search</strong></h3>
+		<!-- /wp:heading --></div>
 		<!-- /wp:column --></div>
 		<!-- /wp:columns --></div>
 		<!-- /wp:group -->',