diff --git a/blocks/post/edit.tsx b/blocks/post/edit.tsx index a9f6dac9..39650c3c 100644 --- a/blocks/post/edit.tsx +++ b/blocks/post/edit.tsx @@ -21,7 +21,6 @@ import { */ import { useBlockProps, InspectorControls, InnerBlocks } from '@wordpress/block-editor'; -import PostPickerResult from '@/components/postPickerResult'; /** * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. * Those files can contain any CSS code that gets applied to the editor. @@ -78,9 +77,6 @@ export default function Edit({ [], ); - const cutoff = new Date(); - cutoff.setMonth(cutoff.getMonth() - 3); - // TODO: Pass template and allowed blocks from PHP so they can be filtered. const MY_TEMPLATE = [ ['wp-newsletter-builder/post-featured-image', {}], @@ -121,11 +117,9 @@ export default function Edit({ onUpdate={handleSelect} allowedTypes={allowedPostTypes} onReset={() => handleSelect(0)} - params={{ after: cutoff.toISOString(), per_page: 20 }} + params={{ per_page: 20 }} title={__('Please select a post', 'wp-newsletter-builder')} value={postId} - // @ts-ignore - searchRender={PostPickerResult} /> ) : null} diff --git a/blocks/post/style.scss b/blocks/post/style.scss index 458df710..61dc69df 100644 --- a/blocks/post/style.scss +++ b/blocks/post/style.scss @@ -63,4 +63,8 @@ table { width: 100%; } + + li { + font-size: 16px; + } } diff --git a/components/postPickerResult/index.scss b/components/postPickerResult/index.scss index c171dea2..7f10875a 100644 --- a/components/postPickerResult/index.scss +++ b/components/postPickerResult/index.scss @@ -2,7 +2,6 @@ .alley-scripts-post-picker__post-list .alley-scripts-post-picker__post { height: auto; padding: 0 5px 0 0; - width: 99%; } .nb-post-picker-result { diff --git a/plugin.php b/plugin.php index 1a84d061..1c11b7ba 100644 --- a/plugin.php +++ b/plugin.php @@ -3,7 +3,7 @@ * Plugin Name: Newsletter Builder * Plugin URI: https://github.com/alleyinteractive/wp-newsletter-builder * Description: Interface to manage email newsletters - * Version: 0.3.12 + * Version: 0.3.13 * Author: Alley Interactive * Author URI: https://github.com/alleyinteractive/wp-newsletter-builder * Requires at least: 6.2 diff --git a/scss/core-blocks/list.scss b/scss/core-blocks/list.scss index b287103d..42380f84 100644 --- a/scss/core-blocks/list.scss +++ b/scss/core-blocks/list.scss @@ -1,3 +1,4 @@ li { - font-family: Geogria, serif; + font-family: Georgia, serif; + font-size: 16px; } diff --git a/src/class-email-types.php b/src/class-email-types.php index acbff76b..b2a445d7 100644 --- a/src/class-email-types.php +++ b/src/class-email-types.php @@ -52,7 +52,7 @@ public function register_fields(): void { [ 'name' => static::SETTINGS_KEY, 'children' => [ - 'uuid4' => new class() extends \Fieldmanager_Hidden { + 'uuid4' => new class() extends \Fieldmanager_Hidden { /** * Ensure that each group has a unique ID. * @@ -64,14 +64,14 @@ public function presave( $value, $current_value = [] ) { return $current_value ?: wp_generate_uuid4(); } }, - 'label' => new \Fieldmanager_TextField( __( 'Label', 'wp-newsletter-builder' ) ), - 'image' => new \Fieldmanager_Media( + 'label' => new \Fieldmanager_TextField( __( 'Label', 'wp-newsletter-builder' ) ), + 'image' => new \Fieldmanager_Media( [ 'label' => __( 'Image', 'wp-newsletter-builder' ), 'preview_size' => 'full', ] ), - 'templates' => new \Fieldmanager_Checkboxes( + 'templates' => new \Fieldmanager_Checkboxes( 'Checkboxes', [ 'datasource' => new \Fieldmanager_Datasource_Post( @@ -86,62 +86,12 @@ public function presave( $value, $current_value = [] ) { ), ] ), - 'from_name' => new \Fieldmanager_Select( + 'from_name' => new \Fieldmanager_Select( __( 'From Name', 'wp-newsletter-builder' ), [ 'options' => $from_names, ] ), - 'safe_rtb' => new \Fieldmanager_TextArea( - [ - 'label' => __( 'SafeRTB Ad Tag', 'wp-newsletter-builder' ), - 'sanitize' => function ( $value ) { - return $value; - }, - ], - ), - 'ad_tags' => new \Fieldmanager_Group( - [ - 'label' => __( 'Tags', 'wp-newsletter-builder' ), - 'children' => [ - 'tag_code' => new \Fieldmanager_TextArea( - [ - 'label' => __( 'Ad Tag', 'wp-newsletter-builder' ), - 'sanitize' => function ( $value ) { - return $value; - }, - ], - ), - ], - 'limit' => 0, - 'add_more_label' => __( 'Add another tag', 'wp-newsletter-builder' ), - ] - ), - 'roadblock' => new \Fieldmanager_Checkbox( - [ - 'label' => __( 'Enable Ad Roadblock', 'wp-newsletter-builder' ), - ] - ), - 'key_values' => new \Fieldmanager_Group( - [ - 'label' => __( 'Key/Value Pairs', 'wp-newsletter-builder' ), - 'children' => [ - 'key' => new \Fieldmanager_TextField( - [ - 'label' => __( 'Key', 'wp-newsletter-builder' ), - ] - ), - 'value' => new \Fieldmanager_TextField( - [ - 'label' => __( 'Value', 'wp-newsletter-builder' ), - ] - ), - ], - 'limit' => 0, - 'add_more_label' => __( 'Add another key/value pair', 'wp-newsletter-builder' ), - 'one_label_per_item' => false, - ] - ), ], 'limit' => 0, 'add_more_label' => __( 'Add Another Email Type', 'wp-newsletter-builder' ),