api-settings.php
2 years ago
dashboard.php
2 years ago
elements.php
2 years ago
features.php
2 years ago
features_bkp.php
2 years ago
go-premium.php
2 years ago
integration.php
2 years ago
sidebar.php
2 years ago
integration.php
70 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | |
| 6 | $integrations = [ |
| 7 | [ |
| 8 | 'slug' => 'advanced-accordion-block', |
| 9 | 'basename' => 'advanced-accordion-block/advanced-accordion-block.php', |
| 10 | 'logo' => SPEL_IMG . '/dashboard-img/accordion.png', |
| 11 | 'title' => __('Advanced Accordion Gutenberg Block', 'spider-elements'), |
| 12 | 'desc' => __('Advanced Accordion Block is a custom Gutenberg Block that allows to showcase the content in accordion mode. It also helps to build FAQ sections easily.', 'spider-elements'), |
| 13 | ], |
| 14 | [ |
| 15 | 'slug' => 'bbp-core', |
| 16 | 'basename' => 'bbp-core/bbp-core.php', |
| 17 | 'logo' => SPEL_IMG . '/dashboard-img/bbp-core.png', |
| 18 | 'title' => __('BBP Core', 'spider-elements'), |
| 19 | 'desc' => __('Expand bbPress powered forums with useful features like - private reply, solved topics ...', 'spider-elements'), |
| 20 | ], |
| 21 | [ |
| 22 | 'slug' => 'eazydocs', |
| 23 | 'basename' => 'eazydocs/eazydocs.php', |
| 24 | 'logo' => SPEL_IMG . '/dashboard-img/eazydocs-logo.png', |
| 25 | 'title' => __('EazyDocs', 'spider-elements'), |
| 26 | 'desc' => __('A powerful & beautiful documentation, knowledge base builder plugin.', 'spider-elements'), |
| 27 | ], |
| 28 | [ |
| 29 | 'slug' => 'spotlight-search', |
| 30 | 'basename' => 'spotlight-search/spotlight-search.php', |
| 31 | 'logo' => SPEL_IMG . '/dashboard-img/spotlight-search.png', |
| 32 | 'title' => __('Spotlight Search', 'spider-elements'), |
| 33 | 'desc' => __('Easily embed beautiful Instagram feeds on your WordPress site.', 'spider-elements'), |
| 34 | ], |
| 35 | ]; |
| 36 | ?> |
| 37 | |
| 38 | <div id="integration" class="spe-tab-box"> |
| 39 | <div class="spe_dashboard_banner integration_banner"> |
| 40 | <h2><?php esc_html_e('Integration Our other plugins', 'spider-elements'); ?></h2> |
| 41 | <p><?php _e('We are excited to announce that we have added new Widgets, Template Kits, and other Elementor<br> features to |
| 42 | enhance your website building experience. Stay tuned for the weekly updates!', 'spider-elements'); ?></p> |
| 43 | </div> |
| 44 | <div class="ezd-grid ezd-grid-cols-12"> |
| 45 | <?php |
| 46 | if (isset($integrations) && is_array($integrations)) { |
| 47 | foreach ( $integrations as $plugin ) { |
| 48 | $plugin_status = \SPEL\includes\classes\Plugin_Installer::instance(); |
| 49 | $plugin_item = $plugin_status->get_status($plugin[ 'basename' ]); |
| 50 | ?> |
| 51 | <div class="ezd-lg-col-4"> |
| 52 | <div class="spe_element_box spe_integration_item ezd-text-center"> |
| 53 | <img src="<?php echo esc_url($plugin[ 'logo' ]) ?>" |
| 54 | alt="<?php echo esc_attr($plugin[ 'title' ]) ?>"> |
| 55 | <h3><?php echo esc_html($plugin[ 'title' ]) ?></h3> |
| 56 | <p><?php echo esc_html($plugin[ 'desc' ]) ?></p> |
| 57 | <a data-plugin_status="<?php echo esc_attr($plugin_item[ 'status' ]); ?>" |
| 58 | data-activation_url="<?php echo esc_url($plugin_item[ 'activation_url' ]); ?>" |
| 59 | href="<?php echo esc_url($plugin_item[ 'installation_url' ]); ?>" |
| 60 | class="spe_dashboard_btn <?php echo $plugin_item[ 'status' ] == 'activated' ? 'active_btn' : ''; ?>"> |
| 61 | <?php echo esc_html($plugin_item[ 'title' ]); ?> |
| 62 | </a> |
| 63 | </div> |
| 64 | </div> |
| 65 | <?php |
| 66 | } |
| 67 | } |
| 68 | ?> |
| 69 | </div> |
| 70 | </div> |