PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 111
Lasso Lite – Affiliate Link Manager & Product Displays v111
158 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 All 57 releases
simple-urls / admin / constant.php

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

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