| 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 |
*******************************************************************************************/ |
| 8 |
namespace Smackcoders\SMUSERS; |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) |
| 11 |
exit; // Exit if accessed directly |
| 12 |
|
| 13 |
class UserInstall { |
| 14 |
|
| 15 |
protected static $instance = null,$smack_instance,$tables_instance; |
| 16 |
private static $db_updates = array(); |
| 17 |
/** |
| 18 |
* SmackCSVInstall Constructor |
| 19 |
*/ |
| 20 |
public function __construct() { |
| 21 |
$this->plugin = Plugin::getInstance(); |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* SmackCSVInstall Instance |
| 26 |
*/ |
| 27 |
public static function getInstance() { |
| 28 |
if ( null == self::$instance ) { |
| 29 |
self::$instance = new self; |
| 30 |
self::$smack_instance = new UserInstall(); |
| 31 |
} |
| 32 |
return self::$instance; |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* @param $links |
| 37 |
* |
| 38 |
* @return array |
| 39 |
*/ |
| 40 |
public function smack_uci_action_links( $links ) { |
| 41 |
$links[] = '<a href="'. esc_url( get_admin_url(null, 'admin.php?page=sm-uci-settings') ) .'">Settings</a>'; |
| 42 |
$links[] = '<a href="http://wp-buddy.com" target="_blank">More plugins by WP-Buddy</a>'; |
| 43 |
return $links; |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* Show row meta on the plugin screen. |
| 48 |
* |
| 49 |
* @param mixed $links Plugin Row Meta |
| 50 |
* @param mixed $file Plugin Base file |
| 51 |
* @return array |
| 52 |
*/ |
| 53 |
public static function plugin_row_meta( $links, $file ) { |
| 54 |
$row_meta = array( |
| 55 |
|
| 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 |
return array_merge( $row_meta, $links ); |
| 62 |
} |
| 63 |
|
| 64 |
} |
| 65 |
|