Version Description
- New Help page in the plugin settings. We have a lot helpful articles and ecommerce tips in the Ecwid Help center at help.ecwid.com. In this update, we made it closer to you the Help page with FAQ and a simple search field is now available right in the plugin settings. Have a question about your online store? Refer to the new Ecwid->Help page in your Wordpress admin backend.
- Better compatibility with Accesspress Store and Sliding Door themes. We adjusted Ecwid storefront look a bit to better match these Wordpress themes layout and fonts.
- Fixed a bug in the product page titles. You might notice that the product page titles repeated the product name twice. We fixed it.
Download this release
Release Info
Developer | Ecwid |
Plugin | Ecwid Ecommerce Shopping Cart |
Version | 4.2.1 |
Comparing to | |
See all releases |
Code changes from version 4.2 to 4.2.1
- css/admin.css +3 -3
- css/frontend.css +5 -0
- css/help.css +1005 -0
- css/nav-menu.css +4 -2
- css/products-list.css +0 -7
- css/themes/evolve.css +4 -0
- css/themes/mantra.css +1 -1
- css/themes/sliding-door.css +7 -0
- css/themes/{2014.css → twentyfourteen.css} +0 -0
- ecwid-shopping-cart.php +88 -230
- images/help/brand.jpg +0 -0
- images/help/cp.jpg +0 -0
- includes/class-ecwid-help-page.php +104 -0
- includes/class-ecwid-message-manager.php +2 -2
- includes/class-ecwid-nav-menus.php +237 -0
- includes/faq_entries.php +76 -0
- includes/themes.php +27 -26
- includes/themes/class-ecwid-theme-accesspress-mag.php +0 -17
- includes/themes/class-ecwid-theme-attitude.php +0 -17
- includes/themes/class-ecwid-theme-base.php +66 -10
- includes/themes/class-ecwid-theme-customizr.php +0 -20
- includes/themes/class-ecwid-theme-edin.php +0 -19
- includes/themes/class-ecwid-theme-evolve.php +0 -17
- includes/themes/class-ecwid-theme-mantra.php +0 -17
- includes/themes/class-ecwid-theme-pagelines.php +0 -19
- includes/themes/class-ecwid-theme-responsiveboat.php +0 -17
- includes/themes/class-ecwid-theme-twentyfourteen.php +0 -21
- includes/themes/class-ecwid-theme-twentytwelve.php +0 -21
- js/create_scroller.js +8 -1
- js/frontend.js +1 -16
- js/nav-menu-frontend.js +86 -0
- js/nav-menu.js +8 -11
- js/themes/2012.js +0 -4
- js/themes/pixova-lite.js +9 -0
- js/themes/twentytwelve.js +7 -0
- languages/ecwid-shopping-cart-ru_RU.mo +0 -0
- languages/ecwid-shopping-cart-ru_RU.po +4 -1
- lib/ecwid_api_v3.php +4 -0
- readme.txt +7 -1
- templates/help.php +329 -0
css/admin.css
CHANGED
@@ -428,7 +428,6 @@ body[class*="_page_ecwid"] .ecwid-message {
|
|
428 |
.ecwid-admin-footer {
|
429 |
display: table;
|
430 |
width:100%;
|
431 |
-
padding: 0 20px;
|
432 |
}
|
433 |
|
434 |
.ecwid-connect .ecwid-admin-footer .ecwid-app-badges-block {
|
@@ -442,8 +441,9 @@ body[class*="_page_ecwid"] .ecwid-message {
|
|
442 |
font-size: 13px;
|
443 |
}
|
444 |
|
445 |
-
|
446 |
-
|
|
|
447 |
}
|
448 |
|
449 |
|
428 |
.ecwid-admin-footer {
|
429 |
display: table;
|
430 |
width:100%;
|
|
|
431 |
}
|
432 |
|
433 |
.ecwid-connect .ecwid-admin-footer .ecwid-app-badges-block {
|
441 |
font-size: 13px;
|
442 |
}
|
443 |
|
444 |
+
|
445 |
+
.ecwid-admin-footer-block:first-child {
|
446 |
+
padding-left: 20px;
|
447 |
}
|
448 |
|
449 |
|
css/frontend.css
CHANGED
@@ -15,4 +15,9 @@ html#ecwid_html body#ecwid_body .ecwid-SearchPanel input {
|
|
15 |
|
16 |
.ecwid-shopping-cart-categories .horizontal-menu-item {
|
17 |
background-image: none;
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
15 |
|
16 |
.ecwid-shopping-cart-categories .horizontal-menu-item {
|
17 |
background-image: none;
|
18 |
+
}
|
19 |
+
|
20 |
+
html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-name {
|
21 |
+
font-size: inherit;
|
22 |
+
color: inherit;
|
23 |
}
|
css/help.css
ADDED
@@ -0,0 +1,1005 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "UTF-8";
|
2 |
+
/*
|
3 |
+
Theme Name: Ecwid Help Portal
|
4 |
+
Theme URI: http: //help.ecwid.com
|
5 |
+
Description: Ecwid theme.
|
6 |
+
Version: 2.1
|
7 |
+
Author: ecwid.com
|
8 |
+
Author URI: http: //www.ecwid.com
|
9 |
+
*/
|
10 |
+
/*------framework---------------------------------------------------------------------------------*/
|
11 |
+
html,
|
12 |
+
body {
|
13 |
+
font-family: 'Open Sans', sans-serif;
|
14 |
+
font-size: 16px;
|
15 |
+
line-height: 20px;
|
16 |
+
font-weight: 400;
|
17 |
+
text-rendering: optimizeLegibility;
|
18 |
+
margin: 0;
|
19 |
+
padding: 0;
|
20 |
+
background-color: #fff;
|
21 |
+
min-height: 100%;
|
22 |
+
min-width: 320px;
|
23 |
+
height: auto;
|
24 |
+
border: 0 none; }
|
25 |
+
|
26 |
+
body > audio,
|
27 |
+
body > audio * {
|
28 |
+
display: none !important;
|
29 |
+
position: absolute;
|
30 |
+
z-index: -100;
|
31 |
+
height: 0;
|
32 |
+
overflow: hidden; }
|
33 |
+
|
34 |
+
* {
|
35 |
+
outline: none !important;
|
36 |
+
-webkit-text-size-adjust: none; }
|
37 |
+
|
38 |
+
ul, ol, li {
|
39 |
+
margin: 0;
|
40 |
+
padding: 0; }
|
41 |
+
|
42 |
+
ul, ol {
|
43 |
+
list-style-position: inside; }
|
44 |
+
|
45 |
+
label {
|
46 |
+
cursor: pointer; }
|
47 |
+
|
48 |
+
.cf:before,
|
49 |
+
.cf:after {
|
50 |
+
content: " ";
|
51 |
+
display: table; }
|
52 |
+
|
53 |
+
.cf:after {
|
54 |
+
clear: both; }
|
55 |
+
|
56 |
+
wbr {
|
57 |
+
display: inline-block; }
|
58 |
+
|
59 |
+
.fr {
|
60 |
+
float: right; }
|
61 |
+
|
62 |
+
.fl {
|
63 |
+
float: left; }
|
64 |
+
|
65 |
+
.hidden {
|
66 |
+
display: none !important; }
|
67 |
+
|
68 |
+
form {
|
69 |
+
margin: 0; }
|
70 |
+
|
71 |
+
img,
|
72 |
+
svg {
|
73 |
+
border: 0 none; }
|
74 |
+
|
75 |
+
table {
|
76 |
+
border-collapse: collapse;
|
77 |
+
border-spacing: 0; }
|
78 |
+
|
79 |
+
table td {
|
80 |
+
padding: 0; }
|
81 |
+
|
82 |
+
/*------fonts.css-----------------------------------------------------------------------------*/
|
83 |
+
@font-face {
|
84 |
+
font-family: 'font_icons';
|
85 |
+
src: url("//dj925myfyz5v.cloudfront.net/wp-content/themes/ecwid/css/fonts/fontIcons.eot?onn615");
|
86 |
+
src: url("//dj925myfyz5v.cloudfront.net/wp-content/themes/ecwid/css/fonts/fontIcons.eot?#iefixonn615") format("embedded-opentype"), url("//dj925myfyz5v.cloudfront.net/wp-content/themes/ecwid/css/fonts/fontIcons.woff?onn615") format("woff"), url("//dj925myfyz5v.cloudfront.net/wp-content/themes/ecwid/css/fonts/fontIcons.ttf?onn615") format("truetype"), url("//dj925myfyz5v.cloudfront.net/wp-content/themes/ecwid/css/fonts/fontIcons.svg?onn615#fontIcons") format("svg");
|
87 |
+
font-weight: normal;
|
88 |
+
font-style: normal; }
|
89 |
+
|
90 |
+
/* Help icon font */
|
91 |
+
@font-face {
|
92 |
+
font-family: 'iconhelp_font';
|
93 |
+
src: url("//dj925myfyz5v.cloudfront.net/widgets/help/fonts2_0/iconfont.eot?-s2892t");
|
94 |
+
src: url("//dj925myfyz5v.cloudfront.net/widgets/help/fonts2_0/iconfont.eot?#iefix-s2892t") format("embedded-opentype"), url("//dj925myfyz5v.cloudfront.net/widgets/help/fonts2_0/iconfont.woff?-s2892t") format("woff"), url("//dj925myfyz5v.cloudfront.net/widgets/help/fonts2_0/iconfont.ttf?-s2892t") format("truetype"), url("//dj925myfyz5v.cloudfront.net/widgets/help/fonts2_0/iconfont.svg?-s2892t#iconhelp_font") format("svg");
|
95 |
+
font-weight: normal;
|
96 |
+
font-style: normal; }
|
97 |
+
|
98 |
+
/*------typo.css------------------------------------------------------------------------------*/
|
99 |
+
h1,
|
100 |
+
h2,
|
101 |
+
h3,
|
102 |
+
h4,
|
103 |
+
h5,
|
104 |
+
h6 {
|
105 |
+
font-family: 'Open Sans', sans-serif;
|
106 |
+
font-weight: 400; }
|
107 |
+
|
108 |
+
h1 {
|
109 |
+
font-size: 36px; }
|
110 |
+
|
111 |
+
h2 {
|
112 |
+
font-size: 24px;
|
113 |
+
/*28px to 16px*/ }
|
114 |
+
|
115 |
+
h3 {
|
116 |
+
font-size: 18px;
|
117 |
+
/*22px to 16px*/ }
|
118 |
+
|
119 |
+
.muted {
|
120 |
+
color: #999; }
|
121 |
+
|
122 |
+
a {
|
123 |
+
color: #0064b8;
|
124 |
+
cursor: pointer;
|
125 |
+
text-decoration: none;
|
126 |
+
-webkit-transition: color .1s linear;
|
127 |
+
transition: color .1s linear; }
|
128 |
+
|
129 |
+
a:hover {
|
130 |
+
color: #369fe0; }
|
131 |
+
|
132 |
+
a:active {
|
133 |
+
color: #71c7f3; }
|
134 |
+
|
135 |
+
.ecwid-help a:focus {
|
136 |
+
outline: 0 none;
|
137 |
+
box-shadow: none; }
|
138 |
+
|
139 |
+
a.underlined {
|
140 |
+
text-decoration: underline; }
|
141 |
+
|
142 |
+
/*------icons.css-----------------------------------------------------------------------------*/
|
143 |
+
.ecwid-help [data-icon]:before {
|
144 |
+
content: attr(data-icon);
|
145 |
+
text-transform: none;
|
146 |
+
font-weight: normal;
|
147 |
+
font-variant: normal;
|
148 |
+
font-family: 'font_icons';
|
149 |
+
line-height: 1;
|
150 |
+
speak: none;
|
151 |
+
-webkit-font-smoothing: antialiased;
|
152 |
+
-moz-osx-font-smoothing: grayscale; }
|
153 |
+
|
154 |
+
.ecwid-help [class*="icon-"] {
|
155 |
+
display: inline-block;
|
156 |
+
text-transform: none;
|
157 |
+
font-weight: normal;
|
158 |
+
font-style: normal;
|
159 |
+
font-variant: normal;
|
160 |
+
font-family: 'font_icons';
|
161 |
+
line-height: 1;
|
162 |
+
speak: none;
|
163 |
+
cursor: pointer;
|
164 |
+
-webkit-font-smoothing: antialiased;
|
165 |
+
-moz-osx-font-smoothing: grayscale;
|
166 |
+
-webkit-transition: color .1s linear;
|
167 |
+
transition: color .1s linear; }
|
168 |
+
|
169 |
+
.ecwid-help [class^="iconhelp-"], [class*=" iconhelp-"] {
|
170 |
+
font-family: 'iconhelp_font';
|
171 |
+
speak: none;
|
172 |
+
font-style: normal;
|
173 |
+
font-weight: normal;
|
174 |
+
font-variant: normal;
|
175 |
+
text-transform: none;
|
176 |
+
line-height: 1;
|
177 |
+
-webkit-font-smoothing: antialiased;
|
178 |
+
-moz-osx-font-smoothing: grayscale; }
|
179 |
+
|
180 |
+
.icon-down:before {
|
181 |
+
content: "\e009"; }
|
182 |
+
|
183 |
+
.icon-arr-right:before {
|
184 |
+
content: "\e005"; }
|
185 |
+
|
186 |
+
.icon-search:before {
|
187 |
+
content: "\e001"; }
|
188 |
+
|
189 |
+
.iconhelp-users:before {
|
190 |
+
content: "\e60e"; }
|
191 |
+
|
192 |
+
.iconhelp-envelope:before {
|
193 |
+
content: "\e60f"; }
|
194 |
+
|
195 |
+
.iconhelp-arrow-down:before {
|
196 |
+
content: "\e610"; }
|
197 |
+
|
198 |
+
.iconhelp-book:before {
|
199 |
+
content: "\e611"; }
|
200 |
+
|
201 |
+
.iconhelp-search:before {
|
202 |
+
content: "\e60d"; }
|
203 |
+
|
204 |
+
.iconhelp-thumbs_down:before {
|
205 |
+
content: "\e60b"; }
|
206 |
+
|
207 |
+
.iconhelp-thumbs_up:before {
|
208 |
+
content: "\e60c"; }
|
209 |
+
|
210 |
+
.iconhelp-contents:before {
|
211 |
+
content: "\e60a"; }
|
212 |
+
|
213 |
+
.iconhelp-101:before {
|
214 |
+
content: "\e600"; }
|
215 |
+
|
216 |
+
.iconhelp-setup:before {
|
217 |
+
content: "\e601"; }
|
218 |
+
|
219 |
+
.iconhelp-manage:before {
|
220 |
+
content: "\e602"; }
|
221 |
+
|
222 |
+
.iconhelp-custom:before {
|
223 |
+
content: "\e603"; }
|
224 |
+
|
225 |
+
.iconhelp-api:before {
|
226 |
+
content: "\e604"; }
|
227 |
+
|
228 |
+
.iconhelp-billing:before {
|
229 |
+
content: "\e605"; }
|
230 |
+
|
231 |
+
.iconhelp-twitter:before {
|
232 |
+
content: "\e606"; }
|
233 |
+
|
234 |
+
.iconhelp-fb:before {
|
235 |
+
content: "\e607"; }
|
236 |
+
|
237 |
+
.iconhelp-bullet-on:before {
|
238 |
+
content: "\e608"; }
|
239 |
+
|
240 |
+
.iconhelp-bullet-off:before {
|
241 |
+
content: "\e609"; }
|
242 |
+
|
243 |
+
/*------buttons.css---------------------------------------------------------------------------*/
|
244 |
+
.btn {
|
245 |
+
font-size: 13px;
|
246 |
+
display: inline-block;
|
247 |
+
min-width: 30px;
|
248 |
+
margin: 0;
|
249 |
+
padding: 4px 10px;
|
250 |
+
border: 1px solid transparent;
|
251 |
+
border-radius: 4px;
|
252 |
+
background-color: #f1f1f1;
|
253 |
+
color: #666;
|
254 |
+
vertical-align: middle;
|
255 |
+
text-align: center;
|
256 |
+
line-height: 1.57em;
|
257 |
+
cursor: pointer;
|
258 |
+
outline: 0;
|
259 |
+
text-decoration: none;
|
260 |
+
font-family: 'Open Sans', sans-serif;
|
261 |
+
white-space: nowrap;
|
262 |
+
-moz-box-sizing: border-box;
|
263 |
+
box-sizing: border-box;
|
264 |
+
-webkit-transition: color .1s linear, background-color .1s linear, border-color .1s linear;
|
265 |
+
transition: color .1s linear, background-color .1s linear, border-color .1s linear; }
|
266 |
+
.btn:hover {
|
267 |
+
background-color: #e3e3e3;
|
268 |
+
color: #666; }
|
269 |
+
.btn:active {
|
270 |
+
background-color: #d4d4d4;
|
271 |
+
color: #666; }
|
272 |
+
.btn:focus {
|
273 |
+
border: 2px solid #aaa;
|
274 |
+
padding: 3px 9px; }
|
275 |
+
|
276 |
+
.btn-medium {
|
277 |
+
font-size: 18px;
|
278 |
+
/* 24px to 16px*/
|
279 |
+
padding: 4px 25px;
|
280 |
+
border-radius: 6px;
|
281 |
+
height: 40px;
|
282 |
+
line-height: 30px;
|
283 |
+
min-width: 100px; }
|
284 |
+
|
285 |
+
.btn-medium:focus {
|
286 |
+
padding: 3px 24px; }
|
287 |
+
|
288 |
+
.btn-large {
|
289 |
+
font-size: 24px;
|
290 |
+
padding: 0.167em 1.542em;
|
291 |
+
border-radius: 0.250em;
|
292 |
+
height: 2.500em;
|
293 |
+
line-height: 2.083em;
|
294 |
+
min-width: 120px; }
|
295 |
+
|
296 |
+
.btn-large:focus {
|
297 |
+
padding: 0.125em 1.500em; }
|
298 |
+
|
299 |
+
.btn-small {
|
300 |
+
font-size: .875em;
|
301 |
+
height: 2.143em;
|
302 |
+
padding: 0.286em 1.357em;
|
303 |
+
border-radius: .286em;
|
304 |
+
line-height: 1.570em;
|
305 |
+
min-width: 60px; }
|
306 |
+
|
307 |
+
.btn-small:focus {
|
308 |
+
padding: 0.214em 1.286em; }
|
309 |
+
|
310 |
+
.btn-tiny {
|
311 |
+
font-size: 0.750em;
|
312 |
+
height: 2.167em;
|
313 |
+
padding: 0.333em 1.333em;
|
314 |
+
border-radius: .333em;
|
315 |
+
line-height: 1.490em;
|
316 |
+
min-width: 52px; }
|
317 |
+
|
318 |
+
.btn-tiny:focus {
|
319 |
+
padding: .250em 1.250em; }
|
320 |
+
|
321 |
+
/* buttons' types */
|
322 |
+
.btn-default {
|
323 |
+
background-color: #fff;
|
324 |
+
color: #2283c6;
|
325 |
+
border-color: #81c1df; }
|
326 |
+
|
327 |
+
.btn-default:hover {
|
328 |
+
background-color: #81c1df;
|
329 |
+
color: #fff; }
|
330 |
+
|
331 |
+
.btn-default:active {
|
332 |
+
background-color: #9acde5;
|
333 |
+
color: #fff; }
|
334 |
+
|
335 |
+
.btn-default:focus {
|
336 |
+
border-color: #679ab2; }
|
337 |
+
|
338 |
+
.btn-orange {
|
339 |
+
background-color: #f49466;
|
340 |
+
color: #fff; }
|
341 |
+
|
342 |
+
.btn-orange:hover {
|
343 |
+
background-color: #f7ab84;
|
344 |
+
color: #fff; }
|
345 |
+
|
346 |
+
.btn-orange:active {
|
347 |
+
background-color: #da7a4c;
|
348 |
+
color: #fff; }
|
349 |
+
|
350 |
+
.btn-orange:focus {
|
351 |
+
border-color: #a0481f; }
|
352 |
+
|
353 |
+
.btn-aqua {
|
354 |
+
background-color: #4eaccb;
|
355 |
+
color: #fff; }
|
356 |
+
.btn-aqua svg {
|
357 |
+
fill: #4eaccb; }
|
358 |
+
|
359 |
+
.btn-aqua:hover {
|
360 |
+
background-color: #6ebfd8;
|
361 |
+
color: #fff; }
|
362 |
+
|
363 |
+
.btn-aqua:active {
|
364 |
+
background-color: #3492b1;
|
365 |
+
color: #fff; }
|
366 |
+
|
367 |
+
.btn-aqua:focus {
|
368 |
+
border-color: #4eaccb; }
|
369 |
+
|
370 |
+
.btn-blue {
|
371 |
+
background-color: #5196c7;
|
372 |
+
color: #fff; }
|
373 |
+
|
374 |
+
.btn-blue:hover {
|
375 |
+
background-color: #74abd2;
|
376 |
+
color: #fff; }
|
377 |
+
|
378 |
+
.btn-blue:active {
|
379 |
+
background-color: #41789f;
|
380 |
+
color: #fff; }
|
381 |
+
|
382 |
+
.btn-blue:focus {
|
383 |
+
border: 2px solid #39698b; }
|
384 |
+
|
385 |
+
.btn-upgrade,
|
386 |
+
a.btn-upgrade,
|
387 |
+
.article-content a.btn-upgrade {
|
388 |
+
margin: 0 5px;
|
389 |
+
vertical-align: bottom;
|
390 |
+
text-decoration: none; }
|
391 |
+
|
392 |
+
.form-control {
|
393 |
+
font-size: 13px;
|
394 |
+
display: inline-block;
|
395 |
+
height: 40px;
|
396 |
+
width: 100%;
|
397 |
+
padding: 4px 8px;
|
398 |
+
border: 1px solid #ddd;
|
399 |
+
border-radius: 3px;
|
400 |
+
background-color: #fff;
|
401 |
+
color: #333;
|
402 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.07);
|
403 |
+
vertical-align: middle;
|
404 |
+
outline: 0;
|
405 |
+
-moz-box-sizing: border-box;
|
406 |
+
box-sizing: border-box;
|
407 |
+
-webkit-transition: background-color 0.1s linear, color 0.1s linear, border-color 0.1s linear, box-shadow 0.1s linear;
|
408 |
+
transition: background-color 0.1s linear, color 0.1s linear, border-color 0.1s linear, box-shadow 0.1s linear;
|
409 |
+
line-height: 28px;
|
410 |
+
font-family: 'Open Sans', sans-serif; }
|
411 |
+
.form-control::-moz-placeholder {
|
412 |
+
color: #606060;
|
413 |
+
opacity: .6; }
|
414 |
+
.form-control::-webkit-input-placeholder {
|
415 |
+
color: #606060;
|
416 |
+
opacity: .6; }
|
417 |
+
.form-control::-ms-input-placeholder {
|
418 |
+
color: #606060;
|
419 |
+
opacity: .6; }
|
420 |
+
.form-control:active, .form-control:focus {
|
421 |
+
border: 2px solid #0c92e3;
|
422 |
+
background-color: #fff;
|
423 |
+
box-shadow: 0 0 4px #d1eafa;
|
424 |
+
padding: 3px 7px;
|
425 |
+
outline: 0; }
|
426 |
+
.form-control.invalid {
|
427 |
+
border: 2px solid #fa5111;
|
428 |
+
padding: 3px 7px;
|
429 |
+
color: #cf3e07;
|
430 |
+
background-color: #ffeaea;
|
431 |
+
box-shadow: none;
|
432 |
+
-webkit-transition: background 0.15s linear, color 0.15s linear, border-color 0.15s linear, box-shadow 0.15s linear;
|
433 |
+
transition: background 0.15s linear, color 0.15s linear, border-color 0.15s linear, box-shadow 0.15s linear; }
|
434 |
+
.form-control.invalid:hover {
|
435 |
+
background-color: #fff; }
|
436 |
+
.form-control.invalid:focus {
|
437 |
+
background-color: #fff;
|
438 |
+
box-shadow: 0 0 4px #F5C0C0; }
|
439 |
+
|
440 |
+
.form-control.submitted {
|
441 |
+
opacity: .3;
|
442 |
+
-webkit-transition: opacity .3s linear;
|
443 |
+
transition: opacity .3s linear;
|
444 |
+
}
|
445 |
+
|
446 |
+
/* Input appends*/
|
447 |
+
.input-append,
|
448 |
+
.input-prepend {
|
449 |
+
position: relative; }
|
450 |
+
.input-append .btn,
|
451 |
+
.input-prepend .btn {
|
452 |
+
background-color: transparent;
|
453 |
+
border-color: transparent;
|
454 |
+
position: absolute;
|
455 |
+
top: 0;
|
456 |
+
height: 100%; }
|
457 |
+
.input-append .btn [class*="icon-"],
|
458 |
+
.input-prepend .btn [class*="icon-"] {
|
459 |
+
color: #aaa; }
|
460 |
+
|
461 |
+
.input-append .btn {
|
462 |
+
right: 0; }
|
463 |
+
|
464 |
+
.input-append .form-control {
|
465 |
+
padding-right: 36px; }
|
466 |
+
.input-append .form-control:focus {
|
467 |
+
padding-right: 35px; }
|
468 |
+
|
469 |
+
.input-prepend .btn {
|
470 |
+
left: 0; }
|
471 |
+
|
472 |
+
.input-prepend .form-control {
|
473 |
+
padding-left: 36px; }
|
474 |
+
.input-prepend .form-control:focus {
|
475 |
+
padding-left: 35px; }
|
476 |
+
|
477 |
+
textarea {
|
478 |
+
font-family: "Open Sans"; }
|
479 |
+
|
480 |
+
/*-------hds-search-----------------------------------------------------------------------------------*/
|
481 |
+
/* that fixes the right border being overla*/
|
482 |
+
.ecwid-help input {
|
483 |
+
margin: 0px;
|
484 |
+
}
|
485 |
+
|
486 |
+
.input-wrapper .hds-dropdown {
|
487 |
+
width: 100%;
|
488 |
+
position: absolute;
|
489 |
+
margin-top: 6px;
|
490 |
+
padding: 7px 0;
|
491 |
+
background-color: #fff;
|
492 |
+
border-radius: 6px;
|
493 |
+
border: 1px solid #dbdbdb;
|
494 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
495 |
+
z-index: 2;
|
496 |
+
display: none;
|
497 |
+
overflow: hidden;
|
498 |
+
-moz-box-sizing: border-box;
|
499 |
+
box-sizing: border-box; }
|
500 |
+
.input-wrapper .hds-dropdown .hds-suggest-link {
|
501 |
+
display: block;
|
502 |
+
font-size: 16px;
|
503 |
+
line-height: 20px;
|
504 |
+
padding: 15px 30px; }
|
505 |
+
.input-wrapper .hds-dropdown .hds-suggest-link.hovered {
|
506 |
+
color: white;
|
507 |
+
background-color: #82cdcf; }
|
508 |
+
|
509 |
+
.input-wrapper.opened .hds-dropdown {
|
510 |
+
display: block; }
|
511 |
+
|
512 |
+
.hds-loader {
|
513 |
+
position: absolute;
|
514 |
+
top: 10px;
|
515 |
+
right: 10px;
|
516 |
+
background: #fff url(//dj925myfyz5v.cloudfront.net/wp-content/themes/ecwid/images/ajax-loader.gif) center center no-repeat;
|
517 |
+
width: 20px;
|
518 |
+
height: 20px;
|
519 |
+
z-index: 2;
|
520 |
+
display: none;
|
521 |
+
box-shadow: -5px 0 6px #fff; }
|
522 |
+
@media (min-width: 768px) {
|
523 |
+
.hds-loader {
|
524 |
+
top: 20px;
|
525 |
+
right: 87px; } }
|
526 |
+
|
527 |
+
.hds-suggest-loading .hds-loader,
|
528 |
+
.hds-suggest-loaded.hds-suggest-loading .hds-loader,
|
529 |
+
.hds-loading .hds-loader {
|
530 |
+
display: block; }
|
531 |
+
|
532 |
+
.hds-suggest-loaded .hds-loader {
|
533 |
+
display: none; }
|
534 |
+
|
535 |
+
.hds-suggest-loaded .block-faq {
|
536 |
+
opacity: 0.3;
|
537 |
+
-webkit-transition: opacity .1s linear;
|
538 |
+
transition: opacity .1s linear; }
|
539 |
+
|
540 |
+
.main-container h2 {
|
541 |
+
font-size: 24px;
|
542 |
+
font-weight: 600;
|
543 |
+
line-height: 1.4;
|
544 |
+
text-align: center;
|
545 |
+
margin: 25px auto 35px; }
|
546 |
+
@media screen and (min-width: 768px) {
|
547 |
+
.main-container h2 {
|
548 |
+
font-size: 30px;
|
549 |
+
margin: 20px auto 20px; } }
|
550 |
+
|
551 |
+
/*------block-search-index----------------------------------------------------------------------------*/
|
552 |
+
.block-search-index {
|
553 |
+
background: #f4f4f4;
|
554 |
+
padding: 20px 0; }
|
555 |
+
.block-search-index .shortcuts {
|
556 |
+
padding: 25px 0 0;
|
557 |
+
text-align: center;
|
558 |
+
letter-spacing: -0.31em;
|
559 |
+
word-spacing: -0.43em;
|
560 |
+
max-width: 82%;
|
561 |
+
margin: 0 auto; }
|
562 |
+
.block-search-index .shortcuts > li {
|
563 |
+
letter-spacing: normal;
|
564 |
+
word-spacing: normal;
|
565 |
+
display: inline-block;
|
566 |
+
vertical-align: top;
|
567 |
+
padding: 0% 1% 40px;
|
568 |
+
width: 50%;
|
569 |
+
font-size: 16px;
|
570 |
+
-moz-box-sizing: border-box;
|
571 |
+
box-sizing: border-box; }
|
572 |
+
.block-search-index .shortcuts > li .shortcut-item {
|
573 |
+
color: #0058B0; }
|
574 |
+
.block-search-index .shortcuts > li .shortcut-item span {
|
575 |
+
display: block;
|
576 |
+
padding: 0 0 14px 0; }
|
577 |
+
.block-search-index .shortcuts > li .shortcut-item [class*='iconhelp-'] {
|
578 |
+
font-size: 44px;
|
579 |
+
color: #6FB1E3;
|
580 |
+
-webkit-transition: color .1s linear;
|
581 |
+
transition: color .1s linear; }
|
582 |
+
.block-search-index .shortcuts > li .shortcut-item:hover [class*='iconhelp-'] {
|
583 |
+
color: #0058B0; }
|
584 |
+
.block-search-index .shortcuts > li .shortcut-item span.shortcut-item-text {
|
585 |
+
margin: 0 auto;
|
586 |
+
max-width: 100px; }
|
587 |
+
@media (min-width: 550px) {
|
588 |
+
.block-search-index .shortcuts > li {
|
589 |
+
width: 33.3333%;
|
590 |
+
*width: 33.3023%; } }
|
591 |
+
@media (min-width: 768px) {
|
592 |
+
.block-search-index .shortcuts > li {
|
593 |
+
font-size: 14px;
|
594 |
+
padding: 1% 1% 0;
|
595 |
+
width: 16.6667%;
|
596 |
+
*width: 16.6357%;
|
597 |
+
letter-spacing: normal;
|
598 |
+
word-spacing: normal; } }
|
599 |
+
@media (min-width: 960px) {
|
600 |
+
.block-search-index .shortcuts > li {
|
601 |
+
font-size: 16px; } }
|
602 |
+
@media (min-width: 768px) {
|
603 |
+
.block-search-index .shortcuts {
|
604 |
+
max-width: 1000px; } }
|
605 |
+
@media (min-width: 1280px) {
|
606 |
+
.block-search-index .shortcuts {
|
607 |
+
padding: 30px 0 0; } }
|
608 |
+
@media (min-width: 768px) {
|
609 |
+
.block-search-index {
|
610 |
+
padding: 30px 0; } }
|
611 |
+
|
612 |
+
/*-------------block-search-------------------------------------------------*/
|
613 |
+
.block-search {
|
614 |
+
/* testing */ }
|
615 |
+
.block-search .hds-container .hds-wrapper {
|
616 |
+
max-width: 740px;
|
617 |
+
margin: 0 auto;
|
618 |
+
width: 87%; }
|
619 |
+
.block-search .hds-container .input-wrapper .btn [class*="icon-"] {
|
620 |
+
color: #aaa;
|
621 |
+
font-size: 16px;
|
622 |
+
vertical-align: top;
|
623 |
+
margin-top: 3px; }
|
624 |
+
.block-search .hds-container .form-control {
|
625 |
+
border-radius: 6px;
|
626 |
+
box-shadow: none;
|
627 |
+
border-color: #d2d2d2; }
|
628 |
+
.block-search .hds-container .form-control:focus {
|
629 |
+
border: 2px solid #005694;
|
630 |
+
background-color: #fff;
|
631 |
+
outline: 0; }
|
632 |
+
@media (min-width: 768px) {
|
633 |
+
.block-search .hds-container .form-control {
|
634 |
+
height: 55px;
|
635 |
+
padding: 3px 237px 3px 20px;
|
636 |
+
font-size: 20px; }
|
637 |
+
.block-search .hds-container .form-control:focus {
|
638 |
+
padding: 2px 236px 2px 19px; } }
|
639 |
+
|
640 |
+
@media (min-width: 768px) {
|
641 |
+
.block-search .hds-container .btn {
|
642 |
+
height: 45px;
|
643 |
+
margin: 0 !important;
|
644 |
+
min-width: 70px;
|
645 |
+
background: #4eaccb;
|
646 |
+
border-radius: 4px;
|
647 |
+
top: 5px;
|
648 |
+
right: 7px;
|
649 |
+
left: auto; }
|
650 |
+
.block-search .hds-container .btn:hover, .block-search .hds-container .btn:focus:hover {
|
651 |
+
background: #6ebfd8; }
|
652 |
+
.block-search .hds-container .input-wrapper .btn:focus {
|
653 |
+
border: 2px solid #0c5c77; }
|
654 |
+
.block-search .hds-container .input-wrapper .btn [class*="icon-"] {
|
655 |
+
display: none; }
|
656 |
+
.block-search .hds-container .input-wrapper .btn .btn-text {
|
657 |
+
font-size: 16px;
|
658 |
+
display: inline-block; } }
|
659 |
+
@media screen and (min-width: 1024px) {
|
660 |
+
.block-search .hds-container .hds-wrapper {
|
661 |
+
width: 50%; } }
|
662 |
+
.block-search .link-container {
|
663 |
+
font-size: 18px;
|
664 |
+
color: #9cc5e4;
|
665 |
+
text-align: center;
|
666 |
+
margin: 25px 0; }
|
667 |
+
.block-search .link-container a {
|
668 |
+
color: #fff;
|
669 |
+
display: inline-block;
|
670 |
+
margin-top: 20px; }
|
671 |
+
.block-search .link-container a > span {
|
672 |
+
font-size: 12px; }
|
673 |
+
.block-search .hds-wrapper .btn .btn-text {
|
674 |
+
color: #fff;
|
675 |
+
display: none; }
|
676 |
+
|
677 |
+
/*------block-faq----------------------------------------------------------------------------*/
|
678 |
+
.block-faq {
|
679 |
+
background-color: #fff;
|
680 |
+
padding: 20px 0; }
|
681 |
+
.block-faq .index-article {
|
682 |
+
list-style-type: none;
|
683 |
+
padding: 13px 11px 23px;
|
684 |
+
position: relative; }
|
685 |
+
.block-faq .index-article a {
|
686 |
+
font-size: 16px;
|
687 |
+
color: #333;
|
688 |
+
padding: 0 0 0 25px;
|
689 |
+
line-height: 1.36;
|
690 |
+
position: relative;
|
691 |
+
display: block; }
|
692 |
+
.block-faq .index-article a:hover {
|
693 |
+
color: #0e5c9e; }
|
694 |
+
.block-faq .index-article a i {
|
695 |
+
position: absolute;
|
696 |
+
font-size: 5px;
|
697 |
+
top: 8px;
|
698 |
+
left: 4px;
|
699 |
+
color: #1a8bdc; }
|
700 |
+
@media (min-width: 768px) {
|
701 |
+
.block-faq .index-article a i {
|
702 |
+
top: 12px; } }
|
703 |
+
@media (min-width: 768px) {
|
704 |
+
.block-faq .index-article a {
|
705 |
+
font-size: 18px; } }
|
706 |
+
.block-faq .index-article.active {
|
707 |
+
background: #F3F3F3; }
|
708 |
+
.block-faq .index-article-body {
|
709 |
+
display: none;
|
710 |
+
font-size: 14px;
|
711 |
+
line-height: 22px;
|
712 |
+
margin: 10px 26px 0;
|
713 |
+
color: #333;
|
714 |
+
font-weight: 300; }
|
715 |
+
.block-faq .index-article-body h2 {
|
716 |
+
font-size: 16px;
|
717 |
+
margin: 20px 0 10px; }
|
718 |
+
@media screen and (min-width: 768px) {
|
719 |
+
.block-faq .index-article-body h2 {
|
720 |
+
font-size: 20px; } }
|
721 |
+
.block-faq .index-article-body ul li:before {
|
722 |
+
color: #999;
|
723 |
+
content: "•";
|
724 |
+
left: -10px;
|
725 |
+
position: relative; }
|
726 |
+
.block-faq .index-article-body a:hover {
|
727 |
+
color: #369fe0; }
|
728 |
+
.block-faq .index-article-body ul {
|
729 |
+
list-style-type: none;
|
730 |
+
margin-left: 18px; }
|
731 |
+
.block-faq .index-article-body li {
|
732 |
+
margin-left: 6px;
|
733 |
+
text-indent: -6px; }
|
734 |
+
.block-faq .index-article-body span {
|
735 |
+
font-size: 14px !important; }
|
736 |
+
.block-faq .index-article-body img {
|
737 |
+
display: block;
|
738 |
+
margin: 10px auto; }
|
739 |
+
@media screen and (min-width: 768px) {
|
740 |
+
.block-faq .index-article-body img {
|
741 |
+
float: left;
|
742 |
+
margin: 0 20px 20px 0;
|
743 |
+
max-width: 50%; } }
|
744 |
+
.block-faq .index-article.active .index-article-body {
|
745 |
+
display: block; }
|
746 |
+
.block-faq .index-article .index-article-body a {
|
747 |
+
font-size: 14px;
|
748 |
+
font-weight: 300;
|
749 |
+
line-height: 22px;
|
750 |
+
display: inline;
|
751 |
+
color: #035AA0;
|
752 |
+
margin: 0;
|
753 |
+
padding: 0;
|
754 |
+
text-indent: 0;
|
755 |
+
text-decoration: underline;
|
756 |
+
word-break: normal; }
|
757 |
+
@media (min-width: 768px) {
|
758 |
+
.block-faq {
|
759 |
+
padding: 30px 0; } }
|
760 |
+
|
761 |
+
.block-faq-wrap {
|
762 |
+
margin: 0 auto;
|
763 |
+
width: 80%; }
|
764 |
+
@media screen and (min-width: 768px) {
|
765 |
+
.block-faq-wrap {
|
766 |
+
max-width: 1150px;
|
767 |
+
width: 100%; } }
|
768 |
+
|
769 |
+
.block-faq-list {
|
770 |
+
box-sizing: border-box;
|
771 |
+
display: inline-block;
|
772 |
+
padding-left: 0;
|
773 |
+
vertical-align: top; }
|
774 |
+
.block-faq-list .index-article {
|
775 |
+
box-sizing: border-box;
|
776 |
+
display: block;
|
777 |
+
width: 100%; }
|
778 |
+
.block-faq-list .index-article--hidden {
|
779 |
+
display: none; }
|
780 |
+
@media screen and (min-width: 768px) {
|
781 |
+
.block-faq-list {
|
782 |
+
padding-left: 60px;
|
783 |
+
width: 49%; } }
|
784 |
+
|
785 |
+
/*------block-all-topics----------------------------------------------------------------------*/
|
786 |
+
.block-topics-link {
|
787 |
+
margin-top: 35px;
|
788 |
+
padding: 3px 0 40px;
|
789 |
+
text-align: center; }
|
790 |
+
.block-topics-link a {
|
791 |
+
font-size: 18px; }
|
792 |
+
.block-topics-link a [class*="icon-"] {
|
793 |
+
font-size: 16px;
|
794 |
+
vertical-align: top;
|
795 |
+
margin-top: 3px; }
|
796 |
+
@media (min-width: 1024px) {
|
797 |
+
.block-topics-link {
|
798 |
+
padding: 0 0 50px; } }
|
799 |
+
|
800 |
+
/*------block-help----------------------------------------------------------------------------*/
|
801 |
+
.block-help {
|
802 |
+
background-color: #f4f4f4;
|
803 |
+
padding: 45px 0 25px; }
|
804 |
+
.block-help ul {
|
805 |
+
list-style: none;
|
806 |
+
overflow: hidden;
|
807 |
+
max-width: 1150px;
|
808 |
+
margin: 0 auto;
|
809 |
+
width: 80%; }
|
810 |
+
.block-help ul > li {
|
811 |
+
box-sizing: border-box;
|
812 |
+
-moz-box-sizing: border-box;
|
813 |
+
display: inline-block;
|
814 |
+
letter-spacing: normal;
|
815 |
+
list-style: none;
|
816 |
+
padding: 0 11px 20px;
|
817 |
+
text-align: left;
|
818 |
+
vertical-align: top;
|
819 |
+
width: 100%;
|
820 |
+
word-spacing: normal; }
|
821 |
+
@media (min-width: 768px) {
|
822 |
+
.block-help ul > li {
|
823 |
+
width: 49%;
|
824 |
+
padding-left: 85px; } }
|
825 |
+
@media (min-width: 768px) {
|
826 |
+
.block-help ul {
|
827 |
+
width: 100%; } }
|
828 |
+
.block-help .block-help-item a {
|
829 |
+
text-transform: uppercase;
|
830 |
+
font-size: 18px;
|
831 |
+
line-height: 1.333em;
|
832 |
+
color: #2283c6;
|
833 |
+
padding: 0;
|
834 |
+
position: relative; }
|
835 |
+
.block-help .block-help-item a:hover {
|
836 |
+
color: #0e5c9e; }
|
837 |
+
.block-help .block-help-item a::after {
|
838 |
+
font-family: 'font_icons';
|
839 |
+
content: "\e60e";
|
840 |
+
font-size: .7em;
|
841 |
+
bottom: .05em;
|
842 |
+
padding-left: 10px;
|
843 |
+
position: relative; }
|
844 |
+
.block-help .block-help-item a i {
|
845 |
+
margin: 3px 10px 11px 0;
|
846 |
+
float: left; }
|
847 |
+
.block-help .block-help-item a i.iconhelp-status {
|
848 |
+
background-color: #2283c6;
|
849 |
+
border-radius: 50%;
|
850 |
+
display: inline-block;
|
851 |
+
height: 12px;
|
852 |
+
margin-top: -1px;
|
853 |
+
padding: 6px;
|
854 |
+
width: 12px;
|
855 |
+
-webkit-transition: background-color .1s linear 0s;
|
856 |
+
transition: background-color .1s linear 0s; }
|
857 |
+
@media (min-width: 768px) {
|
858 |
+
.block-help .block-help-item a i {
|
859 |
+
margin-top: 4px; } }
|
860 |
+
.block-help .block-help-item a:hover i.iconhelp-status {
|
861 |
+
background-color: #0e5c9e; }
|
862 |
+
.block-help .block-help-item a .iconhelp-status svg {
|
863 |
+
display: block;
|
864 |
+
height: 100%;
|
865 |
+
width: 100%; }
|
866 |
+
@media (min-width: 768px) {
|
867 |
+
.block-help .block-help-item a {
|
868 |
+
font-size: 22px; } }
|
869 |
+
.block-help .block-help-item p {
|
870 |
+
font-size: 14px;
|
871 |
+
line-height: 25px;
|
872 |
+
margin: 7px 0 14px;
|
873 |
+
color: #333; }
|
874 |
+
@media (min-width: 768px) {
|
875 |
+
.block-help {
|
876 |
+
padding: 85px 0 65px; } }
|
877 |
+
|
878 |
+
/* block contact */
|
879 |
+
.block-contact {
|
880 |
+
color: #333;
|
881 |
+
padding: 20px 0;
|
882 |
+
margin: 0 auto;
|
883 |
+
max-width: 600px;
|
884 |
+
width: 80%; }
|
885 |
+
@media screen and (min-width: 768px) {
|
886 |
+
.block-contact {
|
887 |
+
padding: 30px 0; } }
|
888 |
+
|
889 |
+
.block-contact .send-error {
|
890 |
+
color: red;
|
891 |
+
text-align: center;
|
892 |
+
margin-top: 5px;
|
893 |
+
font-size: 14px;
|
894 |
+
display: none;
|
895 |
+
}
|
896 |
+
|
897 |
+
.block-contact, .block-sent {
|
898 |
+
height: 480px;
|
899 |
+
}
|
900 |
+
|
901 |
+
.block-sent {
|
902 |
+
display: none;
|
903 |
+
padding: 20px 0 40px;
|
904 |
+
text-align: center; }
|
905 |
+
.block-sent h2 {
|
906 |
+
margin-bottom: 20px; }
|
907 |
+
.block-sent p {
|
908 |
+
font-size: 14px;
|
909 |
+
}
|
910 |
+
@media screen and (min-width: 768px) {
|
911 |
+
.block-sent {
|
912 |
+
padding: 30px 0 60px; } }
|
913 |
+
|
914 |
+
.contact-form .form-control {
|
915 |
+
font-size: 14px;
|
916 |
+
height: 45px;
|
917 |
+
margin-bottom: 10px; }
|
918 |
+
@media screen and (min-width: 768px) {
|
919 |
+
.contact-form .form-control {
|
920 |
+
font-size: 16px;
|
921 |
+
height: 50px; } }
|
922 |
+
|
923 |
+
.contact-form textarea {
|
924 |
+
resize: vertical;
|
925 |
+
min-height: 160px; }
|
926 |
+
|
927 |
+
.contact-form .btn-container {
|
928 |
+
margin: 25px auto;
|
929 |
+
text-align: center; }
|
930 |
+
@media screen and (min-width: 768px) {
|
931 |
+
.contact-form .btn-container {
|
932 |
+
margin-top: 35px; } }
|
933 |
+
|
934 |
+
/* LOADING */
|
935 |
+
.btn.btn-loading {
|
936 |
+
position: relative; }
|
937 |
+
.btn.btn-loading .loader {
|
938 |
+
display: block; }
|
939 |
+
.btn.btn-loading .loader .spin-right {
|
940 |
+
-webkit-animation: spinright 0.5s infinite linear;
|
941 |
+
animation: spinright 0.5s infinite linear; }
|
942 |
+
.btn.btn-loading .btn-text {
|
943 |
+
opacity: 0; }
|
944 |
+
|
945 |
+
.btn .loader {
|
946 |
+
position: absolute;
|
947 |
+
width: 100%;
|
948 |
+
top: -30%;
|
949 |
+
left: 0;
|
950 |
+
display: none;
|
951 |
+
z-index: 1;
|
952 |
+
-webkit-animation: fadein 0.1s 1 linear;
|
953 |
+
animation: fadein 0.1s 1 linear; }
|
954 |
+
|
955 |
+
.btn .loader .ecwid-spinner {
|
956 |
+
margin: 0 auto;
|
957 |
+
height: 46px;
|
958 |
+
width: 46px; }
|
959 |
+
.btn .loader .ecwid-spinner svg {
|
960 |
+
width: 100%;
|
961 |
+
height: 100%;
|
962 |
+
-webkit-transform: scale(1); }
|
963 |
+
|
964 |
+
.btn.btn-large .loader .ecwid-spinner {
|
965 |
+
height: 70px;
|
966 |
+
width: 70px; }
|
967 |
+
|
968 |
+
.btn.btn-medium .loader .ecwid-spinner {
|
969 |
+
height: 56px;
|
970 |
+
width: 56px; }
|
971 |
+
|
972 |
+
.btn.btn-small .loader .ecwid-spinner {
|
973 |
+
height: 40px;
|
974 |
+
width: 40px; }
|
975 |
+
|
976 |
+
@keyframes spinright {
|
977 |
+
0% {
|
978 |
+
transform: rotate(0deg); }
|
979 |
+
100% {
|
980 |
+
transform: rotate(360deg); } }
|
981 |
+
|
982 |
+
@-webkit-keyframes spinright {
|
983 |
+
0% {
|
984 |
+
-webkit-transform: rotate(0deg); }
|
985 |
+
100% {
|
986 |
+
-webkit-transform: rotate(360deg); } }
|
987 |
+
|
988 |
+
@keyframes fadein {
|
989 |
+
0% {
|
990 |
+
opacity: 0; }
|
991 |
+
100% {
|
992 |
+
opacity: 1; } }
|
993 |
+
|
994 |
+
@-webkit-keyframes fadein {
|
995 |
+
0% {
|
996 |
+
opacity: 0; }
|
997 |
+
100% {
|
998 |
+
opacity: 1; } }
|
999 |
+
/* form errors */
|
1000 |
+
|
1001 |
+
.form-control.form-error {
|
1002 |
+
border-color: #dc3232;
|
1003 |
+
-webkit-box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 );
|
1004 |
+
box-shadow: 0 0 2px rgba( 204, 0, 0, 0.8 );
|
1005 |
+
}
|
css/nav-menu.css
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
#update-nav-menu ul.menu li.menu-item.ecwid-link .field-url
|
|
|
2 |
{
|
3 |
display: none;
|
4 |
}
|
@@ -51,4 +52,5 @@
|
|
51 |
#update-nav-menu .ecwid-store-with-cats-reset-cache {
|
52 |
float: left;
|
53 |
margin-top: 0px;
|
54 |
-
}
|
|
1 |
+
#update-nav-menu ul.menu li.menu-item.ecwid-link .field-url,
|
2 |
+
#update-nav-menu ul.menu li.menu-item.ecwid-link .link-to-original
|
3 |
{
|
4 |
display: none;
|
5 |
}
|
52 |
#update-nav-menu .ecwid-store-with-cats-reset-cache {
|
53 |
float: left;
|
54 |
margin-top: 0px;
|
55 |
+
}
|
56 |
+
|
css/products-list.css
CHANGED
@@ -69,8 +69,6 @@ html#ecwid_html body#ecwid_body .ecwid-productsList .ecwid-productsList-image .e
|
|
69 |
|
70 |
html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-name
|
71 |
{
|
72 |
-
font-size: 12px;
|
73 |
-
|
74 |
white-space: nowrap;
|
75 |
overflow: hidden;
|
76 |
text-overflow: ellipsis;
|
@@ -189,11 +187,6 @@ html#ecwid_html body#ecwid_body .ecwid-productsList div.ecwid-productsList-image
|
|
189 |
margin-top: -2px;
|
190 |
}
|
191 |
|
192 |
-
html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-name
|
193 |
-
{
|
194 |
-
font-size: 12px;
|
195 |
-
}
|
196 |
-
|
197 |
html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-price
|
198 |
{
|
199 |
font-size: 14px;
|
69 |
|
70 |
html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-name
|
71 |
{
|
|
|
|
|
72 |
white-space: nowrap;
|
73 |
overflow: hidden;
|
74 |
text-overflow: ellipsis;
|
187 |
margin-top: -2px;
|
188 |
}
|
189 |
|
|
|
|
|
|
|
|
|
|
|
190 |
html#ecwid_html body#ecwid_body .ecwid-productsList ul li .ecwid-productsList-price
|
191 |
{
|
192 |
font-size: 14px;
|
css/themes/evolve.css
CHANGED
@@ -14,3 +14,7 @@
|
|
14 |
.ecwid-shopping-cart-search button {
|
15 |
padding: 0.15em 0.3em !important;
|
16 |
}
|
|
|
|
|
|
|
|
14 |
.ecwid-shopping-cart-search button {
|
15 |
padding: 0.15em 0.3em !important;
|
16 |
}
|
17 |
+
|
18 |
+
.ecwid-productBrowser-details-rightPanel table td {
|
19 |
+
padding: 0 !important;
|
20 |
+
}
|
css/themes/mantra.css
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
html#ecwid_html body#ecwid_body div.ecwid-minicart-mini
|
2 |
margin-top: 1px;
|
3 |
}
|
1 |
+
html#ecwid_html body#ecwid_body div.ecwid-minicart-mini {
|
2 |
margin-top: 1px;
|
3 |
}
|
css/themes/sliding-door.css
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
html#ecwid_html body#ecwid_body #container {
|
2 |
+
margin-left: 200px;
|
3 |
+
margin-right: 200px;
|
4 |
+
}
|
5 |
+
html#ecwid_html body#ecwid_body #content {
|
6 |
+
width: 550px;
|
7 |
+
}
|
css/themes/{2014.css → twentyfourteen.css}
RENAMED
File without changes
|
ecwid-shopping-cart.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?source=wporg
|
|
5 |
Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
|
6 |
Text Domain: ecwid-shopping-cart
|
7 |
Author: Ecwid Team
|
8 |
-
Version: 4.2
|
9 |
Author URI: http://www.ecwid.com?source=wporg
|
10 |
*/
|
11 |
|
@@ -41,15 +41,12 @@ add_shortcode('ecwid', 'ecwid_shortcode');
|
|
41 |
add_action( 'plugins_loaded', 'ecwid_init_integrations' );
|
42 |
add_filter('plugins_loaded', 'ecwid_load_textdomain');
|
43 |
|
44 |
-
add_action( 'wp_ajax_ecwid_ajax_seo_title', 'ecwid_ajax_seo_title' );
|
45 |
-
add_action( 'wp_ajax_nopriv_ecwid_ajax_seo_title', 'ecwid_ajax_seo_title' );
|
46 |
add_filter('wp_get_nav_menu_items', 'ecwid_nav_menu_items');
|
47 |
|
48 |
if ( is_admin() ){
|
49 |
add_action('admin_init', 'ecwid_settings_api_init');
|
50 |
add_action('admin_init', 'ecwid_check_version');
|
51 |
add_action('admin_init', 'ecwid_process_oauth_params');
|
52 |
-
add_filter('admin_init', 'ecwid_add_meta_boxes' );
|
53 |
add_action('admin_notices', 'ecwid_show_admin_messages');
|
54 |
add_action('admin_menu', 'ecwid_build_menu');
|
55 |
add_action('wp_dashboard_setup', 'ecwid_add_dashboard_widgets' );
|
@@ -114,10 +111,14 @@ require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-store-editor.php';
|
|
114 |
require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-oauth.php';
|
115 |
require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-kissmetrics.php';
|
116 |
|
|
|
|
|
|
|
|
|
|
|
117 |
require_once ECWID_PLUGIN_DIR . 'lib/ecwid_platform.php';
|
118 |
require_once ECWID_PLUGIN_DIR . 'lib/ecwid_api_v3.php';
|
119 |
|
120 |
-
|
121 |
function ecwid_init_integrations()
|
122 |
{
|
123 |
if ( !function_exists( 'get_plugins' ) ) { require_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); }
|
@@ -236,24 +237,7 @@ function ecwid_enqueue_frontend() {
|
|
236 |
wp_enqueue_style('ecwid-css', ECWID_PLUGIN_URL . 'css/frontend.css',array(), get_option('ecwid_plugin_version'));
|
237 |
wp_enqueue_style('ecwid-fonts-css', ECWID_PLUGIN_URL . 'css/fonts.css', array(), get_option('ecwid_plugin_version'));
|
238 |
|
239 |
-
|
240 |
-
wp_enqueue_script( 'ecwid-frontend-js', ECWID_PLUGIN_URL . 'js/frontend.js', array( 'jquery' ), get_option( 'ecwid_plugin_version' ) );
|
241 |
-
|
242 |
-
global $ecwid_seo_title_mode;
|
243 |
-
|
244 |
-
$ecwid_seo_title_mode = 'none';
|
245 |
-
$original_title = wp_get_document_title();
|
246 |
-
$ecwid_seo_title_mode = 'placeholder';
|
247 |
-
$title_template = wp_get_document_title();
|
248 |
-
$ecwid_seo_title_mode = 'normal';
|
249 |
-
|
250 |
-
wp_localize_script( 'ecwid-frontend-js', 'ecwid_ajax_object', array(
|
251 |
-
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
252 |
-
'original_title' => $original_title,
|
253 |
-
'title_template' => $title_template
|
254 |
-
)
|
255 |
-
);
|
256 |
-
}
|
257 |
|
258 |
if ((bool)get_option('ecwid_use_chameleon')) {
|
259 |
wp_enqueue_script('ecwid-chameleon-js', 'https://dj925myfyz5v.cloudfront.net/widgets/chameleon/v1/ecwid-chameleon.js', array(), get_option('ecwid_plugin_version'), true);
|
@@ -412,7 +396,6 @@ function ecwid_check_version()
|
|
412 |
$current_version = $plugin_data['Version'];
|
413 |
$stored_version = get_option('ecwid_plugin_version', null);
|
414 |
|
415 |
-
|
416 |
$migration_since_version = get_option('ecwid_plugin_migration_since_version', null);
|
417 |
if (is_null($migration_since_version)) {
|
418 |
update_option('ecwid_plugin_migration_since_version', $current_version);
|
@@ -445,12 +428,44 @@ function ecwid_check_version()
|
|
445 |
add_option('ecwid_use_new_search', '');
|
446 |
}
|
447 |
|
448 |
-
if (
|
449 |
if (ecwid_migrations_is_original_plugin_version_older_than('4.4')) {
|
450 |
add_option('ecwid_fetch_url_use_file_get_contents', '');
|
451 |
add_option('ecwid_remote_get_timeout', '5');
|
452 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
}
|
|
|
|
|
454 |
}
|
455 |
|
456 |
function ecwid_migrations_is_original_plugin_version_older_than($version)
|
@@ -652,7 +667,7 @@ TEXT;
|
|
652 |
);
|
653 |
|
654 |
$wp_admin_bar->add_menu(array(
|
655 |
-
"id" => "ecwid-
|
656 |
"title" => __("Read FAQ", 'ecwid-shopping-cart'),
|
657 |
"parent" => "ecwid-main",
|
658 |
'href' => __('https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable', 'ecwid-shopping-cart'),
|
@@ -884,29 +899,8 @@ function ecwid_seo_title_parts($parts)
|
|
884 |
return $parts;
|
885 |
}
|
886 |
|
887 |
-
function ecwid_ajax_seo_title()
|
888 |
-
{
|
889 |
-
$title = _ecwid_get_seo_title();
|
890 |
-
echo $title;
|
891 |
-
$template = $_GET['title_template'];
|
892 |
-
|
893 |
-
$result = str_replace('ECWID_SEO_TITLE', $title, $template);
|
894 |
-
|
895 |
-
echo $result;
|
896 |
-
wp_die();
|
897 |
-
}
|
898 |
-
|
899 |
-
|
900 |
function _ecwid_get_seo_title()
|
901 |
{
|
902 |
-
global $ecwid_seo_title_mode;
|
903 |
-
|
904 |
-
if ($ecwid_seo_title_mode == 'placeholder') {
|
905 |
-
return 'ECWID_SEO_TITLE';
|
906 |
-
} else if ($ecwid_seo_title_mode == 'none') {
|
907 |
-
return '';
|
908 |
-
}
|
909 |
-
|
910 |
if (!isset($_GET['_escaped_fragment_']) || !ecwid_is_api_enabled()) return;
|
911 |
|
912 |
$params = ecwid_parse_escaped_fragment( $_GET['_escaped_fragment_'] );
|
@@ -974,10 +968,10 @@ function ecwid_content_started($content)
|
|
974 |
|
975 |
function ecwid_wrap_shortcode_content($content, $name, $attrs)
|
976 |
{
|
977 |
-
return "<!-- Ecwid shopping cart plugin v 4.2 --><!-- noptimize -->"
|
978 |
. ecwid_get_scriptjs_code(@$attrs['lang'])
|
979 |
. "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
|
980 |
-
. "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 4.2 -->";
|
981 |
}
|
982 |
|
983 |
function ecwid_get_scriptjs_code($force_lang = null) {
|
@@ -1434,8 +1428,6 @@ EOT;
|
|
1434 |
add_option("ecwid_installation_date", time());
|
1435 |
|
1436 |
add_option('ecwid_hide_appearance_menu', get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', '', 'yes');
|
1437 |
-
// Does not affect updates, automatically turned on for new users only
|
1438 |
-
add_option("ecwid_advanced_theme_layout", get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', '', 'yes');
|
1439 |
|
1440 |
add_option('ecwid_chameleon_primary', '');
|
1441 |
add_option('ecwid_chameleon_background', '');
|
@@ -1479,7 +1471,10 @@ EOT;
|
|
1479 |
add_action('in_admin_header', 'ecwid_disable_other_notices');
|
1480 |
function ecwid_disable_other_notices() {
|
1481 |
|
1482 |
-
|
|
|
|
|
|
|
1483 |
global $wp_filter;
|
1484 |
|
1485 |
foreach ($wp_filter['admin_notices'] as $priority => $collection) {
|
@@ -1543,7 +1538,6 @@ function ecwid_uninstall() {
|
|
1543 |
delete_option("ecwid_sso_secret_key");
|
1544 |
delete_option("ecwid_installation_date");
|
1545 |
delete_option('ecwid_hide_appearance_menu');
|
1546 |
-
delete_option("ecwid_advanced_theme_layout");
|
1547 |
|
1548 |
delete_option("ecwid_plugin_version");
|
1549 |
delete_option("ecwid_use_chameleon");
|
@@ -1628,11 +1622,12 @@ function ecwid_build_menu() {
|
|
1628 |
}
|
1629 |
|
1630 |
add_submenu_page('', 'Ecwid debug', '', 'manage_options', 'ecwid-debug', 'ecwid_debug_do_page');
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
|
|
1636 |
}
|
1637 |
|
1638 |
function ecwid_get_categories() {
|
@@ -1655,56 +1650,6 @@ function ecwid_get_categories() {
|
|
1655 |
return $categories;
|
1656 |
}
|
1657 |
|
1658 |
-
function ecwid_nav_menu_items($items)
|
1659 |
-
{
|
1660 |
-
|
1661 |
-
if (is_admin()) {
|
1662 |
-
return $items;
|
1663 |
-
}
|
1664 |
-
|
1665 |
-
$categories = ecwid_get_categories();
|
1666 |
-
|
1667 |
-
$counter = 0;
|
1668 |
-
foreach ($items as $key => $item) {
|
1669 |
-
|
1670 |
-
$items[$key]->menu_order += $counter;
|
1671 |
-
|
1672 |
-
if (in_array('ecwid-store-with-categories', $item->classes) && !empty($categories)) {
|
1673 |
-
foreach ($categories as $category) {
|
1674 |
-
$counter ++;
|
1675 |
-
$post = new stdClass;
|
1676 |
-
$post->ID = 0;
|
1677 |
-
$post->post_author = '';
|
1678 |
-
$post->post_date = '';
|
1679 |
-
$post->post_date_gmt = '';
|
1680 |
-
$post->post_password = '';
|
1681 |
-
$post->post_name = '';
|
1682 |
-
$post->post_type = $item->post_type;
|
1683 |
-
$post->post_status = 'publish';
|
1684 |
-
$post->to_ping = '';
|
1685 |
-
$post->pinged = '';
|
1686 |
-
$post->post_parent = 0;
|
1687 |
-
$post->menu_order = $item->menu_order + $counter;
|
1688 |
-
$post->menu_item_parent = $item->ID;
|
1689 |
-
$post->url = ecwid_get_store_page_url() . $category->link;
|
1690 |
-
$post->classes = '';
|
1691 |
-
$post->type = 'post';
|
1692 |
-
$post->db_id = 0;
|
1693 |
-
$post->title = $category->name;
|
1694 |
-
$post->target = '';
|
1695 |
-
$post->object = '';
|
1696 |
-
$post->attr_title = '';
|
1697 |
-
$post->description = '';
|
1698 |
-
$post->xfn = '';
|
1699 |
-
$post->object_id = 0;
|
1700 |
-
array_splice($items, $key + $counter, 0, array($post));
|
1701 |
-
}
|
1702 |
-
$counter++;
|
1703 |
-
}
|
1704 |
-
}
|
1705 |
-
return $items;
|
1706 |
-
}
|
1707 |
-
|
1708 |
function ecwid_reset_categories_cache()
|
1709 |
{
|
1710 |
if (!current_user_can('administrator')) {
|
@@ -1714,78 +1659,9 @@ function ecwid_reset_categories_cache()
|
|
1714 |
wp_cache_delete('all_categories', 'ecwid');
|
1715 |
}
|
1716 |
|
1717 |
-
function ecwid_nav_menu_links()
|
1718 |
-
{
|
1719 |
-
$menu_links = array(
|
1720 |
-
'Cart' => array(
|
1721 |
-
'list-name' => __( 'Cart', 'ecwid-shopping-cart' ),
|
1722 |
-
'classes' => 'ecwid-cart',
|
1723 |
-
'url' => 'cart',
|
1724 |
-
'label' => __('Shopping Cart', 'ecwid-shopping-cart')
|
1725 |
-
), 'Search' => array(
|
1726 |
-
'list-name' => __( 'Product Search', 'ecwid-shopping-cart' ),
|
1727 |
-
'classes' => 'ecwid-product-search',
|
1728 |
-
'url' => 'search',
|
1729 |
-
'label' => __('Product Search', 'ecwid-shopping-cart')
|
1730 |
-
), 'Account' => array(
|
1731 |
-
'list-name' => __( 'My Account' , 'ecwid-shopping-cart' ),
|
1732 |
-
'classes' => 'ecwid-my-account',
|
1733 |
-
'url' => 'accountSettings',
|
1734 |
-
'label' => __('My Account', 'ecwid-shopping-cart')
|
1735 |
-
), 'Store' => array(
|
1736 |
-
'list-name' => __( 'Store' , 'ecwid-shopping-cart' ),
|
1737 |
-
'classes' => 'ecwid-store',
|
1738 |
-
'url' => '',
|
1739 |
-
'label' => __('Store', 'ecwid-shopping-cart')
|
1740 |
-
), 'Store with categories' => array(
|
1741 |
-
'list-name' => __( 'Store with Categories Menu' , 'ecwid-shopping-cart' ),
|
1742 |
-
'classes' => 'ecwid-store-with-categories',
|
1743 |
-
'url' => '',
|
1744 |
-
'label' => __('Store', 'ecwid-shopping-cart')
|
1745 |
-
)
|
1746 |
-
);
|
1747 |
-
?>
|
1748 |
-
<div id="posttype-ecwid-links" class="posttypediv">
|
1749 |
-
<div id="tabs-panel-ecwid-links" class="tabs-panel tabs-panel-active">
|
1750 |
-
<ul id="ecwid-links-checklist" class="categorychecklist form-no-clear">
|
1751 |
-
<?php
|
1752 |
-
$i = -1;
|
1753 |
-
foreach ( $menu_links as $key => $value ) {
|
1754 |
-
?>
|
1755 |
-
<li>
|
1756 |
-
<label class="menu-item-title">
|
1757 |
-
<input type="checkbox" class="menu-item-checkbox" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-object-id]" value="<?php echo esc_attr( $i ); ?>" /> <?php echo $value['list-name']; ?>
|
1758 |
-
</label>
|
1759 |
-
<input type="hidden" class="menu-item-type" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-type]" value="custom" />
|
1760 |
-
<input type="hidden" class="menu-item-title" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-title]" value="<?php echo esc_html(isset($value['label']) ? $value['label'] : $key ); ?>" />
|
1761 |
-
<input type="hidden" class="menu-item-url" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-url]" value="<?php echo esc_url( ecwid_get_store_page_url() . '#!/~/' . $value['url']); ?>" />
|
1762 |
-
<input type="hidden" class="menu-item-classes" name="menu-item[<?php echo esc_attr( $i ); ?>][menu-item-classes]" value="<?php echo $value['classes']; ?>" />
|
1763 |
-
</li>
|
1764 |
-
<?php
|
1765 |
-
$i --;
|
1766 |
-
}
|
1767 |
-
?>
|
1768 |
-
</ul>
|
1769 |
-
</div>
|
1770 |
-
<p class="button-controls">
|
1771 |
-
<span class="list-controls">
|
1772 |
-
<a href="<?php echo admin_url( 'nav-menus.php?page-tab=all&selectall=1#posttype-ecwid-links' ); ?>" class="select-all"><?php _e( 'Select All' ); ?></a>
|
1773 |
-
</span>
|
1774 |
-
<span class="add-to-menu">
|
1775 |
-
<input type="submit" class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-post-type-menu-item" id="submit-posttype-ecwid-links">
|
1776 |
-
<span class="spinner"></span>
|
1777 |
-
</span>
|
1778 |
-
</p>
|
1779 |
-
</div>
|
1780 |
-
<?php
|
1781 |
-
}
|
1782 |
-
|
1783 |
-
function ecwid_admin_products_do_page() {
|
1784 |
-
ecwid_admin_do_page('products');
|
1785 |
-
}
|
1786 |
|
1787 |
-
function
|
1788 |
-
|
1789 |
}
|
1790 |
|
1791 |
function ecwid_register_admin_styles($hook_suffix) {
|
@@ -1817,8 +1693,6 @@ function ecwid_register_admin_styles($hook_suffix) {
|
|
1817 |
wp_enqueue_script('ecwid-connect-js', ECWID_PLUGIN_URL . 'js/dashboard.js', array(), get_option('ecwid_plugin_version'));
|
1818 |
}
|
1819 |
}
|
1820 |
-
|
1821 |
-
wp_enqueue_style('ecwid-nav-menu', ECWID_PLUGIN_URL . 'css/nav-menu.css', array(), get_option('ecwid_plugin_version'));
|
1822 |
}
|
1823 |
|
1824 |
function ecwid_register_settings_styles($hook_suffix) {
|
@@ -1869,7 +1743,6 @@ function ecwid_settings_api_init() {
|
|
1869 |
case 'advanced':
|
1870 |
register_setting( 'ecwid_options_page', 'ecwid_default_category_id', 'ecwid_abs_intval' );
|
1871 |
register_setting( 'ecwid_options_page', 'ecwid_sso_secret_key' );
|
1872 |
-
register_setting( 'ecwid_options_page', 'ecwid_enable_advanced_theme_layout' );
|
1873 |
register_setting( 'ecwid_options_page', 'ecwid_use_chameleon' );
|
1874 |
register_setting( 'ecwid_options_page', 'ecwid_use_new_horizontal_categories' );
|
1875 |
register_setting( 'ecwid_options_page', 'ecwid_use_new_search' );
|
@@ -1896,32 +1769,6 @@ function ecwid_common_admin_scripts() {
|
|
1896 |
wp_enqueue_script('ecwid-admin-js', ECWID_PLUGIN_URL . 'js/admin.js', array(), get_option('ecwid_plugin_version'));
|
1897 |
wp_enqueue_script('ecwid-modernizr-js', ECWID_PLUGIN_URL . 'js/modernizr.js', array(), get_option('ecwid_plugin_version'));
|
1898 |
|
1899 |
-
if (function_exists('get_current_screen') ) {
|
1900 |
-
$screen = get_current_screen();
|
1901 |
-
|
1902 |
-
if ($screen->base == 'nav-menus') {
|
1903 |
-
EcwidPlatform::set('nav-menus-opened-once', null);
|
1904 |
-
|
1905 |
-
$first_run = false;
|
1906 |
-
// It opens the page twice on the very first run of that page
|
1907 |
-
if (EcwidPlatform::get('nav-menus-opened-once', false) < 2) {
|
1908 |
-
EcwidPlatform::set('nav-menus-opened-once', EcwidPlatform::get('nav-menus-opened-once') + 1);
|
1909 |
-
$first_run = EcwidPlatform::get('nav-menus-opened-once') <= 2;
|
1910 |
-
}
|
1911 |
-
|
1912 |
-
wp_enqueue_script('ecwid-admin-menu-js', ECWID_PLUGIN_URL . 'js/nav-menu.js', array(), get_option('ecwid_plugin_version'));
|
1913 |
-
wp_localize_script('ecwid-admin-menu-js', 'ecwid_params', array(
|
1914 |
-
'store_page' => __('Store Page', 'ecwid-shopping-cart'),
|
1915 |
-
'reset_cats_cache' => __('Refresh categories list', 'ecwid-shopping-cart'),
|
1916 |
-
'cache_updated' => __('Done', 'ecwid-shopping-cart'),
|
1917 |
-
'reset_cache_message' => __('The store top-level categories are automatically added to this drop-down menu', 'ecwid-shopping-cart'),
|
1918 |
-
'first_run' => $first_run,
|
1919 |
-
'register_link' => ecwid_get_register_link()
|
1920 |
-
));
|
1921 |
-
}
|
1922 |
-
|
1923 |
-
}
|
1924 |
-
|
1925 |
wp_localize_script('ecwid-admin-js', 'ecwid_l10n', array(
|
1926 |
'dashboard' => __('Dashboard', 'ecwid-shopping-cart'),
|
1927 |
'dashboard_url' => 'admin.php?page=ecwid',
|
@@ -2009,7 +1856,8 @@ function ecwid_general_settings_do_page() {
|
|
2009 |
if ( ecwid_use_old_landing() ) {
|
2010 |
require_once( ECWID_PLUGIN_DIR . '/templates/landing_old.php' );
|
2011 |
} else if ($api->does_store_exist($current_user->user_email)) {
|
2012 |
-
Ecwid_Kissmetrics::
|
|
|
2013 |
require_once ECWID_PLUGIN_DIR . '/templates/connect.php';
|
2014 |
} else {
|
2015 |
require_once( ECWID_PLUGIN_DIR . '/templates/landing.php' );
|
@@ -2040,15 +1888,15 @@ function ecwid_general_settings_do_page() {
|
|
2040 |
} else {
|
2041 |
$time = time() - get_option('ecwid_time_correction', 0);
|
2042 |
$page = 'dashboard';
|
2043 |
-
|
2044 |
-
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
2048 |
-
|
2049 |
-
|
2050 |
-
|
2051 |
-
|
2052 |
|
2053 |
$result = EcwidPlatform::fetch_url( $iframe_src );
|
2054 |
|
@@ -2123,6 +1971,26 @@ function ecwid_admin_do_page( $page ) {
|
|
2123 |
}
|
2124 |
}
|
2125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2126 |
function ecwid_process_oauth_params() {
|
2127 |
|
2128 |
if (strtoupper($_SERVER['REQUEST_METHOD']) != 'GET' || !isset($_GET['page'])) {
|
@@ -2543,17 +2411,7 @@ function ecwid_gather_usage_stats()
|
|
2543 |
|
2544 |
$usage_stats['ecwid_remote_get_fails'] = (bool) get_option('ecwid_remote_get_fails');
|
2545 |
|
2546 |
-
$
|
2547 |
-
$all_plugins = get_plugins();
|
2548 |
-
if (array_key_exists('woocommerce/woocommerce.php', $all_plugins)) {
|
2549 |
-
$active_plugins = get_option('active_plugins');
|
2550 |
-
if (in_array('woocommerce/woocommerce.php', $active_plugins)) {
|
2551 |
-
$woo = 2;
|
2552 |
-
} else {
|
2553 |
-
$woo = 1;
|
2554 |
-
}
|
2555 |
-
}
|
2556 |
-
$usage_stats['has_woocommerce'] = $woo;
|
2557 |
|
2558 |
return $usage_stats;
|
2559 |
}
|
@@ -2748,7 +2606,7 @@ function ecwid_get_categories_js_url($callback) {
|
|
2748 |
|
2749 |
|
2750 |
function ecwid_use_old_landing() {
|
2751 |
-
return
|
2752 |
}
|
2753 |
|
2754 |
/*
|
5 |
Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
|
6 |
Text Domain: ecwid-shopping-cart
|
7 |
Author: Ecwid Team
|
8 |
+
Version: 4.2.1
|
9 |
Author URI: http://www.ecwid.com?source=wporg
|
10 |
*/
|
11 |
|
41 |
add_action( 'plugins_loaded', 'ecwid_init_integrations' );
|
42 |
add_filter('plugins_loaded', 'ecwid_load_textdomain');
|
43 |
|
|
|
|
|
44 |
add_filter('wp_get_nav_menu_items', 'ecwid_nav_menu_items');
|
45 |
|
46 |
if ( is_admin() ){
|
47 |
add_action('admin_init', 'ecwid_settings_api_init');
|
48 |
add_action('admin_init', 'ecwid_check_version');
|
49 |
add_action('admin_init', 'ecwid_process_oauth_params');
|
|
|
50 |
add_action('admin_notices', 'ecwid_show_admin_messages');
|
51 |
add_action('admin_menu', 'ecwid_build_menu');
|
52 |
add_action('wp_dashboard_setup', 'ecwid_add_dashboard_widgets' );
|
111 |
require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-oauth.php';
|
112 |
require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-kissmetrics.php';
|
113 |
|
114 |
+
if (is_admin()) {
|
115 |
+
require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-help-page.php';
|
116 |
+
}
|
117 |
+
require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-nav-menus.php';
|
118 |
+
|
119 |
require_once ECWID_PLUGIN_DIR . 'lib/ecwid_platform.php';
|
120 |
require_once ECWID_PLUGIN_DIR . 'lib/ecwid_api_v3.php';
|
121 |
|
|
|
122 |
function ecwid_init_integrations()
|
123 |
{
|
124 |
if ( !function_exists( 'get_plugins' ) ) { require_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); }
|
237 |
wp_enqueue_style('ecwid-css', ECWID_PLUGIN_URL . 'css/frontend.css',array(), get_option('ecwid_plugin_version'));
|
238 |
wp_enqueue_style('ecwid-fonts-css', ECWID_PLUGIN_URL . 'css/fonts.css', array(), get_option('ecwid_plugin_version'));
|
239 |
|
240 |
+
wp_enqueue_script( 'ecwid-frontend-js', ECWID_PLUGIN_URL . 'js/frontend.js', array( 'jquery' ), get_option( 'ecwid_plugin_version' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
|
242 |
if ((bool)get_option('ecwid_use_chameleon')) {
|
243 |
wp_enqueue_script('ecwid-chameleon-js', 'https://dj925myfyz5v.cloudfront.net/widgets/chameleon/v1/ecwid-chameleon.js', array(), get_option('ecwid_plugin_version'), true);
|
396 |
$current_version = $plugin_data['Version'];
|
397 |
$stored_version = get_option('ecwid_plugin_version', null);
|
398 |
|
|
|
399 |
$migration_since_version = get_option('ecwid_plugin_migration_since_version', null);
|
400 |
if (is_null($migration_since_version)) {
|
401 |
update_option('ecwid_plugin_migration_since_version', $current_version);
|
428 |
add_option('ecwid_use_new_search', '');
|
429 |
}
|
430 |
|
431 |
+
if ($fresh_install || $upgrade || @$_GET['ecwid_reinit']) {
|
432 |
if (ecwid_migrations_is_original_plugin_version_older_than('4.4')) {
|
433 |
add_option('ecwid_fetch_url_use_file_get_contents', '');
|
434 |
add_option('ecwid_remote_get_timeout', '5');
|
435 |
}
|
436 |
+
|
437 |
+
if (ecwid_migrations_is_original_plugin_version_older_than('4.1.3')) {
|
438 |
+
add_option( 'ecwid_support_email', 'wordpress@ecwid.com' );
|
439 |
+
}
|
440 |
+
|
441 |
+
$all_plugins = get_plugins();
|
442 |
+
$has_woo = ecwid_get_woocommerce_status();
|
443 |
+
|
444 |
+
if ($has_woo) {
|
445 |
+
add_option('ecwid_extended_help', true);
|
446 |
+
}
|
447 |
+
}
|
448 |
+
}
|
449 |
+
|
450 |
+
function ecwid_get_woocommerce_status() {
|
451 |
+
|
452 |
+
$woo = EcwidPlatform::cache_get('woo_status');
|
453 |
+
|
454 |
+
if (is_null($woo)) {
|
455 |
+
$woo = 0;
|
456 |
+
$all_plugins = get_plugins();
|
457 |
+
if (array_key_exists('woocommerce/woocommerce.php', $all_plugins)) {
|
458 |
+
$active_plugins = get_option('active_plugins');
|
459 |
+
if (in_array('woocommerce/woocommerce.php', $active_plugins)) {
|
460 |
+
$woo = 2;
|
461 |
+
} else {
|
462 |
+
$woo = 1;
|
463 |
+
}
|
464 |
+
}
|
465 |
+
EcwidPlatform::cache_set('woo_status', $woo, 60 * 60 * 24);
|
466 |
}
|
467 |
+
|
468 |
+
return $woo;
|
469 |
}
|
470 |
|
471 |
function ecwid_migrations_is_original_plugin_version_older_than($version)
|
667 |
);
|
668 |
|
669 |
$wp_admin_bar->add_menu(array(
|
670 |
+
"id" => "ecwid-faq",
|
671 |
"title" => __("Read FAQ", 'ecwid-shopping-cart'),
|
672 |
"parent" => "ecwid-main",
|
673 |
'href' => __('https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable', 'ecwid-shopping-cart'),
|
899 |
return $parts;
|
900 |
}
|
901 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
902 |
function _ecwid_get_seo_title()
|
903 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
904 |
if (!isset($_GET['_escaped_fragment_']) || !ecwid_is_api_enabled()) return;
|
905 |
|
906 |
$params = ecwid_parse_escaped_fragment( $_GET['_escaped_fragment_'] );
|
968 |
|
969 |
function ecwid_wrap_shortcode_content($content, $name, $attrs)
|
970 |
{
|
971 |
+
return "<!-- Ecwid shopping cart plugin v 4.2.1 --><!-- noptimize -->"
|
972 |
. ecwid_get_scriptjs_code(@$attrs['lang'])
|
973 |
. "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
|
974 |
+
. "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 4.2.1 -->";
|
975 |
}
|
976 |
|
977 |
function ecwid_get_scriptjs_code($force_lang = null) {
|
1428 |
add_option("ecwid_installation_date", time());
|
1429 |
|
1430 |
add_option('ecwid_hide_appearance_menu', get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', '', 'yes');
|
|
|
|
|
1431 |
|
1432 |
add_option('ecwid_chameleon_primary', '');
|
1433 |
add_option('ecwid_chameleon_background', '');
|
1471 |
add_action('in_admin_header', 'ecwid_disable_other_notices');
|
1472 |
function ecwid_disable_other_notices() {
|
1473 |
|
1474 |
+
$pages = array('toplevel_page_ecwid', 'admin_page_ecwid-help');
|
1475 |
+
|
1476 |
+
if (!in_array(get_current_screen()->base, $pages)) return;
|
1477 |
+
|
1478 |
global $wp_filter;
|
1479 |
|
1480 |
foreach ($wp_filter['admin_notices'] as $priority => $collection) {
|
1538 |
delete_option("ecwid_sso_secret_key");
|
1539 |
delete_option("ecwid_installation_date");
|
1540 |
delete_option('ecwid_hide_appearance_menu');
|
|
|
1541 |
|
1542 |
delete_option("ecwid_plugin_version");
|
1543 |
delete_option("ecwid_use_chameleon");
|
1622 |
}
|
1623 |
|
1624 |
add_submenu_page('', 'Ecwid debug', '', 'manage_options', 'ecwid-debug', 'ecwid_debug_do_page');
|
1625 |
+
add_submenu_page(
|
1626 |
+
'ecwid',
|
1627 |
+
__('Help', 'ecwid-shopping-cart'),
|
1628 |
+
__('Help', 'ecwid-shopping-cart'),
|
1629 |
+
'manage_options', 'ecwid-help', 'ecwid_help_do_page'
|
1630 |
+
);
|
1631 |
}
|
1632 |
|
1633 |
function ecwid_get_categories() {
|
1650 |
return $categories;
|
1651 |
}
|
1652 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1653 |
function ecwid_reset_categories_cache()
|
1654 |
{
|
1655 |
if (!current_user_can('administrator')) {
|
1659 |
wp_cache_delete('all_categories', 'ecwid');
|
1660 |
}
|
1661 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1662 |
|
1663 |
+
function ecwid_add_meta_boxes()
|
1664 |
+
{
|
1665 |
}
|
1666 |
|
1667 |
function ecwid_register_admin_styles($hook_suffix) {
|
1693 |
wp_enqueue_script('ecwid-connect-js', ECWID_PLUGIN_URL . 'js/dashboard.js', array(), get_option('ecwid_plugin_version'));
|
1694 |
}
|
1695 |
}
|
|
|
|
|
1696 |
}
|
1697 |
|
1698 |
function ecwid_register_settings_styles($hook_suffix) {
|
1743 |
case 'advanced':
|
1744 |
register_setting( 'ecwid_options_page', 'ecwid_default_category_id', 'ecwid_abs_intval' );
|
1745 |
register_setting( 'ecwid_options_page', 'ecwid_sso_secret_key' );
|
|
|
1746 |
register_setting( 'ecwid_options_page', 'ecwid_use_chameleon' );
|
1747 |
register_setting( 'ecwid_options_page', 'ecwid_use_new_horizontal_categories' );
|
1748 |
register_setting( 'ecwid_options_page', 'ecwid_use_new_search' );
|
1769 |
wp_enqueue_script('ecwid-admin-js', ECWID_PLUGIN_URL . 'js/admin.js', array(), get_option('ecwid_plugin_version'));
|
1770 |
wp_enqueue_script('ecwid-modernizr-js', ECWID_PLUGIN_URL . 'js/modernizr.js', array(), get_option('ecwid_plugin_version'));
|
1771 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1772 |
wp_localize_script('ecwid-admin-js', 'ecwid_l10n', array(
|
1773 |
'dashboard' => __('Dashboard', 'ecwid-shopping-cart'),
|
1774 |
'dashboard_url' => 'admin.php?page=ecwid',
|
1856 |
if ( ecwid_use_old_landing() ) {
|
1857 |
require_once( ECWID_PLUGIN_DIR . '/templates/landing_old.php' );
|
1858 |
} else if ($api->does_store_exist($current_user->user_email)) {
|
1859 |
+
Ecwid_Kissmetrics::set( 'existing account on install', true );
|
1860 |
+
Ecwid_Kissmetrics::record( 'account is found connect page viewed' );
|
1861 |
require_once ECWID_PLUGIN_DIR . '/templates/connect.php';
|
1862 |
} else {
|
1863 |
require_once( ECWID_PLUGIN_DIR . '/templates/landing.php' );
|
1888 |
} else {
|
1889 |
$time = time() - get_option('ecwid_time_correction', 0);
|
1890 |
$page = 'dashboard';
|
1891 |
+
$iframe_src = sprintf(
|
1892 |
+
'https://my.ecwid.com/api/v3/%s/sso?token=%s×tamp=%s&signature=%s&place=%s&inline&lang=%s&min-height=700',
|
1893 |
+
get_ecwid_store_id(),
|
1894 |
+
Ecwid_Api_V3::get_token(),
|
1895 |
+
$time,
|
1896 |
+
hash( 'sha256', get_ecwid_store_id() . Ecwid_Api_V3::get_token() . $time . Ecwid_Api_V3::CLIENT_SECRET ),
|
1897 |
+
$page,
|
1898 |
+
substr( get_bloginfo( 'language' ), 0, 2 )
|
1899 |
+
);
|
1900 |
|
1901 |
$result = EcwidPlatform::fetch_url( $iframe_src );
|
1902 |
|
1971 |
}
|
1972 |
}
|
1973 |
|
1974 |
+
|
1975 |
+
function ecwid_admin_products_do_page() {
|
1976 |
+
ecwid_admin_do_page('products');
|
1977 |
+
}
|
1978 |
+
|
1979 |
+
function ecwid_admin_orders_do_page() {
|
1980 |
+
ecwid_admin_do_page('orders');
|
1981 |
+
}
|
1982 |
+
|
1983 |
+
function ecwid_help_do_page() {
|
1984 |
+
|
1985 |
+
$help = new Ecwid_Help_Page();
|
1986 |
+
$faqs = $help->get_faqs();
|
1987 |
+
|
1988 |
+
wp_enqueue_style('ecwid-help', ECWID_PLUGIN_URL . 'css/help.css',array(), get_option('ecwid_plugin_version'));
|
1989 |
+
|
1990 |
+
$col_size = 6;
|
1991 |
+
require_once ECWID_PLUGIN_DIR . 'templates/help.php';
|
1992 |
+
}
|
1993 |
+
|
1994 |
function ecwid_process_oauth_params() {
|
1995 |
|
1996 |
if (strtoupper($_SERVER['REQUEST_METHOD']) != 'GET' || !isset($_GET['page'])) {
|
2411 |
|
2412 |
$usage_stats['ecwid_remote_get_fails'] = (bool) get_option('ecwid_remote_get_fails');
|
2413 |
|
2414 |
+
$usage_stats['has_woocommerce'] = ecwid_get_woocommerce_status();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2415 |
|
2416 |
return $usage_stats;
|
2417 |
}
|
2606 |
|
2607 |
|
2608 |
function ecwid_use_old_landing() {
|
2609 |
+
return version_compare(get_bloginfo('version'), '3.7') < 0;
|
2610 |
}
|
2611 |
|
2612 |
/*
|
images/help/brand.jpg
ADDED
Binary file
|
images/help/cp.jpg
ADDED
Binary file
|
includes/class-ecwid-help-page.php
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Ecwid_Help_Page {
|
4 |
+
const CONTACT_US_ACTION_NAME = 'ecwid_contact_us';
|
5 |
+
public function __construct() {
|
6 |
+
add_action('wp_ajax_' . self::CONTACT_US_ACTION_NAME, array( $this, 'submit_contact_us') );
|
7 |
+
}
|
8 |
+
|
9 |
+
public function submit_contact_us() {
|
10 |
+
|
11 |
+
if ( !current_user_can('administrator') ) {
|
12 |
+
header('403 Access Denied');
|
13 |
+
|
14 |
+
die();
|
15 |
+
}
|
16 |
+
if ( !wp_verify_nonce($_POST['wp-nonce'], self::CONTACT_US_ACTION_NAME) ) {
|
17 |
+
header('403 Access Denied');
|
18 |
+
|
19 |
+
die();
|
20 |
+
}
|
21 |
+
|
22 |
+
$to = get_option( 'ecwid_support_email' );
|
23 |
+
|
24 |
+
$body_lines = array();
|
25 |
+
if ( get_ecwid_store_id() != ECWID_DEMO_STORE_ID ) {
|
26 |
+
$body_lines[] = 'Store ID: ' . get_ecwid_store_id();
|
27 |
+
}
|
28 |
+
$body_lines[] = 'Store URL: ' . ecwid_get_store_page_url();
|
29 |
+
$body_lines[] = 'Wp theme: ' . ecwid_get_theme_name();
|
30 |
+
$body_lines[] = 'Ecwid plugin version: ' . get_option('ecwid_plugin_version');
|
31 |
+
$body_lines[] = 'Wordpress version: ' . get_bloginfo('version');
|
32 |
+
$body_lines[] = '';
|
33 |
+
$body_lines[] = 'Message:';
|
34 |
+
$body_lines[] = '';
|
35 |
+
$body_lines[] = $_POST['body'];
|
36 |
+
|
37 |
+
global $current_user;
|
38 |
+
$reply_to = $current_user->user_email;
|
39 |
+
|
40 |
+
$result = wp_mail(
|
41 |
+
$to,
|
42 |
+
$_POST['subject'],
|
43 |
+
implode(PHP_EOL, $body_lines),
|
44 |
+
'Reply-To:' . $reply_to
|
45 |
+
);
|
46 |
+
|
47 |
+
if ($result) {
|
48 |
+
$nonce = wp_create_nonce( self::CONTACT_US_ACTION_NAME );
|
49 |
+
|
50 |
+
echo json_encode(
|
51 |
+
array(
|
52 |
+
'nonce' => $nonce
|
53 |
+
)
|
54 |
+
);
|
55 |
+
wp_die();
|
56 |
+
} else {
|
57 |
+
header('500 Send mail failed');
|
58 |
+
die();
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
public function get_faqs() {
|
63 |
+
global $faqs;
|
64 |
+
|
65 |
+
include 'faq_entries.php';
|
66 |
+
|
67 |
+
$max = 8;
|
68 |
+
|
69 |
+
$result = array();
|
70 |
+
foreach ( $faqs as $idx => $faq ) {
|
71 |
+
if ( $faq['priority'] == 'newbie_with_woo' ) {
|
72 |
+
$installed_within_two_weeks = time() - get_option( 'ecwid_installation_date' ) < 60 * 60 * 24 * 14;
|
73 |
+
|
74 |
+
if ( ecwid_get_woocommerce_status() && $installed_within_two_weeks ) {
|
75 |
+
$result[] = $faq;
|
76 |
+
unset($faqs[$idx]);
|
77 |
+
}
|
78 |
+
}
|
79 |
+
}
|
80 |
+
$faqs = array_values($faqs);
|
81 |
+
|
82 |
+
while (count($result) < $max) {
|
83 |
+
$rand = rand(0, count($faqs) - 1);
|
84 |
+
$result[] = $faqs[$rand];
|
85 |
+
|
86 |
+
unset($faqs[$rand]);
|
87 |
+
$faqs = array_values($faqs);
|
88 |
+
}
|
89 |
+
|
90 |
+
$faqs = $result;
|
91 |
+
|
92 |
+
$result = array();
|
93 |
+
foreach ($faqs as $faq) {
|
94 |
+
$faq['href'] = 'https://help.ecwid.com/' . $faq['href'];
|
95 |
+
$faq['body'] = preg_replace('!<img alt="" src="([^"]*)"!', '<img alt="" src="' . ECWID_PLUGIN_URL . '/images/help/' . '$1"', $faq['body']);
|
96 |
+
|
97 |
+
$result[] = (object) $faq;
|
98 |
+
}
|
99 |
+
|
100 |
+
return $result;
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
+
$ecwid_help_page = new Ecwid_Help_Page();
|
includes/class-ecwid-message-manager.php
CHANGED
@@ -248,7 +248,7 @@ TXT
|
|
248 |
|
249 |
switch ($name) {
|
250 |
case 'on_activate':
|
251 |
-
return $admin_page
|
252 |
|
253 |
case 'on_storeid_set':
|
254 |
return get_ecwid_store_id() != ECWID_DEMO_STORE_ID && @$_GET['settings-updated'] == 'true' && $admin_page == 'toplevel_page_ecwid';
|
@@ -262,7 +262,7 @@ TXT
|
|
262 |
return $is_newbie && ($is_ecwid_settings || $is_store_page);
|
263 |
|
264 |
case 'on_appearance_widgets':
|
265 |
-
return isset($_GET['from-ecwid']) && $admin_page == 'widgets';
|
266 |
|
267 |
case 'please_vote':
|
268 |
$install_date = get_option('ecwid_installation_date');
|
248 |
|
249 |
switch ($name) {
|
250 |
case 'on_activate':
|
251 |
+
return $admin_page != 'toplevel_page_ecwid' && get_ecwid_store_id() == ECWID_DEMO_STORE_ID;
|
252 |
|
253 |
case 'on_storeid_set':
|
254 |
return get_ecwid_store_id() != ECWID_DEMO_STORE_ID && @$_GET['settings-updated'] == 'true' && $admin_page == 'toplevel_page_ecwid';
|
262 |
return $is_newbie && ($is_ecwid_settings || $is_store_page);
|
263 |
|
264 |
case 'on_appearance_widgets':
|
265 |
+
return isset($_GET['from-ecwid']) && $_GET['from-ecwid'] != 'true' && $admin_page == 'widgets';
|
266 |
|
267 |
case 'please_vote':
|
268 |
$install_date = get_option('ecwid_installation_date');
|
includes/class-ecwid-nav-menus.php
ADDED
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Ecwid_Nav_Menus {
|
4 |
+
|
5 |
+
protected $item_types;
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
add_action('init', array( $this, 'init' ));
|
9 |
+
|
10 |
+
add_filter('wp_get_nav_menu_items', array( $this, 'process_menu_items' ));
|
11 |
+
|
12 |
+
if ( is_admin() ) {
|
13 |
+
add_filter('admin_init', array( $this, 'add_meta_box' ));
|
14 |
+
|
15 |
+
add_action('admin_enqueue_scripts', array( $this, 'enqueue_admin_assets' ) );
|
16 |
+
} else {
|
17 |
+
add_action('wp_enqueue_scripts', array( $this, 'enqueue_frontend_assets' ) );
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
public function init() {
|
22 |
+
register_post_type('ecwid_menu_item',
|
23 |
+
array(
|
24 |
+
'labels' => array(
|
25 |
+
'name' => __( 'Ecwid Menu Item', 'ecwid-shopping-cart' ),
|
26 |
+
),
|
27 |
+
'supports' => array( 'title' ),
|
28 |
+
|
29 |
+
'public' => FALSE,
|
30 |
+
'exclude_from_search' => TRUE,
|
31 |
+
'publicly_queryable' => FALSE,
|
32 |
+
'show_ui' => FALSE,
|
33 |
+
'show_in_menu' => FALSE,
|
34 |
+
'show_in_nav_menus' => FALSE,
|
35 |
+
'show_in_admin_bar' => FALSE,
|
36 |
+
'has_archive' => FALSE,
|
37 |
+
)
|
38 |
+
);
|
39 |
+
}
|
40 |
+
|
41 |
+
public function add_meta_box() {
|
42 |
+
/* $locations = get_nav_menu_locations();
|
43 |
+
|
44 |
+
$nav = wp_get_nav_menu_object(11);
|
45 |
+
wp_update_nav_menu_item(11, 0, array(
|
46 |
+
'menu-item-title' => 'Store',
|
47 |
+
'menu-item-object' => 'ecwid-store-with-categories',
|
48 |
+
'menu-item-type' => 'ecwid_menu_item',
|
49 |
+
'menu-item-status' => 'publish')
|
50 |
+
);
|
51 |
+
*/
|
52 |
+
add_meta_box('ecwid_nav_links', __('Store', 'ecwid-shopping-cart'), array( $this, 'create_menu_items'), 'nav-menus', 'side');
|
53 |
+
}
|
54 |
+
|
55 |
+
public function enqueue_frontend_assets() {
|
56 |
+
if (ecwid_get_current_store_page_id() != get_the_ID()) {
|
57 |
+
return;
|
58 |
+
}
|
59 |
+
|
60 |
+
wp_enqueue_script( 'ecwid-menu', ECWID_PLUGIN_URL . 'js/nav-menu-frontend.js', array( 'jquery' ), get_option('ecwid_plugin_version') );
|
61 |
+
wp_localize_script( 'ecwid-menu', 'ecwid_menu_data', array(
|
62 |
+
'items' => $this->get_nav_menu_items()
|
63 |
+
) );
|
64 |
+
}
|
65 |
+
|
66 |
+
public function enqueue_admin_assets() {
|
67 |
+
$screen = get_current_screen();
|
68 |
+
|
69 |
+
if ($screen->base != 'nav-menus') return;
|
70 |
+
|
71 |
+
wp_enqueue_style('ecwid-nav-menu', ECWID_PLUGIN_URL . 'css/nav-menu.css', array(), get_option('ecwid_plugin_version'));
|
72 |
+
|
73 |
+
EcwidPlatform::set('nav-menus-opened-once', null);
|
74 |
+
|
75 |
+
$first_run = false;
|
76 |
+
// It opens the page twice on the very first run of that page
|
77 |
+
if (EcwidPlatform::get('nav-menus-opened-once', false) < 2) {
|
78 |
+
EcwidPlatform::set('nav-menus-opened-once', EcwidPlatform::get('nav-menus-opened-once') + 1);
|
79 |
+
$first_run = EcwidPlatform::get('nav-menus-opened-once') <= 2;
|
80 |
+
}
|
81 |
+
|
82 |
+
wp_enqueue_script('ecwid-admin-menu-js', ECWID_PLUGIN_URL . 'js/nav-menu.js', array(), get_option('ecwid_plugin_version'));
|
83 |
+
wp_localize_script('ecwid-admin-menu-js', 'ecwid_params', array(
|
84 |
+
'store_page' => __('Store Page', 'ecwid-shopping-cart'),
|
85 |
+
'reset_cats_cache' => __('Refresh categories list', 'ecwid-shopping-cart'),
|
86 |
+
'cache_updated' => __('Done', 'ecwid-shopping-cart'),
|
87 |
+
'reset_cache_message' => __('The store top-level categories are automatically added to this drop-down menu', 'ecwid-shopping-cart'),
|
88 |
+
'first_run' => $first_run,
|
89 |
+
'register_link' => ecwid_get_register_link(),
|
90 |
+
'items' => $this->get_nav_menu_items()
|
91 |
+
));
|
92 |
+
}
|
93 |
+
|
94 |
+
public function process_menu_items($items)
|
95 |
+
{
|
96 |
+
if (is_admin()) {
|
97 |
+
return $items;
|
98 |
+
}
|
99 |
+
|
100 |
+
$types = $this->get_nav_menu_items();
|
101 |
+
|
102 |
+
$counter = 0;
|
103 |
+
|
104 |
+
foreach ($items as $key => $item) {
|
105 |
+
|
106 |
+
$items[$key]->menu_order += $counter;
|
107 |
+
|
108 |
+
$ecwid_menu_type = isset($types[$item->object]) ? $types[$item->object] : null;
|
109 |
+
|
110 |
+
if ($ecwid_menu_type) {
|
111 |
+
$item->url = ecwid_get_store_page_url() . '#!/~/' . $ecwid_menu_type['url'];
|
112 |
+
}
|
113 |
+
|
114 |
+
$categories = ecwid_get_categories();
|
115 |
+
if ($item->object == 'ecwid-store-with-categories' && !empty($categories)) {
|
116 |
+
foreach ($categories as $category) {
|
117 |
+
$counter ++;
|
118 |
+
$post = new stdClass;
|
119 |
+
$post->ID = 0;
|
120 |
+
$post->post_author = '';
|
121 |
+
$post->post_date = '';
|
122 |
+
$post->post_date_gmt = '';
|
123 |
+
$post->post_password = '';
|
124 |
+
$post->post_name = '';
|
125 |
+
$post->post_type = $item->post_type;
|
126 |
+
$post->post_status = 'publish';
|
127 |
+
$post->to_ping = '';
|
128 |
+
$post->pinged = '';
|
129 |
+
$post->post_parent = 0;
|
130 |
+
$post->menu_order = $item->menu_order + $counter;
|
131 |
+
$post->menu_item_parent = $item->ID;
|
132 |
+
$post->url = ecwid_get_store_page_url() . $category->link;
|
133 |
+
$post->classes = '';
|
134 |
+
$post->type = 'post';
|
135 |
+
$post->db_id = 0;
|
136 |
+
$post->title = $category->name;
|
137 |
+
$post->target = '';
|
138 |
+
$post->object = '';
|
139 |
+
$post->attr_title = '';
|
140 |
+
$post->description = '';
|
141 |
+
$post->xfn = '';
|
142 |
+
$post->object_id = 0;
|
143 |
+
array_splice($items, $key + $counter, 0, array($post));
|
144 |
+
}
|
145 |
+
$counter++;
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
return $items;
|
150 |
+
}
|
151 |
+
|
152 |
+
public function create_menu_items() {
|
153 |
+
$menu_links = $this->get_nav_menu_items();
|
154 |
+
?>
|
155 |
+
<div id="posttype-ecwid-links" class="posttypediv">
|
156 |
+
<div id="tabs-panel-ecwid-links" class="tabs-panel tabs-panel-active">
|
157 |
+
<ul id="ecwid-links-checklist" class="categorychecklist form-no-clear">
|
158 |
+
<?php
|
159 |
+
$i = -1;
|
160 |
+
foreach ($menu_links as $key => $value) {
|
161 |
+
?>
|
162 |
+
<li>
|
163 |
+
<label class="menu-item-title">
|
164 |
+
<input type="checkbox" class="menu-item-checkbox" name="menu-item[<?php echo esc_attr($i); ?>][menu-item-object-id]" value="<?php echo esc_attr($i); ?>" /> <?php echo $value['list-name']; ?>
|
165 |
+
</label>
|
166 |
+
<input type="hidden" class="menu-item-object" name="menu-item[<?php echo esc_attr($i); ?>][menu-item-object]" value="<?php echo $value['classes']; ?>" />
|
167 |
+
<input type="hidden" class="menu-item-type" name="menu-item[<?php echo esc_attr($i); ?>][menu-item-type]" value="ecwid_menu_item" />
|
168 |
+
<input type="hidden" class="menu-item-title" name="menu-item[<?php echo esc_attr($i); ?>][menu-item-title]" value="<?php echo esc_html($value['label'] ); ?>" />
|
169 |
+
<input type="hidden" class="menu-item-url" name="menu-item[<?php echo esc_attr($i); ?>][menu-item-url]" value="<?php echo esc_url(ecwid_get_store_page_url() . '#!/~/' . $value['url']); ?>" />
|
170 |
+
</li>
|
171 |
+
<?php
|
172 |
+
$i--;
|
173 |
+
}
|
174 |
+
?>
|
175 |
+
</ul>
|
176 |
+
</div>
|
177 |
+
<p class="button-controls">
|
178 |
+
<span class="list-controls">
|
179 |
+
<a href="<?php echo admin_url('nav-menus.php?page-tab=all&selectall=1#posttype-ecwid-links'); ?>" class="select-all"><?php _e('Select All'); ?></a>
|
180 |
+
</span>
|
181 |
+
<span class="add-to-menu">
|
182 |
+
<input type="submit" class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-post-type-menu-item" id="submit-posttype-ecwid-links">
|
183 |
+
<span class="spinner"></span>
|
184 |
+
</span>
|
185 |
+
</p>
|
186 |
+
</div>
|
187 |
+
<?php
|
188 |
+
|
189 |
+
}
|
190 |
+
|
191 |
+
protected function get_nav_menu_items() {
|
192 |
+
if ($this->item_types != null) {
|
193 |
+
return $this->item_types;
|
194 |
+
}
|
195 |
+
|
196 |
+
$this->item_types = array(
|
197 |
+
'ecwid-cart' => array(
|
198 |
+
'list-name' => __('Cart', 'ecwid-shopping-cart'),
|
199 |
+
'classes' => 'ecwid-cart',
|
200 |
+
'url' => 'cart',
|
201 |
+
'label' => __('Shopping Cart', 'ecwid-shopping-cart'),
|
202 |
+
'km' => 'cart'
|
203 |
+
),
|
204 |
+
'ecwid-product-search' => array(
|
205 |
+
'list-name' => __('Product Search', 'ecwid-shopping-cart'),
|
206 |
+
'classes' => 'ecwid-product-search',
|
207 |
+
'url' => 'search',
|
208 |
+
'label' => __('Product Search', 'ecwid-shopping-cart'),
|
209 |
+
'km' => 'search'
|
210 |
+
),
|
211 |
+
'ecwid-my-account' => array(
|
212 |
+
'list-name' => __('My Account', 'ecwid-shopping-cart'),
|
213 |
+
'classes' => 'ecwid-my-account',
|
214 |
+
'url' => 'accountSettings',
|
215 |
+
'label' => __('My Account', 'ecwid-shopping-cart'),
|
216 |
+
'km' => 'account'
|
217 |
+
),
|
218 |
+
'ecwid-store' => array(
|
219 |
+
'list-name' => __('Store', 'ecwid-shopping-cart'),
|
220 |
+
'classes' => 'ecwid-store',
|
221 |
+
'url' => '',
|
222 |
+
'label' => __('Store', 'ecwid-shopping-cart'),
|
223 |
+
'km' => 'store'
|
224 |
+
),
|
225 |
+
'ecwid-store-with-categories' => array(
|
226 |
+
'list-name' => __('Store with Categories Menu', 'ecwid-shopping-cart'),
|
227 |
+
'classes' => 'ecwid-store-with-categories',
|
228 |
+
'url' => '',
|
229 |
+
'label' => __('Store', 'ecwid-shopping-cart'),
|
230 |
+
'km' => 'store-with-categories'
|
231 |
+
)
|
232 |
+
);
|
233 |
+
|
234 |
+
return $this->item_types;
|
235 |
+
}
|
236 |
+
}
|
237 |
+
$ecwid_menus = new Ecwid_Nav_Menus();
|
includes/faq_entries.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$faqs = array(
|
4 |
+
array(
|
5 |
+
'title' => __( 'How secure is this plugin? Is my store PCI DSS compliant?', 'ecwid-shopping-cart' ),
|
6 |
+
'body' => __(
|
7 |
+
'Ecwid is PCI DSS Level 1 certified, which is the gold standard for e-commerce solutions worldwide. This means you won’t have any banking compliance issues when selling online with Ecwid. <a target="_blank" href="https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#secureplugin">More details.</a>' , 'ecwid-shopping-cart'
|
8 |
+
),
|
9 |
+
'priority' => 'newbie_with_woo'
|
10 |
+
),
|
11 |
+
array(
|
12 |
+
'title' => __( 'How can I manage my store from a mobile device?', 'ecwid-shopping-cart' ),
|
13 |
+
'body' => __(
|
14 |
+
'Ecwid provides free mobile applications for iOS and Android to manage your store and sell on the go. Scan products, track inventory, manage sales and accept payments using your mobile device as a POS station. <a target="_blank" href="https://www.ecwid.com/ecwid-mobile">More details.'
|
15 |
+
, 'ecwid-shopping-cart'
|
16 |
+
),
|
17 |
+
'priority' => 'newbie_with_woo'
|
18 |
+
),
|
19 |
+
array(
|
20 |
+
'title' => __( 'How to set up a storefront on Facebook with Ecwid?', 'ecwid-shopping-cart' ),
|
21 |
+
'body' => __(
|
22 |
+
'You can add your online store to your Facebook business page. No addons needed. Ecwid will automatically synchronize products, customers, orders and inventory between your WordPress and Facebook storefronts. <a href="https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#How%20to%20add%20my%20store%20to%20Facebook">More details.</a>'
|
23 |
+
, 'ecwid-shopping-cart'
|
24 |
+
),
|
25 |
+
'priority' => 'newbie_with_woo'
|
26 |
+
),
|
27 |
+
array(
|
28 |
+
'title' => __( 'How can I add a cart widget to my site sidebar?', 'ecwid-shopping-cart' ),
|
29 |
+
'body' => sprintf(
|
30 |
+
__(
|
31 |
+
'You can add product search box, cart widget and more on the <a href="%s">"Appearance / Widgets page"</a> here in your site admin. <a target="_blank" href="https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#Sidebar%%20widgets">More details.</a>'
|
32 |
+
, 'ecwid-shopping-cart'
|
33 |
+
),
|
34 |
+
admin_url("widgets.php?from-ecwid=true")
|
35 |
+
)
|
36 |
+
),
|
37 |
+
array(
|
38 |
+
'title' => __( 'How much does Ecwid cost?', 'ecwid-shopping-cart' ),
|
39 |
+
'body' => __(
|
40 |
+
'Our 4 account types vary by number of products, types of functionality, and level of support. For more information, check out our <a target="_blank" href="https://www.ecwid.com/pricing">pricing page.</a>
|
41 |
+
<br />Free - Up to 10 products
|
42 |
+
<br />Venture - $15/month
|
43 |
+
<br />Business - $35/month
|
44 |
+
<br />Unlimited - $99/month
|
45 |
+
Pro Tip: You can also save money by enrolling in our annual plans.'
|
46 |
+
, 'ecwid-shopping-cart'
|
47 |
+
)
|
48 |
+
),
|
49 |
+
array(
|
50 |
+
'title' => __( 'How do I add store categories to the site menu.', 'ecwid-shopping-cart' ),
|
51 |
+
'body' => __(
|
52 |
+
'You can add the store categories menu to your site menu to help your customers easily navigate your site. Just open "Appearance > Menus" in your WordPress control panel and add the "Store with Categories Menu" item to your site menu. A drop-down menu containing your store categories will automatically appear on your site.'
|
53 |
+
, 'ecwid-shopping-cart'
|
54 |
+
)
|
55 |
+
),
|
56 |
+
array(
|
57 |
+
'title' => __( 'How do I put my products in the sitemap?', 'ecwid-shopping-cart' ),
|
58 |
+
'body' => __(
|
59 |
+
'To create sitemap for your Wordpress site we suggest using <a target="_blank" href="https://wordpress.org/plugins/google-sitemap-generator/">Google XML Sitemaps</a> or <a target="_blank" href="https://wordpress.org/plugins/wordpress-seo/">Yoast Wordpress SEO</a>. plugins. These plugins are fully compatible with Ecwid and allow to generate a sitemap that will contain links to categories and product pages, so the store pages will get indexed faster. Please note that this option is available to <a href="https://www.ecwid.com/pricing">paid Ecwid users</a>.' , 'ecwid-shopping-cart'
|
60 |
+
)
|
61 |
+
),
|
62 |
+
array(
|
63 |
+
'title' => __( 'How to add a single product with the add to bag button to the site pages?', 'ecwid-shopping-cart' ),
|
64 |
+
'body' => __(
|
65 |
+
'To feature a single product on a separate page or blog post of your site, use <b>[ecwid_product]</b> shortcode. <a target="_blank" href="https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#Howtoembedasingleproductonapageorpostofmysite">How to use it.</a>'
|
66 |
+
, 'ecwid-shopping-cart'
|
67 |
+
)
|
68 |
+
),
|
69 |
+
array(
|
70 |
+
'title' => __( 'Is it possible to display my store on the site home page?', 'ecwid-shopping-cart' ),
|
71 |
+
'body' => __(
|
72 |
+
'You can display your store on the site main page. Adjust the "Reading" settings of your site as described in our <a href="https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#displaystoreonhomepage">Help Center.</a>'
|
73 |
+
, 'ecwid-shopping-cart'
|
74 |
+
)
|
75 |
+
)
|
76 |
+
);
|
includes/themes.php
CHANGED
@@ -4,6 +4,8 @@ define( 'ECWID_THEMES_DIR', ECWID_PLUGIN_DIR . 'includes/themes' );
|
|
4 |
|
5 |
add_action('after_switch_theme', 'ecwid_after_switch_theme');
|
6 |
|
|
|
|
|
7 |
|
8 |
function ecwid_get_theme_name()
|
9 |
{
|
@@ -35,25 +37,32 @@ function ecwid_get_theme_identification()
|
|
35 |
|
36 |
function ecwid_apply_theme($theme_name = null)
|
37 |
{
|
38 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
'bretheon',
|
40 |
'responsive',
|
41 |
-
'twentyfourteen',
|
42 |
-
'pagelines',
|
43 |
'envision',
|
44 |
'twentyfifteen',
|
45 |
-
'customizr',
|
46 |
-
'evolve',
|
47 |
-
'twentytwelve',
|
48 |
'genesis',
|
49 |
'twentysixteen',
|
50 |
-
'mantra',
|
51 |
-
'attitude',
|
52 |
-
'responsiveboat',
|
53 |
'central',
|
54 |
-
'edin',
|
55 |
-
'accesspress-mag'
|
56 |
);
|
|
|
57 |
|
58 |
|
59 |
if (empty($theme_name)) {
|
@@ -66,26 +75,18 @@ function ecwid_apply_theme($theme_name = null)
|
|
66 |
$theme_name = 'responsiveboat';
|
67 |
}
|
68 |
|
69 |
-
if (in_array($theme_name, $
|
70 |
-
|
71 |
$theme_file = ECWID_THEMES_DIR . '/class-ecwid-theme-' . $theme_name . '.php';
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
if (
|
77 |
-
|
78 |
}
|
79 |
}
|
80 |
|
81 |
function ecwid_after_switch_theme()
|
82 |
{
|
83 |
ecwid_apply_theme();
|
84 |
-
|
85 |
-
global $ecwid_current_theme;
|
86 |
-
|
87 |
-
update_option(
|
88 |
-
'ecwid_advanced_theme_layout',
|
89 |
-
isset($ecwid_current_theme) && $ecwid_current_theme->has_advanced_layout ? 'Y' : 'N'
|
90 |
-
);
|
91 |
}
|
4 |
|
5 |
add_action('after_switch_theme', 'ecwid_after_switch_theme');
|
6 |
|
7 |
+
require ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
8 |
+
|
9 |
|
10 |
function ecwid_get_theme_name()
|
11 |
{
|
37 |
|
38 |
function ecwid_apply_theme($theme_name = null)
|
39 |
{
|
40 |
+
$generic_themes = array(
|
41 |
+
'pixova-lite' => array( 'js', 'scroll' ),
|
42 |
+
'accesspress-mag' => array( 'css' ),
|
43 |
+
'attitude' => array( 'css-no-parent' ),
|
44 |
+
'customizr' => array( 'js', 'css' ),
|
45 |
+
'edin' => array( 'js' ),
|
46 |
+
'evolve' => array( 'css-no-parent' ),
|
47 |
+
'mantra' => array( 'css-no-parent' ),
|
48 |
+
'pagelines' => array( 'js', 'scroll' ),
|
49 |
+
'responsiveboat' => array( 'css' ),
|
50 |
+
'twentyfourteen' => array( 'css', 'scroll' ),
|
51 |
+
'twentytwelve' => array( 'js', 'scroll' ),
|
52 |
+
'sliding-door' => array( 'css-no-parent' )
|
53 |
+
);
|
54 |
+
$generic_themes = apply_filters('ecwid_generic_themes', $generic_themes);
|
55 |
+
|
56 |
+
$custom_themes = array(
|
57 |
'bretheon',
|
58 |
'responsive',
|
|
|
|
|
59 |
'envision',
|
60 |
'twentyfifteen',
|
|
|
|
|
|
|
61 |
'genesis',
|
62 |
'twentysixteen',
|
|
|
|
|
|
|
63 |
'central',
|
|
|
|
|
64 |
);
|
65 |
+
$custom_themes = apply_filters( 'ecwid_custom_themes', $custom_themes );
|
66 |
|
67 |
|
68 |
if (empty($theme_name)) {
|
75 |
$theme_name = 'responsiveboat';
|
76 |
}
|
77 |
|
78 |
+
if ( in_array($theme_name, $custom_themes) ) {
|
|
|
79 |
$theme_file = ECWID_THEMES_DIR . '/class-ecwid-theme-' . $theme_name . '.php';
|
80 |
+
$theme_file = apply_filters( 'ecwid_get_theme_file', $theme_file );
|
81 |
+
if ( !empty( $theme_file ) && is_file( $theme_file ) && is_readable( $theme_file ) ) {
|
82 |
+
require_once( $theme_file );
|
83 |
+
}
|
84 |
+
} else if ( array_key_exists( $theme_name, $generic_themes ) ) {
|
85 |
+
Ecwid_Theme_Base::create( $theme_name, $generic_themes[$theme_name] );
|
86 |
}
|
87 |
}
|
88 |
|
89 |
function ecwid_after_switch_theme()
|
90 |
{
|
91 |
ecwid_apply_theme();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
includes/themes/class-ecwid-theme-accesspress-mag.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_AccessPressMag extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'AccessPress Mag';
|
8 |
-
|
9 |
-
public function __construct()
|
10 |
-
{
|
11 |
-
parent::__construct();
|
12 |
-
|
13 |
-
wp_enqueue_style( 'ecwid-theme-fixes' , ECWID_PLUGIN_URL . 'css/themes/accesspress-mag.css' , array('accesspress-mag-style'), get_option('ecwid_plugin_version'), 'all' );
|
14 |
-
}
|
15 |
-
}
|
16 |
-
|
17 |
-
$ecwid_current_theme = new Ecwid_Theme_AccessPressMag();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-attitude.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_Attitude extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Attitude';
|
8 |
-
|
9 |
-
public function __construct()
|
10 |
-
{
|
11 |
-
parent::__construct();
|
12 |
-
|
13 |
-
wp_enqueue_style( 'ecwid-theme-fixes' , ECWID_PLUGIN_URL . 'css/themes/attitude.css', array(), get_option('ecwid_plugin_version'), 'all' );
|
14 |
-
}
|
15 |
-
}
|
16 |
-
|
17 |
-
$ecwid_current_theme = new Ecwid_Theme_Attitude();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-base.php
CHANGED
@@ -6,20 +6,76 @@ class Ecwid_Theme_Base {
|
|
6 |
|
7 |
protected $adjust_pb_scroll = false;
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
public function __construct()
|
10 |
{
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
-
protected function
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
6 |
|
7 |
protected $adjust_pb_scroll = false;
|
8 |
|
9 |
+
protected $name;
|
10 |
+
|
11 |
+
protected $has_js = false;
|
12 |
+
protected $has_css = false;
|
13 |
+
protected $css_parent = false;
|
14 |
+
|
15 |
public function __construct()
|
16 |
{
|
17 |
+
}
|
18 |
+
|
19 |
+
public static function create($name, $props) {
|
20 |
+
|
21 |
+
$theme = new Ecwid_Theme_Base();
|
22 |
+
$theme->name = $name;
|
23 |
+
|
24 |
+
if (is_admin()) return;
|
25 |
+
|
26 |
+
if ( in_array( 'scroll', $props ) ) {
|
27 |
+
$theme->create_scroller();
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( in_array( 'js', $props ) ) {
|
31 |
+
$theme->add_js();
|
32 |
}
|
33 |
+
|
34 |
+
if ( in_array( 'css', $props ) ) {
|
35 |
+
$theme->add_css();
|
36 |
+
}
|
37 |
+
|
38 |
+
if ( in_array( 'css-no-parent', $props ) ) {
|
39 |
+
$theme->add_css( '' );
|
40 |
+
}
|
41 |
+
|
42 |
+
return $theme;
|
43 |
}
|
44 |
|
45 |
+
protected function add_js() {
|
46 |
+
wp_enqueue_script(
|
47 |
+
'ecwid-theme-js',
|
48 |
+
ECWID_PLUGIN_URL . 'js/themes/' . $this->name . '.js',
|
49 |
+
array( 'jquery' ),
|
50 |
+
get_option('ecwid_plugin_version')
|
51 |
+
);
|
52 |
}
|
53 |
+
|
54 |
+
protected function create_scroller() {
|
55 |
+
wp_enqueue_script(
|
56 |
+
'ecwid-scroller',
|
57 |
+
ECWID_PLUGIN_URL . 'js/create_scroller.js' ,
|
58 |
+
array( 'jquery' ),
|
59 |
+
get_option('ecwid_plugin_version')
|
60 |
+
);
|
61 |
+
}
|
62 |
+
|
63 |
+
protected function add_css( $parent = null ) {
|
64 |
+
|
65 |
+
if (is_null($parent)) {
|
66 |
+
$parent = array( $this->name . '-style' );
|
67 |
+
} else if (empty($parent)) {
|
68 |
+
$parent = array();
|
69 |
+
} else {
|
70 |
+
$parent = array( $parent );
|
71 |
+
}
|
72 |
+
|
73 |
+
wp_enqueue_style(
|
74 |
+
'ecwid-theme-css',
|
75 |
+
ECWID_PLUGIN_URL . 'css/themes/' . $this->name . '.css',
|
76 |
+
$parent,
|
77 |
+
get_option('ecwid_plugin_version')
|
78 |
+
);
|
79 |
+
}
|
80 |
+
|
81 |
}
|
includes/themes/class-ecwid-theme-customizr.php
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_Customizr extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Customizr';
|
8 |
-
|
9 |
-
protected $adjust_pb_scroll = true;
|
10 |
-
|
11 |
-
public function __construct()
|
12 |
-
{
|
13 |
-
parent::__construct();
|
14 |
-
|
15 |
-
wp_enqueue_script( 'ecwid-theme-js', ECWID_PLUGIN_URL . 'js/themes/customizr.js', array( 'jquery' ), get_option('ecwid_plugin_version'), true );
|
16 |
-
wp_enqueue_style( 'ecwid-theme-fixes' , ECWID_PLUGIN_URL . 'css/themes/customizr.css', array(), get_option('ecwid_plugin_version'), 'all' );
|
17 |
-
}
|
18 |
-
}
|
19 |
-
|
20 |
-
$ecwid_current_theme = new Ecwid_Theme_Customizr();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-edin.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_Edin extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Edin';
|
8 |
-
|
9 |
-
public function __construct()
|
10 |
-
{
|
11 |
-
parent::__construct();
|
12 |
-
|
13 |
-
if (ecwid_page_has_productbrowser()) {
|
14 |
-
wp_enqueue_script( 'ecwid-theme', ECWID_PLUGIN_URL . 'js/themes/edin.js', array( 'jquery' ), get_option('ecwid_plugin_version') );
|
15 |
-
}
|
16 |
-
}
|
17 |
-
}
|
18 |
-
|
19 |
-
$ecwid_current_theme = new Ecwid_Theme_Edin();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-evolve.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_Evolve extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Evolve';
|
8 |
-
|
9 |
-
public function __construct()
|
10 |
-
{
|
11 |
-
parent::__construct();
|
12 |
-
|
13 |
-
wp_enqueue_style( 'ecwid-theme-fixes' , ECWID_PLUGIN_URL . 'css/themes/evolve.css', array(), get_option('ecwid_plugin_version'), 'all' );
|
14 |
-
}
|
15 |
-
}
|
16 |
-
|
17 |
-
$ecwid_current_theme = new Ecwid_Theme_Evolve();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-mantra.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_Mantra extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Mantra';
|
8 |
-
|
9 |
-
public function __construct()
|
10 |
-
{
|
11 |
-
parent::__construct();
|
12 |
-
|
13 |
-
wp_enqueue_style( 'ecwid-theme-fixes' , ECWID_PLUGIN_URL . 'css/themes/mantra.css', array(), get_option('ecwid_plugin_version'), 'all' );
|
14 |
-
}
|
15 |
-
}
|
16 |
-
|
17 |
-
$ecwid_current_theme = new Ecwid_Theme_Mantra();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-pagelines.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_Pagelines extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Pagelines';
|
8 |
-
|
9 |
-
protected $adjust_pb_scroll = true;
|
10 |
-
|
11 |
-
public function __construct()
|
12 |
-
{
|
13 |
-
parent::__construct();
|
14 |
-
|
15 |
-
wp_enqueue_script( 'ecwid-theme-js', ECWID_PLUGIN_URL . 'js/themes/pagelines.js', array( 'jquery' ), get_option('ecwid_plugin_version'), true );
|
16 |
-
}
|
17 |
-
}
|
18 |
-
|
19 |
-
$ecwid_current_theme = new Ecwid_Theme_Pagelines();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-responsiveboat.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_ResonsiveBoat extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'ResponsiveBoat';
|
8 |
-
|
9 |
-
public function __construct()
|
10 |
-
{
|
11 |
-
parent::__construct();
|
12 |
-
|
13 |
-
wp_enqueue_style( 'ecwid-theme-fixes' , ECWID_PLUGIN_URL . 'css/themes/responsiveboat.css', array(), get_option('ecwid_plugin_version'), 'all' );
|
14 |
-
}
|
15 |
-
}
|
16 |
-
|
17 |
-
$ecwid_current_theme = new Ecwid_Theme_ResonsiveBoat();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-twentyfourteen.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_2014 extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Twenty Fourteen';
|
8 |
-
|
9 |
-
protected $adjust_pb_scroll = true;
|
10 |
-
|
11 |
-
public function __construct()
|
12 |
-
{
|
13 |
-
parent::__construct();
|
14 |
-
|
15 |
-
if (ecwid_page_has_productbrowser()) {
|
16 |
-
wp_enqueue_style( 'ecwid-theme', ECWID_PLUGIN_URL . 'css/themes/2014.css', array('twentyfourteen-style'), get_option('ecwid_plugin_version') );
|
17 |
-
}
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
$ecwid_current_theme = new Ecwid_Theme_2014();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/themes/class-ecwid-theme-twentytwelve.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once ECWID_THEMES_DIR . '/class-ecwid-theme-base.php';
|
4 |
-
|
5 |
-
class Ecwid_Theme_2012 extends Ecwid_Theme_Base
|
6 |
-
{
|
7 |
-
protected $name = 'Twenty Twelve';
|
8 |
-
|
9 |
-
protected $adjust_pb_scroll = true;
|
10 |
-
|
11 |
-
public function __construct()
|
12 |
-
{
|
13 |
-
parent::__construct();
|
14 |
-
|
15 |
-
if (ecwid_page_has_productbrowser()) {
|
16 |
-
wp_enqueue_script( 'ecwid-theme', ECWID_PLUGIN_URL . 'js/themes/2012.js', array( 'jquery' ), get_option('ecwid_plugin_version'), true );
|
17 |
-
}
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
$ecwid_current_theme = new Ecwid_Theme_2012();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/create_scroller.js
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
jQuery(document).ready(function() {
|
2 |
if (jQuery('#ecwid_product_browser_scroller').length == 0) {
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
});
|
1 |
jQuery(document).ready(function() {
|
2 |
if (jQuery('#ecwid_product_browser_scroller').length == 0) {
|
3 |
+
|
4 |
+
var parent = jQuery('div[id^="ecwid-store-"]');
|
5 |
+
|
6 |
+
if (jQuery('.ecwid-shopping-cart-categories').length == 1) {
|
7 |
+
parent = jQuery('.ecwid-shopping-cart-categories');
|
8 |
+
}
|
9 |
+
|
10 |
+
parent.before('<div id="ecwid_product_browser_scroller" class="ecwid-scroller-adjustment"></div>');
|
11 |
}
|
12 |
});
|
js/frontend.js
CHANGED
@@ -1,18 +1,3 @@
|
|
1 |
jQuery(document).ready(function() {
|
2 |
-
|
3 |
-
if (typeof window.Ecwid != 'undefined') {
|
4 |
-
Ecwid.OnPageLoaded.add(function() {
|
5 |
-
jQuery.get(ecwid_ajax_object.ajax_url,
|
6 |
-
{'action': 'ecwid_ajax_seo_title', '_escaped_fragment_': window.location.hash, title_template: ecwid_ajax_object.title_template},
|
7 |
-
function(new_title) {
|
8 |
-
if (new_title == ecwid_ajax_object.title_template.replace('ECWID_SEO_TITLE', '')) {
|
9 |
-
new_title = ecwid_ajax_object.original_title;
|
10 |
-
}
|
11 |
-
jQuery('title').text(new_title);
|
12 |
-
}
|
13 |
-
);
|
14 |
-
});
|
15 |
-
}
|
16 |
-
|
17 |
-
jQuery('.ecwid-store-with-categories a').click(function() {jQuery(':focus').blur()});
|
18 |
})
|
1 |
jQuery(document).ready(function() {
|
2 |
+
jQuery('.ecwid-store-with-categories a').click(function() {jQuery(':focus').blur()});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
})
|
js/nav-menu-frontend.js
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function() {
|
2 |
+
|
3 |
+
refreshEcwidMenuItemsSelection();
|
4 |
+
|
5 |
+
|
6 |
+
Ecwid.OnPageLoaded.add(function(page) {
|
7 |
+
if (page.type == 'CART') {
|
8 |
+
window.ecwidCurrentMenuPage = 'cart';
|
9 |
+
} else if (page.type == 'ACCOUNT_SETTINGS' || page.type == 'ORDERS' || page.type == 'ADDRESS_BOOK') {
|
10 |
+
window.ecwidCurrentMenuPage = 'my-account';
|
11 |
+
} else if (page.type == 'SEARCH') {
|
12 |
+
window.ecwidCurrentMenuPage = 'product-search';
|
13 |
+
} else {
|
14 |
+
window.ecwidCurrentMenuPage = 'store';
|
15 |
+
}
|
16 |
+
});
|
17 |
+
|
18 |
+
Ecwid.OnPageLoaded.add(refreshEcwidMenuItemsSelection);
|
19 |
+
|
20 |
+
function refreshEcwidMenuItemsSelection() {
|
21 |
+
$allMenus = jQuery('ul').has('li.menu-item');
|
22 |
+
$allMenus.each(function (idx, el) {
|
23 |
+
var current = findCurrentEcwidMenuItem(el);
|
24 |
+
if (current) {
|
25 |
+
highlightCurrentMenuItem(el, current);
|
26 |
+
}
|
27 |
+
});
|
28 |
+
}
|
29 |
+
|
30 |
+
function highlightCurrentMenuItem(menu, item) {
|
31 |
+
jQuery('.current_page_item', menu).removeClass('current_page_item');
|
32 |
+
jQuery('.current-menu-item', menu).removeClass('current-menu-item');
|
33 |
+
|
34 |
+
item.addClass('current-menu-item current_page_item');
|
35 |
+
}
|
36 |
+
|
37 |
+
function findCurrentEcwidMenuItem(menuElement) {
|
38 |
+
var specificMenuItem = findSpecificMenuItem(menuElement);
|
39 |
+
if (specificMenuItem) {
|
40 |
+
return specificMenuItem;
|
41 |
+
}
|
42 |
+
|
43 |
+
var storeMenuItem = findStoreMenuItem(menuElement);
|
44 |
+
if (storeMenuItem) {
|
45 |
+
return storeMenuItem;
|
46 |
+
}
|
47 |
+
|
48 |
+
return null;
|
49 |
+
}
|
50 |
+
|
51 |
+
function findSpecificMenuItem(menuElement) {
|
52 |
+
var currentPage = getCurrentEcwidPage();
|
53 |
+
var currentMenuItem = null;
|
54 |
+
|
55 |
+
if (['my-account', 'product-search', 'cart'].indexOf(currentPage) != -1) {
|
56 |
+
currentMenuItem = jQuery('>li.menu-item-object-' + ecwid_menu_data.items['ecwid-' + currentPage]['classes'], menuElement);
|
57 |
+
if (currentMenuItem.length > 0) {
|
58 |
+
return currentMenuItem;
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
return null;
|
63 |
+
}
|
64 |
+
|
65 |
+
function findStoreMenuItem(menuElement) {
|
66 |
+
var currentMenuItem = null;
|
67 |
+
|
68 |
+
var storeItems = ['ecwid-store', 'ecwid-store-with-categories'];
|
69 |
+
for (var i = 0; i < storeItems.length; i++) {
|
70 |
+
currentMenuItem = jQuery('>li.menu-item-object-' + ecwid_menu_data.items[storeItems[i]]['classes'], menuElement);
|
71 |
+
if (currentMenuItem.length > 0) {
|
72 |
+
return currentMenuItem;
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
return null;
|
77 |
+
}
|
78 |
+
|
79 |
+
function getCurrentEcwidPage() {
|
80 |
+
if (!window.ecwidCurrentMenuPage) {
|
81 |
+
window.ecwidCurrentMenuPage = 'store';
|
82 |
+
}
|
83 |
+
|
84 |
+
return window.ecwidCurrentMenuPage;
|
85 |
+
}
|
86 |
+
})
|
js/nav-menu.js
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
jQuery(document).ready(function() {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
'ecwid-store-with-categories': 'storeWithCategories'
|
8 |
-
};
|
9 |
|
10 |
if (ecwid_params.first_run && jQuery('#ecwid_nav_links-hide:checked').length == 0) {
|
11 |
jQuery('#ecwid_nav_links-hide').click();
|
@@ -71,10 +69,9 @@ jQuery(document).ready(function() {
|
|
71 |
|
72 |
findEcwidLink = function(element) {
|
73 |
|
74 |
-
var
|
75 |
-
|
76 |
-
|
77 |
-
return classes[i];
|
78 |
}
|
79 |
}
|
80 |
|
1 |
jQuery(document).ready(function() {
|
2 |
+
|
3 |
+
var ecwidClasses = {};
|
4 |
+
for (var i in ecwid_params.items) {
|
5 |
+
ecwidClasses[i] = ecwid_params.items[i].km;
|
6 |
+
}
|
|
|
|
|
7 |
|
8 |
if (ecwid_params.first_run && jQuery('#ecwid_nav_links-hide:checked').length == 0) {
|
9 |
jQuery('#ecwid_nav_links-hide').click();
|
69 |
|
70 |
findEcwidLink = function(element) {
|
71 |
|
72 |
+
for (var i in ecwidClasses) {
|
73 |
+
if (jQuery(element).hasClass('menu-item-' + i)) {
|
74 |
+
return i;
|
|
|
75 |
}
|
76 |
}
|
77 |
|
js/themes/2012.js
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
Ecwid.OnPageLoaded.add(function() {
|
2 |
-
document.activeElement.blur();
|
3 |
-
jQuery('.nav-menu,.nav-menu *.focus').removeClass('focus');
|
4 |
-
});
|
|
|
|
|
|
|
|
js/themes/pixova-lite.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function() {
|
2 |
+
var fixedNav = jQuery('#header-wrap');
|
3 |
+
if (fixedNav.css('position') == 'fixed') {
|
4 |
+
jQuery('#ecwid_product_browser_scroller').css({
|
5 |
+
'position': 'relative',
|
6 |
+
'top': -fixedNav.height() - jQuery('.ecwid-shopping-cart-categories').height()
|
7 |
+
});
|
8 |
+
}
|
9 |
+
});
|
js/themes/twentytwelve.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function() {
|
2 |
+
Ecwid.OnPageLoaded.add(function() {
|
3 |
+
document.activeElement.blur();
|
4 |
+
jQuery('.nav-menu,.nav-menu *.focus').removeClass('focus');
|
5 |
+
});
|
6 |
+
}
|
7 |
+
);
|
languages/ecwid-shopping-cart-ru_RU.mo
CHANGED
Binary file
|
languages/ecwid-shopping-cart-ru_RU.po
CHANGED
@@ -575,4 +575,7 @@ msgid "Enable the new search widget"
|
|
575 |
msgstr "Включить новый виджет поиска"
|
576 |
|
577 |
msgid "The new search widget better adapts to your site and looks nicer. You can add the search bar to your site either in the <a %s>store page editor</a> or in the Appearance -> Widgets section."
|
578 |
-
msgstr "Новый виджет поиска лучше адаптируется к сайту и лучше выглядит. Добавить виджет поиска по товарам на сайт можно <a %s>в настройках страницы магазина</a> или в настройках внешнего вида сайта (меню <a %s>Виджеты</a>)."
|
|
|
|
|
|
575 |
msgstr "Включить новый виджет поиска"
|
576 |
|
577 |
msgid "The new search widget better adapts to your site and looks nicer. You can add the search bar to your site either in the <a %s>store page editor</a> or in the Appearance -> Widgets section."
|
578 |
+
msgstr "Новый виджет поиска лучше адаптируется к сайту и лучше выглядит. Добавить виджет поиска по товарам на сайт можно <a %s>в настройках страницы магазина</a> или в настройках внешнего вида сайта (меню <a %s>Виджеты</a>)."
|
579 |
+
|
580 |
+
msgid "Help"
|
581 |
+
msgstr "Помощь"
|
lib/ecwid_api_v3.php
CHANGED
@@ -186,6 +186,8 @@ class Ecwid_Api_V3
|
|
186 |
$store_url = ecwid_get_store_page_url();
|
187 |
$site_name = get_bloginfo('name');
|
188 |
$site_email = get_option('admin_email');
|
|
|
|
|
189 |
$params = array(
|
190 |
'merchant' => array(
|
191 |
'email' => $admin_email,
|
@@ -211,6 +213,8 @@ class Ecwid_Api_V3
|
|
211 |
'mailNotifications' => array(
|
212 |
'adminNotificationEmails' => array($site_email),
|
213 |
'customerNotificationFromEmail' => $site_email
|
|
|
|
|
214 |
)
|
215 |
),
|
216 |
);
|
186 |
$store_url = ecwid_get_store_page_url();
|
187 |
$site_name = get_bloginfo('name');
|
188 |
$site_email = get_option('admin_email');
|
189 |
+
$timezone = get_option('timezone_string', 'UTC+0');
|
190 |
+
|
191 |
$params = array(
|
192 |
'merchant' => array(
|
193 |
'email' => $admin_email,
|
213 |
'mailNotifications' => array(
|
214 |
'adminNotificationEmails' => array($site_email),
|
215 |
'customerNotificationFromEmail' => $site_email
|
216 |
+
), 'formatsAndUnits' => array(
|
217 |
+
'timezone' => $timezone
|
218 |
)
|
219 |
),
|
220 |
);
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: ecwid
|
|
3 |
Tags: ecwid, shopping cart, ecommerce, paypal, e-commerce, online store, store, shop, cart, digital goods, downloadable products, product catalog, facebook
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.5
|
6 |
-
Stable tag: 4.2
|
7 |
|
8 |
Powerful, easy to use shopping cart. Bank level PCI DSS Level 1 security. Sell on the go iPhone & Android app. Superb support. Free plan available.
|
9 |
|
@@ -104,6 +104,12 @@ http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
|
|
104 |
* [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
|
105 |
|
106 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
= 4.2 =
|
108 |
- **New Search Widget.** We released a new search widget that’s vastly improved over the previous one. You can enable it on the "Ecwid -> Advanced" settings page in you Wordpress backend. The new search widget is fully adaptive, automatically fits in its parent section, and looks great with any site’s theme. It also fits your sidebar even if it's very narrow, so feel free to add product search to your site sidebar in the "Appearance -> Widgets" section of your site admin.
|
109 |
- **Fixed a bug in the categories menu on mobile devices.** You might notice that the product categories menu disappeared on your site when it's opened on a mobile device with narrow screen. It's now fixed – the categories menu looks great on any screen size.
|
3 |
Tags: ecwid, shopping cart, ecommerce, paypal, e-commerce, online store, store, shop, cart, digital goods, downloadable products, product catalog, facebook
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.5
|
6 |
+
Stable tag: 4.2.1
|
7 |
|
8 |
Powerful, easy to use shopping cart. Bank level PCI DSS Level 1 security. Sell on the go iPhone & Android app. Superb support. Free plan available.
|
9 |
|
104 |
* [Ecwid site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
|
105 |
|
106 |
== Changelog ==
|
107 |
+
= 4.2.1 =
|
108 |
+
- **New Help page in the plugin settings.** We have a lot helpful articles and ecommerce tips in the Ecwid Help center at help.ecwid.com. In this update, we made it closer to you – the Help page with FAQ and a simple search field is now available right in the plugin settings. Have a question about your online store? Refer to the new Ecwid->Help page in your Wordpress admin backend.
|
109 |
+
- **Better compatibility with Accesspress Store and Sliding Door themes.** We adjusted Ecwid storefront look a bit to better match these Wordpress themes layout and fonts.
|
110 |
+
- **Fixed a bug in the product page titles.** You might notice that the product page titles repeated the product name twice. We fixed it.
|
111 |
+
|
112 |
+
|
113 |
= 4.2 =
|
114 |
- **New Search Widget.** We released a new search widget that’s vastly improved over the previous one. You can enable it on the "Ecwid -> Advanced" settings page in you Wordpress backend. The new search widget is fully adaptive, automatically fits in its parent section, and looks great with any site’s theme. It also fits your sidebar even if it's very narrow, so feel free to add product search to your site sidebar in the "Appearance -> Widgets" section of your site admin.
|
115 |
- **Fixed a bug in the categories menu on mobile devices.** You might notice that the product categories menu disappeared on your site when it's opened on a mobile device with narrow screen. It's now fixed – the categories menu looks great on any screen size.
|
templates/help.php
ADDED
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type='text/javascript'>//<![CDATA[
|
2 |
+
jQuery(document).ready(function() {
|
3 |
+
document.body.className += ' ecwid-no-padding';
|
4 |
+
})
|
5 |
+
//]]>
|
6 |
+
</script>
|
7 |
+
|
8 |
+
<div class="ecwid-help main-container">
|
9 |
+
|
10 |
+
<div class="block-search block-search-index">
|
11 |
+
<h2><?php _e( 'How can we help you?', 'ecwid-shopping-cart' ); ?></h2>
|
12 |
+
|
13 |
+
<div class="hds-container">
|
14 |
+
<div class="hds-wrapper">
|
15 |
+
<form class="hds-form" method="get" target="_blank" action="https://help.ecwid.com/customer/portal/articles/search" onsubmit="help-page searchquerysubmited">
|
16 |
+
<div class="input-wrapper input-prepend">
|
17 |
+
<input type="text" class="form-control q" value="" name="q" id="q" placeholder="<?php _e( 'E.g. How to set up shipping', 'ecwid-shopping-cart' ); ?> " autocomplete="off"/>
|
18 |
+
<input type='hidden' name='t' value=''/>
|
19 |
+
<span class="hds-loader"></span>
|
20 |
+
<button type="submit" class="hds-submit btn" id="hds-submit">
|
21 |
+
<span class="icon-search"></span>
|
22 |
+
<span class="btn-text"><?php _e( 'Search the Knowledge Base', 'ecwid-shopping-cart' ); ?> </span>
|
23 |
+
</button>
|
24 |
+
</div>
|
25 |
+
</form>
|
26 |
+
</div>
|
27 |
+
</div>
|
28 |
+
<ul class="shortcuts">
|
29 |
+
<li>
|
30 |
+
<a href="https://help.ecwid.com/customer/en/portal/topics/626757-ecwid-basics/articles" target="_blank" class="shortcut-item">
|
31 |
+
<span class="iconhelp-101"></span>
|
32 |
+
<span class="shortcut-item-text"><?php _e( 'Ecwid Basics', 'ecwid-shopping-cart' ); ?> </span>
|
33 |
+
</a>
|
34 |
+
</li>
|
35 |
+
<li>
|
36 |
+
<a href="https://help.ecwid.com/customer/en/portal/topics/626764-manage-your-ecwid-store/articles" target="_blank" class="shortcut-item">
|
37 |
+
<span class="iconhelp-manage"></span>
|
38 |
+
<span class="shortcut-item-text"><?php _e( 'Manage Your Ecwid Store', 'ecwid-shopping-cart' ); ?> </span>
|
39 |
+
</a>
|
40 |
+
</li>
|
41 |
+
<li>
|
42 |
+
<a href="https://help.ecwid.com/customer/en/portal/topics/618835-customize-your-store/articles" target="_blank" class="shortcut-item">
|
43 |
+
<span class="iconhelp-custom"></span>
|
44 |
+
<span class="shortcut-item-text"><?php _e( 'Customize Your Store', 'ecwid-shopping-cart' ); ?> </span>
|
45 |
+
</a>
|
46 |
+
</li>
|
47 |
+
<li>
|
48 |
+
<a href="https://help.ecwid.com/customer/en/portal/topics/626765-billing-questions/articles" target="_blank" class="shortcut-item">
|
49 |
+
<span class="iconhelp-billing"></span>
|
50 |
+
<span class="shortcut-item-text"><?php _e( 'Billing Questions', 'ecwid-shopping-cart' ); ?> </span>
|
51 |
+
</a>
|
52 |
+
</li>
|
53 |
+
<li>
|
54 |
+
<a href="https://help.ecwid.com/customer/en/portal/topics/618834-technical-reference/articles" target="_blank" class="shortcut-item">
|
55 |
+
<span class="iconhelp-api"></span>
|
56 |
+
<span class="shortcut-item-text"><?php _e( 'Technical Reference', 'ecwid-shopping-cart' ); ?> </span>
|
57 |
+
</a>
|
58 |
+
</li>
|
59 |
+
</ul>
|
60 |
+
</div>
|
61 |
+
|
62 |
+
<div class="block-faq">
|
63 |
+
<h2><?php _e( 'Frequently Asked Questions', 'ecwid-shopping-cart' ); ?> </h2>
|
64 |
+
<div class="block-faq-wrap">
|
65 |
+
<ul class="block-faq-list">
|
66 |
+
<?php foreach ($faqs as $idx => $faq): if ($idx % 2 == 0): ?>
|
67 |
+
<li class="index-article<?php if ($idx >= $col_size) echo ' index-article--hidden' ?>">
|
68 |
+
<a class="index-article-title" href="#" onclick="return false;">
|
69 |
+
<i class="icon-down"></i><?php echo $faq->title; ?>
|
70 |
+
</a>
|
71 |
+
<div class="index-article-body">
|
72 |
+
<?php echo $faq->body; ?>
|
73 |
+
</div>
|
74 |
+
</li>
|
75 |
+
|
76 |
+
<?php endif; endforeach; ?>
|
77 |
+
</ul>
|
78 |
+
|
79 |
+
<ul class="block-faq-list">
|
80 |
+
<?php foreach ($faqs as $idx => $faq): if ($idx % 2 == 1): ?>
|
81 |
+
<li class="index-article<?php if ($idx >= $col_size) echo ' index-article--hidden' ?>">
|
82 |
+
<a class="index-article-title" href="#" onclick="return false;">
|
83 |
+
<i class="icon-down"></i><?php echo $faq->title; ?>
|
84 |
+
</a>
|
85 |
+
<div class="index-article-body">
|
86 |
+
<?php echo $faq->body; ?>
|
87 |
+
</div>
|
88 |
+
</li>
|
89 |
+
<?php endif; endforeach; ?>
|
90 |
+
</ul>
|
91 |
+
|
92 |
+
</div>
|
93 |
+
|
94 |
+
<div class="block-topics-link">
|
95 |
+
|
96 |
+
<a href="https://help.ecwid.com/customer/portal/topics/686891--collection-browse-by-topic" class="horizontal-icolink">
|
97 |
+
<?php _e( 'See more', 'ecwid-shopping-cart' ); ?>
|
98 |
+
<i class="icon-arr-right"></i>
|
99 |
+
</a>
|
100 |
+
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<script>
|
104 |
+
(function() {
|
105 |
+
Element.prototype.addClass = function(c) {
|
106 |
+
var re = new RegExp("(^|\\s)" + c + "(\\s|$)", "g");
|
107 |
+
if (re.test(this.className)) {
|
108 |
+
return this;
|
109 |
+
}
|
110 |
+
this.className = (this.className + " " + c).replace(/\s+/g, " ").replace(/(^ | $)/g, "");
|
111 |
+
return this;
|
112 |
+
};
|
113 |
+
Element.prototype.removeClass = function(c) {
|
114 |
+
var re = new RegExp("(^|\\s)" + c + "(\\s|$)", "g");
|
115 |
+
this.className = this.className.replace(re, "$1").replace(/\s+/g, " ").replace(/(^ | $)/g, "");
|
116 |
+
return this;
|
117 |
+
};
|
118 |
+
Element.prototype.hasClass = function(c) {
|
119 |
+
var re = new RegExp("(^|\\s)" + c + "(\\s|$)", "g");
|
120 |
+
if (re.test(this.className)) {
|
121 |
+
return true;
|
122 |
+
}
|
123 |
+
return false;
|
124 |
+
};
|
125 |
+
|
126 |
+
var faqList = document.querySelectorAll('.block-faq-list');
|
127 |
+
var faqListTrigger = document.querySelector('.block-topics-link');
|
128 |
+
|
129 |
+
var getFaqItem = function(el) {
|
130 |
+
if (el.hasClass('block-faq-list') || el.hasClass('index-article-body')) { return null; }
|
131 |
+
if (el.hasClass('index-article')) { return el; }
|
132 |
+
return getFaqItem( el.parentNode );
|
133 |
+
};
|
134 |
+
|
135 |
+
var scrollToElement = function scrollToElement(el) {
|
136 |
+
var duration = 250;
|
137 |
+
var start = document.body.scrollTop;
|
138 |
+
var end = el.offsetTop - 50;
|
139 |
+
if (start === end) { return }
|
140 |
+
var diff = end - start;
|
141 |
+
var totalFrames = duration/10;
|
142 |
+
var count = 0;
|
143 |
+
|
144 |
+
function easeIn(t) {
|
145 |
+
return t*t*t;
|
146 |
+
}
|
147 |
+
|
148 |
+
function animate() {
|
149 |
+
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
150 |
+
count = count + 1;
|
151 |
+
document.documentElement.scrollTop = document.body.scrollTop = start + diff*easeIn(count/totalFrames);
|
152 |
+
if (scrollTop !== end && count < totalFrames) {
|
153 |
+
requestID = requestAnimationFrame(animate);
|
154 |
+
} else {
|
155 |
+
cancelAnimationFrame(requestID);
|
156 |
+
}
|
157 |
+
}
|
158 |
+
requestAnimationFrame(animate);
|
159 |
+
};
|
160 |
+
|
161 |
+
var showFaqTopic = function showFaqTopic(e){
|
162 |
+
var width = window.innerWidth;
|
163 |
+
var item = getFaqItem(e.target);
|
164 |
+
if (!item) {return}
|
165 |
+
if (item.hasClass('active')) {
|
166 |
+
item.removeClass('active')
|
167 |
+
} else {
|
168 |
+
var active = document.querySelector('.block-faq-list .active');
|
169 |
+
if (active) {active.removeClass('active')};
|
170 |
+
item.addClass('active');
|
171 |
+
if (width < 768) {
|
172 |
+
scrollToElement(item);
|
173 |
+
}
|
174 |
+
}
|
175 |
+
};
|
176 |
+
|
177 |
+
var showAllTopics = function showAllTopics(e) {
|
178 |
+
e.preventDefault();
|
179 |
+
var hiddenItems = document.querySelectorAll('.index-article--hidden');
|
180 |
+
for (var i = 0; i < hiddenItems.length; i++) {
|
181 |
+
hiddenItems[i].removeClass('index-article--hidden');
|
182 |
+
}
|
183 |
+
this.removeEventListener('click', showAllTopics, false);
|
184 |
+
this.parentNode.removeChild(this);
|
185 |
+
};
|
186 |
+
|
187 |
+
if (!faqList) {
|
188 |
+
return
|
189 |
+
}
|
190 |
+
for (var i = 0; i < faqList.length; i++) {
|
191 |
+
faqList[i].addEventListener('click', showFaqTopic, false);
|
192 |
+
}
|
193 |
+
faqListTrigger.addEventListener('click', showAllTopics, false);
|
194 |
+
|
195 |
+
})();
|
196 |
+
|
197 |
+
</script>
|
198 |
+
|
199 |
+
</div>
|
200 |
+
|
201 |
+
<div class="block-help">
|
202 |
+
<div class="content-wrap cf">
|
203 |
+
<ul>
|
204 |
+
<li>
|
205 |
+
<div class="block-help-item">
|
206 |
+
<a href="https://help.ecwid.com/customer/portal/emails/new" target="_blank"><?php _e( 'Contact us', 'ecwid-shopping-cart' ); ?> </a>
|
207 |
+
<p><?php _e( 'Still have questions about Ecwid? Let us know!', 'ecwid-shopping-cart' ); ?> </p>
|
208 |
+
</div>
|
209 |
+
</li>
|
210 |
+
<li>
|
211 |
+
<div class="block-help-item">
|
212 |
+
<a href="https://www.ecwid.com/forums" target="_blank"><?php _e( 'Forums', 'ecwid-shopping-cart' ); ?> </a>
|
213 |
+
<p><?php _e( 'Join the Ecwid community. Discuss support topics and store ideas with other Ecwid users.', 'ecwid-shopping-cart' ); ?> </p>
|
214 |
+
</div>
|
215 |
+
</li>
|
216 |
+
</ul>
|
217 |
+
</div>
|
218 |
+
</div>
|
219 |
+
|
220 |
+
<?php if ( get_option('ecwid_extended_help') ): ?>
|
221 |
+
<div class="block-contact">
|
222 |
+
<h2><?php _e( 'Send a message to our support team', 'ecwid-shopping-cart' ); ?> </h2>
|
223 |
+
|
224 |
+
<div class="contact-form">
|
225 |
+
<form action="admin-post.php" enctype="multipart/form-data" class="new_email" id="new_email" method="post" novalidate="novalidate" onsubmit="javascript:ecwid_kissmetrics_record('help-page email-contact-form submitted');">
|
226 |
+
<input type="hidden" name="action" value="ecwid_contact_us" />
|
227 |
+
<input type="hidden" name="wp-nonce" id="wp-nonce" value="<?php echo wp_create_nonce( Ecwid_Help_Page::CONTACT_US_ACTION_NAME ); ?>" />
|
228 |
+
<input id="email_subject" maxlength="100" name="email[subject]" type="text" class="form-control" value="" placeholder="<?php _e( 'Subject', 'ecwid-shopping-cart' ); ?> ">
|
229 |
+
<textarea id="email_body" name="email[body]" class="form-control" placeholder="<?php _e( 'Type in your message here', 'ecwid-shopping-cart' ); ?> "></textarea>
|
230 |
+
<div class="btn-container">
|
231 |
+
<button id="contact-ecwid-support" class="btn btn-medium btn-aqua" type="submit">
|
232 |
+
<span class="btn-text"><?php _e( 'Send Message', 'ecwid-shopping-cart'); ?></span>
|
233 |
+
<div class="loader">
|
234 |
+
<div class="ecwid-spinner spin-right">
|
235 |
+
<svg width="60px" height="60px" viewBox="0 0 60 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
236 |
+
<path class="loader-outer" d="M30,60 C46.5685425,60 60,46.5685425 60,30 C60,13.4314575 46.5685425,0 30,0 C13.4314575,0 0,13.4314575 0,30 C0,46.5685425 13.4314575,60 30,60 L30,60 Z"></path>
|
237 |
+
<path class="loader-background" d="M30,56 C44.3594035,56 56,44.3594035 56,30 C56,15.6405965 44.3594035,4 30,4 C15.6405965,4 4,15.6405965 4,30 C4,44.3594035 15.6405965,56 30,56 L30,56 Z" fill="#FFFFFF"></path>
|
238 |
+
<path class="loader-inner" d="M12.0224719,32.0224719 C10.9078652,32.0224719 10,31.1146067 10,30 C10,18.9707865 18.9707865,10 30,10 C31.1146067,10 32.0224719,10.9078652 32.0224719,12.0224719 C32.0224719,13.1370787 31.1146067,14.0449438 30,14.0449438 C21.2,14.0449438 14.0449438,21.2 14.0449438,30 C14.0449438,31.1146067 13.1370787,32.0224719 12.0224719,32.0224719 L12.0224719,32.0224719 Z M30,50 C28.8853933,50 27.9775281,49.0921348 27.9775281,47.9775281 C27.9775281,46.8629213 28.8853933,45.9550562 30,45.9550562 C38.8,45.9550562 45.9550562,38.8 45.9550562,30 C45.9550562,28.8853933 46.8629213,27.9775281 47.9775281,27.9775281 C49.0921348,27.9775281 50,28.8853933 50,30 C50,41.0292135 41.0292135,50 30,50 L30,50 Z" ></path>
|
239 |
+
</svg>
|
240 |
+
</div>
|
241 |
+
</div>
|
242 |
+
</button>
|
243 |
+
<div class="send-error"><?php _e('Send message failed', 'ecwid-shopping-cart'); ?></div>
|
244 |
+
</div>
|
245 |
+
</form>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
<div class="block-sent">
|
249 |
+
<h2><?php _e( 'Your email has been sent', 'ecwid-shopping-cart'); ?></h2>
|
250 |
+
<p><?php _e(' Thank you very much for contacting us! We will get back to you shortly.', 'ecwid-shopping-cart'); ?></p>
|
251 |
+
<p><a id="show-ecwid-contact-again" href="#"><?php _e( 'You can send a new request here.', 'ecwid-shopping-cart'); ?></a></p>
|
252 |
+
|
253 |
+
</div>
|
254 |
+
<?php endif; ?>
|
255 |
+
|
256 |
+
</div>
|
257 |
+
|
258 |
+
<script type="text/javascript">
|
259 |
+
jQuery('#email_subject, #email_body').focus(function() {
|
260 |
+
jQuery('.block-contact .send-error').hide();
|
261 |
+
});
|
262 |
+
|
263 |
+
jQuery('#email_subject, #email_body').blur(function() {
|
264 |
+
if (jQuery(this).hasClass('form-error') && jQuery(this).val().trim()) {
|
265 |
+
jQuery(this).removeClass('form-error');
|
266 |
+
}
|
267 |
+
});
|
268 |
+
|
269 |
+
ecwid_contact_form_has_errors = function() {
|
270 |
+
var has_errors = false;
|
271 |
+
jQuery('#email_subject, #email_body').each(function() {
|
272 |
+
if (!jQuery(this).val().trim()) {
|
273 |
+
jQuery(this).addClass('form-error');
|
274 |
+
has_errors = true;
|
275 |
+
}
|
276 |
+
});
|
277 |
+
|
278 |
+
if (has_errors) {
|
279 |
+
return true;
|
280 |
+
}
|
281 |
+
return false;
|
282 |
+
}
|
283 |
+
|
284 |
+
jQuery('#contact-ecwid-support').click(function() {
|
285 |
+
|
286 |
+
if (ecwid_contact_form_has_errors()) return false;
|
287 |
+
|
288 |
+
jQuery('.block-contact .btn').addClass('btn-loading');
|
289 |
+
jQuery('.block-contact .form-control').addClass('submitted');
|
290 |
+
|
291 |
+
$result = jQuery.ajax(ajaxurl + '?action=<?php echo Ecwid_Help_Page::CONTACT_US_ACTION_NAME; ?>', {
|
292 |
+
'method': 'POST',
|
293 |
+
'data': {
|
294 |
+
'subject' : jQuery('#email_subject').val(),
|
295 |
+
'body' : jQuery('#email_body').val(),
|
296 |
+
'wp-nonce' : jQuery('#wp-nonce').val(),
|
297 |
+
'accepts' : 'json',
|
298 |
+
'dataType' : 'json'
|
299 |
+
},
|
300 |
+
'success': function(data) {
|
301 |
+
var result = jQuery.parseJSON(data);
|
302 |
+
if (result) {
|
303 |
+
jQuery('#wp-nonce').val(result.nonce);
|
304 |
+
jQuery('.block-contact').hide();
|
305 |
+
jQuery('.block-sent').show();
|
306 |
+
jQuery('.block-contact .form-control').val("");
|
307 |
+
} else {
|
308 |
+
jQuery('.block-contact .send-error').show();
|
309 |
+
}
|
310 |
+
},
|
311 |
+
'error': function(data) {
|
312 |
+
jQuery('.block-contact .send-error').show();
|
313 |
+
},
|
314 |
+
'complete': function() {
|
315 |
+
jQuery('.block-contact .btn').removeClass('btn-loading');
|
316 |
+
jQuery('.block-contact .form-control').removeClass('submitted');
|
317 |
+
}
|
318 |
+
});
|
319 |
+
|
320 |
+
return false;
|
321 |
+
});
|
322 |
+
jQuery('#show-ecwid-contact-again').click(function() {
|
323 |
+
jQuery('.block-sent').hide();
|
324 |
+
jQuery('.block-contact').show();
|
325 |
+
return false;
|
326 |
+
});
|
327 |
+
|
328 |
+
ecwid_kissmetrics_record('help-page viewed');
|
329 |
+
</script>
|