Plugin Directory

Changeset 3429477


Ignore:
Timestamp:
12/30/2025 08:00:38 AM (2 months ago)
Author:
themepoints
Message:

Fix Video Display Issue.

Location:
accordions-wp/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • accordions-wp/trunk/css/style.css

    r1877918 r3429477  
    137137  line-height: 25px;
    138138}
     139.responsive-accordion-panel iframe,
     140.responsive-accordion-panel video,
     141.responsive-accordion-panel embed,
     142.responsive-accordion-panel object {
     143  width: 100% !important;
     144  max-width: 100%;
     145}
     146.responsive-accordion-panel iframe {
     147  width: 100%;
     148  aspect-ratio: 16 / 9;
     149    height: auto;
     150  display: block;
     151}
  • accordions-wp/trunk/custom-accordion-wp.php

    r3425062 r3429477  
    44     * Plugin URI:  https://themepoints.com/wp-accordions/
    55     * Description: Create beautiful, responsive accordions and FAQ sections with multiple styles, skins, and advanced customization—perfect for organizing content and improving UX.
    6      * Version:     3.0.4
     6     * Version:     3.0.5
    77     * Author:      Themepoints
    88     * Author URI:  https://themepoints.com
  • accordions-wp/trunk/inc/accordions-wp-post-type.php

    r3425062 r3429477  
    427427    }
    428428    add_action('edit_form_after_title', 'accordion_wp_shortcode_section');
    429    
  • accordions-wp/trunk/readme.txt

    r3425062 r3429477  
    55Requires at least: 4.0
    66Tested up to: 6.9
    7 Stable tag: 3.0.4
     7Stable tag: 3.0.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    152152== Changelog ==
    153153
     154= 3.0.5 =
     155* Fix Video Display Issue.
     156
    154157= 3.0.4 =
    155158* Fix Security Issue.
  • accordions-wp/trunk/theme/custom-wp-accordion-themes.php

    r3425062 r3429477  
    2626                        $logotesting.='</div>';
    2727
    28                         $content = isset( $tcpfeature['custom_accordions_pro_details'] ) ? $tcpfeature['custom_accordions_pro_details'] : '';
    29                         $content = do_shortcode( $content );
    30                         $content = wp_kses_post( $content );
    31                         $content = wpautop( $content );
     28                        global $wp_embed;
     29
     30                        $content = isset( $tcpfeature['custom_accordions_pro_details'] )
     31                            ? $tcpfeature['custom_accordions_pro_details']
     32                            : '';
     33
     34                        $content = $wp_embed->autoembed( $content );
     35                        $content = $wp_embed->run_shortcode( $content );
     36                        $content = do_shortcode( $content );
     37
     38                        $allowed_html = wp_kses_allowed_html( 'post' );
     39                        $allowed_html['iframe'] = array(
     40                            'src'             => true,
     41                            'width'           => true,
     42                            'height'          => true,
     43                            'frameborder'     => true,
     44                            'allow'           => true,
     45                            'allowfullscreen' => true,
     46                            'title'           => true,
     47                        );
     48
     49                        $content = wp_kses( $content, $allowed_html );
     50                        $content = wpautop( $content );
    3251
    3352                        $logotesting.='<div class="responsive-accordion-panel"style="background-color:'.esc_attr( $custom_accordion_content_bg_color ).';padding:'.esc_attr( $custom_accordion_content_padding ).'px;color:'.esc_attr( $custom_accordion_content_font_color ).';font-size:'.esc_attr( $custom_accordion_content_font_size ).'px">';
     
    5170                        $logotesting.='</div>';
    5271
    53                         $content = isset( $tcpfeature['custom_accordions_pro_details'] ) ? $tcpfeature['custom_accordions_pro_details'] : '';
    54                         $content = do_shortcode( $content );
    55                         $content = wp_kses_post( $content );
    56                         $content = wpautop( $content );
     72                        global $wp_embed;
     73
     74                        $content = isset( $tcpfeature['custom_accordions_pro_details'] )
     75                            ? $tcpfeature['custom_accordions_pro_details']
     76                            : '';
     77
     78                        $content = $wp_embed->autoembed( $content );
     79                        $content = $wp_embed->run_shortcode( $content );
     80                        $content = do_shortcode( $content );
     81
     82                        $allowed_html = wp_kses_allowed_html( 'post' );
     83                        $allowed_html['iframe'] = array(
     84                            'src'             => true,
     85                            'width'           => true,
     86                            'height'          => true,
     87                            'frameborder'     => true,
     88                            'allow'           => true,
     89                            'allowfullscreen' => true,
     90                            'title'           => true,
     91                        );
     92
     93                        $content = wp_kses( $content, $allowed_html );
     94                        $content = wpautop( $content );
    5795
    5896                        $logotesting.='<div class="responsive-accordion-panel"style="background-color:'.esc_attr( $custom_accordion_content_bg_color ).';padding:'.esc_attr( $custom_accordion_content_padding ).'px;color:'.esc_attr( $custom_accordion_content_font_color ).';font-size:'.esc_attr( $custom_accordion_content_font_size ).'px">';
     
    76114                    $logotesting.='</div>';
    77115
    78                     $content = isset( $tcpfeature['custom_accordions_pro_details'] ) ? $tcpfeature['custom_accordions_pro_details'] : '';
    79                     $content = do_shortcode( $content );
    80                     $content = wp_kses_post( $content );
    81                     $content = wpautop( $content );
     116                    global $wp_embed;
     117
     118                    $content = isset( $tcpfeature['custom_accordions_pro_details'] )
     119                        ? $tcpfeature['custom_accordions_pro_details']
     120                        : '';
     121
     122                    $content = $wp_embed->autoembed( $content );
     123                    $content = $wp_embed->run_shortcode( $content );
     124                    $content = do_shortcode( $content );
     125
     126                    $allowed_html = wp_kses_allowed_html( 'post' );
     127                    $allowed_html['iframe'] = array(
     128                        'src'             => true,
     129                        'width'           => true,
     130                        'height'          => true,
     131                        'frameborder'     => true,
     132                        'allow'           => true,
     133                        'allowfullscreen' => true,
     134                        'title'           => true,
     135                    );
     136
     137                    $content = wp_kses( $content, $allowed_html );
     138                    $content = wpautop( $content );
    82139
    83140                    $logotesting.='<div class="responsive-accordion-panel"style="background-color:'.esc_attr( $custom_accordion_content_bg_color ).';padding:'.esc_attr( $custom_accordion_content_padding ).'px;color:'.esc_attr( $custom_accordion_content_font_color ).';font-size:'.esc_attr( $custom_accordion_content_font_size ).'px">';
     
    101158                    $logotesting.='</div>';
    102159
    103                     $content = isset( $tcpfeature['custom_accordions_pro_details'] ) ? $tcpfeature['custom_accordions_pro_details'] : '';
    104                     $content = do_shortcode( $content );
    105                     $content = wp_kses_post( $content );
    106                     $content = wpautop( $content );
     160                    global $wp_embed;
     161
     162                    $content = isset( $tcpfeature['custom_accordions_pro_details'] )
     163                        ? $tcpfeature['custom_accordions_pro_details']
     164                        : '';
     165
     166                    $content = $wp_embed->autoembed( $content );
     167                    $content = $wp_embed->run_shortcode( $content );
     168                    $content = do_shortcode( $content );
     169
     170                    $allowed_html = wp_kses_allowed_html( 'post' );
     171                    $allowed_html['iframe'] = array(
     172                        'src'             => true,
     173                        'width'           => true,
     174                        'height'          => true,
     175                        'frameborder'     => true,
     176                        'allow'           => true,
     177                        'allowfullscreen' => true,
     178                        'title'           => true,
     179                    );
     180
     181                    $content = wp_kses( $content, $allowed_html );
     182                    $content = wpautop( $content );
    107183
    108184                    $logotesting.='<div class="responsive-accordion-panel"style="background-color:'.esc_attr( $custom_accordion_content_bg_color ).';padding:'.esc_attr( $custom_accordion_content_padding ).'px;color:'.esc_attr( $custom_accordion_content_font_color ).';font-size:'.esc_attr( $custom_accordion_content_font_size ).'px">';
     
    126202                    $logotesting.='</div>';
    127203
    128                     $content = isset( $tcpfeature['custom_accordions_pro_details'] ) ? $tcpfeature['custom_accordions_pro_details'] : '';
    129                     $content = do_shortcode( $content );
    130                     $content = wp_kses_post( $content );
    131                     $content = wpautop( $content );
     204                    global $wp_embed;
     205
     206                    $content = isset( $tcpfeature['custom_accordions_pro_details'] )
     207                        ? $tcpfeature['custom_accordions_pro_details']
     208                        : '';
     209
     210                    $content = $wp_embed->autoembed( $content );
     211                    $content = $wp_embed->run_shortcode( $content );
     212                    $content = do_shortcode( $content );
     213
     214                    $allowed_html = wp_kses_allowed_html( 'post' );
     215                    $allowed_html['iframe'] = array(
     216                        'src'             => true,
     217                        'width'           => true,
     218                        'height'          => true,
     219                        'frameborder'     => true,
     220                        'allow'           => true,
     221                        'allowfullscreen' => true,
     222                        'title'           => true,
     223                    );
     224
     225                    $content = wp_kses( $content, $allowed_html );
     226                    $content = wpautop( $content );
    132227
    133228                    $logotesting.='<div class="responsive-accordion-panel"style="background-color:'.esc_attr( $custom_accordion_content_bg_color ).';padding:'.esc_attr( $custom_accordion_content_padding ).'px;color:'.esc_attr( $custom_accordion_content_font_color ).';font-size:'.esc_attr( $custom_accordion_content_font_size ).'px">';
Note: See TracChangeset for help on using the changeset viewer.