PluginProbe
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce / 2.11.2
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce v2.11.2
2.15.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 All 62 releases
hurrytimer / includes / C.php

C.php in HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce 2.11.2, at includes/C.php

82 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hurrytimer;
4
5 /**
6 * This class is used to store all plugin's constants.
7 *
8 * @package Hurrytimer
9 */
10 abstract class C
11 {
12 // Modes.
13 const MODE_REGULAR = 1;
14 const MODE_EVERGREEN = 2;
15 const MODE_RECURRING = 3;
16
17 // WC single product positions.
18 const WC_POSITION_ABOVE_TITLE = 2.3;
19 const WC_POSITION_BELOW_TITLE = 9.3;
20 const WC_POSITON_BELOW_REVIEW_RATING = 11.3;
21 const WC_POSITION_BELOW_PRICE = 17.3;
22 const WC_POSITION_BELOW_ATC_BUTTON = 39.3;
23 const WC_POSITION_ABOVE_ATC_BUTTON = 29.3;
24
25 // Actions.
26 const ACTION_NONE = 1;
27 const ACTION_HIDE = 2;
28 const ACTION_REDIRECT = 3;
29 const ACTION_CHANGE_STOCK_STATUS = 4;
30 const ACTION_HIDE_ADD_TO_CART_BUTTON = 5;
31 const ACTION_DISPLAY_MESSAGE = 6;
32 const ACTION_EXPIRE_COUPON = 7;
33
34 // WC products selection type.
35 const WC_PS_TYPE_ALL = 1;
36 const WC_PS_TYPE_INCLUDE_PRODUCTS = 2;
37 const WC_PS_TYPE_EXCLUDE_PRODUCTS = 3;
38 const WC_PS_TYPE_ALL_CATEGORIES = 4;
39 const WC_PS_TYPE_INCLUDE_CATEGORIES = 5;
40 const WC_PS_TYPE_EXCLUDE_CATEGORIES = 6;
41
42 // Headline positions.
43 const HEADLINE_POSITION_ABOVE_TIMER = 1;
44 const HEADLINE_POSITION_BELOW_TIMER = 2;
45
46 // Restart options.
47 const RESTART_NONE = 1;
48 const RESTART_IMMEDIATELY = 2;
49 const RESTART_AFTER_RELOAD = 3;
50 const RESTART_AFTER_DURATION = 4;
51
52 // Transform text cases.
53 const TRANSFORM_NONE = 'none';
54 const TRANSFORM_UPPERCASE = 'uppercase';
55 const TRANSFORM_LOWERCASE = 'lowercase';
56
57 // WC stock status.
58 const WC_IN_STOCK = 'instock';
59 const WC_OUT_OF_STOCK = 'outofstock';
60 const WC_ON_BACKORDER = 'onbackorder';
61
62 const YES = "yes";
63 const NO = "no";
64
65 const RECURRING_END_NEVER = 1;
66 const RECURRING_END_OCCURRENCES = 2;
67 const RECURRING_END_TIME = 3;
68
69 const RECURRING_MINUTELY = 'minutely';
70 const RECURRING_HOURLY = 'hourly';
71 const RECURRING_DAILY = 'daily';
72 const RECURRING_WEEKLY = 'weekly';
73 const RECURRING_MONTHLY = 'monthly';
74
75 const RECURRING_MONTHLY_DAY_OF_MONTH = 'day_of_month';
76 const RECURRING_MONTHLY_DAY_OF_WEEK = 'day_of_week';
77
78 const DETECTION_METHOD_COOKIE = 1;
79 const DETECTION_METHOD_IP = 2;
80 const DETECTION_METHOD_USER_SESSION = 3;
81
82 }