| @@ -183,10 +183,10 @@ | ||
| 183 | 183 | 'default' => 'yes', |
| 184 | 184 | ]; |
| 185 | 185 | $fields['show_short_desc'] = [ |
| 186 | 186 | 'type' => 'switch', |
| 187 | - 'label' => esc_html__( 'Show Excerpt?', 'shopbuilder' ), | |
| 188 | - 'description' => esc_html__( 'Switch on to show post excerpt.', 'shopbuilder' ), | |
| 187 | + 'label' => esc_html__( 'Show Short Description?', 'shopbuilder' ), | |
| 188 | + 'description' => esc_html__( 'Switch on to show post short description.', 'shopbuilder' ), | |
| 189 | 189 | 'label_on' => esc_html__( 'On', 'shopbuilder' ), |
| 190 | 190 | 'label_off' => esc_html__( 'Off', 'shopbuilder' ), |
| 191 | 191 | 'default' => 'yes', |
| 192 | 192 | ]; |
| @@ -455,9 +455,9 @@ | ||
| 455 | 455 | 'show_short_desc' => [ 'yes' ], |
| 456 | 456 | ]; |
| 457 | 457 | |
| 458 | 458 | $fields['post_excerpt_section'] = $obj->start_section( |
| 459 | - esc_html__( 'Excerpt', 'shopbuilder' ), | |
| 459 | + esc_html__( 'Short Description', 'shopbuilder' ), | |
| 460 | 460 | 'settings', |
| 461 | 461 | [], |
| 462 | 462 | $condition |
| 463 | 463 | ); |
| @@ -463,10 +463,10 @@ | ||
| 463 | 463 | ); |
| 464 | 464 | |
| 465 | 465 | $fields['excerpt_limit'] = [ |
| 466 | 466 | 'type' => 'select2', |
| 467 | - 'label' => esc_html__( 'Excerpt Limit', 'shopbuilder' ), | |
| 468 | - 'description' => esc_html__( 'Please select the post excerpt limit.', 'shopbuilder' ), | |
| 467 | + 'label' => esc_html__( 'Short Description Limit', 'shopbuilder' ), | |
| 468 | + 'description' => esc_html__( 'Please select the post short description limit.', 'shopbuilder' ), | |
| 469 | 469 | 'options' => [ |
| 470 | 470 | 'default' => esc_html__( 'Default', 'shopbuilder' ), |
| 471 | 471 | '1-line' => esc_html__( 'Show in 1 line', 'shopbuilder' ), |
| 472 | 472 | '2-lines' => esc_html__( 'Show in 2 lines', 'shopbuilder' ), |
| @@ -480,9 +480,9 @@ | ||
| 480 | 480 | $fields['excerpt_limit_custom'] = [ |
| 481 | 481 | 'type' => 'number', |
| 482 | 482 | 'label' => esc_html__( 'Custom Character Limit', 'shopbuilder' ), |
| 483 | 483 | 'default' => 200, |
| 484 | - 'description' => esc_html__( 'Please enter the post excerpt character limit.', 'shopbuilder' ), | |
| 484 | + 'description' => esc_html__( 'Please enter the post short description character limit.', 'shopbuilder' ), | |
| 485 | 485 | 'condition' => [ 'excerpt_limit' => [ 'custom' ] ], |
| 486 | 486 | ]; |
| 487 | 487 | |
| 488 | 488 | $fields['post_excerpt_section_end'] = $obj->end_section(); |
| @@ -1143,18 +1143,8 @@ | ||
| 1143 | 1143 | 'border_radius' => [ $css_selectors['border_radius'] => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;' ], |
| 1144 | 1144 | ]; |
| 1145 | 1145 | |
| 1146 | 1146 | $fields = ControlHelper::general_elementor_style( 'readmore_button_style', $title, $obj, $condition, $selectors ); |
| 1147 | - | |
| 1148 | - // Redirect the text-decoration sub-field to `.text-wrap` (an unshielded span that wraps the label); the shield-blocked `<a>` can't reach text inside its inline-flex child. | |
| 1149 | - $fields['rtsb_el_readmore_button_style_typography']['fields_options'] = [ | |
| 1150 | - 'text_decoration' => [ | |
| 1151 | - 'selectors' => [ | |
| 1152 | - $css_selectors['text_decoration'] => 'text-decoration: {{VALUE}};', | |
| 1153 | - ], | |
| 1154 | - ], | |
| 1155 | - ]; | |
| 1156 | - | |
| 1157 | 1147 | unset( |
| 1158 | 1148 | $fields['readmore_button_style_alignment'], |
| 1159 | 1149 | ); |
| 1160 | 1150 | $extra_controls['readmore_button_style_border_radius'] = [ |
| @@ -1564,17 +1554,8 @@ | ||
| 1564 | 1554 | |
| 1565 | 1555 | ]; |
| 1566 | 1556 | |
| 1567 | 1557 | $fields = ControlHelper::general_elementor_style( 'post_taxonomy_style', $title, $obj, [], $selectors, $conditions ); |
| 1568 | - | |
| 1569 | - // Force text-decoration with !important to beat the `.rtsb-elementor-container a { text-decoration: none !important; }` framework shield (see _el-global.scss). | |
| 1570 | - $fields['rtsb_el_post_taxonomy_style_typography']['fields_options'] = [ | |
| 1571 | - 'text_decoration' => [ | |
| 1572 | - 'selectors' => [ | |
| 1573 | - $css_selectors['typography'] => 'text-decoration: {{VALUE}} !important;', | |
| 1574 | - ], | |
| 1575 | - ], | |
| 1576 | - ]; | |
| 1577 | 1558 | |
| 1578 | 1559 | unset( |
| 1579 | 1560 | $fields['post_taxonomy_style_alignment'], |
| 1580 | 1561 | ); |