Skip to content

Commit

Permalink
TMS-980: Add redipress_include_search to components
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbi committed Dec 4, 2023
1 parent 66d4d53 commit 44c7654
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- TMS-980: Add redipress_include_search to include component contents in search results

## [1.54.3] - 2023-12-04

- TMS-939:
Expand Down
2 changes: 2 additions & 0 deletions lib/ACF/Fields/CallToActionFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ protected function sub_fields() : array {
->set_key( "{$key}_title" )
->set_name( 'title' )
->set_wrapper_width( 50 )
->redipress_include_search()
->set_instructions( $strings['title']['instructions'] );

$description_field = ( new Field\Textarea( $strings['description']['label'] ) )
Expand All @@ -110,6 +111,7 @@ protected function sub_fields() : array {
->set_rows( 4 )
->set_new_lines( 'wpautop' )
->set_wrapper_width( 50 )
->redipress_include_search()
->set_instructions( $strings['description']['instructions'] );

$link_field = ( new Field\Link( $strings['link']['label'] ) )
Expand Down
2 changes: 2 additions & 0 deletions lib/ACF/Fields/ContentColumnsFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ protected function sub_fields() : array {
->set_key( "{$key}_title" )
->set_name( 'title' )
->set_wrapper_width( 100 )
->redipress_include_search()
->set_instructions( $strings['title']['instructions'] );

$image_field = ( new Field\Image( $strings['image']['label'] ) )
Expand All @@ -110,6 +111,7 @@ protected function sub_fields() : array {
->set_rows( 4 )
->set_new_lines( 'wpautop' )
->set_wrapper_width( 55 )
->redipress_include_search()
->set_instructions( $strings['description']['instructions'] );

$layout_field = ( new Field\Radio( $strings['layout']['label'] ) )
Expand Down
2 changes: 2 additions & 0 deletions lib/ACF/Fields/GridFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ protected function grid_item_type_custom_fields() : Field\Group {
->set_key( $this->get_key() . '_title' )
->set_name( 'title' )
->set_wrapper_width( 50 )
->redipress_include_search()
->set_instructions( $this->strings['title']['instructions'] );

$link_field = ( new Field\Link( $this->strings['link']['label'] ) )
Expand All @@ -199,6 +200,7 @@ protected function grid_item_type_custom_fields() : Field\Group {
->set_name( 'description' )
->set_maxlength( 200 )
->set_wrapper_width( 50 )
->redipress_include_search()
->set_instructions( $this->strings['description']['instructions'] );

$image_field = ( new Field\Image( $this->strings['image']['label'] ) )
Expand Down
2 changes: 2 additions & 0 deletions lib/ACF/Fields/TextBlockFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ protected function sub_fields() : array {
->set_key( "${key}_title" )
->set_name( 'title' )
->set_wrapper_width( 50 )
->redipress_include_search()
->set_instructions( $strings['title']['instructions'] );

$link_field = ( new Field\Link( $strings['link']['label'] ) )
Expand All @@ -84,6 +85,7 @@ protected function sub_fields() : array {
->set_name( 'text' )
->set_required()
->set_height( 300 )
->redipress_include_search()
->set_instructions( $strings['text']['instructions'] );

$background_color_field = ( new Field\Radio( $strings['background_color']['label'] ) )
Expand Down

0 comments on commit 44c7654

Please sign in to comment.