remove_control( 'hide_front_page_title');
}
add_action( 'customize_register', 'blank_canvas_wpcom_customize_update', 11 );
/**
* Enqueue CSS for Customizer message.
*/
function blank_canvas_customizer_enqueue() {
wp_enqueue_style( 'blank-canvas-customizer-style', get_stylesheet_directory_uri() . '/inc/wpcom-customizer.css', array(), wp_get_theme()->get( 'Version' ) );
}
add_action( 'customize_controls_enqueue_scripts', 'blank_canvas_customizer_enqueue' );
/**
* Register WP.com-only block patterns.
*/
if ( ! function_exists( 'blank_canvas_register_wpcom_block_patterns' ) ) :
function blank_canvas_register_wpcom_block_patterns() {
if ( function_exists( 'register_block_pattern' ) ) {
/* This pattern is WP.com-only because it relies on the Layout Grid block. */
register_block_pattern(
'blank-canvas/card',
array(
'title' => __( 'Card', 'blank-canvas' ),
'categories' => array( 'blank-canvas' ),
'content' => '
' . __( 'Kate Adams', 'blank-canvas' ) . '
'. esc_html__( 'Hi! I’m a lead strategist for growing sustainable revenue streams for integrated fundraising.', 'blank-canvas' ) . '
',
)
);
/* This pattern is WP.com-only because it relies on the Contact Form block. */
register_block_pattern(
'blank-canvas/email-signup',
array(
'title' => __( 'Email Signup', 'blank-canvas' ),
'categories' => array( 'blank-canvas' ),
'content' => '
'. esc_html__( 'Virtual Art Classes', 'blank-canvas' ) . '
'. esc_html__( 'Join instructor Jaime Adams for a series of virtual classes aimed at helping you hone your drawing skills. We will focus on composition, perspective, contour, representing volume, and more!', 'blank-canvas' ) . '
',
)
);
/*
* @TODO: This is commented out until the following Jetpack issue is resolved:
* https://github.com/Automattic/jetpack/issues/19113
*
* This pattern is WP.com-only because it relies on the Jetpack Subscription block.
register_block_pattern(
'blank-canvas/links-subscription-form',
array(
'title' => __( 'Subscription Form and Links', 'blank-canvas' ),
'categories' => array( 'link-in-bio' ),
'content' => '
'. esc_html__( 'Narrow Dog', 'blank-canvas' ) . '
'. esc_html__( 'Noise Rock from Milwaukee, WI', 'blank-canvas' ) . '
[jetpack_subscription_form subscribe_placeholder="Enter your email address" show_subscribers_total="false" button_on_newline="false" custom_font_size="undefinedpx" custom_border_radius="0" custom_border_weight="1" custom_padding="16" custom_spacing="10" submit_button_classes="has-undefinedpx-font-size has-text-color has-primary-color has-background has-background-background-color" email_field_classes="has-undefinedpx-font-size" show_only_email_and_button="true"]
',
)
); */
register_block_pattern(
'blank-canvas/coming-soon-solid-color',
array(
'title' => __( 'Coming Soon: Solid Color', 'blank-canvas' ),
'categories' => array( 'coming-soon' ),
'content' => '
' . esc_html__( 'Coming Soon', 'blank-canvas' ) . '
' . esc_html__( 'Sign up to hear when my journey begins.', 'blank-canvas' ) . '
[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="6" custom_border_weight="1" custom_border_color="#000000" custom_padding="15" custom_spacing="10" submit_button_classes="has-000000-border-color has-text-color has-background-color has-background has-primary-background-color" email_field_classes="has-000000-border-color" show_only_email_and_button="true"]
',
)
);
register_block_pattern(
'blank-canvas/coming-soon-simple',
array(
'title' => __( 'Coming Soon: Simple', 'blank-canvas' ),
'categories' => array( 'coming-soon' ),
'content' => '
' . esc_html__( 'Coming Soon', 'blank-canvas' ) . '
' . esc_html__( 'A new blog by MindStomp. Sign up to be notified when we launch.', 'blank-canvas' ) . '
[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" 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-000000-border-color has-text-color has-primary-color has-background has-background-background-color" email_field_classes="no-border-radius has-000000-border-color" show_only_email_and_button="true"]
',
)
);
register_block_pattern(
'blank-canvas/coming-soon-app',
array(
'title' => __( 'Coming Soon: App', 'blank-canvas' ),
'categories' => array( 'coming-soon' ),
'content' => '
' . esc_html__( 'A new app for designers', 'blank-canvas' ) . '
' . esc_html__( 'We’re launching soon. Be the first to sign up!', 'blank-canvas' ) . '
[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" submit_button_text="' . esc_html__( 'SUBSCRIBE', 'blank-canvas' ) . ' " custom_background_button_color="#dfcbda" custom_font_size="16px" custom_border_radius="4" custom_border_weight="1" custom_padding="20" custom_spacing="10" submit_button_classes="has-text-color has-primary-color" email_field_classes="" show_only_email_and_button="true"]
',
)
);
}
}
endif;
add_action( 'after_setup_theme', 'blank_canvas_register_wpcom_block_patterns', 12 );