125 lines
2.7 KiB
PHP
125 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* Boost product
|
|
*
|
|
* @package my-jetpack
|
|
*/
|
|
|
|
namespace Automattic\Jetpack\My_Jetpack\Products;
|
|
|
|
use Automattic\Jetpack\My_Jetpack\Product;
|
|
|
|
/**
|
|
* Class responsible for handling the CRM product
|
|
*/
|
|
class Crm extends Product {
|
|
|
|
/**
|
|
* The product slug
|
|
*
|
|
* @var string
|
|
*/
|
|
public static $slug = 'crm';
|
|
|
|
/**
|
|
* The filename (id) of the plugin associated with this product. If not defined, it will default to the Jetpack plugin
|
|
*
|
|
* @var string
|
|
*/
|
|
public static $plugin_filename = 'zero-bs-crm/ZeroBSCRM.php';
|
|
|
|
/**
|
|
* The slug of the plugin associated with this product. If not defined, it will default to the Jetpack plugin
|
|
*
|
|
* @var string
|
|
*/
|
|
public static $plugin_slug = 'zero-bs-crm';
|
|
|
|
/**
|
|
* Whether this product requires a user connection
|
|
*
|
|
* @var string
|
|
*/
|
|
public static $requires_user_connection = false;
|
|
|
|
/**
|
|
* Get the internationalized product name
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function get_name() {
|
|
return __( 'CRM', 'jetpack-my-jetpack' );
|
|
}
|
|
|
|
/**
|
|
* Get the internationalized product title
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function get_title() {
|
|
return __( 'Jetpack CRM', 'jetpack-my-jetpack' );
|
|
}
|
|
|
|
/**
|
|
* Get the internationalized product description
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function get_description() {
|
|
return __( 'Connect with your people', 'jetpack-my-jetpack' );
|
|
}
|
|
|
|
/**
|
|
* Get the internationalized product long description
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function get_long_description() {
|
|
return __( 'All of your contacts in one place. Build better relationships with your customers and clients.', 'jetpack-my-jetpack' );
|
|
}
|
|
|
|
/**
|
|
* Get the internationalized features list
|
|
*
|
|
* @return array CRM features list
|
|
*/
|
|
public static function get_features() {
|
|
return array(
|
|
__( 'Manage unlimited contacts', 'jetpack-my-jetpack' ),
|
|
__( 'Manage billing and create invoices', 'jetpack-my-jetpack' ),
|
|
__( 'Fully integrated with WordPress & WooCommerce', 'jetpack-my-jetpack' ),
|
|
__( 'Infinitely customizable with integrations and extensions', 'jetpack-my-jetpack' ),
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the product princing details
|
|
*
|
|
* @return array Pricing details
|
|
*/
|
|
public static function get_pricing_for_ui() {
|
|
return array(
|
|
'available' => true,
|
|
'is_free' => true,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the URL the user is taken after activating the product
|
|
*
|
|
* @return ?string
|
|
*/
|
|
public static function get_post_activation_url() {
|
|
return admin_url( 'admin.php?page=zerobscrm-plugin' ); // Welcome page.
|
|
}
|
|
|
|
/**
|
|
* Get the URL where the user manages the product
|
|
*
|
|
* @return ?string
|
|
*/
|
|
public static function get_manage_url() {
|
|
return admin_url( 'admin.php?page=zerobscrm-dash' );
|
|
}
|
|
}
|