Changeset 3343245
- Timestamp:
- 08/12/2025 03:44:25 AM (8 months ago)
- Location:
- themesflat-addons-for-elementor
- Files:
-
- 253 added
- 32 edited
-
tags/2.2.2/assets/js/swiper.min.js (added)
-
tags/2.2.2/post-format/options.php (modified) (1 diff)
-
tags/2.2.2/readme.txt (modified) (1 diff)
-
tags/2.2.2/tf-function.php (modified) (2 diffs)
-
tags/2.2.2/themesflat-addons-for-elementor.php (modified) (5 diffs)
-
tags/2.2.2/widgets/pricetable.php (added)
-
tags/2.2.2/widgets/sliderbeforeafter.php (added)
-
tags/2.2.2/widgets/tf-counter.php (added)
-
tags/2.2.2/widgets/widget-post-author=============.php (added)
-
tags/2.2.2/widgets/widget-post-comment===============.php (added)
-
tags/2.2.2/widgets/widget-post-date===============.php (added)
-
tags/2.2.2/widgets/widget-post-terms=============.php (added)
-
tags/2.2.2/widgets/widget-team--.php (added)
-
tags/2.2.3/assets/js/swiper.min.js (added)
-
tags/2.2.3/post-format/options.php (modified) (1 diff)
-
tags/2.2.3/readme.txt (modified) (1 diff)
-
tags/2.2.3/tf-function.php (modified) (2 diffs)
-
tags/2.2.3/themesflat-addons-for-elementor.php (modified) (5 diffs)
-
tags/2.2.3/widgets/pricetable.php (added)
-
tags/2.2.3/widgets/sliderbeforeafter.php (added)
-
tags/2.2.3/widgets/tf-counter.php (added)
-
tags/2.2.3/widgets/widget-post-author=============.php (added)
-
tags/2.2.3/widgets/widget-post-comment===============.php (added)
-
tags/2.2.3/widgets/widget-post-date===============.php (added)
-
tags/2.2.3/widgets/widget-post-terms=============.php (added)
-
tags/2.2.3/widgets/widget-team--.php (added)
-
tags/2.2.4/assets/js/swiper.min.js (added)
-
tags/2.2.4/post-format/options.php (modified) (1 diff)
-
tags/2.2.4/readme.txt (modified) (1 diff)
-
tags/2.2.4/tf-function.php (modified) (2 diffs)
-
tags/2.2.4/themesflat-addons-for-elementor.php (modified) (5 diffs)
-
tags/2.2.4/widgets/pricetable.php (added)
-
tags/2.2.4/widgets/sliderbeforeafter.php (added)
-
tags/2.2.4/widgets/tf-counter.php (added)
-
tags/2.2.4/widgets/widget-post-author=============.php (added)
-
tags/2.2.4/widgets/widget-post-comment===============.php (added)
-
tags/2.2.4/widgets/widget-post-date===============.php (added)
-
tags/2.2.4/widgets/widget-post-terms=============.php (added)
-
tags/2.2.4/widgets/widget-team--.php (added)
-
tags/2.2.5/assets/js/swiper.min.js (added)
-
tags/2.2.5/post-format/options.php (modified) (1 diff)
-
tags/2.2.5/readme.txt (modified) (1 diff)
-
tags/2.2.5/tf-function.php (modified) (2 diffs)
-
tags/2.2.5/themesflat-addons-for-elementor.php (modified) (5 diffs)
-
tags/2.2.5/widgets/pricetable.php (added)
-
tags/2.2.5/widgets/sliderbeforeafter.php (added)
-
tags/2.2.5/widgets/tf-counter.php (added)
-
tags/2.2.5/widgets/widget-post-author=============.php (added)
-
tags/2.2.5/widgets/widget-post-comment===============.php (added)
-
tags/2.2.5/widgets/widget-post-date===============.php (added)
-
tags/2.2.5/widgets/widget-post-terms=============.php (added)
-
tags/2.2.5/widgets/widget-team--.php (added)
-
tags/2.2.6/assets/js/swiper.min.js (added)
-
tags/2.2.6/post-format/options.php (modified) (1 diff)
-
tags/2.2.6/readme.txt (modified) (1 diff)
-
tags/2.2.6/tf-function.php (modified) (2 diffs)
-
tags/2.2.6/themesflat-addons-for-elementor.php (modified) (5 diffs)
-
tags/2.2.6/widgets/pricetable.php (added)
-
tags/2.2.6/widgets/sliderbeforeafter.php (added)
-
tags/2.2.6/widgets/tf-counter.php (added)
-
tags/2.2.6/widgets/widget-post-author=============.php (added)
-
tags/2.2.6/widgets/widget-post-comment===============.php (added)
-
tags/2.2.6/widgets/widget-post-date===============.php (added)
-
tags/2.2.6/widgets/widget-post-terms=============.php (added)
-
tags/2.2.6/widgets/widget-team--.php (added)
-
tags/2.2.7/post-format/options.php (modified) (1 diff)
-
tags/2.2.7/readme.txt (modified) (1 diff)
-
tags/2.2.7/tf-function.php (modified) (2 diffs)
-
tags/2.2.7/themesflat-addons-for-elementor.php (modified) (5 diffs)
-
tags/2.2.7/widgets/pricetable.php (added)
-
tags/2.2.7/widgets/sliderbeforeafter.php (added)
-
tags/2.2.7/widgets/tf-counter.php (added)
-
tags/2.2.7/widgets/widget-post-author=============.php (added)
-
tags/2.2.7/widgets/widget-post-comment===============.php (added)
-
tags/2.2.7/widgets/widget-post-date===============.php (added)
-
tags/2.2.7/widgets/widget-post-terms=============.php (added)
-
tags/2.2.7/widgets/widget-team--.php (added)
-
tags/2.2.8/post-format/options.php (modified) (1 diff)
-
tags/2.2.8/readme.txt (modified) (1 diff)
-
tags/2.2.8/tf-function.php (modified) (2 diffs)
-
tags/2.2.8/themesflat-addons-for-elementor.php (modified) (5 diffs)
-
tags/2.2.9 (added)
-
tags/2.2.9/addon-elementor-icon-manager.php (added)
-
tags/2.2.9/assets (added)
-
tags/2.2.9/assets/css (added)
-
tags/2.2.9/assets/css/admin (added)
-
tags/2.2.9/assets/css/admin/admin.css (added)
-
tags/2.2.9/assets/css/admin/select2.css (added)
-
tags/2.2.9/assets/css/animate.css (added)
-
tags/2.2.9/assets/css/loading (added)
-
tags/2.2.9/assets/css/loading/loading.gif (added)
-
tags/2.2.9/assets/css/magnific.popup.css (added)
-
tags/2.2.9/assets/css/overlays (added)
-
tags/2.2.9/assets/css/overlays/01.png (added)
-
tags/2.2.9/assets/css/overlays/02.png (added)
-
tags/2.2.9/assets/css/overlays/03.png (added)
-
tags/2.2.9/assets/css/overlays/04.png (added)
-
tags/2.2.9/assets/css/overlays/05.png (added)
-
tags/2.2.9/assets/css/overlays/06.png (added)
-
tags/2.2.9/assets/css/overlays/07.png (added)
-
tags/2.2.9/assets/css/overlays/08.png (added)
-
tags/2.2.9/assets/css/overlays/09.png (added)
-
tags/2.2.9/assets/css/owl.carousel.css (added)
-
tags/2.2.9/assets/css/sliderbeforeafter.css (added)
-
tags/2.2.9/assets/css/swiper.min.css (added)
-
tags/2.2.9/assets/css/tf-accordion.css (added)
-
tags/2.2.9/assets/css/tf-animated-headline.css (added)
-
tags/2.2.9/assets/css/tf-animation-item.css (added)
-
tags/2.2.9/assets/css/tf-author-box.css (added)
-
tags/2.2.9/assets/css/tf-carousel.css (added)
-
tags/2.2.9/assets/css/tf-clipping-mask.css (added)
-
tags/2.2.9/assets/css/tf-countdown.css (added)
-
tags/2.2.9/assets/css/tf-counter.css (added)
-
tags/2.2.9/assets/css/tf-fancy-text.css (added)
-
tags/2.2.9/assets/css/tf-flex-slider.css (added)
-
tags/2.2.9/assets/css/tf-flexslider.css (added)
-
tags/2.2.9/assets/css/tf-header-footer.css (added)
-
tags/2.2.9/assets/css/tf-iconbox.css (added)
-
tags/2.2.9/assets/css/tf-imagebox.css (added)
-
tags/2.2.9/assets/css/tf-list-image.css (added)
-
tags/2.2.9/assets/css/tf-navmenu.css (added)
-
tags/2.2.9/assets/css/tf-piechart-rtl.css (added)
-
tags/2.2.9/assets/css/tf-piechart.css (added)
-
tags/2.2.9/assets/css/tf-post-comment.css (added)
-
tags/2.2.9/assets/css/tf-post-infor.css (added)
-
tags/2.2.9/assets/css/tf-post-navi.css (added)
-
tags/2.2.9/assets/css/tf-post.css (added)
-
tags/2.2.9/assets/css/tf-preload.css (added)
-
tags/2.2.9/assets/css/tf-price-table.css (added)
-
tags/2.2.9/assets/css/tf-progress-bar.css (added)
-
tags/2.2.9/assets/css/tf-scroll-top.css (added)
-
tags/2.2.9/assets/css/tf-search.css (added)
-
tags/2.2.9/assets/css/tf-simple-slider.css (added)
-
tags/2.2.9/assets/css/tf-slide-swiper.css (added)
-
tags/2.2.9/assets/css/tf-sticky.css (added)
-
tags/2.2.9/assets/css/tf-tab.css (added)
-
tags/2.2.9/assets/css/tf-team.css (added)
-
tags/2.2.9/assets/css/tf-testimonial.css (added)
-
tags/2.2.9/assets/css/tf-video.css (added)
-
tags/2.2.9/assets/css/tf-woo-product-minicart.css (added)
-
tags/2.2.9/assets/css/tf-woo-product.css (added)
-
tags/2.2.9/assets/css/tf-woo-wishlist.css (added)
-
tags/2.2.9/assets/css/vegas.css (added)
-
tags/2.2.9/assets/css/ytplayer.css (added)
-
tags/2.2.9/assets/img (added)
-
tags/2.2.9/assets/img/bg-testimonial-new-002.png (added)
-
tags/2.2.9/assets/img/custom-year.svg (added)
-
tags/2.2.9/assets/img/default-team.jpg (added)
-
tags/2.2.9/assets/img/default.jpg (added)
-
tags/2.2.9/assets/img/icon-close.png (added)
-
tags/2.2.9/assets/img/loading.gif (added)
-
tags/2.2.9/assets/img/mask1.svg (added)
-
tags/2.2.9/assets/img/mask2.svg (added)
-
tags/2.2.9/assets/img/mask3.svg (added)
-
tags/2.2.9/assets/img/oval-1.svg (added)
-
tags/2.2.9/assets/img/oval-2.svg (added)
-
tags/2.2.9/assets/img/oval-3.svg (added)
-
tags/2.2.9/assets/img/oval-4.svg (added)
-
tags/2.2.9/assets/img/oval-5.svg (added)
-
tags/2.2.9/assets/img/oval-6.svg (added)
-
tags/2.2.9/assets/img/oval-7.svg (added)
-
tags/2.2.9/assets/img/oval-8.svg (added)
-
tags/2.2.9/assets/img/placeholder.jpg (added)
-
tags/2.2.9/assets/img/quote-new.png (added)
-
tags/2.2.9/assets/img/star.png (added)
-
tags/2.2.9/assets/js (added)
-
tags/2.2.9/assets/js/admin (added)
-
tags/2.2.9/assets/js/admin/admin-rule.js (added)
-
tags/2.2.9/assets/js/admin/admin.js (added)
-
tags/2.2.9/assets/js/admin/select2.js (added)
-
tags/2.2.9/assets/js/anime.min.js (added)
-
tags/2.2.9/assets/js/appear.js (added)
-
tags/2.2.9/assets/js/countdown.js (added)
-
tags/2.2.9/assets/js/imagesloaded.pkgd.min.js (added)
-
tags/2.2.9/assets/js/jquery.easing.js (added)
-
tags/2.2.9/assets/js/jquery.flexslider-min.js (added)
-
tags/2.2.9/assets/js/jquery.isotope.min.js (added)
-
tags/2.2.9/assets/js/jquery_event_move.js (added)
-
tags/2.2.9/assets/js/magnific.popup.min.js (added)
-
tags/2.2.9/assets/js/owl.carousel.min.js (added)
-
tags/2.2.9/assets/js/piechart.js (added)
-
tags/2.2.9/assets/js/simple-parallax.min.js (added)
-
tags/2.2.9/assets/js/slide-addon-for-elementor-script.js (added)
-
tags/2.2.9/assets/js/sliderbeforeafter.js (added)
-
tags/2.2.9/assets/js/swiper.min.js (added)
-
tags/2.2.9/assets/js/textanimation.js (added)
-
tags/2.2.9/assets/js/tf-accordion.js (added)
-
tags/2.2.9/assets/js/tf-animated-headline.js (added)
-
tags/2.2.9/assets/js/tf-animated.js (added)
-
tags/2.2.9/assets/js/tf-carousel.js (added)
-
tags/2.2.9/assets/js/tf-countdown.js (added)
-
tags/2.2.9/assets/js/tf-counter-widget.js (added)
-
tags/2.2.9/assets/js/tf-counter.js (added)
-
tags/2.2.9/assets/js/tf-flexslider.js (added)
-
tags/2.2.9/assets/js/tf-group-image.js (added)
-
tags/2.2.9/assets/js/tf-navmenu.js (added)
-
tags/2.2.9/assets/js/tf-piechart.js (added)
-
tags/2.2.9/assets/js/tf-post.js (added)
-
tags/2.2.9/assets/js/tf-preload.js (added)
-
tags/2.2.9/assets/js/tf-progress-bar.js (added)
-
tags/2.2.9/assets/js/tf-scroll-top.js (added)
-
tags/2.2.9/assets/js/tf-search.js (added)
-
tags/2.2.9/assets/js/tf-simple-slider.js (added)
-
tags/2.2.9/assets/js/tf-slide-swiper.js (added)
-
tags/2.2.9/assets/js/tf-tab.js (added)
-
tags/2.2.9/assets/js/tf-testimonial.js (added)
-
tags/2.2.9/assets/js/tf-video.js (added)
-
tags/2.2.9/assets/js/tf-woo-product-minicart.js (added)
-
tags/2.2.9/assets/js/tf-woo-product.js (added)
-
tags/2.2.9/assets/js/typed.js (added)
-
tags/2.2.9/assets/js/vegas.js (added)
-
tags/2.2.9/assets/js/ytplayer.js (added)
-
tags/2.2.9/languages (added)
-
tags/2.2.9/languages/themesflat-addons-for-elementor.pot (added)
-
tags/2.2.9/license.txt (added)
-
tags/2.2.9/pagination.php (added)
-
tags/2.2.9/plugin-option (added)
-
tags/2.2.9/plugin-option/css (added)
-
tags/2.2.9/plugin-option/css/admin-styles.css (added)
-
tags/2.2.9/plugin-option/js (added)
-
tags/2.2.9/plugin-option/js/admin-script.js (added)
-
tags/2.2.9/plugin-option/js/image.js (added)
-
tags/2.2.9/post-format (added)
-
tags/2.2.9/post-format/assets (added)
-
tags/2.2.9/post-format/assets/css (added)
-
tags/2.2.9/post-format/assets/css/iziModal.css (added)
-
tags/2.2.9/post-format/assets/css/meta-boxes.css (added)
-
tags/2.2.9/post-format/assets/js (added)
-
tags/2.2.9/post-format/assets/js/iziModal.js (added)
-
tags/2.2.9/post-format/assets/js/jquery.mb.YTPlayer.js (added)
-
tags/2.2.9/post-format/assets/js/meta-boxes.js (added)
-
tags/2.2.9/post-format/options.php (added)
-
tags/2.2.9/readme.txt (added)
-
tags/2.2.9/shortcode.php (added)
-
tags/2.2.9/tf-footer.php (added)
-
tags/2.2.9/tf-function.php (added)
-
tags/2.2.9/tf-header.php (added)
-
tags/2.2.9/tf-plugin-option.php (added)
-
tags/2.2.9/tf-plugin-setup.php (added)
-
tags/2.2.9/tf-post-format.php (added)
-
tags/2.2.9/themesflat-addons-for-elementor.php (added)
-
tags/2.2.9/widgets (added)
-
tags/2.2.9/widgets/widget-accordion.php (added)
-
tags/2.2.9/widgets/widget-animated-headline.php (added)
-
tags/2.2.9/widgets/widget-animation-item.php (added)
-
tags/2.2.9/widgets/widget-carousel.php (added)
-
tags/2.2.9/widgets/widget-clipping-mask.php (added)
-
tags/2.2.9/widgets/widget-countdown.php (added)
-
tags/2.2.9/widgets/widget-counter.php (added)
-
tags/2.2.9/widgets/widget-flex-slide.php (added)
-
tags/2.2.9/widgets/widget-google-maps.php (added)
-
tags/2.2.9/widgets/widget-iconbox.php (added)
-
tags/2.2.9/widgets/widget-imagebox.php (added)
-
tags/2.2.9/widgets/widget-list-image.php (added)
-
tags/2.2.9/widgets/widget-mini-cart.php (added)
-
tags/2.2.9/widgets/widget-navmenu.php (added)
-
tags/2.2.9/widgets/widget-piechart.php (added)
-
tags/2.2.9/widgets/widget-post-author-box.php (added)
-
tags/2.2.9/widgets/widget-post-comment.php (added)
-
tags/2.2.9/widgets/widget-post-content.php (added)
-
tags/2.2.9/widgets/widget-post-excerpt.php (added)
-
tags/2.2.9/widgets/widget-post-image.php (added)
-
tags/2.2.9/widgets/widget-post-info.php (added)
-
tags/2.2.9/widgets/widget-post-navigation.php (added)
-
tags/2.2.9/widgets/widget-post-title.php (added)
-
tags/2.2.9/widgets/widget-posts.php (added)
-
tags/2.2.9/widgets/widget-preload.php (added)
-
tags/2.2.9/widgets/widget-pricetable.php (added)
-
tags/2.2.9/widgets/widget-progress-bar.php (added)
-
tags/2.2.9/widgets/widget-scroll-top.php (added)
-
tags/2.2.9/widgets/widget-search.php (added)
-
tags/2.2.9/widgets/widget-simple-slide.php (added)
-
tags/2.2.9/widgets/widget-slide-swiper.php (added)
-
tags/2.2.9/widgets/widget-sliderbeforeafter.php (added)
-
tags/2.2.9/widgets/widget-tabs.php (added)
-
tags/2.2.9/widgets/widget-team.php (added)
-
tags/2.2.9/widgets/widget-testimonial-carousel.php (added)
-
tags/2.2.9/widgets/widget-tfgroupimage.php (added)
-
tags/2.2.9/widgets/widget-video.php (added)
-
tags/2.2.9/widgets/widget-wishlist-count.php (added)
-
tags/2.2.9/widgets/widget-woo-product-grid.php (added)
-
trunk/post-format/options.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/tf-function.php (modified) (2 diffs)
-
trunk/themesflat-addons-for-elementor.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
themesflat-addons-for-elementor/tags/2.2.2/post-format/options.php
r3158487 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/tags/2.2.2/readme.txt
r3341328 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/tags/2.2.2/tf-function.php
r3158487 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/tags/2.2.2/themesflat-addons-for-elementor.php
r3341328 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post; -
themesflat-addons-for-elementor/tags/2.2.3/post-format/options.php
r3189192 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/tags/2.2.3/readme.txt
r3341328 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/tags/2.2.3/tf-function.php
r3189192 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/tags/2.2.3/themesflat-addons-for-elementor.php
r3341328 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post; -
themesflat-addons-for-elementor/tags/2.2.4/post-format/options.php
r3202736 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/tags/2.2.4/readme.txt
r3341328 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/tags/2.2.4/tf-function.php
r3202736 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/tags/2.2.4/themesflat-addons-for-elementor.php
r3341328 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post; -
themesflat-addons-for-elementor/tags/2.2.5/post-format/options.php
r3215859 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/tags/2.2.5/readme.txt
r3341328 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/tags/2.2.5/tf-function.php
r3215859 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/tags/2.2.5/themesflat-addons-for-elementor.php
r3341328 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post; -
themesflat-addons-for-elementor/tags/2.2.6/post-format/options.php
r3268208 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/tags/2.2.6/readme.txt
r3341328 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/tags/2.2.6/tf-function.php
r3268208 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/tags/2.2.6/themesflat-addons-for-elementor.php
r3341328 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post; -
themesflat-addons-for-elementor/tags/2.2.7/post-format/options.php
r3309499 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/tags/2.2.7/readme.txt
r3341328 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/tags/2.2.7/tf-function.php
r3309499 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/tags/2.2.7/themesflat-addons-for-elementor.php
r3341328 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post; -
themesflat-addons-for-elementor/tags/2.2.8/post-format/options.php
r3340801 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/tags/2.2.8/readme.txt
r3340801 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/tags/2.2.8/tf-function.php
r3340801 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/tags/2.2.8/themesflat-addons-for-elementor.php
r3340801 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post; -
themesflat-addons-for-elementor/trunk/post-format/options.php
r3129138 r3343245 335 335 } 336 336 } 337 338 // if ( isset( $_REQUEST ) && isset( $_REQUEST['_themesflat_options'] ) ) { 339 // $datas = stripslashes_deep( $_REQUEST['_themesflat_options'] ); 340 341 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 342 // foreach ($datas as $key => $value ) { 343 344 // $order = wc_get_order( $post_id ); 345 // if ( $order ) { 346 // $order->update_meta_data( $key, $value ); 347 // $order->save(); 348 // } 349 // } 350 // } else { 351 // foreach ($datas as $key => $value ) { 352 // update_post_meta( $post_id, $key, $value ); 353 // } 354 // } 355 // } 356 337 357 } 338 358 public function page_meta_box() { -
themesflat-addons-for-elementor/trunk/readme.txt
r3340804 r3343245 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.2 7 Stable tag: 2.2. 87 Stable tag: 2.2.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
themesflat-addons-for-elementor/trunk/tf-function.php
r3129138 r3343245 96 96 update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text); 97 97 update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2); 98 99 // if ( 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 100 // $order = wc_get_order( $post_id ); // Get the order 101 // if ( $order ) { 102 // $order->update_meta_data( '_tf_flashsale_text', $tf_flashsale_text ); 103 // $order->update_meta_data( '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 104 // $order->save(); 105 // } 106 // } else { 107 // // HPOS is not enabled, use the old method 108 // update_post_meta( $post_id, '_tf_flashsale_text', $tf_flashsale_text ); 109 // update_post_meta( $post_id, '_tf_flashsale_text_2', $tf_flashsale_text_2 ); 110 // } 98 111 } 99 112 add_action( 'woocommerce_process_product_meta', 'tf_save_metabox_of_general_tab'); … … 158 171 } 159 172 } 173 160 174 161 175 /* Pagination Woo */ -
themesflat-addons-for-elementor/trunk/themesflat-addons-for-elementor.php
r3340804 r3343245 5 5 Author: Themesflat 6 6 Author URI: http://themesflat-addons.com/ 7 Version: 2.2. 87 Version: 2.2.9 8 8 Text Domain: themesflat-addons-for-elementor 9 9 Domain Path: /languages … … 63 63 load_plugin_textdomain( 'themesflat-addons-for-elementor', false, basename( dirname( __FILE__ ) ) . '/languages' ); 64 64 } 65 65 66 66 67 public function init() { … … 90 91 }*/ 91 92 93 94 95 add_action( 'before_woocommerce_init', function() { 96 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 97 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 98 } 99 } ); 92 100 93 101 require_once( __DIR__ . '/shortcode.php' ); … … 512 520 if ( class_exists( 'YITH_WCWL' ) ) { 513 521 514 if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') {515 require_once( __DIR__ . '/widgets/widget-wishlist-count.php' );516 \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() );517 } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) {522 // if(tf_opt_get_option('wd_woo_wishlist_count') === false || tf_opt_get_option('wd_woo_wishlist_count') === 'on') { 523 // require_once( __DIR__ . '/widgets/widget-wishlist-count.php' ); 524 // \Elementor\Plugin::instance()->widgets_manager->register( new \TFWishlistCount_Widget_Free() ); 525 // } elseif (tf_opt_get_option('wd_woo_wishlist_count') !== 'on' ) { 518 526 519 }527 // } 520 528 521 529 } … … 932 940 } 933 941 942 // public function tf_header_footer_save_meta( $post_id ) { 943 // if ( 'order' === get_post_type( $post_id ) && 'yes' === get_option( 'woocommerce_enable_hpos', 'no' ) ) { 944 // $order = wc_get_order( $post_id ); 945 // if ( $order ) { 946 // if ( isset( $_POST['tfhf_template_type'] ) ) { 947 // $order->update_meta_data( 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 948 // } 949 950 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 951 // $order->update_meta_data( 'tfhf_template_include_locations', $target_locations ); 952 953 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 954 // $order->update_meta_data( 'tfhf_template_exclude_locations', $target_exclusion ); 955 956 // $order->save(); 957 // } 958 // } else { 959 // if ( isset( $_POST['tfhf_template_type'] ) ) { 960 // update_post_meta( $post_id, 'tfhf_template_type', esc_attr( $_POST['tfhf_template_type'] ) ); 961 // } 962 963 // if ( ! isset( $_POST['tfhf_meta_nounce'] ) || ! wp_verify_nonce( $_POST['tfhf_meta_nounce'], 'tfhf_meta_nounce' ) ) { 964 // return; 965 // } 966 967 // if ( ! current_user_can( 'edit_posts' ) ) { 968 // return; 969 // } 970 971 // $target_locations = self::get_format_rule_value( $_POST, 'tfhf-target-rules-location' ); 972 // update_post_meta( $post_id, 'tfhf_template_include_locations', $target_locations ); 973 974 // $target_exclusion = self::get_format_rule_value( $_POST, 'tfhf-target-rules-exclusion' ); 975 // update_post_meta( $post_id, 'tfhf_template_exclude_locations', $target_exclusion ); 976 // } 977 978 // return false; 979 // } 980 981 934 982 public function tf_header_footer_load_canvas_template( $single_template ) { 935 983 global $post;
Note: See TracChangeset
for help on using the changeset viewer.