| 1 |
<?php |
| 2 |
/** |
| 3 |
* Declare constants |
| 4 |
* |
| 5 |
* @package lasso constants |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace LassoLite\Admin; |
| 9 |
|
| 10 |
use LassoLite\Classes\Enum; |
| 11 |
|
| 12 |
// ? wp-includes/default-constants.php |
| 13 |
if ( ! defined( 'SECURE_AUTH_COOKIE' ) ) { |
| 14 |
if ( ! function_exists( 'wp_cookie_constants' ) ) { |
| 15 |
require_once ABSPATH . 'wp-includes/default-constants.php'; |
| 16 |
} |
| 17 |
|
| 18 |
wp_cookie_constants(); |
| 19 |
} |
| 20 |
|
| 21 |
if ( ! defined( 'SENTRY_DNS' ) ) { |
| 22 |
define( 'SENTRY_DNS', 'https://6416a56005214ca4966296529ef86479@o51581.ingest.sentry.io/6568051' ); |
| 23 |
} |
| 24 |
|
| 25 |
class Constant { |
| 26 |
const SENTRY_DSN = SENTRY_DNS; |
| 27 |
const DEFAULT_THUMBNAIL = SIMPLE_URLS_URL . '/admin/assets/images/lasso-no-thumbnail.jpg'; |
| 28 |
const LASSO_URL = 'https://getlasso.co'; |
| 29 |
const LASSO_SUPPORT_URL = 'https://support.getlasso.co/'; |
| 30 |
const LASSO_UPGRADE_URL = 'https://getlasso.co/upgrade/'; |
| 31 |
const SITE_ID_KEY = 'site_id'; |
| 32 |
|
| 33 |
const DEFAULT_SETTINGS = array( |
| 34 |
// ? display |
| 35 |
'theme_name' => Enum::THEME_CACTUS, |
| 36 |
'display_color_main' => 'black', |
| 37 |
'display_color_title' => 'black', |
| 38 |
'display_color_background' => 'white', |
| 39 |
'display_color_button' => '#22BAA0', |
| 40 |
'display_color_secondary_button' => '#22BAA0', |
| 41 |
'display_color_button_text' => 'white', |
| 42 |
'display_color_pros' => '#22BAA0', |
| 43 |
'display_color_cons' => '#E06470', |
| 44 |
'primary_button_text' => 'Buy Now', |
| 45 |
'secondary_button_text' => 'Our Review', |
| 46 |
'lasso_affiliate_URL' => 'https://getlasso.co/', |
| 47 |
'disclosure_text' => 'We earn a commission if you make a purchase, at no additional cost to you.', |
| 48 |
'show_price' => true, |
| 49 |
'show_disclosure' => true, |
| 50 |
'enable_brag_mode' => false, |
| 51 |
'badge_text' => '', |
| 52 |
|
| 53 |
// ? amazon |
| 54 |
'amazon_access_key_id' => '', |
| 55 |
'amazon_secret_key' => '', |
| 56 |
'amazon_tracking_id' => '', |
| 57 |
'amazon_default_tracking_country' => 'us', |
| 58 |
|
| 59 |
// ? general |
| 60 |
'general_disable_amazon_notifications' => false, |
| 61 |
'general_disable_tooltip' => false, |
| 62 |
'general_disable_notification' => false, |
| 63 |
'check_duplicate_link' => false, |
| 64 |
|
| 65 |
// ? url detail |
| 66 |
'enable_nofollow' => true, |
| 67 |
'open_new_tab' => true, |
| 68 |
'enable_sponsored' => true, |
| 69 |
|
| 70 |
Enum::SUPPORT_ENABLED => false, |
| 71 |
Enum::IS_SUBSCRIBE => false, |
| 72 |
Enum::EMAIL_SUPPORT => '', |
| 73 |
); |
| 74 |
|
| 75 |
const LASSO_INTERCOM_APP_ID = 'az01idfr'; |
| 76 |
const JWT_SECRET_KEY = '6KpRcC60EgicHWhyEIqj'; |
| 77 |
const LASSO_LINK = 'https://lasso.link/'; |
| 78 |
const SSL_VERIFY = true; |
| 79 |
const TIME_OUT = 30; |
| 80 |
|
| 81 |
const LASSO_AMAZON_PRODUCTS_DB = 'lasso_lite_amazon_products'; |
| 82 |
const LASSO_POST_TYPE = 'surl'; |
| 83 |
const LASSO_AMAZON_PRODUCT_TYPE = 'Amazon Product'; |
| 84 |
const LASSO_CATEGORY = 'lasso-lite-cat'; |
| 85 |
} |
| 86 |
|