Version Description
- Fix: position to place suffix
- Default image for style-99
Download this release
Release Info
Developer | bhvreddy |
Plugin | Click to Chat for WhatsApp Chat |
Version | 2.7 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.7
- click-to-chat.php +10 -5
- class-ht-ctc-switch.php → common/class-ht-ctc-switch.php +108 -107
- index.php +1 -1
- new/admin/admin-after-settings-page.php +69 -0
- new/admin/admin.php +4 -1
- new/admin/admin_assets/css/admin.css +36 -31
- new/admin/admin_assets/css/materialize.min.css +32 -32
- new/admin/admin_assets/js/admin.js +90 -145
- new/admin/admin_assets/js/materialize.min.js +5 -5
- new/admin/class-ht-ctc-admin-chat-page.php +0 -821
- new/admin/class-ht-ctc-admin-customize-styles.php +897 -909
- new/admin/class-ht-ctc-admin-group-page.php +748 -747
- new/admin/class-ht-ctc-admin-main-page.php +164 -107
- new/admin/class-ht-ctc-admin-others.php +50 -0
- new/admin/class-ht-ctc-admin-scripts.php +42 -44
- new/admin/class-ht-ctc-admin-share-page.php +797 -748
- new/admin/class-ht-ctc-db.php +607 -562
- new/class-ht-ctc.php +219 -217
- new/inc/assets/css/font.css +35 -0
- new/inc/assets/css/main.css +0 -35
- new/inc/assets/css/mdstyle8.css +160 -884
- new/inc/assets/fonts/ccw.svg +13 -13
- new/inc/assets/img/svg-style-2.php +28 -0
- new/inc/assets/img/svg-style-3.php +26 -0
- new/inc/assets/img/whatsapp-icon-square.svg +13 -1
- new/inc/assets/img/whatsapp-logo.png +0 -0
- new/inc/assets/img/whatsapp-logo.svg +11 -1
- new/inc/assets/js/app.js +153 -226
- new/inc/chat/chat-position.php +16 -16
- new/inc/chat/chat-show-hide.php +199 -199
- new/inc/chat/class-ht-ctc-chat-shortcode.php +211 -193
- new/inc/chat/class-ht-ctc-chat.php +146 -79
- new/inc/class-ht-ctc-main.php +68 -68
- new/inc/class-ht-ctc-register.php +94 -63
- new/inc/commons/class-ht-ctc-ismobile.php +69 -69
- new/inc/commons/class-ht-ctc-scripts.php +41 -41
- new/inc/commons/class-ht-ctc-values.php +56 -55
- new/inc/commons/ht-ctc-variables.php +149 -148
- new/inc/group/class-ht-ctc-group-shortcode.php +192 -176
- new/inc/group/class-ht-ctc-group.php +106 -71
- new/inc/group/group-position.php +16 -16
- new/inc/group/group-show-hide.php +211 -211
- new/inc/share/class-ht-ctc-share-shortcode.php +203 -190
- new/inc/share/class-ht-ctc-share.php +116 -71
- new/inc/share/share-position.php +16 -16
- new/inc/share/share-show-hide.php +210 -210
- new/inc/styles-shortcode/sc-style-1.php +17 -20
- new/inc/styles-shortcode/sc-style-2.php +20 -26
- new/inc/styles-shortcode/sc-style-3.php +20 -26
- new/inc/styles-shortcode/sc-style-4.php +59 -62
- new/inc/styles-shortcode/sc-style-5.php +129 -133
- new/inc/styles-shortcode/sc-style-6.php +28 -31
- new/inc/styles-shortcode/sc-style-7.php +32 -32
- new/inc/styles-shortcode/sc-style-8.php +67 -56
- new/inc/styles-shortcode/sc-style-99.php +57 -68
- new/inc/styles/style-1.php +15 -18
- new/inc/styles/style-2.php +20 -26
- new/inc/styles/style-3.php +20 -27
- new/inc/styles/style-4.php +54 -60
- new/inc/styles/style-5.php +123 -125
- new/inc/styles/style-6.php +26 -29
- new/inc/styles/style-7.php +27 -27
- new/inc/styles/style-8.php +65 -56
- new/inc/styles/style-99.php +54 -74
- prev/admin/admin.php +66 -69
- prev/admin/class-ccw-add-styles-scripts-admin.php +0 -32
click-to-chat.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Click to Chat
|
4 |
Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
|
5 |
-
Description: Lets make your Web page
|
6 |
-
Version: 2.
|
7 |
Author: HoliThemes
|
8 |
Author URI: https://holithemes.com/plugins/click-to-chat/
|
9 |
License: GPL2
|
@@ -17,12 +17,12 @@ if ( ! defined( 'WPINC' ) ) {
|
|
17 |
|
18 |
// new interface - ctc - Version
|
19 |
if ( ! defined( 'HT_CTC_VERSION' ) ) {
|
20 |
-
define( 'HT_CTC_VERSION', '2.
|
21 |
}
|
22 |
|
23 |
// for previous interface - define HT_CCW_VERSION
|
24 |
if ( ! defined( 'HT_CCW_VERSION' ) ) {
|
25 |
-
define( 'HT_CCW_VERSION', '1.7.
|
26 |
}
|
27 |
|
28 |
// define HT_CTC_PLUGIN_FILE
|
@@ -30,9 +30,14 @@ if ( ! defined( 'HT_CTC_PLUGIN_FILE' ) ) {
|
|
30 |
define( 'HT_CTC_PLUGIN_FILE', __FILE__ );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
33 |
// prev compatibility - define HT_CCW_PLUGIN_FILE
|
34 |
if ( ! defined( 'HT_CCW_PLUGIN_FILE' ) ) {
|
35 |
define( 'HT_CCW_PLUGIN_FILE', __FILE__ );
|
36 |
}
|
37 |
|
38 |
-
include_once 'class-ht-ctc-switch.php';
|
2 |
/*
|
3 |
Plugin Name: Click to Chat
|
4 |
Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
|
5 |
+
Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
|
6 |
+
Version: 2.7
|
7 |
Author: HoliThemes
|
8 |
Author URI: https://holithemes.com/plugins/click-to-chat/
|
9 |
License: GPL2
|
17 |
|
18 |
// new interface - ctc - Version
|
19 |
if ( ! defined( 'HT_CTC_VERSION' ) ) {
|
20 |
+
define( 'HT_CTC_VERSION', '2.7' );
|
21 |
}
|
22 |
|
23 |
// for previous interface - define HT_CCW_VERSION
|
24 |
if ( ! defined( 'HT_CCW_VERSION' ) ) {
|
25 |
+
define( 'HT_CCW_VERSION', '1.7.5' );
|
26 |
}
|
27 |
|
28 |
// define HT_CTC_PLUGIN_FILE
|
30 |
define( 'HT_CTC_PLUGIN_FILE', __FILE__ );
|
31 |
}
|
32 |
|
33 |
+
// define HT_CTC_PLUGIN_DIR
|
34 |
+
if ( ! defined( 'HT_CTC_PLUGIN_DIR' ) ) {
|
35 |
+
define( 'HT_CTC_PLUGIN_DIR', plugin_dir_path( HT_CTC_PLUGIN_FILE ) );
|
36 |
+
}
|
37 |
+
|
38 |
// prev compatibility - define HT_CCW_PLUGIN_FILE
|
39 |
if ( ! defined( 'HT_CCW_PLUGIN_FILE' ) ) {
|
40 |
define( 'HT_CCW_PLUGIN_FILE', __FILE__ );
|
41 |
}
|
42 |
|
43 |
+
include_once 'common/class-ht-ctc-switch.php';
|
class-ht-ctc-switch.php → common/class-ht-ctc-switch.php
RENAMED
@@ -1,107 +1,108 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Switch .. new or previous - user inerface
|
4 |
-
* new user default to new interface
|
5 |
-
* prev user - default to prev interface if not switched.
|
6 |
-
*
|
7 |
-
* @since 2.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
-
|
12 |
-
if ( ! class_exists( 'HT_CTC_Swift' ) ) :
|
13 |
-
|
14 |
-
class HT_CTC_Swift {
|
15 |
-
|
16 |
-
public function __construct() {
|
17 |
-
$this->to_switch();
|
18 |
-
}
|
19 |
-
|
20 |
-
public function to_switch() {
|
21 |
-
|
22 |
-
// new interface yes/no
|
23 |
-
$is_new = '';
|
24 |
-
|
25 |
-
// user new/prev
|
26 |
-
$user = '';
|
27 |
-
|
28 |
-
|
29 |
-
// if first time user - new interface .. $is_new = 'yes';
|
30 |
-
// if user swifted to new interface .. $is_new = 'yes';
|
31 |
-
|
32 |
-
// if user swifted to prev interface .. $is_new = 'no';
|
33 |
-
// if prev user / update .. $is_new = 'no';
|
34 |
-
|
35 |
-
$ccw_options = get_option('ccw_options');
|
36 |
-
|
37 |
-
if ( isset( $ccw_options['number'] ) ) {
|
38 |
-
$user = 'prev';
|
39 |
-
$is_new = 'no';
|
40 |
-
} else {
|
41 |
-
// new user - new interface
|
42 |
-
$user = 'new';
|
43 |
-
$is_new = 'yes';
|
44 |
-
}
|
45 |
-
|
46 |
-
// prev user and if switched ( checkbox option at admin )
|
47 |
-
if ( 'prev' == $user ) {
|
48 |
-
|
49 |
-
$ht_ctc_switch = get_option('ht_ctc_switch');
|
50 |
-
|
51 |
-
if ( 'yes' == $ht_ctc_switch['interface'] ) {
|
52 |
-
$is_new = 'yes';
|
53 |
-
}
|
54 |
-
}
|
55 |
-
|
56 |
-
|
57 |
-
//
|
58 |
-
// $is_new = 'yes';
|
59 |
-
|
60 |
-
// define HT_CTC_IS_NEW
|
61 |
-
if ( ! defined( 'HT_CTC_IS_NEW' ) ) {
|
62 |
-
define( 'HT_CTC_IS_NEW', $is_new );
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
// include related files ..
|
67 |
-
if ( 'yes' == HT_CTC_IS_NEW ) {
|
68 |
-
// new interface
|
69 |
-
|
70 |
-
// include main file - prev
|
71 |
-
include_once 'new/class-ht-ctc.php';
|
72 |
-
|
73 |
-
// create instance for the main file - HT_CTC
|
74 |
-
function ht_ctc() {
|
75 |
-
return HT_CTC::instance();
|
76 |
-
}
|
77 |
-
|
78 |
-
ht_ctc();
|
79 |
-
|
80 |
-
} else {
|
81 |
-
// prev interface
|
82 |
-
|
83 |
-
// include main file - prev
|
84 |
-
include_once 'prev/inc/class-ht-ccw.php';
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Switch .. new or previous - user inerface
|
4 |
+
* new user default to new interface
|
5 |
+
* prev user - default to prev interface if not switched.
|
6 |
+
*
|
7 |
+
* @since 2.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
if ( ! class_exists( 'HT_CTC_Swift' ) ) :
|
13 |
+
|
14 |
+
class HT_CTC_Swift {
|
15 |
+
|
16 |
+
public function __construct() {
|
17 |
+
$this->to_switch();
|
18 |
+
}
|
19 |
+
|
20 |
+
public function to_switch() {
|
21 |
+
|
22 |
+
// new interface yes/no
|
23 |
+
$is_new = '';
|
24 |
+
|
25 |
+
// user new/prev
|
26 |
+
$user = '';
|
27 |
+
|
28 |
+
|
29 |
+
// if first time user - new interface .. $is_new = 'yes';
|
30 |
+
// if user swifted to new interface .. $is_new = 'yes';
|
31 |
+
|
32 |
+
// if user swifted to prev interface .. $is_new = 'no';
|
33 |
+
// if prev user / update .. $is_new = 'no';
|
34 |
+
|
35 |
+
$ccw_options = get_option('ccw_options');
|
36 |
+
|
37 |
+
if ( isset( $ccw_options['number'] ) ) {
|
38 |
+
$user = 'prev';
|
39 |
+
$is_new = 'no';
|
40 |
+
} else {
|
41 |
+
// new user - new interface
|
42 |
+
$user = 'new';
|
43 |
+
$is_new = 'yes';
|
44 |
+
}
|
45 |
+
|
46 |
+
// prev user and if switched ( checkbox option at admin )
|
47 |
+
if ( 'prev' == $user ) {
|
48 |
+
|
49 |
+
$ht_ctc_switch = get_option('ht_ctc_switch');
|
50 |
+
|
51 |
+
if ( 'yes' == $ht_ctc_switch['interface'] ) {
|
52 |
+
$is_new = 'yes';
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
// while testing
|
58 |
+
// $is_new = 'yes';
|
59 |
+
|
60 |
+
// define HT_CTC_IS_NEW
|
61 |
+
if ( ! defined( 'HT_CTC_IS_NEW' ) ) {
|
62 |
+
define( 'HT_CTC_IS_NEW', $is_new );
|
63 |
+
}
|
64 |
+
|
65 |
+
|
66 |
+
// include related files ..
|
67 |
+
if ( 'yes' == HT_CTC_IS_NEW ) {
|
68 |
+
// new interface
|
69 |
+
|
70 |
+
// include main file - prev
|
71 |
+
include_once HT_CTC_PLUGIN_DIR .'new/class-ht-ctc.php';
|
72 |
+
|
73 |
+
// create instance for the main file - HT_CTC
|
74 |
+
function ht_ctc() {
|
75 |
+
return HT_CTC::instance();
|
76 |
+
}
|
77 |
+
|
78 |
+
ht_ctc();
|
79 |
+
|
80 |
+
} else {
|
81 |
+
// prev interface
|
82 |
+
|
83 |
+
// include main file - prev
|
84 |
+
include_once HT_CTC_PLUGIN_DIR .'prev/inc/class-ht-ccw.php';
|
85 |
+
|
86 |
+
|
87 |
+
// create instance for the main file - HT_CCW
|
88 |
+
function ht_ccw() {
|
89 |
+
return HT_CCW::instance();
|
90 |
+
}
|
91 |
+
|
92 |
+
ht_ccw();
|
93 |
+
}
|
94 |
+
|
95 |
+
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
}
|
103 |
+
|
104 |
+
new HT_CTC_Swift();
|
105 |
+
|
106 |
+
endif; // END class_exists check
|
107 |
+
|
108 |
+
|
index.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php
|
2 |
// Silence is golden.
|
1 |
+
<?php
|
2 |
// Silence is golden.
|
new/admin/admin-after-settings-page.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* After Setting page / FAQ
|
4 |
+
*
|
5 |
+
* @since 2.6
|
6 |
+
* @package ctc
|
7 |
+
* @subpackage admin
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
?>
|
12 |
+
|
13 |
+
<ul class="collapsible popout">
|
14 |
+
<p class="description" style="text-align: center">Frequently Asked Questions</p>
|
15 |
+
|
16 |
+
<li>
|
17 |
+
<div class="collapsible-header">Show/Hide on Selected pages, devices</div>
|
18 |
+
<div class="collapsible-body">
|
19 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-only-on-selected-pages/">Show only on selected pages</a></p>
|
20 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/hide-only-on-selected-pages/">Hide only on selected pages</a> </p>
|
21 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-hide-on-mobile-desktop/">Show/Hide on Mobile/Desktop</a></p>
|
22 |
+
</div>
|
23 |
+
</li>
|
24 |
+
|
25 |
+
<li>
|
26 |
+
<div class="collapsible-header">I Make Changes and Nothing Happens</div>
|
27 |
+
<div class="collapsible-body">
|
28 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/clear-cache/">Clear Cache:</a> <br>
|
29 |
+
  - Cache plugins <br>
|
30 |
+
  - Server cache <br>
|
31 |
+
  - Browser Cache
|
32 |
+
</p>
|
33 |
+
</div>
|
34 |
+
</li>
|
35 |
+
|
36 |
+
<!-- <li>
|
37 |
+
<div class="collapsible-header">Positon to place</div>
|
38 |
+
<div class="collapsible-body">
|
39 |
+
<p class="description">Center to the Screen</p>
|
40 |
+
<p class="description">Different postion for mobile, desktop (pro)</p>
|
41 |
+
</div>
|
42 |
+
</li> -->
|
43 |
+
|
44 |
+
<!-- <li>
|
45 |
+
<div class="collapsible-header">Contact Us</div>
|
46 |
+
<div class="collapsible-body">
|
47 |
+
<p class="description"><a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes!!" target="_blank">WhatsApp</a></p>
|
48 |
+
<p class="description">mail: wp@holithemes.com</p>
|
49 |
+
</div>
|
50 |
+
</li> -->
|
51 |
+
|
52 |
+
<li>
|
53 |
+
<div class="collapsible-header">HoliThemes On</div>
|
54 |
+
<div class="collapsible-body">
|
55 |
+
<p class="description"><a href="https://www.facebook.com/holithemes/" target="_blank">Facebook</a></p>
|
56 |
+
<p class="description"><a href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" target="_blank">YouTube</a></p>
|
57 |
+
<p class="description"><a href="https://twitter.com/holithemes" target="_blank">Twitter</a></p>
|
58 |
+
<p class="description"><a href="https://www.instagram.com/holithemes/" target="_blank">Instagram</a></p>
|
59 |
+
<p class="description"><a href="https://www.linkedin.com/company/holithemes" target="_blank">LinkedIn</a></p>
|
60 |
+
</div>
|
61 |
+
</li>
|
62 |
+
|
63 |
+
<!-- <div class="collapsible-header">Support Us</div>
|
64 |
+
<div class="collapsible-body">
|
65 |
+
<p class="description">If you like the plugin support us by giving 5 star rating</p>
|
66 |
+
</div>
|
67 |
+
</li> -->
|
68 |
+
|
69 |
+
</ul>
|
new/admin/admin.php
CHANGED
@@ -44,4 +44,7 @@ if ( isset ( $ht_ctc_main_options['enable_share'] ) ) {
|
|
44 |
include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-admin-customize-styles.php';
|
45 |
|
46 |
// meta boxes - change values at page level
|
47 |
-
include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-metabox.php';
|
|
|
|
|
|
44 |
include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-admin-customize-styles.php';
|
45 |
|
46 |
// meta boxes - change values at page level
|
47 |
+
include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-metabox.php';
|
48 |
+
|
49 |
+
// others - hooks ....
|
50 |
+
include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-admin-others.php';
|
new/admin/admin_assets/css/admin.css
CHANGED
@@ -1,32 +1,37 @@
|
|
1 |
-
/* Admin CSS */
|
2 |
-
|
3 |
-
.show-hide_display-none {
|
4 |
-
display: none;
|
5 |
-
}
|
6 |
-
|
7 |
-
.show-hide_display-block {
|
8 |
-
display: block;
|
9 |
-
}
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
.options .submit {
|
14 |
-
position: sticky !important;
|
15 |
-
bottom: 1px;
|
16 |
-
float: right;
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
1 |
+
/* Admin CSS */
|
2 |
+
|
3 |
+
.show-hide_display-none {
|
4 |
+
display: none;
|
5 |
+
}
|
6 |
+
|
7 |
+
.show-hide_display-block {
|
8 |
+
display: block;
|
9 |
+
}
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
.options .submit {
|
14 |
+
position: sticky !important;
|
15 |
+
bottom: 1px;
|
16 |
+
float: right;
|
17 |
+
z-index: 9;
|
18 |
+
}
|
19 |
+
|
20 |
+
.options .submit input {
|
21 |
+
letter-spacing: 0.4px;
|
22 |
+
padding: 2px 11px;
|
23 |
+
}
|
24 |
+
|
25 |
+
|
26 |
+
@media only screen and (min-width: 1201px) {
|
27 |
+
.sticky-sidebar {
|
28 |
+
position: sticky !important;
|
29 |
+
top: 100px;
|
30 |
+
float: right;
|
31 |
+
}
|
32 |
+
|
33 |
+
.sticky-sidebar .sidebar-content {
|
34 |
+
margin-top: 70px;
|
35 |
+
margin-left: 80px;
|
36 |
+
}
|
37 |
}
|
new/admin/admin_assets/css/materialize.min.css
CHANGED
@@ -1,33 +1,33 @@
|
|
1 |
-
/*!
|
2 |
-
* Materialize v1.0.0 (http://materializecss.com)
|
3 |
-
* Copyright 2014-2017 Materialize
|
4 |
-
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
5 |
-
*/
|
6 |
-
.materialize-red{background-color:#e51c23 !important}.materialize-red-text{color:#e51c23 !important}.materialize-red.lighten-5{background-color:#fdeaeb !important}.materialize-red-text.text-lighten-5{color:#fdeaeb !important}.materialize-red.lighten-4{background-color:#f8c1c3 !important}.materialize-red-text.text-lighten-4{color:#f8c1c3 !important}.materialize-red.lighten-3{background-color:#f3989b !important}.materialize-red-text.text-lighten-3{color:#f3989b !important}.materialize-red.lighten-2{background-color:#ee6e73 !important}.materialize-red-text.text-lighten-2{color:#ee6e73 !important}.materialize-red.lighten-1{background-color:#ea454b !important}.materialize-red-text.text-lighten-1{color:#ea454b !important}.materialize-red.darken-1{background-color:#d0181e !important}.materialize-red-text.text-darken-1{color:#d0181e !important}.materialize-red.darken-2{background-color:#b9151b !important}.materialize-red-text.text-darken-2{color:#b9151b !important}.materialize-red.darken-3{background-color:#a21318 !important}.materialize-red-text.text-darken-3{color:#a21318 !important}.materialize-red.darken-4{background-color:#8b1014 !important}.materialize-red-text.text-darken-4{color:#8b1014 !important}.red{background-color:#F44336 !important}.red-text{color:#F44336 !important}.red.lighten-5{background-color:#FFEBEE !important}.red-text.text-lighten-5{color:#FFEBEE !important}.red.lighten-4{background-color:#FFCDD2 !important}.red-text.text-lighten-4{color:#FFCDD2 !important}.red.lighten-3{background-color:#EF9A9A !important}.red-text.text-lighten-3{color:#EF9A9A !important}.red.lighten-2{background-color:#E57373 !important}.red-text.text-lighten-2{color:#E57373 !important}.red.lighten-1{background-color:#EF5350 !important}.red-text.text-lighten-1{color:#EF5350 !important}.red.darken-1{background-color:#E53935 !important}.red-text.text-darken-1{color:#E53935 !important}.red.darken-2{background-color:#D32F2F !important}.red-text.text-darken-2{color:#D32F2F !important}.red.darken-3{background-color:#C62828 !important}.red-text.text-darken-3{color:#C62828 !important}.red.darken-4{background-color:#B71C1C !important}.red-text.text-darken-4{color:#B71C1C !important}.red.accent-1{background-color:#FF8A80 !important}.red-text.text-accent-1{color:#FF8A80 !important}.red.accent-2{background-color:#FF5252 !important}.red-text.text-accent-2{color:#FF5252 !important}.red.accent-3{background-color:#FF1744 !important}.red-text.text-accent-3{color:#FF1744 !important}.red.accent-4{background-color:#D50000 !important}.red-text.text-accent-4{color:#D50000 !important}.pink{background-color:#e91e63 !important}.pink-text{color:#e91e63 !important}.pink.lighten-5{background-color:#fce4ec !important}.pink-text.text-lighten-5{color:#fce4ec !important}.pink.lighten-4{background-color:#f8bbd0 !important}.pink-text.text-lighten-4{color:#f8bbd0 !important}.pink.lighten-3{background-color:#f48fb1 !important}.pink-text.text-lighten-3{color:#f48fb1 !important}.pink.lighten-2{background-color:#f06292 !important}.pink-text.text-lighten-2{color:#f06292 !important}.pink.lighten-1{background-color:#ec407a !important}.pink-text.text-lighten-1{color:#ec407a !important}.pink.darken-1{background-color:#d81b60 !important}.pink-text.text-darken-1{color:#d81b60 !important}.pink.darken-2{background-color:#c2185b !important}.pink-text.text-darken-2{color:#c2185b !important}.pink.darken-3{background-color:#ad1457 !important}.pink-text.text-darken-3{color:#ad1457 !important}.pink.darken-4{background-color:#880e4f !important}.pink-text.text-darken-4{color:#880e4f !important}.pink.accent-1{background-color:#ff80ab !important}.pink-text.text-accent-1{color:#ff80ab !important}.pink.accent-2{background-color:#ff4081 !important}.pink-text.text-accent-2{color:#ff4081 !important}.pink.accent-3{background-color:#f50057 !important}.pink-text.text-accent-3{color:#f50057 !important}.pink.accent-4{background-color:#c51162 !important}.pink-text.text-accent-4{color:#c51162 !important}.purple{background-color:#9c27b0 !important}.purple-text{color:#9c27b0 !important}.purple.lighten-5{background-color:#f3e5f5 !important}.purple-text.text-lighten-5{color:#f3e5f5 !important}.purple.lighten-4{background-color:#e1bee7 !important}.purple-text.text-lighten-4{color:#e1bee7 !important}.purple.lighten-3{background-color:#ce93d8 !important}.purple-text.text-lighten-3{color:#ce93d8 !important}.purple.lighten-2{background-color:#ba68c8 !important}.purple-text.text-lighten-2{color:#ba68c8 !important}.purple.lighten-1{background-color:#ab47bc !important}.purple-text.text-lighten-1{color:#ab47bc !important}.purple.darken-1{background-color:#8e24aa !important}.purple-text.text-darken-1{color:#8e24aa !important}.purple.darken-2{background-color:#7b1fa2 !important}.purple-text.text-darken-2{color:#7b1fa2 !important}.purple.darken-3{background-color:#6a1b9a !important}.purple-text.text-darken-3{color:#6a1b9a !important}.purple.darken-4{background-color:#4a148c !important}.purple-text.text-darken-4{color:#4a148c !important}.purple.accent-1{background-color:#ea80fc !important}.purple-text.text-accent-1{color:#ea80fc !important}.purple.accent-2{background-color:#e040fb !important}.purple-text.text-accent-2{color:#e040fb !important}.purple.accent-3{background-color:#d500f9 !important}.purple-text.text-accent-3{color:#d500f9 !important}.purple.accent-4{background-color:#a0f !important}.purple-text.text-accent-4{color:#a0f !important}.deep-purple{background-color:#673ab7 !important}.deep-purple-text{color:#673ab7 !important}.deep-purple.lighten-5{background-color:#ede7f6 !important}.deep-purple-text.text-lighten-5{color:#ede7f6 !important}.deep-purple.lighten-4{background-color:#d1c4e9 !important}.deep-purple-text.text-lighten-4{color:#d1c4e9 !important}.deep-purple.lighten-3{background-color:#b39ddb !important}.deep-purple-text.text-lighten-3{color:#b39ddb !important}.deep-purple.lighten-2{background-color:#9575cd !important}.deep-purple-text.text-lighten-2{color:#9575cd !important}.deep-purple.lighten-1{background-color:#7e57c2 !important}.deep-purple-text.text-lighten-1{color:#7e57c2 !important}.deep-purple.darken-1{background-color:#5e35b1 !important}.deep-purple-text.text-darken-1{color:#5e35b1 !important}.deep-purple.darken-2{background-color:#512da8 !important}.deep-purple-text.text-darken-2{color:#512da8 !important}.deep-purple.darken-3{background-color:#4527a0 !important}.deep-purple-text.text-darken-3{color:#4527a0 !important}.deep-purple.darken-4{background-color:#311b92 !important}.deep-purple-text.text-darken-4{color:#311b92 !important}.deep-purple.accent-1{background-color:#b388ff !important}.deep-purple-text.text-accent-1{color:#b388ff !important}.deep-purple.accent-2{background-color:#7c4dff !important}.deep-purple-text.text-accent-2{color:#7c4dff !important}.deep-purple.accent-3{background-color:#651fff !important}.deep-purple-text.text-accent-3{color:#651fff !important}.deep-purple.accent-4{background-color:#6200ea !important}.deep-purple-text.text-accent-4{color:#6200ea !important}.indigo{background-color:#3f51b5 !important}.indigo-text{color:#3f51b5 !important}.indigo.lighten-5{background-color:#e8eaf6 !important}.indigo-text.text-lighten-5{color:#e8eaf6 !important}.indigo.lighten-4{background-color:#c5cae9 !important}.indigo-text.text-lighten-4{color:#c5cae9 !important}.indigo.lighten-3{background-color:#9fa8da !important}.indigo-text.text-lighten-3{color:#9fa8da !important}.indigo.lighten-2{background-color:#7986cb !important}.indigo-text.text-lighten-2{color:#7986cb !important}.indigo.lighten-1{background-color:#5c6bc0 !important}.indigo-text.text-lighten-1{color:#5c6bc0 !important}.indigo.darken-1{background-color:#3949ab !important}.indigo-text.text-darken-1{color:#3949ab !important}.indigo.darken-2{background-color:#303f9f !important}.indigo-text.text-darken-2{color:#303f9f !important}.indigo.darken-3{background-color:#283593 !important}.indigo-text.text-darken-3{color:#283593 !important}.indigo.darken-4{background-color:#1a237e !important}.indigo-text.text-darken-4{color:#1a237e !important}.indigo.accent-1{background-color:#8c9eff !important}.indigo-text.text-accent-1{color:#8c9eff !important}.indigo.accent-2{background-color:#536dfe !important}.indigo-text.text-accent-2{color:#536dfe !important}.indigo.accent-3{background-color:#3d5afe !important}.indigo-text.text-accent-3{color:#3d5afe !important}.indigo.accent-4{background-color:#304ffe !important}.indigo-text.text-accent-4{color:#304ffe !important}.blue{background-color:#2196F3 !important}.blue-text{color:#2196F3 !important}.blue.lighten-5{background-color:#E3F2FD !important}.blue-text.text-lighten-5{color:#E3F2FD !important}.blue.lighten-4{background-color:#BBDEFB !important}.blue-text.text-lighten-4{color:#BBDEFB !important}.blue.lighten-3{background-color:#90CAF9 !important}.blue-text.text-lighten-3{color:#90CAF9 !important}.blue.lighten-2{background-color:#64B5F6 !important}.blue-text.text-lighten-2{color:#64B5F6 !important}.blue.lighten-1{background-color:#42A5F5 !important}.blue-text.text-lighten-1{color:#42A5F5 !important}.blue.darken-1{background-color:#1E88E5 !important}.blue-text.text-darken-1{color:#1E88E5 !important}.blue.darken-2{background-color:#1976D2 !important}.blue-text.text-darken-2{color:#1976D2 !important}.blue.darken-3{background-color:#1565C0 !important}.blue-text.text-darken-3{color:#1565C0 !important}.blue.darken-4{background-color:#0D47A1 !important}.blue-text.text-darken-4{color:#0D47A1 !important}.blue.accent-1{background-color:#82B1FF !important}.blue-text.text-accent-1{color:#82B1FF !important}.blue.accent-2{background-color:#448AFF !important}.blue-text.text-accent-2{color:#448AFF !important}.blue.accent-3{background-color:#2979FF !important}.blue-text.text-accent-3{color:#2979FF !important}.blue.accent-4{background-color:#2962FF !important}.blue-text.text-accent-4{color:#2962FF !important}.light-blue{background-color:#03a9f4 !important}.light-blue-text{color:#03a9f4 !important}.light-blue.lighten-5{background-color:#e1f5fe !important}.light-blue-text.text-lighten-5{color:#e1f5fe !important}.light-blue.lighten-4{background-color:#b3e5fc !important}.light-blue-text.text-lighten-4{color:#b3e5fc !important}.light-blue.lighten-3{background-color:#81d4fa !important}.light-blue-text.text-lighten-3{color:#81d4fa !important}.light-blue.lighten-2{background-color:#4fc3f7 !important}.light-blue-text.text-lighten-2{color:#4fc3f7 !important}.light-blue.lighten-1{background-color:#29b6f6 !important}.light-blue-text.text-lighten-1{color:#29b6f6 !important}.light-blue.darken-1{background-color:#039be5 !important}.light-blue-text.text-darken-1{color:#039be5 !important}.light-blue.darken-2{background-color:#0288d1 !important}.light-blue-text.text-darken-2{color:#0288d1 !important}.light-blue.darken-3{background-color:#0277bd !important}.light-blue-text.text-darken-3{color:#0277bd !important}.light-blue.darken-4{background-color:#01579b !important}.light-blue-text.text-darken-4{color:#01579b !important}.light-blue.accent-1{background-color:#80d8ff !important}.light-blue-text.text-accent-1{color:#80d8ff !important}.light-blue.accent-2{background-color:#40c4ff !important}.light-blue-text.text-accent-2{color:#40c4ff !important}.light-blue.accent-3{background-color:#00b0ff !important}.light-blue-text.text-accent-3{color:#00b0ff !important}.light-blue.accent-4{background-color:#0091ea !important}.light-blue-text.text-accent-4{color:#0091ea !important}.cyan{background-color:#00bcd4 !important}.cyan-text{color:#00bcd4 !important}.cyan.lighten-5{background-color:#e0f7fa !important}.cyan-text.text-lighten-5{color:#e0f7fa !important}.cyan.lighten-4{background-color:#b2ebf2 !important}.cyan-text.text-lighten-4{color:#b2ebf2 !important}.cyan.lighten-3{background-color:#80deea !important}.cyan-text.text-lighten-3{color:#80deea !important}.cyan.lighten-2{background-color:#4dd0e1 !important}.cyan-text.text-lighten-2{color:#4dd0e1 !important}.cyan.lighten-1{background-color:#26c6da !important}.cyan-text.text-lighten-1{color:#26c6da !important}.cyan.darken-1{background-color:#00acc1 !important}.cyan-text.text-darken-1{color:#00acc1 !important}.cyan.darken-2{background-color:#0097a7 !important}.cyan-text.text-darken-2{color:#0097a7 !important}.cyan.darken-3{background-color:#00838f !important}.cyan-text.text-darken-3{color:#00838f !important}.cyan.darken-4{background-color:#006064 !important}.cyan-text.text-darken-4{color:#006064 !important}.cyan.accent-1{background-color:#84ffff !important}.cyan-text.text-accent-1{color:#84ffff !important}.cyan.accent-2{background-color:#18ffff !important}.cyan-text.text-accent-2{color:#18ffff !important}.cyan.accent-3{background-color:#00e5ff !important}.cyan-text.text-accent-3{color:#00e5ff !important}.cyan.accent-4{background-color:#00b8d4 !important}.cyan-text.text-accent-4{color:#00b8d4 !important}.teal{background-color:#009688 !important}.teal-text{color:#009688 !important}.teal.lighten-5{background-color:#e0f2f1 !important}.teal-text.text-lighten-5{color:#e0f2f1 !important}.teal.lighten-4{background-color:#b2dfdb !important}.teal-text.text-lighten-4{color:#b2dfdb !important}.teal.lighten-3{background-color:#80cbc4 !important}.teal-text.text-lighten-3{color:#80cbc4 !important}.teal.lighten-2{background-color:#4db6ac !important}.teal-text.text-lighten-2{color:#4db6ac !important}.teal.lighten-1{background-color:#26a69a !important}.teal-text.text-lighten-1{color:#26a69a !important}.teal.darken-1{background-color:#00897b !important}.teal-text.text-darken-1{color:#00897b !important}.teal.darken-2{background-color:#00796b !important}.teal-text.text-darken-2{color:#00796b !important}.teal.darken-3{background-color:#00695c !important}.teal-text.text-darken-3{color:#00695c !important}.teal.darken-4{background-color:#004d40 !important}.teal-text.text-darken-4{color:#004d40 !important}.teal.accent-1{background-color:#a7ffeb !important}.teal-text.text-accent-1{color:#a7ffeb !important}.teal.accent-2{background-color:#64ffda !important}.teal-text.text-accent-2{color:#64ffda !important}.teal.accent-3{background-color:#1de9b6 !important}.teal-text.text-accent-3{color:#1de9b6 !important}.teal.accent-4{background-color:#00bfa5 !important}.teal-text.text-accent-4{color:#00bfa5 !important}.green{background-color:#4CAF50 !important}.green-text{color:#4CAF50 !important}.green.lighten-5{background-color:#E8F5E9 !important}.green-text.text-lighten-5{color:#E8F5E9 !important}.green.lighten-4{background-color:#C8E6C9 !important}.green-text.text-lighten-4{color:#C8E6C9 !important}.green.lighten-3{background-color:#A5D6A7 !important}.green-text.text-lighten-3{color:#A5D6A7 !important}.green.lighten-2{background-color:#81C784 !important}.green-text.text-lighten-2{color:#81C784 !important}.green.lighten-1{background-color:#66BB6A !important}.green-text.text-lighten-1{color:#66BB6A !important}.green.darken-1{background-color:#43A047 !important}.green-text.text-darken-1{color:#43A047 !important}.green.darken-2{background-color:#388E3C !important}.green-text.text-darken-2{color:#388E3C !important}.green.darken-3{background-color:#2E7D32 !important}.green-text.text-darken-3{color:#2E7D32 !important}.green.darken-4{background-color:#1B5E20 !important}.green-text.text-darken-4{color:#1B5E20 !important}.green.accent-1{background-color:#B9F6CA !important}.green-text.text-accent-1{color:#B9F6CA !important}.green.accent-2{background-color:#69F0AE !important}.green-text.text-accent-2{color:#69F0AE !important}.green.accent-3{background-color:#00E676 !important}.green-text.text-accent-3{color:#00E676 !important}.green.accent-4{background-color:#00C853 !important}.green-text.text-accent-4{color:#00C853 !important}.light-green{background-color:#8bc34a !important}.light-green-text{color:#8bc34a !important}.light-green.lighten-5{background-color:#f1f8e9 !important}.light-green-text.text-lighten-5{color:#f1f8e9 !important}.light-green.lighten-4{background-color:#dcedc8 !important}.light-green-text.text-lighten-4{color:#dcedc8 !important}.light-green.lighten-3{background-color:#c5e1a5 !important}.light-green-text.text-lighten-3{color:#c5e1a5 !important}.light-green.lighten-2{background-color:#aed581 !important}.light-green-text.text-lighten-2{color:#aed581 !important}.light-green.lighten-1{background-color:#9ccc65 !important}.light-green-text.text-lighten-1{color:#9ccc65 !important}.light-green.darken-1{background-color:#7cb342 !important}.light-green-text.text-darken-1{color:#7cb342 !important}.light-green.darken-2{background-color:#689f38 !important}.light-green-text.text-darken-2{color:#689f38 !important}.light-green.darken-3{background-color:#558b2f !important}.light-green-text.text-darken-3{color:#558b2f !important}.light-green.darken-4{background-color:#33691e !important}.light-green-text.text-darken-4{color:#33691e !important}.light-green.accent-1{background-color:#ccff90 !important}.light-green-text.text-accent-1{color:#ccff90 !important}.light-green.accent-2{background-color:#b2ff59 !important}.light-green-text.text-accent-2{color:#b2ff59 !important}.light-green.accent-3{background-color:#76ff03 !important}.light-green-text.text-accent-3{color:#76ff03 !important}.light-green.accent-4{background-color:#64dd17 !important}.light-green-text.text-accent-4{color:#64dd17 !important}.lime{background-color:#cddc39 !important}.lime-text{color:#cddc39 !important}.lime.lighten-5{background-color:#f9fbe7 !important}.lime-text.text-lighten-5{color:#f9fbe7 !important}.lime.lighten-4{background-color:#f0f4c3 !important}.lime-text.text-lighten-4{color:#f0f4c3 !important}.lime.lighten-3{background-color:#e6ee9c !important}.lime-text.text-lighten-3{color:#e6ee9c !important}.lime.lighten-2{background-color:#dce775 !important}.lime-text.text-lighten-2{color:#dce775 !important}.lime.lighten-1{background-color:#d4e157 !important}.lime-text.text-lighten-1{color:#d4e157 !important}.lime.darken-1{background-color:#c0ca33 !important}.lime-text.text-darken-1{color:#c0ca33 !important}.lime.darken-2{background-color:#afb42b !important}.lime-text.text-darken-2{color:#afb42b !important}.lime.darken-3{background-color:#9e9d24 !important}.lime-text.text-darken-3{color:#9e9d24 !important}.lime.darken-4{background-color:#827717 !important}.lime-text.text-darken-4{color:#827717 !important}.lime.accent-1{background-color:#f4ff81 !important}.lime-text.text-accent-1{color:#f4ff81 !important}.lime.accent-2{background-color:#eeff41 !important}.lime-text.text-accent-2{color:#eeff41 !important}.lime.accent-3{background-color:#c6ff00 !important}.lime-text.text-accent-3{color:#c6ff00 !important}.lime.accent-4{background-color:#aeea00 !important}.lime-text.text-accent-4{color:#aeea00 !important}.yellow{background-color:#ffeb3b !important}.yellow-text{color:#ffeb3b !important}.yellow.lighten-5{background-color:#fffde7 !important}.yellow-text.text-lighten-5{color:#fffde7 !important}.yellow.lighten-4{background-color:#fff9c4 !important}.yellow-text.text-lighten-4{color:#fff9c4 !important}.yellow.lighten-3{background-color:#fff59d !important}.yellow-text.text-lighten-3{color:#fff59d !important}.yellow.lighten-2{background-color:#fff176 !important}.yellow-text.text-lighten-2{color:#fff176 !important}.yellow.lighten-1{background-color:#ffee58 !important}.yellow-text.text-lighten-1{color:#ffee58 !important}.yellow.darken-1{background-color:#fdd835 !important}.yellow-text.text-darken-1{color:#fdd835 !important}.yellow.darken-2{background-color:#fbc02d !important}.yellow-text.text-darken-2{color:#fbc02d !important}.yellow.darken-3{background-color:#f9a825 !important}.yellow-text.text-darken-3{color:#f9a825 !important}.yellow.darken-4{background-color:#f57f17 !important}.yellow-text.text-darken-4{color:#f57f17 !important}.yellow.accent-1{background-color:#ffff8d !important}.yellow-text.text-accent-1{color:#ffff8d !important}.yellow.accent-2{background-color:#ff0 !important}.yellow-text.text-accent-2{color:#ff0 !important}.yellow.accent-3{background-color:#ffea00 !important}.yellow-text.text-accent-3{color:#ffea00 !important}.yellow.accent-4{background-color:#ffd600 !important}.yellow-text.text-accent-4{color:#ffd600 !important}.amber{background-color:#ffc107 !important}.amber-text{color:#ffc107 !important}.amber.lighten-5{background-color:#fff8e1 !important}.amber-text.text-lighten-5{color:#fff8e1 !important}.amber.lighten-4{background-color:#ffecb3 !important}.amber-text.text-lighten-4{color:#ffecb3 !important}.amber.lighten-3{background-color:#ffe082 !important}.amber-text.text-lighten-3{color:#ffe082 !important}.amber.lighten-2{background-color:#ffd54f !important}.amber-text.text-lighten-2{color:#ffd54f !important}.amber.lighten-1{background-color:#ffca28 !important}.amber-text.text-lighten-1{color:#ffca28 !important}.amber.darken-1{background-color:#ffb300 !important}.amber-text.text-darken-1{color:#ffb300 !important}.amber.darken-2{background-color:#ffa000 !important}.amber-text.text-darken-2{color:#ffa000 !important}.amber.darken-3{background-color:#ff8f00 !important}.amber-text.text-darken-3{color:#ff8f00 !important}.amber.darken-4{background-color:#ff6f00 !important}.amber-text.text-darken-4{color:#ff6f00 !important}.amber.accent-1{background-color:#ffe57f !important}.amber-text.text-accent-1{color:#ffe57f !important}.amber.accent-2{background-color:#ffd740 !important}.amber-text.text-accent-2{color:#ffd740 !important}.amber.accent-3{background-color:#ffc400 !important}.amber-text.text-accent-3{color:#ffc400 !important}.amber.accent-4{background-color:#ffab00 !important}.amber-text.text-accent-4{color:#ffab00 !important}.orange{background-color:#ff9800 !important}.orange-text{color:#ff9800 !important}.orange.lighten-5{background-color:#fff3e0 !important}.orange-text.text-lighten-5{color:#fff3e0 !important}.orange.lighten-4{background-color:#ffe0b2 !important}.orange-text.text-lighten-4{color:#ffe0b2 !important}.orange.lighten-3{background-color:#ffcc80 !important}.orange-text.text-lighten-3{color:#ffcc80 !important}.orange.lighten-2{background-color:#ffb74d !important}.orange-text.text-lighten-2{color:#ffb74d !important}.orange.lighten-1{background-color:#ffa726 !important}.orange-text.text-lighten-1{color:#ffa726 !important}.orange.darken-1{background-color:#fb8c00 !important}.orange-text.text-darken-1{color:#fb8c00 !important}.orange.darken-2{background-color:#f57c00 !important}.orange-text.text-darken-2{color:#f57c00 !important}.orange.darken-3{background-color:#ef6c00 !important}.orange-text.text-darken-3{color:#ef6c00 !important}.orange.darken-4{background-color:#e65100 !important}.orange-text.text-darken-4{color:#e65100 !important}.orange.accent-1{background-color:#ffd180 !important}.orange-text.text-accent-1{color:#ffd180 !important}.orange.accent-2{background-color:#ffab40 !important}.orange-text.text-accent-2{color:#ffab40 !important}.orange.accent-3{background-color:#ff9100 !important}.orange-text.text-accent-3{color:#ff9100 !important}.orange.accent-4{background-color:#ff6d00 !important}.orange-text.text-accent-4{color:#ff6d00 !important}.deep-orange{background-color:#ff5722 !important}.deep-orange-text{color:#ff5722 !important}.deep-orange.lighten-5{background-color:#fbe9e7 !important}.deep-orange-text.text-lighten-5{color:#fbe9e7 !important}.deep-orange.lighten-4{background-color:#ffccbc !important}.deep-orange-text.text-lighten-4{color:#ffccbc !important}.deep-orange.lighten-3{background-color:#ffab91 !important}.deep-orange-text.text-lighten-3{color:#ffab91 !important}.deep-orange.lighten-2{background-color:#ff8a65 !important}.deep-orange-text.text-lighten-2{color:#ff8a65 !important}.deep-orange.lighten-1{background-color:#ff7043 !important}.deep-orange-text.text-lighten-1{color:#ff7043 !important}.deep-orange.darken-1{background-color:#f4511e !important}.deep-orange-text.text-darken-1{color:#f4511e !important}.deep-orange.darken-2{background-color:#e64a19 !important}.deep-orange-text.text-darken-2{color:#e64a19 !important}.deep-orange.darken-3{background-color:#d84315 !important}.deep-orange-text.text-darken-3{color:#d84315 !important}.deep-orange.darken-4{background-color:#bf360c !important}.deep-orange-text.text-darken-4{color:#bf360c !important}.deep-orange.accent-1{background-color:#ff9e80 !important}.deep-orange-text.text-accent-1{color:#ff9e80 !important}.deep-orange.accent-2{background-color:#ff6e40 !important}.deep-orange-text.text-accent-2{color:#ff6e40 !important}.deep-orange.accent-3{background-color:#ff3d00 !important}.deep-orange-text.text-accent-3{color:#ff3d00 !important}.deep-orange.accent-4{background-color:#dd2c00 !important}.deep-orange-text.text-accent-4{color:#dd2c00 !important}.brown{background-color:#795548 !important}.brown-text{color:#795548 !important}.brown.lighten-5{background-color:#efebe9 !important}.brown-text.text-lighten-5{color:#efebe9 !important}.brown.lighten-4{background-color:#d7ccc8 !important}.brown-text.text-lighten-4{color:#d7ccc8 !important}.brown.lighten-3{background-color:#bcaaa4 !important}.brown-text.text-lighten-3{color:#bcaaa4 !important}.brown.lighten-2{background-color:#a1887f !important}.brown-text.text-lighten-2{color:#a1887f !important}.brown.lighten-1{background-color:#8d6e63 !important}.brown-text.text-lighten-1{color:#8d6e63 !important}.brown.darken-1{background-color:#6d4c41 !important}.brown-text.text-darken-1{color:#6d4c41 !important}.brown.darken-2{background-color:#5d4037 !important}.brown-text.text-darken-2{color:#5d4037 !important}.brown.darken-3{background-color:#4e342e !important}.brown-text.text-darken-3{color:#4e342e !important}.brown.darken-4{background-color:#3e2723 !important}.brown-text.text-darken-4{color:#3e2723 !important}.blue-grey{background-color:#607d8b !important}.blue-grey-text{color:#607d8b !important}.blue-grey.lighten-5{background-color:#eceff1 !important}.blue-grey-text.text-lighten-5{color:#eceff1 !important}.blue-grey.lighten-4{background-color:#cfd8dc !important}.blue-grey-text.text-lighten-4{color:#cfd8dc !important}.blue-grey.lighten-3{background-color:#b0bec5 !important}.blue-grey-text.text-lighten-3{color:#b0bec5 !important}.blue-grey.lighten-2{background-color:#90a4ae !important}.blue-grey-text.text-lighten-2{color:#90a4ae !important}.blue-grey.lighten-1{background-color:#78909c !important}.blue-grey-text.text-lighten-1{color:#78909c !important}.blue-grey.darken-1{background-color:#546e7a !important}.blue-grey-text.text-darken-1{color:#546e7a !important}.blue-grey.darken-2{background-color:#455a64 !important}.blue-grey-text.text-darken-2{color:#455a64 !important}.blue-grey.darken-3{background-color:#37474f !important}.blue-grey-text.text-darken-3{color:#37474f !important}.blue-grey.darken-4{background-color:#263238 !important}.blue-grey-text.text-darken-4{color:#263238 !important}.grey{background-color:#9e9e9e !important}.grey-text{color:#9e9e9e !important}.grey.lighten-5{background-color:#fafafa !important}.grey-text.text-lighten-5{color:#fafafa !important}.grey.lighten-4{background-color:#f5f5f5 !important}.grey-text.text-lighten-4{color:#f5f5f5 !important}.grey.lighten-3{background-color:#eee !important}.grey-text.text-lighten-3{color:#eee !important}.grey.lighten-2{background-color:#e0e0e0 !important}.grey-text.text-lighten-2{color:#e0e0e0 !important}.grey.lighten-1{background-color:#bdbdbd !important}.grey-text.text-lighten-1{color:#bdbdbd !important}.grey.darken-1{background-color:#757575 !important}.grey-text.text-darken-1{color:#757575 !important}.grey.darken-2{background-color:#616161 !important}.grey-text.text-darken-2{color:#616161 !important}.grey.darken-3{background-color:#424242 !important}.grey-text.text-darken-3{color:#424242 !important}.grey.darken-4{background-color:#212121 !important}.grey-text.text-darken-4{color:#212121 !important}.black{background-color:#000 !important}.black-text{color:#000 !important}.white{background-color:#fff !important}.white-text{color:#fff !important}.transparent{background-color:rgba(0,0,0,0) !important}.transparent-text{color:rgba(0,0,0,0) !important}/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:0.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;-moz-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,*:before,*:after{-webkit-box-sizing:inherit;box-sizing:inherit}button,input,optgroup,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}ul:not(.browser-default){padding-left:0;list-style-type:none}ul:not(.browser-default)>li{list-style-type:none}a{color:#039be5;text-decoration:none;-webkit-tap-highlight-color:transparent}.valign-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.clearfix{clear:both}.z-depth-0{-webkit-box-shadow:none !important;box-shadow:none !important}.z-depth-1,nav,.card-panel,.card,.toast,.btn,.btn-large,.btn-small,.btn-floating,.dropdown-content,.collapsible,.sidenav{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2)}.z-depth-1-half,.btn:hover,.btn-large:hover,.btn-small:hover,.btn-floating:hover{-webkit-box-shadow:0 3px 3px 0 rgba(0,0,0,0.14),0 1px 7px 0 rgba(0,0,0,0.12),0 3px 1px -1px rgba(0,0,0,0.2);box-shadow:0 3px 3px 0 rgba(0,0,0,0.14),0 1px 7px 0 rgba(0,0,0,0.12),0 3px 1px -1px rgba(0,0,0,0.2)}.z-depth-2{-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.3);box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.3)}.z-depth-3{-webkit-box-shadow:0 8px 17px 2px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.2);box-shadow:0 8px 17px 2px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.2)}.z-depth-4{-webkit-box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -7px rgba(0,0,0,0.2);box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -7px rgba(0,0,0,0.2)}.z-depth-5,.modal{-webkit-box-shadow:0 24px 38px 3px rgba(0,0,0,0.14),0 9px 46px 8px rgba(0,0,0,0.12),0 11px 15px -7px rgba(0,0,0,0.2);box-shadow:0 24px 38px 3px rgba(0,0,0,0.14),0 9px 46px 8px rgba(0,0,0,0.12),0 11px 15px -7px rgba(0,0,0,0.2)}.hoverable{-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s}.hoverable:hover{-webkit-box-shadow:0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);box-shadow:0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)}.divider{height:1px;overflow:hidden;background-color:#e0e0e0}blockquote{margin:20px 0;padding-left:1.5rem;border-left:5px solid #ee6e73}i{line-height:inherit}i.left{float:left;margin-right:15px}i.right{float:right;margin-left:15px}i.tiny{font-size:1rem}i.small{font-size:2rem}i.medium{font-size:4rem}i.large{font-size:6rem}img.responsive-img,video.responsive-video{max-width:100%;height:auto}.pagination li{display:inline-block;border-radius:2px;text-align:center;vertical-align:top;height:30px}.pagination li a{color:#444;display:inline-block;font-size:1.2rem;padding:0 10px;line-height:30px}.pagination li.active a{color:#fff}.pagination li.active{background-color:#ee6e73}.pagination li.disabled a{cursor:default;color:#999}.pagination li i{font-size:2rem}.pagination li.pages ul li{display:inline-block;float:none}@media only screen and (max-width: 992px){.pagination{width:100%}.pagination li.prev,.pagination li.next{width:10%}.pagination li.pages{width:80%;overflow:hidden;white-space:nowrap}}.breadcrumb{font-size:18px;color:rgba(255,255,255,0.7)}.breadcrumb i,.breadcrumb [class^="mdi-"],.breadcrumb [class*="mdi-"],.breadcrumb i.material-icons{display:inline-block;float:left;font-size:24px}.breadcrumb:before{content:'\E5CC';color:rgba(255,255,255,0.7);vertical-align:top;display:inline-block;font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:25px;margin:0 10px 0 8px;-webkit-font-smoothing:antialiased}.breadcrumb:first-child:before{display:none}.breadcrumb:last-child{color:#fff}.parallax-container{position:relative;overflow:hidden;height:500px}.parallax-container .parallax{position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1}.parallax-container .parallax img{opacity:0;position:absolute;left:50%;bottom:0;min-width:100%;min-height:100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pin-top,.pin-bottom{position:relative}.pinned{position:fixed !important}ul.staggered-list li{opacity:0}.fade-in{opacity:0;-webkit-transform-origin:0 50%;transform-origin:0 50%}@media only screen and (max-width: 600px){.hide-on-small-only,.hide-on-small-and-down{display:none !important}}@media only screen and (max-width: 992px){.hide-on-med-and-down{display:none !important}}@media only screen and (min-width: 601px){.hide-on-med-and-up{display:none !important}}@media only screen and (min-width: 600px) and (max-width: 992px){.hide-on-med-only{display:none !important}}@media only screen and (min-width: 993px){.hide-on-large-only{display:none !important}}@media only screen and (min-width: 1201px){.hide-on-extra-large-only{display:none !important}}@media only screen and (min-width: 1201px){.show-on-extra-large{display:block !important}}@media only screen and (min-width: 993px){.show-on-large{display:block !important}}@media only screen and (min-width: 600px) and (max-width: 992px){.show-on-medium{display:block !important}}@media only screen and (max-width: 600px){.show-on-small{display:block !important}}@media only screen and (min-width: 601px){.show-on-medium-and-up{display:block !important}}@media only screen and (max-width: 992px){.show-on-medium-and-down{display:block !important}}@media only screen and (max-width: 600px){.center-on-small-only{text-align:center}}.page-footer{padding-top:20px;color:#fff;background-color:#ee6e73}.page-footer .footer-copyright{overflow:hidden;min-height:50px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:10px 0px;color:rgba(255,255,255,0.8);background-color:rgba(51,51,51,0.08)}table,th,td{border:none}table{width:100%;display:table;border-collapse:collapse;border-spacing:0}table.striped tr{border-bottom:none}table.striped>tbody>tr:nth-child(odd){background-color:rgba(242,242,242,0.5)}table.striped>tbody>tr>td{border-radius:0}table.highlight>tbody>tr{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}table.highlight>tbody>tr:hover{background-color:rgba(242,242,242,0.5)}table.centered thead tr th,table.centered tbody tr td{text-align:center}
|
7 |
-
/* tr{border-bottom:1px solid rgba(0,0,0,0.12)} */
|
8 |
-
td,th{padding:15px 5px;display:table-cell;text-align:left;vertical-align:middle;border-radius:2px}@media only screen and (max-width: 992px){table.responsive-table{width:100%;border-collapse:collapse;border-spacing:0;display:block;position:relative}table.responsive-table td:empty:before{content:'\00a0'}table.responsive-table th,table.responsive-table td{margin:0;vertical-align:top}table.responsive-table th{text-align:left}table.responsive-table thead{display:block;float:left}table.responsive-table thead tr{display:block;padding:0 10px 0 0}table.responsive-table thead tr th::before{content:"\00a0"}table.responsive-table tbody{display:block;width:auto;position:relative;overflow-x:auto;white-space:nowrap}table.responsive-table tbody tr{display:inline-block;vertical-align:top}table.responsive-table th{display:block;text-align:right}table.responsive-table td{display:block;min-height:1.25em;text-align:left}table.responsive-table tr{border-bottom:none;padding:0 10px}table.responsive-table thead{border:0;border-right:1px solid rgba(0,0,0,0.12)}}.collection{margin:.5rem 0 1rem 0;border:1px solid #e0e0e0;border-radius:2px;overflow:hidden;position:relative}.collection .collection-item{background-color:#fff;line-height:1.5rem;padding:10px 20px;margin:0;border-bottom:1px solid #e0e0e0}.collection .collection-item.avatar{min-height:84px;padding-left:72px;position:relative}.collection .collection-item.avatar:not(.circle-clipper)>.circle,.collection .collection-item.avatar :not(.circle-clipper)>.circle{position:absolute;width:42px;height:42px;overflow:hidden;left:15px;display:inline-block;vertical-align:middle}.collection .collection-item.avatar i.circle{font-size:18px;line-height:42px;color:#fff;background-color:#999;text-align:center}.collection .collection-item.avatar .title{font-size:16px}.collection .collection-item.avatar p{margin:0}.collection .collection-item.avatar .secondary-content{position:absolute;top:16px;right:16px}.collection .collection-item:last-child{border-bottom:none}.collection .collection-item.active{background-color:#26a69a;color:#eafaf9}.collection .collection-item.active .secondary-content{color:#fff}.collection a.collection-item{display:block;-webkit-transition:.25s;transition:.25s;color:#26a69a}.collection a.collection-item:not(.active):hover{background-color:#ddd}.collection.with-header .collection-header{background-color:#fff;border-bottom:1px solid #e0e0e0;padding:10px 20px}.collection.with-header .collection-item{padding-left:30px}.collection.with-header .collection-item.avatar{padding-left:72px}.secondary-content{float:right;color:#26a69a}.collapsible .collection{margin:0;border:none}.video-container{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.video-container iframe,.video-container object,.video-container embed{position:absolute;top:0;left:0;width:100%;height:100%}.progress{position:relative;height:4px;display:block;width:100%;background-color:#acece6;border-radius:2px;margin:.5rem 0 1rem 0;overflow:hidden}.progress .determinate{position:absolute;top:0;left:0;bottom:0;background-color:#26a69a;-webkit-transition:width .3s linear;transition:width .3s linear}.progress .indeterminate{background-color:#26a69a}.progress .indeterminate:before{content:'';position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left, right;-webkit-animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.progress .indeterminate:after{content:'';position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left, right;-webkit-animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}@-webkit-keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@-webkit-keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}.hide{display:none !important}.left-align{text-align:left}.right-align{text-align:right}.center,.center-align{text-align:center}.left{float:left !important}.right{float:right !important}.no-select,input[type=range],input[type=range]+.thumb{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.circle{border-radius:50%}.center-block{display:block;margin-left:auto;margin-right:auto}.truncate{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.no-padding{padding:0 !important}span.badge{min-width:3rem;padding:0 6px;margin-left:14px;text-align:center;font-size:1rem;line-height:22px;height:22px;color:#757575;float:right;-webkit-box-sizing:border-box;box-sizing:border-box}span.badge.new{font-weight:300;font-size:0.8rem;color:#fff;background-color:#26a69a;border-radius:2px}span.badge.new:after{content:" new"}span.badge[data-badge-caption]::after{content:" " attr(data-badge-caption)}nav ul a span.badge{display:inline-block;float:none;margin-left:4px;line-height:22px;height:22px;-webkit-font-smoothing:auto}.collection-item span.badge{margin-top:calc(.75rem - 11px)}.collapsible span.badge{margin-left:auto}.sidenav span.badge{margin-top:calc(24px - 11px)}table span.badge{display:inline-block;float:none;margin-left:auto}.material-icons{text-rendering:optimizeLegibility;-webkit-font-feature-settings:'liga';-moz-font-feature-settings:'liga';font-feature-settings:'liga'}.container{margin:0 auto;max-width:1280px;width:90%}@media only screen and (min-width: 601px){.container{width:85%}}@media only screen and (min-width: 993px){.container{width:70%}}.col .row{margin-left:-.75rem;margin-right:-.75rem}.section{padding-top:1rem;padding-bottom:1rem}.section.no-pad{padding:0}.section.no-pad-bot{padding-bottom:0}.section.no-pad-top{padding-top:0}.row{margin-left:auto;margin-right:auto;margin-bottom:20px}.row:after{content:"";display:table;clear:both}.row .col{float:left;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .75rem;min-height:1px}.row .col[class*="push-"],.row .col[class*="pull-"]{position:relative}.row .col.s1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.s4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.s7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.s10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-s1{margin-left:8.3333333333%}.row .col.pull-s1{right:8.3333333333%}.row .col.push-s1{left:8.3333333333%}.row .col.offset-s2{margin-left:16.6666666667%}.row .col.pull-s2{right:16.6666666667%}.row .col.push-s2{left:16.6666666667%}.row .col.offset-s3{margin-left:25%}.row .col.pull-s3{right:25%}.row .col.push-s3{left:25%}.row .col.offset-s4{margin-left:33.3333333333%}.row .col.pull-s4{right:33.3333333333%}.row .col.push-s4{left:33.3333333333%}.row .col.offset-s5{margin-left:41.6666666667%}.row .col.pull-s5{right:41.6666666667%}.row .col.push-s5{left:41.6666666667%}.row .col.offset-s6{margin-left:50%}.row .col.pull-s6{right:50%}.row .col.push-s6{left:50%}.row .col.offset-s7{margin-left:58.3333333333%}.row .col.pull-s7{right:58.3333333333%}.row .col.push-s7{left:58.3333333333%}.row .col.offset-s8{margin-left:66.6666666667%}.row .col.pull-s8{right:66.6666666667%}.row .col.push-s8{left:66.6666666667%}.row .col.offset-s9{margin-left:75%}.row .col.pull-s9{right:75%}.row .col.push-s9{left:75%}.row .col.offset-s10{margin-left:83.3333333333%}.row .col.pull-s10{right:83.3333333333%}.row .col.push-s10{left:83.3333333333%}.row .col.offset-s11{margin-left:91.6666666667%}.row .col.pull-s11{right:91.6666666667%}.row .col.push-s11{left:91.6666666667%}.row .col.offset-s12{margin-left:100%}.row .col.pull-s12{right:100%}.row .col.push-s12{left:100%}@media only screen and (min-width: 601px){.row .col.m1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.m4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.m7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.m10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-m1{margin-left:8.3333333333%}.row .col.pull-m1{right:8.3333333333%}.row .col.push-m1{left:8.3333333333%}.row .col.offset-m2{margin-left:16.6666666667%}.row .col.pull-m2{right:16.6666666667%}.row .col.push-m2{left:16.6666666667%}.row .col.offset-m3{margin-left:25%}.row .col.pull-m3{right:25%}.row .col.push-m3{left:25%}.row .col.offset-m4{margin-left:33.3333333333%}.row .col.pull-m4{right:33.3333333333%}.row .col.push-m4{left:33.3333333333%}.row .col.offset-m5{margin-left:41.6666666667%}.row .col.pull-m5{right:41.6666666667%}.row .col.push-m5{left:41.6666666667%}.row .col.offset-m6{margin-left:50%}.row .col.pull-m6{right:50%}.row .col.push-m6{left:50%}.row .col.offset-m7{margin-left:58.3333333333%}.row .col.pull-m7{right:58.3333333333%}.row .col.push-m7{left:58.3333333333%}.row .col.offset-m8{margin-left:66.6666666667%}.row .col.pull-m8{right:66.6666666667%}.row .col.push-m8{left:66.6666666667%}.row .col.offset-m9{margin-left:75%}.row .col.pull-m9{right:75%}.row .col.push-m9{left:75%}.row .col.offset-m10{margin-left:83.3333333333%}.row .col.pull-m10{right:83.3333333333%}.row .col.push-m10{left:83.3333333333%}.row .col.offset-m11{margin-left:91.6666666667%}.row .col.pull-m11{right:91.6666666667%}.row .col.push-m11{left:91.6666666667%}.row .col.offset-m12{margin-left:100%}.row .col.pull-m12{right:100%}.row .col.push-m12{left:100%}}@media only screen and (min-width: 993px){.row .col.l1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.l4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.l7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.l10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-l1{margin-left:8.3333333333%}.row .col.pull-l1{right:8.3333333333%}.row .col.push-l1{left:8.3333333333%}.row .col.offset-l2{margin-left:16.6666666667%}.row .col.pull-l2{right:16.6666666667%}.row .col.push-l2{left:16.6666666667%}.row .col.offset-l3{margin-left:25%}.row .col.pull-l3{right:25%}.row .col.push-l3{left:25%}.row .col.offset-l4{margin-left:33.3333333333%}.row .col.pull-l4{right:33.3333333333%}.row .col.push-l4{left:33.3333333333%}.row .col.offset-l5{margin-left:41.6666666667%}.row .col.pull-l5{right:41.6666666667%}.row .col.push-l5{left:41.6666666667%}.row .col.offset-l6{margin-left:50%}.row .col.pull-l6{right:50%}.row .col.push-l6{left:50%}.row .col.offset-l7{margin-left:58.3333333333%}.row .col.pull-l7{right:58.3333333333%}.row .col.push-l7{left:58.3333333333%}.row .col.offset-l8{margin-left:66.6666666667%}.row .col.pull-l8{right:66.6666666667%}.row .col.push-l8{left:66.6666666667%}.row .col.offset-l9{margin-left:75%}.row .col.pull-l9{right:75%}.row .col.push-l9{left:75%}.row .col.offset-l10{margin-left:83.3333333333%}.row .col.pull-l10{right:83.3333333333%}.row .col.push-l10{left:83.3333333333%}.row .col.offset-l11{margin-left:91.6666666667%}.row .col.pull-l11{right:91.6666666667%}.row .col.push-l11{left:91.6666666667%}.row .col.offset-l12{margin-left:100%}.row .col.pull-l12{right:100%}.row .col.push-l12{left:100%}}@media only screen and (min-width: 1201px){.row .col.xl1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.xl4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.xl7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.xl10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-xl1{margin-left:8.3333333333%}.row .col.pull-xl1{right:8.3333333333%}.row .col.push-xl1{left:8.3333333333%}.row .col.offset-xl2{margin-left:16.6666666667%}.row .col.pull-xl2{right:16.6666666667%}.row .col.push-xl2{left:16.6666666667%}.row .col.offset-xl3{margin-left:25%}.row .col.pull-xl3{right:25%}.row .col.push-xl3{left:25%}.row .col.offset-xl4{margin-left:33.3333333333%}.row .col.pull-xl4{right:33.3333333333%}.row .col.push-xl4{left:33.3333333333%}.row .col.offset-xl5{margin-left:41.6666666667%}.row .col.pull-xl5{right:41.6666666667%}.row .col.push-xl5{left:41.6666666667%}.row .col.offset-xl6{margin-left:50%}.row .col.pull-xl6{right:50%}.row .col.push-xl6{left:50%}.row .col.offset-xl7{margin-left:58.3333333333%}.row .col.pull-xl7{right:58.3333333333%}.row .col.push-xl7{left:58.3333333333%}.row .col.offset-xl8{margin-left:66.6666666667%}.row .col.pull-xl8{right:66.6666666667%}.row .col.push-xl8{left:66.6666666667%}.row .col.offset-xl9{margin-left:75%}.row .col.pull-xl9{right:75%}.row .col.push-xl9{left:75%}.row .col.offset-xl10{margin-left:83.3333333333%}.row .col.pull-xl10{right:83.3333333333%}.row .col.push-xl10{left:83.3333333333%}.row .col.offset-xl11{margin-left:91.6666666667%}.row .col.pull-xl11{right:91.6666666667%}.row .col.push-xl11{left:91.6666666667%}.row .col.offset-xl12{margin-left:100%}.row .col.pull-xl12{right:100%}.row .col.push-xl12{left:100%}}nav{color:#fff;background-color:#ee6e73;width:100%;height:56px;line-height:56px}nav.nav-extended{height:auto}nav.nav-extended .nav-wrapper{min-height:56px;height:auto}nav.nav-extended .nav-content{position:relative;line-height:normal}nav a{color:#fff}nav i,nav [class^="mdi-"],nav [class*="mdi-"],nav i.material-icons{display:block;font-size:24px;height:56px;line-height:56px}nav .nav-wrapper{position:relative;height:100%}@media only screen and (min-width: 993px){nav a.sidenav-trigger{display:none}}nav .sidenav-trigger{float:left;position:relative;z-index:1;height:56px;margin:0 18px}nav .sidenav-trigger i{height:56px;line-height:56px}nav .brand-logo{position:absolute;color:#fff;display:inline-block;font-size:2.1rem;padding:0}nav .brand-logo.center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}@media only screen and (max-width: 992px){nav .brand-logo{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}nav .brand-logo.left,nav .brand-logo.right{padding:0;-webkit-transform:none;transform:none}nav .brand-logo.left{left:0.5rem}nav .brand-logo.right{right:0.5rem;left:auto}}nav .brand-logo.right{right:0.5rem;padding:0}nav .brand-logo i,nav .brand-logo [class^="mdi-"],nav .brand-logo [class*="mdi-"],nav .brand-logo i.material-icons{float:left;margin-right:15px}nav .nav-title{display:inline-block;font-size:32px;padding:28px 0}nav ul{margin:0}nav ul li{-webkit-transition:background-color .3s;transition:background-color .3s;float:left;padding:0}nav ul li.active{background-color:rgba(0,0,0,0.1)}nav ul a{-webkit-transition:background-color .3s;transition:background-color .3s;font-size:1rem;color:#fff;display:block;padding:0 15px;cursor:pointer}nav ul a.btn,nav ul a.btn-large,nav ul a.btn-small,nav ul a.btn-large,nav ul a.btn-flat,nav ul a.btn-floating{margin-top:-2px;margin-left:15px;margin-right:15px}nav ul a.btn>.material-icons,nav ul a.btn-large>.material-icons,nav ul a.btn-small>.material-icons,nav ul a.btn-large>.material-icons,nav ul a.btn-flat>.material-icons,nav ul a.btn-floating>.material-icons{height:inherit;line-height:inherit}nav ul a:hover{background-color:rgba(0,0,0,0.1)}nav ul.left{float:left}nav form{height:100%}nav .input-field{margin:0;height:100%}nav .input-field input{height:100%;font-size:1.2rem;border:none;padding-left:2rem}nav .input-field input:focus,nav .input-field input[type=text]:valid,nav .input-field input[type=password]:valid,nav .input-field input[type=email]:valid,nav .input-field input[type=url]:valid,nav .input-field input[type=date]:valid{border:none;-webkit-box-shadow:none;box-shadow:none}nav .input-field label{top:0;left:0}nav .input-field label i{color:rgba(255,255,255,0.7);-webkit-transition:color .3s;transition:color .3s}nav .input-field label.active i{color:#fff}.navbar-fixed{position:relative;height:56px;z-index:997}.navbar-fixed nav{position:fixed}@media only screen and (min-width: 601px){nav.nav-extended .nav-wrapper{min-height:64px}nav,nav .nav-wrapper i,nav a.sidenav-trigger,nav a.sidenav-trigger i{height:64px;line-height:64px}.navbar-fixed{height:64px}}a{text-decoration:none}html{line-height:1.5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:normal;color:rgba(0,0,0,0.87)}@media only screen and (min-width: 0){html{font-size:14px}}@media only screen and (min-width: 992px){html{font-size:14.5px}}@media only screen and (min-width: 1200px){html{font-size:15px}}h1,h2,h3,h4,h5,h6{font-weight:400;line-height:1.3}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{font-weight:inherit}h1{font-size:4.2rem;line-height:110%;margin:2.8rem 0 1.68rem 0}h2{font-size:3.56rem;line-height:110%;margin:2.3733333333rem 0 1.424rem 0}h3{font-size:2.92rem;line-height:110%;margin:1.9466666667rem 0 1.168rem 0}h4{font-size:2.28rem;line-height:110%;margin:1.52rem 0 .912rem 0}h5{font-size:1.64rem;line-height:110%;margin:1.0933333333rem 0 .656rem 0}h6{font-size:1.15rem;line-height:110%;margin:.7666666667rem 0 .46rem 0}em{font-style:italic}strong{font-weight:500}small{font-size:75%}.light{font-weight:300}.thin{font-weight:200}@media only screen and (min-width: 360px){.flow-text{font-size:1.2rem}}@media only screen and (min-width: 390px){.flow-text{font-size:1.224rem}}@media only screen and (min-width: 420px){.flow-text{font-size:1.248rem}}@media only screen and (min-width: 450px){.flow-text{font-size:1.272rem}}@media only screen and (min-width: 480px){.flow-text{font-size:1.296rem}}@media only screen and (min-width: 510px){.flow-text{font-size:1.32rem}}@media only screen and (min-width: 540px){.flow-text{font-size:1.344rem}}@media only screen and (min-width: 570px){.flow-text{font-size:1.368rem}}@media only screen and (min-width: 600px){.flow-text{font-size:1.392rem}}@media only screen and (min-width: 630px){.flow-text{font-size:1.416rem}}@media only screen and (min-width: 660px){.flow-text{font-size:1.44rem}}@media only screen and (min-width: 690px){.flow-text{font-size:1.464rem}}@media only screen and (min-width: 720px){.flow-text{font-size:1.488rem}}@media only screen and (min-width: 750px){.flow-text{font-size:1.512rem}}@media only screen and (min-width: 780px){.flow-text{font-size:1.536rem}}@media only screen and (min-width: 810px){.flow-text{font-size:1.56rem}}@media only screen and (min-width: 840px){.flow-text{font-size:1.584rem}}@media only screen and (min-width: 870px){.flow-text{font-size:1.608rem}}@media only screen and (min-width: 900px){.flow-text{font-size:1.632rem}}@media only screen and (min-width: 930px){.flow-text{font-size:1.656rem}}@media only screen and (min-width: 960px){.flow-text{font-size:1.68rem}}@media only screen and (max-width: 360px){.flow-text{font-size:1.2rem}}.scale-transition{-webkit-transition:-webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:-webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63), -webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important}.scale-transition.scale-out{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .2s !important;transition:-webkit-transform .2s !important;transition:transform .2s !important;transition:transform .2s, -webkit-transform .2s !important}.scale-transition.scale-in{-webkit-transform:scale(1);transform:scale(1)}.card-panel{-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s;padding:24px;margin:.5rem 0 1rem 0;border-radius:2px;background-color:#fff}.card{position:relative;margin:.5rem 0 1rem 0;background-color:#fff;-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s;border-radius:2px}.card .card-title{font-size:24px;font-weight:300}.card .card-title.activator{cursor:pointer}.card.small,.card.medium,.card.large{position:relative}.card.small .card-image,.card.medium .card-image,.card.large .card-image{max-height:60%;overflow:hidden}.card.small .card-image+.card-content,.card.medium .card-image+.card-content,.card.large .card-image+.card-content{max-height:40%}.card.small .card-content,.card.medium .card-content,.card.large .card-content{max-height:100%;overflow:hidden}.card.small .card-action,.card.medium .card-action,.card.large .card-action{position:absolute;bottom:0;left:0;right:0}.card.small{height:300px}.card.medium{height:400px}.card.large{height:500px}.card.horizontal{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.card.horizontal.small .card-image,.card.horizontal.medium .card-image,.card.horizontal.large .card-image{height:100%;max-height:none;overflow:visible}.card.horizontal.small .card-image img,.card.horizontal.medium .card-image img,.card.horizontal.large .card-image img{height:100%}.card.horizontal .card-image{max-width:50%}.card.horizontal .card-image img{border-radius:2px 0 0 2px;max-width:100%;width:auto}.card.horizontal .card-stacked{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.card.horizontal .card-stacked .card-content{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.card.sticky-action .card-action{z-index:2}.card.sticky-action .card-reveal{z-index:1;padding-bottom:64px}.card .card-image{position:relative}.card .card-image img{display:block;border-radius:2px 2px 0 0;position:relative;left:0;right:0;top:0;bottom:0;width:100%}.card .card-image .card-title{color:#fff;position:absolute;bottom:0;left:0;max-width:100%;padding:24px}.card .card-content{padding:24px;border-radius:0 0 2px 2px}.card .card-content p{margin:0}.card .card-content .card-title{display:block;line-height:32px;margin-bottom:8px}.card .card-content .card-title i{line-height:32px}.card .card-action{background-color:inherit;border-top:1px solid rgba(160,160,160,0.2);position:relative;padding:16px 24px}.card .card-action:last-child{border-radius:0 0 2px 2px}.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating){color:#ffab40;margin-right:24px;-webkit-transition:color .3s ease;transition:color .3s ease;text-transform:uppercase}.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating):hover{color:#ffd8a6}.card .card-reveal{padding:24px;position:absolute;background-color:#fff;width:100%;overflow-y:auto;left:0;top:100%;height:100%;z-index:3;display:none}.card .card-reveal .card-title{cursor:pointer;display:block}#toast-container{display:block;position:fixed;z-index:10000}@media only screen and (max-width: 600px){#toast-container{min-width:100%;bottom:0%}}@media only screen and (min-width: 601px) and (max-width: 992px){#toast-container{left:5%;bottom:7%;max-width:90%}}@media only screen and (min-width: 993px){#toast-container{top:10%;right:7%;max-width:86%}}.toast{border-radius:2px;top:35px;width:auto;margin-top:10px;position:relative;max-width:100%;height:auto;min-height:48px;line-height:1.5em;background-color:#323232;padding:10px 25px;font-size:1.1rem;font-weight:300;color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;cursor:default}.toast .toast-action{color:#eeff41;font-weight:500;margin-right:-25px;margin-left:3rem}.toast.rounded{border-radius:24px}@media only screen and (max-width: 600px){.toast{width:100%;border-radius:0}}.tabs{position:relative;overflow-x:auto;overflow-y:hidden;height:48px;width:100%;background-color:#fff;margin:0 auto;white-space:nowrap}.tabs.tabs-transparent{background-color:transparent}.tabs.tabs-transparent .tab a,.tabs.tabs-transparent .tab.disabled a,.tabs.tabs-transparent .tab.disabled a:hover{color:rgba(255,255,255,0.7)}.tabs.tabs-transparent .tab a:hover,.tabs.tabs-transparent .tab a.active{color:#fff}.tabs.tabs-transparent .indicator{background-color:#fff}.tabs.tabs-fixed-width{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.tabs.tabs-fixed-width .tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.tabs .tab{display:inline-block;text-align:center;line-height:48px;height:48px;padding:0;margin:0;text-transform:uppercase}.tabs .tab a{color:rgba(238,110,115,0.7);display:block;width:100%;height:100%;padding:0 24px;font-size:14px;text-overflow:ellipsis;overflow:hidden;-webkit-transition:color .28s ease, background-color .28s ease;transition:color .28s ease, background-color .28s ease}.tabs .tab a:focus,.tabs .tab a:focus.active{background-color:rgba(246,178,181,0.2);outline:none}.tabs .tab a:hover,.tabs .tab a.active{background-color:transparent;color:#ee6e73}.tabs .tab.disabled a,.tabs .tab.disabled a:hover{color:rgba(238,110,115,0.4);cursor:default}.tabs .indicator{position:absolute;bottom:0;height:2px;background-color:#f6b2b5;will-change:left, right}@media only screen and (max-width: 992px){.tabs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.tabs .tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.tabs .tab a{padding:0 12px}}.material-tooltip{padding:10px 8px;font-size:1rem;z-index:2000;background-color:transparent;border-radius:2px;color:#fff;min-height:36px;line-height:120%;opacity:0;position:absolute;text-align:center;max-width:calc(100% - 4px);overflow:hidden;left:0;top:0;pointer-events:none;visibility:hidden;background-color:#323232}.backdrop{position:absolute;opacity:0;height:7px;width:14px;border-radius:0 0 50% 50%;background-color:#323232;z-index:-1;-webkit-transform-origin:50% 0%;transform-origin:50% 0%;visibility:hidden}.btn,.btn-large,.btn-small,.btn-flat{border:none;border-radius:2px;display:inline-block;height:36px;line-height:36px;padding:0 16px;text-transform:uppercase;vertical-align:middle;-webkit-tap-highlight-color:transparent}.btn.disabled,.disabled.btn-large,.disabled.btn-small,.btn-floating.disabled,.btn-large.disabled,.btn-small.disabled,.btn-flat.disabled,.btn:disabled,.btn-large:disabled,.btn-small:disabled,.btn-floating:disabled,.btn-large:disabled,.btn-small:disabled,.btn-flat:disabled,.btn[disabled],.btn-large[disabled],.btn-small[disabled],.btn-floating[disabled],.btn-large[disabled],.btn-small[disabled],.btn-flat[disabled]{pointer-events:none;background-color:#DFDFDF !important;-webkit-box-shadow:none;box-shadow:none;color:#9F9F9F !important;cursor:default}.btn.disabled:hover,.disabled.btn-large:hover,.disabled.btn-small:hover,.btn-floating.disabled:hover,.btn-large.disabled:hover,.btn-small.disabled:hover,.btn-flat.disabled:hover,.btn:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-floating:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-flat:disabled:hover,.btn[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover,.btn-floating[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover,.btn-flat[disabled]:hover{background-color:#DFDFDF !important;color:#9F9F9F !important}.btn,.btn-large,.btn-small,.btn-floating,.btn-large,.btn-small,.btn-flat{font-size:14px;outline:0}.btn i,.btn-large i,.btn-small i,.btn-floating i,.btn-large i,.btn-small i,.btn-flat i{font-size:1.3rem;line-height:inherit}.btn:focus,.btn-large:focus,.btn-small:focus,.btn-floating:focus{background-color:#1d7d74}.btn,.btn-large,.btn-small{text-decoration:none;color:#fff;background-color:#26a69a;text-align:center;letter-spacing:.5px;-webkit-transition:background-color .2s ease-out;transition:background-color .2s ease-out;cursor:pointer}.btn:hover,.btn-large:hover,.btn-small:hover{background-color:#2bbbad}.btn-floating{display:inline-block;color:#fff;position:relative;overflow:hidden;z-index:1;width:40px;height:40px;line-height:40px;padding:0;background-color:#26a69a;border-radius:50%;-webkit-transition:background-color .3s;transition:background-color .3s;cursor:pointer;vertical-align:middle}.btn-floating:hover{background-color:#26a69a}.btn-floating:before{border-radius:0}.btn-floating.btn-large{width:56px;height:56px;padding:0}.btn-floating.btn-large.halfway-fab{bottom:-28px}.btn-floating.btn-large i{line-height:56px}.btn-floating.btn-small{width:32.4px;height:32.4px}.btn-floating.btn-small.halfway-fab{bottom:-16.2px}.btn-floating.btn-small i{line-height:32.4px}.btn-floating.halfway-fab{position:absolute;right:24px;bottom:-20px}.btn-floating.halfway-fab.left{right:auto;left:24px}.btn-floating i{width:inherit;display:inline-block;text-align:center;color:#fff;font-size:1.6rem;line-height:40px}button.btn-floating{border:none}.fixed-action-btn{position:fixed;right:23px;bottom:23px;padding-top:15px;margin-bottom:0;z-index:997}.fixed-action-btn.active ul{visibility:visible}.fixed-action-btn.direction-left,.fixed-action-btn.direction-right{padding:0 0 0 15px}.fixed-action-btn.direction-left ul,.fixed-action-btn.direction-right ul{text-align:right;right:64px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:100%;left:auto;width:500px}.fixed-action-btn.direction-left ul li,.fixed-action-btn.direction-right ul li{display:inline-block;margin:7.5px 15px 0 0}.fixed-action-btn.direction-right{padding:0 15px 0 0}.fixed-action-btn.direction-right ul{text-align:left;direction:rtl;left:64px;right:auto}.fixed-action-btn.direction-right ul li{margin:7.5px 0 0 15px}.fixed-action-btn.direction-bottom{padding:0 0 15px 0}.fixed-action-btn.direction-bottom ul{top:64px;bottom:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.fixed-action-btn.direction-bottom ul li{margin:15px 0 0 0}.fixed-action-btn.toolbar{padding:0;height:56px}.fixed-action-btn.toolbar.active>a i{opacity:0}.fixed-action-btn.toolbar ul{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;top:0;bottom:0;z-index:1}.fixed-action-btn.toolbar ul li{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:inline-block;margin:0;height:100%;-webkit-transition:none;transition:none}.fixed-action-btn.toolbar ul li a{display:block;overflow:hidden;position:relative;width:100%;height:100%;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff;line-height:56px;z-index:1}.fixed-action-btn.toolbar ul li a i{line-height:inherit}.fixed-action-btn ul{left:0;right:0;text-align:center;position:absolute;bottom:64px;margin:0;visibility:hidden}.fixed-action-btn ul li{margin-bottom:15px}.fixed-action-btn ul a.btn-floating{opacity:0}.fixed-action-btn .fab-backdrop{position:absolute;top:0;left:0;z-index:-1;width:40px;height:40px;background-color:#26a69a;border-radius:50%;-webkit-transform:scale(0);transform:scale(0)}.btn-flat{-webkit-box-shadow:none;box-shadow:none;background-color:transparent;color:#343434;cursor:pointer;-webkit-transition:background-color .2s;transition:background-color .2s}.btn-flat:focus,.btn-flat:hover{-webkit-box-shadow:none;box-shadow:none}.btn-flat:focus{background-color:rgba(0,0,0,0.1)}.btn-flat.disabled,.btn-flat.btn-flat[disabled]{background-color:transparent !important;color:#b3b2b2 !important;cursor:default}.btn-large{height:54px;line-height:54px;font-size:15px;padding:0 28px}.btn-large i{font-size:1.6rem}.btn-small{height:32.4px;line-height:32.4px;font-size:13px}.btn-small i{font-size:1.2rem}.btn-block{display:block}.dropdown-content{background-color:#fff;margin:0;display:none;min-width:100px;overflow-y:auto;opacity:0;position:absolute;left:0;top:0;z-index:9999;-webkit-transform-origin:0 0;transform-origin:0 0}.dropdown-content:focus{outline:0}.dropdown-content li{clear:both;color:rgba(0,0,0,0.87);cursor:pointer;min-height:50px;line-height:1.5rem;width:100%;text-align:left}.dropdown-content li:hover,.dropdown-content li.active{background-color:#eee}.dropdown-content li:focus{outline:none}.dropdown-content li.divider{min-height:0;height:1px}.dropdown-content li>a,.dropdown-content li>span{font-size:16px;color:#26a69a;display:block;line-height:22px;padding:14px 16px}.dropdown-content li>span>label{top:1px;left:0;height:18px}.dropdown-content li>a>i{height:inherit;line-height:inherit;float:left;margin:0 24px 0 0;width:24px}body.keyboard-focused .dropdown-content li:focus{background-color:#dadada}.input-field.col .dropdown-content [type="checkbox"]+label{top:1px;left:0;height:18px;-webkit-transform:none;transform:none}.dropdown-trigger{cursor:pointer}/*!
|
9 |
-
* Waves v0.6.0
|
10 |
-
* http://fian.my.id/Waves
|
11 |
-
*
|
12 |
-
* Copyright 2014 Alfiana E. Sibuea and other contributors
|
13 |
-
* Released under the MIT license
|
14 |
-
* https://github.com/fians/Waves/blob/master/LICENSE
|
15 |
-
*/.waves-effect{position:relative;cursor:pointer;display:inline-block;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle;z-index:1;-webkit-transition:.3s ease-out;transition:.3s ease-out}.waves-effect .waves-ripple{position:absolute;border-radius:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;opacity:0;background:rgba(0,0,0,0.2);-webkit-transition:all 0.7s ease-out;transition:all 0.7s ease-out;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;-webkit-transform:scale(0);transform:scale(0);pointer-events:none}.waves-effect.waves-light .waves-ripple{background-color:rgba(255,255,255,0.45)}.waves-effect.waves-red .waves-ripple{background-color:rgba(244,67,54,0.7)}.waves-effect.waves-yellow .waves-ripple{background-color:rgba(255,235,59,0.7)}.waves-effect.waves-orange .waves-ripple{background-color:rgba(255,152,0,0.7)}.waves-effect.waves-purple .waves-ripple{background-color:rgba(156,39,176,0.7)}.waves-effect.waves-green .waves-ripple{background-color:rgba(76,175,80,0.7)}.waves-effect.waves-teal .waves-ripple{background-color:rgba(0,150,136,0.7)}.waves-effect input[type="button"],.waves-effect input[type="reset"],.waves-effect input[type="submit"]{border:0;font-style:normal;font-size:inherit;text-transform:inherit;background:none}.waves-effect img{position:relative;z-index:-1}.waves-notransition{-webkit-transition:none !important;transition:none !important}.waves-circle{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-mask-image:-webkit-radial-gradient(circle, white 100%, black 100%)}.waves-input-wrapper{border-radius:0.2em;vertical-align:bottom}.waves-input-wrapper .waves-button-input{position:relative;top:0;left:0;z-index:1}.waves-circle{text-align:center;width:2.5em;height:2.5em;line-height:2.5em;border-radius:50%;-webkit-mask-image:none}.waves-block{display:block}.waves-effect .waves-ripple{z-index:-1}.modal{display:none;position:fixed;left:0;right:0;background-color:#fafafa;padding:0;max-height:70%;width:55%;margin:auto;overflow-y:auto;border-radius:2px;will-change:top, opacity}.modal:focus{outline:none}@media only screen and (max-width: 992px){.modal{width:80%}}.modal h1,.modal h2,.modal h3,.modal h4{margin-top:0}.modal .modal-content{padding:24px}.modal .modal-close{cursor:pointer}.modal .modal-footer{border-radius:0 0 2px 2px;background-color:#fafafa;padding:4px 6px;height:56px;width:100%;text-align:right}.modal .modal-footer .btn,.modal .modal-footer .btn-large,.modal .modal-footer .btn-small,.modal .modal-footer .btn-flat{margin:6px 0}.modal-overlay{position:fixed;z-index:999;top:-25%;left:0;bottom:0;right:0;height:125%;width:100%;background:#000;display:none;will-change:opacity}.modal.modal-fixed-footer{padding:0;height:70%}.modal.modal-fixed-footer .modal-content{position:absolute;height:calc(100% - 56px);max-height:100%;width:100%;overflow-y:auto}.modal.modal-fixed-footer .modal-footer{border-top:1px solid rgba(0,0,0,0.1);position:absolute;bottom:0}.modal.bottom-sheet{top:auto;bottom:-100%;margin:0;width:100%;max-height:45%;border-radius:0;will-change:bottom, opacity}.collapsible{border-top:1px solid #ddd;border-right:1px solid #ddd;border-left:1px solid #ddd;margin:.5rem 0 1rem 0}.collapsible-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;-webkit-tap-highlight-color:transparent;line-height:1.5;padding:1rem;background-color:#fff;border-bottom:1px solid #ddd}.collapsible-header:focus{outline:0}.collapsible-header i{width:2rem;font-size:1.6rem;display:inline-block;text-align:center;margin-right:1rem}.keyboard-focused .collapsible-header:focus{background-color:#eee}.collapsible-body{display:none;border-bottom:1px solid #ddd;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2rem}.sidenav .collapsible,.sidenav.fixed .collapsible{border:none;-webkit-box-shadow:none;box-shadow:none}.sidenav .collapsible li,.sidenav.fixed .collapsible li{padding:0}.sidenav .collapsible-header,.sidenav.fixed .collapsible-header{background-color:transparent;border:none;line-height:inherit;height:inherit;padding:0 16px}.sidenav .collapsible-header:hover,.sidenav.fixed .collapsible-header:hover{background-color:rgba(0,0,0,0.05)}.sidenav .collapsible-header i,.sidenav.fixed .collapsible-header i{line-height:inherit}.sidenav .collapsible-body,.sidenav.fixed .collapsible-body{border:0;background-color:#fff}.sidenav .collapsible-body li a,.sidenav.fixed .collapsible-body li a{padding:0 23.5px 0 31px}.collapsible.popout{border:none;-webkit-box-shadow:none;box-shadow:none}.collapsible.popout>li{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);margin:0 24px;-webkit-transition:margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);transition:margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.collapsible.popout>li.active{-webkit-box-shadow:0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);box-shadow:0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);margin:16px 0}.chip{display:inline-block;height:32px;font-size:13px;font-weight:500;color:rgba(0,0,0,0.6);line-height:32px;padding:0 12px;border-radius:16px;background-color:#e4e4e4;margin-bottom:5px;margin-right:5px}.chip:focus{outline:none;background-color:#26a69a;color:#fff}.chip>img{float:left;margin:0 8px 0 -12px;height:32px;width:32px;border-radius:50%}.chip .close{cursor:pointer;float:right;font-size:16px;line-height:32px;padding-left:8px}.chips{border:none;border-bottom:1px solid #9e9e9e;-webkit-box-shadow:none;box-shadow:none;margin:0 0 8px 0;min-height:45px;outline:none;-webkit-transition:all .3s;transition:all .3s}.chips.focus{border-bottom:1px solid #26a69a;-webkit-box-shadow:0 1px 0 0 #26a69a;box-shadow:0 1px 0 0 #26a69a}.chips:hover{cursor:text}.chips .input{background:none;border:0;color:rgba(0,0,0,0.6);display:inline-block;font-size:16px;height:3rem;line-height:32px;outline:0;margin:0;padding:0 !important;width:120px !important}.chips .input:focus{border:0 !important;-webkit-box-shadow:none !important;box-shadow:none !important}.chips .autocomplete-content{margin-top:0;margin-bottom:0}.prefix ~ .chips{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.chips:empty ~ label{font-size:0.8rem;-webkit-transform:translateY(-140%);transform:translateY(-140%)}.materialboxed{display:block;cursor:-webkit-zoom-in;cursor:zoom-in;position:relative;-webkit-transition:opacity .4s;transition:opacity .4s;-webkit-backface-visibility:hidden}.materialboxed:hover:not(.active){opacity:.8}.materialboxed.active{cursor:-webkit-zoom-out;cursor:zoom-out}#materialbox-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#292929;z-index:1000;will-change:opacity}.materialbox-caption{position:fixed;display:none;color:#fff;line-height:50px;bottom:0;left:0;width:100%;text-align:center;padding:0% 15%;height:50px;z-index:1000;-webkit-font-smoothing:antialiased}select:focus{outline:1px solid #c9f3ef}button:focus{outline:none;background-color:#2ab7a9}label{font-size:.8rem;color:#9e9e9e}::-webkit-input-placeholder{color:#d1d1d1}::-moz-placeholder{color:#d1d1d1}:-ms-input-placeholder{color:#d1d1d1}::-ms-input-placeholder{color:#d1d1d1}::placeholder{color:#d1d1d1}input:not([type]),input[type=text]:not(.browser-default),input[type=password]:not(.browser-default),input[type=email]:not(.browser-default),input[type=url]:not(.browser-default),input[type=time]:not(.browser-default),input[type=date]:not(.browser-default),input[type=datetime]:not(.browser-default),input[type=datetime-local]:not(.browser-default),input[type=tel]:not(.browser-default),input[type=number]:not(.browser-default),input[type=search]:not(.browser-default),textarea.materialize-textarea{background-color:transparent;border:none;border-bottom:1px solid #9e9e9e;border-radius:0;outline:none;height:3rem;width:100%;font-size:16px;margin:0 0 8px 0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-transition:border .3s, -webkit-box-shadow .3s;transition:border .3s, -webkit-box-shadow .3s;transition:box-shadow .3s, border .3s;transition:box-shadow .3s, border .3s, -webkit-box-shadow .3s}input:not([type]):disabled,input:not([type])[readonly="readonly"],input[type=text]:not(.browser-default):disabled,input[type=text]:not(.browser-default)[readonly="readonly"],input[type=password]:not(.browser-default):disabled,input[type=password]:not(.browser-default)[readonly="readonly"],input[type=email]:not(.browser-default):disabled,input[type=email]:not(.browser-default)[readonly="readonly"],input[type=url]:not(.browser-default):disabled,input[type=url]:not(.browser-default)[readonly="readonly"],input[type=time]:not(.browser-default):disabled,input[type=time]:not(.browser-default)[readonly="readonly"],input[type=date]:not(.browser-default):disabled,input[type=date]:not(.browser-default)[readonly="readonly"],input[type=datetime]:not(.browser-default):disabled,input[type=datetime]:not(.browser-default)[readonly="readonly"],input[type=datetime-local]:not(.browser-default):disabled,input[type=datetime-local]:not(.browser-default)[readonly="readonly"],input[type=tel]:not(.browser-default):disabled,input[type=tel]:not(.browser-default)[readonly="readonly"],input[type=number]:not(.browser-default):disabled,input[type=number]:not(.browser-default)[readonly="readonly"],input[type=search]:not(.browser-default):disabled,input[type=search]:not(.browser-default)[readonly="readonly"],textarea.materialize-textarea:disabled,textarea.materialize-textarea[readonly="readonly"]{color:rgba(0,0,0,0.42);border-bottom:1px dotted rgba(0,0,0,0.42)}input:not([type]):disabled+label,input:not([type])[readonly="readonly"]+label,input[type=text]:not(.browser-default):disabled+label,input[type=text]:not(.browser-default)[readonly="readonly"]+label,input[type=password]:not(.browser-default):disabled+label,input[type=password]:not(.browser-default)[readonly="readonly"]+label,input[type=email]:not(.browser-default):disabled+label,input[type=email]:not(.browser-default)[readonly="readonly"]+label,input[type=url]:not(.browser-default):disabled+label,input[type=url]:not(.browser-default)[readonly="readonly"]+label,input[type=time]:not(.browser-default):disabled+label,input[type=time]:not(.browser-default)[readonly="readonly"]+label,input[type=date]:not(.browser-default):disabled+label,input[type=date]:not(.browser-default)[readonly="readonly"]+label,input[type=datetime]:not(.browser-default):disabled+label,input[type=datetime]:not(.browser-default)[readonly="readonly"]+label,input[type=datetime-local]:not(.browser-default):disabled+label,input[type=datetime-local]:not(.browser-default)[readonly="readonly"]+label,input[type=tel]:not(.browser-default):disabled+label,input[type=tel]:not(.browser-default)[readonly="readonly"]+label,input[type=number]:not(.browser-default):disabled+label,input[type=number]:not(.browser-default)[readonly="readonly"]+label,input[type=search]:not(.browser-default):disabled+label,input[type=search]:not(.browser-default)[readonly="readonly"]+label,textarea.materialize-textarea:disabled+label,textarea.materialize-textarea[readonly="readonly"]+label{color:rgba(0,0,0,0.42)}input:not([type]):focus:not([readonly]),input[type=text]:not(.browser-default):focus:not([readonly]),input[type=password]:not(.browser-default):focus:not([readonly]),input[type=email]:not(.browser-default):focus:not([readonly]),input[type=url]:not(.browser-default):focus:not([readonly]),input[type=time]:not(.browser-default):focus:not([readonly]),input[type=date]:not(.browser-default):focus:not([readonly]),input[type=datetime]:not(.browser-default):focus:not([readonly]),input[type=datetime-local]:not(.browser-default):focus:not([readonly]),input[type=tel]:not(.browser-default):focus:not([readonly]),input[type=number]:not(.browser-default):focus:not([readonly]),input[type=search]:not(.browser-default):focus:not([readonly]),textarea.materialize-textarea:focus:not([readonly]){border-bottom:1px solid #26a69a;-webkit-box-shadow:0 1px 0 0 #26a69a;box-shadow:0 1px 0 0 #26a69a}input:not([type]):focus:not([readonly])+label,input[type=text]:not(.browser-default):focus:not([readonly])+label,input[type=password]:not(.browser-default):focus:not([readonly])+label,input[type=email]:not(.browser-default):focus:not([readonly])+label,input[type=url]:not(.browser-default):focus:not([readonly])+label,input[type=time]:not(.browser-default):focus:not([readonly])+label,input[type=date]:not(.browser-default):focus:not([readonly])+label,input[type=datetime]:not(.browser-default):focus:not([readonly])+label,input[type=datetime-local]:not(.browser-default):focus:not([readonly])+label,input[type=tel]:not(.browser-default):focus:not([readonly])+label,input[type=number]:not(.browser-default):focus:not([readonly])+label,input[type=search]:not(.browser-default):focus:not([readonly])+label,textarea.materialize-textarea:focus:not([readonly])+label{color:#26a69a}input:not([type]):focus.valid ~ label,input[type=text]:not(.browser-default):focus.valid ~ label,input[type=password]:not(.browser-default):focus.valid ~ label,input[type=email]:not(.browser-default):focus.valid ~ label,input[type=url]:not(.browser-default):focus.valid ~ label,input[type=time]:not(.browser-default):focus.valid ~ label,input[type=date]:not(.browser-default):focus.valid ~ label,input[type=datetime]:not(.browser-default):focus.valid ~ label,input[type=datetime-local]:not(.browser-default):focus.valid ~ label,input[type=tel]:not(.browser-default):focus.valid ~ label,input[type=number]:not(.browser-default):focus.valid ~ label,input[type=search]:not(.browser-default):focus.valid ~ label,textarea.materialize-textarea:focus.valid ~ label{color:#4CAF50}input:not([type]):focus.invalid ~ label,input[type=text]:not(.browser-default):focus.invalid ~ label,input[type=password]:not(.browser-default):focus.invalid ~ label,input[type=email]:not(.browser-default):focus.invalid ~ label,input[type=url]:not(.browser-default):focus.invalid ~ label,input[type=time]:not(.browser-default):focus.invalid ~ label,input[type=date]:not(.browser-default):focus.invalid ~ label,input[type=datetime]:not(.browser-default):focus.invalid ~ label,input[type=datetime-local]:not(.browser-default):focus.invalid ~ label,input[type=tel]:not(.browser-default):focus.invalid ~ label,input[type=number]:not(.browser-default):focus.invalid ~ label,input[type=search]:not(.browser-default):focus.invalid ~ label,textarea.materialize-textarea:focus.invalid ~ label{color:#F44336}input:not([type]).validate+label,input[type=text]:not(.browser-default).validate+label,input[type=password]:not(.browser-default).validate+label,input[type=email]:not(.browser-default).validate+label,input[type=url]:not(.browser-default).validate+label,input[type=time]:not(.browser-default).validate+label,input[type=date]:not(.browser-default).validate+label,input[type=datetime]:not(.browser-default).validate+label,input[type=datetime-local]:not(.browser-default).validate+label,input[type=tel]:not(.browser-default).validate+label,input[type=number]:not(.browser-default).validate+label,input[type=search]:not(.browser-default).validate+label,textarea.materialize-textarea.validate+label{width:100%}input.valid:not([type]),input.valid:not([type]):focus,input.valid[type=text]:not(.browser-default),input.valid[type=text]:not(.browser-default):focus,input.valid[type=password]:not(.browser-default),input.valid[type=password]:not(.browser-default):focus,input.valid[type=email]:not(.browser-default),input.valid[type=email]:not(.browser-default):focus,input.valid[type=url]:not(.browser-default),input.valid[type=url]:not(.browser-default):focus,input.valid[type=time]:not(.browser-default),input.valid[type=time]:not(.browser-default):focus,input.valid[type=date]:not(.browser-default),input.valid[type=date]:not(.browser-default):focus,input.valid[type=datetime]:not(.browser-default),input.valid[type=datetime]:not(.browser-default):focus,input.valid[type=datetime-local]:not(.browser-default),input.valid[type=datetime-local]:not(.browser-default):focus,input.valid[type=tel]:not(.browser-default),input.valid[type=tel]:not(.browser-default):focus,input.valid[type=number]:not(.browser-default),input.valid[type=number]:not(.browser-default):focus,input.valid[type=search]:not(.browser-default),input.valid[type=search]:not(.browser-default):focus,textarea.materialize-textarea.valid,textarea.materialize-textarea.valid:focus,.select-wrapper.valid>input.select-dropdown{border-bottom:1px solid #4CAF50;-webkit-box-shadow:0 1px 0 0 #4CAF50;box-shadow:0 1px 0 0 #4CAF50}input.invalid:not([type]),input.invalid:not([type]):focus,input.invalid[type=text]:not(.browser-default),input.invalid[type=text]:not(.browser-default):focus,input.invalid[type=password]:not(.browser-default),input.invalid[type=password]:not(.browser-default):focus,input.invalid[type=email]:not(.browser-default),input.invalid[type=email]:not(.browser-default):focus,input.invalid[type=url]:not(.browser-default),input.invalid[type=url]:not(.browser-default):focus,input.invalid[type=time]:not(.browser-default),input.invalid[type=time]:not(.browser-default):focus,input.invalid[type=date]:not(.browser-default),input.invalid[type=date]:not(.browser-default):focus,input.invalid[type=datetime]:not(.browser-default),input.invalid[type=datetime]:not(.browser-default):focus,input.invalid[type=datetime-local]:not(.browser-default),input.invalid[type=datetime-local]:not(.browser-default):focus,input.invalid[type=tel]:not(.browser-default),input.invalid[type=tel]:not(.browser-default):focus,input.invalid[type=number]:not(.browser-default),input.invalid[type=number]:not(.browser-default):focus,input.invalid[type=search]:not(.browser-default),input.invalid[type=search]:not(.browser-default):focus,textarea.materialize-textarea.invalid,textarea.materialize-textarea.invalid:focus,.select-wrapper.invalid>input.select-dropdown,.select-wrapper.invalid>input.select-dropdown:focus{border-bottom:1px solid #F44336;-webkit-box-shadow:0 1px 0 0 #F44336;box-shadow:0 1px 0 0 #F44336}input:not([type]).valid ~ .helper-text[data-success],input:not([type]):focus.valid ~ .helper-text[data-success],input:not([type]).invalid ~ .helper-text[data-error],input:not([type]):focus.invalid ~ .helper-text[data-error],input[type=text]:not(.browser-default).valid ~ .helper-text[data-success],input[type=text]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=text]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=text]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=password]:not(.browser-default).valid ~ .helper-text[data-success],input[type=password]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=password]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=password]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=email]:not(.browser-default).valid ~ .helper-text[data-success],input[type=email]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=email]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=email]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=url]:not(.browser-default).valid ~ .helper-text[data-success],input[type=url]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=url]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=url]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=time]:not(.browser-default).valid ~ .helper-text[data-success],input[type=time]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=time]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=time]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=date]:not(.browser-default).valid ~ .helper-text[data-success],input[type=date]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=date]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=date]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=datetime]:not(.browser-default).valid ~ .helper-text[data-success],input[type=datetime]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=datetime]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=datetime-local]:not(.browser-default).valid ~ .helper-text[data-success],input[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=datetime-local]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=tel]:not(.browser-default).valid ~ .helper-text[data-success],input[type=tel]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=tel]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=tel]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=number]:not(.browser-default).valid ~ .helper-text[data-success],input[type=number]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=number]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=number]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=search]:not(.browser-default).valid ~ .helper-text[data-success],input[type=search]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=search]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=search]:not(.browser-default):focus.invalid ~ .helper-text[data-error],textarea.materialize-textarea.valid ~ .helper-text[data-success],textarea.materialize-textarea:focus.valid ~ .helper-text[data-success],textarea.materialize-textarea.invalid ~ .helper-text[data-error],textarea.materialize-textarea:focus.invalid ~ .helper-text[data-error],.select-wrapper.valid .helper-text[data-success],.select-wrapper.invalid ~ .helper-text[data-error]{color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}input:not([type]).valid ~ .helper-text:after,input:not([type]):focus.valid ~ .helper-text:after,input[type=text]:not(.browser-default).valid ~ .helper-text:after,input[type=text]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=password]:not(.browser-default).valid ~ .helper-text:after,input[type=password]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=email]:not(.browser-default).valid ~ .helper-text:after,input[type=email]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=url]:not(.browser-default).valid ~ .helper-text:after,input[type=url]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=time]:not(.browser-default).valid ~ .helper-text:after,input[type=time]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=date]:not(.browser-default).valid ~ .helper-text:after,input[type=date]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=datetime]:not(.browser-default).valid ~ .helper-text:after,input[type=datetime]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default).valid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=tel]:not(.browser-default).valid ~ .helper-text:after,input[type=tel]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=number]:not(.browser-default).valid ~ .helper-text:after,input[type=number]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=search]:not(.browser-default).valid ~ .helper-text:after,input[type=search]:not(.browser-default):focus.valid ~ .helper-text:after,textarea.materialize-textarea.valid ~ .helper-text:after,textarea.materialize-textarea:focus.valid ~ .helper-text:after,.select-wrapper.valid ~ .helper-text:after{content:attr(data-success);color:#4CAF50}input:not([type]).invalid ~ .helper-text:after,input:not([type]):focus.invalid ~ .helper-text:after,input[type=text]:not(.browser-default).invalid ~ .helper-text:after,input[type=text]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=password]:not(.browser-default).invalid ~ .helper-text:after,input[type=password]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=email]:not(.browser-default).invalid ~ .helper-text:after,input[type=email]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=url]:not(.browser-default).invalid ~ .helper-text:after,input[type=url]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=time]:not(.browser-default).invalid ~ .helper-text:after,input[type=time]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=date]:not(.browser-default).invalid ~ .helper-text:after,input[type=date]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=datetime]:not(.browser-default).invalid ~ .helper-text:after,input[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default).invalid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=tel]:not(.browser-default).invalid ~ .helper-text:after,input[type=tel]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=number]:not(.browser-default).invalid ~ .helper-text:after,input[type=number]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=search]:not(.browser-default).invalid ~ .helper-text:after,input[type=search]:not(.browser-default):focus.invalid ~ .helper-text:after,textarea.materialize-textarea.invalid ~ .helper-text:after,textarea.materialize-textarea:focus.invalid ~ .helper-text:after,.select-wrapper.invalid ~ .helper-text:after{content:attr(data-error);color:#F44336}input:not([type])+label:after,input[type=text]:not(.browser-default)+label:after,input[type=password]:not(.browser-default)+label:after,input[type=email]:not(.browser-default)+label:after,input[type=url]:not(.browser-default)+label:after,input[type=time]:not(.browser-default)+label:after,input[type=date]:not(.browser-default)+label:after,input[type=datetime]:not(.browser-default)+label:after,input[type=datetime-local]:not(.browser-default)+label:after,input[type=tel]:not(.browser-default)+label:after,input[type=number]:not(.browser-default)+label:after,input[type=search]:not(.browser-default)+label:after,textarea.materialize-textarea+label:after,.select-wrapper+label:after{display:block;content:"";position:absolute;top:100%;left:0;opacity:0;-webkit-transition:.2s opacity ease-out, .2s color ease-out;transition:.2s opacity ease-out, .2s color ease-out}.input-field{position:relative;margin-top:1rem;margin-bottom:1rem}.input-field.inline{display:inline-block;vertical-align:middle;margin-left:5px}.input-field.inline input,.input-field.inline .select-dropdown{margin-bottom:1rem}.input-field.col label{left:.75rem}.input-field.col .prefix ~ label,.input-field.col .prefix ~ .validate ~ label{width:calc(100% - 3rem - 1.5rem)}.input-field>label{color:#9e9e9e;position:absolute;top:0;left:0;font-size:1rem;cursor:text;-webkit-transition:color .2s ease-out, -webkit-transform .2s ease-out;transition:color .2s ease-out, -webkit-transform .2s ease-out;transition:transform .2s ease-out, color .2s ease-out;transition:transform .2s ease-out, color .2s ease-out, -webkit-transform .2s ease-out;-webkit-transform-origin:0% 100%;transform-origin:0% 100%;text-align:initial;-webkit-transform:translateY(12px);transform:translateY(12px)}.input-field>label:not(.label-icon).active{-webkit-transform:translateY(-14px) scale(0.8);transform:translateY(-14px) scale(0.8);-webkit-transform-origin:0 0;transform-origin:0 0}.input-field>input[type]:-webkit-autofill:not(.browser-default):not([type="search"])+label,.input-field>input[type=date]:not(.browser-default)+label,.input-field>input[type=time]:not(.browser-default)+label{-webkit-transform:translateY(-14px) scale(0.8);transform:translateY(-14px) scale(0.8);-webkit-transform-origin:0 0;transform-origin:0 0}.input-field .helper-text{position:relative;min-height:18px;display:block;font-size:12px;color:rgba(0,0,0,0.54)}.input-field .helper-text::after{opacity:1;position:absolute;top:0;left:0}.input-field .prefix{position:absolute;width:3rem;font-size:2rem;-webkit-transition:color .2s;transition:color .2s;top:.5rem}.input-field .prefix.active{color:#26a69a}.input-field .prefix ~ input,.input-field .prefix ~ textarea,.input-field .prefix ~ label,.input-field .prefix ~ .validate ~ label,.input-field .prefix ~ .helper-text,.input-field .prefix ~ .autocomplete-content{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.input-field .prefix ~ label{margin-left:3rem}@media only screen and (max-width: 992px){.input-field .prefix ~ input{width:86%;width:calc(100% - 3rem)}}@media only screen and (max-width: 600px){.input-field .prefix ~ input{width:80%;width:calc(100% - 3rem)}}.input-field input[type=search]{display:block;line-height:inherit;-webkit-transition:.3s background-color;transition:.3s background-color}.nav-wrapper .input-field input[type=search]{height:inherit;padding-left:4rem;width:calc(100% - 4rem);border:0;-webkit-box-shadow:none;box-shadow:none}.input-field input[type=search]:focus:not(.browser-default){background-color:#fff;border:0;-webkit-box-shadow:none;box-shadow:none;color:#444}.input-field input[type=search]:focus:not(.browser-default)+label i,.input-field input[type=search]:focus:not(.browser-default) ~ .mdi-navigation-close,.input-field input[type=search]:focus:not(.browser-default) ~ .material-icons{color:#444}.input-field input[type=search]+.label-icon{-webkit-transform:none;transform:none;left:1rem}.input-field input[type=search] ~ .mdi-navigation-close,.input-field input[type=search] ~ .material-icons{position:absolute;top:0;right:1rem;color:transparent;cursor:pointer;font-size:2rem;-webkit-transition:.3s color;transition:.3s color}textarea{width:100%;height:3rem;background-color:transparent}textarea.materialize-textarea{line-height:normal;overflow-y:hidden;padding:.8rem 0 .8rem 0;resize:none;min-height:3rem;-webkit-box-sizing:border-box;box-sizing:border-box}.hiddendiv{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;padding-top:1.2rem;position:absolute;top:0;z-index:-1}.autocomplete-content li .highlight{color:#444}.autocomplete-content li img{height:40px;width:40px;margin:5px 15px}.character-counter{min-height:18px}[type="radio"]:not(:checked),[type="radio"]:checked{position:absolute;opacity:0;pointer-events:none}[type="radio"]:not(:checked)+span,[type="radio"]:checked+span{position:relative;padding-left:35px;cursor:pointer;display:inline-block;height:25px;line-height:25px;font-size:1rem;-webkit-transition:.28s ease;transition:.28s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[type="radio"]+span:before,[type="radio"]+span:after{content:'';position:absolute;left:0;top:0;margin:4px;width:16px;height:16px;z-index:0;-webkit-transition:.28s ease;transition:.28s ease}[type="radio"]:not(:checked)+span:before,[type="radio"]:not(:checked)+span:after,[type="radio"]:checked+span:before,[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:before,[type="radio"].with-gap:checked+span:after{border-radius:50%}[type="radio"]:not(:checked)+span:before,[type="radio"]:not(:checked)+span:after{border:2px solid #5a5a5a}[type="radio"]:not(:checked)+span:after{-webkit-transform:scale(0);transform:scale(0)}[type="radio"]:checked+span:before{border:2px solid transparent}[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:before,[type="radio"].with-gap:checked+span:after{border:2px solid #26a69a}[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:after{background-color:#26a69a}[type="radio"]:checked+span:after{-webkit-transform:scale(1.02);transform:scale(1.02)}[type="radio"].with-gap:checked+span:after{-webkit-transform:scale(0.5);transform:scale(0.5)}[type="radio"].tabbed:focus+span:before{-webkit-box-shadow:0 0 0 10px rgba(0,0,0,0.1);box-shadow:0 0 0 10px rgba(0,0,0,0.1)}[type="radio"].with-gap:disabled:checked+span:before{border:2px solid rgba(0,0,0,0.42)}[type="radio"].with-gap:disabled:checked+span:after{border:none;background-color:rgba(0,0,0,0.42)}[type="radio"]:disabled:not(:checked)+span:before,[type="radio"]:disabled:checked+span:before{background-color:transparent;border-color:rgba(0,0,0,0.42)}[type="radio"]:disabled+span{color:rgba(0,0,0,0.42)}[type="radio"]:disabled:not(:checked)+span:before{border-color:rgba(0,0,0,0.42)}[type="radio"]:disabled:checked+span:after{background-color:rgba(0,0,0,0.42);border-color:#949494}[type="checkbox"]:not(:checked),[type="checkbox"]:checked{position:absolute;opacity:0;pointer-events:none}[type="checkbox"]+span:not(.lever){position:relative;padding-left:35px;cursor:pointer;display:inline-block;height:25px;line-height:25px;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[type="checkbox"]+span:not(.lever):before,[type="checkbox"]:not(.filled-in)+span:not(.lever):after{content:'';position:absolute;top:0;left:0;width:18px;height:18px;z-index:0;border:2px solid #5a5a5a;border-radius:1px;margin-top:3px;-webkit-transition:.2s;transition:.2s}[type="checkbox"]:not(.filled-in)+span:not(.lever):after{border:0;-webkit-transform:scale(0);transform:scale(0)}[type="checkbox"]:not(:checked):disabled+span:not(.lever):before{border:none;background-color:rgba(0,0,0,0.42)}[type="checkbox"].tabbed:focus+span:not(.lever):after{-webkit-transform:scale(1);transform:scale(1);border:0;border-radius:50%;-webkit-box-shadow:0 0 0 10px rgba(0,0,0,0.1);box-shadow:0 0 0 10px rgba(0,0,0,0.1);background-color:rgba(0,0,0,0.1)}[type="checkbox"]:checked+span:not(.lever):before{top:-4px;left:-5px;width:12px;height:22px;border-top:2px solid transparent;border-left:2px solid transparent;border-right:2px solid #26a69a;border-bottom:2px solid #26a69a;-webkit-transform:rotate(40deg);transform:rotate(40deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"]:checked:disabled+span:before{border-right:2px solid rgba(0,0,0,0.42);border-bottom:2px solid rgba(0,0,0,0.42)}[type="checkbox"]:indeterminate+span:not(.lever):before{top:-11px;left:-12px;width:10px;height:22px;border-top:none;border-left:none;border-right:2px solid #26a69a;border-bottom:none;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"]:indeterminate:disabled+span:not(.lever):before{border-right:2px solid rgba(0,0,0,0.42);background-color:transparent}[type="checkbox"].filled-in+span:not(.lever):after{border-radius:2px}[type="checkbox"].filled-in+span:not(.lever):before,[type="checkbox"].filled-in+span:not(.lever):after{content:'';left:0;position:absolute;-webkit-transition:border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;transition:border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;z-index:1}[type="checkbox"].filled-in:not(:checked)+span:not(.lever):before{width:0;height:0;border:3px solid transparent;left:6px;top:10px;-webkit-transform:rotateZ(37deg);transform:rotateZ(37deg);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"].filled-in:not(:checked)+span:not(.lever):after{height:20px;width:20px;background-color:transparent;border:2px solid #5a5a5a;top:0px;z-index:0}[type="checkbox"].filled-in:checked+span:not(.lever):before{top:0;left:1px;width:8px;height:13px;border-top:2px solid transparent;border-left:2px solid transparent;border-right:2px solid #fff;border-bottom:2px solid #fff;-webkit-transform:rotateZ(37deg);transform:rotateZ(37deg);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"].filled-in:checked+span:not(.lever):after{top:0;width:20px;height:20px;border:2px solid #26a69a;background-color:#26a69a;z-index:0}[type="checkbox"].filled-in.tabbed:focus+span:not(.lever):after{border-radius:2px;border-color:#5a5a5a;background-color:rgba(0,0,0,0.1)}[type="checkbox"].filled-in.tabbed:checked:focus+span:not(.lever):after{border-radius:2px;background-color:#26a69a;border-color:#26a69a}[type="checkbox"].filled-in:disabled:not(:checked)+span:not(.lever):before{background-color:transparent;border:2px solid transparent}[type="checkbox"].filled-in:disabled:not(:checked)+span:not(.lever):after{border-color:transparent;background-color:#949494}[type="checkbox"].filled-in:disabled:checked+span:not(.lever):before{background-color:transparent}[type="checkbox"].filled-in:disabled:checked+span:not(.lever):after{background-color:#949494;border-color:#949494}.switch,.switch *{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.switch label{cursor:pointer}.switch label input[type=checkbox]{opacity:0;width:0;height:0}.switch label input[type=checkbox]:checked+.lever{background-color:#84c7c1}.switch label input[type=checkbox]:checked+.lever:before,.switch label input[type=checkbox]:checked+.lever:after{left:18px}.switch label input[type=checkbox]:checked+.lever:after{background-color:#26a69a}.switch label .lever{content:"";display:inline-block;position:relative;width:36px;height:14px;background-color:rgba(0,0,0,0.38);border-radius:15px;margin-right:10px;-webkit-transition:background 0.3s ease;transition:background 0.3s ease;vertical-align:middle;margin:0 16px}.switch label .lever:before,.switch label .lever:after{content:"";position:absolute;display:inline-block;width:20px;height:20px;border-radius:50%;left:0;top:-3px;-webkit-transition:left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;transition:left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;transition:left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;transition:left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease}.switch label .lever:before{background-color:rgba(38,166,154,0.15)}.switch label .lever:after{background-color:#F1F1F1;-webkit-box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12);box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)}input[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before{-webkit-transform:scale(2.4);transform:scale(2.4);background-color:rgba(38,166,154,0.15)}input[type=checkbox]:not(:disabled) ~ .lever:active:before,input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before{-webkit-transform:scale(2.4);transform:scale(2.4);background-color:rgba(0,0,0,0.08)}.switch input[type=checkbox][disabled]+.lever{cursor:default;background-color:rgba(0,0,0,0.12)}.switch label input[type=checkbox][disabled]+.lever:after,.switch label input[type=checkbox][disabled]:checked+.lever:after{background-color:#949494}select{display:none}select.browser-default{display:block}select{background-color:rgba(255,255,255,0.9);width:100%;padding:5px;border:1px solid #f2f2f2;border-radius:2px;height:3rem}.select-label{position:absolute}.select-wrapper{position:relative}.select-wrapper.valid+label,.select-wrapper.invalid+label{width:100%;pointer-events:none}.select-wrapper input.select-dropdown{position:relative;cursor:pointer;background-color:transparent;border:none;border-bottom:1px solid #9e9e9e;outline:none;height:3rem;line-height:3rem;width:100%;font-size:16px;margin:0 0 8px 0;padding:0;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.select-wrapper input.select-dropdown:focus{border-bottom:1px solid #26a69a}.select-wrapper .caret{position:absolute;right:0;top:0;bottom:0;margin:auto 0;z-index:0;fill:rgba(0,0,0,0.87)}.select-wrapper+label{position:absolute;top:-26px;font-size:.8rem}select:disabled{color:rgba(0,0,0,0.42)}.select-wrapper.disabled+label{color:rgba(0,0,0,0.42)}.select-wrapper.disabled .caret{fill:rgba(0,0,0,0.42)}.select-wrapper input.select-dropdown:disabled{color:rgba(0,0,0,0.42);cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select-wrapper i{color:rgba(0,0,0,0.3)}.select-dropdown li.disabled,.select-dropdown li.disabled>span,.select-dropdown li.optgroup{color:rgba(0,0,0,0.3);background-color:transparent}body.keyboard-focused .select-dropdown.dropdown-content li:focus{background-color:rgba(0,0,0,0.08)}.select-dropdown.dropdown-content li:hover{background-color:rgba(0,0,0,0.08)}.select-dropdown.dropdown-content li.selected{background-color:rgba(0,0,0,0.03)}.prefix ~ .select-wrapper{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.prefix ~ label{margin-left:3rem}.select-dropdown li img{height:40px;width:40px;margin:5px 15px;float:right}.select-dropdown li.optgroup{border-top:1px solid #eee}.select-dropdown li.optgroup.selected>span{color:rgba(0,0,0,0.7)}.select-dropdown li.optgroup>span{color:rgba(0,0,0,0.4)}.select-dropdown li.optgroup ~ li.optgroup-option{padding-left:1rem}.file-field{position:relative}.file-field .file-path-wrapper{overflow:hidden;padding-left:10px}.file-field input.file-path{width:100%}.file-field .btn,.file-field .btn-large,.file-field .btn-small{float:left;height:3rem;line-height:3rem}.file-field span{cursor:pointer}.file-field input[type=file]{position:absolute;top:0;right:0;left:0;bottom:0;width:100%;margin:0;padding:0;font-size:20px;cursor:pointer;opacity:0;filter:alpha(opacity=0)}.file-field input[type=file]::-webkit-file-upload-button{display:none}.range-field{position:relative}input[type=range],input[type=range]+.thumb{cursor:pointer}input[type=range]{position:relative;background-color:transparent;border:none;outline:none;width:100%;margin:15px 0;padding:0}input[type=range]:focus{outline:none}input[type=range]+.thumb{position:absolute;top:10px;left:0;border:none;height:0;width:0;border-radius:50%;background-color:#26a69a;margin-left:7px;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}input[type=range]+.thumb .value{display:block;width:30px;text-align:center;color:#26a69a;font-size:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}input[type=range]+.thumb.active{border-radius:50% 50% 50% 0}input[type=range]+.thumb.active .value{color:#fff;margin-left:-1px;margin-top:8px;font-size:10px}input[type=range]{-webkit-appearance:none}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#c2c0c2;border:none}input[type=range]::-webkit-slider-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s;-webkit-appearance:none;background-color:#26a69a;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;margin:-5px 0 0 0}.keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb{-webkit-box-shadow:0 0 0 10px rgba(38,166,154,0.26);box-shadow:0 0 0 10px rgba(38,166,154,0.26)}input[type=range]{border:1px solid white}input[type=range]::-moz-range-track{height:3px;background:#c2c0c2;border:none}input[type=range]::-moz-focus-inner{border:0}input[type=range]::-moz-range-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s;margin-top:-5px}input[type=range]:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}.keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb{box-shadow:0 0 0 10px rgba(38,166,154,0.26)}input[type=range]::-ms-track{height:3px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input[type=range]::-ms-fill-lower{background:#777}input[type=range]::-ms-fill-upper{background:#ddd}input[type=range]::-ms-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s}.keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb{box-shadow:0 0 0 10px rgba(38,166,154,0.26)}.table-of-contents.fixed{position:fixed}.table-of-contents li{padding:2px 0}.table-of-contents a{display:inline-block;font-weight:300;color:#757575;padding-left:16px;height:1.5rem;line-height:1.5rem;letter-spacing:.4;display:inline-block}.table-of-contents a:hover{color:#a8a8a8;padding-left:15px;border-left:1px solid #ee6e73}.table-of-contents a.active{font-weight:500;padding-left:14px;border-left:2px solid #ee6e73}.sidenav{position:fixed;width:300px;left:0;top:0;margin:0;-webkit-transform:translateX(-100%);transform:translateX(-100%);height:100%;height:calc(100% + 60px);height:-moz-calc(100%);padding-bottom:60px;background-color:#fff;z-index:999;overflow-y:auto;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateX(-105%);transform:translateX(-105%)}.sidenav.right-aligned{right:0;-webkit-transform:translateX(105%);transform:translateX(105%);left:auto;-webkit-transform:translateX(100%);transform:translateX(100%)}.sidenav .collapsible{margin:0}.sidenav li{float:none;line-height:48px}.sidenav li.active{background-color:rgba(0,0,0,0.05)}.sidenav li>a{color:rgba(0,0,0,0.87);display:block;font-size:14px;font-weight:500;height:48px;line-height:48px;padding:0 32px}.sidenav li>a:hover{background-color:rgba(0,0,0,0.05)}.sidenav li>a.btn,.sidenav li>a.btn-large,.sidenav li>a.btn-small,.sidenav li>a.btn-large,.sidenav li>a.btn-flat,.sidenav li>a.btn-floating{margin:10px 15px}.sidenav li>a.btn,.sidenav li>a.btn-large,.sidenav li>a.btn-small,.sidenav li>a.btn-large,.sidenav li>a.btn-floating{color:#fff}.sidenav li>a.btn-flat{color:#343434}.sidenav li>a.btn:hover,.sidenav li>a.btn-large:hover,.sidenav li>a.btn-small:hover,.sidenav li>a.btn-large:hover{background-color:#2bbbad}.sidenav li>a.btn-floating:hover{background-color:#26a69a}.sidenav li>a>i,.sidenav li>a>[class^="mdi-"],.sidenav li>a li>a>[class*="mdi-"],.sidenav li>a>i.material-icons{float:left;height:48px;line-height:48px;margin:0 32px 0 0;width:24px;color:rgba(0,0,0,0.54)}.sidenav .divider{margin:8px 0 0 0}.sidenav .subheader{cursor:initial;pointer-events:none;color:rgba(0,0,0,0.54);font-size:14px;font-weight:500;line-height:48px}.sidenav .subheader:hover{background-color:transparent}.sidenav .user-view{position:relative;padding:32px 32px 0;margin-bottom:8px}.sidenav .user-view>a{height:auto;padding:0}.sidenav .user-view>a:hover{background-color:transparent}.sidenav .user-view .background{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.sidenav .user-view .circle,.sidenav .user-view .name,.sidenav .user-view .email{display:block}.sidenav .user-view .circle{height:64px;width:64px}.sidenav .user-view .name,.sidenav .user-view .email{font-size:14px;line-height:24px}.sidenav .user-view .name{margin-top:16px;font-weight:500}.sidenav .user-view .email{padding-bottom:16px;font-weight:400}.drag-target{height:100%;width:10px;position:fixed;top:0;z-index:998}.drag-target.right-aligned{right:0}.sidenav.sidenav-fixed{left:0;-webkit-transform:translateX(0);transform:translateX(0);position:fixed}.sidenav.sidenav-fixed.right-aligned{right:0;left:auto}@media only screen and (max-width: 992px){.sidenav.sidenav-fixed{-webkit-transform:translateX(-105%);transform:translateX(-105%)}.sidenav.sidenav-fixed.right-aligned{-webkit-transform:translateX(105%);transform:translateX(105%)}.sidenav>a{padding:0 16px}.sidenav .user-view{padding:16px 16px 0}}.sidenav .collapsible-body>ul:not(.collapsible)>li.active,.sidenav.sidenav-fixed .collapsible-body>ul:not(.collapsible)>li.active{background-color:#ee6e73}.sidenav .collapsible-body>ul:not(.collapsible)>li.active a,.sidenav.sidenav-fixed .collapsible-body>ul:not(.collapsible)>li.active a{color:#fff}.sidenav .collapsible-body{padding:0}.sidenav-overlay{position:fixed;top:0;left:0;right:0;opacity:0;height:120vh;background-color:rgba(0,0,0,0.5);z-index:997;display:none}.preloader-wrapper{display:inline-block;position:relative;width:50px;height:50px}.preloader-wrapper.small{width:36px;height:36px}.preloader-wrapper.big{width:64px;height:64px}.preloader-wrapper.active{-webkit-animation:container-rotate 1568ms linear infinite;animation:container-rotate 1568ms linear infinite}@-webkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-layer{position:absolute;width:100%;height:100%;opacity:0;border-color:#26a69a}.spinner-blue,.spinner-blue-only{border-color:#4285f4}.spinner-red,.spinner-red-only{border-color:#db4437}.spinner-yellow,.spinner-yellow-only{border-color:#f4b400}.spinner-green,.spinner-green-only{border-color:#0f9d58}.active .spinner-layer.spinner-blue{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-red{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-yellow{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-green{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer,.active .spinner-layer.spinner-blue-only,.active .spinner-layer.spinner-red-only,.active .spinner-layer.spinner-yellow-only,.active .spinner-layer.spinner-green-only{opacity:1;-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@-webkit-keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg)}}@keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@-webkit-keyframes blue-fade-in-out{from{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}100%{opacity:1}}@keyframes blue-fade-in-out{from{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}100%{opacity:1}}@-webkit-keyframes red-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes red-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@-webkit-keyframes yellow-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@keyframes yellow-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@-webkit-keyframes green-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}100%{opacity:0}}@keyframes green-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}100%{opacity:0}}.gap-patch{position:absolute;top:0;left:45%;width:10%;height:100%;overflow:hidden;border-color:inherit}.gap-patch .circle{width:1000%;left:-450%}.circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.circle-clipper .circle{width:200%;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:transparent !important;border-radius:50%;-webkit-animation:none;animation:none;position:absolute;top:0;right:0;bottom:0}.circle-clipper.left .circle{left:0;border-right-color:transparent !important;-webkit-transform:rotate(129deg);transform:rotate(129deg)}.circle-clipper.right .circle{left:-100%;border-left-color:transparent !important;-webkit-transform:rotate(-129deg);transform:rotate(-129deg)}.active .circle-clipper.left .circle{-webkit-animation:left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .circle-clipper.right .circle{-webkit-animation:right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@-webkit-keyframes left-spin{from{-webkit-transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg)}}@keyframes left-spin{from{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@-webkit-keyframes right-spin{from{-webkit-transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg)}}@keyframes right-spin{from{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}#spinnerContainer.cooldown{-webkit-animation:container-rotate 1568ms linear infinite,fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1);animation:container-rotate 1568ms linear infinite,fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1)}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:0}}@keyframes fade-out{from{opacity:1}to{opacity:0}}.slider{position:relative;height:400px;width:100%}.slider.fullscreen{height:100%;width:100%;position:absolute;top:0;left:0;right:0;bottom:0}.slider.fullscreen ul.slides{height:100%}.slider.fullscreen ul.indicators{z-index:2;bottom:30px}.slider .slides{background-color:#9e9e9e;margin:0;height:400px}.slider .slides li{opacity:0;position:absolute;top:0;left:0;z-index:1;width:100%;height:inherit;overflow:hidden}.slider .slides li img{height:100%;width:100%;background-size:cover;background-position:center}.slider .slides li .caption{color:#fff;position:absolute;top:15%;left:15%;width:70%;opacity:0}.slider .slides li .caption p{color:#e0e0e0}.slider .slides li.active{z-index:2}.slider .indicators{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:0}.slider .indicators .indicator-item{display:inline-block;position:relative;cursor:pointer;height:16px;width:16px;margin:0 12px;background-color:#e0e0e0;-webkit-transition:background-color .3s;transition:background-color .3s;border-radius:50%}.slider .indicators .indicator-item.active{background-color:#4CAF50}.carousel{overflow:hidden;position:relative;width:100%;height:400px;-webkit-perspective:500px;perspective:500px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform-origin:0% 50%;transform-origin:0% 50%}.carousel.carousel-slider{top:0;left:0}.carousel.carousel-slider .carousel-fixed-item{position:absolute;left:0;right:0;bottom:20px;z-index:1}.carousel.carousel-slider .carousel-fixed-item.with-indicators{bottom:68px}.carousel.carousel-slider .carousel-item{width:100%;height:100%;min-height:400px;position:absolute;top:0;left:0}.carousel.carousel-slider .carousel-item h2{font-size:24px;font-weight:500;line-height:32px}.carousel.carousel-slider .carousel-item p{font-size:15px}.carousel .carousel-item{visibility:hidden;width:200px;height:200px;position:absolute;top:0;left:0}.carousel .carousel-item>img{width:100%}.carousel .indicators{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:0}.carousel .indicators .indicator-item{display:inline-block;position:relative;cursor:pointer;height:8px;width:8px;margin:24px 4px;background-color:rgba(255,255,255,0.5);-webkit-transition:background-color .3s;transition:background-color .3s;border-radius:50%}.carousel .indicators .indicator-item.active{background-color:#fff}.carousel.scrolling .carousel-item .materialboxed,.carousel .carousel-item:not(.active) .materialboxed{pointer-events:none}.tap-target-wrapper{width:800px;height:800px;position:fixed;z-index:1000;visibility:hidden;-webkit-transition:visibility 0s .3s;transition:visibility 0s .3s}.tap-target-wrapper.open{visibility:visible;-webkit-transition:visibility 0s;transition:visibility 0s}.tap-target-wrapper.open .tap-target{-webkit-transform:scale(1);transform:scale(1);opacity:.95;-webkit-transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1)}.tap-target-wrapper.open .tap-target-wave::before{-webkit-transform:scale(1);transform:scale(1)}.tap-target-wrapper.open .tap-target-wave::after{visibility:visible;-webkit-animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;-webkit-transition:opacity .3s,
|
16 |
-
visibility 0s 1s,
|
17 |
-
-webkit-transform .3s;transition:opacity .3s,
|
18 |
-
visibility 0s 1s,
|
19 |
-
-webkit-transform .3s;transition:opacity .3s,
|
20 |
-
transform .3s,
|
21 |
-
visibility 0s 1s;transition:opacity .3s,
|
22 |
-
transform .3s,
|
23 |
-
visibility 0s 1s,
|
24 |
-
-webkit-transform .3s}.tap-target{position:absolute;font-size:1rem;border-radius:50%;background-color:#ee6e73;-webkit-box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);width:100%;height:100%;opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1)}.tap-target-content{position:relative;display:table-cell}.tap-target-wave{position:absolute;border-radius:50%;z-index:10001}.tap-target-wave::before,.tap-target-wave::after{content:'';display:block;position:absolute;width:100%;height:100%;border-radius:50%;background-color:#ffffff}.tap-target-wave::before{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}.tap-target-wave::after{visibility:hidden;-webkit-transition:opacity .3s,
|
25 |
-
visibility 0s,
|
26 |
-
-webkit-transform .3s;transition:opacity .3s,
|
27 |
-
visibility 0s,
|
28 |
-
-webkit-transform .3s;transition:opacity .3s,
|
29 |
-
transform .3s,
|
30 |
-
visibility 0s;transition:opacity .3s,
|
31 |
-
transform .3s,
|
32 |
-
visibility 0s,
|
33 |
-webkit-transform .3s;z-index:-1}.tap-target-origin{top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);z-index:10002;position:absolute !important}.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small),.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small):hover{background:none}@media only screen and (max-width: 600px){.tap-target,.tap-target-wrapper{width:600px;height:600px}}.pulse{overflow:visible;position:relative}.pulse::before{content:'';display:block;position:absolute;width:100%;height:100%;top:0;left:0;background-color:inherit;border-radius:inherit;-webkit-transition:opacity .3s, -webkit-transform .3s;transition:opacity .3s, -webkit-transform .3s;transition:opacity .3s, transform .3s;transition:opacity .3s, transform .3s, -webkit-transform .3s;-webkit-animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;z-index:-1}@-webkit-keyframes pulse-animation{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}50%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}}@keyframes pulse-animation{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}50%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}}.datepicker-modal{max-width:325px;min-width:300px;max-height:none}.datepicker-container.modal-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0}.datepicker-controls{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:280px;margin:0 auto}.datepicker-controls .selects-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.datepicker-controls .select-wrapper input{border-bottom:none;text-align:center;margin:0}.datepicker-controls .select-wrapper input:focus{border-bottom:none}.datepicker-controls .select-wrapper .caret{display:none}.datepicker-controls .select-year input{width:50px}.datepicker-controls .select-month input{width:70px}.month-prev,.month-next{margin-top:4px;cursor:pointer;background-color:transparent;border:none}.datepicker-date-display{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;background-color:#26a69a;color:#fff;padding:20px 22px;font-weight:500}.datepicker-date-display .year-text{display:block;font-size:1.5rem;line-height:25px;color:rgba(255,255,255,0.7)}.datepicker-date-display .date-text{display:block;font-size:2.8rem;line-height:47px;font-weight:500}.datepicker-calendar-container{-webkit-box-flex:2.5;-webkit-flex:2.5 auto;-ms-flex:2.5 auto;flex:2.5 auto}.datepicker-table{width:280px;font-size:1rem;margin:0 auto}.datepicker-table thead{border-bottom:none}.datepicker-table th{padding:10px 5px;text-align:center}.datepicker-table tr{border:none}.datepicker-table abbr{text-decoration:none;color:#999}.datepicker-table td{border-radius:50%;padding:0}.datepicker-table td.is-today{color:#26a69a}.datepicker-table td.is-selected{background-color:#26a69a;color:#fff}.datepicker-table td.is-outside-current-month,.datepicker-table td.is-disabled{color:rgba(0,0,0,0.3);pointer-events:none}.datepicker-day-button{background-color:transparent;border:none;line-height:38px;display:block;width:100%;border-radius:50%;padding:0 5px;cursor:pointer;color:inherit}.datepicker-day-button:focus{background-color:rgba(43,161,150,0.25)}.datepicker-footer{width:280px;margin:0 auto;padding-bottom:5px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.datepicker-cancel,.datepicker-clear,.datepicker-today,.datepicker-done{color:#26a69a;padding:0 1rem}.datepicker-clear{color:#F44336}@media only screen and (min-width: 601px){.datepicker-modal{max-width:625px}.datepicker-container.modal-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.datepicker-date-display{-webkit-box-flex:0;-webkit-flex:0 1 270px;-ms-flex:0 1 270px;flex:0 1 270px}.datepicker-controls,.datepicker-table,.datepicker-footer{width:320px}.datepicker-day-button{line-height:44px}}.timepicker-modal{max-width:325px;max-height:none}.timepicker-container.modal-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0}.text-primary{color:#fff}.timepicker-digital-display{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;background-color:#26a69a;padding:10px;font-weight:300}.timepicker-text-container{font-size:4rem;font-weight:bold;text-align:center;color:rgba(255,255,255,0.6);font-weight:400;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.timepicker-span-hours,.timepicker-span-minutes,.timepicker-span-am-pm div{cursor:pointer}.timepicker-span-hours{margin-right:3px}.timepicker-span-minutes{margin-left:3px}.timepicker-display-am-pm{font-size:1.3rem;position:absolute;right:1rem;bottom:1rem;font-weight:400}.timepicker-analog-display{-webkit-box-flex:2.5;-webkit-flex:2.5 auto;-ms-flex:2.5 auto;flex:2.5 auto}.timepicker-plate{background-color:#eee;border-radius:50%;width:270px;height:270px;overflow:visible;position:relative;margin:auto;margin-top:25px;margin-bottom:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.timepicker-canvas,.timepicker-dial{position:absolute;left:0;right:0;top:0;bottom:0}.timepicker-minutes{visibility:hidden}.timepicker-tick{border-radius:50%;color:rgba(0,0,0,0.87);line-height:40px;text-align:center;width:40px;height:40px;position:absolute;cursor:pointer;font-size:15px}.timepicker-tick.active,.timepicker-tick:hover{background-color:rgba(38,166,154,0.25)}.timepicker-dial{-webkit-transition:opacity 350ms, -webkit-transform 350ms;transition:opacity 350ms, -webkit-transform 350ms;transition:transform 350ms, opacity 350ms;transition:transform 350ms, opacity 350ms, -webkit-transform 350ms}.timepicker-dial-out{opacity:0}.timepicker-dial-out.timepicker-hours{-webkit-transform:scale(1.1, 1.1);transform:scale(1.1, 1.1)}.timepicker-dial-out.timepicker-minutes{-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}.timepicker-canvas{-webkit-transition:opacity 175ms;transition:opacity 175ms}.timepicker-canvas line{stroke:#26a69a;stroke-width:4;stroke-linecap:round}.timepicker-canvas-out{opacity:0.25}.timepicker-canvas-bearing{stroke:none;fill:#26a69a}.timepicker-canvas-bg{stroke:none;fill:#26a69a}.timepicker-footer{margin:0 auto;padding:5px 1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.timepicker-clear{color:#F44336}.timepicker-close{color:#26a69a}.timepicker-clear,.timepicker-close{padding:0 20px}@media only screen and (min-width: 601px){.timepicker-modal{max-width:600px}.timepicker-container.modal-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.timepicker-text-container{top:32%}.timepicker-display-am-pm{position:relative;right:auto;bottom:auto;text-align:center;margin-top:1.2rem}}
|
1 |
+
/*!
|
2 |
+
* Materialize v1.0.0 (http://materializecss.com)
|
3 |
+
* Copyright 2014-2017 Materialize
|
4 |
+
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
5 |
+
*/
|
6 |
+
.materialize-red{background-color:#e51c23 !important}.materialize-red-text{color:#e51c23 !important}.materialize-red.lighten-5{background-color:#fdeaeb !important}.materialize-red-text.text-lighten-5{color:#fdeaeb !important}.materialize-red.lighten-4{background-color:#f8c1c3 !important}.materialize-red-text.text-lighten-4{color:#f8c1c3 !important}.materialize-red.lighten-3{background-color:#f3989b !important}.materialize-red-text.text-lighten-3{color:#f3989b !important}.materialize-red.lighten-2{background-color:#ee6e73 !important}.materialize-red-text.text-lighten-2{color:#ee6e73 !important}.materialize-red.lighten-1{background-color:#ea454b !important}.materialize-red-text.text-lighten-1{color:#ea454b !important}.materialize-red.darken-1{background-color:#d0181e !important}.materialize-red-text.text-darken-1{color:#d0181e !important}.materialize-red.darken-2{background-color:#b9151b !important}.materialize-red-text.text-darken-2{color:#b9151b !important}.materialize-red.darken-3{background-color:#a21318 !important}.materialize-red-text.text-darken-3{color:#a21318 !important}.materialize-red.darken-4{background-color:#8b1014 !important}.materialize-red-text.text-darken-4{color:#8b1014 !important}.red{background-color:#F44336 !important}.red-text{color:#F44336 !important}.red.lighten-5{background-color:#FFEBEE !important}.red-text.text-lighten-5{color:#FFEBEE !important}.red.lighten-4{background-color:#FFCDD2 !important}.red-text.text-lighten-4{color:#FFCDD2 !important}.red.lighten-3{background-color:#EF9A9A !important}.red-text.text-lighten-3{color:#EF9A9A !important}.red.lighten-2{background-color:#E57373 !important}.red-text.text-lighten-2{color:#E57373 !important}.red.lighten-1{background-color:#EF5350 !important}.red-text.text-lighten-1{color:#EF5350 !important}.red.darken-1{background-color:#E53935 !important}.red-text.text-darken-1{color:#E53935 !important}.red.darken-2{background-color:#D32F2F !important}.red-text.text-darken-2{color:#D32F2F !important}.red.darken-3{background-color:#C62828 !important}.red-text.text-darken-3{color:#C62828 !important}.red.darken-4{background-color:#B71C1C !important}.red-text.text-darken-4{color:#B71C1C !important}.red.accent-1{background-color:#FF8A80 !important}.red-text.text-accent-1{color:#FF8A80 !important}.red.accent-2{background-color:#FF5252 !important}.red-text.text-accent-2{color:#FF5252 !important}.red.accent-3{background-color:#FF1744 !important}.red-text.text-accent-3{color:#FF1744 !important}.red.accent-4{background-color:#D50000 !important}.red-text.text-accent-4{color:#D50000 !important}.pink{background-color:#e91e63 !important}.pink-text{color:#e91e63 !important}.pink.lighten-5{background-color:#fce4ec !important}.pink-text.text-lighten-5{color:#fce4ec !important}.pink.lighten-4{background-color:#f8bbd0 !important}.pink-text.text-lighten-4{color:#f8bbd0 !important}.pink.lighten-3{background-color:#f48fb1 !important}.pink-text.text-lighten-3{color:#f48fb1 !important}.pink.lighten-2{background-color:#f06292 !important}.pink-text.text-lighten-2{color:#f06292 !important}.pink.lighten-1{background-color:#ec407a !important}.pink-text.text-lighten-1{color:#ec407a !important}.pink.darken-1{background-color:#d81b60 !important}.pink-text.text-darken-1{color:#d81b60 !important}.pink.darken-2{background-color:#c2185b !important}.pink-text.text-darken-2{color:#c2185b !important}.pink.darken-3{background-color:#ad1457 !important}.pink-text.text-darken-3{color:#ad1457 !important}.pink.darken-4{background-color:#880e4f !important}.pink-text.text-darken-4{color:#880e4f !important}.pink.accent-1{background-color:#ff80ab !important}.pink-text.text-accent-1{color:#ff80ab !important}.pink.accent-2{background-color:#ff4081 !important}.pink-text.text-accent-2{color:#ff4081 !important}.pink.accent-3{background-color:#f50057 !important}.pink-text.text-accent-3{color:#f50057 !important}.pink.accent-4{background-color:#c51162 !important}.pink-text.text-accent-4{color:#c51162 !important}.purple{background-color:#9c27b0 !important}.purple-text{color:#9c27b0 !important}.purple.lighten-5{background-color:#f3e5f5 !important}.purple-text.text-lighten-5{color:#f3e5f5 !important}.purple.lighten-4{background-color:#e1bee7 !important}.purple-text.text-lighten-4{color:#e1bee7 !important}.purple.lighten-3{background-color:#ce93d8 !important}.purple-text.text-lighten-3{color:#ce93d8 !important}.purple.lighten-2{background-color:#ba68c8 !important}.purple-text.text-lighten-2{color:#ba68c8 !important}.purple.lighten-1{background-color:#ab47bc !important}.purple-text.text-lighten-1{color:#ab47bc !important}.purple.darken-1{background-color:#8e24aa !important}.purple-text.text-darken-1{color:#8e24aa !important}.purple.darken-2{background-color:#7b1fa2 !important}.purple-text.text-darken-2{color:#7b1fa2 !important}.purple.darken-3{background-color:#6a1b9a !important}.purple-text.text-darken-3{color:#6a1b9a !important}.purple.darken-4{background-color:#4a148c !important}.purple-text.text-darken-4{color:#4a148c !important}.purple.accent-1{background-color:#ea80fc !important}.purple-text.text-accent-1{color:#ea80fc !important}.purple.accent-2{background-color:#e040fb !important}.purple-text.text-accent-2{color:#e040fb !important}.purple.accent-3{background-color:#d500f9 !important}.purple-text.text-accent-3{color:#d500f9 !important}.purple.accent-4{background-color:#a0f !important}.purple-text.text-accent-4{color:#a0f !important}.deep-purple{background-color:#673ab7 !important}.deep-purple-text{color:#673ab7 !important}.deep-purple.lighten-5{background-color:#ede7f6 !important}.deep-purple-text.text-lighten-5{color:#ede7f6 !important}.deep-purple.lighten-4{background-color:#d1c4e9 !important}.deep-purple-text.text-lighten-4{color:#d1c4e9 !important}.deep-purple.lighten-3{background-color:#b39ddb !important}.deep-purple-text.text-lighten-3{color:#b39ddb !important}.deep-purple.lighten-2{background-color:#9575cd !important}.deep-purple-text.text-lighten-2{color:#9575cd !important}.deep-purple.lighten-1{background-color:#7e57c2 !important}.deep-purple-text.text-lighten-1{color:#7e57c2 !important}.deep-purple.darken-1{background-color:#5e35b1 !important}.deep-purple-text.text-darken-1{color:#5e35b1 !important}.deep-purple.darken-2{background-color:#512da8 !important}.deep-purple-text.text-darken-2{color:#512da8 !important}.deep-purple.darken-3{background-color:#4527a0 !important}.deep-purple-text.text-darken-3{color:#4527a0 !important}.deep-purple.darken-4{background-color:#311b92 !important}.deep-purple-text.text-darken-4{color:#311b92 !important}.deep-purple.accent-1{background-color:#b388ff !important}.deep-purple-text.text-accent-1{color:#b388ff !important}.deep-purple.accent-2{background-color:#7c4dff !important}.deep-purple-text.text-accent-2{color:#7c4dff !important}.deep-purple.accent-3{background-color:#651fff !important}.deep-purple-text.text-accent-3{color:#651fff !important}.deep-purple.accent-4{background-color:#6200ea !important}.deep-purple-text.text-accent-4{color:#6200ea !important}.indigo{background-color:#3f51b5 !important}.indigo-text{color:#3f51b5 !important}.indigo.lighten-5{background-color:#e8eaf6 !important}.indigo-text.text-lighten-5{color:#e8eaf6 !important}.indigo.lighten-4{background-color:#c5cae9 !important}.indigo-text.text-lighten-4{color:#c5cae9 !important}.indigo.lighten-3{background-color:#9fa8da !important}.indigo-text.text-lighten-3{color:#9fa8da !important}.indigo.lighten-2{background-color:#7986cb !important}.indigo-text.text-lighten-2{color:#7986cb !important}.indigo.lighten-1{background-color:#5c6bc0 !important}.indigo-text.text-lighten-1{color:#5c6bc0 !important}.indigo.darken-1{background-color:#3949ab !important}.indigo-text.text-darken-1{color:#3949ab !important}.indigo.darken-2{background-color:#303f9f !important}.indigo-text.text-darken-2{color:#303f9f !important}.indigo.darken-3{background-color:#283593 !important}.indigo-text.text-darken-3{color:#283593 !important}.indigo.darken-4{background-color:#1a237e !important}.indigo-text.text-darken-4{color:#1a237e !important}.indigo.accent-1{background-color:#8c9eff !important}.indigo-text.text-accent-1{color:#8c9eff !important}.indigo.accent-2{background-color:#536dfe !important}.indigo-text.text-accent-2{color:#536dfe !important}.indigo.accent-3{background-color:#3d5afe !important}.indigo-text.text-accent-3{color:#3d5afe !important}.indigo.accent-4{background-color:#304ffe !important}.indigo-text.text-accent-4{color:#304ffe !important}.blue{background-color:#2196F3 !important}.blue-text{color:#2196F3 !important}.blue.lighten-5{background-color:#E3F2FD !important}.blue-text.text-lighten-5{color:#E3F2FD !important}.blue.lighten-4{background-color:#BBDEFB !important}.blue-text.text-lighten-4{color:#BBDEFB !important}.blue.lighten-3{background-color:#90CAF9 !important}.blue-text.text-lighten-3{color:#90CAF9 !important}.blue.lighten-2{background-color:#64B5F6 !important}.blue-text.text-lighten-2{color:#64B5F6 !important}.blue.lighten-1{background-color:#42A5F5 !important}.blue-text.text-lighten-1{color:#42A5F5 !important}.blue.darken-1{background-color:#1E88E5 !important}.blue-text.text-darken-1{color:#1E88E5 !important}.blue.darken-2{background-color:#1976D2 !important}.blue-text.text-darken-2{color:#1976D2 !important}.blue.darken-3{background-color:#1565C0 !important}.blue-text.text-darken-3{color:#1565C0 !important}.blue.darken-4{background-color:#0D47A1 !important}.blue-text.text-darken-4{color:#0D47A1 !important}.blue.accent-1{background-color:#82B1FF !important}.blue-text.text-accent-1{color:#82B1FF !important}.blue.accent-2{background-color:#448AFF !important}.blue-text.text-accent-2{color:#448AFF !important}.blue.accent-3{background-color:#2979FF !important}.blue-text.text-accent-3{color:#2979FF !important}.blue.accent-4{background-color:#2962FF !important}.blue-text.text-accent-4{color:#2962FF !important}.light-blue{background-color:#03a9f4 !important}.light-blue-text{color:#03a9f4 !important}.light-blue.lighten-5{background-color:#e1f5fe !important}.light-blue-text.text-lighten-5{color:#e1f5fe !important}.light-blue.lighten-4{background-color:#b3e5fc !important}.light-blue-text.text-lighten-4{color:#b3e5fc !important}.light-blue.lighten-3{background-color:#81d4fa !important}.light-blue-text.text-lighten-3{color:#81d4fa !important}.light-blue.lighten-2{background-color:#4fc3f7 !important}.light-blue-text.text-lighten-2{color:#4fc3f7 !important}.light-blue.lighten-1{background-color:#29b6f6 !important}.light-blue-text.text-lighten-1{color:#29b6f6 !important}.light-blue.darken-1{background-color:#039be5 !important}.light-blue-text.text-darken-1{color:#039be5 !important}.light-blue.darken-2{background-color:#0288d1 !important}.light-blue-text.text-darken-2{color:#0288d1 !important}.light-blue.darken-3{background-color:#0277bd !important}.light-blue-text.text-darken-3{color:#0277bd !important}.light-blue.darken-4{background-color:#01579b !important}.light-blue-text.text-darken-4{color:#01579b !important}.light-blue.accent-1{background-color:#80d8ff !important}.light-blue-text.text-accent-1{color:#80d8ff !important}.light-blue.accent-2{background-color:#40c4ff !important}.light-blue-text.text-accent-2{color:#40c4ff !important}.light-blue.accent-3{background-color:#00b0ff !important}.light-blue-text.text-accent-3{color:#00b0ff !important}.light-blue.accent-4{background-color:#0091ea !important}.light-blue-text.text-accent-4{color:#0091ea !important}.cyan{background-color:#00bcd4 !important}.cyan-text{color:#00bcd4 !important}.cyan.lighten-5{background-color:#e0f7fa !important}.cyan-text.text-lighten-5{color:#e0f7fa !important}.cyan.lighten-4{background-color:#b2ebf2 !important}.cyan-text.text-lighten-4{color:#b2ebf2 !important}.cyan.lighten-3{background-color:#80deea !important}.cyan-text.text-lighten-3{color:#80deea !important}.cyan.lighten-2{background-color:#4dd0e1 !important}.cyan-text.text-lighten-2{color:#4dd0e1 !important}.cyan.lighten-1{background-color:#26c6da !important}.cyan-text.text-lighten-1{color:#26c6da !important}.cyan.darken-1{background-color:#00acc1 !important}.cyan-text.text-darken-1{color:#00acc1 !important}.cyan.darken-2{background-color:#0097a7 !important}.cyan-text.text-darken-2{color:#0097a7 !important}.cyan.darken-3{background-color:#00838f !important}.cyan-text.text-darken-3{color:#00838f !important}.cyan.darken-4{background-color:#006064 !important}.cyan-text.text-darken-4{color:#006064 !important}.cyan.accent-1{background-color:#84ffff !important}.cyan-text.text-accent-1{color:#84ffff !important}.cyan.accent-2{background-color:#18ffff !important}.cyan-text.text-accent-2{color:#18ffff !important}.cyan.accent-3{background-color:#00e5ff !important}.cyan-text.text-accent-3{color:#00e5ff !important}.cyan.accent-4{background-color:#00b8d4 !important}.cyan-text.text-accent-4{color:#00b8d4 !important}.teal{background-color:#009688 !important}.teal-text{color:#009688 !important}.teal.lighten-5{background-color:#e0f2f1 !important}.teal-text.text-lighten-5{color:#e0f2f1 !important}.teal.lighten-4{background-color:#b2dfdb !important}.teal-text.text-lighten-4{color:#b2dfdb !important}.teal.lighten-3{background-color:#80cbc4 !important}.teal-text.text-lighten-3{color:#80cbc4 !important}.teal.lighten-2{background-color:#4db6ac !important}.teal-text.text-lighten-2{color:#4db6ac !important}.teal.lighten-1{background-color:#26a69a !important}.teal-text.text-lighten-1{color:#26a69a !important}.teal.darken-1{background-color:#00897b !important}.teal-text.text-darken-1{color:#00897b !important}.teal.darken-2{background-color:#00796b !important}.teal-text.text-darken-2{color:#00796b !important}.teal.darken-3{background-color:#00695c !important}.teal-text.text-darken-3{color:#00695c !important}.teal.darken-4{background-color:#004d40 !important}.teal-text.text-darken-4{color:#004d40 !important}.teal.accent-1{background-color:#a7ffeb !important}.teal-text.text-accent-1{color:#a7ffeb !important}.teal.accent-2{background-color:#64ffda !important}.teal-text.text-accent-2{color:#64ffda !important}.teal.accent-3{background-color:#1de9b6 !important}.teal-text.text-accent-3{color:#1de9b6 !important}.teal.accent-4{background-color:#00bfa5 !important}.teal-text.text-accent-4{color:#00bfa5 !important}.green{background-color:#4CAF50 !important}.green-text{color:#4CAF50 !important}.green.lighten-5{background-color:#E8F5E9 !important}.green-text.text-lighten-5{color:#E8F5E9 !important}.green.lighten-4{background-color:#C8E6C9 !important}.green-text.text-lighten-4{color:#C8E6C9 !important}.green.lighten-3{background-color:#A5D6A7 !important}.green-text.text-lighten-3{color:#A5D6A7 !important}.green.lighten-2{background-color:#81C784 !important}.green-text.text-lighten-2{color:#81C784 !important}.green.lighten-1{background-color:#66BB6A !important}.green-text.text-lighten-1{color:#66BB6A !important}.green.darken-1{background-color:#43A047 !important}.green-text.text-darken-1{color:#43A047 !important}.green.darken-2{background-color:#388E3C !important}.green-text.text-darken-2{color:#388E3C !important}.green.darken-3{background-color:#2E7D32 !important}.green-text.text-darken-3{color:#2E7D32 !important}.green.darken-4{background-color:#1B5E20 !important}.green-text.text-darken-4{color:#1B5E20 !important}.green.accent-1{background-color:#B9F6CA !important}.green-text.text-accent-1{color:#B9F6CA !important}.green.accent-2{background-color:#69F0AE !important}.green-text.text-accent-2{color:#69F0AE !important}.green.accent-3{background-color:#00E676 !important}.green-text.text-accent-3{color:#00E676 !important}.green.accent-4{background-color:#00C853 !important}.green-text.text-accent-4{color:#00C853 !important}.light-green{background-color:#8bc34a !important}.light-green-text{color:#8bc34a !important}.light-green.lighten-5{background-color:#f1f8e9 !important}.light-green-text.text-lighten-5{color:#f1f8e9 !important}.light-green.lighten-4{background-color:#dcedc8 !important}.light-green-text.text-lighten-4{color:#dcedc8 !important}.light-green.lighten-3{background-color:#c5e1a5 !important}.light-green-text.text-lighten-3{color:#c5e1a5 !important}.light-green.lighten-2{background-color:#aed581 !important}.light-green-text.text-lighten-2{color:#aed581 !important}.light-green.lighten-1{background-color:#9ccc65 !important}.light-green-text.text-lighten-1{color:#9ccc65 !important}.light-green.darken-1{background-color:#7cb342 !important}.light-green-text.text-darken-1{color:#7cb342 !important}.light-green.darken-2{background-color:#689f38 !important}.light-green-text.text-darken-2{color:#689f38 !important}.light-green.darken-3{background-color:#558b2f !important}.light-green-text.text-darken-3{color:#558b2f !important}.light-green.darken-4{background-color:#33691e !important}.light-green-text.text-darken-4{color:#33691e !important}.light-green.accent-1{background-color:#ccff90 !important}.light-green-text.text-accent-1{color:#ccff90 !important}.light-green.accent-2{background-color:#b2ff59 !important}.light-green-text.text-accent-2{color:#b2ff59 !important}.light-green.accent-3{background-color:#76ff03 !important}.light-green-text.text-accent-3{color:#76ff03 !important}.light-green.accent-4{background-color:#64dd17 !important}.light-green-text.text-accent-4{color:#64dd17 !important}.lime{background-color:#cddc39 !important}.lime-text{color:#cddc39 !important}.lime.lighten-5{background-color:#f9fbe7 !important}.lime-text.text-lighten-5{color:#f9fbe7 !important}.lime.lighten-4{background-color:#f0f4c3 !important}.lime-text.text-lighten-4{color:#f0f4c3 !important}.lime.lighten-3{background-color:#e6ee9c !important}.lime-text.text-lighten-3{color:#e6ee9c !important}.lime.lighten-2{background-color:#dce775 !important}.lime-text.text-lighten-2{color:#dce775 !important}.lime.lighten-1{background-color:#d4e157 !important}.lime-text.text-lighten-1{color:#d4e157 !important}.lime.darken-1{background-color:#c0ca33 !important}.lime-text.text-darken-1{color:#c0ca33 !important}.lime.darken-2{background-color:#afb42b !important}.lime-text.text-darken-2{color:#afb42b !important}.lime.darken-3{background-color:#9e9d24 !important}.lime-text.text-darken-3{color:#9e9d24 !important}.lime.darken-4{background-color:#827717 !important}.lime-text.text-darken-4{color:#827717 !important}.lime.accent-1{background-color:#f4ff81 !important}.lime-text.text-accent-1{color:#f4ff81 !important}.lime.accent-2{background-color:#eeff41 !important}.lime-text.text-accent-2{color:#eeff41 !important}.lime.accent-3{background-color:#c6ff00 !important}.lime-text.text-accent-3{color:#c6ff00 !important}.lime.accent-4{background-color:#aeea00 !important}.lime-text.text-accent-4{color:#aeea00 !important}.yellow{background-color:#ffeb3b !important}.yellow-text{color:#ffeb3b !important}.yellow.lighten-5{background-color:#fffde7 !important}.yellow-text.text-lighten-5{color:#fffde7 !important}.yellow.lighten-4{background-color:#fff9c4 !important}.yellow-text.text-lighten-4{color:#fff9c4 !important}.yellow.lighten-3{background-color:#fff59d !important}.yellow-text.text-lighten-3{color:#fff59d !important}.yellow.lighten-2{background-color:#fff176 !important}.yellow-text.text-lighten-2{color:#fff176 !important}.yellow.lighten-1{background-color:#ffee58 !important}.yellow-text.text-lighten-1{color:#ffee58 !important}.yellow.darken-1{background-color:#fdd835 !important}.yellow-text.text-darken-1{color:#fdd835 !important}.yellow.darken-2{background-color:#fbc02d !important}.yellow-text.text-darken-2{color:#fbc02d !important}.yellow.darken-3{background-color:#f9a825 !important}.yellow-text.text-darken-3{color:#f9a825 !important}.yellow.darken-4{background-color:#f57f17 !important}.yellow-text.text-darken-4{color:#f57f17 !important}.yellow.accent-1{background-color:#ffff8d !important}.yellow-text.text-accent-1{color:#ffff8d !important}.yellow.accent-2{background-color:#ff0 !important}.yellow-text.text-accent-2{color:#ff0 !important}.yellow.accent-3{background-color:#ffea00 !important}.yellow-text.text-accent-3{color:#ffea00 !important}.yellow.accent-4{background-color:#ffd600 !important}.yellow-text.text-accent-4{color:#ffd600 !important}.amber{background-color:#ffc107 !important}.amber-text{color:#ffc107 !important}.amber.lighten-5{background-color:#fff8e1 !important}.amber-text.text-lighten-5{color:#fff8e1 !important}.amber.lighten-4{background-color:#ffecb3 !important}.amber-text.text-lighten-4{color:#ffecb3 !important}.amber.lighten-3{background-color:#ffe082 !important}.amber-text.text-lighten-3{color:#ffe082 !important}.amber.lighten-2{background-color:#ffd54f !important}.amber-text.text-lighten-2{color:#ffd54f !important}.amber.lighten-1{background-color:#ffca28 !important}.amber-text.text-lighten-1{color:#ffca28 !important}.amber.darken-1{background-color:#ffb300 !important}.amber-text.text-darken-1{color:#ffb300 !important}.amber.darken-2{background-color:#ffa000 !important}.amber-text.text-darken-2{color:#ffa000 !important}.amber.darken-3{background-color:#ff8f00 !important}.amber-text.text-darken-3{color:#ff8f00 !important}.amber.darken-4{background-color:#ff6f00 !important}.amber-text.text-darken-4{color:#ff6f00 !important}.amber.accent-1{background-color:#ffe57f !important}.amber-text.text-accent-1{color:#ffe57f !important}.amber.accent-2{background-color:#ffd740 !important}.amber-text.text-accent-2{color:#ffd740 !important}.amber.accent-3{background-color:#ffc400 !important}.amber-text.text-accent-3{color:#ffc400 !important}.amber.accent-4{background-color:#ffab00 !important}.amber-text.text-accent-4{color:#ffab00 !important}.orange{background-color:#ff9800 !important}.orange-text{color:#ff9800 !important}.orange.lighten-5{background-color:#fff3e0 !important}.orange-text.text-lighten-5{color:#fff3e0 !important}.orange.lighten-4{background-color:#ffe0b2 !important}.orange-text.text-lighten-4{color:#ffe0b2 !important}.orange.lighten-3{background-color:#ffcc80 !important}.orange-text.text-lighten-3{color:#ffcc80 !important}.orange.lighten-2{background-color:#ffb74d !important}.orange-text.text-lighten-2{color:#ffb74d !important}.orange.lighten-1{background-color:#ffa726 !important}.orange-text.text-lighten-1{color:#ffa726 !important}.orange.darken-1{background-color:#fb8c00 !important}.orange-text.text-darken-1{color:#fb8c00 !important}.orange.darken-2{background-color:#f57c00 !important}.orange-text.text-darken-2{color:#f57c00 !important}.orange.darken-3{background-color:#ef6c00 !important}.orange-text.text-darken-3{color:#ef6c00 !important}.orange.darken-4{background-color:#e65100 !important}.orange-text.text-darken-4{color:#e65100 !important}.orange.accent-1{background-color:#ffd180 !important}.orange-text.text-accent-1{color:#ffd180 !important}.orange.accent-2{background-color:#ffab40 !important}.orange-text.text-accent-2{color:#ffab40 !important}.orange.accent-3{background-color:#ff9100 !important}.orange-text.text-accent-3{color:#ff9100 !important}.orange.accent-4{background-color:#ff6d00 !important}.orange-text.text-accent-4{color:#ff6d00 !important}.deep-orange{background-color:#ff5722 !important}.deep-orange-text{color:#ff5722 !important}.deep-orange.lighten-5{background-color:#fbe9e7 !important}.deep-orange-text.text-lighten-5{color:#fbe9e7 !important}.deep-orange.lighten-4{background-color:#ffccbc !important}.deep-orange-text.text-lighten-4{color:#ffccbc !important}.deep-orange.lighten-3{background-color:#ffab91 !important}.deep-orange-text.text-lighten-3{color:#ffab91 !important}.deep-orange.lighten-2{background-color:#ff8a65 !important}.deep-orange-text.text-lighten-2{color:#ff8a65 !important}.deep-orange.lighten-1{background-color:#ff7043 !important}.deep-orange-text.text-lighten-1{color:#ff7043 !important}.deep-orange.darken-1{background-color:#f4511e !important}.deep-orange-text.text-darken-1{color:#f4511e !important}.deep-orange.darken-2{background-color:#e64a19 !important}.deep-orange-text.text-darken-2{color:#e64a19 !important}.deep-orange.darken-3{background-color:#d84315 !important}.deep-orange-text.text-darken-3{color:#d84315 !important}.deep-orange.darken-4{background-color:#bf360c !important}.deep-orange-text.text-darken-4{color:#bf360c !important}.deep-orange.accent-1{background-color:#ff9e80 !important}.deep-orange-text.text-accent-1{color:#ff9e80 !important}.deep-orange.accent-2{background-color:#ff6e40 !important}.deep-orange-text.text-accent-2{color:#ff6e40 !important}.deep-orange.accent-3{background-color:#ff3d00 !important}.deep-orange-text.text-accent-3{color:#ff3d00 !important}.deep-orange.accent-4{background-color:#dd2c00 !important}.deep-orange-text.text-accent-4{color:#dd2c00 !important}.brown{background-color:#795548 !important}.brown-text{color:#795548 !important}.brown.lighten-5{background-color:#efebe9 !important}.brown-text.text-lighten-5{color:#efebe9 !important}.brown.lighten-4{background-color:#d7ccc8 !important}.brown-text.text-lighten-4{color:#d7ccc8 !important}.brown.lighten-3{background-color:#bcaaa4 !important}.brown-text.text-lighten-3{color:#bcaaa4 !important}.brown.lighten-2{background-color:#a1887f !important}.brown-text.text-lighten-2{color:#a1887f !important}.brown.lighten-1{background-color:#8d6e63 !important}.brown-text.text-lighten-1{color:#8d6e63 !important}.brown.darken-1{background-color:#6d4c41 !important}.brown-text.text-darken-1{color:#6d4c41 !important}.brown.darken-2{background-color:#5d4037 !important}.brown-text.text-darken-2{color:#5d4037 !important}.brown.darken-3{background-color:#4e342e !important}.brown-text.text-darken-3{color:#4e342e !important}.brown.darken-4{background-color:#3e2723 !important}.brown-text.text-darken-4{color:#3e2723 !important}.blue-grey{background-color:#607d8b !important}.blue-grey-text{color:#607d8b !important}.blue-grey.lighten-5{background-color:#eceff1 !important}.blue-grey-text.text-lighten-5{color:#eceff1 !important}.blue-grey.lighten-4{background-color:#cfd8dc !important}.blue-grey-text.text-lighten-4{color:#cfd8dc !important}.blue-grey.lighten-3{background-color:#b0bec5 !important}.blue-grey-text.text-lighten-3{color:#b0bec5 !important}.blue-grey.lighten-2{background-color:#90a4ae !important}.blue-grey-text.text-lighten-2{color:#90a4ae !important}.blue-grey.lighten-1{background-color:#78909c !important}.blue-grey-text.text-lighten-1{color:#78909c !important}.blue-grey.darken-1{background-color:#546e7a !important}.blue-grey-text.text-darken-1{color:#546e7a !important}.blue-grey.darken-2{background-color:#455a64 !important}.blue-grey-text.text-darken-2{color:#455a64 !important}.blue-grey.darken-3{background-color:#37474f !important}.blue-grey-text.text-darken-3{color:#37474f !important}.blue-grey.darken-4{background-color:#263238 !important}.blue-grey-text.text-darken-4{color:#263238 !important}.grey{background-color:#9e9e9e !important}.grey-text{color:#9e9e9e !important}.grey.lighten-5{background-color:#fafafa !important}.grey-text.text-lighten-5{color:#fafafa !important}.grey.lighten-4{background-color:#f5f5f5 !important}.grey-text.text-lighten-4{color:#f5f5f5 !important}.grey.lighten-3{background-color:#eee !important}.grey-text.text-lighten-3{color:#eee !important}.grey.lighten-2{background-color:#e0e0e0 !important}.grey-text.text-lighten-2{color:#e0e0e0 !important}.grey.lighten-1{background-color:#bdbdbd !important}.grey-text.text-lighten-1{color:#bdbdbd !important}.grey.darken-1{background-color:#757575 !important}.grey-text.text-darken-1{color:#757575 !important}.grey.darken-2{background-color:#616161 !important}.grey-text.text-darken-2{color:#616161 !important}.grey.darken-3{background-color:#424242 !important}.grey-text.text-darken-3{color:#424242 !important}.grey.darken-4{background-color:#212121 !important}.grey-text.text-darken-4{color:#212121 !important}.black{background-color:#000 !important}.black-text{color:#000 !important}.white{background-color:#fff !important}.white-text{color:#fff !important}.transparent{background-color:rgba(0,0,0,0) !important}.transparent-text{color:rgba(0,0,0,0) !important}/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:0.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;-moz-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,*:before,*:after{-webkit-box-sizing:inherit;box-sizing:inherit}button,input,optgroup,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}ul:not(.browser-default){padding-left:0;list-style-type:none}ul:not(.browser-default)>li{list-style-type:none}a{color:#039be5;text-decoration:none;-webkit-tap-highlight-color:transparent}.valign-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.clearfix{clear:both}.z-depth-0{-webkit-box-shadow:none !important;box-shadow:none !important}.z-depth-1,nav,.card-panel,.card,.toast,.btn,.btn-large,.btn-small,.btn-floating,.dropdown-content,.collapsible,.sidenav{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2)}.z-depth-1-half,.btn:hover,.btn-large:hover,.btn-small:hover,.btn-floating:hover{-webkit-box-shadow:0 3px 3px 0 rgba(0,0,0,0.14),0 1px 7px 0 rgba(0,0,0,0.12),0 3px 1px -1px rgba(0,0,0,0.2);box-shadow:0 3px 3px 0 rgba(0,0,0,0.14),0 1px 7px 0 rgba(0,0,0,0.12),0 3px 1px -1px rgba(0,0,0,0.2)}.z-depth-2{-webkit-box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.3);box-shadow:0 4px 5px 0 rgba(0,0,0,0.14),0 1px 10px 0 rgba(0,0,0,0.12),0 2px 4px -1px rgba(0,0,0,0.3)}.z-depth-3{-webkit-box-shadow:0 8px 17px 2px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.2);box-shadow:0 8px 17px 2px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.2)}.z-depth-4{-webkit-box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -7px rgba(0,0,0,0.2);box-shadow:0 16px 24px 2px rgba(0,0,0,0.14),0 6px 30px 5px rgba(0,0,0,0.12),0 8px 10px -7px rgba(0,0,0,0.2)}.z-depth-5,.modal{-webkit-box-shadow:0 24px 38px 3px rgba(0,0,0,0.14),0 9px 46px 8px rgba(0,0,0,0.12),0 11px 15px -7px rgba(0,0,0,0.2);box-shadow:0 24px 38px 3px rgba(0,0,0,0.14),0 9px 46px 8px rgba(0,0,0,0.12),0 11px 15px -7px rgba(0,0,0,0.2)}.hoverable{-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s}.hoverable:hover{-webkit-box-shadow:0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);box-shadow:0 8px 17px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)}.divider{height:1px;overflow:hidden;background-color:#e0e0e0}blockquote{margin:20px 0;padding-left:1.5rem;border-left:5px solid #ee6e73}i{line-height:inherit}i.left{float:left;margin-right:15px}i.right{float:right;margin-left:15px}i.tiny{font-size:1rem}i.small{font-size:2rem}i.medium{font-size:4rem}i.large{font-size:6rem}img.responsive-img,video.responsive-video{max-width:100%;height:auto}.pagination li{display:inline-block;border-radius:2px;text-align:center;vertical-align:top;height:30px}.pagination li a{color:#444;display:inline-block;font-size:1.2rem;padding:0 10px;line-height:30px}.pagination li.active a{color:#fff}.pagination li.active{background-color:#ee6e73}.pagination li.disabled a{cursor:default;color:#999}.pagination li i{font-size:2rem}.pagination li.pages ul li{display:inline-block;float:none}@media only screen and (max-width: 992px){.pagination{width:100%}.pagination li.prev,.pagination li.next{width:10%}.pagination li.pages{width:80%;overflow:hidden;white-space:nowrap}}.breadcrumb{font-size:18px;color:rgba(255,255,255,0.7)}.breadcrumb i,.breadcrumb [class^="mdi-"],.breadcrumb [class*="mdi-"],.breadcrumb i.material-icons{display:inline-block;float:left;font-size:24px}.breadcrumb:before{content:'\E5CC';color:rgba(255,255,255,0.7);vertical-align:top;display:inline-block;font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:25px;margin:0 10px 0 8px;-webkit-font-smoothing:antialiased}.breadcrumb:first-child:before{display:none}.breadcrumb:last-child{color:#fff}.parallax-container{position:relative;overflow:hidden;height:500px}.parallax-container .parallax{position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1}.parallax-container .parallax img{opacity:0;position:absolute;left:50%;bottom:0;min-width:100%;min-height:100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pin-top,.pin-bottom{position:relative}.pinned{position:fixed !important}ul.staggered-list li{opacity:0}.fade-in{opacity:0;-webkit-transform-origin:0 50%;transform-origin:0 50%}@media only screen and (max-width: 600px){.hide-on-small-only,.hide-on-small-and-down{display:none !important}}@media only screen and (max-width: 992px){.hide-on-med-and-down{display:none !important}}@media only screen and (min-width: 601px){.hide-on-med-and-up{display:none !important}}@media only screen and (min-width: 600px) and (max-width: 992px){.hide-on-med-only{display:none !important}}@media only screen and (min-width: 993px){.hide-on-large-only{display:none !important}}@media only screen and (min-width: 1201px){.hide-on-extra-large-only{display:none !important}}@media only screen and (min-width: 1201px){.show-on-extra-large{display:block !important}}@media only screen and (min-width: 993px){.show-on-large{display:block !important}}@media only screen and (min-width: 600px) and (max-width: 992px){.show-on-medium{display:block !important}}@media only screen and (max-width: 600px){.show-on-small{display:block !important}}@media only screen and (min-width: 601px){.show-on-medium-and-up{display:block !important}}@media only screen and (max-width: 992px){.show-on-medium-and-down{display:block !important}}@media only screen and (max-width: 600px){.center-on-small-only{text-align:center}}.page-footer{padding-top:20px;color:#fff;background-color:#ee6e73}.page-footer .footer-copyright{overflow:hidden;min-height:50px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:10px 0px;color:rgba(255,255,255,0.8);background-color:rgba(51,51,51,0.08)}table,th,td{border:none}table{width:100%;display:table;border-collapse:collapse;border-spacing:0}table.striped tr{border-bottom:none}table.striped>tbody>tr:nth-child(odd){background-color:rgba(242,242,242,0.5)}table.striped>tbody>tr>td{border-radius:0}table.highlight>tbody>tr{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}table.highlight>tbody>tr:hover{background-color:rgba(242,242,242,0.5)}table.centered thead tr th,table.centered tbody tr td{text-align:center}
|
7 |
+
/* tr{border-bottom:1px solid rgba(0,0,0,0.12)} */
|
8 |
+
td,th{padding:15px 5px;display:table-cell;text-align:left;vertical-align:middle;border-radius:2px}@media only screen and (max-width: 992px){table.responsive-table{width:100%;border-collapse:collapse;border-spacing:0;display:block;position:relative}table.responsive-table td:empty:before{content:'\00a0'}table.responsive-table th,table.responsive-table td{margin:0;vertical-align:top}table.responsive-table th{text-align:left}table.responsive-table thead{display:block;float:left}table.responsive-table thead tr{display:block;padding:0 10px 0 0}table.responsive-table thead tr th::before{content:"\00a0"}table.responsive-table tbody{display:block;width:auto;position:relative;overflow-x:auto;white-space:nowrap}table.responsive-table tbody tr{display:inline-block;vertical-align:top}table.responsive-table th{display:block;text-align:right}table.responsive-table td{display:block;min-height:1.25em;text-align:left}table.responsive-table tr{border-bottom:none;padding:0 10px}table.responsive-table thead{border:0;border-right:1px solid rgba(0,0,0,0.12)}}.collection{margin:.5rem 0 1rem 0;border:1px solid #e0e0e0;border-radius:2px;overflow:hidden;position:relative}.collection .collection-item{background-color:#fff;line-height:1.5rem;padding:10px 20px;margin:0;border-bottom:1px solid #e0e0e0}.collection .collection-item.avatar{min-height:84px;padding-left:72px;position:relative}.collection .collection-item.avatar:not(.circle-clipper)>.circle,.collection .collection-item.avatar :not(.circle-clipper)>.circle{position:absolute;width:42px;height:42px;overflow:hidden;left:15px;display:inline-block;vertical-align:middle}.collection .collection-item.avatar i.circle{font-size:18px;line-height:42px;color:#fff;background-color:#999;text-align:center}.collection .collection-item.avatar .title{font-size:16px}.collection .collection-item.avatar p{margin:0}.collection .collection-item.avatar .secondary-content{position:absolute;top:16px;right:16px}.collection .collection-item:last-child{border-bottom:none}.collection .collection-item.active{background-color:#26a69a;color:#eafaf9}.collection .collection-item.active .secondary-content{color:#fff}.collection a.collection-item{display:block;-webkit-transition:.25s;transition:.25s;color:#26a69a}.collection a.collection-item:not(.active):hover{background-color:#ddd}.collection.with-header .collection-header{background-color:#fff;border-bottom:1px solid #e0e0e0;padding:10px 20px}.collection.with-header .collection-item{padding-left:30px}.collection.with-header .collection-item.avatar{padding-left:72px}.secondary-content{float:right;color:#26a69a}.collapsible .collection{margin:0;border:none}.video-container{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.video-container iframe,.video-container object,.video-container embed{position:absolute;top:0;left:0;width:100%;height:100%}.progress{position:relative;height:4px;display:block;width:100%;background-color:#acece6;border-radius:2px;margin:.5rem 0 1rem 0;overflow:hidden}.progress .determinate{position:absolute;top:0;left:0;bottom:0;background-color:#26a69a;-webkit-transition:width .3s linear;transition:width .3s linear}.progress .indeterminate{background-color:#26a69a}.progress .indeterminate:before{content:'';position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left, right;-webkit-animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.progress .indeterminate:after{content:'';position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left, right;-webkit-animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}@-webkit-keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@-webkit-keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}.hide{display:none !important}.left-align{text-align:left}.right-align{text-align:right}.center,.center-align{text-align:center}.left{float:left !important}.right{float:right !important}.no-select,input[type=range],input[type=range]+.thumb{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.circle{border-radius:50%}.center-block{display:block;margin-left:auto;margin-right:auto}.truncate{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.no-padding{padding:0 !important}span.badge{min-width:3rem;padding:0 6px;margin-left:14px;text-align:center;font-size:1rem;line-height:22px;height:22px;color:#757575;float:right;-webkit-box-sizing:border-box;box-sizing:border-box}span.badge.new{font-weight:300;font-size:0.8rem;color:#fff;background-color:#26a69a;border-radius:2px}span.badge.new:after{content:" new"}span.badge[data-badge-caption]::after{content:" " attr(data-badge-caption)}nav ul a span.badge{display:inline-block;float:none;margin-left:4px;line-height:22px;height:22px;-webkit-font-smoothing:auto}.collection-item span.badge{margin-top:calc(.75rem - 11px)}.collapsible span.badge{margin-left:auto}.sidenav span.badge{margin-top:calc(24px - 11px)}table span.badge{display:inline-block;float:none;margin-left:auto}.material-icons{text-rendering:optimizeLegibility;-webkit-font-feature-settings:'liga';-moz-font-feature-settings:'liga';font-feature-settings:'liga'}.container{margin:0 auto;max-width:1280px;width:90%}@media only screen and (min-width: 601px){.container{width:85%}}@media only screen and (min-width: 993px){.container{width:70%}}.col .row{margin-left:-.75rem;margin-right:-.75rem}.section{padding-top:1rem;padding-bottom:1rem}.section.no-pad{padding:0}.section.no-pad-bot{padding-bottom:0}.section.no-pad-top{padding-top:0}.row{margin-left:auto;margin-right:auto;margin-bottom:20px}.row:after{content:"";display:table;clear:both}.row .col{float:left;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 .75rem;min-height:1px}.row .col[class*="push-"],.row .col[class*="pull-"]{position:relative}.row .col.s1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.s4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.s7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.s10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.s11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.s12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-s1{margin-left:8.3333333333%}.row .col.pull-s1{right:8.3333333333%}.row .col.push-s1{left:8.3333333333%}.row .col.offset-s2{margin-left:16.6666666667%}.row .col.pull-s2{right:16.6666666667%}.row .col.push-s2{left:16.6666666667%}.row .col.offset-s3{margin-left:25%}.row .col.pull-s3{right:25%}.row .col.push-s3{left:25%}.row .col.offset-s4{margin-left:33.3333333333%}.row .col.pull-s4{right:33.3333333333%}.row .col.push-s4{left:33.3333333333%}.row .col.offset-s5{margin-left:41.6666666667%}.row .col.pull-s5{right:41.6666666667%}.row .col.push-s5{left:41.6666666667%}.row .col.offset-s6{margin-left:50%}.row .col.pull-s6{right:50%}.row .col.push-s6{left:50%}.row .col.offset-s7{margin-left:58.3333333333%}.row .col.pull-s7{right:58.3333333333%}.row .col.push-s7{left:58.3333333333%}.row .col.offset-s8{margin-left:66.6666666667%}.row .col.pull-s8{right:66.6666666667%}.row .col.push-s8{left:66.6666666667%}.row .col.offset-s9{margin-left:75%}.row .col.pull-s9{right:75%}.row .col.push-s9{left:75%}.row .col.offset-s10{margin-left:83.3333333333%}.row .col.pull-s10{right:83.3333333333%}.row .col.push-s10{left:83.3333333333%}.row .col.offset-s11{margin-left:91.6666666667%}.row .col.pull-s11{right:91.6666666667%}.row .col.push-s11{left:91.6666666667%}.row .col.offset-s12{margin-left:100%}.row .col.pull-s12{right:100%}.row .col.push-s12{left:100%}@media only screen and (min-width: 601px){.row .col.m1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.m4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.m7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.m10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.m11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.m12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-m1{margin-left:8.3333333333%}.row .col.pull-m1{right:8.3333333333%}.row .col.push-m1{left:8.3333333333%}.row .col.offset-m2{margin-left:16.6666666667%}.row .col.pull-m2{right:16.6666666667%}.row .col.push-m2{left:16.6666666667%}.row .col.offset-m3{margin-left:25%}.row .col.pull-m3{right:25%}.row .col.push-m3{left:25%}.row .col.offset-m4{margin-left:33.3333333333%}.row .col.pull-m4{right:33.3333333333%}.row .col.push-m4{left:33.3333333333%}.row .col.offset-m5{margin-left:41.6666666667%}.row .col.pull-m5{right:41.6666666667%}.row .col.push-m5{left:41.6666666667%}.row .col.offset-m6{margin-left:50%}.row .col.pull-m6{right:50%}.row .col.push-m6{left:50%}.row .col.offset-m7{margin-left:58.3333333333%}.row .col.pull-m7{right:58.3333333333%}.row .col.push-m7{left:58.3333333333%}.row .col.offset-m8{margin-left:66.6666666667%}.row .col.pull-m8{right:66.6666666667%}.row .col.push-m8{left:66.6666666667%}.row .col.offset-m9{margin-left:75%}.row .col.pull-m9{right:75%}.row .col.push-m9{left:75%}.row .col.offset-m10{margin-left:83.3333333333%}.row .col.pull-m10{right:83.3333333333%}.row .col.push-m10{left:83.3333333333%}.row .col.offset-m11{margin-left:91.6666666667%}.row .col.pull-m11{right:91.6666666667%}.row .col.push-m11{left:91.6666666667%}.row .col.offset-m12{margin-left:100%}.row .col.pull-m12{right:100%}.row .col.push-m12{left:100%}}@media only screen and (min-width: 993px){.row .col.l1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.l4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.l7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.l10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.l11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.l12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-l1{margin-left:8.3333333333%}.row .col.pull-l1{right:8.3333333333%}.row .col.push-l1{left:8.3333333333%}.row .col.offset-l2{margin-left:16.6666666667%}.row .col.pull-l2{right:16.6666666667%}.row .col.push-l2{left:16.6666666667%}.row .col.offset-l3{margin-left:25%}.row .col.pull-l3{right:25%}.row .col.push-l3{left:25%}.row .col.offset-l4{margin-left:33.3333333333%}.row .col.pull-l4{right:33.3333333333%}.row .col.push-l4{left:33.3333333333%}.row .col.offset-l5{margin-left:41.6666666667%}.row .col.pull-l5{right:41.6666666667%}.row .col.push-l5{left:41.6666666667%}.row .col.offset-l6{margin-left:50%}.row .col.pull-l6{right:50%}.row .col.push-l6{left:50%}.row .col.offset-l7{margin-left:58.3333333333%}.row .col.pull-l7{right:58.3333333333%}.row .col.push-l7{left:58.3333333333%}.row .col.offset-l8{margin-left:66.6666666667%}.row .col.pull-l8{right:66.6666666667%}.row .col.push-l8{left:66.6666666667%}.row .col.offset-l9{margin-left:75%}.row .col.pull-l9{right:75%}.row .col.push-l9{left:75%}.row .col.offset-l10{margin-left:83.3333333333%}.row .col.pull-l10{right:83.3333333333%}.row .col.push-l10{left:83.3333333333%}.row .col.offset-l11{margin-left:91.6666666667%}.row .col.pull-l11{right:91.6666666667%}.row .col.push-l11{left:91.6666666667%}.row .col.offset-l12{margin-left:100%}.row .col.pull-l12{right:100%}.row .col.push-l12{left:100%}}@media only screen and (min-width: 1201px){.row .col.xl1{width:8.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl2{width:16.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl3{width:25%;margin-left:auto;left:auto;right:auto}.row .col.xl4{width:33.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl5{width:41.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl6{width:50%;margin-left:auto;left:auto;right:auto}.row .col.xl7{width:58.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl8{width:66.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl9{width:75%;margin-left:auto;left:auto;right:auto}.row .col.xl10{width:83.3333333333%;margin-left:auto;left:auto;right:auto}.row .col.xl11{width:91.6666666667%;margin-left:auto;left:auto;right:auto}.row .col.xl12{width:100%;margin-left:auto;left:auto;right:auto}.row .col.offset-xl1{margin-left:8.3333333333%}.row .col.pull-xl1{right:8.3333333333%}.row .col.push-xl1{left:8.3333333333%}.row .col.offset-xl2{margin-left:16.6666666667%}.row .col.pull-xl2{right:16.6666666667%}.row .col.push-xl2{left:16.6666666667%}.row .col.offset-xl3{margin-left:25%}.row .col.pull-xl3{right:25%}.row .col.push-xl3{left:25%}.row .col.offset-xl4{margin-left:33.3333333333%}.row .col.pull-xl4{right:33.3333333333%}.row .col.push-xl4{left:33.3333333333%}.row .col.offset-xl5{margin-left:41.6666666667%}.row .col.pull-xl5{right:41.6666666667%}.row .col.push-xl5{left:41.6666666667%}.row .col.offset-xl6{margin-left:50%}.row .col.pull-xl6{right:50%}.row .col.push-xl6{left:50%}.row .col.offset-xl7{margin-left:58.3333333333%}.row .col.pull-xl7{right:58.3333333333%}.row .col.push-xl7{left:58.3333333333%}.row .col.offset-xl8{margin-left:66.6666666667%}.row .col.pull-xl8{right:66.6666666667%}.row .col.push-xl8{left:66.6666666667%}.row .col.offset-xl9{margin-left:75%}.row .col.pull-xl9{right:75%}.row .col.push-xl9{left:75%}.row .col.offset-xl10{margin-left:83.3333333333%}.row .col.pull-xl10{right:83.3333333333%}.row .col.push-xl10{left:83.3333333333%}.row .col.offset-xl11{margin-left:91.6666666667%}.row .col.pull-xl11{right:91.6666666667%}.row .col.push-xl11{left:91.6666666667%}.row .col.offset-xl12{margin-left:100%}.row .col.pull-xl12{right:100%}.row .col.push-xl12{left:100%}}nav{color:#fff;background-color:#ee6e73;width:100%;height:56px;line-height:56px}nav.nav-extended{height:auto}nav.nav-extended .nav-wrapper{min-height:56px;height:auto}nav.nav-extended .nav-content{position:relative;line-height:normal}nav a{color:#fff}nav i,nav [class^="mdi-"],nav [class*="mdi-"],nav i.material-icons{display:block;font-size:24px;height:56px;line-height:56px}nav .nav-wrapper{position:relative;height:100%}@media only screen and (min-width: 993px){nav a.sidenav-trigger{display:none}}nav .sidenav-trigger{float:left;position:relative;z-index:1;height:56px;margin:0 18px}nav .sidenav-trigger i{height:56px;line-height:56px}nav .brand-logo{position:absolute;color:#fff;display:inline-block;font-size:2.1rem;padding:0}nav .brand-logo.center{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}@media only screen and (max-width: 992px){nav .brand-logo{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}nav .brand-logo.left,nav .brand-logo.right{padding:0;-webkit-transform:none;transform:none}nav .brand-logo.left{left:0.5rem}nav .brand-logo.right{right:0.5rem;left:auto}}nav .brand-logo.right{right:0.5rem;padding:0}nav .brand-logo i,nav .brand-logo [class^="mdi-"],nav .brand-logo [class*="mdi-"],nav .brand-logo i.material-icons{float:left;margin-right:15px}nav .nav-title{display:inline-block;font-size:32px;padding:28px 0}nav ul{margin:0}nav ul li{-webkit-transition:background-color .3s;transition:background-color .3s;float:left;padding:0}nav ul li.active{background-color:rgba(0,0,0,0.1)}nav ul a{-webkit-transition:background-color .3s;transition:background-color .3s;font-size:1rem;color:#fff;display:block;padding:0 15px;cursor:pointer}nav ul a.btn,nav ul a.btn-large,nav ul a.btn-small,nav ul a.btn-large,nav ul a.btn-flat,nav ul a.btn-floating{margin-top:-2px;margin-left:15px;margin-right:15px}nav ul a.btn>.material-icons,nav ul a.btn-large>.material-icons,nav ul a.btn-small>.material-icons,nav ul a.btn-large>.material-icons,nav ul a.btn-flat>.material-icons,nav ul a.btn-floating>.material-icons{height:inherit;line-height:inherit}nav ul a:hover{background-color:rgba(0,0,0,0.1)}nav ul.left{float:left}nav form{height:100%}nav .input-field{margin:0;height:100%}nav .input-field input{height:100%;font-size:1.2rem;border:none;padding-left:2rem}nav .input-field input:focus,nav .input-field input[type=text]:valid,nav .input-field input[type=password]:valid,nav .input-field input[type=email]:valid,nav .input-field input[type=url]:valid,nav .input-field input[type=date]:valid{border:none;-webkit-box-shadow:none;box-shadow:none}nav .input-field label{top:0;left:0}nav .input-field label i{color:rgba(255,255,255,0.7);-webkit-transition:color .3s;transition:color .3s}nav .input-field label.active i{color:#fff}.navbar-fixed{position:relative;height:56px;z-index:997}.navbar-fixed nav{position:fixed}@media only screen and (min-width: 601px){nav.nav-extended .nav-wrapper{min-height:64px}nav,nav .nav-wrapper i,nav a.sidenav-trigger,nav a.sidenav-trigger i{height:64px;line-height:64px}.navbar-fixed{height:64px}}a{text-decoration:none}html{line-height:1.5;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:normal;color:rgba(0,0,0,0.87)}@media only screen and (min-width: 0){html{font-size:14px}}@media only screen and (min-width: 992px){html{font-size:14.5px}}@media only screen and (min-width: 1200px){html{font-size:15px}}h1,h2,h3,h4,h5,h6{font-weight:400;line-height:1.3}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{font-weight:inherit}h1{font-size:4.2rem;line-height:110%;margin:2.8rem 0 1.68rem 0}h2{font-size:3.56rem;line-height:110%;margin:2.3733333333rem 0 1.424rem 0}h3{font-size:2.92rem;line-height:110%;margin:1.9466666667rem 0 1.168rem 0}h4{font-size:2.28rem;line-height:110%;margin:1.52rem 0 .912rem 0}h5{font-size:1.64rem;line-height:110%;margin:1.0933333333rem 0 .656rem 0}h6{font-size:1.15rem;line-height:110%;margin:.7666666667rem 0 .46rem 0}em{font-style:italic}strong{font-weight:500}small{font-size:75%}.light{font-weight:300}.thin{font-weight:200}@media only screen and (min-width: 360px){.flow-text{font-size:1.2rem}}@media only screen and (min-width: 390px){.flow-text{font-size:1.224rem}}@media only screen and (min-width: 420px){.flow-text{font-size:1.248rem}}@media only screen and (min-width: 450px){.flow-text{font-size:1.272rem}}@media only screen and (min-width: 480px){.flow-text{font-size:1.296rem}}@media only screen and (min-width: 510px){.flow-text{font-size:1.32rem}}@media only screen and (min-width: 540px){.flow-text{font-size:1.344rem}}@media only screen and (min-width: 570px){.flow-text{font-size:1.368rem}}@media only screen and (min-width: 600px){.flow-text{font-size:1.392rem}}@media only screen and (min-width: 630px){.flow-text{font-size:1.416rem}}@media only screen and (min-width: 660px){.flow-text{font-size:1.44rem}}@media only screen and (min-width: 690px){.flow-text{font-size:1.464rem}}@media only screen and (min-width: 720px){.flow-text{font-size:1.488rem}}@media only screen and (min-width: 750px){.flow-text{font-size:1.512rem}}@media only screen and (min-width: 780px){.flow-text{font-size:1.536rem}}@media only screen and (min-width: 810px){.flow-text{font-size:1.56rem}}@media only screen and (min-width: 840px){.flow-text{font-size:1.584rem}}@media only screen and (min-width: 870px){.flow-text{font-size:1.608rem}}@media only screen and (min-width: 900px){.flow-text{font-size:1.632rem}}@media only screen and (min-width: 930px){.flow-text{font-size:1.656rem}}@media only screen and (min-width: 960px){.flow-text{font-size:1.68rem}}@media only screen and (max-width: 360px){.flow-text{font-size:1.2rem}}.scale-transition{-webkit-transition:-webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:-webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;transition:transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63), -webkit-transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important}.scale-transition.scale-out{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .2s !important;transition:-webkit-transform .2s !important;transition:transform .2s !important;transition:transform .2s, -webkit-transform .2s !important}.scale-transition.scale-in{-webkit-transform:scale(1);transform:scale(1)}.card-panel{-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s;padding:24px;margin:.5rem 0 1rem 0;border-radius:2px;background-color:#fff}.card{position:relative;margin:.5rem 0 1rem 0;background-color:#fff;-webkit-transition:-webkit-box-shadow .25s;transition:-webkit-box-shadow .25s;transition:box-shadow .25s;transition:box-shadow .25s, -webkit-box-shadow .25s;border-radius:2px}.card .card-title{font-size:24px;font-weight:300}.card .card-title.activator{cursor:pointer}.card.small,.card.medium,.card.large{position:relative}.card.small .card-image,.card.medium .card-image,.card.large .card-image{max-height:60%;overflow:hidden}.card.small .card-image+.card-content,.card.medium .card-image+.card-content,.card.large .card-image+.card-content{max-height:40%}.card.small .card-content,.card.medium .card-content,.card.large .card-content{max-height:100%;overflow:hidden}.card.small .card-action,.card.medium .card-action,.card.large .card-action{position:absolute;bottom:0;left:0;right:0}.card.small{height:300px}.card.medium{height:400px}.card.large{height:500px}.card.horizontal{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.card.horizontal.small .card-image,.card.horizontal.medium .card-image,.card.horizontal.large .card-image{height:100%;max-height:none;overflow:visible}.card.horizontal.small .card-image img,.card.horizontal.medium .card-image img,.card.horizontal.large .card-image img{height:100%}.card.horizontal .card-image{max-width:50%}.card.horizontal .card-image img{border-radius:2px 0 0 2px;max-width:100%;width:auto}.card.horizontal .card-stacked{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}.card.horizontal .card-stacked .card-content{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.card.sticky-action .card-action{z-index:2}.card.sticky-action .card-reveal{z-index:1;padding-bottom:64px}.card .card-image{position:relative}.card .card-image img{display:block;border-radius:2px 2px 0 0;position:relative;left:0;right:0;top:0;bottom:0;width:100%}.card .card-image .card-title{color:#fff;position:absolute;bottom:0;left:0;max-width:100%;padding:24px}.card .card-content{padding:24px;border-radius:0 0 2px 2px}.card .card-content p{margin:0}.card .card-content .card-title{display:block;line-height:32px;margin-bottom:8px}.card .card-content .card-title i{line-height:32px}.card .card-action{background-color:inherit;border-top:1px solid rgba(160,160,160,0.2);position:relative;padding:16px 24px}.card .card-action:last-child{border-radius:0 0 2px 2px}.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating){color:#ffab40;margin-right:24px;-webkit-transition:color .3s ease;transition:color .3s ease;text-transform:uppercase}.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-large):not(.btn-floating):hover{color:#ffd8a6}.card .card-reveal{padding:24px;position:absolute;background-color:#fff;width:100%;overflow-y:auto;left:0;top:100%;height:100%;z-index:3;display:none}.card .card-reveal .card-title{cursor:pointer;display:block}#toast-container{display:block;position:fixed;z-index:10000}@media only screen and (max-width: 600px){#toast-container{min-width:100%;bottom:0%}}@media only screen and (min-width: 601px) and (max-width: 992px){#toast-container{left:5%;bottom:7%;max-width:90%}}@media only screen and (min-width: 993px){#toast-container{top:10%;right:7%;max-width:86%}}.toast{border-radius:2px;top:35px;width:auto;margin-top:10px;position:relative;max-width:100%;height:auto;min-height:48px;line-height:1.5em;background-color:#323232;padding:10px 25px;font-size:1.1rem;font-weight:300;color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;cursor:default}.toast .toast-action{color:#eeff41;font-weight:500;margin-right:-25px;margin-left:3rem}.toast.rounded{border-radius:24px}@media only screen and (max-width: 600px){.toast{width:100%;border-radius:0}}.tabs{position:relative;overflow-x:auto;overflow-y:hidden;height:48px;width:100%;background-color:#fff;margin:0 auto;white-space:nowrap}.tabs.tabs-transparent{background-color:transparent}.tabs.tabs-transparent .tab a,.tabs.tabs-transparent .tab.disabled a,.tabs.tabs-transparent .tab.disabled a:hover{color:rgba(255,255,255,0.7)}.tabs.tabs-transparent .tab a:hover,.tabs.tabs-transparent .tab a.active{color:#fff}.tabs.tabs-transparent .indicator{background-color:#fff}.tabs.tabs-fixed-width{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.tabs.tabs-fixed-width .tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.tabs .tab{display:inline-block;text-align:center;line-height:48px;height:48px;padding:0;margin:0;text-transform:uppercase}.tabs .tab a{color:rgba(238,110,115,0.7);display:block;width:100%;height:100%;padding:0 24px;font-size:14px;text-overflow:ellipsis;overflow:hidden;-webkit-transition:color .28s ease, background-color .28s ease;transition:color .28s ease, background-color .28s ease}.tabs .tab a:focus,.tabs .tab a:focus.active{background-color:rgba(246,178,181,0.2);outline:none}.tabs .tab a:hover,.tabs .tab a.active{background-color:transparent;color:#ee6e73}.tabs .tab.disabled a,.tabs .tab.disabled a:hover{color:rgba(238,110,115,0.4);cursor:default}.tabs .indicator{position:absolute;bottom:0;height:2px;background-color:#f6b2b5;will-change:left, right}@media only screen and (max-width: 992px){.tabs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.tabs .tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.tabs .tab a{padding:0 12px}}.material-tooltip{padding:10px 8px;font-size:1rem;z-index:2000;background-color:transparent;border-radius:2px;color:#fff;min-height:36px;line-height:120%;opacity:0;position:absolute;text-align:center;max-width:calc(100% - 4px);overflow:hidden;left:0;top:0;pointer-events:none;visibility:hidden;background-color:#323232}.backdrop{position:absolute;opacity:0;height:7px;width:14px;border-radius:0 0 50% 50%;background-color:#323232;z-index:-1;-webkit-transform-origin:50% 0%;transform-origin:50% 0%;visibility:hidden}.btn,.btn-large,.btn-small,.btn-flat{border:none;border-radius:2px;display:inline-block;height:36px;line-height:36px;padding:0 16px;text-transform:uppercase;vertical-align:middle;-webkit-tap-highlight-color:transparent}.btn.disabled,.disabled.btn-large,.disabled.btn-small,.btn-floating.disabled,.btn-large.disabled,.btn-small.disabled,.btn-flat.disabled,.btn:disabled,.btn-large:disabled,.btn-small:disabled,.btn-floating:disabled,.btn-large:disabled,.btn-small:disabled,.btn-flat:disabled,.btn[disabled],.btn-large[disabled],.btn-small[disabled],.btn-floating[disabled],.btn-large[disabled],.btn-small[disabled],.btn-flat[disabled]{pointer-events:none;background-color:#DFDFDF !important;-webkit-box-shadow:none;box-shadow:none;color:#9F9F9F !important;cursor:default}.btn.disabled:hover,.disabled.btn-large:hover,.disabled.btn-small:hover,.btn-floating.disabled:hover,.btn-large.disabled:hover,.btn-small.disabled:hover,.btn-flat.disabled:hover,.btn:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-floating:disabled:hover,.btn-large:disabled:hover,.btn-small:disabled:hover,.btn-flat:disabled:hover,.btn[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover,.btn-floating[disabled]:hover,.btn-large[disabled]:hover,.btn-small[disabled]:hover,.btn-flat[disabled]:hover{background-color:#DFDFDF !important;color:#9F9F9F !important}.btn,.btn-large,.btn-small,.btn-floating,.btn-large,.btn-small,.btn-flat{font-size:14px;outline:0}.btn i,.btn-large i,.btn-small i,.btn-floating i,.btn-large i,.btn-small i,.btn-flat i{font-size:1.3rem;line-height:inherit}.btn:focus,.btn-large:focus,.btn-small:focus,.btn-floating:focus{background-color:#1d7d74}.btn,.btn-large,.btn-small{text-decoration:none;color:#fff;background-color:#26a69a;text-align:center;letter-spacing:.5px;-webkit-transition:background-color .2s ease-out;transition:background-color .2s ease-out;cursor:pointer}.btn:hover,.btn-large:hover,.btn-small:hover{background-color:#2bbbad}.btn-floating{display:inline-block;color:#fff;position:relative;overflow:hidden;z-index:1;width:40px;height:40px;line-height:40px;padding:0;background-color:#26a69a;border-radius:50%;-webkit-transition:background-color .3s;transition:background-color .3s;cursor:pointer;vertical-align:middle}.btn-floating:hover{background-color:#26a69a}.btn-floating:before{border-radius:0}.btn-floating.btn-large{width:56px;height:56px;padding:0}.btn-floating.btn-large.halfway-fab{bottom:-28px}.btn-floating.btn-large i{line-height:56px}.btn-floating.btn-small{width:32.4px;height:32.4px}.btn-floating.btn-small.halfway-fab{bottom:-16.2px}.btn-floating.btn-small i{line-height:32.4px}.btn-floating.halfway-fab{position:absolute;right:24px;bottom:-20px}.btn-floating.halfway-fab.left{right:auto;left:24px}.btn-floating i{width:inherit;display:inline-block;text-align:center;color:#fff;font-size:1.6rem;line-height:40px}button.btn-floating{border:none}.fixed-action-btn{position:fixed;right:23px;bottom:23px;padding-top:15px;margin-bottom:0;z-index:997}.fixed-action-btn.active ul{visibility:visible}.fixed-action-btn.direction-left,.fixed-action-btn.direction-right{padding:0 0 0 15px}.fixed-action-btn.direction-left ul,.fixed-action-btn.direction-right ul{text-align:right;right:64px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:100%;left:auto;width:500px}.fixed-action-btn.direction-left ul li,.fixed-action-btn.direction-right ul li{display:inline-block;margin:7.5px 15px 0 0}.fixed-action-btn.direction-right{padding:0 15px 0 0}.fixed-action-btn.direction-right ul{text-align:left;direction:rtl;left:64px;right:auto}.fixed-action-btn.direction-right ul li{margin:7.5px 0 0 15px}.fixed-action-btn.direction-bottom{padding:0 0 15px 0}.fixed-action-btn.direction-bottom ul{top:64px;bottom:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.fixed-action-btn.direction-bottom ul li{margin:15px 0 0 0}.fixed-action-btn.toolbar{padding:0;height:56px}.fixed-action-btn.toolbar.active>a i{opacity:0}.fixed-action-btn.toolbar ul{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;top:0;bottom:0;z-index:1}.fixed-action-btn.toolbar ul li{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:inline-block;margin:0;height:100%;-webkit-transition:none;transition:none}.fixed-action-btn.toolbar ul li a{display:block;overflow:hidden;position:relative;width:100%;height:100%;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff;line-height:56px;z-index:1}.fixed-action-btn.toolbar ul li a i{line-height:inherit}.fixed-action-btn ul{left:0;right:0;text-align:center;position:absolute;bottom:64px;margin:0;visibility:hidden}.fixed-action-btn ul li{margin-bottom:15px}.fixed-action-btn ul a.btn-floating{opacity:0}.fixed-action-btn .fab-backdrop{position:absolute;top:0;left:0;z-index:-1;width:40px;height:40px;background-color:#26a69a;border-radius:50%;-webkit-transform:scale(0);transform:scale(0)}.btn-flat{-webkit-box-shadow:none;box-shadow:none;background-color:transparent;color:#343434;cursor:pointer;-webkit-transition:background-color .2s;transition:background-color .2s}.btn-flat:focus,.btn-flat:hover{-webkit-box-shadow:none;box-shadow:none}.btn-flat:focus{background-color:rgba(0,0,0,0.1)}.btn-flat.disabled,.btn-flat.btn-flat[disabled]{background-color:transparent !important;color:#b3b2b2 !important;cursor:default}.btn-large{height:54px;line-height:54px;font-size:15px;padding:0 28px}.btn-large i{font-size:1.6rem}.btn-small{height:32.4px;line-height:32.4px;font-size:13px}.btn-small i{font-size:1.2rem}.btn-block{display:block}.dropdown-content{background-color:#fff;margin:0;display:none;min-width:100px;overflow-y:auto;opacity:0;position:absolute;left:0;top:0;z-index:9999;-webkit-transform-origin:0 0;transform-origin:0 0}.dropdown-content:focus{outline:0}.dropdown-content li{clear:both;color:rgba(0,0,0,0.87);cursor:pointer;min-height:50px;line-height:1.5rem;width:100%;text-align:left}.dropdown-content li:hover,.dropdown-content li.active{background-color:#eee}.dropdown-content li:focus{outline:none}.dropdown-content li.divider{min-height:0;height:1px}.dropdown-content li>a,.dropdown-content li>span{font-size:16px;color:#26a69a;display:block;line-height:22px;padding:14px 16px}.dropdown-content li>span>label{top:1px;left:0;height:18px}.dropdown-content li>a>i{height:inherit;line-height:inherit;float:left;margin:0 24px 0 0;width:24px}body.keyboard-focused .dropdown-content li:focus{background-color:#dadada}.input-field.col .dropdown-content [type="checkbox"]+label{top:1px;left:0;height:18px;-webkit-transform:none;transform:none}.dropdown-trigger{cursor:pointer}/*!
|
9 |
+
* Waves v0.6.0
|
10 |
+
* http://fian.my.id/Waves
|
11 |
+
*
|
12 |
+
* Copyright 2014 Alfiana E. Sibuea and other contributors
|
13 |
+
* Released under the MIT license
|
14 |
+
* https://github.com/fians/Waves/blob/master/LICENSE
|
15 |
+
*/.waves-effect{position:relative;cursor:pointer;display:inline-block;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;vertical-align:middle;z-index:1;-webkit-transition:.3s ease-out;transition:.3s ease-out}.waves-effect .waves-ripple{position:absolute;border-radius:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;opacity:0;background:rgba(0,0,0,0.2);-webkit-transition:all 0.7s ease-out;transition:all 0.7s ease-out;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;-webkit-transform:scale(0);transform:scale(0);pointer-events:none}.waves-effect.waves-light .waves-ripple{background-color:rgba(255,255,255,0.45)}.waves-effect.waves-red .waves-ripple{background-color:rgba(244,67,54,0.7)}.waves-effect.waves-yellow .waves-ripple{background-color:rgba(255,235,59,0.7)}.waves-effect.waves-orange .waves-ripple{background-color:rgba(255,152,0,0.7)}.waves-effect.waves-purple .waves-ripple{background-color:rgba(156,39,176,0.7)}.waves-effect.waves-green .waves-ripple{background-color:rgba(76,175,80,0.7)}.waves-effect.waves-teal .waves-ripple{background-color:rgba(0,150,136,0.7)}.waves-effect input[type="button"],.waves-effect input[type="reset"],.waves-effect input[type="submit"]{border:0;font-style:normal;font-size:inherit;text-transform:inherit;background:none}.waves-effect img{position:relative;z-index:-1}.waves-notransition{-webkit-transition:none !important;transition:none !important}.waves-circle{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-mask-image:-webkit-radial-gradient(circle, white 100%, black 100%)}.waves-input-wrapper{border-radius:0.2em;vertical-align:bottom}.waves-input-wrapper .waves-button-input{position:relative;top:0;left:0;z-index:1}.waves-circle{text-align:center;width:2.5em;height:2.5em;line-height:2.5em;border-radius:50%;-webkit-mask-image:none}.waves-block{display:block}.waves-effect .waves-ripple{z-index:-1}.modal{display:none;position:fixed;left:0;right:0;background-color:#fafafa;padding:0;max-height:70%;width:55%;margin:auto;overflow-y:auto;border-radius:2px;will-change:top, opacity}.modal:focus{outline:none}@media only screen and (max-width: 992px){.modal{width:80%}}.modal h1,.modal h2,.modal h3,.modal h4{margin-top:0}.modal .modal-content{padding:24px}.modal .modal-close{cursor:pointer}.modal .modal-footer{border-radius:0 0 2px 2px;background-color:#fafafa;padding:4px 6px;height:56px;width:100%;text-align:right}.modal .modal-footer .btn,.modal .modal-footer .btn-large,.modal .modal-footer .btn-small,.modal .modal-footer .btn-flat{margin:6px 0}.modal-overlay{position:fixed;z-index:999;top:-25%;left:0;bottom:0;right:0;height:125%;width:100%;background:#000;display:none;will-change:opacity}.modal.modal-fixed-footer{padding:0;height:70%}.modal.modal-fixed-footer .modal-content{position:absolute;height:calc(100% - 56px);max-height:100%;width:100%;overflow-y:auto}.modal.modal-fixed-footer .modal-footer{border-top:1px solid rgba(0,0,0,0.1);position:absolute;bottom:0}.modal.bottom-sheet{top:auto;bottom:-100%;margin:0;width:100%;max-height:45%;border-radius:0;will-change:bottom, opacity}.collapsible{border-top:1px solid #ddd;border-right:1px solid #ddd;border-left:1px solid #ddd;margin:.5rem 0 1rem 0}.collapsible-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;cursor:pointer;-webkit-tap-highlight-color:transparent;line-height:1.5;padding:1rem;background-color:#fff;border-bottom:1px solid #ddd}.collapsible-header:focus{outline:0}.collapsible-header i{width:2rem;font-size:1.6rem;display:inline-block;text-align:center;margin-right:1rem}.keyboard-focused .collapsible-header:focus{background-color:#eee}.collapsible-body{display:none;border-bottom:1px solid #ddd;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2rem}.sidenav .collapsible,.sidenav.fixed .collapsible{border:none;-webkit-box-shadow:none;box-shadow:none}.sidenav .collapsible li,.sidenav.fixed .collapsible li{padding:0}.sidenav .collapsible-header,.sidenav.fixed .collapsible-header{background-color:transparent;border:none;line-height:inherit;height:inherit;padding:0 16px}.sidenav .collapsible-header:hover,.sidenav.fixed .collapsible-header:hover{background-color:rgba(0,0,0,0.05)}.sidenav .collapsible-header i,.sidenav.fixed .collapsible-header i{line-height:inherit}.sidenav .collapsible-body,.sidenav.fixed .collapsible-body{border:0;background-color:#fff}.sidenav .collapsible-body li a,.sidenav.fixed .collapsible-body li a{padding:0 23.5px 0 31px}.collapsible.popout{border:none;-webkit-box-shadow:none;box-shadow:none}.collapsible.popout>li{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);margin:0 24px;-webkit-transition:margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);transition:margin 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.collapsible.popout>li.active{-webkit-box-shadow:0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);box-shadow:0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);margin:16px 0}.chip{display:inline-block;height:32px;font-size:13px;font-weight:500;color:rgba(0,0,0,0.6);line-height:32px;padding:0 12px;border-radius:16px;background-color:#e4e4e4;margin-bottom:5px;margin-right:5px}.chip:focus{outline:none;background-color:#26a69a;color:#fff}.chip>img{float:left;margin:0 8px 0 -12px;height:32px;width:32px;border-radius:50%}.chip .close{cursor:pointer;float:right;font-size:16px;line-height:32px;padding-left:8px}.chips{border:none;border-bottom:1px solid #9e9e9e;-webkit-box-shadow:none;box-shadow:none;margin:0 0 8px 0;min-height:45px;outline:none;-webkit-transition:all .3s;transition:all .3s}.chips.focus{border-bottom:1px solid #26a69a;-webkit-box-shadow:0 1px 0 0 #26a69a;box-shadow:0 1px 0 0 #26a69a}.chips:hover{cursor:text}.chips .input{background:none;border:0;color:rgba(0,0,0,0.6);display:inline-block;font-size:16px;height:3rem;line-height:32px;outline:0;margin:0;padding:0 !important;width:120px !important}.chips .input:focus{border:0 !important;-webkit-box-shadow:none !important;box-shadow:none !important}.chips .autocomplete-content{margin-top:0;margin-bottom:0}.prefix ~ .chips{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.chips:empty ~ label{font-size:0.8rem;-webkit-transform:translateY(-140%);transform:translateY(-140%)}.materialboxed{display:block;cursor:-webkit-zoom-in;cursor:zoom-in;position:relative;-webkit-transition:opacity .4s;transition:opacity .4s;-webkit-backface-visibility:hidden}.materialboxed:hover:not(.active){opacity:.8}.materialboxed.active{cursor:-webkit-zoom-out;cursor:zoom-out}#materialbox-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#292929;z-index:1000;will-change:opacity}.materialbox-caption{position:fixed;display:none;color:#fff;line-height:50px;bottom:0;left:0;width:100%;text-align:center;padding:0% 15%;height:50px;z-index:1000;-webkit-font-smoothing:antialiased}select:focus{outline:1px solid #c9f3ef}button:focus{outline:none;background-color:#2ab7a9}label{font-size:.8rem;color:#9e9e9e}::-webkit-input-placeholder{color:#d1d1d1}::-moz-placeholder{color:#d1d1d1}:-ms-input-placeholder{color:#d1d1d1}::-ms-input-placeholder{color:#d1d1d1}::placeholder{color:#d1d1d1}input:not([type]),input[type=text]:not(.browser-default),input[type=password]:not(.browser-default),input[type=email]:not(.browser-default),input[type=url]:not(.browser-default),input[type=time]:not(.browser-default),input[type=date]:not(.browser-default),input[type=datetime]:not(.browser-default),input[type=datetime-local]:not(.browser-default),input[type=tel]:not(.browser-default),input[type=number]:not(.browser-default),input[type=search]:not(.browser-default),textarea.materialize-textarea{background-color:transparent;border:none;border-bottom:1px solid #9e9e9e;border-radius:0;outline:none;height:3rem;width:100%;font-size:16px;margin:0 0 8px 0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-transition:border .3s, -webkit-box-shadow .3s;transition:border .3s, -webkit-box-shadow .3s;transition:box-shadow .3s, border .3s;transition:box-shadow .3s, border .3s, -webkit-box-shadow .3s}input:not([type]):disabled,input:not([type])[readonly="readonly"],input[type=text]:not(.browser-default):disabled,input[type=text]:not(.browser-default)[readonly="readonly"],input[type=password]:not(.browser-default):disabled,input[type=password]:not(.browser-default)[readonly="readonly"],input[type=email]:not(.browser-default):disabled,input[type=email]:not(.browser-default)[readonly="readonly"],input[type=url]:not(.browser-default):disabled,input[type=url]:not(.browser-default)[readonly="readonly"],input[type=time]:not(.browser-default):disabled,input[type=time]:not(.browser-default)[readonly="readonly"],input[type=date]:not(.browser-default):disabled,input[type=date]:not(.browser-default)[readonly="readonly"],input[type=datetime]:not(.browser-default):disabled,input[type=datetime]:not(.browser-default)[readonly="readonly"],input[type=datetime-local]:not(.browser-default):disabled,input[type=datetime-local]:not(.browser-default)[readonly="readonly"],input[type=tel]:not(.browser-default):disabled,input[type=tel]:not(.browser-default)[readonly="readonly"],input[type=number]:not(.browser-default):disabled,input[type=number]:not(.browser-default)[readonly="readonly"],input[type=search]:not(.browser-default):disabled,input[type=search]:not(.browser-default)[readonly="readonly"],textarea.materialize-textarea:disabled,textarea.materialize-textarea[readonly="readonly"]{color:rgba(0,0,0,0.42);border-bottom:1px dotted rgba(0,0,0,0.42)}input:not([type]):disabled+label,input:not([type])[readonly="readonly"]+label,input[type=text]:not(.browser-default):disabled+label,input[type=text]:not(.browser-default)[readonly="readonly"]+label,input[type=password]:not(.browser-default):disabled+label,input[type=password]:not(.browser-default)[readonly="readonly"]+label,input[type=email]:not(.browser-default):disabled+label,input[type=email]:not(.browser-default)[readonly="readonly"]+label,input[type=url]:not(.browser-default):disabled+label,input[type=url]:not(.browser-default)[readonly="readonly"]+label,input[type=time]:not(.browser-default):disabled+label,input[type=time]:not(.browser-default)[readonly="readonly"]+label,input[type=date]:not(.browser-default):disabled+label,input[type=date]:not(.browser-default)[readonly="readonly"]+label,input[type=datetime]:not(.browser-default):disabled+label,input[type=datetime]:not(.browser-default)[readonly="readonly"]+label,input[type=datetime-local]:not(.browser-default):disabled+label,input[type=datetime-local]:not(.browser-default)[readonly="readonly"]+label,input[type=tel]:not(.browser-default):disabled+label,input[type=tel]:not(.browser-default)[readonly="readonly"]+label,input[type=number]:not(.browser-default):disabled+label,input[type=number]:not(.browser-default)[readonly="readonly"]+label,input[type=search]:not(.browser-default):disabled+label,input[type=search]:not(.browser-default)[readonly="readonly"]+label,textarea.materialize-textarea:disabled+label,textarea.materialize-textarea[readonly="readonly"]+label{color:rgba(0,0,0,0.42)}input:not([type]):focus:not([readonly]),input[type=text]:not(.browser-default):focus:not([readonly]),input[type=password]:not(.browser-default):focus:not([readonly]),input[type=email]:not(.browser-default):focus:not([readonly]),input[type=url]:not(.browser-default):focus:not([readonly]),input[type=time]:not(.browser-default):focus:not([readonly]),input[type=date]:not(.browser-default):focus:not([readonly]),input[type=datetime]:not(.browser-default):focus:not([readonly]),input[type=datetime-local]:not(.browser-default):focus:not([readonly]),input[type=tel]:not(.browser-default):focus:not([readonly]),input[type=number]:not(.browser-default):focus:not([readonly]),input[type=search]:not(.browser-default):focus:not([readonly]),textarea.materialize-textarea:focus:not([readonly]){border-bottom:1px solid #26a69a;-webkit-box-shadow:0 1px 0 0 #26a69a;box-shadow:0 1px 0 0 #26a69a}input:not([type]):focus:not([readonly])+label,input[type=text]:not(.browser-default):focus:not([readonly])+label,input[type=password]:not(.browser-default):focus:not([readonly])+label,input[type=email]:not(.browser-default):focus:not([readonly])+label,input[type=url]:not(.browser-default):focus:not([readonly])+label,input[type=time]:not(.browser-default):focus:not([readonly])+label,input[type=date]:not(.browser-default):focus:not([readonly])+label,input[type=datetime]:not(.browser-default):focus:not([readonly])+label,input[type=datetime-local]:not(.browser-default):focus:not([readonly])+label,input[type=tel]:not(.browser-default):focus:not([readonly])+label,input[type=number]:not(.browser-default):focus:not([readonly])+label,input[type=search]:not(.browser-default):focus:not([readonly])+label,textarea.materialize-textarea:focus:not([readonly])+label{color:#26a69a}input:not([type]):focus.valid ~ label,input[type=text]:not(.browser-default):focus.valid ~ label,input[type=password]:not(.browser-default):focus.valid ~ label,input[type=email]:not(.browser-default):focus.valid ~ label,input[type=url]:not(.browser-default):focus.valid ~ label,input[type=time]:not(.browser-default):focus.valid ~ label,input[type=date]:not(.browser-default):focus.valid ~ label,input[type=datetime]:not(.browser-default):focus.valid ~ label,input[type=datetime-local]:not(.browser-default):focus.valid ~ label,input[type=tel]:not(.browser-default):focus.valid ~ label,input[type=number]:not(.browser-default):focus.valid ~ label,input[type=search]:not(.browser-default):focus.valid ~ label,textarea.materialize-textarea:focus.valid ~ label{color:#4CAF50}input:not([type]):focus.invalid ~ label,input[type=text]:not(.browser-default):focus.invalid ~ label,input[type=password]:not(.browser-default):focus.invalid ~ label,input[type=email]:not(.browser-default):focus.invalid ~ label,input[type=url]:not(.browser-default):focus.invalid ~ label,input[type=time]:not(.browser-default):focus.invalid ~ label,input[type=date]:not(.browser-default):focus.invalid ~ label,input[type=datetime]:not(.browser-default):focus.invalid ~ label,input[type=datetime-local]:not(.browser-default):focus.invalid ~ label,input[type=tel]:not(.browser-default):focus.invalid ~ label,input[type=number]:not(.browser-default):focus.invalid ~ label,input[type=search]:not(.browser-default):focus.invalid ~ label,textarea.materialize-textarea:focus.invalid ~ label{color:#F44336}input:not([type]).validate+label,input[type=text]:not(.browser-default).validate+label,input[type=password]:not(.browser-default).validate+label,input[type=email]:not(.browser-default).validate+label,input[type=url]:not(.browser-default).validate+label,input[type=time]:not(.browser-default).validate+label,input[type=date]:not(.browser-default).validate+label,input[type=datetime]:not(.browser-default).validate+label,input[type=datetime-local]:not(.browser-default).validate+label,input[type=tel]:not(.browser-default).validate+label,input[type=number]:not(.browser-default).validate+label,input[type=search]:not(.browser-default).validate+label,textarea.materialize-textarea.validate+label{width:100%}input.valid:not([type]),input.valid:not([type]):focus,input.valid[type=text]:not(.browser-default),input.valid[type=text]:not(.browser-default):focus,input.valid[type=password]:not(.browser-default),input.valid[type=password]:not(.browser-default):focus,input.valid[type=email]:not(.browser-default),input.valid[type=email]:not(.browser-default):focus,input.valid[type=url]:not(.browser-default),input.valid[type=url]:not(.browser-default):focus,input.valid[type=time]:not(.browser-default),input.valid[type=time]:not(.browser-default):focus,input.valid[type=date]:not(.browser-default),input.valid[type=date]:not(.browser-default):focus,input.valid[type=datetime]:not(.browser-default),input.valid[type=datetime]:not(.browser-default):focus,input.valid[type=datetime-local]:not(.browser-default),input.valid[type=datetime-local]:not(.browser-default):focus,input.valid[type=tel]:not(.browser-default),input.valid[type=tel]:not(.browser-default):focus,input.valid[type=number]:not(.browser-default),input.valid[type=number]:not(.browser-default):focus,input.valid[type=search]:not(.browser-default),input.valid[type=search]:not(.browser-default):focus,textarea.materialize-textarea.valid,textarea.materialize-textarea.valid:focus,.select-wrapper.valid>input.select-dropdown{border-bottom:1px solid #4CAF50;-webkit-box-shadow:0 1px 0 0 #4CAF50;box-shadow:0 1px 0 0 #4CAF50}input.invalid:not([type]),input.invalid:not([type]):focus,input.invalid[type=text]:not(.browser-default),input.invalid[type=text]:not(.browser-default):focus,input.invalid[type=password]:not(.browser-default),input.invalid[type=password]:not(.browser-default):focus,input.invalid[type=email]:not(.browser-default),input.invalid[type=email]:not(.browser-default):focus,input.invalid[type=url]:not(.browser-default),input.invalid[type=url]:not(.browser-default):focus,input.invalid[type=time]:not(.browser-default),input.invalid[type=time]:not(.browser-default):focus,input.invalid[type=date]:not(.browser-default),input.invalid[type=date]:not(.browser-default):focus,input.invalid[type=datetime]:not(.browser-default),input.invalid[type=datetime]:not(.browser-default):focus,input.invalid[type=datetime-local]:not(.browser-default),input.invalid[type=datetime-local]:not(.browser-default):focus,input.invalid[type=tel]:not(.browser-default),input.invalid[type=tel]:not(.browser-default):focus,input.invalid[type=number]:not(.browser-default),input.invalid[type=number]:not(.browser-default):focus,input.invalid[type=search]:not(.browser-default),input.invalid[type=search]:not(.browser-default):focus,textarea.materialize-textarea.invalid,textarea.materialize-textarea.invalid:focus,.select-wrapper.invalid>input.select-dropdown,.select-wrapper.invalid>input.select-dropdown:focus{border-bottom:1px solid #F44336;-webkit-box-shadow:0 1px 0 0 #F44336;box-shadow:0 1px 0 0 #F44336}input:not([type]).valid ~ .helper-text[data-success],input:not([type]):focus.valid ~ .helper-text[data-success],input:not([type]).invalid ~ .helper-text[data-error],input:not([type]):focus.invalid ~ .helper-text[data-error],input[type=text]:not(.browser-default).valid ~ .helper-text[data-success],input[type=text]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=text]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=text]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=password]:not(.browser-default).valid ~ .helper-text[data-success],input[type=password]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=password]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=password]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=email]:not(.browser-default).valid ~ .helper-text[data-success],input[type=email]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=email]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=email]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=url]:not(.browser-default).valid ~ .helper-text[data-success],input[type=url]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=url]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=url]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=time]:not(.browser-default).valid ~ .helper-text[data-success],input[type=time]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=time]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=time]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=date]:not(.browser-default).valid ~ .helper-text[data-success],input[type=date]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=date]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=date]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=datetime]:not(.browser-default).valid ~ .helper-text[data-success],input[type=datetime]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=datetime]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=datetime-local]:not(.browser-default).valid ~ .helper-text[data-success],input[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=datetime-local]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=tel]:not(.browser-default).valid ~ .helper-text[data-success],input[type=tel]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=tel]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=tel]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=number]:not(.browser-default).valid ~ .helper-text[data-success],input[type=number]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=number]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=number]:not(.browser-default):focus.invalid ~ .helper-text[data-error],input[type=search]:not(.browser-default).valid ~ .helper-text[data-success],input[type=search]:not(.browser-default):focus.valid ~ .helper-text[data-success],input[type=search]:not(.browser-default).invalid ~ .helper-text[data-error],input[type=search]:not(.browser-default):focus.invalid ~ .helper-text[data-error],textarea.materialize-textarea.valid ~ .helper-text[data-success],textarea.materialize-textarea:focus.valid ~ .helper-text[data-success],textarea.materialize-textarea.invalid ~ .helper-text[data-error],textarea.materialize-textarea:focus.invalid ~ .helper-text[data-error],.select-wrapper.valid .helper-text[data-success],.select-wrapper.invalid ~ .helper-text[data-error]{color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}input:not([type]).valid ~ .helper-text:after,input:not([type]):focus.valid ~ .helper-text:after,input[type=text]:not(.browser-default).valid ~ .helper-text:after,input[type=text]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=password]:not(.browser-default).valid ~ .helper-text:after,input[type=password]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=email]:not(.browser-default).valid ~ .helper-text:after,input[type=email]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=url]:not(.browser-default).valid ~ .helper-text:after,input[type=url]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=time]:not(.browser-default).valid ~ .helper-text:after,input[type=time]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=date]:not(.browser-default).valid ~ .helper-text:after,input[type=date]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=datetime]:not(.browser-default).valid ~ .helper-text:after,input[type=datetime]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default).valid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=tel]:not(.browser-default).valid ~ .helper-text:after,input[type=tel]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=number]:not(.browser-default).valid ~ .helper-text:after,input[type=number]:not(.browser-default):focus.valid ~ .helper-text:after,input[type=search]:not(.browser-default).valid ~ .helper-text:after,input[type=search]:not(.browser-default):focus.valid ~ .helper-text:after,textarea.materialize-textarea.valid ~ .helper-text:after,textarea.materialize-textarea:focus.valid ~ .helper-text:after,.select-wrapper.valid ~ .helper-text:after{content:attr(data-success);color:#4CAF50}input:not([type]).invalid ~ .helper-text:after,input:not([type]):focus.invalid ~ .helper-text:after,input[type=text]:not(.browser-default).invalid ~ .helper-text:after,input[type=text]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=password]:not(.browser-default).invalid ~ .helper-text:after,input[type=password]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=email]:not(.browser-default).invalid ~ .helper-text:after,input[type=email]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=url]:not(.browser-default).invalid ~ .helper-text:after,input[type=url]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=time]:not(.browser-default).invalid ~ .helper-text:after,input[type=time]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=date]:not(.browser-default).invalid ~ .helper-text:after,input[type=date]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=datetime]:not(.browser-default).invalid ~ .helper-text:after,input[type=datetime]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default).invalid ~ .helper-text:after,input[type=datetime-local]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=tel]:not(.browser-default).invalid ~ .helper-text:after,input[type=tel]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=number]:not(.browser-default).invalid ~ .helper-text:after,input[type=number]:not(.browser-default):focus.invalid ~ .helper-text:after,input[type=search]:not(.browser-default).invalid ~ .helper-text:after,input[type=search]:not(.browser-default):focus.invalid ~ .helper-text:after,textarea.materialize-textarea.invalid ~ .helper-text:after,textarea.materialize-textarea:focus.invalid ~ .helper-text:after,.select-wrapper.invalid ~ .helper-text:after{content:attr(data-error);color:#F44336}input:not([type])+label:after,input[type=text]:not(.browser-default)+label:after,input[type=password]:not(.browser-default)+label:after,input[type=email]:not(.browser-default)+label:after,input[type=url]:not(.browser-default)+label:after,input[type=time]:not(.browser-default)+label:after,input[type=date]:not(.browser-default)+label:after,input[type=datetime]:not(.browser-default)+label:after,input[type=datetime-local]:not(.browser-default)+label:after,input[type=tel]:not(.browser-default)+label:after,input[type=number]:not(.browser-default)+label:after,input[type=search]:not(.browser-default)+label:after,textarea.materialize-textarea+label:after,.select-wrapper+label:after{display:block;content:"";position:absolute;top:100%;left:0;opacity:0;-webkit-transition:.2s opacity ease-out, .2s color ease-out;transition:.2s opacity ease-out, .2s color ease-out}.input-field{position:relative;margin-top:1rem;margin-bottom:1rem}.input-field.inline{display:inline-block;vertical-align:middle;margin-left:5px}.input-field.inline input,.input-field.inline .select-dropdown{margin-bottom:1rem}.input-field.col label{left:.75rem}.input-field.col .prefix ~ label,.input-field.col .prefix ~ .validate ~ label{width:calc(100% - 3rem - 1.5rem)}.input-field>label{color:#9e9e9e;position:absolute;top:0;left:0;font-size:1rem;cursor:text;-webkit-transition:color .2s ease-out, -webkit-transform .2s ease-out;transition:color .2s ease-out, -webkit-transform .2s ease-out;transition:transform .2s ease-out, color .2s ease-out;transition:transform .2s ease-out, color .2s ease-out, -webkit-transform .2s ease-out;-webkit-transform-origin:0% 100%;transform-origin:0% 100%;text-align:initial;-webkit-transform:translateY(12px);transform:translateY(12px)}.input-field>label:not(.label-icon).active{-webkit-transform:translateY(-14px) scale(0.8);transform:translateY(-14px) scale(0.8);-webkit-transform-origin:0 0;transform-origin:0 0}.input-field>input[type]:-webkit-autofill:not(.browser-default):not([type="search"])+label,.input-field>input[type=date]:not(.browser-default)+label,.input-field>input[type=time]:not(.browser-default)+label{-webkit-transform:translateY(-14px) scale(0.8);transform:translateY(-14px) scale(0.8);-webkit-transform-origin:0 0;transform-origin:0 0}.input-field .helper-text{position:relative;min-height:18px;display:block;font-size:12px;color:rgba(0,0,0,0.54)}.input-field .helper-text::after{opacity:1;position:absolute;top:0;left:0}.input-field .prefix{position:absolute;width:3rem;font-size:2rem;-webkit-transition:color .2s;transition:color .2s;top:.5rem}.input-field .prefix.active{color:#26a69a}.input-field .prefix ~ input,.input-field .prefix ~ textarea,.input-field .prefix ~ label,.input-field .prefix ~ .validate ~ label,.input-field .prefix ~ .helper-text,.input-field .prefix ~ .autocomplete-content{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.input-field .prefix ~ label{margin-left:3rem}@media only screen and (max-width: 992px){.input-field .prefix ~ input{width:86%;width:calc(100% - 3rem)}}@media only screen and (max-width: 600px){.input-field .prefix ~ input{width:80%;width:calc(100% - 3rem)}}.input-field input[type=search]{display:block;line-height:inherit;-webkit-transition:.3s background-color;transition:.3s background-color}.nav-wrapper .input-field input[type=search]{height:inherit;padding-left:4rem;width:calc(100% - 4rem);border:0;-webkit-box-shadow:none;box-shadow:none}.input-field input[type=search]:focus:not(.browser-default){background-color:#fff;border:0;-webkit-box-shadow:none;box-shadow:none;color:#444}.input-field input[type=search]:focus:not(.browser-default)+label i,.input-field input[type=search]:focus:not(.browser-default) ~ .mdi-navigation-close,.input-field input[type=search]:focus:not(.browser-default) ~ .material-icons{color:#444}.input-field input[type=search]+.label-icon{-webkit-transform:none;transform:none;left:1rem}.input-field input[type=search] ~ .mdi-navigation-close,.input-field input[type=search] ~ .material-icons{position:absolute;top:0;right:1rem;color:transparent;cursor:pointer;font-size:2rem;-webkit-transition:.3s color;transition:.3s color}textarea{width:100%;height:3rem;background-color:transparent}textarea.materialize-textarea{line-height:normal;overflow-y:hidden;padding:.8rem 0 .8rem 0;resize:none;min-height:3rem;-webkit-box-sizing:border-box;box-sizing:border-box}.hiddendiv{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;padding-top:1.2rem;position:absolute;top:0;z-index:-1}.autocomplete-content li .highlight{color:#444}.autocomplete-content li img{height:40px;width:40px;margin:5px 15px}.character-counter{min-height:18px}[type="radio"]:not(:checked),[type="radio"]:checked{position:absolute;opacity:0;pointer-events:none}[type="radio"]:not(:checked)+span,[type="radio"]:checked+span{position:relative;padding-left:35px;cursor:pointer;display:inline-block;height:25px;line-height:25px;font-size:1rem;-webkit-transition:.28s ease;transition:.28s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[type="radio"]+span:before,[type="radio"]+span:after{content:'';position:absolute;left:0;top:0;margin:4px;width:16px;height:16px;z-index:0;-webkit-transition:.28s ease;transition:.28s ease}[type="radio"]:not(:checked)+span:before,[type="radio"]:not(:checked)+span:after,[type="radio"]:checked+span:before,[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:before,[type="radio"].with-gap:checked+span:after{border-radius:50%}[type="radio"]:not(:checked)+span:before,[type="radio"]:not(:checked)+span:after{border:2px solid #5a5a5a}[type="radio"]:not(:checked)+span:after{-webkit-transform:scale(0);transform:scale(0)}[type="radio"]:checked+span:before{border:2px solid transparent}[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:before,[type="radio"].with-gap:checked+span:after{border:2px solid #26a69a}[type="radio"]:checked+span:after,[type="radio"].with-gap:checked+span:after{background-color:#26a69a}[type="radio"]:checked+span:after{-webkit-transform:scale(1.02);transform:scale(1.02)}[type="radio"].with-gap:checked+span:after{-webkit-transform:scale(0.5);transform:scale(0.5)}[type="radio"].tabbed:focus+span:before{-webkit-box-shadow:0 0 0 10px rgba(0,0,0,0.1);box-shadow:0 0 0 10px rgba(0,0,0,0.1)}[type="radio"].with-gap:disabled:checked+span:before{border:2px solid rgba(0,0,0,0.42)}[type="radio"].with-gap:disabled:checked+span:after{border:none;background-color:rgba(0,0,0,0.42)}[type="radio"]:disabled:not(:checked)+span:before,[type="radio"]:disabled:checked+span:before{background-color:transparent;border-color:rgba(0,0,0,0.42)}[type="radio"]:disabled+span{color:rgba(0,0,0,0.42)}[type="radio"]:disabled:not(:checked)+span:before{border-color:rgba(0,0,0,0.42)}[type="radio"]:disabled:checked+span:after{background-color:rgba(0,0,0,0.42);border-color:#949494}[type="checkbox"]:not(:checked),[type="checkbox"]:checked{position:absolute;opacity:0;pointer-events:none}[type="checkbox"]+span:not(.lever){position:relative;padding-left:35px;cursor:pointer;display:inline-block;height:25px;line-height:25px;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[type="checkbox"]+span:not(.lever):before,[type="checkbox"]:not(.filled-in)+span:not(.lever):after{content:'';position:absolute;top:0;left:0;width:18px;height:18px;z-index:0;border:2px solid #5a5a5a;border-radius:1px;margin-top:3px;-webkit-transition:.2s;transition:.2s}[type="checkbox"]:not(.filled-in)+span:not(.lever):after{border:0;-webkit-transform:scale(0);transform:scale(0)}[type="checkbox"]:not(:checked):disabled+span:not(.lever):before{border:none;background-color:rgba(0,0,0,0.42)}[type="checkbox"].tabbed:focus+span:not(.lever):after{-webkit-transform:scale(1);transform:scale(1);border:0;border-radius:50%;-webkit-box-shadow:0 0 0 10px rgba(0,0,0,0.1);box-shadow:0 0 0 10px rgba(0,0,0,0.1);background-color:rgba(0,0,0,0.1)}[type="checkbox"]:checked+span:not(.lever):before{top:-4px;left:-5px;width:12px;height:22px;border-top:2px solid transparent;border-left:2px solid transparent;border-right:2px solid #26a69a;border-bottom:2px solid #26a69a;-webkit-transform:rotate(40deg);transform:rotate(40deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"]:checked:disabled+span:before{border-right:2px solid rgba(0,0,0,0.42);border-bottom:2px solid rgba(0,0,0,0.42)}[type="checkbox"]:indeterminate+span:not(.lever):before{top:-11px;left:-12px;width:10px;height:22px;border-top:none;border-left:none;border-right:2px solid #26a69a;border-bottom:none;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"]:indeterminate:disabled+span:not(.lever):before{border-right:2px solid rgba(0,0,0,0.42);background-color:transparent}[type="checkbox"].filled-in+span:not(.lever):after{border-radius:2px}[type="checkbox"].filled-in+span:not(.lever):before,[type="checkbox"].filled-in+span:not(.lever):after{content:'';left:0;position:absolute;-webkit-transition:border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;transition:border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;z-index:1}[type="checkbox"].filled-in:not(:checked)+span:not(.lever):before{width:0;height:0;border:3px solid transparent;left:6px;top:10px;-webkit-transform:rotateZ(37deg);transform:rotateZ(37deg);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"].filled-in:not(:checked)+span:not(.lever):after{height:20px;width:20px;background-color:transparent;border:2px solid #5a5a5a;top:0px;z-index:0}[type="checkbox"].filled-in:checked+span:not(.lever):before{top:0;left:1px;width:8px;height:13px;border-top:2px solid transparent;border-left:2px solid transparent;border-right:2px solid #fff;border-bottom:2px solid #fff;-webkit-transform:rotateZ(37deg);transform:rotateZ(37deg);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}[type="checkbox"].filled-in:checked+span:not(.lever):after{top:0;width:20px;height:20px;border:2px solid #26a69a;background-color:#26a69a;z-index:0}[type="checkbox"].filled-in.tabbed:focus+span:not(.lever):after{border-radius:2px;border-color:#5a5a5a;background-color:rgba(0,0,0,0.1)}[type="checkbox"].filled-in.tabbed:checked:focus+span:not(.lever):after{border-radius:2px;background-color:#26a69a;border-color:#26a69a}[type="checkbox"].filled-in:disabled:not(:checked)+span:not(.lever):before{background-color:transparent;border:2px solid transparent}[type="checkbox"].filled-in:disabled:not(:checked)+span:not(.lever):after{border-color:transparent;background-color:#949494}[type="checkbox"].filled-in:disabled:checked+span:not(.lever):before{background-color:transparent}[type="checkbox"].filled-in:disabled:checked+span:not(.lever):after{background-color:#949494;border-color:#949494}.switch,.switch *{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.switch label{cursor:pointer}.switch label input[type=checkbox]{opacity:0;width:0;height:0}.switch label input[type=checkbox]:checked+.lever{background-color:#84c7c1}.switch label input[type=checkbox]:checked+.lever:before,.switch label input[type=checkbox]:checked+.lever:after{left:18px}.switch label input[type=checkbox]:checked+.lever:after{background-color:#26a69a}.switch label .lever{content:"";display:inline-block;position:relative;width:36px;height:14px;background-color:rgba(0,0,0,0.38);border-radius:15px;margin-right:10px;-webkit-transition:background 0.3s ease;transition:background 0.3s ease;vertical-align:middle;margin:0 16px}.switch label .lever:before,.switch label .lever:after{content:"";position:absolute;display:inline-block;width:20px;height:20px;border-radius:50%;left:0;top:-3px;-webkit-transition:left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;transition:left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease;transition:left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;transition:left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease, -webkit-box-shadow 0.1s ease, -webkit-transform .1s ease}.switch label .lever:before{background-color:rgba(38,166,154,0.15)}.switch label .lever:after{background-color:#F1F1F1;-webkit-box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12);box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)}input[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before{-webkit-transform:scale(2.4);transform:scale(2.4);background-color:rgba(38,166,154,0.15)}input[type=checkbox]:not(:disabled) ~ .lever:active:before,input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before{-webkit-transform:scale(2.4);transform:scale(2.4);background-color:rgba(0,0,0,0.08)}.switch input[type=checkbox][disabled]+.lever{cursor:default;background-color:rgba(0,0,0,0.12)}.switch label input[type=checkbox][disabled]+.lever:after,.switch label input[type=checkbox][disabled]:checked+.lever:after{background-color:#949494}select{display:none}select.browser-default{display:block}select{background-color:rgba(255,255,255,0.9);width:100%;padding:5px;border:1px solid #f2f2f2;border-radius:2px;height:3rem}.select-label{position:absolute}.select-wrapper{position:relative}.select-wrapper.valid+label,.select-wrapper.invalid+label{width:100%;pointer-events:none}.select-wrapper input.select-dropdown{position:relative;cursor:pointer;background-color:transparent;border:none;border-bottom:1px solid #9e9e9e;outline:none;height:3rem;line-height:3rem;width:100%;font-size:16px;margin:0 0 8px 0;padding:0;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.select-wrapper input.select-dropdown:focus{border-bottom:1px solid #26a69a}.select-wrapper .caret{position:absolute;right:0;top:0;bottom:0;margin:auto 0;z-index:0;fill:rgba(0,0,0,0.87)}.select-wrapper+label{position:absolute;top:-26px;font-size:.8rem}select:disabled{color:rgba(0,0,0,0.42)}.select-wrapper.disabled+label{color:rgba(0,0,0,0.42)}.select-wrapper.disabled .caret{fill:rgba(0,0,0,0.42)}.select-wrapper input.select-dropdown:disabled{color:rgba(0,0,0,0.42);cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select-wrapper i{color:rgba(0,0,0,0.3)}.select-dropdown li.disabled,.select-dropdown li.disabled>span,.select-dropdown li.optgroup{color:rgba(0,0,0,0.3);background-color:transparent}body.keyboard-focused .select-dropdown.dropdown-content li:focus{background-color:rgba(0,0,0,0.08)}.select-dropdown.dropdown-content li:hover{background-color:rgba(0,0,0,0.08)}.select-dropdown.dropdown-content li.selected{background-color:rgba(0,0,0,0.03)}.prefix ~ .select-wrapper{margin-left:3rem;width:92%;width:calc(100% - 3rem)}.prefix ~ label{margin-left:3rem}.select-dropdown li img{height:40px;width:40px;margin:5px 15px;float:right}.select-dropdown li.optgroup{border-top:1px solid #eee}.select-dropdown li.optgroup.selected>span{color:rgba(0,0,0,0.7)}.select-dropdown li.optgroup>span{color:rgba(0,0,0,0.4)}.select-dropdown li.optgroup ~ li.optgroup-option{padding-left:1rem}.file-field{position:relative}.file-field .file-path-wrapper{overflow:hidden;padding-left:10px}.file-field input.file-path{width:100%}.file-field .btn,.file-field .btn-large,.file-field .btn-small{float:left;height:3rem;line-height:3rem}.file-field span{cursor:pointer}.file-field input[type=file]{position:absolute;top:0;right:0;left:0;bottom:0;width:100%;margin:0;padding:0;font-size:20px;cursor:pointer;opacity:0;filter:alpha(opacity=0)}.file-field input[type=file]::-webkit-file-upload-button{display:none}.range-field{position:relative}input[type=range],input[type=range]+.thumb{cursor:pointer}input[type=range]{position:relative;background-color:transparent;border:none;outline:none;width:100%;margin:15px 0;padding:0}input[type=range]:focus{outline:none}input[type=range]+.thumb{position:absolute;top:10px;left:0;border:none;height:0;width:0;border-radius:50%;background-color:#26a69a;margin-left:7px;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}input[type=range]+.thumb .value{display:block;width:30px;text-align:center;color:#26a69a;font-size:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}input[type=range]+.thumb.active{border-radius:50% 50% 50% 0}input[type=range]+.thumb.active .value{color:#fff;margin-left:-1px;margin-top:8px;font-size:10px}input[type=range]{-webkit-appearance:none}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#c2c0c2;border:none}input[type=range]::-webkit-slider-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s;-webkit-appearance:none;background-color:#26a69a;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;margin:-5px 0 0 0}.keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb{-webkit-box-shadow:0 0 0 10px rgba(38,166,154,0.26);box-shadow:0 0 0 10px rgba(38,166,154,0.26)}input[type=range]{border:1px solid white}input[type=range]::-moz-range-track{height:3px;background:#c2c0c2;border:none}input[type=range]::-moz-focus-inner{border:0}input[type=range]::-moz-range-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s;margin-top:-5px}input[type=range]:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}.keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb{box-shadow:0 0 0 10px rgba(38,166,154,0.26)}input[type=range]::-ms-track{height:3px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input[type=range]::-ms-fill-lower{background:#777}input[type=range]::-ms-fill-upper{background:#ddd}input[type=range]::-ms-thumb{border:none;height:14px;width:14px;border-radius:50%;background:#26a69a;-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s, -webkit-box-shadow .3s}.keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb{box-shadow:0 0 0 10px rgba(38,166,154,0.26)}.table-of-contents.fixed{position:fixed}.table-of-contents li{padding:2px 0}.table-of-contents a{display:inline-block;font-weight:300;color:#757575;padding-left:16px;height:1.5rem;line-height:1.5rem;letter-spacing:.4;display:inline-block}.table-of-contents a:hover{color:#a8a8a8;padding-left:15px;border-left:1px solid #ee6e73}.table-of-contents a.active{font-weight:500;padding-left:14px;border-left:2px solid #ee6e73}.sidenav{position:fixed;width:300px;left:0;top:0;margin:0;-webkit-transform:translateX(-100%);transform:translateX(-100%);height:100%;height:calc(100% + 60px);height:-moz-calc(100%);padding-bottom:60px;background-color:#fff;z-index:999;overflow-y:auto;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateX(-105%);transform:translateX(-105%)}.sidenav.right-aligned{right:0;-webkit-transform:translateX(105%);transform:translateX(105%);left:auto;-webkit-transform:translateX(100%);transform:translateX(100%)}.sidenav .collapsible{margin:0}.sidenav li{float:none;line-height:48px}.sidenav li.active{background-color:rgba(0,0,0,0.05)}.sidenav li>a{color:rgba(0,0,0,0.87);display:block;font-size:14px;font-weight:500;height:48px;line-height:48px;padding:0 32px}.sidenav li>a:hover{background-color:rgba(0,0,0,0.05)}.sidenav li>a.btn,.sidenav li>a.btn-large,.sidenav li>a.btn-small,.sidenav li>a.btn-large,.sidenav li>a.btn-flat,.sidenav li>a.btn-floating{margin:10px 15px}.sidenav li>a.btn,.sidenav li>a.btn-large,.sidenav li>a.btn-small,.sidenav li>a.btn-large,.sidenav li>a.btn-floating{color:#fff}.sidenav li>a.btn-flat{color:#343434}.sidenav li>a.btn:hover,.sidenav li>a.btn-large:hover,.sidenav li>a.btn-small:hover,.sidenav li>a.btn-large:hover{background-color:#2bbbad}.sidenav li>a.btn-floating:hover{background-color:#26a69a}.sidenav li>a>i,.sidenav li>a>[class^="mdi-"],.sidenav li>a li>a>[class*="mdi-"],.sidenav li>a>i.material-icons{float:left;height:48px;line-height:48px;margin:0 32px 0 0;width:24px;color:rgba(0,0,0,0.54)}.sidenav .divider{margin:8px 0 0 0}.sidenav .subheader{cursor:initial;pointer-events:none;color:rgba(0,0,0,0.54);font-size:14px;font-weight:500;line-height:48px}.sidenav .subheader:hover{background-color:transparent}.sidenav .user-view{position:relative;padding:32px 32px 0;margin-bottom:8px}.sidenav .user-view>a{height:auto;padding:0}.sidenav .user-view>a:hover{background-color:transparent}.sidenav .user-view .background{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.sidenav .user-view .circle,.sidenav .user-view .name,.sidenav .user-view .email{display:block}.sidenav .user-view .circle{height:64px;width:64px}.sidenav .user-view .name,.sidenav .user-view .email{font-size:14px;line-height:24px}.sidenav .user-view .name{margin-top:16px;font-weight:500}.sidenav .user-view .email{padding-bottom:16px;font-weight:400}.drag-target{height:100%;width:10px;position:fixed;top:0;z-index:998}.drag-target.right-aligned{right:0}.sidenav.sidenav-fixed{left:0;-webkit-transform:translateX(0);transform:translateX(0);position:fixed}.sidenav.sidenav-fixed.right-aligned{right:0;left:auto}@media only screen and (max-width: 992px){.sidenav.sidenav-fixed{-webkit-transform:translateX(-105%);transform:translateX(-105%)}.sidenav.sidenav-fixed.right-aligned{-webkit-transform:translateX(105%);transform:translateX(105%)}.sidenav>a{padding:0 16px}.sidenav .user-view{padding:16px 16px 0}}.sidenav .collapsible-body>ul:not(.collapsible)>li.active,.sidenav.sidenav-fixed .collapsible-body>ul:not(.collapsible)>li.active{background-color:#ee6e73}.sidenav .collapsible-body>ul:not(.collapsible)>li.active a,.sidenav.sidenav-fixed .collapsible-body>ul:not(.collapsible)>li.active a{color:#fff}.sidenav .collapsible-body{padding:0}.sidenav-overlay{position:fixed;top:0;left:0;right:0;opacity:0;height:120vh;background-color:rgba(0,0,0,0.5);z-index:997;display:none}.preloader-wrapper{display:inline-block;position:relative;width:50px;height:50px}.preloader-wrapper.small{width:36px;height:36px}.preloader-wrapper.big{width:64px;height:64px}.preloader-wrapper.active{-webkit-animation:container-rotate 1568ms linear infinite;animation:container-rotate 1568ms linear infinite}@-webkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes container-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-layer{position:absolute;width:100%;height:100%;opacity:0;border-color:#26a69a}.spinner-blue,.spinner-blue-only{border-color:#4285f4}.spinner-red,.spinner-red-only{border-color:#db4437}.spinner-yellow,.spinner-yellow-only{border-color:#f4b400}.spinner-green,.spinner-green-only{border-color:#0f9d58}.active .spinner-layer.spinner-blue{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,blue-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-red{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,red-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-yellow{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,yellow-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer.spinner-green{-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,green-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .spinner-layer,.active .spinner-layer.spinner-blue-only,.active .spinner-layer.spinner-red-only,.active .spinner-layer.spinner-yellow-only,.active .spinner-layer.spinner-green-only{opacity:1;-webkit-animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:fill-unfill-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@-webkit-keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg)}}@keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg);transform:rotate(1080deg)}}@-webkit-keyframes blue-fade-in-out{from{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}100%{opacity:1}}@keyframes blue-fade-in-out{from{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}100%{opacity:1}}@-webkit-keyframes red-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes red-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}}@-webkit-keyframes yellow-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@keyframes yellow-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}}@-webkit-keyframes green-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}100%{opacity:0}}@keyframes green-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}100%{opacity:0}}.gap-patch{position:absolute;top:0;left:45%;width:10%;height:100%;overflow:hidden;border-color:inherit}.gap-patch .circle{width:1000%;left:-450%}.circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.circle-clipper .circle{width:200%;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:transparent !important;border-radius:50%;-webkit-animation:none;animation:none;position:absolute;top:0;right:0;bottom:0}.circle-clipper.left .circle{left:0;border-right-color:transparent !important;-webkit-transform:rotate(129deg);transform:rotate(129deg)}.circle-clipper.right .circle{left:-100%;border-left-color:transparent !important;-webkit-transform:rotate(-129deg);transform:rotate(-129deg)}.active .circle-clipper.left .circle{-webkit-animation:left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.active .circle-clipper.right .circle{-webkit-animation:right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;animation:right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@-webkit-keyframes left-spin{from{-webkit-transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg)}}@keyframes left-spin{from{-webkit-transform:rotate(130deg);transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg);transform:rotate(130deg)}}@-webkit-keyframes right-spin{from{-webkit-transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg)}}@keyframes right-spin{from{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}}#spinnerContainer.cooldown{-webkit-animation:container-rotate 1568ms linear infinite,fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1);animation:container-rotate 1568ms linear infinite,fade-out 400ms cubic-bezier(0.4, 0, 0.2, 1)}@-webkit-keyframes fade-out{from{opacity:1}to{opacity:0}}@keyframes fade-out{from{opacity:1}to{opacity:0}}.slider{position:relative;height:400px;width:100%}.slider.fullscreen{height:100%;width:100%;position:absolute;top:0;left:0;right:0;bottom:0}.slider.fullscreen ul.slides{height:100%}.slider.fullscreen ul.indicators{z-index:2;bottom:30px}.slider .slides{background-color:#9e9e9e;margin:0;height:400px}.slider .slides li{opacity:0;position:absolute;top:0;left:0;z-index:1;width:100%;height:inherit;overflow:hidden}.slider .slides li img{height:100%;width:100%;background-size:cover;background-position:center}.slider .slides li .caption{color:#fff;position:absolute;top:15%;left:15%;width:70%;opacity:0}.slider .slides li .caption p{color:#e0e0e0}.slider .slides li.active{z-index:2}.slider .indicators{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:0}.slider .indicators .indicator-item{display:inline-block;position:relative;cursor:pointer;height:16px;width:16px;margin:0 12px;background-color:#e0e0e0;-webkit-transition:background-color .3s;transition:background-color .3s;border-radius:50%}.slider .indicators .indicator-item.active{background-color:#4CAF50}.carousel{overflow:hidden;position:relative;width:100%;height:400px;-webkit-perspective:500px;perspective:500px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform-origin:0% 50%;transform-origin:0% 50%}.carousel.carousel-slider{top:0;left:0}.carousel.carousel-slider .carousel-fixed-item{position:absolute;left:0;right:0;bottom:20px;z-index:1}.carousel.carousel-slider .carousel-fixed-item.with-indicators{bottom:68px}.carousel.carousel-slider .carousel-item{width:100%;height:100%;min-height:400px;position:absolute;top:0;left:0}.carousel.carousel-slider .carousel-item h2{font-size:24px;font-weight:500;line-height:32px}.carousel.carousel-slider .carousel-item p{font-size:15px}.carousel .carousel-item{visibility:hidden;width:200px;height:200px;position:absolute;top:0;left:0}.carousel .carousel-item>img{width:100%}.carousel .indicators{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:0}.carousel .indicators .indicator-item{display:inline-block;position:relative;cursor:pointer;height:8px;width:8px;margin:24px 4px;background-color:rgba(255,255,255,0.5);-webkit-transition:background-color .3s;transition:background-color .3s;border-radius:50%}.carousel .indicators .indicator-item.active{background-color:#fff}.carousel.scrolling .carousel-item .materialboxed,.carousel .carousel-item:not(.active) .materialboxed{pointer-events:none}.tap-target-wrapper{width:800px;height:800px;position:fixed;z-index:1000;visibility:hidden;-webkit-transition:visibility 0s .3s;transition:visibility 0s .3s}.tap-target-wrapper.open{visibility:visible;-webkit-transition:visibility 0s;transition:visibility 0s}.tap-target-wrapper.open .tap-target{-webkit-transform:scale(1);transform:scale(1);opacity:.95;-webkit-transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1)}.tap-target-wrapper.open .tap-target-wave::before{-webkit-transform:scale(1);transform:scale(1)}.tap-target-wrapper.open .tap-target-wave::after{visibility:visible;-webkit-animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;-webkit-transition:opacity .3s,
|
16 |
+
visibility 0s 1s,
|
17 |
+
-webkit-transform .3s;transition:opacity .3s,
|
18 |
+
visibility 0s 1s,
|
19 |
+
-webkit-transform .3s;transition:opacity .3s,
|
20 |
+
transform .3s,
|
21 |
+
visibility 0s 1s;transition:opacity .3s,
|
22 |
+
transform .3s,
|
23 |
+
visibility 0s 1s,
|
24 |
+
-webkit-transform .3s}.tap-target{position:absolute;font-size:1rem;border-radius:50%;background-color:#ee6e73;-webkit-box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);box-shadow:0 20px 20px 0 rgba(0,0,0,0.14),0 10px 50px 0 rgba(0,0,0,0.12),0 30px 10px -20px rgba(0,0,0,0.2);width:100%;height:100%;opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1);transition:transform 0.3s cubic-bezier(0.42, 0, 0.58, 1),opacity 0.3s cubic-bezier(0.42, 0, 0.58, 1),-webkit-transform 0.3s cubic-bezier(0.42, 0, 0.58, 1)}.tap-target-content{position:relative;display:table-cell}.tap-target-wave{position:absolute;border-radius:50%;z-index:10001}.tap-target-wave::before,.tap-target-wave::after{content:'';display:block;position:absolute;width:100%;height:100%;border-radius:50%;background-color:#ffffff}.tap-target-wave::before{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}.tap-target-wave::after{visibility:hidden;-webkit-transition:opacity .3s,
|
25 |
+
visibility 0s,
|
26 |
+
-webkit-transform .3s;transition:opacity .3s,
|
27 |
+
visibility 0s,
|
28 |
+
-webkit-transform .3s;transition:opacity .3s,
|
29 |
+
transform .3s,
|
30 |
+
visibility 0s;transition:opacity .3s,
|
31 |
+
transform .3s,
|
32 |
+
visibility 0s,
|
33 |
-webkit-transform .3s;z-index:-1}.tap-target-origin{top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);z-index:10002;position:absolute !important}.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small),.tap-target-origin:not(.btn):not(.btn-large):not(.btn-small):hover{background:none}@media only screen and (max-width: 600px){.tap-target,.tap-target-wrapper{width:600px;height:600px}}.pulse{overflow:visible;position:relative}.pulse::before{content:'';display:block;position:absolute;width:100%;height:100%;top:0;left:0;background-color:inherit;border-radius:inherit;-webkit-transition:opacity .3s, -webkit-transform .3s;transition:opacity .3s, -webkit-transform .3s;transition:opacity .3s, transform .3s;transition:opacity .3s, transform .3s, -webkit-transform .3s;-webkit-animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;animation:pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;z-index:-1}@-webkit-keyframes pulse-animation{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}50%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}}@keyframes pulse-animation{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}50%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}}.datepicker-modal{max-width:325px;min-width:300px;max-height:none}.datepicker-container.modal-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0}.datepicker-controls{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:280px;margin:0 auto}.datepicker-controls .selects-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.datepicker-controls .select-wrapper input{border-bottom:none;text-align:center;margin:0}.datepicker-controls .select-wrapper input:focus{border-bottom:none}.datepicker-controls .select-wrapper .caret{display:none}.datepicker-controls .select-year input{width:50px}.datepicker-controls .select-month input{width:70px}.month-prev,.month-next{margin-top:4px;cursor:pointer;background-color:transparent;border:none}.datepicker-date-display{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;background-color:#26a69a;color:#fff;padding:20px 22px;font-weight:500}.datepicker-date-display .year-text{display:block;font-size:1.5rem;line-height:25px;color:rgba(255,255,255,0.7)}.datepicker-date-display .date-text{display:block;font-size:2.8rem;line-height:47px;font-weight:500}.datepicker-calendar-container{-webkit-box-flex:2.5;-webkit-flex:2.5 auto;-ms-flex:2.5 auto;flex:2.5 auto}.datepicker-table{width:280px;font-size:1rem;margin:0 auto}.datepicker-table thead{border-bottom:none}.datepicker-table th{padding:10px 5px;text-align:center}.datepicker-table tr{border:none}.datepicker-table abbr{text-decoration:none;color:#999}.datepicker-table td{border-radius:50%;padding:0}.datepicker-table td.is-today{color:#26a69a}.datepicker-table td.is-selected{background-color:#26a69a;color:#fff}.datepicker-table td.is-outside-current-month,.datepicker-table td.is-disabled{color:rgba(0,0,0,0.3);pointer-events:none}.datepicker-day-button{background-color:transparent;border:none;line-height:38px;display:block;width:100%;border-radius:50%;padding:0 5px;cursor:pointer;color:inherit}.datepicker-day-button:focus{background-color:rgba(43,161,150,0.25)}.datepicker-footer{width:280px;margin:0 auto;padding-bottom:5px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.datepicker-cancel,.datepicker-clear,.datepicker-today,.datepicker-done{color:#26a69a;padding:0 1rem}.datepicker-clear{color:#F44336}@media only screen and (min-width: 601px){.datepicker-modal{max-width:625px}.datepicker-container.modal-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.datepicker-date-display{-webkit-box-flex:0;-webkit-flex:0 1 270px;-ms-flex:0 1 270px;flex:0 1 270px}.datepicker-controls,.datepicker-table,.datepicker-footer{width:320px}.datepicker-day-button{line-height:44px}}.timepicker-modal{max-width:325px;max-height:none}.timepicker-container.modal-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0}.text-primary{color:#fff}.timepicker-digital-display{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto;background-color:#26a69a;padding:10px;font-weight:300}.timepicker-text-container{font-size:4rem;font-weight:bold;text-align:center;color:rgba(255,255,255,0.6);font-weight:400;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.timepicker-span-hours,.timepicker-span-minutes,.timepicker-span-am-pm div{cursor:pointer}.timepicker-span-hours{margin-right:3px}.timepicker-span-minutes{margin-left:3px}.timepicker-display-am-pm{font-size:1.3rem;position:absolute;right:1rem;bottom:1rem;font-weight:400}.timepicker-analog-display{-webkit-box-flex:2.5;-webkit-flex:2.5 auto;-ms-flex:2.5 auto;flex:2.5 auto}.timepicker-plate{background-color:#eee;border-radius:50%;width:270px;height:270px;overflow:visible;position:relative;margin:auto;margin-top:25px;margin-bottom:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.timepicker-canvas,.timepicker-dial{position:absolute;left:0;right:0;top:0;bottom:0}.timepicker-minutes{visibility:hidden}.timepicker-tick{border-radius:50%;color:rgba(0,0,0,0.87);line-height:40px;text-align:center;width:40px;height:40px;position:absolute;cursor:pointer;font-size:15px}.timepicker-tick.active,.timepicker-tick:hover{background-color:rgba(38,166,154,0.25)}.timepicker-dial{-webkit-transition:opacity 350ms, -webkit-transform 350ms;transition:opacity 350ms, -webkit-transform 350ms;transition:transform 350ms, opacity 350ms;transition:transform 350ms, opacity 350ms, -webkit-transform 350ms}.timepicker-dial-out{opacity:0}.timepicker-dial-out.timepicker-hours{-webkit-transform:scale(1.1, 1.1);transform:scale(1.1, 1.1)}.timepicker-dial-out.timepicker-minutes{-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}.timepicker-canvas{-webkit-transition:opacity 175ms;transition:opacity 175ms}.timepicker-canvas line{stroke:#26a69a;stroke-width:4;stroke-linecap:round}.timepicker-canvas-out{opacity:0.25}.timepicker-canvas-bearing{stroke:none;fill:#26a69a}.timepicker-canvas-bg{stroke:none;fill:#26a69a}.timepicker-footer{margin:0 auto;padding:5px 1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.timepicker-clear{color:#F44336}.timepicker-close{color:#26a69a}.timepicker-clear,.timepicker-close{padding:0 20px}@media only screen and (min-width: 601px){.timepicker-modal{max-width:600px}.timepicker-container.modal-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.timepicker-text-container{top:32%}.timepicker-display-am-pm{position:relative;right:auto;bottom:auto;text-align:center;margin-top:1.2rem}}
|
new/admin/admin_assets/js/admin.js
CHANGED
@@ -1,146 +1,91 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
//
|
31 |
-
|
32 |
-
//
|
33 |
-
|
34 |
-
|
35 |
-
//
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
//
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
});
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
//
|
82 |
-
hidebased.forEach(function (e) {
|
83 |
-
e.classList.add('show-hide_display-block');
|
84 |
-
});
|
85 |
-
}
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
// incase display-block is added remove it .. onchange
|
92 |
-
function ctc_show_hide_display_remove() {
|
93 |
-
ctc_show_hide_display.forEach(function (e) {
|
94 |
-
e.classList.remove('show-hide_display-block');
|
95 |
-
});
|
96 |
-
};
|
97 |
-
|
98 |
-
|
99 |
-
$(".select_show_or_hide").on("change", function (e) {
|
100 |
-
|
101 |
-
// var x = e.target;
|
102 |
-
var val = e.target.value;
|
103 |
-
|
104 |
-
if (val == 'show') {
|
105 |
-
ctc_show_hide_display_remove();
|
106 |
-
|
107 |
-
// showbased.classList.add('show-hide_display-block');
|
108 |
-
showbased.forEach(function (e) {
|
109 |
-
e.classList.add('show-hide_display-block');
|
110 |
-
});
|
111 |
-
|
112 |
-
} else if (val == 'hide') {
|
113 |
-
ctc_show_hide_display_remove();
|
114 |
-
|
115 |
-
// hidebased.classList.add('show-hide_display-block');
|
116 |
-
hidebased.forEach(function (e) {
|
117 |
-
e.classList.add('show-hide_display-block');
|
118 |
-
});
|
119 |
-
}
|
120 |
-
});
|
121 |
-
|
122 |
-
// ##### show/Hide - chat option #####
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
// color ..
|
128 |
-
|
129 |
-
if ( $(".ht-ctc-color") ) {
|
130 |
-
if ( $(".ht-ctc-color").spectrum ) {
|
131 |
-
$(".ht-ctc-color").spectrum({
|
132 |
-
preferredFormat: "hex",
|
133 |
-
showInput: true,
|
134 |
-
allowEmpty:true,
|
135 |
-
chooseText:'Select',
|
136 |
-
// showPalette: true,
|
137 |
-
// showSelectionPalette: true,
|
138 |
-
// palette: [ 'red', 'green', 'blue' ],
|
139 |
-
// localStorageKey: "spectrum.homepage",
|
140 |
-
});
|
141 |
-
}
|
142 |
-
}
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
});
|
1 |
+
/**
|
2 |
+
* Click to Chat
|
3 |
+
* Custom Code
|
4 |
+
*/
|
5 |
+
|
6 |
+
|
7 |
+
// initialize materialize function ..
|
8 |
+
document.addEventListener('DOMContentLoaded', function() {
|
9 |
+
|
10 |
+
var elems = document.querySelectorAll('select');
|
11 |
+
M.FormSelect.init(elems, {});
|
12 |
+
|
13 |
+
var elems = document.querySelectorAll('.collapsible');
|
14 |
+
M.Collapsible.init(elems, {});
|
15 |
+
|
16 |
+
var elems = document.querySelectorAll('.modal');
|
17 |
+
M.Modal.init(elems, {});
|
18 |
+
|
19 |
+
});
|
20 |
+
|
21 |
+
|
22 |
+
jQuery(document).ready(function ($) {
|
23 |
+
|
24 |
+
$('select').formSelect();
|
25 |
+
$('.collapsible').collapsible();
|
26 |
+
$('.modal').modal();
|
27 |
+
|
28 |
+
$('.ht-ctc-color').wpColorPicker();
|
29 |
+
|
30 |
+
// ##### show/Hide #####
|
31 |
+
|
32 |
+
// show_hide option - other settings page
|
33 |
+
var ctc_show_hide_display = document.querySelectorAll('.ctc_show_hide_display');
|
34 |
+
|
35 |
+
// var hidebased = document.querySelector('.hidebased');
|
36 |
+
var hidebased = document.querySelectorAll('.hidebased');
|
37 |
+
var showbased = document.querySelectorAll('.showbased');
|
38 |
+
|
39 |
+
// default display
|
40 |
+
function ctc_show_hide_default_display() {
|
41 |
+
|
42 |
+
var val = $('.select_show_or_hide').find(":selected").val();
|
43 |
+
|
44 |
+
if (val == 'show') {
|
45 |
+
// showbased.classList.add('show-hide_display-block');
|
46 |
+
showbased.forEach(function (e) {
|
47 |
+
e.classList.add('show-hide_display-block');
|
48 |
+
});
|
49 |
+
} else if (val == 'hide') {
|
50 |
+
// hidebased.classList.add('show-hide_display-block');
|
51 |
+
hidebased.forEach(function (e) {
|
52 |
+
e.classList.add('show-hide_display-block');
|
53 |
+
});
|
54 |
+
}
|
55 |
+
};
|
56 |
+
|
57 |
+
ctc_show_hide_default_display();
|
58 |
+
|
59 |
+
|
60 |
+
// incase display-block is added remove it .. onchange
|
61 |
+
function ctc_show_hide_display_remove() {
|
62 |
+
ctc_show_hide_display.forEach(function (e) {
|
63 |
+
e.classList.remove('show-hide_display-block');
|
64 |
+
});
|
65 |
+
};
|
66 |
+
|
67 |
+
|
68 |
+
$(".select_show_or_hide").on("change", function (e) {
|
69 |
+
// var x = e.target;
|
70 |
+
var val = e.target.value;
|
71 |
+
|
72 |
+
if (val == 'show') {
|
73 |
+
ctc_show_hide_display_remove();
|
74 |
+
// showbased.classList.add('show-hide_display-block');
|
75 |
+
showbased.forEach(function (e) {
|
76 |
+
e.classList.add('show-hide_display-block');
|
77 |
+
});
|
78 |
+
} else if (val == 'hide') {
|
79 |
+
ctc_show_hide_display_remove();
|
80 |
+
|
81 |
+
// hidebased.classList.add('show-hide_display-block');
|
82 |
+
hidebased.forEach(function (e) {
|
83 |
+
e.classList.add('show-hide_display-block');
|
84 |
+
});
|
85 |
+
}
|
86 |
+
});
|
87 |
+
|
88 |
+
// ##### END #### show/Hide #####
|
89 |
+
|
90 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
});
|
new/admin/admin_assets/js/materialize.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
/*!
|
2 |
-
* Materialize v1.0.0 (http://materializecss.com)
|
3 |
-
* Copyright 2014-2017 Materialize
|
4 |
-
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
5 |
-
*/
|
6 |
var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in s)return s.value;var a=s.get;return void 0!==a?a.call(n):void 0},_createClass=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}();function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}window.cash=function(){var i,o=document,a=window,t=Array.prototype,r=t.slice,n=t.filter,s=t.push,e=function(){},h=function(t){return typeof t==typeof e&&t.call},d=function(t){return"string"==typeof t},l=/^#[\w-]*$/,u=/^\.[\w-]*$/,c=/<.+>/,p=/^\w+$/;function v(t,e){e=e||o;var i=u.test(t)?e.getElementsByClassName(t.slice(1)):p.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t);return i}function f(t){if(!i){var e=(i=o.implementation.createHTMLDocument(null)).createElement("base");e.href=o.location.href,i.head.appendChild(e)}return i.body.innerHTML=t,i.body.childNodes}function m(t){"loading"!==o.readyState?t():o.addEventListener("DOMContentLoaded",t)}function g(t,e){if(!t)return this;if(t.cash&&t!==a)return t;var i,n=t,s=0;if(d(t))n=l.test(t)?o.getElementById(t.slice(1)):c.test(t)?f(t):v(t,e);else if(h(t))return m(t),this;if(!n)return this;if(n.nodeType||n===a)this[0]=n,this.length=1;else for(i=this.length=n.length;s<i;s++)this[s]=n[s];return this}function _(t,e){return new g(t,e)}var y=_.fn=_.prototype=g.prototype={cash:!0,length:0,push:s,splice:t.splice,map:t.map,init:g};function k(t,e){for(var i=t.length,n=0;n<i&&!1!==e.call(t[n],t[n],n,t);n++);}function b(t,e){var i=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!i&&i.call(t,e)}function w(e){return d(e)?b:e.cash?function(t){return e.is(t)}:function(t,e){return t===e}}function C(t){return _(r.call(t).filter(function(t,e,i){return i.indexOf(t)===e}))}Object.defineProperty(y,"constructor",{value:_}),_.parseHTML=f,_.noop=e,_.isFunction=h,_.isString=d,_.extend=y.extend=function(t){t=t||{};var e=r.call(arguments),i=e.length,n=1;for(1===e.length&&(t=this,n=0);n<i;n++)if(e[n])for(var s in e[n])e[n].hasOwnProperty(s)&&(t[s]=e[n][s]);return t},_.extend({merge:function(t,e){for(var i=+e.length,n=t.length,s=0;s<i;n++,s++)t[n]=e[s];return t.length=n,t},each:k,matches:b,unique:C,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var E=_.uid="_cash"+Date.now();function M(t){return t[E]=t[E]||{}}function O(t,e,i){return M(t)[e]=i}function x(t,e){var i=M(t);return void 0===i[e]&&(i[e]=t.dataset?t.dataset[e]:_(t).attr("data-"+e)),i[e]}y.extend({data:function(e,i){if(d(e))return void 0===i?x(this[0],e):this.each(function(t){return O(t,e,i)});for(var t in e)this.data(t,e[t]);return this},removeData:function(s){return this.each(function(t){return i=s,void((n=M(e=t))?delete n[i]:e.dataset?delete e.dataset[i]:_(e).removeAttr("data-"+name));var e,i,n})}});var L=/\S+/g;function T(t){return d(t)&&t.match(L)}function $(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function B(t,e,i){t.classList?t.classList.add(e):i.indexOf(" "+e+" ")&&(t.className+=" "+e)}function D(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}y.extend({addClass:function(t){var n=T(t);return n?this.each(function(e){var i=" "+e.className+" ";k(n,function(t){B(e,t,i)})}):this},attr:function(e,i){if(e){if(d(e))return void 0===i?this[0]?this[0].getAttribute?this[0].getAttribute(e):this[0][e]:void 0:this.each(function(t){t.setAttribute?t.setAttribute(e,i):t[e]=i});for(var t in e)this.attr(t,e[t]);return this}},hasClass:function(t){var e=!1,i=T(t);return i&&i.length&&this.each(function(t){return!(e=$(t,i[0]))}),e},prop:function(e,i){if(d(e))return void 0===i?this[0][e]:this.each(function(t){t[e]=i});for(var t in e)this.prop(t,e[t]);return this},removeAttr:function(e){return this.each(function(t){t.removeAttribute?t.removeAttribute(e):delete t[e]})},removeClass:function(t){if(!arguments.length)return this.attr("class","");var i=T(t);return i?this.each(function(e){k(i,function(t){D(e,t)})}):this},removeProp:function(e){return this.each(function(t){delete t[e]})},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=T(t);return n?this.each(function(e){var i=" "+e.className+" ";k(n,function(t){$(e,t)?D(e,t):B(e,t,i)})}):this}}),y.extend({add:function(t,e){return C(_.merge(this,_(t,e)))},each:function(t){return k(this,t),this},eq:function(t){return _(this.get(t))},filter:function(e){if(!e)return this;var i=h(e)?e:w(e);return _(n.call(this,function(t){return i(t,e)}))},first:function(){return this.eq(0)},get:function(t){return void 0===t?r.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=t?_(t)[0]:this[0],i=t?this:_(e).parent().children();return r.call(i).indexOf(e)},last:function(){return this.eq(-1)}});var S,I,A,R,H,P,W=(H=/(?:^\w|[A-Z]|\b\w)/g,P=/[\s-_]+/g,function(t){return t.replace(H,function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()}).replace(P,"")}),j=(S={},I=document,A=I.createElement("div"),R=A.style,function(e){if(e=W(e),S[e])return S[e];var t=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+["webkit","moz","ms","o"].join(t+" ")+t).split(" ");return k(i,function(t){if(t in R)return S[t]=e=S[e]=t,!1}),S[e]});function F(t,e){return parseInt(a.getComputedStyle(t[0],null)[e],10)||0}function q(e,i,t){var n,s=x(e,"_cashEvents"),o=s&&s[i];o&&(t?(e.removeEventListener(i,t),0<=(n=o.indexOf(t))&&o.splice(n,1)):(k(o,function(t){e.removeEventListener(i,t)}),o=[]))}function N(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function z(t){var e,i,n,s=t.type;if(!s)return null;switch(s.toLowerCase()){case"select-one":return 0<=(n=(i=t).selectedIndex)?i.options[n].value:null;case"select-multiple":return e=[],k(t.options,function(t){t.selected&&e.push(t.value)}),e.length?e:null;case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function V(e,i,n){var t=d(i);t||!i.length?k(e,t?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",i)}:function(t,e){return function(t,e,i){if(i){var n=t.childNodes[0];t.insertBefore(e,n)}else t.appendChild(e)}(t,0===e?i:i.cloneNode(!0),n)}):k(i,function(t){return V(e,t,n)})}_.prefixedProp=j,_.camelCase=W,y.extend({css:function(e,i){if(d(e))return e=j(e),1<arguments.length?this.each(function(t){return t.style[e]=i}):a.getComputedStyle(this[0])[e];for(var t in e)this.css(t,e[t]);return this}}),k(["Width","Height"],function(e){var t=e.toLowerCase();y[t]=function(){return this[0].getBoundingClientRect()[t]},y["inner"+e]=function(){return this[0]["client"+e]},y["outer"+e]=function(t){return this[0]["offset"+e]+(t?F(this,"margin"+("Width"===e?"Left":"Top"))+F(this,"margin"+("Width"===e?"Right":"Bottom")):0)}}),y.extend({off:function(e,i){return this.each(function(t){return q(t,e,i)})},on:function(a,i,r,l){var n;if(!d(a)){for(var t in a)this.on(t,i,a[t]);return this}return h(i)&&(r=i,i=null),"ready"===a?(m(r),this):(i&&(n=r,r=function(t){for(var e=t.target;!b(e,i);){if(e===this||null===e)return e=!1;e=e.parentNode}e&&n.call(e,t)}),this.each(function(t){var e,i,n,s,o=r;l&&(o=function(){r.apply(this,arguments),q(t,a,o)}),i=a,n=o,(s=x(e=t,"_cashEvents")||O(e,"_cashEvents",{}))[i]=s[i]||[],s[i].push(n),e.addEventListener(i,n)}))},one:function(t,e,i){return this.on(t,e,i,!0)},ready:m,trigger:function(t,e){if(document.createEvent){var i=document.createEvent("HTMLEvents");return i.initEvent(t,!0,!1),i=this.extend(i,e),this.each(function(t){return t.dispatchEvent(i)})}}}),y.extend({serialize:function(){var s="";return k(this[0].elements||this,function(t){if(!t.disabled&&"FIELDSET"!==t.tagName){var e=t.name;switch(t.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var i=z(t);null!==i&&k(i,function(t){s+=N(e,t)});break;default:var n=z(t);null!==n&&(s+=N(e,n))}}}),s.substr(1)},val:function(e){return void 0===e?z(this[0]):this.each(function(t){return t.value=e})}}),y.extend({after:function(t){return _(t).insertAfter(this),this},append:function(t){return V(this,t),this},appendTo:function(t){return V(_(t),this),this},before:function(t){return _(t).insertBefore(this),this},clone:function(){return _(this.map(function(t){return t.cloneNode(!0)}))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each(function(t){return t.innerHTML=e})},insertAfter:function(t){var s=this;return _(t).each(function(t,e){var i=t.parentNode,n=t.nextSibling;s.each(function(t){i.insertBefore(0===e?t:t.cloneNode(!0),n)})}),this},insertBefore:function(t){var s=this;return _(t).each(function(e,i){var n=e.parentNode;s.each(function(t){n.insertBefore(0===i?t:t.cloneNode(!0),e)})}),this},prepend:function(t){return V(this,t,!0),this},prependTo:function(t){return V(_(t),this,!0),this},remove:function(){return this.each(function(t){if(t.parentNode)return t.parentNode.removeChild(t)})},text:function(e){return void 0===e?this[0].textContent:this.each(function(t){return t.textContent=e})}});var X=o.documentElement;return y.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+a.pageYOffset-X.clientTop,left:t.left+a.pageXOffset-X.clientLeft}},offsetParent:function(){return _(this[0].offsetParent)}}),y.extend({children:function(e){var i=[];return this.each(function(t){s.apply(i,t.children)}),i=C(i),e?i.filter(function(t){return b(t,e)}):i},closest:function(t){return!t||this.length<1?_():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(e){if(!e)return!1;var i=!1,n=w(e);return this.each(function(t){return!(i=n(t,e))}),i},find:function(e){if(!e||e.nodeType)return _(e&&this.has(e).length?e:null);var i=[];return this.each(function(t){s.apply(i,v(e,t))}),C(i)},has:function(e){var t=d(e)?function(t){return 0!==v(e,t).length}:function(t){return t.contains(e)};return this.filter(t)},next:function(){return _(this[0].nextElementSibling)},not:function(e){if(!e)return this;var i=w(e);return this.filter(function(t){return!i(t,e)})},parent:function(){var e=[];return this.each(function(t){t&&t.parentNode&&e.push(t.parentNode)}),C(e)},parents:function(e){var i,n=[];return this.each(function(t){for(i=t;i&&i.parentNode&&i!==o.body.parentNode;)i=i.parentNode,(!e||e&&b(i,e))&&n.push(i)}),C(n)},prev:function(){return _(this[0].previousElementSibling)},siblings:function(t){var e=this.parent().children(t),i=this[0];return e.filter(function(t){return t!==i})}}),_}();var Component=function(){function s(t,e,i){_classCallCheck(this,s),e instanceof Element||console.error(Error(e+" is not an HTML Element"));var n=t.getInstance(e);n&&n.destroy(),this.el=e,this.$el=cash(e)}return _createClass(s,null,[{key:"init",value:function(t,e,i){var n=null;if(e instanceof Element)n=new t(e,i);else if(e&&(e.jquery||e.cash||e instanceof NodeList)){for(var s=[],o=0;o<e.length;o++)s.push(new t(e[o],i));n=s}return n}}]),s}();!function(t){t.Package?M={}:t.M={},M.jQueryLoaded=!!t.jQuery}(window),"function"==typeof define&&define.amd?define("M",[],function(){return M}):"undefined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=M),exports.default=M),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1;var docHandleKeydown=function(t){M.keyDown=!0,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!0)},docHandleKeyup=function(t){M.keyDown=!1,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!1)},docHandleFocus=function(t){M.keyDown&&document.body.classList.add("keyboard-focused")},docHandleBlur=function(t){document.body.classList.remove("keyboard-focused")};document.addEventListener("keydown",docHandleKeydown,!0),document.addEventListener("keyup",docHandleKeyup,!0),document.addEventListener("focus",docHandleFocus,!0),document.addEventListener("blur",docHandleBlur,!0),M.initializeJqueryWrapper=function(n,s,o){jQuery.fn[s]=function(e){if(n.prototype[e]){var i=Array.prototype.slice.call(arguments,1);if("get"===e.slice(0,3)){var t=this.first()[0][o];return t[e].apply(t,i)}return this.each(function(){var t=this[o];t[e].apply(t,i)})}if("object"==typeof e||!e)return n.init(this,e),this;jQuery.error("Method "+e+" does not exist on jQuery."+s)}},M.AutoInit=function(t){var e=t||document.body,i={Autocomplete:e.querySelectorAll(".autocomplete:not(.no-autoinit)"),Carousel:e.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:e.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:e.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:e.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:e.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:e.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:e.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:e.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:e.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:e.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:e.querySelectorAll("select:not(.no-autoinit)"),Sidenav:e.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:e.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:e.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:e.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:e.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:e.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(var n in i){M[n].init(i[n])}},M.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},M.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),M.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(t){var e=$(t),i=e.add(e.parents()),n=!1;return i.each(function(){if("fixed"===$(this).css("position"))return!(n=!0)}),n},M.checkWithinContainer=function(t,e,i){var n={top:!1,right:!1,bottom:!1,left:!1},s=t.getBoundingClientRect(),o=t===document.body?Math.max(s.bottom,window.innerHeight):s.bottom,a=t.scrollLeft,r=t.scrollTop,l=e.left-a,h=e.top-r;return(l<s.left+i||l<i)&&(n.left=!0),(l+e.width>s.right-i||l+e.width>window.innerWidth-i)&&(n.right=!0),(h<s.top+i||h<i)&&(n.top=!0),(h+e.height>o-i||h+e.height>window.innerHeight-i)&&(n.bottom=!0),n},M.checkPossibleAlignments=function(t,e,i,n){var s={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},o="visible"===getComputedStyle(e).overflow,a=e.getBoundingClientRect(),r=Math.min(a.height,window.innerHeight),l=Math.min(a.width,window.innerWidth),h=t.getBoundingClientRect(),d=e.scrollLeft,u=e.scrollTop,c=i.left-d,p=i.top-u,v=i.top+h.height-u;return s.spaceOnRight=o?window.innerWidth-(h.left+i.width):l-(c+i.width),s.spaceOnRight<0&&(s.left=!1),s.spaceOnLeft=o?h.right-i.width:c-i.width+h.width,s.spaceOnLeft<0&&(s.right=!1),s.spaceOnBottom=o?window.innerHeight-(h.top+i.height+n):r-(p+i.height+n),s.spaceOnBottom<0&&(s.top=!1),s.spaceOnTop=o?h.bottom-(i.height+n):v-(i.height-n),s.spaceOnTop<0&&(s.bottom=!1),s},M.getOverflowParent=function(t){return null==t?null:t===document.body||"visible"!==getComputedStyle(t).overflow?t:M.getOverflowParent(t.parentElement)},M.getIdFromTrigger=function(t){var e=t.getAttribute("data-target");return e||(e=(e=t.getAttribute("href"))?e.slice(1):""),e},M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};var getTime=Date.now||function(){return(new Date).getTime()};M.throttle=function(i,n,s){var o=void 0,a=void 0,r=void 0,l=null,h=0;s||(s={});var d=function(){h=!1===s.leading?0:getTime(),l=null,r=i.apply(o,a),o=a=null};return function(){var t=getTime();h||!1!==s.leading||(h=t);var e=n-(t-h);return o=this,a=arguments,e<=0?(clearTimeout(l),l=null,h=t,r=i.apply(o,a),o=a=null):l||!1===s.trailing||(l=setTimeout(d,e)),r}};var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){if(i.get||i.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(t){var e=0;return $jscomp.iteratorPrototype(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.array=$jscomp.array||{},$jscomp.iteratorFromArray=function(e,i){$jscomp.initSymbolIterator(),e instanceof String&&(e+="");var n=0,s={next:function(){if(n<e.length){var t=n++;return{value:i(t,e[t]),done:!1}}return s.next=function(){return{done:!0,value:void 0}},s.next()}};return s[Symbol.iterator]=function(){return s},s},$jscomp.polyfill=function(t,e,i,n){if(e){for(i=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var s=t[n];s in i||(i[s]={}),i=i[s]}(e=e(n=i[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(i,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.keys",function(t){return t||function(){return $jscomp.iteratorFromArray(this,function(t){return t})}},"es6-impl","es3");var $jscomp$this=this;M.anime=function(){function s(t){if(!B.col(t))try{return document.querySelectorAll(t)}catch(t){}}function b(t,e){for(var i=t.length,n=2<=arguments.length?e:void 0,s=[],o=0;o<i;o++)if(o in t){var a=t[o];e.call(n,a,o,t)&&s.push(a)}return s}function d(t){return t.reduce(function(t,e){return t.concat(B.arr(e)?d(e):e)},[])}function o(t){return B.arr(t)?t:(B.str(t)&&(t=s(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function a(t,e){return t.some(function(t){return t===e})}function r(t){var e,i={};for(e in t)i[e]=t[e];return i}function u(t,e){var i,n=r(t);for(i in t)n[i]=e.hasOwnProperty(i)?e[i]:t[i];return n}function c(t,e){var i,n=r(t);for(i in e)n[i]=B.und(t[i])?e[i]:t[i];return n}function l(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function h(t,e){return B.fnc(t)?t(e.target,e.id,e.total):t}function w(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function p(t,e){return B.dom(t)&&a($,e)?"transform":B.dom(t)&&(t.getAttribute(e)||B.svg(t)&&t[e])?"attribute":B.dom(t)&&"transform"!==e&&w(t,e)?"css":null!=t[e]?"object":void 0}function v(t,e){switch(p(t,e)){case"transform":return function(t,i){var e,n=-1<(e=i).indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0,n=-1<i.indexOf("scale")?1:0+n;if(!(t=t.style.transform))return n;for(var s=[],o=[],a=[],r=/(\w+)\((.+?)\)/g;s=r.exec(t);)o.push(s[1]),a.push(s[2]);return(t=b(a,function(t,e){return o[e]===i})).length?t[0]:n}(t,e);case"css":return w(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function f(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=l(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(i[0],"")),i[0][0]){case"+":return e+t+n;case"-":return e-t+n;case"*":return e*t+n}}function m(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function i(t){t=t.points;for(var e,i=0,n=0;n<t.numberOfItems;n++){var s=t.getItem(n);0<n&&(i+=m(e,s)),e=s}return i}function g(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return m({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return i(t);case"polygon":var e=t.points;return i(t)+m(e.getItem(e.numberOfItems-1),e.getItem(0))}}function C(e,i){function t(t){return t=void 0===t?0:t,e.el.getPointAtLength(1<=i+t?i+t:0)}var n=t(),s=t(-1),o=t(1);switch(e.property){case"x":return n.x;case"y":return n.y;case"angle":return 180*Math.atan2(o.y-s.y,o.x-s.x)/Math.PI}}function _(t,e){var i,n=/-?\d*\.?\d+/g;if(i=B.pth(t)?t.totalLength:t,B.col(i))if(B.rgb(i)){var s=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i);i=s?"rgba("+s[1]+",1)":i}else i=B.hex(i)?function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);t=parseInt(e[1],16);var i=parseInt(e[2],16),e=parseInt(e[3],16);return"rgba("+t+","+i+","+e+",1)"}(i):B.hsl(i)?function(t){function e(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(i[1])/360;var n=parseInt(i[2])/100,s=parseInt(i[3])/100,i=i[4]||1;if(0==n)s=n=t=s;else{var o=s<.5?s*(1+n):s+n-s*n,a=2*s-o,s=e(a,o,t+1/3),n=e(a,o,t);t=e(a,o,t-1/3)}return"rgba("+255*s+","+255*n+","+255*t+","+i+")"}(i):void 0;else s=(s=l(i))?i.substr(0,i.length-s.length):i,i=e&&!/\s/g.test(i)?s+e:s;return{original:i+="",numbers:i.match(n)?i.match(n).map(Number):[0],strings:B.str(t)||e?i.split(n):[]}}function y(t){return b(t=t?d(B.arr(t)?t.map(o):o(t)):[],function(t,e,i){return i.indexOf(t)===e})}function k(t,i){var e=r(i);if(B.arr(t)){var n=t.length;2!==n||B.obj(t[0])?B.fnc(i.duration)||(e.duration=i.duration/n):t={value:t}}return o(t).map(function(t,e){return e=e?0:i.delay,t=B.obj(t)&&!B.pth(t)?t:{value:t},B.und(t.delay)&&(t.delay=e),t}).map(function(t){return c(t,e)})}function E(o,a){var r;return o.tweens.map(function(t){var e=(t=function(t,e){var i,n={};for(i in t){var s=h(t[i],e);B.arr(s)&&1===(s=s.map(function(t){return h(t,e)})).length&&(s=s[0]),n[i]=s}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(t,a)).value,i=v(a.target,o.name),n=r?r.to.original:i,n=B.arr(e)?e[0]:n,s=f(B.arr(e)?e[1]:e,n),i=l(s)||l(n)||l(i);return t.from=_(n,i),t.to=_(s,i),t.start=r?r.end:o.offset,t.end=t.start+t.delay+t.duration,t.easing=function(t){return B.arr(t)?D.apply(this,t):S[t]}(t.easing),t.elasticity=(1e3-Math.min(Math.max(t.elasticity,1),999))/1e3,t.isPath=B.pth(e),t.isColor=B.col(t.from.original),t.isColor&&(t.round=1),r=t})}function M(e,t,i,n){var s="delay"===e;return t.length?(s?Math.min:Math.max).apply(Math,t.map(function(t){return t[e]})):s?n.delay:i.offset+n.delay+n.duration}function n(t){var e,i,n,s,o=u(L,t),a=u(T,t),r=(i=t.targets,(n=y(i)).map(function(t,e){return{target:t,id:e,total:n.length}})),l=[],h=c(o,a);for(e in t)h.hasOwnProperty(e)||"targets"===e||l.push({name:e,offset:h.offset,tweens:k(t[e],a)});return s=l,t=b(d(r.map(function(n){return s.map(function(t){var e=p(n.target,t.name);if(e){var i=E(t,n);t={type:e,property:t.name,animatable:n,tweens:i,duration:i[i.length-1].end,delay:i[0].delay}}else t=void 0;return t})})),function(t){return!B.und(t)}),c(o,{children:[],animatables:r,animations:t,duration:M("duration",t,o,a),delay:M("delay",t,o,a)})}function O(t){function d(){return window.Promise&&new Promise(function(t){return _=t})}function u(t){return k.reversed?k.duration-t:t}function c(e){for(var t=0,i={},n=k.animations,s=n.length;t<s;){var o=n[t],a=o.animatable,r=o.tweens,l=r.length-1,h=r[l];l&&(h=b(r,function(t){return e<t.end})[0]||h);for(var r=Math.min(Math.max(e-h.start-h.delay,0),h.duration)/h.duration,d=isNaN(r)?1:h.easing(r,h.elasticity),r=h.to.strings,u=h.round,l=[],c=void 0,c=h.to.numbers.length,p=0;p<c;p++){var v=void 0,v=h.to.numbers[p],f=h.from.numbers[p],v=h.isPath?C(h.value,d*v):f+d*(v-f);u&&(h.isColor&&2<p||(v=Math.round(v*u)/u)),l.push(v)}if(h=r.length)for(c=r[0],d=0;d<h;d++)u=r[d+1],p=l[d],isNaN(p)||(c=u?c+(p+u):c+(p+" "));else c=l[0];I[o.type](a.target,o.property,c,i,a.id),o.currentValue=c,t++}if(t=Object.keys(i).length)for(n=0;n<t;n++)x||(x=w(document.body,"transform")?"transform":"-webkit-transform"),k.animatables[n].target.style[x]=i[n].join(" ");k.currentTime=e,k.progress=e/k.duration*100}function p(t){k[t]&&k[t](k)}function v(){k.remaining&&!0!==k.remaining&&k.remaining--}function e(t){var e=k.duration,i=k.offset,n=i+k.delay,s=k.currentTime,o=k.reversed,a=u(t);if(k.children.length){var r=k.children,l=r.length;if(a>=k.currentTime)for(var h=0;h<l;h++)r[h].seek(a);else for(;l--;)r[l].seek(a)}(n<=a||!e)&&(k.began||(k.began=!0,p("begin")),p("run")),i<a&&a<e?c(a):(a<=i&&0!==s&&(c(0),o&&v()),(e<=a&&s!==e||!e)&&(c(e),o||v())),p("update"),e<=t&&(k.remaining?(m=f,"alternate"===k.direction&&(k.reversed=!k.reversed)):(k.pause(),k.completed||(k.completed=!0,p("complete"),"Promise"in window&&(_(),y=d()))),g=0)}t=void 0===t?{}:t;var f,m,g=0,_=null,y=d(),k=n(t);return k.reset=function(){var t=k.direction,e=k.loop;for(k.currentTime=0,k.progress=0,k.paused=!0,k.began=!1,k.completed=!1,k.reversed="reverse"===t,k.remaining="alternate"===t&&1===e?2:e,c(0),t=k.children.length;t--;)k.children[t].reset()},k.tick=function(t){f=t,m||(m=f),e((g+f-m)*O.speed)},k.seek=function(t){e(u(t))},k.pause=function(){var t=A.indexOf(k);-1<t&&A.splice(t,1),k.paused=!0},k.play=function(){k.paused&&(k.paused=!1,m=0,g=u(k.currentTime),A.push(k),R||H())},k.reverse=function(){k.reversed=!k.reversed,m=0,g=u(k.currentTime)},k.restart=function(){k.pause(),k.reset(),k.play()},k.finished=y,k.reset(),k.autoplay&&k.play(),k}var x,L={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},T={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},$="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),B={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return B.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||B.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return B.hex(t)||B.rgb(t)||B.hsl(t)}},D=function(){function u(t,e,i){return(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t}return function(a,r,l,h){if(0<=a&&a<=1&&0<=l&&l<=1){var d=new Float32Array(11);if(a!==r||l!==h)for(var t=0;t<11;++t)d[t]=u(.1*t,a,l);return function(t){if(a===r&&l===h)return t;if(0===t)return 0;if(1===t)return 1;for(var e=0,i=1;10!==i&&d[i]<=t;++i)e+=.1;var i=e+(t-d[--i])/(d[i+1]-d[i])*.1,n=3*(1-3*l+3*a)*i*i+2*(3*l-6*a)*i+3*a;if(.001<=n){for(e=0;e<4&&0!=(n=3*(1-3*l+3*a)*i*i+2*(3*l-6*a)*i+3*a);++e)var s=u(i,a,l)-t,i=i-s/n;t=i}else if(0===n)t=i;else{for(var i=e,e=e+.1,o=0;0<(n=u(s=i+(e-i)/2,a,l)-t)?e=s:i=s,1e-7<Math.abs(n)&&++o<10;);t=s}return u(t,r,h)}}}}(),S=function(){function i(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],i],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,e){return 1-i(1-t,e)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,e){return t<.5?i(2*t,e)/2:1-i(-2*t+2,e)/2}]},s={linear:D(.25,.25,.75,.75)},o={};for(t in e)o.type=t,e[o.type].forEach(function(i){return function(t,e){s["ease"+i.type+n[e]]=B.fnc(t)?t:D.apply($jscomp$this,t)}}(o)),o={type:o.type};return s}(),I={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,s){n[s]||(n[s]=[]),n[s].push(e+"("+i+")")}},A=[],R=0,H=function(){function n(){R=requestAnimationFrame(t)}function t(t){var e=A.length;if(e){for(var i=0;i<e;)A[i]&&A[i].tick(t),i++;n()}else cancelAnimationFrame(R),R=0}return n}();return O.version="2.2.0",O.speed=1,O.running=A,O.remove=function(t){t=y(t);for(var e=A.length;e--;)for(var i=A[e],n=i.animations,s=n.length;s--;)a(t,n[s].animatable.target)&&(n.splice(s,1),n.length||i.pause())},O.getValue=v,O.path=function(t,e){var i=B.str(t)?s(t)[0]:t,n=e||100;return function(t){return{el:i,property:t,totalLength:g(i)*(n/100)}}},O.setDashoffset=function(t){var e=g(t);return t.setAttribute("stroke-dasharray",e),e},O.bezier=D,O.easings=S,O.timeline=function(n){var s=O(n);return s.pause(),s.duration=0,s.add=function(t){return s.children.forEach(function(t){t.began=!0,t.completed=!0}),o(t).forEach(function(t){var e=c(t,u(T,n||{}));e.targets=e.targets||n.targets,t=s.duration;var i=e.offset;e.autoplay=!1,e.direction=s.direction,e.offset=B.und(i)?t:f(i,t),s.began=!0,s.completed=!0,s.seek(e.offset),(e=O(e)).began=!0,e.completed=!0,e.duration>t&&(s.duration=e.duration),s.children.push(e)}),s.seek(0),s.reset(),s.autoplay&&s.restart(),s},s},O.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},O}(),function(r,l){"use strict";var e={accordion:!0,onOpenStart:void 0,onOpenEnd:void 0,onCloseStart:void 0,onCloseEnd:void 0,inDuration:300,outDuration:300},t=function(t){function s(t,e){_classCallCheck(this,s);var i=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,s,t,e));(i.el.M_Collapsible=i).options=r.extend({},s.defaults,e),i.$headers=i.$el.children("li").children(".collapsible-header"),i.$headers.attr("tabindex",0),i._setupEventHandlers();var n=i.$el.children("li.active").children(".collapsible-body");return i.options.accordion?n.first().css("display","block"):n.css("display","block"),i}return _inherits(s,Component),_createClass(s,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Collapsible=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this),this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this),this.el.addEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(t){t.addEventListener("keydown",e._handleCollapsibleKeydownBound)})}},{key:"_removeEventHandlers",value:function(){var e=this;this.el.removeEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(t){t.removeEventListener("keydown",e._handleCollapsibleKeydownBound)})}},{key:"_handleCollapsibleClick",value:function(t){var e=r(t.target).closest(".collapsible-header");if(t.target&&e.length){var i=e.closest(".collapsible");if(i[0]===this.el){var n=e.closest("li"),s=i.children("li"),o=n[0].classList.contains("active"),a=s.index(n);o?this.close(a):this.open(a)}}}},{key:"_handleCollapsibleKeydown",value:function(t){13===t.keyCode&&this._handleCollapsibleClickBound(t)}},{key:"_animateIn",value:function(t){var e=this,i=this.$el.children("li").eq(t);if(i.length){var n=i.children(".collapsible-body");l.remove(n[0]),n.css({display:"block",overflow:"hidden",height:0,paddingTop:"",paddingBottom:""});var s=n.css("padding-top"),o=n.css("padding-bottom"),a=n[0].scrollHeight;n.css({paddingTop:0,paddingBottom:0}),l({targets:n[0],height:a,paddingTop:s,paddingBottom:o,duration:this.options.inDuration,easing:"easeInOutCubic",complete:function(t){n.css({overflow:"",paddingTop:"",paddingBottom:"",height:""}),"function"==typeof e.options.onOpenEnd&&e.options.onOpenEnd.call(e,i[0])}})}}},{key:"_animateOut",value:function(t){var e=this,i=this.$el.children("li").eq(t);if(i.length){var n=i.children(".collapsible-body");l.remove(n[0]),n.css("overflow","hidden"),l({targets:n[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:"easeInOutCubic",complete:function(){n.css({height:"",overflow:"",padding:"",display:""}),"function"==typeof e.options.onCloseEnd&&e.options.onCloseEnd.call(e,i[0])}})}}},{key:"open",value:function(t){var i=this,e=this.$el.children("li").eq(t);if(e.length&&!e[0].classList.contains("active")){if("function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,e[0]),this.options.accordion){var n=this.$el.children("li");this.$el.children("li.active").each(function(t){var e=n.index(r(t));i.close(e)})}e[0].classList.add("active"),this._animateIn(t)}}},{key:"close",value:function(t){var e=this.$el.children("li").eq(t);e.length&&e[0].classList.contains("active")&&("function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,e[0]),e[0].classList.remove("active"),this._animateOut(t))}}],[{key:"init",value:function(t,e){return _get(s.__proto__||Object.getPrototypeOf(s),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Collapsible}},{key:"defaults",get:function(){return e}}]),s}();M.Collapsible=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"collapsible","M_Collapsible")}(cash,M.anime),function(h,i){"use strict";var e={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return i.el.M_Dropdown=i,n._dropdowns.push(i),i.id=M.getIdFromTrigger(t),i.dropdownEl=document.getElementById(i.id),i.$dropdownEl=h(i.dropdownEl),i.options=h.extend({},n.defaults,e),i.isOpen=!1,i.isScrollable=!1,i.isTouchMoving=!1,i.focusedIndex=-1,i.filterQuery=[],i.options.container?h(i.options.container).append(i.dropdownEl):i.$el.after(i.dropdownEl),i._makeDropdownFocusable(),i._resetFilterQueryBound=i._resetFilterQuery.bind(i),i._handleDocumentClickBound=i._handleDocumentClick.bind(i),i._handleDocumentTouchmoveBound=i._handleDocumentTouchmove.bind(i),i._handleDropdownClickBound=i._handleDropdownClick.bind(i),i._handleDropdownKeydownBound=i._handleDropdownKeydown.bind(i),i._handleTriggerKeydownBound=i._handleTriggerKeydown.bind(i),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),n._dropdowns.splice(n._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),this.options.hover?(this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.addEventListener("mouseleave",this._handleMouseLeaveBound)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(t){t.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(t){var e=t.toElement||t.relatedTarget,i=!!h(e).closest(".dropdown-content").length,n=!1,s=h(e).closest(".dropdown-trigger");s.length&&s[0].M_Dropdown&&s[0].M_Dropdown.isOpen&&(n=!0),n||i||this.close()}},{key:"_handleDocumentClick",value:function(t){var e=this,i=h(t.target);this.options.closeOnClick&&i.closest(".dropdown-content").length&&!this.isTouchMoving?setTimeout(function(){e.close()},0):!i.closest(".dropdown-trigger").length&&i.closest(".dropdown-content").length||setTimeout(function(){e.close()},0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(t){t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ENTER||this.isOpen||(t.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(t){h(t.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(t){if("function"==typeof this.options.onItemClick){var e=h(t.target).closest("li")[0];this.options.onItemClick.call(this,e)}}},{key:"_handleDropdownKeydown",value:function(t){if(t.which===M.keys.TAB)t.preventDefault(),this.close();else if(t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||!this.isOpen)if(t.which===M.keys.ENTER&&this.isOpen){var e=this.dropdownEl.children[this.focusedIndex],i=h(e).find("a, button").first();i.length?i[0].click():e&&e.click()}else t.which===M.keys.ESC&&this.isOpen&&(t.preventDefault(),this.close());else{t.preventDefault();var n=t.which===M.keys.ARROW_DOWN?1:-1,s=this.focusedIndex,o=!1;do{if(s+=n,this.dropdownEl.children[s]&&-1!==this.dropdownEl.children[s].tabIndex){o=!0;break}}while(s<this.dropdownEl.children.length&&0<=s);o&&(this.focusedIndex=s,this._focusFocusedItem())}var a=String.fromCharCode(t.which).toLowerCase();if(a&&-1===[9,13,27,38,40].indexOf(t.which)){this.filterQuery.push(a);var r=this.filterQuery.join(""),l=h(this.dropdownEl).find("li").filter(function(t){return 0===h(t).text().toLowerCase().indexOf(r)})[0];l&&(this.focusedIndex=h(l).index(),this._focusFocusedItem())}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,h(this.dropdownEl).children().each(function(t){t.getAttribute("tabindex")||t.setAttribute("tabindex",0)})}},{key:"_focusFocusedItem",value:function(){0<=this.focusedIndex&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var t=this.el.getBoundingClientRect(),e=this.dropdownEl.getBoundingClientRect(),i=e.height,n=e.width,s=t.left-e.left,o=t.top-e.top,a={left:s,top:o,height:i,width:n},r=this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode,l=M.checkPossibleAlignments(this.el,r,a,this.options.coverTrigger?0:t.height),h="top",d=this.options.alignment;if(o+=this.options.coverTrigger?0:t.height,this.isScrollable=!1,l.top||(l.bottom?h="bottom":(this.isScrollable=!0,l.spaceOnTop>l.spaceOnBottom?(h="bottom",i+=l.spaceOnTop,o-=l.spaceOnTop):i+=l.spaceOnBottom)),!l[d]){var u="left"===d?"right":"left";l[u]?d=u:l.spaceOnLeft>l.spaceOnRight?(d="right",n+=l.spaceOnLeft,s-=l.spaceOnLeft):(d="left",n+=l.spaceOnRight)}return"bottom"===h&&(o=o-e.height+(this.options.coverTrigger?t.height:0)),"right"===d&&(s=s-e.width+t.width),{x:s,y:o,verticalAlignment:h,horizontalAlignment:d,height:i,width:n}}},{key:"_animateIn",value:function(){var e=this;i.remove(this.dropdownEl),i({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(t){e.options.autoFocus&&e.dropdownEl.focus(),"function"==typeof e.options.onOpenEnd&&e.options.onOpenEnd.call(e,e.el)}})}},{key:"_animateOut",value:function(){var e=this;i.remove(this.dropdownEl),i({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(t){e._resetDropdownStyles(),"function"==typeof e.options.onCloseEnd&&e.options.onCloseEnd.call(e,e.el)}})}},{key:"_placeDropdown",value:function(){var t=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=t+"px";var e=this._getDropdownPosition();this.dropdownEl.style.left=e.x+"px",this.dropdownEl.style.top=e.y+"px",this.dropdownEl.style.height=e.height+"px",this.dropdownEl.style.width=e.width+"px",this.dropdownEl.style.transformOrigin=("left"===e.horizontalAlignment?"0":"100%")+" "+("top"===e.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus&&this.el.focus())}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Dropdown}},{key:"defaults",get:function(){return e}}]),n}();t._dropdowns=[],M.Dropdown=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"dropdown","M_Dropdown")}(cash,M.anime),function(s,i){"use strict";var e={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Modal=i).options=s.extend({},n.defaults,e),i.isOpen=!1,i.id=i.$el.attr("id"),i._openingTrigger=void 0,i.$overlay=s('<div class="modal-overlay"></div>'),i.el.tabIndex=0,i._nthModalOpened=0,n._count++,i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){n._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===n._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===n._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(t){var e=s(t.target).closest(".modal-trigger");if(e.length){var i=M.getIdFromTrigger(e[0]),n=document.getElementById(i).M_Modal;n&&n.open(e),t.preventDefault()}}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(t){s(t.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(t){27===t.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(t){this.el.contains(t.target)||this._nthModalOpened!==n._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var t=this;s.extend(this.el.style,{display:"block",opacity:0}),s.extend(this.$overlay[0].style,{display:"block",opacity:0}),i({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"});var e={targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el,t._openingTrigger)}};this.el.classList.contains("bottom-sheet")?s.extend(e,{bottom:0,opacity:1}):s.extend(e,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),i(e)}},{key:"_animateOut",value:function(){var t=this;i({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"});var e={targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){t.el.style.display="none",t.$overlay.remove(),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};this.el.classList.contains("bottom-sheet")?s.extend(e,{bottom:"-100%",opacity:0}):s.extend(e,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),i(e)}},{key:"open",value:function(t){if(!this.isOpen)return this.isOpen=!0,n._modalsOpen++,this._nthModalOpened=n._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*n._modalsOpen,this.el.style.zIndex=1e3+2*n._modalsOpen+1,this._openingTrigger=t?t[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling&&(document.body.style.overflow="hidden"),this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),this.options.dismissible&&(this._handleKeydownBound=this._handleKeydown.bind(this),this._handleFocusBound=this._handleFocus.bind(this),document.addEventListener("keydown",this._handleKeydownBound),document.addEventListener("focus",this._handleFocusBound,!0)),i.remove(this.el),i.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,n._modalsOpen--,this._nthModalOpened=0,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this.el.classList.remove("open"),0===n._modalsOpen&&(document.body.style.overflow=""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0)),i.remove(this.el),i.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Modal}},{key:"defaults",get:function(){return e}}]),n}();t._modalsOpen=0,t._count=0,M.Modal=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"modal","M_Modal")}(cash,M.anime),function(o,a){"use strict";var e={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Materialbox=i).options=o.extend({},n.defaults,e),i.overlayActive=!1,i.doneAnimating=!0,i.placeholder=o("<div></div>").addClass("material-placeholder"),i.originalWidth=0,i.originalHeight=0,i.originInlineStyles=i.$el.attr("style"),i.caption=i.el.getAttribute("data-caption")||"",i.$el.before(i.placeholder),i.placeholder.append(i.$el),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Materialbox=void 0,o(this.placeholder).after(this.el).remove(),this.$el.removeAttr("style")}},{key:"_setupEventHandlers",value:function(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this),this.el.addEventListener("click",this._handleMaterialboxClickBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleMaterialboxClickBound)}},{key:"_handleMaterialboxClick",value:function(t){!1===this.doneAnimating||this.overlayActive&&this.doneAnimating?this.close():this.open()}},{key:"_handleWindowScroll",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowResize",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowEscape",value:function(t){27===t.keyCode&&this.doneAnimating&&this.overlayActive&&this.close()}},{key:"_makeAncestorsOverflowVisible",value:function(){this.ancestorsChanged=o();for(var t=this.placeholder[0].parentNode;null!==t&&!o(t).is(document);){var e=o(t);"visible"!==e.css("overflow")&&(e.css("overflow","visible"),void 0===this.ancestorsChanged?this.ancestorsChanged=e:this.ancestorsChanged=this.ancestorsChanged.add(e)),t=t.parentNode}}},{key:"_animateImageIn",value:function(){var t=this,e={targets:this.el,height:[this.originalHeight,this.newHeight],width:[this.originalWidth,this.newWidth],left:M.getDocumentScrollLeft()+this.windowWidth/2-this.placeholder.offset().left-this.newWidth/2,top:M.getDocumentScrollTop()+this.windowHeight/2-this.placeholder.offset().top-this.newHeight/2,duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){t.doneAnimating=!0,"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}};this.maxWidth=this.$el.css("max-width"),this.maxHeight=this.$el.css("max-height"),"none"!==this.maxWidth&&(e.maxWidth=this.newWidth),"none"!==this.maxHeight&&(e.maxHeight=this.newHeight),a(e)}},{key:"_animateImageOut",value:function(){var t=this,e={targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.placeholder.css({height:"",width:"",position:"",top:"",left:""}),t.attrWidth&&t.$el.attr("width",t.attrWidth),t.attrHeight&&t.$el.attr("height",t.attrHeight),t.$el.removeAttr("style"),t.originInlineStyles&&t.$el.attr("style",t.originInlineStyles),t.$el.removeClass("active"),t.doneAnimating=!0,t.ancestorsChanged.length&&t.ancestorsChanged.css("overflow",""),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};a(e)}},{key:"_updateVars",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.caption=this.el.getAttribute("data-caption")||""}},{key:"open",value:function(){var t=this;this._updateVars(),this.originalWidth=this.el.getBoundingClientRect().width,this.originalHeight=this.el.getBoundingClientRect().height,this.doneAnimating=!1,this.$el.addClass("active"),this.overlayActive=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this.placeholder.css({width:this.placeholder[0].getBoundingClientRect().width+"px",height:this.placeholder[0].getBoundingClientRect().height+"px",position:"relative",top:0,left:0}),this._makeAncestorsOverflowVisible(),this.$el.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}),this.attrWidth=this.$el.attr("width"),this.attrHeight=this.$el.attr("height"),this.attrWidth&&(this.$el.css("width",this.attrWidth+"px"),this.$el.removeAttr("width")),this.attrHeight&&(this.$el.css("width",this.attrHeight+"px"),this.$el.removeAttr("height")),this.$overlay=o('<div id="materialbox-overlay"></div>').css({opacity:0}).one("click",function(){t.doneAnimating&&t.close()}),this.$el.before(this.$overlay);var e=this.$overlay[0].getBoundingClientRect();this.$overlay.css({width:this.windowWidth+"px",height:this.windowHeight+"px",left:-1*e.left+"px",top:-1*e.top+"px"}),a.remove(this.el),a.remove(this.$overlay[0]),a({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}),""!==this.caption&&(this.$photocaption&&a.remove(this.$photoCaption[0]),this.$photoCaption=o('<div class="materialbox-caption"></div>'),this.$photoCaption.text(this.caption),o("body").append(this.$photoCaption),this.$photoCaption.css({display:"inline"}),a({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}));var i=0,n=this.originalWidth/this.windowWidth,s=this.originalHeight/this.windowHeight;this.newWidth=0,this.newHeight=0,s<n?(i=this.originalHeight/this.originalWidth,this.newWidth=.9*this.windowWidth,this.newHeight=.9*this.windowWidth*i):(i=this.originalWidth/this.originalHeight,this.newWidth=.9*this.windowHeight*i,this.newHeight=.9*this.windowHeight),this._animateImageIn(),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),this._handleWindowResizeBound=this._handleWindowResize.bind(this),this._handleWindowEscapeBound=this._handleWindowEscape.bind(this),window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleWindowResizeBound),window.addEventListener("keyup",this._handleWindowEscapeBound)}},{key:"close",value:function(){var t=this;this._updateVars(),this.doneAnimating=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),a.remove(this.el),a.remove(this.$overlay[0]),""!==this.caption&&a.remove(this.$photoCaption[0]),window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleWindowResizeBound),window.removeEventListener("keyup",this._handleWindowEscapeBound),a({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.overlayActive=!1,t.$overlay.remove()}}),this._animateImageOut(),""!==this.caption&&a({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.$photoCaption.remove()}})}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Materialbox}},{key:"defaults",get:function(){return e}}]),n}();M.Materialbox=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"materialbox","M_Materialbox")}(cash,M.anime),function(s){"use strict";var e={responsiveThreshold:0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Parallax=i).options=s.extend({},n.defaults,e),i._enabled=window.innerWidth>i.options.responsiveThreshold,i.$img=i.$el.find("img").first(),i.$img.each(function(){this.complete&&s(this).trigger("load")}),i._updateParallax(),i._setupEventHandlers(),i._setupStyles(),n._parallaxes.push(i),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){n._parallaxes.splice(n._parallaxes.indexOf(this),1),this.$img[0].style.transform="",this._removeEventHandlers(),this.$el[0].M_Parallax=void 0}},{key:"_setupEventHandlers",value:function(){this._handleImageLoadBound=this._handleImageLoad.bind(this),this.$img[0].addEventListener("load",this._handleImageLoadBound),0===n._parallaxes.length&&(n._handleScrollThrottled=M.throttle(n._handleScroll,5),window.addEventListener("scroll",n._handleScrollThrottled),n._handleWindowResizeThrottled=M.throttle(n._handleWindowResize,5),window.addEventListener("resize",n._handleWindowResizeThrottled))}},{key:"_removeEventHandlers",value:function(){this.$img[0].removeEventListener("load",this._handleImageLoadBound),0===n._parallaxes.length&&(window.removeEventListener("scroll",n._handleScrollThrottled),window.removeEventListener("resize",n._handleWindowResizeThrottled))}},{key:"_setupStyles",value:function(){this.$img[0].style.opacity=1}},{key:"_handleImageLoad",value:function(){this._updateParallax()}},{key:"_updateParallax",value:function(){var t=0<this.$el.height()?this.el.parentNode.offsetHeight:500,e=this.$img[0].offsetHeight-t,i=this.$el.offset().top+t,n=this.$el.offset().top,s=M.getDocumentScrollTop(),o=window.innerHeight,a=e*((s+o-n)/(t+o));this._enabled?s<i&&n<s+o&&(this.$img[0].style.transform="translate3D(-50%, "+a+"px, 0)"):this.$img[0].style.transform=""}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Parallax}},{key:"_handleScroll",value:function(){for(var t=0;t<n._parallaxes.length;t++){var e=n._parallaxes[t];e._updateParallax.call(e)}}},{key:"_handleWindowResize",value:function(){for(var t=0;t<n._parallaxes.length;t++){var e=n._parallaxes[t];e._enabled=window.innerWidth>e.options.responsiveThreshold}}},{key:"defaults",get:function(){return e}}]),n}();t._parallaxes=[],M.Parallax=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"parallax","M_Parallax")}(cash),function(a,s){"use strict";var e={duration:300,onShow:null,swipeable:!1,responsiveThreshold:1/0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Tabs=i).options=a.extend({},n.defaults,e),i.$tabLinks=i.$el.children("li.tab").children("a"),i.index=0,i._setupActiveTabLink(),i.options.swipeable?i._setupSwipeableTabs():i._setupNormalTabs(),i._setTabsAndTabWidth(),i._createIndicator(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._indicator.parentNode.removeChild(this._indicator),this.options.swipeable?this._teardownSwipeableTabs():this._teardownNormalTabs(),this.$el[0].M_Tabs=void 0}},{key:"_setupEventHandlers",value:function(){this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound),this._handleTabClickBound=this._handleTabClick.bind(this),this.el.addEventListener("click",this._handleTabClickBound)}},{key:"_removeEventHandlers",value:function(){window.removeEventListener("resize",this._handleWindowResizeBound),this.el.removeEventListener("click",this._handleTabClickBound)}},{key:"_handleWindowResize",value:function(){this._setTabsAndTabWidth(),0!==this.tabWidth&&0!==this.tabsWidth&&(this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+"px",this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+"px")}},{key:"_handleTabClick",value:function(t){var e=this,i=a(t.target).closest("li.tab"),n=a(t.target).closest("a");if(n.length&&n.parent().hasClass("tab"))if(i.hasClass("disabled"))t.preventDefault();else if(!n.attr("target")){this.$activeTabLink.removeClass("active");var s=this.$content;this.$activeTabLink=n,this.$content=a(M.escapeHash(n[0].hash)),this.$tabLinks=this.$el.children("li.tab").children("a"),this.$activeTabLink.addClass("active");var o=this.index;this.index=Math.max(this.$tabLinks.index(n),0),this.options.swipeable?this._tabsCarousel&&this._tabsCarousel.set(this.index,function(){"function"==typeof e.options.onShow&&e.options.onShow.call(e,e.$content[0])}):this.$content.length&&(this.$content[0].style.display="block",this.$content.addClass("active"),"function"==typeof this.options.onShow&&this.options.onShow.call(this,this.$content[0]),s.length&&!s.is(this.$content)&&(s[0].style.display="none",s.removeClass("active"))),this._setTabsAndTabWidth(),this._animateIndicator(o),t.preventDefault()}}},{key:"_createIndicator",value:function(){var t=this,e=document.createElement("li");e.classList.add("indicator"),this.el.appendChild(e),this._indicator=e,setTimeout(function(){t._indicator.style.left=t._calcLeftPos(t.$activeTabLink)+"px",t._indicator.style.right=t._calcRightPos(t.$activeTabLink)+"px"},0)}},{key:"_setupActiveTabLink",value:function(){this.$activeTabLink=a(this.$tabLinks.filter('[href="'+location.hash+'"]')),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a.active").first()),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a").first()),this.$tabLinks.removeClass("active"),this.$activeTabLink[0].classList.add("active"),this.index=Math.max(this.$tabLinks.index(this.$activeTabLink),0),this.$activeTabLink.length&&(this.$content=a(M.escapeHash(this.$activeTabLink[0].hash)),this.$content.addClass("active"))}},{key:"_setupSwipeableTabs",value:function(){var i=this;window.innerWidth>this.options.responsiveThreshold&&(this.options.swipeable=!1);var n=a();this.$tabLinks.each(function(t){var e=a(M.escapeHash(t.hash));e.addClass("carousel-item"),n=n.add(e)});var t=a('<div class="tabs-content carousel carousel-slider"></div>');n.first().before(t),t.append(n),n[0].style.display="";var e=this.$activeTabLink.closest(".tab").index();this._tabsCarousel=M.Carousel.init(t[0],{fullWidth:!0,noWrap:!0,onCycleTo:function(t){var e=i.index;i.index=a(t).index(),i.$activeTabLink.removeClass("active"),i.$activeTabLink=i.$tabLinks.eq(i.index),i.$activeTabLink.addClass("active"),i._animateIndicator(e),"function"==typeof i.options.onShow&&i.options.onShow.call(i,i.$content[0])}}),this._tabsCarousel.set(e)}},{key:"_teardownSwipeableTabs",value:function(){var t=this._tabsCarousel.$el;this._tabsCarousel.destroy(),t.after(t.children()),t.remove()}},{key:"_setupNormalTabs",value:function(){this.$tabLinks.not(this.$activeTabLink).each(function(t){if(t.hash){var e=a(M.escapeHash(t.hash));e.length&&(e[0].style.display="none")}})}},{key:"_teardownNormalTabs",value:function(){this.$tabLinks.each(function(t){if(t.hash){var e=a(M.escapeHash(t.hash));e.length&&(e[0].style.display="")}})}},{key:"_setTabsAndTabWidth",value:function(){this.tabsWidth=this.$el.width(),this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length}},{key:"_calcRightPos",value:function(t){return Math.ceil(this.tabsWidth-t.position().left-t[0].getBoundingClientRect().width)}},{key:"_calcLeftPos",value:function(t){return Math.floor(t.position().left)}},{key:"updateTabIndicator",value:function(){this._setTabsAndTabWidth(),this._animateIndicator(this.index)}},{key:"_animateIndicator",value:function(t){var e=0,i=0;0<=this.index-t?e=90:i=90;var n={targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:e},right:{value:this._calcRightPos(this.$activeTabLink),delay:i},duration:this.options.duration,easing:"easeOutQuad"};s.remove(this._indicator),s(n)}},{key:"select",value:function(t){var e=this.$tabLinks.filter('[href="#'+t+'"]');e.length&&e.trigger("click")}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tabs}},{key:"defaults",get:function(){return e}}]),n}();M.Tabs=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"tabs","M_Tabs")}(cash,M.anime),function(d,e){"use strict";var i={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:"bottom",transitionMovement:10},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Tooltip=i).options=d.extend({},n.defaults,e),i.isOpen=!1,i.isHovered=!1,i.isFocused=!1,i._appendTooltipEl(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){d(this.tooltipEl).remove(),this._removeEventHandlers(),this.el.M_Tooltip=void 0}},{key:"_appendTooltipEl",value:function(){var t=document.createElement("div");t.classList.add("material-tooltip"),this.tooltipEl=t;var e=document.createElement("div");e.classList.add("tooltip-content"),e.innerHTML=this.options.html,t.appendChild(e),document.body.appendChild(t)}},{key:"_updateTooltipContent",value:function(){this.tooltipEl.querySelector(".tooltip-content").innerHTML=this.options.html}},{key:"_setupEventHandlers",value:function(){this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this._handleFocusBound=this._handleFocus.bind(this),this._handleBlurBound=this._handleBlur.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.el.addEventListener("focus",this._handleFocusBound,!0),this.el.addEventListener("blur",this._handleBlurBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.el.removeEventListener("focus",this._handleFocusBound,!0),this.el.removeEventListener("blur",this._handleBlurBound,!0)}},{key:"open",value:function(t){this.isOpen||(t=void 0===t||void 0,this.isOpen=!0,this.options=d.extend({},this.options,this._getAttributeOptions()),this._updateTooltipContent(),this._setEnterDelayTimeout(t))}},{key:"close",value:function(){this.isOpen&&(this.isHovered=!1,this.isFocused=!1,this.isOpen=!1,this._setExitDelayTimeout())}},{key:"_setExitDelayTimeout",value:function(){var t=this;clearTimeout(this._exitDelayTimeout),this._exitDelayTimeout=setTimeout(function(){t.isHovered||t.isFocused||t._animateOut()},this.options.exitDelay)}},{key:"_setEnterDelayTimeout",value:function(t){var e=this;clearTimeout(this._enterDelayTimeout),this._enterDelayTimeout=setTimeout(function(){(e.isHovered||e.isFocused||t)&&e._animateIn()},this.options.enterDelay)}},{key:"_positionTooltip",value:function(){var t,e=this.el,i=this.tooltipEl,n=e.offsetHeight,s=e.offsetWidth,o=i.offsetHeight,a=i.offsetWidth,r=this.options.margin,l=void 0,h=void 0;this.xMovement=0,this.yMovement=0,l=e.getBoundingClientRect().top+M.getDocumentScrollTop(),h=e.getBoundingClientRect().left+M.getDocumentScrollLeft(),"top"===this.options.position?(l+=-o-r,h+=s/2-a/2,this.yMovement=-this.options.transitionMovement):"right"===this.options.position?(l+=n/2-o/2,h+=s+r,this.xMovement=this.options.transitionMovement):"left"===this.options.position?(l+=n/2-o/2,h+=-a-r,this.xMovement=-this.options.transitionMovement):(l+=n+r,h+=s/2-a/2,this.yMovement=this.options.transitionMovement),t=this._repositionWithinScreen(h,l,a,o),d(i).css({top:t.y+"px",left:t.x+"px"})}},{key:"_repositionWithinScreen",value:function(t,e,i,n){var s=M.getDocumentScrollLeft(),o=M.getDocumentScrollTop(),a=t-s,r=e-o,l={left:a,top:r,width:i,height:n},h=this.options.margin+this.options.transitionMovement,d=M.checkWithinContainer(document.body,l,h);return d.left?a=h:d.right&&(a-=a+i-window.innerWidth),d.top?r=h:d.bottom&&(r-=r+n-window.innerHeight),{x:a+s,y:r+o}}},{key:"_animateIn",value:function(){this._positionTooltip(),this.tooltipEl.style.visibility="visible",e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_animateOut",value:function(){e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:"easeOutCubic"})}},{key:"_handleMouseEnter",value:function(){this.isHovered=!0,this.isFocused=!1,this.open(!1)}},{key:"_handleMouseLeave",value:function(){this.isHovered=!1,this.isFocused=!1,this.close()}},{key:"_handleFocus",value:function(){M.tabPressed&&(this.isFocused=!0,this.open(!1))}},{key:"_handleBlur",value:function(){this.isFocused=!1,this.close()}},{key:"_getAttributeOptions",value:function(){var t={},e=this.el.getAttribute("data-tooltip"),i=this.el.getAttribute("data-position");return e&&(t.html=e),i&&(t.position=i),t}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tooltip}},{key:"defaults",get:function(){return i}}]),n}();M.Tooltip=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"tooltip","M_Tooltip")}(cash,M.anime),function(i){"use strict";var t=t||{},e=document.querySelectorAll.bind(document);function m(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}var g={duration:750,show:function(t,e){if(2===t.button)return!1;var i=e||this,n=document.createElement("div");n.className="waves-ripple",i.appendChild(n);var s,o,a,r,l,h,d,u=(h={top:0,left:0},d=(s=i)&&s.ownerDocument,o=d.documentElement,void 0!==s.getBoundingClientRect&&(h=s.getBoundingClientRect()),a=null!==(l=r=d)&&l===l.window?r:9===r.nodeType&&r.defaultView,{top:h.top+a.pageYOffset-o.clientTop,left:h.left+a.pageXOffset-o.clientLeft}),c=t.pageY-u.top,p=t.pageX-u.left,v="scale("+i.clientWidth/100*10+")";"touches"in t&&(c=t.touches[0].pageY-u.top,p=t.touches[0].pageX-u.left),n.setAttribute("data-hold",Date.now()),n.setAttribute("data-scale",v),n.setAttribute("data-x",p),n.setAttribute("data-y",c);var f={top:c+"px",left:p+"px"};n.className=n.className+" waves-notransition",n.setAttribute("style",m(f)),n.className=n.className.replace("waves-notransition",""),f["-webkit-transform"]=v,f["-moz-transform"]=v,f["-ms-transform"]=v,f["-o-transform"]=v,f.transform=v,f.opacity="1",f["-webkit-transition-duration"]=g.duration+"ms",f["-moz-transition-duration"]=g.duration+"ms",f["-o-transition-duration"]=g.duration+"ms",f["transition-duration"]=g.duration+"ms",f["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",n.setAttribute("style",m(f))},hide:function(t){l.touchup(t);var e=this,i=(e.clientWidth,null),n=e.getElementsByClassName("waves-ripple");if(!(0<n.length))return!1;var s=(i=n[n.length-1]).getAttribute("data-x"),o=i.getAttribute("data-y"),a=i.getAttribute("data-scale"),r=350-(Date.now()-Number(i.getAttribute("data-hold")));r<0&&(r=0),setTimeout(function(){var t={top:o+"px",left:s+"px",opacity:"0","-webkit-transition-duration":g.duration+"ms","-moz-transition-duration":g.duration+"ms","-o-transition-duration":g.duration+"ms","transition-duration":g.duration+"ms","-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,"-o-transform":a,transform:a};i.setAttribute("style",m(t)),setTimeout(function(){try{e.removeChild(i)}catch(t){return!1}},g.duration)},r)},wrapInput:function(t){for(var e=0;e<t.length;e++){var i=t[e];if("input"===i.tagName.toLowerCase()){var n=i.parentNode;if("i"===n.tagName.toLowerCase()&&-1!==n.className.indexOf("waves-effect"))continue;var s=document.createElement("i");s.className=i.className+" waves-input-wrapper";var o=i.getAttribute("style");o||(o=""),s.setAttribute("style",o),i.className="waves-button-input",i.removeAttribute("style"),n.replaceChild(s,i),s.appendChild(i)}}}},l={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?l.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout(function(){0<l.touches&&(l.touches-=1)},500):"mousedown"===t.type&&0<l.touches&&(e=!1),e},touchup:function(t){l.allowEvent(t)}};function n(t){var e=function(t){if(!1===l.allowEvent(t))return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentNode;){if(!(i instanceof SVGElement)&&-1!==i.className.indexOf("waves-effect")){e=i;break}i=i.parentNode}return e}(t);null!==e&&(g.show(t,e),"ontouchstart"in i&&(e.addEventListener("touchend",g.hide,!1),e.addEventListener("touchcancel",g.hide,!1)),e.addEventListener("mouseup",g.hide,!1),e.addEventListener("mouseleave",g.hide,!1),e.addEventListener("dragend",g.hide,!1))}t.displayEffect=function(t){"duration"in(t=t||{})&&(g.duration=t.duration),g.wrapInput(e(".waves-effect")),"ontouchstart"in i&&document.body.addEventListener("touchstart",n,!1),document.body.addEventListener("mousedown",n,!1)},t.attach=function(t){"input"===t.tagName.toLowerCase()&&(g.wrapInput([t]),t=t.parentNode),"ontouchstart"in i&&t.addEventListener("touchstart",n,!1),t.addEventListener("mousedown",n,!1)},i.Waves=t,document.addEventListener("DOMContentLoaded",function(){t.displayEffect()},!1)}(window),function(i,n){"use strict";var t={html:"",displayLength:4e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},e=function(){function s(t){_classCallCheck(this,s),this.options=i.extend({},s.defaults,t),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===s._toasts.length&&s._createContainer(),s._toasts.push(this);var e=this._createToast();(e.M_Toast=this).el=e,this.$el=i(e),this._animateIn(),this._setTimer()}return _createClass(s,[{key:"_createToast",value:function(){var t=document.createElement("div");return t.classList.add("toast"),this.options.classes.length&&i(t).addClass(this.options.classes),("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?t.appendChild(this.message):this.message.jquery?i(t).append(this.message[0]):t.innerHTML=this.message,s._container.appendChild(t),t}},{key:"_animateIn",value:function(){n({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval(function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()},20))}},{key:"dismiss",value:function(){var t=this;window.clearInterval(this.counterInterval);var e=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+e+"px)",this.el.style.opacity=0),n({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof t.options.completeCallback&&t.options.completeCallback(),t.$el.remove(),s._toasts.splice(s._toasts.indexOf(t),1),0===s._toasts.length&&s._removeContainer()}})}}],[{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),t.addEventListener("touchstart",s._onDragStart),t.addEventListener("touchmove",s._onDragMove),t.addEventListener("touchend",s._onDragEnd),t.addEventListener("mousedown",s._onDragStart),document.addEventListener("mousemove",s._onDragMove),document.addEventListener("mouseup",s._onDragEnd),document.body.appendChild(t),s._container=t}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",s._onDragMove),document.removeEventListener("mouseup",s._onDragEnd),i(s._container).remove(),s._container=null}},{key:"_onDragStart",value:function(t){if(t.target&&i(t.target).closest(".toast").length){var e=i(t.target).closest(".toast")[0].M_Toast;e.panning=!0,(s._draggedToast=e).el.classList.add("panning"),e.el.style.transition="",e.startingXPos=s._xPos(t),e.time=Date.now(),e.xPos=s._xPos(t)}}},{key:"_onDragMove",value:function(t){if(s._draggedToast){t.preventDefault();var e=s._draggedToast;e.deltaX=Math.abs(e.xPos-s._xPos(t)),e.xPos=s._xPos(t),e.velocityX=e.deltaX/(Date.now()-e.time),e.time=Date.now();var i=e.xPos-e.startingXPos,n=e.el.offsetWidth*e.options.activationPercent;e.el.style.transform="translateX("+i+"px)",e.el.style.opacity=1-Math.abs(i/n)}}},{key:"_onDragEnd",value:function(){if(s._draggedToast){var t=s._draggedToast;t.panning=!1,t.el.classList.remove("panning");var e=t.xPos-t.startingXPos,i=t.el.offsetWidth*t.options.activationPercent;Math.abs(e)>i||1<t.velocityX?(t.wasSwiped=!0,t.dismiss()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),s._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientX:t.clientX}},{key:"dismissAll",value:function(){for(var t in s._toasts)s._toasts[t].dismiss()}},{key:"defaults",get:function(){return t}}]),s}();e._toasts=[],e._container=null,e._draggedToast=null,M.Toast=e,M.toast=function(t){return new e(t)}}(cash,M.anime),function(s,o){"use strict";var e={edge:"left",draggable:!0,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Sidenav=i).id=i.$el.attr("id"),i.options=s.extend({},n.defaults,e),i.isOpen=!1,i.isFixed=i.el.classList.contains("sidenav-fixed"),i.isDragged=!1,i.lastWindowWidth=window.innerWidth,i.lastWindowHeight=window.innerHeight,i._createOverlay(),i._createDragTarget(),i._setupEventHandlers(),i._setupClasses(),i._setupFixed(),n._sidenavs.push(i),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._enableBodyScrolling(),this._overlay.parentNode.removeChild(this._overlay),this.dragTarget.parentNode.removeChild(this.dragTarget),this.el.M_Sidenav=void 0,this.el.style.transform="";var t=n._sidenavs.indexOf(this);0<=t&&n._sidenavs.splice(t,1)}},{key:"_createOverlay",value:function(){var t=document.createElement("div");this._closeBound=this.close.bind(this),t.classList.add("sidenav-overlay"),t.addEventListener("click",this._closeBound),document.body.appendChild(t),this._overlay=t}},{key:"_setupEventHandlers",value:function(){0===n._sidenavs.length&&document.body.addEventListener("click",this._handleTriggerClick),this._handleDragTargetDragBound=this._handleDragTargetDrag.bind(this),this._handleDragTargetReleaseBound=this._handleDragTargetRelease.bind(this),this._handleCloseDragBound=this._handleCloseDrag.bind(this),this._handleCloseReleaseBound=this._handleCloseRelease.bind(this),this._handleCloseTriggerClickBound=this._handleCloseTriggerClick.bind(this),this.dragTarget.addEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.addEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.addEventListener("touchmove",this._handleCloseDragBound),this._overlay.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("touchmove",this._handleCloseDragBound),this.el.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&(this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound))}},{key:"_removeEventHandlers",value:function(){1===n._sidenavs.length&&document.body.removeEventListener("click",this._handleTriggerClick),this.dragTarget.removeEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.removeEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.removeEventListener("touchmove",this._handleCloseDragBound),this._overlay.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("touchmove",this._handleCloseDragBound),this.el.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&window.removeEventListener("resize",this._handleWindowResizeBound)}},{key:"_handleTriggerClick",value:function(t){var e=s(t.target).closest(".sidenav-trigger");if(t.target&&e.length){var i=M.getIdFromTrigger(e[0]),n=document.getElementById(i).M_Sidenav;n&&n.open(e),t.preventDefault()}}},{key:"_startDrag",value:function(t){var e=t.targetTouches[0].clientX;this.isDragged=!0,this._startingXpos=e,this._xPos=this._startingXpos,this._time=Date.now(),this._width=this.el.getBoundingClientRect().width,this._overlay.style.display="block",this._initialScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop(),this._verticallyScrolling=!1,o.remove(this.el),o.remove(this._overlay)}},{key:"_dragMoveUpdate",value:function(t){var e=t.targetTouches[0].clientX,i=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-e),this._xPos=e,this.velocityX=this.deltaX/(Date.now()-this._time),this._time=Date.now(),this._initialScrollTop!==i&&(this._verticallyScrolling=!0)}},{key:"_handleDragTargetDrag",value:function(t){if(this.options.draggable&&!this._isCurrentlyFixed()&&!this._verticallyScrolling){this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,i=0<e?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge===i&&(e=0);var n=e,s="translateX(-100%)";"right"===this.options.edge&&(s="translateX(100%)",n=-n),this.percentOpen=Math.min(1,e/this._width),this.el.style.transform=s+" translateX("+n+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleDragTargetRelease",value:function(){this.isDragged&&(.2<this.percentOpen?this.open():this._animateOut(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseDrag",value:function(t){if(this.isOpen){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,i=0<e?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge!==i&&(e=0);var n=-e;"right"===this.options.edge&&(n=-n),this.percentOpen=Math.min(1,1-e/this._width),this.el.style.transform="translateX("+n+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleCloseRelease",value:function(){this.isOpen&&this.isDragged&&(.8<this.percentOpen?this._animateIn():this.close(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseTriggerClick",value:function(t){s(t.target).closest(".sidenav-close").length&&!this._isCurrentlyFixed()&&this.close()}},{key:"_handleWindowResize",value:function(){this.lastWindowWidth!==window.innerWidth&&(992<window.innerWidth?this.open():this.close()),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}},{key:"_setupClasses",value:function(){"right"===this.options.edge&&(this.el.classList.add("right-aligned"),this.dragTarget.classList.add("right-aligned"))}},{key:"_removeClasses",value:function(){this.el.classList.remove("right-aligned"),this.dragTarget.classList.remove("right-aligned")}},{key:"_setupFixed",value:function(){this._isCurrentlyFixed()&&this.open()}},{key:"_isCurrentlyFixed",value:function(){return this.isFixed&&992<window.innerWidth}},{key:"_createDragTarget",value:function(){var t=document.createElement("div");t.classList.add("drag-target"),document.body.appendChild(t),this.dragTarget=t}},{key:"_preventBodyScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"_enableBodyScrolling",value:function(){document.body.style.overflow=""}},{key:"open",value:function(){!0!==this.isOpen&&(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._isCurrentlyFixed()?(o.remove(this.el),o({targets:this.el,translateX:0,duration:0,easing:"easeOutQuad"}),this._enableBodyScrolling(),this._overlay.style.display="none"):(this.options.preventScrolling&&this._preventBodyScrolling(),this.isDragged&&1==this.percentOpen||this._animateIn()))}},{key:"close",value:function(){if(!1!==this.isOpen)if(this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._isCurrentlyFixed()){var t="left"===this.options.edge?"-105%":"105%";this.el.style.transform="translateX("+t+")"}else this._enableBodyScrolling(),this.isDragged&&0==this.percentOpen?this._overlay.style.display="none":this._animateOut()}},{key:"_animateIn",value:function(){this._animateSidenavIn(),this._animateOverlayIn()}},{key:"_animateSidenavIn",value:function(){var t=this,e="left"===this.options.edge?-1:1;this.isDragged&&(e="left"===this.options.edge?e+this.percentOpen:e-this.percentOpen),o.remove(this.el),o({targets:this.el,translateX:[100*e+"%",0],duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOverlayIn",value:function(){var t=0;this.isDragged?t=this.percentOpen:s(this._overlay).css({display:"block"}),o.remove(this._overlay),o({targets:this._overlay,opacity:[t,1],duration:this.options.inDuration,easing:"easeOutQuad"})}},{key:"_animateOut",value:function(){this._animateSidenavOut(),this._animateOverlayOut()}},{key:"_animateSidenavOut",value:function(){var t=this,e="left"===this.options.edge?-1:1,i=0;this.isDragged&&(i="left"===this.options.edge?e+this.percentOpen:e-this.percentOpen),o.remove(this.el),o({targets:this.el,translateX:[100*i+"%",105*e+"%"],duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_animateOverlayOut",value:function(){var t=this;o.remove(this._overlay),o({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){s(t._overlay).css("display","none")}})}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Sidenav}},{key:"defaults",get:function(){return e}}]),n}();t._sidenavs=[],M.Sidenav=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"sidenav","M_Sidenav")}(cash,M.anime),function(o,a){"use strict";var e={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(t){return'a[href="#'+t+'"]'}},t=function(t){function c(t,e){_classCallCheck(this,c);var i=_possibleConstructorReturn(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,c,t,e));return(i.el.M_ScrollSpy=i).options=o.extend({},c.defaults,e),c._elements.push(i),c._count++,c._increment++,i.tickId=-1,i.id=c._increment,i._setupEventHandlers(),i._handleWindowScroll(),i}return _inherits(c,Component),_createClass(c,[{key:"destroy",value:function(){c._elements.splice(c._elements.indexOf(this),1),c._elementsInView.splice(c._elementsInView.indexOf(this),1),c._visibleElements.splice(c._visibleElements.indexOf(this.$el),1),c._count--,this._removeEventHandlers(),o(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass),this.el.M_ScrollSpy=void 0}},{key:"_setupEventHandlers",value:function(){var t=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=t.bind(this),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),1===c._count&&(window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleThrottledResizeBound),document.body.addEventListener("click",this._handleTriggerClick))}},{key:"_removeEventHandlers",value:function(){0===c._count&&(window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleThrottledResizeBound),document.body.removeEventListener("click",this._handleTriggerClick))}},{key:"_handleTriggerClick",value:function(t){for(var e=o(t.target),i=c._elements.length-1;0<=i;i--){var n=c._elements[i];if(e.is('a[href="#'+n.$el.attr("id")+'"]')){t.preventDefault();var s=n.$el.offset().top+1;a({targets:[document.documentElement,document.body],scrollTop:s-n.options.scrollOffset,duration:400,easing:"easeOutCubic"});break}}}},{key:"_handleWindowScroll",value:function(){c._ticks++;for(var t=M.getDocumentScrollTop(),e=M.getDocumentScrollLeft(),i=e+window.innerWidth,n=t+window.innerHeight,s=c._findElements(t,i,n,e),o=0;o<s.length;o++){var a=s[o];a.tickId<0&&a._enter(),a.tickId=c._ticks}for(var r=0;r<c._elementsInView.length;r++){var l=c._elementsInView[r],h=l.tickId;0<=h&&h!==c._ticks&&(l._exit(),l.tickId=-1)}c._elementsInView=s}},{key:"_enter",value:function(){(c._visibleElements=c._visibleElements.filter(function(t){return 0!=t.height()}))[0]?(o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),c._visibleElements[0][0].M_ScrollSpy&&this.id<c._visibleElements[0][0].M_ScrollSpy.id?c._visibleElements.unshift(this.$el):c._visibleElements.push(this.$el)):c._visibleElements.push(this.$el),o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}},{key:"_exit",value:function(){var e=this;(c._visibleElements=c._visibleElements.filter(function(t){return 0!=t.height()}))[0]&&(o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),(c._visibleElements=c._visibleElements.filter(function(t){return t.attr("id")!=e.$el.attr("id")}))[0]&&o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).addClass(this.options.activeClass))}}],[{key:"init",value:function(t,e){return _get(c.__proto__||Object.getPrototypeOf(c),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_ScrollSpy}},{key:"_findElements",value:function(t,e,i,n){for(var s=[],o=0;o<c._elements.length;o++){var a=c._elements[o],r=t+a.options.scrollOffset||200;if(0<a.$el.height()){var l=a.$el.offset().top,h=a.$el.offset().left,d=h+a.$el.width(),u=l+a.$el.height();!(e<h||d<n||i<l||u<r)&&s.push(a)}}return s}},{key:"defaults",get:function(){return e}}]),c}();t._elements=[],t._elementsInView=[],t._visibleElements=[],t._count=0,t._increment=0,t._ticks=0,M.ScrollSpy=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"scrollSpy","M_ScrollSpy")}(cash,M.anime),function(h){"use strict";var e={data:{},limit:1/0,onAutocomplete:null,minLength:1,sortFunction:function(t,e,i){return t.indexOf(i)-e.indexOf(i)}},t=function(t){function s(t,e){_classCallCheck(this,s);var i=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,s,t,e));return(i.el.M_Autocomplete=i).options=h.extend({},s.defaults,e),i.isOpen=!1,i.count=0,i.activeIndex=-1,i.oldVal,i.$inputField=i.$el.closest(".input-field"),i.$active=h(),i._mousedown=!1,i._setupDropdown(),i._setupEventHandlers(),i}return _inherits(s,Component),_createClass(s,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_Autocomplete=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputBlurBound=this._handleInputBlur.bind(this),this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this),this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this),this.el.addEventListener("blur",this._handleInputBlurBound),this.el.addEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.addEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("click",this._handleInputClickBound),this.container.addEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.addEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("blur",this._handleInputBlurBound),this.el.removeEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("click",this._handleInputClickBound),this.container.removeEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.removeEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_setupDropdown",value:function(){var e=this;this.container=document.createElement("ul"),this.container.id="autocomplete-options-"+M.guid(),h(this.container).addClass("autocomplete-content dropdown-content"),this.$inputField.append(this.container),this.el.setAttribute("data-target",this.container.id),this.dropdown=M.Dropdown.init(this.el,{autoFocus:!1,closeOnClick:!1,coverTrigger:!1,onItemClick:function(t){e.selectOption(h(t))}}),this.el.removeEventListener("click",this.dropdown._handleClickBound)}},{key:"_removeDropdown",value:function(){this.container.parentNode.removeChild(this.container)}},{key:"_handleInputBlur",value:function(){this._mousedown||(this.close(),this._resetAutocomplete())}},{key:"_handleInputKeyupAndFocus",value:function(t){"keyup"===t.type&&(s._keydown=!1),this.count=0;var e=this.el.value.toLowerCase();13!==t.keyCode&&38!==t.keyCode&&40!==t.keyCode&&(this.oldVal===e||!M.tabPressed&&"focus"===t.type||this.open(),this.oldVal=e)}},{key:"_handleInputKeydown",value:function(t){s._keydown=!0;var e=t.keyCode,i=void 0,n=h(this.container).children("li").length;e===M.keys.ENTER&&0<=this.activeIndex?(i=h(this.container).children("li").eq(this.activeIndex)).length&&(this.selectOption(i),t.preventDefault()):e!==M.keys.ARROW_UP&&e!==M.keys.ARROW_DOWN||(t.preventDefault(),e===M.keys.ARROW_UP&&0<this.activeIndex&&this.activeIndex--,e===M.keys.ARROW_DOWN&&this.activeIndex<n-1&&this.activeIndex++,this.$active.removeClass("active"),0<=this.activeIndex&&(this.$active=h(this.container).children("li").eq(this.activeIndex),this.$active.addClass("active")))}},{key:"_handleInputClick",value:function(t){this.open()}},{key:"_handleContainerMousedownAndTouchstart",value:function(t){this._mousedown=!0}},{key:"_handleContainerMouseupAndTouchend",value:function(t){this._mousedown=!1}},{key:"_highlight",value:function(t,e){var i=e.find("img"),n=e.text().toLowerCase().indexOf(""+t.toLowerCase()),s=n+t.length-1,o=e.text().slice(0,n),a=e.text().slice(n,s+1),r=e.text().slice(s+1);e.html("<span>"+o+"<span class='highlight'>"+a+"</span>"+r+"</span>"),i.length&&e.prepend(i)}},{key:"_resetCurrentElement",value:function(){this.activeIndex=-1,this.$active.removeClass("active")}},{key:"_resetAutocomplete",value:function(){h(this.container).empty(),this._resetCurrentElement(),this.oldVal=null,this.isOpen=!1,this._mousedown=!1}},{key:"selectOption",value:function(t){var e=t.text().trim();this.el.value=e,this.$el.trigger("change"),this._resetAutocomplete(),this.close(),"function"==typeof this.options.onAutocomplete&&this.options.onAutocomplete.call(this,e)}},{key:"_renderDropdown",value:function(t,i){var n=this;this._resetAutocomplete();var e=[];for(var s in t)if(t.hasOwnProperty(s)&&-1!==s.toLowerCase().indexOf(i)){if(this.count>=this.options.limit)break;var o={data:t[s],key:s};e.push(o),this.count++}if(this.options.sortFunction){e.sort(function(t,e){return n.options.sortFunction(t.key.toLowerCase(),e.key.toLowerCase(),i.toLowerCase())})}for(var a=0;a<e.length;a++){var r=e[a],l=h("<li></li>");r.data?l.append('<img src="'+r.data+'" class="right circle"><span>'+r.key+"</span>"):l.append("<span>"+r.key+"</span>"),h(this.container).append(l),this._highlight(i,l)}}},{key:"open",value:function(){var t=this.el.value.toLowerCase();this._resetAutocomplete(),t.length>=this.options.minLength&&(this.isOpen=!0,this._renderDropdown(this.options.data,t)),this.dropdown.isOpen?this.dropdown.recalculateDimensions():this.dropdown.open()}},{key:"close",value:function(){this.dropdown.close()}},{key:"updateData",value:function(t){var e=this.el.value.toLowerCase();this.options.data=t,this.isOpen&&this._renderDropdown(t,e)}}],[{key:"init",value:function(t,e){return _get(s.__proto__||Object.getPrototypeOf(s),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Autocomplete}},{key:"defaults",get:function(){return e}}]),s}();t._keydown=!1,M.Autocomplete=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"autocomplete","M_Autocomplete")}(cash),function(d){M.updateTextFields=function(){d("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea").each(function(t,e){var i=d(this);0<t.value.length||d(t).is(":focus")||t.autofocus||null!==i.attr("placeholder")?i.siblings("label").addClass("active"):t.validity?i.siblings("label").toggleClass("active",!0===t.validity.badInput):i.siblings("label").removeClass("active")})},M.validate_field=function(t){var e=null!==t.attr("data-length"),i=parseInt(t.attr("data-length")),n=t[0].value.length;0!==n||!1!==t[0].validity.badInput||t.is(":required")?t.hasClass("validate")&&(t.is(":valid")&&e&&n<=i||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid"))):t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid"))},M.textareaAutoResize=function(t){if(t instanceof Element&&(t=d(t)),t.length){var e=d(".hiddendiv").first();e.length||(e=d('<div class="hiddendiv common"></div>'),d("body").append(e));var i=t.css("font-family"),n=t.css("font-size"),s=t.css("line-height"),o=t.css("padding-top"),a=t.css("padding-right"),r=t.css("padding-bottom"),l=t.css("padding-left");n&&e.css("font-size",n),i&&e.css("font-family",i),s&&e.css("line-height",s),o&&e.css("padding-top",o),a&&e.css("padding-right",a),r&&e.css("padding-bottom",r),l&&e.css("padding-left",l),t.data("original-height")||t.data("original-height",t.height()),"off"===t.attr("wrap")&&e.css("overflow-wrap","normal").css("white-space","pre"),e.text(t[0].value+"\n");var h=e.html().replace(/\n/g,"<br>");e.html(h),0<t[0].offsetWidth&&0<t[0].offsetHeight?e.css("width",t.width()+"px"):e.css("width",window.innerWidth/2+"px"),t.data("original-height")<=e.innerHeight()?t.css("height",e.innerHeight()+"px"):t[0].value.length<t.data("previous-length")&&t.css("height",t.data("original-height")+"px"),t.data("previous-length",t[0].value.length)}else console.error("No textarea element found")},d(document).ready(function(){var n="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea";d(document).on("change",n,function(){0===this.value.length&&null===d(this).attr("placeholder")||d(this).siblings("label").addClass("active"),M.validate_field(d(this))}),d(document).ready(function(){M.updateTextFields()}),d(document).on("reset",function(t){var e=d(t.target);e.is("form")&&(e.find(n).removeClass("valid").removeClass("invalid"),e.find(n).each(function(t){this.value.length&&d(this).siblings("label").removeClass("active")}),setTimeout(function(){e.find("select").each(function(){this.M_FormSelect&&d(this).trigger("change")})},0))}),document.addEventListener("focus",function(t){d(t.target).is(n)&&d(t.target).siblings("label, .prefix").addClass("active")},!0),document.addEventListener("blur",function(t){var e=d(t.target);if(e.is(n)){var i=".prefix";0===e[0].value.length&&!0!==e[0].validity.badInput&&null===e.attr("placeholder")&&(i+=", label"),e.siblings(i).removeClass("active"),M.validate_field(e)}},!0);d(document).on("keyup","input[type=radio], input[type=checkbox]",function(t){if(t.which===M.keys.TAB)return d(this).addClass("tabbed"),void d(this).one("blur",function(t){d(this).removeClass("tabbed")})});var t=".materialize-textarea";d(t).each(function(){var t=d(this);t.data("original-height",t.height()),t.data("previous-length",this.value.length),M.textareaAutoResize(t)}),d(document).on("keyup",t,function(){M.textareaAutoResize(d(this))}),d(document).on("keydown",t,function(){M.textareaAutoResize(d(this))}),d(document).on("change",'.file-field input[type="file"]',function(){for(var t=d(this).closest(".file-field").find("input.file-path"),e=d(this)[0].files,i=[],n=0;n<e.length;n++)i.push(e[n].name);t[0].value=i.join(", "),t.trigger("change")})})}(cash),function(s,o){"use strict";var e={indicators:!0,height:400,duration:500,interval:6e3},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Slider=i).options=s.extend({},n.defaults,e),i.$slider=i.$el.find(".slides"),i.$slides=i.$slider.children("li"),i.activeIndex=i.$slides.filter(function(t){return s(t).hasClass("active")}).first().index(),-1!=i.activeIndex&&(i.$active=i.$slides.eq(i.activeIndex)),i._setSliderHeight(),i.$slides.find(".caption").each(function(t){i._animateCaptionIn(t,0)}),i.$slides.find("img").each(function(t){var e="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";s(t).attr("src")!==e&&(s(t).css("background-image",'url("'+s(t).attr("src")+'")'),s(t).attr("src",e))}),i._setupIndicators(),i.$active?i.$active.css("display","block"):(i.$slides.first().addClass("active"),o({targets:i.$slides.first()[0],opacity:1,duration:i.options.duration,easing:"easeOutQuad"}),i.activeIndex=0,i.$active=i.$slides.eq(i.activeIndex),i.options.indicators&&i.$indicators.eq(i.activeIndex).addClass("active")),i.$active.find("img").each(function(t){o({targets:i.$active.find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:i.options.duration,easing:"easeOutQuad"})}),i._setupEventHandlers(),i.start(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this.pause(),this._removeIndicators(),this._removeEventHandlers(),this.el.M_Slider=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleIntervalBound=this._handleInterval.bind(this),this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.options.indicators&&this.$indicators.each(function(t){t.addEventListener("click",e._handleIndicatorClickBound)})}},{key:"_removeEventHandlers",value:function(){var e=this;this.options.indicators&&this.$indicators.each(function(t){t.removeEventListener("click",e._handleIndicatorClickBound)})}},{key:"_handleIndicatorClick",value:function(t){var e=s(t.target).index();this.set(e)}},{key:"_handleInterval",value:function(){var t=this.$slider.find(".active").index();this.$slides.length===t+1?t=0:t+=1,this.set(t)}},{key:"_animateCaptionIn",value:function(t,e){var i={targets:t,opacity:0,duration:e,easing:"easeOutQuad"};s(t).hasClass("center-align")?i.translateY=-100:s(t).hasClass("right-align")?i.translateX=100:s(t).hasClass("left-align")&&(i.translateX=-100),o(i)}},{key:"_setSliderHeight",value:function(){this.$el.hasClass("fullscreen")||(this.options.indicators?this.$el.css("height",this.options.height+40+"px"):this.$el.css("height",this.options.height+"px"),this.$slider.css("height",this.options.height+"px"))}},{key:"_setupIndicators",value:function(){var n=this;this.options.indicators&&(this.$indicators=s('<ul class="indicators"></ul>'),this.$slides.each(function(t,e){var i=s('<li class="indicator-item"></li>');n.$indicators.append(i[0])}),this.$el.append(this.$indicators[0]),this.$indicators=this.$indicators.children("li.indicator-item"))}},{key:"_removeIndicators",value:function(){this.$el.find("ul.indicators").remove()}},{key:"set",value:function(t){var e=this;if(t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.activeIndex!=t){this.$active=this.$slides.eq(this.activeIndex);var i=this.$active.find(".caption");this.$active.removeClass("active"),o({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:"easeOutQuad",complete:function(){e.$slides.not(".active").each(function(t){o({targets:t,opacity:0,translateX:0,translateY:0,duration:0,easing:"easeOutQuad"})})}}),this._animateCaptionIn(i[0],this.options.duration),this.options.indicators&&(this.$indicators.eq(this.activeIndex).removeClass("active"),this.$indicators.eq(t).addClass("active")),o({targets:this.$slides.eq(t)[0],opacity:1,duration:this.options.duration,easing:"easeOutQuad"}),o({targets:this.$slides.eq(t).find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:"easeOutQuad"}),this.$slides.eq(t).addClass("active"),this.activeIndex=t,this.start()}}},{key:"pause",value:function(){clearInterval(this.interval)}},{key:"start",value:function(){clearInterval(this.interval),this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval)}},{key:"next",value:function(){var t=this.activeIndex+1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}},{key:"prev",value:function(){var t=this.activeIndex-1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Slider}},{key:"defaults",get:function(){return e}}]),n}();M.Slider=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"slider","M_Slider")}(cash,M.anime),function(n,s){n(document).on("click",".card",function(t){if(n(this).children(".card-reveal").length){var i=n(t.target).closest(".card");void 0===i.data("initialOverflow")&&i.data("initialOverflow",void 0===i.css("overflow")?"":i.css("overflow"));var e=n(this).find(".card-reveal");n(t.target).is(n(".card-reveal .card-title"))||n(t.target).is(n(".card-reveal .card-title i"))?s({targets:e[0],translateY:0,duration:225,easing:"easeInOutQuad",complete:function(t){var e=t.animatables[0].target;n(e).css({display:"none"}),i.css("overflow",i.data("initialOverflow"))}}):(n(t.target).is(n(".card .activator"))||n(t.target).is(n(".card .activator i")))&&(i.css("overflow","hidden"),e.css({display:"block"}),s({targets:e[0],translateY:"-100%",duration:300,easing:"easeInOutQuad"}))}})}(cash,M.anime),function(h){"use strict";var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{},limit:1/0,onChipAdd:null,onChipSelect:null,onChipDelete:null},t=function(t){function l(t,e){_classCallCheck(this,l);var i=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,t,e));return(i.el.M_Chips=i).options=h.extend({},l.defaults,e),i.$el.addClass("chips input-field"),i.chipsData=[],i.$chips=h(),i._setupInput(),i.hasAutocomplete=0<Object.keys(i.options.autocompleteOptions).length,i.$input.attr("id")||i.$input.attr("id",M.guid()),i.options.data.length&&(i.chipsData=i.options.data,i._renderChips(i.chipsData)),i.hasAutocomplete&&i._setupAutocomplete(),i._setPlaceholder(),i._setupLabel(),i._setupEventHandlers(),i}return _inherits(l,Component),_createClass(l,[{key:"getData",value:function(){return this.chipsData}},{key:"destroy",value:function(){this._removeEventHandlers(),this.$chips.remove(),this.el.M_Chips=void 0}},{key:"_setupEventHandlers",value:function(){this._handleChipClickBound=this._handleChipClick.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputFocusBound=this._handleInputFocus.bind(this),this._handleInputBlurBound=this._handleInputBlur.bind(this),this.el.addEventListener("click",this._handleChipClickBound),document.addEventListener("keydown",l._handleChipsKeydown),document.addEventListener("keyup",l._handleChipsKeyup),this.el.addEventListener("blur",l._handleChipsBlur,!0),this.$input[0].addEventListener("focus",this._handleInputFocusBound),this.$input[0].addEventListener("blur",this._handleInputBlurBound),this.$input[0].addEventListener("keydown",this._handleInputKeydownBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleChipClickBound),document.removeEventListener("keydown",l._handleChipsKeydown),document.removeEventListener("keyup",l._handleChipsKeyup),this.el.removeEventListener("blur",l._handleChipsBlur,!0),this.$input[0].removeEventListener("focus",this._handleInputFocusBound),this.$input[0].removeEventListener("blur",this._handleInputBlurBound),this.$input[0].removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleChipClick",value:function(t){var e=h(t.target).closest(".chip"),i=h(t.target).is(".close");if(e.length){var n=e.index();i?(this.deleteChip(n),this.$input[0].focus()):this.selectChip(n)}else this.$input[0].focus()}},{key:"_handleInputFocus",value:function(){this.$el.addClass("focus")}},{key:"_handleInputBlur",value:function(){this.$el.removeClass("focus")}},{key:"_handleInputKeydown",value:function(t){if(l._keydown=!0,13===t.keyCode){if(this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen)return;t.preventDefault(),this.addChip({tag:this.$input[0].value}),this.$input[0].value=""}else 8!==t.keyCode&&37!==t.keyCode||""!==this.$input[0].value||!this.chipsData.length||(t.preventDefault(),this.selectChip(this.chipsData.length-1))}},{key:"_renderChip",value:function(t){if(t.tag){var e=document.createElement("div"),i=document.createElement("i");if(e.classList.add("chip"),e.textContent=t.tag,e.setAttribute("tabindex",0),h(i).addClass("material-icons close"),i.textContent="close",t.image){var n=document.createElement("img");n.setAttribute("src",t.image),e.insertBefore(n,e.firstChild)}return e.appendChild(i),e}}},{key:"_renderChips",value:function(){this.$chips.remove();for(var t=0;t<this.chipsData.length;t++){var e=this._renderChip(this.chipsData[t]);this.$el.append(e),this.$chips.add(e)}this.$el.append(this.$input[0])}},{key:"_setupAutocomplete",value:function(){var e=this;this.options.autocompleteOptions.onAutocomplete=function(t){e.addChip({tag:t}),e.$input[0].value="",e.$input[0].focus()},this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions)}},{key:"_setupInput",value:function(){this.$input=this.$el.find("input"),this.$input.length||(this.$input=h("<input></input>"),this.$el.append(this.$input)),this.$input.addClass("input")}},{key:"_setupLabel",value:function(){this.$label=this.$el.find("label"),this.$label.length&&this.$label.setAttribute("for",this.$input.attr("id"))}},{key:"_setPlaceholder",value:function(){void 0!==this.chipsData&&!this.chipsData.length&&this.options.placeholder?h(this.$input).prop("placeholder",this.options.placeholder):(void 0===this.chipsData||this.chipsData.length)&&this.options.secondaryPlaceholder&&h(this.$input).prop("placeholder",this.options.secondaryPlaceholder)}},{key:"_isValid",value:function(t){if(t.hasOwnProperty("tag")&&""!==t.tag){for(var e=!1,i=0;i<this.chipsData.length;i++)if(this.chipsData[i].tag===t.tag){e=!0;break}return!e}return!1}},{key:"addChip",value:function(t){if(this._isValid(t)&&!(this.chipsData.length>=this.options.limit)){var e=this._renderChip(t);this.$chips.add(e),this.chipsData.push(t),h(this.$input).before(e),this._setPlaceholder(),"function"==typeof this.options.onChipAdd&&this.options.onChipAdd.call(this,this.$el,e)}}},{key:"deleteChip",value:function(t){var e=this.$chips.eq(t);this.$chips.eq(t).remove(),this.$chips=this.$chips.filter(function(t){return 0<=h(t).index()}),this.chipsData.splice(t,1),this._setPlaceholder(),"function"==typeof this.options.onChipDelete&&this.options.onChipDelete.call(this,this.$el,e[0])}},{key:"selectChip",value:function(t){var e=this.$chips.eq(t);(this._selectedChip=e)[0].focus(),"function"==typeof this.options.onChipSelect&&this.options.onChipSelect.call(this,this.$el,e[0])}}],[{key:"init",value:function(t,e){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Chips}},{key:"_handleChipsKeydown",value:function(t){l._keydown=!0;var e=h(t.target).closest(".chips"),i=t.target&&e.length;if(!h(t.target).is("input, textarea")&&i){var n=e[0].M_Chips;if(8===t.keyCode||46===t.keyCode){t.preventDefault();var s=n.chipsData.length;if(n._selectedChip){var o=n._selectedChip.index();n.deleteChip(o),n._selectedChip=null,s=Math.max(o-1,0)}n.chipsData.length&&n.selectChip(s)}else if(37===t.keyCode){if(n._selectedChip){var a=n._selectedChip.index()-1;if(a<0)return;n.selectChip(a)}}else if(39===t.keyCode&&n._selectedChip){var r=n._selectedChip.index()+1;r>=n.chipsData.length?n.$input[0].focus():n.selectChip(r)}}}},{key:"_handleChipsKeyup",value:function(t){l._keydown=!1}},{key:"_handleChipsBlur",value:function(t){l._keydown||(h(t.target).closest(".chips")[0].M_Chips._selectedChip=null)}},{key:"defaults",get:function(){return e}}]),l}();t._keydown=!1,M.Chips=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"chips","M_Chips"),h(document).ready(function(){h(document.body).on("click",".chip .close",function(){var t=h(this).closest(".chips");t.length&&t[0].M_Chips||h(this).closest(".chip").remove()})})}(cash),function(s){"use strict";var e={top:0,bottom:1/0,offset:0,onPositionChange:null},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Pushpin=i).options=s.extend({},n.defaults,e),i.originalOffset=i.el.offsetTop,n._pushpins.push(i),i._setupEventHandlers(),i._updatePosition(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this.el.style.top=null,this._removePinClasses(),this._removeEventHandlers();var t=n._pushpins.indexOf(this);n._pushpins.splice(t,1)}},{key:"_setupEventHandlers",value:function(){document.addEventListener("scroll",n._updateElements)}},{key:"_removeEventHandlers",value:function(){document.removeEventListener("scroll",n._updateElements)}},{key:"_updatePosition",value:function(){var t=M.getDocumentScrollTop()+this.options.offset;this.options.top<=t&&this.options.bottom>=t&&!this.el.classList.contains("pinned")&&(this._removePinClasses(),this.el.style.top=this.options.offset+"px",this.el.classList.add("pinned"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pinned")),t<this.options.top&&!this.el.classList.contains("pin-top")&&(this._removePinClasses(),this.el.style.top=0,this.el.classList.add("pin-top"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-top")),t>this.options.bottom&&!this.el.classList.contains("pin-bottom")&&(this._removePinClasses(),this.el.classList.add("pin-bottom"),this.el.style.top=this.options.bottom-this.originalOffset+"px","function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-bottom"))}},{key:"_removePinClasses",value:function(){this.el.classList.remove("pin-top"),this.el.classList.remove("pinned"),this.el.classList.remove("pin-bottom")}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Pushpin}},{key:"_updateElements",value:function(){for(var t in n._pushpins){n._pushpins[t]._updatePosition()}}},{key:"defaults",get:function(){return e}}]),n}();t._pushpins=[],M.Pushpin=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"pushpin","M_Pushpin")}(cash),function(r,s){"use strict";var e={direction:"top",hoverEnabled:!0,toolbarEnabled:!1};r.fn.reverse=[].reverse;var t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_FloatingActionButton=i).options=r.extend({},n.defaults,e),i.isOpen=!1,i.$anchor=i.$el.children("a").first(),i.$menu=i.$el.children("ul").first(),i.$floatingBtns=i.$el.find("ul .btn-floating"),i.$floatingBtnsReverse=i.$el.find("ul .btn-floating").reverse(),i.offsetY=0,i.offsetX=0,i.$el.addClass("direction-"+i.options.direction),"top"===i.options.direction?i.offsetY=40:"right"===i.options.direction?i.offsetX=-40:"bottom"===i.options.direction?i.offsetY=-40:i.offsetX=40,i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_FloatingActionButton=void 0}},{key:"_setupEventHandlers",value:function(){this._handleFABClickBound=this._handleFABClick.bind(this),this._handleOpenBound=this.open.bind(this),this._handleCloseBound=this.close.bind(this),this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.addEventListener("mouseenter",this._handleOpenBound),this.el.addEventListener("mouseleave",this._handleCloseBound)):this.el.addEventListener("click",this._handleFABClickBound)}},{key:"_removeEventHandlers",value:function(){this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.removeEventListener("mouseenter",this._handleOpenBound),this.el.removeEventListener("mouseleave",this._handleCloseBound)):this.el.removeEventListener("click",this._handleFABClickBound)}},{key:"_handleFABClick",value:function(){this.isOpen?this.close():this.open()}},{key:"_handleDocumentClick",value:function(t){r(t.target).closest(this.$menu).length||this.close()}},{key:"open",value:function(){this.isOpen||(this.options.toolbarEnabled?this._animateInToolbar():this._animateInFAB(),this.isOpen=!0)}},{key:"close",value:function(){this.isOpen&&(this.options.toolbarEnabled?(window.removeEventListener("scroll",this._handleCloseBound,!0),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),this._animateOutToolbar()):this._animateOutFAB(),this.isOpen=!1)}},{key:"_animateInFAB",value:function(){var e=this;this.$el.addClass("active");var i=0;this.$floatingBtnsReverse.each(function(t){s({targets:t,opacity:1,scale:[.4,1],translateY:[e.offsetY,0],translateX:[e.offsetX,0],duration:275,delay:i,easing:"easeInOutQuad"}),i+=40})}},{key:"_animateOutFAB",value:function(){var e=this;this.$floatingBtnsReverse.each(function(t){s.remove(t),s({targets:t,opacity:0,scale:.4,translateY:e.offsetY,translateX:e.offsetX,duration:175,easing:"easeOutQuad",complete:function(){e.$el.removeClass("active")}})})}},{key:"_animateInToolbar",value:function(){var t,e=this,i=window.innerWidth,n=window.innerHeight,s=this.el.getBoundingClientRect(),o=r('<div class="fab-backdrop"></div>'),a=this.$anchor.css("background-color");this.$anchor.append(o),this.offsetX=s.left-i/2+s.width/2,this.offsetY=n-s.bottom,t=i/o[0].clientWidth,this.btnBottom=s.bottom,this.btnLeft=s.left,this.btnWidth=s.width,this.$el.addClass("active"),this.$el.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+this.offsetX+"px)",transition:"none"}),this.$anchor.css({transform:"translateY("+-this.offsetY+"px)",transition:"none"}),o.css({"background-color":a}),setTimeout(function(){e.$el.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),e.$anchor.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){e.$el.css({overflow:"hidden","background-color":a}),o.css({transform:"scale("+t+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),e.$menu.children("li").children("a").css({opacity:1}),e._handleDocumentClickBound=e._handleDocumentClick.bind(e),window.addEventListener("scroll",e._handleCloseBound,!0),document.body.addEventListener("click",e._handleDocumentClickBound,!0)},100)},0)}},{key:"_animateOutToolbar",value:function(){var t=this,e=window.innerWidth,i=window.innerHeight,n=this.$el.find(".fab-backdrop"),s=this.$anchor.css("background-color");this.offsetX=this.btnLeft-e/2+this.btnWidth/2,this.offsetY=i-this.btnBottom,this.$el.removeClass("active"),this.$el.css({"background-color":"transparent",transition:"none"}),this.$anchor.css({transition:"none"}),n.css({transform:"scale(0)","background-color":s}),this.$menu.children("li").children("a").css({opacity:""}),setTimeout(function(){n.remove(),t.$el.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t.offsetX+"px,0,0)"}),t.$anchor.css({overflow:"",transform:"translate3d(0,"+t.offsetY+"px,0)"}),setTimeout(function(){t.$el.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),t.$anchor.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FloatingActionButton}},{key:"defaults",get:function(){return e}}]),n}();M.FloatingActionButton=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"floatingActionButton","M_FloatingActionButton")}(cash,M.anime),function(g){"use strict";var e={autoClose:!1,format:"mmm dd, yyyy",parse:null,defaultDate:null,setDefaultDate:!1,disableWeekends:!1,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,container:null,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok",previousMonth:"‹",nextMonth:"›",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysAbbrev:["S","M","T","W","T","F","S"]},events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},t=function(t){function B(t,e){_classCallCheck(this,B);var i=_possibleConstructorReturn(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,B,t,e));(i.el.M_Datepicker=i).options=g.extend({},B.defaults,e),e&&e.hasOwnProperty("i18n")&&"object"==typeof e.i18n&&(i.options.i18n=g.extend({},B.defaults.i18n,e.i18n)),i.options.minDate&&i.options.minDate.setHours(0,0,0,0),i.options.maxDate&&i.options.maxDate.setHours(0,0,0,0),i.id=M.guid(),i._setupVariables(),i._insertHTMLIntoDOM(),i._setupModal(),i._setupEventHandlers(),i.options.defaultDate||(i.options.defaultDate=new Date(Date.parse(i.el.value)));var n=i.options.defaultDate;return B._isDate(n)?i.options.setDefaultDate?(i.setDate(n,!0),i.setInputValue()):i.gotoDate(n):i.gotoDate(new Date),i.isOpen=!1,i}return _inherits(B,Component),_createClass(B,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),g(this.modalEl).remove(),this.destroySelects(),this.el.M_Datepicker=void 0}},{key:"destroySelects",value:function(){var t=this.calendarEl.querySelector(".orig-select-year");t&&M.FormSelect.getInstance(t).destroy();var e=this.calendarEl.querySelector(".orig-select-month");e&&M.FormSelect.getInstance(e).destroy()}},{key:"_insertHTMLIntoDOM",value:function(){this.options.showClearBtn&&(g(this.clearBtn).css({visibility:""}),this.clearBtn.innerHTML=this.options.i18n.clear),this.doneBtn.innerHTML=this.options.i18n.done,this.cancelBtn.innerHTML=this.options.i18n.cancel,this.options.container?this.$modalEl.appendTo(this.options.container):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modalEl.id="modal-"+this.id,this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){t.isOpen=!1}})}},{key:"toString",value:function(t){var e=this;return t=t||this.options.format,B._isDate(this.date)?t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map(function(t){return e.formats[t]?e.formats[t]():t}).join(""):""}},{key:"setDate",value:function(t,e){if(!t)return this.date=null,this._renderDateDisplay(),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),B._isDate(t)){var i=this.options.minDate,n=this.options.maxDate;B._isDate(i)&&t<i?t=i:B._isDate(n)&&n<t&&(t=n),this.date=new Date(t.getTime()),this._renderDateDisplay(),B._setToStartOfDay(this.date),this.gotoDate(this.date),e||"function"!=typeof this.options.onSelect||this.options.onSelect.call(this,this.date)}}},{key:"setInputValue",value:function(){this.el.value=this.toString(),this.$el.trigger("change",{firedBy:this})}},{key:"_renderDateDisplay",value:function(){var t=B._isDate(this.date)?this.date:new Date,e=this.options.i18n,i=e.weekdaysShort[t.getDay()],n=e.monthsShort[t.getMonth()],s=t.getDate();this.yearTextEl.innerHTML=t.getFullYear(),this.dateTextEl.innerHTML=i+", "+n+" "+s}},{key:"gotoDate",value:function(t){var e=!0;if(B._isDate(t)){if(this.calendars){var i=new Date(this.calendars[0].year,this.calendars[0].month,1),n=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),s=t.getTime();n.setMonth(n.getMonth()+1),n.setDate(n.getDate()-1),e=s<i.getTime()||n.getTime()<s}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}]),this.adjustCalendars()}}},{key:"adjustCalendars",value:function(){this.calendars[0]=this.adjustCalendar(this.calendars[0]),this.draw()}},{key:"adjustCalendar",value:function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),11<t.month&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t}},{key:"nextMonth",value:function(){this.calendars[0].month++,this.adjustCalendars()}},{key:"prevMonth",value:function(){this.calendars[0].month--,this.adjustCalendars()}},{key:"render",value:function(t,e,i){var n=this.options,s=new Date,o=B._getDaysInMonth(t,e),a=new Date(t,e,1).getDay(),r=[],l=[];B._setToStartOfDay(s),0<n.firstDay&&(a-=n.firstDay)<0&&(a+=7);for(var h=0===e?11:e-1,d=11===e?0:e+1,u=0===e?t-1:t,c=11===e?t+1:t,p=B._getDaysInMonth(u,h),v=o+a,f=v;7<f;)f-=7;v+=7-f;for(var m=!1,g=0,_=0;g<v;g++){var y=new Date(t,e,g-a+1),k=!!B._isDate(this.date)&&B._compareDates(y,this.date),b=B._compareDates(y,s),w=-1!==n.events.indexOf(y.toDateString()),C=g<a||o+a<=g,E=g-a+1,M=e,O=t,x=n.startRange&&B._compareDates(n.startRange,y),L=n.endRange&&B._compareDates(n.endRange,y),T=n.startRange&&n.endRange&&n.startRange<y&&y<n.endRange;C&&(g<a?(E=p+E,M=h,O=u):(E-=o,M=d,O=c));var $={day:E,month:M,year:O,hasEvent:w,isSelected:k,isToday:b,isDisabled:n.minDate&&y<n.minDate||n.maxDate&&y>n.maxDate||n.disableWeekends&&B._isWeekend(y)||n.disableDayFn&&n.disableDayFn(y),isEmpty:C,isStartRange:x,isEndRange:L,isInRange:T,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths};l.push(this.renderDay($)),7==++_&&(r.push(this.renderRow(l,n.isRTL,m)),_=0,m=!(l=[]))}return this.renderTable(n,r,i)}},{key:"renderDay",value:function(t){var e=[],i="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),i="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+i+'"><button class="datepicker-day-button" type="button" data-year="'+t.year+'" data-month="'+t.month+'" data-day="'+t.day+'">'+t.day+"</button></td>"}},{key:"renderRow",value:function(t,e,i){return'<tr class="datepicker-row'+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"}},{key:"renderTable",value:function(t,e,i){return'<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+i+'">'+this.renderHead(t)+this.renderBody(e)+"</table></div>"}},{key:"renderHead",value:function(t){var e=void 0,i=[];for(e=0;e<7;e++)i.push('<th scope="col"><abbr title="'+this.renderDayName(t,e)+'">'+this.renderDayName(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?i.reverse():i).join("")+"</tr></thead>"}},{key:"renderBody",value:function(t){return"<tbody>"+t.join("")+"</tbody>"}},{key:"renderTitle",value:function(t,e,i,n,s,o){var a,r,l=void 0,h=void 0,d=void 0,u=this.options,c=i===u.minYear,p=i===u.maxYear,v='<div id="'+o+'" class="datepicker-controls" role="heading" aria-live="assertive">',f=!0,m=!0;for(d=[],l=0;l<12;l++)d.push('<option value="'+(i===s?l-e:12+l-e)+'"'+(l===n?' selected="selected"':"")+(c&&l<u.minMonth||p&&l>u.maxMonth?'disabled="disabled"':"")+">"+u.i18n.months[l]+"</option>");for(a='<select class="datepicker-select orig-select-month" tabindex="-1">'+d.join("")+"</select>",g.isArray(u.yearRange)?(l=u.yearRange[0],h=u.yearRange[1]+1):(l=i-u.yearRange,h=1+i+u.yearRange),d=[];l<h&&l<=u.maxYear;l++)l>=u.minYear&&d.push('<option value="'+l+'" '+(l===i?'selected="selected"':"")+">"+l+"</option>");r='<select class="datepicker-select orig-select-year" tabindex="-1">'+d.join("")+"</select>";v+='<button class="month-prev'+(f?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg></button>',v+='<div class="selects-container">',u.showMonthAfterYear?v+=r+a:v+=a+r,v+="</div>",c&&(0===n||u.minMonth>=n)&&(f=!1),p&&(11===n||u.maxMonth<=n)&&(m=!1);return(v+='<button class="month-next'+(m?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg></button>')+"</div>"}},{key:"draw",value:function(t){if(this.isOpen||t){var e,i=this.options,n=i.minYear,s=i.maxYear,o=i.minMonth,a=i.maxMonth,r="";this._y<=n&&(this._y=n,!isNaN(o)&&this._m<o&&(this._m=o)),this._y>=s&&(this._y=s,!isNaN(a)&&this._m>a&&(this._m=a)),e="datepicker-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<1;l++)this._renderDateDisplay(),r+=this.renderTitle(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,e)+this.render(this.calendars[l].year,this.calendars[l].month,e);this.destroySelects(),this.calendarEl.innerHTML=r;var h=this.calendarEl.querySelector(".orig-select-year"),d=this.calendarEl.querySelector(".orig-select-month");M.FormSelect.init(h,{classes:"select-year",dropdownOptions:{container:document.body,constrainWidth:!1}}),M.FormSelect.init(d,{classes:"select-month",dropdownOptions:{container:document.body,constrainWidth:!1}}),h.addEventListener("change",this._handleYearChange.bind(this)),d.addEventListener("change",this._handleMonthChange.bind(this)),"function"==typeof this.options.onDraw&&this.options.onDraw(this)}}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleInputChangeBound=this._handleInputChange.bind(this),this._handleCalendarClickBound=this._handleCalendarClick.bind(this),this._finishSelectionBound=this._finishSelection.bind(this),this._handleMonthChange=this._handleMonthChange.bind(this),this._closeBound=this.close.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("change",this._handleInputChangeBound),this.calendarEl.addEventListener("click",this._handleCalendarClickBound),this.doneBtn.addEventListener("click",this._finishSelectionBound),this.cancelBtn.addEventListener("click",this._closeBound),this.options.showClearBtn&&(this._handleClearClickBound=this._handleClearClick.bind(this),this.clearBtn.addEventListener("click",this._handleClearClickBound))}},{key:"_setupVariables",value:function(){var e=this;this.$modalEl=g(B._template),this.modalEl=this.$modalEl[0],this.calendarEl=this.modalEl.querySelector(".datepicker-calendar"),this.yearTextEl=this.modalEl.querySelector(".year-text"),this.dateTextEl=this.modalEl.querySelector(".date-text"),this.options.showClearBtn&&(this.clearBtn=this.modalEl.querySelector(".datepicker-clear")),this.doneBtn=this.modalEl.querySelector(".datepicker-done"),this.cancelBtn=this.modalEl.querySelector(".datepicker-cancel"),this.formats={d:function(){return e.date.getDate()},dd:function(){var t=e.date.getDate();return(t<10?"0":"")+t},ddd:function(){return e.options.i18n.weekdaysShort[e.date.getDay()]},dddd:function(){return e.options.i18n.weekdays[e.date.getDay()]},m:function(){return e.date.getMonth()+1},mm:function(){var t=e.date.getMonth()+1;return(t<10?"0":"")+t},mmm:function(){return e.options.i18n.monthsShort[e.date.getMonth()]},mmmm:function(){return e.options.i18n.months[e.date.getMonth()]},yy:function(){return(""+e.date.getFullYear()).slice(2)},yyyy:function(){return e.date.getFullYear()}}}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("change",this._handleInputChangeBound),this.calendarEl.removeEventListener("click",this._handleCalendarClickBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleCalendarClick",value:function(t){if(this.isOpen){var e=g(t.target);e.hasClass("is-disabled")||(!e.hasClass("datepicker-day-button")||e.hasClass("is-empty")||e.parent().hasClass("is-disabled")?e.closest(".month-prev").length?this.prevMonth():e.closest(".month-next").length&&this.nextMonth():(this.setDate(new Date(t.target.getAttribute("data-year"),t.target.getAttribute("data-month"),t.target.getAttribute("data-day"))),this.options.autoClose&&this._finishSelection()))}}},{key:"_handleClearClick",value:function(){this.date=null,this.setInputValue(),this.close()}},{key:"_handleMonthChange",value:function(t){this.gotoMonth(t.target.value)}},{key:"_handleYearChange",value:function(t){this.gotoYear(t.target.value)}},{key:"gotoMonth",value:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())}},{key:"gotoYear",value:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())}},{key:"_handleInputChange",value:function(t){var e=void 0;t.firedBy!==this&&(e=this.options.parse?this.options.parse(this.el.value,this.options.format):new Date(Date.parse(this.el.value)),B._isDate(e)&&this.setDate(e))}},{key:"renderDayName",value:function(t,e,i){for(e+=t.firstDay;7<=e;)e-=7;return i?t.i18n.weekdaysAbbrev[e]:t.i18n.weekdays[e]}},{key:"_finishSelection",value:function(){this.setInputValue(),this.close()}},{key:"open",value:function(){if(!this.isOpen)return this.isOpen=!0,"function"==typeof this.options.onOpen&&this.options.onOpen.call(this),this.draw(),this.modal.open(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onClose&&this.options.onClose.call(this),this.modal.close(),this}}],[{key:"init",value:function(t,e){return _get(B.__proto__||Object.getPrototypeOf(B),"init",this).call(this,this,t,e)}},{key:"_isDate",value:function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())}},{key:"_isWeekend",value:function(t){var e=t.getDay();return 0===e||6===e}},{key:"_setToStartOfDay",value:function(t){B._isDate(t)&&t.setHours(0,0,0,0)}},{key:"_getDaysInMonth",value:function(t,e){return[31,B._isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}},{key:"_isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"_compareDates",value:function(t,e){return t.getTime()===e.getTime()}},{key:"_setToStartOfDay",value:function(t){B._isDate(t)&&t.setHours(0,0,0,0)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Datepicker}},{key:"defaults",get:function(){return e}}]),B}();t._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>',"</div>",'<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>',"</div>","</div>","</div>","</div>","</div>"].join(""),M.Datepicker=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"datepicker","M_Datepicker")}(cash),function(h){"use strict";var e={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:"now",fromNow:0,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok"},autoClose:!1,twelveHour:!0,vibrate:!0,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null},t=function(t){function f(t,e){_classCallCheck(this,f);var i=_possibleConstructorReturn(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,f,t,e));return(i.el.M_Timepicker=i).options=h.extend({},f.defaults,e),i.id=M.guid(),i._insertHTMLIntoDOM(),i._setupModal(),i._setupVariables(),i._setupEventHandlers(),i._clockSetup(),i._pickerSetup(),i}return _inherits(f,Component),_createClass(f,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),h(this.modalEl).remove(),this.el.M_Timepicker=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleClockClickStartBound=this._handleClockClickStart.bind(this),this._handleDocumentClickMoveBound=this._handleDocumentClickMove.bind(this),this._handleDocumentClickEndBound=this._handleDocumentClickEnd.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.plate.addEventListener("mousedown",this._handleClockClickStartBound),this.plate.addEventListener("touchstart",this._handleClockClickStartBound),h(this.spanHours).on("click",this.showView.bind(this,"hours")),h(this.spanMinutes).on("click",this.showView.bind(this,"minutes"))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleClockClickStart",value:function(t){t.preventDefault();var e=this.plate.getBoundingClientRect(),i=e.left,n=e.top;this.x0=i+this.options.dialRadius,this.y0=n+this.options.dialRadius,this.moved=!1;var s=f._Pos(t);this.dx=s.x-this.x0,this.dy=s.y-this.y0,this.setHand(this.dx,this.dy,!1),document.addEventListener("mousemove",this._handleDocumentClickMoveBound),document.addEventListener("touchmove",this._handleDocumentClickMoveBound),document.addEventListener("mouseup",this._handleDocumentClickEndBound),document.addEventListener("touchend",this._handleDocumentClickEndBound)}},{key:"_handleDocumentClickMove",value:function(t){t.preventDefault();var e=f._Pos(t),i=e.x-this.x0,n=e.y-this.y0;this.moved=!0,this.setHand(i,n,!1,!0)}},{key:"_handleDocumentClickEnd",value:function(t){var e=this;t.preventDefault(),document.removeEventListener("mouseup",this._handleDocumentClickEndBound),document.removeEventListener("touchend",this._handleDocumentClickEndBound);var i=f._Pos(t),n=i.x-this.x0,s=i.y-this.y0;this.moved&&n===this.dx&&s===this.dy&&this.setHand(n,s),"hours"===this.currentView?this.showView("minutes",this.options.duration/2):this.options.autoClose&&(h(this.minutesView).addClass("timepicker-dial-out"),setTimeout(function(){e.done()},this.options.duration/2)),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.hours,this.minutes),document.removeEventListener("mousemove",this._handleDocumentClickMoveBound),document.removeEventListener("touchmove",this._handleDocumentClickMoveBound)}},{key:"_insertHTMLIntoDOM",value:function(){this.$modalEl=h(f._template),this.modalEl=this.$modalEl[0],this.modalEl.id="modal-"+this.id;var t=document.querySelector(this.options.container);this.options.container&&t?this.$modalEl.appendTo(t):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t),t.isOpen=!1}})}},{key:"_setupVariables",value:function(){this.currentView="hours",this.vibrate=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,this._canvas=this.modalEl.querySelector(".timepicker-canvas"),this.plate=this.modalEl.querySelector(".timepicker-plate"),this.hoursView=this.modalEl.querySelector(".timepicker-hours"),this.minutesView=this.modalEl.querySelector(".timepicker-minutes"),this.spanHours=this.modalEl.querySelector(".timepicker-span-hours"),this.spanMinutes=this.modalEl.querySelector(".timepicker-span-minutes"),this.spanAmPm=this.modalEl.querySelector(".timepicker-span-am-pm"),this.footer=this.modalEl.querySelector(".timepicker-footer"),this.amOrPm="PM"}},{key:"_pickerSetup",value:function(){var t=h('<button class="btn-flat timepicker-clear waves-effect" style="visibility: hidden;" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.clear+"</button>").appendTo(this.footer).on("click",this.clear.bind(this));this.options.showClearBtn&&t.css({visibility:""});var e=h('<div class="confirmation-btns"></div>');h('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.cancel+"</button>").appendTo(e).on("click",this.close.bind(this)),h('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.done+"</button>").appendTo(e).on("click",this.done.bind(this)),e.appendTo(this.footer)}},{key:"_clockSetup",value:function(){this.options.twelveHour&&(this.$amBtn=h('<div class="am-btn">AM</div>'),this.$pmBtn=h('<div class="pm-btn">PM</div>'),this.$amBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm),this.$pmBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)),this._buildHoursView(),this._buildMinutesView(),this._buildSVGClock()}},{key:"_buildSVGClock",value:function(){var t=this.options.dialRadius,e=this.options.tickRadius,i=2*t,n=f._createSVGEl("svg");n.setAttribute("class","timepicker-svg"),n.setAttribute("width",i),n.setAttribute("height",i);var s=f._createSVGEl("g");s.setAttribute("transform","translate("+t+","+t+")");var o=f._createSVGEl("circle");o.setAttribute("class","timepicker-canvas-bearing"),o.setAttribute("cx",0),o.setAttribute("cy",0),o.setAttribute("r",4);var a=f._createSVGEl("line");a.setAttribute("x1",0),a.setAttribute("y1",0);var r=f._createSVGEl("circle");r.setAttribute("class","timepicker-canvas-bg"),r.setAttribute("r",e),s.appendChild(a),s.appendChild(r),s.appendChild(o),n.appendChild(s),this._canvas.appendChild(n),this.hand=a,this.bg=r,this.bearing=o,this.g=s}},{key:"_buildHoursView",value:function(){var t=h('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var e=1;e<13;e+=1){var i=t.clone(),n=e/6*Math.PI,s=this.options.outerRadius;i.css({left:this.options.dialRadius+Math.sin(n)*s-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(n)*s-this.options.tickRadius+"px"}),i.html(0===e?"00":e),this.hoursView.appendChild(i[0])}else for(var o=0;o<24;o+=1){var a=t.clone(),r=o/6*Math.PI,l=0<o&&o<13?this.options.innerRadius:this.options.outerRadius;a.css({left:this.options.dialRadius+Math.sin(r)*l-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(r)*l-this.options.tickRadius+"px"}),a.html(0===o?"00":o),this.hoursView.appendChild(a[0])}}},{key:"_buildMinutesView",value:function(){for(var t=h('<div class="timepicker-tick"></div>'),e=0;e<60;e+=5){var i=t.clone(),n=e/30*Math.PI;i.css({left:this.options.dialRadius+Math.sin(n)*this.options.outerRadius-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(n)*this.options.outerRadius-this.options.tickRadius+"px"}),i.html(f._addLeadingZero(e)),this.minutesView.appendChild(i[0])}}},{key:"_handleAmPmClick",value:function(t){var e=h(t.target);this.amOrPm=e.hasClass("am-btn")?"AM":"PM",this._updateAmPmView()}},{key:"_updateAmPmView",value:function(){this.options.twelveHour&&(this.$amBtn.toggleClass("text-primary","AM"===this.amOrPm),this.$pmBtn.toggleClass("text-primary","PM"===this.amOrPm))}},{key:"_updateTimeFromInput",value:function(){var t=((this.el.value||this.options.defaultTime||"")+"").split(":");if(this.options.twelveHour&&void 0!==t[1]&&(0<t[1].toUpperCase().indexOf("AM")?this.amOrPm="AM":this.amOrPm="PM",t[1]=t[1].replace("AM","").replace("PM","")),"now"===t[0]){var e=new Date(+new Date+this.options.fromNow);t=[e.getHours(),e.getMinutes()],this.options.twelveHour&&(this.amOrPm=12<=t[0]&&t[0]<24?"PM":"AM")}this.hours=+t[0]||0,this.minutes=+t[1]||0,this.spanHours.innerHTML=this.hours,this.spanMinutes.innerHTML=f._addLeadingZero(this.minutes),this._updateAmPmView()}},{key:"showView",value:function(t,e){"minutes"===t&&h(this.hoursView).css("visibility");var i="hours"===t,n=i?this.hoursView:this.minutesView,s=i?this.minutesView:this.hoursView;this.currentView=t,h(this.spanHours).toggleClass("text-primary",i),h(this.spanMinutes).toggleClass("text-primary",!i),s.classList.add("timepicker-dial-out"),h(n).css("visibility","visible").removeClass("timepicker-dial-out"),this.resetClock(e),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){h(s).css("visibility","hidden")},this.options.duration)}},{key:"resetClock",value:function(t){var e=this.currentView,i=this[e],n="hours"===e,s=i*(Math.PI/(n?6:30)),o=n&&0<i&&i<13?this.options.innerRadius:this.options.outerRadius,a=Math.sin(s)*o,r=-Math.cos(s)*o,l=this;t?(h(this.canvas).addClass("timepicker-canvas-out"),setTimeout(function(){h(l.canvas).removeClass("timepicker-canvas-out"),l.setHand(a,r)},t)):this.setHand(a,r)}},{key:"setHand",value:function(t,e,i){var n=this,s=Math.atan2(t,-e),o="hours"===this.currentView,a=Math.PI/(o||i?6:30),r=Math.sqrt(t*t+e*e),l=o&&r<(this.options.outerRadius+this.options.innerRadius)/2,h=l?this.options.innerRadius:this.options.outerRadius;this.options.twelveHour&&(h=this.options.outerRadius),s<0&&(s=2*Math.PI+s);var d=Math.round(s/a);s=d*a,this.options.twelveHour?o?0===d&&(d=12):(i&&(d*=5),60===d&&(d=0)):o?(12===d&&(d=0),d=l?0===d?12:d:0===d?0:d+12):(i&&(d*=5),60===d&&(d=0)),this[this.currentView]!==d&&this.vibrate&&this.options.vibrate&&(this.vibrateTimer||(navigator[this.vibrate](10),this.vibrateTimer=setTimeout(function(){n.vibrateTimer=null},100))),this[this.currentView]=d,o?this.spanHours.innerHTML=d:this.spanMinutes.innerHTML=f._addLeadingZero(d);var u=Math.sin(s)*(h-this.options.tickRadius),c=-Math.cos(s)*(h-this.options.tickRadius),p=Math.sin(s)*h,v=-Math.cos(s)*h;this.hand.setAttribute("x2",u),this.hand.setAttribute("y2",c),this.bg.setAttribute("cx",p),this.bg.setAttribute("cy",v)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this._updateTimeFromInput(),this.showView("hours"),this.modal.open())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.modal.close())}},{key:"done",value:function(t,e){var i=this.el.value,n=e?"":f._addLeadingZero(this.hours)+":"+f._addLeadingZero(this.minutes);this.time=n,!e&&this.options.twelveHour&&(n=n+" "+this.amOrPm),(this.el.value=n)!==i&&this.$el.trigger("change"),this.close(),this.el.focus()}},{key:"clear",value:function(){this.done(null,!0)}}],[{key:"init",value:function(t,e){return _get(f.__proto__||Object.getPrototypeOf(f),"init",this).call(this,this,t,e)}},{key:"_addLeadingZero",value:function(t){return(t<10?"0":"")+t}},{key:"_createSVGEl",value:function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},{key:"_Pos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?{x:t.targetTouches[0].clientX,y:t.targetTouches[0].clientY}:{x:t.clientX,y:t.clientY}}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Timepicker}},{key:"defaults",get:function(){return e}}]),f}();t._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',":",'<span class="timepicker-span-minutes"></span>',"</div>",'<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>',"</div>",'<div class="timepicker-footer"></div>',"</div>","</div>","</div>"].join(""),M.Timepicker=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"timepicker","M_Timepicker")}(cash),function(s){"use strict";var e={},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_CharacterCounter=i).options=s.extend({},n.defaults,e),i.isInvalid=!1,i.isValidLength=!1,i._setupCounter(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.CharacterCounter=void 0,this._removeCounter()}},{key:"_setupEventHandlers",value:function(){this._handleUpdateCounterBound=this.updateCounter.bind(this),this.el.addEventListener("focus",this._handleUpdateCounterBound,!0),this.el.addEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("focus",this._handleUpdateCounterBound,!0),this.el.removeEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_setupCounter",value:function(){this.counterEl=document.createElement("span"),s(this.counterEl).addClass("character-counter").css({float:"right","font-size":"12px",height:1}),this.$el.parent().append(this.counterEl)}},{key:"_removeCounter",value:function(){s(this.counterEl).remove()}},{key:"updateCounter",value:function(){var t=+this.$el.attr("data-length"),e=this.el.value.length;this.isValidLength=e<=t;var i=e;t&&(i+="/"+t,this._validateInput()),s(this.counterEl).html(i)}},{key:"_validateInput",value:function(){this.isValidLength&&this.isInvalid?(this.isInvalid=!1,this.$el.removeClass("invalid")):this.isValidLength||this.isInvalid||(this.isInvalid=!0,this.$el.removeClass("valid"),this.$el.addClass("invalid"))}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_CharacterCounter}},{key:"defaults",get:function(){return e}}]),n}();M.CharacterCounter=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"characterCounter","M_CharacterCounter")}(cash),function(b){"use strict";var e={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},t=function(t){function i(t,e){_classCallCheck(this,i);var n=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return(n.el.M_Carousel=n).options=b.extend({},i.defaults,e),n.hasMultipleSlides=1<n.$el.find(".carousel-item").length,n.showIndicators=n.options.indicators&&n.hasMultipleSlides,n.noWrap=n.options.noWrap||!n.hasMultipleSlides,n.pressed=!1,n.dragged=!1,n.offset=n.target=0,n.images=[],n.itemWidth=n.$el.find(".carousel-item").first().innerWidth(),n.itemHeight=n.$el.find(".carousel-item").first().innerHeight(),n.dim=2*n.itemWidth+n.options.padding||1,n._autoScrollBound=n._autoScroll.bind(n),n._trackBound=n._track.bind(n),n.options.fullWidth&&(n.options.dist=0,n._setCarouselHeight(),n.showIndicators&&n.$el.find(".carousel-fixed-item").addClass("with-indicators")),n.$indicators=b('<ul class="indicators"></ul>'),n.$el.find(".carousel-item").each(function(t,e){if(n.images.push(t),n.showIndicators){var i=b('<li class="indicator-item"></li>');0===e&&i[0].classList.add("active"),n.$indicators.append(i)}}),n.showIndicators&&n.$el.append(n.$indicators),n.count=n.images.length,n.options.numVisible=Math.min(n.count,n.options.numVisible),n.xform="transform",["webkit","Moz","O","ms"].every(function(t){var e=t+"Transform";return void 0===document.body.style[e]||(n.xform=e,!1)}),n._setupEventHandlers(),n._scroll(n.offset),n}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Carousel=void 0}},{key:"_setupEventHandlers",value:function(){var i=this;this._handleCarouselTapBound=this._handleCarouselTap.bind(this),this._handleCarouselDragBound=this._handleCarouselDrag.bind(this),this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this),this._handleCarouselClickBound=this._handleCarouselClick.bind(this),void 0!==window.ontouchstart&&(this.el.addEventListener("touchstart",this._handleCarouselTapBound),this.el.addEventListener("touchmove",this._handleCarouselDragBound),this.el.addEventListener("touchend",this._handleCarouselReleaseBound)),this.el.addEventListener("mousedown",this._handleCarouselTapBound),this.el.addEventListener("mousemove",this._handleCarouselDragBound),this.el.addEventListener("mouseup",this._handleCarouselReleaseBound),this.el.addEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.addEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&(this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.$indicators.find(".indicator-item").each(function(t,e){t.addEventListener("click",i._handleIndicatorClickBound)}));var t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){var i=this;void 0!==window.ontouchstart&&(this.el.removeEventListener("touchstart",this._handleCarouselTapBound),this.el.removeEventListener("touchmove",this._handleCarouselDragBound),this.el.removeEventListener("touchend",this._handleCarouselReleaseBound)),this.el.removeEventListener("mousedown",this._handleCarouselTapBound),this.el.removeEventListener("mousemove",this._handleCarouselDragBound),this.el.removeEventListener("mouseup",this._handleCarouselReleaseBound),this.el.removeEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.removeEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&this.$indicators.find(".indicator-item").each(function(t,e){t.removeEventListener("click",i._handleIndicatorClickBound)}),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleCarouselTap",value:function(t){"mousedown"===t.type&&b(t.target).is("img")&&t.preventDefault(),this.pressed=!0,this.dragged=!1,this.verticalDragged=!1,this.reference=this._xpos(t),this.referenceY=this._ypos(t),this.velocity=this.amplitude=0,this.frame=this.offset,this.timestamp=Date.now(),clearInterval(this.ticker),this.ticker=setInterval(this._trackBound,100)}},{key:"_handleCarouselDrag",value:function(t){var e=void 0,i=void 0,n=void 0;if(this.pressed)if(e=this._xpos(t),i=this._ypos(t),n=this.reference-e,Math.abs(this.referenceY-i)<30&&!this.verticalDragged)(2<n||n<-2)&&(this.dragged=!0,this.reference=e,this._scroll(this.offset+n));else{if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;this.verticalDragged=!0}if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1}},{key:"_handleCarouselRelease",value:function(t){if(this.pressed)return this.pressed=!1,clearInterval(this.ticker),this.target=this.offset,(10<this.velocity||this.velocity<-10)&&(this.amplitude=.9*this.velocity,this.target=this.offset+this.amplitude),this.target=Math.round(this.target/this.dim)*this.dim,this.noWrap&&(this.target>=this.dim*(this.count-1)?this.target=this.dim*(this.count-1):this.target<0&&(this.target=0)),this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound),this.dragged&&(t.preventDefault(),t.stopPropagation()),!1}},{key:"_handleCarouselClick",value:function(t){if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;if(!this.options.fullWidth){var e=b(t.target).closest(".carousel-item").index();0!==this._wrap(this.center)-e&&(t.preventDefault(),t.stopPropagation()),this._cycleTo(e)}}},{key:"_handleIndicatorClick",value:function(t){t.stopPropagation();var e=b(t.target).closest(".indicator-item");e.length&&this._cycleTo(e.index())}},{key:"_handleResize",value:function(t){this.options.fullWidth?(this.itemWidth=this.$el.find(".carousel-item").first().innerWidth(),this.imageHeight=this.$el.find(".carousel-item.active").height(),this.dim=2*this.itemWidth+this.options.padding,this.offset=2*this.center*this.itemWidth,this.target=this.offset,this._setCarouselHeight(!0)):this._scroll()}},{key:"_setCarouselHeight",value:function(t){var i=this,e=this.$el.find(".carousel-item.active").length?this.$el.find(".carousel-item.active").first():this.$el.find(".carousel-item").first(),n=e.find("img").first();if(n.length)if(n[0].complete){var s=n.height();if(0<s)this.$el.css("height",s+"px");else{var o=n[0].naturalWidth,a=n[0].naturalHeight,r=this.$el.width()/o*a;this.$el.css("height",r+"px")}}else n.one("load",function(t,e){i.$el.css("height",t.offsetHeight+"px")});else if(!t){var l=e.height();this.$el.css("height",l+"px")}}},{key:"_xpos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientX:t.clientX}},{key:"_ypos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientY:t.clientY}},{key:"_wrap",value:function(t){return t>=this.count?t%this.count:t<0?this._wrap(this.count+t%this.count):t}},{key:"_track",value:function(){var t,e,i,n;e=(t=Date.now())-this.timestamp,this.timestamp=t,i=this.offset-this.frame,this.frame=this.offset,n=1e3*i/(1+e),this.velocity=.8*n+.2*this.velocity}},{key:"_autoScroll",value:function(){var t=void 0,e=void 0;this.amplitude&&(t=Date.now()-this.timestamp,2<(e=this.amplitude*Math.exp(-t/this.options.duration))||e<-2?(this._scroll(this.target-e),requestAnimationFrame(this._autoScrollBound)):this._scroll(this.target))}},{key:"_scroll",value:function(t){var e=this;this.$el.hasClass("scrolling")||this.el.classList.add("scrolling"),null!=this.scrollingTimeout&&window.clearTimeout(this.scrollingTimeout),this.scrollingTimeout=window.setTimeout(function(){e.$el.removeClass("scrolling")},this.options.duration);var i,n,s,o,a=void 0,r=void 0,l=void 0,h=void 0,d=void 0,u=void 0,c=this.center,p=1/this.options.numVisible;if(this.offset="number"==typeof t?t:this.offset,this.center=Math.floor((this.offset+this.dim/2)/this.dim),o=-(s=(n=this.offset-this.center*this.dim)<0?1:-1)*n*2/this.dim,i=this.count>>1,this.options.fullWidth?(l="translateX(0)",u=1):(l="translateX("+(this.el.clientWidth-this.itemWidth)/2+"px) ",l+="translateY("+(this.el.clientHeight-this.itemHeight)/2+"px)",u=1-p*o),this.showIndicators){var v=this.center%this.count,f=this.$indicators.find(".indicator-item.active");f.index()!==v&&(f.removeClass("active"),this.$indicators.find(".indicator-item").eq(v)[0].classList.add("active"))}if(!this.noWrap||0<=this.center&&this.center<this.count){r=this.images[this._wrap(this.center)],b(r).hasClass("active")||(this.$el.find(".carousel-item").removeClass("active"),r.classList.add("active"));var m=l+" translateX("+-n/2+"px) translateX("+s*this.options.shift*o*a+"px) translateZ("+this.options.dist*o+"px)";this._updateItemStyle(r,u,0,m)}for(a=1;a<=i;++a){if(this.options.fullWidth?(h=this.options.dist,d=a===i&&n<0?1-o:1):(h=this.options.dist*(2*a+o*s),d=1-p*(2*a+o*s)),!this.noWrap||this.center+a<this.count){r=this.images[this._wrap(this.center+a)];var g=l+" translateX("+(this.options.shift+(this.dim*a-n)/2)+"px) translateZ("+h+"px)";this._updateItemStyle(r,d,-a,g)}if(this.options.fullWidth?(h=this.options.dist,d=a===i&&0<n?1-o:1):(h=this.options.dist*(2*a-o*s),d=1-p*(2*a-o*s)),!this.noWrap||0<=this.center-a){r=this.images[this._wrap(this.center-a)];var _=l+" translateX("+(-this.options.shift+(-this.dim*a-n)/2)+"px) translateZ("+h+"px)";this._updateItemStyle(r,d,-a,_)}}if(!this.noWrap||0<=this.center&&this.center<this.count){r=this.images[this._wrap(this.center)];var y=l+" translateX("+-n/2+"px) translateX("+s*this.options.shift*o+"px) translateZ("+this.options.dist*o+"px)";this._updateItemStyle(r,u,0,y)}var k=this.$el.find(".carousel-item").eq(this._wrap(this.center));c!==this.center&&"function"==typeof this.options.onCycleTo&&this.options.onCycleTo.call(this,k[0],this.dragged),"function"==typeof this.oneTimeCallback&&(this.oneTimeCallback.call(this,k[0],this.dragged),this.oneTimeCallback=null)}},{key:"_updateItemStyle",value:function(t,e,i,n){t.style[this.xform]=n,t.style.zIndex=i,t.style.opacity=e,t.style.visibility="visible"}},{key:"_cycleTo",value:function(t,e){var i=this.center%this.count-t;this.noWrap||(i<0?Math.abs(i+this.count)<Math.abs(i)&&(i+=this.count):0<i&&Math.abs(i-this.count)<i&&(i-=this.count)),this.target=this.dim*Math.round(this.offset/this.dim),i<0?this.target+=this.dim*Math.abs(i):0<i&&(this.target-=this.dim*i),"function"==typeof e&&(this.oneTimeCallback=e),this.offset!==this.target&&(this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound))}},{key:"next",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center+t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"prev",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center-t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"set",value:function(t,e){if((void 0===t||isNaN(t))&&(t=0),t>this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t,e)}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Carousel}},{key:"defaults",get:function(){return e}}]),i}();M.Carousel=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"carousel","M_Carousel")}(cash),function(S){"use strict";var e={onOpen:void 0,onClose:void 0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_TapTarget=i).options=S.extend({},n.defaults,e),i.isOpen=!1,i.$origin=S("#"+i.$el.attr("data-target")),i._setup(),i._calculatePositioning(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.TapTarget=void 0}},{key:"_setupEventHandlers",value:function(){this._handleDocumentClickBound=this._handleDocumentClick.bind(this),this._handleTargetClickBound=this._handleTargetClick.bind(this),this._handleOriginClickBound=this._handleOriginClick.bind(this),this.el.addEventListener("click",this._handleTargetClickBound),this.originEl.addEventListener("click",this._handleOriginClickBound);var t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleTargetClickBound),this.originEl.removeEventListener("click",this._handleOriginClickBound),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleTargetClick",value:function(t){this.open()}},{key:"_handleOriginClick",value:function(t){this.close()}},{key:"_handleResize",value:function(t){this._calculatePositioning()}},{key:"_handleDocumentClick",value:function(t){S(t.target).closest(".tap-target-wrapper").length||(this.close(),t.preventDefault(),t.stopPropagation())}},{key:"_setup",value:function(){this.wrapper=this.$el.parent()[0],this.waveEl=S(this.wrapper).find(".tap-target-wave")[0],this.originEl=S(this.wrapper).find(".tap-target-origin")[0],this.contentEl=this.$el.find(".tap-target-content")[0],S(this.wrapper).hasClass(".tap-target-wrapper")||(this.wrapper=document.createElement("div"),this.wrapper.classList.add("tap-target-wrapper"),this.$el.before(S(this.wrapper)),this.wrapper.append(this.el)),this.contentEl||(this.contentEl=document.createElement("div"),this.contentEl.classList.add("tap-target-content"),this.$el.append(this.contentEl)),this.waveEl||(this.waveEl=document.createElement("div"),this.waveEl.classList.add("tap-target-wave"),this.originEl||(this.originEl=this.$origin.clone(!0,!0),this.originEl.addClass("tap-target-origin"),this.originEl.removeAttr("id"),this.originEl.removeAttr("style"),this.originEl=this.originEl[0],this.waveEl.append(this.originEl)),this.wrapper.append(this.waveEl))}},{key:"_calculatePositioning",value:function(){var t="fixed"===this.$origin.css("position");if(!t)for(var e=this.$origin.parents(),i=0;i<e.length&&!(t="fixed"==S(e[i]).css("position"));i++);var n=this.$origin.outerWidth(),s=this.$origin.outerHeight(),o=t?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top,a=t?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left,r=window.innerWidth,l=window.innerHeight,h=r/2,d=l/2,u=a<=h,c=h<a,p=o<=d,v=d<o,f=.25*r<=a&&a<=.75*r,m=this.$el.outerWidth(),g=this.$el.outerHeight(),_=o+s/2-g/2,y=a+n/2-m/2,k=t?"fixed":"absolute",b=f?m:m/2+n,w=g/2,C=p?g/2:0,E=u&&!f?m/2-n:0,O=n,x=v?"bottom":"top",L=2*n,T=L,$=g/2-T/2,B=m/2-L/2,D={};D.top=p?_+"px":"",D.right=c?r-y-m+"px":"",D.bottom=v?l-_-g+"px":"",D.left=u?y+"px":"",D.position=k,S(this.wrapper).css(D),S(this.contentEl).css({width:b+"px",height:w+"px",top:C+"px",right:"0px",bottom:"0px",left:E+"px",padding:O+"px",verticalAlign:x}),S(this.waveEl).css({top:$+"px",left:B+"px",width:L+"px",height:T+"px"})}},{key:"open",value:function(){this.isOpen||("function"==typeof this.options.onOpen&&this.options.onOpen.call(this,this.$origin[0]),this.isOpen=!0,this.wrapper.classList.add("open"),document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound))}},{key:"close",value:function(){this.isOpen&&("function"==typeof this.options.onClose&&this.options.onClose.call(this,this.$origin[0]),this.isOpen=!1,this.wrapper.classList.remove("open"),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound))}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_TapTarget}},{key:"defaults",get:function(){return e}}]),n}();M.TapTarget=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"tapTarget","M_TapTarget")}(cash),function(d){"use strict";var e={classes:"",dropdownOptions:{}},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return i.$el.hasClass("browser-default")?_possibleConstructorReturn(i):((i.el.M_FormSelect=i).options=d.extend({},n.defaults,e),i.isMultiple=i.$el.prop("multiple"),i.el.tabIndex=-1,i._keysSelected={},i._valueDict={},i._setupDropdown(),i._setupEventHandlers(),i)}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),d(this.dropdownOptions).find("li:not(.optgroup)").each(function(t){t.addEventListener("click",e._handleOptionClickBound)}),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}},{key:"_removeEventHandlers",value:function(){var e=this;d(this.dropdownOptions).find("li:not(.optgroup)").each(function(t){t.removeEventListener("click",e._handleOptionClickBound)}),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}},{key:"_handleSelectChange",value:function(t){this._setValueToInput()}},{key:"_handleOptionClick",value:function(t){t.preventDefault();var e=d(t.target).closest("li")[0],i=e.id;if(!d(e).hasClass("disabled")&&!d(e).hasClass("optgroup")&&i.length){var n=!0;if(this.isMultiple){var s=d(this.dropdownOptions).find("li.disabled.selected");s.length&&(s.removeClass("selected"),s.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(s[0].id)),n=this._toggleEntryFromArray(i)}else d(this.dropdownOptions).find("li").removeClass("selected"),d(e).toggleClass("selected",n);d(this._valueDict[i].el).prop("selected")!==n&&(d(this._valueDict[i].el).prop("selected",n),this.$el.trigger("change"))}t.stopPropagation()}},{key:"_handleInputClick",value:function(){this.dropdown&&this.dropdown.isOpen&&(this._setValueToInput(),this._setSelectedStates())}},{key:"_setupDropdown",value:function(){var n=this;this.wrapper=document.createElement("div"),d(this.wrapper).addClass("select-wrapper "+this.options.classes),this.$el.before(d(this.wrapper)),this.wrapper.appendChild(this.el),this.el.disabled&&this.wrapper.classList.add("disabled"),this.$selectOptions=this.$el.children("option, optgroup"),this.dropdownOptions=document.createElement("ul"),this.dropdownOptions.id="select-options-"+M.guid(),d(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")),this.$selectOptions.length&&this.$selectOptions.each(function(t){if(d(t).is("option")){var e=void 0;e=n.isMultiple?n._appendOptionWithIcon(n.$el,t,"multiple"):n._appendOptionWithIcon(n.$el,t),n._addOptionToValueDict(t,e)}else if(d(t).is("optgroup")){var i=d(t).children("option");d(n.dropdownOptions).append(d('<li class="optgroup"><span>'+t.getAttribute("label")+"</span></li>")[0]),i.each(function(t){var e=n._appendOptionWithIcon(n.$el,t,"optgroup-option");n._addOptionToValueDict(t,e)})}}),this.$el.after(this.dropdownOptions),this.input=document.createElement("input"),d(this.input).addClass("select-dropdown dropdown-trigger"),this.input.setAttribute("type","text"),this.input.setAttribute("readonly","true"),this.input.setAttribute("data-target",this.dropdownOptions.id),this.el.disabled&&d(this.input).prop("disabled","true"),this.$el.before(this.input),this._setValueToInput();var t=d('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');if(this.$el.before(t[0]),!this.el.disabled){var e=d.extend({},this.options.dropdownOptions);e.onOpenEnd=function(t){var e=d(n.dropdownOptions).find(".selected").first();if(e.length&&(M.keyDown=!0,n.dropdown.focusedIndex=e.index(),n.dropdown._focusFocusedItem(),M.keyDown=!1,n.dropdown.isScrollable)){var i=e[0].getBoundingClientRect().top-n.dropdownOptions.getBoundingClientRect().top;i-=n.dropdownOptions.clientHeight/2,n.dropdownOptions.scrollTop=i}},this.isMultiple&&(e.closeOnClick=!1),this.dropdown=M.Dropdown.init(this.input,e)}this._setSelectedStates()}},{key:"_addOptionToValueDict",value:function(t,e){var i=Object.keys(this._valueDict).length,n=this.dropdownOptions.id+i,s={};e.id=n,s.el=t,s.optionEl=e,this._valueDict[n]=s}},{key:"_removeDropdown",value:function(){d(this.wrapper).find(".caret").remove(),d(this.input).remove(),d(this.dropdownOptions).remove(),d(this.wrapper).before(this.$el),d(this.wrapper).remove()}},{key:"_appendOptionWithIcon",value:function(t,e,i){var n=e.disabled?"disabled ":"",s="optgroup-option"===i?"optgroup-option ":"",o=this.isMultiple?'<label><input type="checkbox"'+n+'"/><span>'+e.innerHTML+"</span></label>":e.innerHTML,a=d("<li></li>"),r=d("<span></span>");r.html(o),a.addClass(n+" "+s),a.append(r);var l=e.getAttribute("data-icon");if(l){var h=d('<img alt="" src="'+l+'">');a.prepend(h)}return d(this.dropdownOptions).append(a[0]),a[0]}},{key:"_toggleEntryFromArray",value:function(t){var e=!this._keysSelected.hasOwnProperty(t),i=d(this._valueDict[t].optionEl);return e?this._keysSelected[t]=!0:delete this._keysSelected[t],i.toggleClass("selected",e),i.find('input[type="checkbox"]').prop("checked",e),i.prop("selected",e),e}},{key:"_setValueToInput",value:function(){var i=[];if(this.$el.find("option").each(function(t){if(d(t).prop("selected")){var e=d(t).text();i.push(e)}}),!i.length){var t=this.$el.find("option:disabled").eq(0);t.length&&""===t[0].value&&i.push(t.text())}this.input.value=i.join(", ")}},{key:"_setSelectedStates",value:function(){for(var t in this._keysSelected={},this._valueDict){var e=this._valueDict[t],i=d(e.el).prop("selected");d(e.optionEl).find('input[type="checkbox"]').prop("checked",i),i?(this._activateOption(d(this.dropdownOptions),d(e.optionEl)),this._keysSelected[t]=!0):d(e.optionEl).removeClass("selected")}}},{key:"_activateOption",value:function(t,e){e&&(this.isMultiple||t.find("li.selected").removeClass("selected"),d(e).addClass("selected"))}},{key:"getSelectedValues",value:function(){var t=[];for(var e in this._keysSelected)t.push(this._valueDict[e].el.value);return t}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FormSelect}},{key:"defaults",get:function(){return e}}]),n}();M.FormSelect=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"formSelect","M_FormSelect")}(cash),function(s,e){"use strict";var i={},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Range=i).options=s.extend({},n.defaults,e),i._mousedown=!1,i._setupThumb(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeThumb(),this.el.M_Range=void 0}},{key:"_setupEventHandlers",value:function(){this._handleRangeChangeBound=this._handleRangeChange.bind(this),this._handleRangeMousedownTouchstartBound=this._handleRangeMousedownTouchstart.bind(this),this._handleRangeInputMousemoveTouchmoveBound=this._handleRangeInputMousemoveTouchmove.bind(this),this._handleRangeMouseupTouchendBound=this._handleRangeMouseupTouchend.bind(this),this._handleRangeBlurMouseoutTouchleaveBound=this._handleRangeBlurMouseoutTouchleave.bind(this),this.el.addEventListener("change",this._handleRangeChangeBound),this.el.addEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.addEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.addEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("change",this._handleRangeChangeBound),this.el.removeEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_handleRangeChange",value:function(){s(this.value).html(this.$el.val()),s(this.thumb).hasClass("active")||this._showRangeBubble();var t=this._calcRangeOffset();s(this.thumb).addClass("active").css("left",t+"px")}},{key:"_handleRangeMousedownTouchstart",value:function(t){if(s(this.value).html(this.$el.val()),this._mousedown=!0,this.$el.addClass("active"),s(this.thumb).hasClass("active")||this._showRangeBubble(),"input"!==t.type){var e=this._calcRangeOffset();s(this.thumb).addClass("active").css("left",e+"px")}}},{key:"_handleRangeInputMousemoveTouchmove",value:function(){if(this._mousedown){s(this.thumb).hasClass("active")||this._showRangeBubble();var t=this._calcRangeOffset();s(this.thumb).addClass("active").css("left",t+"px"),s(this.value).html(this.$el.val())}}},{key:"_handleRangeMouseupTouchend",value:function(){this._mousedown=!1,this.$el.removeClass("active")}},{key:"_handleRangeBlurMouseoutTouchleave",value:function(){if(!this._mousedown){var t=7+parseInt(this.$el.css("padding-left"))+"px";s(this.thumb).hasClass("active")&&(e.remove(this.thumb),e({targets:this.thumb,height:0,width:0,top:10,easing:"easeOutQuad",marginLeft:t,duration:100})),s(this.thumb).removeClass("active")}}},{key:"_setupThumb",value:function(){this.thumb=document.createElement("span"),this.value=document.createElement("span"),s(this.thumb).addClass("thumb"),s(this.value).addClass("value"),s(this.thumb).append(this.value),this.$el.after(this.thumb)}},{key:"_removeThumb",value:function(){s(this.thumb).remove()}},{key:"_showRangeBubble",value:function(){var t=-7+parseInt(s(this.thumb).parent().css("padding-left"))+"px";e.remove(this.thumb),e({targets:this.thumb,height:30,width:30,top:-30,marginLeft:t,duration:300,easing:"easeOutQuint"})}},{key:"_calcRangeOffset",value:function(){var t=this.$el.width()-15,e=parseFloat(this.$el.attr("max"))||100,i=parseFloat(this.$el.attr("min"))||0;return(parseFloat(this.$el.val())-i)/(e-i)*t}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Range}},{key:"defaults",get:function(){return i}}]),n}();M.Range=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"range","M_Range"),t.init(s("input[type=range]"))}(cash,M.anime);
|
1 |
+
/*!
|
2 |
+
* Materialize v1.0.0 (http://materializecss.com)
|
3 |
+
* Copyright 2014-2017 Materialize
|
4 |
+
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
5 |
+
*/
|
6 |
var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in s)return s.value;var a=s.get;return void 0!==a?a.call(n):void 0},_createClass=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}();function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}window.cash=function(){var i,o=document,a=window,t=Array.prototype,r=t.slice,n=t.filter,s=t.push,e=function(){},h=function(t){return typeof t==typeof e&&t.call},d=function(t){return"string"==typeof t},l=/^#[\w-]*$/,u=/^\.[\w-]*$/,c=/<.+>/,p=/^\w+$/;function v(t,e){e=e||o;var i=u.test(t)?e.getElementsByClassName(t.slice(1)):p.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t);return i}function f(t){if(!i){var e=(i=o.implementation.createHTMLDocument(null)).createElement("base");e.href=o.location.href,i.head.appendChild(e)}return i.body.innerHTML=t,i.body.childNodes}function m(t){"loading"!==o.readyState?t():o.addEventListener("DOMContentLoaded",t)}function g(t,e){if(!t)return this;if(t.cash&&t!==a)return t;var i,n=t,s=0;if(d(t))n=l.test(t)?o.getElementById(t.slice(1)):c.test(t)?f(t):v(t,e);else if(h(t))return m(t),this;if(!n)return this;if(n.nodeType||n===a)this[0]=n,this.length=1;else for(i=this.length=n.length;s<i;s++)this[s]=n[s];return this}function _(t,e){return new g(t,e)}var y=_.fn=_.prototype=g.prototype={cash:!0,length:0,push:s,splice:t.splice,map:t.map,init:g};function k(t,e){for(var i=t.length,n=0;n<i&&!1!==e.call(t[n],t[n],n,t);n++);}function b(t,e){var i=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!i&&i.call(t,e)}function w(e){return d(e)?b:e.cash?function(t){return e.is(t)}:function(t,e){return t===e}}function C(t){return _(r.call(t).filter(function(t,e,i){return i.indexOf(t)===e}))}Object.defineProperty(y,"constructor",{value:_}),_.parseHTML=f,_.noop=e,_.isFunction=h,_.isString=d,_.extend=y.extend=function(t){t=t||{};var e=r.call(arguments),i=e.length,n=1;for(1===e.length&&(t=this,n=0);n<i;n++)if(e[n])for(var s in e[n])e[n].hasOwnProperty(s)&&(t[s]=e[n][s]);return t},_.extend({merge:function(t,e){for(var i=+e.length,n=t.length,s=0;s<i;n++,s++)t[n]=e[s];return t.length=n,t},each:k,matches:b,unique:C,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var E=_.uid="_cash"+Date.now();function M(t){return t[E]=t[E]||{}}function O(t,e,i){return M(t)[e]=i}function x(t,e){var i=M(t);return void 0===i[e]&&(i[e]=t.dataset?t.dataset[e]:_(t).attr("data-"+e)),i[e]}y.extend({data:function(e,i){if(d(e))return void 0===i?x(this[0],e):this.each(function(t){return O(t,e,i)});for(var t in e)this.data(t,e[t]);return this},removeData:function(s){return this.each(function(t){return i=s,void((n=M(e=t))?delete n[i]:e.dataset?delete e.dataset[i]:_(e).removeAttr("data-"+name));var e,i,n})}});var L=/\S+/g;function T(t){return d(t)&&t.match(L)}function $(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function B(t,e,i){t.classList?t.classList.add(e):i.indexOf(" "+e+" ")&&(t.className+=" "+e)}function D(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}y.extend({addClass:function(t){var n=T(t);return n?this.each(function(e){var i=" "+e.className+" ";k(n,function(t){B(e,t,i)})}):this},attr:function(e,i){if(e){if(d(e))return void 0===i?this[0]?this[0].getAttribute?this[0].getAttribute(e):this[0][e]:void 0:this.each(function(t){t.setAttribute?t.setAttribute(e,i):t[e]=i});for(var t in e)this.attr(t,e[t]);return this}},hasClass:function(t){var e=!1,i=T(t);return i&&i.length&&this.each(function(t){return!(e=$(t,i[0]))}),e},prop:function(e,i){if(d(e))return void 0===i?this[0][e]:this.each(function(t){t[e]=i});for(var t in e)this.prop(t,e[t]);return this},removeAttr:function(e){return this.each(function(t){t.removeAttribute?t.removeAttribute(e):delete t[e]})},removeClass:function(t){if(!arguments.length)return this.attr("class","");var i=T(t);return i?this.each(function(e){k(i,function(t){D(e,t)})}):this},removeProp:function(e){return this.each(function(t){delete t[e]})},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=T(t);return n?this.each(function(e){var i=" "+e.className+" ";k(n,function(t){$(e,t)?D(e,t):B(e,t,i)})}):this}}),y.extend({add:function(t,e){return C(_.merge(this,_(t,e)))},each:function(t){return k(this,t),this},eq:function(t){return _(this.get(t))},filter:function(e){if(!e)return this;var i=h(e)?e:w(e);return _(n.call(this,function(t){return i(t,e)}))},first:function(){return this.eq(0)},get:function(t){return void 0===t?r.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=t?_(t)[0]:this[0],i=t?this:_(e).parent().children();return r.call(i).indexOf(e)},last:function(){return this.eq(-1)}});var S,I,A,R,H,P,W=(H=/(?:^\w|[A-Z]|\b\w)/g,P=/[\s-_]+/g,function(t){return t.replace(H,function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()}).replace(P,"")}),j=(S={},I=document,A=I.createElement("div"),R=A.style,function(e){if(e=W(e),S[e])return S[e];var t=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+["webkit","moz","ms","o"].join(t+" ")+t).split(" ");return k(i,function(t){if(t in R)return S[t]=e=S[e]=t,!1}),S[e]});function F(t,e){return parseInt(a.getComputedStyle(t[0],null)[e],10)||0}function q(e,i,t){var n,s=x(e,"_cashEvents"),o=s&&s[i];o&&(t?(e.removeEventListener(i,t),0<=(n=o.indexOf(t))&&o.splice(n,1)):(k(o,function(t){e.removeEventListener(i,t)}),o=[]))}function N(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function z(t){var e,i,n,s=t.type;if(!s)return null;switch(s.toLowerCase()){case"select-one":return 0<=(n=(i=t).selectedIndex)?i.options[n].value:null;case"select-multiple":return e=[],k(t.options,function(t){t.selected&&e.push(t.value)}),e.length?e:null;case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function V(e,i,n){var t=d(i);t||!i.length?k(e,t?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",i)}:function(t,e){return function(t,e,i){if(i){var n=t.childNodes[0];t.insertBefore(e,n)}else t.appendChild(e)}(t,0===e?i:i.cloneNode(!0),n)}):k(i,function(t){return V(e,t,n)})}_.prefixedProp=j,_.camelCase=W,y.extend({css:function(e,i){if(d(e))return e=j(e),1<arguments.length?this.each(function(t){return t.style[e]=i}):a.getComputedStyle(this[0])[e];for(var t in e)this.css(t,e[t]);return this}}),k(["Width","Height"],function(e){var t=e.toLowerCase();y[t]=function(){return this[0].getBoundingClientRect()[t]},y["inner"+e]=function(){return this[0]["client"+e]},y["outer"+e]=function(t){return this[0]["offset"+e]+(t?F(this,"margin"+("Width"===e?"Left":"Top"))+F(this,"margin"+("Width"===e?"Right":"Bottom")):0)}}),y.extend({off:function(e,i){return this.each(function(t){return q(t,e,i)})},on:function(a,i,r,l){var n;if(!d(a)){for(var t in a)this.on(t,i,a[t]);return this}return h(i)&&(r=i,i=null),"ready"===a?(m(r),this):(i&&(n=r,r=function(t){for(var e=t.target;!b(e,i);){if(e===this||null===e)return e=!1;e=e.parentNode}e&&n.call(e,t)}),this.each(function(t){var e,i,n,s,o=r;l&&(o=function(){r.apply(this,arguments),q(t,a,o)}),i=a,n=o,(s=x(e=t,"_cashEvents")||O(e,"_cashEvents",{}))[i]=s[i]||[],s[i].push(n),e.addEventListener(i,n)}))},one:function(t,e,i){return this.on(t,e,i,!0)},ready:m,trigger:function(t,e){if(document.createEvent){var i=document.createEvent("HTMLEvents");return i.initEvent(t,!0,!1),i=this.extend(i,e),this.each(function(t){return t.dispatchEvent(i)})}}}),y.extend({serialize:function(){var s="";return k(this[0].elements||this,function(t){if(!t.disabled&&"FIELDSET"!==t.tagName){var e=t.name;switch(t.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var i=z(t);null!==i&&k(i,function(t){s+=N(e,t)});break;default:var n=z(t);null!==n&&(s+=N(e,n))}}}),s.substr(1)},val:function(e){return void 0===e?z(this[0]):this.each(function(t){return t.value=e})}}),y.extend({after:function(t){return _(t).insertAfter(this),this},append:function(t){return V(this,t),this},appendTo:function(t){return V(_(t),this),this},before:function(t){return _(t).insertBefore(this),this},clone:function(){return _(this.map(function(t){return t.cloneNode(!0)}))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each(function(t){return t.innerHTML=e})},insertAfter:function(t){var s=this;return _(t).each(function(t,e){var i=t.parentNode,n=t.nextSibling;s.each(function(t){i.insertBefore(0===e?t:t.cloneNode(!0),n)})}),this},insertBefore:function(t){var s=this;return _(t).each(function(e,i){var n=e.parentNode;s.each(function(t){n.insertBefore(0===i?t:t.cloneNode(!0),e)})}),this},prepend:function(t){return V(this,t,!0),this},prependTo:function(t){return V(_(t),this,!0),this},remove:function(){return this.each(function(t){if(t.parentNode)return t.parentNode.removeChild(t)})},text:function(e){return void 0===e?this[0].textContent:this.each(function(t){return t.textContent=e})}});var X=o.documentElement;return y.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+a.pageYOffset-X.clientTop,left:t.left+a.pageXOffset-X.clientLeft}},offsetParent:function(){return _(this[0].offsetParent)}}),y.extend({children:function(e){var i=[];return this.each(function(t){s.apply(i,t.children)}),i=C(i),e?i.filter(function(t){return b(t,e)}):i},closest:function(t){return!t||this.length<1?_():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(e){if(!e)return!1;var i=!1,n=w(e);return this.each(function(t){return!(i=n(t,e))}),i},find:function(e){if(!e||e.nodeType)return _(e&&this.has(e).length?e:null);var i=[];return this.each(function(t){s.apply(i,v(e,t))}),C(i)},has:function(e){var t=d(e)?function(t){return 0!==v(e,t).length}:function(t){return t.contains(e)};return this.filter(t)},next:function(){return _(this[0].nextElementSibling)},not:function(e){if(!e)return this;var i=w(e);return this.filter(function(t){return!i(t,e)})},parent:function(){var e=[];return this.each(function(t){t&&t.parentNode&&e.push(t.parentNode)}),C(e)},parents:function(e){var i,n=[];return this.each(function(t){for(i=t;i&&i.parentNode&&i!==o.body.parentNode;)i=i.parentNode,(!e||e&&b(i,e))&&n.push(i)}),C(n)},prev:function(){return _(this[0].previousElementSibling)},siblings:function(t){var e=this.parent().children(t),i=this[0];return e.filter(function(t){return t!==i})}}),_}();var Component=function(){function s(t,e,i){_classCallCheck(this,s),e instanceof Element||console.error(Error(e+" is not an HTML Element"));var n=t.getInstance(e);n&&n.destroy(),this.el=e,this.$el=cash(e)}return _createClass(s,null,[{key:"init",value:function(t,e,i){var n=null;if(e instanceof Element)n=new t(e,i);else if(e&&(e.jquery||e.cash||e instanceof NodeList)){for(var s=[],o=0;o<e.length;o++)s.push(new t(e[o],i));n=s}return n}}]),s}();!function(t){t.Package?M={}:t.M={},M.jQueryLoaded=!!t.jQuery}(window),"function"==typeof define&&define.amd?define("M",[],function(){return M}):"undefined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=M),exports.default=M),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1;var docHandleKeydown=function(t){M.keyDown=!0,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!0)},docHandleKeyup=function(t){M.keyDown=!1,t.which!==M.keys.TAB&&t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||(M.tabPressed=!1)},docHandleFocus=function(t){M.keyDown&&document.body.classList.add("keyboard-focused")},docHandleBlur=function(t){document.body.classList.remove("keyboard-focused")};document.addEventListener("keydown",docHandleKeydown,!0),document.addEventListener("keyup",docHandleKeyup,!0),document.addEventListener("focus",docHandleFocus,!0),document.addEventListener("blur",docHandleBlur,!0),M.initializeJqueryWrapper=function(n,s,o){jQuery.fn[s]=function(e){if(n.prototype[e]){var i=Array.prototype.slice.call(arguments,1);if("get"===e.slice(0,3)){var t=this.first()[0][o];return t[e].apply(t,i)}return this.each(function(){var t=this[o];t[e].apply(t,i)})}if("object"==typeof e||!e)return n.init(this,e),this;jQuery.error("Method "+e+" does not exist on jQuery."+s)}},M.AutoInit=function(t){var e=t||document.body,i={Autocomplete:e.querySelectorAll(".autocomplete:not(.no-autoinit)"),Carousel:e.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:e.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:e.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:e.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:e.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:e.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:e.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:e.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:e.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:e.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:e.querySelectorAll("select:not(.no-autoinit)"),Sidenav:e.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:e.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:e.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:e.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:e.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:e.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(var n in i){M[n].init(i[n])}},M.objectSelectorString=function(t){return((t.prop("tagName")||"")+(t.attr("id")||"")+(t.attr("class")||"")).replace(/\s/g,"")},M.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),M.escapeHash=function(t){return t.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(t){var e=$(t),i=e.add(e.parents()),n=!1;return i.each(function(){if("fixed"===$(this).css("position"))return!(n=!0)}),n},M.checkWithinContainer=function(t,e,i){var n={top:!1,right:!1,bottom:!1,left:!1},s=t.getBoundingClientRect(),o=t===document.body?Math.max(s.bottom,window.innerHeight):s.bottom,a=t.scrollLeft,r=t.scrollTop,l=e.left-a,h=e.top-r;return(l<s.left+i||l<i)&&(n.left=!0),(l+e.width>s.right-i||l+e.width>window.innerWidth-i)&&(n.right=!0),(h<s.top+i||h<i)&&(n.top=!0),(h+e.height>o-i||h+e.height>window.innerHeight-i)&&(n.bottom=!0),n},M.checkPossibleAlignments=function(t,e,i,n){var s={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},o="visible"===getComputedStyle(e).overflow,a=e.getBoundingClientRect(),r=Math.min(a.height,window.innerHeight),l=Math.min(a.width,window.innerWidth),h=t.getBoundingClientRect(),d=e.scrollLeft,u=e.scrollTop,c=i.left-d,p=i.top-u,v=i.top+h.height-u;return s.spaceOnRight=o?window.innerWidth-(h.left+i.width):l-(c+i.width),s.spaceOnRight<0&&(s.left=!1),s.spaceOnLeft=o?h.right-i.width:c-i.width+h.width,s.spaceOnLeft<0&&(s.right=!1),s.spaceOnBottom=o?window.innerHeight-(h.top+i.height+n):r-(p+i.height+n),s.spaceOnBottom<0&&(s.top=!1),s.spaceOnTop=o?h.bottom-(i.height+n):v-(i.height-n),s.spaceOnTop<0&&(s.bottom=!1),s},M.getOverflowParent=function(t){return null==t?null:t===document.body||"visible"!==getComputedStyle(t).overflow?t:M.getOverflowParent(t.parentElement)},M.getIdFromTrigger=function(t){var e=t.getAttribute("data-target");return e||(e=(e=t.getAttribute("href"))?e.slice(1):""),e},M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};var getTime=Date.now||function(){return(new Date).getTime()};M.throttle=function(i,n,s){var o=void 0,a=void 0,r=void 0,l=null,h=0;s||(s={});var d=function(){h=!1===s.leading?0:getTime(),l=null,r=i.apply(o,a),o=a=null};return function(){var t=getTime();h||!1!==s.leading||(h=t);var e=n-(t-h);return o=this,a=arguments,e<=0?(clearTimeout(l),l=null,h=t,r=i.apply(o,a),o=a=null):l||!1===s.trailing||(l=setTimeout(d,e)),r}};var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){if(i.get||i.set)throw new TypeError("ES3 does not support getters and setters.");t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(t){var e=0;return $jscomp.iteratorPrototype(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.array=$jscomp.array||{},$jscomp.iteratorFromArray=function(e,i){$jscomp.initSymbolIterator(),e instanceof String&&(e+="");var n=0,s={next:function(){if(n<e.length){var t=n++;return{value:i(t,e[t]),done:!1}}return s.next=function(){return{done:!0,value:void 0}},s.next()}};return s[Symbol.iterator]=function(){return s},s},$jscomp.polyfill=function(t,e,i,n){if(e){for(i=$jscomp.global,t=t.split("."),n=0;n<t.length-1;n++){var s=t[n];s in i||(i[s]={}),i=i[s]}(e=e(n=i[t=t[t.length-1]]))!=n&&null!=e&&$jscomp.defineProperty(i,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.keys",function(t){return t||function(){return $jscomp.iteratorFromArray(this,function(t){return t})}},"es6-impl","es3");var $jscomp$this=this;M.anime=function(){function s(t){if(!B.col(t))try{return document.querySelectorAll(t)}catch(t){}}function b(t,e){for(var i=t.length,n=2<=arguments.length?e:void 0,s=[],o=0;o<i;o++)if(o in t){var a=t[o];e.call(n,a,o,t)&&s.push(a)}return s}function d(t){return t.reduce(function(t,e){return t.concat(B.arr(e)?d(e):e)},[])}function o(t){return B.arr(t)?t:(B.str(t)&&(t=s(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function a(t,e){return t.some(function(t){return t===e})}function r(t){var e,i={};for(e in t)i[e]=t[e];return i}function u(t,e){var i,n=r(t);for(i in t)n[i]=e.hasOwnProperty(i)?e[i]:t[i];return n}function c(t,e){var i,n=r(t);for(i in e)n[i]=B.und(t[i])?e[i]:t[i];return n}function l(t){if(t=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t))return t[2]}function h(t,e){return B.fnc(t)?t(e.target,e.id,e.total):t}function w(t,e){if(e in t.style)return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}function p(t,e){return B.dom(t)&&a($,e)?"transform":B.dom(t)&&(t.getAttribute(e)||B.svg(t)&&t[e])?"attribute":B.dom(t)&&"transform"!==e&&w(t,e)?"css":null!=t[e]?"object":void 0}function v(t,e){switch(p(t,e)){case"transform":return function(t,i){var e,n=-1<(e=i).indexOf("translate")||"perspective"===e?"px":-1<e.indexOf("rotate")||-1<e.indexOf("skew")?"deg":void 0,n=-1<i.indexOf("scale")?1:0+n;if(!(t=t.style.transform))return n;for(var s=[],o=[],a=[],r=/(\w+)\((.+?)\)/g;s=r.exec(t);)o.push(s[1]),a.push(s[2]);return(t=b(a,function(t,e){return o[e]===i})).length?t[0]:n}(t,e);case"css":return w(t,e);case"attribute":return t.getAttribute(e)}return t[e]||0}function f(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=l(t)||0;switch(e=parseFloat(e),t=parseFloat(t.replace(i[0],"")),i[0][0]){case"+":return e+t+n;case"-":return e-t+n;case"*":return e*t+n}}function m(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function i(t){t=t.points;for(var e,i=0,n=0;n<t.numberOfItems;n++){var s=t.getItem(n);0<n&&(i+=m(e,s)),e=s}return i}function g(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*t.getAttribute("r");case"rect":return 2*t.getAttribute("width")+2*t.getAttribute("height");case"line":return m({x:t.getAttribute("x1"),y:t.getAttribute("y1")},{x:t.getAttribute("x2"),y:t.getAttribute("y2")});case"polyline":return i(t);case"polygon":var e=t.points;return i(t)+m(e.getItem(e.numberOfItems-1),e.getItem(0))}}function C(e,i){function t(t){return t=void 0===t?0:t,e.el.getPointAtLength(1<=i+t?i+t:0)}var n=t(),s=t(-1),o=t(1);switch(e.property){case"x":return n.x;case"y":return n.y;case"angle":return 180*Math.atan2(o.y-s.y,o.x-s.x)/Math.PI}}function _(t,e){var i,n=/-?\d*\.?\d+/g;if(i=B.pth(t)?t.totalLength:t,B.col(i))if(B.rgb(i)){var s=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i);i=s?"rgba("+s[1]+",1)":i}else i=B.hex(i)?function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);t=parseInt(e[1],16);var i=parseInt(e[2],16),e=parseInt(e[3],16);return"rgba("+t+","+i+","+e+",1)"}(i):B.hsl(i)?function(t){function e(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t);t=parseInt(i[1])/360;var n=parseInt(i[2])/100,s=parseInt(i[3])/100,i=i[4]||1;if(0==n)s=n=t=s;else{var o=s<.5?s*(1+n):s+n-s*n,a=2*s-o,s=e(a,o,t+1/3),n=e(a,o,t);t=e(a,o,t-1/3)}return"rgba("+255*s+","+255*n+","+255*t+","+i+")"}(i):void 0;else s=(s=l(i))?i.substr(0,i.length-s.length):i,i=e&&!/\s/g.test(i)?s+e:s;return{original:i+="",numbers:i.match(n)?i.match(n).map(Number):[0],strings:B.str(t)||e?i.split(n):[]}}function y(t){return b(t=t?d(B.arr(t)?t.map(o):o(t)):[],function(t,e,i){return i.indexOf(t)===e})}function k(t,i){var e=r(i);if(B.arr(t)){var n=t.length;2!==n||B.obj(t[0])?B.fnc(i.duration)||(e.duration=i.duration/n):t={value:t}}return o(t).map(function(t,e){return e=e?0:i.delay,t=B.obj(t)&&!B.pth(t)?t:{value:t},B.und(t.delay)&&(t.delay=e),t}).map(function(t){return c(t,e)})}function E(o,a){var r;return o.tweens.map(function(t){var e=(t=function(t,e){var i,n={};for(i in t){var s=h(t[i],e);B.arr(s)&&1===(s=s.map(function(t){return h(t,e)})).length&&(s=s[0]),n[i]=s}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(t,a)).value,i=v(a.target,o.name),n=r?r.to.original:i,n=B.arr(e)?e[0]:n,s=f(B.arr(e)?e[1]:e,n),i=l(s)||l(n)||l(i);return t.from=_(n,i),t.to=_(s,i),t.start=r?r.end:o.offset,t.end=t.start+t.delay+t.duration,t.easing=function(t){return B.arr(t)?D.apply(this,t):S[t]}(t.easing),t.elasticity=(1e3-Math.min(Math.max(t.elasticity,1),999))/1e3,t.isPath=B.pth(e),t.isColor=B.col(t.from.original),t.isColor&&(t.round=1),r=t})}function M(e,t,i,n){var s="delay"===e;return t.length?(s?Math.min:Math.max).apply(Math,t.map(function(t){return t[e]})):s?n.delay:i.offset+n.delay+n.duration}function n(t){var e,i,n,s,o=u(L,t),a=u(T,t),r=(i=t.targets,(n=y(i)).map(function(t,e){return{target:t,id:e,total:n.length}})),l=[],h=c(o,a);for(e in t)h.hasOwnProperty(e)||"targets"===e||l.push({name:e,offset:h.offset,tweens:k(t[e],a)});return s=l,t=b(d(r.map(function(n){return s.map(function(t){var e=p(n.target,t.name);if(e){var i=E(t,n);t={type:e,property:t.name,animatable:n,tweens:i,duration:i[i.length-1].end,delay:i[0].delay}}else t=void 0;return t})})),function(t){return!B.und(t)}),c(o,{children:[],animatables:r,animations:t,duration:M("duration",t,o,a),delay:M("delay",t,o,a)})}function O(t){function d(){return window.Promise&&new Promise(function(t){return _=t})}function u(t){return k.reversed?k.duration-t:t}function c(e){for(var t=0,i={},n=k.animations,s=n.length;t<s;){var o=n[t],a=o.animatable,r=o.tweens,l=r.length-1,h=r[l];l&&(h=b(r,function(t){return e<t.end})[0]||h);for(var r=Math.min(Math.max(e-h.start-h.delay,0),h.duration)/h.duration,d=isNaN(r)?1:h.easing(r,h.elasticity),r=h.to.strings,u=h.round,l=[],c=void 0,c=h.to.numbers.length,p=0;p<c;p++){var v=void 0,v=h.to.numbers[p],f=h.from.numbers[p],v=h.isPath?C(h.value,d*v):f+d*(v-f);u&&(h.isColor&&2<p||(v=Math.round(v*u)/u)),l.push(v)}if(h=r.length)for(c=r[0],d=0;d<h;d++)u=r[d+1],p=l[d],isNaN(p)||(c=u?c+(p+u):c+(p+" "));else c=l[0];I[o.type](a.target,o.property,c,i,a.id),o.currentValue=c,t++}if(t=Object.keys(i).length)for(n=0;n<t;n++)x||(x=w(document.body,"transform")?"transform":"-webkit-transform"),k.animatables[n].target.style[x]=i[n].join(" ");k.currentTime=e,k.progress=e/k.duration*100}function p(t){k[t]&&k[t](k)}function v(){k.remaining&&!0!==k.remaining&&k.remaining--}function e(t){var e=k.duration,i=k.offset,n=i+k.delay,s=k.currentTime,o=k.reversed,a=u(t);if(k.children.length){var r=k.children,l=r.length;if(a>=k.currentTime)for(var h=0;h<l;h++)r[h].seek(a);else for(;l--;)r[l].seek(a)}(n<=a||!e)&&(k.began||(k.began=!0,p("begin")),p("run")),i<a&&a<e?c(a):(a<=i&&0!==s&&(c(0),o&&v()),(e<=a&&s!==e||!e)&&(c(e),o||v())),p("update"),e<=t&&(k.remaining?(m=f,"alternate"===k.direction&&(k.reversed=!k.reversed)):(k.pause(),k.completed||(k.completed=!0,p("complete"),"Promise"in window&&(_(),y=d()))),g=0)}t=void 0===t?{}:t;var f,m,g=0,_=null,y=d(),k=n(t);return k.reset=function(){var t=k.direction,e=k.loop;for(k.currentTime=0,k.progress=0,k.paused=!0,k.began=!1,k.completed=!1,k.reversed="reverse"===t,k.remaining="alternate"===t&&1===e?2:e,c(0),t=k.children.length;t--;)k.children[t].reset()},k.tick=function(t){f=t,m||(m=f),e((g+f-m)*O.speed)},k.seek=function(t){e(u(t))},k.pause=function(){var t=A.indexOf(k);-1<t&&A.splice(t,1),k.paused=!0},k.play=function(){k.paused&&(k.paused=!1,m=0,g=u(k.currentTime),A.push(k),R||H())},k.reverse=function(){k.reversed=!k.reversed,m=0,g=u(k.currentTime)},k.restart=function(){k.pause(),k.reset(),k.play()},k.finished=y,k.reset(),k.autoplay&&k.play(),k}var x,L={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},T={duration:1e3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},$="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),B={arr:function(t){return Array.isArray(t)},obj:function(t){return-1<Object.prototype.toString.call(t).indexOf("Object")},pth:function(t){return B.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},dom:function(t){return t.nodeType||B.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return B.hex(t)||B.rgb(t)||B.hsl(t)}},D=function(){function u(t,e,i){return(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t}return function(a,r,l,h){if(0<=a&&a<=1&&0<=l&&l<=1){var d=new Float32Array(11);if(a!==r||l!==h)for(var t=0;t<11;++t)d[t]=u(.1*t,a,l);return function(t){if(a===r&&l===h)return t;if(0===t)return 0;if(1===t)return 1;for(var e=0,i=1;10!==i&&d[i]<=t;++i)e+=.1;var i=e+(t-d[--i])/(d[i+1]-d[i])*.1,n=3*(1-3*l+3*a)*i*i+2*(3*l-6*a)*i+3*a;if(.001<=n){for(e=0;e<4&&0!=(n=3*(1-3*l+3*a)*i*i+2*(3*l-6*a)*i+3*a);++e)var s=u(i,a,l)-t,i=i-s/n;t=i}else if(0===n)t=i;else{for(var i=e,e=e+.1,o=0;0<(n=u(s=i+(e-i)/2,a,l)-t)?e=s:i=s,1e-7<Math.abs(n)&&++o<10;);t=s}return u(t,r,h)}}}}(),S=function(){function i(t,e){return 0===t||1===t?t:-Math.pow(2,10*(t-1))*Math.sin(2*(t-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var t,n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],i],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(t,e){return 1-i(1-t,e)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(t,e){return t<.5?i(2*t,e)/2:1-i(-2*t+2,e)/2}]},s={linear:D(.25,.25,.75,.75)},o={};for(t in e)o.type=t,e[o.type].forEach(function(i){return function(t,e){s["ease"+i.type+n[e]]=B.fnc(t)?t:D.apply($jscomp$this,t)}}(o)),o={type:o.type};return s}(),I={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,s){n[s]||(n[s]=[]),n[s].push(e+"("+i+")")}},A=[],R=0,H=function(){function n(){R=requestAnimationFrame(t)}function t(t){var e=A.length;if(e){for(var i=0;i<e;)A[i]&&A[i].tick(t),i++;n()}else cancelAnimationFrame(R),R=0}return n}();return O.version="2.2.0",O.speed=1,O.running=A,O.remove=function(t){t=y(t);for(var e=A.length;e--;)for(var i=A[e],n=i.animations,s=n.length;s--;)a(t,n[s].animatable.target)&&(n.splice(s,1),n.length||i.pause())},O.getValue=v,O.path=function(t,e){var i=B.str(t)?s(t)[0]:t,n=e||100;return function(t){return{el:i,property:t,totalLength:g(i)*(n/100)}}},O.setDashoffset=function(t){var e=g(t);return t.setAttribute("stroke-dasharray",e),e},O.bezier=D,O.easings=S,O.timeline=function(n){var s=O(n);return s.pause(),s.duration=0,s.add=function(t){return s.children.forEach(function(t){t.began=!0,t.completed=!0}),o(t).forEach(function(t){var e=c(t,u(T,n||{}));e.targets=e.targets||n.targets,t=s.duration;var i=e.offset;e.autoplay=!1,e.direction=s.direction,e.offset=B.und(i)?t:f(i,t),s.began=!0,s.completed=!0,s.seek(e.offset),(e=O(e)).began=!0,e.completed=!0,e.duration>t&&(s.duration=e.duration),s.children.push(e)}),s.seek(0),s.reset(),s.autoplay&&s.restart(),s},s},O.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},O}(),function(r,l){"use strict";var e={accordion:!0,onOpenStart:void 0,onOpenEnd:void 0,onCloseStart:void 0,onCloseEnd:void 0,inDuration:300,outDuration:300},t=function(t){function s(t,e){_classCallCheck(this,s);var i=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,s,t,e));(i.el.M_Collapsible=i).options=r.extend({},s.defaults,e),i.$headers=i.$el.children("li").children(".collapsible-header"),i.$headers.attr("tabindex",0),i._setupEventHandlers();var n=i.$el.children("li.active").children(".collapsible-body");return i.options.accordion?n.first().css("display","block"):n.css("display","block"),i}return _inherits(s,Component),_createClass(s,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Collapsible=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleCollapsibleClickBound=this._handleCollapsibleClick.bind(this),this._handleCollapsibleKeydownBound=this._handleCollapsibleKeydown.bind(this),this.el.addEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(t){t.addEventListener("keydown",e._handleCollapsibleKeydownBound)})}},{key:"_removeEventHandlers",value:function(){var e=this;this.el.removeEventListener("click",this._handleCollapsibleClickBound),this.$headers.each(function(t){t.removeEventListener("keydown",e._handleCollapsibleKeydownBound)})}},{key:"_handleCollapsibleClick",value:function(t){var e=r(t.target).closest(".collapsible-header");if(t.target&&e.length){var i=e.closest(".collapsible");if(i[0]===this.el){var n=e.closest("li"),s=i.children("li"),o=n[0].classList.contains("active"),a=s.index(n);o?this.close(a):this.open(a)}}}},{key:"_handleCollapsibleKeydown",value:function(t){13===t.keyCode&&this._handleCollapsibleClickBound(t)}},{key:"_animateIn",value:function(t){var e=this,i=this.$el.children("li").eq(t);if(i.length){var n=i.children(".collapsible-body");l.remove(n[0]),n.css({display:"block",overflow:"hidden",height:0,paddingTop:"",paddingBottom:""});var s=n.css("padding-top"),o=n.css("padding-bottom"),a=n[0].scrollHeight;n.css({paddingTop:0,paddingBottom:0}),l({targets:n[0],height:a,paddingTop:s,paddingBottom:o,duration:this.options.inDuration,easing:"easeInOutCubic",complete:function(t){n.css({overflow:"",paddingTop:"",paddingBottom:"",height:""}),"function"==typeof e.options.onOpenEnd&&e.options.onOpenEnd.call(e,i[0])}})}}},{key:"_animateOut",value:function(t){var e=this,i=this.$el.children("li").eq(t);if(i.length){var n=i.children(".collapsible-body");l.remove(n[0]),n.css("overflow","hidden"),l({targets:n[0],height:0,paddingTop:0,paddingBottom:0,duration:this.options.outDuration,easing:"easeInOutCubic",complete:function(){n.css({height:"",overflow:"",padding:"",display:""}),"function"==typeof e.options.onCloseEnd&&e.options.onCloseEnd.call(e,i[0])}})}}},{key:"open",value:function(t){var i=this,e=this.$el.children("li").eq(t);if(e.length&&!e[0].classList.contains("active")){if("function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,e[0]),this.options.accordion){var n=this.$el.children("li");this.$el.children("li.active").each(function(t){var e=n.index(r(t));i.close(e)})}e[0].classList.add("active"),this._animateIn(t)}}},{key:"close",value:function(t){var e=this.$el.children("li").eq(t);e.length&&e[0].classList.contains("active")&&("function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,e[0]),e[0].classList.remove("active"),this._animateOut(t))}}],[{key:"init",value:function(t,e){return _get(s.__proto__||Object.getPrototypeOf(s),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Collapsible}},{key:"defaults",get:function(){return e}}]),s}();M.Collapsible=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"collapsible","M_Collapsible")}(cash,M.anime),function(h,i){"use strict";var e={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return i.el.M_Dropdown=i,n._dropdowns.push(i),i.id=M.getIdFromTrigger(t),i.dropdownEl=document.getElementById(i.id),i.$dropdownEl=h(i.dropdownEl),i.options=h.extend({},n.defaults,e),i.isOpen=!1,i.isScrollable=!1,i.isTouchMoving=!1,i.focusedIndex=-1,i.filterQuery=[],i.options.container?h(i.options.container).append(i.dropdownEl):i.$el.after(i.dropdownEl),i._makeDropdownFocusable(),i._resetFilterQueryBound=i._resetFilterQuery.bind(i),i._handleDocumentClickBound=i._handleDocumentClick.bind(i),i._handleDocumentTouchmoveBound=i._handleDocumentTouchmove.bind(i),i._handleDropdownClickBound=i._handleDropdownClick.bind(i),i._handleDropdownKeydownBound=i._handleDropdownKeydown.bind(i),i._handleTriggerKeydownBound=i._handleTriggerKeydown.bind(i),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),n._dropdowns.splice(n._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),this.options.hover?(this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.addEventListener("mouseleave",this._handleMouseLeaveBound)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(t){t.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(t){var e=t.toElement||t.relatedTarget,i=!!h(e).closest(".dropdown-content").length,n=!1,s=h(e).closest(".dropdown-trigger");s.length&&s[0].M_Dropdown&&s[0].M_Dropdown.isOpen&&(n=!0),n||i||this.close()}},{key:"_handleDocumentClick",value:function(t){var e=this,i=h(t.target);this.options.closeOnClick&&i.closest(".dropdown-content").length&&!this.isTouchMoving?setTimeout(function(){e.close()},0):!i.closest(".dropdown-trigger").length&&i.closest(".dropdown-content").length||setTimeout(function(){e.close()},0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(t){t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ENTER||this.isOpen||(t.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(t){h(t.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(t){if("function"==typeof this.options.onItemClick){var e=h(t.target).closest("li")[0];this.options.onItemClick.call(this,e)}}},{key:"_handleDropdownKeydown",value:function(t){if(t.which===M.keys.TAB)t.preventDefault(),this.close();else if(t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||!this.isOpen)if(t.which===M.keys.ENTER&&this.isOpen){var e=this.dropdownEl.children[this.focusedIndex],i=h(e).find("a, button").first();i.length?i[0].click():e&&e.click()}else t.which===M.keys.ESC&&this.isOpen&&(t.preventDefault(),this.close());else{t.preventDefault();var n=t.which===M.keys.ARROW_DOWN?1:-1,s=this.focusedIndex,o=!1;do{if(s+=n,this.dropdownEl.children[s]&&-1!==this.dropdownEl.children[s].tabIndex){o=!0;break}}while(s<this.dropdownEl.children.length&&0<=s);o&&(this.focusedIndex=s,this._focusFocusedItem())}var a=String.fromCharCode(t.which).toLowerCase();if(a&&-1===[9,13,27,38,40].indexOf(t.which)){this.filterQuery.push(a);var r=this.filterQuery.join(""),l=h(this.dropdownEl).find("li").filter(function(t){return 0===h(t).text().toLowerCase().indexOf(r)})[0];l&&(this.focusedIndex=h(l).index(),this._focusFocusedItem())}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,h(this.dropdownEl).children().each(function(t){t.getAttribute("tabindex")||t.setAttribute("tabindex",0)})}},{key:"_focusFocusedItem",value:function(){0<=this.focusedIndex&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var t=this.el.getBoundingClientRect(),e=this.dropdownEl.getBoundingClientRect(),i=e.height,n=e.width,s=t.left-e.left,o=t.top-e.top,a={left:s,top:o,height:i,width:n},r=this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode,l=M.checkPossibleAlignments(this.el,r,a,this.options.coverTrigger?0:t.height),h="top",d=this.options.alignment;if(o+=this.options.coverTrigger?0:t.height,this.isScrollable=!1,l.top||(l.bottom?h="bottom":(this.isScrollable=!0,l.spaceOnTop>l.spaceOnBottom?(h="bottom",i+=l.spaceOnTop,o-=l.spaceOnTop):i+=l.spaceOnBottom)),!l[d]){var u="left"===d?"right":"left";l[u]?d=u:l.spaceOnLeft>l.spaceOnRight?(d="right",n+=l.spaceOnLeft,s-=l.spaceOnLeft):(d="left",n+=l.spaceOnRight)}return"bottom"===h&&(o=o-e.height+(this.options.coverTrigger?t.height:0)),"right"===d&&(s=s-e.width+t.width),{x:s,y:o,verticalAlignment:h,horizontalAlignment:d,height:i,width:n}}},{key:"_animateIn",value:function(){var e=this;i.remove(this.dropdownEl),i({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(t){e.options.autoFocus&&e.dropdownEl.focus(),"function"==typeof e.options.onOpenEnd&&e.options.onOpenEnd.call(e,e.el)}})}},{key:"_animateOut",value:function(){var e=this;i.remove(this.dropdownEl),i({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(t){e._resetDropdownStyles(),"function"==typeof e.options.onCloseEnd&&e.options.onCloseEnd.call(e,e.el)}})}},{key:"_placeDropdown",value:function(){var t=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=t+"px";var e=this._getDropdownPosition();this.dropdownEl.style.left=e.x+"px",this.dropdownEl.style.top=e.y+"px",this.dropdownEl.style.height=e.height+"px",this.dropdownEl.style.width=e.width+"px",this.dropdownEl.style.transformOrigin=("left"===e.horizontalAlignment?"0":"100%")+" "+("top"===e.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus&&this.el.focus())}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Dropdown}},{key:"defaults",get:function(){return e}}]),n}();t._dropdowns=[],M.Dropdown=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"dropdown","M_Dropdown")}(cash,M.anime),function(s,i){"use strict";var e={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Modal=i).options=s.extend({},n.defaults,e),i.isOpen=!1,i.id=i.$el.attr("id"),i._openingTrigger=void 0,i.$overlay=s('<div class="modal-overlay"></div>'),i.el.tabIndex=0,i._nthModalOpened=0,n._count++,i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){n._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===n._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===n._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(t){var e=s(t.target).closest(".modal-trigger");if(e.length){var i=M.getIdFromTrigger(e[0]),n=document.getElementById(i).M_Modal;n&&n.open(e),t.preventDefault()}}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(t){s(t.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(t){27===t.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(t){this.el.contains(t.target)||this._nthModalOpened!==n._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var t=this;s.extend(this.el.style,{display:"block",opacity:0}),s.extend(this.$overlay[0].style,{display:"block",opacity:0}),i({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"});var e={targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el,t._openingTrigger)}};this.el.classList.contains("bottom-sheet")?s.extend(e,{bottom:0,opacity:1}):s.extend(e,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),i(e)}},{key:"_animateOut",value:function(){var t=this;i({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"});var e={targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){t.el.style.display="none",t.$overlay.remove(),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};this.el.classList.contains("bottom-sheet")?s.extend(e,{bottom:"-100%",opacity:0}):s.extend(e,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),i(e)}},{key:"open",value:function(t){if(!this.isOpen)return this.isOpen=!0,n._modalsOpen++,this._nthModalOpened=n._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*n._modalsOpen,this.el.style.zIndex=1e3+2*n._modalsOpen+1,this._openingTrigger=t?t[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling&&(document.body.style.overflow="hidden"),this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),this.options.dismissible&&(this._handleKeydownBound=this._handleKeydown.bind(this),this._handleFocusBound=this._handleFocus.bind(this),document.addEventListener("keydown",this._handleKeydownBound),document.addEventListener("focus",this._handleFocusBound,!0)),i.remove(this.el),i.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,n._modalsOpen--,this._nthModalOpened=0,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this.el.classList.remove("open"),0===n._modalsOpen&&(document.body.style.overflow=""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0)),i.remove(this.el),i.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Modal}},{key:"defaults",get:function(){return e}}]),n}();t._modalsOpen=0,t._count=0,M.Modal=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"modal","M_Modal")}(cash,M.anime),function(o,a){"use strict";var e={inDuration:275,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Materialbox=i).options=o.extend({},n.defaults,e),i.overlayActive=!1,i.doneAnimating=!0,i.placeholder=o("<div></div>").addClass("material-placeholder"),i.originalWidth=0,i.originalHeight=0,i.originInlineStyles=i.$el.attr("style"),i.caption=i.el.getAttribute("data-caption")||"",i.$el.before(i.placeholder),i.placeholder.append(i.$el),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Materialbox=void 0,o(this.placeholder).after(this.el).remove(),this.$el.removeAttr("style")}},{key:"_setupEventHandlers",value:function(){this._handleMaterialboxClickBound=this._handleMaterialboxClick.bind(this),this.el.addEventListener("click",this._handleMaterialboxClickBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleMaterialboxClickBound)}},{key:"_handleMaterialboxClick",value:function(t){!1===this.doneAnimating||this.overlayActive&&this.doneAnimating?this.close():this.open()}},{key:"_handleWindowScroll",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowResize",value:function(){this.overlayActive&&this.close()}},{key:"_handleWindowEscape",value:function(t){27===t.keyCode&&this.doneAnimating&&this.overlayActive&&this.close()}},{key:"_makeAncestorsOverflowVisible",value:function(){this.ancestorsChanged=o();for(var t=this.placeholder[0].parentNode;null!==t&&!o(t).is(document);){var e=o(t);"visible"!==e.css("overflow")&&(e.css("overflow","visible"),void 0===this.ancestorsChanged?this.ancestorsChanged=e:this.ancestorsChanged=this.ancestorsChanged.add(e)),t=t.parentNode}}},{key:"_animateImageIn",value:function(){var t=this,e={targets:this.el,height:[this.originalHeight,this.newHeight],width:[this.originalWidth,this.newWidth],left:M.getDocumentScrollLeft()+this.windowWidth/2-this.placeholder.offset().left-this.newWidth/2,top:M.getDocumentScrollTop()+this.windowHeight/2-this.placeholder.offset().top-this.newHeight/2,duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){t.doneAnimating=!0,"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}};this.maxWidth=this.$el.css("max-width"),this.maxHeight=this.$el.css("max-height"),"none"!==this.maxWidth&&(e.maxWidth=this.newWidth),"none"!==this.maxHeight&&(e.maxHeight=this.newHeight),a(e)}},{key:"_animateImageOut",value:function(){var t=this,e={targets:this.el,width:this.originalWidth,height:this.originalHeight,left:0,top:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.placeholder.css({height:"",width:"",position:"",top:"",left:""}),t.attrWidth&&t.$el.attr("width",t.attrWidth),t.attrHeight&&t.$el.attr("height",t.attrHeight),t.$el.removeAttr("style"),t.originInlineStyles&&t.$el.attr("style",t.originInlineStyles),t.$el.removeClass("active"),t.doneAnimating=!0,t.ancestorsChanged.length&&t.ancestorsChanged.css("overflow",""),"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}};a(e)}},{key:"_updateVars",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.caption=this.el.getAttribute("data-caption")||""}},{key:"open",value:function(){var t=this;this._updateVars(),this.originalWidth=this.el.getBoundingClientRect().width,this.originalHeight=this.el.getBoundingClientRect().height,this.doneAnimating=!1,this.$el.addClass("active"),this.overlayActive=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this.placeholder.css({width:this.placeholder[0].getBoundingClientRect().width+"px",height:this.placeholder[0].getBoundingClientRect().height+"px",position:"relative",top:0,left:0}),this._makeAncestorsOverflowVisible(),this.$el.css({position:"absolute","z-index":1e3,"will-change":"left, top, width, height"}),this.attrWidth=this.$el.attr("width"),this.attrHeight=this.$el.attr("height"),this.attrWidth&&(this.$el.css("width",this.attrWidth+"px"),this.$el.removeAttr("width")),this.attrHeight&&(this.$el.css("width",this.attrHeight+"px"),this.$el.removeAttr("height")),this.$overlay=o('<div id="materialbox-overlay"></div>').css({opacity:0}).one("click",function(){t.doneAnimating&&t.close()}),this.$el.before(this.$overlay);var e=this.$overlay[0].getBoundingClientRect();this.$overlay.css({width:this.windowWidth+"px",height:this.windowHeight+"px",left:-1*e.left+"px",top:-1*e.top+"px"}),a.remove(this.el),a.remove(this.$overlay[0]),a({targets:this.$overlay[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}),""!==this.caption&&(this.$photocaption&&a.remove(this.$photoCaption[0]),this.$photoCaption=o('<div class="materialbox-caption"></div>'),this.$photoCaption.text(this.caption),o("body").append(this.$photoCaption),this.$photoCaption.css({display:"inline"}),a({targets:this.$photoCaption[0],opacity:1,duration:this.options.inDuration,easing:"easeOutQuad"}));var i=0,n=this.originalWidth/this.windowWidth,s=this.originalHeight/this.windowHeight;this.newWidth=0,this.newHeight=0,s<n?(i=this.originalHeight/this.originalWidth,this.newWidth=.9*this.windowWidth,this.newHeight=.9*this.windowWidth*i):(i=this.originalWidth/this.originalHeight,this.newWidth=.9*this.windowHeight*i,this.newHeight=.9*this.windowHeight),this._animateImageIn(),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),this._handleWindowResizeBound=this._handleWindowResize.bind(this),this._handleWindowEscapeBound=this._handleWindowEscape.bind(this),window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleWindowResizeBound),window.addEventListener("keyup",this._handleWindowEscapeBound)}},{key:"close",value:function(){var t=this;this._updateVars(),this.doneAnimating=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),a.remove(this.el),a.remove(this.$overlay[0]),""!==this.caption&&a.remove(this.$photoCaption[0]),window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleWindowResizeBound),window.removeEventListener("keyup",this._handleWindowEscapeBound),a({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.overlayActive=!1,t.$overlay.remove()}}),this._animateImageOut(),""!==this.caption&&a({targets:this.$photoCaption[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){t.$photoCaption.remove()}})}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Materialbox}},{key:"defaults",get:function(){return e}}]),n}();M.Materialbox=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"materialbox","M_Materialbox")}(cash,M.anime),function(s){"use strict";var e={responsiveThreshold:0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Parallax=i).options=s.extend({},n.defaults,e),i._enabled=window.innerWidth>i.options.responsiveThreshold,i.$img=i.$el.find("img").first(),i.$img.each(function(){this.complete&&s(this).trigger("load")}),i._updateParallax(),i._setupEventHandlers(),i._setupStyles(),n._parallaxes.push(i),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){n._parallaxes.splice(n._parallaxes.indexOf(this),1),this.$img[0].style.transform="",this._removeEventHandlers(),this.$el[0].M_Parallax=void 0}},{key:"_setupEventHandlers",value:function(){this._handleImageLoadBound=this._handleImageLoad.bind(this),this.$img[0].addEventListener("load",this._handleImageLoadBound),0===n._parallaxes.length&&(n._handleScrollThrottled=M.throttle(n._handleScroll,5),window.addEventListener("scroll",n._handleScrollThrottled),n._handleWindowResizeThrottled=M.throttle(n._handleWindowResize,5),window.addEventListener("resize",n._handleWindowResizeThrottled))}},{key:"_removeEventHandlers",value:function(){this.$img[0].removeEventListener("load",this._handleImageLoadBound),0===n._parallaxes.length&&(window.removeEventListener("scroll",n._handleScrollThrottled),window.removeEventListener("resize",n._handleWindowResizeThrottled))}},{key:"_setupStyles",value:function(){this.$img[0].style.opacity=1}},{key:"_handleImageLoad",value:function(){this._updateParallax()}},{key:"_updateParallax",value:function(){var t=0<this.$el.height()?this.el.parentNode.offsetHeight:500,e=this.$img[0].offsetHeight-t,i=this.$el.offset().top+t,n=this.$el.offset().top,s=M.getDocumentScrollTop(),o=window.innerHeight,a=e*((s+o-n)/(t+o));this._enabled?s<i&&n<s+o&&(this.$img[0].style.transform="translate3D(-50%, "+a+"px, 0)"):this.$img[0].style.transform=""}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Parallax}},{key:"_handleScroll",value:function(){for(var t=0;t<n._parallaxes.length;t++){var e=n._parallaxes[t];e._updateParallax.call(e)}}},{key:"_handleWindowResize",value:function(){for(var t=0;t<n._parallaxes.length;t++){var e=n._parallaxes[t];e._enabled=window.innerWidth>e.options.responsiveThreshold}}},{key:"defaults",get:function(){return e}}]),n}();t._parallaxes=[],M.Parallax=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"parallax","M_Parallax")}(cash),function(a,s){"use strict";var e={duration:300,onShow:null,swipeable:!1,responsiveThreshold:1/0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Tabs=i).options=a.extend({},n.defaults,e),i.$tabLinks=i.$el.children("li.tab").children("a"),i.index=0,i._setupActiveTabLink(),i.options.swipeable?i._setupSwipeableTabs():i._setupNormalTabs(),i._setTabsAndTabWidth(),i._createIndicator(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._indicator.parentNode.removeChild(this._indicator),this.options.swipeable?this._teardownSwipeableTabs():this._teardownNormalTabs(),this.$el[0].M_Tabs=void 0}},{key:"_setupEventHandlers",value:function(){this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound),this._handleTabClickBound=this._handleTabClick.bind(this),this.el.addEventListener("click",this._handleTabClickBound)}},{key:"_removeEventHandlers",value:function(){window.removeEventListener("resize",this._handleWindowResizeBound),this.el.removeEventListener("click",this._handleTabClickBound)}},{key:"_handleWindowResize",value:function(){this._setTabsAndTabWidth(),0!==this.tabWidth&&0!==this.tabsWidth&&(this._indicator.style.left=this._calcLeftPos(this.$activeTabLink)+"px",this._indicator.style.right=this._calcRightPos(this.$activeTabLink)+"px")}},{key:"_handleTabClick",value:function(t){var e=this,i=a(t.target).closest("li.tab"),n=a(t.target).closest("a");if(n.length&&n.parent().hasClass("tab"))if(i.hasClass("disabled"))t.preventDefault();else if(!n.attr("target")){this.$activeTabLink.removeClass("active");var s=this.$content;this.$activeTabLink=n,this.$content=a(M.escapeHash(n[0].hash)),this.$tabLinks=this.$el.children("li.tab").children("a"),this.$activeTabLink.addClass("active");var o=this.index;this.index=Math.max(this.$tabLinks.index(n),0),this.options.swipeable?this._tabsCarousel&&this._tabsCarousel.set(this.index,function(){"function"==typeof e.options.onShow&&e.options.onShow.call(e,e.$content[0])}):this.$content.length&&(this.$content[0].style.display="block",this.$content.addClass("active"),"function"==typeof this.options.onShow&&this.options.onShow.call(this,this.$content[0]),s.length&&!s.is(this.$content)&&(s[0].style.display="none",s.removeClass("active"))),this._setTabsAndTabWidth(),this._animateIndicator(o),t.preventDefault()}}},{key:"_createIndicator",value:function(){var t=this,e=document.createElement("li");e.classList.add("indicator"),this.el.appendChild(e),this._indicator=e,setTimeout(function(){t._indicator.style.left=t._calcLeftPos(t.$activeTabLink)+"px",t._indicator.style.right=t._calcRightPos(t.$activeTabLink)+"px"},0)}},{key:"_setupActiveTabLink",value:function(){this.$activeTabLink=a(this.$tabLinks.filter('[href="'+location.hash+'"]')),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a.active").first()),0===this.$activeTabLink.length&&(this.$activeTabLink=this.$el.children("li.tab").children("a").first()),this.$tabLinks.removeClass("active"),this.$activeTabLink[0].classList.add("active"),this.index=Math.max(this.$tabLinks.index(this.$activeTabLink),0),this.$activeTabLink.length&&(this.$content=a(M.escapeHash(this.$activeTabLink[0].hash)),this.$content.addClass("active"))}},{key:"_setupSwipeableTabs",value:function(){var i=this;window.innerWidth>this.options.responsiveThreshold&&(this.options.swipeable=!1);var n=a();this.$tabLinks.each(function(t){var e=a(M.escapeHash(t.hash));e.addClass("carousel-item"),n=n.add(e)});var t=a('<div class="tabs-content carousel carousel-slider"></div>');n.first().before(t),t.append(n),n[0].style.display="";var e=this.$activeTabLink.closest(".tab").index();this._tabsCarousel=M.Carousel.init(t[0],{fullWidth:!0,noWrap:!0,onCycleTo:function(t){var e=i.index;i.index=a(t).index(),i.$activeTabLink.removeClass("active"),i.$activeTabLink=i.$tabLinks.eq(i.index),i.$activeTabLink.addClass("active"),i._animateIndicator(e),"function"==typeof i.options.onShow&&i.options.onShow.call(i,i.$content[0])}}),this._tabsCarousel.set(e)}},{key:"_teardownSwipeableTabs",value:function(){var t=this._tabsCarousel.$el;this._tabsCarousel.destroy(),t.after(t.children()),t.remove()}},{key:"_setupNormalTabs",value:function(){this.$tabLinks.not(this.$activeTabLink).each(function(t){if(t.hash){var e=a(M.escapeHash(t.hash));e.length&&(e[0].style.display="none")}})}},{key:"_teardownNormalTabs",value:function(){this.$tabLinks.each(function(t){if(t.hash){var e=a(M.escapeHash(t.hash));e.length&&(e[0].style.display="")}})}},{key:"_setTabsAndTabWidth",value:function(){this.tabsWidth=this.$el.width(),this.tabWidth=Math.max(this.tabsWidth,this.el.scrollWidth)/this.$tabLinks.length}},{key:"_calcRightPos",value:function(t){return Math.ceil(this.tabsWidth-t.position().left-t[0].getBoundingClientRect().width)}},{key:"_calcLeftPos",value:function(t){return Math.floor(t.position().left)}},{key:"updateTabIndicator",value:function(){this._setTabsAndTabWidth(),this._animateIndicator(this.index)}},{key:"_animateIndicator",value:function(t){var e=0,i=0;0<=this.index-t?e=90:i=90;var n={targets:this._indicator,left:{value:this._calcLeftPos(this.$activeTabLink),delay:e},right:{value:this._calcRightPos(this.$activeTabLink),delay:i},duration:this.options.duration,easing:"easeOutQuad"};s.remove(this._indicator),s(n)}},{key:"select",value:function(t){var e=this.$tabLinks.filter('[href="#'+t+'"]');e.length&&e.trigger("click")}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tabs}},{key:"defaults",get:function(){return e}}]),n}();M.Tabs=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"tabs","M_Tabs")}(cash,M.anime),function(d,e){"use strict";var i={exitDelay:200,enterDelay:0,html:null,margin:5,inDuration:250,outDuration:200,position:"bottom",transitionMovement:10},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Tooltip=i).options=d.extend({},n.defaults,e),i.isOpen=!1,i.isHovered=!1,i.isFocused=!1,i._appendTooltipEl(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){d(this.tooltipEl).remove(),this._removeEventHandlers(),this.el.M_Tooltip=void 0}},{key:"_appendTooltipEl",value:function(){var t=document.createElement("div");t.classList.add("material-tooltip"),this.tooltipEl=t;var e=document.createElement("div");e.classList.add("tooltip-content"),e.innerHTML=this.options.html,t.appendChild(e),document.body.appendChild(t)}},{key:"_updateTooltipContent",value:function(){this.tooltipEl.querySelector(".tooltip-content").innerHTML=this.options.html}},{key:"_setupEventHandlers",value:function(){this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this._handleFocusBound=this._handleFocus.bind(this),this._handleBlurBound=this._handleBlur.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.el.addEventListener("focus",this._handleFocusBound,!0),this.el.addEventListener("blur",this._handleBlurBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.el.removeEventListener("focus",this._handleFocusBound,!0),this.el.removeEventListener("blur",this._handleBlurBound,!0)}},{key:"open",value:function(t){this.isOpen||(t=void 0===t||void 0,this.isOpen=!0,this.options=d.extend({},this.options,this._getAttributeOptions()),this._updateTooltipContent(),this._setEnterDelayTimeout(t))}},{key:"close",value:function(){this.isOpen&&(this.isHovered=!1,this.isFocused=!1,this.isOpen=!1,this._setExitDelayTimeout())}},{key:"_setExitDelayTimeout",value:function(){var t=this;clearTimeout(this._exitDelayTimeout),this._exitDelayTimeout=setTimeout(function(){t.isHovered||t.isFocused||t._animateOut()},this.options.exitDelay)}},{key:"_setEnterDelayTimeout",value:function(t){var e=this;clearTimeout(this._enterDelayTimeout),this._enterDelayTimeout=setTimeout(function(){(e.isHovered||e.isFocused||t)&&e._animateIn()},this.options.enterDelay)}},{key:"_positionTooltip",value:function(){var t,e=this.el,i=this.tooltipEl,n=e.offsetHeight,s=e.offsetWidth,o=i.offsetHeight,a=i.offsetWidth,r=this.options.margin,l=void 0,h=void 0;this.xMovement=0,this.yMovement=0,l=e.getBoundingClientRect().top+M.getDocumentScrollTop(),h=e.getBoundingClientRect().left+M.getDocumentScrollLeft(),"top"===this.options.position?(l+=-o-r,h+=s/2-a/2,this.yMovement=-this.options.transitionMovement):"right"===this.options.position?(l+=n/2-o/2,h+=s+r,this.xMovement=this.options.transitionMovement):"left"===this.options.position?(l+=n/2-o/2,h+=-a-r,this.xMovement=-this.options.transitionMovement):(l+=n+r,h+=s/2-a/2,this.yMovement=this.options.transitionMovement),t=this._repositionWithinScreen(h,l,a,o),d(i).css({top:t.y+"px",left:t.x+"px"})}},{key:"_repositionWithinScreen",value:function(t,e,i,n){var s=M.getDocumentScrollLeft(),o=M.getDocumentScrollTop(),a=t-s,r=e-o,l={left:a,top:r,width:i,height:n},h=this.options.margin+this.options.transitionMovement,d=M.checkWithinContainer(document.body,l,h);return d.left?a=h:d.right&&(a-=a+i-window.innerWidth),d.top?r=h:d.bottom&&(r-=r+n-window.innerHeight),{x:a+s,y:r+o}}},{key:"_animateIn",value:function(){this._positionTooltip(),this.tooltipEl.style.visibility="visible",e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:1,translateX:this.xMovement,translateY:this.yMovement,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_animateOut",value:function(){e.remove(this.tooltipEl),e({targets:this.tooltipEl,opacity:0,translateX:0,translateY:0,duration:this.options.outDuration,easing:"easeOutCubic"})}},{key:"_handleMouseEnter",value:function(){this.isHovered=!0,this.isFocused=!1,this.open(!1)}},{key:"_handleMouseLeave",value:function(){this.isHovered=!1,this.isFocused=!1,this.close()}},{key:"_handleFocus",value:function(){M.tabPressed&&(this.isFocused=!0,this.open(!1))}},{key:"_handleBlur",value:function(){this.isFocused=!1,this.close()}},{key:"_getAttributeOptions",value:function(){var t={},e=this.el.getAttribute("data-tooltip"),i=this.el.getAttribute("data-position");return e&&(t.html=e),i&&(t.position=i),t}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Tooltip}},{key:"defaults",get:function(){return i}}]),n}();M.Tooltip=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"tooltip","M_Tooltip")}(cash,M.anime),function(i){"use strict";var t=t||{},e=document.querySelectorAll.bind(document);function m(t){var e="";for(var i in t)t.hasOwnProperty(i)&&(e+=i+":"+t[i]+";");return e}var g={duration:750,show:function(t,e){if(2===t.button)return!1;var i=e||this,n=document.createElement("div");n.className="waves-ripple",i.appendChild(n);var s,o,a,r,l,h,d,u=(h={top:0,left:0},d=(s=i)&&s.ownerDocument,o=d.documentElement,void 0!==s.getBoundingClientRect&&(h=s.getBoundingClientRect()),a=null!==(l=r=d)&&l===l.window?r:9===r.nodeType&&r.defaultView,{top:h.top+a.pageYOffset-o.clientTop,left:h.left+a.pageXOffset-o.clientLeft}),c=t.pageY-u.top,p=t.pageX-u.left,v="scale("+i.clientWidth/100*10+")";"touches"in t&&(c=t.touches[0].pageY-u.top,p=t.touches[0].pageX-u.left),n.setAttribute("data-hold",Date.now()),n.setAttribute("data-scale",v),n.setAttribute("data-x",p),n.setAttribute("data-y",c);var f={top:c+"px",left:p+"px"};n.className=n.className+" waves-notransition",n.setAttribute("style",m(f)),n.className=n.className.replace("waves-notransition",""),f["-webkit-transform"]=v,f["-moz-transform"]=v,f["-ms-transform"]=v,f["-o-transform"]=v,f.transform=v,f.opacity="1",f["-webkit-transition-duration"]=g.duration+"ms",f["-moz-transition-duration"]=g.duration+"ms",f["-o-transition-duration"]=g.duration+"ms",f["transition-duration"]=g.duration+"ms",f["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",n.setAttribute("style",m(f))},hide:function(t){l.touchup(t);var e=this,i=(e.clientWidth,null),n=e.getElementsByClassName("waves-ripple");if(!(0<n.length))return!1;var s=(i=n[n.length-1]).getAttribute("data-x"),o=i.getAttribute("data-y"),a=i.getAttribute("data-scale"),r=350-(Date.now()-Number(i.getAttribute("data-hold")));r<0&&(r=0),setTimeout(function(){var t={top:o+"px",left:s+"px",opacity:"0","-webkit-transition-duration":g.duration+"ms","-moz-transition-duration":g.duration+"ms","-o-transition-duration":g.duration+"ms","transition-duration":g.duration+"ms","-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,"-o-transform":a,transform:a};i.setAttribute("style",m(t)),setTimeout(function(){try{e.removeChild(i)}catch(t){return!1}},g.duration)},r)},wrapInput:function(t){for(var e=0;e<t.length;e++){var i=t[e];if("input"===i.tagName.toLowerCase()){var n=i.parentNode;if("i"===n.tagName.toLowerCase()&&-1!==n.className.indexOf("waves-effect"))continue;var s=document.createElement("i");s.className=i.className+" waves-input-wrapper";var o=i.getAttribute("style");o||(o=""),s.setAttribute("style",o),i.className="waves-button-input",i.removeAttribute("style"),n.replaceChild(s,i),s.appendChild(i)}}}},l={touches:0,allowEvent:function(t){var e=!0;return"touchstart"===t.type?l.touches+=1:"touchend"===t.type||"touchcancel"===t.type?setTimeout(function(){0<l.touches&&(l.touches-=1)},500):"mousedown"===t.type&&0<l.touches&&(e=!1),e},touchup:function(t){l.allowEvent(t)}};function n(t){var e=function(t){if(!1===l.allowEvent(t))return null;for(var e=null,i=t.target||t.srcElement;null!==i.parentNode;){if(!(i instanceof SVGElement)&&-1!==i.className.indexOf("waves-effect")){e=i;break}i=i.parentNode}return e}(t);null!==e&&(g.show(t,e),"ontouchstart"in i&&(e.addEventListener("touchend",g.hide,!1),e.addEventListener("touchcancel",g.hide,!1)),e.addEventListener("mouseup",g.hide,!1),e.addEventListener("mouseleave",g.hide,!1),e.addEventListener("dragend",g.hide,!1))}t.displayEffect=function(t){"duration"in(t=t||{})&&(g.duration=t.duration),g.wrapInput(e(".waves-effect")),"ontouchstart"in i&&document.body.addEventListener("touchstart",n,!1),document.body.addEventListener("mousedown",n,!1)},t.attach=function(t){"input"===t.tagName.toLowerCase()&&(g.wrapInput([t]),t=t.parentNode),"ontouchstart"in i&&t.addEventListener("touchstart",n,!1),t.addEventListener("mousedown",n,!1)},i.Waves=t,document.addEventListener("DOMContentLoaded",function(){t.displayEffect()},!1)}(window),function(i,n){"use strict";var t={html:"",displayLength:4e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},e=function(){function s(t){_classCallCheck(this,s),this.options=i.extend({},s.defaults,t),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===s._toasts.length&&s._createContainer(),s._toasts.push(this);var e=this._createToast();(e.M_Toast=this).el=e,this.$el=i(e),this._animateIn(),this._setTimer()}return _createClass(s,[{key:"_createToast",value:function(){var t=document.createElement("div");return t.classList.add("toast"),this.options.classes.length&&i(t).addClass(this.options.classes),("object"==typeof HTMLElement?this.message instanceof HTMLElement:this.message&&"object"==typeof this.message&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?t.appendChild(this.message):this.message.jquery?i(t).append(this.message[0]):t.innerHTML=this.message,s._container.appendChild(t),t}},{key:"_animateIn",value:function(){n({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval(function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()},20))}},{key:"dismiss",value:function(){var t=this;window.clearInterval(this.counterInterval);var e=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX("+e+"px)",this.el.style.opacity=0),n({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof t.options.completeCallback&&t.options.completeCallback(),t.$el.remove(),s._toasts.splice(s._toasts.indexOf(t),1),0===s._toasts.length&&s._removeContainer()}})}}],[{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),t.addEventListener("touchstart",s._onDragStart),t.addEventListener("touchmove",s._onDragMove),t.addEventListener("touchend",s._onDragEnd),t.addEventListener("mousedown",s._onDragStart),document.addEventListener("mousemove",s._onDragMove),document.addEventListener("mouseup",s._onDragEnd),document.body.appendChild(t),s._container=t}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",s._onDragMove),document.removeEventListener("mouseup",s._onDragEnd),i(s._container).remove(),s._container=null}},{key:"_onDragStart",value:function(t){if(t.target&&i(t.target).closest(".toast").length){var e=i(t.target).closest(".toast")[0].M_Toast;e.panning=!0,(s._draggedToast=e).el.classList.add("panning"),e.el.style.transition="",e.startingXPos=s._xPos(t),e.time=Date.now(),e.xPos=s._xPos(t)}}},{key:"_onDragMove",value:function(t){if(s._draggedToast){t.preventDefault();var e=s._draggedToast;e.deltaX=Math.abs(e.xPos-s._xPos(t)),e.xPos=s._xPos(t),e.velocityX=e.deltaX/(Date.now()-e.time),e.time=Date.now();var i=e.xPos-e.startingXPos,n=e.el.offsetWidth*e.options.activationPercent;e.el.style.transform="translateX("+i+"px)",e.el.style.opacity=1-Math.abs(i/n)}}},{key:"_onDragEnd",value:function(){if(s._draggedToast){var t=s._draggedToast;t.panning=!1,t.el.classList.remove("panning");var e=t.xPos-t.startingXPos,i=t.el.offsetWidth*t.options.activationPercent;Math.abs(e)>i||1<t.velocityX?(t.wasSwiped=!0,t.dismiss()):(t.el.style.transition="transform .2s, opacity .2s",t.el.style.transform="",t.el.style.opacity=""),s._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientX:t.clientX}},{key:"dismissAll",value:function(){for(var t in s._toasts)s._toasts[t].dismiss()}},{key:"defaults",get:function(){return t}}]),s}();e._toasts=[],e._container=null,e._draggedToast=null,M.Toast=e,M.toast=function(t){return new e(t)}}(cash,M.anime),function(s,o){"use strict";var e={edge:"left",draggable:!0,inDuration:250,outDuration:200,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Sidenav=i).id=i.$el.attr("id"),i.options=s.extend({},n.defaults,e),i.isOpen=!1,i.isFixed=i.el.classList.contains("sidenav-fixed"),i.isDragged=!1,i.lastWindowWidth=window.innerWidth,i.lastWindowHeight=window.innerHeight,i._createOverlay(),i._createDragTarget(),i._setupEventHandlers(),i._setupClasses(),i._setupFixed(),n._sidenavs.push(i),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._enableBodyScrolling(),this._overlay.parentNode.removeChild(this._overlay),this.dragTarget.parentNode.removeChild(this.dragTarget),this.el.M_Sidenav=void 0,this.el.style.transform="";var t=n._sidenavs.indexOf(this);0<=t&&n._sidenavs.splice(t,1)}},{key:"_createOverlay",value:function(){var t=document.createElement("div");this._closeBound=this.close.bind(this),t.classList.add("sidenav-overlay"),t.addEventListener("click",this._closeBound),document.body.appendChild(t),this._overlay=t}},{key:"_setupEventHandlers",value:function(){0===n._sidenavs.length&&document.body.addEventListener("click",this._handleTriggerClick),this._handleDragTargetDragBound=this._handleDragTargetDrag.bind(this),this._handleDragTargetReleaseBound=this._handleDragTargetRelease.bind(this),this._handleCloseDragBound=this._handleCloseDrag.bind(this),this._handleCloseReleaseBound=this._handleCloseRelease.bind(this),this._handleCloseTriggerClickBound=this._handleCloseTriggerClick.bind(this),this.dragTarget.addEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.addEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.addEventListener("touchmove",this._handleCloseDragBound),this._overlay.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("touchmove",this._handleCloseDragBound),this.el.addEventListener("touchend",this._handleCloseReleaseBound),this.el.addEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&(this._handleWindowResizeBound=this._handleWindowResize.bind(this),window.addEventListener("resize",this._handleWindowResizeBound))}},{key:"_removeEventHandlers",value:function(){1===n._sidenavs.length&&document.body.removeEventListener("click",this._handleTriggerClick),this.dragTarget.removeEventListener("touchmove",this._handleDragTargetDragBound),this.dragTarget.removeEventListener("touchend",this._handleDragTargetReleaseBound),this._overlay.removeEventListener("touchmove",this._handleCloseDragBound),this._overlay.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("touchmove",this._handleCloseDragBound),this.el.removeEventListener("touchend",this._handleCloseReleaseBound),this.el.removeEventListener("click",this._handleCloseTriggerClickBound),this.isFixed&&window.removeEventListener("resize",this._handleWindowResizeBound)}},{key:"_handleTriggerClick",value:function(t){var e=s(t.target).closest(".sidenav-trigger");if(t.target&&e.length){var i=M.getIdFromTrigger(e[0]),n=document.getElementById(i).M_Sidenav;n&&n.open(e),t.preventDefault()}}},{key:"_startDrag",value:function(t){var e=t.targetTouches[0].clientX;this.isDragged=!0,this._startingXpos=e,this._xPos=this._startingXpos,this._time=Date.now(),this._width=this.el.getBoundingClientRect().width,this._overlay.style.display="block",this._initialScrollTop=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop(),this._verticallyScrolling=!1,o.remove(this.el),o.remove(this._overlay)}},{key:"_dragMoveUpdate",value:function(t){var e=t.targetTouches[0].clientX,i=this.isOpen?this.el.scrollTop:M.getDocumentScrollTop();this.deltaX=Math.abs(this._xPos-e),this._xPos=e,this.velocityX=this.deltaX/(Date.now()-this._time),this._time=Date.now(),this._initialScrollTop!==i&&(this._verticallyScrolling=!0)}},{key:"_handleDragTargetDrag",value:function(t){if(this.options.draggable&&!this._isCurrentlyFixed()&&!this._verticallyScrolling){this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,i=0<e?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge===i&&(e=0);var n=e,s="translateX(-100%)";"right"===this.options.edge&&(s="translateX(100%)",n=-n),this.percentOpen=Math.min(1,e/this._width),this.el.style.transform=s+" translateX("+n+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleDragTargetRelease",value:function(){this.isDragged&&(.2<this.percentOpen?this.open():this._animateOut(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseDrag",value:function(t){if(this.isOpen){if(!this.options.draggable||this._isCurrentlyFixed()||this._verticallyScrolling)return;this.isDragged||this._startDrag(t),this._dragMoveUpdate(t);var e=this._xPos-this._startingXpos,i=0<e?"right":"left";e=Math.min(this._width,Math.abs(e)),this.options.edge!==i&&(e=0);var n=-e;"right"===this.options.edge&&(n=-n),this.percentOpen=Math.min(1,1-e/this._width),this.el.style.transform="translateX("+n+"px)",this._overlay.style.opacity=this.percentOpen}}},{key:"_handleCloseRelease",value:function(){this.isOpen&&this.isDragged&&(.8<this.percentOpen?this._animateIn():this.close(),this.isDragged=!1,this._verticallyScrolling=!1)}},{key:"_handleCloseTriggerClick",value:function(t){s(t.target).closest(".sidenav-close").length&&!this._isCurrentlyFixed()&&this.close()}},{key:"_handleWindowResize",value:function(){this.lastWindowWidth!==window.innerWidth&&(992<window.innerWidth?this.open():this.close()),this.lastWindowWidth=window.innerWidth,this.lastWindowHeight=window.innerHeight}},{key:"_setupClasses",value:function(){"right"===this.options.edge&&(this.el.classList.add("right-aligned"),this.dragTarget.classList.add("right-aligned"))}},{key:"_removeClasses",value:function(){this.el.classList.remove("right-aligned"),this.dragTarget.classList.remove("right-aligned")}},{key:"_setupFixed",value:function(){this._isCurrentlyFixed()&&this.open()}},{key:"_isCurrentlyFixed",value:function(){return this.isFixed&&992<window.innerWidth}},{key:"_createDragTarget",value:function(){var t=document.createElement("div");t.classList.add("drag-target"),document.body.appendChild(t),this.dragTarget=t}},{key:"_preventBodyScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"_enableBodyScrolling",value:function(){document.body.style.overflow=""}},{key:"open",value:function(){!0!==this.isOpen&&(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._isCurrentlyFixed()?(o.remove(this.el),o({targets:this.el,translateX:0,duration:0,easing:"easeOutQuad"}),this._enableBodyScrolling(),this._overlay.style.display="none"):(this.options.preventScrolling&&this._preventBodyScrolling(),this.isDragged&&1==this.percentOpen||this._animateIn()))}},{key:"close",value:function(){if(!1!==this.isOpen)if(this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._isCurrentlyFixed()){var t="left"===this.options.edge?"-105%":"105%";this.el.style.transform="translateX("+t+")"}else this._enableBodyScrolling(),this.isDragged&&0==this.percentOpen?this._overlay.style.display="none":this._animateOut()}},{key:"_animateIn",value:function(){this._animateSidenavIn(),this._animateOverlayIn()}},{key:"_animateSidenavIn",value:function(){var t=this,e="left"===this.options.edge?-1:1;this.isDragged&&(e="left"===this.options.edge?e+this.percentOpen:e-this.percentOpen),o.remove(this.el),o({targets:this.el,translateX:[100*e+"%",0],duration:this.options.inDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onOpenEnd&&t.options.onOpenEnd.call(t,t.el)}})}},{key:"_animateOverlayIn",value:function(){var t=0;this.isDragged?t=this.percentOpen:s(this._overlay).css({display:"block"}),o.remove(this._overlay),o({targets:this._overlay,opacity:[t,1],duration:this.options.inDuration,easing:"easeOutQuad"})}},{key:"_animateOut",value:function(){this._animateSidenavOut(),this._animateOverlayOut()}},{key:"_animateSidenavOut",value:function(){var t=this,e="left"===this.options.edge?-1:1,i=0;this.isDragged&&(i="left"===this.options.edge?e+this.percentOpen:e-this.percentOpen),o.remove(this.el),o({targets:this.el,translateX:[100*i+"%",105*e+"%"],duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t,t.el)}})}},{key:"_animateOverlayOut",value:function(){var t=this;o.remove(this._overlay),o({targets:this._overlay,opacity:0,duration:this.options.outDuration,easing:"easeOutQuad",complete:function(){s(t._overlay).css("display","none")}})}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Sidenav}},{key:"defaults",get:function(){return e}}]),n}();t._sidenavs=[],M.Sidenav=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"sidenav","M_Sidenav")}(cash,M.anime),function(o,a){"use strict";var e={throttle:100,scrollOffset:200,activeClass:"active",getActiveElement:function(t){return'a[href="#'+t+'"]'}},t=function(t){function c(t,e){_classCallCheck(this,c);var i=_possibleConstructorReturn(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,c,t,e));return(i.el.M_ScrollSpy=i).options=o.extend({},c.defaults,e),c._elements.push(i),c._count++,c._increment++,i.tickId=-1,i.id=c._increment,i._setupEventHandlers(),i._handleWindowScroll(),i}return _inherits(c,Component),_createClass(c,[{key:"destroy",value:function(){c._elements.splice(c._elements.indexOf(this),1),c._elementsInView.splice(c._elementsInView.indexOf(this),1),c._visibleElements.splice(c._visibleElements.indexOf(this.$el),1),c._count--,this._removeEventHandlers(),o(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass),this.el.M_ScrollSpy=void 0}},{key:"_setupEventHandlers",value:function(){var t=M.throttle(this._handleWindowScroll,200);this._handleThrottledResizeBound=t.bind(this),this._handleWindowScrollBound=this._handleWindowScroll.bind(this),1===c._count&&(window.addEventListener("scroll",this._handleWindowScrollBound),window.addEventListener("resize",this._handleThrottledResizeBound),document.body.addEventListener("click",this._handleTriggerClick))}},{key:"_removeEventHandlers",value:function(){0===c._count&&(window.removeEventListener("scroll",this._handleWindowScrollBound),window.removeEventListener("resize",this._handleThrottledResizeBound),document.body.removeEventListener("click",this._handleTriggerClick))}},{key:"_handleTriggerClick",value:function(t){for(var e=o(t.target),i=c._elements.length-1;0<=i;i--){var n=c._elements[i];if(e.is('a[href="#'+n.$el.attr("id")+'"]')){t.preventDefault();var s=n.$el.offset().top+1;a({targets:[document.documentElement,document.body],scrollTop:s-n.options.scrollOffset,duration:400,easing:"easeOutCubic"});break}}}},{key:"_handleWindowScroll",value:function(){c._ticks++;for(var t=M.getDocumentScrollTop(),e=M.getDocumentScrollLeft(),i=e+window.innerWidth,n=t+window.innerHeight,s=c._findElements(t,i,n,e),o=0;o<s.length;o++){var a=s[o];a.tickId<0&&a._enter(),a.tickId=c._ticks}for(var r=0;r<c._elementsInView.length;r++){var l=c._elementsInView[r],h=l.tickId;0<=h&&h!==c._ticks&&(l._exit(),l.tickId=-1)}c._elementsInView=s}},{key:"_enter",value:function(){(c._visibleElements=c._visibleElements.filter(function(t){return 0!=t.height()}))[0]?(o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),c._visibleElements[0][0].M_ScrollSpy&&this.id<c._visibleElements[0][0].M_ScrollSpy.id?c._visibleElements.unshift(this.$el):c._visibleElements.push(this.$el)):c._visibleElements.push(this.$el),o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).addClass(this.options.activeClass)}},{key:"_exit",value:function(){var e=this;(c._visibleElements=c._visibleElements.filter(function(t){return 0!=t.height()}))[0]&&(o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).removeClass(this.options.activeClass),(c._visibleElements=c._visibleElements.filter(function(t){return t.attr("id")!=e.$el.attr("id")}))[0]&&o(this.options.getActiveElement(c._visibleElements[0].attr("id"))).addClass(this.options.activeClass))}}],[{key:"init",value:function(t,e){return _get(c.__proto__||Object.getPrototypeOf(c),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_ScrollSpy}},{key:"_findElements",value:function(t,e,i,n){for(var s=[],o=0;o<c._elements.length;o++){var a=c._elements[o],r=t+a.options.scrollOffset||200;if(0<a.$el.height()){var l=a.$el.offset().top,h=a.$el.offset().left,d=h+a.$el.width(),u=l+a.$el.height();!(e<h||d<n||i<l||u<r)&&s.push(a)}}return s}},{key:"defaults",get:function(){return e}}]),c}();t._elements=[],t._elementsInView=[],t._visibleElements=[],t._count=0,t._increment=0,t._ticks=0,M.ScrollSpy=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"scrollSpy","M_ScrollSpy")}(cash,M.anime),function(h){"use strict";var e={data:{},limit:1/0,onAutocomplete:null,minLength:1,sortFunction:function(t,e,i){return t.indexOf(i)-e.indexOf(i)}},t=function(t){function s(t,e){_classCallCheck(this,s);var i=_possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,s,t,e));return(i.el.M_Autocomplete=i).options=h.extend({},s.defaults,e),i.isOpen=!1,i.count=0,i.activeIndex=-1,i.oldVal,i.$inputField=i.$el.closest(".input-field"),i.$active=h(),i._mousedown=!1,i._setupDropdown(),i._setupEventHandlers(),i}return _inherits(s,Component),_createClass(s,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_Autocomplete=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputBlurBound=this._handleInputBlur.bind(this),this._handleInputKeyupAndFocusBound=this._handleInputKeyupAndFocus.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleContainerMousedownAndTouchstartBound=this._handleContainerMousedownAndTouchstart.bind(this),this._handleContainerMouseupAndTouchendBound=this._handleContainerMouseupAndTouchend.bind(this),this.el.addEventListener("blur",this._handleInputBlurBound),this.el.addEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.addEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("click",this._handleInputClickBound),this.container.addEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.addEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.addEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("blur",this._handleInputBlurBound),this.el.removeEventListener("keyup",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("focus",this._handleInputKeyupAndFocusBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("click",this._handleInputClickBound),this.container.removeEventListener("mousedown",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("mouseup",this._handleContainerMouseupAndTouchendBound),void 0!==window.ontouchstart&&(this.container.removeEventListener("touchstart",this._handleContainerMousedownAndTouchstartBound),this.container.removeEventListener("touchend",this._handleContainerMouseupAndTouchendBound))}},{key:"_setupDropdown",value:function(){var e=this;this.container=document.createElement("ul"),this.container.id="autocomplete-options-"+M.guid(),h(this.container).addClass("autocomplete-content dropdown-content"),this.$inputField.append(this.container),this.el.setAttribute("data-target",this.container.id),this.dropdown=M.Dropdown.init(this.el,{autoFocus:!1,closeOnClick:!1,coverTrigger:!1,onItemClick:function(t){e.selectOption(h(t))}}),this.el.removeEventListener("click",this.dropdown._handleClickBound)}},{key:"_removeDropdown",value:function(){this.container.parentNode.removeChild(this.container)}},{key:"_handleInputBlur",value:function(){this._mousedown||(this.close(),this._resetAutocomplete())}},{key:"_handleInputKeyupAndFocus",value:function(t){"keyup"===t.type&&(s._keydown=!1),this.count=0;var e=this.el.value.toLowerCase();13!==t.keyCode&&38!==t.keyCode&&40!==t.keyCode&&(this.oldVal===e||!M.tabPressed&&"focus"===t.type||this.open(),this.oldVal=e)}},{key:"_handleInputKeydown",value:function(t){s._keydown=!0;var e=t.keyCode,i=void 0,n=h(this.container).children("li").length;e===M.keys.ENTER&&0<=this.activeIndex?(i=h(this.container).children("li").eq(this.activeIndex)).length&&(this.selectOption(i),t.preventDefault()):e!==M.keys.ARROW_UP&&e!==M.keys.ARROW_DOWN||(t.preventDefault(),e===M.keys.ARROW_UP&&0<this.activeIndex&&this.activeIndex--,e===M.keys.ARROW_DOWN&&this.activeIndex<n-1&&this.activeIndex++,this.$active.removeClass("active"),0<=this.activeIndex&&(this.$active=h(this.container).children("li").eq(this.activeIndex),this.$active.addClass("active")))}},{key:"_handleInputClick",value:function(t){this.open()}},{key:"_handleContainerMousedownAndTouchstart",value:function(t){this._mousedown=!0}},{key:"_handleContainerMouseupAndTouchend",value:function(t){this._mousedown=!1}},{key:"_highlight",value:function(t,e){var i=e.find("img"),n=e.text().toLowerCase().indexOf(""+t.toLowerCase()),s=n+t.length-1,o=e.text().slice(0,n),a=e.text().slice(n,s+1),r=e.text().slice(s+1);e.html("<span>"+o+"<span class='highlight'>"+a+"</span>"+r+"</span>"),i.length&&e.prepend(i)}},{key:"_resetCurrentElement",value:function(){this.activeIndex=-1,this.$active.removeClass("active")}},{key:"_resetAutocomplete",value:function(){h(this.container).empty(),this._resetCurrentElement(),this.oldVal=null,this.isOpen=!1,this._mousedown=!1}},{key:"selectOption",value:function(t){var e=t.text().trim();this.el.value=e,this.$el.trigger("change"),this._resetAutocomplete(),this.close(),"function"==typeof this.options.onAutocomplete&&this.options.onAutocomplete.call(this,e)}},{key:"_renderDropdown",value:function(t,i){var n=this;this._resetAutocomplete();var e=[];for(var s in t)if(t.hasOwnProperty(s)&&-1!==s.toLowerCase().indexOf(i)){if(this.count>=this.options.limit)break;var o={data:t[s],key:s};e.push(o),this.count++}if(this.options.sortFunction){e.sort(function(t,e){return n.options.sortFunction(t.key.toLowerCase(),e.key.toLowerCase(),i.toLowerCase())})}for(var a=0;a<e.length;a++){var r=e[a],l=h("<li></li>");r.data?l.append('<img src="'+r.data+'" class="right circle"><span>'+r.key+"</span>"):l.append("<span>"+r.key+"</span>"),h(this.container).append(l),this._highlight(i,l)}}},{key:"open",value:function(){var t=this.el.value.toLowerCase();this._resetAutocomplete(),t.length>=this.options.minLength&&(this.isOpen=!0,this._renderDropdown(this.options.data,t)),this.dropdown.isOpen?this.dropdown.recalculateDimensions():this.dropdown.open()}},{key:"close",value:function(){this.dropdown.close()}},{key:"updateData",value:function(t){var e=this.el.value.toLowerCase();this.options.data=t,this.isOpen&&this._renderDropdown(t,e)}}],[{key:"init",value:function(t,e){return _get(s.__proto__||Object.getPrototypeOf(s),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Autocomplete}},{key:"defaults",get:function(){return e}}]),s}();t._keydown=!1,M.Autocomplete=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"autocomplete","M_Autocomplete")}(cash),function(d){M.updateTextFields=function(){d("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea").each(function(t,e){var i=d(this);0<t.value.length||d(t).is(":focus")||t.autofocus||null!==i.attr("placeholder")?i.siblings("label").addClass("active"):t.validity?i.siblings("label").toggleClass("active",!0===t.validity.badInput):i.siblings("label").removeClass("active")})},M.validate_field=function(t){var e=null!==t.attr("data-length"),i=parseInt(t.attr("data-length")),n=t[0].value.length;0!==n||!1!==t[0].validity.badInput||t.is(":required")?t.hasClass("validate")&&(t.is(":valid")&&e&&n<=i||t.is(":valid")&&!e?(t.removeClass("invalid"),t.addClass("valid")):(t.removeClass("valid"),t.addClass("invalid"))):t.hasClass("validate")&&(t.removeClass("valid"),t.removeClass("invalid"))},M.textareaAutoResize=function(t){if(t instanceof Element&&(t=d(t)),t.length){var e=d(".hiddendiv").first();e.length||(e=d('<div class="hiddendiv common"></div>'),d("body").append(e));var i=t.css("font-family"),n=t.css("font-size"),s=t.css("line-height"),o=t.css("padding-top"),a=t.css("padding-right"),r=t.css("padding-bottom"),l=t.css("padding-left");n&&e.css("font-size",n),i&&e.css("font-family",i),s&&e.css("line-height",s),o&&e.css("padding-top",o),a&&e.css("padding-right",a),r&&e.css("padding-bottom",r),l&&e.css("padding-left",l),t.data("original-height")||t.data("original-height",t.height()),"off"===t.attr("wrap")&&e.css("overflow-wrap","normal").css("white-space","pre"),e.text(t[0].value+"\n");var h=e.html().replace(/\n/g,"<br>");e.html(h),0<t[0].offsetWidth&&0<t[0].offsetHeight?e.css("width",t.width()+"px"):e.css("width",window.innerWidth/2+"px"),t.data("original-height")<=e.innerHeight()?t.css("height",e.innerHeight()+"px"):t[0].value.length<t.data("previous-length")&&t.css("height",t.data("original-height")+"px"),t.data("previous-length",t[0].value.length)}else console.error("No textarea element found")},d(document).ready(function(){var n="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea";d(document).on("change",n,function(){0===this.value.length&&null===d(this).attr("placeholder")||d(this).siblings("label").addClass("active"),M.validate_field(d(this))}),d(document).ready(function(){M.updateTextFields()}),d(document).on("reset",function(t){var e=d(t.target);e.is("form")&&(e.find(n).removeClass("valid").removeClass("invalid"),e.find(n).each(function(t){this.value.length&&d(this).siblings("label").removeClass("active")}),setTimeout(function(){e.find("select").each(function(){this.M_FormSelect&&d(this).trigger("change")})},0))}),document.addEventListener("focus",function(t){d(t.target).is(n)&&d(t.target).siblings("label, .prefix").addClass("active")},!0),document.addEventListener("blur",function(t){var e=d(t.target);if(e.is(n)){var i=".prefix";0===e[0].value.length&&!0!==e[0].validity.badInput&&null===e.attr("placeholder")&&(i+=", label"),e.siblings(i).removeClass("active"),M.validate_field(e)}},!0);d(document).on("keyup","input[type=radio], input[type=checkbox]",function(t){if(t.which===M.keys.TAB)return d(this).addClass("tabbed"),void d(this).one("blur",function(t){d(this).removeClass("tabbed")})});var t=".materialize-textarea";d(t).each(function(){var t=d(this);t.data("original-height",t.height()),t.data("previous-length",this.value.length),M.textareaAutoResize(t)}),d(document).on("keyup",t,function(){M.textareaAutoResize(d(this))}),d(document).on("keydown",t,function(){M.textareaAutoResize(d(this))}),d(document).on("change",'.file-field input[type="file"]',function(){for(var t=d(this).closest(".file-field").find("input.file-path"),e=d(this)[0].files,i=[],n=0;n<e.length;n++)i.push(e[n].name);t[0].value=i.join(", "),t.trigger("change")})})}(cash),function(s,o){"use strict";var e={indicators:!0,height:400,duration:500,interval:6e3},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Slider=i).options=s.extend({},n.defaults,e),i.$slider=i.$el.find(".slides"),i.$slides=i.$slider.children("li"),i.activeIndex=i.$slides.filter(function(t){return s(t).hasClass("active")}).first().index(),-1!=i.activeIndex&&(i.$active=i.$slides.eq(i.activeIndex)),i._setSliderHeight(),i.$slides.find(".caption").each(function(t){i._animateCaptionIn(t,0)}),i.$slides.find("img").each(function(t){var e="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";s(t).attr("src")!==e&&(s(t).css("background-image",'url("'+s(t).attr("src")+'")'),s(t).attr("src",e))}),i._setupIndicators(),i.$active?i.$active.css("display","block"):(i.$slides.first().addClass("active"),o({targets:i.$slides.first()[0],opacity:1,duration:i.options.duration,easing:"easeOutQuad"}),i.activeIndex=0,i.$active=i.$slides.eq(i.activeIndex),i.options.indicators&&i.$indicators.eq(i.activeIndex).addClass("active")),i.$active.find("img").each(function(t){o({targets:i.$active.find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:i.options.duration,easing:"easeOutQuad"})}),i._setupEventHandlers(),i.start(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this.pause(),this._removeIndicators(),this._removeEventHandlers(),this.el.M_Slider=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleIntervalBound=this._handleInterval.bind(this),this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.options.indicators&&this.$indicators.each(function(t){t.addEventListener("click",e._handleIndicatorClickBound)})}},{key:"_removeEventHandlers",value:function(){var e=this;this.options.indicators&&this.$indicators.each(function(t){t.removeEventListener("click",e._handleIndicatorClickBound)})}},{key:"_handleIndicatorClick",value:function(t){var e=s(t.target).index();this.set(e)}},{key:"_handleInterval",value:function(){var t=this.$slider.find(".active").index();this.$slides.length===t+1?t=0:t+=1,this.set(t)}},{key:"_animateCaptionIn",value:function(t,e){var i={targets:t,opacity:0,duration:e,easing:"easeOutQuad"};s(t).hasClass("center-align")?i.translateY=-100:s(t).hasClass("right-align")?i.translateX=100:s(t).hasClass("left-align")&&(i.translateX=-100),o(i)}},{key:"_setSliderHeight",value:function(){this.$el.hasClass("fullscreen")||(this.options.indicators?this.$el.css("height",this.options.height+40+"px"):this.$el.css("height",this.options.height+"px"),this.$slider.css("height",this.options.height+"px"))}},{key:"_setupIndicators",value:function(){var n=this;this.options.indicators&&(this.$indicators=s('<ul class="indicators"></ul>'),this.$slides.each(function(t,e){var i=s('<li class="indicator-item"></li>');n.$indicators.append(i[0])}),this.$el.append(this.$indicators[0]),this.$indicators=this.$indicators.children("li.indicator-item"))}},{key:"_removeIndicators",value:function(){this.$el.find("ul.indicators").remove()}},{key:"set",value:function(t){var e=this;if(t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.activeIndex!=t){this.$active=this.$slides.eq(this.activeIndex);var i=this.$active.find(".caption");this.$active.removeClass("active"),o({targets:this.$active[0],opacity:0,duration:this.options.duration,easing:"easeOutQuad",complete:function(){e.$slides.not(".active").each(function(t){o({targets:t,opacity:0,translateX:0,translateY:0,duration:0,easing:"easeOutQuad"})})}}),this._animateCaptionIn(i[0],this.options.duration),this.options.indicators&&(this.$indicators.eq(this.activeIndex).removeClass("active"),this.$indicators.eq(t).addClass("active")),o({targets:this.$slides.eq(t)[0],opacity:1,duration:this.options.duration,easing:"easeOutQuad"}),o({targets:this.$slides.eq(t).find(".caption")[0],opacity:1,translateX:0,translateY:0,duration:this.options.duration,delay:this.options.duration,easing:"easeOutQuad"}),this.$slides.eq(t).addClass("active"),this.activeIndex=t,this.start()}}},{key:"pause",value:function(){clearInterval(this.interval)}},{key:"start",value:function(){clearInterval(this.interval),this.interval=setInterval(this._handleIntervalBound,this.options.duration+this.options.interval)}},{key:"next",value:function(){var t=this.activeIndex+1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}},{key:"prev",value:function(){var t=this.activeIndex-1;t>=this.$slides.length?t=0:t<0&&(t=this.$slides.length-1),this.set(t)}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Slider}},{key:"defaults",get:function(){return e}}]),n}();M.Slider=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"slider","M_Slider")}(cash,M.anime),function(n,s){n(document).on("click",".card",function(t){if(n(this).children(".card-reveal").length){var i=n(t.target).closest(".card");void 0===i.data("initialOverflow")&&i.data("initialOverflow",void 0===i.css("overflow")?"":i.css("overflow"));var e=n(this).find(".card-reveal");n(t.target).is(n(".card-reveal .card-title"))||n(t.target).is(n(".card-reveal .card-title i"))?s({targets:e[0],translateY:0,duration:225,easing:"easeInOutQuad",complete:function(t){var e=t.animatables[0].target;n(e).css({display:"none"}),i.css("overflow",i.data("initialOverflow"))}}):(n(t.target).is(n(".card .activator"))||n(t.target).is(n(".card .activator i")))&&(i.css("overflow","hidden"),e.css({display:"block"}),s({targets:e[0],translateY:"-100%",duration:300,easing:"easeInOutQuad"}))}})}(cash,M.anime),function(h){"use strict";var e={data:[],placeholder:"",secondaryPlaceholder:"",autocompleteOptions:{},limit:1/0,onChipAdd:null,onChipSelect:null,onChipDelete:null},t=function(t){function l(t,e){_classCallCheck(this,l);var i=_possibleConstructorReturn(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,l,t,e));return(i.el.M_Chips=i).options=h.extend({},l.defaults,e),i.$el.addClass("chips input-field"),i.chipsData=[],i.$chips=h(),i._setupInput(),i.hasAutocomplete=0<Object.keys(i.options.autocompleteOptions).length,i.$input.attr("id")||i.$input.attr("id",M.guid()),i.options.data.length&&(i.chipsData=i.options.data,i._renderChips(i.chipsData)),i.hasAutocomplete&&i._setupAutocomplete(),i._setPlaceholder(),i._setupLabel(),i._setupEventHandlers(),i}return _inherits(l,Component),_createClass(l,[{key:"getData",value:function(){return this.chipsData}},{key:"destroy",value:function(){this._removeEventHandlers(),this.$chips.remove(),this.el.M_Chips=void 0}},{key:"_setupEventHandlers",value:function(){this._handleChipClickBound=this._handleChipClick.bind(this),this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputFocusBound=this._handleInputFocus.bind(this),this._handleInputBlurBound=this._handleInputBlur.bind(this),this.el.addEventListener("click",this._handleChipClickBound),document.addEventListener("keydown",l._handleChipsKeydown),document.addEventListener("keyup",l._handleChipsKeyup),this.el.addEventListener("blur",l._handleChipsBlur,!0),this.$input[0].addEventListener("focus",this._handleInputFocusBound),this.$input[0].addEventListener("blur",this._handleInputBlurBound),this.$input[0].addEventListener("keydown",this._handleInputKeydownBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleChipClickBound),document.removeEventListener("keydown",l._handleChipsKeydown),document.removeEventListener("keyup",l._handleChipsKeyup),this.el.removeEventListener("blur",l._handleChipsBlur,!0),this.$input[0].removeEventListener("focus",this._handleInputFocusBound),this.$input[0].removeEventListener("blur",this._handleInputBlurBound),this.$input[0].removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleChipClick",value:function(t){var e=h(t.target).closest(".chip"),i=h(t.target).is(".close");if(e.length){var n=e.index();i?(this.deleteChip(n),this.$input[0].focus()):this.selectChip(n)}else this.$input[0].focus()}},{key:"_handleInputFocus",value:function(){this.$el.addClass("focus")}},{key:"_handleInputBlur",value:function(){this.$el.removeClass("focus")}},{key:"_handleInputKeydown",value:function(t){if(l._keydown=!0,13===t.keyCode){if(this.hasAutocomplete&&this.autocomplete&&this.autocomplete.isOpen)return;t.preventDefault(),this.addChip({tag:this.$input[0].value}),this.$input[0].value=""}else 8!==t.keyCode&&37!==t.keyCode||""!==this.$input[0].value||!this.chipsData.length||(t.preventDefault(),this.selectChip(this.chipsData.length-1))}},{key:"_renderChip",value:function(t){if(t.tag){var e=document.createElement("div"),i=document.createElement("i");if(e.classList.add("chip"),e.textContent=t.tag,e.setAttribute("tabindex",0),h(i).addClass("material-icons close"),i.textContent="close",t.image){var n=document.createElement("img");n.setAttribute("src",t.image),e.insertBefore(n,e.firstChild)}return e.appendChild(i),e}}},{key:"_renderChips",value:function(){this.$chips.remove();for(var t=0;t<this.chipsData.length;t++){var e=this._renderChip(this.chipsData[t]);this.$el.append(e),this.$chips.add(e)}this.$el.append(this.$input[0])}},{key:"_setupAutocomplete",value:function(){var e=this;this.options.autocompleteOptions.onAutocomplete=function(t){e.addChip({tag:t}),e.$input[0].value="",e.$input[0].focus()},this.autocomplete=M.Autocomplete.init(this.$input[0],this.options.autocompleteOptions)}},{key:"_setupInput",value:function(){this.$input=this.$el.find("input"),this.$input.length||(this.$input=h("<input></input>"),this.$el.append(this.$input)),this.$input.addClass("input")}},{key:"_setupLabel",value:function(){this.$label=this.$el.find("label"),this.$label.length&&this.$label.setAttribute("for",this.$input.attr("id"))}},{key:"_setPlaceholder",value:function(){void 0!==this.chipsData&&!this.chipsData.length&&this.options.placeholder?h(this.$input).prop("placeholder",this.options.placeholder):(void 0===this.chipsData||this.chipsData.length)&&this.options.secondaryPlaceholder&&h(this.$input).prop("placeholder",this.options.secondaryPlaceholder)}},{key:"_isValid",value:function(t){if(t.hasOwnProperty("tag")&&""!==t.tag){for(var e=!1,i=0;i<this.chipsData.length;i++)if(this.chipsData[i].tag===t.tag){e=!0;break}return!e}return!1}},{key:"addChip",value:function(t){if(this._isValid(t)&&!(this.chipsData.length>=this.options.limit)){var e=this._renderChip(t);this.$chips.add(e),this.chipsData.push(t),h(this.$input).before(e),this._setPlaceholder(),"function"==typeof this.options.onChipAdd&&this.options.onChipAdd.call(this,this.$el,e)}}},{key:"deleteChip",value:function(t){var e=this.$chips.eq(t);this.$chips.eq(t).remove(),this.$chips=this.$chips.filter(function(t){return 0<=h(t).index()}),this.chipsData.splice(t,1),this._setPlaceholder(),"function"==typeof this.options.onChipDelete&&this.options.onChipDelete.call(this,this.$el,e[0])}},{key:"selectChip",value:function(t){var e=this.$chips.eq(t);(this._selectedChip=e)[0].focus(),"function"==typeof this.options.onChipSelect&&this.options.onChipSelect.call(this,this.$el,e[0])}}],[{key:"init",value:function(t,e){return _get(l.__proto__||Object.getPrototypeOf(l),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Chips}},{key:"_handleChipsKeydown",value:function(t){l._keydown=!0;var e=h(t.target).closest(".chips"),i=t.target&&e.length;if(!h(t.target).is("input, textarea")&&i){var n=e[0].M_Chips;if(8===t.keyCode||46===t.keyCode){t.preventDefault();var s=n.chipsData.length;if(n._selectedChip){var o=n._selectedChip.index();n.deleteChip(o),n._selectedChip=null,s=Math.max(o-1,0)}n.chipsData.length&&n.selectChip(s)}else if(37===t.keyCode){if(n._selectedChip){var a=n._selectedChip.index()-1;if(a<0)return;n.selectChip(a)}}else if(39===t.keyCode&&n._selectedChip){var r=n._selectedChip.index()+1;r>=n.chipsData.length?n.$input[0].focus():n.selectChip(r)}}}},{key:"_handleChipsKeyup",value:function(t){l._keydown=!1}},{key:"_handleChipsBlur",value:function(t){l._keydown||(h(t.target).closest(".chips")[0].M_Chips._selectedChip=null)}},{key:"defaults",get:function(){return e}}]),l}();t._keydown=!1,M.Chips=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"chips","M_Chips"),h(document).ready(function(){h(document.body).on("click",".chip .close",function(){var t=h(this).closest(".chips");t.length&&t[0].M_Chips||h(this).closest(".chip").remove()})})}(cash),function(s){"use strict";var e={top:0,bottom:1/0,offset:0,onPositionChange:null},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Pushpin=i).options=s.extend({},n.defaults,e),i.originalOffset=i.el.offsetTop,n._pushpins.push(i),i._setupEventHandlers(),i._updatePosition(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this.el.style.top=null,this._removePinClasses(),this._removeEventHandlers();var t=n._pushpins.indexOf(this);n._pushpins.splice(t,1)}},{key:"_setupEventHandlers",value:function(){document.addEventListener("scroll",n._updateElements)}},{key:"_removeEventHandlers",value:function(){document.removeEventListener("scroll",n._updateElements)}},{key:"_updatePosition",value:function(){var t=M.getDocumentScrollTop()+this.options.offset;this.options.top<=t&&this.options.bottom>=t&&!this.el.classList.contains("pinned")&&(this._removePinClasses(),this.el.style.top=this.options.offset+"px",this.el.classList.add("pinned"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pinned")),t<this.options.top&&!this.el.classList.contains("pin-top")&&(this._removePinClasses(),this.el.style.top=0,this.el.classList.add("pin-top"),"function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-top")),t>this.options.bottom&&!this.el.classList.contains("pin-bottom")&&(this._removePinClasses(),this.el.classList.add("pin-bottom"),this.el.style.top=this.options.bottom-this.originalOffset+"px","function"==typeof this.options.onPositionChange&&this.options.onPositionChange.call(this,"pin-bottom"))}},{key:"_removePinClasses",value:function(){this.el.classList.remove("pin-top"),this.el.classList.remove("pinned"),this.el.classList.remove("pin-bottom")}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Pushpin}},{key:"_updateElements",value:function(){for(var t in n._pushpins){n._pushpins[t]._updatePosition()}}},{key:"defaults",get:function(){return e}}]),n}();t._pushpins=[],M.Pushpin=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"pushpin","M_Pushpin")}(cash),function(r,s){"use strict";var e={direction:"top",hoverEnabled:!0,toolbarEnabled:!1};r.fn.reverse=[].reverse;var t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_FloatingActionButton=i).options=r.extend({},n.defaults,e),i.isOpen=!1,i.$anchor=i.$el.children("a").first(),i.$menu=i.$el.children("ul").first(),i.$floatingBtns=i.$el.find("ul .btn-floating"),i.$floatingBtnsReverse=i.$el.find("ul .btn-floating").reverse(),i.offsetY=0,i.offsetX=0,i.$el.addClass("direction-"+i.options.direction),"top"===i.options.direction?i.offsetY=40:"right"===i.options.direction?i.offsetX=-40:"bottom"===i.options.direction?i.offsetY=-40:i.offsetX=40,i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_FloatingActionButton=void 0}},{key:"_setupEventHandlers",value:function(){this._handleFABClickBound=this._handleFABClick.bind(this),this._handleOpenBound=this.open.bind(this),this._handleCloseBound=this.close.bind(this),this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.addEventListener("mouseenter",this._handleOpenBound),this.el.addEventListener("mouseleave",this._handleCloseBound)):this.el.addEventListener("click",this._handleFABClickBound)}},{key:"_removeEventHandlers",value:function(){this.options.hoverEnabled&&!this.options.toolbarEnabled?(this.el.removeEventListener("mouseenter",this._handleOpenBound),this.el.removeEventListener("mouseleave",this._handleCloseBound)):this.el.removeEventListener("click",this._handleFABClickBound)}},{key:"_handleFABClick",value:function(){this.isOpen?this.close():this.open()}},{key:"_handleDocumentClick",value:function(t){r(t.target).closest(this.$menu).length||this.close()}},{key:"open",value:function(){this.isOpen||(this.options.toolbarEnabled?this._animateInToolbar():this._animateInFAB(),this.isOpen=!0)}},{key:"close",value:function(){this.isOpen&&(this.options.toolbarEnabled?(window.removeEventListener("scroll",this._handleCloseBound,!0),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),this._animateOutToolbar()):this._animateOutFAB(),this.isOpen=!1)}},{key:"_animateInFAB",value:function(){var e=this;this.$el.addClass("active");var i=0;this.$floatingBtnsReverse.each(function(t){s({targets:t,opacity:1,scale:[.4,1],translateY:[e.offsetY,0],translateX:[e.offsetX,0],duration:275,delay:i,easing:"easeInOutQuad"}),i+=40})}},{key:"_animateOutFAB",value:function(){var e=this;this.$floatingBtnsReverse.each(function(t){s.remove(t),s({targets:t,opacity:0,scale:.4,translateY:e.offsetY,translateX:e.offsetX,duration:175,easing:"easeOutQuad",complete:function(){e.$el.removeClass("active")}})})}},{key:"_animateInToolbar",value:function(){var t,e=this,i=window.innerWidth,n=window.innerHeight,s=this.el.getBoundingClientRect(),o=r('<div class="fab-backdrop"></div>'),a=this.$anchor.css("background-color");this.$anchor.append(o),this.offsetX=s.left-i/2+s.width/2,this.offsetY=n-s.bottom,t=i/o[0].clientWidth,this.btnBottom=s.bottom,this.btnLeft=s.left,this.btnWidth=s.width,this.$el.addClass("active"),this.$el.css({"text-align":"center",width:"100%",bottom:0,left:0,transform:"translateX("+this.offsetX+"px)",transition:"none"}),this.$anchor.css({transform:"translateY("+-this.offsetY+"px)",transition:"none"}),o.css({"background-color":a}),setTimeout(function(){e.$el.css({transform:"",transition:"transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s"}),e.$anchor.css({overflow:"visible",transform:"",transition:"transform .2s"}),setTimeout(function(){e.$el.css({overflow:"hidden","background-color":a}),o.css({transform:"scale("+t+")",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"}),e.$menu.children("li").children("a").css({opacity:1}),e._handleDocumentClickBound=e._handleDocumentClick.bind(e),window.addEventListener("scroll",e._handleCloseBound,!0),document.body.addEventListener("click",e._handleDocumentClickBound,!0)},100)},0)}},{key:"_animateOutToolbar",value:function(){var t=this,e=window.innerWidth,i=window.innerHeight,n=this.$el.find(".fab-backdrop"),s=this.$anchor.css("background-color");this.offsetX=this.btnLeft-e/2+this.btnWidth/2,this.offsetY=i-this.btnBottom,this.$el.removeClass("active"),this.$el.css({"background-color":"transparent",transition:"none"}),this.$anchor.css({transition:"none"}),n.css({transform:"scale(0)","background-color":s}),this.$menu.children("li").children("a").css({opacity:""}),setTimeout(function(){n.remove(),t.$el.css({"text-align":"",width:"",bottom:"",left:"",overflow:"","background-color":"",transform:"translate3d("+-t.offsetX+"px,0,0)"}),t.$anchor.css({overflow:"",transform:"translate3d(0,"+t.offsetY+"px,0)"}),setTimeout(function(){t.$el.css({transform:"translate3d(0,0,0)",transition:"transform .2s"}),t.$anchor.css({transform:"translate3d(0,0,0)",transition:"transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)"})},20)},200)}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FloatingActionButton}},{key:"defaults",get:function(){return e}}]),n}();M.FloatingActionButton=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"floatingActionButton","M_FloatingActionButton")}(cash,M.anime),function(g){"use strict";var e={autoClose:!1,format:"mmm dd, yyyy",parse:null,defaultDate:null,setDefaultDate:!1,disableWeekends:!1,disableDayFn:null,firstDay:0,minDate:null,maxDate:null,yearRange:10,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,container:null,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok",previousMonth:"‹",nextMonth:"›",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysAbbrev:["S","M","T","W","T","F","S"]},events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},t=function(t){function B(t,e){_classCallCheck(this,B);var i=_possibleConstructorReturn(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,B,t,e));(i.el.M_Datepicker=i).options=g.extend({},B.defaults,e),e&&e.hasOwnProperty("i18n")&&"object"==typeof e.i18n&&(i.options.i18n=g.extend({},B.defaults.i18n,e.i18n)),i.options.minDate&&i.options.minDate.setHours(0,0,0,0),i.options.maxDate&&i.options.maxDate.setHours(0,0,0,0),i.id=M.guid(),i._setupVariables(),i._insertHTMLIntoDOM(),i._setupModal(),i._setupEventHandlers(),i.options.defaultDate||(i.options.defaultDate=new Date(Date.parse(i.el.value)));var n=i.options.defaultDate;return B._isDate(n)?i.options.setDefaultDate?(i.setDate(n,!0),i.setInputValue()):i.gotoDate(n):i.gotoDate(new Date),i.isOpen=!1,i}return _inherits(B,Component),_createClass(B,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),g(this.modalEl).remove(),this.destroySelects(),this.el.M_Datepicker=void 0}},{key:"destroySelects",value:function(){var t=this.calendarEl.querySelector(".orig-select-year");t&&M.FormSelect.getInstance(t).destroy();var e=this.calendarEl.querySelector(".orig-select-month");e&&M.FormSelect.getInstance(e).destroy()}},{key:"_insertHTMLIntoDOM",value:function(){this.options.showClearBtn&&(g(this.clearBtn).css({visibility:""}),this.clearBtn.innerHTML=this.options.i18n.clear),this.doneBtn.innerHTML=this.options.i18n.done,this.cancelBtn.innerHTML=this.options.i18n.cancel,this.options.container?this.$modalEl.appendTo(this.options.container):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modalEl.id="modal-"+this.id,this.modal=M.Modal.init(this.modalEl,{onCloseEnd:function(){t.isOpen=!1}})}},{key:"toString",value:function(t){var e=this;return t=t||this.options.format,B._isDate(this.date)?t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map(function(t){return e.formats[t]?e.formats[t]():t}).join(""):""}},{key:"setDate",value:function(t,e){if(!t)return this.date=null,this._renderDateDisplay(),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),B._isDate(t)){var i=this.options.minDate,n=this.options.maxDate;B._isDate(i)&&t<i?t=i:B._isDate(n)&&n<t&&(t=n),this.date=new Date(t.getTime()),this._renderDateDisplay(),B._setToStartOfDay(this.date),this.gotoDate(this.date),e||"function"!=typeof this.options.onSelect||this.options.onSelect.call(this,this.date)}}},{key:"setInputValue",value:function(){this.el.value=this.toString(),this.$el.trigger("change",{firedBy:this})}},{key:"_renderDateDisplay",value:function(){var t=B._isDate(this.date)?this.date:new Date,e=this.options.i18n,i=e.weekdaysShort[t.getDay()],n=e.monthsShort[t.getMonth()],s=t.getDate();this.yearTextEl.innerHTML=t.getFullYear(),this.dateTextEl.innerHTML=i+", "+n+" "+s}},{key:"gotoDate",value:function(t){var e=!0;if(B._isDate(t)){if(this.calendars){var i=new Date(this.calendars[0].year,this.calendars[0].month,1),n=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),s=t.getTime();n.setMonth(n.getMonth()+1),n.setDate(n.getDate()-1),e=s<i.getTime()||n.getTime()<s}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}]),this.adjustCalendars()}}},{key:"adjustCalendars",value:function(){this.calendars[0]=this.adjustCalendar(this.calendars[0]),this.draw()}},{key:"adjustCalendar",value:function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),11<t.month&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t}},{key:"nextMonth",value:function(){this.calendars[0].month++,this.adjustCalendars()}},{key:"prevMonth",value:function(){this.calendars[0].month--,this.adjustCalendars()}},{key:"render",value:function(t,e,i){var n=this.options,s=new Date,o=B._getDaysInMonth(t,e),a=new Date(t,e,1).getDay(),r=[],l=[];B._setToStartOfDay(s),0<n.firstDay&&(a-=n.firstDay)<0&&(a+=7);for(var h=0===e?11:e-1,d=11===e?0:e+1,u=0===e?t-1:t,c=11===e?t+1:t,p=B._getDaysInMonth(u,h),v=o+a,f=v;7<f;)f-=7;v+=7-f;for(var m=!1,g=0,_=0;g<v;g++){var y=new Date(t,e,g-a+1),k=!!B._isDate(this.date)&&B._compareDates(y,this.date),b=B._compareDates(y,s),w=-1!==n.events.indexOf(y.toDateString()),C=g<a||o+a<=g,E=g-a+1,M=e,O=t,x=n.startRange&&B._compareDates(n.startRange,y),L=n.endRange&&B._compareDates(n.endRange,y),T=n.startRange&&n.endRange&&n.startRange<y&&y<n.endRange;C&&(g<a?(E=p+E,M=h,O=u):(E-=o,M=d,O=c));var $={day:E,month:M,year:O,hasEvent:w,isSelected:k,isToday:b,isDisabled:n.minDate&&y<n.minDate||n.maxDate&&y>n.maxDate||n.disableWeekends&&B._isWeekend(y)||n.disableDayFn&&n.disableDayFn(y),isEmpty:C,isStartRange:x,isEndRange:L,isInRange:T,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths};l.push(this.renderDay($)),7==++_&&(r.push(this.renderRow(l,n.isRTL,m)),_=0,m=!(l=[]))}return this.renderTable(n,r,i)}},{key:"renderDay",value:function(t){var e=[],i="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),i="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+i+'"><button class="datepicker-day-button" type="button" data-year="'+t.year+'" data-month="'+t.month+'" data-day="'+t.day+'">'+t.day+"</button></td>"}},{key:"renderRow",value:function(t,e,i){return'<tr class="datepicker-row'+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"}},{key:"renderTable",value:function(t,e,i){return'<div class="datepicker-table-wrapper"><table cellpadding="0" cellspacing="0" class="datepicker-table" role="grid" aria-labelledby="'+i+'">'+this.renderHead(t)+this.renderBody(e)+"</table></div>"}},{key:"renderHead",value:function(t){var e=void 0,i=[];for(e=0;e<7;e++)i.push('<th scope="col"><abbr title="'+this.renderDayName(t,e)+'">'+this.renderDayName(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?i.reverse():i).join("")+"</tr></thead>"}},{key:"renderBody",value:function(t){return"<tbody>"+t.join("")+"</tbody>"}},{key:"renderTitle",value:function(t,e,i,n,s,o){var a,r,l=void 0,h=void 0,d=void 0,u=this.options,c=i===u.minYear,p=i===u.maxYear,v='<div id="'+o+'" class="datepicker-controls" role="heading" aria-live="assertive">',f=!0,m=!0;for(d=[],l=0;l<12;l++)d.push('<option value="'+(i===s?l-e:12+l-e)+'"'+(l===n?' selected="selected"':"")+(c&&l<u.minMonth||p&&l>u.maxMonth?'disabled="disabled"':"")+">"+u.i18n.months[l]+"</option>");for(a='<select class="datepicker-select orig-select-month" tabindex="-1">'+d.join("")+"</select>",g.isArray(u.yearRange)?(l=u.yearRange[0],h=u.yearRange[1]+1):(l=i-u.yearRange,h=1+i+u.yearRange),d=[];l<h&&l<=u.maxYear;l++)l>=u.minYear&&d.push('<option value="'+l+'" '+(l===i?'selected="selected"':"")+">"+l+"</option>");r='<select class="datepicker-select orig-select-year" tabindex="-1">'+d.join("")+"</select>";v+='<button class="month-prev'+(f?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/><path d="M0-.5h24v24H0z" fill="none"/></svg></button>',v+='<div class="selects-container">',u.showMonthAfterYear?v+=r+a:v+=a+r,v+="</div>",c&&(0===n||u.minMonth>=n)&&(f=!1),p&&(11===n||u.maxMonth<=n)&&(m=!1);return(v+='<button class="month-next'+(m?"":" is-disabled")+'" type="button"><svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/><path d="M0-.25h24v24H0z" fill="none"/></svg></button>')+"</div>"}},{key:"draw",value:function(t){if(this.isOpen||t){var e,i=this.options,n=i.minYear,s=i.maxYear,o=i.minMonth,a=i.maxMonth,r="";this._y<=n&&(this._y=n,!isNaN(o)&&this._m<o&&(this._m=o)),this._y>=s&&(this._y=s,!isNaN(a)&&this._m>a&&(this._m=a)),e="datepicker-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<1;l++)this._renderDateDisplay(),r+=this.renderTitle(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,e)+this.render(this.calendars[l].year,this.calendars[l].month,e);this.destroySelects(),this.calendarEl.innerHTML=r;var h=this.calendarEl.querySelector(".orig-select-year"),d=this.calendarEl.querySelector(".orig-select-month");M.FormSelect.init(h,{classes:"select-year",dropdownOptions:{container:document.body,constrainWidth:!1}}),M.FormSelect.init(d,{classes:"select-month",dropdownOptions:{container:document.body,constrainWidth:!1}}),h.addEventListener("change",this._handleYearChange.bind(this)),d.addEventListener("change",this._handleMonthChange.bind(this)),"function"==typeof this.options.onDraw&&this.options.onDraw(this)}}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleInputChangeBound=this._handleInputChange.bind(this),this._handleCalendarClickBound=this._handleCalendarClick.bind(this),this._finishSelectionBound=this._finishSelection.bind(this),this._handleMonthChange=this._handleMonthChange.bind(this),this._closeBound=this.close.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.el.addEventListener("change",this._handleInputChangeBound),this.calendarEl.addEventListener("click",this._handleCalendarClickBound),this.doneBtn.addEventListener("click",this._finishSelectionBound),this.cancelBtn.addEventListener("click",this._closeBound),this.options.showClearBtn&&(this._handleClearClickBound=this._handleClearClick.bind(this),this.clearBtn.addEventListener("click",this._handleClearClickBound))}},{key:"_setupVariables",value:function(){var e=this;this.$modalEl=g(B._template),this.modalEl=this.$modalEl[0],this.calendarEl=this.modalEl.querySelector(".datepicker-calendar"),this.yearTextEl=this.modalEl.querySelector(".year-text"),this.dateTextEl=this.modalEl.querySelector(".date-text"),this.options.showClearBtn&&(this.clearBtn=this.modalEl.querySelector(".datepicker-clear")),this.doneBtn=this.modalEl.querySelector(".datepicker-done"),this.cancelBtn=this.modalEl.querySelector(".datepicker-cancel"),this.formats={d:function(){return e.date.getDate()},dd:function(){var t=e.date.getDate();return(t<10?"0":"")+t},ddd:function(){return e.options.i18n.weekdaysShort[e.date.getDay()]},dddd:function(){return e.options.i18n.weekdays[e.date.getDay()]},m:function(){return e.date.getMonth()+1},mm:function(){var t=e.date.getMonth()+1;return(t<10?"0":"")+t},mmm:function(){return e.options.i18n.monthsShort[e.date.getMonth()]},mmmm:function(){return e.options.i18n.months[e.date.getMonth()]},yy:function(){return(""+e.date.getFullYear()).slice(2)},yyyy:function(){return e.date.getFullYear()}}}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound),this.el.removeEventListener("change",this._handleInputChangeBound),this.calendarEl.removeEventListener("click",this._handleCalendarClickBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleCalendarClick",value:function(t){if(this.isOpen){var e=g(t.target);e.hasClass("is-disabled")||(!e.hasClass("datepicker-day-button")||e.hasClass("is-empty")||e.parent().hasClass("is-disabled")?e.closest(".month-prev").length?this.prevMonth():e.closest(".month-next").length&&this.nextMonth():(this.setDate(new Date(t.target.getAttribute("data-year"),t.target.getAttribute("data-month"),t.target.getAttribute("data-day"))),this.options.autoClose&&this._finishSelection()))}}},{key:"_handleClearClick",value:function(){this.date=null,this.setInputValue(),this.close()}},{key:"_handleMonthChange",value:function(t){this.gotoMonth(t.target.value)}},{key:"_handleYearChange",value:function(t){this.gotoYear(t.target.value)}},{key:"gotoMonth",value:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())}},{key:"gotoYear",value:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())}},{key:"_handleInputChange",value:function(t){var e=void 0;t.firedBy!==this&&(e=this.options.parse?this.options.parse(this.el.value,this.options.format):new Date(Date.parse(this.el.value)),B._isDate(e)&&this.setDate(e))}},{key:"renderDayName",value:function(t,e,i){for(e+=t.firstDay;7<=e;)e-=7;return i?t.i18n.weekdaysAbbrev[e]:t.i18n.weekdays[e]}},{key:"_finishSelection",value:function(){this.setInputValue(),this.close()}},{key:"open",value:function(){if(!this.isOpen)return this.isOpen=!0,"function"==typeof this.options.onOpen&&this.options.onOpen.call(this),this.draw(),this.modal.open(),this}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onClose&&this.options.onClose.call(this),this.modal.close(),this}}],[{key:"init",value:function(t,e){return _get(B.__proto__||Object.getPrototypeOf(B),"init",this).call(this,this,t,e)}},{key:"_isDate",value:function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())}},{key:"_isWeekend",value:function(t){var e=t.getDay();return 0===e||6===e}},{key:"_setToStartOfDay",value:function(t){B._isDate(t)&&t.setHours(0,0,0,0)}},{key:"_getDaysInMonth",value:function(t,e){return[31,B._isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}},{key:"_isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"_compareDates",value:function(t,e){return t.getTime()===e.getTime()}},{key:"_setToStartOfDay",value:function(t){B._isDate(t)&&t.setHours(0,0,0,0)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Datepicker}},{key:"defaults",get:function(){return e}}]),B}();t._template=['<div class= "modal datepicker-modal">','<div class="modal-content datepicker-container">','<div class="datepicker-date-display">','<span class="year-text"></span>','<span class="date-text"></span>',"</div>",'<div class="datepicker-calendar-container">','<div class="datepicker-calendar"></div>','<div class="datepicker-footer">','<button class="btn-flat datepicker-clear waves-effect" style="visibility: hidden;" type="button"></button>','<div class="confirmation-btns">','<button class="btn-flat datepicker-cancel waves-effect" type="button"></button>','<button class="btn-flat datepicker-done waves-effect" type="button"></button>',"</div>","</div>","</div>","</div>","</div>"].join(""),M.Datepicker=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"datepicker","M_Datepicker")}(cash),function(h){"use strict";var e={dialRadius:135,outerRadius:105,innerRadius:70,tickRadius:20,duration:350,container:null,defaultTime:"now",fromNow:0,showClearBtn:!1,i18n:{cancel:"Cancel",clear:"Clear",done:"Ok"},autoClose:!1,twelveHour:!0,vibrate:!0,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onSelect:null},t=function(t){function f(t,e){_classCallCheck(this,f);var i=_possibleConstructorReturn(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,f,t,e));return(i.el.M_Timepicker=i).options=h.extend({},f.defaults,e),i.id=M.guid(),i._insertHTMLIntoDOM(),i._setupModal(),i._setupVariables(),i._setupEventHandlers(),i._clockSetup(),i._pickerSetup(),i}return _inherits(f,Component),_createClass(f,[{key:"destroy",value:function(){this._removeEventHandlers(),this.modal.destroy(),h(this.modalEl).remove(),this.el.M_Timepicker=void 0}},{key:"_setupEventHandlers",value:function(){this._handleInputKeydownBound=this._handleInputKeydown.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),this._handleClockClickStartBound=this._handleClockClickStart.bind(this),this._handleDocumentClickMoveBound=this._handleDocumentClickMove.bind(this),this._handleDocumentClickEndBound=this._handleDocumentClickEnd.bind(this),this.el.addEventListener("click",this._handleInputClickBound),this.el.addEventListener("keydown",this._handleInputKeydownBound),this.plate.addEventListener("mousedown",this._handleClockClickStartBound),this.plate.addEventListener("touchstart",this._handleClockClickStartBound),h(this.spanHours).on("click",this.showView.bind(this,"hours")),h(this.spanMinutes).on("click",this.showView.bind(this,"minutes"))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleInputClickBound),this.el.removeEventListener("keydown",this._handleInputKeydownBound)}},{key:"_handleInputClick",value:function(){this.open()}},{key:"_handleInputKeydown",value:function(t){t.which===M.keys.ENTER&&(t.preventDefault(),this.open())}},{key:"_handleClockClickStart",value:function(t){t.preventDefault();var e=this.plate.getBoundingClientRect(),i=e.left,n=e.top;this.x0=i+this.options.dialRadius,this.y0=n+this.options.dialRadius,this.moved=!1;var s=f._Pos(t);this.dx=s.x-this.x0,this.dy=s.y-this.y0,this.setHand(this.dx,this.dy,!1),document.addEventListener("mousemove",this._handleDocumentClickMoveBound),document.addEventListener("touchmove",this._handleDocumentClickMoveBound),document.addEventListener("mouseup",this._handleDocumentClickEndBound),document.addEventListener("touchend",this._handleDocumentClickEndBound)}},{key:"_handleDocumentClickMove",value:function(t){t.preventDefault();var e=f._Pos(t),i=e.x-this.x0,n=e.y-this.y0;this.moved=!0,this.setHand(i,n,!1,!0)}},{key:"_handleDocumentClickEnd",value:function(t){var e=this;t.preventDefault(),document.removeEventListener("mouseup",this._handleDocumentClickEndBound),document.removeEventListener("touchend",this._handleDocumentClickEndBound);var i=f._Pos(t),n=i.x-this.x0,s=i.y-this.y0;this.moved&&n===this.dx&&s===this.dy&&this.setHand(n,s),"hours"===this.currentView?this.showView("minutes",this.options.duration/2):this.options.autoClose&&(h(this.minutesView).addClass("timepicker-dial-out"),setTimeout(function(){e.done()},this.options.duration/2)),"function"==typeof this.options.onSelect&&this.options.onSelect.call(this,this.hours,this.minutes),document.removeEventListener("mousemove",this._handleDocumentClickMoveBound),document.removeEventListener("touchmove",this._handleDocumentClickMoveBound)}},{key:"_insertHTMLIntoDOM",value:function(){this.$modalEl=h(f._template),this.modalEl=this.$modalEl[0],this.modalEl.id="modal-"+this.id;var t=document.querySelector(this.options.container);this.options.container&&t?this.$modalEl.appendTo(t):this.$modalEl.insertBefore(this.el)}},{key:"_setupModal",value:function(){var t=this;this.modal=M.Modal.init(this.modalEl,{onOpenStart:this.options.onOpenStart,onOpenEnd:this.options.onOpenEnd,onCloseStart:this.options.onCloseStart,onCloseEnd:function(){"function"==typeof t.options.onCloseEnd&&t.options.onCloseEnd.call(t),t.isOpen=!1}})}},{key:"_setupVariables",value:function(){this.currentView="hours",this.vibrate=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,this._canvas=this.modalEl.querySelector(".timepicker-canvas"),this.plate=this.modalEl.querySelector(".timepicker-plate"),this.hoursView=this.modalEl.querySelector(".timepicker-hours"),this.minutesView=this.modalEl.querySelector(".timepicker-minutes"),this.spanHours=this.modalEl.querySelector(".timepicker-span-hours"),this.spanMinutes=this.modalEl.querySelector(".timepicker-span-minutes"),this.spanAmPm=this.modalEl.querySelector(".timepicker-span-am-pm"),this.footer=this.modalEl.querySelector(".timepicker-footer"),this.amOrPm="PM"}},{key:"_pickerSetup",value:function(){var t=h('<button class="btn-flat timepicker-clear waves-effect" style="visibility: hidden;" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.clear+"</button>").appendTo(this.footer).on("click",this.clear.bind(this));this.options.showClearBtn&&t.css({visibility:""});var e=h('<div class="confirmation-btns"></div>');h('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.cancel+"</button>").appendTo(e).on("click",this.close.bind(this)),h('<button class="btn-flat timepicker-close waves-effect" type="button" tabindex="'+(this.options.twelveHour?"3":"1")+'">'+this.options.i18n.done+"</button>").appendTo(e).on("click",this.done.bind(this)),e.appendTo(this.footer)}},{key:"_clockSetup",value:function(){this.options.twelveHour&&(this.$amBtn=h('<div class="am-btn">AM</div>'),this.$pmBtn=h('<div class="pm-btn">PM</div>'),this.$amBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm),this.$pmBtn.on("click",this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)),this._buildHoursView(),this._buildMinutesView(),this._buildSVGClock()}},{key:"_buildSVGClock",value:function(){var t=this.options.dialRadius,e=this.options.tickRadius,i=2*t,n=f._createSVGEl("svg");n.setAttribute("class","timepicker-svg"),n.setAttribute("width",i),n.setAttribute("height",i);var s=f._createSVGEl("g");s.setAttribute("transform","translate("+t+","+t+")");var o=f._createSVGEl("circle");o.setAttribute("class","timepicker-canvas-bearing"),o.setAttribute("cx",0),o.setAttribute("cy",0),o.setAttribute("r",4);var a=f._createSVGEl("line");a.setAttribute("x1",0),a.setAttribute("y1",0);var r=f._createSVGEl("circle");r.setAttribute("class","timepicker-canvas-bg"),r.setAttribute("r",e),s.appendChild(a),s.appendChild(r),s.appendChild(o),n.appendChild(s),this._canvas.appendChild(n),this.hand=a,this.bg=r,this.bearing=o,this.g=s}},{key:"_buildHoursView",value:function(){var t=h('<div class="timepicker-tick"></div>');if(this.options.twelveHour)for(var e=1;e<13;e+=1){var i=t.clone(),n=e/6*Math.PI,s=this.options.outerRadius;i.css({left:this.options.dialRadius+Math.sin(n)*s-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(n)*s-this.options.tickRadius+"px"}),i.html(0===e?"00":e),this.hoursView.appendChild(i[0])}else for(var o=0;o<24;o+=1){var a=t.clone(),r=o/6*Math.PI,l=0<o&&o<13?this.options.innerRadius:this.options.outerRadius;a.css({left:this.options.dialRadius+Math.sin(r)*l-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(r)*l-this.options.tickRadius+"px"}),a.html(0===o?"00":o),this.hoursView.appendChild(a[0])}}},{key:"_buildMinutesView",value:function(){for(var t=h('<div class="timepicker-tick"></div>'),e=0;e<60;e+=5){var i=t.clone(),n=e/30*Math.PI;i.css({left:this.options.dialRadius+Math.sin(n)*this.options.outerRadius-this.options.tickRadius+"px",top:this.options.dialRadius-Math.cos(n)*this.options.outerRadius-this.options.tickRadius+"px"}),i.html(f._addLeadingZero(e)),this.minutesView.appendChild(i[0])}}},{key:"_handleAmPmClick",value:function(t){var e=h(t.target);this.amOrPm=e.hasClass("am-btn")?"AM":"PM",this._updateAmPmView()}},{key:"_updateAmPmView",value:function(){this.options.twelveHour&&(this.$amBtn.toggleClass("text-primary","AM"===this.amOrPm),this.$pmBtn.toggleClass("text-primary","PM"===this.amOrPm))}},{key:"_updateTimeFromInput",value:function(){var t=((this.el.value||this.options.defaultTime||"")+"").split(":");if(this.options.twelveHour&&void 0!==t[1]&&(0<t[1].toUpperCase().indexOf("AM")?this.amOrPm="AM":this.amOrPm="PM",t[1]=t[1].replace("AM","").replace("PM","")),"now"===t[0]){var e=new Date(+new Date+this.options.fromNow);t=[e.getHours(),e.getMinutes()],this.options.twelveHour&&(this.amOrPm=12<=t[0]&&t[0]<24?"PM":"AM")}this.hours=+t[0]||0,this.minutes=+t[1]||0,this.spanHours.innerHTML=this.hours,this.spanMinutes.innerHTML=f._addLeadingZero(this.minutes),this._updateAmPmView()}},{key:"showView",value:function(t,e){"minutes"===t&&h(this.hoursView).css("visibility");var i="hours"===t,n=i?this.hoursView:this.minutesView,s=i?this.minutesView:this.hoursView;this.currentView=t,h(this.spanHours).toggleClass("text-primary",i),h(this.spanMinutes).toggleClass("text-primary",!i),s.classList.add("timepicker-dial-out"),h(n).css("visibility","visible").removeClass("timepicker-dial-out"),this.resetClock(e),clearTimeout(this.toggleViewTimer),this.toggleViewTimer=setTimeout(function(){h(s).css("visibility","hidden")},this.options.duration)}},{key:"resetClock",value:function(t){var e=this.currentView,i=this[e],n="hours"===e,s=i*(Math.PI/(n?6:30)),o=n&&0<i&&i<13?this.options.innerRadius:this.options.outerRadius,a=Math.sin(s)*o,r=-Math.cos(s)*o,l=this;t?(h(this.canvas).addClass("timepicker-canvas-out"),setTimeout(function(){h(l.canvas).removeClass("timepicker-canvas-out"),l.setHand(a,r)},t)):this.setHand(a,r)}},{key:"setHand",value:function(t,e,i){var n=this,s=Math.atan2(t,-e),o="hours"===this.currentView,a=Math.PI/(o||i?6:30),r=Math.sqrt(t*t+e*e),l=o&&r<(this.options.outerRadius+this.options.innerRadius)/2,h=l?this.options.innerRadius:this.options.outerRadius;this.options.twelveHour&&(h=this.options.outerRadius),s<0&&(s=2*Math.PI+s);var d=Math.round(s/a);s=d*a,this.options.twelveHour?o?0===d&&(d=12):(i&&(d*=5),60===d&&(d=0)):o?(12===d&&(d=0),d=l?0===d?12:d:0===d?0:d+12):(i&&(d*=5),60===d&&(d=0)),this[this.currentView]!==d&&this.vibrate&&this.options.vibrate&&(this.vibrateTimer||(navigator[this.vibrate](10),this.vibrateTimer=setTimeout(function(){n.vibrateTimer=null},100))),this[this.currentView]=d,o?this.spanHours.innerHTML=d:this.spanMinutes.innerHTML=f._addLeadingZero(d);var u=Math.sin(s)*(h-this.options.tickRadius),c=-Math.cos(s)*(h-this.options.tickRadius),p=Math.sin(s)*h,v=-Math.cos(s)*h;this.hand.setAttribute("x2",u),this.hand.setAttribute("y2",c),this.bg.setAttribute("cx",p),this.bg.setAttribute("cy",v)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this._updateTimeFromInput(),this.showView("hours"),this.modal.open())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.modal.close())}},{key:"done",value:function(t,e){var i=this.el.value,n=e?"":f._addLeadingZero(this.hours)+":"+f._addLeadingZero(this.minutes);this.time=n,!e&&this.options.twelveHour&&(n=n+" "+this.amOrPm),(this.el.value=n)!==i&&this.$el.trigger("change"),this.close(),this.el.focus()}},{key:"clear",value:function(){this.done(null,!0)}}],[{key:"init",value:function(t,e){return _get(f.__proto__||Object.getPrototypeOf(f),"init",this).call(this,this,t,e)}},{key:"_addLeadingZero",value:function(t){return(t<10?"0":"")+t}},{key:"_createSVGEl",value:function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},{key:"_Pos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?{x:t.targetTouches[0].clientX,y:t.targetTouches[0].clientY}:{x:t.clientX,y:t.clientY}}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Timepicker}},{key:"defaults",get:function(){return e}}]),f}();t._template=['<div class= "modal timepicker-modal">','<div class="modal-content timepicker-container">','<div class="timepicker-digital-display">','<div class="timepicker-text-container">','<div class="timepicker-display-column">','<span class="timepicker-span-hours text-primary"></span>',":",'<span class="timepicker-span-minutes"></span>',"</div>",'<div class="timepicker-display-column timepicker-display-am-pm">','<div class="timepicker-span-am-pm"></div>',"</div>","</div>","</div>",'<div class="timepicker-analog-display">','<div class="timepicker-plate">','<div class="timepicker-canvas"></div>','<div class="timepicker-dial timepicker-hours"></div>','<div class="timepicker-dial timepicker-minutes timepicker-dial-out"></div>',"</div>",'<div class="timepicker-footer"></div>',"</div>","</div>","</div>"].join(""),M.Timepicker=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"timepicker","M_Timepicker")}(cash),function(s){"use strict";var e={},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_CharacterCounter=i).options=s.extend({},n.defaults,e),i.isInvalid=!1,i.isValidLength=!1,i._setupCounter(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.CharacterCounter=void 0,this._removeCounter()}},{key:"_setupEventHandlers",value:function(){this._handleUpdateCounterBound=this.updateCounter.bind(this),this.el.addEventListener("focus",this._handleUpdateCounterBound,!0),this.el.addEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("focus",this._handleUpdateCounterBound,!0),this.el.removeEventListener("input",this._handleUpdateCounterBound,!0)}},{key:"_setupCounter",value:function(){this.counterEl=document.createElement("span"),s(this.counterEl).addClass("character-counter").css({float:"right","font-size":"12px",height:1}),this.$el.parent().append(this.counterEl)}},{key:"_removeCounter",value:function(){s(this.counterEl).remove()}},{key:"updateCounter",value:function(){var t=+this.$el.attr("data-length"),e=this.el.value.length;this.isValidLength=e<=t;var i=e;t&&(i+="/"+t,this._validateInput()),s(this.counterEl).html(i)}},{key:"_validateInput",value:function(){this.isValidLength&&this.isInvalid?(this.isInvalid=!1,this.$el.removeClass("invalid")):this.isValidLength||this.isInvalid||(this.isInvalid=!0,this.$el.removeClass("valid"),this.$el.addClass("invalid"))}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_CharacterCounter}},{key:"defaults",get:function(){return e}}]),n}();M.CharacterCounter=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"characterCounter","M_CharacterCounter")}(cash),function(b){"use strict";var e={duration:200,dist:-100,shift:0,padding:0,numVisible:5,fullWidth:!1,indicators:!1,noWrap:!1,onCycleTo:null},t=function(t){function i(t,e){_classCallCheck(this,i);var n=_possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,i,t,e));return(n.el.M_Carousel=n).options=b.extend({},i.defaults,e),n.hasMultipleSlides=1<n.$el.find(".carousel-item").length,n.showIndicators=n.options.indicators&&n.hasMultipleSlides,n.noWrap=n.options.noWrap||!n.hasMultipleSlides,n.pressed=!1,n.dragged=!1,n.offset=n.target=0,n.images=[],n.itemWidth=n.$el.find(".carousel-item").first().innerWidth(),n.itemHeight=n.$el.find(".carousel-item").first().innerHeight(),n.dim=2*n.itemWidth+n.options.padding||1,n._autoScrollBound=n._autoScroll.bind(n),n._trackBound=n._track.bind(n),n.options.fullWidth&&(n.options.dist=0,n._setCarouselHeight(),n.showIndicators&&n.$el.find(".carousel-fixed-item").addClass("with-indicators")),n.$indicators=b('<ul class="indicators"></ul>'),n.$el.find(".carousel-item").each(function(t,e){if(n.images.push(t),n.showIndicators){var i=b('<li class="indicator-item"></li>');0===e&&i[0].classList.add("active"),n.$indicators.append(i)}}),n.showIndicators&&n.$el.append(n.$indicators),n.count=n.images.length,n.options.numVisible=Math.min(n.count,n.options.numVisible),n.xform="transform",["webkit","Moz","O","ms"].every(function(t){var e=t+"Transform";return void 0===document.body.style[e]||(n.xform=e,!1)}),n._setupEventHandlers(),n._scroll(n.offset),n}return _inherits(i,Component),_createClass(i,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.M_Carousel=void 0}},{key:"_setupEventHandlers",value:function(){var i=this;this._handleCarouselTapBound=this._handleCarouselTap.bind(this),this._handleCarouselDragBound=this._handleCarouselDrag.bind(this),this._handleCarouselReleaseBound=this._handleCarouselRelease.bind(this),this._handleCarouselClickBound=this._handleCarouselClick.bind(this),void 0!==window.ontouchstart&&(this.el.addEventListener("touchstart",this._handleCarouselTapBound),this.el.addEventListener("touchmove",this._handleCarouselDragBound),this.el.addEventListener("touchend",this._handleCarouselReleaseBound)),this.el.addEventListener("mousedown",this._handleCarouselTapBound),this.el.addEventListener("mousemove",this._handleCarouselDragBound),this.el.addEventListener("mouseup",this._handleCarouselReleaseBound),this.el.addEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.addEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&(this._handleIndicatorClickBound=this._handleIndicatorClick.bind(this),this.$indicators.find(".indicator-item").each(function(t,e){t.addEventListener("click",i._handleIndicatorClickBound)}));var t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){var i=this;void 0!==window.ontouchstart&&(this.el.removeEventListener("touchstart",this._handleCarouselTapBound),this.el.removeEventListener("touchmove",this._handleCarouselDragBound),this.el.removeEventListener("touchend",this._handleCarouselReleaseBound)),this.el.removeEventListener("mousedown",this._handleCarouselTapBound),this.el.removeEventListener("mousemove",this._handleCarouselDragBound),this.el.removeEventListener("mouseup",this._handleCarouselReleaseBound),this.el.removeEventListener("mouseleave",this._handleCarouselReleaseBound),this.el.removeEventListener("click",this._handleCarouselClickBound),this.showIndicators&&this.$indicators&&this.$indicators.find(".indicator-item").each(function(t,e){t.removeEventListener("click",i._handleIndicatorClickBound)}),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleCarouselTap",value:function(t){"mousedown"===t.type&&b(t.target).is("img")&&t.preventDefault(),this.pressed=!0,this.dragged=!1,this.verticalDragged=!1,this.reference=this._xpos(t),this.referenceY=this._ypos(t),this.velocity=this.amplitude=0,this.frame=this.offset,this.timestamp=Date.now(),clearInterval(this.ticker),this.ticker=setInterval(this._trackBound,100)}},{key:"_handleCarouselDrag",value:function(t){var e=void 0,i=void 0,n=void 0;if(this.pressed)if(e=this._xpos(t),i=this._ypos(t),n=this.reference-e,Math.abs(this.referenceY-i)<30&&!this.verticalDragged)(2<n||n<-2)&&(this.dragged=!0,this.reference=e,this._scroll(this.offset+n));else{if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;this.verticalDragged=!0}if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1}},{key:"_handleCarouselRelease",value:function(t){if(this.pressed)return this.pressed=!1,clearInterval(this.ticker),this.target=this.offset,(10<this.velocity||this.velocity<-10)&&(this.amplitude=.9*this.velocity,this.target=this.offset+this.amplitude),this.target=Math.round(this.target/this.dim)*this.dim,this.noWrap&&(this.target>=this.dim*(this.count-1)?this.target=this.dim*(this.count-1):this.target<0&&(this.target=0)),this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound),this.dragged&&(t.preventDefault(),t.stopPropagation()),!1}},{key:"_handleCarouselClick",value:function(t){if(this.dragged)return t.preventDefault(),t.stopPropagation(),!1;if(!this.options.fullWidth){var e=b(t.target).closest(".carousel-item").index();0!==this._wrap(this.center)-e&&(t.preventDefault(),t.stopPropagation()),this._cycleTo(e)}}},{key:"_handleIndicatorClick",value:function(t){t.stopPropagation();var e=b(t.target).closest(".indicator-item");e.length&&this._cycleTo(e.index())}},{key:"_handleResize",value:function(t){this.options.fullWidth?(this.itemWidth=this.$el.find(".carousel-item").first().innerWidth(),this.imageHeight=this.$el.find(".carousel-item.active").height(),this.dim=2*this.itemWidth+this.options.padding,this.offset=2*this.center*this.itemWidth,this.target=this.offset,this._setCarouselHeight(!0)):this._scroll()}},{key:"_setCarouselHeight",value:function(t){var i=this,e=this.$el.find(".carousel-item.active").length?this.$el.find(".carousel-item.active").first():this.$el.find(".carousel-item").first(),n=e.find("img").first();if(n.length)if(n[0].complete){var s=n.height();if(0<s)this.$el.css("height",s+"px");else{var o=n[0].naturalWidth,a=n[0].naturalHeight,r=this.$el.width()/o*a;this.$el.css("height",r+"px")}}else n.one("load",function(t,e){i.$el.css("height",t.offsetHeight+"px")});else if(!t){var l=e.height();this.$el.css("height",l+"px")}}},{key:"_xpos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientX:t.clientX}},{key:"_ypos",value:function(t){return t.targetTouches&&1<=t.targetTouches.length?t.targetTouches[0].clientY:t.clientY}},{key:"_wrap",value:function(t){return t>=this.count?t%this.count:t<0?this._wrap(this.count+t%this.count):t}},{key:"_track",value:function(){var t,e,i,n;e=(t=Date.now())-this.timestamp,this.timestamp=t,i=this.offset-this.frame,this.frame=this.offset,n=1e3*i/(1+e),this.velocity=.8*n+.2*this.velocity}},{key:"_autoScroll",value:function(){var t=void 0,e=void 0;this.amplitude&&(t=Date.now()-this.timestamp,2<(e=this.amplitude*Math.exp(-t/this.options.duration))||e<-2?(this._scroll(this.target-e),requestAnimationFrame(this._autoScrollBound)):this._scroll(this.target))}},{key:"_scroll",value:function(t){var e=this;this.$el.hasClass("scrolling")||this.el.classList.add("scrolling"),null!=this.scrollingTimeout&&window.clearTimeout(this.scrollingTimeout),this.scrollingTimeout=window.setTimeout(function(){e.$el.removeClass("scrolling")},this.options.duration);var i,n,s,o,a=void 0,r=void 0,l=void 0,h=void 0,d=void 0,u=void 0,c=this.center,p=1/this.options.numVisible;if(this.offset="number"==typeof t?t:this.offset,this.center=Math.floor((this.offset+this.dim/2)/this.dim),o=-(s=(n=this.offset-this.center*this.dim)<0?1:-1)*n*2/this.dim,i=this.count>>1,this.options.fullWidth?(l="translateX(0)",u=1):(l="translateX("+(this.el.clientWidth-this.itemWidth)/2+"px) ",l+="translateY("+(this.el.clientHeight-this.itemHeight)/2+"px)",u=1-p*o),this.showIndicators){var v=this.center%this.count,f=this.$indicators.find(".indicator-item.active");f.index()!==v&&(f.removeClass("active"),this.$indicators.find(".indicator-item").eq(v)[0].classList.add("active"))}if(!this.noWrap||0<=this.center&&this.center<this.count){r=this.images[this._wrap(this.center)],b(r).hasClass("active")||(this.$el.find(".carousel-item").removeClass("active"),r.classList.add("active"));var m=l+" translateX("+-n/2+"px) translateX("+s*this.options.shift*o*a+"px) translateZ("+this.options.dist*o+"px)";this._updateItemStyle(r,u,0,m)}for(a=1;a<=i;++a){if(this.options.fullWidth?(h=this.options.dist,d=a===i&&n<0?1-o:1):(h=this.options.dist*(2*a+o*s),d=1-p*(2*a+o*s)),!this.noWrap||this.center+a<this.count){r=this.images[this._wrap(this.center+a)];var g=l+" translateX("+(this.options.shift+(this.dim*a-n)/2)+"px) translateZ("+h+"px)";this._updateItemStyle(r,d,-a,g)}if(this.options.fullWidth?(h=this.options.dist,d=a===i&&0<n?1-o:1):(h=this.options.dist*(2*a-o*s),d=1-p*(2*a-o*s)),!this.noWrap||0<=this.center-a){r=this.images[this._wrap(this.center-a)];var _=l+" translateX("+(-this.options.shift+(-this.dim*a-n)/2)+"px) translateZ("+h+"px)";this._updateItemStyle(r,d,-a,_)}}if(!this.noWrap||0<=this.center&&this.center<this.count){r=this.images[this._wrap(this.center)];var y=l+" translateX("+-n/2+"px) translateX("+s*this.options.shift*o+"px) translateZ("+this.options.dist*o+"px)";this._updateItemStyle(r,u,0,y)}var k=this.$el.find(".carousel-item").eq(this._wrap(this.center));c!==this.center&&"function"==typeof this.options.onCycleTo&&this.options.onCycleTo.call(this,k[0],this.dragged),"function"==typeof this.oneTimeCallback&&(this.oneTimeCallback.call(this,k[0],this.dragged),this.oneTimeCallback=null)}},{key:"_updateItemStyle",value:function(t,e,i,n){t.style[this.xform]=n,t.style.zIndex=i,t.style.opacity=e,t.style.visibility="visible"}},{key:"_cycleTo",value:function(t,e){var i=this.center%this.count-t;this.noWrap||(i<0?Math.abs(i+this.count)<Math.abs(i)&&(i+=this.count):0<i&&Math.abs(i-this.count)<i&&(i-=this.count)),this.target=this.dim*Math.round(this.offset/this.dim),i<0?this.target+=this.dim*Math.abs(i):0<i&&(this.target-=this.dim*i),"function"==typeof e&&(this.oneTimeCallback=e),this.offset!==this.target&&(this.amplitude=this.target-this.offset,this.timestamp=Date.now(),requestAnimationFrame(this._autoScrollBound))}},{key:"next",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center+t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"prev",value:function(t){(void 0===t||isNaN(t))&&(t=1);var e=this.center-t;if(e>=this.count||e<0){if(this.noWrap)return;e=this._wrap(e)}this._cycleTo(e)}},{key:"set",value:function(t,e){if((void 0===t||isNaN(t))&&(t=0),t>this.count||t<0){if(this.noWrap)return;t=this._wrap(t)}this._cycleTo(t,e)}}],[{key:"init",value:function(t,e){return _get(i.__proto__||Object.getPrototypeOf(i),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Carousel}},{key:"defaults",get:function(){return e}}]),i}();M.Carousel=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"carousel","M_Carousel")}(cash),function(S){"use strict";var e={onOpen:void 0,onClose:void 0},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_TapTarget=i).options=S.extend({},n.defaults,e),i.isOpen=!1,i.$origin=S("#"+i.$el.attr("data-target")),i._setup(),i._calculatePositioning(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this.el.TapTarget=void 0}},{key:"_setupEventHandlers",value:function(){this._handleDocumentClickBound=this._handleDocumentClick.bind(this),this._handleTargetClickBound=this._handleTargetClick.bind(this),this._handleOriginClickBound=this._handleOriginClick.bind(this),this.el.addEventListener("click",this._handleTargetClickBound),this.originEl.addEventListener("click",this._handleOriginClickBound);var t=M.throttle(this._handleResize,200);this._handleThrottledResizeBound=t.bind(this),window.addEventListener("resize",this._handleThrottledResizeBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("click",this._handleTargetClickBound),this.originEl.removeEventListener("click",this._handleOriginClickBound),window.removeEventListener("resize",this._handleThrottledResizeBound)}},{key:"_handleTargetClick",value:function(t){this.open()}},{key:"_handleOriginClick",value:function(t){this.close()}},{key:"_handleResize",value:function(t){this._calculatePositioning()}},{key:"_handleDocumentClick",value:function(t){S(t.target).closest(".tap-target-wrapper").length||(this.close(),t.preventDefault(),t.stopPropagation())}},{key:"_setup",value:function(){this.wrapper=this.$el.parent()[0],this.waveEl=S(this.wrapper).find(".tap-target-wave")[0],this.originEl=S(this.wrapper).find(".tap-target-origin")[0],this.contentEl=this.$el.find(".tap-target-content")[0],S(this.wrapper).hasClass(".tap-target-wrapper")||(this.wrapper=document.createElement("div"),this.wrapper.classList.add("tap-target-wrapper"),this.$el.before(S(this.wrapper)),this.wrapper.append(this.el)),this.contentEl||(this.contentEl=document.createElement("div"),this.contentEl.classList.add("tap-target-content"),this.$el.append(this.contentEl)),this.waveEl||(this.waveEl=document.createElement("div"),this.waveEl.classList.add("tap-target-wave"),this.originEl||(this.originEl=this.$origin.clone(!0,!0),this.originEl.addClass("tap-target-origin"),this.originEl.removeAttr("id"),this.originEl.removeAttr("style"),this.originEl=this.originEl[0],this.waveEl.append(this.originEl)),this.wrapper.append(this.waveEl))}},{key:"_calculatePositioning",value:function(){var t="fixed"===this.$origin.css("position");if(!t)for(var e=this.$origin.parents(),i=0;i<e.length&&!(t="fixed"==S(e[i]).css("position"));i++);var n=this.$origin.outerWidth(),s=this.$origin.outerHeight(),o=t?this.$origin.offset().top-M.getDocumentScrollTop():this.$origin.offset().top,a=t?this.$origin.offset().left-M.getDocumentScrollLeft():this.$origin.offset().left,r=window.innerWidth,l=window.innerHeight,h=r/2,d=l/2,u=a<=h,c=h<a,p=o<=d,v=d<o,f=.25*r<=a&&a<=.75*r,m=this.$el.outerWidth(),g=this.$el.outerHeight(),_=o+s/2-g/2,y=a+n/2-m/2,k=t?"fixed":"absolute",b=f?m:m/2+n,w=g/2,C=p?g/2:0,E=u&&!f?m/2-n:0,O=n,x=v?"bottom":"top",L=2*n,T=L,$=g/2-T/2,B=m/2-L/2,D={};D.top=p?_+"px":"",D.right=c?r-y-m+"px":"",D.bottom=v?l-_-g+"px":"",D.left=u?y+"px":"",D.position=k,S(this.wrapper).css(D),S(this.contentEl).css({width:b+"px",height:w+"px",top:C+"px",right:"0px",bottom:"0px",left:E+"px",padding:O+"px",verticalAlign:x}),S(this.waveEl).css({top:$+"px",left:B+"px",width:L+"px",height:T+"px"})}},{key:"open",value:function(){this.isOpen||("function"==typeof this.options.onOpen&&this.options.onOpen.call(this,this.$origin[0]),this.isOpen=!0,this.wrapper.classList.add("open"),document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound))}},{key:"close",value:function(){this.isOpen&&("function"==typeof this.options.onClose&&this.options.onClose.call(this,this.$origin[0]),this.isOpen=!1,this.wrapper.classList.remove("open"),document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound))}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_TapTarget}},{key:"defaults",get:function(){return e}}]),n}();M.TapTarget=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"tapTarget","M_TapTarget")}(cash),function(d){"use strict";var e={classes:"",dropdownOptions:{}},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return i.$el.hasClass("browser-default")?_possibleConstructorReturn(i):((i.el.M_FormSelect=i).options=d.extend({},n.defaults,e),i.isMultiple=i.$el.prop("multiple"),i.el.tabIndex=-1,i._keysSelected={},i._valueDict={},i._setupDropdown(),i._setupEventHandlers(),i)}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}},{key:"_setupEventHandlers",value:function(){var e=this;this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),this._handleInputClickBound=this._handleInputClick.bind(this),d(this.dropdownOptions).find("li:not(.optgroup)").each(function(t){t.addEventListener("click",e._handleOptionClickBound)}),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}},{key:"_removeEventHandlers",value:function(){var e=this;d(this.dropdownOptions).find("li:not(.optgroup)").each(function(t){t.removeEventListener("click",e._handleOptionClickBound)}),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}},{key:"_handleSelectChange",value:function(t){this._setValueToInput()}},{key:"_handleOptionClick",value:function(t){t.preventDefault();var e=d(t.target).closest("li")[0],i=e.id;if(!d(e).hasClass("disabled")&&!d(e).hasClass("optgroup")&&i.length){var n=!0;if(this.isMultiple){var s=d(this.dropdownOptions).find("li.disabled.selected");s.length&&(s.removeClass("selected"),s.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(s[0].id)),n=this._toggleEntryFromArray(i)}else d(this.dropdownOptions).find("li").removeClass("selected"),d(e).toggleClass("selected",n);d(this._valueDict[i].el).prop("selected")!==n&&(d(this._valueDict[i].el).prop("selected",n),this.$el.trigger("change"))}t.stopPropagation()}},{key:"_handleInputClick",value:function(){this.dropdown&&this.dropdown.isOpen&&(this._setValueToInput(),this._setSelectedStates())}},{key:"_setupDropdown",value:function(){var n=this;this.wrapper=document.createElement("div"),d(this.wrapper).addClass("select-wrapper "+this.options.classes),this.$el.before(d(this.wrapper)),this.wrapper.appendChild(this.el),this.el.disabled&&this.wrapper.classList.add("disabled"),this.$selectOptions=this.$el.children("option, optgroup"),this.dropdownOptions=document.createElement("ul"),this.dropdownOptions.id="select-options-"+M.guid(),d(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")),this.$selectOptions.length&&this.$selectOptions.each(function(t){if(d(t).is("option")){var e=void 0;e=n.isMultiple?n._appendOptionWithIcon(n.$el,t,"multiple"):n._appendOptionWithIcon(n.$el,t),n._addOptionToValueDict(t,e)}else if(d(t).is("optgroup")){var i=d(t).children("option");d(n.dropdownOptions).append(d('<li class="optgroup"><span>'+t.getAttribute("label")+"</span></li>")[0]),i.each(function(t){var e=n._appendOptionWithIcon(n.$el,t,"optgroup-option");n._addOptionToValueDict(t,e)})}}),this.$el.after(this.dropdownOptions),this.input=document.createElement("input"),d(this.input).addClass("select-dropdown dropdown-trigger"),this.input.setAttribute("type","text"),this.input.setAttribute("readonly","true"),this.input.setAttribute("data-target",this.dropdownOptions.id),this.el.disabled&&d(this.input).prop("disabled","true"),this.$el.before(this.input),this._setValueToInput();var t=d('<svg class="caret" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');if(this.$el.before(t[0]),!this.el.disabled){var e=d.extend({},this.options.dropdownOptions);e.onOpenEnd=function(t){var e=d(n.dropdownOptions).find(".selected").first();if(e.length&&(M.keyDown=!0,n.dropdown.focusedIndex=e.index(),n.dropdown._focusFocusedItem(),M.keyDown=!1,n.dropdown.isScrollable)){var i=e[0].getBoundingClientRect().top-n.dropdownOptions.getBoundingClientRect().top;i-=n.dropdownOptions.clientHeight/2,n.dropdownOptions.scrollTop=i}},this.isMultiple&&(e.closeOnClick=!1),this.dropdown=M.Dropdown.init(this.input,e)}this._setSelectedStates()}},{key:"_addOptionToValueDict",value:function(t,e){var i=Object.keys(this._valueDict).length,n=this.dropdownOptions.id+i,s={};e.id=n,s.el=t,s.optionEl=e,this._valueDict[n]=s}},{key:"_removeDropdown",value:function(){d(this.wrapper).find(".caret").remove(),d(this.input).remove(),d(this.dropdownOptions).remove(),d(this.wrapper).before(this.$el),d(this.wrapper).remove()}},{key:"_appendOptionWithIcon",value:function(t,e,i){var n=e.disabled?"disabled ":"",s="optgroup-option"===i?"optgroup-option ":"",o=this.isMultiple?'<label><input type="checkbox"'+n+'"/><span>'+e.innerHTML+"</span></label>":e.innerHTML,a=d("<li></li>"),r=d("<span></span>");r.html(o),a.addClass(n+" "+s),a.append(r);var l=e.getAttribute("data-icon");if(l){var h=d('<img alt="" src="'+l+'">');a.prepend(h)}return d(this.dropdownOptions).append(a[0]),a[0]}},{key:"_toggleEntryFromArray",value:function(t){var e=!this._keysSelected.hasOwnProperty(t),i=d(this._valueDict[t].optionEl);return e?this._keysSelected[t]=!0:delete this._keysSelected[t],i.toggleClass("selected",e),i.find('input[type="checkbox"]').prop("checked",e),i.prop("selected",e),e}},{key:"_setValueToInput",value:function(){var i=[];if(this.$el.find("option").each(function(t){if(d(t).prop("selected")){var e=d(t).text();i.push(e)}}),!i.length){var t=this.$el.find("option:disabled").eq(0);t.length&&""===t[0].value&&i.push(t.text())}this.input.value=i.join(", ")}},{key:"_setSelectedStates",value:function(){for(var t in this._keysSelected={},this._valueDict){var e=this._valueDict[t],i=d(e.el).prop("selected");d(e.optionEl).find('input[type="checkbox"]').prop("checked",i),i?(this._activateOption(d(this.dropdownOptions),d(e.optionEl)),this._keysSelected[t]=!0):d(e.optionEl).removeClass("selected")}}},{key:"_activateOption",value:function(t,e){e&&(this.isMultiple||t.find("li.selected").removeClass("selected"),d(e).addClass("selected"))}},{key:"getSelectedValues",value:function(){var t=[];for(var e in this._keysSelected)t.push(this._valueDict[e].el.value);return t}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_FormSelect}},{key:"defaults",get:function(){return e}}]),n}();M.FormSelect=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"formSelect","M_FormSelect")}(cash),function(s,e){"use strict";var i={},t=function(t){function n(t,e){_classCallCheck(this,n);var i=_possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n,t,e));return(i.el.M_Range=i).options=s.extend({},n.defaults,e),i._mousedown=!1,i._setupThumb(),i._setupEventHandlers(),i}return _inherits(n,Component),_createClass(n,[{key:"destroy",value:function(){this._removeEventHandlers(),this._removeThumb(),this.el.M_Range=void 0}},{key:"_setupEventHandlers",value:function(){this._handleRangeChangeBound=this._handleRangeChange.bind(this),this._handleRangeMousedownTouchstartBound=this._handleRangeMousedownTouchstart.bind(this),this._handleRangeInputMousemoveTouchmoveBound=this._handleRangeInputMousemoveTouchmove.bind(this),this._handleRangeMouseupTouchendBound=this._handleRangeMouseupTouchend.bind(this),this._handleRangeBlurMouseoutTouchleaveBound=this._handleRangeBlurMouseoutTouchleave.bind(this),this.el.addEventListener("change",this._handleRangeChangeBound),this.el.addEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.addEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.addEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.addEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.addEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.addEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("change",this._handleRangeChangeBound),this.el.removeEventListener("mousedown",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("touchstart",this._handleRangeMousedownTouchstartBound),this.el.removeEventListener("input",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mousemove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("touchmove",this._handleRangeInputMousemoveTouchmoveBound),this.el.removeEventListener("mouseup",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("touchend",this._handleRangeMouseupTouchendBound),this.el.removeEventListener("blur",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("mouseout",this._handleRangeBlurMouseoutTouchleaveBound),this.el.removeEventListener("touchleave",this._handleRangeBlurMouseoutTouchleaveBound)}},{key:"_handleRangeChange",value:function(){s(this.value).html(this.$el.val()),s(this.thumb).hasClass("active")||this._showRangeBubble();var t=this._calcRangeOffset();s(this.thumb).addClass("active").css("left",t+"px")}},{key:"_handleRangeMousedownTouchstart",value:function(t){if(s(this.value).html(this.$el.val()),this._mousedown=!0,this.$el.addClass("active"),s(this.thumb).hasClass("active")||this._showRangeBubble(),"input"!==t.type){var e=this._calcRangeOffset();s(this.thumb).addClass("active").css("left",e+"px")}}},{key:"_handleRangeInputMousemoveTouchmove",value:function(){if(this._mousedown){s(this.thumb).hasClass("active")||this._showRangeBubble();var t=this._calcRangeOffset();s(this.thumb).addClass("active").css("left",t+"px"),s(this.value).html(this.$el.val())}}},{key:"_handleRangeMouseupTouchend",value:function(){this._mousedown=!1,this.$el.removeClass("active")}},{key:"_handleRangeBlurMouseoutTouchleave",value:function(){if(!this._mousedown){var t=7+parseInt(this.$el.css("padding-left"))+"px";s(this.thumb).hasClass("active")&&(e.remove(this.thumb),e({targets:this.thumb,height:0,width:0,top:10,easing:"easeOutQuad",marginLeft:t,duration:100})),s(this.thumb).removeClass("active")}}},{key:"_setupThumb",value:function(){this.thumb=document.createElement("span"),this.value=document.createElement("span"),s(this.thumb).addClass("thumb"),s(this.value).addClass("value"),s(this.thumb).append(this.value),this.$el.after(this.thumb)}},{key:"_removeThumb",value:function(){s(this.thumb).remove()}},{key:"_showRangeBubble",value:function(){var t=-7+parseInt(s(this.thumb).parent().css("padding-left"))+"px";e.remove(this.thumb),e({targets:this.thumb,height:30,width:30,top:-30,marginLeft:t,duration:300,easing:"easeOutQuint"})}},{key:"_calcRangeOffset",value:function(){var t=this.$el.width()-15,e=parseFloat(this.$el.attr("max"))||100,i=parseFloat(this.$el.attr("min"))||0;return(parseFloat(this.$el.val())-i)/(e-i)*t}}],[{key:"init",value:function(t,e){return _get(n.__proto__||Object.getPrototypeOf(n),"init",this).call(this,this,t,e)}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Range}},{key:"defaults",get:function(){return i}}]),n}();M.Range=t,M.jQueryLoaded&&M.initializeJqueryWrapper(t,"range","M_Range"),t.init(s("input[type=range]"))}(cash,M.anime);
|
new/admin/class-ht-ctc-admin-chat-page.php
DELETED
@@ -1,821 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Chat settings page - admin
|
4 |
-
*
|
5 |
-
* chat options ..
|
6 |
-
*
|
7 |
-
* @package ctc
|
8 |
-
* @subpackage admin
|
9 |
-
* @since 2.0
|
10 |
-
*/
|
11 |
-
|
12 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
-
|
14 |
-
if ( ! class_exists( 'HT_CTC_Admin_Chat_Page' ) ) :
|
15 |
-
|
16 |
-
class HT_CTC_Admin_Chat_Page {
|
17 |
-
|
18 |
-
public function menu() {
|
19 |
-
|
20 |
-
add_submenu_page(
|
21 |
-
'click-to-chat',
|
22 |
-
'WhatsApp Chat',
|
23 |
-
'WhatsApp Chat',
|
24 |
-
'manage_options',
|
25 |
-
'click-to-chat-chat-feature',
|
26 |
-
array( $this, 'settings_page' )
|
27 |
-
);
|
28 |
-
}
|
29 |
-
|
30 |
-
public function settings_page() {
|
31 |
-
|
32 |
-
if ( ! current_user_can('manage_options') ) {
|
33 |
-
return;
|
34 |
-
}
|
35 |
-
|
36 |
-
?>
|
37 |
-
|
38 |
-
<div class="wrap">
|
39 |
-
|
40 |
-
<?php settings_errors(); ?>
|
41 |
-
|
42 |
-
<div class="row">
|
43 |
-
<div class="col s12 m12 xl7 options">
|
44 |
-
<form action="options.php" method="post" class="">
|
45 |
-
<?php settings_fields( 'ht_ctc_chat_page_settings_fields' ); ?>
|
46 |
-
<?php do_settings_sections( 'ht_ctc_chat_page_settings_sections_do' ) ?>
|
47 |
-
<?php submit_button() ?>
|
48 |
-
</form>
|
49 |
-
</div>
|
50 |
-
<!-- sidebar content -->
|
51 |
-
<div class="col s12 m12 xl4 ht-cc-admin-sidebar">
|
52 |
-
<div style="margin-top: 100px; margin-left: 40px;">
|
53 |
-
<p>
|
54 |
-
Please let us know if you have any suggestions or feedback!! <br>
|
55 |
-
<a href="http://api.whatsapp.com/send?phone=919494429789&text=Hi HoliThemes, I have a Suggestion/Feedback:" target="_blank">WhatsApp</a> <br>
|
56 |
-
mail: wp@holithemes.com
|
57 |
-
</p>
|
58 |
-
|
59 |
-
</div>
|
60 |
-
</div>
|
61 |
-
</div>
|
62 |
-
|
63 |
-
<!-- social links -->
|
64 |
-
<div class="row">
|
65 |
-
<div class="col s12 m12 l12 xl9">
|
66 |
-
<div class="row">
|
67 |
-
|
68 |
-
<div class="col s12 m6">
|
69 |
-
<div class="collection with-header">
|
70 |
-
<div class="collection-header"><bold>HoliThemes On</bold></div>
|
71 |
-
<a target="_blank" href="https://www.facebook.com/holithemes/" class="collection-item">Facebook</a>
|
72 |
-
<a target="_blank" href="https://twitter.com/holithemes" class="collection-item">Twitter</a>
|
73 |
-
<a target="_blank" href="https://www.instagram.com/holithemes/" class="collection-item">Instagram</a>
|
74 |
-
<a target="_blank" href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" class="collection-item">YouTube</a>
|
75 |
-
<a target="_blank" href="https://www.linkedin.com/company/holithemes" class="collection-item">LinkedIn</a>
|
76 |
-
</div>
|
77 |
-
</div>
|
78 |
-
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
</div>
|
82 |
-
|
83 |
-
</div>
|
84 |
-
|
85 |
-
<?php
|
86 |
-
|
87 |
-
}
|
88 |
-
|
89 |
-
|
90 |
-
public function settings() {
|
91 |
-
|
92 |
-
// chat options
|
93 |
-
// register_setting( 'ht_ctc_chat_page_settings_fields', 'ht_ctc_options' , array( $this, 'options_sanitize' ) );
|
94 |
-
register_setting( 'ht_ctc_chat_page_settings_fields', 'ht_ctc_chat_options' , array( $this, 'options_sanitize' ) );
|
95 |
-
|
96 |
-
add_settings_section( 'ht_ctc_chat_page_settings_sections_add', '', array( $this, 'chat_settings_section_cb' ), 'ht_ctc_chat_page_settings_sections_do' );
|
97 |
-
|
98 |
-
add_settings_field( 'number', 'WhatsApp Number', array( $this, 'number_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
99 |
-
add_settings_field( 'prefilled', 'Pre-Filled Message', array( $this, 'prefilled_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
100 |
-
add_settings_field( 'cta', 'Call to Action', array( $this, 'cta_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
101 |
-
add_settings_field( 'ctc_desktop_style', 'Style for Desktop', array( $this, 'ctc_desktop_style_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
102 |
-
add_settings_field( 'ctc_mobile_style', 'Style for Mobile', array( $this, 'ctc_mobile_style_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
103 |
-
add_settings_field( 'ctc_position', 'Position to place', array( $this, 'ctc_position_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
104 |
-
add_settings_field( 'ctc_webandapi', 'Web WhatsApp', array( $this, 'ctc_webandapi_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
105 |
-
add_settings_field( 'ctc_show_hide', 'Show/Hide', array( $this, 'ctc_show_hide_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
106 |
-
add_settings_field( 'chat_shortcode', '', array( $this, 'chat_shortcode_cb' ), 'ht_ctc_chat_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
107 |
-
|
108 |
-
}
|
109 |
-
|
110 |
-
public function chat_settings_section_cb() {
|
111 |
-
?>
|
112 |
-
<h1>Chat</h1>
|
113 |
-
<?php
|
114 |
-
}
|
115 |
-
|
116 |
-
|
117 |
-
// WhatsApp number
|
118 |
-
function number_cb() {
|
119 |
-
$options = get_option('ht_ctc_chat_options');
|
120 |
-
?>
|
121 |
-
<div class="row">
|
122 |
-
<div class="input-field col s12">
|
123 |
-
<input name="ht_ctc_chat_options[number]" value="<?php echo esc_attr( $options['number'] ) ?>" id="whatsapp_number" type="text" class="input-margin">
|
124 |
-
<label for="whatsapp_number">Enter WhatsApp number </label>
|
125 |
-
<p class="description">Enter 'WhatsApp' or 'WhatsApp business' number with country code ( No need to add any prefix "+" )
|
126 |
-
<br> ( e.g. 916123456789 - herein e.g. 91 is country code, 6123456789 is the mobile number ) - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/whatsapp-number/">more info</a> ) </p>
|
127 |
-
</div>
|
128 |
-
</div>
|
129 |
-
<?php
|
130 |
-
}
|
131 |
-
|
132 |
-
// pre-filled - message
|
133 |
-
function prefilled_cb() {
|
134 |
-
$options = get_option('ht_ctc_chat_options');
|
135 |
-
?>
|
136 |
-
<div class="row">
|
137 |
-
<div class="input-field col s12">
|
138 |
-
<input name="ht_ctc_chat_options[pre_filled]" value="<?php echo esc_attr( $options['pre_filled'] ) ?>" id="pre_filled" type="text" class="input-margin">
|
139 |
-
<label for="pre_filled">Pre-filled message</label>
|
140 |
-
<p class="description">Text that appears in the WhatsApp Chat window. Add placeholders {{url}}, {{title}} to replace current webpage URL, Post title - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/pre-filled-message/">more info</a> </p>
|
141 |
-
</div>
|
142 |
-
</div>
|
143 |
-
<?php
|
144 |
-
}
|
145 |
-
|
146 |
-
// call to action
|
147 |
-
function cta_cb() {
|
148 |
-
$options = get_option('ht_ctc_chat_options');
|
149 |
-
?>
|
150 |
-
<div class="row">
|
151 |
-
<div class="input-field col s12">
|
152 |
-
<input name="ht_ctc_chat_options[call_to_action]" value="<?php echo esc_attr( $options['call_to_action'] ) ?>" id="call_to_action" type="text" class="input-margin">
|
153 |
-
<label for="call_to_action">Call to Action</label>
|
154 |
-
<p class="description"> Text that appears along with WhatsApp icon/button - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/call-to-action/">more info</a> </p>
|
155 |
-
</div>
|
156 |
-
</div>
|
157 |
-
<?php
|
158 |
-
}
|
159 |
-
|
160 |
-
|
161 |
-
// Desktop - select style
|
162 |
-
function ctc_desktop_style_cb() {
|
163 |
-
$options = get_option('ht_ctc_chat_options');
|
164 |
-
$style_value = esc_attr( $options['style_desktop'] );
|
165 |
-
?>
|
166 |
-
<div class="row">
|
167 |
-
<div class="input-field col s12" style="margin-bottom: 0px;">
|
168 |
-
<select name="ht_ctc_chat_options[style_desktop]" class="select-2">
|
169 |
-
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
170 |
-
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
171 |
-
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
172 |
-
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
173 |
-
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
174 |
-
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
175 |
-
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
176 |
-
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
177 |
-
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
178 |
-
</select>
|
179 |
-
<label>Select Style for Desktop</label>
|
180 |
-
</div>
|
181 |
-
</div>
|
182 |
-
|
183 |
-
<p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/">List of syles</a> </p>
|
184 |
-
<p class="description"> Can customize each style - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a> </p>
|
185 |
-
<?php
|
186 |
-
}
|
187 |
-
|
188 |
-
|
189 |
-
// Mobile - select style
|
190 |
-
function ctc_mobile_style_cb() {
|
191 |
-
$options = get_option('ht_ctc_chat_options');
|
192 |
-
$style_value = esc_attr( $options['style_mobile'] );
|
193 |
-
?>
|
194 |
-
<div class="row" style="margin-bottom: 0px;">
|
195 |
-
<div class="input-field col s12">
|
196 |
-
<select name="ht_ctc_chat_options[style_mobile]" class="select-2">
|
197 |
-
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
198 |
-
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
199 |
-
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
200 |
-
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
201 |
-
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
202 |
-
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
203 |
-
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
204 |
-
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
205 |
-
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
206 |
-
</select>
|
207 |
-
<label>Select Style for Mobile</label>
|
208 |
-
</div>
|
209 |
-
</div>
|
210 |
-
|
211 |
-
<!-- <p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/">List of syles</a> </p>
|
212 |
-
<p class="description"> Can customize each style - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a> </p> -->
|
213 |
-
<?php
|
214 |
-
}
|
215 |
-
|
216 |
-
|
217 |
-
// position to place
|
218 |
-
function ctc_position_cb() {
|
219 |
-
$options = get_option('ht_ctc_chat_options');
|
220 |
-
|
221 |
-
$side_1 = esc_attr( $options['side_1'] );
|
222 |
-
$side_1_value = esc_attr( $options['side_1_value'] );
|
223 |
-
$side_2 = esc_attr( $options['side_2'] );
|
224 |
-
?>
|
225 |
-
<!-- side - 1 -->
|
226 |
-
<div class="row">
|
227 |
-
<div class="input-field col s6">
|
228 |
-
<select name="ht_ctc_chat_options[side_1]" class="select-2">
|
229 |
-
<option value="bottom" <?php echo $side_1 == 'bottom' ? 'SELECTED' : ''; ?> >bottom</option>
|
230 |
-
<option value="top" <?php echo $side_1 == 'top' ? 'SELECTED' : ''; ?> >top</option>
|
231 |
-
</select>
|
232 |
-
<label>top / bottom </label>
|
233 |
-
</div>
|
234 |
-
<div class="input-field col s6">
|
235 |
-
<input name="ht_ctc_chat_options[side_1_value]" value="<?php echo esc_attr( $options['side_1_value'] ) ?>" id="side_1_value" type="text" class="input-margin">
|
236 |
-
<label for="side_1_value">e.g. 10px</label>
|
237 |
-
</div>
|
238 |
-
</div>
|
239 |
-
|
240 |
-
|
241 |
-
<!-- side - 2 -->
|
242 |
-
<div class="row">
|
243 |
-
<div class="input-field col s6">
|
244 |
-
<select name="ht_ctc_chat_options[side_2]" class="select-2">
|
245 |
-
<option value="right" <?php echo $side_2 == 'right' ? 'SELECTED' : ''; ?> >right</option>
|
246 |
-
<option value="left" <?php echo $side_2 == 'left' ? 'SELECTED' : ''; ?> >left</option>
|
247 |
-
</select>
|
248 |
-
<label>right / left</label>
|
249 |
-
</div>
|
250 |
-
|
251 |
-
<div class="input-field col s6">
|
252 |
-
<input name="ht_ctc_chat_options[side_2_value]" value="<?php echo esc_attr( $options['side_2_value'] ) ?>" id="side_2_value" type="text" class="input-margin">
|
253 |
-
<label for="side_2_value">e.g. 10px</label>
|
254 |
-
</div>
|
255 |
-
</div>
|
256 |
-
|
257 |
-
<p class="description">Add css units as suffix - e.g. 10px, 50% - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/position-to-place/">more info</a> </p>
|
258 |
-
<?php
|
259 |
-
}
|
260 |
-
|
261 |
-
|
262 |
-
// If checked web / api whatsapp link. If unchecked wa.me links
|
263 |
-
function ctc_webandapi_cb() {
|
264 |
-
$options = get_option('ht_ctc_chat_options');
|
265 |
-
|
266 |
-
|
267 |
-
if ( isset( $options['webandapi'] ) ) {
|
268 |
-
?>
|
269 |
-
<p>
|
270 |
-
<label>
|
271 |
-
<input name="ht_ctc_chat_options[webandapi]" type="checkbox" value="1" <?php checked( $options['webandapi'], 1 ); ?> id="webandapi" />
|
272 |
-
<span>Web WhatsApp on Desktop</span>
|
273 |
-
</label>
|
274 |
-
</p>
|
275 |
-
<?php
|
276 |
-
} else {
|
277 |
-
?>
|
278 |
-
<p>
|
279 |
-
<label>
|
280 |
-
<input name="ht_ctc_chat_options[webandapi]" type="checkbox" value="1" id="webandapi" />
|
281 |
-
<span>Web WhatsApp on Desktop</span>
|
282 |
-
</label>
|
283 |
-
</p>
|
284 |
-
<?php
|
285 |
-
}
|
286 |
-
?>
|
287 |
-
<p class="description">Open Web.WhatsApp directly on Desktop - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/web-whatsapp/">more info</a> </p>
|
288 |
-
<p class="description">if cache plugins, not detecting the device uncheck this option</p>
|
289 |
-
<p class="description"></p>
|
290 |
-
<?php
|
291 |
-
}
|
292 |
-
|
293 |
-
|
294 |
-
// show/hide
|
295 |
-
function ctc_show_hide_cb() {
|
296 |
-
|
297 |
-
|
298 |
-
$options = get_option('ht_ctc_chat_options');
|
299 |
-
|
300 |
-
$show_or_hide = esc_attr( $options['show_or_hide'] );
|
301 |
-
?>
|
302 |
-
|
303 |
-
<ul class="collapsible">
|
304 |
-
<li>
|
305 |
-
<div class="collapsible-header">Show/Hide</div>
|
306 |
-
<div class="collapsible-body">
|
307 |
-
|
308 |
-
<?php
|
309 |
-
|
310 |
-
|
311 |
-
// Hide on Mobile Devices
|
312 |
-
if ( isset( $options['hideon_mobile'] ) ) {
|
313 |
-
?>
|
314 |
-
<p>
|
315 |
-
<label>
|
316 |
-
<input name="ht_ctc_chat_options[hideon_mobile]" type="checkbox" value="1" <?php checked( $options['hideon_mobile'], 1 ); ?> id="hideon_mobile" />
|
317 |
-
<span>Hide on - Mobile Devices</span>
|
318 |
-
</label>
|
319 |
-
</p>
|
320 |
-
<?php
|
321 |
-
} else {
|
322 |
-
?>
|
323 |
-
<p>
|
324 |
-
<label>
|
325 |
-
<input name="ht_ctc_chat_options[hideon_mobile]" type="checkbox" value="1" id="hideon_mobile" />
|
326 |
-
<span>Hide on - Mobile Devices</span>
|
327 |
-
</label>
|
328 |
-
</p>
|
329 |
-
<?php
|
330 |
-
}
|
331 |
-
|
332 |
-
// Hide on Desktop Devices
|
333 |
-
if ( isset( $options['hideon_desktop'] ) ) {
|
334 |
-
?>
|
335 |
-
<p>
|
336 |
-
<label>
|
337 |
-
<input name="ht_ctc_chat_options[hideon_desktop]" type="checkbox" value="1" <?php checked( $options['hideon_desktop'], 1 ); ?> id="hideon_desktop" />
|
338 |
-
<span>Hide on - Desktop Devices</span>
|
339 |
-
</label>
|
340 |
-
</p>
|
341 |
-
<?php
|
342 |
-
} else {
|
343 |
-
?>
|
344 |
-
<p>
|
345 |
-
<label>
|
346 |
-
<input name="ht_ctc_chat_options[hideon_desktop]" type="checkbox" value="1" id="hideon_desktop" />
|
347 |
-
<span>Hide on - Desktop Devices</span>
|
348 |
-
</label>
|
349 |
-
</p>
|
350 |
-
<?php
|
351 |
-
}
|
352 |
-
?>
|
353 |
-
<!-- <p class="description">plugin detects device based on HTTP User agent </p> -->
|
354 |
-
<p class="description">If working in reverse it might be the cache plugin not detecting the devices - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/hide-based-on-device/">more info</a> </p>
|
355 |
-
|
356 |
-
|
357 |
-
<div class="row" style="margin-bottom: 0px;">
|
358 |
-
<div class="input-field col s12">
|
359 |
-
<select name="ht_ctc_chat_options[show_or_hide]" class="select_show_or_hide">
|
360 |
-
<option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> >Hide on selected pages</option>
|
361 |
-
<option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> >Show on selected pages</option>
|
362 |
-
</select>
|
363 |
-
<!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
|
364 |
-
</div>
|
365 |
-
</div>
|
366 |
-
<?php
|
367 |
-
|
368 |
-
// ######### Hide #########
|
369 |
-
|
370 |
-
?>
|
371 |
-
<p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px">
|
372 |
-
<?php echo 'Select pages to Hide styles <span style="color: green;"> ( Default Shows on all page ) ' ?>
|
373 |
-
</p>
|
374 |
-
<!-- <br><br> -->
|
375 |
-
<?php
|
376 |
-
|
377 |
-
// checkboxes - Hide based on Type of posts
|
378 |
-
|
379 |
-
// Single Posts
|
380 |
-
if ( isset( $options['hideon_posts'] ) ) {
|
381 |
-
?>
|
382 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
383 |
-
<label>
|
384 |
-
<input name="ht_ctc_chat_options[hideon_posts]" type="checkbox" value="1" <?php checked( $options['hideon_posts'], 1 ); ?> id="filled-in-box1" />
|
385 |
-
<span>Hide on - Posts</span>
|
386 |
-
</label>
|
387 |
-
</p>
|
388 |
-
<?php
|
389 |
-
} else {
|
390 |
-
?>
|
391 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
392 |
-
<label>
|
393 |
-
<input name="ht_ctc_chat_options[hideon_posts]" type="checkbox" value="1" id="filled-in-box1" />
|
394 |
-
<span>Hide on - Posts</span>
|
395 |
-
</label>
|
396 |
-
</p>
|
397 |
-
<?php
|
398 |
-
}
|
399 |
-
|
400 |
-
|
401 |
-
// Page
|
402 |
-
if ( isset( $options['hideon_page'] ) ) {
|
403 |
-
?>
|
404 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
405 |
-
<label>
|
406 |
-
<input name="ht_ctc_chat_options[hideon_page]" type="checkbox" value="1" <?php checked( $options['hideon_page'], 1 ); ?> id="filled-in-box2" />
|
407 |
-
<span>Hide on - Pages</span>
|
408 |
-
</label>
|
409 |
-
</p>
|
410 |
-
<?php
|
411 |
-
} else {
|
412 |
-
?>
|
413 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
414 |
-
<label>
|
415 |
-
<input name="ht_ctc_chat_options[hideon_page]" type="checkbox" value="1" id="filled-in-box2" />
|
416 |
-
<span>Hide on - Pages</span>
|
417 |
-
</label>
|
418 |
-
</p>
|
419 |
-
<?php
|
420 |
-
}
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
// Home Page
|
426 |
-
// is_home and is_front_page - combined. calling as home/front page
|
427 |
-
if ( isset( $options['hideon_homepage'] ) ) {
|
428 |
-
?>
|
429 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
430 |
-
<label>
|
431 |
-
<input name="ht_ctc_chat_options[hideon_homepage]" type="checkbox" value="1" <?php checked( $options['hideon_homepage'], 1 ); ?> id="filled-in-box3" />
|
432 |
-
<span>Hide on - Home/Front Page</span>
|
433 |
-
</label>
|
434 |
-
</p>
|
435 |
-
<?php
|
436 |
-
} else {
|
437 |
-
?>
|
438 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
439 |
-
<label>
|
440 |
-
<input name="ht_ctc_chat_options[hideon_homepage]" type="checkbox" value="1" id="filled-in-box3" />
|
441 |
-
<span>Hide on - Home/Front Page</span>
|
442 |
-
</label>
|
443 |
-
</p>
|
444 |
-
<?php
|
445 |
-
}
|
446 |
-
|
447 |
-
|
448 |
-
// Category
|
449 |
-
if ( isset( $options['hideon_category'] ) ) {
|
450 |
-
?>
|
451 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
452 |
-
<label>
|
453 |
-
<input name="ht_ctc_chat_options[hideon_category]" type="checkbox" value="1" <?php checked( $options['hideon_category'], 1 ); ?> id="filled-in-box5" />
|
454 |
-
<span>Hide on - Category</span>
|
455 |
-
</label>
|
456 |
-
</p>
|
457 |
-
<?php
|
458 |
-
} else {
|
459 |
-
?>
|
460 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
461 |
-
<label>
|
462 |
-
<input name="ht_ctc_chat_options[hideon_category]" type="checkbox" value="1" id="filled-in-box5" />
|
463 |
-
<span>Hide on - Category</span>
|
464 |
-
</label>
|
465 |
-
</p>
|
466 |
-
<?php
|
467 |
-
}
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
// Archive
|
472 |
-
if ( isset( $options['hideon_archive'] ) ) {
|
473 |
-
?>
|
474 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
475 |
-
<label>
|
476 |
-
<input name="ht_ctc_chat_options[hideon_archive]" type="checkbox" value="1" <?php checked( $options['hideon_archive'], 1 ); ?> id="filled-in-box6" />
|
477 |
-
<span>Hide on - Archive</span>
|
478 |
-
</label>
|
479 |
-
</p>
|
480 |
-
<?php
|
481 |
-
} else {
|
482 |
-
?>
|
483 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
484 |
-
<label>
|
485 |
-
<input name="ht_ctc_chat_options[hideon_archive]" type="checkbox" value="1" id="filled-in-box6" />
|
486 |
-
<span>Hide on - Archive</span>
|
487 |
-
</label>
|
488 |
-
</p>
|
489 |
-
<?php
|
490 |
-
}
|
491 |
-
|
492 |
-
|
493 |
-
// 404 Page
|
494 |
-
if ( isset( $options['hideon_404'] ) ) {
|
495 |
-
?>
|
496 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
497 |
-
<label>
|
498 |
-
<input name="ht_ctc_chat_options[hideon_404]" type="checkbox" value="1" <?php checked( $options['hideon_404'], 1 ); ?> id="filled-in-box7" />
|
499 |
-
<span>Hide on - 404 Page</span>
|
500 |
-
</label>
|
501 |
-
</p>
|
502 |
-
<?php
|
503 |
-
} else {
|
504 |
-
?>
|
505 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
506 |
-
<label>
|
507 |
-
<input name="ht_ctc_chat_options[hideon_404]" type="checkbox" value="1" id="filled-in-box7" />
|
508 |
-
<span>Hide on - 404 Page</span>
|
509 |
-
</label>
|
510 |
-
</p>
|
511 |
-
<?php
|
512 |
-
}
|
513 |
-
|
514 |
-
|
515 |
-
// WooCommerce single product pages
|
516 |
-
if ( isset( $options['hideon_wooproduct'] ) ) {
|
517 |
-
?>
|
518 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
519 |
-
<label>
|
520 |
-
<input name="ht_ctc_chat_options[hideon_wooproduct]" type="checkbox" value="1" <?php checked( $options['hideon_wooproduct'], 1 ); ?> id="filled-in-box7" />
|
521 |
-
<span>Hide on - WooCommerce single product pages</span>
|
522 |
-
</label>
|
523 |
-
</p>
|
524 |
-
<?php
|
525 |
-
} else {
|
526 |
-
?>
|
527 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
528 |
-
<label>
|
529 |
-
<input name="ht_ctc_chat_options[hideon_wooproduct]" type="checkbox" value="1" id="filled-in-box7" />
|
530 |
-
<span>Hide on - WooCommerce single product pages</span>
|
531 |
-
</label>
|
532 |
-
</p>
|
533 |
-
<?php
|
534 |
-
}
|
535 |
-
|
536 |
-
|
537 |
-
?>
|
538 |
-
<p class="description ctc_show_hide_display show-hide_display-none hidebased">Check to hide Styles based on the type of pages</p>
|
539 |
-
<?php
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
// ID's list to hide styles
|
545 |
-
|
546 |
-
?>
|
547 |
-
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
548 |
-
<div class="input-field col s12">
|
549 |
-
<input name="ht_ctc_chat_options[list_hideon_pages]" value="<?php echo esc_attr( $options['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
|
550 |
-
<label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
|
551 |
-
<p class="description"> Add Post, Page, Media - ID's to hide, can add multiple id's by separating with a comma ( , ) </p>
|
552 |
-
</div>
|
553 |
-
</div>
|
554 |
-
<?php
|
555 |
-
|
556 |
-
|
557 |
-
// Categorys list - to hide
|
558 |
-
|
559 |
-
?>
|
560 |
-
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
561 |
-
<div class="input-field col s12">
|
562 |
-
<input name="ht_ctc_chat_options[list_hideon_cat]" value="<?php echo esc_attr( $options['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
|
563 |
-
<label for="ccw_list_cat_tohide"><?php _e( 'Category name\'s to Hide - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
564 |
-
<p class="description">Add Categories name to hide, can add multiple Categories by separating with a comma ( , ) </p>
|
565 |
-
</div>
|
566 |
-
</div>
|
567 |
-
<?php
|
568 |
-
|
569 |
-
|
570 |
-
// ######### Show #########
|
571 |
-
|
572 |
-
|
573 |
-
?>
|
574 |
-
<p class="description ctc_show_hide_display show-hide_display-none showbased" style="margin-bottom: 15px">
|
575 |
-
<?php echo 'Select pages to display styles <span style="background-color: #dddddd; color: red;"> ( Default hides on all page ) ' ?>
|
576 |
-
</p>
|
577 |
-
<?php
|
578 |
-
|
579 |
-
// checkboxes - Show based on Type of posts
|
580 |
-
|
581 |
-
// Single Posts
|
582 |
-
if ( isset( $options['showon_posts'] ) ) {
|
583 |
-
?>
|
584 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
585 |
-
<label>
|
586 |
-
<input name="ht_ctc_chat_options[showon_posts]" type="checkbox" value="1" <?php checked( $options['showon_posts'], 1 ); ?> id="show_filled-in-box1" />
|
587 |
-
<span>Show on - Posts</span>
|
588 |
-
</label>
|
589 |
-
</p>
|
590 |
-
<?php
|
591 |
-
} else {
|
592 |
-
?>
|
593 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
594 |
-
<label>
|
595 |
-
<input name="ht_ctc_chat_options[showon_posts]" type="checkbox" value="1" id="show_filled-in-box1" />
|
596 |
-
<span>Show on - Posts</span>
|
597 |
-
</label>
|
598 |
-
</p>
|
599 |
-
<?php
|
600 |
-
}
|
601 |
-
|
602 |
-
|
603 |
-
// Page
|
604 |
-
if ( isset( $options['showon_page'] ) ) {
|
605 |
-
?>
|
606 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
607 |
-
<label>
|
608 |
-
<input name="ht_ctc_chat_options[showon_page]" type="checkbox" value="1" <?php checked( $options['showon_page'], 1 ); ?> id="show_filled-in-box2" />
|
609 |
-
<span>Show on - Pages</span>
|
610 |
-
</label>
|
611 |
-
</p>
|
612 |
-
<?php
|
613 |
-
} else {
|
614 |
-
?>
|
615 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
616 |
-
<label>
|
617 |
-
<input name="ht_ctc_chat_options[showon_page]" type="checkbox" value="1" id="show_filled-in-box2" />
|
618 |
-
<span>Show on - Pages</span>
|
619 |
-
</label>
|
620 |
-
</p>
|
621 |
-
<?php
|
622 |
-
}
|
623 |
-
|
624 |
-
|
625 |
-
// Home Page
|
626 |
-
// is_home and is_front_page - combined. calling as home/front page
|
627 |
-
if ( isset( $options['showon_homepage'] ) ) {
|
628 |
-
?>
|
629 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
630 |
-
<label>
|
631 |
-
<input name="ht_ctc_chat_options[showon_homepage]" type="checkbox" value="1" <?php checked( $options['showon_homepage'], 1 ); ?> id="show_filled-in-box3" />
|
632 |
-
<span>Show on - Home/Front Page</span>
|
633 |
-
</label>
|
634 |
-
</p>
|
635 |
-
<?php
|
636 |
-
} else {
|
637 |
-
?>
|
638 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
639 |
-
<label>
|
640 |
-
<input name="ht_ctc_chat_options[showon_homepage]" type="checkbox" value="1" id="show_filled-in-box3" />
|
641 |
-
<span>Show on - Home/Front Page</span>
|
642 |
-
</label>
|
643 |
-
</p>
|
644 |
-
<?php
|
645 |
-
}
|
646 |
-
|
647 |
-
|
648 |
-
// Category
|
649 |
-
if ( isset( $options['showon_category'] ) ) {
|
650 |
-
?>
|
651 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
652 |
-
<label>
|
653 |
-
<input name="ht_ctc_chat_options[showon_category]" type="checkbox" value="1" <?php checked( $options['showon_category'], 1 ); ?> id="show_filled-in-box5" />
|
654 |
-
<span>Show on - Category</span>
|
655 |
-
</label>
|
656 |
-
</p>
|
657 |
-
<?php
|
658 |
-
} else {
|
659 |
-
?>
|
660 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
661 |
-
<label>
|
662 |
-
<input name="ht_ctc_chat_options[showon_category]" type="checkbox" value="1" id="show_filled-in-box5" />
|
663 |
-
<span>Show on - Category</span>
|
664 |
-
</label>
|
665 |
-
</p>
|
666 |
-
<?php
|
667 |
-
}
|
668 |
-
|
669 |
-
// Archive
|
670 |
-
if ( isset( $options['showon_archive'] ) ) {
|
671 |
-
?>
|
672 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
673 |
-
<label>
|
674 |
-
<input name="ht_ctc_chat_options[showon_archive]" type="checkbox" value="1" <?php checked( $options['showon_archive'], 1 ); ?> id="show_filled-in-box6" />
|
675 |
-
<span>Show on - Archive</span>
|
676 |
-
</label>
|
677 |
-
</p>
|
678 |
-
<?php
|
679 |
-
} else {
|
680 |
-
?>
|
681 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
682 |
-
<label>
|
683 |
-
<input name="ht_ctc_chat_options[showon_archive]" type="checkbox" value="1" id="show_filled-in-box6" />
|
684 |
-
<span>Show on - Archive</span>
|
685 |
-
</label>
|
686 |
-
</p>
|
687 |
-
<?php
|
688 |
-
}
|
689 |
-
|
690 |
-
|
691 |
-
// 404 Page
|
692 |
-
if ( isset( $options['showon_404'] ) ) {
|
693 |
-
?>
|
694 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
695 |
-
<label>
|
696 |
-
<input name="ht_ctc_chat_options[showon_404]" type="checkbox" value="1" <?php checked( $options['showon_404'], 1 ); ?> id="show_filled-in-box7" />
|
697 |
-
<span>Show on - 404 Page</span>
|
698 |
-
</label>
|
699 |
-
</p>
|
700 |
-
<?php
|
701 |
-
} else {
|
702 |
-
?>
|
703 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
704 |
-
<label>
|
705 |
-
<input name="ht_ctc_chat_options[showon_404]" type="checkbox" value="1" id="show_filled-in-box7" />
|
706 |
-
<span>Show on - 404 Page</span>
|
707 |
-
</label>
|
708 |
-
</p>
|
709 |
-
<?php
|
710 |
-
}
|
711 |
-
|
712 |
-
|
713 |
-
// WooCommerce single product pages
|
714 |
-
if ( isset( $options['showon_wooproduct'] ) ) {
|
715 |
-
?>
|
716 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
717 |
-
<label>
|
718 |
-
<input name="ht_ctc_chat_options[showon_wooproduct]" type="checkbox" value="1" <?php checked( $options['showon_wooproduct'], 1 ); ?> id="show_filled-in-box7" />
|
719 |
-
<span>Show on - WooCommerce Single product pages</span>
|
720 |
-
</label>
|
721 |
-
</p>
|
722 |
-
<?php
|
723 |
-
} else {
|
724 |
-
?>
|
725 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
726 |
-
<label>
|
727 |
-
<input name="ht_ctc_chat_options[showon_wooproduct]" type="checkbox" value="1" id="show_filled-in-box7" />
|
728 |
-
<span>Show on - WooCommerce Single product pages</span>
|
729 |
-
</label>
|
730 |
-
</p>
|
731 |
-
<?php
|
732 |
-
}
|
733 |
-
|
734 |
-
|
735 |
-
?>
|
736 |
-
<p class="description ctc_show_hide_display show-hide_display-none showbased">Check to display Styles based on type of the page</p>
|
737 |
-
<?php
|
738 |
-
|
739 |
-
|
740 |
-
// ID's list to show styles
|
741 |
-
|
742 |
-
?>
|
743 |
-
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
744 |
-
<div class="input-field col s12">
|
745 |
-
<input name="ht_ctc_chat_options[list_showon_pages]" value="<?php echo esc_attr( $options['list_showon_pages'] ) ?>" id="ccw_list_id_toshow" type="text" class="input-margin">
|
746 |
-
<label for="ccw_list_id_toshow">Id's list to show - add ',' after each id </label>
|
747 |
-
<p class="description"> Add Post, Page, Media - ID's to show styles, can add multiple id's by separating with a comma ( , ) </p>
|
748 |
-
</div>
|
749 |
-
</div>
|
750 |
-
<?php
|
751 |
-
|
752 |
-
|
753 |
-
// Categorys list - to show
|
754 |
-
|
755 |
-
// $ccw_list_cat_toshow = get_option('ht_ctc_chat_options');
|
756 |
-
|
757 |
-
?>
|
758 |
-
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
759 |
-
<div class="input-field col s12">
|
760 |
-
<input name="ht_ctc_chat_options[list_showon_cat]" value="<?php echo esc_attr( $options['list_showon_cat'] ) ?>" id="ccw_list_cat_toshow" type="text" class="input-margin">
|
761 |
-
<label for="ccw_list_cat_toshow"><?php _e( 'Category name\'s to Show - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
762 |
-
<p class="description">Add Categories name to show styles, can add multiple Categories by separating with a comma ( , ) </p>
|
763 |
-
</div>
|
764 |
-
</div>
|
765 |
-
|
766 |
-
|
767 |
-
<p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/show-hide-styles/">more info</a> </p>
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
</div>
|
772 |
-
</li>
|
773 |
-
<ul>
|
774 |
-
|
775 |
-
|
776 |
-
<?php
|
777 |
-
|
778 |
-
}
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
function chat_shortcode_cb() {
|
783 |
-
?>
|
784 |
-
<p class="description">Shorcodes for Chat: [ht-ctc-chat] - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/shortcodes-chat">more info</a></p>
|
785 |
-
<?php
|
786 |
-
}
|
787 |
-
|
788 |
-
|
789 |
-
/**
|
790 |
-
* Sanitize each setting field as needed
|
791 |
-
*
|
792 |
-
* @since 2.0
|
793 |
-
* @param array $input Contains all settings fields as array keys
|
794 |
-
*/
|
795 |
-
public function options_sanitize( $input ) {
|
796 |
-
|
797 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
798 |
-
wp_die( 'not allowed to modify - please contact admin ' );
|
799 |
-
}
|
800 |
-
|
801 |
-
$new_input = array();
|
802 |
-
|
803 |
-
foreach ($input as $key => $value) {
|
804 |
-
if( isset( $input[$key] ) ) {
|
805 |
-
$new_input[$key] = sanitize_text_field( $input[$key] );
|
806 |
-
}
|
807 |
-
}
|
808 |
-
|
809 |
-
|
810 |
-
return $new_input;
|
811 |
-
}
|
812 |
-
|
813 |
-
|
814 |
-
}
|
815 |
-
|
816 |
-
$ht_ctc_admin_chat_page = new HT_CTC_Admin_Chat_Page();
|
817 |
-
|
818 |
-
add_action('admin_menu', array($ht_ctc_admin_chat_page, 'menu') );
|
819 |
-
add_action('admin_init', array($ht_ctc_admin_chat_page, 'settings') );
|
820 |
-
|
821 |
-
endif; // END class_exists check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new/admin/class-ht-ctc-admin-customize-styles.php
CHANGED
@@ -1,910 +1,898 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Customize Styles ( cs )
|
4 |
-
*
|
5 |
-
* @package Admin
|
6 |
-
* @since 2.0
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
if ( ! class_exists( 'HT_CTC_Admin_Customize_Styles' ) ) :
|
12 |
-
|
13 |
-
class HT_CTC_Admin_Customize_Styles {
|
14 |
-
|
15 |
-
public function menu() {
|
16 |
-
|
17 |
-
add_submenu_page(
|
18 |
-
'click-to-chat',
|
19 |
-
'Customize Styles',
|
20 |
-
'Customize Styles',
|
21 |
-
'manage_options',
|
22 |
-
'click-to-chat-customize-styles',
|
23 |
-
array( $this, 'settings_page' )
|
24 |
-
);
|
25 |
-
}
|
26 |
-
|
27 |
-
public function settings_page() {
|
28 |
-
|
29 |
-
if ( ! current_user_can('manage_options') ) {
|
30 |
-
return;
|
31 |
-
}
|
32 |
-
|
33 |
-
?>
|
34 |
-
|
35 |
-
<div class="wrap">
|
36 |
-
|
37 |
-
<?php settings_errors(); ?>
|
38 |
-
|
39 |
-
<div class="row">
|
40 |
-
<div class="col s12 m12 xl8 options">
|
41 |
-
<form action="options.php" method="post" class="">
|
42 |
-
<?php settings_fields( 'ht_ctc_cs_page_settings_fields' ); ?>
|
43 |
-
<?php do_settings_sections( 'ht_ctc_cs_page_settings_sections_do' ) ?>
|
44 |
-
<?php submit_button() ?>
|
45 |
-
</form>
|
46 |
-
</div>
|
47 |
-
<!-- <div class="col s12 m12 xl6 ht-cc-admin-sidebar">
|
48 |
-
</div> -->
|
49 |
-
</div>
|
50 |
-
|
51 |
-
</div>
|
52 |
-
|
53 |
-
<?php
|
54 |
-
|
55 |
-
}
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
public function settings() {
|
60 |
-
|
61 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s1' , array( $this, 'options_sanitize' ) );
|
62 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s2' , array( $this, 'options_sanitize' ) );
|
63 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s3' , array( $this, 'options_sanitize' ) );
|
64 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s4' , array( $this, 'options_sanitize' ) );
|
65 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s5' , array( $this, 'options_sanitize' ) );
|
66 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s6' , array( $this, 'options_sanitize' ) );
|
67 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s7' , array( $this, 'options_sanitize' ) );
|
68 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s8' , array( $this, 'options_sanitize' ) );
|
69 |
-
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s99' , array( $this, 'options_sanitize' ) );
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
add_settings_field( '
|
75 |
-
add_settings_field( '
|
76 |
-
add_settings_field( '
|
77 |
-
add_settings_field( '
|
78 |
-
add_settings_field( '
|
79 |
-
add_settings_field( '
|
80 |
-
add_settings_field( '
|
81 |
-
add_settings_field( '
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
<
|
101 |
-
<
|
102 |
-
|
103 |
-
<
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
</
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
<div class="
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
<
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
</div>
|
228 |
-
|
229 |
-
</
|
230 |
-
</
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
<
|
245 |
-
<
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
<
|
266 |
-
</div>
|
267 |
-
</div>
|
268 |
-
|
269 |
-
<!--
|
270 |
-
<div class="row">
|
271 |
-
<div class="col s6">
|
272 |
-
<p>
|
273 |
-
</div>
|
274 |
-
<div class="input-field col s6">
|
275 |
-
<input name="
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
<div class="
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
<div class="col s6">
|
305 |
-
<
|
306 |
-
</div>
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
<
|
317 |
-
</div>
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
<
|
328 |
-
</div>
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
<div class="col s6">
|
337 |
-
<
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
<
|
361 |
-
</div>
|
362 |
-
</div>
|
363 |
-
|
364 |
-
<!--
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
<
|
372 |
-
</div>
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
<p>
|
379 |
-
</div>
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
<!-- <
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
</
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
<div class="
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
<div class="col s6">
|
593 |
-
<
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
<
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
<
|
618 |
-
<
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
<div class="
|
638 |
-
<
|
639 |
-
</div>
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
<p
|
651 |
-
</div>
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
</div>
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
<div class="
|
684 |
-
<
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
<div class="
|
696 |
-
<
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
</div>
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
<
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
</div>
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
</
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
<div class="
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
</div>
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
</
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
<
|
858 |
-
<
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
}
|
903 |
-
|
904 |
-
$ht_ctc_admin_customize_styles = new HT_CTC_Admin_Customize_Styles();
|
905 |
-
|
906 |
-
add_action('admin_menu', array($ht_ctc_admin_customize_styles, 'menu') );
|
907 |
-
add_action('admin_init', array($ht_ctc_admin_customize_styles, 'settings') );
|
908 |
-
|
909 |
-
|
910 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Customize Styles ( cs )
|
4 |
+
*
|
5 |
+
* @package Admin
|
6 |
+
* @since 2.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
if ( ! class_exists( 'HT_CTC_Admin_Customize_Styles' ) ) :
|
12 |
+
|
13 |
+
class HT_CTC_Admin_Customize_Styles {
|
14 |
+
|
15 |
+
public function menu() {
|
16 |
+
|
17 |
+
add_submenu_page(
|
18 |
+
'click-to-chat',
|
19 |
+
'Customize Styles',
|
20 |
+
'Customize Styles',
|
21 |
+
'manage_options',
|
22 |
+
'click-to-chat-customize-styles',
|
23 |
+
array( $this, 'settings_page' )
|
24 |
+
);
|
25 |
+
}
|
26 |
+
|
27 |
+
public function settings_page() {
|
28 |
+
|
29 |
+
if ( ! current_user_can('manage_options') ) {
|
30 |
+
return;
|
31 |
+
}
|
32 |
+
|
33 |
+
?>
|
34 |
+
|
35 |
+
<div class="wrap">
|
36 |
+
|
37 |
+
<?php settings_errors(); ?>
|
38 |
+
|
39 |
+
<div class="row">
|
40 |
+
<div class="col s12 m12 xl8 options">
|
41 |
+
<form action="options.php" method="post" class="">
|
42 |
+
<?php settings_fields( 'ht_ctc_cs_page_settings_fields' ); ?>
|
43 |
+
<?php do_settings_sections( 'ht_ctc_cs_page_settings_sections_do' ) ?>
|
44 |
+
<?php submit_button() ?>
|
45 |
+
</form>
|
46 |
+
</div>
|
47 |
+
<!-- <div class="col s12 m12 xl6 ht-cc-admin-sidebar">
|
48 |
+
</div> -->
|
49 |
+
</div>
|
50 |
+
|
51 |
+
</div>
|
52 |
+
|
53 |
+
<?php
|
54 |
+
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
public function settings() {
|
60 |
+
|
61 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s1' , array( $this, 'options_sanitize' ) );
|
62 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s2' , array( $this, 'options_sanitize' ) );
|
63 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s3' , array( $this, 'options_sanitize' ) );
|
64 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s4' , array( $this, 'options_sanitize' ) );
|
65 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s5' , array( $this, 'options_sanitize' ) );
|
66 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s6' , array( $this, 'options_sanitize' ) );
|
67 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s7' , array( $this, 'options_sanitize' ) );
|
68 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s8' , array( $this, 'options_sanitize' ) );
|
69 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_s99' , array( $this, 'options_sanitize' ) );
|
70 |
+
register_setting( 'ht_ctc_cs_page_settings_fields', 'ht_ctc_othersettings' , array( $this, 'options_sanitize' ) );
|
71 |
+
|
72 |
+
add_settings_section( 'ht_ctc_cs_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_cs_page_settings_sections_do' );
|
73 |
+
|
74 |
+
add_settings_field( 'ht_ctc_s1', 'Style-1', array( $this, 'ht_ctc_s1_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
75 |
+
add_settings_field( 'ht_ctc_s2', 'Style-2', array( $this, 'ht_ctc_s2_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
76 |
+
add_settings_field( 'ht_ctc_s3', 'Style-3', array( $this, 'ht_ctc_s3_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
77 |
+
add_settings_field( 'ht_ctc_s4', 'Style-4', array( $this, 'ht_ctc_s4_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
78 |
+
add_settings_field( 'ht_ctc_s5', 'Style-5', array( $this, 'ht_ctc_s5_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
79 |
+
add_settings_field( 'ht_ctc_s6', 'Style-6', array( $this, 'ht_ctc_s6_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
80 |
+
add_settings_field( 'ht_ctc_s7', 'Style-7', array( $this, 'ht_ctc_s7_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
81 |
+
add_settings_field( 'ht_ctc_s8', 'Style-8', array( $this, 'ht_ctc_s8_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
82 |
+
add_settings_field( 'ht_ctc_s99', 'Style-99', array( $this, 'ht_ctc_s99_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
83 |
+
add_settings_field( 'ht_ctc_othersettings', 'Other settings', array( $this, 'ht_ctc_othersettings_cb' ), 'ht_ctc_cs_page_settings_sections_do', 'ht_ctc_cs_settings_sections_add' );
|
84 |
+
|
85 |
+
|
86 |
+
}
|
87 |
+
|
88 |
+
public function main_settings_section_cb() {
|
89 |
+
?>
|
90 |
+
<h1>Customize Styles</h1>
|
91 |
+
<?php
|
92 |
+
}
|
93 |
+
|
94 |
+
|
95 |
+
// style-1 - default theme button
|
96 |
+
function ht_ctc_s1_cb() {
|
97 |
+
|
98 |
+
$options = get_option('ht_ctc_s1');
|
99 |
+
?>
|
100 |
+
<ul class="collapsible" data-collapsible="accordion">
|
101 |
+
<li>
|
102 |
+
<div class="collapsible-header">Style 1</div>
|
103 |
+
<div class="collapsible-body">
|
104 |
+
|
105 |
+
<!-- not make empty table -->
|
106 |
+
<input name="ht_ctc_s1[hello]" value="hello" id="" type="text" class="hide" >
|
107 |
+
|
108 |
+
<p class="description">Style-1 is a button that appears like themes button</p>
|
109 |
+
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
</li>
|
113 |
+
</ul>
|
114 |
+
|
115 |
+
<?php
|
116 |
+
}
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
// style-2 - ht_ctc_s2 - whatsapp ios style icon
|
121 |
+
function ht_ctc_s2_cb() {
|
122 |
+
|
123 |
+
$options = get_option('ht_ctc_s2');
|
124 |
+
?>
|
125 |
+
<ul class="collapsible" data-collapsible="accordion">
|
126 |
+
<li>
|
127 |
+
<div class="collapsible-header">Style 2</div>
|
128 |
+
<div class="collapsible-body">
|
129 |
+
|
130 |
+
|
131 |
+
<!-- img size -->
|
132 |
+
<div class="row">
|
133 |
+
<div class="col s6">
|
134 |
+
<p>Image Size</p>
|
135 |
+
</div>
|
136 |
+
<div class="input-field col s6">
|
137 |
+
<input name="ht_ctc_s2[s2_img_size]" value="<?php echo esc_attr( $options['s2_img_size'] ) ?>" id="s2_img_size" type="text" class="" >
|
138 |
+
<label for="s2_img_size">Image Size</label>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
|
142 |
+
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
</li>
|
146 |
+
</ul>
|
147 |
+
|
148 |
+
<?php
|
149 |
+
}
|
150 |
+
|
151 |
+
|
152 |
+
|
153 |
+
// style-3 - ht_ctc_s3 - whatsapp andriod style icon
|
154 |
+
function ht_ctc_s3_cb() {
|
155 |
+
|
156 |
+
$options = get_option('ht_ctc_s3');
|
157 |
+
?>
|
158 |
+
<ul class="collapsible" data-collapsible="accordion">
|
159 |
+
<li>
|
160 |
+
<div class="collapsible-header">Style 3</div>
|
161 |
+
<div class="collapsible-body">
|
162 |
+
|
163 |
+
<!-- img size -->
|
164 |
+
<div class="row">
|
165 |
+
<div class="col s6">
|
166 |
+
<p>Image Size</p>
|
167 |
+
</div>
|
168 |
+
<div class="input-field col s6">
|
169 |
+
<input name="ht_ctc_s3[s3_img_size]" value="<?php echo esc_attr( $options['s3_img_size'] ) ?>" id="s3_img_size" type="text" class="" >
|
170 |
+
<label for="s3_img_size">Image Size</label>
|
171 |
+
</div>
|
172 |
+
</div>
|
173 |
+
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
</li>
|
177 |
+
</ul>
|
178 |
+
|
179 |
+
<?php
|
180 |
+
}
|
181 |
+
|
182 |
+
|
183 |
+
|
184 |
+
// style-4 - ht_ctc_s4 - chip
|
185 |
+
function ht_ctc_s4_cb() {
|
186 |
+
|
187 |
+
$options = get_option('ht_ctc_s4');
|
188 |
+
?>
|
189 |
+
<ul class="collapsible" data-collapsible="accordion">
|
190 |
+
<li>
|
191 |
+
<div class="collapsible-header">Style 4</div>
|
192 |
+
<div class="collapsible-body">
|
193 |
+
|
194 |
+
<!-- text color -->
|
195 |
+
<div class="row">
|
196 |
+
<div class="col s6">
|
197 |
+
<p>Text Color</p>
|
198 |
+
</div>
|
199 |
+
<div class="input-field col s6">
|
200 |
+
<input class="ht-ctc-color" name="ht_ctc_s4[s4_text_color]" data-default-color="#7f7d7d" value="<?php echo esc_attr( $options['s4_text_color'] ) ?>" id="s4_text_color" type="text">
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
|
204 |
+
<!-- background color -->
|
205 |
+
<div class="row">
|
206 |
+
<div class="col s6">
|
207 |
+
<p>Background Color</p>
|
208 |
+
</div>
|
209 |
+
<div class="input-field col s6">
|
210 |
+
<input id="s4_bg_color" class="ht-ctc-color" data-default-color="#e4e4e4" name="ht_ctc_s4[s4_bg_color]" value="<?php echo esc_attr( $options['s4_bg_color'] ) ?>" type="text" style="height: 1.375rem;" >
|
211 |
+
</div>
|
212 |
+
</div>
|
213 |
+
|
214 |
+
<!-- image url -->
|
215 |
+
<div class="row">
|
216 |
+
<div class="col s6">
|
217 |
+
<p>Image URL</p>
|
218 |
+
</div>
|
219 |
+
<div class="input-field col s6">
|
220 |
+
<input name="ht_ctc_s4[s4_img_url]" value="<?php echo esc_attr( $options['s4_img_url'] ) ?>" id="s4_img_url" type="text" class="" >
|
221 |
+
<label for="s4_img_url">Image URL</label>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
</div>
|
228 |
+
</div>
|
229 |
+
</li>
|
230 |
+
</ul>
|
231 |
+
|
232 |
+
<?php
|
233 |
+
}
|
234 |
+
|
235 |
+
|
236 |
+
|
237 |
+
// style-5 - ht_ctc_s5 - chip
|
238 |
+
function ht_ctc_s5_cb() {
|
239 |
+
|
240 |
+
$options = get_option('ht_ctc_s5');
|
241 |
+
?>
|
242 |
+
<ul class="collapsible" data-collapsible="accordion">
|
243 |
+
<li>
|
244 |
+
<div class="collapsible-header">Style 5 ( Beta )</div>
|
245 |
+
<div class="collapsible-body">
|
246 |
+
|
247 |
+
<!-- s5_line_1 -->
|
248 |
+
<div class="row">
|
249 |
+
<div class="col s6">
|
250 |
+
<p>Line 1</p>
|
251 |
+
</div>
|
252 |
+
<div class="input-field col s6">
|
253 |
+
<input name="ht_ctc_s5[s5_line_1]" value="<?php echo esc_attr( $options['s5_line_1'] ) ?>" id="s5_line_1" type="text" class="" >
|
254 |
+
<label for="s5_line_1">Line 1</label>
|
255 |
+
</div>
|
256 |
+
</div>
|
257 |
+
|
258 |
+
<!-- s5_line_2 -->
|
259 |
+
<div class="row">
|
260 |
+
<div class="col s6">
|
261 |
+
<p>Line 2</p>
|
262 |
+
</div>
|
263 |
+
<div class="input-field col s6">
|
264 |
+
<input name="ht_ctc_s5[s5_line_2]" value="<?php echo esc_attr( $options['s5_line_2'] ) ?>" id="s5_line_2" type="text" class="" >
|
265 |
+
<label for="s5_line_2">Line 2</label>
|
266 |
+
</div>
|
267 |
+
</div>
|
268 |
+
|
269 |
+
<!-- s5_line_1_color -->
|
270 |
+
<div class="row">
|
271 |
+
<div class="col s6">
|
272 |
+
<p>Line 1 - Text Color</p>
|
273 |
+
</div>
|
274 |
+
<div class="input-field col s6">
|
275 |
+
<input class="ht-ctc-color" name="ht_ctc_s5[s5_line_1_color]" data-default-color="#000000" value="<?php echo esc_attr( $options['s5_line_1_color'] ) ?>" id="s5_line_1_color" type="text">
|
276 |
+
</div>
|
277 |
+
</div>
|
278 |
+
|
279 |
+
<!-- s5_line_2_color -->
|
280 |
+
<div class="row">
|
281 |
+
<div class="col s6">
|
282 |
+
<p>Line 2 - Text Color</p>
|
283 |
+
</div>
|
284 |
+
<div class="input-field col s6">
|
285 |
+
<input class="ht-ctc-color" name="ht_ctc_s5[s5_line_2_color]" data-default-color="#000000" value="<?php echo esc_attr( $options['s5_line_2_color'] ) ?>" id="s5_line_2_color" type="text">
|
286 |
+
</div>
|
287 |
+
</div>
|
288 |
+
|
289 |
+
<!-- s5_background_color -->
|
290 |
+
<div class="row">
|
291 |
+
<div class="col s6">
|
292 |
+
<p>Content Box Background Color</p>
|
293 |
+
</div>
|
294 |
+
<div class="input-field col s6">
|
295 |
+
<input class="ht-ctc-color" name="ht_ctc_s5[s5_background_color]" data-default-color="#ffffff" value="<?php echo esc_attr( $options['s5_background_color'] ) ?>" id="s5_background_color" type="text">
|
296 |
+
</div>
|
297 |
+
</div>
|
298 |
+
|
299 |
+
<!-- s5_border_color -->
|
300 |
+
<div class="row">
|
301 |
+
<div class="col s6">
|
302 |
+
<p>Content Box Border Color</p>
|
303 |
+
</div>
|
304 |
+
<div class="input-field col s6">
|
305 |
+
<input class="ht-ctc-color" name="ht_ctc_s5[s5_border_color]" data-default-color="#dddddd" value="<?php echo esc_attr( $options['s5_border_color'] ) ?>" id="s5_border_color" type="text">
|
306 |
+
</div>
|
307 |
+
</div>
|
308 |
+
|
309 |
+
<!-- s5_img -->
|
310 |
+
<div class="row">
|
311 |
+
<div class="col s6">
|
312 |
+
<p>Image URL</p>
|
313 |
+
</div>
|
314 |
+
<div class="input-field col s6">
|
315 |
+
<input name="ht_ctc_s5[s5_img]" value="<?php echo esc_attr( $options['s5_img'] ) ?>" id="s5_img" type="text" class="" >
|
316 |
+
<label for="s5_img">Leave blank for default image</label>
|
317 |
+
</div>
|
318 |
+
</div>
|
319 |
+
|
320 |
+
<!-- s5_img_height -->
|
321 |
+
<div class="row">
|
322 |
+
<div class="col s6">
|
323 |
+
<p>Image Height</p>
|
324 |
+
</div>
|
325 |
+
<div class="input-field col s6">
|
326 |
+
<input name="ht_ctc_s5[s5_img_height]" value="<?php echo esc_attr( $options['s5_img_height'] ) ?>" id="s5_img_height" type="text" class="" >
|
327 |
+
<label for="s5_img_height">Image Height</label>
|
328 |
+
</div>
|
329 |
+
</div>
|
330 |
+
|
331 |
+
<!-- s5_img_width -->
|
332 |
+
<div class="row">
|
333 |
+
<div class="col s6">
|
334 |
+
<p>Image Width</p>
|
335 |
+
</div>
|
336 |
+
<div class="input-field col s6">
|
337 |
+
<input name="ht_ctc_s5[s5_img_width]" value="<?php echo esc_attr( $options['s5_img_width'] ) ?>" id="s5_img_width" type="text" class="" >
|
338 |
+
<label for="s5_img_width">Image Width</label>
|
339 |
+
</div>
|
340 |
+
</div>
|
341 |
+
|
342 |
+
<!-- s5_content_height -->
|
343 |
+
<div class="row">
|
344 |
+
<div class="col s6">
|
345 |
+
<p>Content Box Height</p>
|
346 |
+
</div>
|
347 |
+
<div class="input-field col s6">
|
348 |
+
<input name="ht_ctc_s5[s5_content_height]" value="<?php echo esc_attr( $options['s5_content_height'] ) ?>" id="s5_content_height" type="text" class="" >
|
349 |
+
<label for="s5_content_height">Content Box Height</label>
|
350 |
+
</div>
|
351 |
+
</div>
|
352 |
+
|
353 |
+
<!-- s5_content_width -->
|
354 |
+
<div class="row">
|
355 |
+
<div class="col s6">
|
356 |
+
<p>Content Box Width</p>
|
357 |
+
</div>
|
358 |
+
<div class="input-field col s6">
|
359 |
+
<input name="ht_ctc_s5[s5_content_width]" value="<?php echo esc_attr( $options['s5_content_width'] ) ?>" id="s5_content_width" type="text" class="" >
|
360 |
+
<label for="s5_content_width">Content Box Width</label>
|
361 |
+
</div>
|
362 |
+
</div>
|
363 |
+
|
364 |
+
<!-- s5_img_position -->
|
365 |
+
<?php
|
366 |
+
$select_s5_img_position = esc_attr( $options['s5_img_position'] );
|
367 |
+
?>
|
368 |
+
|
369 |
+
<div class="row">
|
370 |
+
<div class="col s6">
|
371 |
+
<p>Image Position</p>
|
372 |
+
</div>
|
373 |
+
<div class="input-field col s6">
|
374 |
+
<select name="ht_ctc_s5[s5_img_position]" class="select-2">
|
375 |
+
<option value="right" <?php echo $select_s5_img_position == 'right' ? 'SELECTED' : ''; ?> >Right</option>
|
376 |
+
<option value="left" <?php echo $select_s5_img_position == 'left' ? 'SELECTED' : ''; ?> >Left</option>
|
377 |
+
</select>
|
378 |
+
<p class="description">If style position/located: Right to screen then select Right, if Left to screen then select Left</p>
|
379 |
+
</div>
|
380 |
+
</div>
|
381 |
+
|
382 |
+
|
383 |
+
|
384 |
+
|
385 |
+
</div>
|
386 |
+
</div>
|
387 |
+
</li>
|
388 |
+
</ul>
|
389 |
+
|
390 |
+
<?php
|
391 |
+
}
|
392 |
+
|
393 |
+
|
394 |
+
|
395 |
+
|
396 |
+
// style-6 - ht_ctc_s6 - plain link
|
397 |
+
function ht_ctc_s6_cb() {
|
398 |
+
|
399 |
+
$options = get_option('ht_ctc_s6');
|
400 |
+
?>
|
401 |
+
<ul class="collapsible" data-collapsible="accordion">
|
402 |
+
<li>
|
403 |
+
<div class="collapsible-header">Style 6</div>
|
404 |
+
<div class="collapsible-body">
|
405 |
+
|
406 |
+
<!-- text color -->
|
407 |
+
<div class="row">
|
408 |
+
<div class="col s6">
|
409 |
+
<p>Text Color</p>
|
410 |
+
</div>
|
411 |
+
<div class="input-field col s6">
|
412 |
+
<!-- <input id="s6_txt_color" class="ht-ctc-color" data-default-color="#006ccc" name="ht_ctc_s6[s6_txt_color]" value="<?php echo esc_attr( $options['s6_txt_color'] ) ?>" type="text" style="height: 1.375rem;" > -->
|
413 |
+
<input id="s6_txt_color" class="ht-ctc-color" name="ht_ctc_s6[s6_txt_color]" value="<?php echo esc_attr( $options['s6_txt_color'] ) ?>" type="text" style="height: 1.375rem;" >
|
414 |
+
</div>
|
415 |
+
</div>
|
416 |
+
|
417 |
+
|
418 |
+
<!-- text color on hover -->
|
419 |
+
<div class="row">
|
420 |
+
<div class="col s6">
|
421 |
+
<p>Text Color on Hover</p>
|
422 |
+
</div>
|
423 |
+
<div class="input-field col s6">
|
424 |
+
<!-- <input id="s6_txt_color_on_hover" class="ht-ctc-color" data-default-color="#006ccc" name="ht_ctc_s6[s6_txt_color_on_hover]" value="<?php echo esc_attr( $options['s6_txt_color_on_hover'] ) ?>" type="text" style="height: 1.375rem;" > -->
|
425 |
+
<input id="s6_txt_color_on_hover" class="ht-ctc-color" name="ht_ctc_s6[s6_txt_color_on_hover]" value="<?php echo esc_attr( $options['s6_txt_color_on_hover'] ) ?>" type="text" style="height: 1.375rem;" >
|
426 |
+
</div>
|
427 |
+
</div>
|
428 |
+
|
429 |
+
<!-- Text Decoration - none/initial/underline/overline/... -->
|
430 |
+
<?php
|
431 |
+
$text_decoration_value = esc_attr( $options['s6_txt_decoration'] );
|
432 |
+
?>
|
433 |
+
|
434 |
+
<div class="row">
|
435 |
+
<div class="col s6">
|
436 |
+
<p>Text Decoration</p>
|
437 |
+
</div>
|
438 |
+
<div class="input-field col s6">
|
439 |
+
<select name="ht_ctc_s6[s6_txt_decoration]" class="select-2">
|
440 |
+
<option value="initial" <?php echo $text_decoration_value == 'initial' ? 'SELECTED' : ''; ?> >initial</option>
|
441 |
+
<option value="underline" <?php echo $text_decoration_value == 'underline' ? 'SELECTED' : ''; ?> >underline</option>
|
442 |
+
<option value="overline" <?php echo $text_decoration_value == 'overline' ? 'SELECTED' : ''; ?> >overline</option>
|
443 |
+
<option value="line-through" <?php echo $text_decoration_value == 'line-through' ? 'SELECTED' : ''; ?> >line-through</option>
|
444 |
+
<option value="inherit" <?php echo $text_decoration_value == 'inherit' ? 'SELECTED' : ''; ?> >inherit</option>
|
445 |
+
</select>
|
446 |
+
<!-- <label>Text Decoration</label> -->
|
447 |
+
</div>
|
448 |
+
</div>
|
449 |
+
|
450 |
+
<!-- Text Decoration when hover - none/initial/underline/overline/... -->
|
451 |
+
<?php
|
452 |
+
$text_decoration_hover_value = $options['s6_txt_decoration_on_hover'];
|
453 |
+
?>
|
454 |
+
|
455 |
+
<div class="row">
|
456 |
+
<div class="col s6">
|
457 |
+
<p>Text Decoration when Hover</p>
|
458 |
+
</div>
|
459 |
+
<div class="input-field col s6">
|
460 |
+
<select name="ht_ctc_s6[s6_txt_decoration_on_hover]" class="select-2">
|
461 |
+
<option value="initial" <?php echo $text_decoration_hover_value == 'initial' ? 'SELECTED' : ''; ?> >initial</option>
|
462 |
+
<option value="underline" <?php echo $text_decoration_hover_value == 'underline' ? 'SELECTED' : ''; ?> >underline</option>
|
463 |
+
<option value="overline" <?php echo $text_decoration_hover_value == 'overline' ? 'SELECTED' : ''; ?> >overline</option>
|
464 |
+
<option value="line-through" <?php echo $text_decoration_hover_value == 'line-through' ? 'SELECTED' : ''; ?> >line-through</option>
|
465 |
+
<option value="inherit" <?php echo $text_decoration_hover_value == 'inherit' ? 'SELECTED' : ''; ?> >inherit</option>
|
466 |
+
</select>
|
467 |
+
<!-- <label>Text Decoration when Hover</label> -->
|
468 |
+
</div>
|
469 |
+
</div>
|
470 |
+
|
471 |
+
</div>
|
472 |
+
</div>
|
473 |
+
</li>
|
474 |
+
</ul>
|
475 |
+
|
476 |
+
<?php
|
477 |
+
}
|
478 |
+
|
479 |
+
|
480 |
+
// style-7 - ht_ctc_s7 - plain link
|
481 |
+
function ht_ctc_s7_cb() {
|
482 |
+
|
483 |
+
$options = get_option('ht_ctc_s7');
|
484 |
+
?>
|
485 |
+
<ul class="collapsible" data-collapsible="accordion">
|
486 |
+
<li>
|
487 |
+
<div class="collapsible-header">Style 7</div>
|
488 |
+
<div class="collapsible-body">
|
489 |
+
|
490 |
+
<!-- s7_icon_size -->
|
491 |
+
<div class="row">
|
492 |
+
<div class="col s6">
|
493 |
+
<p>Icon Size</p>
|
494 |
+
</div>
|
495 |
+
<div class="input-field col s6">
|
496 |
+
<input name="ht_ctc_s7[s7_icon_size]" value="<?php echo esc_attr( $options['s7_icon_size'] ) ?>" id="s7_icon_size" type="text" class="" >
|
497 |
+
<label for="s7_icon_size">Icon Size</label>
|
498 |
+
</div>
|
499 |
+
</div>
|
500 |
+
|
501 |
+
<!-- s7_icon_color -->
|
502 |
+
<div class="row">
|
503 |
+
<div class="col s6">
|
504 |
+
<p>Icon Color</p>
|
505 |
+
</div>
|
506 |
+
<div class="input-field col s6">
|
507 |
+
<input id="s7_icon_color" class="ht-ctc-color" data-default-color="#ffffff" name="ht_ctc_s7[s7_icon_color]" value="<?php echo esc_attr( $options['s7_icon_color'] ) ?>" type="text" style="height: 1.375rem;" >
|
508 |
+
</div>
|
509 |
+
</div>
|
510 |
+
|
511 |
+
<!-- s7_icon_color_hover -->
|
512 |
+
<div class="row">
|
513 |
+
<div class="col s6">
|
514 |
+
<p>Icon Color on Hover</p>
|
515 |
+
</div>
|
516 |
+
<div class="input-field col s6">
|
517 |
+
<input id="s7_icon_color_hover" class="ht-ctc-color" data-default-color="#6b6b6b" name="ht_ctc_s7[s7_icon_color_hover]" value="<?php echo esc_attr( $options['s7_icon_color_hover'] ) ?>" type="text" style="height: 1.375rem;" >
|
518 |
+
</div>
|
519 |
+
</div>
|
520 |
+
|
521 |
+
<!-- s7_border_size -->
|
522 |
+
<div class="row">
|
523 |
+
<div class="col s6">
|
524 |
+
<p>Border Padding Size</p>
|
525 |
+
</div>
|
526 |
+
<div class="input-field col s6">
|
527 |
+
<input name="ht_ctc_s7[s7_border_size]" value="<?php echo esc_attr( $options['s7_border_size'] ) ?>" id="s7_border_size" type="text" class="" >
|
528 |
+
<label for="s7_border_size">Border Padding Size</label>
|
529 |
+
<p class="description">E.g. 12px</p>
|
530 |
+
</div>
|
531 |
+
</div>
|
532 |
+
|
533 |
+
<!-- s7_border_color -->
|
534 |
+
<div class="row">
|
535 |
+
<div class="col s6">
|
536 |
+
<p>Border Padding Color</p>
|
537 |
+
</div>
|
538 |
+
<div class="input-field col s6">
|
539 |
+
<input id="s7_border_color" class="ht-ctc-color" data-default-color="#25D366" name="ht_ctc_s7[s7_border_color]" value="<?php echo esc_attr( $options['s7_border_color'] ) ?>" type="text" style="height: 1.375rem;" >
|
540 |
+
</div>
|
541 |
+
</div>
|
542 |
+
|
543 |
+
<!-- s7_border_color_hover -->
|
544 |
+
<div class="row">
|
545 |
+
<div class="col s6">
|
546 |
+
<p>Border Padding Color on Hover</p>
|
547 |
+
</div>
|
548 |
+
<div class="input-field col s6">
|
549 |
+
<input id="s7_border_color_hover" class="ht-ctc-color" data-default-color="#25D366" name="ht_ctc_s7[s7_border_color_hover]" value="<?php echo esc_attr( $options['s7_border_color_hover'] ) ?>" type="text" style="height: 1.375rem;" >
|
550 |
+
</div>
|
551 |
+
</div>
|
552 |
+
|
553 |
+
<!-- s7_border_radius -->
|
554 |
+
<div class="row">
|
555 |
+
<div class="col s6">
|
556 |
+
<p>Border radius</p>
|
557 |
+
</div>
|
558 |
+
<div class="input-field col s6">
|
559 |
+
<input name="ht_ctc_s7[s7_border_radius]" value="<?php echo esc_attr( $options['s7_border_radius'] ) ?>" id="s7_border_radius" type="text" class="" >
|
560 |
+
<label for="s7_border_radius">Border radius</label>
|
561 |
+
<p class="description">E.g. 10px, 50% ( for round border add 50% )</p>
|
562 |
+
</div>
|
563 |
+
</div>
|
564 |
+
|
565 |
+
</div>
|
566 |
+
</div>
|
567 |
+
</li>
|
568 |
+
</ul>
|
569 |
+
|
570 |
+
<?php
|
571 |
+
}
|
572 |
+
|
573 |
+
|
574 |
+
|
575 |
+
|
576 |
+
// style-8 - ht_ctc_s8 - button with icon
|
577 |
+
function ht_ctc_s8_cb() {
|
578 |
+
|
579 |
+
$options = get_option('ht_ctc_s8');
|
580 |
+
?>
|
581 |
+
<ul class="collapsible" data-collapsible="accordion">
|
582 |
+
<li>
|
583 |
+
<div class="collapsible-header">Style 8</div>
|
584 |
+
<div class="collapsible-body">
|
585 |
+
|
586 |
+
|
587 |
+
<!-- text color -->
|
588 |
+
<div class="row">
|
589 |
+
<div class="col s6">
|
590 |
+
<p>Text Color</p>
|
591 |
+
</div>
|
592 |
+
<div class="input-field col s6">
|
593 |
+
<input id="s8_txt_color" class="ht-ctc-color" data-default-color="#ffffff" name="ht_ctc_s8[s8_txt_color]" value="<?php echo esc_attr( $options['s8_txt_color'] ) ?>" type="text" style="height: 1.375rem;" >
|
594 |
+
<!-- <label for="s3_img_url">Text Color</label> -->
|
595 |
+
<!-- <p class="description">Default Color: #ffffff</p> -->
|
596 |
+
</div>
|
597 |
+
</div>
|
598 |
+
|
599 |
+
<!-- text color on hover -->
|
600 |
+
<div class="row">
|
601 |
+
<div class="col s6">
|
602 |
+
<p>Text Color on Hover</p>
|
603 |
+
</div>
|
604 |
+
<div class="input-field col s6">
|
605 |
+
<input id="s8_txt_color_on_hover" class="ht-ctc-color" data-default-color="#ffffff" name="ht_ctc_s8[s8_txt_color_on_hover]" value="<?php echo esc_attr( $options['s8_txt_color_on_hover'] ) ?>" type="text" style="height: 1.375rem;" >
|
606 |
+
<!-- <label for="s3_img_url">Text Color on Hover</label> -->
|
607 |
+
<!-- <p class="description">Default Color: #ffffff</p> -->
|
608 |
+
</div>
|
609 |
+
</div>
|
610 |
+
|
611 |
+
<!-- background color -->
|
612 |
+
<div class="row">
|
613 |
+
<div class="col s6">
|
614 |
+
<p>Background Color</p>
|
615 |
+
</div>
|
616 |
+
<div class="input-field col s6">
|
617 |
+
<input id="s8_bg_color" class="ht-ctc-color" data-default-color="#26a69a" name="ht_ctc_s8[s8_bg_color]" value="<?php echo esc_attr( $options['s8_bg_color'] ) ?>" type="text" style="height: 1.375rem;" >
|
618 |
+
<!-- <label for="s3_img_url">Background Color</label> -->
|
619 |
+
<!-- <p class="description">Default Color: #26a69a</p> -->
|
620 |
+
</div>
|
621 |
+
</div>
|
622 |
+
|
623 |
+
<!-- background color on hover -->
|
624 |
+
<div class="row">
|
625 |
+
<div class="col s6">
|
626 |
+
<p>Background Color on Hover</p>
|
627 |
+
</div>
|
628 |
+
<div class="input-field col s6">
|
629 |
+
<input id="s8_bg_color_on_hover" class="ht-ctc-color" data-default-color="#26a69a" name="ht_ctc_s8[s8_bg_color_on_hover]" value="<?php echo esc_attr( $options['s8_bg_color_on_hover'] ) ?>" type="text" style="height: 1.375rem;" >
|
630 |
+
<!-- <label for="s3_img_url">Background Color on Hover</label> -->
|
631 |
+
<!-- <p class="description">Default Color: #26a69a</p> -->
|
632 |
+
</div>
|
633 |
+
</div>
|
634 |
+
|
635 |
+
<!-- icon color -->
|
636 |
+
<div class="row">
|
637 |
+
<div class="col s6">
|
638 |
+
<p>Icon Color</p>
|
639 |
+
</div>
|
640 |
+
<div class="input-field col s6">
|
641 |
+
<input id="s8_icon_color" class="ht-ctc-color" data-default-color="#ffffff" name="ht_ctc_s8[s8_icon_color]" value="<?php echo esc_attr( $options['s8_icon_color'] ) ?>" type="text" style="height: 1.375rem;" >
|
642 |
+
<!-- <label for="s3_img_url">Icon Color</label> -->
|
643 |
+
<!-- <p class="description">Default Color: #ffffff</p> -->
|
644 |
+
</div>
|
645 |
+
</div>
|
646 |
+
|
647 |
+
<!-- icon color on hover -->
|
648 |
+
<div class="row">
|
649 |
+
<div class="col s6">
|
650 |
+
<p>Icon Color on Hover</p>
|
651 |
+
</div>
|
652 |
+
<div class="input-field col s6">
|
653 |
+
<input id="s8_icon_color_on_hover" class="ht-ctc-color" data-default-color="#ffffff" name="ht_ctc_s8[s8_icon_color_on_hover]" value="<?php echo esc_attr( $options['s8_icon_color_on_hover'] ) ?>" type="text" style="height: 1.375rem;" >
|
654 |
+
<!-- <label for="s3_img_url">Icon Color on Hover</label> -->
|
655 |
+
<!-- <p class="description">Default Color: #ffffff</p> -->
|
656 |
+
</div>
|
657 |
+
</div>
|
658 |
+
|
659 |
+
|
660 |
+
|
661 |
+
<!-- icon position - left/right -->
|
662 |
+
<?php
|
663 |
+
$icon_position_value = esc_attr( $options['s8_icon_position'] );
|
664 |
+
?>
|
665 |
+
|
666 |
+
<div class="row">
|
667 |
+
<div class="col s6">
|
668 |
+
<p>Icon Position</p>
|
669 |
+
</div>
|
670 |
+
<div class="input-field col s6">
|
671 |
+
<select name="ht_ctc_s8[s8_icon_position]" class="select-2">
|
672 |
+
<option value="left" <?php echo $icon_position_value == 'left' ? 'SELECTED' : ''; ?> >Left</option>
|
673 |
+
<option value="right" <?php echo $icon_position_value == 'right' ? 'SELECTED' : ''; ?> >Right</option>
|
674 |
+
<option value="hide" <?php echo $icon_position_value == 'hide' ? 'SELECTED' : ''; ?> >Hide</option>
|
675 |
+
</select>
|
676 |
+
<!-- <label>Icon Position</label> -->
|
677 |
+
</div>
|
678 |
+
</div>
|
679 |
+
|
680 |
+
|
681 |
+
<!-- Text Size -->
|
682 |
+
<div class="row">
|
683 |
+
<div class="col s6">
|
684 |
+
<p>Text Size</p>
|
685 |
+
</div>
|
686 |
+
<div class="input-field col s6">
|
687 |
+
<input name="ht_ctc_s8[s8_text_size]" value="<?php echo esc_attr( $options['s8_text_size'] ) ?>" id="s8_text_size" type="text" class="" >
|
688 |
+
<label for="s8_text_size">Text Size - E.g. 12px</label>
|
689 |
+
<span class="helper-text">Leave blank for default settings</span>
|
690 |
+
</div>
|
691 |
+
</div>
|
692 |
+
|
693 |
+
<!-- Icon Size -->
|
694 |
+
<div class="row">
|
695 |
+
<div class="col s6">
|
696 |
+
<p>Icon Size</p>
|
697 |
+
</div>
|
698 |
+
<div class="input-field col s6">
|
699 |
+
<input name="ht_ctc_s8[s8_icon_size]" value="<?php echo esc_attr( $options['s8_icon_size'] ) ?>" id="s8_icon_size" type="text" class="" >
|
700 |
+
<label for="s8_icon_size">Icon Size - E.g. 16px</label>
|
701 |
+
<span class="helper-text">Leave blank for default settings</span>
|
702 |
+
</div>
|
703 |
+
</div>
|
704 |
+
|
705 |
+
<!-- button size - btn, btn-large -->
|
706 |
+
<?php
|
707 |
+
$s8_btn_size = esc_attr( $options['s8_btn_size'] );
|
708 |
+
?>
|
709 |
+
|
710 |
+
<div class="row">
|
711 |
+
<div class="col s6">
|
712 |
+
<p>Button Size</p>
|
713 |
+
</div>
|
714 |
+
<div class="input-field col s6">
|
715 |
+
<select name="ht_ctc_s8[s8_btn_size]" class="select-2">
|
716 |
+
<option value="btn" <?php echo $s8_btn_size == 'btn' ? 'SELECTED' : ''; ?> >Normal</option>
|
717 |
+
<option value="btn-large" <?php echo $s8_btn_size == 'btn-large' ? 'SELECTED' : ''; ?> >Large</option>
|
718 |
+
</select>
|
719 |
+
</div>
|
720 |
+
</div>
|
721 |
+
|
722 |
+
|
723 |
+
|
724 |
+
</div>
|
725 |
+
</div>
|
726 |
+
</li>
|
727 |
+
</ul>
|
728 |
+
|
729 |
+
<?php
|
730 |
+
}
|
731 |
+
|
732 |
+
|
733 |
+
// style-99 - ht_ctc_s99 - own image
|
734 |
+
function ht_ctc_s99_cb() {
|
735 |
+
|
736 |
+
$options = get_option('ht_ctc_s99');
|
737 |
+
?>
|
738 |
+
<ul class="collapsible" data-collapsible="accordion">
|
739 |
+
<li>
|
740 |
+
<div class="collapsible-header">Style 99 - Own Image / GIF</div>
|
741 |
+
<div class="collapsible-body">
|
742 |
+
|
743 |
+
<!-- Image URL - Desktop -->
|
744 |
+
<div class="row">
|
745 |
+
<!-- <div class="col s6">
|
746 |
+
<p>Image URL</p>
|
747 |
+
</div> -->
|
748 |
+
<div class="input-field col s12">
|
749 |
+
<input name="ht_ctc_s99[s99_dekstop_img_url]" value="<?php echo esc_attr( $options['s99_dekstop_img_url'] ) ?>" id="s99_dekstop_img_url" type="text" class="" >
|
750 |
+
<label for="s99_dekstop_img_url">Image URL - Desktop</label>
|
751 |
+
</div>
|
752 |
+
</div>
|
753 |
+
|
754 |
+
<!-- Image URL - Mobile -->
|
755 |
+
<div class="row">
|
756 |
+
<!-- <div class="col s6">
|
757 |
+
<p>Image URL</p>
|
758 |
+
</div> -->
|
759 |
+
<div class="input-field col s12">
|
760 |
+
<input name="ht_ctc_s99[s99_mobile_img_url]" value="<?php echo esc_attr( $options['s99_mobile_img_url'] ) ?>" id="s99_mobile_img_url" type="text" class="" >
|
761 |
+
<label for="s99_mobile_img_url">Image URL - Mobile</label>
|
762 |
+
</div>
|
763 |
+
</div>
|
764 |
+
|
765 |
+
<!-- Desktop - Image Height -->
|
766 |
+
<div class="row">
|
767 |
+
<div class="col s6">
|
768 |
+
<p>Desktop - Image Height</p>
|
769 |
+
</div>
|
770 |
+
<div class="input-field col s6">
|
771 |
+
<input name="ht_ctc_s99[s99_desktop_img_height]" value="<?php echo esc_attr( $options['s99_desktop_img_height'] ) ?>" id="s99_desktop_img_height" type="text" class="" >
|
772 |
+
<label for="s99_desktop_img_height">Desktop - Image Height</label>
|
773 |
+
</div>
|
774 |
+
</div>
|
775 |
+
|
776 |
+
<!-- Desktop - Image Width -->
|
777 |
+
<div class="row">
|
778 |
+
<div class="col s6">
|
779 |
+
<p>Desktop - Image Width</p>
|
780 |
+
</div>
|
781 |
+
<div class="input-field col s6">
|
782 |
+
<input name="ht_ctc_s99[s99_desktop_img_width]" value="<?php echo esc_attr( $options['s99_desktop_img_width'] ) ?>" id="s99_desktop_img_width" type="text" class="" >
|
783 |
+
<label for="s99_desktop_img_width">Desktop - Image Width</label>
|
784 |
+
</div>
|
785 |
+
</div>
|
786 |
+
|
787 |
+
<!-- Mobile - Image Height -->
|
788 |
+
<div class="row">
|
789 |
+
<div class="col s6">
|
790 |
+
<p>Mobile - Image Height</p>
|
791 |
+
</div>
|
792 |
+
<div class="input-field col s6">
|
793 |
+
<input name="ht_ctc_s99[s99_mobile_img_height]" value="<?php echo esc_attr( $options['s99_mobile_img_height'] ) ?>" id="s99_mobile_img_height" type="text" class="" >
|
794 |
+
<label for="s99_mobile_img_height">Mobile - Image Height</label>
|
795 |
+
</div>
|
796 |
+
</div>
|
797 |
+
|
798 |
+
<!-- Mobile - Image Width -->
|
799 |
+
<div class="row">
|
800 |
+
<div class="col s6">
|
801 |
+
<p>Mobile - Image Width</p>
|
802 |
+
</div>
|
803 |
+
<div class="input-field col s6">
|
804 |
+
<input name="ht_ctc_s99[s99_mobile_img_width]" value="<?php echo esc_attr( $options['s99_mobile_img_width'] ) ?>" id="s99_mobile_img_width" type="text" class="" >
|
805 |
+
<label for="s99_mobile_img_width">Mobile - Image Width</label>
|
806 |
+
</div>
|
807 |
+
</div>
|
808 |
+
|
809 |
+
|
810 |
+
</div>
|
811 |
+
</div>
|
812 |
+
</li>
|
813 |
+
</ul>
|
814 |
+
|
815 |
+
<?php
|
816 |
+
}
|
817 |
+
|
818 |
+
|
819 |
+
|
820 |
+
// Other settings
|
821 |
+
// fb analytics
|
822 |
+
// detect device
|
823 |
+
function ht_ctc_othersettings_cb() {
|
824 |
+
|
825 |
+
$options = get_option('ht_ctc_othersettings');
|
826 |
+
$detectdevice = esc_attr( $options['detectdevice'] );
|
827 |
+
?>
|
828 |
+
|
829 |
+
<ul class="collapsible" data-collapsible="accordion">
|
830 |
+
<li>
|
831 |
+
<div class="collapsible-header">Other settings</div>
|
832 |
+
<div class="collapsible-body">
|
833 |
+
|
834 |
+
|
835 |
+
<!-- detect device -->
|
836 |
+
<div class="row">
|
837 |
+
<div class="col s6">
|
838 |
+
<p>Detect Device</p>
|
839 |
+
</div>
|
840 |
+
<div class="input-field col s6">
|
841 |
+
<select name="ht_ctc_othersettings[detectdevice]" class="select">
|
842 |
+
<option value="screen" <?php echo $detectdevice == 'screen' ? 'SELECTED' : ''; ?> >Screen Width</option>
|
843 |
+
<option value="http" <?php echo $detectdevice == 'http' ? 'SELECTED' : ''; ?> >HTTP User Agent</option>
|
844 |
+
</select>
|
845 |
+
<!-- <label>Detect Device</label> -->
|
846 |
+
</div>
|
847 |
+
<p class="description"> This feature is <b>depreacted</b> </p>
|
848 |
+
<p class="description">Screen Width: Mobile < 1024 >= desktop. <br> HTTP User Agent: wp_is_mobile <br> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/detect-device/">more info</a> </p>
|
849 |
+
</div>
|
850 |
+
<br><br>
|
851 |
+
|
852 |
+
<?php
|
853 |
+
|
854 |
+
// Facebook Analytics
|
855 |
+
if ( isset( $options['fb_analytics'] ) ) {
|
856 |
+
?>
|
857 |
+
<p>
|
858 |
+
<label>
|
859 |
+
<input name="ht_ctc_othersettings[fb_analytics]" type="checkbox" value="1" <?php checked( $options['fb_analytics'], 1 ); ?> id="fb_analytics" />
|
860 |
+
<span>Facebook Analytics</span>
|
861 |
+
</label>
|
862 |
+
</p>
|
863 |
+
<?php
|
864 |
+
} else {
|
865 |
+
?>
|
866 |
+
<p>
|
867 |
+
<label>
|
868 |
+
<input name="ht_ctc_othersettings[fb_analytics]" type="checkbox" value="1" id="fb_analytics" />
|
869 |
+
<span>Facebook Analytics</span>
|
870 |
+
</label>
|
871 |
+
</p>
|
872 |
+
<?php
|
873 |
+
}
|
874 |
+
?>
|
875 |
+
<p class="description"> This feature is <b>depreacted</b> </p>
|
876 |
+
<p class="description"> If Facebook Analytics installed - creates an Event there - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/facebook-analytics/">more info</a> </p>
|
877 |
+
<br><br><br>
|
878 |
+
|
879 |
+
|
880 |
+
|
881 |
+
|
882 |
+
</div>
|
883 |
+
</li>
|
884 |
+
</ul>
|
885 |
+
|
886 |
+
<?php
|
887 |
+
}
|
888 |
+
|
889 |
+
|
890 |
+
}
|
891 |
+
|
892 |
+
$ht_ctc_admin_customize_styles = new HT_CTC_Admin_Customize_Styles();
|
893 |
+
|
894 |
+
add_action('admin_menu', array($ht_ctc_admin_customize_styles, 'menu') );
|
895 |
+
add_action('admin_init', array($ht_ctc_admin_customize_styles, 'settings') );
|
896 |
+
|
897 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
898 |
endif; // END class_exists check
|
new/admin/class-ht-ctc-admin-group-page.php
CHANGED
@@ -1,747 +1,748 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* group settings page - admin
|
4 |
-
*
|
5 |
-
* group chat options ..
|
6 |
-
*
|
7 |
-
* @package ctc
|
8 |
-
* @subpackage admin
|
9 |
-
* @since 2.0
|
10 |
-
*/
|
11 |
-
|
12 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
-
|
14 |
-
if ( ! class_exists( 'HT_CTC_Admin_Group_Page' ) ) :
|
15 |
-
|
16 |
-
class HT_CTC_Admin_Group_Page {
|
17 |
-
|
18 |
-
public function menu() {
|
19 |
-
|
20 |
-
add_submenu_page(
|
21 |
-
'click-to-chat',
|
22 |
-
'Group Chat/Invite',
|
23 |
-
'Group',
|
24 |
-
'manage_options',
|
25 |
-
'click-to-chat-group-feature',
|
26 |
-
array( $this, 'settings_page' )
|
27 |
-
);
|
28 |
-
}
|
29 |
-
|
30 |
-
public function settings_page() {
|
31 |
-
|
32 |
-
if ( ! current_user_can('manage_options') ) {
|
33 |
-
return;
|
34 |
-
}
|
35 |
-
|
36 |
-
?>
|
37 |
-
|
38 |
-
<div class="wrap">
|
39 |
-
|
40 |
-
<?php settings_errors(); ?>
|
41 |
-
|
42 |
-
<div class="row">
|
43 |
-
<div class="col s12 m12 xl8 options">
|
44 |
-
<form action="options.php" method="post" class="">
|
45 |
-
<?php settings_fields( 'ht_ctc_group_page_settings_fields' ); ?>
|
46 |
-
<?php do_settings_sections( 'ht_ctc_group_page_settings_sections_do' ) ?>
|
47 |
-
<?php submit_button() ?>
|
48 |
-
</form>
|
49 |
-
</div>
|
50 |
-
<!-- <div class="col s12 m12 xl6 ht-cc-admin-sidebar">
|
51 |
-
</div> -->
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
|
56 |
-
<?php
|
57 |
-
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
public function settings() {
|
62 |
-
|
63 |
-
// main settings - options enable .. group, share ..
|
64 |
-
// chat options
|
65 |
-
register_setting( 'ht_ctc_group_page_settings_fields', 'ht_ctc_group' , array( $this, 'options_sanitize' ) );
|
66 |
-
|
67 |
-
add_settings_section( 'ht_ctc_main_page_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_group_page_settings_sections_do' );
|
68 |
-
|
69 |
-
add_settings_field( 'group_id', 'WhatsApp Group ID', array( $this, 'group_id_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
70 |
-
add_settings_field( 'group_cta', 'Call to Action', array( $this, 'group_cta_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
71 |
-
|
72 |
-
add_settings_field( 'group_ctc_desktop_style', 'Style for Desktop', array( $this, 'group_ctc_desktop_style_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
73 |
-
add_settings_field( 'group_ctc_mobile_style', 'Style for Mobile', array( $this, 'group_ctc_mobile_style_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
74 |
-
add_settings_field( 'group_ctc_position', 'Position to place', array( $this, 'group_ctc_position_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
75 |
-
add_settings_field( 'group_show_hide', 'Show/Hide', array( $this, 'group_show_hide_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
76 |
-
add_settings_field( 'group_shortcode_cb', '', array( $this, 'group_shortcode_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
77 |
-
|
78 |
-
|
79 |
-
}
|
80 |
-
|
81 |
-
public function main_settings_section_cb() {
|
82 |
-
?>
|
83 |
-
<h1>Group Chat/Invite</h1>
|
84 |
-
<?php
|
85 |
-
}
|
86 |
-
|
87 |
-
|
88 |
-
// WhatsApp Group ID.
|
89 |
-
function group_id_cb() {
|
90 |
-
$options = get_option('ht_ctc_group');
|
91 |
-
?>
|
92 |
-
<div class="row">
|
93 |
-
<div class="input-field col s12">
|
94 |
-
<input name="ht_ctc_group[group_id]" value="<?php echo esc_attr( $options['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
|
95 |
-
<label for="whatsapp_group_id">WhatsApp Group ID.</label>
|
96 |
-
<p class="description">Enter WhatsApp Group ID. E.g. 9EHLsEsOeJk6AVtE8AvXiA - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/find-whatsapp-group-id/">more info</a> </p>
|
97 |
-
</div>
|
98 |
-
</div>
|
99 |
-
<?php
|
100 |
-
}
|
101 |
-
|
102 |
-
// call to action
|
103 |
-
function group_cta_cb() {
|
104 |
-
$options = get_option('ht_ctc_group');
|
105 |
-
?>
|
106 |
-
<div class="row">
|
107 |
-
<div class="input-field col s12">
|
108 |
-
<input name="ht_ctc_group[call_to_action]" value="<?php echo esc_attr( $options['call_to_action'] ) ?>" id="call_to_action" type="text" class="input-margin">
|
109 |
-
<label for="call_to_action">Call to Action</label>
|
110 |
-
<p class="description"> Text that appears along with WhatsApp icon/button - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/call-to-action/">more info</a> </p>
|
111 |
-
</div>
|
112 |
-
</div>
|
113 |
-
<?php
|
114 |
-
}
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
// Desktop - select style
|
119 |
-
function group_ctc_desktop_style_cb() {
|
120 |
-
$options = get_option('ht_ctc_group');
|
121 |
-
$style_value = esc_attr( $options['style_desktop'] );
|
122 |
-
?>
|
123 |
-
<div class="row">
|
124 |
-
<div class="input-field col s12" style="margin-bottom: 0px;">
|
125 |
-
<select name="ht_ctc_group[style_desktop]" class="select-2">
|
126 |
-
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
127 |
-
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
128 |
-
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
129 |
-
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
130 |
-
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
131 |
-
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
132 |
-
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
133 |
-
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
134 |
-
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
135 |
-
</select>
|
136 |
-
<label>Select Style for Desktop</label>
|
137 |
-
</div>
|
138 |
-
</div>
|
139 |
-
|
140 |
-
<p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/">List of syles</a> </p>
|
141 |
-
<p class="description">Can customize each style - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>"><?php _e( 'Customize Styles' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
|
142 |
-
|
143 |
-
<?php
|
144 |
-
}
|
145 |
-
|
146 |
-
|
147 |
-
// Mobile - select style
|
148 |
-
function group_ctc_mobile_style_cb() {
|
149 |
-
$options = get_option('ht_ctc_group');
|
150 |
-
$style_value = esc_attr( $options['style_mobile'] );
|
151 |
-
?>
|
152 |
-
<div class="row" style="margin-bottom: 0px;">
|
153 |
-
<div class="input-field col s12">
|
154 |
-
<select name="ht_ctc_group[style_mobile]" class="select-2">
|
155 |
-
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
156 |
-
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
157 |
-
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
158 |
-
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
159 |
-
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
160 |
-
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
161 |
-
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
162 |
-
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
163 |
-
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
164 |
-
</select>
|
165 |
-
<label>Select Style for Mobile</label>
|
166 |
-
</div>
|
167 |
-
</div>
|
168 |
-
|
169 |
-
|
170 |
-
<?php
|
171 |
-
}
|
172 |
-
|
173 |
-
|
174 |
-
// position to place
|
175 |
-
function group_ctc_position_cb() {
|
176 |
-
$options = get_option('ht_ctc_group');
|
177 |
-
|
178 |
-
$side_1 = esc_attr( $options['side_1'] );
|
179 |
-
$side_2 = esc_attr( $options['side_2'] );
|
180 |
-
?>
|
181 |
-
<!-- side - 1 -->
|
182 |
-
<div class="row">
|
183 |
-
<div class="input-field col s6">
|
184 |
-
<select name="ht_ctc_group[side_1]" class="select-2">
|
185 |
-
<option value="bottom" <?php echo $side_1 == 'bottom' ? 'SELECTED' : ''; ?> >bottom</option>
|
186 |
-
<option value="top" <?php echo $side_1 == 'top' ? 'SELECTED' : ''; ?> >top</option>
|
187 |
-
</select>
|
188 |
-
<label>top / bottom </label>
|
189 |
-
</div>
|
190 |
-
|
191 |
-
<div class="input-field col s6">
|
192 |
-
<input name="ht_ctc_group[side_1_value]" value="<?php echo esc_attr( $options['side_1_value'] ) ?>" id="side_1_value" type="text" class="input-margin">
|
193 |
-
<label for="side_1_value">e.g. 10px</label>
|
194 |
-
</div>
|
195 |
-
</div>
|
196 |
-
|
197 |
-
<!-- side - 2 -->
|
198 |
-
<div class="row">
|
199 |
-
<div class="input-field col s6">
|
200 |
-
<select name="ht_ctc_group[side_2]" class="select-2">
|
201 |
-
<option value="right" <?php echo $side_2 == 'right' ? 'SELECTED' : ''; ?> >right</option>
|
202 |
-
<option value="left" <?php echo $side_2 == 'left' ? 'SELECTED' : ''; ?> >left</option>
|
203 |
-
</select>
|
204 |
-
<label>right / left </label>
|
205 |
-
</div>
|
206 |
-
|
207 |
-
<div class="input-field col s6">
|
208 |
-
<input name="ht_ctc_group[side_2_value]" value="<?php echo esc_attr( $options['side_2_value'] ) ?>" id="side_2_value" type="text" class="input-margin">
|
209 |
-
<label for="side_2_value">e.g. 10px</label>
|
210 |
-
</div>
|
211 |
-
</div>
|
212 |
-
|
213 |
-
<p class="description">Add css units as suffix - e.g. 10px, 50% - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/position-to-place/">more info</a> </p>
|
214 |
-
<?php
|
215 |
-
}
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
// show/hide
|
221 |
-
function group_show_hide_cb() {
|
222 |
-
|
223 |
-
|
224 |
-
$options = get_option('ht_ctc_group');
|
225 |
-
|
226 |
-
$show_or_hide = esc_attr( $options['show_or_hide'] );
|
227 |
-
?>
|
228 |
-
|
229 |
-
<ul class="collapsible">
|
230 |
-
<li>
|
231 |
-
<div class="collapsible-header">Show/Hide</div>
|
232 |
-
<div class="collapsible-body">
|
233 |
-
|
234 |
-
<?php
|
235 |
-
|
236 |
-
|
237 |
-
// Hide on Mobile Devices
|
238 |
-
if ( isset( $options['hideon_mobile'] ) ) {
|
239 |
-
?>
|
240 |
-
<p>
|
241 |
-
<label>
|
242 |
-
<input name="ht_ctc_group[hideon_mobile]" type="checkbox" value="1" <?php checked( $options['hideon_mobile'], 1 ); ?> id="hideon_mobile" />
|
243 |
-
<span>Hide on - Mobile Devices</span>
|
244 |
-
</label>
|
245 |
-
</p>
|
246 |
-
<?php
|
247 |
-
} else {
|
248 |
-
?>
|
249 |
-
<p>
|
250 |
-
<label>
|
251 |
-
<input name="ht_ctc_group[hideon_mobile]" type="checkbox" value="1" id="hideon_mobile" />
|
252 |
-
<span>Hide on - Mobile Devices</span>
|
253 |
-
</label>
|
254 |
-
</p>
|
255 |
-
<?php
|
256 |
-
}
|
257 |
-
|
258 |
-
// Hide on Desktop Devices
|
259 |
-
if ( isset( $options['hideon_desktop'] ) ) {
|
260 |
-
?>
|
261 |
-
<p>
|
262 |
-
<label>
|
263 |
-
<input name="ht_ctc_group[hideon_desktop]" type="checkbox" value="1" <?php checked( $options['hideon_desktop'], 1 ); ?> id="hideon_desktop" />
|
264 |
-
<span>Hide on - Desktop Devices</span>
|
265 |
-
</label>
|
266 |
-
</p>
|
267 |
-
<?php
|
268 |
-
} else {
|
269 |
-
?>
|
270 |
-
<p>
|
271 |
-
<label>
|
272 |
-
<input name="ht_ctc_group[hideon_desktop]" type="checkbox" value="1" id="hideon_desktop" />
|
273 |
-
<span>Hide on - Desktop Devices</span>
|
274 |
-
</label>
|
275 |
-
</p>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
?>
|
279 |
-
<!-- <p class="description">plugin detects device based on HTTP User agent </p> -->
|
280 |
-
<p class="description">If working in reverse it might be the cache plugin not detecting the devices - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/hide-based-on-device/">more info</a> </p>
|
281 |
-
|
282 |
-
|
283 |
-
<div class="row" style="margin-bottom: 0px;">
|
284 |
-
<div class="input-field col s12">
|
285 |
-
<select name="ht_ctc_group[show_or_hide]" class="select_show_or_hide">
|
286 |
-
<option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> >Hide on selected pages</option>
|
287 |
-
<option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> >Show on selected pages</option>
|
288 |
-
</select>
|
289 |
-
<!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
|
290 |
-
</div>
|
291 |
-
</div>
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
<p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px">
|
298 |
-
<?php echo 'Select pages to Hide styles <span style="color: green;"> ( Default
|
299 |
-
</p>
|
300 |
-
<!-- <br><br> -->
|
301 |
-
<?php
|
302 |
-
|
303 |
-
// checkboxes - Hide based on Type of posts
|
304 |
-
|
305 |
-
// Single Posts
|
306 |
-
if ( isset( $options['hideon_posts'] ) ) {
|
307 |
-
?>
|
308 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
309 |
-
<label>
|
310 |
-
<input name="ht_ctc_group[hideon_posts]" type="checkbox" value="1" <?php checked( $options['hideon_posts'], 1 ); ?> id="filled-in-box1" />
|
311 |
-
<span>Hide on - Posts</span>
|
312 |
-
</label>
|
313 |
-
</p>
|
314 |
-
<?php
|
315 |
-
} else {
|
316 |
-
?>
|
317 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
318 |
-
<label>
|
319 |
-
<input name="ht_ctc_group[hideon_posts]" type="checkbox" value="1" id="filled-in-box1" />
|
320 |
-
<span>Hide on - Posts</span>
|
321 |
-
</label>
|
322 |
-
</p>
|
323 |
-
<?php
|
324 |
-
}
|
325 |
-
|
326 |
-
|
327 |
-
// Page
|
328 |
-
if ( isset( $options['hideon_page'] ) ) {
|
329 |
-
?>
|
330 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
331 |
-
<label>
|
332 |
-
<input name="ht_ctc_group[hideon_page]" type="checkbox" value="1" <?php checked( $options['hideon_page'], 1 ); ?> id="filled-in-box2" />
|
333 |
-
<span>Hide on - Pages</span>
|
334 |
-
</label>
|
335 |
-
</p>
|
336 |
-
<?php
|
337 |
-
} else {
|
338 |
-
?>
|
339 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
340 |
-
<label>
|
341 |
-
<input name="ht_ctc_group[hideon_page]" type="checkbox" value="1" id="filled-in-box2" />
|
342 |
-
<span>Hide on - Pages</span>
|
343 |
-
</label>
|
344 |
-
</p>
|
345 |
-
<?php
|
346 |
-
}
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
// Home Page
|
352 |
-
// is_home and is_front_page - combined. calling as home/front page
|
353 |
-
if ( isset( $options['hideon_homepage'] ) ) {
|
354 |
-
?>
|
355 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
356 |
-
<label>
|
357 |
-
<input name="ht_ctc_group[hideon_homepage]" type="checkbox" value="1" <?php checked( $options['hideon_homepage'], 1 ); ?> id="filled-in-box3" />
|
358 |
-
<span>Hide on - Home/Front Page</span>
|
359 |
-
</label>
|
360 |
-
</p>
|
361 |
-
<?php
|
362 |
-
} else {
|
363 |
-
?>
|
364 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
365 |
-
<label>
|
366 |
-
<input name="ht_ctc_group[hideon_homepage]" type="checkbox" value="1" id="filled-in-box3" />
|
367 |
-
<span>Hide on - Home/Front Page</span>
|
368 |
-
</label>
|
369 |
-
</p>
|
370 |
-
<?php
|
371 |
-
}
|
372 |
-
|
373 |
-
|
374 |
-
// Category
|
375 |
-
if ( isset( $options['hideon_category'] ) ) {
|
376 |
-
?>
|
377 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
378 |
-
<label>
|
379 |
-
<input name="ht_ctc_group[hideon_category]" type="checkbox" value="1" <?php checked( $options['hideon_category'], 1 ); ?> id="filled-in-box5" />
|
380 |
-
<span>Hide on - Category</span>
|
381 |
-
</label>
|
382 |
-
</p>
|
383 |
-
<?php
|
384 |
-
} else {
|
385 |
-
?>
|
386 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
387 |
-
<label>
|
388 |
-
<input name="ht_ctc_group[hideon_category]" type="checkbox" value="1" id="filled-in-box5" />
|
389 |
-
<span>Hide on - Category</span>
|
390 |
-
</label>
|
391 |
-
</p>
|
392 |
-
<?php
|
393 |
-
}
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
// Archive
|
398 |
-
if ( isset( $options['hideon_archive'] ) ) {
|
399 |
-
?>
|
400 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
401 |
-
<label>
|
402 |
-
<input name="ht_ctc_group[hideon_archive]" type="checkbox" value="1" <?php checked( $options['hideon_archive'], 1 ); ?> id="filled-in-box6" />
|
403 |
-
<span>Hide on - Archive</span>
|
404 |
-
</label>
|
405 |
-
</p>
|
406 |
-
<?php
|
407 |
-
} else {
|
408 |
-
?>
|
409 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
410 |
-
<label>
|
411 |
-
<input name="ht_ctc_group[hideon_archive]" type="checkbox" value="1" id="filled-in-box6" />
|
412 |
-
<span>Hide on - Archive</span>
|
413 |
-
</label>
|
414 |
-
</p>
|
415 |
-
<?php
|
416 |
-
}
|
417 |
-
|
418 |
-
|
419 |
-
// 404 Page
|
420 |
-
if ( isset( $options['hideon_404'] ) ) {
|
421 |
-
?>
|
422 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
423 |
-
<label>
|
424 |
-
<input name="ht_ctc_group[hideon_404]" type="checkbox" value="1" <?php checked( $options['hideon_404'], 1 ); ?> id="hideon_404" />
|
425 |
-
<span>Hide on - 404 Page</span>
|
426 |
-
</label>
|
427 |
-
</p>
|
428 |
-
<?php
|
429 |
-
} else {
|
430 |
-
?>
|
431 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
432 |
-
<label>
|
433 |
-
<input name="ht_ctc_group[hideon_404]" type="checkbox" value="1" id="hideon_404" />
|
434 |
-
<span>Hide on - 404 Page</span>
|
435 |
-
</label>
|
436 |
-
</p>
|
437 |
-
<?php
|
438 |
-
}
|
439 |
-
|
440 |
-
|
441 |
-
// WooCommerce single product pages
|
442 |
-
if ( isset( $options['hideon_wooproduct'] ) ) {
|
443 |
-
?>
|
444 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
445 |
-
<label>
|
446 |
-
<input name="ht_ctc_group[hideon_wooproduct]" type="checkbox" value="1" <?php checked( $options['hideon_wooproduct'], 1 ); ?> id="hideon_wooproduct" />
|
447 |
-
<span>Hide on - WooCommerce single product pages</span>
|
448 |
-
</label>
|
449 |
-
</p>
|
450 |
-
<?php
|
451 |
-
} else {
|
452 |
-
?>
|
453 |
-
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
454 |
-
<label>
|
455 |
-
<input name="ht_ctc_group[hideon_wooproduct]" type="checkbox" value="1" id="hideon_wooproduct" />
|
456 |
-
<span>Hide on - WooCommerce single product pages</span>
|
457 |
-
</label>
|
458 |
-
</p>
|
459 |
-
<?php
|
460 |
-
}
|
461 |
-
|
462 |
-
|
463 |
-
?>
|
464 |
-
<p class="description ctc_show_hide_display show-hide_display-none hidebased">Check to hide Styles based on the type of pages </p>
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
<
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
<
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
?>
|
586 |
-
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
587 |
-
<label>
|
588 |
-
<input name="ht_ctc_group[
|
589 |
-
<span>Show on -
|
590 |
-
</label>
|
591 |
-
</p>
|
592 |
-
<?php
|
593 |
-
}
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
<
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
<
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
<
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
add_action('
|
746 |
-
|
747 |
-
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* group settings page - admin
|
4 |
+
*
|
5 |
+
* group chat options ..
|
6 |
+
*
|
7 |
+
* @package ctc
|
8 |
+
* @subpackage admin
|
9 |
+
* @since 2.0
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
+
|
14 |
+
if ( ! class_exists( 'HT_CTC_Admin_Group_Page' ) ) :
|
15 |
+
|
16 |
+
class HT_CTC_Admin_Group_Page {
|
17 |
+
|
18 |
+
public function menu() {
|
19 |
+
|
20 |
+
add_submenu_page(
|
21 |
+
'click-to-chat',
|
22 |
+
'Group Chat/Invite',
|
23 |
+
'Group',
|
24 |
+
'manage_options',
|
25 |
+
'click-to-chat-group-feature',
|
26 |
+
array( $this, 'settings_page' )
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
+
public function settings_page() {
|
31 |
+
|
32 |
+
if ( ! current_user_can('manage_options') ) {
|
33 |
+
return;
|
34 |
+
}
|
35 |
+
|
36 |
+
?>
|
37 |
+
|
38 |
+
<div class="wrap">
|
39 |
+
|
40 |
+
<?php settings_errors(); ?>
|
41 |
+
|
42 |
+
<div class="row">
|
43 |
+
<div class="col s12 m12 xl8 options">
|
44 |
+
<form action="options.php" method="post" class="">
|
45 |
+
<?php settings_fields( 'ht_ctc_group_page_settings_fields' ); ?>
|
46 |
+
<?php do_settings_sections( 'ht_ctc_group_page_settings_sections_do' ) ?>
|
47 |
+
<?php submit_button() ?>
|
48 |
+
</form>
|
49 |
+
</div>
|
50 |
+
<!-- <div class="col s12 m12 xl6 ht-cc-admin-sidebar">
|
51 |
+
</div> -->
|
52 |
+
</div>
|
53 |
+
|
54 |
+
</div>
|
55 |
+
|
56 |
+
<?php
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
public function settings() {
|
62 |
+
|
63 |
+
// main settings - options enable .. group, share ..
|
64 |
+
// chat options
|
65 |
+
register_setting( 'ht_ctc_group_page_settings_fields', 'ht_ctc_group' , array( $this, 'options_sanitize' ) );
|
66 |
+
|
67 |
+
add_settings_section( 'ht_ctc_main_page_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_group_page_settings_sections_do' );
|
68 |
+
|
69 |
+
add_settings_field( 'group_id', 'WhatsApp Group ID', array( $this, 'group_id_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
70 |
+
add_settings_field( 'group_cta', 'Call to Action', array( $this, 'group_cta_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
71 |
+
|
72 |
+
add_settings_field( 'group_ctc_desktop_style', 'Style for Desktop', array( $this, 'group_ctc_desktop_style_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
73 |
+
add_settings_field( 'group_ctc_mobile_style', 'Style for Mobile', array( $this, 'group_ctc_mobile_style_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
74 |
+
add_settings_field( 'group_ctc_position', 'Position to place', array( $this, 'group_ctc_position_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
75 |
+
add_settings_field( 'group_show_hide', 'Show/Hide', array( $this, 'group_show_hide_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
76 |
+
add_settings_field( 'group_shortcode_cb', '', array( $this, 'group_shortcode_cb' ), 'ht_ctc_group_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
77 |
+
|
78 |
+
|
79 |
+
}
|
80 |
+
|
81 |
+
public function main_settings_section_cb() {
|
82 |
+
?>
|
83 |
+
<h1>Group Chat/Invite</h1>
|
84 |
+
<?php
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
// WhatsApp Group ID.
|
89 |
+
function group_id_cb() {
|
90 |
+
$options = get_option('ht_ctc_group');
|
91 |
+
?>
|
92 |
+
<div class="row">
|
93 |
+
<div class="input-field col s12">
|
94 |
+
<input name="ht_ctc_group[group_id]" value="<?php echo esc_attr( $options['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
|
95 |
+
<label for="whatsapp_group_id">WhatsApp Group ID.</label>
|
96 |
+
<p class="description">Enter WhatsApp Group ID. E.g. 9EHLsEsOeJk6AVtE8AvXiA - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/find-whatsapp-group-id/">more info</a> </p>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
<?php
|
100 |
+
}
|
101 |
+
|
102 |
+
// call to action
|
103 |
+
function group_cta_cb() {
|
104 |
+
$options = get_option('ht_ctc_group');
|
105 |
+
?>
|
106 |
+
<div class="row">
|
107 |
+
<div class="input-field col s12">
|
108 |
+
<input name="ht_ctc_group[call_to_action]" value="<?php echo esc_attr( $options['call_to_action'] ) ?>" id="call_to_action" type="text" class="input-margin">
|
109 |
+
<label for="call_to_action">Call to Action</label>
|
110 |
+
<p class="description"> Text that appears along with WhatsApp icon/button - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/call-to-action/">more info</a> </p>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
<?php
|
114 |
+
}
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
// Desktop - select style
|
119 |
+
function group_ctc_desktop_style_cb() {
|
120 |
+
$options = get_option('ht_ctc_group');
|
121 |
+
$style_value = esc_attr( $options['style_desktop'] );
|
122 |
+
?>
|
123 |
+
<div class="row">
|
124 |
+
<div class="input-field col s12" style="margin-bottom: 0px;">
|
125 |
+
<select name="ht_ctc_group[style_desktop]" class="select-2">
|
126 |
+
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
127 |
+
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
128 |
+
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
129 |
+
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
130 |
+
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
131 |
+
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
132 |
+
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
133 |
+
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
134 |
+
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
135 |
+
</select>
|
136 |
+
<label>Select Style for Desktop</label>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
|
140 |
+
<p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/">List of syles</a> </p>
|
141 |
+
<p class="description">Can customize each style - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>"><?php _e( 'Customize Styles' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
|
142 |
+
|
143 |
+
<?php
|
144 |
+
}
|
145 |
+
|
146 |
+
|
147 |
+
// Mobile - select style
|
148 |
+
function group_ctc_mobile_style_cb() {
|
149 |
+
$options = get_option('ht_ctc_group');
|
150 |
+
$style_value = esc_attr( $options['style_mobile'] );
|
151 |
+
?>
|
152 |
+
<div class="row" style="margin-bottom: 0px;">
|
153 |
+
<div class="input-field col s12">
|
154 |
+
<select name="ht_ctc_group[style_mobile]" class="select-2">
|
155 |
+
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
156 |
+
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
157 |
+
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
158 |
+
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
159 |
+
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
160 |
+
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
161 |
+
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
162 |
+
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
163 |
+
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
164 |
+
</select>
|
165 |
+
<label>Select Style for Mobile</label>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
+
|
169 |
+
|
170 |
+
<?php
|
171 |
+
}
|
172 |
+
|
173 |
+
|
174 |
+
// position to place
|
175 |
+
function group_ctc_position_cb() {
|
176 |
+
$options = get_option('ht_ctc_group');
|
177 |
+
|
178 |
+
$side_1 = esc_attr( $options['side_1'] );
|
179 |
+
$side_2 = esc_attr( $options['side_2'] );
|
180 |
+
?>
|
181 |
+
<!-- side - 1 -->
|
182 |
+
<div class="row">
|
183 |
+
<div class="input-field col s6">
|
184 |
+
<select name="ht_ctc_group[side_1]" class="select-2">
|
185 |
+
<option value="bottom" <?php echo $side_1 == 'bottom' ? 'SELECTED' : ''; ?> >bottom</option>
|
186 |
+
<option value="top" <?php echo $side_1 == 'top' ? 'SELECTED' : ''; ?> >top</option>
|
187 |
+
</select>
|
188 |
+
<label>top / bottom </label>
|
189 |
+
</div>
|
190 |
+
|
191 |
+
<div class="input-field col s6">
|
192 |
+
<input name="ht_ctc_group[side_1_value]" value="<?php echo esc_attr( $options['side_1_value'] ) ?>" id="side_1_value" type="text" class="input-margin">
|
193 |
+
<label for="side_1_value">e.g. 10px</label>
|
194 |
+
</div>
|
195 |
+
</div>
|
196 |
+
|
197 |
+
<!-- side - 2 -->
|
198 |
+
<div class="row">
|
199 |
+
<div class="input-field col s6">
|
200 |
+
<select name="ht_ctc_group[side_2]" class="select-2">
|
201 |
+
<option value="right" <?php echo $side_2 == 'right' ? 'SELECTED' : ''; ?> >right</option>
|
202 |
+
<option value="left" <?php echo $side_2 == 'left' ? 'SELECTED' : ''; ?> >left</option>
|
203 |
+
</select>
|
204 |
+
<label>right / left </label>
|
205 |
+
</div>
|
206 |
+
|
207 |
+
<div class="input-field col s6">
|
208 |
+
<input name="ht_ctc_group[side_2_value]" value="<?php echo esc_attr( $options['side_2_value'] ) ?>" id="side_2_value" type="text" class="input-margin">
|
209 |
+
<label for="side_2_value">e.g. 10px</label>
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
|
213 |
+
<p class="description">Add css units as suffix - e.g. 10px, 50% - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/position-to-place/">more info</a> </p>
|
214 |
+
<?php
|
215 |
+
}
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
// show/hide
|
221 |
+
function group_show_hide_cb() {
|
222 |
+
|
223 |
+
|
224 |
+
$options = get_option('ht_ctc_group');
|
225 |
+
|
226 |
+
$show_or_hide = esc_attr( $options['show_or_hide'] );
|
227 |
+
?>
|
228 |
+
|
229 |
+
<ul class="collapsible">
|
230 |
+
<li>
|
231 |
+
<div class="collapsible-header">Show/Hide</div>
|
232 |
+
<div class="collapsible-body">
|
233 |
+
|
234 |
+
<?php
|
235 |
+
|
236 |
+
|
237 |
+
// Hide on Mobile Devices
|
238 |
+
if ( isset( $options['hideon_mobile'] ) ) {
|
239 |
+
?>
|
240 |
+
<p>
|
241 |
+
<label>
|
242 |
+
<input name="ht_ctc_group[hideon_mobile]" type="checkbox" value="1" <?php checked( $options['hideon_mobile'], 1 ); ?> id="hideon_mobile" />
|
243 |
+
<span>Hide on - Mobile Devices</span>
|
244 |
+
</label>
|
245 |
+
</p>
|
246 |
+
<?php
|
247 |
+
} else {
|
248 |
+
?>
|
249 |
+
<p>
|
250 |
+
<label>
|
251 |
+
<input name="ht_ctc_group[hideon_mobile]" type="checkbox" value="1" id="hideon_mobile" />
|
252 |
+
<span>Hide on - Mobile Devices</span>
|
253 |
+
</label>
|
254 |
+
</p>
|
255 |
+
<?php
|
256 |
+
}
|
257 |
+
|
258 |
+
// Hide on Desktop Devices
|
259 |
+
if ( isset( $options['hideon_desktop'] ) ) {
|
260 |
+
?>
|
261 |
+
<p>
|
262 |
+
<label>
|
263 |
+
<input name="ht_ctc_group[hideon_desktop]" type="checkbox" value="1" <?php checked( $options['hideon_desktop'], 1 ); ?> id="hideon_desktop" />
|
264 |
+
<span>Hide on - Desktop Devices</span>
|
265 |
+
</label>
|
266 |
+
</p>
|
267 |
+
<?php
|
268 |
+
} else {
|
269 |
+
?>
|
270 |
+
<p>
|
271 |
+
<label>
|
272 |
+
<input name="ht_ctc_group[hideon_desktop]" type="checkbox" value="1" id="hideon_desktop" />
|
273 |
+
<span>Hide on - Desktop Devices</span>
|
274 |
+
</label>
|
275 |
+
</p>
|
276 |
+
<?php
|
277 |
+
}
|
278 |
+
?>
|
279 |
+
<!-- <p class="description">plugin detects device based on HTTP User agent </p> -->
|
280 |
+
<p class="description">If working in reverse it might be the cache plugin not detecting the devices - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/hide-based-on-device/">more info</a> </p>
|
281 |
+
|
282 |
+
|
283 |
+
<div class="row" style="margin-bottom: 0px;">
|
284 |
+
<div class="input-field col s12">
|
285 |
+
<select name="ht_ctc_group[show_or_hide]" class="select_show_or_hide">
|
286 |
+
<option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> >Hide on selected pages</option>
|
287 |
+
<option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> >Show on selected pages</option>
|
288 |
+
</select>
|
289 |
+
<!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
|
290 |
+
</div>
|
291 |
+
</div>
|
292 |
+
|
293 |
+
|
294 |
+
<!-- ######### Hide ######### -->
|
295 |
+
|
296 |
+
|
297 |
+
<p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px">
|
298 |
+
<?php echo 'Select pages to Hide styles <span style="color: green;"> ( Default shows on all pages ) ' ?>
|
299 |
+
</p>
|
300 |
+
<!-- <br><br> -->
|
301 |
+
<?php
|
302 |
+
|
303 |
+
// checkboxes - Hide based on Type of posts
|
304 |
+
|
305 |
+
// Single Posts
|
306 |
+
if ( isset( $options['hideon_posts'] ) ) {
|
307 |
+
?>
|
308 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
309 |
+
<label>
|
310 |
+
<input name="ht_ctc_group[hideon_posts]" type="checkbox" value="1" <?php checked( $options['hideon_posts'], 1 ); ?> id="filled-in-box1" />
|
311 |
+
<span>Hide on - Posts</span>
|
312 |
+
</label>
|
313 |
+
</p>
|
314 |
+
<?php
|
315 |
+
} else {
|
316 |
+
?>
|
317 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
318 |
+
<label>
|
319 |
+
<input name="ht_ctc_group[hideon_posts]" type="checkbox" value="1" id="filled-in-box1" />
|
320 |
+
<span>Hide on - Posts</span>
|
321 |
+
</label>
|
322 |
+
</p>
|
323 |
+
<?php
|
324 |
+
}
|
325 |
+
|
326 |
+
|
327 |
+
// Page
|
328 |
+
if ( isset( $options['hideon_page'] ) ) {
|
329 |
+
?>
|
330 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
331 |
+
<label>
|
332 |
+
<input name="ht_ctc_group[hideon_page]" type="checkbox" value="1" <?php checked( $options['hideon_page'], 1 ); ?> id="filled-in-box2" />
|
333 |
+
<span>Hide on - Pages</span>
|
334 |
+
</label>
|
335 |
+
</p>
|
336 |
+
<?php
|
337 |
+
} else {
|
338 |
+
?>
|
339 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
340 |
+
<label>
|
341 |
+
<input name="ht_ctc_group[hideon_page]" type="checkbox" value="1" id="filled-in-box2" />
|
342 |
+
<span>Hide on - Pages</span>
|
343 |
+
</label>
|
344 |
+
</p>
|
345 |
+
<?php
|
346 |
+
}
|
347 |
+
|
348 |
+
|
349 |
+
|
350 |
+
|
351 |
+
// Home Page
|
352 |
+
// is_home and is_front_page - combined. calling as home/front page
|
353 |
+
if ( isset( $options['hideon_homepage'] ) ) {
|
354 |
+
?>
|
355 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
356 |
+
<label>
|
357 |
+
<input name="ht_ctc_group[hideon_homepage]" type="checkbox" value="1" <?php checked( $options['hideon_homepage'], 1 ); ?> id="filled-in-box3" />
|
358 |
+
<span>Hide on - Home/Front Page</span>
|
359 |
+
</label>
|
360 |
+
</p>
|
361 |
+
<?php
|
362 |
+
} else {
|
363 |
+
?>
|
364 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
365 |
+
<label>
|
366 |
+
<input name="ht_ctc_group[hideon_homepage]" type="checkbox" value="1" id="filled-in-box3" />
|
367 |
+
<span>Hide on - Home/Front Page</span>
|
368 |
+
</label>
|
369 |
+
</p>
|
370 |
+
<?php
|
371 |
+
}
|
372 |
+
|
373 |
+
|
374 |
+
// Category
|
375 |
+
if ( isset( $options['hideon_category'] ) ) {
|
376 |
+
?>
|
377 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
378 |
+
<label>
|
379 |
+
<input name="ht_ctc_group[hideon_category]" type="checkbox" value="1" <?php checked( $options['hideon_category'], 1 ); ?> id="filled-in-box5" />
|
380 |
+
<span>Hide on - Category</span>
|
381 |
+
</label>
|
382 |
+
</p>
|
383 |
+
<?php
|
384 |
+
} else {
|
385 |
+
?>
|
386 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
387 |
+
<label>
|
388 |
+
<input name="ht_ctc_group[hideon_category]" type="checkbox" value="1" id="filled-in-box5" />
|
389 |
+
<span>Hide on - Category</span>
|
390 |
+
</label>
|
391 |
+
</p>
|
392 |
+
<?php
|
393 |
+
}
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
// Archive
|
398 |
+
if ( isset( $options['hideon_archive'] ) ) {
|
399 |
+
?>
|
400 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
401 |
+
<label>
|
402 |
+
<input name="ht_ctc_group[hideon_archive]" type="checkbox" value="1" <?php checked( $options['hideon_archive'], 1 ); ?> id="filled-in-box6" />
|
403 |
+
<span>Hide on - Archive</span>
|
404 |
+
</label>
|
405 |
+
</p>
|
406 |
+
<?php
|
407 |
+
} else {
|
408 |
+
?>
|
409 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
410 |
+
<label>
|
411 |
+
<input name="ht_ctc_group[hideon_archive]" type="checkbox" value="1" id="filled-in-box6" />
|
412 |
+
<span>Hide on - Archive</span>
|
413 |
+
</label>
|
414 |
+
</p>
|
415 |
+
<?php
|
416 |
+
}
|
417 |
+
|
418 |
+
|
419 |
+
// 404 Page
|
420 |
+
if ( isset( $options['hideon_404'] ) ) {
|
421 |
+
?>
|
422 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
423 |
+
<label>
|
424 |
+
<input name="ht_ctc_group[hideon_404]" type="checkbox" value="1" <?php checked( $options['hideon_404'], 1 ); ?> id="hideon_404" />
|
425 |
+
<span>Hide on - 404 Page</span>
|
426 |
+
</label>
|
427 |
+
</p>
|
428 |
+
<?php
|
429 |
+
} else {
|
430 |
+
?>
|
431 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
432 |
+
<label>
|
433 |
+
<input name="ht_ctc_group[hideon_404]" type="checkbox" value="1" id="hideon_404" />
|
434 |
+
<span>Hide on - 404 Page</span>
|
435 |
+
</label>
|
436 |
+
</p>
|
437 |
+
<?php
|
438 |
+
}
|
439 |
+
|
440 |
+
|
441 |
+
// WooCommerce single product pages
|
442 |
+
if ( isset( $options['hideon_wooproduct'] ) ) {
|
443 |
+
?>
|
444 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
445 |
+
<label>
|
446 |
+
<input name="ht_ctc_group[hideon_wooproduct]" type="checkbox" value="1" <?php checked( $options['hideon_wooproduct'], 1 ); ?> id="hideon_wooproduct" />
|
447 |
+
<span>Hide on - WooCommerce single product pages</span>
|
448 |
+
</label>
|
449 |
+
</p>
|
450 |
+
<?php
|
451 |
+
} else {
|
452 |
+
?>
|
453 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
454 |
+
<label>
|
455 |
+
<input name="ht_ctc_group[hideon_wooproduct]" type="checkbox" value="1" id="hideon_wooproduct" />
|
456 |
+
<span>Hide on - WooCommerce single product pages</span>
|
457 |
+
</label>
|
458 |
+
</p>
|
459 |
+
<?php
|
460 |
+
}
|
461 |
+
|
462 |
+
|
463 |
+
?>
|
464 |
+
<p class="description ctc_show_hide_display show-hide_display-none hidebased">Check to hide Styles based on the type of pages </p>
|
465 |
+
|
466 |
+
<!-- ID's list to hide styles -->
|
467 |
+
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
468 |
+
<div class="input-field col s12">
|
469 |
+
<input name="ht_ctc_group[list_hideon_pages]" value="<?php echo esc_attr( $options['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
|
470 |
+
<label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
|
471 |
+
<p class="description">Add Post, Pages, Media - ID's to hide, can add multiple id's by separating with a comma ( , )</p>
|
472 |
+
</div>
|
473 |
+
</div>
|
474 |
+
|
475 |
+
<!-- Categorys list - to hide -->
|
476 |
+
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
477 |
+
<div class="input-field col s12">
|
478 |
+
<input name="ht_ctc_group[list_hideon_cat]" value="<?php echo esc_attr( $options['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
|
479 |
+
<label for="ccw_list_cat_tohide"><?php _e( 'Category name\'s to Hide - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
480 |
+
<p class="description">Category name\'s to hide, can add multiple Categories by separating with a comma ( , )</p>
|
481 |
+
</div>
|
482 |
+
</div>
|
483 |
+
|
484 |
+
|
485 |
+
<!-- ######### Show ######### -->
|
486 |
+
|
487 |
+
|
488 |
+
<p class="description ctc_show_hide_display show-hide_display-none showbased" style="margin-bottom: 15px">
|
489 |
+
<?php echo 'Select pages to display styles <span style="background-color: #dddddd; color: red;"> ( Default hides on all pages ) ' ?>
|
490 |
+
</p>
|
491 |
+
<?php
|
492 |
+
|
493 |
+
// checkboxes - Show based on Type of posts
|
494 |
+
|
495 |
+
// Single Posts
|
496 |
+
if ( isset( $options['showon_posts'] ) ) {
|
497 |
+
?>
|
498 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
499 |
+
<label>
|
500 |
+
<input name="ht_ctc_group[showon_posts]" type="checkbox" value="1" <?php checked( $options['showon_posts'], 1 ); ?> id="show_filled-in-box1" />
|
501 |
+
<span>Show on - Posts</span>
|
502 |
+
</label>
|
503 |
+
</p>
|
504 |
+
<?php
|
505 |
+
} else {
|
506 |
+
?>
|
507 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
508 |
+
<label>
|
509 |
+
<input name="ht_ctc_group[showon_posts]" type="checkbox" value="1" id="show_filled-in-box1" />
|
510 |
+
<span>Show on - Posts</span>
|
511 |
+
</label>
|
512 |
+
</p>
|
513 |
+
<?php
|
514 |
+
}
|
515 |
+
|
516 |
+
|
517 |
+
// Page
|
518 |
+
if ( isset( $options['showon_page'] ) ) {
|
519 |
+
?>
|
520 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
521 |
+
<label>
|
522 |
+
<input name="ht_ctc_group[showon_page]" type="checkbox" value="1" <?php checked( $options['showon_page'], 1 ); ?> id="show_filled-in-box2" />
|
523 |
+
<span>Show on - Pages</span>
|
524 |
+
</label>
|
525 |
+
</p>
|
526 |
+
<?php
|
527 |
+
} else {
|
528 |
+
?>
|
529 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
530 |
+
<label>
|
531 |
+
<input name="ht_ctc_group[showon_page]" type="checkbox" value="1" id="show_filled-in-box2" />
|
532 |
+
<span>Show on - Pages</span>
|
533 |
+
</label>
|
534 |
+
</p>
|
535 |
+
<?php
|
536 |
+
}
|
537 |
+
|
538 |
+
|
539 |
+
// Home Page
|
540 |
+
// is_home and is_front_page - combined. calling as home/front page
|
541 |
+
if ( isset( $options['showon_homepage'] ) ) {
|
542 |
+
?>
|
543 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
544 |
+
<label>
|
545 |
+
<input name="ht_ctc_group[showon_homepage]" type="checkbox" value="1" <?php checked( $options['showon_homepage'], 1 ); ?> id="show_filled-in-box3" />
|
546 |
+
<span>Show on - Home/Front Page</span>
|
547 |
+
</label>
|
548 |
+
</p>
|
549 |
+
<?php
|
550 |
+
} else {
|
551 |
+
?>
|
552 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
553 |
+
<label>
|
554 |
+
<input name="ht_ctc_group[showon_homepage]" type="checkbox" value="1" id="show_filled-in-box3" />
|
555 |
+
<span>Show on - Home/Front Page</span>
|
556 |
+
</label>
|
557 |
+
</p>
|
558 |
+
<?php
|
559 |
+
}
|
560 |
+
|
561 |
+
|
562 |
+
// Category
|
563 |
+
if ( isset( $options['showon_category'] ) ) {
|
564 |
+
?>
|
565 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
566 |
+
<label>
|
567 |
+
<input name="ht_ctc_group[showon_category]" type="checkbox" value="1" <?php checked( $options['showon_category'], 1 ); ?> id="show_filled-in-box5" />
|
568 |
+
<span>Show on - Category</span>
|
569 |
+
</label>
|
570 |
+
</p>
|
571 |
+
<?php
|
572 |
+
} else {
|
573 |
+
?>
|
574 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
575 |
+
<label>
|
576 |
+
<input name="ht_ctc_group[showon_category]" type="checkbox" value="1" id="show_filled-in-box5" />
|
577 |
+
<span>Show on - Category</span>
|
578 |
+
</label>
|
579 |
+
</p>
|
580 |
+
<?php
|
581 |
+
}
|
582 |
+
|
583 |
+
// Archive
|
584 |
+
if ( isset( $options['showon_archive'] ) ) {
|
585 |
+
?>
|
586 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
587 |
+
<label>
|
588 |
+
<input name="ht_ctc_group[showon_archive]" type="checkbox" value="1" <?php checked( $options['showon_archive'], 1 ); ?> id="show_filled-in-box6" />
|
589 |
+
<span>Show on - Archive</span>
|
590 |
+
</label>
|
591 |
+
</p>
|
592 |
+
<?php
|
593 |
+
} else {
|
594 |
+
?>
|
595 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
596 |
+
<label>
|
597 |
+
<input name="ht_ctc_group[showon_archive]" type="checkbox" value="1" id="show_filled-in-box6" />
|
598 |
+
<span>Show on - Archive</span>
|
599 |
+
</label>
|
600 |
+
</p>
|
601 |
+
<?php
|
602 |
+
}
|
603 |
+
|
604 |
+
|
605 |
+
// 404 Page
|
606 |
+
if ( isset( $options['showon_404'] ) ) {
|
607 |
+
?>
|
608 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
609 |
+
<label>
|
610 |
+
<input name="ht_ctc_group[showon_404]" type="checkbox" value="1" <?php checked( $options['showon_404'], 1 ); ?> id="showon_404" />
|
611 |
+
<span>Show on - 404 Page</span>
|
612 |
+
</label>
|
613 |
+
</p>
|
614 |
+
<?php
|
615 |
+
} else {
|
616 |
+
?>
|
617 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
618 |
+
<label>
|
619 |
+
<input name="ht_ctc_group[showon_404]" type="checkbox" value="1" id="showon_404" />
|
620 |
+
<span>Show on - 404 Page</span>
|
621 |
+
</label>
|
622 |
+
</p>
|
623 |
+
<?php
|
624 |
+
}
|
625 |
+
|
626 |
+
|
627 |
+
// WooCommerce single product pages
|
628 |
+
if ( isset( $options['showon_wooproduct'] ) ) {
|
629 |
+
?>
|
630 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
631 |
+
<label>
|
632 |
+
<input name="ht_ctc_group[showon_wooproduct]" type="checkbox" value="1" <?php checked( $options['showon_wooproduct'], 1 ); ?> id="show_filled-in-box7" />
|
633 |
+
<span>Show on - WooCommerce Single product pages</span>
|
634 |
+
</label>
|
635 |
+
</p>
|
636 |
+
<?php
|
637 |
+
} else {
|
638 |
+
?>
|
639 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
640 |
+
<label>
|
641 |
+
<input name="ht_ctc_group[showon_wooproduct]" type="checkbox" value="1" id="show_filled-in-box7" />
|
642 |
+
<span>Show on - WooCommerce Single product pages</span>
|
643 |
+
</label>
|
644 |
+
</p>
|
645 |
+
<?php
|
646 |
+
}
|
647 |
+
|
648 |
+
|
649 |
+
?>
|
650 |
+
<p class="description ctc_show_hide_display show-hide_display-none showbased">Check to display Styles based on type of the page</p>
|
651 |
+
|
652 |
+
<!-- ID's list to show styles -->
|
653 |
+
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
654 |
+
<div class="input-field col s12">
|
655 |
+
<input name="ht_ctc_group[list_showon_pages]" value="<?php echo esc_attr( $options['list_showon_pages'] ) ?>" id="ccw_list_id_toshow" type="text" class="input-margin">
|
656 |
+
<label for="ccw_list_id_toshow">Id's list to show - add ',' after each id </label>
|
657 |
+
<p class="description">Add Post, Page, Media - ID's to show styles, can add multiple id's by separating with a comma ( , )</p>
|
658 |
+
</div>
|
659 |
+
</div>
|
660 |
+
|
661 |
+
<!-- Categorys list - to show -->
|
662 |
+
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
663 |
+
<div class="input-field col s12">
|
664 |
+
<input name="ht_ctc_group[list_showon_cat]" value="<?php echo esc_attr( $options['list_showon_cat'] ) ?>" id="ccw_list_cat_toshow" type="text" class="input-margin">
|
665 |
+
<label for="ccw_list_cat_toshow"><?php _e( 'Category name\'s to Show - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
666 |
+
<p class="description">Add Categories name to show styles, can add multiple Categories by separating with a comma ( , )</p>
|
667 |
+
</div>
|
668 |
+
</div>
|
669 |
+
|
670 |
+
<p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/show-hide-styles/">more info</a> </p>
|
671 |
+
|
672 |
+
|
673 |
+
</div>
|
674 |
+
</li>
|
675 |
+
<ul>
|
676 |
+
|
677 |
+
|
678 |
+
<?php
|
679 |
+
|
680 |
+
}
|
681 |
+
|
682 |
+
|
683 |
+
|
684 |
+
|
685 |
+
function group_shortcode_cb() {
|
686 |
+
?>
|
687 |
+
<p class="description">Shorcodes for Group Chat: [ht-ctc-group] - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/shortcodes-group">more info</a></p>
|
688 |
+
<?php
|
689 |
+
}
|
690 |
+
|
691 |
+
|
692 |
+
|
693 |
+
/**
|
694 |
+
* Sanitize each setting field as needed
|
695 |
+
*
|
696 |
+
* @since 2.0
|
697 |
+
* @param array $input Contains all settings fields as array keys
|
698 |
+
*/
|
699 |
+
public function options_sanitize( $input ) {
|
700 |
+
|
701 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
702 |
+
wp_die( 'not allowed to modify - please contact admin ' );
|
703 |
+
}
|
704 |
+
|
705 |
+
$new_input = array();
|
706 |
+
|
707 |
+
foreach ($input as $key => $value) {
|
708 |
+
|
709 |
+
if ( 'side_1_value' == $key ) {
|
710 |
+
if ( is_numeric($input[$key]) ) {
|
711 |
+
$input[$key] = $input[$key] . 'px';
|
712 |
+
}
|
713 |
+
if ( '' == $input[$key] ) {
|
714 |
+
$input[$key] = '0px';
|
715 |
+
}
|
716 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
717 |
+
} elseif ( 'side_2_value' == $key ) {
|
718 |
+
if ( is_numeric($input[$key]) ) {
|
719 |
+
$input[$key] = $input[$key] . 'px';
|
720 |
+
}
|
721 |
+
if ( '' == $input[$key] ) {
|
722 |
+
$input[$key] = '0px';
|
723 |
+
}
|
724 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
725 |
+
} elseif( isset( $input[$key] ) ) {
|
726 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
727 |
+
}
|
728 |
+
|
729 |
+
|
730 |
+
|
731 |
+
// if( isset( $input[$key] ) ) {
|
732 |
+
// $new_input[$key] = sanitize_text_field( $input[$key] );
|
733 |
+
// }
|
734 |
+
}
|
735 |
+
|
736 |
+
|
737 |
+
return $new_input;
|
738 |
+
}
|
739 |
+
|
740 |
+
|
741 |
+
}
|
742 |
+
|
743 |
+
$ht_ctc_admin_group_page = new HT_CTC_Admin_Group_Page();
|
744 |
+
|
745 |
+
add_action('admin_menu', array($ht_ctc_admin_group_page, 'menu') );
|
746 |
+
add_action('admin_init', array($ht_ctc_admin_group_page, 'settings') );
|
747 |
+
|
748 |
+
endif; // END class_exists check
|
new/admin/class-ht-ctc-admin-main-page.php
CHANGED
@@ -55,15 +55,78 @@ class HT_CTC_Admin_Main_Page {
|
|
55 |
</div>
|
56 |
|
57 |
<!-- sidebar content -->
|
58 |
-
<div class="col s12 m12 xl4 ht-cc-admin-sidebar sticky-sidebar">
|
59 |
<div class="sidebar-content">
|
60 |
-
<p>
|
61 |
Please let us know if you have any suggestions or feedback!! <br>
|
62 |
-
<a href="http://api.whatsapp.com/send?phone=919494429789&text
|
63 |
mail: wp@holithemes.com
|
64 |
-
</p>
|
65 |
|
66 |
-
<div class="col s12 m8">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
<div class="collection with-header">
|
68 |
<div class="collection-header"><bold>HoliThemes On</bold></div>
|
69 |
<a target="_blank" href="https://www.facebook.com/holithemes/" class="collection-item">Facebook</a>
|
@@ -72,33 +135,22 @@ class HT_CTC_Admin_Main_Page {
|
|
72 |
<a target="_blank" href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" class="collection-item">YouTube</a>
|
73 |
<a target="_blank" href="https://www.linkedin.com/company/holithemes" class="collection-item">LinkedIn</a>
|
74 |
</div>
|
75 |
-
</div>
|
76 |
|
77 |
</div>
|
78 |
</div>
|
79 |
|
80 |
</div>
|
81 |
|
82 |
-
<!-- new row -->
|
83 |
-
|
84 |
-
|
85 |
-
<div class="col s12 m12 l12 xl9">
|
86 |
<div class="row">
|
87 |
-
|
88 |
-
|
89 |
-
<div class="collection with-header">
|
90 |
-
<div class="collection-header"><bold>HoliThemes On</bold></div>
|
91 |
-
<a target="_blank" href="https://www.facebook.com/holithemes/" class="collection-item">Facebook</a>
|
92 |
-
<a target="_blank" href="https://twitter.com/holithemes" class="collection-item">Twitter</a>
|
93 |
-
<a target="_blank" href="https://www.instagram.com/holithemes/" class="collection-item">Instagram</a>
|
94 |
-
<a target="_blank" href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" class="collection-item">YouTube</a>
|
95 |
-
<a target="_blank" href="https://www.linkedin.com/company/holithemes" class="collection-item">LinkedIn</a>
|
96 |
-
</div>
|
97 |
-
</div>
|
98 |
-
|
99 |
</div>
|
100 |
</div>
|
101 |
-
</div>
|
102 |
|
103 |
</div>
|
104 |
|
@@ -126,7 +178,7 @@ class HT_CTC_Admin_Main_Page {
|
|
126 |
add_settings_field( 'ctc_mobile_style', 'Style for Mobile', array( $this, 'ctc_mobile_style_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
127 |
add_settings_field( 'ctc_position', 'Position to place', array( $this, 'ctc_position_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
128 |
add_settings_field( 'ctc_webandapi', 'Web WhatsApp', array( $this, 'ctc_webandapi_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
129 |
-
add_settings_field( 'ctc_show_hide', '
|
130 |
add_settings_field( 'chat_shortcode', '', array( $this, 'chat_shortcode_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
131 |
|
132 |
}
|
@@ -168,7 +220,7 @@ class HT_CTC_Admin_Main_Page {
|
|
168 |
<div class="input-field col s12">
|
169 |
<input name="ht_ctc_chat_options[number]" value="<?php echo esc_attr( $options['number'] ) ?>" id="whatsapp_number" type="text" class="input-margin">
|
170 |
<label for="whatsapp_number">Enter WhatsApp number </label>
|
171 |
-
<p class="description">Enter 'WhatsApp' or 'WhatsApp business' number with country code
|
172 |
<br> ( e.g. 916123456789 - herein e.g. 91 is country code, 6123456789 is the mobile number ) - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/whatsapp-number/">more info</a> ) </p>
|
173 |
</div>
|
174 |
</div>
|
@@ -178,12 +230,15 @@ class HT_CTC_Admin_Main_Page {
|
|
178 |
// pre-filled - message
|
179 |
function prefilled_cb() {
|
180 |
$options = get_option('ht_ctc_chat_options');
|
|
|
|
|
181 |
?>
|
182 |
<div class="row">
|
183 |
<div class="input-field col s12">
|
184 |
-
<input name="ht_ctc_chat_options[pre_filled]" value="<?php echo esc_attr( $options['pre_filled'] ) ?>" id="pre_filled" type="text" class="input-margin">
|
|
|
185 |
<label for="pre_filled">Pre-filled message</label>
|
186 |
-
<p class="description">Text that appears in the WhatsApp Chat window. Add
|
187 |
</div>
|
188 |
</div>
|
189 |
<?php
|
@@ -226,8 +281,8 @@ class HT_CTC_Admin_Main_Page {
|
|
226 |
</div>
|
227 |
</div>
|
228 |
|
229 |
-
<p class="description"
|
230 |
-
<p class="description">
|
231 |
<?php
|
232 |
}
|
233 |
|
@@ -254,8 +309,13 @@ class HT_CTC_Admin_Main_Page {
|
|
254 |
</div>
|
255 |
</div>
|
256 |
|
257 |
-
|
258 |
-
<
|
|
|
|
|
|
|
|
|
|
|
259 |
<?php
|
260 |
}
|
261 |
|
@@ -309,6 +369,16 @@ class HT_CTC_Admin_Main_Page {
|
|
309 |
function ctc_webandapi_cb() {
|
310 |
$options = get_option('ht_ctc_chat_options');
|
311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
|
313 |
if ( isset( $options['webandapi'] ) ) {
|
314 |
?>
|
@@ -330,9 +400,16 @@ class HT_CTC_Admin_Main_Page {
|
|
330 |
<?php
|
331 |
}
|
332 |
?>
|
333 |
-
<
|
334 |
-
<p class="description">
|
|
|
|
|
335 |
<p class="description"></p>
|
|
|
|
|
|
|
|
|
|
|
336 |
<?php
|
337 |
}
|
338 |
|
@@ -398,10 +475,12 @@ class HT_CTC_Admin_Main_Page {
|
|
398 |
?>
|
399 |
<!-- <p class="description">plugin detects device based on HTTP User agent </p> -->
|
400 |
<p class="description">If working in reverse it might be the cache plugin not detecting the devices - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/hide-based-on-device/">more info</a> </p>
|
401 |
-
|
402 |
|
|
|
|
|
403 |
<div class="row" style="margin-bottom: 0px;">
|
404 |
-
<div class="input-field col
|
405 |
<select name="ht_ctc_chat_options[show_or_hide]" class="select_show_or_hide">
|
406 |
<option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> >Hide on selected pages</option>
|
407 |
<option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> >Show on selected pages</option>
|
@@ -409,13 +488,15 @@ class HT_CTC_Admin_Main_Page {
|
|
409 |
<!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
|
410 |
</div>
|
411 |
</div>
|
412 |
-
<?php
|
413 |
|
414 |
-
// ######### Hide #########
|
415 |
|
416 |
-
|
|
|
|
|
|
|
|
|
417 |
<p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px">
|
418 |
-
<?php echo 'Select pages to Hide styles <span style="color: green;"> ( Default Shows on all
|
419 |
</p>
|
420 |
<!-- <br><br> -->
|
421 |
<?php
|
@@ -582,43 +663,34 @@ class HT_CTC_Admin_Main_Page {
|
|
582 |
|
583 |
?>
|
584 |
<p class="description ctc_show_hide_display show-hide_display-none hidebased">Check to hide Styles based on the type of pages</p>
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
|
589 |
-
|
590 |
-
// ID's list to hide styles
|
591 |
-
|
592 |
-
?>
|
593 |
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
594 |
-
<div class="input-field col
|
595 |
<input name="ht_ctc_chat_options[list_hideon_pages]" value="<?php echo esc_attr( $options['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
|
596 |
<label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
|
597 |
<p class="description"> Add Post, Page, Media - ID's to hide, can add multiple id's by separating with a comma ( , ) </p>
|
598 |
</div>
|
599 |
</div>
|
600 |
-
<?php
|
601 |
-
|
602 |
-
|
603 |
-
// Categorys list - to hide
|
604 |
|
605 |
-
|
606 |
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
607 |
-
<div class="input-field col
|
608 |
<input name="ht_ctc_chat_options[list_hideon_cat]" value="<?php echo esc_attr( $options['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
|
609 |
<label for="ccw_list_cat_tohide"><?php _e( 'Category name\'s to Hide - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
610 |
<p class="description">Add Categories name to hide, can add multiple Categories by separating with a comma ( , ) </p>
|
611 |
</div>
|
612 |
</div>
|
613 |
-
<?php
|
614 |
-
|
615 |
-
|
616 |
-
// ######### Show #########
|
617 |
|
618 |
|
619 |
-
|
|
|
|
|
|
|
|
|
620 |
<p class="description ctc_show_hide_display show-hide_display-none showbased" style="margin-bottom: 15px">
|
621 |
-
<?php echo 'Select pages to display styles <span style="background-color: #dddddd; color: red;"> ( Default hides on all
|
622 |
</p>
|
623 |
<?php
|
624 |
|
@@ -780,44 +852,38 @@ class HT_CTC_Admin_Main_Page {
|
|
780 |
|
781 |
?>
|
782 |
<p class="description ctc_show_hide_display show-hide_display-none showbased">Check to display Styles based on type of the page</p>
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
// ID's list to show styles
|
787 |
|
788 |
-
|
789 |
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
790 |
-
<div class="input-field col
|
791 |
<input name="ht_ctc_chat_options[list_showon_pages]" value="<?php echo esc_attr( $options['list_showon_pages'] ) ?>" id="ccw_list_id_toshow" type="text" class="input-margin">
|
792 |
<label for="ccw_list_id_toshow">Id's list to show - add ',' after each id </label>
|
793 |
<p class="description"> Add Post, Page, Media - ID's to show styles, can add multiple id's by separating with a comma ( , ) </p>
|
794 |
</div>
|
795 |
</div>
|
796 |
-
<?php
|
797 |
-
|
798 |
|
799 |
-
// Categorys list - to show
|
800 |
|
801 |
-
|
802 |
-
|
803 |
-
?>
|
804 |
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
805 |
-
<div class="input-field col
|
806 |
<input name="ht_ctc_chat_options[list_showon_cat]" value="<?php echo esc_attr( $options['list_showon_cat'] ) ?>" id="ccw_list_cat_toshow" type="text" class="input-margin">
|
807 |
<label for="ccw_list_cat_toshow"><?php _e( 'Category name\'s to Show - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
808 |
<p class="description">Add Categories name to show styles, can add multiple Categories by separating with a comma ( , ) </p>
|
809 |
</div>
|
810 |
</div>
|
811 |
|
812 |
-
|
813 |
<p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/show-hide-styles/">more info</a> </p>
|
814 |
-
|
|
|
|
|
|
|
|
|
815 |
|
816 |
|
817 |
</div>
|
818 |
</li>
|
819 |
<ul>
|
820 |
-
|
821 |
|
822 |
<?php
|
823 |
|
@@ -839,13 +905,8 @@ class HT_CTC_Admin_Main_Page {
|
|
839 |
* Enable featues ..
|
840 |
*
|
841 |
*/
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
public function main_settings_section_cb() {
|
846 |
?>
|
847 |
-
<!-- <h1>Click to Chat</h1> -->
|
848 |
-
<!-- <br> -->
|
849 |
<h1>Enable features</h1>
|
850 |
<?php
|
851 |
}
|
@@ -970,34 +1031,9 @@ class HT_CTC_Admin_Main_Page {
|
|
970 |
?>
|
971 |
<p class="description">If Google Analytics installed creates an Event there - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/google-analytics/">more info</a> </p>
|
972 |
<br>
|
973 |
-
<?php
|
974 |
|
975 |
|
976 |
|
977 |
-
// Facebook Analytics
|
978 |
-
if ( isset( $options['fb_analytics'] ) ) {
|
979 |
-
?>
|
980 |
-
<p>
|
981 |
-
<label>
|
982 |
-
<input name="ht_ctc_main_options[fb_analytics]" type="checkbox" value="1" <?php checked( $options['fb_analytics'], 1 ); ?> id="fb_analytics" />
|
983 |
-
<span>Facebook Analytics</span>
|
984 |
-
</label>
|
985 |
-
</p>
|
986 |
-
<?php
|
987 |
-
} else {
|
988 |
-
?>
|
989 |
-
<p>
|
990 |
-
<label>
|
991 |
-
<input name="ht_ctc_main_options[fb_analytics]" type="checkbox" value="1" id="fb_analytics" />
|
992 |
-
<span>Facebook Analytics</span>
|
993 |
-
</label>
|
994 |
-
</p>
|
995 |
-
<?php
|
996 |
-
}
|
997 |
-
?>
|
998 |
-
<p class="description"> If Facebook Analytics installed - creates an Event there - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/facebook-analytics/">more info</a> </p>
|
999 |
-
<!-- <p class="description"> If Facebook Analytics is depreacted - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/facebook-analytics/">more info</a> </p> -->
|
1000 |
-
|
1001 |
</div>
|
1002 |
</div>
|
1003 |
</li>
|
@@ -1047,7 +1083,6 @@ class HT_CTC_Admin_Main_Page {
|
|
1047 |
/**
|
1048 |
* Sanitize each setting field as needed
|
1049 |
*
|
1050 |
-
* @since 2.0
|
1051 |
* @param array $input Contains all settings fields as array keys
|
1052 |
*/
|
1053 |
public function options_sanitize( $input ) {
|
@@ -1060,7 +1095,29 @@ class HT_CTC_Admin_Main_Page {
|
|
1060 |
|
1061 |
foreach ($input as $key => $value) {
|
1062 |
if( isset( $input[$key] ) ) {
|
1063 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1064 |
}
|
1065 |
}
|
1066 |
|
55 |
</div>
|
56 |
|
57 |
<!-- sidebar content -->
|
58 |
+
<div class="col s12 m12 l7 xl4 ht-cc-admin-sidebar sticky-sidebar">
|
59 |
<div class="sidebar-content">
|
60 |
+
<!-- <p>
|
61 |
Please let us know if you have any suggestions or feedback!! <br>
|
62 |
+
<a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes,%0AI%20have%20a%20Suggestion/Feedback:" target="_blank">WhatsApp</a> <br>
|
63 |
mail: wp@holithemes.com
|
64 |
+
</p> -->
|
65 |
|
66 |
+
<div class="col s12 m8 l12 xl12">
|
67 |
+
<div class="row">
|
68 |
+
|
69 |
+
<ul class="collapsible popout">
|
70 |
+
|
71 |
+
<!-- <li>
|
72 |
+
<div class="collapsible-header">Show/Hide on Selected pages, devices</div>
|
73 |
+
<div class="collapsible-body">
|
74 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-only-on-selected-pages/">Show only on selected pages</a></p>
|
75 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/hide-only-on-selected-pages/">Hide only on selected pages</a> </p>
|
76 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-hide-on-mobile-desktop/">Show/Hide on Mobile/Desktop</a></p>
|
77 |
+
</div>
|
78 |
+
</li> -->
|
79 |
+
|
80 |
+
<!-- <li>
|
81 |
+
<div class="collapsible-header">I Make Changes and Nothing Happens</div>
|
82 |
+
<div class="collapsible-body">
|
83 |
+
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/clear-cache/">Clear Cache:</a> <br>
|
84 |
+
  - Cache plugins <br>
|
85 |
+
  - Server cache <br>
|
86 |
+
  - Browser Cache
|
87 |
+
</p>
|
88 |
+
</div>
|
89 |
+
</li> -->
|
90 |
+
|
91 |
+
<!-- <li>
|
92 |
+
<div class="collapsible-header">Positon to place</div>
|
93 |
+
<div class="collapsible-body">
|
94 |
+
<p class="description">Center to the Screen</p>
|
95 |
+
<p class="description">Different postion for mobile, desktop (pro)</p>
|
96 |
+
</div>
|
97 |
+
</li> -->
|
98 |
+
|
99 |
+
<li class="active">
|
100 |
+
<div class="collapsible-header">Contact Us</div>
|
101 |
+
<div class="collapsible-body">
|
102 |
+
<p class="description">Please let us know if you have any suggestions or feedback!! <br><br> <a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes,%0AI%20have%20a%20Suggestion/Feedback:" target="_blank">WhatsApp</a></p>
|
103 |
+
<p class="description">mail: wp@holithemes.com</p>
|
104 |
+
</div>
|
105 |
+
</li>
|
106 |
+
|
107 |
+
<!-- <li>
|
108 |
+
<div class="collapsible-header">HoliThemes On</div>
|
109 |
+
<div class="collapsible-body">
|
110 |
+
<p class="description"><a href="https://www.facebook.com/holithemes/" target="_blank">Facebook</a></p>
|
111 |
+
<p class="description"><a href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" target="_blank">YouTube</a></p>
|
112 |
+
<p class="description"><a href="https://twitter.com/holithemes" target="_blank">Twitter</a></p>
|
113 |
+
<p class="description"><a href="https://www.instagram.com/holithemes/" target="_blank">Instagram</a></p>
|
114 |
+
<p class="description"><a href="https://www.linkedin.com/company/holithemes" target="_blank">LinkedIn</a></p>
|
115 |
+
</div>
|
116 |
+
</li> -->
|
117 |
+
|
118 |
+
<!-- <div class="collapsible-header">Support Us</div>
|
119 |
+
<div class="collapsible-body">
|
120 |
+
<p class="description">If you like the plugin support us by giving 5 star rating</p>
|
121 |
+
</div>
|
122 |
+
</li> -->
|
123 |
+
|
124 |
+
</ul>
|
125 |
+
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
|
129 |
+
<!-- <div class="col s12 m8">
|
130 |
<div class="collection with-header">
|
131 |
<div class="collection-header"><bold>HoliThemes On</bold></div>
|
132 |
<a target="_blank" href="https://www.facebook.com/holithemes/" class="collection-item">Facebook</a>
|
135 |
<a target="_blank" href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" class="collection-item">YouTube</a>
|
136 |
<a target="_blank" href="https://www.linkedin.com/company/holithemes" class="collection-item">LinkedIn</a>
|
137 |
</div>
|
138 |
+
</div> -->
|
139 |
|
140 |
</div>
|
141 |
</div>
|
142 |
|
143 |
</div>
|
144 |
|
145 |
+
<!-- new row - After settings page -->
|
146 |
+
<div class="row">
|
147 |
+
<div class="col s12 m8 l4">
|
|
|
148 |
<div class="row">
|
149 |
+
<!-- after settings page / faq -->
|
150 |
+
<?php include_once HT_CTC_PLUGIN_DIR .'new/admin/admin-after-settings-page.php'; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
</div>
|
152 |
</div>
|
153 |
+
</div>
|
154 |
|
155 |
</div>
|
156 |
|
178 |
add_settings_field( 'ctc_mobile_style', 'Style for Mobile', array( $this, 'ctc_mobile_style_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
179 |
add_settings_field( 'ctc_position', 'Position to place', array( $this, 'ctc_position_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
180 |
add_settings_field( 'ctc_webandapi', 'Web WhatsApp', array( $this, 'ctc_webandapi_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
181 |
+
add_settings_field( 'ctc_show_hide', 'Display', array( $this, 'ctc_show_hide_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
182 |
add_settings_field( 'chat_shortcode', '', array( $this, 'chat_shortcode_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
|
183 |
|
184 |
}
|
220 |
<div class="input-field col s12">
|
221 |
<input name="ht_ctc_chat_options[number]" value="<?php echo esc_attr( $options['number'] ) ?>" id="whatsapp_number" type="text" class="input-margin">
|
222 |
<label for="whatsapp_number">Enter WhatsApp number </label>
|
223 |
+
<p class="description">Enter 'WhatsApp' or 'WhatsApp business' number with country code
|
224 |
<br> ( e.g. 916123456789 - herein e.g. 91 is country code, 6123456789 is the mobile number ) - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/whatsapp-number/">more info</a> ) </p>
|
225 |
</div>
|
226 |
</div>
|
230 |
// pre-filled - message
|
231 |
function prefilled_cb() {
|
232 |
$options = get_option('ht_ctc_chat_options');
|
233 |
+
$blogname = HT_CTC_BLOG_NAME;
|
234 |
+
$placeholder = "Hello $blogname!! \nName: \nLike to know more information about {{title}}, {{url}}";
|
235 |
?>
|
236 |
<div class="row">
|
237 |
<div class="input-field col s12">
|
238 |
+
<!-- <input name="ht_ctc_chat_options[pre_filled]" value="<?php // echo esc_attr( $options['pre_filled'] ) ?>" id="pre_filled" type="text" class="input-margin"> -->
|
239 |
+
<textarea style="min-height: 84px;" placeholder="<?php echo $placeholder ?>" name="ht_ctc_chat_options[pre_filled]" id="pre_filled" class="materialize-textarea input-margin"><?php echo esc_attr( $options['pre_filled'] ) ?></textarea>
|
240 |
<label for="pre_filled">Pre-filled message</label>
|
241 |
+
<p class="description">Text that appears in the WhatsApp Chat window. Add variables {url}, {title} to replace current webpage URL, Post title - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/pre-filled-message/">more info</a> </p>
|
242 |
</div>
|
243 |
</div>
|
244 |
<?php
|
281 |
</div>
|
282 |
</div>
|
283 |
|
284 |
+
<!-- <p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/"><span class="dashicons dashicons-list-view"></span> List of styles</a> </p>
|
285 |
+
<p class="description">Customize the styles ( Click to Chat -> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>"><span class="dashicons dashicons-admin-customizer"></span>Customize Styles</a> ) </p> -->
|
286 |
<?php
|
287 |
}
|
288 |
|
309 |
</div>
|
310 |
</div>
|
311 |
|
312 |
+
<p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/">
|
313 |
+
<!-- <span class="dashicons dashicons-list-view"></span> -->
|
314 |
+
List of styles</a> </p>
|
315 |
+
<p class="description">Customize the styles ( Click to Chat -> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">
|
316 |
+
<!-- <span class="dashicons dashicons-admin-customizer"></span> -->
|
317 |
+
Customize Styles</a> ) </p>
|
318 |
+
<br>
|
319 |
<?php
|
320 |
}
|
321 |
|
369 |
function ctc_webandapi_cb() {
|
370 |
$options = get_option('ht_ctc_chat_options');
|
371 |
|
372 |
+
?>
|
373 |
+
<ul class="collapsible">
|
374 |
+
<li>
|
375 |
+
<div class="collapsible-header">Web WhatsApp</div>
|
376 |
+
<div class="collapsible-body">
|
377 |
+
|
378 |
+
<!-- <p class="description">keep this uncheck, If in mobile WhatsApp App is not opening (issue caused: if cache plugins not detectng the devices)</p> -->
|
379 |
+
<!-- <br> -->
|
380 |
+
|
381 |
+
<?php
|
382 |
|
383 |
if ( isset( $options['webandapi'] ) ) {
|
384 |
?>
|
400 |
<?php
|
401 |
}
|
402 |
?>
|
403 |
+
<br>
|
404 |
+
<p class="description">If checked opens Web.WhatsApp directly on Desktop and in mobile WhatsApp App - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/web-whatsapp/">more info</a> </p>
|
405 |
+
<br>
|
406 |
+
<p class="description"><strong>uncheck</strong> this option, if <strong>cache plugins</strong> on this website not detecting the devices</p>
|
407 |
<p class="description"></p>
|
408 |
+
|
409 |
+
</div>
|
410 |
+
</li>
|
411 |
+
<ul>
|
412 |
+
|
413 |
<?php
|
414 |
}
|
415 |
|
475 |
?>
|
476 |
<!-- <p class="description">plugin detects device based on HTTP User agent </p> -->
|
477 |
<p class="description">If working in reverse it might be the cache plugin not detecting the devices - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/hide-based-on-device/">more info</a> </p>
|
478 |
+
<br><hr><br>
|
479 |
|
480 |
+
<span class="description">Select Show/Hide:</span>
|
481 |
+
|
482 |
<div class="row" style="margin-bottom: 0px;">
|
483 |
+
<div class="input-field col s8">
|
484 |
<select name="ht_ctc_chat_options[show_or_hide]" class="select_show_or_hide">
|
485 |
<option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> >Hide on selected pages</option>
|
486 |
<option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> >Show on selected pages</option>
|
488 |
<!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
|
489 |
</div>
|
490 |
</div>
|
|
|
491 |
|
|
|
492 |
|
493 |
+
|
494 |
+
<!-- ######### Hide ######### -->
|
495 |
+
|
496 |
+
|
497 |
+
|
498 |
<p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px">
|
499 |
+
<?php echo 'Select pages to Hide styles <span style="color: green;"> ( Default Shows on all pages ) ' ?>
|
500 |
</p>
|
501 |
<!-- <br><br> -->
|
502 |
<?php
|
663 |
|
664 |
?>
|
665 |
<p class="description ctc_show_hide_display show-hide_display-none hidebased">Check to hide Styles based on the type of pages</p>
|
666 |
+
<br>
|
|
|
|
|
667 |
|
668 |
+
<!-- ID's list to hide styles -->
|
|
|
|
|
|
|
669 |
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
670 |
+
<div class="input-field col s7">
|
671 |
<input name="ht_ctc_chat_options[list_hideon_pages]" value="<?php echo esc_attr( $options['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
|
672 |
<label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
|
673 |
<p class="description"> Add Post, Page, Media - ID's to hide, can add multiple id's by separating with a comma ( , ) </p>
|
674 |
</div>
|
675 |
</div>
|
|
|
|
|
|
|
|
|
676 |
|
677 |
+
<!-- Categorys list - to hide -->
|
678 |
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
679 |
+
<div class="input-field col s7">
|
680 |
<input name="ht_ctc_chat_options[list_hideon_cat]" value="<?php echo esc_attr( $options['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
|
681 |
<label for="ccw_list_cat_tohide"><?php _e( 'Category name\'s to Hide - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
682 |
<p class="description">Add Categories name to hide, can add multiple Categories by separating with a comma ( , ) </p>
|
683 |
</div>
|
684 |
</div>
|
|
|
|
|
|
|
|
|
685 |
|
686 |
|
687 |
+
|
688 |
+
<!-- ######### Show ######### -->
|
689 |
+
|
690 |
+
|
691 |
+
|
692 |
<p class="description ctc_show_hide_display show-hide_display-none showbased" style="margin-bottom: 15px">
|
693 |
+
<?php echo 'Select pages to display styles <span style="background-color: #dddddd; color: red;"> ( Default hides on all pages ) ' ?>
|
694 |
</p>
|
695 |
<?php
|
696 |
|
852 |
|
853 |
?>
|
854 |
<p class="description ctc_show_hide_display show-hide_display-none showbased">Check to display Styles based on type of the page</p>
|
855 |
+
<br>
|
|
|
|
|
|
|
856 |
|
857 |
+
<!-- ID's list to show styles -->
|
858 |
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
859 |
+
<div class="input-field col s7">
|
860 |
<input name="ht_ctc_chat_options[list_showon_pages]" value="<?php echo esc_attr( $options['list_showon_pages'] ) ?>" id="ccw_list_id_toshow" type="text" class="input-margin">
|
861 |
<label for="ccw_list_id_toshow">Id's list to show - add ',' after each id </label>
|
862 |
<p class="description"> Add Post, Page, Media - ID's to show styles, can add multiple id's by separating with a comma ( , ) </p>
|
863 |
</div>
|
864 |
</div>
|
|
|
|
|
865 |
|
|
|
866 |
|
867 |
+
<!-- Categorys list - to show -->
|
|
|
|
|
868 |
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
869 |
+
<div class="input-field col s7">
|
870 |
<input name="ht_ctc_chat_options[list_showon_cat]" value="<?php echo esc_attr( $options['list_showon_cat'] ) ?>" id="ccw_list_cat_toshow" type="text" class="input-margin">
|
871 |
<label for="ccw_list_cat_toshow"><?php _e( 'Category name\'s to Show - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
872 |
<p class="description">Add Categories name to show styles, can add multiple Categories by separating with a comma ( , ) </p>
|
873 |
</div>
|
874 |
</div>
|
875 |
|
|
|
876 |
<p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/show-hide-styles/">more info</a> </p>
|
877 |
+
<br>
|
878 |
+
<p class="description">Usescases:</p>
|
879 |
+
<p class="description">> <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-only-on-selected-pages/">Show only on selected pages</a></p>
|
880 |
+
<p class="description">> <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/hide-only-on-selected-pages/">Hide only on selected pages</a> </p>
|
881 |
+
<p class="description">> <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-hide-on-mobile-desktop/">Show/Hide on Mobile/Desktop</a></p>
|
882 |
|
883 |
|
884 |
</div>
|
885 |
</li>
|
886 |
<ul>
|
|
|
887 |
|
888 |
<?php
|
889 |
|
905 |
* Enable featues ..
|
906 |
*
|
907 |
*/
|
|
|
|
|
|
|
908 |
public function main_settings_section_cb() {
|
909 |
?>
|
|
|
|
|
910 |
<h1>Enable features</h1>
|
911 |
<?php
|
912 |
}
|
1031 |
?>
|
1032 |
<p class="description">If Google Analytics installed creates an Event there - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/google-analytics/">more info</a> </p>
|
1033 |
<br>
|
|
|
1034 |
|
1035 |
|
1036 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1037 |
</div>
|
1038 |
</div>
|
1039 |
</li>
|
1083 |
/**
|
1084 |
* Sanitize each setting field as needed
|
1085 |
*
|
|
|
1086 |
* @param array $input Contains all settings fields as array keys
|
1087 |
*/
|
1088 |
public function options_sanitize( $input ) {
|
1095 |
|
1096 |
foreach ($input as $key => $value) {
|
1097 |
if( isset( $input[$key] ) ) {
|
1098 |
+
|
1099 |
+
if ( 'pre_filled' == $key ) {
|
1100 |
+
// $new_input[$key] = esc_textarea( $input[$key] );
|
1101 |
+
$new_input[$key] = sanitize_textarea_field( $input[$key] );
|
1102 |
+
} elseif ( 'side_1_value' == $key ) {
|
1103 |
+
if ( is_numeric($input[$key]) ) {
|
1104 |
+
$input[$key] = $input[$key] . 'px';
|
1105 |
+
}
|
1106 |
+
if ( '' == $input[$key] ) {
|
1107 |
+
$input[$key] = '0px';
|
1108 |
+
}
|
1109 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
1110 |
+
} elseif ( 'side_2_value' == $key ) {
|
1111 |
+
if ( is_numeric($input[$key]) ) {
|
1112 |
+
$input[$key] = $input[$key] . 'px';
|
1113 |
+
}
|
1114 |
+
if ( '' == $input[$key] ) {
|
1115 |
+
$input[$key] = '0px';
|
1116 |
+
}
|
1117 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
1118 |
+
} else {
|
1119 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
1120 |
+
}
|
1121 |
}
|
1122 |
}
|
1123 |
|
new/admin/class-ht-ctc-admin-others.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Other function, features .. to
|
4 |
+
*
|
5 |
+
* admin notices
|
6 |
+
* If whatsapp number not added.
|
7 |
+
*
|
8 |
+
* @since 2.7
|
9 |
+
* @package ctc
|
10 |
+
* @subpackage admin
|
11 |
+
*/
|
12 |
+
|
13 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
+
|
15 |
+
if ( ! class_exists( 'HT_CTC_Admin_Others' ) ) :
|
16 |
+
|
17 |
+
class HT_CTC_Admin_Others {
|
18 |
+
|
19 |
+
public function __construct() {
|
20 |
+
$this->admin_hooks();
|
21 |
+
}
|
22 |
+
|
23 |
+
function admin_hooks() {
|
24 |
+
|
25 |
+
// if number blank
|
26 |
+
$ht_ctc_chat_options = get_option('ht_ctc_chat_options');
|
27 |
+
|
28 |
+
if ( isset( $ht_ctc_chat_options['number'] ) ) {
|
29 |
+
if ( '' == $ht_ctc_chat_options['number'] ) {
|
30 |
+
add_action('admin_notices', array( $this, 'ifnumberblank') );
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
function ifnumberblank() {
|
37 |
+
?>
|
38 |
+
<div class="notice notice-info is-dismissible">
|
39 |
+
<p>Click to Chat is almost ready. <a href="<?php echo admin_url('admin.php?page=click-to-chat');?>">Add WhatsApp Number</a> to let vistiors chat.</p>
|
40 |
+
<!-- <a href="?dismis">Dismiss</a> -->
|
41 |
+
</div>
|
42 |
+
<?php
|
43 |
+
}
|
44 |
+
|
45 |
+
|
46 |
+
}
|
47 |
+
|
48 |
+
new HT_CTC_Admin_Others();
|
49 |
+
|
50 |
+
endif; // END class_exists check
|
new/admin/class-ht-ctc-admin-scripts.php
CHANGED
@@ -1,45 +1,43 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Register css styles, javascript files at admin side
|
4 |
-
*
|
5 |
-
* @package ctc
|
6 |
-
* @subpackage admin
|
7 |
-
* @since 2.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
-
|
12 |
-
if ( ! class_exists( 'HT_CTC_Admin_Scripts' ) ) :
|
13 |
-
|
14 |
-
class HT_CTC_Admin_Scripts {
|
15 |
-
|
16 |
-
|
17 |
-
// Register css styles, javascript files only on 'click-to-chat' page
|
18 |
-
function register_scripts_admin($hook) {
|
19 |
-
|
20 |
-
// hook ..
|
21 |
-
if( 'toplevel_page_click-to-chat' == $hook || 'click-to-chat_page_click-to-chat-chat-feature' == $hook || 'click-to-chat_page_click-to-chat-group-feature' == $hook || 'click-to-chat_page_click-to-chat-share-feature' == $hook || 'click-to-chat_page_click-to-chat-customize-styles' == $hook ) {
|
22 |
-
|
23 |
-
wp_enqueue_style( 'wp-color-picker' );
|
24 |
-
wp_enqueue_style('ctc_admin_md_css', plugins_url( 'new/admin/admin_assets/css/materialize.min.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
|
25 |
-
wp_enqueue_style('ctc_admin_css', plugins_url( 'new/admin/admin_assets/css/admin.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
|
26 |
-
|
27 |
-
|
28 |
-
wp_enqueue_script( '
|
29 |
-
|
30 |
-
|
31 |
-
}
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
$ht_ctc_admin_scripts
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Register css styles, javascript files at admin side
|
4 |
+
*
|
5 |
+
* @package ctc
|
6 |
+
* @subpackage admin
|
7 |
+
* @since 2.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
if ( ! class_exists( 'HT_CTC_Admin_Scripts' ) ) :
|
13 |
+
|
14 |
+
class HT_CTC_Admin_Scripts {
|
15 |
+
|
16 |
+
|
17 |
+
// Register css styles, javascript files only on 'click-to-chat' page
|
18 |
+
function register_scripts_admin($hook) {
|
19 |
+
|
20 |
+
// hook ..
|
21 |
+
if( 'toplevel_page_click-to-chat' == $hook || 'click-to-chat_page_click-to-chat-chat-feature' == $hook || 'click-to-chat_page_click-to-chat-group-feature' == $hook || 'click-to-chat_page_click-to-chat-share-feature' == $hook || 'click-to-chat_page_click-to-chat-customize-styles' == $hook ) {
|
22 |
+
|
23 |
+
wp_enqueue_style( 'wp-color-picker' );
|
24 |
+
wp_enqueue_style('ctc_admin_md_css', plugins_url( 'new/admin/admin_assets/css/materialize.min.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
|
25 |
+
wp_enqueue_style('ctc_admin_css', plugins_url( 'new/admin/admin_assets/css/admin.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
|
26 |
+
|
27 |
+
wp_enqueue_script( 'ctc_admin_md_js', plugins_url( 'new/admin/admin_assets/js/materialize.min.js', HT_CTC_PLUGIN_FILE ), array( 'jquery' ), HT_CTC_VERSION, true );
|
28 |
+
wp_enqueue_script( 'ctc_admin_js', plugins_url( 'new/admin/admin_assets/js/admin.js', HT_CTC_PLUGIN_FILE ), array( 'jquery', 'wp-color-picker', 'ctc_admin_md_js' ), HT_CTC_VERSION, true );
|
29 |
+
} else {
|
30 |
+
return;
|
31 |
+
}
|
32 |
+
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
$ht_ctc_admin_scripts = new HT_CTC_Admin_Scripts();
|
39 |
+
|
40 |
+
add_action('admin_enqueue_scripts', array( $ht_ctc_admin_scripts, 'register_scripts_admin' ) );
|
41 |
+
|
42 |
+
|
|
|
|
|
43 |
endif; // END class_exists check
|
new/admin/class-ht-ctc-admin-share-page.php
CHANGED
@@ -1,748 +1,797 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* share settings page - admin
|
4 |
-
*
|
5 |
-
* share options ..
|
6 |
-
*
|
7 |
-
* @package ctc
|
8 |
-
* @subpackage admin
|
9 |
-
* @since 2.0
|
10 |
-
*/
|
11 |
-
|
12 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
-
|
14 |
-
if ( ! class_exists( 'HT_CTC_Admin_Share_Page' ) ) :
|
15 |
-
|
16 |
-
class HT_CTC_Admin_Share_Page {
|
17 |
-
|
18 |
-
public function menu() {
|
19 |
-
|
20 |
-
add_submenu_page(
|
21 |
-
'click-to-chat',
|
22 |
-
'Share Invite',
|
23 |
-
'Share',
|
24 |
-
'manage_options',
|
25 |
-
'click-to-chat-share-feature',
|
26 |
-
array( $this, 'settings_page' )
|
27 |
-
);
|
28 |
-
}
|
29 |
-
|
30 |
-
public function settings_page() {
|
31 |
-
|
32 |
-
if ( ! current_user_can('manage_options') ) {
|
33 |
-
return;
|
34 |
-
}
|
35 |
-
|
36 |
-
?>
|
37 |
-
|
38 |
-
<div class="wrap">
|
39 |
-
|
40 |
-
<?php settings_errors(); ?>
|
41 |
-
|
42 |
-
<div class="row">
|
43 |
-
<div class="col s12 m12 xl8 options">
|
44 |
-
<form action="options.php" method="post" class="">
|
45 |
-
<?php settings_fields( 'ht_ctc_share_page_settings_fields' ); ?>
|
46 |
-
<?php do_settings_sections( 'ht_ctc_share_page_settings_sections_do' ) ?>
|
47 |
-
<?php submit_button() ?>
|
48 |
-
</form>
|
49 |
-
</div>
|
50 |
-
<!-- <div class="col s12 m12 xl6 ht-cc-admin-sidebar">
|
51 |
-
</div> -->
|
52 |
-
</div>
|
53 |
-
|
54 |
-
</div>
|
55 |
-
|
56 |
-
<?php
|
57 |
-
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
public function settings() {
|
62 |
-
|
63 |
-
// main settings - options enable .. share, share ..
|
64 |
-
// chat options
|
65 |
-
register_setting( 'ht_ctc_share_page_settings_fields', 'ht_ctc_share' , array( $this, 'options_sanitize' ) );
|
66 |
-
|
67 |
-
add_settings_section( 'ht_ctc_main_page_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_share_page_settings_sections_do' );
|
68 |
-
|
69 |
-
add_settings_field( 'share_text', 'Share Text', array( $this, 'share_text_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
70 |
-
add_settings_field( 'share_cta', 'Call to Action', array( $this, 'share_cta_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
71 |
-
|
72 |
-
add_settings_field( 'share_ctc_desktop_style', 'Style for Desktop', array( $this, 'share_ctc_desktop_style_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
73 |
-
add_settings_field( 'share_ctc_mobile_style', 'Style for Mobile', array( $this, 'share_ctc_mobile_style_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
74 |
-
add_settings_field( 'share_ctc_position', 'Position to place', array( $this, 'share_ctc_position_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
75 |
-
add_settings_field( '
|
76 |
-
add_settings_field( '
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
<
|
96 |
-
<
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
<
|
110 |
-
<
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
$
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
<option value="
|
128 |
-
<option value="
|
129 |
-
<option value="
|
130 |
-
<option value="
|
131 |
-
<option value="
|
132 |
-
<option value="
|
133 |
-
<option value="
|
134 |
-
<option value="
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
<p class="description">
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
$
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
<option value="
|
157 |
-
<option value="
|
158 |
-
<option value="
|
159 |
-
<option value="
|
160 |
-
<option value="
|
161 |
-
<option value="
|
162 |
-
<option value="
|
163 |
-
<option value="
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
$
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
<option value="
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
<
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
<option value="
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
<
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
<
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
<
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
//
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
<
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
<
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
<
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
<
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
<?php
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
<
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
<
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* share settings page - admin
|
4 |
+
*
|
5 |
+
* share options ..
|
6 |
+
*
|
7 |
+
* @package ctc
|
8 |
+
* @subpackage admin
|
9 |
+
* @since 2.0
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
+
|
14 |
+
if ( ! class_exists( 'HT_CTC_Admin_Share_Page' ) ) :
|
15 |
+
|
16 |
+
class HT_CTC_Admin_Share_Page {
|
17 |
+
|
18 |
+
public function menu() {
|
19 |
+
|
20 |
+
add_submenu_page(
|
21 |
+
'click-to-chat',
|
22 |
+
'Share Invite',
|
23 |
+
'Share',
|
24 |
+
'manage_options',
|
25 |
+
'click-to-chat-share-feature',
|
26 |
+
array( $this, 'settings_page' )
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
+
public function settings_page() {
|
31 |
+
|
32 |
+
if ( ! current_user_can('manage_options') ) {
|
33 |
+
return;
|
34 |
+
}
|
35 |
+
|
36 |
+
?>
|
37 |
+
|
38 |
+
<div class="wrap">
|
39 |
+
|
40 |
+
<?php settings_errors(); ?>
|
41 |
+
|
42 |
+
<div class="row">
|
43 |
+
<div class="col s12 m12 xl8 options">
|
44 |
+
<form action="options.php" method="post" class="">
|
45 |
+
<?php settings_fields( 'ht_ctc_share_page_settings_fields' ); ?>
|
46 |
+
<?php do_settings_sections( 'ht_ctc_share_page_settings_sections_do' ) ?>
|
47 |
+
<?php submit_button() ?>
|
48 |
+
</form>
|
49 |
+
</div>
|
50 |
+
<!-- <div class="col s12 m12 xl6 ht-cc-admin-sidebar">
|
51 |
+
</div> -->
|
52 |
+
</div>
|
53 |
+
|
54 |
+
</div>
|
55 |
+
|
56 |
+
<?php
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
public function settings() {
|
62 |
+
|
63 |
+
// main settings - options enable .. share, share ..
|
64 |
+
// chat options
|
65 |
+
register_setting( 'ht_ctc_share_page_settings_fields', 'ht_ctc_share' , array( $this, 'options_sanitize' ) );
|
66 |
+
|
67 |
+
add_settings_section( 'ht_ctc_main_page_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_share_page_settings_sections_do' );
|
68 |
+
|
69 |
+
add_settings_field( 'share_text', 'Share Text', array( $this, 'share_text_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
70 |
+
add_settings_field( 'share_cta', 'Call to Action', array( $this, 'share_cta_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
71 |
+
|
72 |
+
add_settings_field( 'share_ctc_desktop_style', 'Style for Desktop', array( $this, 'share_ctc_desktop_style_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
73 |
+
add_settings_field( 'share_ctc_mobile_style', 'Style for Mobile', array( $this, 'share_ctc_mobile_style_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
74 |
+
add_settings_field( 'share_ctc_position', 'Position to place', array( $this, 'share_ctc_position_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
75 |
+
add_settings_field( 'share_ctc_webandapi', 'Web WhatsApp', array( $this, 'share_ctc_webandapi_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
76 |
+
add_settings_field( 'share_show_hide', 'Show/Hide', array( $this, 'share_show_hide_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
77 |
+
add_settings_field( 'share_shortcode', '', array( $this, 'share_shortcode_cb' ), 'ht_ctc_share_page_settings_sections_do', 'ht_ctc_main_page_settings_sections_add' );
|
78 |
+
|
79 |
+
|
80 |
+
}
|
81 |
+
|
82 |
+
public function main_settings_section_cb() {
|
83 |
+
?>
|
84 |
+
<h1>Share</h1>
|
85 |
+
<?php
|
86 |
+
}
|
87 |
+
|
88 |
+
|
89 |
+
// WhatsApp share ID.
|
90 |
+
function share_text_cb() {
|
91 |
+
$options = get_option('ht_ctc_share');
|
92 |
+
?>
|
93 |
+
<div class="row">
|
94 |
+
<div class="input-field col s12">
|
95 |
+
<input name="ht_ctc_share[share_text]" value="<?php echo esc_attr( $options['share_text'] ) ?>" id="whatsapp_share_text" type="text" class="input-margin">
|
96 |
+
<label for="whatsapp_share_text">Share Text</label>
|
97 |
+
<p class="description">Placeholder {{url}} returns current webpage URL - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/share-text/">more info</a> ) </p>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
<?php
|
101 |
+
}
|
102 |
+
|
103 |
+
// call to action
|
104 |
+
function share_cta_cb() {
|
105 |
+
$options = get_option('ht_ctc_share');
|
106 |
+
?>
|
107 |
+
<div class="row">
|
108 |
+
<div class="input-field col s12">
|
109 |
+
<input name="ht_ctc_share[call_to_action]" value="<?php echo esc_attr( $options['call_to_action'] ) ?>" id="call_to_action" type="text" class="input-margin">
|
110 |
+
<label for="call_to_action">Call to Action</label>
|
111 |
+
<p class="description">Text that appears along with WhatsApp icon/button - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/call-to-action/">more info</a> </p>
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
<?php
|
115 |
+
}
|
116 |
+
|
117 |
+
|
118 |
+
|
119 |
+
// Desktop - select style
|
120 |
+
function share_ctc_desktop_style_cb() {
|
121 |
+
$options = get_option('ht_ctc_share');
|
122 |
+
$style_value = esc_attr( $options['style_desktop'] );
|
123 |
+
?>
|
124 |
+
<div class="row">
|
125 |
+
<div class="input-field col s12" style="margin-bottom: 0px;">
|
126 |
+
<select name="ht_ctc_share[style_desktop]" class="select-2">
|
127 |
+
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
128 |
+
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
129 |
+
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
130 |
+
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
131 |
+
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
132 |
+
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
133 |
+
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
134 |
+
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
135 |
+
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
136 |
+
</select>
|
137 |
+
<label>Select Style for Desktop</label>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/">List of syles</a> </p>
|
142 |
+
<p class="description">Can customize each style - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>"><?php _e( 'Customize Styles' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
|
143 |
+
|
144 |
+
<?php
|
145 |
+
}
|
146 |
+
|
147 |
+
|
148 |
+
// Mobile - select style
|
149 |
+
function share_ctc_mobile_style_cb() {
|
150 |
+
$options = get_option('ht_ctc_share');
|
151 |
+
$style_value = esc_attr( $options['style_mobile'] );
|
152 |
+
?>
|
153 |
+
<div class="row" style="margin-bottom: 0px;">
|
154 |
+
<div class="input-field col s12">
|
155 |
+
<select name="ht_ctc_share[style_mobile]" class="select-2">
|
156 |
+
<option value="1" <?php echo $style_value == 1 ? 'SELECTED' : ''; ?> >Style-1</option>
|
157 |
+
<option value="2" <?php echo $style_value == 2 ? 'SELECTED' : ''; ?> >Style-2</option>
|
158 |
+
<option value="3" <?php echo $style_value == 3 ? 'SELECTED' : ''; ?> >Style-3</option>
|
159 |
+
<option value="4" <?php echo $style_value == 4 ? 'SELECTED' : ''; ?> >Style-4</option>
|
160 |
+
<option value="5" <?php echo $style_value == 5 ? 'SELECTED' : ''; ?> >Style-5</option>
|
161 |
+
<option value="6" <?php echo $style_value == 6 ? 'SELECTED' : ''; ?> >Style-6</option>
|
162 |
+
<option value="7" <?php echo $style_value == 7 ? 'SELECTED' : ''; ?> >Style-7</option>
|
163 |
+
<option value="8" <?php echo $style_value == 8 ? 'SELECTED' : ''; ?> >Style-8</option>
|
164 |
+
<option value="99" <?php echo $style_value == 99 ? 'SELECTED' : ''; ?> >Style-99 (Add your own image / GIF)</option>
|
165 |
+
</select>
|
166 |
+
<label>Select Style for Mobile</label>
|
167 |
+
</div>
|
168 |
+
</div>
|
169 |
+
|
170 |
+
<?php
|
171 |
+
}
|
172 |
+
|
173 |
+
|
174 |
+
// position to place
|
175 |
+
function share_ctc_position_cb() {
|
176 |
+
$options = get_option('ht_ctc_share');
|
177 |
+
|
178 |
+
$side_1 = esc_attr( $options['side_1'] );
|
179 |
+
$side_2 = esc_attr( $options['side_2'] );
|
180 |
+
?>
|
181 |
+
<!-- side - 1 -->
|
182 |
+
<div class="row">
|
183 |
+
<div class="input-field col s6">
|
184 |
+
<select name="ht_ctc_share[side_1]" class="select-2">
|
185 |
+
<option value="bottom" <?php echo $side_1 == 'bottom' ? 'SELECTED' : ''; ?> >bottom</option>
|
186 |
+
<option value="top" <?php echo $side_1 == 'top' ? 'SELECTED' : ''; ?> >top</option>
|
187 |
+
</select>
|
188 |
+
<label>top / bottom </label>
|
189 |
+
</div>
|
190 |
+
|
191 |
+
<div class="input-field col s6">
|
192 |
+
<input name="ht_ctc_share[side_1_value]" value="<?php echo esc_attr( $options['side_1_value'] ) ?>" id="side_1_value" type="text" class="input-margin">
|
193 |
+
<label for="side_1_value">e.g. 10px</label>
|
194 |
+
</div>
|
195 |
+
</div>
|
196 |
+
|
197 |
+
<!-- side - 2 -->
|
198 |
+
<div class="row">
|
199 |
+
<div class="input-field col s6">
|
200 |
+
<select name="ht_ctc_share[side_2]" class="select-2">
|
201 |
+
<option value="right" <?php echo $side_2 == 'right' ? 'SELECTED' : ''; ?> >right</option>
|
202 |
+
<option value="left" <?php echo $side_2 == 'left' ? 'SELECTED' : ''; ?> >left</option>
|
203 |
+
</select>
|
204 |
+
<label>right / left </label>
|
205 |
+
</div>
|
206 |
+
|
207 |
+
<div class="input-field col s6">
|
208 |
+
<input name="ht_ctc_share[side_2_value]" value="<?php echo esc_attr( $options['side_2_value'] ) ?>" id="side_2_value" type="text" class="input-margin">
|
209 |
+
<label for="side_2_value">e.g. 10px</label>
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
|
213 |
+
<p class="description">Add css units as suffix - e.g. 10px, 50% - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/position-to-place/">more info</a> </p>
|
214 |
+
<?php
|
215 |
+
}
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
// If checked web / api whatsapp link. If unchecked wa.me links
|
221 |
+
function share_ctc_webandapi_cb() {
|
222 |
+
$options = get_option('ht_ctc_share');
|
223 |
+
|
224 |
+
?>
|
225 |
+
<ul class="collapsible">
|
226 |
+
<li>
|
227 |
+
<div class="collapsible-header">Web WhatsApp</div>
|
228 |
+
<div class="collapsible-body">
|
229 |
+
|
230 |
+
<?php
|
231 |
+
|
232 |
+
if ( isset( $options['webandapi'] ) ) {
|
233 |
+
?>
|
234 |
+
<p>
|
235 |
+
<label>
|
236 |
+
<input name="ht_ctc_share[webandapi]" type="checkbox" value="1" <?php checked( $options['webandapi'], 1 ); ?> id="webandapi" />
|
237 |
+
<span>Web WhatsApp on Desktop</span>
|
238 |
+
</label>
|
239 |
+
</p>
|
240 |
+
<?php
|
241 |
+
} else {
|
242 |
+
?>
|
243 |
+
<p>
|
244 |
+
<label>
|
245 |
+
<input name="ht_ctc_share[webandapi]" type="checkbox" value="1" id="webandapi" />
|
246 |
+
<span>Web WhatsApp on Desktop</span>
|
247 |
+
</label>
|
248 |
+
</p>
|
249 |
+
<?php
|
250 |
+
}
|
251 |
+
?>
|
252 |
+
<br>
|
253 |
+
<p class="description">If checked opens Web.WhatsApp directly on Desktop and in mobile WhatsApp App - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/web-whatsapp/">more info</a> </p>
|
254 |
+
<br>
|
255 |
+
<p class="description"><strong>uncheck</strong> this option, if <strong>cache plugins</strong> on this website not detecting the devices</p>
|
256 |
+
<p class="description"></p>
|
257 |
+
|
258 |
+
</div>
|
259 |
+
</li>
|
260 |
+
<ul>
|
261 |
+
|
262 |
+
<?php
|
263 |
+
}
|
264 |
+
|
265 |
+
|
266 |
+
|
267 |
+
|
268 |
+
// show/hide
|
269 |
+
function share_show_hide_cb() {
|
270 |
+
|
271 |
+
|
272 |
+
$options = get_option('ht_ctc_share');
|
273 |
+
|
274 |
+
$show_or_hide = esc_attr( $options['show_or_hide'] );
|
275 |
+
?>
|
276 |
+
|
277 |
+
<ul class="collapsible">
|
278 |
+
<li>
|
279 |
+
<div class="collapsible-header">Show/Hide</div>
|
280 |
+
<div class="collapsible-body">
|
281 |
+
|
282 |
+
<?php
|
283 |
+
|
284 |
+
|
285 |
+
// Hide on Mobile Devices
|
286 |
+
if ( isset( $options['hideon_mobile'] ) ) {
|
287 |
+
?>
|
288 |
+
<p>
|
289 |
+
<label>
|
290 |
+
<input name="ht_ctc_share[hideon_mobile]" type="checkbox" value="1" <?php checked( $options['hideon_mobile'], 1 ); ?> id="hideon_mobile" />
|
291 |
+
<span>Hide on - Mobile Devices</span>
|
292 |
+
</label>
|
293 |
+
</p>
|
294 |
+
<?php
|
295 |
+
} else {
|
296 |
+
?>
|
297 |
+
<p>
|
298 |
+
<label>
|
299 |
+
<input name="ht_ctc_share[hideon_mobile]" type="checkbox" value="1" id="hideon_mobile" />
|
300 |
+
<span>Hide on - Mobile Devices</span>
|
301 |
+
</label>
|
302 |
+
</p>
|
303 |
+
<?php
|
304 |
+
}
|
305 |
+
|
306 |
+
// Hide on Desktop Devices
|
307 |
+
if ( isset( $options['hideon_desktop'] ) ) {
|
308 |
+
?>
|
309 |
+
<p>
|
310 |
+
<label>
|
311 |
+
<input name="ht_ctc_share[hideon_desktop]" type="checkbox" value="1" <?php checked( $options['hideon_desktop'], 1 ); ?> id="hideon_desktop" />
|
312 |
+
<span>Hide on - Desktop Devices</span>
|
313 |
+
</label>
|
314 |
+
</p>
|
315 |
+
<?php
|
316 |
+
} else {
|
317 |
+
?>
|
318 |
+
<p>
|
319 |
+
<label>
|
320 |
+
<input name="ht_ctc_share[hideon_desktop]" type="checkbox" value="1" id="hideon_desktop" />
|
321 |
+
<span>Hide on - Desktop Devices</span>
|
322 |
+
</label>
|
323 |
+
</p>
|
324 |
+
<?php
|
325 |
+
}
|
326 |
+
?>
|
327 |
+
<!-- <p class="description">plugin detects device based on HTTP User agent </p> -->
|
328 |
+
<p class="description">If working in reverse it might be the cache plugin not detecting the devices - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/hide-based-on-device/">more info</a> </p>
|
329 |
+
|
330 |
+
|
331 |
+
<div class="row" style="margin-bottom: 0px;">
|
332 |
+
<div class="input-field col s12">
|
333 |
+
<select name="ht_ctc_share[show_or_hide]" class="select_show_or_hide">
|
334 |
+
<option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> >Hide on selected pages</option>
|
335 |
+
<option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> >Show on selected pages</option>
|
336 |
+
</select>
|
337 |
+
<!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
|
338 |
+
</div>
|
339 |
+
</div>
|
340 |
+
|
341 |
+
|
342 |
+
<!-- ######### Hide ######### -->
|
343 |
+
|
344 |
+
|
345 |
+
<p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px">
|
346 |
+
<?php echo 'Select pages to Hide styles <span style="color: green;"> ( Default Shows on all pages ) ' ?>
|
347 |
+
</p>
|
348 |
+
<?php
|
349 |
+
|
350 |
+
// checkboxes - Hide based on Type of posts
|
351 |
+
|
352 |
+
// Single Posts
|
353 |
+
if ( isset( $options['hideon_posts'] ) ) {
|
354 |
+
?>
|
355 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
356 |
+
<label>
|
357 |
+
<input name="ht_ctc_share[hideon_posts]" type="checkbox" value="1" <?php checked( $options['hideon_posts'], 1 ); ?> id="filled-in-box1" />
|
358 |
+
<span>Hide on - Posts</span>
|
359 |
+
</label>
|
360 |
+
</p>
|
361 |
+
<?php
|
362 |
+
} else {
|
363 |
+
?>
|
364 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
365 |
+
<label>
|
366 |
+
<input name="ht_ctc_share[hideon_posts]" type="checkbox" value="1" id="filled-in-box1" />
|
367 |
+
<span>Hide on - Posts</span>
|
368 |
+
</label>
|
369 |
+
</p>
|
370 |
+
<?php
|
371 |
+
}
|
372 |
+
|
373 |
+
|
374 |
+
// Page
|
375 |
+
if ( isset( $options['hideon_page'] ) ) {
|
376 |
+
?>
|
377 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
378 |
+
<label>
|
379 |
+
<input name="ht_ctc_share[hideon_page]" type="checkbox" value="1" <?php checked( $options['hideon_page'], 1 ); ?> id="filled-in-box2" />
|
380 |
+
<span>Hide on - Pages</span>
|
381 |
+
</label>
|
382 |
+
</p>
|
383 |
+
<?php
|
384 |
+
} else {
|
385 |
+
?>
|
386 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
387 |
+
<label>
|
388 |
+
<input name="ht_ctc_share[hideon_page]" type="checkbox" value="1" id="filled-in-box2" />
|
389 |
+
<span>Hide on - Pages</span>
|
390 |
+
</label>
|
391 |
+
</p>
|
392 |
+
<?php
|
393 |
+
}
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
// Home Page
|
399 |
+
// is_home and is_front_page - combined. calling as home/front page
|
400 |
+
if ( isset( $options['hideon_homepage'] ) ) {
|
401 |
+
?>
|
402 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
403 |
+
<label>
|
404 |
+
<input name="ht_ctc_share[hideon_homepage]" type="checkbox" value="1" <?php checked( $options['hideon_homepage'], 1 ); ?> id="filled-in-box3" />
|
405 |
+
<span>Hide on - Home/Front Page</span>
|
406 |
+
</label>
|
407 |
+
</p>
|
408 |
+
<?php
|
409 |
+
} else {
|
410 |
+
?>
|
411 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
412 |
+
<label>
|
413 |
+
<input name="ht_ctc_share[hideon_homepage]" type="checkbox" value="1" id="filled-in-box3" />
|
414 |
+
<span>Hide on - Home/Front Page</span>
|
415 |
+
</label>
|
416 |
+
</p>
|
417 |
+
<?php
|
418 |
+
}
|
419 |
+
|
420 |
+
|
421 |
+
// Category
|
422 |
+
if ( isset( $options['hideon_category'] ) ) {
|
423 |
+
?>
|
424 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
425 |
+
<label>
|
426 |
+
<input name="ht_ctc_share[hideon_category]" type="checkbox" value="1" <?php checked( $options['hideon_category'], 1 ); ?> id="filled-in-box5" />
|
427 |
+
<span>Hide on - Category</span>
|
428 |
+
</label>
|
429 |
+
</p>
|
430 |
+
<?php
|
431 |
+
} else {
|
432 |
+
?>
|
433 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
434 |
+
<label>
|
435 |
+
<input name="ht_ctc_share[hideon_category]" type="checkbox" value="1" id="filled-in-box5" />
|
436 |
+
<span>Hide on - Category</span>
|
437 |
+
</label>
|
438 |
+
</p>
|
439 |
+
<?php
|
440 |
+
}
|
441 |
+
|
442 |
+
|
443 |
+
|
444 |
+
// Archive
|
445 |
+
if ( isset( $options['hideon_archive'] ) ) {
|
446 |
+
?>
|
447 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
448 |
+
<label>
|
449 |
+
<input name="ht_ctc_share[hideon_archive]" type="checkbox" value="1" <?php checked( $options['hideon_archive'], 1 ); ?> id="filled-in-box6" />
|
450 |
+
<span>Hide on - Archive</span>
|
451 |
+
</label>
|
452 |
+
</p>
|
453 |
+
<?php
|
454 |
+
} else {
|
455 |
+
?>
|
456 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
457 |
+
<label>
|
458 |
+
<input name="ht_ctc_share[hideon_archive]" type="checkbox" value="1" id="filled-in-box6" />
|
459 |
+
<span>Hide on - Archive</span>
|
460 |
+
</label>
|
461 |
+
</p>
|
462 |
+
<?php
|
463 |
+
}
|
464 |
+
|
465 |
+
|
466 |
+
// 404 Page
|
467 |
+
if ( isset( $options['hideon_404'] ) ) {
|
468 |
+
?>
|
469 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
470 |
+
<label>
|
471 |
+
<input name="ht_ctc_share[hideon_404]" type="checkbox" value="1" <?php checked( $options['hideon_404'], 1 ); ?> id="hideon_404" />
|
472 |
+
<span>Hide on - 404 Page</span>
|
473 |
+
</label>
|
474 |
+
</p>
|
475 |
+
<?php
|
476 |
+
} else {
|
477 |
+
?>
|
478 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
479 |
+
<label>
|
480 |
+
<input name="ht_ctc_share[hideon_404]" type="checkbox" value="1" id="hideon_404" />
|
481 |
+
<span>Hide on - 404 Page</span>
|
482 |
+
</label>
|
483 |
+
</p>
|
484 |
+
<?php
|
485 |
+
}
|
486 |
+
|
487 |
+
|
488 |
+
// WooCommerce single product pages
|
489 |
+
if ( isset( $options['hideon_wooproduct'] ) ) {
|
490 |
+
?>
|
491 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
492 |
+
<label>
|
493 |
+
<input name="ht_ctc_share[hideon_wooproduct]" type="checkbox" value="1" <?php checked( $options['hideon_wooproduct'], 1 ); ?> id="hideon_wooproduct" />
|
494 |
+
<span>Hide on - WooCommerce single product pages</span>
|
495 |
+
</label>
|
496 |
+
</p>
|
497 |
+
<?php
|
498 |
+
} else {
|
499 |
+
?>
|
500 |
+
<p class="ctc_show_hide_display show-hide_display-none hidebased">
|
501 |
+
<label>
|
502 |
+
<input name="ht_ctc_share[hideon_wooproduct]" type="checkbox" value="1" id="hideon_wooproduct" />
|
503 |
+
<span>Hide on - WooCommerce single product pages</span>
|
504 |
+
</label>
|
505 |
+
</p>
|
506 |
+
<?php
|
507 |
+
}
|
508 |
+
|
509 |
+
|
510 |
+
?>
|
511 |
+
<p class="description ctc_show_hide_display show-hide_display-none hidebased">Check to hide Styles based on the type of pages</p>
|
512 |
+
|
513 |
+
<!-- ID's list to hide styles -->
|
514 |
+
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
515 |
+
<div class="input-field col s12">
|
516 |
+
<input name="ht_ctc_share[list_hideon_pages]" value="<?php echo esc_attr( $options['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
|
517 |
+
<label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
|
518 |
+
<p class="description">Add Post, Page, Media - ID's to hide, can add multiple id's by separating with a comma ( , )</p>
|
519 |
+
</div>
|
520 |
+
</div>
|
521 |
+
|
522 |
+
<!-- Categorys list - to hide -->
|
523 |
+
<div class="row ctc_show_hide_display show-hide_display-none hidebased">
|
524 |
+
<div class="input-field col s12">
|
525 |
+
<input name="ht_ctc_share[list_hideon_cat]" value="<?php echo esc_attr( $options['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
|
526 |
+
<label for="ccw_list_cat_tohide"><?php _e( 'Category name\'s to Hide - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
527 |
+
<p class="description">Add Categories name to hide, can add multiple Categories by separating with a comma ( , )</p>
|
528 |
+
</div>
|
529 |
+
</div>
|
530 |
+
|
531 |
+
|
532 |
+
|
533 |
+
<!-- ######### Show ######### -->
|
534 |
+
|
535 |
+
|
536 |
+
<p class="description ctc_show_hide_display show-hide_display-none showbased" style="margin-bottom: 15px">
|
537 |
+
<?php echo 'Select pages to display styles <span style="background-color: #dddddd; color: red;"> ( Default hides on all pages ) ' ?>
|
538 |
+
</p>
|
539 |
+
<?php
|
540 |
+
|
541 |
+
// checkboxes - Show based on Type of posts
|
542 |
+
|
543 |
+
// Single Posts
|
544 |
+
if ( isset( $options['showon_posts'] ) ) {
|
545 |
+
?>
|
546 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
547 |
+
<label>
|
548 |
+
<input name="ht_ctc_share[showon_posts]" type="checkbox" value="1" <?php checked( $options['showon_posts'], 1 ); ?> id="show_filled-in-box1" />
|
549 |
+
<span>Show on - Posts</span>
|
550 |
+
</label>
|
551 |
+
</p>
|
552 |
+
<?php
|
553 |
+
} else {
|
554 |
+
?>
|
555 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
556 |
+
<label>
|
557 |
+
<input name="ht_ctc_share[showon_posts]" type="checkbox" value="1" id="show_filled-in-box1" />
|
558 |
+
<span>Show on - Posts</span>
|
559 |
+
</label>
|
560 |
+
</p>
|
561 |
+
<?php
|
562 |
+
}
|
563 |
+
|
564 |
+
|
565 |
+
// Page
|
566 |
+
if ( isset( $options['showon_page'] ) ) {
|
567 |
+
?>
|
568 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
569 |
+
<label>
|
570 |
+
<input name="ht_ctc_share[showon_page]" type="checkbox" value="1" <?php checked( $options['showon_page'], 1 ); ?> id="show_filled-in-box2" />
|
571 |
+
<span>Show on - Pages</span>
|
572 |
+
</label>
|
573 |
+
</p>
|
574 |
+
<?php
|
575 |
+
} else {
|
576 |
+
?>
|
577 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
578 |
+
<label>
|
579 |
+
<input name="ht_ctc_share[showon_page]" type="checkbox" value="1" id="show_filled-in-box2" />
|
580 |
+
<span>Show on - Pages</span>
|
581 |
+
</label>
|
582 |
+
</p>
|
583 |
+
<?php
|
584 |
+
}
|
585 |
+
|
586 |
+
|
587 |
+
// Home Page
|
588 |
+
// is_home and is_front_page - combined. calling as home/front page
|
589 |
+
if ( isset( $options['showon_homepage'] ) ) {
|
590 |
+
?>
|
591 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
592 |
+
<label>
|
593 |
+
<input name="ht_ctc_share[showon_homepage]" type="checkbox" value="1" <?php checked( $options['showon_homepage'], 1 ); ?> id="show_filled-in-box3" />
|
594 |
+
<span>Show on - Home/Front Page</span>
|
595 |
+
</label>
|
596 |
+
</p>
|
597 |
+
<?php
|
598 |
+
} else {
|
599 |
+
?>
|
600 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
601 |
+
<label>
|
602 |
+
<input name="ht_ctc_share[showon_homepage]" type="checkbox" value="1" id="show_filled-in-box3" />
|
603 |
+
<span>Show on - Home/Front Page</span>
|
604 |
+
</label>
|
605 |
+
</p>
|
606 |
+
<?php
|
607 |
+
}
|
608 |
+
|
609 |
+
|
610 |
+
// Category
|
611 |
+
if ( isset( $options['showon_category'] ) ) {
|
612 |
+
?>
|
613 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
614 |
+
<label>
|
615 |
+
<input name="ht_ctc_share[showon_category]" type="checkbox" value="1" <?php checked( $options['showon_category'], 1 ); ?> id="show_filled-in-box5" />
|
616 |
+
<span>Show on - Category</span>
|
617 |
+
</label>
|
618 |
+
</p>
|
619 |
+
<?php
|
620 |
+
} else {
|
621 |
+
?>
|
622 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
623 |
+
<label>
|
624 |
+
<input name="ht_ctc_share[showon_category]" type="checkbox" value="1" id="show_filled-in-box5" />
|
625 |
+
<span>Show on - Category</span>
|
626 |
+
</label>
|
627 |
+
</p>
|
628 |
+
<?php
|
629 |
+
}
|
630 |
+
|
631 |
+
// Archive
|
632 |
+
if ( isset( $options['showon_archive'] ) ) {
|
633 |
+
?>
|
634 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
635 |
+
<label>
|
636 |
+
<input name="ht_ctc_share[showon_archive]" type="checkbox" value="1" <?php checked( $options['showon_archive'], 1 ); ?> id="show_filled-in-box6" />
|
637 |
+
<span>Show on - Archive</span>
|
638 |
+
</label>
|
639 |
+
</p>
|
640 |
+
<?php
|
641 |
+
} else {
|
642 |
+
?>
|
643 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
644 |
+
<label>
|
645 |
+
<input name="ht_ctc_share[showon_archive]" type="checkbox" value="1" id="show_filled-in-box6" />
|
646 |
+
<span>Show on - Archive</span>
|
647 |
+
</label>
|
648 |
+
</p>
|
649 |
+
<?php
|
650 |
+
}
|
651 |
+
|
652 |
+
|
653 |
+
// 404 Page
|
654 |
+
if ( isset( $options['showon_404'] ) ) {
|
655 |
+
?>
|
656 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
657 |
+
<label>
|
658 |
+
<input name="ht_ctc_share[showon_404]" type="checkbox" value="1" <?php checked( $options['showon_404'], 1 ); ?> id="showon_404" />
|
659 |
+
<span>Show on - 404 Page</span>
|
660 |
+
</label>
|
661 |
+
</p>
|
662 |
+
<?php
|
663 |
+
} else {
|
664 |
+
?>
|
665 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
666 |
+
<label>
|
667 |
+
<input name="ht_ctc_share[showon_404]" type="checkbox" value="1" id="showon_404" />
|
668 |
+
<span>Show on - 404 Page</span>
|
669 |
+
</label>
|
670 |
+
</p>
|
671 |
+
<?php
|
672 |
+
}
|
673 |
+
|
674 |
+
|
675 |
+
// WooCommerce single product pages
|
676 |
+
if ( isset( $options['showon_wooproduct'] ) ) {
|
677 |
+
?>
|
678 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
679 |
+
<label>
|
680 |
+
<input name="ht_ctc_share[showon_wooproduct]" type="checkbox" value="1" <?php checked( $options['showon_wooproduct'], 1 ); ?> id="showon_wooproduct" />
|
681 |
+
<span>Show on - WooCommerce Single product pages</span>
|
682 |
+
</label>
|
683 |
+
</p>
|
684 |
+
<?php
|
685 |
+
} else {
|
686 |
+
?>
|
687 |
+
<p class="ctc_show_hide_display show-hide_display-none showbased">
|
688 |
+
<label>
|
689 |
+
<input name="ht_ctc_share[showon_wooproduct]" type="checkbox" value="1" id="showon_wooproduct" />
|
690 |
+
<span>Show on - WooCommerce Single product pages</span>
|
691 |
+
</label>
|
692 |
+
</p>
|
693 |
+
<?php
|
694 |
+
}
|
695 |
+
|
696 |
+
|
697 |
+
?>
|
698 |
+
<p class="description ctc_show_hide_display show-hide_display-none showbased"><?php _e( 'Check to display Styles based on type of the page' , 'click-to-chat-for-whatsapp' ) ?></p>
|
699 |
+
|
700 |
+
<!-- ID's list to show styles -->
|
701 |
+
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
702 |
+
<div class="input-field col s12">
|
703 |
+
<input name="ht_ctc_share[list_showon_pages]" value="<?php echo esc_attr( $options['list_showon_pages'] ) ?>" id="ccw_list_id_toshow" type="text" class="input-margin">
|
704 |
+
<label for="ccw_list_id_toshow">Id's list to show - add ',' after each id </label>
|
705 |
+
<p class="description"> Add Post, Pages, Media - ID's to show styles, can add multiple id's separate with a comma ( , ) </p>
|
706 |
+
</div>
|
707 |
+
</div>
|
708 |
+
|
709 |
+
<!-- Categorys list - to show -->
|
710 |
+
<div class="row ctc_show_hide_display show-hide_display-none showbased">
|
711 |
+
<div class="input-field col s12">
|
712 |
+
<input name="ht_ctc_share[list_showon_cat]" value="<?php echo esc_attr( $options['list_showon_cat'] ) ?>" id="ccw_list_cat_toshow" type="text" class="input-margin">
|
713 |
+
<label for="ccw_list_cat_toshow"><?php _e( 'Category name\'s to Show - add \',\' after each category name' , 'click-to-chat-for-whatsapp' ) ?> </label>
|
714 |
+
<p class="description"><?php _e( 'Category name\'s to show styles, can add multiple Categories separate with a comma ( , )' , 'click-to-chat-for-whatsapp' ) ?> </p>
|
715 |
+
</div>
|
716 |
+
</div>
|
717 |
+
|
718 |
+
|
719 |
+
<p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/show-hide-styles/">more info</a> </p>
|
720 |
+
|
721 |
+
|
722 |
+
</div>
|
723 |
+
</li>
|
724 |
+
<ul>
|
725 |
+
|
726 |
+
|
727 |
+
<?php
|
728 |
+
|
729 |
+
}
|
730 |
+
|
731 |
+
|
732 |
+
function share_shortcode_cb() {
|
733 |
+
?>
|
734 |
+
<p class="description">Shorcodes for Share: [ht-ctc-share] - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/shortcodes-share">more info</a></p>
|
735 |
+
<?php
|
736 |
+
}
|
737 |
+
|
738 |
+
|
739 |
+
|
740 |
+
|
741 |
+
|
742 |
+
|
743 |
+
/**
|
744 |
+
* Sanitize each setting field as needed
|
745 |
+
*
|
746 |
+
* @since 2.0
|
747 |
+
* @param array $input Contains all settings fields as array keys
|
748 |
+
*/
|
749 |
+
public function options_sanitize( $input ) {
|
750 |
+
|
751 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
752 |
+
wp_die( 'not allowed to modify - please contact admin ' );
|
753 |
+
}
|
754 |
+
|
755 |
+
$new_input = array();
|
756 |
+
|
757 |
+
foreach ($input as $key => $value) {
|
758 |
+
|
759 |
+
if ( 'side_1_value' == $key ) {
|
760 |
+
if ( is_numeric($input[$key]) ) {
|
761 |
+
$input[$key] = $input[$key] . 'px';
|
762 |
+
}
|
763 |
+
if ( '' == $input[$key] ) {
|
764 |
+
$input[$key] = '0px';
|
765 |
+
}
|
766 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
767 |
+
} elseif ( 'side_2_value' == $key ) {
|
768 |
+
if ( is_numeric($input[$key]) ) {
|
769 |
+
$input[$key] = $input[$key] . 'px';
|
770 |
+
}
|
771 |
+
if ( '' == $input[$key] ) {
|
772 |
+
$input[$key] = '0px';
|
773 |
+
}
|
774 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
775 |
+
} elseif( isset( $input[$key] ) ) {
|
776 |
+
$new_input[$key] = sanitize_text_field( $input[$key] );
|
777 |
+
}
|
778 |
+
|
779 |
+
|
780 |
+
// if( isset( $input[$key] ) ) {
|
781 |
+
// $new_input[$key] = sanitize_text_field( $input[$key] );
|
782 |
+
// }
|
783 |
+
}
|
784 |
+
|
785 |
+
|
786 |
+
return $new_input;
|
787 |
+
}
|
788 |
+
|
789 |
+
|
790 |
+
}
|
791 |
+
|
792 |
+
$ht_ctc_admin_share_page = new HT_CTC_Admin_Share_Page();
|
793 |
+
|
794 |
+
add_action('admin_menu', array($ht_ctc_admin_share_page, 'menu') );
|
795 |
+
add_action('admin_init', array($ht_ctc_admin_share_page, 'settings') );
|
796 |
+
|
797 |
+
endif; // END class_exists check
|
new/admin/class-ht-ctc-db.php
CHANGED
@@ -1,563 +1,608 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Default Values
|
4 |
-
*
|
5 |
-
* set the default values
|
6 |
-
* which stores in database options table
|
7 |
-
*
|
8 |
-
* @package ctc
|
9 |
-
* @since 2.0
|
10 |
-
* @from ht-ccw-register.php
|
11 |
-
*/
|
12 |
-
|
13 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
-
|
15 |
-
if ( ! class_exists( 'HT_CTC_DB' ) ) :
|
16 |
-
|
17 |
-
class HT_CTC_DB {
|
18 |
-
|
19 |
-
|
20 |
-
public function __construct() {
|
21 |
-
$this->db();
|
22 |
-
}
|
23 |
-
|
24 |
-
|
25 |
-
/**
|
26 |
-
* based on condition.. update the db ..
|
27 |
-
*
|
28 |
-
*/
|
29 |
-
public function db() {
|
30 |
-
|
31 |
-
$this->
|
32 |
-
|
33 |
-
$this->
|
34 |
-
$this->
|
35 |
-
$this->
|
36 |
-
$this->
|
37 |
-
|
38 |
-
$this->
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
$this->
|
43 |
-
$this->
|
44 |
-
$this->
|
45 |
-
$this->
|
46 |
-
$this->
|
47 |
-
$this->
|
48 |
-
|
49 |
-
$this->
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
*
|
59 |
-
*
|
60 |
-
*
|
61 |
-
*
|
62 |
-
*
|
63 |
-
*
|
64 |
-
*
|
65 |
-
*
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
)
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
*
|
92 |
-
*
|
93 |
-
*
|
94 |
-
*
|
95 |
-
*
|
96 |
-
*
|
97 |
-
*
|
98 |
-
*
|
99 |
-
*
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
*
|
134 |
-
*
|
135 |
-
*
|
136 |
-
*/
|
137 |
-
public function
|
138 |
-
|
139 |
-
$values = array(
|
140 |
-
|
141 |
-
'
|
142 |
-
'call_to_action' => 'WhatsApp
|
143 |
-
|
144 |
-
'
|
145 |
-
|
146 |
-
|
147 |
-
'
|
148 |
-
|
149 |
-
|
150 |
-
'
|
151 |
-
|
152 |
-
|
153 |
-
'
|
154 |
-
'
|
155 |
-
|
156 |
-
'
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
'
|
182 |
-
'
|
183 |
-
|
184 |
-
'
|
185 |
-
'
|
186 |
-
|
187 |
-
'
|
188 |
-
'
|
189 |
-
|
190 |
-
'
|
191 |
-
'
|
192 |
-
|
193 |
-
'
|
194 |
-
'
|
195 |
-
|
196 |
-
'
|
197 |
-
'
|
198 |
-
|
199 |
-
'
|
200 |
-
'
|
201 |
-
|
202 |
-
);
|
203 |
-
|
204 |
-
$db_values = get_option( '
|
205 |
-
$update_values = array_merge($values, $db_values);
|
206 |
-
update_option('
|
207 |
-
}
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
/**
|
212 |
-
* name:
|
213 |
-
*
|
214 |
-
*
|
215 |
-
*
|
216 |
-
*
|
217 |
-
*
|
218 |
-
*
|
219 |
-
*/
|
220 |
-
public function
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
'
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
$
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
*
|
262 |
-
*
|
263 |
-
*
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
$
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
*
|
355 |
-
*
|
356 |
-
*
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
*
|
379 |
-
*
|
380 |
-
*
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
$
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
'
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
$
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
$
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
$
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
563 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Default Values
|
4 |
+
*
|
5 |
+
* set the default values
|
6 |
+
* which stores in database options table
|
7 |
+
*
|
8 |
+
* @package ctc
|
9 |
+
* @since 2.0
|
10 |
+
* @from ht-ccw-register.php
|
11 |
+
*/
|
12 |
+
|
13 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
+
|
15 |
+
if ( ! class_exists( 'HT_CTC_DB' ) ) :
|
16 |
+
|
17 |
+
class HT_CTC_DB {
|
18 |
+
|
19 |
+
|
20 |
+
public function __construct() {
|
21 |
+
$this->db();
|
22 |
+
}
|
23 |
+
|
24 |
+
|
25 |
+
/**
|
26 |
+
* based on condition.. update the db ..
|
27 |
+
*
|
28 |
+
*/
|
29 |
+
public function db() {
|
30 |
+
|
31 |
+
$this->ht_ctc_othersettings();
|
32 |
+
|
33 |
+
$this->ht_ctc_main_options();
|
34 |
+
$this->ht_ctc_chat_options();
|
35 |
+
$this->ht_ctc_plugin_details();
|
36 |
+
$this->ht_ctc_group();
|
37 |
+
$this->ht_ctc_share();
|
38 |
+
$this->ht_ctc_one_time();
|
39 |
+
|
40 |
+
$this->ht_ctc_switch();
|
41 |
+
|
42 |
+
// $this->ht_ctc_s1();
|
43 |
+
$this->ht_ctc_s2();
|
44 |
+
$this->ht_ctc_s3();
|
45 |
+
$this->ht_ctc_s4();
|
46 |
+
$this->ht_ctc_s5();
|
47 |
+
$this->ht_ctc_s6();
|
48 |
+
$this->ht_ctc_s7();
|
49 |
+
$this->ht_ctc_s8();
|
50 |
+
|
51 |
+
$this->ht_ctc_s99();
|
52 |
+
|
53 |
+
}
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
/**
|
58 |
+
* table name: "ht_ctc_othersettings"
|
59 |
+
*
|
60 |
+
* other settings
|
61 |
+
*
|
62 |
+
* checkboxes ..
|
63 |
+
* fb_analytics facebook analytics using js sdk
|
64 |
+
* detectdevice screen(screensize), http(httpuseragent)
|
65 |
+
*
|
66 |
+
*/
|
67 |
+
public function ht_ctc_othersettings() {
|
68 |
+
|
69 |
+
$values = array(
|
70 |
+
'detectdevice' => 'screen',
|
71 |
+
);
|
72 |
+
|
73 |
+
$ht_ctc_main_options = get_option('ht_ctc_main_options');
|
74 |
+
if ( isset ( $ht_ctc_main_options['fb_analytics'] ) ) {
|
75 |
+
$add_values = array(
|
76 |
+
'fb_analytics' => '1',
|
77 |
+
);
|
78 |
+
$values = array_merge($values, $add_values);
|
79 |
+
}
|
80 |
+
|
81 |
+
$db_values = get_option( 'ht_ctc_othersettings', array() );
|
82 |
+
$update_values = array_merge($values, $db_values);
|
83 |
+
update_option('ht_ctc_othersettings', $update_values);
|
84 |
+
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
/**
|
91 |
+
* table name: "ht_ctc_main_options"
|
92 |
+
*
|
93 |
+
* enable options ..
|
94 |
+
*
|
95 |
+
* checkboxes ..
|
96 |
+
* enable_chat enable chat
|
97 |
+
* enable_group enable_group_chat
|
98 |
+
* enable_share enable_share
|
99 |
+
*
|
100 |
+
* enable_ga Google analytics
|
101 |
+
* enable_fba Facebook Analytics
|
102 |
+
* enable_fbp Facebook Pixel ( pro )
|
103 |
+
*
|
104 |
+
* enable_woo enable_woocommerce
|
105 |
+
*/
|
106 |
+
public function ht_ctc_main_options() {
|
107 |
+
|
108 |
+
$values = array(
|
109 |
+
'enable_chat' => '1',
|
110 |
+
);
|
111 |
+
|
112 |
+
$db_values = get_option( 'ht_ctc_main_options', array() );
|
113 |
+
$update_values = array_merge($values, $db_values);
|
114 |
+
update_option('ht_ctc_main_options', $update_values);
|
115 |
+
|
116 |
+
}
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
|
121 |
+
/**
|
122 |
+
* table name: "ht_ctc_chat_options"
|
123 |
+
*
|
124 |
+
* Chat options, main page .. some feature enable options ..
|
125 |
+
*
|
126 |
+
* checkboxes ..
|
127 |
+
* hide/show options ..
|
128 |
+
*
|
129 |
+
* cache_issue
|
130 |
+
*
|
131 |
+
* enable_share
|
132 |
+
* enable_group
|
133 |
+
*
|
134 |
+
* webandapi if checked ? web/api.whatsapp(mobile,desktop) : wa.me
|
135 |
+
*
|
136 |
+
*/
|
137 |
+
public function ht_ctc_chat_options() {
|
138 |
+
|
139 |
+
$values = array(
|
140 |
+
'number' => '',
|
141 |
+
'pre_filled' => '',
|
142 |
+
'call_to_action' => 'WhatsApp us',
|
143 |
+
'style_desktop' => '2',
|
144 |
+
'style_mobile' => '3',
|
145 |
+
|
146 |
+
'side_1' => 'bottom',
|
147 |
+
'side_1_value' => '10px',
|
148 |
+
|
149 |
+
'side_2' => 'right',
|
150 |
+
'side_2_value' => '10px',
|
151 |
+
|
152 |
+
'show_or_hide' => 'hide',
|
153 |
+
'list_hideon_pages' => '',
|
154 |
+
'list_hideon_cat' => '',
|
155 |
+
'list_showon_pages' => '',
|
156 |
+
'list_showon_cat' => '',
|
157 |
+
|
158 |
+
);
|
159 |
+
|
160 |
+
$db_values = get_option( 'ht_ctc_chat_options', array() );
|
161 |
+
$update_values = array_merge($values, $db_values);
|
162 |
+
update_option('ht_ctc_chat_options', $update_values);
|
163 |
+
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
|
168 |
+
|
169 |
+
/**
|
170 |
+
* table name: "ht_ctc_group"
|
171 |
+
*
|
172 |
+
* Group chat
|
173 |
+
*/
|
174 |
+
public function ht_ctc_group() {
|
175 |
+
|
176 |
+
$values = array(
|
177 |
+
|
178 |
+
'group_id' => '',
|
179 |
+
'call_to_action' => 'WhatsApp Group',
|
180 |
+
|
181 |
+
'style_desktop' => '1',
|
182 |
+
'style_mobile' => '2',
|
183 |
+
|
184 |
+
'side_1' => 'bottom',
|
185 |
+
'side_1_value' => '10px',
|
186 |
+
|
187 |
+
'side_2' => 'left',
|
188 |
+
'side_2_value' => '10px',
|
189 |
+
|
190 |
+
'side_1_mobile' => 'bottom',
|
191 |
+
'side_1_mobile_value' => '10px',
|
192 |
+
|
193 |
+
'side_2_mobile' => 'left',
|
194 |
+
'side_2_mobile_value' => '10px',
|
195 |
+
|
196 |
+
'show_or_hide' => 'hide',
|
197 |
+
'list_hideon_pages' => '',
|
198 |
+
'list_hideon_cat' => '',
|
199 |
+
'list_showon_pages' => '',
|
200 |
+
'list_showon_cat' => '',
|
201 |
+
|
202 |
+
);
|
203 |
+
|
204 |
+
$db_values = get_option( 'ht_ctc_group', array() );
|
205 |
+
$update_values = array_merge($values, $db_values);
|
206 |
+
update_option('ht_ctc_group', $update_values);
|
207 |
+
}
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
/**
|
212 |
+
* table name: "ht_ctc_share"
|
213 |
+
*
|
214 |
+
* share chat
|
215 |
+
*
|
216 |
+
* checkboxes
|
217 |
+
* webandapi
|
218 |
+
* show/hide ..
|
219 |
+
*/
|
220 |
+
public function ht_ctc_share() {
|
221 |
+
|
222 |
+
$values = array(
|
223 |
+
|
224 |
+
'share_text' => 'Checkout this Awesome page {{url}}',
|
225 |
+
'call_to_action' => 'WhatsApp Share',
|
226 |
+
|
227 |
+
'style_desktop' => '1',
|
228 |
+
'style_mobile' => '2',
|
229 |
+
|
230 |
+
'side_1' => 'top',
|
231 |
+
'side_1_value' => '10px',
|
232 |
+
|
233 |
+
'side_2' => 'right',
|
234 |
+
'side_2_value' => '10px',
|
235 |
+
|
236 |
+
'side_1_mobile' => 'top',
|
237 |
+
'side_1_mobile_value' => '10px',
|
238 |
+
|
239 |
+
'side_2_mobile' => 'right',
|
240 |
+
'side_2_mobile_value' => '10px',
|
241 |
+
|
242 |
+
'show_or_hide' => 'hide',
|
243 |
+
'list_hideon_pages' => '',
|
244 |
+
'list_hideon_cat' => '',
|
245 |
+
'list_showon_pages' => '',
|
246 |
+
'list_showon_cat' => '',
|
247 |
+
);
|
248 |
+
|
249 |
+
$db_values = get_option( 'ht_ctc_share', array() );
|
250 |
+
$update_values = array_merge($values, $db_values);
|
251 |
+
update_option('ht_ctc_share', $update_values);
|
252 |
+
}
|
253 |
+
|
254 |
+
|
255 |
+
|
256 |
+
/**
|
257 |
+
* name: ht_ctc_plugin_details
|
258 |
+
*
|
259 |
+
* don't preseve already existing values
|
260 |
+
* Always use update_option - override new values ..
|
261 |
+
*
|
262 |
+
* Add plugin Details to db
|
263 |
+
* Add plugin version to db - useful while updating plugin
|
264 |
+
*/
|
265 |
+
public function ht_ctc_plugin_details() {
|
266 |
+
|
267 |
+
// plugin details
|
268 |
+
$values = array(
|
269 |
+
'version' => HT_CTC_VERSION,
|
270 |
+
);
|
271 |
+
|
272 |
+
// Always use update_option - override new values .. don't preseve already existing values
|
273 |
+
update_option( 'ht_ctc_plugin_details', $values );
|
274 |
+
}
|
275 |
+
|
276 |
+
|
277 |
+
/**
|
278 |
+
* name: ht_ctc_one_time
|
279 |
+
*
|
280 |
+
* ***** caution *****
|
281 |
+
* when using this values always check if exists..
|
282 |
+
* as some new values may add in other versions..
|
283 |
+
* and thoose values may not exists if this option is added before
|
284 |
+
* ( it add_option not update_option )
|
285 |
+
*
|
286 |
+
* dont update values. .. one time values ..
|
287 |
+
*
|
288 |
+
* first_version - first version installed
|
289 |
+
*
|
290 |
+
* Add plugin Details to db
|
291 |
+
* Add plugin version to db - useful while updating plugin
|
292 |
+
*/
|
293 |
+
public function ht_ctc_one_time() {
|
294 |
+
|
295 |
+
// plugin details
|
296 |
+
$values = array(
|
297 |
+
'first_version' => HT_CTC_VERSION,
|
298 |
+
);
|
299 |
+
|
300 |
+
// dont update values. .. one time values ..
|
301 |
+
add_option( 'ht_ctc_one_time', $values );
|
302 |
+
}
|
303 |
+
|
304 |
+
|
305 |
+
/**
|
306 |
+
* name: ht_ctc_switch
|
307 |
+
*
|
308 |
+
* interface - option - 1 new interface, 2 previous interface
|
309 |
+
* 'yes' 'no'
|
310 |
+
*
|
311 |
+
*/
|
312 |
+
public function ht_ctc_switch() {
|
313 |
+
|
314 |
+
$interface = 'yes';
|
315 |
+
|
316 |
+
$first_version = get_option('ht_ctc_one_time');
|
317 |
+
if ( isset ( $first_version['first_version'] ) ) {
|
318 |
+
if ( '1.8' == $first_version['first_version'] || '1.8.1' == $first_version['first_version'] || '1.8.2' == $first_version['first_version'] ) {
|
319 |
+
$ccw_options = get_option('ccw_options');
|
320 |
+
if ( isset ( $ccw_options['number'] ) ) {
|
321 |
+
if ( isset ( $ccw_options['switch_to_new'] ) ) {
|
322 |
+
$interface = 'yes';
|
323 |
+
} else {
|
324 |
+
$interface = 'no';
|
325 |
+
}
|
326 |
+
}
|
327 |
+
}
|
328 |
+
}
|
329 |
+
|
330 |
+
// plugin details
|
331 |
+
$values = array(
|
332 |
+
'interface' => $interface,
|
333 |
+
);
|
334 |
+
|
335 |
+
|
336 |
+
$db_values = get_option( 'ht_ctc_switch', array() );
|
337 |
+
$update_values = array_merge($values, $db_values);
|
338 |
+
update_option('ht_ctc_switch', $update_values);
|
339 |
+
|
340 |
+
}
|
341 |
+
|
342 |
+
|
343 |
+
|
344 |
+
|
345 |
+
|
346 |
+
|
347 |
+
|
348 |
+
// styles
|
349 |
+
|
350 |
+
|
351 |
+
|
352 |
+
/**
|
353 |
+
* name: ht_ctc_s1
|
354 |
+
*
|
355 |
+
* Style-1
|
356 |
+
* style-1 is default button, nothing to modify..
|
357 |
+
*/
|
358 |
+
// public function ht_ctc_s1() {
|
359 |
+
|
360 |
+
// $style_1 = array(
|
361 |
+
|
362 |
+
// 's1_img' => '',
|
363 |
+
|
364 |
+
// );
|
365 |
+
|
366 |
+
// $db_values = get_option( 'ht_ctc_s1', array() );
|
367 |
+
// $update_values = array_merge($style_1, $db_values);
|
368 |
+
// update_option('ht_ctc_s1', $update_values);
|
369 |
+
|
370 |
+
// }
|
371 |
+
|
372 |
+
|
373 |
+
|
374 |
+
|
375 |
+
|
376 |
+
|
377 |
+
/**
|
378 |
+
* name: ht_ctc_s2
|
379 |
+
*
|
380 |
+
* Style-2
|
381 |
+
* green square icon
|
382 |
+
*/
|
383 |
+
public function ht_ctc_s2() {
|
384 |
+
|
385 |
+
$style_2 = array(
|
386 |
+
|
387 |
+
's2_img_size' => '50px',
|
388 |
+
|
389 |
+
);
|
390 |
+
|
391 |
+
$db_values = get_option( 'ht_ctc_s2', array() );
|
392 |
+
$update_values = array_merge($style_2, $db_values);
|
393 |
+
update_option('ht_ctc_s2', $update_values);
|
394 |
+
|
395 |
+
}
|
396 |
+
|
397 |
+
|
398 |
+
/**
|
399 |
+
* name: ht_ctc_s3
|
400 |
+
*
|
401 |
+
* Style-3
|
402 |
+
* icon
|
403 |
+
*/
|
404 |
+
public function ht_ctc_s3() {
|
405 |
+
|
406 |
+
$style_3 = array(
|
407 |
+
|
408 |
+
's3_img_size' => '50px',
|
409 |
+
|
410 |
+
);
|
411 |
+
|
412 |
+
$db_values = get_option( 'ht_ctc_s3', array() );
|
413 |
+
$update_values = array_merge($style_3, $db_values);
|
414 |
+
update_option('ht_ctc_s3', $update_values);
|
415 |
+
|
416 |
+
}
|
417 |
+
|
418 |
+
|
419 |
+
|
420 |
+
/**
|
421 |
+
* name: ht_ctc_s4
|
422 |
+
*
|
423 |
+
* Style-4
|
424 |
+
* chip
|
425 |
+
*/
|
426 |
+
public function ht_ctc_s4() {
|
427 |
+
|
428 |
+
// if first installed version is 1.8 - then drop and add the style_4
|
429 |
+
$first_version = get_option('ht_ctc_one_time');
|
430 |
+
if ( isset ( $first_version['first_version'] ) ) {
|
431 |
+
if ( '1.8' == $first_version['first_version'] || '1.8.1' == $first_version['first_version'] || '1.8.0.1' == $first_version['first_version'] ) {
|
432 |
+
$s4 = get_option('ht_ctc_s4');
|
433 |
+
if ( !is_array( $s4 ) ) {
|
434 |
+
delete_option('ht_ctc_s4');
|
435 |
+
}
|
436 |
+
}
|
437 |
+
}
|
438 |
+
|
439 |
+
$style_4 = array(
|
440 |
+
|
441 |
+
's4_text_color' => '#7f7d7d',
|
442 |
+
's4_bg_color' => '#e4e4e4',
|
443 |
+
's4_img_url' => '',
|
444 |
+
|
445 |
+
);
|
446 |
+
|
447 |
+
$db_values = get_option( 'ht_ctc_s4', array() );
|
448 |
+
$update_values = array_merge($style_4, $db_values);
|
449 |
+
update_option('ht_ctc_s4', $update_values);
|
450 |
+
|
451 |
+
}
|
452 |
+
|
453 |
+
|
454 |
+
|
455 |
+
/**
|
456 |
+
* name: ht_ctc_s5
|
457 |
+
*
|
458 |
+
* Style-5
|
459 |
+
* chip
|
460 |
+
*/
|
461 |
+
public function ht_ctc_s5() {
|
462 |
+
|
463 |
+
$style_5 = array(
|
464 |
+
|
465 |
+
's5_line_1' => '',
|
466 |
+
's5_line_2' => 'We will respond as soon as possible',
|
467 |
+
's5_line_1_color' => '#000000',
|
468 |
+
's5_line_2_color' => '#000000',
|
469 |
+
's5_background_color' => '#ffffff',
|
470 |
+
's5_border_color' => '#dddddd',
|
471 |
+
's5_img' => '',
|
472 |
+
's5_img_height' => '70px',
|
473 |
+
's5_img_width' => '70px',
|
474 |
+
's5_content_height' => '70px',
|
475 |
+
's5_content_width' => '270px',
|
476 |
+
's5_img_position' => 'right', // left means nothing - right means - order: 1
|
477 |
+
|
478 |
+
);
|
479 |
+
|
480 |
+
$db_values = get_option( 'ht_ctc_s5', array() );
|
481 |
+
$update_values = array_merge($style_5, $db_values);
|
482 |
+
update_option('ht_ctc_s5', $update_values);
|
483 |
+
|
484 |
+
}
|
485 |
+
|
486 |
+
|
487 |
+
/**
|
488 |
+
* name: ht_ctc_s6
|
489 |
+
*
|
490 |
+
* Style-6
|
491 |
+
*
|
492 |
+
* #006ccc
|
493 |
+
* #0073aa
|
494 |
+
* #005177
|
495 |
+
*/
|
496 |
+
public function ht_ctc_s6() {
|
497 |
+
|
498 |
+
$style_6 = array(
|
499 |
+
|
500 |
+
's6_txt_color' => '',
|
501 |
+
's6_txt_color_on_hover' => '',
|
502 |
+
's6_txt_decoration' => '',
|
503 |
+
's6_txt_decoration_on_hover' => '',
|
504 |
+
|
505 |
+
);
|
506 |
+
|
507 |
+
$db_values = get_option( 'ht_ctc_s6', array() );
|
508 |
+
$update_values = array_merge($style_6, $db_values);
|
509 |
+
update_option('ht_ctc_s6', $update_values);
|
510 |
+
|
511 |
+
}
|
512 |
+
|
513 |
+
|
514 |
+
/**
|
515 |
+
* name: ht_ctc_s7
|
516 |
+
*
|
517 |
+
* Style-7
|
518 |
+
*
|
519 |
+
* border is padding
|
520 |
+
* 's7_icon_color_hover' => '#6b6b6b', #262626, #455a64
|
521 |
+
*/
|
522 |
+
public function ht_ctc_s7() {
|
523 |
+
|
524 |
+
$style_7 = array(
|
525 |
+
|
526 |
+
's7_icon_size' => '28px',
|
527 |
+
's7_icon_color' => '#ffffff',
|
528 |
+
's7_icon_color_hover' => '#455a64',
|
529 |
+
's7_border_size' => '12px',
|
530 |
+
's7_border_color' => '#25D366',
|
531 |
+
's7_border_color_hover' => '#25D366',
|
532 |
+
's7_border_radius' => '50%',
|
533 |
+
|
534 |
+
);
|
535 |
+
|
536 |
+
$db_values = get_option( 'ht_ctc_s7', array() );
|
537 |
+
$update_values = array_merge($style_7, $db_values);
|
538 |
+
update_option('ht_ctc_s7', $update_values);
|
539 |
+
|
540 |
+
}
|
541 |
+
|
542 |
+
|
543 |
+
|
544 |
+
/**
|
545 |
+
* name: ht_ctc_s8
|
546 |
+
*
|
547 |
+
* Style-8
|
548 |
+
*/
|
549 |
+
public function ht_ctc_s8() {
|
550 |
+
|
551 |
+
$style_8 = array(
|
552 |
+
|
553 |
+
's8_txt_color' => '#ffffff',
|
554 |
+
's8_txt_color_on_hover' => '#ffffff',
|
555 |
+
's8_bg_color' => '#26a69a',
|
556 |
+
's8_bg_color_on_hover' => '#26a69a',
|
557 |
+
's8_icon_color' => '#ffffff',
|
558 |
+
's8_icon_color_on_hover' => '#ffffff',
|
559 |
+
's8_icon_position' => 'left',
|
560 |
+
's8_text_size' => '',
|
561 |
+
's8_icon_size' => '',
|
562 |
+
's8_btn_size' => 'btn',
|
563 |
+
|
564 |
+
);
|
565 |
+
|
566 |
+
$db_values = get_option( 'ht_ctc_s8', array() );
|
567 |
+
$update_values = array_merge($style_8, $db_values);
|
568 |
+
update_option('ht_ctc_s8', $update_values);
|
569 |
+
|
570 |
+
}
|
571 |
+
|
572 |
+
|
573 |
+
/**
|
574 |
+
* name: ht_ctc_s99
|
575 |
+
*
|
576 |
+
* Style-99
|
577 |
+
*/
|
578 |
+
public function ht_ctc_s99() {
|
579 |
+
|
580 |
+
$style_99 = array(
|
581 |
+
|
582 |
+
's99_dekstop_img_url' => '',
|
583 |
+
's99_mobile_img_url' => '',
|
584 |
+
's99_desktop_img_height' => '50px',
|
585 |
+
's99_desktop_img_width' => '',
|
586 |
+
's99_mobile_img_height' => '50px',
|
587 |
+
's99_mobile_img_width' => '',
|
588 |
+
|
589 |
+
);
|
590 |
+
|
591 |
+
$db_values = get_option( 'ht_ctc_s99', array() );
|
592 |
+
$update_values = array_merge($style_99, $db_values);
|
593 |
+
update_option('ht_ctc_s99', $update_values);
|
594 |
+
|
595 |
+
}
|
596 |
+
|
597 |
+
|
598 |
+
|
599 |
+
|
600 |
+
|
601 |
+
|
602 |
+
|
603 |
+
|
604 |
+
}
|
605 |
+
|
606 |
+
new HT_CTC_DB();
|
607 |
+
|
608 |
endif; // END class_exists check
|
new/class-ht-ctc.php
CHANGED
@@ -1,218 +1,220 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* new interface starter ..
|
4 |
-
*
|
5 |
-
* Include files - admin - front end
|
6 |
-
* add hooks
|
7 |
-
*
|
8 |
-
* added variable to declare other instance if needed
|
9 |
-
* ( in some cases in this plugin, using static methods and calling with out creating instance )
|
10 |
-
*
|
11 |
-
* @package CTC
|
12 |
-
* @since 2.0
|
13 |
-
*/
|
14 |
-
|
15 |
-
|
16 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
17 |
-
|
18 |
-
if ( ! class_exists( 'HT_CTC' ) ) :
|
19 |
-
|
20 |
-
class HT_CTC {
|
21 |
-
|
22 |
-
|
23 |
-
/**
|
24 |
-
* singleton instance
|
25 |
-
*
|
26 |
-
* @var HT_CTC
|
27 |
-
*/
|
28 |
-
private static $instance = null;
|
29 |
-
|
30 |
-
|
31 |
-
/**
|
32 |
-
* wp_is_mobile - if true then yes, else no
|
33 |
-
*
|
34 |
-
* @var if mobile, tab .. then yes, else no
|
35 |
-
*/
|
36 |
-
public $device_type;
|
37 |
-
|
38 |
-
|
39 |
-
/**
|
40 |
-
* instance of HT_CTC_Values
|
41 |
-
*
|
42 |
-
* database values , .. . options ..
|
43 |
-
*
|
44 |
-
* @var HT_CTC_Values
|
45 |
-
*/
|
46 |
-
public $values = null;
|
47 |
-
|
48 |
-
|
49 |
-
/**
|
50 |
-
* main instance - HT_CTC
|
51 |
-
*
|
52 |
-
* @return HT_CTC instance
|
53 |
-
* @since 1.0
|
54 |
-
*/
|
55 |
-
public static function instance() {
|
56 |
-
if ( is_null( self::$instance ) ) {
|
57 |
-
self::$instance = new self();
|
58 |
-
}
|
59 |
-
return self::$instance;
|
60 |
-
}
|
61 |
-
|
62 |
-
|
63 |
-
public function __clone() {
|
64 |
-
wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'click-to-chat-for-whatsapp' ), '1.0' );
|
65 |
-
}
|
66 |
-
|
67 |
-
public function __wakeup() {
|
68 |
-
wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'click-to-chat-for-whatsapp' ), '1.0' );
|
69 |
-
}
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
/**
|
74 |
-
* constructor
|
75 |
-
* calling to - includes - which include files
|
76 |
-
* calling to - hooks - which run hooks
|
77 |
-
*/
|
78 |
-
public function __construct() {
|
79 |
-
$this->define_constants();
|
80 |
-
|
81 |
-
$this->basic();
|
82 |
-
|
83 |
-
$this->includes();
|
84 |
-
$this->hooks();
|
85 |
-
}
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Define Constants
|
92 |
-
*
|
93 |
-
* @return void
|
94 |
-
*/
|
95 |
-
private function define_constants() {
|
96 |
-
|
97 |
-
$this->define( 'HT_CTC_WP_MIN_VERSION', '4.6' );
|
98 |
-
$this->define( 'HT_CTC_PLUGIN_DIR', plugin_dir_path( HT_CTC_PLUGIN_FILE ) );
|
99 |
-
$this->define( 'HT_CTC_PLUGIN_BASENAME', plugin_basename( HT_CTC_PLUGIN_FILE ) );
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
*
|
109 |
-
*
|
110 |
-
*
|
111 |
-
*
|
112 |
-
*
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
* @
|
131 |
-
*
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
*
|
170 |
-
*
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
//
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
// $this->
|
208 |
-
|
209 |
-
// $this->
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
|
|
|
|
218 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* new interface starter ..
|
4 |
+
*
|
5 |
+
* Include files - admin - front end
|
6 |
+
* add hooks
|
7 |
+
*
|
8 |
+
* added variable to declare other instance if needed
|
9 |
+
* ( in some cases in this plugin, using static methods and calling with out creating instance )
|
10 |
+
*
|
11 |
+
* @package CTC
|
12 |
+
* @since 2.0
|
13 |
+
*/
|
14 |
+
|
15 |
+
|
16 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
17 |
+
|
18 |
+
if ( ! class_exists( 'HT_CTC' ) ) :
|
19 |
+
|
20 |
+
class HT_CTC {
|
21 |
+
|
22 |
+
|
23 |
+
/**
|
24 |
+
* singleton instance
|
25 |
+
*
|
26 |
+
* @var HT_CTC
|
27 |
+
*/
|
28 |
+
private static $instance = null;
|
29 |
+
|
30 |
+
|
31 |
+
/**
|
32 |
+
* wp_is_mobile - if true then yes, else no
|
33 |
+
*
|
34 |
+
* @var if mobile, tab .. then yes, else no
|
35 |
+
*/
|
36 |
+
public $device_type;
|
37 |
+
|
38 |
+
|
39 |
+
/**
|
40 |
+
* instance of HT_CTC_Values
|
41 |
+
*
|
42 |
+
* database values , .. . options ..
|
43 |
+
*
|
44 |
+
* @var HT_CTC_Values
|
45 |
+
*/
|
46 |
+
public $values = null;
|
47 |
+
|
48 |
+
|
49 |
+
/**
|
50 |
+
* main instance - HT_CTC
|
51 |
+
*
|
52 |
+
* @return HT_CTC instance
|
53 |
+
* @since 1.0
|
54 |
+
*/
|
55 |
+
public static function instance() {
|
56 |
+
if ( is_null( self::$instance ) ) {
|
57 |
+
self::$instance = new self();
|
58 |
+
}
|
59 |
+
return self::$instance;
|
60 |
+
}
|
61 |
+
|
62 |
+
|
63 |
+
public function __clone() {
|
64 |
+
wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'click-to-chat-for-whatsapp' ), '1.0' );
|
65 |
+
}
|
66 |
+
|
67 |
+
public function __wakeup() {
|
68 |
+
wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'click-to-chat-for-whatsapp' ), '1.0' );
|
69 |
+
}
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
/**
|
74 |
+
* constructor
|
75 |
+
* calling to - includes - which include files
|
76 |
+
* calling to - hooks - which run hooks
|
77 |
+
*/
|
78 |
+
public function __construct() {
|
79 |
+
$this->define_constants();
|
80 |
+
|
81 |
+
$this->basic();
|
82 |
+
|
83 |
+
$this->includes();
|
84 |
+
$this->hooks();
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Define Constants
|
92 |
+
*
|
93 |
+
* @return void
|
94 |
+
*/
|
95 |
+
private function define_constants() {
|
96 |
+
|
97 |
+
$this->define( 'HT_CTC_WP_MIN_VERSION', '4.6' );
|
98 |
+
// $this->define( 'HT_CTC_PLUGIN_DIR', plugin_dir_path( HT_CTC_PLUGIN_FILE ) );
|
99 |
+
$this->define( 'HT_CTC_PLUGIN_BASENAME', plugin_basename( HT_CTC_PLUGIN_FILE ) );
|
100 |
+
$this->define( 'HT_CTC_BLOG_NAME', get_bloginfo('name') );
|
101 |
+
|
102 |
+
}
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
|
107 |
+
/**
|
108 |
+
* add the basic things
|
109 |
+
*
|
110 |
+
* calling this before include, initilize other things
|
111 |
+
*
|
112 |
+
* because this things may useful before initilize other things
|
113 |
+
*
|
114 |
+
* e.g. include, initialize files based on device, user settings
|
115 |
+
*/
|
116 |
+
private function basic() {
|
117 |
+
|
118 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/commons/class-ht-ctc-ismobile.php';
|
119 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/commons/class-ht-ctc-values.php';
|
120 |
+
|
121 |
+
$this->device_type = new HT_CTC_IsMobile();
|
122 |
+
$this->values = new HT_CTC_Values();
|
123 |
+
|
124 |
+
}
|
125 |
+
|
126 |
+
|
127 |
+
|
128 |
+
|
129 |
+
/**
|
130 |
+
* @uses this->define_constants
|
131 |
+
*
|
132 |
+
* @param string $name Constant name
|
133 |
+
* @param string.. $value Constant value
|
134 |
+
*/
|
135 |
+
private function define( $name, $value ) {
|
136 |
+
if ( ! defined( $name ) ) {
|
137 |
+
define( $name, $value );
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
|
142 |
+
|
143 |
+
|
144 |
+
/**
|
145 |
+
* include plugin file
|
146 |
+
*/
|
147 |
+
private function includes() {
|
148 |
+
|
149 |
+
// include in admin and front pages
|
150 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/class-ht-ctc-register.php';
|
151 |
+
|
152 |
+
// is_admin ? include file to admin area : include files to non-admin area
|
153 |
+
if ( is_admin() ) {
|
154 |
+
include_once HT_CTC_PLUGIN_DIR . 'new/admin/admin.php';
|
155 |
+
} else {
|
156 |
+
|
157 |
+
// main file
|
158 |
+
include_once HT_CTC_PLUGIN_DIR . 'new/inc/class-ht-ctc-main.php';
|
159 |
+
|
160 |
+
// scripts
|
161 |
+
include_once HT_CTC_PLUGIN_DIR . 'new/inc/commons/class-ht-ctc-scripts.php';
|
162 |
+
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
+
|
168 |
+
/**
|
169 |
+
* Register hooks - when plugin activate, deactivate, uninstall
|
170 |
+
* commented deactivation, uninstall hook - its not needed as now
|
171 |
+
*
|
172 |
+
* plugins_loaded - Check Diff - uses when plugin updates.
|
173 |
+
*/
|
174 |
+
private function hooks() {
|
175 |
+
|
176 |
+
register_activation_hook( __FILE__, array( 'HT_CTC_Register', 'activate' ) );
|
177 |
+
register_deactivation_hook( __FILE__, array( 'HT_CTC_Register', 'deactivate' ) );
|
178 |
+
register_uninstall_hook(__FILE__, array( 'HT_CTC_Register', 'uninstall' ) );
|
179 |
+
|
180 |
+
// initilaze classes
|
181 |
+
if ( ! is_admin() ) {
|
182 |
+
add_action( 'init', array( $this, 'init' ), 0 );
|
183 |
+
}
|
184 |
+
|
185 |
+
// enable shortcodes in widget area.
|
186 |
+
add_filter('widget_text', 'do_shortcode');
|
187 |
+
|
188 |
+
// add_filter( 'the_excerpt', 'do_shortcode');
|
189 |
+
|
190 |
+
// settings page link
|
191 |
+
add_filter( 'plugin_action_links_' . HT_CTC_PLUGIN_BASENAME, array( 'HT_CTC_Register', 'plugin_action_links' ) );
|
192 |
+
|
193 |
+
// when plugin updated - check version diff
|
194 |
+
add_action('plugins_loaded', array( 'HT_CTC_Register', 'version_check' ) );
|
195 |
+
|
196 |
+
}
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
/**
|
202 |
+
* create instance
|
203 |
+
* @uses this->hooks() - using init hook - priority 0
|
204 |
+
*/
|
205 |
+
public function init() {
|
206 |
+
|
207 |
+
// $this->values = new HT_CTC_Values();
|
208 |
+
|
209 |
+
// $this->device_type = new HT_CTC_IsMobile();
|
210 |
+
|
211 |
+
// $this->floating_style = new HT_CTC_Floating_Style();
|
212 |
+
// $this->floating_style = new HT_CTC_Chat();
|
213 |
+
|
214 |
+
}
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
}
|
219 |
+
|
220 |
endif; // END class_exists check
|
new/inc/assets/css/font.css
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'ccw';
|
3 |
+
src: url(../fonts/ccw.eot);
|
4 |
+
src: url(../fonts/ccw.eot#iefix) format('embedded-opentype'),
|
5 |
+
url(../fonts/ccw.ttf) format('truetype'),
|
6 |
+
url(../fonts/ccw.woff) format('woff'),
|
7 |
+
url(../fonts/ccw.svg#ccw) format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
}
|
11 |
+
|
12 |
+
.ctc-icon {
|
13 |
+
/* use !important to prevent issues with browser extensions that change fonts */
|
14 |
+
font-family: 'ccw' !important;
|
15 |
+
speak: none;
|
16 |
+
font-style: normal;
|
17 |
+
font-weight: normal;
|
18 |
+
font-variant: normal;
|
19 |
+
text-transform: none;
|
20 |
+
line-height: 1;
|
21 |
+
|
22 |
+
/* Better Font Rendering =========== */
|
23 |
+
-webkit-font-smoothing: antialiased;
|
24 |
+
-moz-osx-font-smoothing: grayscale;
|
25 |
+
}
|
26 |
+
|
27 |
+
.ctc-icon-whatsapp2:before {
|
28 |
+
content: "\E902";
|
29 |
+
}
|
30 |
+
|
31 |
+
.ctc-icon-whatsapp:before {
|
32 |
+
content: "\ea93";
|
33 |
+
}
|
34 |
+
|
35 |
+
/* new: s7,8 */
|
new/inc/assets/css/main.css
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
|
2 |
-
@font-face {
|
3 |
-
font-family: 'ccw';
|
4 |
-
src: url(../fonts/ccw.eot);
|
5 |
-
src: url(../fonts/ccw.eot#iefix) format('embedded-opentype'),
|
6 |
-
url(../fonts/ccw.ttf) format('truetype'),
|
7 |
-
url(../fonts/ccw.woff) format('woff'),
|
8 |
-
url(../fonts/ccw.svg#ccw) format('svg');
|
9 |
-
font-weight: normal;
|
10 |
-
font-style: normal;
|
11 |
-
}
|
12 |
-
|
13 |
-
.icon {
|
14 |
-
/* use !important to prevent issues with browser extensions that change fonts */
|
15 |
-
font-family: 'ccw' !important;
|
16 |
-
speak: none;
|
17 |
-
font-style: normal;
|
18 |
-
font-weight: normal;
|
19 |
-
font-variant: normal;
|
20 |
-
text-transform: none;
|
21 |
-
line-height: 1;
|
22 |
-
|
23 |
-
/* Better Font Rendering =========== */
|
24 |
-
-webkit-font-smoothing: antialiased;
|
25 |
-
-moz-osx-font-smoothing: grayscale;
|
26 |
-
}
|
27 |
-
|
28 |
-
.icon-whatsapp2:before {
|
29 |
-
content: "\E902";
|
30 |
-
}
|
31 |
-
|
32 |
-
.icon-whatsapp:before {
|
33 |
-
content: "\ea93";
|
34 |
-
}
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new/inc/assets/css/mdstyle8.css
CHANGED
@@ -1,885 +1,161 @@
|
|
1 |
-
/* Material Design styles - load on 8 */
|
2 |
-
|
3 |
-
.mdstyle8
|
4 |
-
background-color: transparent
|
5 |
-
.mdstyle8
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
-
|
11 |
-
|
12 |
-
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
.mdstyle8
|
18 |
-
.mdstyle8
|
19 |
-
|
20 |
-
.mdstyle8
|
21 |
-
.mdstyle8
|
22 |
-
.mdstyle8
|
23 |
-
.mdstyle8
|
24 |
-
|
25 |
-
|
26 |
-
.mdstyle8
|
27 |
-
|
28 |
-
|
29 |
-
.mdstyle8
|
30 |
-
|
31 |
-
.mdstyle8 a
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
.mdstyle8
|
38 |
-
|
39 |
-
.mdstyle8
|
40 |
-
|
41 |
-
.mdstyle8
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
.mdstyle8
|
48 |
-
|
49 |
-
.mdstyle8
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
.mdstyle8
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
.mdstyle8
|
72 |
-
|
73 |
-
.mdstyle8
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
.mdstyle8
|
78 |
-
|
79 |
-
.mdstyle8
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
.mdstyle8
|
88 |
-
|
89 |
-
.mdstyle8
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
.mdstyle8
|
94 |
-
|
95 |
-
.mdstyle8
|
96 |
-
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
.mdstyle8
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
.mdstyle8 .
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
.mdstyle8
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3); }
|
162 |
-
.mdstyle8 .hoverable {
|
163 |
-
transition: box-shadow .25s; }
|
164 |
-
.mdstyle8 .hoverable:hover {
|
165 |
-
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }
|
166 |
-
.mdstyle8 .divider {
|
167 |
-
height: 1px;
|
168 |
-
overflow: hidden;
|
169 |
-
background-color: #e0e0e0; }
|
170 |
-
.mdstyle8 blockquote {
|
171 |
-
margin: 20px 0;
|
172 |
-
padding-left: 1.5rem;
|
173 |
-
border-left: 5px solid #ee6e73; }
|
174 |
-
.mdstyle8 i {
|
175 |
-
line-height: inherit; }
|
176 |
-
.mdstyle8 i.left {
|
177 |
-
float: left;
|
178 |
-
margin-right: 15px; }
|
179 |
-
.mdstyle8 i.right {
|
180 |
-
float: right;
|
181 |
-
margin-left: 15px; }
|
182 |
-
.mdstyle8 i.tiny {
|
183 |
-
font-size: 1rem; }
|
184 |
-
.mdstyle8 i.small {
|
185 |
-
font-size: 2rem; }
|
186 |
-
.mdstyle8 i.medium {
|
187 |
-
font-size: 4rem; }
|
188 |
-
.mdstyle8 i.large {
|
189 |
-
font-size: 6rem; }
|
190 |
-
.mdstyle8 img.responsive-img,
|
191 |
-
.mdstyle8 video.responsive-video {
|
192 |
-
max-width: 100%;
|
193 |
-
height: auto; }
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
.mdstyle8 ul.staggered-list li {
|
198 |
-
opacity: 0; }
|
199 |
-
.mdstyle8 .fade-in {
|
200 |
-
opacity: 0;
|
201 |
-
transform-origin: 0 50%; }
|
202 |
-
|
203 |
-
.mdstyle8 .page-footer {
|
204 |
-
padding-top: 20px;
|
205 |
-
color: #fff;
|
206 |
-
background-color: #ee6e73; }
|
207 |
-
.mdstyle8 .page-footer .footer-copyright {
|
208 |
-
overflow: hidden;
|
209 |
-
min-height: 50px;
|
210 |
-
display: flex;
|
211 |
-
align-items: center;
|
212 |
-
padding: 10px 0px;
|
213 |
-
color: rgba(255, 255, 255, 0.8);
|
214 |
-
background-color: rgba(51, 51, 51, 0.08); }
|
215 |
-
.mdstyle8 table, .mdstyle8 th, .mdstyle8 td {
|
216 |
-
border: none; }
|
217 |
-
.mdstyle8 table {
|
218 |
-
width: 100%;
|
219 |
-
display: table; }
|
220 |
-
.mdstyle8 table.bordered > thead > tr,
|
221 |
-
.mdstyle8 table.bordered > tbody > tr {
|
222 |
-
border-bottom: 1px solid #d0d0d0; }
|
223 |
-
.mdstyle8 table.striped > tbody > tr:nth-child(odd) {
|
224 |
-
background-color: #f2f2f2; }
|
225 |
-
.mdstyle8 table.striped > tbody > tr > td {
|
226 |
-
border-radius: 0; }
|
227 |
-
.mdstyle8 table.highlight > tbody > tr {
|
228 |
-
transition: background-color .25s ease; }
|
229 |
-
.mdstyle8 table.highlight > tbody > tr:hover {
|
230 |
-
background-color: #f2f2f2; }
|
231 |
-
.mdstyle8 table.centered thead tr th, .mdstyle8 table.centered tbody tr td {
|
232 |
-
text-align: center; }
|
233 |
-
.mdstyle8 thead {
|
234 |
-
border-bottom: 1px solid #d0d0d0; }
|
235 |
-
.mdstyle8 td, .mdstyle8 th {
|
236 |
-
padding: 15px 5px;
|
237 |
-
display: table-cell;
|
238 |
-
text-align: left;
|
239 |
-
vertical-align: middle;
|
240 |
-
border-radius: 2px; }
|
241 |
-
@media only screen and (max-width: 992px) {
|
242 |
-
.mdstyle8 table.responsive-table {
|
243 |
-
width: 100%;
|
244 |
-
border-collapse: collapse;
|
245 |
-
border-spacing: 0;
|
246 |
-
display: block;
|
247 |
-
position: relative;
|
248 |
-
/* sort out borders */ }
|
249 |
-
.mdstyle8 table.responsive-table td:empty:before {
|
250 |
-
content: '\A0'; }
|
251 |
-
.mdstyle8 table.responsive-table th,
|
252 |
-
.mdstyle8 table.responsive-table td {
|
253 |
-
margin: 0;
|
254 |
-
vertical-align: top; }
|
255 |
-
.mdstyle8 table.responsive-table th {
|
256 |
-
text-align: left; }
|
257 |
-
.mdstyle8 table.responsive-table thead {
|
258 |
-
display: block;
|
259 |
-
float: left; }
|
260 |
-
.mdstyle8 table.responsive-table thead tr {
|
261 |
-
display: block;
|
262 |
-
padding: 0 10px 0 0; }
|
263 |
-
.mdstyle8 table.responsive-table thead tr th::before {
|
264 |
-
content: "\A0"; }
|
265 |
-
.mdstyle8 table.responsive-table tbody {
|
266 |
-
display: block;
|
267 |
-
width: auto;
|
268 |
-
position: relative;
|
269 |
-
overflow-x: auto;
|
270 |
-
white-space: nowrap; }
|
271 |
-
.mdstyle8 table.responsive-table tbody tr {
|
272 |
-
display: inline-block;
|
273 |
-
vertical-align: top; }
|
274 |
-
.mdstyle8 table.responsive-table th {
|
275 |
-
display: block;
|
276 |
-
text-align: right; }
|
277 |
-
.mdstyle8 table.responsive-table td {
|
278 |
-
display: block;
|
279 |
-
min-height: 1.25em;
|
280 |
-
text-align: left; }
|
281 |
-
.mdstyle8 table.responsive-table tr {
|
282 |
-
padding: 0 10px; }
|
283 |
-
.mdstyle8 table.responsive-table thead {
|
284 |
-
border: 0;
|
285 |
-
border-right: 1px solid #d0d0d0; }
|
286 |
-
.mdstyle8 table.responsive-table.bordered th {
|
287 |
-
border-bottom: 0;
|
288 |
-
border-left: 0; }
|
289 |
-
.mdstyle8 table.responsive-table.bordered td {
|
290 |
-
border-left: 0;
|
291 |
-
border-right: 0;
|
292 |
-
border-bottom: 0; }
|
293 |
-
.mdstyle8 table.responsive-table.bordered tr {
|
294 |
-
border: 0; }
|
295 |
-
.mdstyle8 table.responsive-table.bordered tbody tr {
|
296 |
-
border-right: 1px solid #d0d0d0; } }
|
297 |
-
|
298 |
-
.mdstyle8 .secondary-content {
|
299 |
-
float: right;
|
300 |
-
color: #26a69a; }
|
301 |
-
.mdstyle8 .collapsible .collection {
|
302 |
-
margin: 0;
|
303 |
-
border: none; }
|
304 |
-
|
305 |
-
|
306 |
-
.mdstyle8 .hide {
|
307 |
-
display: none !important; }
|
308 |
-
.mdstyle8 .left-align {
|
309 |
-
text-align: left; }
|
310 |
-
.mdstyle8 .right-align {
|
311 |
-
text-align: right; }
|
312 |
-
.mdstyle8 .center, .mdstyle8 .center-align {
|
313 |
-
text-align: center; }
|
314 |
-
.mdstyle8 .left {
|
315 |
-
float: left !important; }
|
316 |
-
.mdstyle8 .right {
|
317 |
-
float: right !important; }
|
318 |
-
.mdstyle8 .no-select {
|
319 |
-
user-select: none; }
|
320 |
-
.mdstyle8 .circle {
|
321 |
-
border-radius: 50%; }
|
322 |
-
.mdstyle8 .center-block {
|
323 |
-
display: block;
|
324 |
-
margin-left: auto;
|
325 |
-
margin-right: auto; }
|
326 |
-
.mdstyle8 .truncate {
|
327 |
-
display: block;
|
328 |
-
white-space: nowrap;
|
329 |
-
overflow: hidden;
|
330 |
-
text-overflow: ellipsis; }
|
331 |
-
.mdstyle8 .no-padding {
|
332 |
-
padding: 0 !important; }
|
333 |
-
.mdstyle8 a {
|
334 |
-
text-decoration: none; }
|
335 |
-
.mdstyle8 html {
|
336 |
-
line-height: 1.5;
|
337 |
-
font-family: "Roboto", sans-serif;
|
338 |
-
font-weight: normal;
|
339 |
-
color: rgba(0, 0, 0, 0.87); }
|
340 |
-
@media only screen and (min-width: 0) {
|
341 |
-
.mdstyle8 html {
|
342 |
-
font-size: 14px; } }
|
343 |
-
@media only screen and (min-width: 992px) {
|
344 |
-
.mdstyle8 html {
|
345 |
-
font-size: 14.5px; } }
|
346 |
-
@media only screen and (min-width: 1200px) {
|
347 |
-
.mdstyle8 html {
|
348 |
-
font-size: 15px; } }
|
349 |
-
|
350 |
-
.mdstyle8 em {
|
351 |
-
font-style: italic; }
|
352 |
-
.mdstyle8 strong {
|
353 |
-
font-weight: 500; }
|
354 |
-
.mdstyle8 small {
|
355 |
-
font-size: 75%; }
|
356 |
-
.mdstyle8 .light, .mdstyle8 .page-footer .footer-copyright {
|
357 |
-
font-weight: 300; }
|
358 |
-
.mdstyle8 .thin {
|
359 |
-
font-weight: 200; }
|
360 |
-
|
361 |
-
.mdstyle8 .scale-transition {
|
362 |
-
transition: transform 0.3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important; }
|
363 |
-
.mdstyle8 .scale-transition.scale-out {
|
364 |
-
transform: scale(0);
|
365 |
-
transition: transform .2s !important; }
|
366 |
-
.mdstyle8 .scale-transition.scale-in {
|
367 |
-
transform: scale(1); }
|
368 |
-
.mdstyle8 .btn, .mdstyle8 .btn-large,
|
369 |
-
.mdstyle8 .btn-flat {
|
370 |
-
border: none;
|
371 |
-
border-radius: 2px;
|
372 |
-
display: inline-block;
|
373 |
-
height: 36px;
|
374 |
-
line-height: 36px;
|
375 |
-
padding: 0 2rem;
|
376 |
-
text-transform: uppercase;
|
377 |
-
vertical-align: middle;
|
378 |
-
-webkit-tap-highlight-color: transparent; }
|
379 |
-
.mdstyle8 .btn.disabled, .mdstyle8 .disabled.btn-large,
|
380 |
-
.mdstyle8 .btn-floating.disabled,
|
381 |
-
.mdstyle8 .btn-large.disabled,
|
382 |
-
.mdstyle8 .btn-flat.disabled,
|
383 |
-
.mdstyle8 .btn:disabled, .mdstyle8 .btn-large:disabled,
|
384 |
-
.mdstyle8 .btn-floating:disabled,
|
385 |
-
.mdstyle8 .btn-large:disabled,
|
386 |
-
.mdstyle8 .btn-flat:disabled,
|
387 |
-
.mdstyle8 .btn[disabled], .mdstyle8 [disabled].btn-large,
|
388 |
-
.mdstyle8 .btn-floating[disabled],
|
389 |
-
.mdstyle8 .btn-large[disabled],
|
390 |
-
.mdstyle8 .btn-flat[disabled] {
|
391 |
-
pointer-events: none;
|
392 |
-
background-color: #DFDFDF !important;
|
393 |
-
box-shadow: none;
|
394 |
-
color: #9F9F9F !important;
|
395 |
-
cursor: default; }
|
396 |
-
.mdstyle8 .btn.disabled:hover, .mdstyle8 .disabled.btn-large:hover,
|
397 |
-
.mdstyle8 .btn-floating.disabled:hover,
|
398 |
-
.mdstyle8 .btn-large.disabled:hover,
|
399 |
-
.mdstyle8 .btn-flat.disabled:hover,
|
400 |
-
.mdstyle8 .btn:disabled:hover, .mdstyle8 .btn-large:disabled:hover,
|
401 |
-
.mdstyle8 .btn-floating:disabled:hover,
|
402 |
-
.mdstyle8 .btn-large:disabled:hover,
|
403 |
-
.mdstyle8 .btn-flat:disabled:hover,
|
404 |
-
.mdstyle8 .btn[disabled]:hover, .mdstyle8 [disabled].btn-large:hover,
|
405 |
-
.mdstyle8 .btn-floating[disabled]:hover,
|
406 |
-
.mdstyle8 .btn-large[disabled]:hover,
|
407 |
-
.mdstyle8 .btn-flat[disabled]:hover {
|
408 |
-
background-color: #DFDFDF !important;
|
409 |
-
color: #9F9F9F !important; }
|
410 |
-
.mdstyle8 .btn, .mdstyle8 .btn-large,
|
411 |
-
.mdstyle8 .btn-floating,
|
412 |
-
.mdstyle8 .btn-large,
|
413 |
-
.mdstyle8 .btn-flat {
|
414 |
-
font-size: 1rem;
|
415 |
-
outline: 0; }
|
416 |
-
.mdstyle8 .btn i, .mdstyle8 .btn-large i,
|
417 |
-
.mdstyle8 .btn-floating i,
|
418 |
-
.mdstyle8 .btn-large i,
|
419 |
-
.mdstyle8 .btn-flat i {
|
420 |
-
font-size: 1.3rem;
|
421 |
-
line-height: inherit; }
|
422 |
-
.mdstyle8 .btn:focus, .mdstyle8 .btn-large:focus,
|
423 |
-
.mdstyle8 .btn-floating:focus {
|
424 |
-
background-color: #1d7d74; }
|
425 |
-
.mdstyle8 .btn, .mdstyle8 .btn-large {
|
426 |
-
text-decoration: none;
|
427 |
-
color: #fff;
|
428 |
-
background-color: #26a69a;
|
429 |
-
text-align: center;
|
430 |
-
letter-spacing: .5px;
|
431 |
-
transition: .2s ease-out;
|
432 |
-
cursor: pointer; }
|
433 |
-
.mdstyle8 .btn:hover, .mdstyle8 .btn-large:hover {
|
434 |
-
background-color: #2bbbad; }
|
435 |
-
.mdstyle8 .btn-floating {
|
436 |
-
display: inline-block;
|
437 |
-
color: #fff;
|
438 |
-
position: relative;
|
439 |
-
overflow: hidden;
|
440 |
-
z-index: 1;
|
441 |
-
width: 40px;
|
442 |
-
height: 40px;
|
443 |
-
line-height: 40px;
|
444 |
-
padding: 0;
|
445 |
-
background-color: #26a69a;
|
446 |
-
border-radius: 50%;
|
447 |
-
transition: .3s;
|
448 |
-
cursor: pointer;
|
449 |
-
vertical-align: middle; }
|
450 |
-
.mdstyle8 .btn-floating:hover {
|
451 |
-
background-color: #26a69a; }
|
452 |
-
.mdstyle8 .btn-floating:before {
|
453 |
-
border-radius: 0; }
|
454 |
-
.mdstyle8 .btn-floating.btn-large {
|
455 |
-
width: 56px;
|
456 |
-
height: 56px; }
|
457 |
-
.mdstyle8 .btn-floating.btn-large.halfway-fab {
|
458 |
-
bottom: -28px; }
|
459 |
-
.mdstyle8 .btn-floating.btn-large i {
|
460 |
-
line-height: 56px; }
|
461 |
-
.mdstyle8 .btn-floating.halfway-fab {
|
462 |
-
position: absolute;
|
463 |
-
right: 24px;
|
464 |
-
bottom: -20px; }
|
465 |
-
.mdstyle8 .btn-floating.halfway-fab.left {
|
466 |
-
right: auto;
|
467 |
-
left: 24px; }
|
468 |
-
.mdstyle8 .btn-floating i {
|
469 |
-
width: inherit;
|
470 |
-
display: inline-block;
|
471 |
-
text-align: center;
|
472 |
-
color: #fff;
|
473 |
-
font-size: 1.6rem;
|
474 |
-
line-height: 40px; }
|
475 |
-
.mdstyle8 button.btn-floating {
|
476 |
-
border: none; }
|
477 |
-
.mdstyle8 .fixed-action-btn {
|
478 |
-
position: fixed;
|
479 |
-
right: 23px;
|
480 |
-
bottom: 23px;
|
481 |
-
padding-top: 15px;
|
482 |
-
margin-bottom: 0;
|
483 |
-
z-index: 997; }
|
484 |
-
.mdstyle8 .fixed-action-btn.active ul {
|
485 |
-
visibility: visible; }
|
486 |
-
.mdstyle8 .fixed-action-btn.horizontal {
|
487 |
-
padding: 0 0 0 15px; }
|
488 |
-
.mdstyle8 .fixed-action-btn.horizontal ul {
|
489 |
-
text-align: right;
|
490 |
-
right: 64px;
|
491 |
-
top: 50%;
|
492 |
-
transform: translateY(-50%);
|
493 |
-
height: 100%;
|
494 |
-
left: auto;
|
495 |
-
width: 500px;
|
496 |
-
/*width 100% only goes to width of button container */ }
|
497 |
-
.mdstyle8 .fixed-action-btn.horizontal ul li {
|
498 |
-
display: inline-block;
|
499 |
-
margin: 15px 15px 0 0; }
|
500 |
-
.mdstyle8 .fixed-action-btn.toolbar {
|
501 |
-
padding: 0;
|
502 |
-
height: 56px; }
|
503 |
-
.mdstyle8 .fixed-action-btn.toolbar.active > a i {
|
504 |
-
opacity: 0; }
|
505 |
-
.mdstyle8 .fixed-action-btn.toolbar ul {
|
506 |
-
display: flex;
|
507 |
-
top: 0;
|
508 |
-
bottom: 0;
|
509 |
-
z-index: 1; }
|
510 |
-
.mdstyle8 .fixed-action-btn.toolbar ul li {
|
511 |
-
flex: 1;
|
512 |
-
display: inline-block;
|
513 |
-
margin: 0;
|
514 |
-
height: 100%;
|
515 |
-
transition: none; }
|
516 |
-
.mdstyle8 .fixed-action-btn.toolbar ul li a {
|
517 |
-
display: block;
|
518 |
-
overflow: hidden;
|
519 |
-
position: relative;
|
520 |
-
width: 100%;
|
521 |
-
height: 100%;
|
522 |
-
background-color: transparent;
|
523 |
-
box-shadow: none;
|
524 |
-
color: #fff;
|
525 |
-
line-height: 56px;
|
526 |
-
z-index: 1; }
|
527 |
-
.mdstyle8 .fixed-action-btn.toolbar ul li a i {
|
528 |
-
line-height: inherit; }
|
529 |
-
.mdstyle8 .fixed-action-btn ul {
|
530 |
-
left: 0;
|
531 |
-
right: 0;
|
532 |
-
text-align: center;
|
533 |
-
position: absolute;
|
534 |
-
bottom: 64px;
|
535 |
-
margin: 0;
|
536 |
-
visibility: hidden; }
|
537 |
-
.mdstyle8 .fixed-action-btn ul li {
|
538 |
-
margin-bottom: 15px; }
|
539 |
-
.mdstyle8 .fixed-action-btn ul a.btn-floating {
|
540 |
-
opacity: 0; }
|
541 |
-
.mdstyle8 .fixed-action-btn .fab-backdrop {
|
542 |
-
position: absolute;
|
543 |
-
top: 0;
|
544 |
-
left: 0;
|
545 |
-
z-index: -1;
|
546 |
-
width: 40px;
|
547 |
-
height: 40px;
|
548 |
-
background-color: #26a69a;
|
549 |
-
border-radius: 50%;
|
550 |
-
transform: scale(0); }
|
551 |
-
.mdstyle8 .btn-flat {
|
552 |
-
box-shadow: none;
|
553 |
-
background-color: transparent;
|
554 |
-
color: #343434;
|
555 |
-
cursor: pointer;
|
556 |
-
transition: background-color .2s; }
|
557 |
-
.mdstyle8 .btn-flat:focus, .mdstyle8 .btn-flat:hover {
|
558 |
-
box-shadow: none; }
|
559 |
-
.mdstyle8 .btn-flat:focus {
|
560 |
-
background-color: rgba(0, 0, 0, 0.1); }
|
561 |
-
.mdstyle8 .btn-flat.disabled {
|
562 |
-
background-color: transparent !important;
|
563 |
-
color: #b3b3b3 !important;
|
564 |
-
cursor: default; }
|
565 |
-
.mdstyle8 .btn-large {
|
566 |
-
height: 54px;
|
567 |
-
line-height: 54px; }
|
568 |
-
.mdstyle8 .btn-large i {
|
569 |
-
font-size: 1.6rem; }
|
570 |
-
.mdstyle8 .btn-block {
|
571 |
-
display: block; }
|
572 |
-
.mdstyle8 .chip {
|
573 |
-
display: inline-block;
|
574 |
-
height: 32px;
|
575 |
-
font-size: 13px;
|
576 |
-
font-weight: 500;
|
577 |
-
color: rgba(0, 0, 0, 0.6);
|
578 |
-
line-height: 32px;
|
579 |
-
padding: 0 12px;
|
580 |
-
border-radius: 16px;
|
581 |
-
background-color: #e4e4e4;
|
582 |
-
margin-bottom: 5px;
|
583 |
-
margin-right: 5px; }
|
584 |
-
.mdstyle8 .chip > img {
|
585 |
-
float: left;
|
586 |
-
margin: 0 8px 0 -12px;
|
587 |
-
height: 32px;
|
588 |
-
width: 32px;
|
589 |
-
border-radius: 50%; }
|
590 |
-
.mdstyle8 .chip .close {
|
591 |
-
cursor: pointer;
|
592 |
-
float: right;
|
593 |
-
font-size: 16px;
|
594 |
-
line-height: 32px;
|
595 |
-
padding-left: 8px; }
|
596 |
-
.mdstyle8 .chips {
|
597 |
-
border: none;
|
598 |
-
border-bottom: 1px solid #9e9e9e;
|
599 |
-
box-shadow: none;
|
600 |
-
margin: 0 0 20px 0;
|
601 |
-
min-height: 45px;
|
602 |
-
outline: none;
|
603 |
-
transition: all .3s; }
|
604 |
-
.mdstyle8 .chips.focus {
|
605 |
-
border-bottom: 1px solid #26a69a;
|
606 |
-
box-shadow: 0 1px 0 0 #26a69a; }
|
607 |
-
.mdstyle8 .chips:hover {
|
608 |
-
cursor: text; }
|
609 |
-
.mdstyle8 .chips .chip.selected {
|
610 |
-
background-color: #26a69a;
|
611 |
-
color: #fff; }
|
612 |
-
.mdstyle8 .chips .input {
|
613 |
-
background: none;
|
614 |
-
border: 0;
|
615 |
-
color: rgba(0, 0, 0, 0.6);
|
616 |
-
display: inline-block;
|
617 |
-
font-size: 1rem;
|
618 |
-
height: 3rem;
|
619 |
-
line-height: 32px;
|
620 |
-
outline: 0;
|
621 |
-
margin: 0;
|
622 |
-
padding: 0 !important;
|
623 |
-
width: 120px !important; }
|
624 |
-
.mdstyle8 .chips .input:focus {
|
625 |
-
border: 0 !important;
|
626 |
-
box-shadow: none !important; }
|
627 |
-
.mdstyle8 .chips .autocomplete-content {
|
628 |
-
margin-top: 0;
|
629 |
-
margin-bottom: 0; }
|
630 |
-
.mdstyle8 .prefix ~ .chips {
|
631 |
-
margin-left: 3rem;
|
632 |
-
width: 92%;
|
633 |
-
width: calc(100% - 3rem); }
|
634 |
-
.mdstyle8 .chips:empty ~ label {
|
635 |
-
font-size: 0.8rem;
|
636 |
-
transform: translateY(-140%); }
|
637 |
-
.mdstyle8 select:focus {
|
638 |
-
outline: 1px solid #c9f3ef; }
|
639 |
-
.mdstyle8 button:focus {
|
640 |
-
outline: none;
|
641 |
-
background-color: #2ab7a9; }
|
642 |
-
.mdstyle8 label {
|
643 |
-
font-size: 0.8rem;
|
644 |
-
color: #9e9e9e; }
|
645 |
-
.mdstyle8 ::placeholder {
|
646 |
-
color: #d1d1d1; }
|
647 |
-
.mdstyle8 input:not([type]),
|
648 |
-
.mdstyle8 input[type=text]:not(.browser-default),
|
649 |
-
.mdstyle8 textarea.materialize-textarea {
|
650 |
-
background-color: transparent;
|
651 |
-
border: none;
|
652 |
-
border-bottom: 1px solid #9e9e9e;
|
653 |
-
border-radius: 0;
|
654 |
-
outline: none;
|
655 |
-
height: 3rem;
|
656 |
-
width: 100%;
|
657 |
-
font-size: 1rem;
|
658 |
-
margin: 0 0 20px 0;
|
659 |
-
padding: 0;
|
660 |
-
box-shadow: none;
|
661 |
-
box-sizing: content-box;
|
662 |
-
transition: all 0.3s; }
|
663 |
-
.mdstyle8 input:not([type]):disabled, .mdstyle8 input:not([type])[readonly="readonly"],
|
664 |
-
.mdstyle8 input[type=text]:not(.browser-default):disabled,
|
665 |
-
.mdstyle8 input[type=text]:not(.browser-default)[readonly="readonly"],
|
666 |
-
.mdstyle8 textarea.materialize-textarea:disabled,
|
667 |
-
.mdstyle8 textarea.materialize-textarea[readonly="readonly"] {
|
668 |
-
color: rgba(0, 0, 0, 0.42);
|
669 |
-
border-bottom: 1px dotted rgba(0, 0, 0, 0.42); }
|
670 |
-
.mdstyle8 input:not([type]):disabled + label,
|
671 |
-
.mdstyle8 input:not([type])[readonly="readonly"] + label,
|
672 |
-
.mdstyle8 input[type=text]:not(.browser-default):disabled + label,
|
673 |
-
.mdstyle8 input[type=text]:not(.browser-default)[readonly="readonly"] + label,
|
674 |
-
.mdstyle8 textarea.materialize-textarea:disabled + label,
|
675 |
-
.mdstyle8 textarea.materialize-textarea[readonly="readonly"] + label {
|
676 |
-
color: rgba(0, 0, 0, 0.42); }
|
677 |
-
.mdstyle8 input:not([type]):focus:not([readonly]),
|
678 |
-
.mdstyle8 input[type=text]:not(.browser-default):focus:not([readonly]),
|
679 |
-
.mdstyle8 textarea.materialize-textarea:focus:not([readonly]) {
|
680 |
-
border-bottom: 1px solid #26a69a;
|
681 |
-
box-shadow: 0 1px 0 0 #26a69a; }
|
682 |
-
.mdstyle8 input:not([type]):focus:not([readonly]) + label,
|
683 |
-
.mdstyle8 input[type=text]:not(.browser-default):focus:not([readonly]) + label,
|
684 |
-
.mdstyle8 textarea.materialize-textarea:focus:not([readonly]) + label {
|
685 |
-
color: #26a69a; }
|
686 |
-
.mdstyle8 input:not([type]).validate + label,
|
687 |
-
.mdstyle8 input[type=text]:not(.browser-default).validate + label,
|
688 |
-
.mdstyle8 textarea.materialize-textarea.validate + label {
|
689 |
-
width: 100%; }
|
690 |
-
.mdstyle8 input:not([type]).invalid + label:after,
|
691 |
-
.mdstyle8 input:not([type]).valid + label:after,
|
692 |
-
.mdstyle8 input[type=text]:not(.browser-default).invalid + label:after,
|
693 |
-
.mdstyle8 input[type=text]:not(.browser-default).valid + label:after,
|
694 |
-
.mdstyle8 textarea.materialize-textarea.invalid + label:after,
|
695 |
-
.mdstyle8 textarea.materialize-textarea.valid + label:after {
|
696 |
-
display: none; }
|
697 |
-
.mdstyle8 input:not([type]).invalid + label.active:after,
|
698 |
-
.mdstyle8 input:not([type]).valid + label.active:after,
|
699 |
-
.mdstyle8 input[type=text]:not(.browser-default).invalid + label.active:after,
|
700 |
-
.mdstyle8 input[type=text]:not(.browser-default).valid + label.active:after,
|
701 |
-
.mdstyle8 textarea.materialize-textarea.invalid + label.active:after,
|
702 |
-
.mdstyle8 textarea.materialize-textarea.valid + label.active:after {
|
703 |
-
display: block; }
|
704 |
-
.mdstyle8 input.valid:not([type]), .mdstyle8 input.valid:not([type]):focus, .mdstyle8 input[type=text].valid:not(.browser-default), .mdstyle8 input[type=text].valid:not(.browser-default):focus, .mdstyle8 input[type=password].valid:not(.browser-default), .mdstyle8 input[type=password].valid:not(.browser-default):focus, .mdstyle8 input[type=email].valid:not(.browser-default), .mdstyle8 input[type=email].valid:not(.browser-default):focus, .mdstyle8 input[type=url].valid:not(.browser-default), .mdstyle8 input[type=url].valid:not(.browser-default):focus, .mdstyle8 input[type=time].valid:not(.browser-default), .mdstyle8 input[type=time].valid:not(.browser-default):focus, .mdstyle8 input[type=date].valid:not(.browser-default), .mdstyle8 input[type=date].valid:not(.browser-default):focus, .mdstyle8 input[type=datetime].valid:not(.browser-default), .mdstyle8 input[type=datetime].valid:not(.browser-default):focus, .mdstyle8 input[type=datetime-local].valid:not(.browser-default), .mdstyle8 input[type=datetime-local].valid:not(.browser-default):focus, .mdstyle8 input[type=tel].valid:not(.browser-default), .mdstyle8 input[type=tel].valid:not(.browser-default):focus, .mdstyle8 input[type=number].valid:not(.browser-default), .mdstyle8 input[type=number].valid:not(.browser-default):focus, .mdstyle8 input[type=search].valid:not(.browser-default), .mdstyle8 input[type=search].valid:not(.browser-default):focus, .mdstyle8 textarea.materialize-textarea.valid, .mdstyle8 textarea.materialize-textarea.valid:focus, .mdstyle8 .select-wrapper.valid > input.select-dropdown {
|
705 |
-
border-bottom: 1px solid #4CAF50;
|
706 |
-
box-shadow: 0 1px 0 0 #4CAF50; }
|
707 |
-
.mdstyle8 input.invalid:not([type]), .mdstyle8 input.invalid:not([type]):focus, .mdstyle8 input[type=text].invalid:not(.browser-default), .mdstyle8 input[type=text].invalid:not(.browser-default):focus, .mdstyle8 input[type=password].invalid:not(.browser-default), .mdstyle8 input[type=password].invalid:not(.browser-default):focus, .mdstyle8 input[type=email].invalid:not(.browser-default), .mdstyle8 input[type=email].invalid:not(.browser-default):focus, .mdstyle8 input[type=url].invalid:not(.browser-default), .mdstyle8 input[type=url].invalid:not(.browser-default):focus, .mdstyle8 input[type=time].invalid:not(.browser-default), .mdstyle8 input[type=time].invalid:not(.browser-default):focus, .mdstyle8 input[type=date].invalid:not(.browser-default), .mdstyle8 input[type=date].invalid:not(.browser-default):focus, .mdstyle8 input[type=datetime].invalid:not(.browser-default), .mdstyle8 input[type=datetime].invalid:not(.browser-default):focus, .mdstyle8 input[type=datetime-local].invalid:not(.browser-default), .mdstyle8 input[type=datetime-local].invalid:not(.browser-default):focus, .mdstyle8 input[type=tel].invalid:not(.browser-default), .mdstyle8 input[type=tel].invalid:not(.browser-default):focus, .mdstyle8 input[type=number].invalid:not(.browser-default), .mdstyle8 input[type=number].invalid:not(.browser-default):focus, .mdstyle8 input[type=search].invalid:not(.browser-default), .mdstyle8 input[type=search].invalid:not(.browser-default):focus, .mdstyle8 textarea.materialize-textarea.invalid, .mdstyle8 textarea.materialize-textarea.invalid:focus, .mdstyle8 .select-wrapper.invalid > input.select-dropdown {
|
708 |
-
border-bottom: 1px solid #F44336;
|
709 |
-
box-shadow: 0 1px 0 0 #F44336; }
|
710 |
-
.mdstyle8 input:not([type]).valid + label:after, .mdstyle8 input:not([type]):focus.valid + label:after, .mdstyle8 input[type=text]:not(.browser-default).valid + label:after, .mdstyle8 input[type=text]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=password]:not(.browser-default).valid + label:after, .mdstyle8 input[type=password]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=email]:not(.browser-default).valid + label:after, .mdstyle8 input[type=email]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=url]:not(.browser-default).valid + label:after, .mdstyle8 input[type=url]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=time]:not(.browser-default).valid + label:after, .mdstyle8 input[type=time]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=date]:not(.browser-default).valid + label:after, .mdstyle8 input[type=date]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=datetime]:not(.browser-default).valid + label:after, .mdstyle8 input[type=datetime]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=datetime-local]:not(.browser-default).valid + label:after, .mdstyle8 input[type=datetime-local]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=tel]:not(.browser-default).valid + label:after, .mdstyle8 input[type=tel]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=number]:not(.browser-default).valid + label:after, .mdstyle8 input[type=number]:not(.browser-default):focus.valid + label:after, .mdstyle8 input[type=search]:not(.browser-default).valid + label:after, .mdstyle8 input[type=search]:not(.browser-default):focus.valid + label:after, .mdstyle8 textarea.materialize-textarea.valid + label:after, .mdstyle8 textarea.materialize-textarea:focus.valid + label:after, .mdstyle8 .select-wrapper.valid + label:after {
|
711 |
-
content: attr(data-success);
|
712 |
-
color: #4CAF50;
|
713 |
-
opacity: 1;
|
714 |
-
transform: translateY(9px); }
|
715 |
-
.mdstyle8 input:not([type]).invalid + label:after, .mdstyle8 input:not([type]):focus.invalid + label:after, .mdstyle8 input[type=text]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=text]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=password]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=password]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=email]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=email]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=url]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=url]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=time]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=time]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=date]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=date]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=datetime]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=datetime]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=datetime-local]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=datetime-local]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=tel]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=tel]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=number]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=number]:not(.browser-default):focus.invalid + label:after, .mdstyle8 input[type=search]:not(.browser-default).invalid + label:after, .mdstyle8 input[type=search]:not(.browser-default):focus.invalid + label:after, .mdstyle8 textarea.materialize-textarea.invalid + label:after, .mdstyle8 textarea.materialize-textarea:focus.invalid + label:after, .mdstyle8 .select-wrapper.invalid + label:after {
|
716 |
-
content: attr(data-error);
|
717 |
-
color: #F44336;
|
718 |
-
opacity: 1;
|
719 |
-
transform: translateY(9px); }
|
720 |
-
.mdstyle8 input:not([type]) + label:after, .mdstyle8 input[type=text]:not(.browser-default) + label:after, .mdstyle8 input[type=password]:not(.browser-default) + label:after, .mdstyle8 input[type=email]:not(.browser-default) + label:after, .mdstyle8 input[type=url]:not(.browser-default) + label:after, .mdstyle8 input[type=time]:not(.browser-default) + label:after, .mdstyle8 input[type=date]:not(.browser-default) + label:after, .mdstyle8 input[type=datetime]:not(.browser-default) + label:after, .mdstyle8 input[type=datetime-local]:not(.browser-default) + label:after, .mdstyle8 input[type=tel]:not(.browser-default) + label:after, .mdstyle8 input[type=number]:not(.browser-default) + label:after, .mdstyle8 input[type=search]:not(.browser-default) + label:after, .mdstyle8 textarea.materialize-textarea + label:after, .mdstyle8 .select-wrapper + label:after {
|
721 |
-
display: block;
|
722 |
-
content: "";
|
723 |
-
position: absolute;
|
724 |
-
top: 100%;
|
725 |
-
left: 0;
|
726 |
-
opacity: 0;
|
727 |
-
transition: .2s opacity ease-out, .2s color ease-out; }
|
728 |
-
.mdstyle8 .input-field {
|
729 |
-
position: relative;
|
730 |
-
margin-top: 1rem; }
|
731 |
-
.mdstyle8 .input-field.inline {
|
732 |
-
display: inline-block;
|
733 |
-
vertical-align: middle;
|
734 |
-
margin-left: 5px; }
|
735 |
-
.mdstyle8 .input-field.inline input,
|
736 |
-
.mdstyle8 .input-field.inline .select-dropdown {
|
737 |
-
margin-bottom: 1rem; }
|
738 |
-
.mdstyle8 .input-field.col label {
|
739 |
-
left: 0.75rem; }
|
740 |
-
.mdstyle8 .input-field.col .prefix ~ label,
|
741 |
-
.mdstyle8 .input-field.col .prefix ~ .validate ~ label {
|
742 |
-
width: calc(100% - 3rem - 1.5rem); }
|
743 |
-
.mdstyle8 .input-field label {
|
744 |
-
color: #9e9e9e;
|
745 |
-
position: absolute;
|
746 |
-
top: 0;
|
747 |
-
left: 0;
|
748 |
-
height: 100%;
|
749 |
-
font-size: 1rem;
|
750 |
-
cursor: text;
|
751 |
-
transition: transform .2s ease-out;
|
752 |
-
transform-origin: 0% 100%;
|
753 |
-
text-align: initial;
|
754 |
-
transform: translateY(12px);
|
755 |
-
pointer-events: none; }
|
756 |
-
.mdstyle8 .input-field label:not(.label-icon).active {
|
757 |
-
transform: translateY(-14px) scale(0.8);
|
758 |
-
transform-origin: 0 0; }
|
759 |
-
.mdstyle8 .input-field .prefix {
|
760 |
-
position: absolute;
|
761 |
-
width: 3rem;
|
762 |
-
font-size: 2rem;
|
763 |
-
transition: color .2s; }
|
764 |
-
.mdstyle8 .input-field .prefix.active {
|
765 |
-
color: #26a69a; }
|
766 |
-
.mdstyle8 .input-field .prefix ~ input,
|
767 |
-
.mdstyle8 .input-field .prefix ~ textarea,
|
768 |
-
.mdstyle8 .input-field .prefix ~ label,
|
769 |
-
.mdstyle8 .input-field .prefix ~ .validate ~ label,
|
770 |
-
.mdstyle8 .input-field .prefix ~ .autocomplete-content {
|
771 |
-
margin-left: 3rem;
|
772 |
-
width: 92%;
|
773 |
-
width: calc(100% - 3rem); }
|
774 |
-
.mdstyle8 .input-field .prefix ~ label {
|
775 |
-
margin-left: 3rem; }
|
776 |
-
@media only screen and (max-width: 992px) {
|
777 |
-
.mdstyle8 .input-field .prefix ~ input {
|
778 |
-
width: 86%;
|
779 |
-
width: calc(100% - 3rem); } }
|
780 |
-
@media only screen and (max-width: 600px) {
|
781 |
-
.mdstyle8 .input-field .prefix ~ input {
|
782 |
-
width: 80%;
|
783 |
-
width: calc(100% - 3rem); } }
|
784 |
-
|
785 |
-
|
786 |
-
.mdstyle8 textarea {
|
787 |
-
width: 100%;
|
788 |
-
height: 3rem;
|
789 |
-
background-color: transparent; }
|
790 |
-
.mdstyle8 textarea.materialize-textarea {
|
791 |
-
overflow-y: hidden;
|
792 |
-
/* prevents scroll bar flash */
|
793 |
-
padding: .8rem 0 1.6rem 0;
|
794 |
-
/* prevents text jump on Enter keypress */
|
795 |
-
resize: none;
|
796 |
-
min-height: 3rem; }
|
797 |
-
.mdstyle8 textarea.materialize-textarea.validate + label {
|
798 |
-
height: 100%; }
|
799 |
-
.mdstyle8 textarea.materialize-textarea.validate + label::after {
|
800 |
-
top: calc(100% - 12px); }
|
801 |
-
.mdstyle8 textarea.materialize-textarea.validate + label:not(.label-icon).active {
|
802 |
-
transform: translateY(-25px); }
|
803 |
-
.mdstyle8 .hiddendiv {
|
804 |
-
display: none;
|
805 |
-
white-space: pre-wrap;
|
806 |
-
word-wrap: break-word;
|
807 |
-
overflow-wrap: break-word;
|
808 |
-
/* future version of deprecated 'word-wrap' */
|
809 |
-
padding-top: 1.2rem;
|
810 |
-
/* prevents text jump on Enter keypress */
|
811 |
-
position: absolute;
|
812 |
-
top: 0; }
|
813 |
-
.mdstyle8 .autocomplete-content {
|
814 |
-
margin-top: -20px;
|
815 |
-
margin-bottom: 20px;
|
816 |
-
display: block;
|
817 |
-
opacity: 1;
|
818 |
-
position: static; }
|
819 |
-
.mdstyle8 .autocomplete-content li .highlight {
|
820 |
-
color: #444; }
|
821 |
-
.mdstyle8 .autocomplete-content li img {
|
822 |
-
height: 40px;
|
823 |
-
width: 40px;
|
824 |
-
margin: 5px 15px; }
|
825 |
-
.mdstyle8 form p {
|
826 |
-
margin-bottom: 10px;
|
827 |
-
text-align: left; }
|
828 |
-
.mdstyle8 form p:last-child {
|
829 |
-
margin-bottom: 0; }
|
830 |
-
|
831 |
-
.mdstyle8 select {
|
832 |
-
display: none; }
|
833 |
-
.mdstyle8 select.browser-default {
|
834 |
-
display: block; }
|
835 |
-
.mdstyle8 select {
|
836 |
-
background-color: rgba(255, 255, 255, 0.9);
|
837 |
-
width: 100%;
|
838 |
-
padding: 5px;
|
839 |
-
border: 1px solid #f2f2f2;
|
840 |
-
border-radius: 2px;
|
841 |
-
height: 3rem; }
|
842 |
-
.mdstyle8 .input-field > select {
|
843 |
-
display: block;
|
844 |
-
position: absolute;
|
845 |
-
width: 0;
|
846 |
-
pointer-events: none;
|
847 |
-
height: 0;
|
848 |
-
top: 0;
|
849 |
-
left: 0;
|
850 |
-
opacity: 0; }
|
851 |
-
|
852 |
-
.mdstyle8 select:disabled {
|
853 |
-
color: rgba(0, 0, 0, 0.42); }
|
854 |
-
.mdstyle8 .select-wrapper.disabled span.caret,
|
855 |
-
.mdstyle8 .select-wrapper.disabled + label {
|
856 |
-
color: rgba(0, 0, 0, 0.42); }
|
857 |
-
.mdstyle8 .select-wrapper input.select-dropdown:disabled {
|
858 |
-
color: rgba(0, 0, 0, 0.42);
|
859 |
-
cursor: default;
|
860 |
-
user-select: none; }
|
861 |
-
|
862 |
-
.mdstyle8 .prefix ~ .select-wrapper {
|
863 |
-
margin-left: 3rem;
|
864 |
-
width: 92%;
|
865 |
-
width: calc(100% - 3rem); }
|
866 |
-
.mdstyle8 .prefix ~ label {
|
867 |
-
margin-left: 3rem; }
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
/* custom code */
|
875 |
-
|
876 |
-
|
877 |
-
/* for new interface */
|
878 |
-
/* for style-8 */
|
879 |
-
/* todo - if plan to swift to new interface content itself.. */
|
880 |
-
.ht-ctc-style-8 {
|
881 |
-
display: block;
|
882 |
-
}
|
883 |
-
.ht-ctc-sc-style-8 {
|
884 |
-
display: inline;
|
885 |
}
|
1 |
+
/* Material Design styles - load on 8 */
|
2 |
+
|
3 |
+
.mdstyle8 a {
|
4 |
+
background-color: transparent; }
|
5 |
+
.mdstyle8 a:active,
|
6 |
+
.mdstyle8 a:hover {
|
7 |
+
outline: 0; }
|
8 |
+
.mdstyle8 b,
|
9 |
+
.mdstyle8 strong {
|
10 |
+
font-weight: bold; }
|
11 |
+
.mdstyle8 small {
|
12 |
+
font-size: 80%; }
|
13 |
+
.mdstyle8 img {
|
14 |
+
border: 0; }
|
15 |
+
.mdstyle8 svg:not(:root) {
|
16 |
+
overflow: hidden; }
|
17 |
+
.mdstyle8 input,
|
18 |
+
.mdstyle8 button {
|
19 |
+
overflow: visible; }
|
20 |
+
.mdstyle8 button,
|
21 |
+
.mdstyle8 html input[type="button"],
|
22 |
+
.mdstyle8 button[disabled],
|
23 |
+
.mdstyle8 html input[disabled] {
|
24 |
+
cursor: default; }
|
25 |
+
.mdstyle8 button::-moz-focus-inner,
|
26 |
+
.mdstyle8 input::-moz-focus-inner {
|
27 |
+
border: 0;
|
28 |
+
padding: 0; }
|
29 |
+
.mdstyle8 *, .mdstyle8 *:before, .mdstyle8 *:after {
|
30 |
+
box-sizing: inherit; }
|
31 |
+
.mdstyle8 a {
|
32 |
+
color: #039be5;
|
33 |
+
text-decoration: none;
|
34 |
+
-webkit-tap-highlight-color: transparent; }
|
35 |
+
.mdstyle8 .clearfix {
|
36 |
+
clear: both; }
|
37 |
+
.mdstyle8 .z-depth-0 {
|
38 |
+
box-shadow: none !important; }
|
39 |
+
.mdstyle8 .z-depth-1, .mdstyle8 .btn, .mdstyle8 .btn-large, .mdstyle8 .btn-floating {
|
40 |
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }
|
41 |
+
.mdstyle8 .z-depth-1-half, .mdstyle8 .btn:hover, .mdstyle8 .btn-large:hover, .mdstyle8 .btn-floating:hover {
|
42 |
+
box-shadow: 0 3px 3px 0 rgba(7, 6, 6, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2); }
|
43 |
+
.mdstyle8 .z-depth-2 {
|
44 |
+
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3); }
|
45 |
+
.mdstyle8 .z-depth-3 {
|
46 |
+
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.3); }
|
47 |
+
.mdstyle8 .z-depth-4 {
|
48 |
+
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.3); }
|
49 |
+
.mdstyle8 .z-depth-5 {
|
50 |
+
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3); }
|
51 |
+
.mdstyle8 .hoverable {
|
52 |
+
transition: box-shadow .25s; }
|
53 |
+
.mdstyle8 .hoverable:hover {
|
54 |
+
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }
|
55 |
+
.mdstyle8 i {
|
56 |
+
line-height: inherit; }
|
57 |
+
.mdstyle8 i.left {
|
58 |
+
float: left;
|
59 |
+
margin-right: 15px; }
|
60 |
+
.mdstyle8 i.right {
|
61 |
+
float: right;
|
62 |
+
margin-left: 15px; }
|
63 |
+
.mdstyle8 i.tiny {
|
64 |
+
font-size: 1rem; }
|
65 |
+
.mdstyle8 i.small {
|
66 |
+
font-size: 2rem; }
|
67 |
+
.mdstyle8 i.medium {
|
68 |
+
font-size: 4rem; }
|
69 |
+
.mdstyle8 i.large {
|
70 |
+
font-size: 6rem; }
|
71 |
+
.mdstyle8 .hide {
|
72 |
+
display: none !important; }
|
73 |
+
.mdstyle8 .left-align {
|
74 |
+
text-align: left; }
|
75 |
+
.mdstyle8 .right-align {
|
76 |
+
text-align: right; }
|
77 |
+
.mdstyle8 .center, .mdstyle8 .center-align {
|
78 |
+
text-align: center; }
|
79 |
+
.mdstyle8 .left {
|
80 |
+
float: left !important; }
|
81 |
+
.mdstyle8 .right {
|
82 |
+
float: right !important; }
|
83 |
+
.mdstyle8 .no-select {
|
84 |
+
user-select: none; }
|
85 |
+
.mdstyle8 .no-padding {
|
86 |
+
padding: 0 !important; }
|
87 |
+
.mdstyle8 a {
|
88 |
+
text-decoration: none; }
|
89 |
+
.mdstyle8 strong {
|
90 |
+
font-weight: 500; }
|
91 |
+
.mdstyle8 small {
|
92 |
+
font-size: 75%; }
|
93 |
+
.mdstyle8 .light, .mdstyle8 .page-footer .footer-copyright {
|
94 |
+
font-weight: 300; }
|
95 |
+
.mdstyle8 .thin {
|
96 |
+
font-weight: 200; }
|
97 |
+
.mdstyle8 .btn, .mdstyle8 .btn-large,
|
98 |
+
.mdstyle8 .btn-flat {
|
99 |
+
border: none;
|
100 |
+
border-radius: 2px;
|
101 |
+
display: inline-block;
|
102 |
+
height: 36px;
|
103 |
+
line-height: 36px;
|
104 |
+
padding: 0 2rem;
|
105 |
+
/* text-transform: uppercase; */
|
106 |
+
vertical-align: middle;
|
107 |
+
-webkit-tap-highlight-color: transparent; }
|
108 |
+
.mdstyle8 .btn, .mdstyle8 .btn-large,
|
109 |
+
.mdstyle8 .btn-floating,
|
110 |
+
.mdstyle8 .btn-large,
|
111 |
+
.mdstyle8 .btn-flat {
|
112 |
+
font-size: 1rem;
|
113 |
+
outline: 0; }
|
114 |
+
.mdstyle8 .btn i, .mdstyle8 .btn-large i,
|
115 |
+
.mdstyle8 .btn-large i {
|
116 |
+
font-size: 1.3rem;
|
117 |
+
line-height: inherit; }
|
118 |
+
.mdstyle8 .btn:focus, .mdstyle8 .btn-large:focus,
|
119 |
+
.mdstyle8 .btn, .mdstyle8 .btn-large {
|
120 |
+
text-decoration: none;
|
121 |
+
color: #fff;
|
122 |
+
background-color: #26a69a;
|
123 |
+
text-align: center;
|
124 |
+
letter-spacing: .5px;
|
125 |
+
transition: .2s ease-out;
|
126 |
+
cursor: pointer; }
|
127 |
+
.mdstyle8 .btn:hover, .mdstyle8 .btn-large:hover {
|
128 |
+
background-color: #2bbbad; }
|
129 |
+
.mdstyle8 .fixed-action-btn {
|
130 |
+
position: fixed;
|
131 |
+
right: 23px;
|
132 |
+
bottom: 23px;
|
133 |
+
padding-top: 15px;
|
134 |
+
margin-bottom: 0;
|
135 |
+
z-index: 997; }
|
136 |
+
.mdstyle8 .fixed-action-btn.horizontal {
|
137 |
+
padding: 0 0 0 15px; }
|
138 |
+
.mdstyle8 .fixed-action-btn.toolbar {
|
139 |
+
padding: 0;
|
140 |
+
height: 56px; }
|
141 |
+
.mdstyle8 .fixed-action-btn.toolbar.active > a i {
|
142 |
+
opacity: 0; }
|
143 |
+
.mdstyle8 .btn-large {
|
144 |
+
height: 54px;
|
145 |
+
line-height: 54px; }
|
146 |
+
.mdstyle8 .btn-large i {
|
147 |
+
font-size: 1.6rem; }
|
148 |
+
.mdstyle8 button:focus {
|
149 |
+
outline: none;
|
150 |
+
background-color: #2ab7a9; }
|
151 |
+
|
152 |
+
|
153 |
+
/* custom code */
|
154 |
+
|
155 |
+
/* new interface: style-8 */
|
156 |
+
.ht-ctc-style-8 {
|
157 |
+
display: block !important;
|
158 |
+
}
|
159 |
+
.ht-ctc-sc-style-8 {
|
160 |
+
display: inline;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
}
|
new/inc/assets/fonts/ccw.svg
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
<?xml version="1.0" standalone="no"?>
|
2 |
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
-
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
-
<metadata>Generated by IcoMoon</metadata>
|
5 |
-
<defs>
|
6 |
-
<font id="ccw" horiz-adv-x="1024">
|
7 |
-
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
-
<missing-glyph horiz-adv-x="1024" />
|
9 |
-
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
-
<glyph unicode="" glyph-name="send" d="M64 64v298l640 86-640 86v298l896-384z" />
|
11 |
-
<glyph unicode="" glyph-name="brand" d="M746.56 346.368c-12.8 6.4-75.328 36.992-87.040 41.216-11.648 4.288-20.16 6.4-28.672-6.4-8.448-12.608-32.896-41.152-40.32-49.6-7.424-8.32-14.848-8.96-27.52-3.2-12.8 6.4-53.888 19.84-102.528 63.36-37.888 33.92-63.36 75.52-70.848 88.32-7.424 12.8-0.832 19.84 5.568 26.24 5.76 5.76 12.8 14.72 19.2 22.4 6.272 7.68 8.32 12.8 12.672 21.12 4.224 8.96 2.112 16-1.088 22.4s-28.672 69.12-39.296 94.080c-10.24 24.96-20.8 21.76-28.672 21.76-7.36 0.64-15.872 0.64-24.32 0.64-8.576 0-22.4-3.2-34.048-15.36-11.648-12.8-44.544-43.52-44.544-105.6s45.632-122.24 51.968-131.2c6.4-8.32 89.856-136.32 217.6-191.36 30.464-12.8 54.144-20.48 72.704-26.88 30.464-9.6 58.24-8.32 80.192-5.12 24.512 3.84 75.392 30.72 86.016 60.8 10.88 30.080 10.88 55.040 7.68 60.8s-11.52 8.96-24.32 14.72zM514.56 32h-0.64c-75.52 0-150.4 20.48-215.68 58.88l-15.36 9.152-160-41.6 42.88 155.52-10.24 16c-42.24 67.2-64.64 144.64-64.64 224.384 0 232.32 190.080 421.76 424.192 421.76 113.28 0 219.52-44.16 299.52-124.16 80-79.36 124.16-185.6 124.16-298.24-0.192-232.32-190.272-421.76-423.872-421.76zM875.52 812.8c-97.28 94.080-225.28 147.2-361.6 147.2-280.832 0-509.44-227.584-509.632-507.392 0-89.408 23.424-176.64 68.032-253.696l-72.32-262.912 270.272 70.528c74.496-40.32 158.336-61.696 243.648-61.76h0.256c280.96 0 509.696 227.648 509.824 507.52 0 135.488-52.928 263.040-149.12 358.912z" />
|
12 |
-
<glyph unicode="" glyph-name="whatsapp2" horiz-adv-x="878" d="M562.857 394.286c9.714 0 102.857-48.571 106.857-55.429 1.143-2.857 1.143-6.286 1.143-8.571 0-14.286-4.571-30.286-9.714-43.429-13.143-32-66.286-52.571-98.857-52.571-27.429 0-84 24-108.571 35.429-81.714 37.143-132.571 100.571-181.714 173.143-21.714 32-41.143 71.429-40.571 110.857v4.571c1.143 37.714 14.857 64.571 42.286 90.286 8.571 8 17.714 12.571 29.714 12.571 6.857 0 13.714-1.714 21.143-1.714 15.429 0 18.286-4.571 24-19.429 4-9.714 33.143-87.429 33.143-93.143 0-21.714-39.429-46.286-39.429-59.429 0-2.857 1.143-5.714 2.857-8.571 12.571-26.857 36.571-57.714 58.286-78.286 26.286-25.143 54.286-41.714 86.286-57.714 4-2.286 8-4 12.571-4 17.143 0 45.714 55.429 60.571 55.429zM446.857 91.428c197.714 0 358.857 161.143 358.857 358.857s-161.143 358.857-358.857 358.857-358.857-161.143-358.857-358.857c0-75.429 24-149.143 68.571-210.286l-45.143-133.143 138.286 44c58.286-38.286 127.429-59.429 197.143-59.429zM446.857 881.143c237.714 0 430.857-193.143 430.857-430.857s-193.143-430.857-430.857-430.857c-72.571 0-144.571 18.286-208.571 53.714l-238.286-76.571 77.714 231.429c-40.571 66.857-61.714 144-61.714 222.286 0 237.714 193.143 430.857 430.857 430.857z" />
|
13 |
-
<glyph unicode="" glyph-name="whatsapp" d="M873 811.2c-95.8 96-223.2 148.8-359 148.8-279.6 0-507.2-227.6-507.2-507.4 0-89.4 23.4-176.8 67.8-253.6l-72-263 269 70.6c74.2-40.4 157.6-61.8 242.4-61.8h0.2c0 0 0 0 0 0 279.6 0 507.4 227.6 507.4 507.4 0 135.6-52.8 263-148.6 359zM514.2 30.4v0c-75.8 0-150 20.4-214.8 58.8l-15.4 9.2-159.6-41.8 42.6 155.6-10 16c-42.4 67-64.6 144.6-64.6 224.4 0 232.6 189.2 421.8 422 421.8 112.6 0 218.6-44 298.2-123.6 79.6-79.8 123.4-185.6 123.4-298.4-0.2-232.8-189.4-422-421.8-422zM745.4 346.4c-12.6 6.4-75 37-86.6 41.2s-20 6.4-28.6-6.4c-8.4-12.6-32.8-41.2-40.2-49.8-7.4-8.4-14.8-9.6-27.4-3.2s-53.6 19.8-102 63c-37.6 33.6-63.2 75.2-70.6 87.8s-0.8 19.6 5.6 25.8c5.8 5.6 12.6 14.8 19 22.2s8.4 12.6 12.6 21.2c4.2 8.4 2.2 15.8-1 22.2s-28.6 68.8-39 94.2c-10.2 24.8-20.8 21.4-28.6 21.8-7.4 0.4-15.8 0.4-24.2 0.4s-22.2-3.2-33.8-15.8c-11.6-12.6-44.4-43.4-44.4-105.8s45.4-122.6 51.8-131.2c6.4-8.4 89.4-136.6 216.6-191.4 30.2-13 53.8-20.8 72.2-26.8 30.4-9.6 58-8.2 79.8-5 24.4 3.6 75 30.6 85.6 60.2s10.6 55 7.4 60.2c-3 5.6-11.4 8.8-24.2 15.2z" />
|
14 |
</font></defs></svg>
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>Generated by IcoMoon</metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="ccw" horiz-adv-x="1024">
|
7 |
+
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
+
<missing-glyph horiz-adv-x="1024" />
|
9 |
+
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
+
<glyph unicode="" glyph-name="send" d="M64 64v298l640 86-640 86v298l896-384z" />
|
11 |
+
<glyph unicode="" glyph-name="brand" d="M746.56 346.368c-12.8 6.4-75.328 36.992-87.040 41.216-11.648 4.288-20.16 6.4-28.672-6.4-8.448-12.608-32.896-41.152-40.32-49.6-7.424-8.32-14.848-8.96-27.52-3.2-12.8 6.4-53.888 19.84-102.528 63.36-37.888 33.92-63.36 75.52-70.848 88.32-7.424 12.8-0.832 19.84 5.568 26.24 5.76 5.76 12.8 14.72 19.2 22.4 6.272 7.68 8.32 12.8 12.672 21.12 4.224 8.96 2.112 16-1.088 22.4s-28.672 69.12-39.296 94.080c-10.24 24.96-20.8 21.76-28.672 21.76-7.36 0.64-15.872 0.64-24.32 0.64-8.576 0-22.4-3.2-34.048-15.36-11.648-12.8-44.544-43.52-44.544-105.6s45.632-122.24 51.968-131.2c6.4-8.32 89.856-136.32 217.6-191.36 30.464-12.8 54.144-20.48 72.704-26.88 30.464-9.6 58.24-8.32 80.192-5.12 24.512 3.84 75.392 30.72 86.016 60.8 10.88 30.080 10.88 55.040 7.68 60.8s-11.52 8.96-24.32 14.72zM514.56 32h-0.64c-75.52 0-150.4 20.48-215.68 58.88l-15.36 9.152-160-41.6 42.88 155.52-10.24 16c-42.24 67.2-64.64 144.64-64.64 224.384 0 232.32 190.080 421.76 424.192 421.76 113.28 0 219.52-44.16 299.52-124.16 80-79.36 124.16-185.6 124.16-298.24-0.192-232.32-190.272-421.76-423.872-421.76zM875.52 812.8c-97.28 94.080-225.28 147.2-361.6 147.2-280.832 0-509.44-227.584-509.632-507.392 0-89.408 23.424-176.64 68.032-253.696l-72.32-262.912 270.272 70.528c74.496-40.32 158.336-61.696 243.648-61.76h0.256c280.96 0 509.696 227.648 509.824 507.52 0 135.488-52.928 263.040-149.12 358.912z" />
|
12 |
+
<glyph unicode="" glyph-name="whatsapp2" horiz-adv-x="878" d="M562.857 394.286c9.714 0 102.857-48.571 106.857-55.429 1.143-2.857 1.143-6.286 1.143-8.571 0-14.286-4.571-30.286-9.714-43.429-13.143-32-66.286-52.571-98.857-52.571-27.429 0-84 24-108.571 35.429-81.714 37.143-132.571 100.571-181.714 173.143-21.714 32-41.143 71.429-40.571 110.857v4.571c1.143 37.714 14.857 64.571 42.286 90.286 8.571 8 17.714 12.571 29.714 12.571 6.857 0 13.714-1.714 21.143-1.714 15.429 0 18.286-4.571 24-19.429 4-9.714 33.143-87.429 33.143-93.143 0-21.714-39.429-46.286-39.429-59.429 0-2.857 1.143-5.714 2.857-8.571 12.571-26.857 36.571-57.714 58.286-78.286 26.286-25.143 54.286-41.714 86.286-57.714 4-2.286 8-4 12.571-4 17.143 0 45.714 55.429 60.571 55.429zM446.857 91.428c197.714 0 358.857 161.143 358.857 358.857s-161.143 358.857-358.857 358.857-358.857-161.143-358.857-358.857c0-75.429 24-149.143 68.571-210.286l-45.143-133.143 138.286 44c58.286-38.286 127.429-59.429 197.143-59.429zM446.857 881.143c237.714 0 430.857-193.143 430.857-430.857s-193.143-430.857-430.857-430.857c-72.571 0-144.571 18.286-208.571 53.714l-238.286-76.571 77.714 231.429c-40.571 66.857-61.714 144-61.714 222.286 0 237.714 193.143 430.857 430.857 430.857z" />
|
13 |
+
<glyph unicode="" glyph-name="whatsapp" d="M873 811.2c-95.8 96-223.2 148.8-359 148.8-279.6 0-507.2-227.6-507.2-507.4 0-89.4 23.4-176.8 67.8-253.6l-72-263 269 70.6c74.2-40.4 157.6-61.8 242.4-61.8h0.2c0 0 0 0 0 0 279.6 0 507.4 227.6 507.4 507.4 0 135.6-52.8 263-148.6 359zM514.2 30.4v0c-75.8 0-150 20.4-214.8 58.8l-15.4 9.2-159.6-41.8 42.6 155.6-10 16c-42.4 67-64.6 144.6-64.6 224.4 0 232.6 189.2 421.8 422 421.8 112.6 0 218.6-44 298.2-123.6 79.6-79.8 123.4-185.6 123.4-298.4-0.2-232.8-189.4-422-421.8-422zM745.4 346.4c-12.6 6.4-75 37-86.6 41.2s-20 6.4-28.6-6.4c-8.4-12.6-32.8-41.2-40.2-49.8-7.4-8.4-14.8-9.6-27.4-3.2s-53.6 19.8-102 63c-37.6 33.6-63.2 75.2-70.6 87.8s-0.8 19.6 5.6 25.8c5.8 5.6 12.6 14.8 19 22.2s8.4 12.6 12.6 21.2c4.2 8.4 2.2 15.8-1 22.2s-28.6 68.8-39 94.2c-10.2 24.8-20.8 21.4-28.6 21.8-7.4 0.4-15.8 0.4-24.2 0.4s-22.2-3.2-33.8-15.8c-11.6-12.6-44.4-43.4-44.4-105.8s45.4-122.6 51.8-131.2c6.4-8.4 89.4-136.6 216.6-191.4 30.2-13 53.8-20.8 72.2-26.8 30.4-9.6 58-8.2 79.8-5 24.4 3.6 75 30.6 85.6 60.2s10.6 55 7.4 60.2c-3 5.6-11.4 8.8-24.2 15.2z" />
|
14 |
</font></defs></svg>
|
new/inc/assets/img/svg-style-2.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* s2 svg image
|
4 |
+
* square icon
|
5 |
+
*/
|
6 |
+
|
7 |
+
|
8 |
+
function style_2_svg( $img_size, $call_to_action ) {
|
9 |
+
|
10 |
+
$img_size = $img_size;
|
11 |
+
|
12 |
+
$svg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'.$img_size.'" height="'.$img_size.'" viewBox="0 0 1024 1024">
|
13 |
+
<title>'.$call_to_action.'</title>
|
14 |
+
<defs>
|
15 |
+
<path id="htwasqicona" d="M1023.941 765.153c0 5.606-.171 17.766-.508 27.159-.824 22.982-2.646 52.639-5.401 66.151-4.141 20.306-10.392 39.472-18.542 55.425-9.643 18.871-21.943 35.775-36.559 50.364-14.584 14.56-31.472 26.812-50.315 36.416-16.036 8.172-35.322 14.426-55.744 18.549-13.378 2.701-42.812 4.488-65.648 5.3-9.402.336-21.564.505-27.15.505l-504.226-.081c-5.607 0-17.765-.172-27.158-.509-22.983-.824-52.639-2.646-66.152-5.4-20.306-4.142-39.473-10.392-55.425-18.542-18.872-9.644-35.775-21.944-50.364-36.56-14.56-14.584-26.812-31.471-36.415-50.314-8.174-16.037-14.428-35.323-18.551-55.744-2.7-13.378-4.487-42.812-5.3-65.649-.334-9.401-.503-21.563-.503-27.148l.08-504.228c0-5.607.171-17.766.508-27.159.825-22.983 2.646-52.639 5.401-66.151 4.141-20.306 10.391-39.473 18.542-55.426C34.154 93.24 46.455 76.336 61.07 61.747c14.584-14.559 31.472-26.812 50.315-36.416 16.037-8.172 35.324-14.426 55.745-18.549 13.377-2.701 42.812-4.488 65.648-5.3 9.402-.335 21.565-.504 27.149-.504l504.227.081c5.608 0 17.766.171 27.159.508 22.983.825 52.638 2.646 66.152 5.401 20.305 4.141 39.472 10.391 55.425 18.542 18.871 9.643 35.774 21.944 50.363 36.559 14.559 14.584 26.812 31.471 36.415 50.315 8.174 16.037 14.428 35.323 18.551 55.744 2.7 13.378 4.486 42.812 5.3 65.649.335 9.402.504 21.564.504 27.15l-.082 504.226z"/>
|
16 |
+
</defs>
|
17 |
+
<linearGradient id="htwasqiconb" gradientUnits="userSpaceOnUse" x1="512.001" y1=".978" x2="512.001" y2="1025.023">
|
18 |
+
<stop offset="0" stop-color="#61fd7d"/>
|
19 |
+
<stop offset="1" stop-color="#2bb826"/>
|
20 |
+
</linearGradient>
|
21 |
+
<use xlink:href="#htwasqicona" overflow="visible" fill="url(#htwasqiconb)"/>
|
22 |
+
<g>
|
23 |
+
<path fill="#FFF" d="M783.302 243.246c-69.329-69.387-161.529-107.619-259.763-107.658-202.402 0-367.133 164.668-367.214 367.072-.026 64.699 16.883 127.854 49.017 183.522l-52.096 190.229 194.665-51.047c53.636 29.244 114.022 44.656 175.482 44.682h.151c202.382 0 367.128-164.688 367.21-367.094.039-98.087-38.121-190.319-107.452-259.706zM523.544 808.047h-.125c-54.767-.021-108.483-14.729-155.344-42.529l-11.146-6.612-115.517 30.293 30.834-112.592-7.259-11.544c-30.552-48.579-46.688-104.729-46.664-162.379.066-168.229 136.985-305.096 305.339-305.096 81.521.031 158.154 31.811 215.779 89.482s89.342 134.332 89.312 215.859c-.066 168.243-136.984 305.118-305.209 305.118zm167.415-228.515c-9.177-4.591-54.286-26.782-62.697-29.843-8.41-3.062-14.526-4.592-20.645 4.592-6.115 9.182-23.699 29.843-29.053 35.964-5.352 6.122-10.704 6.888-19.879 2.296-9.176-4.591-38.74-14.277-73.786-45.526-27.275-24.319-45.691-54.359-51.043-63.543-5.352-9.183-.569-14.146 4.024-18.72 4.127-4.109 9.175-10.713 13.763-16.069 4.587-5.355 6.117-9.183 9.175-15.304 3.059-6.122 1.529-11.479-.765-16.07-2.293-4.591-20.644-49.739-28.29-68.104-7.447-17.886-15.013-15.466-20.645-15.747-5.346-.266-11.469-.322-17.585-.322s-16.057 2.295-24.467 11.478-32.113 31.374-32.113 76.521c0 45.147 32.877 88.764 37.465 94.885 4.588 6.122 64.699 98.771 156.741 138.502 21.892 9.45 38.982 15.094 52.308 19.322 21.98 6.979 41.982 5.995 57.793 3.634 17.628-2.633 54.284-22.189 61.932-43.615 7.646-21.427 7.646-39.791 5.352-43.617-2.294-3.826-8.41-6.122-17.585-10.714z"/>
|
24 |
+
</g>
|
25 |
+
</svg>';
|
26 |
+
|
27 |
+
return $svg;
|
28 |
+
}
|
new/inc/assets/img/svg-style-3.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* s3 svg image
|
4 |
+
* icon
|
5 |
+
*/
|
6 |
+
|
7 |
+
|
8 |
+
function style_3_svg( $img_size, $call_to_action ) {
|
9 |
+
|
10 |
+
$img_size = $img_size;
|
11 |
+
|
12 |
+
$svg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'.$img_size.'" height="'.$img_size.'" viewBox="0 0 1219.547 1225.016">
|
13 |
+
<title>'.$call_to_action.'</title>
|
14 |
+
<path fill="#E0E0E0" d="M1041.858 178.02C927.206 63.289 774.753.07 612.325 0 277.617 0 5.232 272.298 5.098 606.991c-.039 106.986 27.915 211.42 81.048 303.476L0 1225.016l321.898-84.406c88.689 48.368 188.547 73.855 290.166 73.896h.258.003c334.654 0 607.08-272.346 607.222-607.023.056-162.208-63.052-314.724-177.689-429.463zm-429.533 933.963h-.197c-90.578-.048-179.402-24.366-256.878-70.339l-18.438-10.93-191.021 50.083 51-186.176-12.013-19.087c-50.525-80.336-77.198-173.175-77.16-268.504.111-278.186 226.507-504.503 504.898-504.503 134.812.056 261.519 52.604 356.814 147.965 95.289 95.36 147.728 222.128 147.688 356.948-.118 278.195-226.522 504.543-504.693 504.543z"/>
|
15 |
+
<linearGradient id="htwaicona" gradientUnits="userSpaceOnUse" x1="609.77" y1="1190.114" x2="609.77" y2="21.084">
|
16 |
+
<stop offset="0" stop-color="#20b038"/>
|
17 |
+
<stop offset="1" stop-color="#60d66a"/>
|
18 |
+
</linearGradient>
|
19 |
+
<path fill="url(#htwaicona)" d="M27.875 1190.114l82.211-300.18c-50.719-87.852-77.391-187.523-77.359-289.602.133-319.398 260.078-579.25 579.469-579.25 155.016.07 300.508 60.398 409.898 169.891 109.414 109.492 169.633 255.031 169.57 409.812-.133 319.406-260.094 579.281-579.445 579.281-.023 0 .016 0 0 0h-.258c-96.977-.031-192.266-24.375-276.898-70.5l-307.188 80.548z"/>
|
20 |
+
<image overflow="visible" opacity=".08" width="682" height="639" transform="translate(270.984 291.372)"/>
|
21 |
+
<path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M462.273 349.294c-11.234-24.977-23.062-25.477-33.75-25.914-8.742-.375-18.75-.352-28.742-.352-10 0-26.25 3.758-39.992 18.766-13.75 15.008-52.5 51.289-52.5 125.078 0 73.797 53.75 145.102 61.242 155.117 7.5 10 103.758 166.266 256.203 226.383 126.695 49.961 152.477 40.023 179.977 37.523s88.734-36.273 101.234-71.297c12.5-35.016 12.5-65.031 8.75-71.305-3.75-6.25-13.75-10-28.75-17.5s-88.734-43.789-102.484-48.789-23.75-7.5-33.75 7.516c-10 15-38.727 48.773-47.477 58.773-8.75 10.023-17.5 11.273-32.5 3.773-15-7.523-63.305-23.344-120.609-74.438-44.586-39.75-74.688-88.844-83.438-103.859-8.75-15-.938-23.125 6.586-30.602 6.734-6.719 15-17.508 22.5-26.266 7.484-8.758 9.984-15.008 14.984-25.008 5-10.016 2.5-18.773-1.25-26.273s-32.898-81.67-46.234-111.326z"/>
|
22 |
+
<path fill="#FFF" d="M1036.898 176.091C923.562 62.677 772.859.185 612.297.114 281.43.114 12.172 269.286 12.039 600.137 12 705.896 39.633 809.13 92.156 900.13L7 1211.067l318.203-83.438c87.672 47.812 186.383 73.008 286.836 73.047h.255.003c330.812 0 600.109-269.219 600.25-600.055.055-160.343-62.328-311.108-175.649-424.53zm-424.601 923.242h-.195c-89.539-.047-177.344-24.086-253.93-69.531l-18.227-10.805-188.828 49.508 50.414-184.039-11.875-18.867c-49.945-79.414-76.312-171.188-76.273-265.422.109-274.992 223.906-498.711 499.102-498.711 133.266.055 258.516 52 352.719 146.266 94.195 94.266 146.031 219.578 145.992 352.852-.118 274.999-223.923 498.749-498.899 498.749z"/>
|
23 |
+
</svg>';
|
24 |
+
|
25 |
+
return $svg;
|
26 |
+
}
|
new/inc/assets/img/whatsapp-icon-square.svg
CHANGED
@@ -1 +1,13 @@
|
|
1 |
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="50" height="50" viewBox="0 0 1024 1024">
|
2 |
+
<defs>
|
3 |
+
<path id="a" d="M1023.941 765.153c0 5.606-.171 17.766-.508 27.159-.824 22.982-2.646 52.639-5.401 66.151-4.141 20.306-10.392 39.472-18.542 55.425-9.643 18.871-21.943 35.775-36.559 50.364-14.584 14.56-31.472 26.812-50.315 36.416-16.036 8.172-35.322 14.426-55.744 18.549-13.378 2.701-42.812 4.488-65.648 5.3-9.402.336-21.564.505-27.15.505l-504.226-.081c-5.607 0-17.765-.172-27.158-.509-22.983-.824-52.639-2.646-66.152-5.4-20.306-4.142-39.473-10.392-55.425-18.542-18.872-9.644-35.775-21.944-50.364-36.56-14.56-14.584-26.812-31.471-36.415-50.314-8.174-16.037-14.428-35.323-18.551-55.744-2.7-13.378-4.487-42.812-5.3-65.649-.334-9.401-.503-21.563-.503-27.148l.08-504.228c0-5.607.171-17.766.508-27.159.825-22.983 2.646-52.639 5.401-66.151 4.141-20.306 10.391-39.473 18.542-55.426C34.154 93.24 46.455 76.336 61.07 61.747c14.584-14.559 31.472-26.812 50.315-36.416 16.037-8.172 35.324-14.426 55.745-18.549 13.377-2.701 42.812-4.488 65.648-5.3 9.402-.335 21.565-.504 27.149-.504l504.227.081c5.608 0 17.766.171 27.159.508 22.983.825 52.638 2.646 66.152 5.401 20.305 4.141 39.472 10.391 55.425 18.542 18.871 9.643 35.774 21.944 50.363 36.559 14.559 14.584 26.812 31.471 36.415 50.315 8.174 16.037 14.428 35.323 18.551 55.744 2.7 13.378 4.486 42.812 5.3 65.649.335 9.402.504 21.564.504 27.15l-.082 504.226z"/>
|
4 |
+
</defs>
|
5 |
+
<linearGradient id="b" gradientUnits="userSpaceOnUse" x1="512.001" y1=".978" x2="512.001" y2="1025.023">
|
6 |
+
<stop offset="0" stop-color="#61fd7d"/>
|
7 |
+
<stop offset="1" stop-color="#2bb826"/>
|
8 |
+
</linearGradient>
|
9 |
+
<use xlink:href="#a" overflow="visible" fill="url(#b)"/>
|
10 |
+
<g>
|
11 |
+
<path fill="#FFF" d="M783.302 243.246c-69.329-69.387-161.529-107.619-259.763-107.658-202.402 0-367.133 164.668-367.214 367.072-.026 64.699 16.883 127.854 49.017 183.522l-52.096 190.229 194.665-51.047c53.636 29.244 114.022 44.656 175.482 44.682h.151c202.382 0 367.128-164.688 367.21-367.094.039-98.087-38.121-190.319-107.452-259.706zM523.544 808.047h-.125c-54.767-.021-108.483-14.729-155.344-42.529l-11.146-6.612-115.517 30.293 30.834-112.592-7.259-11.544c-30.552-48.579-46.688-104.729-46.664-162.379.066-168.229 136.985-305.096 305.339-305.096 81.521.031 158.154 31.811 215.779 89.482s89.342 134.332 89.312 215.859c-.066 168.243-136.984 305.118-305.209 305.118zm167.415-228.515c-9.177-4.591-54.286-26.782-62.697-29.843-8.41-3.062-14.526-4.592-20.645 4.592-6.115 9.182-23.699 29.843-29.053 35.964-5.352 6.122-10.704 6.888-19.879 2.296-9.176-4.591-38.74-14.277-73.786-45.526-27.275-24.319-45.691-54.359-51.043-63.543-5.352-9.183-.569-14.146 4.024-18.72 4.127-4.109 9.175-10.713 13.763-16.069 4.587-5.355 6.117-9.183 9.175-15.304 3.059-6.122 1.529-11.479-.765-16.07-2.293-4.591-20.644-49.739-28.29-68.104-7.447-17.886-15.013-15.466-20.645-15.747-5.346-.266-11.469-.322-17.585-.322s-16.057 2.295-24.467 11.478-32.113 31.374-32.113 76.521c0 45.147 32.877 88.764 37.465 94.885 4.588 6.122 64.699 98.771 156.741 138.502 21.892 9.45 38.982 15.094 52.308 19.322 21.98 6.979 41.982 5.995 57.793 3.634 17.628-2.633 54.284-22.189 61.932-43.615 7.646-21.427 7.646-39.791 5.352-43.617-2.294-3.826-8.41-6.122-17.585-10.714z"/>
|
12 |
+
</g>
|
13 |
+
</svg>
|
new/inc/assets/img/whatsapp-logo.png
DELETED
Binary file
|
new/inc/assets/img/whatsapp-logo.svg
CHANGED
@@ -1 +1,11 @@
|
|
1 |
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="50" height="50" viewBox="0 0 1219.547 1225.016">
|
2 |
+
<path fill="#E0E0E0" d="M1041.858 178.02C927.206 63.289 774.753.07 612.325 0 277.617 0 5.232 272.298 5.098 606.991c-.039 106.986 27.915 211.42 81.048 303.476L0 1225.016l321.898-84.406c88.689 48.368 188.547 73.855 290.166 73.896h.258.003c334.654 0 607.08-272.346 607.222-607.023.056-162.208-63.052-314.724-177.689-429.463zm-429.533 933.963h-.197c-90.578-.048-179.402-24.366-256.878-70.339l-18.438-10.93-191.021 50.083 51-186.176-12.013-19.087c-50.525-80.336-77.198-173.175-77.16-268.504.111-278.186 226.507-504.503 504.898-504.503 134.812.056 261.519 52.604 356.814 147.965 95.289 95.36 147.728 222.128 147.688 356.948-.118 278.195-226.522 504.543-504.693 504.543z"/>
|
3 |
+
<linearGradient id="a" gradientUnits="userSpaceOnUse" x1="609.77" y1="1190.114" x2="609.77" y2="21.084">
|
4 |
+
<stop offset="0" stop-color="#20b038"/>
|
5 |
+
<stop offset="1" stop-color="#60d66a"/>
|
6 |
+
</linearGradient>
|
7 |
+
<path fill="url(#a)" d="M27.875 1190.114l82.211-300.18c-50.719-87.852-77.391-187.523-77.359-289.602.133-319.398 260.078-579.25 579.469-579.25 155.016.07 300.508 60.398 409.898 169.891 109.414 109.492 169.633 255.031 169.57 409.812-.133 319.406-260.094 579.281-579.445 579.281-.023 0 .016 0 0 0h-.258c-96.977-.031-192.266-24.375-276.898-70.5l-307.188 80.548z"/>
|
8 |
+
<image overflow="visible" opacity=".08" width="682" height="639" transform="translate(270.984 291.372)"/>
|
9 |
+
<path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M462.273 349.294c-11.234-24.977-23.062-25.477-33.75-25.914-8.742-.375-18.75-.352-28.742-.352-10 0-26.25 3.758-39.992 18.766-13.75 15.008-52.5 51.289-52.5 125.078 0 73.797 53.75 145.102 61.242 155.117 7.5 10 103.758 166.266 256.203 226.383 126.695 49.961 152.477 40.023 179.977 37.523s88.734-36.273 101.234-71.297c12.5-35.016 12.5-65.031 8.75-71.305-3.75-6.25-13.75-10-28.75-17.5s-88.734-43.789-102.484-48.789-23.75-7.5-33.75 7.516c-10 15-38.727 48.773-47.477 58.773-8.75 10.023-17.5 11.273-32.5 3.773-15-7.523-63.305-23.344-120.609-74.438-44.586-39.75-74.688-88.844-83.438-103.859-8.75-15-.938-23.125 6.586-30.602 6.734-6.719 15-17.508 22.5-26.266 7.484-8.758 9.984-15.008 14.984-25.008 5-10.016 2.5-18.773-1.25-26.273s-32.898-81.67-46.234-111.326z"/>
|
10 |
+
<path fill="#FFF" d="M1036.898 176.091C923.562 62.677 772.859.185 612.297.114 281.43.114 12.172 269.286 12.039 600.137 12 705.896 39.633 809.13 92.156 900.13L7 1211.067l318.203-83.438c87.672 47.812 186.383 73.008 286.836 73.047h.255.003c330.812 0 600.109-269.219 600.25-600.055.055-160.343-62.328-311.108-175.649-424.53zm-424.601 923.242h-.195c-89.539-.047-177.344-24.086-253.93-69.531l-18.227-10.805-188.828 49.508 50.414-184.039-11.875-18.867c-49.945-79.414-76.312-171.188-76.273-265.422.109-274.992 223.906-498.711 499.102-498.711 133.266.055 258.516 52 352.719 146.266 94.195 94.266 146.031 219.578 145.992 352.852-.118 274.999-223.923 498.749-498.899 498.749z"/>
|
11 |
+
</svg>
|
new/inc/assets/js/app.js
CHANGED
@@ -1,227 +1,154 @@
|
|
1 |
-
/**
|
2 |
-
* Click to Chat
|
3 |
-
*/
|
4 |
-
|
5 |
-
var url = window.location.href;
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
var
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
} else
|
92 |
-
//
|
93 |
-
var base_link = 'https://
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
//
|
128 |
-
|
129 |
-
|
130 |
-
//
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
var base_link = 'https://wa.me/';
|
155 |
-
window.open(base_link + number + '?text=' + pre_filled, '_blank', 'noopener');
|
156 |
-
}
|
157 |
-
|
158 |
-
}
|
159 |
-
|
160 |
-
}
|
161 |
-
|
162 |
-
|
163 |
-
// shortcode link
|
164 |
-
// know issue - if in link "" are used the link my not work properly.. (prefilled message)
|
165 |
-
function ht_ctc_shortcode_click(link) {
|
166 |
-
data_link = link.getAttribute("data-ctc-link");
|
167 |
-
window.open(data_link, '_blank', 'noopener');
|
168 |
-
|
169 |
-
return_type = link.getAttribute("data-ctc-type");
|
170 |
-
|
171 |
-
ht_ctc_analytics( return_type );
|
172 |
-
}
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
// Analytics
|
177 |
-
function ht_ctc_analytics( return_type ){
|
178 |
-
|
179 |
-
// Google Analytics
|
180 |
-
var is_ga_enable = ht_ctc_var.is_ga_enable;
|
181 |
-
if ( 'yes' == is_ga_enable ) {
|
182 |
-
ht_ctc_ga( return_type );
|
183 |
-
}
|
184 |
-
|
185 |
-
// FB Analytics
|
186 |
-
var is_fb_an_enable = ht_ctc_var.is_fb_an_enable;
|
187 |
-
if ( 'yes' == is_fb_an_enable ) {
|
188 |
-
ht_ctc_fb_an( return_type );
|
189 |
-
}
|
190 |
-
|
191 |
-
}
|
192 |
-
|
193 |
-
// Google Analytics
|
194 |
-
function ht_ctc_ga( return_type ) {
|
195 |
-
|
196 |
-
var ga_category = 'Click to Chat for WhatsApp';
|
197 |
-
var ga_action = 'return type: ' + return_type ;
|
198 |
-
var ga_label = post_title + ', ' + url ;
|
199 |
-
|
200 |
-
// // ga('send', 'event', 'Contact', 'Call Now Button', 'Phone');
|
201 |
-
|
202 |
-
if ("ga" in window) {
|
203 |
-
// if ( ga.window && ga.create) {
|
204 |
-
tracker = ga.getAll()[0];
|
205 |
-
if (tracker) tracker.send("event", ga_category, ga_action, ga_label );
|
206 |
-
} else if ("gtag" in window) {
|
207 |
-
gtag('event', ga_action, {
|
208 |
-
'event_category': ga_category,
|
209 |
-
'event_label': ga_label,
|
210 |
-
});
|
211 |
-
}
|
212 |
-
|
213 |
-
}
|
214 |
-
|
215 |
-
// FB Analytics
|
216 |
-
function ht_ctc_fb_an( return_type ) {
|
217 |
-
|
218 |
-
var fb_event_name = 'Click to Chat for WhatsApp';
|
219 |
-
|
220 |
-
var params = {};
|
221 |
-
params['Category'] = 'Click to Chat for WhatsApp';
|
222 |
-
params['Action'] = 'return type: ' + return_type;
|
223 |
-
params['Label'] = post_title + ', ' + url ;
|
224 |
-
|
225 |
-
// if fb analytics is not installed, then uncheck fb analytics option from main plugin settings
|
226 |
-
FB.AppEvents.logEvent( fb_event_name, null, params);
|
227 |
}
|
1 |
+
/**
|
2 |
+
* Click to Chat
|
3 |
+
*/
|
4 |
+
|
5 |
+
var url = window.location.href;
|
6 |
+
|
7 |
+
// is_mobile yes/no, desktop > 1024
|
8 |
+
var is_mobile = 'yes';
|
9 |
+
if (typeof screen.width !== "undefined" ) {
|
10 |
+
is_mobile = ( screen.width > 1024 ) ? "no" : "yes";
|
11 |
+
}
|
12 |
+
|
13 |
+
// post title
|
14 |
+
var post_title = (typeof ht_ctc_var !== "undefined" ) ? ht_ctc_var.post_title : document.title;
|
15 |
+
|
16 |
+
// shortcode link
|
17 |
+
function ht_ctc_shortcode_click(values) {
|
18 |
+
|
19 |
+
data_link = values.getAttribute("data-ctc-link");
|
20 |
+
data_link = encodeURI(data_link);
|
21 |
+
|
22 |
+
window.open(data_link, '_blank', 'noopener');
|
23 |
+
|
24 |
+
ht_ctc_analytics(values);
|
25 |
+
}
|
26 |
+
|
27 |
+
// floating style - click
|
28 |
+
function ht_ctc_click(values) {
|
29 |
+
|
30 |
+
// link
|
31 |
+
ht_ctc_link(values);
|
32 |
+
|
33 |
+
// analytics
|
34 |
+
ht_ctc_analytics(values);
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
// link - chat, share, group
|
39 |
+
function ht_ctc_link(values) {
|
40 |
+
|
41 |
+
var return_type = values.getAttribute('data-return_type');
|
42 |
+
|
43 |
+
if(return_type == 'group') {
|
44 |
+
// group
|
45 |
+
var base_link = 'https://chat.whatsapp.com/';
|
46 |
+
|
47 |
+
// var group_id = ht_ctc_var_group.group_id;
|
48 |
+
var group_id = values.getAttribute('data-group_id');
|
49 |
+
|
50 |
+
window.open(base_link + group_id, '_blank', 'noopener');
|
51 |
+
|
52 |
+
} else if (return_type == 'share') {
|
53 |
+
// share
|
54 |
+
// var share_text = ht_ctc_var_share.share_text;
|
55 |
+
var share_text = values.getAttribute('data-share_text');
|
56 |
+
|
57 |
+
var webandapi = values.getAttribute('data-webandapi');
|
58 |
+
|
59 |
+
// web/api.whatsapp or api.whatsapp
|
60 |
+
var share_nav = "api";
|
61 |
+
if ( 'webapi' == webandapi ) {
|
62 |
+
share_nav = ( is_mobile == 'yes' ) ? "api" : "web";
|
63 |
+
}
|
64 |
+
|
65 |
+
var base_link = 'https://'+share_nav+'.whatsapp.com/send';
|
66 |
+
|
67 |
+
window.open(base_link + '?text=' + share_text, '_blank', 'noopener');
|
68 |
+
|
69 |
+
} else {
|
70 |
+
// chat
|
71 |
+
var number = values.getAttribute('data-number');
|
72 |
+
var pre_filled = values.getAttribute('data-pre_filled');
|
73 |
+
pre_filled = encodeURI(pre_filled);
|
74 |
+
var webandapi = values.getAttribute('data-webandapi');
|
75 |
+
|
76 |
+
// if detect decive using user agent
|
77 |
+
var detectdevice = values.getAttribute('data-detectdevice');
|
78 |
+
if ( 'http' == detectdevice ) {
|
79 |
+
var wpdevice = values.getAttribute('data-wpdevice');
|
80 |
+
is_mobile = ( 'mobile' == wpdevice ) ? 'yes' : 'no';
|
81 |
+
}
|
82 |
+
|
83 |
+
// web/api.whatsapp or wa.me
|
84 |
+
if ( 'webapi' == webandapi ) {
|
85 |
+
if (is_mobile == 'yes') {
|
86 |
+
var base_link = 'https://api.whatsapp.com/send';
|
87 |
+
} else {
|
88 |
+
var base_link = 'https://web.whatsapp.com/send';
|
89 |
+
}
|
90 |
+
window.open(base_link + '?phone=' + number + '&text=' + pre_filled, '_blank', 'noopener');
|
91 |
+
} else {
|
92 |
+
// wa.me
|
93 |
+
var base_link = 'https://wa.me/';
|
94 |
+
window.open(base_link + number + '?text=' + pre_filled, '_blank', 'noopener');
|
95 |
+
}
|
96 |
+
|
97 |
+
}
|
98 |
+
|
99 |
+
}
|
100 |
+
|
101 |
+
// Analytics
|
102 |
+
function ht_ctc_analytics(values) {
|
103 |
+
|
104 |
+
var return_type = values.getAttribute('data-return_type');
|
105 |
+
|
106 |
+
// Google Analytics
|
107 |
+
var is_ga_enable = values.getAttribute('data-is_ga_enable');
|
108 |
+
if ( 'yes' == is_ga_enable ) {
|
109 |
+
ht_ctc_ga( return_type );
|
110 |
+
}
|
111 |
+
|
112 |
+
// FB Analytics
|
113 |
+
var is_fb_an_enable = values.getAttribute('data-is_fb_an_enable');
|
114 |
+
if ( 'yes' == is_fb_an_enable ) {
|
115 |
+
ht_ctc_fb_an( return_type );
|
116 |
+
}
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
+
// Google Analytics
|
121 |
+
function ht_ctc_ga( return_type ) {
|
122 |
+
|
123 |
+
var ga_category = 'Click to Chat for WhatsApp';
|
124 |
+
var ga_action = 'return type: ' + return_type ;
|
125 |
+
var ga_label = post_title + ', ' + url ;
|
126 |
+
|
127 |
+
// // ga('send', 'event', 'Contact', 'Call Now Button', 'Phone');
|
128 |
+
|
129 |
+
if ("ga" in window) {
|
130 |
+
// if ( ga.window && ga.create) {
|
131 |
+
tracker = ga.getAll()[0];
|
132 |
+
if (tracker) tracker.send("event", ga_category, ga_action, ga_label );
|
133 |
+
} else if ("gtag" in window) {
|
134 |
+
gtag('event', ga_action, {
|
135 |
+
'event_category': ga_category,
|
136 |
+
'event_label': ga_label,
|
137 |
+
});
|
138 |
+
}
|
139 |
+
|
140 |
+
}
|
141 |
+
|
142 |
+
// FB Analytics
|
143 |
+
function ht_ctc_fb_an( return_type ) {
|
144 |
+
|
145 |
+
var fb_event_name = 'Click to Chat for WhatsApp';
|
146 |
+
|
147 |
+
var params = {};
|
148 |
+
params['Category'] = 'Click to Chat for WhatsApp';
|
149 |
+
params['Action'] = 'return type: ' + return_type;
|
150 |
+
params['Label'] = post_title + ', ' + url ;
|
151 |
+
|
152 |
+
// if fb analytics is not installed, then uncheck fb analytics option from main plugin settings
|
153 |
+
FB.AppEvents.logEvent( fb_event_name, null, params);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
}
|
new/inc/chat/chat-position.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* @included from - class-ht-ctc-chat.php
|
5 |
-
*
|
6 |
-
* position to place ..
|
7 |
-
*/
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
$side_1 = esc_attr( $options['side_1'] );
|
12 |
-
$side_1_value = esc_attr( $options['side_1_value'] );
|
13 |
-
|
14 |
-
$side_2 = esc_attr( $options['side_2'] );
|
15 |
-
$side_2_value = esc_attr( $options['side_2_value'] );
|
16 |
-
|
17 |
$position = "$side_1: $side_1_value; $side_2: $side_2_value;";
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* @included from - class-ht-ctc-chat.php
|
5 |
+
*
|
6 |
+
* position to place ..
|
7 |
+
*/
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
$side_1 = esc_attr( $options['side_1'] );
|
12 |
+
$side_1_value = esc_attr( $options['side_1_value'] );
|
13 |
+
|
14 |
+
$side_2 = esc_attr( $options['side_2'] );
|
15 |
+
$side_2_value = esc_attr( $options['side_2_value'] );
|
16 |
+
|
17 |
$position = "$side_1: $side_1_value; $side_2: $side_2_value;";
|
new/inc/chat/chat-show-hide.php
CHANGED
@@ -1,200 +1,200 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* @included from - class-ht-ctc-chat.php
|
5 |
-
*
|
6 |
-
* sets $display - yes to show styles or no to hide styles
|
7 |
-
*/
|
8 |
-
|
9 |
-
$this_page_id = get_the_ID();
|
10 |
-
|
11 |
-
|
12 |
-
// yes to display style and no to hide styles
|
13 |
-
// @uses at 'class-ht-ctc-chat.php'
|
14 |
-
$display = 'yes';
|
15 |
-
|
16 |
-
|
17 |
-
// show / hide
|
18 |
-
if ( 'show' == $options['show_or_hide'] ) {
|
19 |
-
// show based no
|
20 |
-
|
21 |
-
// in show - default display is no
|
22 |
-
$display = 'no';
|
23 |
-
|
24 |
-
$pages_list_toshow = $options['list_showon_pages'];
|
25 |
-
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
26 |
-
|
27 |
-
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_toshow_array ) ) {
|
28 |
-
$display = 'yes';
|
29 |
-
return;
|
30 |
-
}
|
31 |
-
|
32 |
-
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
33 |
-
$display = 'yes';
|
34 |
-
return;
|
35 |
-
}
|
36 |
-
|
37 |
-
if ( is_page() && isset( $options['showon_page'] ) ) {
|
38 |
-
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
39 |
-
$display = 'yes';
|
40 |
-
return;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
// is_home and is_front_page - combined.
|
45 |
-
if ( ( is_home() || is_front_page() ) && ( isset( $options['showon_homepage'] ) ) ) {
|
46 |
-
$display = 'yes';
|
47 |
-
return;
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
if ( is_category() && isset( $options['showon_category'] ) ) {
|
52 |
-
$display = 'yes';
|
53 |
-
return;
|
54 |
-
}
|
55 |
-
|
56 |
-
if ( is_archive() && isset( $options['showon_archive'] ) ) {
|
57 |
-
$display = 'yes';
|
58 |
-
return;
|
59 |
-
}
|
60 |
-
|
61 |
-
if ( is_404() && isset( $options['showon_404'] ) ) {
|
62 |
-
$display = 'yes';
|
63 |
-
return;
|
64 |
-
}
|
65 |
-
|
66 |
-
// show on woocommerce single product pages.
|
67 |
-
if ( isset( $options['showon_wooproduct'] ) ) {
|
68 |
-
if ( function_exists( 'is_product' ) ) {
|
69 |
-
if ( is_product() ) {
|
70 |
-
$display = 'yes';
|
71 |
-
return;
|
72 |
-
}
|
73 |
-
}
|
74 |
-
}
|
75 |
-
|
76 |
-
// Hide styles on this catergorys - list
|
77 |
-
$list_showon_cat = $options['list_showon_cat'];
|
78 |
-
|
79 |
-
// avoid calling foreach, explode when hide on categorys list is empty
|
80 |
-
if( $list_showon_cat ) {
|
81 |
-
|
82 |
-
// Get current post Categorys list and create an array for that..
|
83 |
-
$current_categorys_array = array();
|
84 |
-
$current_categorys = get_the_category();
|
85 |
-
foreach ( $current_categorys as $category ) {
|
86 |
-
$current_categorys_array[] = strtolower($category->name);
|
87 |
-
}
|
88 |
-
|
89 |
-
$list_showon_cat_array = explode(',', $list_showon_cat);
|
90 |
-
|
91 |
-
foreach ( $list_showon_cat_array as $category ) {
|
92 |
-
$category_trim = trim($category);
|
93 |
-
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
94 |
-
$display = 'yes';
|
95 |
-
return;
|
96 |
-
}
|
97 |
-
}
|
98 |
-
}
|
99 |
-
|
100 |
-
} else {
|
101 |
-
|
102 |
-
// hide based on
|
103 |
-
|
104 |
-
// in hide - default display is yes
|
105 |
-
$display = 'yes';
|
106 |
-
|
107 |
-
|
108 |
-
$pages_list_tohide = $options['list_hideon_pages'];
|
109 |
-
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
110 |
-
|
111 |
-
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_tohide_array ) ) {
|
112 |
-
$display = 'no';
|
113 |
-
return;
|
114 |
-
}
|
115 |
-
|
116 |
-
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
117 |
-
$display = 'no';
|
118 |
-
return;
|
119 |
-
}
|
120 |
-
|
121 |
-
if ( is_page() && isset( $options['hideon_page'] ) ) {
|
122 |
-
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
123 |
-
$display = 'no';
|
124 |
-
return;
|
125 |
-
}
|
126 |
-
}
|
127 |
-
|
128 |
-
// is_home and is_front_page - combined.
|
129 |
-
if ( ( is_home() || is_front_page() ) && ( isset( $options['hideon_homepage'] ) ) ) {
|
130 |
-
$display = 'no';
|
131 |
-
return;
|
132 |
-
}
|
133 |
-
|
134 |
-
if ( is_category() && isset( $options['hideon_category'] ) ) {
|
135 |
-
$display = 'no';
|
136 |
-
return;
|
137 |
-
}
|
138 |
-
|
139 |
-
if ( is_archive() && isset( $options['hideon_archive'] ) ) {
|
140 |
-
$display = 'no';
|
141 |
-
return;
|
142 |
-
}
|
143 |
-
|
144 |
-
if ( is_404() && isset( $options['hideon_404'] ) ) {
|
145 |
-
$display = 'no';
|
146 |
-
return;
|
147 |
-
}
|
148 |
-
|
149 |
-
// hide on woocommerce single product pages.
|
150 |
-
if ( isset( $options['hideon_wooproduct'] ) ) {
|
151 |
-
if ( function_exists( 'is_product' ) ) {
|
152 |
-
if ( is_product() ) {
|
153 |
-
$display = 'no';
|
154 |
-
return;
|
155 |
-
}
|
156 |
-
}
|
157 |
-
}
|
158 |
-
|
159 |
-
// Hide styles on this catergorys - list
|
160 |
-
$list_hideon_cat = $options['list_hideon_cat'];
|
161 |
-
|
162 |
-
// avoid calling foreach, explode when hide on categorys list is empty
|
163 |
-
if( $list_hideon_cat ) {
|
164 |
-
|
165 |
-
// Get current post Categorys list and create an array for that..
|
166 |
-
$current_categorys_array = array();
|
167 |
-
$current_categorys = get_the_category();
|
168 |
-
foreach ( $current_categorys as $category ) {
|
169 |
-
$current_categorys_array[] = strtolower($category->name);
|
170 |
-
}
|
171 |
-
|
172 |
-
$list_hideon_cat_array = explode(',', $list_hideon_cat);
|
173 |
-
|
174 |
-
foreach ( $list_hideon_cat_array as $category ) {
|
175 |
-
$category_trim = trim($category);
|
176 |
-
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
177 |
-
$display = 'no';
|
178 |
-
return;
|
179 |
-
}
|
180 |
-
}
|
181 |
-
}
|
182 |
-
|
183 |
-
}
|
184 |
-
|
185 |
-
|
186 |
-
// Hide based on device
|
187 |
-
|
188 |
-
if ( function_exists( 'wp_is_mobile' ) ) {
|
189 |
-
if ( wp_is_mobile() ) {
|
190 |
-
// mobile
|
191 |
-
if ( isset( $options['hideon_mobile'] ) ) {
|
192 |
-
$display = 'no';
|
193 |
-
}
|
194 |
-
} else {
|
195 |
-
// desktop
|
196 |
-
if ( isset( $options['hideon_desktop'] ) ) {
|
197 |
-
$display = 'no';
|
198 |
-
}
|
199 |
-
}
|
200 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* @included from - class-ht-ctc-chat.php
|
5 |
+
*
|
6 |
+
* sets $display - yes to show styles or no to hide styles
|
7 |
+
*/
|
8 |
+
|
9 |
+
$this_page_id = get_the_ID();
|
10 |
+
|
11 |
+
|
12 |
+
// yes to display style and no to hide styles
|
13 |
+
// @uses at 'class-ht-ctc-chat.php'
|
14 |
+
$display = 'yes';
|
15 |
+
|
16 |
+
|
17 |
+
// show / hide
|
18 |
+
if ( 'show' == $options['show_or_hide'] ) {
|
19 |
+
// show based no
|
20 |
+
|
21 |
+
// in show - default display is no
|
22 |
+
$display = 'no';
|
23 |
+
|
24 |
+
$pages_list_toshow = $options['list_showon_pages'];
|
25 |
+
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
26 |
+
|
27 |
+
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_toshow_array ) ) {
|
28 |
+
$display = 'yes';
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
33 |
+
$display = 'yes';
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
|
37 |
+
if ( is_page() && isset( $options['showon_page'] ) ) {
|
38 |
+
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
39 |
+
$display = 'yes';
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
// is_home and is_front_page - combined.
|
45 |
+
if ( ( is_home() || is_front_page() ) && ( isset( $options['showon_homepage'] ) ) ) {
|
46 |
+
$display = 'yes';
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
+
if ( is_category() && isset( $options['showon_category'] ) ) {
|
52 |
+
$display = 'yes';
|
53 |
+
return;
|
54 |
+
}
|
55 |
+
|
56 |
+
if ( is_archive() && isset( $options['showon_archive'] ) ) {
|
57 |
+
$display = 'yes';
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
if ( is_404() && isset( $options['showon_404'] ) ) {
|
62 |
+
$display = 'yes';
|
63 |
+
return;
|
64 |
+
}
|
65 |
+
|
66 |
+
// show on woocommerce single product pages.
|
67 |
+
if ( isset( $options['showon_wooproduct'] ) ) {
|
68 |
+
if ( function_exists( 'is_product' ) ) {
|
69 |
+
if ( is_product() ) {
|
70 |
+
$display = 'yes';
|
71 |
+
return;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
// Hide styles on this catergorys - list
|
77 |
+
$list_showon_cat = $options['list_showon_cat'];
|
78 |
+
|
79 |
+
// avoid calling foreach, explode when hide on categorys list is empty
|
80 |
+
if( $list_showon_cat ) {
|
81 |
+
|
82 |
+
// Get current post Categorys list and create an array for that..
|
83 |
+
$current_categorys_array = array();
|
84 |
+
$current_categorys = get_the_category();
|
85 |
+
foreach ( $current_categorys as $category ) {
|
86 |
+
$current_categorys_array[] = strtolower($category->name);
|
87 |
+
}
|
88 |
+
|
89 |
+
$list_showon_cat_array = explode(',', $list_showon_cat);
|
90 |
+
|
91 |
+
foreach ( $list_showon_cat_array as $category ) {
|
92 |
+
$category_trim = trim($category);
|
93 |
+
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
94 |
+
$display = 'yes';
|
95 |
+
return;
|
96 |
+
}
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
} else {
|
101 |
+
|
102 |
+
// hide based on
|
103 |
+
|
104 |
+
// in hide - default display is yes
|
105 |
+
$display = 'yes';
|
106 |
+
|
107 |
+
|
108 |
+
$pages_list_tohide = $options['list_hideon_pages'];
|
109 |
+
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
110 |
+
|
111 |
+
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_tohide_array ) ) {
|
112 |
+
$display = 'no';
|
113 |
+
return;
|
114 |
+
}
|
115 |
+
|
116 |
+
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
117 |
+
$display = 'no';
|
118 |
+
return;
|
119 |
+
}
|
120 |
+
|
121 |
+
if ( is_page() && isset( $options['hideon_page'] ) ) {
|
122 |
+
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
123 |
+
$display = 'no';
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
+
// is_home and is_front_page - combined.
|
129 |
+
if ( ( is_home() || is_front_page() ) && ( isset( $options['hideon_homepage'] ) ) ) {
|
130 |
+
$display = 'no';
|
131 |
+
return;
|
132 |
+
}
|
133 |
+
|
134 |
+
if ( is_category() && isset( $options['hideon_category'] ) ) {
|
135 |
+
$display = 'no';
|
136 |
+
return;
|
137 |
+
}
|
138 |
+
|
139 |
+
if ( is_archive() && isset( $options['hideon_archive'] ) ) {
|
140 |
+
$display = 'no';
|
141 |
+
return;
|
142 |
+
}
|
143 |
+
|
144 |
+
if ( is_404() && isset( $options['hideon_404'] ) ) {
|
145 |
+
$display = 'no';
|
146 |
+
return;
|
147 |
+
}
|
148 |
+
|
149 |
+
// hide on woocommerce single product pages.
|
150 |
+
if ( isset( $options['hideon_wooproduct'] ) ) {
|
151 |
+
if ( function_exists( 'is_product' ) ) {
|
152 |
+
if ( is_product() ) {
|
153 |
+
$display = 'no';
|
154 |
+
return;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
}
|
158 |
+
|
159 |
+
// Hide styles on this catergorys - list
|
160 |
+
$list_hideon_cat = $options['list_hideon_cat'];
|
161 |
+
|
162 |
+
// avoid calling foreach, explode when hide on categorys list is empty
|
163 |
+
if( $list_hideon_cat ) {
|
164 |
+
|
165 |
+
// Get current post Categorys list and create an array for that..
|
166 |
+
$current_categorys_array = array();
|
167 |
+
$current_categorys = get_the_category();
|
168 |
+
foreach ( $current_categorys as $category ) {
|
169 |
+
$current_categorys_array[] = strtolower($category->name);
|
170 |
+
}
|
171 |
+
|
172 |
+
$list_hideon_cat_array = explode(',', $list_hideon_cat);
|
173 |
+
|
174 |
+
foreach ( $list_hideon_cat_array as $category ) {
|
175 |
+
$category_trim = trim($category);
|
176 |
+
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
177 |
+
$display = 'no';
|
178 |
+
return;
|
179 |
+
}
|
180 |
+
}
|
181 |
+
}
|
182 |
+
|
183 |
+
}
|
184 |
+
|
185 |
+
|
186 |
+
// Hide based on device
|
187 |
+
|
188 |
+
if ( function_exists( 'wp_is_mobile' ) ) {
|
189 |
+
if ( wp_is_mobile() ) {
|
190 |
+
// mobile
|
191 |
+
if ( isset( $options['hideon_mobile'] ) ) {
|
192 |
+
$display = 'no';
|
193 |
+
}
|
194 |
+
} else {
|
195 |
+
// desktop
|
196 |
+
if ( isset( $options['hideon_desktop'] ) ) {
|
197 |
+
$display = 'no';
|
198 |
+
}
|
199 |
+
}
|
200 |
}
|
new/inc/chat/class-ht-ctc-chat-shortcode.php
CHANGED
@@ -1,194 +1,212 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* shortcodes
|
4 |
-
* for list of attribute support check -> shortcode_atts ( $a )
|
5 |
-
*
|
6 |
-
* @package chat
|
7 |
-
* @since 2.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
-
|
12 |
-
if ( ! class_exists( 'HT_CTC_Chat_Shortcode' ) ) :
|
13 |
-
|
14 |
-
class HT_CTC_Chat_Shortcode {
|
15 |
-
|
16 |
-
|
17 |
-
// Register shortcode
|
18 |
-
public function shortcodes_init() {
|
19 |
-
add_shortcode( 'ht-ctc-chat', array( $this, 'shortcode' ) );
|
20 |
-
}
|
21 |
-
|
22 |
-
// call back function - shortcode
|
23 |
-
public function shortcode( $atts = [], $content = null, $shortcode = '' ) {
|
24 |
-
|
25 |
-
|
26 |
-
$
|
27 |
-
|
28 |
-
|
29 |
-
$
|
30 |
-
$
|
31 |
-
|
32 |
-
|
33 |
-
$
|
34 |
-
$
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
$
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
'
|
60 |
-
'
|
61 |
-
'
|
62 |
-
'
|
63 |
-
|
64 |
-
'
|
65 |
-
'
|
66 |
-
|
67 |
-
|
68 |
-
'
|
69 |
-
'
|
70 |
-
'
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
//
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
$
|
84 |
-
|
85 |
-
|
86 |
-
$
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
$
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
$
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
$
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
//
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
$
|
161 |
-
|
162 |
-
|
163 |
-
$
|
164 |
-
|
165 |
-
|
166 |
-
$
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
$
|
179 |
-
}
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
$
|
191 |
-
|
192 |
-
|
193 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* shortcodes
|
4 |
+
* for list of attribute support check -> shortcode_atts ( $a )
|
5 |
+
*
|
6 |
+
* @package chat
|
7 |
+
* @since 2.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
if ( ! class_exists( 'HT_CTC_Chat_Shortcode' ) ) :
|
13 |
+
|
14 |
+
class HT_CTC_Chat_Shortcode {
|
15 |
+
|
16 |
+
|
17 |
+
// Register shortcode
|
18 |
+
public function shortcodes_init() {
|
19 |
+
add_shortcode( 'ht-ctc-chat', array( $this, 'shortcode' ) );
|
20 |
+
}
|
21 |
+
|
22 |
+
// call back function - shortcode
|
23 |
+
public function shortcode( $atts = [], $content = null, $shortcode = '' ) {
|
24 |
+
|
25 |
+
$options = get_option( 'ht_ctc_chat_options' );
|
26 |
+
$other = get_option('ht_ctc_othersettings');
|
27 |
+
$main_options = ht_ctc()->values->ctc_main_options;
|
28 |
+
|
29 |
+
$number_db = esc_attr( $options['number'] );
|
30 |
+
$call_to_action_db = esc_attr( $options['call_to_action'] );
|
31 |
+
$pre_filled_db = esc_attr( $options['pre_filled'] );
|
32 |
+
|
33 |
+
$number = __( $number_db , 'click-to-chat-for-whatsapp' );
|
34 |
+
$call_to_action = __( $call_to_action_db , 'click-to-chat-for-whatsapp' );
|
35 |
+
$pre_filled = __( $pre_filled_db , 'click-to-chat-for-whatsapp' );
|
36 |
+
|
37 |
+
// if random number feature, this have to modify (ltrim, preg_replace)
|
38 |
+
// $number = preg_replace('/[^0-9,\s]/', '', $number );
|
39 |
+
$number = preg_replace('/\D/', '', $number );
|
40 |
+
$number = ltrim( $number, '0' );
|
41 |
+
|
42 |
+
$style_desktop = esc_attr( $options['style_desktop'] );
|
43 |
+
$style_mobile = esc_attr( $options['style_mobile'] );
|
44 |
+
|
45 |
+
$is_mobile = ht_ctc()->device_type->is_mobile();
|
46 |
+
|
47 |
+
$style = $style_desktop;;
|
48 |
+
if ( 'yes' == $is_mobile ) {
|
49 |
+
$style = $style_mobile;
|
50 |
+
}
|
51 |
+
|
52 |
+
// $content = do_shortcode($content);
|
53 |
+
|
54 |
+
// $ccw_options_cs = get_option('ccw_options_cs');
|
55 |
+
// use like $ccw_options_cs['']
|
56 |
+
|
57 |
+
$a = shortcode_atts(
|
58 |
+
array(
|
59 |
+
'number' => $number,
|
60 |
+
'call_to_action' => $call_to_action,
|
61 |
+
'pre_filled' => $pre_filled,
|
62 |
+
'style' => $style,
|
63 |
+
|
64 |
+
'position' => '',
|
65 |
+
'top' => '',
|
66 |
+
'right' => '',
|
67 |
+
'bottom' => '',
|
68 |
+
'left' => '',
|
69 |
+
'home' => '', // home - to hide on experts ..
|
70 |
+
'hide_mobile' => '',
|
71 |
+
'hide_desktop' => '',
|
72 |
+
// 'inline_issue' => '',
|
73 |
+
|
74 |
+
's5_img_position' => '', //left, right
|
75 |
+
's8_width' => '',
|
76 |
+
's8_icon_position' => '', // left, right, hide
|
77 |
+
|
78 |
+
), $atts, $shortcode );
|
79 |
+
// use like - '.$a["title"].'
|
80 |
+
|
81 |
+
|
82 |
+
// number
|
83 |
+
$number = $a["number"];
|
84 |
+
|
85 |
+
// pre-filled text
|
86 |
+
$page_url = get_permalink();
|
87 |
+
$post_title = esc_html( get_the_title() );
|
88 |
+
|
89 |
+
$pre_filled = $a["pre_filled"];
|
90 |
+
$pre_filled = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $pre_filled );
|
91 |
+
|
92 |
+
|
93 |
+
// hide on devices
|
94 |
+
// if 'yes' then hide
|
95 |
+
$hide_mobile = $a["hide_mobile"];
|
96 |
+
$hide_desktop = $a["hide_desktop"];
|
97 |
+
|
98 |
+
if( 'yes' == $is_mobile ) {
|
99 |
+
if ( 'yes' == $hide_mobile ) {
|
100 |
+
return;
|
101 |
+
}
|
102 |
+
} else {
|
103 |
+
if ( 'yes' == $hide_desktop ) {
|
104 |
+
return;
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
|
109 |
+
|
110 |
+
$position = $a["position"];
|
111 |
+
$top = $a["top"];
|
112 |
+
$right = $a["right"];
|
113 |
+
$bottom = $a["bottom"];
|
114 |
+
$left = $a["left"];
|
115 |
+
|
116 |
+
$css = '';
|
117 |
+
|
118 |
+
if ( '' !== $position ) {
|
119 |
+
$css .= 'position:'.$position.';';
|
120 |
+
}
|
121 |
+
if ( '' !== $top ) {
|
122 |
+
$css .= 'top:'.$top.';';
|
123 |
+
}
|
124 |
+
if ( '' !== $right ) {
|
125 |
+
$css .= 'right:'.$right.';';
|
126 |
+
}
|
127 |
+
if ( '' !== $bottom ) {
|
128 |
+
$css .= 'bottom:'.$bottom.';';
|
129 |
+
}
|
130 |
+
if ( '' !== $left ) {
|
131 |
+
$css .= 'left:'.$left.';';
|
132 |
+
}
|
133 |
+
|
134 |
+
// to hide styles in home page
|
135 |
+
$home = $a["home"];
|
136 |
+
|
137 |
+
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
138 |
+
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
139 |
+
$css .= 'display:none;';
|
140 |
+
}
|
141 |
+
|
142 |
+
// By default postion: fixed style hide on home screen,
|
143 |
+
// if plan to show, then add hide='show' ( actually something not equal to 'hide' )
|
144 |
+
if ( 'fixed' == $position && 'show' !== $home && ( is_home() || is_category() || is_archive() ) ) {
|
145 |
+
$css .= 'display:none;';
|
146 |
+
}
|
147 |
+
|
148 |
+
$web_api = 'api';
|
149 |
+
|
150 |
+
// if web.whatsapp checked
|
151 |
+
if ( isset ( $options['webandapi'] ) ) {
|
152 |
+
// mobile
|
153 |
+
if ( 'yes' == $is_mobile ) {
|
154 |
+
$web_api = 'api';
|
155 |
+
} else {
|
156 |
+
$web_api = 'web';
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
$link = "https://$web_api.whatsapp.com/send?phone=$number&text=$pre_filled";
|
161 |
+
$return_type = "chat";
|
162 |
+
|
163 |
+
$style = $a["style"];
|
164 |
+
|
165 |
+
// call to action
|
166 |
+
$call_to_action = $a["call_to_action"];
|
167 |
+
$class_names = "ht-ctc-sc-chat sc-style-$style";
|
168 |
+
|
169 |
+
// analytics
|
170 |
+
$is_ga_enable = 'no';
|
171 |
+
$is_fb_an_enable = 'no';
|
172 |
+
|
173 |
+
if ( isset( $main_options['google_analytics'] ) ) {
|
174 |
+
$is_ga_enable = 'yes';
|
175 |
+
}
|
176 |
+
|
177 |
+
if ( isset( $other['fb_analytics'] ) ) {
|
178 |
+
$is_fb_an_enable = 'yes';
|
179 |
+
}
|
180 |
+
|
181 |
+
|
182 |
+
$o = '';
|
183 |
+
|
184 |
+
// shortcode template file path
|
185 |
+
$sc_path = plugin_dir_path( HT_CTC_PLUGIN_FILE ) . 'new/inc/styles-shortcode/sc-style-' . $style. '.php';
|
186 |
+
|
187 |
+
if ( is_file( $sc_path ) ) {
|
188 |
+
$o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-style="'.$style.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
|
189 |
+
include $sc_path;
|
190 |
+
$o .= '</div>';
|
191 |
+
} else {
|
192 |
+
// if style is not in the list..
|
193 |
+
$img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
|
194 |
+
$o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
|
195 |
+
$o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" style="height: 50px; '.$css.' " >';
|
196 |
+
$o .= '</div>';
|
197 |
+
}
|
198 |
+
|
199 |
+
|
200 |
+
return $o;
|
201 |
+
|
202 |
+
}
|
203 |
+
|
204 |
+
|
205 |
+
}
|
206 |
+
|
207 |
+
|
208 |
+
$shortcode = new HT_CTC_Chat_Shortcode();
|
209 |
+
|
210 |
+
add_action('init', array( $shortcode, 'shortcodes_init' ) );
|
211 |
+
|
212 |
endif; // END class_exists check
|
new/inc/chat/class-ht-ctc-chat.php
CHANGED
@@ -1,80 +1,147 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* WhatsApp Chat - main page ..
|
4 |
-
*
|
5 |
-
* @subpackage chat
|
6 |
-
*/
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
-
|
12 |
-
if ( ! class_exists( 'HT_CTC_Chat' ) ) :
|
13 |
-
|
14 |
-
class HT_CTC_Chat {
|
15 |
-
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Which features are enable - based on this call function ..
|
19 |
-
*/
|
20 |
-
public function chat() {
|
21 |
-
|
22 |
-
$options = get_option('ht_ctc_chat_options');
|
23 |
-
|
24 |
-
|
25 |
-
// show/hide ..
|
26 |
-
include_once HT_CTC_PLUGIN_DIR .'new/inc/chat/chat-show-hide.php';
|
27 |
-
|
28 |
-
if ( 'no' == $display ) {
|
29 |
-
return;
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
//
|
36 |
-
|
37 |
-
|
38 |
-
//
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
$
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* WhatsApp Chat - main page ..
|
4 |
+
*
|
5 |
+
* @subpackage chat
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
if ( ! class_exists( 'HT_CTC_Chat' ) ) :
|
13 |
+
|
14 |
+
class HT_CTC_Chat {
|
15 |
+
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Which features are enable - based on this call function ..
|
19 |
+
*/
|
20 |
+
public function chat() {
|
21 |
+
|
22 |
+
$options = get_option('ht_ctc_chat_options');
|
23 |
+
|
24 |
+
|
25 |
+
// show/hide ..
|
26 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/chat/chat-show-hide.php';
|
27 |
+
|
28 |
+
if ( 'no' == $display ) {
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
$main_options = ht_ctc()->values->ctc_main_options;
|
33 |
+
$other = get_option('ht_ctc_othersettings');
|
34 |
+
|
35 |
+
// position
|
36 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/chat/chat-position.php';
|
37 |
+
|
38 |
+
// is mobile
|
39 |
+
$is_mobile = ht_ctc()->device_type->is_mobile();
|
40 |
+
|
41 |
+
$wp_device = '';
|
42 |
+
|
43 |
+
// style
|
44 |
+
if ( 'yes' == $is_mobile ) {
|
45 |
+
$style = esc_attr( $options['style_mobile'] );
|
46 |
+
$wp_device = 'mobile';
|
47 |
+
} else {
|
48 |
+
$style = esc_attr( $options['style_desktop'] );
|
49 |
+
$wp_device = 'desktop';
|
50 |
+
}
|
51 |
+
|
52 |
+
// call to action
|
53 |
+
// todo localization for number, .. ( at variables page ) - call to action for share, group
|
54 |
+
$call_to_action_db = esc_attr( $options['call_to_action'] );
|
55 |
+
$call_to_action = __( $call_to_action_db , 'click-to-chat-for-whatsapp' );
|
56 |
+
|
57 |
+
|
58 |
+
// call to action - at page level
|
59 |
+
$page_id = get_the_ID();
|
60 |
+
$page_call_to_action = esc_attr( get_post_meta( $page_id, 'ht_ctc_page_call_to_action', true ) );
|
61 |
+
|
62 |
+
if ( isset( $page_call_to_action ) && '' !== $page_call_to_action ){
|
63 |
+
$call_to_action = $page_call_to_action;
|
64 |
+
}
|
65 |
+
|
66 |
+
// class names
|
67 |
+
$class_names = "ht-ctc-chat style-$style $wp_device ctc-analytics";
|
68 |
+
|
69 |
+
$page_id = get_the_ID();
|
70 |
+
$page_url = get_permalink();
|
71 |
+
$post_title = esc_html( get_the_title() );
|
72 |
+
|
73 |
+
// number
|
74 |
+
$number = esc_attr( $options['number'] );
|
75 |
+
|
76 |
+
// number - at page level
|
77 |
+
$page_number = esc_attr( get_post_meta( $page_id, 'ht_ctc_page_number', true ) );
|
78 |
+
|
79 |
+
if ( isset( $page_number ) && '' !== $page_number ){
|
80 |
+
$number = $page_number;
|
81 |
+
}
|
82 |
+
|
83 |
+
// if random number feature, this have to modify (ltrim, preg_replace)
|
84 |
+
// $number = preg_replace('/[^0-9,\s]/', '', $number );
|
85 |
+
$number = preg_replace('/\D/', '', $number );
|
86 |
+
$number = ltrim( $number, '0' );
|
87 |
+
|
88 |
+
|
89 |
+
// prefilled text
|
90 |
+
$pre_filled = esc_attr( $options['pre_filled'] );
|
91 |
+
$pre_filled = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $pre_filled );
|
92 |
+
|
93 |
+
// analytics
|
94 |
+
$is_ga_enable = 'no';
|
95 |
+
$is_fb_an_enable = 'no';
|
96 |
+
|
97 |
+
if ( isset( $main_options['google_analytics'] ) ) {
|
98 |
+
$is_ga_enable = 'yes';
|
99 |
+
}
|
100 |
+
|
101 |
+
if ( isset( $other['fb_analytics'] ) ) {
|
102 |
+
$is_fb_an_enable = 'yes';
|
103 |
+
}
|
104 |
+
|
105 |
+
// webapi: web/api.whatsapp, wa: wa.me
|
106 |
+
$webandapi = 'wa';
|
107 |
+
if ( isset( $options['webandapi'] ) ) {
|
108 |
+
$webandapi = 'webapi';
|
109 |
+
}
|
110 |
+
|
111 |
+
// screen: screen_size@js, http: httpuseragent@php
|
112 |
+
$detectdevice = esc_attr( $other['detectdevice'] );
|
113 |
+
|
114 |
+
// call style
|
115 |
+
$path = plugin_dir_path( HT_CTC_PLUGIN_FILE ) . 'new/inc/styles/style-' . $style. '.php';
|
116 |
+
|
117 |
+
if ( is_file( $path ) ) {
|
118 |
+
?>
|
119 |
+
<div onclick="ht_ctc_click(this);" class="<?php echo $class_names ?>"
|
120 |
+
style="position: fixed; <?php echo $position ?> cursor: pointer; z-index: 99999999;"
|
121 |
+
data-return_type="chat"
|
122 |
+
data-style="<?php echo $style ?>"
|
123 |
+
data-number="<?php echo $number ?>"
|
124 |
+
data-pre_filled="<?php echo $pre_filled ?>"
|
125 |
+
data-is_ga_enable="<?php echo $is_ga_enable ?>"
|
126 |
+
data-is_fb_an_enable="<?php echo $is_fb_an_enable ?>"
|
127 |
+
data-webandapi="<?php echo $webandapi ?>"
|
128 |
+
data-detectdevice="<?php echo $detectdevice ?>"
|
129 |
+
data-wpdevice="<?php echo $wp_device ?>"
|
130 |
+
>
|
131 |
+
<?php include $path; ?>
|
132 |
+
</div>
|
133 |
+
<?php
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
}
|
138 |
+
|
139 |
+
}
|
140 |
+
|
141 |
+
// new HT_CTC_Chat();
|
142 |
+
|
143 |
+
$ht_ctc_chat = new HT_CTC_Chat();
|
144 |
+
add_action( 'wp_footer', array( $ht_ctc_chat, 'chat' ) );
|
145 |
+
|
146 |
+
|
147 |
endif; // END class_exists check
|
new/inc/class-ht-ctc-main.php
CHANGED
@@ -1,69 +1,69 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* main file to get started for front end ..
|
4 |
-
*/
|
5 |
-
|
6 |
-
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
if ( ! class_exists( 'HT_CTC_Main' ) ) :
|
10 |
-
|
11 |
-
class HT_CTC_Main {
|
12 |
-
|
13 |
-
public function __construct() {
|
14 |
-
$this->enables();
|
15 |
-
}
|
16 |
-
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Which features are enable - based on this call function..
|
20 |
-
*
|
21 |
-
*/
|
22 |
-
public function enables() {
|
23 |
-
|
24 |
-
$options = get_option( 'ht_ctc_main_options' );
|
25 |
-
|
26 |
-
|
27 |
-
// if enable call 'chat' features
|
28 |
-
if ( isset( $options['enable_chat'] ) ) {
|
29 |
-
include_once HT_CTC_PLUGIN_DIR .'new/inc/chat/class-ht-ctc-chat.php';
|
30 |
-
|
31 |
-
include_once HT_CTC_PLUGIN_DIR . 'new/inc/chat/class-ht-ctc-chat-shortcode.php';
|
32 |
-
}
|
33 |
-
|
34 |
-
|
35 |
-
// if enable call 'group' features
|
36 |
-
if ( isset( $options['enable_group'] ) ) {
|
37 |
-
include_once HT_CTC_PLUGIN_DIR .'new/inc/group/class-ht-ctc-group.php';
|
38 |
-
|
39 |
-
include_once HT_CTC_PLUGIN_DIR . 'new/inc/group/class-ht-ctc-group-shortcode.php';
|
40 |
-
|
41 |
-
}
|
42 |
-
|
43 |
-
// if enabled call 'share' features
|
44 |
-
if ( isset( $options['enable_share'] ) ) {
|
45 |
-
include_once HT_CTC_PLUGIN_DIR .'new/inc/share/class-ht-ctc-share.php';
|
46 |
-
|
47 |
-
include_once HT_CTC_PLUGIN_DIR . 'new/inc/share/class-ht-ctc-share-shortcode.php';
|
48 |
-
|
49 |
-
}
|
50 |
-
}
|
51 |
-
|
52 |
-
|
53 |
-
public function variables() {
|
54 |
-
|
55 |
-
// include variables.. as of now display on all pages ..
|
56 |
-
include_once HT_CTC_PLUGIN_DIR .'new/inc/commons/ht-ctc-variables.php';
|
57 |
-
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
}
|
62 |
-
|
63 |
-
$ht_ctc_main = new HT_CTC_Main();
|
64 |
-
|
65 |
-
// variables
|
66 |
-
add_action( 'wp_footer', array( $ht_ctc_main, 'variables' ) );
|
67 |
-
|
68 |
-
|
69 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* main file to get started for front end ..
|
4 |
+
*/
|
5 |
+
|
6 |
+
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
+
|
9 |
+
if ( ! class_exists( 'HT_CTC_Main' ) ) :
|
10 |
+
|
11 |
+
class HT_CTC_Main {
|
12 |
+
|
13 |
+
public function __construct() {
|
14 |
+
$this->enables();
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Which features are enable - based on this call function..
|
20 |
+
*
|
21 |
+
*/
|
22 |
+
public function enables() {
|
23 |
+
|
24 |
+
$options = get_option( 'ht_ctc_main_options' );
|
25 |
+
|
26 |
+
|
27 |
+
// if enable call 'chat' features
|
28 |
+
if ( isset( $options['enable_chat'] ) ) {
|
29 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/chat/class-ht-ctc-chat.php';
|
30 |
+
|
31 |
+
include_once HT_CTC_PLUGIN_DIR . 'new/inc/chat/class-ht-ctc-chat-shortcode.php';
|
32 |
+
}
|
33 |
+
|
34 |
+
|
35 |
+
// if enable call 'group' features
|
36 |
+
if ( isset( $options['enable_group'] ) ) {
|
37 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/group/class-ht-ctc-group.php';
|
38 |
+
|
39 |
+
include_once HT_CTC_PLUGIN_DIR . 'new/inc/group/class-ht-ctc-group-shortcode.php';
|
40 |
+
|
41 |
+
}
|
42 |
+
|
43 |
+
// if enabled call 'share' features
|
44 |
+
if ( isset( $options['enable_share'] ) ) {
|
45 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/share/class-ht-ctc-share.php';
|
46 |
+
|
47 |
+
include_once HT_CTC_PLUGIN_DIR . 'new/inc/share/class-ht-ctc-share-shortcode.php';
|
48 |
+
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
|
53 |
+
public function variables() {
|
54 |
+
|
55 |
+
// include variables.. as of now display on all pages ..
|
56 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/commons/ht-ctc-variables.php';
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
}
|
62 |
+
|
63 |
+
$ht_ctc_main = new HT_CTC_Main();
|
64 |
+
|
65 |
+
// variables
|
66 |
+
add_action( 'wp_footer', array( $ht_ctc_main, 'variables' ) );
|
67 |
+
|
68 |
+
|
69 |
endif; // END class_exists check
|
new/inc/class-ht-ctc-register.php
CHANGED
@@ -1,64 +1,95 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* three function - while activate , deactivate , uninstall( while deleting )
|
4 |
-
* as plan to preserve the database options which usefull when reinstall plugin/ update
|
5 |
-
* so that setting wont last
|
6 |
-
* and as no custom post types or so.. to flush rewrite rules
|
7 |
-
* so deactivate, uninstall not doing any thing here
|
8 |
-
*
|
9 |
-
* @package ctc
|
10 |
-
* @since 2.0
|
11 |
-
*/
|
12 |
-
|
13 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
-
|
15 |
-
if ( ! class_exists( 'HT_CTC_Register' ) ) :
|
16 |
-
|
17 |
-
class HT_CTC_Register {
|
18 |
-
|
19 |
-
// when plugin activate
|
20 |
-
public static function activate() {
|
21 |
-
|
22 |
-
|
23 |
-
if( version_compare( get_bloginfo('version'), '3.1.0', '<') ) {
|
24 |
-
wp_die( 'please update WordPress' );
|
25 |
-
}
|
26 |
-
|
27 |
-
// add default values to options db
|
28 |
-
include_once( HT_CTC_PLUGIN_DIR . '/new/admin/class-ht-ctc-db.php' );
|
29 |
-
}
|
30 |
-
|
31 |
-
// when plugin deactivate
|
32 |
-
public static function deactivate() {
|
33 |
-
}
|
34 |
-
|
35 |
-
// when plugin uninstall
|
36 |
-
public static function uninstall() {
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* three function - while activate , deactivate , uninstall( while deleting )
|
4 |
+
* as plan to preserve the database options which usefull when reinstall plugin/ update
|
5 |
+
* so that setting wont last
|
6 |
+
* and as no custom post types or so.. to flush rewrite rules
|
7 |
+
* so deactivate, uninstall not doing any thing here
|
8 |
+
*
|
9 |
+
* @package ctc
|
10 |
+
* @since 2.0
|
11 |
+
*/
|
12 |
+
|
13 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
14 |
+
|
15 |
+
if ( ! class_exists( 'HT_CTC_Register' ) ) :
|
16 |
+
|
17 |
+
class HT_CTC_Register {
|
18 |
+
|
19 |
+
// when plugin activate
|
20 |
+
public static function activate() {
|
21 |
+
|
22 |
+
|
23 |
+
if( version_compare( get_bloginfo('version'), '3.1.0', '<') ) {
|
24 |
+
wp_die( 'please update WordPress' );
|
25 |
+
}
|
26 |
+
|
27 |
+
// add default values to options db
|
28 |
+
include_once( HT_CTC_PLUGIN_DIR . '/new/admin/class-ht-ctc-db.php' );
|
29 |
+
}
|
30 |
+
|
31 |
+
// when plugin deactivate
|
32 |
+
public static function deactivate() {
|
33 |
+
}
|
34 |
+
|
35 |
+
// when plugin uninstall
|
36 |
+
public static function uninstall() {
|
37 |
+
|
38 |
+
$options = get_option( 'ht_ctc_othersettings' );
|
39 |
+
|
40 |
+
// delete plugin settings from db
|
41 |
+
if ( isset ( $options['delete_options'] ) ) {
|
42 |
+
|
43 |
+
delete_option( 'ht_ctc_main_options' );
|
44 |
+
delete_option( 'ht_ctc_chat_options' );
|
45 |
+
delete_option( 'ht_ctc_plugin_details' );
|
46 |
+
delete_option( 'ht_ctc_group' );
|
47 |
+
delete_option( 'ht_ctc_share' );
|
48 |
+
delete_option( 'ht_ctc_one_time' );
|
49 |
+
delete_option( 'ht_ctc_switch' );
|
50 |
+
delete_option( 'ht_ctc_s1' );
|
51 |
+
delete_option( 'ht_ctc_s2' );
|
52 |
+
delete_option( 'ht_ctc_s3' );
|
53 |
+
delete_option( 'ht_ctc_s4' );
|
54 |
+
delete_option( 'ht_ctc_s5' );
|
55 |
+
delete_option( 'ht_ctc_s6' );
|
56 |
+
delete_option( 'ht_ctc_s7' );
|
57 |
+
delete_option( 'ht_ctc_s8' );
|
58 |
+
delete_option( 'ht_ctc_s99' );
|
59 |
+
|
60 |
+
delete_option( 'ccw_options' );
|
61 |
+
delete_option( 'ccw_options_cs' );
|
62 |
+
delete_option( 'ht_ccw_ga' );
|
63 |
+
delete_option( 'ht_ccw_fb' );
|
64 |
+
delete_option( 'ht_ctc_chat_options' );
|
65 |
+
|
66 |
+
}
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
+
// for plugin updates - run on plugins_loaded
|
71 |
+
public static function version_check() {
|
72 |
+
|
73 |
+
$ht_ctc_plugin_details = get_option('ht_ctc_plugin_details');
|
74 |
+
|
75 |
+
if ( HT_CTC_VERSION !== $ht_ctc_plugin_details['version'] ) {
|
76 |
+
// to update the plugin - just like activate plugin
|
77 |
+
self::activate();
|
78 |
+
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
// add settings page links in plugins page - at plugin
|
83 |
+
public static function plugin_action_links( $links ) {
|
84 |
+
$new_links = array(
|
85 |
+
'settings' => '<a href="' . admin_url( 'admin.php?page=click-to-chat' ) . '">' . __( 'Settings' , 'click-to-chat-for-whatsapp' ) . '</a>',
|
86 |
+
);
|
87 |
+
|
88 |
+
return array_merge( $new_links, $links );
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
}
|
94 |
+
|
95 |
endif; // END class_exists check
|
new/inc/commons/class-ht-ctc-ismobile.php
CHANGED
@@ -1,70 +1,70 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* find mobile device or not ..
|
4 |
-
*/
|
5 |
-
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
-
|
8 |
-
if ( ! class_exists( 'HT_CTC_IsMobile' ) ) :
|
9 |
-
|
10 |
-
class HT_CTC_IsMobile {
|
11 |
-
|
12 |
-
/**
|
13 |
-
* return is mobile or not
|
14 |
-
* while using in condition check with 1 not with 2
|
15 |
-
* @var int - if mobile : 1 ? 2
|
16 |
-
*/
|
17 |
-
public $is_mobile;
|
18 |
-
|
19 |
-
public function __construct() {
|
20 |
-
|
21 |
-
// $this->is_mobile = $this->is_mobile();
|
22 |
-
$this->is_mobile = $this->is_mobile();
|
23 |
-
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Check is mobile device or not
|
29 |
-
* wp_is_mobile - if true then 1, else 2
|
30 |
-
*/
|
31 |
-
public function is_mobile() {
|
32 |
-
|
33 |
-
if ( function_exists( 'wp_is_mobile' ) ) {
|
34 |
-
if ( wp_is_mobile() ) {
|
35 |
-
return $this->is_mobile = 'yes';
|
36 |
-
} else {
|
37 |
-
return $this->is_mobile = 'no';
|
38 |
-
}
|
39 |
-
} else {
|
40 |
-
// added like this - an user mention that wp_is_mobile uncauched error
|
41 |
-
if ( $this->php_is_mobile() ) {
|
42 |
-
return $this->is_mobile = 'yes';
|
43 |
-
} else {
|
44 |
-
return $this->is_mobile = 'no';
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
/**
|
52 |
-
* @uses $this -> is_mobile
|
53 |
-
*
|
54 |
-
* fallback for wp_is_mobile
|
55 |
-
* php way of find is mobile - but not with wordpress defined wp_is_mobile
|
56 |
-
*
|
57 |
-
* wp_is_mobile is more efficient
|
58 |
-
* - uses if in user server cause Fatal error: Uncaught Error
|
59 |
-
* @return boolean
|
60 |
-
*/
|
61 |
-
public function php_is_mobile() {
|
62 |
-
// return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
|
63 |
-
return preg_match("/(android|webos|avantgo|iphone|ipad|ipod|blackberry|iemobile|bolt|boost|cricket|docomo|fone|hiptop|mini|opera mini|kitkat|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
|
64 |
-
}
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
}
|
69 |
-
|
70 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* find mobile device or not ..
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
if ( ! class_exists( 'HT_CTC_IsMobile' ) ) :
|
9 |
+
|
10 |
+
class HT_CTC_IsMobile {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* return is mobile or not
|
14 |
+
* while using in condition check with 1 not with 2
|
15 |
+
* @var int - if mobile : 1 ? 2
|
16 |
+
*/
|
17 |
+
public $is_mobile;
|
18 |
+
|
19 |
+
public function __construct() {
|
20 |
+
|
21 |
+
// $this->is_mobile = $this->is_mobile();
|
22 |
+
$this->is_mobile = $this->is_mobile();
|
23 |
+
|
24 |
+
}
|
25 |
+
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Check is mobile device or not
|
29 |
+
* wp_is_mobile - if true then 1, else 2
|
30 |
+
*/
|
31 |
+
public function is_mobile() {
|
32 |
+
|
33 |
+
if ( function_exists( 'wp_is_mobile' ) ) {
|
34 |
+
if ( wp_is_mobile() ) {
|
35 |
+
return $this->is_mobile = 'yes';
|
36 |
+
} else {
|
37 |
+
return $this->is_mobile = 'no';
|
38 |
+
}
|
39 |
+
} else {
|
40 |
+
// added like this - an user mention that wp_is_mobile uncauched error
|
41 |
+
if ( $this->php_is_mobile() ) {
|
42 |
+
return $this->is_mobile = 'yes';
|
43 |
+
} else {
|
44 |
+
return $this->is_mobile = 'no';
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
+
/**
|
52 |
+
* @uses $this -> is_mobile
|
53 |
+
*
|
54 |
+
* fallback for wp_is_mobile
|
55 |
+
* php way of find is mobile - but not with wordpress defined wp_is_mobile
|
56 |
+
*
|
57 |
+
* wp_is_mobile is more efficient
|
58 |
+
* - uses if in user server cause Fatal error: Uncaught Error
|
59 |
+
* @return boolean
|
60 |
+
*/
|
61 |
+
public function php_is_mobile() {
|
62 |
+
// return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
|
63 |
+
return preg_match("/(android|webos|avantgo|iphone|ipad|ipod|blackberry|iemobile|bolt|boost|cricket|docomo|fone|hiptop|mini|opera mini|kitkat|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
|
64 |
+
}
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
endif; // END class_exists check
|
new/inc/commons/class-ht-ctc-scripts.php
CHANGED
@@ -1,42 +1,42 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Register css styles, javascript files front end
|
4 |
-
*
|
5 |
-
* @package ctc
|
6 |
-
* @since 2.0
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
if ( ! class_exists( 'HT_CTC_Scripts' ) ) :
|
12 |
-
|
13 |
-
class HT_CTC_Scripts {
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Register styles - front end ( non admin )
|
18 |
-
*
|
19 |
-
* @since 1.0
|
20 |
-
*/
|
21 |
-
function register_scripts() {
|
22 |
-
|
23 |
-
//
|
24 |
-
|
25 |
-
|
26 |
-
// style-8 - enqueue at page
|
27 |
-
wp_register_style('ht_ctc_mdstyle8_css', plugins_url( 'new/inc/assets/css/mdstyle8.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
|
28 |
-
|
29 |
-
|
30 |
-
// js
|
31 |
-
wp_enqueue_script( 'ht_ctc_app_js', plugins_url( 'new/inc/assets/js/app.js', HT_CTC_PLUGIN_FILE ), array ( 'jquery' ), HT_CTC_VERSION, true );
|
32 |
-
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
-
}
|
37 |
-
|
38 |
-
$ht_ctc_scripts = new HT_CTC_Scripts();
|
39 |
-
|
40 |
-
add_action('wp_enqueue_scripts', array( $ht_ctc_scripts, 'register_scripts' ) );
|
41 |
-
|
42 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Register css styles, javascript files front end
|
4 |
+
*
|
5 |
+
* @package ctc
|
6 |
+
* @since 2.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
if ( ! class_exists( 'HT_CTC_Scripts' ) ) :
|
12 |
+
|
13 |
+
class HT_CTC_Scripts {
|
14 |
+
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Register styles - front end ( non admin )
|
18 |
+
*
|
19 |
+
* @since 1.0
|
20 |
+
*/
|
21 |
+
function register_scripts() {
|
22 |
+
|
23 |
+
// s7, s8 - fonts - enqueue at style page
|
24 |
+
wp_register_style('ht_ctc_font_css', plugins_url( 'new/inc/assets/css/font.css', HT_CTC_PLUGIN_FILE ), '', HT_CTC_VERSION );
|
25 |
+
|
26 |
+
// style-8 - enqueue at style page
|
27 |
+
wp_register_style('ht_ctc_mdstyle8_css', plugins_url( 'new/inc/assets/css/mdstyle8.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
|
28 |
+
|
29 |
+
|
30 |
+
// js
|
31 |
+
wp_enqueue_script( 'ht_ctc_app_js', plugins_url( 'new/inc/assets/js/app.js', HT_CTC_PLUGIN_FILE ), array ( 'jquery' ), HT_CTC_VERSION, true );
|
32 |
+
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
$ht_ctc_scripts = new HT_CTC_Scripts();
|
39 |
+
|
40 |
+
add_action('wp_enqueue_scripts', array( $ht_ctc_scripts, 'register_scripts' ) );
|
41 |
+
|
42 |
endif; // END class_exists check
|
new/inc/commons/class-ht-ctc-values.php
CHANGED
@@ -1,56 +1,57 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* variables/values.. db values..
|
4 |
-
*
|
5 |
-
* ht_ctc()->values->ctc_options['number'];
|
6 |
-
* or
|
7 |
-
* $values = ht_ctc()->values->ctc_options;
|
8 |
-
* $values["number"];
|
9 |
-
*
|
10 |
-
* similar to variables.php in /prev
|
11 |
-
* @package ctc
|
12 |
-
* @since 2.0
|
13 |
-
*/
|
14 |
-
|
15 |
-
|
16 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
17 |
-
|
18 |
-
if ( ! class_exists( 'HT_CTC_Values' ) ) :
|
19 |
-
|
20 |
-
class HT_CTC_Values {
|
21 |
-
|
22 |
-
|
23 |
-
/**
|
24 |
-
* db options table - ht_ctc_options values
|
25 |
-
*
|
26 |
-
* @var array get_options ht_ctc_options
|
27 |
-
*/
|
28 |
-
// public $ctc_options;
|
29 |
-
|
30 |
-
|
31 |
-
/**
|
32 |
-
* db options table -
|
33 |
-
*
|
34 |
-
* @var array get_options
|
35 |
-
*/
|
36 |
-
public $
|
37 |
-
|
38 |
-
|
39 |
-
public function __construct() {
|
40 |
-
$this->
|
41 |
-
// $this->
|
42 |
-
}
|
43 |
-
|
44 |
-
|
45 |
-
public function
|
46 |
-
$this->
|
47 |
-
}
|
48 |
-
|
49 |
-
//
|
50 |
-
|
51 |
-
//
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
56 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* variables/values.. db values..
|
4 |
+
*
|
5 |
+
* ht_ctc()->values->ctc_options['number'];
|
6 |
+
* or
|
7 |
+
* $values = ht_ctc()->values->ctc_options;
|
8 |
+
* $values["number"];
|
9 |
+
*
|
10 |
+
* similar to variables.php in /prev
|
11 |
+
* @package ctc
|
12 |
+
* @since 2.0
|
13 |
+
*/
|
14 |
+
|
15 |
+
|
16 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
17 |
+
|
18 |
+
if ( ! class_exists( 'HT_CTC_Values' ) ) :
|
19 |
+
|
20 |
+
class HT_CTC_Values {
|
21 |
+
|
22 |
+
|
23 |
+
/**
|
24 |
+
* db options table - ht_ctc_options values
|
25 |
+
*
|
26 |
+
* @var array get_options ht_ctc_options
|
27 |
+
*/
|
28 |
+
// public $ctc_options;
|
29 |
+
|
30 |
+
|
31 |
+
/**
|
32 |
+
* db options table - ht_ctc_main_options values
|
33 |
+
*
|
34 |
+
* @var array get_options ht_ctc_main_options
|
35 |
+
*/
|
36 |
+
public $ctc_main_options;
|
37 |
+
|
38 |
+
|
39 |
+
public function __construct() {
|
40 |
+
$this->ctc_main_options_fn();
|
41 |
+
// $this->ctc_chat_options_fn();
|
42 |
+
}
|
43 |
+
|
44 |
+
// main options
|
45 |
+
public function ctc_main_options_fn() {
|
46 |
+
$this->ctc_main_options = get_option('ht_ctc_main_options');
|
47 |
+
}
|
48 |
+
|
49 |
+
// chat options
|
50 |
+
// public function ctc_chat_options_fn() {
|
51 |
+
// $this->ctc_chat_options = get_option('ht_ctc_chat_options');
|
52 |
+
// }
|
53 |
+
|
54 |
+
|
55 |
+
}
|
56 |
+
|
57 |
endif; // END class_exists check
|
new/inc/commons/ht-ctc-variables.php
CHANGED
@@ -1,149 +1,150 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Variables
|
4 |
-
*
|
5 |
-
* uses to call at javascript..
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
$main_options = get_option('ht_ctc_main_options');
|
12 |
-
|
13 |
-
|
14 |
-
$
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
$
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
'
|
39 |
-
'
|
40 |
-
'
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
$
|
53 |
-
|
54 |
-
// number
|
55 |
-
$
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
$
|
65 |
-
|
66 |
-
|
67 |
-
$
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
$
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
'
|
81 |
-
'
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
$
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
$
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
'
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
149 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Variables
|
4 |
+
*
|
5 |
+
* uses to call at javascript..
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
$main_options = get_option('ht_ctc_main_options');
|
12 |
+
$other = get_option('ht_ctc_othersettings');
|
13 |
+
|
14 |
+
$page_id = get_the_ID();
|
15 |
+
$post_title = esc_html( get_the_title() );
|
16 |
+
|
17 |
+
|
18 |
+
// Analytics - to have to add another var .. and pass main options
|
19 |
+
$is_ga_enable = 'no';
|
20 |
+
$is_fb_an_enable = 'no';
|
21 |
+
|
22 |
+
if ( isset( $main_options['google_analytics'] ) ) {
|
23 |
+
$is_ga_enable = 'yes';
|
24 |
+
}
|
25 |
+
|
26 |
+
if ( isset( $other['fb_analytics'] ) ) {
|
27 |
+
$is_fb_an_enable = 'yes';
|
28 |
+
}
|
29 |
+
|
30 |
+
$ht_ctc_options = ht_ctc();
|
31 |
+
|
32 |
+
// is_mobile
|
33 |
+
$is_mobile = $ht_ctc_options->device_type->is_mobile;
|
34 |
+
|
35 |
+
|
36 |
+
// variables ..
|
37 |
+
$ht_ctc_var = array (
|
38 |
+
'is_mobile' => $is_mobile,
|
39 |
+
'post_title' => $post_title,
|
40 |
+
'is_ga_enable' => $is_ga_enable,
|
41 |
+
'is_fb_an_enable' => $is_fb_an_enable,
|
42 |
+
);
|
43 |
+
|
44 |
+
wp_localize_script( 'ht_ctc_app_js', 'ht_ctc_var', $ht_ctc_var );
|
45 |
+
|
46 |
+
|
47 |
+
/**
|
48 |
+
* if Chat enabled
|
49 |
+
*/
|
50 |
+
if ( isset( $main_options['enable_chat'] ) ) {
|
51 |
+
|
52 |
+
$ht_ctc_chat = get_option('ht_ctc_chat_options');
|
53 |
+
|
54 |
+
// number
|
55 |
+
$number = esc_attr( $ht_ctc_chat['number'] );
|
56 |
+
|
57 |
+
// number - at page level
|
58 |
+
$page_number = esc_attr( get_post_meta( $page_id, 'ht_ctc_page_number', true ) );
|
59 |
+
|
60 |
+
if ( isset( $page_number ) && '' !== $page_number ){
|
61 |
+
$number = $page_number;
|
62 |
+
}
|
63 |
+
|
64 |
+
$chat_show_or_hide = esc_attr( $ht_ctc_chat['show_or_hide'] );
|
65 |
+
|
66 |
+
|
67 |
+
$page_url = get_permalink();
|
68 |
+
|
69 |
+
// chat
|
70 |
+
$pre_filled = esc_attr( $ht_ctc_chat['pre_filled'] );
|
71 |
+
$pre_filled = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $pre_filled );
|
72 |
+
|
73 |
+
$chat_webandapi = 'wa';
|
74 |
+
if ( isset( $ht_ctc_chat['webandapi'] ) ) {
|
75 |
+
$chat_webandapi = 'webapi';
|
76 |
+
}
|
77 |
+
|
78 |
+
// chat variables ..
|
79 |
+
$ht_ctc_var_chat = array (
|
80 |
+
'number' => $number,
|
81 |
+
'pre_filled' => $pre_filled,
|
82 |
+
'show_or_hide' => $chat_show_or_hide,
|
83 |
+
'webandapi' => $chat_webandapi
|
84 |
+
);
|
85 |
+
|
86 |
+
|
87 |
+
wp_localize_script( 'ht_ctc_app_js', 'ht_ctc_var_chat', $ht_ctc_var_chat );
|
88 |
+
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
+
/**
|
93 |
+
* if group enabled
|
94 |
+
*/
|
95 |
+
if ( isset( $main_options['enable_group'] ) ) {
|
96 |
+
|
97 |
+
|
98 |
+
$ht_ctc_group = get_option('ht_ctc_group');
|
99 |
+
|
100 |
+
$group_id = esc_attr( $ht_ctc_group['group_id'] );
|
101 |
+
|
102 |
+
// group_id - at page level
|
103 |
+
$page_group_id = esc_attr( get_post_meta( $page_id, 'ht_ctc_page_group_id', true ) );
|
104 |
+
|
105 |
+
if ( isset( $page_group_id ) && '' !== $page_group_id ){
|
106 |
+
$group_id = $page_group_id;
|
107 |
+
}
|
108 |
+
|
109 |
+
$group_show_or_hide = esc_attr( $ht_ctc_group['show_or_hide'] );
|
110 |
+
|
111 |
+
// Group variables
|
112 |
+
$ht_ctc_var_group = array (
|
113 |
+
'group_id' => $group_id,
|
114 |
+
'show_or_hide' => $group_show_or_hide
|
115 |
+
);
|
116 |
+
|
117 |
+
|
118 |
+
wp_localize_script( 'ht_ctc_app_js', 'ht_ctc_var_group', $ht_ctc_var_group );
|
119 |
+
|
120 |
+
}
|
121 |
+
|
122 |
+
/**
|
123 |
+
* if share enabled
|
124 |
+
*/
|
125 |
+
if ( isset( $main_options['enable_share'] ) ) {
|
126 |
+
|
127 |
+
$ht_ctc_share = get_option('ht_ctc_share');
|
128 |
+
|
129 |
+
$share_text = esc_attr( $ht_ctc_share['share_text'] );
|
130 |
+
|
131 |
+
// if ( is_home() || is_front_page() ) {
|
132 |
+
if ( is_home() ) {
|
133 |
+
$post_title = HT_CTC_BLOG_NAME;
|
134 |
+
$page_url = get_bloginfo('url');
|
135 |
+
}
|
136 |
+
|
137 |
+
$share_text = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $share_text );
|
138 |
+
|
139 |
+
$share_show_or_hide = $ht_ctc_share['show_or_hide'];
|
140 |
+
|
141 |
+
// Share variables
|
142 |
+
$ht_ctc_var_share = array (
|
143 |
+
'share_text' => $share_text,
|
144 |
+
'show_or_hide' => $share_show_or_hide
|
145 |
+
);
|
146 |
+
|
147 |
+
|
148 |
+
wp_localize_script( 'ht_ctc_app_js', 'ht_ctc_var_share', $ht_ctc_var_share );
|
149 |
+
|
150 |
}
|
new/inc/group/class-ht-ctc-group-shortcode.php
CHANGED
@@ -1,177 +1,193 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* shortcodes
|
4 |
-
* for list of attribute support check -> shortcode_atts ( $a )
|
5 |
-
*
|
6 |
-
* @package chat
|
7 |
-
* @since 2.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
-
|
12 |
-
if ( ! class_exists( 'HT_CTC_Group_Shortcode' ) ) :
|
13 |
-
|
14 |
-
class HT_CTC_Group_Shortcode {
|
15 |
-
|
16 |
-
|
17 |
-
// Register shortcode
|
18 |
-
public function shortcodes_init() {
|
19 |
-
add_shortcode( 'ht-ctc-group', array( $this, 'shortcode' ) );
|
20 |
-
}
|
21 |
-
|
22 |
-
// call back function - shortcode
|
23 |
-
public function shortcode( $atts = [], $content = null, $shortcode = '' ) {
|
24 |
-
|
25 |
-
$options = get_option('ht_ctc_group');
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
$
|
31 |
-
|
32 |
-
$
|
33 |
-
|
34 |
-
$
|
35 |
-
|
36 |
-
$
|
37 |
-
|
38 |
-
|
39 |
-
$
|
40 |
-
|
41 |
-
$
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
// $
|
49 |
-
|
50 |
-
|
51 |
-
$
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
'
|
56 |
-
|
57 |
-
'
|
58 |
-
|
59 |
-
'
|
60 |
-
'
|
61 |
-
'
|
62 |
-
'
|
63 |
-
'
|
64 |
-
'
|
65 |
-
|
66 |
-
|
67 |
-
'
|
68 |
-
|
69 |
-
'
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
$
|
102 |
-
$
|
103 |
-
$
|
104 |
-
|
105 |
-
$
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
$
|
145 |
-
|
146 |
-
$
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
$
|
153 |
-
|
154 |
-
if (
|
155 |
-
|
156 |
-
}
|
157 |
-
|
158 |
-
|
159 |
-
$
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* shortcodes
|
4 |
+
* for list of attribute support check -> shortcode_atts ( $a )
|
5 |
+
*
|
6 |
+
* @package chat
|
7 |
+
* @since 2.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
if ( ! class_exists( 'HT_CTC_Group_Shortcode' ) ) :
|
13 |
+
|
14 |
+
class HT_CTC_Group_Shortcode {
|
15 |
+
|
16 |
+
|
17 |
+
// Register shortcode
|
18 |
+
public function shortcodes_init() {
|
19 |
+
add_shortcode( 'ht-ctc-group', array( $this, 'shortcode' ) );
|
20 |
+
}
|
21 |
+
|
22 |
+
// call back function - shortcode
|
23 |
+
public function shortcode( $atts = [], $content = null, $shortcode = '' ) {
|
24 |
+
|
25 |
+
$options = get_option('ht_ctc_group');
|
26 |
+
$main_options = ht_ctc()->values->ctc_main_options;
|
27 |
+
$other = get_option('ht_ctc_othersettings');
|
28 |
+
|
29 |
+
|
30 |
+
$group_id = esc_attr( $options['group_id'] );
|
31 |
+
$call_to_action_db = esc_attr( $options['call_to_action'] );
|
32 |
+
$pre_filled_db = esc_attr( $options['pre_filled'] );
|
33 |
+
|
34 |
+
$group_id = __( $group_id , 'click-to-chat-for-whatsapp' );
|
35 |
+
$call_to_action = __( $call_to_action_db , 'click-to-chat-for-whatsapp' );
|
36 |
+
$pre_filled = __( $pre_filled_db , 'click-to-chat-for-whatsapp' );
|
37 |
+
|
38 |
+
$style_desktop = esc_attr( $options['style_desktop'] );
|
39 |
+
$style_mobile = esc_attr( $options['style_mobile'] );
|
40 |
+
|
41 |
+
$is_mobile = ht_ctc()->device_type->is_mobile();
|
42 |
+
|
43 |
+
$style = $style_desktop;;
|
44 |
+
if ( 'yes' == $is_mobile ) {
|
45 |
+
$style = $style_mobile;
|
46 |
+
}
|
47 |
+
|
48 |
+
// $content = do_shortcode($content);
|
49 |
+
|
50 |
+
// $ccw_options_cs = get_option('ccw_options_cs');
|
51 |
+
// use like $ccw_options_cs['']
|
52 |
+
|
53 |
+
$a = shortcode_atts(
|
54 |
+
array(
|
55 |
+
'group_id' => $group_id,
|
56 |
+
'call_to_action' => $call_to_action,
|
57 |
+
'style' => $style,
|
58 |
+
|
59 |
+
'position' => '',
|
60 |
+
'top' => '',
|
61 |
+
'right' => '',
|
62 |
+
'bottom' => '',
|
63 |
+
'left' => '',
|
64 |
+
'home' => '', // home - to hide on experts ..
|
65 |
+
'hide_mobile' => '',
|
66 |
+
'hide_desktop' => '',
|
67 |
+
// 'inline_issue' => '',
|
68 |
+
|
69 |
+
's5_img_position' => '', //left, right
|
70 |
+
's8_width' => '',
|
71 |
+
's8_icon_position' => '', // left, right, hide
|
72 |
+
|
73 |
+
), $atts, $shortcode );
|
74 |
+
// use like - '.$a["title"].'
|
75 |
+
|
76 |
+
|
77 |
+
// group_id
|
78 |
+
$group_id = $a["group_id"];
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
// hide on devices
|
85 |
+
// if 'yes' then hide
|
86 |
+
$hide_mobile = $a["hide_mobile"];
|
87 |
+
$hide_desktop = $a["hide_desktop"];
|
88 |
+
|
89 |
+
if( 'yes' == $is_mobile ) {
|
90 |
+
if ( 'yes' == $hide_mobile ) {
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
} else {
|
94 |
+
if ( 'yes' == $hide_desktop ) {
|
95 |
+
return;
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
$position = $a["position"];
|
102 |
+
$top = $a["top"];
|
103 |
+
$right = $a["right"];
|
104 |
+
$bottom = $a["bottom"];
|
105 |
+
$left = $a["left"];
|
106 |
+
|
107 |
+
$css = '';
|
108 |
+
|
109 |
+
if ( '' !== $position ) {
|
110 |
+
$css .= 'position:'.$position.';';
|
111 |
+
}
|
112 |
+
if ( '' !== $top ) {
|
113 |
+
$css .= 'top:'.$top.';';
|
114 |
+
}
|
115 |
+
if ( '' !== $right ) {
|
116 |
+
$css .= 'right:'.$right.';';
|
117 |
+
}
|
118 |
+
if ( '' !== $bottom ) {
|
119 |
+
$css .= 'bottom:'.$bottom.';';
|
120 |
+
}
|
121 |
+
if ( '' !== $left ) {
|
122 |
+
$css .= 'left:'.$left.';';
|
123 |
+
}
|
124 |
+
|
125 |
+
// to hide styles in home page
|
126 |
+
$home = $a["home"];
|
127 |
+
|
128 |
+
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
129 |
+
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
130 |
+
$css .= 'display:none;';
|
131 |
+
}
|
132 |
+
|
133 |
+
// By default postion: fixed style hide on home screen,
|
134 |
+
// if plan to show, then add hide='show' ( actually something not equal to 'hide' )
|
135 |
+
if ( 'fixed' == $position && 'show' !== $home && ( is_home() || is_category() || is_archive() ) ) {
|
136 |
+
$css .= 'display:none;';
|
137 |
+
}
|
138 |
+
|
139 |
+
|
140 |
+
$link = "https://chat.whatsapp.com/$group_id";
|
141 |
+
$return_type = "group";
|
142 |
+
|
143 |
+
// call to action
|
144 |
+
$call_to_action = $a["call_to_action"];
|
145 |
+
|
146 |
+
$style = $a["style"];
|
147 |
+
|
148 |
+
$class_names = "ht-ctc-sc-group sc-style-$style";
|
149 |
+
|
150 |
+
// analytics
|
151 |
+
$is_ga_enable = 'no';
|
152 |
+
$is_fb_an_enable = 'no';
|
153 |
+
|
154 |
+
if ( isset( $main_options['google_analytics'] ) ) {
|
155 |
+
$is_ga_enable = 'yes';
|
156 |
+
}
|
157 |
+
|
158 |
+
if ( isset( $other['fb_analytics'] ) ) {
|
159 |
+
$is_fb_an_enable = 'yes';
|
160 |
+
}
|
161 |
+
|
162 |
+
|
163 |
+
$o = '';
|
164 |
+
|
165 |
+
// shortcode template file path
|
166 |
+
$sc_path = plugin_dir_path( HT_CTC_PLUGIN_FILE ) . 'new/inc/styles-shortcode/sc-style-' . $style. '.php';
|
167 |
+
|
168 |
+
if ( is_file( $sc_path ) ) {
|
169 |
+
$o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
|
170 |
+
include $sc_path;
|
171 |
+
$o .= '</div>';
|
172 |
+
} else {
|
173 |
+
// if style is not in the list..
|
174 |
+
$img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CCW_PLUGIN_FILE );
|
175 |
+
$o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
|
176 |
+
$o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" style="height: 50px; '.$css.' " >';
|
177 |
+
$o .= '</div>';
|
178 |
+
}
|
179 |
+
|
180 |
+
|
181 |
+
return $o;
|
182 |
+
|
183 |
+
}
|
184 |
+
|
185 |
+
|
186 |
+
}
|
187 |
+
|
188 |
+
|
189 |
+
$shortcode = new HT_CTC_Group_Shortcode();
|
190 |
+
|
191 |
+
add_action('init', array( $shortcode, 'shortcodes_init' ) );
|
192 |
+
|
193 |
endif; // END class_exists check
|
new/inc/group/class-ht-ctc-group.php
CHANGED
@@ -1,72 +1,107 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Group chat/invite feature - main page
|
4 |
-
*
|
5 |
-
* @subpackage group
|
6 |
-
* @since 2.0
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
if ( ! class_exists( 'HT_CTC_Group' ) ) :
|
12 |
-
|
13 |
-
class HT_CTC_Group {
|
14 |
-
|
15 |
-
public function __construct() {
|
16 |
-
// $this->group();
|
17 |
-
}
|
18 |
-
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Which features are enable - based on this call function ..
|
22 |
-
*/
|
23 |
-
public function group() {
|
24 |
-
|
25 |
-
$options = get_option('ht_ctc_group');
|
26 |
-
|
27 |
-
|
28 |
-
// show/hide ..
|
29 |
-
include_once HT_CTC_PLUGIN_DIR .'new/inc/group/group-show-hide.php';
|
30 |
-
|
31 |
-
if ( 'no' == $display ) {
|
32 |
-
return;
|
33 |
-
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
//
|
39 |
-
|
40 |
-
|
41 |
-
//
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
//
|
52 |
-
$
|
53 |
-
|
54 |
-
//
|
55 |
-
$
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Group chat/invite feature - main page
|
4 |
+
*
|
5 |
+
* @subpackage group
|
6 |
+
* @since 2.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
if ( ! class_exists( 'HT_CTC_Group' ) ) :
|
12 |
+
|
13 |
+
class HT_CTC_Group {
|
14 |
+
|
15 |
+
public function __construct() {
|
16 |
+
// $this->group();
|
17 |
+
}
|
18 |
+
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Which features are enable - based on this call function ..
|
22 |
+
*/
|
23 |
+
public function group() {
|
24 |
+
|
25 |
+
$options = get_option('ht_ctc_group');
|
26 |
+
|
27 |
+
|
28 |
+
// show/hide ..
|
29 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/group/group-show-hide.php';
|
30 |
+
|
31 |
+
if ( 'no' == $display ) {
|
32 |
+
return;
|
33 |
+
}
|
34 |
+
|
35 |
+
$main_options = ht_ctc()->values->ctc_main_options;
|
36 |
+
$other = get_option('ht_ctc_othersettings');
|
37 |
+
|
38 |
+
// position
|
39 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/group/group-position.php';
|
40 |
+
|
41 |
+
// is mobile to select styles
|
42 |
+
$is_mobile = ht_ctc()->device_type->is_mobile();
|
43 |
+
|
44 |
+
// style
|
45 |
+
if ( 'yes' == $is_mobile ) {
|
46 |
+
$style = esc_attr( $options['style_mobile'] );
|
47 |
+
} else {
|
48 |
+
$style = esc_attr( $options['style_desktop'] );
|
49 |
+
}
|
50 |
+
|
51 |
+
// call to action
|
52 |
+
$call_to_action = esc_attr( $options['call_to_action'] );
|
53 |
+
|
54 |
+
// class names
|
55 |
+
$class_names = "ht-ctc-group style-$style";
|
56 |
+
|
57 |
+
// group id
|
58 |
+
$group_id = esc_attr( $options['group_id'] );
|
59 |
+
|
60 |
+
// group_id - at page level
|
61 |
+
$page_id = get_the_ID();
|
62 |
+
$page_group_id = esc_attr( get_post_meta( $page_id, 'ht_ctc_page_group_id', true ) );
|
63 |
+
|
64 |
+
if ( isset( $page_group_id ) && '' !== $page_group_id ){
|
65 |
+
$group_id = $page_group_id;
|
66 |
+
}
|
67 |
+
|
68 |
+
// analytics
|
69 |
+
$is_ga_enable = 'no';
|
70 |
+
$is_fb_an_enable = 'no';
|
71 |
+
|
72 |
+
if ( isset( $main_options['google_analytics'] ) ) {
|
73 |
+
$is_ga_enable = 'yes';
|
74 |
+
}
|
75 |
+
|
76 |
+
if ( isset( $other['fb_analytics'] ) ) {
|
77 |
+
$is_fb_an_enable = 'yes';
|
78 |
+
}
|
79 |
+
|
80 |
+
// call style
|
81 |
+
$path = plugin_dir_path( HT_CTC_PLUGIN_FILE ) . 'new/inc/styles/style-' . $style. '.php';
|
82 |
+
|
83 |
+
if ( is_file( $path ) ) {
|
84 |
+
?>
|
85 |
+
<div onclick="ht_ctc_click(this);" class="<?php echo $class_names ?>" style="position: fixed; <?php echo $position ?> cursor: pointer; z-index: 99999999;"
|
86 |
+
data-return_type="group"
|
87 |
+
data-group_id="<?php echo $group_id ?>"
|
88 |
+
data-is_ga_enable="<?php echo $is_ga_enable ?>"
|
89 |
+
data-is_fb_an_enable="<?php echo $is_fb_an_enable ?>"
|
90 |
+
>
|
91 |
+
<?php include $path; ?>
|
92 |
+
</div>
|
93 |
+
<?php
|
94 |
+
}
|
95 |
+
|
96 |
+
|
97 |
+
}
|
98 |
+
|
99 |
+
}
|
100 |
+
|
101 |
+
// new HT_CTC_Group();
|
102 |
+
|
103 |
+
$ht_ctc_group = new HT_CTC_Group();
|
104 |
+
add_action( 'wp_footer', array( $ht_ctc_group, 'group' ) );
|
105 |
+
|
106 |
+
|
107 |
endif; // END class_exists check
|
new/inc/group/group-position.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* @included from - class-ht-ctc-group.php
|
5 |
-
*
|
6 |
-
* position to place ..
|
7 |
-
*/
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
$side_1 = esc_attr( $options['side_1'] );
|
12 |
-
$side_1_value = esc_attr( $options['side_1_value'] );
|
13 |
-
|
14 |
-
$side_2 = esc_attr( $options['side_2'] );
|
15 |
-
$side_2_value = esc_attr( $options['side_2_value'] );
|
16 |
-
|
17 |
$position = "$side_1: $side_1_value; $side_2: $side_2_value;";
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* @included from - class-ht-ctc-group.php
|
5 |
+
*
|
6 |
+
* position to place ..
|
7 |
+
*/
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
$side_1 = esc_attr( $options['side_1'] );
|
12 |
+
$side_1_value = esc_attr( $options['side_1_value'] );
|
13 |
+
|
14 |
+
$side_2 = esc_attr( $options['side_2'] );
|
15 |
+
$side_2_value = esc_attr( $options['side_2_value'] );
|
16 |
+
|
17 |
$position = "$side_1: $side_1_value; $side_2: $side_2_value;";
|
new/inc/group/group-show-hide.php
CHANGED
@@ -1,212 +1,212 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* @included from - class-ht-ctc-group.php
|
5 |
-
*
|
6 |
-
* sets $display - yes to show styles or no to hide styles
|
7 |
-
*/
|
8 |
-
|
9 |
-
$this_page_id = get_the_ID();
|
10 |
-
|
11 |
-
|
12 |
-
// yes to display style and no to hide styles
|
13 |
-
// @uses at 'class-ht-ctc-group.php'
|
14 |
-
$display = 'yes';
|
15 |
-
|
16 |
-
|
17 |
-
// show / hide
|
18 |
-
if ( 'show' == $options['show_or_hide'] ) {
|
19 |
-
// show based no
|
20 |
-
|
21 |
-
// in show - default display is no
|
22 |
-
$display = 'no';
|
23 |
-
|
24 |
-
$pages_list_toshow = esc_attr( $options['list_showon_pages'] );
|
25 |
-
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
26 |
-
|
27 |
-
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_toshow_array ) ) {
|
28 |
-
$display = 'yes';
|
29 |
-
return;
|
30 |
-
}
|
31 |
-
|
32 |
-
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
33 |
-
$display = 'yes';
|
34 |
-
return;
|
35 |
-
}
|
36 |
-
|
37 |
-
if ( is_page() && isset( $options['showon_page'] ) ) {
|
38 |
-
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
39 |
-
$display = 'yes';
|
40 |
-
return;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
// is_home and is_front_page - combined.
|
45 |
-
if ( ( is_home() || is_front_page() ) && ( isset( $options['showon_homepage'] ) ) ) {
|
46 |
-
$display = 'yes';
|
47 |
-
return;
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
if ( is_category() && isset( $options['showon_category'] ) ) {
|
52 |
-
$display = 'yes';
|
53 |
-
return;
|
54 |
-
}
|
55 |
-
|
56 |
-
if ( is_archive() && isset( $options['showon_archive'] ) ) {
|
57 |
-
$display = 'yes';
|
58 |
-
return;
|
59 |
-
}
|
60 |
-
|
61 |
-
if ( is_404() && isset( $options['showon_404'] ) ) {
|
62 |
-
$display = 'yes';
|
63 |
-
return;
|
64 |
-
}
|
65 |
-
|
66 |
-
// show on woocommerce single product pages.
|
67 |
-
if ( isset( $options['showon_wooproduct'] ) ) {
|
68 |
-
if ( function_exists( 'is_product' ) ) {
|
69 |
-
if ( is_product() ) {
|
70 |
-
$display = 'yes';
|
71 |
-
return;
|
72 |
-
}
|
73 |
-
}
|
74 |
-
}
|
75 |
-
|
76 |
-
|
77 |
-
// Hide styles on this catergorys - list
|
78 |
-
$list_showon_cat = esc_attr( $options['list_showon_cat'] );
|
79 |
-
|
80 |
-
// avoid calling foreach, explode when hide on categorys list is empty
|
81 |
-
if( $list_showon_cat ) {
|
82 |
-
|
83 |
-
// Get current post Categorys list and create an array for that..
|
84 |
-
$current_categorys_array = array();
|
85 |
-
$current_categorys = get_the_category();
|
86 |
-
foreach ( $current_categorys as $category ) {
|
87 |
-
$current_categorys_array[] = strtolower($category->name);
|
88 |
-
}
|
89 |
-
|
90 |
-
$list_showon_cat_array = explode(',', $list_showon_cat);
|
91 |
-
|
92 |
-
foreach ( $list_showon_cat_array as $category ) {
|
93 |
-
$category_trim = trim($category);
|
94 |
-
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
95 |
-
$display = 'yes';
|
96 |
-
return;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
} else {
|
102 |
-
|
103 |
-
// hide based on
|
104 |
-
|
105 |
-
// in hide - default display is yes
|
106 |
-
$display = 'yes';
|
107 |
-
|
108 |
-
|
109 |
-
$pages_list_tohide = $options['list_hideon_pages'];
|
110 |
-
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
111 |
-
|
112 |
-
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_tohide_array ) ) {
|
113 |
-
$display = 'no';
|
114 |
-
return;
|
115 |
-
}
|
116 |
-
|
117 |
-
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
118 |
-
$display = 'no';
|
119 |
-
return;
|
120 |
-
}
|
121 |
-
|
122 |
-
if ( is_page() && isset( $options['hideon_page'] ) ) {
|
123 |
-
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
124 |
-
$display = 'no';
|
125 |
-
return;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
// if ( is_home() && isset( $options['hideon_homepage'] ) ) {
|
130 |
-
// $display = 'no';
|
131 |
-
// return;
|
132 |
-
// }
|
133 |
-
|
134 |
-
// if ( is_front_page() && isset( $options['hideon_frontpage'] ) ) {
|
135 |
-
// $display = 'no';
|
136 |
-
// return;
|
137 |
-
// }
|
138 |
-
|
139 |
-
// is_home and is_front_page - combined.
|
140 |
-
if ( ( is_home() || is_front_page() ) && ( isset( $options['hideon_homepage'] ) ) ) {
|
141 |
-
$display = 'no';
|
142 |
-
return;
|
143 |
-
}
|
144 |
-
|
145 |
-
if ( is_category() && isset( $options['hideon_category'] ) ) {
|
146 |
-
$display = 'no';
|
147 |
-
return;
|
148 |
-
}
|
149 |
-
|
150 |
-
if ( is_archive() && isset( $options['hideon_archive'] ) ) {
|
151 |
-
$display = 'no';
|
152 |
-
return;
|
153 |
-
}
|
154 |
-
|
155 |
-
if ( is_404() && isset( $options['hideon_404'] ) ) {
|
156 |
-
$display = 'no';
|
157 |
-
return;
|
158 |
-
}
|
159 |
-
|
160 |
-
// hide on woocommerce single product pages.
|
161 |
-
if ( isset( $options['hideon_wooproduct'] ) ) {
|
162 |
-
if ( function_exists( 'is_product' ) ) {
|
163 |
-
if ( is_product() ) {
|
164 |
-
$display = 'no';
|
165 |
-
return;
|
166 |
-
}
|
167 |
-
}
|
168 |
-
}
|
169 |
-
|
170 |
-
|
171 |
-
// Hide styles on this catergorys - list
|
172 |
-
$list_hideon_cat = $options['list_hideon_cat'];
|
173 |
-
|
174 |
-
// avoid calling foreach, explode when hide on categorys list is empty
|
175 |
-
if( $list_hideon_cat ) {
|
176 |
-
|
177 |
-
// Get current post Categorys list and create an array for that..
|
178 |
-
$current_categorys_array = array();
|
179 |
-
$current_categorys = get_the_category();
|
180 |
-
foreach ( $current_categorys as $category ) {
|
181 |
-
$current_categorys_array[] = strtolower($category->name);
|
182 |
-
}
|
183 |
-
|
184 |
-
$list_hideon_cat_array = explode(',', $list_hideon_cat);
|
185 |
-
|
186 |
-
foreach ( $list_hideon_cat_array as $category ) {
|
187 |
-
$category_trim = trim($category);
|
188 |
-
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
189 |
-
$display = 'no';
|
190 |
-
return;
|
191 |
-
}
|
192 |
-
}
|
193 |
-
}
|
194 |
-
|
195 |
-
}
|
196 |
-
|
197 |
-
|
198 |
-
// Hide based on device
|
199 |
-
|
200 |
-
if ( function_exists( 'wp_is_mobile' ) ) {
|
201 |
-
if ( wp_is_mobile() ) {
|
202 |
-
// mobile
|
203 |
-
if ( isset( $options['hideon_mobile'] ) ) {
|
204 |
-
$display = 'no';
|
205 |
-
}
|
206 |
-
} else {
|
207 |
-
// desktop
|
208 |
-
if ( isset( $options['hideon_desktop'] ) ) {
|
209 |
-
$display = 'no';
|
210 |
-
}
|
211 |
-
}
|
212 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* @included from - class-ht-ctc-group.php
|
5 |
+
*
|
6 |
+
* sets $display - yes to show styles or no to hide styles
|
7 |
+
*/
|
8 |
+
|
9 |
+
$this_page_id = get_the_ID();
|
10 |
+
|
11 |
+
|
12 |
+
// yes to display style and no to hide styles
|
13 |
+
// @uses at 'class-ht-ctc-group.php'
|
14 |
+
$display = 'yes';
|
15 |
+
|
16 |
+
|
17 |
+
// show / hide
|
18 |
+
if ( 'show' == $options['show_or_hide'] ) {
|
19 |
+
// show based no
|
20 |
+
|
21 |
+
// in show - default display is no
|
22 |
+
$display = 'no';
|
23 |
+
|
24 |
+
$pages_list_toshow = esc_attr( $options['list_showon_pages'] );
|
25 |
+
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
26 |
+
|
27 |
+
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_toshow_array ) ) {
|
28 |
+
$display = 'yes';
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
33 |
+
$display = 'yes';
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
|
37 |
+
if ( is_page() && isset( $options['showon_page'] ) ) {
|
38 |
+
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
39 |
+
$display = 'yes';
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
// is_home and is_front_page - combined.
|
45 |
+
if ( ( is_home() || is_front_page() ) && ( isset( $options['showon_homepage'] ) ) ) {
|
46 |
+
$display = 'yes';
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
+
if ( is_category() && isset( $options['showon_category'] ) ) {
|
52 |
+
$display = 'yes';
|
53 |
+
return;
|
54 |
+
}
|
55 |
+
|
56 |
+
if ( is_archive() && isset( $options['showon_archive'] ) ) {
|
57 |
+
$display = 'yes';
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
if ( is_404() && isset( $options['showon_404'] ) ) {
|
62 |
+
$display = 'yes';
|
63 |
+
return;
|
64 |
+
}
|
65 |
+
|
66 |
+
// show on woocommerce single product pages.
|
67 |
+
if ( isset( $options['showon_wooproduct'] ) ) {
|
68 |
+
if ( function_exists( 'is_product' ) ) {
|
69 |
+
if ( is_product() ) {
|
70 |
+
$display = 'yes';
|
71 |
+
return;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
// Hide styles on this catergorys - list
|
78 |
+
$list_showon_cat = esc_attr( $options['list_showon_cat'] );
|
79 |
+
|
80 |
+
// avoid calling foreach, explode when hide on categorys list is empty
|
81 |
+
if( $list_showon_cat ) {
|
82 |
+
|
83 |
+
// Get current post Categorys list and create an array for that..
|
84 |
+
$current_categorys_array = array();
|
85 |
+
$current_categorys = get_the_category();
|
86 |
+
foreach ( $current_categorys as $category ) {
|
87 |
+
$current_categorys_array[] = strtolower($category->name);
|
88 |
+
}
|
89 |
+
|
90 |
+
$list_showon_cat_array = explode(',', $list_showon_cat);
|
91 |
+
|
92 |
+
foreach ( $list_showon_cat_array as $category ) {
|
93 |
+
$category_trim = trim($category);
|
94 |
+
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
95 |
+
$display = 'yes';
|
96 |
+
return;
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
} else {
|
102 |
+
|
103 |
+
// hide based on
|
104 |
+
|
105 |
+
// in hide - default display is yes
|
106 |
+
$display = 'yes';
|
107 |
+
|
108 |
+
|
109 |
+
$pages_list_tohide = $options['list_hideon_pages'];
|
110 |
+
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
111 |
+
|
112 |
+
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_tohide_array ) ) {
|
113 |
+
$display = 'no';
|
114 |
+
return;
|
115 |
+
}
|
116 |
+
|
117 |
+
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
118 |
+
$display = 'no';
|
119 |
+
return;
|
120 |
+
}
|
121 |
+
|
122 |
+
if ( is_page() && isset( $options['hideon_page'] ) ) {
|
123 |
+
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
124 |
+
$display = 'no';
|
125 |
+
return;
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
// if ( is_home() && isset( $options['hideon_homepage'] ) ) {
|
130 |
+
// $display = 'no';
|
131 |
+
// return;
|
132 |
+
// }
|
133 |
+
|
134 |
+
// if ( is_front_page() && isset( $options['hideon_frontpage'] ) ) {
|
135 |
+
// $display = 'no';
|
136 |
+
// return;
|
137 |
+
// }
|
138 |
+
|
139 |
+
// is_home and is_front_page - combined.
|
140 |
+
if ( ( is_home() || is_front_page() ) && ( isset( $options['hideon_homepage'] ) ) ) {
|
141 |
+
$display = 'no';
|
142 |
+
return;
|
143 |
+
}
|
144 |
+
|
145 |
+
if ( is_category() && isset( $options['hideon_category'] ) ) {
|
146 |
+
$display = 'no';
|
147 |
+
return;
|
148 |
+
}
|
149 |
+
|
150 |
+
if ( is_archive() && isset( $options['hideon_archive'] ) ) {
|
151 |
+
$display = 'no';
|
152 |
+
return;
|
153 |
+
}
|
154 |
+
|
155 |
+
if ( is_404() && isset( $options['hideon_404'] ) ) {
|
156 |
+
$display = 'no';
|
157 |
+
return;
|
158 |
+
}
|
159 |
+
|
160 |
+
// hide on woocommerce single product pages.
|
161 |
+
if ( isset( $options['hideon_wooproduct'] ) ) {
|
162 |
+
if ( function_exists( 'is_product' ) ) {
|
163 |
+
if ( is_product() ) {
|
164 |
+
$display = 'no';
|
165 |
+
return;
|
166 |
+
}
|
167 |
+
}
|
168 |
+
}
|
169 |
+
|
170 |
+
|
171 |
+
// Hide styles on this catergorys - list
|
172 |
+
$list_hideon_cat = $options['list_hideon_cat'];
|
173 |
+
|
174 |
+
// avoid calling foreach, explode when hide on categorys list is empty
|
175 |
+
if( $list_hideon_cat ) {
|
176 |
+
|
177 |
+
// Get current post Categorys list and create an array for that..
|
178 |
+
$current_categorys_array = array();
|
179 |
+
$current_categorys = get_the_category();
|
180 |
+
foreach ( $current_categorys as $category ) {
|
181 |
+
$current_categorys_array[] = strtolower($category->name);
|
182 |
+
}
|
183 |
+
|
184 |
+
$list_hideon_cat_array = explode(',', $list_hideon_cat);
|
185 |
+
|
186 |
+
foreach ( $list_hideon_cat_array as $category ) {
|
187 |
+
$category_trim = trim($category);
|
188 |
+
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
189 |
+
$display = 'no';
|
190 |
+
return;
|
191 |
+
}
|
192 |
+
}
|
193 |
+
}
|
194 |
+
|
195 |
+
}
|
196 |
+
|
197 |
+
|
198 |
+
// Hide based on device
|
199 |
+
|
200 |
+
if ( function_exists( 'wp_is_mobile' ) ) {
|
201 |
+
if ( wp_is_mobile() ) {
|
202 |
+
// mobile
|
203 |
+
if ( isset( $options['hideon_mobile'] ) ) {
|
204 |
+
$display = 'no';
|
205 |
+
}
|
206 |
+
} else {
|
207 |
+
// desktop
|
208 |
+
if ( isset( $options['hideon_desktop'] ) ) {
|
209 |
+
$display = 'no';
|
210 |
+
}
|
211 |
+
}
|
212 |
}
|
new/inc/share/class-ht-ctc-share-shortcode.php
CHANGED
@@ -1,191 +1,204 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* shortcodes
|
4 |
-
* for list of attribute support check -> shortcode_atts ( $a )
|
5 |
-
*
|
6 |
-
* @package chat
|
7 |
-
* @since 2.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
-
|
12 |
-
if ( ! class_exists( 'HT_CTC_Share_Shortcode' ) ) :
|
13 |
-
|
14 |
-
class HT_CTC_Share_Shortcode {
|
15 |
-
|
16 |
-
|
17 |
-
// Register shortcode
|
18 |
-
public function shortcodes_init() {
|
19 |
-
add_shortcode( 'ht-ctc-share', array( $this, 'shortcode' ) );
|
20 |
-
}
|
21 |
-
|
22 |
-
// call back function - shortcode
|
23 |
-
public function shortcode( $atts = [], $content = null, $shortcode = '' ) {
|
24 |
-
|
25 |
-
$options = get_option('ht_ctc_share');
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
$
|
32 |
-
|
33 |
-
|
34 |
-
$
|
35 |
-
|
36 |
-
|
37 |
-
$
|
38 |
-
|
39 |
-
$
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
// $
|
47 |
-
|
48 |
-
|
49 |
-
$
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
'
|
54 |
-
|
55 |
-
'
|
56 |
-
|
57 |
-
'
|
58 |
-
'
|
59 |
-
'
|
60 |
-
'
|
61 |
-
'
|
62 |
-
'
|
63 |
-
|
64 |
-
|
65 |
-
'
|
66 |
-
|
67 |
-
'
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
$
|
77 |
-
|
78 |
-
|
79 |
-
$
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
//
|
85 |
-
|
86 |
-
$
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
$
|
102 |
-
$
|
103 |
-
$
|
104 |
-
$
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
//
|
134 |
-
if
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
if
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
$
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
$
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
$
|
188 |
-
|
189 |
-
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* shortcodes
|
4 |
+
* for list of attribute support check -> shortcode_atts ( $a )
|
5 |
+
*
|
6 |
+
* @package chat
|
7 |
+
* @since 2.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
if ( ! class_exists( 'HT_CTC_Share_Shortcode' ) ) :
|
13 |
+
|
14 |
+
class HT_CTC_Share_Shortcode {
|
15 |
+
|
16 |
+
|
17 |
+
// Register shortcode
|
18 |
+
public function shortcodes_init() {
|
19 |
+
add_shortcode( 'ht-ctc-share', array( $this, 'shortcode' ) );
|
20 |
+
}
|
21 |
+
|
22 |
+
// call back function - shortcode
|
23 |
+
public function shortcode( $atts = [], $content = null, $shortcode = '' ) {
|
24 |
+
|
25 |
+
$options = get_option('ht_ctc_share');
|
26 |
+
$main_options = ht_ctc()->values->ctc_main_options;
|
27 |
+
$other = get_option('ht_ctc_othersettings');
|
28 |
+
|
29 |
+
|
30 |
+
$share_text_db = esc_attr( $options['share_text'] );
|
31 |
+
$call_to_action_db = esc_attr( $options['call_to_action'] );
|
32 |
+
|
33 |
+
$share_text = __( $share_text_db , 'click-to-chat-for-whatsapp' );
|
34 |
+
$call_to_action = __( $call_to_action_db , 'click-to-chat-for-whatsapp' );
|
35 |
+
|
36 |
+
$style_desktop = esc_attr( $options['style_desktop'] );
|
37 |
+
$style_mobile = esc_attr( $options['style_mobile'] );
|
38 |
+
|
39 |
+
$is_mobile = ht_ctc()->device_type->is_mobile();
|
40 |
+
|
41 |
+
$style = $style_desktop;;
|
42 |
+
if ( 'yes' == $is_mobile ) {
|
43 |
+
$style = $style_mobile;
|
44 |
+
}
|
45 |
+
|
46 |
+
// $content = do_shortcode($content);
|
47 |
+
|
48 |
+
// $ccw_options_cs = get_option('ccw_options_cs');
|
49 |
+
// use like $ccw_options_cs['']
|
50 |
+
|
51 |
+
$a = shortcode_atts(
|
52 |
+
array(
|
53 |
+
'share_text' => $share_text,
|
54 |
+
'call_to_action' => $call_to_action,
|
55 |
+
'style' => $style,
|
56 |
+
|
57 |
+
'position' => '',
|
58 |
+
'top' => '',
|
59 |
+
'right' => '',
|
60 |
+
'bottom' => '',
|
61 |
+
'left' => '',
|
62 |
+
'home' => '', // home - to hide on experts ..
|
63 |
+
'hide_mobile' => '',
|
64 |
+
'hide_desktop' => '',
|
65 |
+
// 'inline_issue' => '',
|
66 |
+
|
67 |
+
's5_img_position' => '', //left, right
|
68 |
+
's8_width' => '',
|
69 |
+
's8_icon_position' => '', // left, right, hide
|
70 |
+
|
71 |
+
), $atts, $shortcode );
|
72 |
+
// use like - '.$a["title"].'
|
73 |
+
|
74 |
+
|
75 |
+
// share_text
|
76 |
+
$share_text = $a["share_text"];
|
77 |
+
|
78 |
+
$page_url = get_permalink();
|
79 |
+
$post_title = esc_html( get_the_title() );
|
80 |
+
|
81 |
+
$share_text = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $share_text );
|
82 |
+
|
83 |
+
|
84 |
+
// hide on devices
|
85 |
+
// if 'yes' then hide
|
86 |
+
$hide_mobile = $a["hide_mobile"];
|
87 |
+
$hide_desktop = $a["hide_desktop"];
|
88 |
+
|
89 |
+
if( 'yes' == $is_mobile ) {
|
90 |
+
if ( 'yes' == $hide_mobile ) {
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
} else {
|
94 |
+
if ( 'yes' == $hide_desktop ) {
|
95 |
+
return;
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
$position = $a["position"];
|
102 |
+
$top = $a["top"];
|
103 |
+
$right = $a["right"];
|
104 |
+
$bottom = $a["bottom"];
|
105 |
+
$left = $a["left"];
|
106 |
+
|
107 |
+
$css = '';
|
108 |
+
|
109 |
+
if ( '' !== $position ) {
|
110 |
+
$css .= 'position:'.$position.';';
|
111 |
+
}
|
112 |
+
if ( '' !== $top ) {
|
113 |
+
$css .= 'top:'.$top.';';
|
114 |
+
}
|
115 |
+
if ( '' !== $right ) {
|
116 |
+
$css .= 'right:'.$right.';';
|
117 |
+
}
|
118 |
+
if ( '' !== $bottom ) {
|
119 |
+
$css .= 'bottom:'.$bottom.';';
|
120 |
+
}
|
121 |
+
if ( '' !== $left ) {
|
122 |
+
$css .= 'left:'.$left.';';
|
123 |
+
}
|
124 |
+
|
125 |
+
// to hide styles in home page
|
126 |
+
$home = $a["home"];
|
127 |
+
|
128 |
+
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
129 |
+
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
130 |
+
$css .= 'display:none;';
|
131 |
+
}
|
132 |
+
|
133 |
+
// By default postion: fixed style hide on home screen,
|
134 |
+
// if plan to show, then add hide='show' ( actually something not equal to 'hide' )
|
135 |
+
if ( 'fixed' == $position && 'show' !== $home && ( is_home() || is_category() || is_archive() ) ) {
|
136 |
+
$css .= 'display:none;';
|
137 |
+
}
|
138 |
+
|
139 |
+
$web_api = 'api';
|
140 |
+
|
141 |
+
// if web.whatsapp checked (admin part webandapi)
|
142 |
+
if ( isset ( $options['webandapi'] ) ) {
|
143 |
+
// mobile
|
144 |
+
if ( 'yes' == $is_mobile ) {
|
145 |
+
$web_api = 'api';
|
146 |
+
} else {
|
147 |
+
$web_api = 'web';
|
148 |
+
}
|
149 |
+
}
|
150 |
+
|
151 |
+
$link = "https://$web_api.whatsapp.com/send?text=$share_text";
|
152 |
+
$return_type = "share";
|
153 |
+
|
154 |
+
// call to action
|
155 |
+
$call_to_action = $a["call_to_action"];
|
156 |
+
|
157 |
+
$style = $a["style"];
|
158 |
+
|
159 |
+
$class_names = "ht-ctc-sc-share sc-style-$style";
|
160 |
+
|
161 |
+
// analytics
|
162 |
+
$is_ga_enable = 'no';
|
163 |
+
$is_fb_an_enable = 'no';
|
164 |
+
|
165 |
+
if ( isset( $main_options['google_analytics'] ) ) {
|
166 |
+
$is_ga_enable = 'yes';
|
167 |
+
}
|
168 |
+
|
169 |
+
if ( isset( $other['fb_analytics'] ) ) {
|
170 |
+
$is_fb_an_enable = 'yes';
|
171 |
+
}
|
172 |
+
|
173 |
+
|
174 |
+
$o = '';
|
175 |
+
|
176 |
+
// shortcode template file path
|
177 |
+
$sc_path = plugin_dir_path( HT_CTC_PLUGIN_FILE ) . 'new/inc/styles-shortcode/sc-style-' . $style. '.php';
|
178 |
+
|
179 |
+
if ( is_file( $sc_path ) ) {
|
180 |
+
$o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
|
181 |
+
include $sc_path;
|
182 |
+
$o .= '</div>';
|
183 |
+
} else {
|
184 |
+
// if style is not in the list..
|
185 |
+
$img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CCW_PLUGIN_FILE );
|
186 |
+
$o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
|
187 |
+
$o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" style="height: 50px; '.$css.' " >';
|
188 |
+
$o .= '</div>';
|
189 |
+
}
|
190 |
+
|
191 |
+
|
192 |
+
return $o;
|
193 |
+
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
}
|
198 |
+
|
199 |
+
|
200 |
+
$shortcode = new HT_CTC_Share_Shortcode();
|
201 |
+
|
202 |
+
add_action('init', array( $shortcode, 'shortcodes_init' ) );
|
203 |
+
|
204 |
endif; // END class_exists check
|
new/inc/share/class-ht-ctc-share.php
CHANGED
@@ -1,72 +1,117 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Share feature - main page
|
4 |
-
*
|
5 |
-
* @subpackage share
|
6 |
-
* @since 2.0
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
if ( ! class_exists( 'HT_CTC_Share' ) ) :
|
12 |
-
|
13 |
-
class HT_CTC_Share {
|
14 |
-
|
15 |
-
public function __construct() {
|
16 |
-
// $this->share();
|
17 |
-
}
|
18 |
-
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Which features are enable - based on this call function ..
|
22 |
-
*/
|
23 |
-
public function share() {
|
24 |
-
|
25 |
-
$options = get_option('ht_ctc_share');
|
26 |
-
|
27 |
-
|
28 |
-
// show/hide ..
|
29 |
-
include_once HT_CTC_PLUGIN_DIR .'new/inc/share/share-show-hide.php';
|
30 |
-
|
31 |
-
if ( 'no' == $display ) {
|
32 |
-
return;
|
33 |
-
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
//
|
39 |
-
|
40 |
-
|
41 |
-
//
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
//
|
52 |
-
$
|
53 |
-
|
54 |
-
//
|
55 |
-
$
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
endif; // END class_exists check
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Share feature - main page
|
4 |
+
*
|
5 |
+
* @subpackage share
|
6 |
+
* @since 2.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
if ( ! class_exists( 'HT_CTC_Share' ) ) :
|
12 |
+
|
13 |
+
class HT_CTC_Share {
|
14 |
+
|
15 |
+
public function __construct() {
|
16 |
+
// $this->share();
|
17 |
+
}
|
18 |
+
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Which features are enable - based on this call function ..
|
22 |
+
*/
|
23 |
+
public function share() {
|
24 |
+
|
25 |
+
$options = get_option('ht_ctc_share');
|
26 |
+
|
27 |
+
|
28 |
+
// show/hide ..
|
29 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/share/share-show-hide.php';
|
30 |
+
|
31 |
+
if ( 'no' == $display ) {
|
32 |
+
return;
|
33 |
+
}
|
34 |
+
|
35 |
+
$main_options = ht_ctc()->values->ctc_main_options;
|
36 |
+
$other = get_option('ht_ctc_othersettings');
|
37 |
+
|
38 |
+
// position
|
39 |
+
include_once HT_CTC_PLUGIN_DIR .'new/inc/share/share-position.php';
|
40 |
+
|
41 |
+
// is mobile to select styles
|
42 |
+
$is_mobile = ht_ctc()->device_type->is_mobile();
|
43 |
+
|
44 |
+
// style
|
45 |
+
if ( 'yes' == $is_mobile ) {
|
46 |
+
$style = esc_html( $options['style_mobile'] );
|
47 |
+
} else {
|
48 |
+
$style = esc_html( $options['style_desktop'] );
|
49 |
+
}
|
50 |
+
|
51 |
+
// call to action
|
52 |
+
$call_to_action = esc_html( $options['call_to_action'] );
|
53 |
+
|
54 |
+
// class names
|
55 |
+
$class_names = "ht-ctc-share style-$style";
|
56 |
+
|
57 |
+
$page_url = get_permalink();
|
58 |
+
$post_title = esc_html( get_the_title() );
|
59 |
+
|
60 |
+
// share text
|
61 |
+
$share_text = esc_attr( $options['share_text'] );
|
62 |
+
|
63 |
+
// if ( is_home() || is_front_page() ) {
|
64 |
+
if ( is_home() ) {
|
65 |
+
$page_url = get_bloginfo('url');
|
66 |
+
$post_title = HT_CTC_BLOG_NAME;
|
67 |
+
}
|
68 |
+
|
69 |
+
$share_text = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $share_text );
|
70 |
+
|
71 |
+
// analytics
|
72 |
+
$is_ga_enable = 'no';
|
73 |
+
$is_fb_an_enable = 'no';
|
74 |
+
|
75 |
+
if ( isset( $main_options['google_analytics'] ) ) {
|
76 |
+
$is_ga_enable = 'yes';
|
77 |
+
}
|
78 |
+
|
79 |
+
if ( isset( $other['fb_analytics'] ) ) {
|
80 |
+
$is_fb_an_enable = 'yes';
|
81 |
+
}
|
82 |
+
|
83 |
+
// webapi: web/api.whatsapp, api: api.whatsapp
|
84 |
+
$webandapi = 'api';
|
85 |
+
if ( isset( $options['webandapi'] ) ) {
|
86 |
+
$webandapi = 'webapi';
|
87 |
+
}
|
88 |
+
|
89 |
+
// call style
|
90 |
+
$path = plugin_dir_path( HT_CTC_PLUGIN_FILE ) . 'new/inc/styles/style-' . $style. '.php';
|
91 |
+
|
92 |
+
if ( is_file( $path ) ) {
|
93 |
+
?>
|
94 |
+
<div onclick="ht_ctc_click(this);" class="<?php echo $class_names ?>" style="position: fixed; <?php echo $position ?> cursor: pointer; z-index: 99999999;"
|
95 |
+
data-return_type="share"
|
96 |
+
data-share_text="<?php echo $share_text ?>"
|
97 |
+
data-is_ga_enable="<?php echo $is_ga_enable ?>"
|
98 |
+
data-is_fb_an_enable="<?php echo $is_fb_an_enable ?>"
|
99 |
+
data-webandapi="<?php echo $webandapi ?>"
|
100 |
+
>
|
101 |
+
<?php include $path; ?>
|
102 |
+
</div>
|
103 |
+
<?php
|
104 |
+
}
|
105 |
+
|
106 |
+
|
107 |
+
}
|
108 |
+
|
109 |
+
}
|
110 |
+
|
111 |
+
// new HT_CTC_Share();
|
112 |
+
|
113 |
+
$ht_ctc_share = new HT_CTC_Share();
|
114 |
+
add_action( 'wp_footer', array( $ht_ctc_share, 'share' ) );
|
115 |
+
|
116 |
+
|
117 |
endif; // END class_exists check
|
new/inc/share/share-position.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* @included from - class-ht-ctc-share.php
|
5 |
-
*
|
6 |
-
* position to place ..
|
7 |
-
*/
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
$side_1 = esc_html( $options['side_1'] );
|
12 |
-
$side_1_value = esc_html( $options['side_1_value'] );
|
13 |
-
|
14 |
-
$side_2 = esc_html( $options['side_2'] );
|
15 |
-
$side_2_value = esc_html( $options['side_2_value'] );
|
16 |
-
|
17 |
$position = "$side_1: $side_1_value; $side_2: $side_2_value;";
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* @included from - class-ht-ctc-share.php
|
5 |
+
*
|
6 |
+
* position to place ..
|
7 |
+
*/
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
$side_1 = esc_html( $options['side_1'] );
|
12 |
+
$side_1_value = esc_html( $options['side_1_value'] );
|
13 |
+
|
14 |
+
$side_2 = esc_html( $options['side_2'] );
|
15 |
+
$side_2_value = esc_html( $options['side_2_value'] );
|
16 |
+
|
17 |
$position = "$side_1: $side_1_value; $side_2: $side_2_value;";
|
new/inc/share/share-show-hide.php
CHANGED
@@ -1,211 +1,211 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* @included from - class-ht-ctc-share.php
|
5 |
-
*
|
6 |
-
* sets $display - yes to show styles or no to hide styles
|
7 |
-
*/
|
8 |
-
|
9 |
-
$this_page_id = get_the_ID();
|
10 |
-
|
11 |
-
|
12 |
-
// yes to display style and no to hide styles
|
13 |
-
// @uses at 'class-ht-ctc-share.php'
|
14 |
-
$display = 'yes';
|
15 |
-
|
16 |
-
|
17 |
-
// show / hide
|
18 |
-
if ( 'show' == $options['show_or_hide'] ) {
|
19 |
-
// show based no
|
20 |
-
|
21 |
-
// in show - default display is no
|
22 |
-
$display = 'no';
|
23 |
-
|
24 |
-
$pages_list_toshow = esc_html( $options['list_showon_pages'] );
|
25 |
-
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
26 |
-
|
27 |
-
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_toshow_array ) ) {
|
28 |
-
$display = 'yes';
|
29 |
-
return;
|
30 |
-
}
|
31 |
-
|
32 |
-
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
33 |
-
$display = 'yes';
|
34 |
-
return;
|
35 |
-
}
|
36 |
-
|
37 |
-
if ( is_page() && isset( $options['showon_page'] ) ) {
|
38 |
-
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
39 |
-
$display = 'yes';
|
40 |
-
return;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
// is_home and is_front_page - combined.
|
45 |
-
if ( ( is_home() || is_front_page() ) && ( isset( $options['showon_homepage'] ) ) ) {
|
46 |
-
$display = 'yes';
|
47 |
-
return;
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
if ( is_category() && isset( $options['showon_category'] ) ) {
|
52 |
-
$display = 'yes';
|
53 |
-
return;
|
54 |
-
}
|
55 |
-
|
56 |
-
if ( is_archive() && isset( $options['showon_archive'] ) ) {
|
57 |
-
$display = 'yes';
|
58 |
-
return;
|
59 |
-
}
|
60 |
-
|
61 |
-
if ( is_404() && isset( $options['showon_404'] ) ) {
|
62 |
-
$display = 'yes';
|
63 |
-
return;
|
64 |
-
}
|
65 |
-
|
66 |
-
// show on woocommerce single product pages.
|
67 |
-
if ( isset( $options['showon_wooproduct'] ) ) {
|
68 |
-
if ( function_exists( 'is_product' ) ) {
|
69 |
-
if ( is_product() ) {
|
70 |
-
$display = 'yes';
|
71 |
-
return;
|
72 |
-
}
|
73 |
-
}
|
74 |
-
}
|
75 |
-
|
76 |
-
|
77 |
-
// Hide styles on this catergorys - list
|
78 |
-
$list_showon_cat = esc_html( $options['list_showon_cat'] );
|
79 |
-
|
80 |
-
// avoid calling foreach, explode when hide on categorys list is empty
|
81 |
-
if( $list_showon_cat ) {
|
82 |
-
|
83 |
-
// Get current post Categorys list and create an array for that..
|
84 |
-
$current_categorys_array = array();
|
85 |
-
$current_categorys = get_the_category();
|
86 |
-
foreach ( $current_categorys as $category ) {
|
87 |
-
$current_categorys_array[] = strtolower($category->name);
|
88 |
-
}
|
89 |
-
|
90 |
-
$list_showon_cat_array = explode(',', $list_showon_cat);
|
91 |
-
|
92 |
-
foreach ( $list_showon_cat_array as $category ) {
|
93 |
-
$category_trim = trim($category);
|
94 |
-
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
95 |
-
$display = 'yes';
|
96 |
-
return;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
} else {
|
102 |
-
|
103 |
-
// hide based on
|
104 |
-
|
105 |
-
// in hide - default display is yes
|
106 |
-
$display = 'yes';
|
107 |
-
|
108 |
-
|
109 |
-
$pages_list_tohide = esc_html( $options['list_hideon_pages'] );
|
110 |
-
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
111 |
-
|
112 |
-
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_tohide_array ) ) {
|
113 |
-
$display = 'no';
|
114 |
-
return;
|
115 |
-
}
|
116 |
-
|
117 |
-
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
118 |
-
$display = 'no';
|
119 |
-
return;
|
120 |
-
}
|
121 |
-
|
122 |
-
if ( is_page() && isset( $options['hideon_page'] ) ) {
|
123 |
-
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
124 |
-
$display = 'no';
|
125 |
-
return;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
// if ( is_home() && isset( $options['hideon_homepage'] ) ) {
|
130 |
-
// $display = 'no';
|
131 |
-
// return;
|
132 |
-
// }
|
133 |
-
|
134 |
-
// if ( is_front_page() && isset( $options['hideon_frontpage'] ) ) {
|
135 |
-
// $display = 'no';
|
136 |
-
// return;
|
137 |
-
// }
|
138 |
-
|
139 |
-
// is_home and is_front_page - combined.
|
140 |
-
if ( ( is_home() || is_front_page() ) && ( isset( $options['hideon_homepage'] ) ) ) {
|
141 |
-
$display = 'no';
|
142 |
-
return;
|
143 |
-
}
|
144 |
-
|
145 |
-
if ( is_category() && isset( $options['hideon_category'] ) ) {
|
146 |
-
$display = 'no';
|
147 |
-
return;
|
148 |
-
}
|
149 |
-
|
150 |
-
if ( is_archive() && isset( $options['hideon_archive'] ) ) {
|
151 |
-
$display = 'no';
|
152 |
-
return;
|
153 |
-
}
|
154 |
-
|
155 |
-
if ( is_404() && isset( $options['hideon_404'] ) ) {
|
156 |
-
$display = 'no';
|
157 |
-
return;
|
158 |
-
}
|
159 |
-
|
160 |
-
// hide on woocommerce single product pages.
|
161 |
-
if ( isset( $options['hideon_wooproduct'] ) ) {
|
162 |
-
if ( function_exists( 'is_product' ) ) {
|
163 |
-
if ( is_product() ) {
|
164 |
-
$display = 'no';
|
165 |
-
return;
|
166 |
-
}
|
167 |
-
}
|
168 |
-
}
|
169 |
-
|
170 |
-
// Hide styles on this catergorys - list
|
171 |
-
$list_hideon_cat = esc_html( $options['list_hideon_cat'] );
|
172 |
-
|
173 |
-
// avoid calling foreach, explode when hide on categorys list is empty
|
174 |
-
if( $list_hideon_cat ) {
|
175 |
-
|
176 |
-
// Get current post Categorys list and create an array for that..
|
177 |
-
$current_categorys_array = array();
|
178 |
-
$current_categorys = get_the_category();
|
179 |
-
foreach ( $current_categorys as $category ) {
|
180 |
-
$current_categorys_array[] = strtolower($category->name);
|
181 |
-
}
|
182 |
-
|
183 |
-
$list_hideon_cat_array = explode(',', $list_hideon_cat);
|
184 |
-
|
185 |
-
foreach ( $list_hideon_cat_array as $category ) {
|
186 |
-
$category_trim = trim($category);
|
187 |
-
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
188 |
-
$display = 'no';
|
189 |
-
return;
|
190 |
-
}
|
191 |
-
}
|
192 |
-
}
|
193 |
-
|
194 |
-
}
|
195 |
-
|
196 |
-
|
197 |
-
// Hide based on device
|
198 |
-
|
199 |
-
if ( function_exists( 'wp_is_mobile' ) ) {
|
200 |
-
if ( wp_is_mobile() ) {
|
201 |
-
// mobile
|
202 |
-
if ( isset( $options['hideon_mobile'] ) ) {
|
203 |
-
$display = 'no';
|
204 |
-
}
|
205 |
-
} else {
|
206 |
-
// desktop
|
207 |
-
if ( isset( $options['hideon_desktop'] ) ) {
|
208 |
-
$display = 'no';
|
209 |
-
}
|
210 |
-
}
|
211 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* @included from - class-ht-ctc-share.php
|
5 |
+
*
|
6 |
+
* sets $display - yes to show styles or no to hide styles
|
7 |
+
*/
|
8 |
+
|
9 |
+
$this_page_id = get_the_ID();
|
10 |
+
|
11 |
+
|
12 |
+
// yes to display style and no to hide styles
|
13 |
+
// @uses at 'class-ht-ctc-share.php'
|
14 |
+
$display = 'yes';
|
15 |
+
|
16 |
+
|
17 |
+
// show / hide
|
18 |
+
if ( 'show' == $options['show_or_hide'] ) {
|
19 |
+
// show based no
|
20 |
+
|
21 |
+
// in show - default display is no
|
22 |
+
$display = 'no';
|
23 |
+
|
24 |
+
$pages_list_toshow = esc_html( $options['list_showon_pages'] );
|
25 |
+
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
26 |
+
|
27 |
+
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_toshow_array ) ) {
|
28 |
+
$display = 'yes';
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
33 |
+
$display = 'yes';
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
|
37 |
+
if ( is_page() && isset( $options['showon_page'] ) ) {
|
38 |
+
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
39 |
+
$display = 'yes';
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
// is_home and is_front_page - combined.
|
45 |
+
if ( ( is_home() || is_front_page() ) && ( isset( $options['showon_homepage'] ) ) ) {
|
46 |
+
$display = 'yes';
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
+
if ( is_category() && isset( $options['showon_category'] ) ) {
|
52 |
+
$display = 'yes';
|
53 |
+
return;
|
54 |
+
}
|
55 |
+
|
56 |
+
if ( is_archive() && isset( $options['showon_archive'] ) ) {
|
57 |
+
$display = 'yes';
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
if ( is_404() && isset( $options['showon_404'] ) ) {
|
62 |
+
$display = 'yes';
|
63 |
+
return;
|
64 |
+
}
|
65 |
+
|
66 |
+
// show on woocommerce single product pages.
|
67 |
+
if ( isset( $options['showon_wooproduct'] ) ) {
|
68 |
+
if ( function_exists( 'is_product' ) ) {
|
69 |
+
if ( is_product() ) {
|
70 |
+
$display = 'yes';
|
71 |
+
return;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
// Hide styles on this catergorys - list
|
78 |
+
$list_showon_cat = esc_html( $options['list_showon_cat'] );
|
79 |
+
|
80 |
+
// avoid calling foreach, explode when hide on categorys list is empty
|
81 |
+
if( $list_showon_cat ) {
|
82 |
+
|
83 |
+
// Get current post Categorys list and create an array for that..
|
84 |
+
$current_categorys_array = array();
|
85 |
+
$current_categorys = get_the_category();
|
86 |
+
foreach ( $current_categorys as $category ) {
|
87 |
+
$current_categorys_array[] = strtolower($category->name);
|
88 |
+
}
|
89 |
+
|
90 |
+
$list_showon_cat_array = explode(',', $list_showon_cat);
|
91 |
+
|
92 |
+
foreach ( $list_showon_cat_array as $category ) {
|
93 |
+
$category_trim = trim($category);
|
94 |
+
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
95 |
+
$display = 'yes';
|
96 |
+
return;
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
} else {
|
102 |
+
|
103 |
+
// hide based on
|
104 |
+
|
105 |
+
// in hide - default display is yes
|
106 |
+
$display = 'yes';
|
107 |
+
|
108 |
+
|
109 |
+
$pages_list_tohide = esc_html( $options['list_hideon_pages'] );
|
110 |
+
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
111 |
+
|
112 |
+
if( ( is_single() || is_page() ) && in_array( $this_page_id, $pages_list_tohide_array ) ) {
|
113 |
+
$display = 'no';
|
114 |
+
return;
|
115 |
+
}
|
116 |
+
|
117 |
+
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
118 |
+
$display = 'no';
|
119 |
+
return;
|
120 |
+
}
|
121 |
+
|
122 |
+
if ( is_page() && isset( $options['hideon_page'] ) ) {
|
123 |
+
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
124 |
+
$display = 'no';
|
125 |
+
return;
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
// if ( is_home() && isset( $options['hideon_homepage'] ) ) {
|
130 |
+
// $display = 'no';
|
131 |
+
// return;
|
132 |
+
// }
|
133 |
+
|
134 |
+
// if ( is_front_page() && isset( $options['hideon_frontpage'] ) ) {
|
135 |
+
// $display = 'no';
|
136 |
+
// return;
|
137 |
+
// }
|
138 |
+
|
139 |
+
// is_home and is_front_page - combined.
|
140 |
+
if ( ( is_home() || is_front_page() ) && ( isset( $options['hideon_homepage'] ) ) ) {
|
141 |
+
$display = 'no';
|
142 |
+
return;
|
143 |
+
}
|
144 |
+
|
145 |
+
if ( is_category() && isset( $options['hideon_category'] ) ) {
|
146 |
+
$display = 'no';
|
147 |
+
return;
|
148 |
+
}
|
149 |
+
|
150 |
+
if ( is_archive() && isset( $options['hideon_archive'] ) ) {
|
151 |
+
$display = 'no';
|
152 |
+
return;
|
153 |
+
}
|
154 |
+
|
155 |
+
if ( is_404() && isset( $options['hideon_404'] ) ) {
|
156 |
+
$display = 'no';
|
157 |
+
return;
|
158 |
+
}
|
159 |
+
|
160 |
+
// hide on woocommerce single product pages.
|
161 |
+
if ( isset( $options['hideon_wooproduct'] ) ) {
|
162 |
+
if ( function_exists( 'is_product' ) ) {
|
163 |
+
if ( is_product() ) {
|
164 |
+
$display = 'no';
|
165 |
+
return;
|
166 |
+
}
|
167 |
+
}
|
168 |
+
}
|
169 |
+
|
170 |
+
// Hide styles on this catergorys - list
|
171 |
+
$list_hideon_cat = esc_html( $options['list_hideon_cat'] );
|
172 |
+
|
173 |
+
// avoid calling foreach, explode when hide on categorys list is empty
|
174 |
+
if( $list_hideon_cat ) {
|
175 |
+
|
176 |
+
// Get current post Categorys list and create an array for that..
|
177 |
+
$current_categorys_array = array();
|
178 |
+
$current_categorys = get_the_category();
|
179 |
+
foreach ( $current_categorys as $category ) {
|
180 |
+
$current_categorys_array[] = strtolower($category->name);
|
181 |
+
}
|
182 |
+
|
183 |
+
$list_hideon_cat_array = explode(',', $list_hideon_cat);
|
184 |
+
|
185 |
+
foreach ( $list_hideon_cat_array as $category ) {
|
186 |
+
$category_trim = trim($category);
|
187 |
+
if ( in_array( strtolower($category_trim), $current_categorys_array ) ) {
|
188 |
+
$display = 'no';
|
189 |
+
return;
|
190 |
+
}
|
191 |
+
}
|
192 |
+
}
|
193 |
+
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
// Hide based on device
|
198 |
+
|
199 |
+
if ( function_exists( 'wp_is_mobile' ) ) {
|
200 |
+
if ( wp_is_mobile() ) {
|
201 |
+
// mobile
|
202 |
+
if ( isset( $options['hideon_mobile'] ) ) {
|
203 |
+
$display = 'no';
|
204 |
+
}
|
205 |
+
} else {
|
206 |
+
// desktop
|
207 |
+
if ( isset( $options['hideon_desktop'] ) ) {
|
208 |
+
$display = 'no';
|
209 |
+
}
|
210 |
+
}
|
211 |
}
|
new/inc/styles-shortcode/sc-style-1.php
CHANGED
@@ -1,20 +1,17 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*/
|
6 |
-
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
// $s1_options = get_option( 'ht_ctc_s1' );
|
10 |
-
// $s1_img_size = esc_attr( $s1_options['s1_img_size'] );
|
11 |
-
|
12 |
-
|
13 |
-
$o .= '
|
14 |
-
<
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
+
|
9 |
+
// $s1_options = get_option( 'ht_ctc_s1' );
|
10 |
+
// $s1_img_size = esc_attr( $s1_options['s1_img_size'] );
|
11 |
+
|
12 |
+
|
13 |
+
$o .= '
|
14 |
+
<button class="ctc-analytics">'.$call_to_action.'</button>
|
15 |
+
';
|
16 |
+
|
17 |
+
?>
|
|
|
|
|
|
new/inc/styles-shortcode/sc-style-2.php
CHANGED
@@ -1,26 +1,20 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*/
|
6 |
-
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
$s2_options = get_option( 'ht_ctc_s2' );
|
10 |
-
|
11 |
-
$s2_img_size = esc_attr( $s2_options['s2_img_size'] );
|
12 |
-
|
13 |
-
$s2_img_link = plugins_url( './new/inc/assets/img/whatsapp-icon-square.svg', HT_CTC_PLUGIN_FILE );
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
<img class="img-icon" title="'.$call_to_action.'" style="height: '.$s2_img_size.';" src="'.$s2_img_link.'" alt="WhatsApp chat">
|
22 |
-
</div>
|
23 |
-
';
|
24 |
-
|
25 |
-
|
26 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
+
|
9 |
+
$s2_options = get_option( 'ht_ctc_s2' );
|
10 |
+
|
11 |
+
$s2_img_size = esc_attr( $s2_options['s2_img_size'] );
|
12 |
+
|
13 |
+
$s2_img_link = plugins_url( './new/inc/assets/img/whatsapp-icon-square.svg', HT_CTC_PLUGIN_FILE );
|
14 |
+
|
15 |
+
|
16 |
+
$o .= '
|
17 |
+
<img class="img-icon ctc-analytics" title="'.$call_to_action.'" style="height: '.$s2_img_size.';" src="'.$s2_img_link.'" alt="WhatsApp chat">
|
18 |
+
';
|
19 |
+
|
20 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
new/inc/styles-shortcode/sc-style-3.php
CHANGED
@@ -1,26 +1,20 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*/
|
6 |
-
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
$s3_options = get_option( 'ht_ctc_s3' );
|
10 |
-
|
11 |
-
$s3_img_size = esc_attr( $s3_options['s3_img_size'] );
|
12 |
-
|
13 |
-
$s3_img_link = plugins_url( './new/inc/assets/img/whatsapp-logo.svg', HT_CTC_PLUGIN_FILE );
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
<img class="img-icon" title="'.$call_to_action.'" style="height: '.$s3_img_size.';" src="'.$s3_img_link.'" alt="WhatsApp chat">
|
22 |
-
</div>
|
23 |
-
';
|
24 |
-
|
25 |
-
|
26 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
+
|
9 |
+
$s3_options = get_option( 'ht_ctc_s3' );
|
10 |
+
|
11 |
+
$s3_img_size = esc_attr( $s3_options['s3_img_size'] );
|
12 |
+
|
13 |
+
$s3_img_link = plugins_url( './new/inc/assets/img/whatsapp-logo.svg', HT_CTC_PLUGIN_FILE );
|
14 |
+
|
15 |
+
|
16 |
+
$o .= '
|
17 |
+
<img class="img-icon ctc-analytics" title="'.$call_to_action.'" style="height: '.$s3_img_size.';" src="'.$s3_img_link.'" alt="WhatsApp chat">
|
18 |
+
';
|
19 |
+
|
20 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
new/inc/styles-shortcode/sc-style-4.php
CHANGED
@@ -1,62 +1,59 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* chip style
|
4 |
-
*
|
5 |
-
*/
|
6 |
-
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
$s4_options = get_option( 'ht_ctc_s4' );
|
10 |
-
|
11 |
-
|
12 |
-
$s4_text_color = esc_attr( $s4_options['s4_text_color'] );
|
13 |
-
$s4_bg_color = esc_attr( $s4_options['s4_bg_color'] );
|
14 |
-
|
15 |
-
$s4_img_url = esc_attr( $s4_options['s4_img_url'] );
|
16 |
-
|
17 |
-
// if user not added any image
|
18 |
-
if ( '' == $s4_img_url ) {
|
19 |
-
$s4_img_url = plugins_url( './new/inc/assets/img/whatsapp-logo-32x32.png', HT_CTC_PLUGIN_FILE );
|
20 |
-
}
|
21 |
-
|
22 |
-
|
23 |
-
?>
|
24 |
-
|
25 |
-
<style>
|
26 |
-
|
27 |
-
.chip {
|
28 |
-
display: inline-block;
|
29 |
-
padding-left: 12px;
|
30 |
-
padding-right: 12px;
|
31 |
-
padding-top: 0px;
|
32 |
-
padding-bottom: 0px;
|
33 |
-
border-radius: 25px;
|
34 |
-
font-size: 13px;
|
35 |
-
line-height: 32px;
|
36 |
-
}
|
37 |
-
|
38 |
-
/* Image */
|
39 |
-
.chip img {
|
40 |
-
float: left;
|
41 |
-
margin: 0 8px 0 -12px;
|
42 |
-
height: 32px;
|
43 |
-
width: 32px;
|
44 |
-
border-radius: 50%;
|
45 |
-
}
|
46 |
-
|
47 |
-
</style>
|
48 |
-
|
49 |
-
|
50 |
-
<?php
|
51 |
-
|
52 |
-
$o .= '
|
53 |
-
<div
|
54 |
-
|
55 |
-
'.$
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* chip style
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
+
|
9 |
+
$s4_options = get_option( 'ht_ctc_s4' );
|
10 |
+
|
11 |
+
|
12 |
+
$s4_text_color = esc_attr( $s4_options['s4_text_color'] );
|
13 |
+
$s4_bg_color = esc_attr( $s4_options['s4_bg_color'] );
|
14 |
+
|
15 |
+
$s4_img_url = esc_attr( $s4_options['s4_img_url'] );
|
16 |
+
|
17 |
+
// if user not added any image
|
18 |
+
if ( '' == $s4_img_url ) {
|
19 |
+
$s4_img_url = plugins_url( './new/inc/assets/img/whatsapp-logo-32x32.png', HT_CTC_PLUGIN_FILE );
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
+
?>
|
24 |
+
|
25 |
+
<style>
|
26 |
+
|
27 |
+
.chip {
|
28 |
+
display: inline-block;
|
29 |
+
padding-left: 12px;
|
30 |
+
padding-right: 12px;
|
31 |
+
padding-top: 0px;
|
32 |
+
padding-bottom: 0px;
|
33 |
+
border-radius: 25px;
|
34 |
+
font-size: 13px;
|
35 |
+
line-height: 32px;
|
36 |
+
}
|
37 |
+
|
38 |
+
/* Image */
|
39 |
+
.chip img {
|
40 |
+
float: left;
|
41 |
+
margin: 0 8px 0 -12px;
|
42 |
+
height: 32px;
|
43 |
+
width: 32px;
|
44 |
+
border-radius: 50%;
|
45 |
+
}
|
46 |
+
|
47 |
+
</style>
|
48 |
+
|
49 |
+
|
50 |
+
<?php
|
51 |
+
|
52 |
+
$o .= '
|
53 |
+
<div class="chip ctc-analytics" style="background-color: '.$s4_bg_color.'; color: '.$s4_text_color.';">
|
54 |
+
'.$call_to_action.'
|
55 |
+
<img src="'.$s4_img_url.'" alt="whatsapp">
|
56 |
+
</div>
|
57 |
+
';
|
58 |
+
|
59 |
+
?>
|
|
|
|
|
|
new/inc/styles-shortcode/sc-style-5.php
CHANGED
@@ -1,134 +1,130 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* image with content slider
|
4 |
-
*/
|
5 |
-
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
-
|
8 |
-
$s5_options = get_option( 'ht_ctc_s5' );
|
9 |
-
|
10 |
-
$s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
|
11 |
-
$s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
|
12 |
-
$s5_line_1_color = esc_attr( $s5_options['s5_line_1_color'] );
|
13 |
-
$s5_line_2_color = esc_attr( $s5_options['s5_line_2_color'] );
|
14 |
-
$s5_background_color = esc_attr( $s5_options['s5_background_color'] );
|
15 |
-
$s5_border_color = esc_attr( $s5_options['s5_border_color'] );
|
16 |
-
$s5_img = esc_attr( $s5_options['s5_img'] );
|
17 |
-
$s5_img_height = esc_attr( $s5_options['s5_img_height'] );
|
18 |
-
$s5_img_width = esc_attr( $s5_options['s5_img_width'] );
|
19 |
-
$s5_content_height = esc_attr( $s5_options['s5_content_height'] );
|
20 |
-
$s5_content_width = esc_attr( $s5_options['s5_content_width'] );
|
21 |
-
|
22 |
-
// shortcodes image position default to left, can change position using attributes
|
23 |
-
// $s5_img_position = esc_attr( $s5_options['s5_img_position'] );
|
24 |
-
$s5_img_position = 'left';
|
25 |
-
|
26 |
-
// shortcode attributes
|
27 |
-
$s5_img_position_sc = $a["s5_img_position"];
|
28 |
-
|
29 |
-
if ( '' !== $s5_img_position_sc ) {
|
30 |
-
$s5_img_position = $s5_img_position_sc;
|
31 |
-
}
|
32 |
-
|
33 |
-
|
34 |
-
// default image - if user not added any image
|
35 |
-
if ( '' == $s5_img ) {
|
36 |
-
$s5_img = plugins_url( './new/inc/assets/img/new_style8.jpg', HT_CTC_PLUGIN_FILE );
|
37 |
-
}
|
38 |
-
|
39 |
-
if ( '' == $s5_line_1 ) {
|
40 |
-
$s5_line_1 = $call_to_action;
|
41 |
-
}
|
42 |
-
|
43 |
-
|
44 |
-
$s5_cta_style = "display: -ms-flexbox; display: -webkit-flex; display: flex;";
|
45 |
-
|
46 |
-
|
47 |
-
$s5_img_style = '';
|
48 |
-
$s5_img_style .= 'height: '.$s5_img_height.'; width: '.$s5_img_width.'; z-index: 999999; ';
|
49 |
-
if ( 'right' == $s5_img_position ) {
|
50 |
-
$s5_img_style .= 'order: 1;';
|
51 |
-
}
|
52 |
-
|
53 |
-
$s5_content_style = '';
|
54 |
-
$s5_content_style .= 'flex-direction: column; justify-content: center; align-items: center; ';
|
55 |
-
$s5_content_style .= ' background-color: '.$s5_background_color.'; border: 1px solid '.$s5_border_color.'; height: '.$s5_content_height.'; width: '.$s5_content_width.'; ';
|
56 |
-
if ( 'right' == $s5_img_position ) {
|
57 |
-
$s5_content_style .= 'margin-right: -4px;';
|
58 |
-
} elseif ( 'left' == $s5_img_position ) {
|
59 |
-
$s5_content_style .= 'margin-left: -4px;';
|
60 |
-
}
|
61 |
-
|
62 |
-
|
63 |
-
// adding styles..
|
64 |
-
$s5_css_code = '
|
65 |
-
.ht-ctc-style-5 .s5_img {
|
66 |
-
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
67 |
-
}
|
68 |
-
.ht-ctc-style-5 .s5_content {
|
69 |
-
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
70 |
-
border-radius: 5px;
|
71 |
-
}
|
72 |
-
.ht-ctc-style-5 .s5_content span {
|
73 |
-
padding: 5px;
|
74 |
-
overflow: hidden;
|
75 |
-
}
|
76 |
-
.ht-ctc-style-5 .s5_content .heading {
|
77 |
-
font-size: 20px;
|
78 |
-
}
|
79 |
-
.ht-ctc-style-5 .s5_content .description {
|
80 |
-
font-size: 12px;
|
81 |
-
}
|
82 |
-
.ht-ctc-style-5 .s5_content.right {
|
83 |
-
animation: 1s s5_translate_right;
|
84 |
-
}
|
85 |
-
.ht-ctc-style-5 .s5_content.left {
|
86 |
-
animation: 1s s5_translate_left;
|
87 |
-
}
|
88 |
-
|
89 |
-
@keyframes s5_translate_right {
|
90 |
-
0% {
|
91 |
-
transform: translateX(55px)
|
92 |
-
}
|
93 |
-
100% {
|
94 |
-
transform: translateX(0px)
|
95 |
-
}
|
96 |
-
}
|
97 |
-
|
98 |
-
@keyframes s5_translate_left {
|
99 |
-
0% {
|
100 |
-
transform: translateX(-55px)
|
101 |
-
}
|
102 |
-
100% {
|
103 |
-
transform: translateX(0px)
|
104 |
-
}
|
105 |
-
}
|
106 |
-
';
|
107 |
-
|
108 |
-
|
109 |
-
// styles
|
110 |
-
$o
|
111 |
-
$o .= '
|
112 |
-
$o .=
|
113 |
-
$o .=
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
<div
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
</div>
|
131 |
-
';
|
132 |
-
|
133 |
-
|
134 |
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* image with content slider
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
$s5_options = get_option( 'ht_ctc_s5' );
|
9 |
+
|
10 |
+
$s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
|
11 |
+
$s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
|
12 |
+
$s5_line_1_color = esc_attr( $s5_options['s5_line_1_color'] );
|
13 |
+
$s5_line_2_color = esc_attr( $s5_options['s5_line_2_color'] );
|
14 |
+
$s5_background_color = esc_attr( $s5_options['s5_background_color'] );
|
15 |
+
$s5_border_color = esc_attr( $s5_options['s5_border_color'] );
|
16 |
+
$s5_img = esc_attr( $s5_options['s5_img'] );
|
17 |
+
$s5_img_height = esc_attr( $s5_options['s5_img_height'] );
|
18 |
+
$s5_img_width = esc_attr( $s5_options['s5_img_width'] );
|
19 |
+
$s5_content_height = esc_attr( $s5_options['s5_content_height'] );
|
20 |
+
$s5_content_width = esc_attr( $s5_options['s5_content_width'] );
|
21 |
+
|
22 |
+
// shortcodes image position default to left, can change position using attributes
|
23 |
+
// $s5_img_position = esc_attr( $s5_options['s5_img_position'] );
|
24 |
+
$s5_img_position = 'left';
|
25 |
+
|
26 |
+
// shortcode attributes
|
27 |
+
$s5_img_position_sc = $a["s5_img_position"];
|
28 |
+
|
29 |
+
if ( '' !== $s5_img_position_sc ) {
|
30 |
+
$s5_img_position = $s5_img_position_sc;
|
31 |
+
}
|
32 |
+
|
33 |
+
|
34 |
+
// default image - if user not added any image
|
35 |
+
if ( '' == $s5_img ) {
|
36 |
+
$s5_img = plugins_url( './new/inc/assets/img/new_style8.jpg', HT_CTC_PLUGIN_FILE );
|
37 |
+
}
|
38 |
+
|
39 |
+
if ( '' == $s5_line_1 ) {
|
40 |
+
$s5_line_1 = $call_to_action;
|
41 |
+
}
|
42 |
+
|
43 |
+
|
44 |
+
$s5_cta_style = "display: -ms-flexbox; display: -webkit-flex; display: flex;";
|
45 |
+
|
46 |
+
|
47 |
+
$s5_img_style = '';
|
48 |
+
$s5_img_style .= 'height: '.$s5_img_height.'; width: '.$s5_img_width.'; z-index: 999999; ';
|
49 |
+
if ( 'right' == $s5_img_position ) {
|
50 |
+
$s5_img_style .= 'order: 1;';
|
51 |
+
}
|
52 |
+
|
53 |
+
$s5_content_style = '';
|
54 |
+
$s5_content_style .= 'flex-direction: column; justify-content: center; align-items: center; ';
|
55 |
+
$s5_content_style .= ' background-color: '.$s5_background_color.'; border: 1px solid '.$s5_border_color.'; height: '.$s5_content_height.'; width: '.$s5_content_width.'; ';
|
56 |
+
if ( 'right' == $s5_img_position ) {
|
57 |
+
$s5_content_style .= 'margin-right: -4px;';
|
58 |
+
} elseif ( 'left' == $s5_img_position ) {
|
59 |
+
$s5_content_style .= 'margin-left: -4px;';
|
60 |
+
}
|
61 |
+
|
62 |
+
|
63 |
+
// adding styles..
|
64 |
+
$s5_css_code = '
|
65 |
+
.ht-ctc-style-5 .s5_img {
|
66 |
+
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
67 |
+
}
|
68 |
+
.ht-ctc-style-5 .s5_content {
|
69 |
+
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
70 |
+
border-radius: 5px;
|
71 |
+
}
|
72 |
+
.ht-ctc-style-5 .s5_content span {
|
73 |
+
padding: 5px;
|
74 |
+
overflow: hidden;
|
75 |
+
}
|
76 |
+
.ht-ctc-style-5 .s5_content .heading {
|
77 |
+
font-size: 20px;
|
78 |
+
}
|
79 |
+
.ht-ctc-style-5 .s5_content .description {
|
80 |
+
font-size: 12px;
|
81 |
+
}
|
82 |
+
.ht-ctc-style-5 .s5_content.right {
|
83 |
+
animation: 1s s5_translate_right;
|
84 |
+
}
|
85 |
+
.ht-ctc-style-5 .s5_content.left {
|
86 |
+
animation: 1s s5_translate_left;
|
87 |
+
}
|
88 |
+
|
89 |
+
@keyframes s5_translate_right {
|
90 |
+
0% {
|
91 |
+
transform: translateX(55px)
|
92 |
+
}
|
93 |
+
100% {
|
94 |
+
transform: translateX(0px)
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
+
@keyframes s5_translate_left {
|
99 |
+
0% {
|
100 |
+
transform: translateX(-55px)
|
101 |
+
}
|
102 |
+
100% {
|
103 |
+
transform: translateX(0px)
|
104 |
+
}
|
105 |
+
}
|
106 |
+
';
|
107 |
+
|
108 |
+
|
109 |
+
// styles
|
110 |
+
$o .= '<style>';
|
111 |
+
$o .= '.ht-ctc-style-5 .s5_content { display: none; } .ht-ctc-style-5 .s5_cta:hover .s5_content { display: flex; } ';
|
112 |
+
$o .= $s5_css_code;
|
113 |
+
$o .= '</style>';
|
114 |
+
|
115 |
+
|
116 |
+
$o .= '
|
117 |
+
|
118 |
+
<div class="ht-ctc-style-5 ctc-analytics" style="display: inline-block; cursor: pointer; z-index: 99999999;" >
|
119 |
+
<div class="s5_cta ctc-analytics" style="'.$s5_cta_style.'" >
|
120 |
+
<img class="s5_img ctc-analytics" src="'.$s5_img.'" style="'.$s5_img_style.'" alt="whatsapp">
|
121 |
+
<div class="s5_content '.$s5_img_position.'" style="'.$s5_content_style.'" >
|
122 |
+
<span class="heading ctc-analytics" style="color: '.$s5_line_1_color.'">'.$s5_line_1.'</span>
|
123 |
+
<span class="description ctc-analytics" style="color: '.$s5_line_2_color.'">'.$s5_line_2.'</span>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
';
|
129 |
+
|
|
|
|
|
|
|
|
|
130 |
?>
|
new/inc/styles-shortcode/sc-style-6.php
CHANGED
@@ -1,31 +1,28 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* plain text link
|
4 |
-
*/
|
5 |
-
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
-
|
8 |
-
$s6_options = get_option( 'ht_ctc_s6' );
|
9 |
-
|
10 |
-
$s6_txt_color = esc_attr( $s6_options['s6_txt_color'] );
|
11 |
-
$s6_txt_color_on_hover = esc_attr( $s6_options['s6_txt_color_on_hover'] );
|
12 |
-
$s6_txt_decoration = esc_attr( $s6_options['s6_txt_decoration'] );
|
13 |
-
$s6_txt_decoration_on_hover = esc_attr( $s6_options['s6_txt_decoration_on_hover'] );
|
14 |
-
|
15 |
-
$input_onhover = "this.style.color='$s6_txt_color_on_hover', this.style.textDecoration='$s6_txt_decoration_on_hover'";
|
16 |
-
$input_onhover_out = "this.style.color='$s6_txt_color', this.style.textDecoration='$s6_txt_decoration'";
|
17 |
-
|
18 |
-
|
19 |
-
$o .= '
|
20 |
-
<
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* plain text link
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
$s6_options = get_option( 'ht_ctc_s6' );
|
9 |
+
|
10 |
+
$s6_txt_color = esc_attr( $s6_options['s6_txt_color'] );
|
11 |
+
$s6_txt_color_on_hover = esc_attr( $s6_options['s6_txt_color_on_hover'] );
|
12 |
+
$s6_txt_decoration = esc_attr( $s6_options['s6_txt_decoration'] );
|
13 |
+
$s6_txt_decoration_on_hover = esc_attr( $s6_options['s6_txt_decoration_on_hover'] );
|
14 |
+
|
15 |
+
$input_onhover = "this.style.color='$s6_txt_color_on_hover', this.style.textDecoration='$s6_txt_decoration_on_hover'";
|
16 |
+
$input_onhover_out = "this.style.color='$s6_txt_color', this.style.textDecoration='$s6_txt_decoration'";
|
17 |
+
|
18 |
+
|
19 |
+
$o .= '
|
20 |
+
<a class="ctc-analytics" style="color: '.$s6_txt_color.'; text-decoration: '.$s6_txt_decoration.';"
|
21 |
+
onmouseover = "'.$input_onhover.'"
|
22 |
+
onmouseout = "'.$input_onhover_out.'"
|
23 |
+
>
|
24 |
+
'.$call_to_action.'
|
25 |
+
</a>
|
26 |
+
';
|
27 |
+
|
28 |
+
?>
|
|
|
|
|
|
new/inc/styles-shortcode/sc-style-7.php
CHANGED
@@ -1,33 +1,33 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* icon with padding borderr
|
4 |
-
*/
|
5 |
-
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
$
|
14 |
-
$
|
15 |
-
$
|
16 |
-
$
|
17 |
-
$
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
$
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
';
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* icon with padding borderr
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
wp_enqueue_style('ht_ctc_font_css');
|
9 |
+
|
10 |
+
$s7_options = get_option( 'ht_ctc_s7' );
|
11 |
+
|
12 |
+
|
13 |
+
$s7_icon_size = esc_attr( $s7_options['s7_icon_size'] );
|
14 |
+
$s7_icon_color = esc_attr( $s7_options['s7_icon_color'] );
|
15 |
+
$s7_icon_color_hover = esc_attr( $s7_options['s7_icon_color_hover'] );
|
16 |
+
$s7_border_size = esc_attr( $s7_options['s7_border_size'] );
|
17 |
+
$s7_border_color = esc_attr( $s7_options['s7_border_color'] );
|
18 |
+
$s7_border_color_hover = esc_attr( $s7_options['s7_border_color_hover'] );
|
19 |
+
$s7_border_radius = esc_attr( $s7_options['s7_border_radius'] );
|
20 |
+
|
21 |
+
|
22 |
+
$s7_css = "font-size: $s7_icon_size; color: $s7_icon_color; padding: $s7_border_size; background-color: $s7_border_color; border-radius: $s7_border_radius;";
|
23 |
+
|
24 |
+
$input_onhover = "this.style.color='$s7_icon_color_hover', this.style.backgroundColor='$s7_border_color_hover'" ;
|
25 |
+
$input_onhover_out = "this.style.color='$s7_icon_color', this.style.backgroundColor='$s7_border_color'";
|
26 |
+
|
27 |
+
|
28 |
+
$o .= '
|
29 |
+
<span title="'.$call_to_action.'" class="ctc-icon ctc-icon-whatsapp2 ctc-analytics" id="s7-icon" style="'.$s7_css.'"
|
30 |
+
onmouseover = "'.$input_onhover.'"
|
31 |
+
onmouseout = "'.$input_onhover_out.'"
|
32 |
+
></span>
|
33 |
';
|
new/inc/styles-shortcode/sc-style-8.php
CHANGED
@@ -1,57 +1,68 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* materialize button
|
4 |
-
*/
|
5 |
-
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
-
|
8 |
-
$s8_options = get_option( 'ht_ctc_s8' );
|
9 |
-
|
10 |
-
?>
|
11 |
-
<style>
|
12 |
-
.ht-ctc-sc-style-8 {
|
13 |
-
display: none;
|
14 |
-
}
|
15 |
-
</style>
|
16 |
-
<?php
|
17 |
-
|
18 |
-
wp_enqueue_style('
|
19 |
-
|
20 |
-
|
21 |
-
$
|
22 |
-
$
|
23 |
-
$
|
24 |
-
$
|
25 |
-
$
|
26 |
-
$
|
27 |
-
|
28 |
-
|
29 |
-
$
|
30 |
-
|
31 |
-
$
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
$
|
44 |
-
|
45 |
-
|
46 |
-
$
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
';
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* materialize button
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
$s8_options = get_option( 'ht_ctc_s8' );
|
9 |
+
|
10 |
+
?>
|
11 |
+
<style>
|
12 |
+
.ht-ctc-sc-style-8 {
|
13 |
+
display: none;
|
14 |
+
}
|
15 |
+
</style>
|
16 |
+
<?php
|
17 |
+
|
18 |
+
wp_enqueue_style('ht_ctc_font_css');
|
19 |
+
wp_enqueue_style('ht_ctc_mdstyle8_css');
|
20 |
+
|
21 |
+
$s8_txt_color = esc_attr( $s8_options['s8_txt_color'] );
|
22 |
+
$s8_icon_color = esc_attr( $s8_options['s8_icon_color'] );
|
23 |
+
$s8_txt_color_on_hover = esc_attr( $s8_options['s8_txt_color_on_hover'] );
|
24 |
+
$s8_bg_color = esc_attr( $s8_options['s8_bg_color'] );
|
25 |
+
$s8_bg_color_on_hover = esc_attr( $s8_options['s8_bg_color_on_hover'] );
|
26 |
+
$s8_icon_color_on_hover = esc_attr( $s8_options['s8_icon_color_on_hover'] );
|
27 |
+
$s8_icon_position = esc_attr( $s8_options['s8_icon_position'] );
|
28 |
+
|
29 |
+
$s8_btn_size = esc_attr( $s8_options['s8_btn_size'] );
|
30 |
+
|
31 |
+
$s8_icon_size_db = esc_attr( $s8_options['s8_icon_size'] );
|
32 |
+
$s8_icon_size = ('' == $s8_icon_size_db) ? "" : "font-size: $s8_icon_size_db;";
|
33 |
+
// $s8_icon_size = ('' == $s8_icon_size_db) ? "font-size: 12px;" : "font-size: $s8_icon_size_db;";
|
34 |
+
|
35 |
+
$s8_text_size_db = esc_attr( $s8_options['s8_text_size'] );
|
36 |
+
$s8_text_size = ('' == $s8_text_size_db) ? "" : "font-size: $s8_text_size_db;";
|
37 |
+
// $s8_text_size = ('' == $s8_text_size_db) ? "font-size: 16px;" : "font-size: $s8_text_size_db;";
|
38 |
+
|
39 |
+
|
40 |
+
// shortcode attributes
|
41 |
+
$s8_width_sc = $a["s8_width"];
|
42 |
+
// left/right/hide or any thing to display icon just before the text
|
43 |
+
$s8_icon_position_sc = $a["s8_icon_position"];
|
44 |
+
|
45 |
+
$s8_width_css = '';
|
46 |
+
if ( '' !== $s8_width_sc ) {
|
47 |
+
$s8_width_css = "width: $s8_width_sc";
|
48 |
+
}
|
49 |
+
|
50 |
+
if ( '' !== $s8_icon_position_sc ) {
|
51 |
+
$s8_icon_position = $s8_icon_position_sc;
|
52 |
+
}
|
53 |
+
|
54 |
+
|
55 |
+
$input_onhover = "this.style.backgroundColor= '$s8_bg_color_on_hover', this.childNodes[1].style.color= '$s8_icon_color_on_hover', this.childNodes[3].style.color= '$s8_txt_color_on_hover'; ";
|
56 |
+
$input_onhover_out = "this.style.backgroundColor= '$s8_bg_color', this.childNodes[1].style.color= '$s8_icon_color', this.childNodes[3].style.color= '$s8_txt_color'; ";
|
57 |
+
|
58 |
+
|
59 |
+
$o .= '
|
60 |
+
<div class="ht-ctc-sc-style-8 mdstyle8 ctc-analytics">
|
61 |
+
<span class="waves-effect waves-light '.$s8_btn_size.' ctc-analytics" style="background-color: '.$s8_bg_color.'; '.$s8_width_css.'"
|
62 |
+
onmouseover= "'.$input_onhover.'"
|
63 |
+
onmouseout= "'.$input_onhover_out.'">
|
64 |
+
<i class="material-icons '.$s8_icon_position.' ctc-icon ctc-icon-whatsapp2 ctc-analytics" style="color: '.$s8_icon_color.'; '.$s8_icon_size.' "></i>
|
65 |
+
<span class="ctc-analytics" style="color: '.$s8_txt_color.'; '.$s8_text_size.' ">'.$call_to_action.'</span>
|
66 |
+
</span>
|
67 |
+
</div>
|
68 |
';
|
new/inc/styles-shortcode/sc-style-99.php
CHANGED
@@ -1,68 +1,57 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
$
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
$
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
$s99_img_css .= "
|
40 |
-
}
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
$call_to_action = '';
|
59 |
-
}
|
60 |
-
|
61 |
-
$o .= '
|
62 |
-
<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-ctc-type="'.$return_type.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">
|
63 |
-
<img class="own-img" title="'.$call_to_action.'" id="style-99" src="'.$s99_own_image.'" style="'.$s99_img_css.'" alt="WhatsApp chat">
|
64 |
-
</div>
|
65 |
-
';
|
66 |
-
|
67 |
-
|
68 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* style 99 own image
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
$s99_options = get_option( 'ht_ctc_s99' );
|
9 |
+
|
10 |
+
$s99_desktop_img_height = esc_attr( $s99_options['s99_desktop_img_height'] );
|
11 |
+
$s99_desktop_img_width = esc_attr( $s99_options['s99_desktop_img_width'] );
|
12 |
+
$s99_mobile_img_height = esc_attr( $s99_options['s99_mobile_img_height'] );
|
13 |
+
$s99_mobile_img_width = esc_attr( $s99_options['s99_mobile_img_width'] );
|
14 |
+
|
15 |
+
// img url
|
16 |
+
// image - width, height based on device
|
17 |
+
$s99_img_css = "";
|
18 |
+
|
19 |
+
|
20 |
+
if( 'yes' == $is_mobile ) {
|
21 |
+
|
22 |
+
$s99_own_image = esc_html( $s99_options['s99_mobile_img_url'] );
|
23 |
+
|
24 |
+
if ( '' !== $s99_mobile_img_height ) {
|
25 |
+
$s99_img_css .= "height: $s99_mobile_img_height; ";
|
26 |
+
} else {
|
27 |
+
$s99_img_css .= "height: 40px; ";
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( '' !== $s99_mobile_img_width ) {
|
31 |
+
$s99_img_css .= "width: $s99_mobile_img_width; ";
|
32 |
+
}
|
33 |
+
} else {
|
34 |
+
$s99_own_image = esc_html( $s99_options['s99_dekstop_img_url'] );
|
35 |
+
|
36 |
+
if ( '' !== $s99_desktop_img_height ) {
|
37 |
+
$s99_img_css .= "height: $s99_desktop_img_height; ";
|
38 |
+
} else {
|
39 |
+
$s99_img_css .= "height: 50px; ";
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( '' !== $s99_desktop_img_width ) {
|
43 |
+
$s99_img_css .= "width: $s99_desktop_img_width; ";
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
// fallback image
|
48 |
+
if ( '' == $s99_own_image ) {
|
49 |
+
$s99_own_image = plugins_url( './new/inc/assets/img/whatsapp-logo.svg', HT_CTC_PLUGIN_FILE );
|
50 |
+
}
|
51 |
+
|
52 |
+
|
53 |
+
$o .= '
|
54 |
+
<img class="own-img" title="'.$call_to_action.'" id="style-99" src="'.$s99_own_image.'" style="'.$s99_img_css.'" alt="WhatsApp chat">
|
55 |
+
';
|
56 |
+
|
57 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new/inc/styles/style-1.php
CHANGED
@@ -1,18 +1,15 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 1
|
4 |
-
*
|
5 |
-
* theme button
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
// $s1_options = get_option( 'ht_ctc_s1' );
|
12 |
-
|
13 |
-
|
14 |
-
?>
|
15 |
-
|
16 |
-
<div class="<?php echo $class_names ?>" style="position: fixed; <?php echo $position ?> cursor: pointer; z-index: 99999999;">
|
17 |
-
<button><?php echo $call_to_action ?></button>
|
18 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 1
|
4 |
+
*
|
5 |
+
* theme button
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
// $s1_options = get_option( 'ht_ctc_s1' );
|
12 |
+
|
13 |
+
|
14 |
+
?>
|
15 |
+
<button class="ctc-analytics"><?php echo $call_to_action ?></button>
|
|
|
|
|
|
new/inc/styles/style-2.php
CHANGED
@@ -1,26 +1,20 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 2
|
4 |
-
*
|
5 |
-
* Andriod like - WhatsApp icon
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
$s2_options = get_option( 'ht_ctc_s2' );
|
12 |
-
|
13 |
-
$s2_img_size = esc_attr( $s2_options['s2_img_size'] );
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
?>
|
21 |
-
|
22 |
-
<div class="<?php echo $class_names ?>" style="position: fixed; <?php echo $position ?> cursor: pointer; z-index: 99999999;">
|
23 |
-
<!-- <a href="<?php echo $link ?>" target="_blank" rel="noopener"> -->
|
24 |
-
<img class="img-icon" title="<?php echo $call_to_action ?>" style="height: <?php echo $s2_img_size ?>;" src="<?php echo plugins_url( './new/inc/assets/img/whatsapp-icon-square.svg', HT_CTC_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
25 |
-
<!-- </a> -->
|
26 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 2
|
4 |
+
*
|
5 |
+
* Andriod like - WhatsApp icon
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
$s2_options = get_option( 'ht_ctc_s2' );
|
12 |
+
|
13 |
+
$s2_img_size = esc_attr( $s2_options['s2_img_size'] );
|
14 |
+
// $img_size = esc_attr( $s2_options['s2_img_size'] );
|
15 |
+
// if ( '' == $img_size ) {
|
16 |
+
// $img_size = "50px";
|
17 |
+
// }
|
18 |
+
|
19 |
+
?>
|
20 |
+
<img class="img-icon ctc-analytics" title="<?php echo $call_to_action ?>" style="height: <?php echo $s2_img_size ?>;" src="<?php echo plugins_url( './new/inc/assets/img/whatsapp-icon-square.svg', HT_CTC_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
|
|
|
|
|
|
|
|
|
|
|
new/inc/styles/style-3.php
CHANGED
@@ -1,27 +1,20 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 3
|
4 |
-
*
|
5 |
-
* IOS like - WhatsApp icon
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
$s3_options = get_option( 'ht_ctc_s3' );
|
12 |
-
|
13 |
-
$s3_img_size = esc_attr( $s3_options['s3_img_size'] );
|
14 |
-
|
15 |
-
if (
|
16 |
-
|
17 |
-
}
|
18 |
-
|
19 |
-
?>
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
<div class="<?php echo $class_names ?>" style="position: fixed; <?php echo $position ?> cursor: pointer; z-index: 99999999;">
|
24 |
-
<!-- <a href="<?php echo $link ?>" target="_blank"> -->
|
25 |
-
<img class="img-icon" title="<?php echo $call_to_action ?>" style="height: <?php echo $s3_img_size ?>;" src="<?php echo plugins_url( './new/inc/assets/img/whatsapp-logo.svg', HT_CTC_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
26 |
-
<!-- </a> -->
|
27 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 3
|
4 |
+
*
|
5 |
+
* IOS like - WhatsApp icon
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
$s3_options = get_option( 'ht_ctc_s3' );
|
12 |
+
|
13 |
+
$s3_img_size = esc_attr( $s3_options['s3_img_size'] );
|
14 |
+
// $img_size = esc_attr( $s3_options['s3_img_size'] );
|
15 |
+
// if ( '' == $img_size ) {
|
16 |
+
// $img_size = "50px";
|
17 |
+
// }
|
18 |
+
|
19 |
+
?>
|
20 |
+
<img class="img-icon ctc-analytics" title="<?php echo $call_to_action ?>" style="height: <?php echo $s3_img_size ?>;" src="<?php echo plugins_url( './new/inc/assets/img/whatsapp-logo.svg', HT_CTC_PLUGIN_FILE ) ?>" alt="WhatsApp chat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new/inc/styles/style-4.php
CHANGED
@@ -1,61 +1,55 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 4
|
4 |
-
*
|
5 |
-
* Chip
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
$s4_options = get_option( 'ht_ctc_s4' );
|
12 |
-
|
13 |
-
|
14 |
-
$s4_text_color = esc_attr( $s4_options['s4_text_color'] );
|
15 |
-
$s4_bg_color = esc_attr( $s4_options['s4_bg_color'] );
|
16 |
-
|
17 |
-
$s4_img_url = esc_attr( $s4_options['s4_img_url'] );
|
18 |
-
|
19 |
-
// if user not added any image
|
20 |
-
if ( '' == $s4_img_url ) {
|
21 |
-
$s4_img_url = plugins_url( './new/inc/assets/img/whatsapp-logo-32x32.png', HT_CTC_PLUGIN_FILE );
|
22 |
-
}
|
23 |
-
|
24 |
-
?>
|
25 |
-
|
26 |
-
|
27 |
-
<style>
|
28 |
-
|
29 |
-
.chip {
|
30 |
-
display: inline-block;
|
31 |
-
padding-left: 12px;
|
32 |
-
padding-right: 12px;
|
33 |
-
padding-top: 0px;
|
34 |
-
padding-bottom: 0px;
|
35 |
-
border-radius: 25px;
|
36 |
-
font-size: 13px;
|
37 |
-
line-height: 32px;
|
38 |
-
}
|
39 |
-
|
40 |
-
/* Image */
|
41 |
-
.chip img {
|
42 |
-
float: left;
|
43 |
-
margin: 0 8px 0 -12px;
|
44 |
-
height: 32px;
|
45 |
-
width: 32px;
|
46 |
-
border-radius: 50%;
|
47 |
-
}
|
48 |
-
|
49 |
-
</style>
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
<
|
55 |
-
<!-- <a href="<?php echo $link ?>" target="_blank" style="color: inherit;"> -->
|
56 |
-
<div class="chip" style="background-color: <?php echo $s4_bg_color ?>; color: <?php echo $s4_text_color ?>;">
|
57 |
-
<?php echo $call_to_action ?>
|
58 |
-
<img src="<?php echo $s4_img_url ?>" alt="whatsapp">
|
59 |
-
</div>
|
60 |
-
<!-- </a> -->
|
61 |
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 4
|
4 |
+
*
|
5 |
+
* Chip
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
$s4_options = get_option( 'ht_ctc_s4' );
|
12 |
+
|
13 |
+
|
14 |
+
$s4_text_color = esc_attr( $s4_options['s4_text_color'] );
|
15 |
+
$s4_bg_color = esc_attr( $s4_options['s4_bg_color'] );
|
16 |
+
|
17 |
+
$s4_img_url = esc_attr( $s4_options['s4_img_url'] );
|
18 |
+
|
19 |
+
// if user not added any image
|
20 |
+
if ( '' == $s4_img_url ) {
|
21 |
+
$s4_img_url = plugins_url( './new/inc/assets/img/whatsapp-logo-32x32.png', HT_CTC_PLUGIN_FILE );
|
22 |
+
}
|
23 |
+
|
24 |
+
?>
|
25 |
+
|
26 |
+
|
27 |
+
<style>
|
28 |
+
|
29 |
+
.chip {
|
30 |
+
display: inline-block;
|
31 |
+
padding-left: 12px;
|
32 |
+
padding-right: 12px;
|
33 |
+
padding-top: 0px;
|
34 |
+
padding-bottom: 0px;
|
35 |
+
border-radius: 25px;
|
36 |
+
font-size: 13px;
|
37 |
+
line-height: 32px;
|
38 |
+
}
|
39 |
+
|
40 |
+
/* Image */
|
41 |
+
.chip img {
|
42 |
+
float: left;
|
43 |
+
margin: 0 8px 0 -12px;
|
44 |
+
height: 32px;
|
45 |
+
width: 32px;
|
46 |
+
border-radius: 50%;
|
47 |
+
}
|
48 |
+
|
49 |
+
</style>
|
50 |
+
|
51 |
+
|
52 |
+
<div class="chip ctc-analytics" style="background-color: <?php echo $s4_bg_color ?>; color: <?php echo $s4_text_color ?>;">
|
53 |
+
<?php echo $call_to_action ?>
|
54 |
+
<img src="<?php echo $s4_img_url ?>" alt="whatsapp">
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
</div>
|
new/inc/styles/style-5.php
CHANGED
@@ -1,125 +1,123 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 5
|
4 |
-
* image with content slider
|
5 |
-
*/
|
6 |
-
|
7 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
-
|
9 |
-
$s5_options = get_option( 'ht_ctc_s5' );
|
10 |
-
|
11 |
-
|
12 |
-
$s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
|
13 |
-
$s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
|
14 |
-
$s5_line_1_color = esc_attr( $s5_options['s5_line_1_color'] );
|
15 |
-
$s5_line_2_color = esc_attr( $s5_options['s5_line_2_color'] );
|
16 |
-
$s5_background_color = esc_attr( $s5_options['s5_background_color'] );
|
17 |
-
$s5_border_color = esc_attr( $s5_options['s5_border_color'] );
|
18 |
-
$s5_img = esc_attr( $s5_options['s5_img'] );
|
19 |
-
$s5_img_height = esc_attr( $s5_options['s5_img_height'] );
|
20 |
-
$s5_img_width = esc_attr( $s5_options['s5_img_width'] );
|
21 |
-
$s5_content_height = esc_attr( $s5_options['s5_content_height'] );
|
22 |
-
$s5_content_width = esc_attr( $s5_options['s5_content_width'] );
|
23 |
-
$s5_img_position = esc_attr( $s5_options['s5_img_position'] );
|
24 |
-
|
25 |
-
|
26 |
-
// default image - if user not added any image
|
27 |
-
if ( '' == $s5_img ) {
|
28 |
-
$s5_img = plugins_url( './new/inc/assets/img/new_style8.jpg', HT_CTC_PLUGIN_FILE );
|
29 |
-
}
|
30 |
-
|
31 |
-
if ( '' == $s5_line_1 ) {
|
32 |
-
$s5_line_1 = $call_to_action;
|
33 |
-
}
|
34 |
-
|
35 |
-
|
36 |
-
$s5_cta_style = "display: -ms-flexbox; display: -webkit-flex; display: flex;";
|
37 |
-
|
38 |
-
|
39 |
-
$s5_img_style = '';
|
40 |
-
$s5_img_style .= 'height: '.$s5_img_height.'; width: '.$s5_img_width.'; z-index: 999999; ';
|
41 |
-
if ( 'right' == $s5_img_position ) {
|
42 |
-
$s5_img_style .= 'order: 1;';
|
43 |
-
}
|
44 |
-
|
45 |
-
$s5_content_style = '';
|
46 |
-
$s5_content_style .= 'flex-direction: column; justify-content: center; align-items: center; ';
|
47 |
-
$s5_content_style .= ' background-color: '.$s5_background_color.'; border: 1px solid '.$s5_border_color.'; height: '.$s5_content_height.'; width: '.$s5_content_width.'; ';
|
48 |
-
if ( 'right' == $s5_img_position ) {
|
49 |
-
$s5_content_style .= 'margin-right: -4px;';
|
50 |
-
} elseif ( 'left' == $s5_img_position ) {
|
51 |
-
$s5_content_style .= 'margin-left: -4px;';
|
52 |
-
}
|
53 |
-
|
54 |
-
|
55 |
-
// adding styles..
|
56 |
-
$s5_css_code = '
|
57 |
-
.ht-ctc-style-5 .s5_img {
|
58 |
-
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
59 |
-
}
|
60 |
-
.ht-ctc-style-5 .s5_content {
|
61 |
-
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
62 |
-
border-radius: 5px;
|
63 |
-
}
|
64 |
-
.ht-ctc-style-5 .s5_content span {
|
65 |
-
padding: 5px;
|
66 |
-
overflow: hidden;
|
67 |
-
}
|
68 |
-
.ht-ctc-style-5 .s5_content .heading {
|
69 |
-
font-size: 20px;
|
70 |
-
}
|
71 |
-
.ht-ctc-style-5 .s5_content .description {
|
72 |
-
font-size: 12px;
|
73 |
-
}
|
74 |
-
.ht-ctc-style-5 .s5_content.right {
|
75 |
-
animation: 1s s5_translate_right;
|
76 |
-
}
|
77 |
-
.ht-ctc-style-5 .s5_content.left {
|
78 |
-
animation: 1s s5_translate_left;
|
79 |
-
}
|
80 |
-
|
81 |
-
@keyframes s5_translate_right {
|
82 |
-
0% {
|
83 |
-
transform: translateX(55px)
|
84 |
-
}
|
85 |
-
100% {
|
86 |
-
transform: translateX(0px)
|
87 |
-
}
|
88 |
-
}
|
89 |
-
|
90 |
-
@keyframes s5_translate_left {
|
91 |
-
0% {
|
92 |
-
transform: translateX(-55px)
|
93 |
-
}
|
94 |
-
100% {
|
95 |
-
transform: translateX(0px)
|
96 |
-
}
|
97 |
-
}
|
98 |
-
';
|
99 |
-
|
100 |
-
|
101 |
-
$o = '';
|
102 |
-
$o .= '<style>';
|
103 |
-
$o .= '.ht-ctc-style-5 .s5_content { display: none; } .ht-ctc-style-5 .s5_cta:hover .s5_content { display: flex; } ';
|
104 |
-
$o .= $s5_css_code;
|
105 |
-
$o .= '</style>';
|
106 |
-
|
107 |
-
echo $o;
|
108 |
-
|
109 |
-
|
110 |
-
?>
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
<
|
117 |
-
|
118 |
-
<
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
</div>
|
125 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 5
|
4 |
+
* image with content slider
|
5 |
+
*/
|
6 |
+
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
8 |
+
|
9 |
+
$s5_options = get_option( 'ht_ctc_s5' );
|
10 |
+
|
11 |
+
|
12 |
+
$s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
|
13 |
+
$s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
|
14 |
+
$s5_line_1_color = esc_attr( $s5_options['s5_line_1_color'] );
|
15 |
+
$s5_line_2_color = esc_attr( $s5_options['s5_line_2_color'] );
|
16 |
+
$s5_background_color = esc_attr( $s5_options['s5_background_color'] );
|
17 |
+
$s5_border_color = esc_attr( $s5_options['s5_border_color'] );
|
18 |
+
$s5_img = esc_attr( $s5_options['s5_img'] );
|
19 |
+
$s5_img_height = esc_attr( $s5_options['s5_img_height'] );
|
20 |
+
$s5_img_width = esc_attr( $s5_options['s5_img_width'] );
|
21 |
+
$s5_content_height = esc_attr( $s5_options['s5_content_height'] );
|
22 |
+
$s5_content_width = esc_attr( $s5_options['s5_content_width'] );
|
23 |
+
$s5_img_position = esc_attr( $s5_options['s5_img_position'] );
|
24 |
+
|
25 |
+
|
26 |
+
// default image - if user not added any image
|
27 |
+
if ( '' == $s5_img ) {
|
28 |
+
$s5_img = plugins_url( './new/inc/assets/img/new_style8.jpg', HT_CTC_PLUGIN_FILE );
|
29 |
+
}
|
30 |
+
|
31 |
+
if ( '' == $s5_line_1 ) {
|
32 |
+
$s5_line_1 = $call_to_action;
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
+
$s5_cta_style = "display: -ms-flexbox; display: -webkit-flex; display: flex;";
|
37 |
+
|
38 |
+
|
39 |
+
$s5_img_style = '';
|
40 |
+
$s5_img_style .= 'height: '.$s5_img_height.'; width: '.$s5_img_width.'; z-index: 999999; ';
|
41 |
+
if ( 'right' == $s5_img_position ) {
|
42 |
+
$s5_img_style .= 'order: 1;';
|
43 |
+
}
|
44 |
+
|
45 |
+
$s5_content_style = '';
|
46 |
+
$s5_content_style .= 'flex-direction: column; justify-content: center; align-items: center; ';
|
47 |
+
$s5_content_style .= ' background-color: '.$s5_background_color.'; border: 1px solid '.$s5_border_color.'; height: '.$s5_content_height.'; width: '.$s5_content_width.'; ';
|
48 |
+
if ( 'right' == $s5_img_position ) {
|
49 |
+
$s5_content_style .= 'margin-right: -4px;';
|
50 |
+
} elseif ( 'left' == $s5_img_position ) {
|
51 |
+
$s5_content_style .= 'margin-left: -4px;';
|
52 |
+
}
|
53 |
+
|
54 |
+
|
55 |
+
// adding styles..
|
56 |
+
$s5_css_code = '
|
57 |
+
.ht-ctc-style-5 .s5_img {
|
58 |
+
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
59 |
+
}
|
60 |
+
.ht-ctc-style-5 .s5_content {
|
61 |
+
box-shadow: 2px 5px 10px rgba(0,0,0,.5);
|
62 |
+
border-radius: 5px;
|
63 |
+
}
|
64 |
+
.ht-ctc-style-5 .s5_content span {
|
65 |
+
padding: 5px;
|
66 |
+
overflow: hidden;
|
67 |
+
}
|
68 |
+
.ht-ctc-style-5 .s5_content .heading {
|
69 |
+
font-size: 20px;
|
70 |
+
}
|
71 |
+
.ht-ctc-style-5 .s5_content .description {
|
72 |
+
font-size: 12px;
|
73 |
+
}
|
74 |
+
.ht-ctc-style-5 .s5_content.right {
|
75 |
+
animation: 1s s5_translate_right;
|
76 |
+
}
|
77 |
+
.ht-ctc-style-5 .s5_content.left {
|
78 |
+
animation: 1s s5_translate_left;
|
79 |
+
}
|
80 |
+
|
81 |
+
@keyframes s5_translate_right {
|
82 |
+
0% {
|
83 |
+
transform: translateX(55px)
|
84 |
+
}
|
85 |
+
100% {
|
86 |
+
transform: translateX(0px)
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
@keyframes s5_translate_left {
|
91 |
+
0% {
|
92 |
+
transform: translateX(-55px)
|
93 |
+
}
|
94 |
+
100% {
|
95 |
+
transform: translateX(0px)
|
96 |
+
}
|
97 |
+
}
|
98 |
+
';
|
99 |
+
|
100 |
+
|
101 |
+
$o = '';
|
102 |
+
$o .= '<style>';
|
103 |
+
$o .= '.ht-ctc-style-5 .s5_content { display: none; } .ht-ctc-style-5 .s5_cta:hover .s5_content { display: flex; } ';
|
104 |
+
$o .= $s5_css_code;
|
105 |
+
$o .= '</style>';
|
106 |
+
|
107 |
+
echo $o;
|
108 |
+
|
109 |
+
|
110 |
+
?>
|
111 |
+
|
112 |
+
|
113 |
+
<div class="ht-ctc-style-5 ctc-analytics" style="cursor: pointer; z-index: 99999999;" >
|
114 |
+
|
115 |
+
<div class="s5_cta" style="<?php echo $s5_cta_style ?>" >
|
116 |
+
<img class="s5_img ctc-analytics" src="<?php echo $s5_img ?>" style="<?php echo $s5_img_style ?>" alt="whatsapp">
|
117 |
+
<div class="s5_content ctc-analytics <?php echo $s5_img_position ?>" style="<?php echo $s5_content_style ?>" >
|
118 |
+
<span class="heading ctc-analytics" style="color: <?php echo $s5_line_1_color ?>"><?php echo $s5_line_1 ?></span>
|
119 |
+
<span class="description ctc-analytics" style="color: <?php echo $s5_line_2_color ?>"><?php echo $s5_line_2 ?></span>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
|
123 |
+
</div>
|
|
|
|
new/inc/styles/style-6.php
CHANGED
@@ -1,29 +1,26 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 6
|
4 |
-
*
|
5 |
-
* link
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
$s6_options = get_option( 'ht_ctc_s6' );
|
12 |
-
|
13 |
-
$s6_txt_color = esc_attr( $s6_options['s6_txt_color'] );
|
14 |
-
$s6_txt_color_on_hover = esc_attr( $s6_options['s6_txt_color_on_hover'] );
|
15 |
-
$s6_txt_decoration = esc_attr( $s6_options['s6_txt_decoration'] );
|
16 |
-
$s6_txt_decoration_on_hover = esc_attr( $s6_options['s6_txt_decoration_on_hover'] );
|
17 |
-
|
18 |
-
|
19 |
-
?>
|
20 |
-
|
21 |
-
<
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
<?php echo $call_to_action ?>
|
28 |
-
</a>
|
29 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 6
|
4 |
+
*
|
5 |
+
* link
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
$s6_options = get_option( 'ht_ctc_s6' );
|
12 |
+
|
13 |
+
$s6_txt_color = esc_attr( $s6_options['s6_txt_color'] );
|
14 |
+
$s6_txt_color_on_hover = esc_attr( $s6_options['s6_txt_color_on_hover'] );
|
15 |
+
$s6_txt_decoration = esc_attr( $s6_options['s6_txt_decoration'] );
|
16 |
+
$s6_txt_decoration_on_hover = esc_attr( $s6_options['s6_txt_decoration_on_hover'] );
|
17 |
+
|
18 |
+
|
19 |
+
?>
|
20 |
+
|
21 |
+
<a class="ctc-analytics" style="color: <?php echo $s6_txt_color ?>; text-decoration: <?php echo $s6_txt_decoration ?>;"
|
22 |
+
onmouseover = "this.style.color = '<?php echo $s6_txt_color_on_hover ?>', this.style.textDecoration = '<?php echo $s6_txt_decoration_on_hover ?>' "
|
23 |
+
onmouseout = "this.style.color = '<?php echo $s6_txt_color ?>', this.style.textDecoration = '<?php echo $s6_txt_decoration ?>' "
|
24 |
+
>
|
25 |
+
<?php echo $call_to_action ?>
|
26 |
+
</a>
|
|
|
|
|
|
new/inc/styles/style-7.php
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 7
|
4 |
-
* icon with customize padding
|
5 |
-
*/
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
$
|
11 |
-
|
12 |
-
$
|
13 |
-
$
|
14 |
-
$
|
15 |
-
$
|
16 |
-
$
|
17 |
-
|
18 |
-
$
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 7
|
4 |
+
* icon with customize padding
|
5 |
+
*/
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
wp_enqueue_style('ht_ctc_font_css');
|
9 |
+
|
10 |
+
$s7_options = get_option( 'ht_ctc_s7' );
|
11 |
+
|
12 |
+
$s7_icon_size = esc_attr( $s7_options['s7_icon_size'] );
|
13 |
+
$s7_icon_color = esc_attr( $s7_options['s7_icon_color'] );
|
14 |
+
$s7_icon_color_hover = esc_attr( $s7_options['s7_icon_color_hover'] );
|
15 |
+
$s7_border_size = esc_attr( $s7_options['s7_border_size'] );
|
16 |
+
$s7_border_color = esc_attr( $s7_options['s7_border_color'] );
|
17 |
+
$s7_border_color_hover = esc_attr( $s7_options['s7_border_color_hover'] );
|
18 |
+
$s7_border_radius = esc_attr( $s7_options['s7_border_radius'] );
|
19 |
+
|
20 |
+
$s7_css = "font-size: $s7_icon_size; color: $s7_icon_color; padding: $s7_border_size; background-color: $s7_border_color; border-radius: $s7_border_radius;";
|
21 |
+
|
22 |
+
|
23 |
+
?>
|
24 |
+
<span title="<?php echo $call_to_action ?>" class="ctc-analytics ctc-icon ctc-icon-whatsapp2" id="s7-icon" style="<?php echo $s7_css ?>"
|
25 |
+
onmouseover = "this.style.color = '<?php echo $s7_icon_color_hover ?>', this.style.backgroundColor = '<?php echo $s7_border_color_hover ?>' "
|
26 |
+
onmouseout = "this.style.color = '<?php echo $s7_icon_color ?>', this.style.backgroundColor = '<?php echo $s7_border_color ?>' "
|
27 |
+
></span>
|
new/inc/styles/style-8.php
CHANGED
@@ -1,57 +1,66 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 5
|
4 |
-
*
|
5 |
-
* Button with icon
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
-
|
11 |
-
$s8_options = get_option( 'ht_ctc_s8' );
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
$
|
26 |
-
$
|
27 |
-
$
|
28 |
-
|
29 |
-
$
|
30 |
-
|
31 |
-
$
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 5
|
4 |
+
*
|
5 |
+
* Button with icon
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
10 |
+
|
11 |
+
$s8_options = get_option( 'ht_ctc_s8' );
|
12 |
+
|
13 |
+
?>
|
14 |
+
<style>
|
15 |
+
.ht-ctc-style-8 {
|
16 |
+
display: none;
|
17 |
+
}
|
18 |
+
</style>
|
19 |
+
<?php
|
20 |
+
|
21 |
+
wp_enqueue_style('ht_ctc_font_css');
|
22 |
+
wp_enqueue_style('ht_ctc_mdstyle8_css');
|
23 |
+
|
24 |
+
|
25 |
+
$s8_txt_color = esc_attr( $s8_options['s8_txt_color'] );
|
26 |
+
$s8_icon_color = esc_attr( $s8_options['s8_icon_color'] );
|
27 |
+
$s8_txt_color_on_hover = esc_attr( $s8_options['s8_txt_color_on_hover'] );
|
28 |
+
$s8_bg_color = esc_attr( $s8_options['s8_bg_color'] );
|
29 |
+
$s8_bg_color_on_hover = esc_attr( $s8_options['s8_bg_color_on_hover'] );
|
30 |
+
|
31 |
+
$s8_icon_color_on_hover = esc_attr( $s8_options['s8_icon_color_on_hover'] );
|
32 |
+
|
33 |
+
$s8_icon_position = esc_attr( $s8_options['s8_icon_position'] );
|
34 |
+
|
35 |
+
$s8_btn_size = esc_attr( $s8_options['s8_btn_size'] );
|
36 |
+
|
37 |
+
$s8_icon_size_db = esc_attr( $s8_options['s8_icon_size'] );
|
38 |
+
$s8_icon_size = ('' == $s8_icon_size_db) ? "" : "font-size: $s8_icon_size_db;";
|
39 |
+
// $s8_icon_size = ('' == $s8_icon_size_db) ? "font-size: 12px;" : "font-size: $s8_icon_size_db;";
|
40 |
+
|
41 |
+
$s8_text_size_db = esc_attr( $s8_options['s8_text_size'] );
|
42 |
+
$s8_text_size = ('' == $s8_text_size_db) ? "" : "font-size: $s8_text_size_db;";
|
43 |
+
// $s8_text_size = ('' == $s8_text_size_db) ? "font-size: 16px;" : "font-size: $s8_text_size_db;";
|
44 |
+
|
45 |
+
?>
|
46 |
+
|
47 |
+
<div class = "mdstyle8 ht-ctc-style-8 ctc-analytics" >
|
48 |
+
|
49 |
+
<span class="waves-effect waves-light <?php echo $s8_btn_size ?> ctc-analytics" style="background-color: <?php echo $s8_bg_color ?>; "
|
50 |
+
onmouseover = "this.style.backgroundColor = '<?php echo $s8_bg_color_on_hover ?>',
|
51 |
+
document.getElementsByClassName('ht-ctc-s8-icon')[0].style.color = '<?php echo $s8_icon_color_on_hover ?>',
|
52 |
+
document.getElementsByClassName('ht-ctc-s8-text')[0].style.color = '<?php echo $s8_txt_color_on_hover ?>'
|
53 |
+
"
|
54 |
+
onmouseout = "this.style.backgroundColor = '<?php echo $s8_bg_color ?>',
|
55 |
+
document.getElementsByClassName('ht-ctc-s8-icon')[0].style.color = '<?php echo $s8_icon_color ?>',
|
56 |
+
document.getElementsByClassName('ht-ctc-s8-text')[0].style.color = '<?php echo $s8_txt_color ?>'
|
57 |
+
">
|
58 |
+
<i class="material-icons ctc-analytics <?php echo $s8_icon_position ?> ctc-icon ctc-icon-whatsapp2 ht-ctc-s8-icon"
|
59 |
+
style="color: <?php echo $s8_icon_color ?>; <?php echo $s8_icon_size ?>">
|
60 |
+
</i>
|
61 |
+
<span class="ht-ctc-s8-text ctc-analytics" style="color: <?php echo $s8_txt_color ?>; <?php echo $s8_text_size ?>">
|
62 |
+
<?php echo $call_to_action ?>
|
63 |
+
</span>
|
64 |
+
</span>
|
65 |
+
|
66 |
</div>
|
new/inc/styles/style-99.php
CHANGED
@@ -1,74 +1,54 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Style - 99
|
4 |
-
*
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
$
|
11 |
-
|
12 |
-
|
13 |
-
$
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
$s99_img_css
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
$s99_img_css .= "
|
40 |
-
}
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
}
|
56 |
-
|
57 |
-
// $s99_own_image = "http://www.holithemes.com/whatsapp-chat/wp-content/uploads/2018/03/WhatsApp_Logo_2_desktop.jpg";
|
58 |
-
|
59 |
-
if ( !isset( $s99_options['cta_on_hover'] ) ) {
|
60 |
-
$call_to_action = '';
|
61 |
-
}
|
62 |
-
|
63 |
-
?>
|
64 |
-
|
65 |
-
<div class="<?php echo $class_names ?>" style="position: fixed; <?php echo $position ?> cursor: pointer; z-index: 99999999;">
|
66 |
-
<!-- <a href="<?php echo $link ?>" target="_blank"> -->
|
67 |
-
<img class="own-img" title="<?php echo $call_to_action ?>" id="style-99" src="<?php echo $s99_own_image ?>" style="<?php echo $s99_img_css ?>" alt="WhatsApp chat">
|
68 |
-
<!-- </a> -->
|
69 |
-
</div>
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Style - 99
|
4 |
+
* own image / GIF
|
5 |
+
*/
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
7 |
+
|
8 |
+
$s99_options = get_option( 'ht_ctc_s99' );
|
9 |
+
|
10 |
+
$s99_desktop_img_height = esc_attr( $s99_options['s99_desktop_img_height'] );
|
11 |
+
$s99_desktop_img_width = esc_attr( $s99_options['s99_desktop_img_width'] );
|
12 |
+
$s99_mobile_img_height = esc_attr( $s99_options['s99_mobile_img_height'] );
|
13 |
+
$s99_mobile_img_width = esc_attr( $s99_options['s99_mobile_img_width'] );
|
14 |
+
|
15 |
+
// img url
|
16 |
+
// image - width, height based on device
|
17 |
+
$s99_img_css = "";
|
18 |
+
|
19 |
+
if( 'yes' == $is_mobile ) {
|
20 |
+
|
21 |
+
$s99_own_image = esc_html( $s99_options['s99_mobile_img_url'] );
|
22 |
+
|
23 |
+
if ( '' !== $s99_mobile_img_height ) {
|
24 |
+
$s99_img_css .= "height: $s99_mobile_img_height; ";
|
25 |
+
} else {
|
26 |
+
$s99_img_css .= "height: 40px; ";
|
27 |
+
}
|
28 |
+
|
29 |
+
if ( '' !== $s99_mobile_img_width ) {
|
30 |
+
$s99_img_css .= "width: $s99_mobile_img_width; ";
|
31 |
+
}
|
32 |
+
} else {
|
33 |
+
|
34 |
+
$s99_own_image = esc_html( $s99_options['s99_dekstop_img_url'] );
|
35 |
+
|
36 |
+
if ( '' !== $s99_desktop_img_height ) {
|
37 |
+
$s99_img_css .= "height: $s99_desktop_img_height; ";
|
38 |
+
} else {
|
39 |
+
$s99_img_css .= "height: 50px; ";
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( '' !== $s99_desktop_img_width ) {
|
43 |
+
$s99_img_css .= "width: $s99_desktop_img_width; ";
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
// fallback image
|
48 |
+
if ( '' == $s99_own_image ) {
|
49 |
+
$s99_own_image = plugins_url( './new/inc/assets/img/whatsapp-logo.svg', HT_CTC_PLUGIN_FILE );
|
50 |
+
}
|
51 |
+
|
52 |
+
?>
|
53 |
+
|
54 |
+
<img class="own-img ctc-analytics" title="<?php echo $call_to_action ?>" id="style-99" src="<?php echo $s99_own_image ?>" style="<?php echo $s99_img_css ?>" alt="WhatsApp chat">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prev/admin/admin.php
CHANGED
@@ -1,70 +1,67 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* starting point for the admin side of this plugin.
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
*
|
8 |
-
*
|
9 |
-
* @
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
include_once('class-ccw-
|
18 |
-
|
19 |
-
include_once('
|
20 |
-
|
21 |
-
include_once('class-ccw-admin-
|
22 |
-
include_once('class-ccw-admin-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
//
|
27 |
-
//
|
28 |
-
//
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
*
|
39 |
-
*
|
40 |
-
*
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
$wca_card
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
update_option( 'ccw_admin_sidebar_card', 'hide' );
|
68 |
-
|
69 |
-
wp_die();
|
70 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* starting point for the admin side of this plugin.
|
4 |
+
* include other file here .. which need in admin side.
|
5 |
+
* In click-to-chat.php this file will be loaded as is_admin
|
6 |
+
*
|
7 |
+
* @package ccw
|
8 |
+
* @subpackage Administration
|
9 |
+
* @since 1.0
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
+
|
14 |
+
/*************** includes ***********/
|
15 |
+
include_once('class-ccw-add-styles-scripts-admin.php');
|
16 |
+
|
17 |
+
include_once('commons/class-ht-ccw-admin-lists.php');
|
18 |
+
|
19 |
+
include_once('class-ccw-admin-menu.php');
|
20 |
+
include_once('class-ccw-admin-page.php');
|
21 |
+
include_once('class-ccw-admin-page-customize-styles.php');
|
22 |
+
include_once('class-ccw-admin-others.php');
|
23 |
+
|
24 |
+
|
25 |
+
// as translation text added only in admin - so done here
|
26 |
+
// function load_ht_ccw_textdomain() {
|
27 |
+
// load_plugin_textdomain( 'click-to-chat-for-whatsapp', FALSE, HT_CCW_PLUGIN_BASENAME . 'prev/languages/' );
|
28 |
+
// }
|
29 |
+
|
30 |
+
// add_action( 'plugins_loaded', 'load_ht_ccw_textdomain' );
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
+
/**
|
35 |
+
* ccw_admin_sidebar_card - by default there is no option ..
|
36 |
+
* so when no option exists .. so it not equal to 'hide'
|
37 |
+
* so in admin sidebar the card will display . .
|
38 |
+
* if clicks on hide card ..
|
39 |
+
* then an option update will happen ( create an option )
|
40 |
+
*
|
41 |
+
*/
|
42 |
+
add_action( 'wp_ajax_ccw_admin_sidebar', 'ht_ccw_admin_sidebar_ajax' );
|
43 |
+
|
44 |
+
function ht_ccw_admin_sidebar_ajax() {
|
45 |
+
|
46 |
+
$wca_card = get_option( 'ccw_admin_sidebar_card' );
|
47 |
+
|
48 |
+
// wp_localize_script can use - but this may be easy, as only one value ..
|
49 |
+
echo $wca_card;
|
50 |
+
|
51 |
+
wp_die();
|
52 |
+
}
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
// action - ccw_hide_admin_sidebar_card
|
57 |
+
// update the option ccw_admin_sidebar_card to hide
|
58 |
+
add_action( 'wp_ajax_ccw_hide_admin_sidebar_card', 'ht_ccw_hide_admin_sidebar_card_ajax' );
|
59 |
+
|
60 |
+
function ht_ccw_hide_admin_sidebar_card_ajax() {
|
61 |
+
|
62 |
+
$wca_card = get_option( 'ccw_admin_sidebar_card' );
|
63 |
+
|
64 |
+
update_option( 'ccw_admin_sidebar_card', 'hide' );
|
65 |
+
|
66 |
+
wp_die();
|
|
|
|
|
|
|
67 |
}
|
prev/admin/class-ccw-add-styles-scripts-admin.php
CHANGED
@@ -1,49 +1,47 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Register css styles, javascript files at admin side
|
4 |
-
* instead of register multiple styles - as using sass in dev env,
|
5 |
-
* import files and at final create less css files
|
6 |
-
*
|
7 |
-
* @package ccw
|
8 |
-
* @subpackage Administration
|
9 |
-
* @since 1.0
|
10 |
-
*/
|
11 |
-
|
12 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
-
|
14 |
-
if ( ! class_exists( 'CCW_Add_Styles_Scripts_Admin' ) ) :
|
15 |
-
|
16 |
-
class CCW_Add_Styles_Scripts_Admin {
|
17 |
-
|
18 |
-
|
19 |
-
// Register css styles, javascript files only on 'click-to-chat' page
|
20 |
-
function ccw_register_files_admin($hook) {
|
21 |
-
|
22 |
-
if( 'toplevel_page_click-to-chat' == $hook || 'click-to-chat_page_ccw-edit-styles' == $hook ) {
|
23 |
-
|
24 |
-
wp_enqueue_style( 'wp-color-picker' );
|
25 |
-
|
26 |
-
wp_enqueue_style('ccw_admin_md_css', plugins_url( 'new/admin/admin_assets/css/materialize.min.css', HT_CCW_PLUGIN_FILE ) , '', HT_CCW_VERSION );
|
27 |
-
wp_enqueue_style('ccw_admin_main_css', plugins_url( 'prev/assets/css/admin_main.css', HT_CCW_PLUGIN_FILE ) , '', HT_CCW_VERSION );
|
28 |
-
|
29 |
-
|
30 |
-
// wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'prev/assets/js/admin_app.js', HT_CCW_PLUGIN_FILE ), array( 'wp-color-picker' ), HT_CCW_VERSION, true );
|
31 |
-
// wp_enqueue_script( 'ccw_admin_md_js', plugins_url( 'prev/assets/js/required/admin_app-works.js', HT_CCW_PLUGIN_FILE ), array( 'wp-color-picker' ), HT_CCW_VERSION, true );
|
32 |
-
wp_enqueue_script( 'c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|