Skip to content

Commit

Permalink
Merge pull request #934 from Codeinwp/feat/enable_float_widget
Browse files Browse the repository at this point in the history
feat: enable float widget from sdk
  • Loading branch information
vytisbulkevicius authored May 30, 2024
2 parents 3a06eb9 + 6517936 commit c3aaaaa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions feedzy-rss-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) : '',
);
}
);

0 comments on commit c3aaaaa

Please sign in to comment.