Plugin Directory

Changeset 2690824


Ignore:
Timestamp:
03/08/2022 01:49:21 PM (4 years ago)
Author:
celomitan
Message:

1.2.6

  • Bux Fixing: Accordion FAQ scheme error
Location:
gum-elementor-addon
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gum-elementor-addon/tags/1.2.6/readme.txt

    r2690812 r2690824  
    6464== Changelog ==
    6565= 1.2.6 =
     66* Bux Fixing: Accordion FAQ scheme error
    6667* Improvement: Adding accordion title margin and active color
    6768
  • gum-elementor-addon/tags/1.2.6/widgets/accordion.php

    r2690812 r2690824  
    141141      'of' => 'title_padding',
    142142    ] );
     143
     144
     145    $element->add_control(
     146      'toggle_title_radius',
     147      [
     148        'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
     149        'type' => Controls_Manager::DIMENSIONS,
     150        'size_units' => [ 'px', '%' ],
     151        'selectors' => [
     152          '{{WRAPPER}} .elementor-accordion-item .elementor-tab-title' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     153        ],
     154      ]
     155    );
    143156
    144157    $element->add_group_control(
     
    320333          ?></a>
    321334          </<?php echo Utils::validate_html_tag( $settings['title_html_tag'] ); ?>>
    322           <div <?php echo $element->get_render_attribute_string( $tab_content_setting_key ); ?>><?php echo $this->parse_text_editor( $item['tab_content'] , $element); ?></div>
     335          <div <?php echo $element->get_render_attribute_string( $tab_content_setting_key ); ?>><?php echo $this->parse_text_editor( $item['tab_content'] , $element ); ?></div>
    323336        </div>
    324337
     
    338351            'acceptedAnswer' => [
    339352              '@type' => 'Answer',
    340               'text' => $this->parse_text_editor( $item['tab_content'] ),
     353              'text' => $this->parse_text_editor( $item['tab_content'] , $element ),
    341354            ],
    342355          ];
     
    429442
    430443  protected function parse_text_editor( $content , $element) {
     444
    431445    /** This filter is documented in wp-includes/widgets/class-wp-widget-text.php */
    432446    $content = apply_filters( 'widget_text', $content, $element->get_settings() );
  • gum-elementor-addon/trunk/readme.txt

    r2690812 r2690824  
    6464== Changelog ==
    6565= 1.2.6 =
     66* Bux Fixing: Accordion FAQ scheme error
    6667* Improvement: Adding accordion title margin and active color
    6768
  • gum-elementor-addon/trunk/widgets/accordion.php

    r2690812 r2690824  
    141141      'of' => 'title_padding',
    142142    ] );
     143
     144
     145    $element->add_control(
     146      'toggle_title_radius',
     147      [
     148        'label' => esc_html__( 'Border Radius', 'gum-elementor-addon' ),
     149        'type' => Controls_Manager::DIMENSIONS,
     150        'size_units' => [ 'px', '%' ],
     151        'selectors' => [
     152          '{{WRAPPER}} .elementor-accordion-item .elementor-tab-title' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
     153        ],
     154      ]
     155    );
    143156
    144157    $element->add_group_control(
     
    320333          ?></a>
    321334          </<?php echo Utils::validate_html_tag( $settings['title_html_tag'] ); ?>>
    322           <div <?php echo $element->get_render_attribute_string( $tab_content_setting_key ); ?>><?php echo $this->parse_text_editor( $item['tab_content'] , $element); ?></div>
     335          <div <?php echo $element->get_render_attribute_string( $tab_content_setting_key ); ?>><?php echo $this->parse_text_editor( $item['tab_content'] , $element ); ?></div>
    323336        </div>
    324337
     
    338351            'acceptedAnswer' => [
    339352              '@type' => 'Answer',
    340               'text' => $this->parse_text_editor( $item['tab_content'] ),
     353              'text' => $this->parse_text_editor( $item['tab_content'] , $element ),
    341354            ],
    342355          ];
     
    429442
    430443  protected function parse_text_editor( $content , $element) {
     444
    431445    /** This filter is documented in wp-includes/widgets/class-wp-widget-text.php */
    432446    $content = apply_filters( 'widget_text', $content, $element->get_settings() );
Note: See TracChangeset for help on using the changeset viewer.