Plugin Directory

Changeset 2514784


Ignore:
Timestamp:
04/14/2021 12:00:00 PM (5 years ago)
Author:
flickdevs
Message:
  • compatibility with latest WordPress and Elementor plugin
  • fixed minor issue
Location:
fd-elementor-imagebox/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fd-elementor-imagebox/trunk/elements/fd-adv-imagebox.php

    r2166842 r2514784  
    9595            'title1',
    9696            [
    97                 'label' => __( 'Heading1', 'FD_EAW' ),
     97                'label' => __( 'Heading 1', 'FD_EAW' ),
    9898                'type' => Controls_Manager::TEXT,
    9999                'default' => __( 'This is', 'FD_EAW' ),
     
    105105            'title2',
    106106            [
    107                 'label' => __( 'Heading2', 'FD_EAW' ),
     107                'label' => __( 'Heading 2', 'FD_EAW' ),
    108108                'type' => Controls_Manager::TEXT,
    109109                'default' => __( 'Heading', 'FD_EAW' ),
     
    236236            'section_style_title1',
    237237            [
    238                 'label' => __( 'Title1', 'FD_EAW' ),
     238                'label' => __( 'Title 1', 'FD_EAW' ),
    239239                'tab'   => Controls_Manager::TAB_STYLE,
    240240            ]
     
    297297            'section_style_title2',
    298298            [
    299                 'label' => __( 'Title2', 'FD_EAW' ),
     299                'label' => __( 'Title 2', 'FD_EAW' ),
    300300                'tab'   => Controls_Manager::TAB_STYLE,
    301301            ]
     
    554554            }
    555555        }
    556         if ( empty( $settings['title1'] ) ) {
    557             return;
    558         }
    559         if ( empty( $settings['title2'] ) ) {
    560             return;
    561         }
    562         if ( empty( $settings['button_text'] ) ) {
    563             return;
    564         }
    565556        $title1 = $settings['title1'];
    566557        $title2 = $settings['title2'];
     
    571562        ?>
    572563        <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
     564            <?php //if ( $link['url'] ) { ?>
    573565            <a <?php echo $this->get_render_attribute_string( 'link' ); ?>>
     566            <?php //} ?>
    574567             <img <?php echo $this->get_render_attribute_string( 'image' ); ?>>
    575                 <h4><?php echo $title1; ?><strong><?php echo ' '.$title2; ?></strong></h4>
     568                <?php if ( $settings['title1'] != "" || $settings['title2'] != "" )  { ?>
     569                <h4>
     570                    <?php echo $title1; ?>
     571                    <?php if ( $settings['title2'] != "" )  { ?>
     572                        <strong><?php echo ' '.$title2; ?></strong>
     573                    <?php } ?>
     574                </h4>
     575                <?php } ?>
    576576                <h5>
    577577                    <?php   if ( !empty( $settings['btn_icon'] ) ) : ?>
     
    583583                    <?php echo $button; ?>
    584584                </h5>
    585             </a>
     585            <?php //if ( $link['url'] ) { ?></a><?php //} ?>
    586586        </div>
    587587    <?php   
     
    595595     * @access protected
    596596     */
    597     protected function _content_template() {
    598    
     597    protected function _content_template() {
     598        //TODO: implement instant inline editing
     599        /*?>
     600            <h4 class="{{{ settings.class }}}">{{{ settings.title1 }}}</h4>
     601    <?php */
    599602    }   
    600603}
  • fd-elementor-imagebox/trunk/fd-elementor-imagebox.php

    r2166842 r2514784  
    55 * Plugin URI: https://flickdevs.com/elementor/
    66 * Author: FlickDevs, Aezaz Shaikh
    7  * Version: 1.2.2
     7 * Version: 1.2.3
    88 * Author URI: http://www.flickdevs.com/
    99 *
  • fd-elementor-imagebox/trunk/readme.txt

    r2166842 r2514784  
    11=== Elementor ImageBox ===
    22Contributors: flickdevs, shaikhaezaz80
    3 Requires at least: 4.7
    4 Tested up to: 5.2.2
    5 Requires PHP: 5.4
    6 Stable tag: 1.1.3
     3Requires at least: 5.0
     4Tested up to: 5.7
     5Requires PHP: 5.6
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2929
    3030== Changelog ==
     31
     32= 1.2.3 =
     33* fixed minor issue
     34* compatibility with latest WordPress and Elementor plugin
    3135
    3236= 1.2.2 =
Note: See TracChangeset for help on using the changeset viewer.