Skip to content

Commit

Permalink
fix: make sure hyve doesn't show up for php < 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Jan 16, 2025
1 parent 1fe9ddb commit 0fb1664
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion assets/apps/dashboard/src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import {
LucideArrowUp,
LucideBotMessageSquare,
LucideBriefcase,
LucideCreditCard,
LucideGalleryVertical,
Expand Down Expand Up @@ -61,6 +62,6 @@ export const NEVE_PLUGIN_ICON_MAP = {
'optimole-wp': LucideImage,
'wp-cloudflare-page-cache': LucideTimer,
'feedzy-rss-feeds': LucideRss,
// 'hyve'
'hyve-lite': LucideBotMessageSquare,
// 'sparks'
};
10 changes: 7 additions & 3 deletions inc/admin/dashboard/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,11 +731,15 @@ private function get_recommended_plugins() {
'title' => __( 'Feedzy', 'neve' ),
'description' => __( 'RSS feeds aggregator and content curator', 'neve' ),
],
'hyve-lite' => [
];

if ( is_php_version_compatible( '8.1' ) ) {
$plugins['hyve-lite'] = [
'title' => __( 'Hyve', 'neve' ),
'description' => __( 'AI chatbot for your website', 'neve' ),
],
];
];
}


foreach ( $plugins as $slug => $args ) {

Expand Down

0 comments on commit 0fb1664

Please sign in to comment.