From 6517936234ababfc49d3c018b79d1ae019a1e01b Mon Sep 17 00:00:00 2001 From: Bogdan Preda Date: Thu, 18 Apr 2024 17:34:29 +0300 Subject: [PATCH] feat: enable float widget from sdk References: Codeinwp/themeisle#1539 --- feedzy-rss-feed.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/feedzy-rss-feed.php b/feedzy-rss-feed.php index 1f05d0e2..025a054a 100644 --- a/feedzy-rss-feed.php +++ b/feedzy-rss-feed.php @@ -208,3 +208,18 @@ function feedzy_themeisle_log_event( $name, $msg, $type, $file, $line ) { } add_filter( 'themeisle_sdk_enable_telemetry', '__return_true' ); + +add_filter( + 'feedzy_rss_feeds_float_widget_metadata', function () { + return array( + 'nice_name' => 'Feedzy', + 'logo' => FEEDZY_ABSURL . 'img/feedzy.svg', + 'primary_color' => '#4268CF', + 'pages' => array( 'feedzy_imports', 'edit-feedzy_imports', 'edit-feedzy_categories', 'feedzy_page_feedzy-settings', 'feedzy_page_feedzy-support' ), + 'has_upgrade_menu' => ! feedzy_is_pro(), + 'upgrade_link' => tsdk_utmify( FEEDZY_UPSELL_LINK, 'floatWidget' ), + 'documentation_link' => tsdk_utmify( 'https://docs.themeisle.com/collection/1569-feedzy-rss-feeds', 'floatWidget' ), + 'wizard_link' => ! feedzy_is_pro() && ! empty( get_option( 'feedzy_fresh_install', false ) ) ? admin_url( 'admin.php?page=feedzy-setup-wizard&tab#step-1' ) : '', + ); + } +);