PluginProbe ʕ •ᴥ•ʔ
Spider Elements – Premium Elementor Widgets & Addons Library / 1.8.0
Spider Elements – Premium Elementor Widgets & Addons Library v1.8.0
trunk 1.0.0 1.1.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.7.0 1.8.0 1.9.0
spider-elements / includes / Admin / dashboard / integration.php
spider-elements / includes / Admin / dashboard Last commit date
elements.php 6 months ago features.php 6 months ago integration.php 6 months ago popup-pro.php 6 months ago sidebar.php 6 months ago welcome.php 6 months ago
integration.php
128 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5
6 $integrations = array(
7 array(
8 'slug' => 'bbp-core',
9 'basename' => 'bbp-core/bbp-core.php',
10 'logo' => SPEL_IMG . '/dashboard/bbp-core-logo.svg',
11 'title' => esc_html__( 'Forumax', 'spider-elements' ),
12 'desc' => esc_html__( 'A complete, self-contained platform for building support forums, or discussion communities.', 'spider-elements' ),
13 'category' => 'community',
14 ),
15 array(
16 'slug' => 'eazydocs',
17 'basename' => 'eazydocs/eazydocs.php',
18 'logo' => SPEL_IMG . '/dashboard/eazydocs-logo.png',
19 'title' => esc_html__( 'EazyDocs', 'spider-elements' ),
20 'desc' => esc_html__( 'A powerful & beautiful documentation, knowledge base builder plugin.', 'spider-elements' ),
21 'category' => 'documentation',
22 ),
23 array(
24 'slug' => 'changeloger',
25 'basename' => 'changeloger/changeloger.php',
26 'logo' => SPEL_IMG . '/dashboard/changeloger-logo-black.svg',
27 'title' => esc_html__( 'Changeloger', 'spider-elements' ),
28 'desc' => esc_html__( 'Auto-convert plain text changelogs into engaging visuals for WordPress.', 'spider-elements' ),
29 'category' => 'utility',
30 ),
31 array(
32 'slug' => 'advanced-accordion-block',
33 'basename' => 'advanced-accordion-block/advanced-accordion-block.php',
34 'logo' => SPEL_IMG . '/dashboard/AAGB-logo.svg',
35 'title' => esc_html__( 'Advanced Accordion Block', 'spider-elements' ),
36 'desc' => esc_html__( '#1 WordPress plugin for creating professional FAQ sections, expandable content accordions.', 'spider-elements' ),
37 'category' => 'gutenberg',
38 ),
39 array(
40 'slug' => 'antimanual',
41 'basename' => 'antimanual/antimanual.php',
42 'logo' => SPEL_IMG . '/dashboard/antimanual-logo.png',
43 'title' => esc_html__( 'Antimanual', 'spider-elements' ),
44 'desc' => esc_html__( 'The ultimate AI powerhouse for your website. Do automatically with AI instead of manually.', 'spider-elements' ),
45 'category' => 'ai',
46 ),
47 array(
48 'slug' => 'jobus',
49 'basename' => 'jobus/jobus.php',
50 'logo' => SPEL_IMG . '/dashboard/jobus-logo.png',
51 'title' => esc_html__( 'Jobus', 'spider-elements' ),
52 'desc' => esc_html__( 'A modern and powerful plugin designed to transform your website into a fully functional Job portal.', 'spider-elements' ),
53 'category' => 'community',
54 ),
55 );
56 ?>
57
58 <div id="integration" class="tab-box">
59 <div class="dashboard_banner integration_banner">
60 <div class="banner_content">
61 <span class="version_badge">
62 <i class="icon-star"></i>
63 <?php esc_html_e( 'Recommended Plugins', 'spider-elements' ); ?>
64 </span>
65 <h2><?php esc_html_e( 'Elevate Your WordPress Website to the Next Level!', 'spider-elements' ); ?></h2>
66 <p><?php esc_html_e( 'Explore our versatile range of plugins tailored to meet every need for WordPress, Gutenberg, Elementor, and WooCommerce. Discover solutions that empower your site with enhanced functionality and seamless performance.', 'spider-elements' ); ?></p>
67 </div>
68 </div>
69
70 <div class="ezd-grid ezd-grid-cols-12" style="margin-top: 24px;">
71 <?php
72 if ( isset( $integrations ) && is_array( $integrations ) ) {
73 foreach ( $integrations as $plugin ) {
74 $plugin_status = SPEL\includes\Admin\Plugin_Installer::instance();
75 $plugin_data = $plugin_status->get_status( $plugin['basename'] );
76
77 $plugin_status = $plugin_data['status'] ?? '';
78 $plugin_activation_url = $plugin_data['activation_url'] ?? '';
79 $plugin_installation_url = $plugin_data['installation_url'] ?? '';
80 $plugin_status_label = isset( $plugin_data['status'] ) ? ( $plugin_data['status'] == 'activated' ? 'activated' : '' ) : '';
81 $plugin_status_title = $plugin_data['title'] ?? esc_html__( 'Activate', 'spider-elements' );
82
83 // Determine button icon based on status
84 $button_icon = 'icon-download';
85 if ( $plugin_status === 'activated' ) {
86 $button_icon = 'icon-check';
87 } elseif ( $plugin_status === 'inactive' ) {
88 $button_icon = 'icon-power';
89 }
90 ?>
91 <div class="ezd-lg-col-4">
92 <div class="element_box integration_item ezd-text-center">
93 <img src="<?php echo esc_url( $plugin['logo'] ); ?>" alt="<?php echo esc_attr( $plugin['title'] ); ?>">
94 <h3><?php echo esc_html( $plugin['title'] ); ?></h3>
95 <p><?php echo esc_html( $plugin['desc'] ); ?></p>
96
97 <?php
98 if ( $plugin['slug'] === 'bbp-core' ) {
99 $wp_org_link = 'https://wordpress.org/plugins/forumax/';
100 } elseif($plugin['slug'] === 'advanced-accordion-block') {
101 $wp_org_link = 'https://wordpress.org/plugins/advanced-accordion-block/';
102 } else {
103 $wp_org_link = 'https://wordpress.org/plugins/' . $plugin['slug'] . '/';
104 }
105
106 printf(
107 '<div class="action_buttons">
108 <a data-plugin_status="%1$s" data-activation_url="%2$s" href="%3$s" class="dashboard_btn %4$s"><i class="%5$s"></i>%6$s</a>
109 <a href="%7$s" class="dashboard_btn learn_more_btn" target="_blank"><i class="fab fa-wordpress-simple"></i> %8$s</a>
110 </div>',
111 esc_attr( $plugin_status ),
112 esc_url( $plugin_activation_url ),
113 esc_url( $plugin_status === 'not_installed' ? $plugin_installation_url : $plugin_activation_url ),
114 esc_attr( $plugin_status_label ),
115 esc_attr( $button_icon ),
116 esc_html( $plugin_status_title ),
117 esc_url( $wp_org_link ),
118 esc_html__( 'Learn More', 'spider-elements' )
119 );
120 ?>
121 </div>
122 </div>
123 <?php
124 }
125 }
126 ?>
127 </div>
128 </div>