remove_control( 'hide_front_page_title'); } add_action( 'customize_register', 'fredrickson_wpcom_customize_update', 11 ); /** * Enqueue CSS for Customizer message. */ function fredrickson_customizer_enqueue() { wp_enqueue_style( 'fredrickson-customizer-style', get_stylesheet_directory_uri() . '/inc/wpcom-customizer.css', array(), wp_get_theme()->get( 'Version' ) ); } add_action( 'customize_controls_enqueue_scripts', 'fredrickson_customizer_enqueue' ); /** * Register WP.com-only block patterns. */ if ( ! function_exists( 'fredrickson_register_wpcom_block_patterns' ) ) : function fredrickson_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( 'fredrickson/card', array( 'title' => __( 'Card', 'fredrickson' ), 'categories' => array( 'fredrickson' ), 'content' => '
'. esc_attr__( 'Portrait of a woman against a pink and blue background.', 'fredrickson' ) . '

' . __( 'Kate Adams', 'fredrickson' ) . '

'. esc_html__( 'Hi! I’m a lead strategist for growing sustainable revenue streams for integrated fundraising.', 'fredrickson' ) . '

', ) ); /* This pattern is WP.com-only because it relies on the Contact Form block. */ register_block_pattern( 'fredrickson/email-signup', array( 'title' => __( 'Email Signup', 'fredrickson' ), 'categories' => array( 'fredrickson' ), 'content' => '

'. esc_html__( 'Virtual Art Classes', 'fredrickson' ) . '

'. 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!', 'fredrickson' ) . '

', ) ); /* * @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( 'fredrickson/links-subscription-form', array( 'title' => __( 'Subscription Form and Links', 'fredrickson' ), 'categories' => array( 'link-in-bio' ), 'content' => '
'. esc_attr__( 'Image of a man with a guitar.', 'fredrickson' ) . '

'. esc_html__( 'Narrow Dog', 'fredrickson' ) . '

'. esc_html__( 'Noise Rock from Milwaukee, WI', 'fredrickson' ) . '

[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( 'fredrickson/coming-soon-solid-color', array( 'title' => __( 'Coming Soon: Solid Color', 'fredrickson' ), 'categories' => array( 'coming-soon' ), 'content' => '
' . esc_html__( 'A megaphone icon with sharp angles.', 'fredrickson' ) . '

' . esc_html__( 'Coming Soon', 'fredrickson' ) . '

' . esc_html__( 'Sign up to hear when my journey begins.', 'fredrickson' ) . '

[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( 'fredrickson/coming-soon-simple', array( 'title' => __( 'Coming Soon: Simple', 'fredrickson' ), 'categories' => array( 'coming-soon' ), 'content' => '

' . esc_html__( 'Coming Soon', 'fredrickson' ) . '

' . esc_html__( 'A new blog by MindStomp. Sign up to be notified when we launch.', 'fredrickson' ) . '

[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( 'fredrickson/coming-soon-app', array( 'title' => __( 'Coming Soon: App', 'fredrickson' ), 'categories' => array( 'coming-soon' ), 'content' => '
' . esc_html__( 'A close-up of a black smart watch against a pink background.', 'fredrickson' ) . '

' . esc_html__( 'A new app for designers', 'fredrickson' ) . '

' . esc_html__( 'We’re launching soon. Be the first to sign up!', 'fredrickson' ) . '

[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" submit_button_text="' . esc_html__( 'SUBSCRIBE', 'fredrickson' ) . '" 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', 'fredrickson_register_wpcom_block_patterns', 12 );