| 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_LITE_DSN' ) ) { |
| 22 |
define( 'SENTRY_LITE_DSN', 'https://6416a56005214ca4966296529ef86479@o51581.ingest.sentry.io/6568051' ); |
| 23 |
} |
| 24 |
|
| 25 |
class Constant { |
| 26 |
const SENTRY_DSN = SENTRY_LITE_DSN; |
| 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 |
'general_enable_new_ui' => true, |
| 64 |
'check_duplicate_link' => false, |
| 65 |
|
| 66 |
// ? url detail |
| 67 |
'enable_nofollow' => true, |
| 68 |
'open_new_tab' => true, |
| 69 |
'enable_sponsored' => true, |
| 70 |
|
| 71 |
Enum::SUPPORT_ENABLED => false, |
| 72 |
Enum::IS_SUBSCRIBE => false, |
| 73 |
Enum::EMAIL_SUPPORT => '', |
| 74 |
Enum::CUSTOMER_FLOW_ENABLED => false, |
| 75 |
); |
| 76 |
|
| 77 |
const LASSO_INTERCOM_APP_ID = 'az01idfr'; |
| 78 |
const JWT_SECRET_KEY = '6KpRcC60EgicHWhyEIqj'; |
| 79 |
const LASSO_LINK = 'https://lasso.link/'; |
| 80 |
const SSL_VERIFY = true; |
| 81 |
const TIME_OUT = 30; |
| 82 |
|
| 83 |
const LASSO_AMAZON_PRODUCTS_DB = 'lasso_lite_amazon_products'; |
| 84 |
const LASSO_POST_TYPE = 'surl'; |
| 85 |
const LASSO_BRAND = 'Lasso'; |
| 86 |
const LASSO_AMAZON_PRODUCT_TYPE = 'Amazon Product'; |
| 87 |
const LASSO_CATEGORY = 'lasso-lite-cat'; |
| 88 |
|
| 89 |
const LASSO_PRO_POST_TYPE = 'lasso-urls'; |
| 90 |
|
| 91 |
const LASSO_OPTION_REVIEW_ALLOW = 'review_allow_notification'; |
| 92 |
const LASSO_OPTION_REVIEW_SNOOZE = 'review_snooze'; |
| 93 |
const LASSO_OPTION_REVIEW_LINK_COUNT = 'review_link_count'; |
| 94 |
|
| 95 |
const BLOCK_CUSTOMIZE = array( |
| 96 |
'single' => array( |
| 97 |
'type' => 'single', |
| 98 |
'name' => 'Single Product Displays', |
| 99 |
'attributes' => array( |
| 100 |
array( |
| 101 |
'name' => 'Product title', |
| 102 |
'attr' => 'title', |
| 103 |
'desc' => 'Override the product title.<br/>Hide the product title by <code>hide</code> value.', |
| 104 |
), |
| 105 |
array( |
| 106 |
'name' => 'Title url', |
| 107 |
'attr' => 'title_url', |
| 108 |
'desc' => 'Customize the title link destination. Leave blank for the default.<br/>Example: https://getlasso.co', |
| 109 |
), |
| 110 |
array( |
| 111 |
'name' => 'Title tag', |
| 112 |
'attr' => 'title_type', |
| 113 |
'desc' => 'Set the title tag. Common values are: <i>H1, H2, H3, H4</i>', |
| 114 |
), |
| 115 |
array( |
| 116 |
'name' => 'Product description', |
| 117 |
'attr' => 'description', |
| 118 |
'desc' => 'Override the product description<br/>Hide the product description by <code>hide</code> value.', |
| 119 |
), |
| 120 |
array( |
| 121 |
'name' => 'Badge', |
| 122 |
'attr' => 'badge', |
| 123 |
'desc' => 'Override the display badge.<br/>Hide the badge by <code>hide</code> value.', |
| 124 |
), |
| 125 |
array( |
| 126 |
'name' => 'Brag', |
| 127 |
'attr' => 'brag', |
| 128 |
'desc' => 'Promote Lasso on your display and <a href="https://getlasso.co/affiliate-program/" rel="nofollow noopener noreferrer" target="_blank">earn money</a> by <code>true</code> value.', |
| 129 |
), |
| 130 |
array( |
| 131 |
'name' => 'Show/Hide the price', |
| 132 |
'attr' => 'price', |
| 133 |
), |
| 134 |
array( |
| 135 |
'name' => 'First button url', |
| 136 |
'attr' => 'primary_url', |
| 137 |
'desc' => 'Override the first button url.<br/>Example: https://getlasso.co', |
| 138 |
), |
| 139 |
array( |
| 140 |
'name' => 'First button text', |
| 141 |
'attr' => 'primary_text', |
| 142 |
'desc' => 'Override the first button text.', |
| 143 |
), |
| 144 |
array( |
| 145 |
'name' => 'Image url', |
| 146 |
'attr' => 'image_url', |
| 147 |
'desc' => 'Override the image url.<br/>Example: https://getlasso.co/lasso.png', |
| 148 |
), |
| 149 |
array( |
| 150 |
'name' => 'Anchor id', |
| 151 |
'attr' => 'anchor_id', |
| 152 |
'desc' => 'Override the anchor id.<br/>Example: the-anchor-link-id', |
| 153 |
), |
| 154 |
), |
| 155 |
), |
| 156 |
'all_attributes' => array( |
| 157 |
'title', |
| 158 |
'title_url', |
| 159 |
'title_type', |
| 160 |
'description', |
| 161 |
'badge', |
| 162 |
'price', |
| 163 |
'field', |
| 164 |
'rating', |
| 165 |
'theme', |
| 166 |
'primary_url', |
| 167 |
'primary_text', |
| 168 |
'secondary_url', |
| 169 |
'secondary_text', |
| 170 |
'image_url', |
| 171 |
'disclosure_text', |
| 172 |
'button_type', |
| 173 |
'columns', |
| 174 |
'limit', |
| 175 |
'bullets', |
| 176 |
'compact', |
| 177 |
'brag', |
| 178 |
'anchor_id', |
| 179 |
), |
| 180 |
'toogle_attributes' => array( |
| 181 |
'price', |
| 182 |
'field', |
| 183 |
'rating', |
| 184 |
), |
| 185 |
'notice' => 'For a detailed list of all customization options, visit our <a href="https://support.getlasso.co/en/articles/4575092-shortcode-reference-guide" target="_blank">Shortcode Reference Guide</a>.', |
| 186 |
); |
| 187 |
} |
| 188 |
|