Plugin Directory

Changeset 2431800


Ignore:
Timestamp:
12/04/2020 08:19:41 PM (5 years ago)
Author:
hosseinhashemi
Message:

Fix some issues

Location:
fancy-elementor-flipbox/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • fancy-elementor-flipbox/trunk/fancy-elementor-flipbox.php

    r2230163 r2431800  
    44 * Description: This plugin adds an amazing and customizable flip box widget(with many options) to the Elementor page builder plugin.
    55 * Plugin URI:  http://themeprix.com/fancy-elementor-flipbox/
    6  * Version:     1.0.6
    7  * Author:      Hossein Hashemi
     6 * Version:     1.0.7
     7 * Author:      ThemePrix
    88 * Author URI:  https://themeprix.com/
    99 * Text Domain: fancy-elementor-flipbox
  • fancy-elementor-flipbox/trunk/readme.txt

    r2375523 r2431800  
    1010Plugin URI: http://themeprix.com/fancy-elementor-flipbox/
    1111Author URI: http://themeprix.com/
    12 Stable tag: 1.0.6
     12Stable tag: 1.0.7
    1313=======
    1414
  • fancy-elementor-flipbox/trunk/widgets/fancy-elementor-flipbox.php

    r2222215 r2431800  
    327327
    328328                $this->add_control(
     329            'title_tag',
     330            [
     331                'label' => __( 'Title HTML Tag', 'fancy-elementor-flipbox' ),
     332                'type' => Controls_Manager::SELECT,
     333                'options' => [
     334                    'h1'   => __( 'H1',   'fancy-elementor-flipbox' ),
     335                    'h2'   => __( 'H2',   'fancy-elementor-flipbox' ),
     336                    'h3'   => __( 'H3',   'fancy-elementor-flipbox' ),
     337                    'h4'   => __( 'H4',   'fancy-elementor-flipbox' ),
     338                    'h5'   => __( 'H5',   'fancy-elementor-flipbox' ),
     339                    'h6'   => __( 'H6',   'fancy-elementor-flipbox' ),
     340                    'div'  => __( 'div',  'fancy-elementor-flipbox' ),
     341                    'span' => __( 'Span', 'fancy-elementor-flipbox' ),
     342                ],
     343                'default' => 'div',
     344            ]
     345        );
     346
     347
     348                $this->add_control(
     349            'content_tag',
     350            [
     351                'label' => __( 'Description HTML Tag', 'fancy-elementor-flipbox' ),
     352                'type' => Controls_Manager::SELECT,
     353                'options' => [
     354                    'div'  => __( 'div',  'fancy-elementor-flipbox' ),
     355                    'span' => __( 'Span', 'fancy-elementor-flipbox' ),
     356                    'p'    => __( 'P',    'fancy-elementor-flipbox' ),
     357                ],
     358                'default' => 'div',
     359            ]
     360        );
     361
     362
     363                $this->add_control(
    329364                    'tp_flipbox_f_title',
    330365                    [
     
    657692
    658693      echo '                </div>';
    659       echo '                <div class="tp-flipbox__title-front">'.$settings['tp_flipbox_f_title'].'</div>';
    660       echo '                <div class="tp-flipbox__desc-front">'.$settings['tp_flipbox_f_desc'].'</div>';
     694      echo '                <' . esc_html($settings['title_tag']) . ' class="tp-flipbox__title-front">'.$settings['tp_flipbox_f_title'].'</' . esc_html($settings['title_tag']) . '>';
     695      echo '                <' . esc_html($settings['content_tag']) . ' class="tp-flipbox__desc-front">'.$settings['tp_flipbox_f_desc'].'</' . esc_html($settings['content_tag']) . '>';
    661696      echo '            </div>';
    662697      echo '        </div>';
     
    670705
    671706      echo '                </div>';
    672       echo '                <div class="tp-flipbox__title-back">'.$settings['tp_flipbox_b_title'].'</div>';
    673         echo '                <div class="tp-flipbox__desc-back">'.$settings['tp_flipbox_b_desc'].'</div>';
     707      echo '                <' . esc_html($settings['title_tag']) . ' class="tp-flipbox__title-back">'.$settings['tp_flipbox_b_title'].'</' . esc_html($settings['title_tag']) . '>';
     708        echo '                <' . esc_html($settings['content_tag']) . ' class="tp-flipbox__desc-back">'.$settings['tp_flipbox_b_desc'].'</' . esc_html($settings['content_tag']) . '>';
    674709        if($tp_flipbox_show_btn == "yes"){
    675710      echo '               <div class="tp-flipbox__action">';
    676       echo '                    <a href="'.$settings['tp_flipbox_b_btn_url']['url'].'" class="tp-flipbox__btn">'.$settings['tp_flipbox_b_btn_text'].'</a>';
     711        $btn_external = "";
     712        $btn_nofollow = "";
     713        if( $settings['tp_flipbox_b_btn_url']['is_external'] ) {
     714            $btn_external = ' target="_blank" ';
     715        }
     716
     717        if( $settings['tp_flipbox_b_btn_url']['nofollow'] ) {
     718            $btn_nofollow = ' rel="nofollow" ';
     719        }
     720
     721      echo '                    <a ' . $btn_external . ' ' . $btn_nofollow . ' href="'.$settings['tp_flipbox_b_btn_url']['url'].'" class="tp-flipbox__btn">'.$settings['tp_flipbox_b_btn_text'].'</a>';
    677722      echo '                   </div>';
    678723    }
     
    711756
    712757                      </div>
    713                       <div class="tp-flipbox__title-front">{{{ settings.tp_flipbox_f_title }}}</div>
    714                       <div class="tp-flipbox__desc-front">{{{ settings.tp_flipbox_f_desc }}}</div>
     758                      <{{{ settings.title_tag }}} class="tp-flipbox__title-front">{{{ settings.tp_flipbox_f_title }}}</{{{ settings.title_tag }}}>
     759                      <{{{ settings.content_tag }}} class="tp-flipbox__desc-front">{{{ settings.tp_flipbox_f_desc }}}</{{{ settings.content_tag }}}>
    715760                  </div>
    716761              </div>
     
    721766                                            <img src="{{settings.tp_flipbox_b_icon.url}}"/>
    722767                                    </div>
    723                       <div class="tp-flipbox__title-back">{{{ settings.tp_flipbox_b_title }}}</div>
    724                                         <div class="tp-flipbox__desc-back">{{{ settings.tp_flipbox_b_desc }}}</div>
     768                      <{{{ settings.title_tag }}} class="tp-flipbox__title-back">{{{ settings.tp_flipbox_b_title }}}</{{{ settings.title_tag }}}>
     769                                        <{{{ settings.content_tag }}} class="tp-flipbox__desc-back">{{{ settings.tp_flipbox_b_desc }}}</{{{ settings.content_tag }}}>
    725770<# if ( settings.tp_flipbox_show_btn == 'yes' ) { #>
    726771                     <div class="tp-flipbox__action">
Note: See TracChangeset for help on using the changeset viewer.