| @@ -1,11 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | -/****************************************************************************************** | |
| 3 | - * Copyright (C) Smackcoders. - All Rights Reserved under Smackcoders Proprietary License | |
| 4 | - * Unauthorized copying of this file, via any medium is strictly prohibited | |
| 5 | - * Proprietary and confidential | |
| 6 | - * You can contact Smackcoders at email address info@smackcoders.com. | |
| 7 | - *******************************************************************************************/ | |
| 2 | +/** | |
| 3 | + * Import Users plugin file. | |
| 4 | + * | |
| 5 | + * Copyright (C) 2010-2020, Smackcoders Inc - info@smackcoders.com | |
| 6 | + */ | |
| 7 | + | |
| 8 | 8 | namespace Smackcoders\SMUSERS; |
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) |
| 11 | 11 | exit; // Exit if accessed directly |
| @@ -49,16 +49,19 @@ | ||
| 49 | 49 | * @param mixed $links Plugin Row Meta |
| 50 | 50 | * @param mixed $file Plugin Base file |
| 51 | 51 | * @return array |
| 52 | 52 | */ |
| 53 | - public static function plugin_row_meta( $links, $file ) { | |
| 53 | + public function plugin_row_meta( $links, $file ) { | |
| 54 | + $active_plugins = get_option('active_plugins'); | |
| 55 | + if(in_array('wp-ultimate-csv-importer/wp-ultimate-csv-importer.php', $active_plugins)){ | |
| 56 | + return $links; | |
| 57 | + } | |
| 58 | + else{ | |
| 54 | 59 | $row_meta = array( |
| 60 | + 'install_csv_importer' => '<a style="font-weight: bold;color: #d54e21;font-size: 105%;" href="' . esc_url( apply_filters( 'install_csv_importer', 'https://wordpress.org/plugins/wp-ultimate-csv-importer/' ) ) . '" title="' . esc_attr( __( 'Install CSV Importer', 'wp-ultimate-csv-importer' ) ) . '" target="_blank">' . __( 'Install CSV Importer', 'wp-ultimate-csv-importer' ) . '</a>' | |
| 61 | + ); | |
| 55 | 62 | |
| 56 | - 'support' => '<a href="' . esc_url( apply_filters( 'sm_uci_support_url', admin_url() . 'admin.php?page=com.smackcoders.csvimporternew.menu&support' ) ) . '" title="' . esc_attr( __( 'Contact Support', 'import-woocommerce' ) ) . '" target="_blank">' . __( 'Support', 'import-woocommerce' ) . '</a>', | |
| 57 | - ); | |
| 58 | - unset( $links['edit'] ); | |
| 59 | - //unset($links['View details']); | |
| 60 | - | |
| 61 | 63 | return array_merge( $row_meta, $links ); |
| 64 | + } | |
| 62 | 65 | } |
| 63 | 66 | |
| 64 | 67 | } |