Plugin Directory

Changeset 3144069


Ignore:
Timestamp:
08/30/2024 06:34:26 AM (18 months ago)
Author:
themesflat
Message:

update conflict import

Location:
themesflat-addons-for-elementor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • themesflat-addons-for-elementor/trunk/readme.txt

    r3140230 r3144069  
    55Tested up to: 6.6
    66Requires PHP: 5.2
    7 Stable tag: 2.1.9
     7Stable tag: 2.2.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • themesflat-addons-for-elementor/trunk/themesflat-addons-for-elementor.php

    r3140228 r3144069  
    55Author: Themesflat
    66Author URI: http://themesflat-addons.com/
    7 Version: 2.1.9
     7Version: 2.2.0
    88Text Domain: themesflat-addons-for-elementor
    99Domain Path: /languages
     
    8888
    8989       
     90        require_once( __DIR__ . '/shortcode.php' );
     91
     92        require_once plugin_dir_path( __FILE__ ).'pagination.php';
     93        require_once plugin_dir_path( __FILE__ ).'tf-function.php';
     94        require_once plugin_dir_path( __FILE__ ).'addon-elementor-icon-manager.php';
     95        // require_once plugin_dir_path( __FILE__ ).'tf-post-format.php';
     96
     97
     98       
     99       
     100        require_once plugin_dir_path( __FILE__ ).'tf-plugin-option.php';
     101        // require_once plugin_dir_path( __FILE__ ).'tf-plugin-setup.php';
    90102
    91103
     
    117129        },5);
    118130
    119         require_once( __DIR__ . '/shortcode.php' );
    120 
    121         require_once plugin_dir_path( __FILE__ ).'pagination.php';
    122         require_once plugin_dir_path( __FILE__ ).'tf-function.php';
    123         require_once plugin_dir_path( __FILE__ ).'addon-elementor-icon-manager.php';
    124         // require_once plugin_dir_path( __FILE__ ).'tf-post-format.php';
    125 
    126 
    127        
    128        
    129         require_once plugin_dir_path( __FILE__ ).'tf-plugin-option.php';
    130         // require_once plugin_dir_path( __FILE__ ).'tf-plugin-setup.php';
    131131       
    132132
     
    294294    public function init_widgets() {
    295295
    296         if(tf_opt_get_option('wd_image_box')) {
     296        if(tf_opt_get_option('wd_image_box') === false || tf_opt_get_option('wd_image_box') === 'on') {
    297297            require_once( __DIR__ . '/widgets/widget-imagebox.php' );
    298298            \Elementor\Plugin::instance()->widgets_manager->register( new \TFImageBox_Widget_Free() );
    299         }
    300 
    301         if(tf_opt_get_option('wd_carousel')) {
     299        } elseif (tf_opt_get_option('wd_image_box') !== 'on' ) {
     300
     301        }
     302
     303        if(tf_opt_get_option('wd_carousel') === false || tf_opt_get_option('wd_carousel') === 'on') {
    302304            require_once( __DIR__ . '/widgets/widget-carousel.php' );
    303305            \Elementor\Plugin::instance()->widgets_manager->register( new \TFCarousel_Widget_Free() );
    304         }
    305 
    306         if(tf_opt_get_option('wd_navmenu')) {
     306        } elseif (tf_opt_get_option('wd_carousel') !== 'on' ) {
     307
     308        }
     309
     310        if(tf_opt_get_option('wd_navmenu') === false || tf_opt_get_option('wd_navmenu') === 'on') {
    307311            require_once( __DIR__ . '/widgets/widget-navmenu.php' );
    308312            \Elementor\Plugin::instance()->widgets_manager->register( new \TFNavMenu_Widget_Free() );
    309         }
    310 
    311         if(tf_opt_get_option('wd_search')) {
     313        } elseif (tf_opt_get_option('wd_navmenu') !== 'on' ) {
     314
     315        }
     316
     317        if(tf_opt_get_option('wd_search') === false || tf_opt_get_option('wd_search') === 'on') {
    312318            require_once( __DIR__ . '/widgets/widget-search.php' );
    313319            \Elementor\Plugin::instance()->widgets_manager->register( new \TFSearch_Widget_Free() );
    314         }
    315 
    316         if(tf_opt_get_option('wd_posts')) {
     320        } elseif (tf_opt_get_option('wd_search') !== 'on' ) {
     321
     322        }
     323
     324
     325        if(tf_opt_get_option('wd_posts') === false || tf_opt_get_option('wd_posts') === 'on') {
    317326            require_once( __DIR__ . '/widgets/widget-posts.php' );
    318327            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPosts_Widget_Free() );
    319         }
    320 
    321         if(tf_opt_get_option('wd_tabs')) {
     328        } elseif (tf_opt_get_option('wd_posts') !== 'on' ) {
     329
     330        }
     331
     332        if(tf_opt_get_option('wd_tabs') === false || tf_opt_get_option('wd_tabs') === 'on') {
    322333            require_once( __DIR__ . '/widgets/widget-tabs.php' );
    323334            \Elementor\Plugin::instance()->widgets_manager->register( new \TFTabs_Widget_Free() );
    324         }
    325 
    326         if(tf_opt_get_option('wd_simple_slider')) {
     335        } elseif (tf_opt_get_option('wd_tabs') !== 'on' ) {
     336
     337        }
     338
     339
     340        if(tf_opt_get_option('wd_simple_slider') === false || tf_opt_get_option('wd_simple_slider') === 'on') {
    327341            require_once( __DIR__ . '/widgets/widget-simple-slide.php' );
    328342            \Elementor\Plugin::instance()->widgets_manager->register( new \TFSlide_Widget_Free() );
    329         }
    330 
    331         if(tf_opt_get_option('wd_e_slider')) {
     343        } elseif (tf_opt_get_option('wd_simple_slider') !== 'on' ) {
     344
     345        }
     346
     347        if(tf_opt_get_option('wd_e_slider') === false || tf_opt_get_option('wd_e_slider') === 'on') {
    332348            require_once( __DIR__ . '/widgets/widget-flex-slide.php' );
    333349            \Elementor\Plugin::instance()->widgets_manager->register( new \TFFlex_Slide_Widget_Free() );
    334         }
    335 
    336         if(tf_opt_get_option('wd_scroll_top')) {
     350        } elseif (tf_opt_get_option('wd_e_slider') !== 'on' ) {
     351
     352        }
     353
     354        if(tf_opt_get_option('wd_scroll_top') === false || tf_opt_get_option('wd_scroll_top') === 'on') {
    337355            require_once( __DIR__ . '/widgets/widget-scroll-top.php' );
    338356            \Elementor\Plugin::instance()->widgets_manager->register( new \TFScrollTop_Widget_Free() );
    339         }
    340 
    341         if(tf_opt_get_option('wd_preload')) {
     357        } elseif (tf_opt_get_option('wd_scroll_top') !== 'on' ) {
     358
     359        }
     360
     361        if(tf_opt_get_option('wd_preload') === false || tf_opt_get_option('wd_preload') === 'on') {
    342362            require_once( __DIR__ . '/widgets/widget-preload.php' );
    343363            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPreload_Widget_Free() );
    344         }
    345 
    346         if(tf_opt_get_option('wd_post_image')) {
     364        } elseif (tf_opt_get_option('wd_preload') !== 'on' ) {
     365
     366        }
     367
     368        if(tf_opt_get_option('wd_post_image') === false || tf_opt_get_option('wd_post_image') === 'on') {
    347369            require_once( __DIR__ . '/widgets/widget-post-image.php' );
    348370            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostImage_Widget_Free() );
    349         }
    350 
    351         if(tf_opt_get_option('wd_post_title')) {
     371        } elseif (tf_opt_get_option('wd_post_image') !== 'on' ) {
     372
     373        }
     374
     375       
     376        if(tf_opt_get_option('wd_post_title') === false || tf_opt_get_option('wd_post_title') === 'on') {
    352377            require_once( __DIR__ . '/widgets/widget-post-title.php' );
    353378            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostTitle_Widget_Free() ); 
    354         }
    355        
    356         if(tf_opt_get_option('wd_post_excerpt')) {
     379        } elseif (tf_opt_get_option('wd_post_title') !== 'on' ) {
     380
     381        }
     382
     383        if(tf_opt_get_option('wd_post_excerpt') === false || tf_opt_get_option('wd_post_excerpt') === 'on') {
    357384            require_once( __DIR__ . '/widgets/widget-post-excerpt.php' );
    358385            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostExcerpt_Widget_Free() );
    359         }
    360 
    361         if(tf_opt_get_option('wd_post_content')) {
     386        } elseif (tf_opt_get_option('wd_post_excerpt') !== 'on' ) {
     387
     388        }
     389
     390        if(tf_opt_get_option('wd_post_content') === false || tf_opt_get_option('wd_post_content') === 'on') {
    362391            require_once( __DIR__ . '/widgets/widget-post-content.php' );
    363392            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostContent_Widget_Free() );
    364         }
    365 
    366         if(tf_opt_get_option('wd_author_box')) {
     393        } elseif (tf_opt_get_option('wd_post_content') !== 'on' ) {
     394
     395        }
     396
     397        if(tf_opt_get_option('wd_author_box') === false || tf_opt_get_option('wd_author_box') === 'on') {
    367398            require_once( __DIR__ . '/widgets/widget-post-author-box.php' );
    368399            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostAuthorBox_Widget_Free() );
    369         }
    370 
    371         if(tf_opt_get_option('wd_post_comment')) {     
     400        } elseif (tf_opt_get_option('wd_author_box') !== 'on' ) {
     401
     402        }
     403
     404        if(tf_opt_get_option('wd_post_comment') === false || tf_opt_get_option('wd_post_comment') === 'on') {
    372405            require_once( __DIR__ . '/widgets/widget-post-comment.php' );
    373406            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostComment_Widget_Free() );
    374         }
    375 
    376         if(tf_opt_get_option('wd_post_info')) {
     407        } elseif (tf_opt_get_option('wd_post_comment') !== 'on' ) {
     408
     409        }
     410
     411        if(tf_opt_get_option('wd_post_info') === false || tf_opt_get_option('wd_post_info') === 'on') {
    377412            require_once( __DIR__ . '/widgets/widget-post-info.php' );
    378413            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostInfo_Widget_Free() );
    379         }
    380 
    381         if(tf_opt_get_option('wd_post_navigation')) {
     414        } elseif (tf_opt_get_option('wd_post_info') !== 'on' ) {
     415
     416        }
     417
     418        if(tf_opt_get_option('wd_post_navigation') === false || tf_opt_get_option('wd_post_navigation') === 'on') {
    382419            require_once( __DIR__ . '/widgets/widget-post-navigation.php' );
    383420            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPostNavigation_Widget_Free() );
    384         }
    385 
    386         if(tf_opt_get_option('wd_slider_swiper')) {
     421        } elseif (tf_opt_get_option('wd_post_navigation') !== 'on' ) {
     422
     423        }
     424
     425        if(tf_opt_get_option('wd_slider_swiper') === false || tf_opt_get_option('wd_slider_swiper') === 'on') {
    387426            require_once( __DIR__ . '/widgets/widget-slide-swiper.php' );
    388427            \Elementor\Plugin::instance()->widgets_manager->register( new \TFSlideSwiper_Widget_Free() );
    389         }
    390 
    391         if(tf_opt_get_option('wd_animated_headline')) {
     428        } elseif (tf_opt_get_option('wd_slider_swiper') !== 'on' ) {
     429
     430        }
     431
     432        if(tf_opt_get_option('wd_animated_headline') === false || tf_opt_get_option('wd_animated_headline') === 'on') {
    392433            require_once( __DIR__ . '/widgets/widget-animated-headline.php' );
    393434            \Elementor\Plugin::instance()->widgets_manager->register( new \TFAnimated_Headline_Widget_Free() );
    394         }
    395 
    396         if(tf_opt_get_option('wd_team')) {
     435        } elseif (tf_opt_get_option('wd_animated_headline') !== 'on' ) {
     436
     437        }
     438
     439        if(tf_opt_get_option('wd_team') === false || tf_opt_get_option('wd_team') === 'on') {
    397440            require_once( __DIR__ . '/widgets/widget-team.php' );
    398441            \Elementor\Plugin::instance()->widgets_manager->register( new \TFTeam_Widget_Free() );
    399         }
    400 
    401         if(tf_opt_get_option('wd_icon_box')) {   
     442        } elseif (tf_opt_get_option('wd_team') !== 'on' ) {
     443
     444        }
     445
     446        if(tf_opt_get_option('wd_icon_box') === false || tf_opt_get_option('wd_icon_box') === 'on') {
    402447            require_once( __DIR__ . '/widgets/widget-iconbox.php' );
    403448            \Elementor\Plugin::instance()->widgets_manager->register( new \TFIconBox_Widget_Free() );
    404         }
    405         if(tf_opt_get_option('wd_testimonial_carousel')) {
     449        } elseif (tf_opt_get_option('wd_icon_box') !== 'on' ) {
     450
     451        }
     452
     453        if(tf_opt_get_option('wd_testimonial_carousel') === false || tf_opt_get_option('wd_testimonial_carousel') === 'on') {
    406454            require_once( __DIR__ . '/widgets/widget-testimonial-carousel.php' );
    407455            \Elementor\Plugin::instance()->widgets_manager->register( new \TFTestimonialCarousel_Widget_Free() );
    408         }
    409        
    410 
    411         if(tf_opt_get_option('wd_counter')) {
     456        } elseif (tf_opt_get_option('wd_testimonial_carousel') !== 'on' ) {
     457
     458        }
     459
     460        if(tf_opt_get_option('wd_counter') === false || tf_opt_get_option('wd_counter') === 'on') {
    412461            require_once( __DIR__ . '/widgets/widget-counter.php' );
    413462            \Elementor\Plugin::instance()->widgets_manager->register( new \TFCounter_Widget_Free() );
    414         }
    415        
    416         if(tf_opt_get_option('wd_slider_before_after')) {
     463        } elseif (tf_opt_get_option('wd_counter') !== 'on' ) {
     464
     465        }
     466
     467        if(tf_opt_get_option('wd_slider_before_after') === false || tf_opt_get_option('wd_slider_before_after') === 'on') {
    417468            require_once( __DIR__ . '/widgets/widget-sliderbeforeafter.php' );
    418469            \Elementor\Plugin::instance()->widgets_manager->register( new \TFSliderBeforeAfter_Widget_Free() );
    419         } 
    420 
    421         if(tf_opt_get_option('wd_clipping_mask')) {
    422              require_once( __DIR__ . '/widgets/widget-clipping-mask.php' );
     470        } elseif (tf_opt_get_option('wd_slider_before_after') !== 'on' ) {
     471
     472        }
     473
     474        if(tf_opt_get_option('wd_clipping_mask') === false || tf_opt_get_option('wd_clipping_mask') === 'on') {
     475            require_once( __DIR__ . '/widgets/widget-clipping-mask.php' );
    423476            \Elementor\Plugin::instance()->widgets_manager->register( new \TFClipping_Mask_Widget_Free() );
    424         }
    425 
    426         if(tf_opt_get_option('wd_price_table')) {   
     477        } elseif (tf_opt_get_option('wd_clipping_mask') !== 'on' ) {
     478
     479        }
     480       
     481        if(tf_opt_get_option('wd_price_table') === false || tf_opt_get_option('wd_price_table') === 'on') {
    427482            require_once( __DIR__ . '/widgets/widget-pricetable.php' );
    428483            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPriceTable_Widget_Free() );
    429         }
    430 
    431         if(tf_opt_get_option('wd_accordion')) {
     484        } elseif (tf_opt_get_option('wd_price_table') !== 'on' ) {
     485
     486        }
     487       
     488        if(tf_opt_get_option('wd_accordion') === false || tf_opt_get_option('wd_accordion') === 'on') {
    432489            require_once( __DIR__ . '/widgets/widget-accordion.php' );
    433490            \Elementor\Plugin::instance()->widgets_manager->register( new \TFAccordion_Widget_Free() );
    434         }
    435 
    436         if(tf_opt_get_option('wd_progress_bar')) {
     491        } elseif (tf_opt_get_option('wd_accordion') !== 'on' ) {
     492
     493        }
     494
     495        if(tf_opt_get_option('wd_progress_bar') === false || tf_opt_get_option('wd_progress_bar') === 'on') {
    437496            require_once( __DIR__ . '/widgets/widget-progress-bar.php' );
    438497            \Elementor\Plugin::instance()->widgets_manager->register( new \TFProgressBars_Widget_Free() );
    439         }
    440 
    441         if(tf_opt_get_option('wd_countdown')) {
     498        } elseif (tf_opt_get_option('wd_progress_bar') !== 'on' ) {
     499
     500        }
     501
     502        if(tf_opt_get_option('wd_countdown') === false || tf_opt_get_option('wd_countdown') === 'on') {
    442503            require_once( __DIR__ . '/widgets/widget-countdown.php' );
    443504            \Elementor\Plugin::instance()->widgets_manager->register( new \TFCountdown_Widget_Free() );
    444         }
    445 
    446         if(tf_opt_get_option('wd_pie_chart')) {
     505        } elseif (tf_opt_get_option('wd_countdown') !== 'on' ) {
     506
     507        }
     508
     509        if(tf_opt_get_option('wd_pie_chart') === false || tf_opt_get_option('wd_pie_chart') === 'on') {
    447510            require_once( __DIR__ . '/widgets/widget-piechart.php' );
    448511            \Elementor\Plugin::instance()->widgets_manager->register( new \TFPieChart_Widget_Free() );
    449         }
    450 
    451         if(tf_opt_get_option('wd_google_maps')) {
     512        } elseif (tf_opt_get_option('wd_pie_chart') !== 'on' ) {
     513
     514        }
     515
     516
     517        if(tf_opt_get_option('wd_google_maps') === false || tf_opt_get_option('wd_google_maps') === 'on') {
    452518            require_once( __DIR__ . '/widgets/widget-google-maps.php' );
    453519            \Elementor\Plugin::instance()->widgets_manager->register( new \TF_Google_Maps_Widget_Free() );
     520        } elseif (tf_opt_get_option('wd_google_maps') !== 'on' ) {
     521
    454522        }
    455523       
    456         // Update 9/8/2023
    457         if(tf_opt_get_option('wd_group_images')) {
     524       
     525        if(tf_opt_get_option('wd_group_images') === false || tf_opt_get_option('wd_group_images') === 'on') {
    458526            require_once( __DIR__ . '/widgets/widget-tfgroupimage.php' );
    459527            \Elementor\Plugin::instance()->widgets_manager->register( new \TF_Group_Image_Widget_Free() );
    460         }
    461 
    462         if(tf_opt_get_option('wd_animation_item')) {
     528        } elseif (tf_opt_get_option('wd_group_images') !== 'on' ) {
     529
     530        }
     531
     532        if(tf_opt_get_option('wd_animation_item') === false || tf_opt_get_option('wd_animation_item') === 'on') {
    463533            require_once( __DIR__ . '/widgets/widget-animation-item.php' );
    464534            \Elementor\Plugin::instance()->widgets_manager->register( new \TFAnimationitem_Widget_Free() );
    465         }
    466 
    467         if(tf_opt_get_option('wd_partner')) {
     535        } elseif (tf_opt_get_option('wd_animation_item') !== 'on' ) {
     536
     537        }
     538
     539        if(tf_opt_get_option('wd_partner') === false || tf_opt_get_option('wd_partner') === 'on') {
    468540            require_once( __DIR__ . '/widgets/widget-list-image.php' );
    469541            \Elementor\Plugin::instance()->widgets_manager->register( new \TFListImage_Widget_Free() );
    470         }
    471        
    472 
    473         // Update 9/8/2023
    474         if(tf_opt_get_option('wd_video')) {
     542        } elseif (tf_opt_get_option('wd_partner') !== 'on' ) {
     543
     544        }
     545
     546        if(tf_opt_get_option('wd_video') === false || tf_opt_get_option('wd_video') === 'on') {
    475547            require_once( __DIR__ . '/widgets/widget-video.php' );
    476548            \Elementor\Plugin::instance()->widgets_manager->register( new \TF_Addon_Video_Widget_Free() );
     549        } elseif (tf_opt_get_option('wd_video') !== 'on' ) {
     550
    477551        }
    478552       
     
    480554       
    481555        if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
    482             if(tf_opt_get_option('wd_woo_product_grid')) {
     556            if(tf_opt_get_option('wd_woo_product_grid') === false || tf_opt_get_option('wd_woo_product_grid') === 'on') {
    483557                require_once( __DIR__ . '/widgets/widget-woo-product-grid.php' );
    484558                \Elementor\Plugin::instance()->widgets_manager->register( new \TFWooProductGrid_Widget_Free() );
    485             }
    486             if(tf_opt_get_option('wd_woo_mini_cart')) {
     559            } elseif (tf_opt_get_option('wd_woo_product_grid') !== 'on' ) {
     560   
     561            }
     562           
     563            if(tf_opt_get_option('wd_woo_mini_cart') === false || tf_opt_get_option('wd_woo_mini_cart') === 'on') {
    487564                require_once( __DIR__ . '/widgets/widget-mini-cart.php' );
    488565                \Elementor\Plugin::instance()->widgets_manager->register( new \TFMiniCart_Widget_Free() );
     566            } elseif (tf_opt_get_option('wd_woo_mini_cart') !== 'on' ) {
     567   
    489568            }
    490569           
    491570        }
    492571        if ( class_exists( 'YITH_WCWL' ) ) {
    493             if(tf_opt_get_option('wd_woo_wishlist_count')) {
     572
     573            if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {
    494574                require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );
    495575                \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );
     576            } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {
     577   
    496578            }
    497579           
Note: See TracChangeset for help on using the changeset viewer.