parent(); } $link_icon = ''; $star_icon = ''; $admin_url = admin_url(); function import_button_html() { // Check if the plugin is installed and not activated if (file_exists(WP_PLUGIN_DIR . '/mailchimp-for-wp/mailchimp-for-wp.php') && is_plugin_inactive('mailchimp-for-wp/mailchimp-for-wp.php')) { $bloglex_btn_texts = __('Activate MC4WP: Mailchimp for WordPress', 'bloglex'); $button_url = $admin_url . 'plugins.php?action=activate&plugin=mailchimp-for-wp/mailchimp-for-wp.php&plugin_status=all&paged=1&s&_wpnonce=' . wp_create_nonce('activate-plugin_mailchimp-for-wp/mailchimp-for-wp.php'); } // Check if the plugin is not installed elseif (!file_exists(WP_PLUGIN_DIR . '/wpinterface-add-ons/wpinterface-add-ons.php')&& is_plugin_inactive('wpinterface-add-ons/wpinterface-add-ons.php')) { $bloglex_btn_texts = __('Install WpInterface Add-Ons', 'bloglex'); $button_url = $admin_url . 'plugin-install.php?s=wpinterface-add-ons&tab=search&type=term'; } // Default to view starter templates else { $bloglex_btn_texts = __('View Starter Templates', 'bloglex'); $button_url = '#'; // Replace with the actual URL for viewing starter templates } $html = '' . esc_html($bloglex_btn_texts) . ''; return $html; } ?>