'jetpack_render_revue_block', ) ); /** * Revue block render callback. * * @param array $attributes Array containing the Revue block attributes. * * @return string */ function jetpack_render_revue_block( $attributes ) { if ( ! array_key_exists( 'revueUsername', $attributes ) ) { return ''; } $email_label = jetpack_get_revue_attribute( 'emailLabel', $attributes ); $email_placeholder = jetpack_get_revue_attribute( 'emailPlaceholder', $attributes ); $first_name_label = jetpack_get_revue_attribute( 'firstNameLabel', $attributes ); $first_name_placeholder = jetpack_get_revue_attribute( 'firstNamePlaceholder', $attributes ); $first_name_show = jetpack_get_revue_attribute( 'firstNameShow', $attributes ); $last_name_label = jetpack_get_revue_attribute( 'lastNameLabel', $attributes ); $last_name_placeholder = jetpack_get_revue_attribute( 'lastNamePlaceholder', $attributes ); $last_name_show = jetpack_get_revue_attribute( 'lastNameShow', $attributes ); $url = sprintf( 'https://www.getrevue.co/profile/%s/add_subscriber', $attributes['revueUsername'] ); $base_class = Jetpack_Gutenberg::block_classes( 'revue', array() ) . '__'; $classes = Jetpack_Gutenberg::block_classes( 'revue', $attributes ); Jetpack_Gutenberg::load_assets_as_required( 'revue' ); ob_start(); ?>

__( 'Subscribe', 'jetpack' ), 'emailLabel' => __( 'Email address', 'jetpack' ), 'emailPlaceholder' => __( 'Your email address…', 'jetpack' ), 'firstNameLabel' => __( 'First name', 'jetpack' ), 'firstNamePlaceholder' => __( 'First name… (Optional)', 'jetpack' ), 'firstNameShow' => true, 'lastNameLabel' => __( 'Last name', 'jetpack' ), 'lastNamePlaceholder' => __( 'Last name… (Optional)', 'jetpack' ), 'lastNameShow' => true, ); if ( array_key_exists( $attribute, $default_attributes ) ) { return $default_attributes[ $attribute ]; } }