PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 112
Lasso Lite – Affiliate Link Manager & Product Displays v112
157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 116 All 56 releases
simple-urls / admin / constant.php

constant.php in Lasso Lite – Affiliate Link Manager & Product Displays 112, at admin/constant.php

183 lines 5.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 '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 Enum::CUSTOMER_FLOW_ENABLED => false,
74 );
75
76 const LASSO_INTERCOM_APP_ID = 'az01idfr';
77 const JWT_SECRET_KEY = '6KpRcC60EgicHWhyEIqj';
78 const LASSO_LINK = 'https://lasso.link/';
79 const SSL_VERIFY = true;
80 const TIME_OUT = 30;
81
82 const LASSO_AMAZON_PRODUCTS_DB = 'lasso_lite_amazon_products';
83 const LASSO_POST_TYPE = 'surl';
84 const LASSO_BRAND = 'Lasso';
85 const LASSO_AMAZON_PRODUCT_TYPE = 'Amazon Product';
86 const LASSO_CATEGORY = 'lasso-lite-cat';
87
88 const LASSO_PRO_POST_TYPE = 'lasso-urls';
89
90 const BLOCK_CUSTOMIZE = array(
91 'single' => array(
92 'type' => 'single',
93 'name' => 'Single Product Displays',
94 'attributes' => array(
95 array(
96 'name' => 'Product title',
97 'attr' => 'title',
98 'desc' => 'Override the product title.<br/>Hide the product title by <code>hide</code> value.',
99 ),
100 array(
101 'name' => 'Title url',
102 'attr' => 'title_url',
103 'desc' => 'Customize the title link destination. Leave blank for the default.<br/>Example: https://getlasso.co',
104 ),
105 array(
106 'name' => 'Title tag',
107 'attr' => 'title_type',
108 'desc' => 'Set the title tag. Common values are: <i>H1, H2, H3, H4</i>',
109 ),
110 array(
111 'name' => 'Product description',
112 'attr' => 'description',
113 'desc' => 'Override the product description<br/>Hide the product description by <code>hide</code> value.',
114 ),
115 array(
116 'name' => 'Badge',
117 'attr' => 'badge',
118 'desc' => 'Override the display badge.<br/>Hide the badge by <code>hide</code> value.',
119 ),
120 array(
121 'name' => 'Brag',
122 'attr' => 'brag',
123 '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.',
124 ),
125 array(
126 'name' => 'Show/Hide the price',
127 'attr' => 'price',
128 ),
129 array(
130 'name' => 'First button url',
131 'attr' => 'primary_url',
132 'desc' => 'Override the first button url.<br/>Example: https://getlasso.co',
133 ),
134 array(
135 'name' => 'First button text',
136 'attr' => 'primary_text',
137 'desc' => 'Override the first button text.',
138 ),
139 array(
140 'name' => 'Image url',
141 'attr' => 'image_url',
142 'desc' => 'Override the image url.<br/>Example: https://getlasso.co/lasso.png',
143 ),
144 array(
145 'name' => 'Anchor id',
146 'attr' => 'anchor_id',
147 'desc' => 'Override the anchor id.<br/>Example: the-anchor-link-id',
148 ),
149 ),
150 ),
151 'all_attributes' => array(
152 'title',
153 'title_url',
154 'title_type',
155 'description',
156 'badge',
157 'price',
158 'field',
159 'rating',
160 'theme',
161 'primary_url',
162 'primary_text',
163 'secondary_url',
164 'secondary_text',
165 'image_url',
166 'disclosure_text',
167 'button_type',
168 'columns',
169 'limit',
170 'bullets',
171 'compact',
172 'brag',
173 'anchor_id',
174 ),
175 'toogle_attributes' => array(
176 'price',
177 'field',
178 'rating',
179 ),
180 '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>.',
181 );
182 }
183