Version Description
- 2018-04-12
Download this release
Release Info
Developer | codeinwp |
Plugin | Orbit Fox by ThemeIsle |
Version | 2.4.6 |
Comparing to | |
See all releases |
Code changes from version 2.4.5 to 2.4.6
- CHANGELOG.md +11 -0
- core/assets/css/orbit-fox-admin.css +1 -1
- core/includes/class-orbit-fox.php +1 -1
- obfx_modules/companion-legacy/inc/azera-shop/css/style.css +325 -0
- obfx_modules/companion-legacy/inc/azera-shop/functions.php +63 -0
- obfx_modules/companion-legacy/inc/azera-shop/images/client-no-image.jpg +0 -0
- obfx_modules/companion-legacy/inc/azera-shop/images/team-img.jpg +0 -0
- obfx_modules/companion-legacy/inc/azera-shop/inc/settings.php +207 -0
- obfx_modules/companion-legacy/inc/azera-shop/inc/translations/general.php +18 -0
- obfx_modules/companion-legacy/inc/azera-shop/inc/translations/translations-services-section.php +44 -0
- obfx_modules/companion-legacy/inc/azera-shop/inc/translations/translations-team-section.php +44 -0
- obfx_modules/companion-legacy/inc/azera-shop/inc/translations/translations-testimonials-section.php +49 -0
- obfx_modules/companion-legacy/inc/azera-shop/sections/azera_shop_happy_customers_section.php +126 -0
- obfx_modules/companion-legacy/inc/azera-shop/sections/azera_shop_our_services_section.php +125 -0
- obfx_modules/companion-legacy/inc/azera-shop/sections/azera_shop_our_team_section.php +103 -0
- obfx_modules/companion-legacy/inc/azera-shop/wpml-config.xml +13 -0
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-clients-bar-section.php +1 -1
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php +1 -1
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-ribbon-section.php +2 -2
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php +1 -1
- obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php +1 -1
- obfx_modules/companion-legacy/inc/llorix-one-companion/css/style.css +321 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/functions.php +62 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/images/team-img.jpg +0 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/inc/settings.php +207 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/general.php +19 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/translations-services-section.php +50 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/translations-team-section.php +45 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/translations-testimonials-section.php +48 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/sections/happy-customers-section.php +124 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/sections/our-services-section.php +133 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/sections/our-team-section.php +113 -0
- obfx_modules/companion-legacy/inc/llorix-one-companion/wpml-config.xml +13 -0
- obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php +7 -7
- obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php +7 -7
- obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php +10 -10
- obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php +31 -31
- obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php +10 -10
- obfx_modules/companion-legacy/inc/rhea/widgets/progress-bar.widget.php +5 -5
- obfx_modules/companion-legacy/inc/shop-isle/class-template-loader.php +125 -0
- obfx_modules/companion-legacy/inc/shop-isle/content-slider.php +87 -0
- obfx_modules/companion-legacy/inc/shop-isle/customizer.php +662 -0
- obfx_modules/companion-legacy/inc/shop-isle/functions.php +40 -0
- obfx_modules/companion-legacy/inc/shop-isle/template-about.php +177 -0
- obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php +7 -7
- obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php +9 -9
- obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php +18 -18
- obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php +8 -8
- obfx_modules/companion-legacy/init.php +190 -1
- obfx_modules/menu-icons/init.php +46 -1
- readme.md +11 -0
- readme.txt +11 -0
- themeisle-companion.php +1 -1
- themeisle-hash.json +1 -1
- vendor/autoload.php +1 -1
- vendor/codeinwp/templates-directory/class-page-templates-directory.php +12 -8
- vendor/codeinwp/templates-directory/composer.json +1 -1
- vendor/codeinwp/templates-directory/js/script.js +1 -1
- vendor/codeinwp/templates-directory/views/template-directory-page-tpl.php +4 -1
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php +6 -6
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-logger.php +10 -10
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php +84 -11
- vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget-dashboard-blog.php +106 -92
- vendor/codeinwp/themeisle-sdk/load.php +1 -1
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/installed.json +8 -8
CHANGELOG.md
CHANGED
@@ -1,4 +1,15 @@
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
### v2.4.5 - 2018-03-29
|
3 |
**Changes:**
|
4 |
* Fixed issue with duplicated widgets in Hestia theme
|
1 |
|
2 |
+
### v2.4.6 - 2018-04-12
|
3 |
+
**Changes:**
|
4 |
+
|
5 |
+
### v2.4.6 - 2018-04-12
|
6 |
+
**Changes:**
|
7 |
+
* Add video to readme file
|
8 |
+
* Added notification about conflict with navwalker overrides
|
9 |
+
* Added safeguard for navwalker overrides
|
10 |
+
* Remove unused animation functions from Legacy Module
|
11 |
+
* Added Azera Shop, Llorix One Lite, Shop Isle themes functionality to Legacy Module
|
12 |
+
|
13 |
### v2.4.5 - 2018-03-29
|
14 |
**Changes:**
|
15 |
* Fixed issue with duplicated widgets in Hestia theme
|
core/assets/css/orbit-fox-admin.css
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Extends Spectre.css Library
|
9 |
*/
|
10 |
/*
|
11 |
-
Version: 2.4.
|
12 |
*/
|
13 |
|
14 |
/* Document
|
8 |
* Extends Spectre.css Library
|
9 |
*/
|
10 |
/*
|
11 |
+
Version: 2.4.6
|
12 |
*/
|
13 |
|
14 |
/* Document
|
core/includes/class-orbit-fox.php
CHANGED
@@ -69,7 +69,7 @@ class Orbit_Fox {
|
|
69 |
|
70 |
$this->plugin_name = 'orbit-fox';
|
71 |
|
72 |
-
$this->version = '2.4.
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
69 |
|
70 |
$this->plugin_name = 'orbit-fox';
|
71 |
|
72 |
+
$this->version = '2.4.6';
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
obfx_modules/companion-legacy/inc/azera-shop/css/style.css
ADDED
@@ -0,0 +1,325 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.azea_shop_only_customizer{
|
2 |
+
display: none;
|
3 |
+
}
|
4 |
+
|
5 |
+
/*---------------------------------------
|
6 |
+
SECTION: SERVICES
|
7 |
+
-----------------------------------------*/
|
8 |
+
.services-wrap {
|
9 |
+
text-align: center;
|
10 |
+
position: relative;
|
11 |
+
padding-bottom: 50px;
|
12 |
+
}
|
13 |
+
|
14 |
+
.services {
|
15 |
+
background-color: #FFF;
|
16 |
+
border-bottom: 1px solid #eaebec;
|
17 |
+
}
|
18 |
+
|
19 |
+
.services .section-overlay-layer {
|
20 |
+
}
|
21 |
+
|
22 |
+
.single-service {
|
23 |
+
padding: 40px 20px 40px 20px;
|
24 |
+
background: #ffffff;
|
25 |
+
-webkit-border-radius: 3px;
|
26 |
+
-moz-border-radius: 3px;
|
27 |
+
border-radius: 3px;
|
28 |
+
-webkit-transition: all ease 0.55s;
|
29 |
+
transition: all ease 0.55s;
|
30 |
+
}
|
31 |
+
|
32 |
+
.services-wrap .service-box {
|
33 |
+
display: inline-block;
|
34 |
+
width: 100%;
|
35 |
+
text-align: center;
|
36 |
+
}
|
37 |
+
|
38 |
+
.single-service > h3 > a:hover, .service-icon > a:hover{
|
39 |
+
text-decoration:none;
|
40 |
+
}
|
41 |
+
|
42 |
+
.services-wrap > .service-box {
|
43 |
+
width: 31.5%;
|
44 |
+
margin: 0 1.25% 0 1.25%;
|
45 |
+
margin-bottom: 30px;
|
46 |
+
vertical-align: top;
|
47 |
+
}
|
48 |
+
|
49 |
+
.services-wrap > .service-box:nth-child(3n+1){
|
50 |
+
margin-left: 0;
|
51 |
+
clear: left;
|
52 |
+
}
|
53 |
+
|
54 |
+
.services-wrap > .service-box:nth-child(3n){
|
55 |
+
margin-right: 0;
|
56 |
+
clear: right;
|
57 |
+
}
|
58 |
+
|
59 |
+
.single-service .service-icon {
|
60 |
+
font-size: 60px;
|
61 |
+
margin-bottom: 35px;
|
62 |
+
}
|
63 |
+
|
64 |
+
.single-service h3 {
|
65 |
+
color: #454545;
|
66 |
+
margin-bottom: 15px;
|
67 |
+
padding-top: 5px;
|
68 |
+
}
|
69 |
+
|
70 |
+
.galcolumn .single-service {
|
71 |
+
width: 100%;
|
72 |
+
}
|
73 |
+
|
74 |
+
.display-none {
|
75 |
+
display: none !important;
|
76 |
+
}
|
77 |
+
|
78 |
+
/*---------------------------------------
|
79 |
+
SECTION: TESTIMONIALS
|
80 |
+
-----------------------------------------*/
|
81 |
+
.testimonials {
|
82 |
+
text-align: center;
|
83 |
+
background-color: #FFF;
|
84 |
+
border-bottom: 1px solid #eaebec;
|
85 |
+
}
|
86 |
+
|
87 |
+
.testimonials .section-overlay-layer {
|
88 |
+
padding-bottom: 20px;
|
89 |
+
}
|
90 |
+
|
91 |
+
.feedback {
|
92 |
+
padding: 0 30px;
|
93 |
+
margin-bottom: 45px;
|
94 |
+
}
|
95 |
+
|
96 |
+
.feedback .pic-container {
|
97 |
+
top: -40px;
|
98 |
+
width: 100%;
|
99 |
+
position: absolute;
|
100 |
+
}
|
101 |
+
|
102 |
+
.feedback .pic-container-inner {
|
103 |
+
-webkit-border-radius: 50%;
|
104 |
+
-moz-border-radius: 50%;
|
105 |
+
border-radius: 50%;
|
106 |
+
display: inline-block;
|
107 |
+
overflow: hidden;
|
108 |
+
background-clip: padding-box;
|
109 |
+
width: 170px;
|
110 |
+
height: 170px;
|
111 |
+
box-shadow: 0px 0px 0px 5px #f5f5f5;
|
112 |
+
background-color: #f5f5f5;
|
113 |
+
border: 5px solid #e5e5e5;
|
114 |
+
}
|
115 |
+
|
116 |
+
.feedback .pic-container img {
|
117 |
+
width: 100%;
|
118 |
+
}
|
119 |
+
|
120 |
+
.feedback p {
|
121 |
+
font-style: italic;
|
122 |
+
margin-top: 20px;
|
123 |
+
margin-bottom: 0;
|
124 |
+
}
|
125 |
+
|
126 |
+
.feedback h5 {
|
127 |
+
margin-bottom: 0;
|
128 |
+
}
|
129 |
+
|
130 |
+
.feedback-text-wrap {
|
131 |
+
padding: 0 20px;
|
132 |
+
}
|
133 |
+
|
134 |
+
.testimonials-box {
|
135 |
+
text-align: center;
|
136 |
+
width: 100%;
|
137 |
+
}
|
138 |
+
|
139 |
+
.testimonials-wrap {
|
140 |
+
position: relative;
|
141 |
+
}
|
142 |
+
|
143 |
+
.testimonials-wrap .testimonials-box {
|
144 |
+
display: inline-block;
|
145 |
+
-webkit-transition: all .2s ease;
|
146 |
+
-moz-transition: all .2s ease;
|
147 |
+
-o-transition: all .2s ease;
|
148 |
+
transition: all .2s ease;
|
149 |
+
}
|
150 |
+
|
151 |
+
.testimonials-box .feedback {
|
152 |
+
padding: 145px 0 40px 0;
|
153 |
+
margin: 40px 0 30px 0;
|
154 |
+
background: #ffffff;
|
155 |
+
-webkit-border-radius: 3px;
|
156 |
+
-moz-border-radius: 3px;
|
157 |
+
border-radius: 3px;
|
158 |
+
-webkit-transition: all ease 0.55s;
|
159 |
+
transition: all ease 0.55s;
|
160 |
+
position: relative;
|
161 |
+
}
|
162 |
+
|
163 |
+
.testimonials-box .feedback:hover {
|
164 |
+
border-bottom-color: rgba(255,162,0,1.00);
|
165 |
+
}
|
166 |
+
|
167 |
+
.galcolumn .testimonials-box {
|
168 |
+
width: 100%;
|
169 |
+
}
|
170 |
+
|
171 |
+
.testimonials-wrap > .testimonials-box {
|
172 |
+
width: 31.5%;
|
173 |
+
margin: 0 1.15% 0 1.15%;
|
174 |
+
margin-bottom: 30px;
|
175 |
+
vertical-align: top;
|
176 |
+
}
|
177 |
+
|
178 |
+
.testimonials-wrap > .testimonials-box:nth-child(3n+1) {
|
179 |
+
margin-left: 0;
|
180 |
+
clear: left;
|
181 |
+
}
|
182 |
+
|
183 |
+
.testimonials-wrap > .testimonials-box:nth-child(3n) {
|
184 |
+
margin-right: 0;
|
185 |
+
clear: right;
|
186 |
+
}
|
187 |
+
|
188 |
+
/*---------------------------------------
|
189 |
+
SECTION: TEAM
|
190 |
+
-----------------------------------------*/
|
191 |
+
.team {
|
192 |
+
background-color: #FFF;
|
193 |
+
border-bottom: 1px solid #eaebec;
|
194 |
+
background-position: 50% 50%;
|
195 |
+
background-repeat: no-repeat;
|
196 |
+
background-attachment: fixed;
|
197 |
+
background-size: cover;
|
198 |
+
border-bottom: 1px solid #F3F3F3;
|
199 |
+
}
|
200 |
+
|
201 |
+
.team .section-overlay-layer {
|
202 |
+
padding-bottom: 50px;
|
203 |
+
background: rgba(13, 60, 85, 0.8);
|
204 |
+
}
|
205 |
+
|
206 |
+
.team .sub-heading {
|
207 |
+
color: #FFF;
|
208 |
+
}
|
209 |
+
|
210 |
+
.team .dark-text {
|
211 |
+
color: #FFF;
|
212 |
+
}
|
213 |
+
|
214 |
+
.team-member {
|
215 |
+
margin-bottom: 25px;
|
216 |
+
position: relative;
|
217 |
+
overflow: hidden;
|
218 |
+
min-height: 100px;
|
219 |
+
-webkit-border-radius: 50%;
|
220 |
+
-moz-border-radius: 50%;
|
221 |
+
border-radius: 50%;
|
222 |
+
}
|
223 |
+
|
224 |
+
.team-member .social-icons {
|
225 |
+
opacity: 1;
|
226 |
+
margin-top: 5px;
|
227 |
+
position: relative;
|
228 |
+
-webkit-transition: all ease 0.55s;
|
229 |
+
transition: all ease 0.55s;
|
230 |
+
margin-bottom: 0;
|
231 |
+
margin-top: 0;
|
232 |
+
}
|
233 |
+
|
234 |
+
.team-member .social-icons li {
|
235 |
+
display: inline-block;
|
236 |
+
padding-left: 5px;
|
237 |
+
padding-right: 5px;
|
238 |
+
padding-top: 3px;
|
239 |
+
}
|
240 |
+
|
241 |
+
.team-member .social-icons li a {
|
242 |
+
opacity: 0.9;
|
243 |
+
}
|
244 |
+
|
245 |
+
.team-member .social-icons li a:hover {
|
246 |
+
opacity: 1;
|
247 |
+
text-decoration: none;
|
248 |
+
}
|
249 |
+
|
250 |
+
.team-member:hover .social-icons {
|
251 |
+
opacity: 1;
|
252 |
+
}
|
253 |
+
|
254 |
+
.member-pic {
|
255 |
+
border: none;
|
256 |
+
-webkit-border-radius: 0px;
|
257 |
+
-moz-border-radius: 0px;
|
258 |
+
border-radius: 0px;
|
259 |
+
width: 183px;
|
260 |
+
height: 183px;
|
261 |
+
}
|
262 |
+
|
263 |
+
.member-pic img {
|
264 |
+
width: 183px;
|
265 |
+
height: 183px;
|
266 |
+
}
|
267 |
+
|
268 |
+
.member-details {
|
269 |
+
left: 0;
|
270 |
+
position: absolute;
|
271 |
+
color: #FFF;
|
272 |
+
display: table;
|
273 |
+
overflow: hidden;
|
274 |
+
height: 183px;
|
275 |
+
width: 183px;
|
276 |
+
bottom: 100%;
|
277 |
+
-webkit-transition: all 0.3s;
|
278 |
+
-moz-transition: all 0.3s;
|
279 |
+
-o-transition: all 0.3s;
|
280 |
+
transition: all 0.3s;
|
281 |
+
background: rgba(0,0,0,0);
|
282 |
+
text-align: center;
|
283 |
+
}
|
284 |
+
|
285 |
+
.member-details h5 {
|
286 |
+
margin: 0;
|
287 |
+
margin-bottom: 5px;
|
288 |
+
color: #FFF;
|
289 |
+
}
|
290 |
+
|
291 |
+
.team-member-wrap {
|
292 |
+
text-align: center;
|
293 |
+
}
|
294 |
+
|
295 |
+
.team-member-wrap .team-member-box {
|
296 |
+
float: none;
|
297 |
+
display: inline-block;
|
298 |
+
margin-right: -4px;
|
299 |
+
vertical-align: top;
|
300 |
+
padding-right: 55px;
|
301 |
+
padding-left: 55px;
|
302 |
+
padding-bottom: 30px;
|
303 |
+
}
|
304 |
+
|
305 |
+
.member-details-inner {
|
306 |
+
display: table-cell;
|
307 |
+
vertical-align: middle;
|
308 |
+
}
|
309 |
+
|
310 |
+
.team-member:hover .member-details {
|
311 |
+
bottom: 0;
|
312 |
+
-webkit-transition: all 0.3s;
|
313 |
+
-moz-transition: all 0.3s;
|
314 |
+
-o-transition: all 0.3s;
|
315 |
+
transition: all 0.3s;
|
316 |
+
background: rgba(255,162,0,0.7);
|
317 |
+
}
|
318 |
+
|
319 |
+
@media (min-width: 992px) and (max-width: 1200px) {
|
320 |
+
.team-member-wrap .team-member-box {
|
321 |
+
padding-right: 30px;
|
322 |
+
padding-left: 30px;
|
323 |
+
}
|
324 |
+
}
|
325 |
+
|
obfx_modules/companion-legacy/inc/azera-shop/functions.php
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Azera Shop Companion
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! function_exists( 'add_action' ) ) {
|
7 |
+
die( 'Nothing to do...' );
|
8 |
+
}
|
9 |
+
|
10 |
+
/* Important constants */
|
11 |
+
define( 'AZERA_SHOP_COMPANION_VERSION', '1.0.7' );
|
12 |
+
define( 'AZERA_SHOP_COMPANION_URL', plugin_dir_url( __FILE__ ) );
|
13 |
+
define( 'AZERA_SHOP_COMPANION_PATH', plugin_dir_path( __FILE__ ) );
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Require section translations
|
17 |
+
*/
|
18 |
+
require AZERA_SHOP_COMPANION_PATH . 'inc/translations/general.php';
|
19 |
+
|
20 |
+
/* Required helper functions */
|
21 |
+
include_once( dirname( __FILE__ ) . '/inc/settings.php' );
|
22 |
+
|
23 |
+
|
24 |
+
/* Add new sections in Azera Shop */
|
25 |
+
function azera_shop_companion_sections() {
|
26 |
+
return array(
|
27 |
+
|
28 |
+
'sections/azera_shop_logos_section',
|
29 |
+
'azera_shop_our_services_section',
|
30 |
+
'sections/azera_shop_shop_section',
|
31 |
+
'azera_shop_our_team_section',
|
32 |
+
'azera_shop_happy_customers_section',
|
33 |
+
'sections/azera_shop_shortcodes_section',
|
34 |
+
'sections/azera_shop_ribbon_section',
|
35 |
+
'sections/azera_shop_contact_info_section',
|
36 |
+
'sections/azera_shop_map_section'
|
37 |
+
|
38 |
+
);
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Load sections form the plugin
|
43 |
+
*
|
44 |
+
* @since 1.0.0
|
45 |
+
*/
|
46 |
+
function azera_shop_companion_load_sections() {
|
47 |
+
|
48 |
+
add_filter('azera_shop_companion_sections_filter', 'azera_shop_companion_sections');
|
49 |
+
}
|
50 |
+
|
51 |
+
add_action( 'plugins_loaded', 'azera_shop_companion_load_sections' );
|
52 |
+
|
53 |
+
/*
|
54 |
+
* Enqueue styles
|
55 |
+
*/
|
56 |
+
function azera_shop_companion_register_plugin_styles() {
|
57 |
+
|
58 |
+
wp_enqueue_style( 'azera-shop-companion-style', trailingslashit( AZERA_SHOP_COMPANION_URL ) . 'css/style.css' );
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
/* Register style sheet. */
|
63 |
+
add_action( 'wp_enqueue_scripts', 'azera_shop_companion_register_plugin_styles' );
|
obfx_modules/companion-legacy/inc/azera-shop/images/client-no-image.jpg
ADDED
Binary file
|
obfx_modules/companion-legacy/inc/azera-shop/images/team-img.jpg
ADDED
Binary file
|
obfx_modules/companion-legacy/inc/azera-shop/inc/settings.php
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function azera_shop_companion_customize_register( $wp_customize ) {
|
4 |
+
|
5 |
+
if( class_exists('Azera_Shop_General_Repeater') ) {
|
6 |
+
|
7 |
+
/********************************************************/
|
8 |
+
/****************** SERVICES OPTIONS *******************/
|
9 |
+
/********************************************************/
|
10 |
+
|
11 |
+
/* SERVICES SECTION */
|
12 |
+
$wp_customize->add_section( 'azera_shop_services_section' , array(
|
13 |
+
'title' => esc_html__( 'Services section', 'themeisle-companion' ),
|
14 |
+
'priority' => 4,
|
15 |
+
'panel' => 'azera_shop_front_page_sections',
|
16 |
+
'active_callback' => 'azera_shop_show_on_front',
|
17 |
+
));
|
18 |
+
|
19 |
+
/* Services show/hide */
|
20 |
+
$wp_customize->add_setting( 'azera_shop_our_services_show', array(
|
21 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
22 |
+
));
|
23 |
+
|
24 |
+
$wp_customize->add_control( 'azera_shop_our_services_show', array(
|
25 |
+
'type' => 'checkbox',
|
26 |
+
'label' => __('Disable the Services section?','themeisle-companion'),
|
27 |
+
'section' => 'azera_shop_services_section',
|
28 |
+
'priority' => 1,
|
29 |
+
));
|
30 |
+
|
31 |
+
/* Services title */
|
32 |
+
$wp_customize->add_setting( 'azera_shop_our_services_title', array(
|
33 |
+
'default' => esc_html__('Our Services','themeisle-companion'),
|
34 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
35 |
+
));
|
36 |
+
$wp_customize->add_control( 'azera_shop_our_services_title', array(
|
37 |
+
'label' => esc_html__( 'Main title', 'themeisle-companion' ),
|
38 |
+
'section' => 'azera_shop_services_section',
|
39 |
+
'priority' => 10
|
40 |
+
));
|
41 |
+
|
42 |
+
/* Services subtitle */
|
43 |
+
$wp_customize->add_setting( 'azera_shop_our_services_subtitle', array(
|
44 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','themeisle-companion'),
|
45 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
46 |
+
));
|
47 |
+
$wp_customize->add_control( 'azera_shop_our_services_subtitle', array(
|
48 |
+
'label' => esc_html__( 'Subtitle', 'themeisle-companion' ),
|
49 |
+
'section' => 'azera_shop_services_section',
|
50 |
+
'priority' => 20
|
51 |
+
));
|
52 |
+
|
53 |
+
|
54 |
+
/* Services content */
|
55 |
+
$default = azera_shop_companion_sevices_get_default_content();
|
56 |
+
$wp_customize->add_setting( 'azera_shop_services_content', array(
|
57 |
+
'sanitize_callback' => 'azera_shop_sanitize_repeater',
|
58 |
+
'default' => $default,
|
59 |
+
) );
|
60 |
+
$wp_customize->add_control( new Azera_Shop_General_Repeater( $wp_customize, 'azera_shop_services_content', array(
|
61 |
+
'label' => esc_html__('Add new service box','themeisle-companion'),
|
62 |
+
'section' => 'azera_shop_services_section',
|
63 |
+
'priority' => 30,
|
64 |
+
'azera_shop_image_control' => true,
|
65 |
+
'azera_shop_icon_control' => true,
|
66 |
+
'azera_shop_title_control' => true,
|
67 |
+
'azera_shop_text_control' => true,
|
68 |
+
'azera_shop_link_control' => true
|
69 |
+
) ) );
|
70 |
+
|
71 |
+
/********************************************************/
|
72 |
+
/******************* TEAM OPTIONS *********************/
|
73 |
+
/********************************************************/
|
74 |
+
|
75 |
+
$wp_customize->add_section( 'azera_shop_team_section' , array(
|
76 |
+
'title' => esc_html__( 'Team section', 'themeisle-companion' ),
|
77 |
+
'priority' => 6,
|
78 |
+
'panel' => 'azera_shop_front_page_sections',
|
79 |
+
'active_callback' => 'azera_shop_show_on_front',
|
80 |
+
));
|
81 |
+
|
82 |
+
/* Team show/hide */
|
83 |
+
$wp_customize->add_setting( 'azera_shop_our_team_show', array(
|
84 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
85 |
+
));
|
86 |
+
|
87 |
+
$wp_customize->add_control( 'azera_shop_our_team_show', array(
|
88 |
+
'type' => 'checkbox',
|
89 |
+
'label' => __('Disable the Team section?','themeisle-companion'),
|
90 |
+
'section' => 'azera_shop_team_section',
|
91 |
+
'priority' => 1,
|
92 |
+
));
|
93 |
+
|
94 |
+
/* Team title */
|
95 |
+
$wp_customize->add_setting( 'azera_shop_our_team_title', array(
|
96 |
+
'default' => esc_html__('Our Team','themeisle-companion'),
|
97 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
98 |
+
));
|
99 |
+
$wp_customize->add_control( 'azera_shop_our_team_title', array(
|
100 |
+
'label' => esc_html__( 'Main title', 'themeisle-companion' ),
|
101 |
+
'section' => 'azera_shop_team_section',
|
102 |
+
'priority' => 10,
|
103 |
+
));
|
104 |
+
|
105 |
+
/* Team subtitle */
|
106 |
+
$wp_customize->add_setting( 'azera_shop_our_team_subtitle', array(
|
107 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','themeisle-companion'),
|
108 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
109 |
+
));
|
110 |
+
$wp_customize->add_control( 'azera_shop_our_team_subtitle', array(
|
111 |
+
'label' => esc_html__( 'Subtitle', 'themeisle-companion' ),
|
112 |
+
'section' => 'azera_shop_team_section',
|
113 |
+
'priority' => 20,
|
114 |
+
));
|
115 |
+
|
116 |
+
/* Team Background */
|
117 |
+
$wp_customize->add_setting( 'azera_shop_our_team_background', array(
|
118 |
+
'default' => azera_shop_get_file('/images/background-images/parallax-img/team-img.jpg'),
|
119 |
+
'sanitize_callback' => 'esc_url',
|
120 |
+
));
|
121 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'azera_shop_our_team_background', array(
|
122 |
+
'label' => esc_html__( 'Team Background', 'themeisle-companion' ),
|
123 |
+
'section' => 'azera_shop_team_section',
|
124 |
+
'priority' => 30
|
125 |
+
)));
|
126 |
+
|
127 |
+
/* Team content */
|
128 |
+
$default = azera_shop_companion_team_get_default_content();
|
129 |
+
$wp_customize->add_setting( 'azera_shop_team_content', array(
|
130 |
+
'sanitize_callback' => 'azera_shop_sanitize_repeater',
|
131 |
+
'default' => $default,
|
132 |
+
) );
|
133 |
+
$wp_customize->add_control( new Azera_Shop_General_Repeater( $wp_customize, 'azera_shop_team_content', array(
|
134 |
+
'label' => esc_html__('Add new team member','themeisle-companion'),
|
135 |
+
'section' => 'azera_shop_team_section',
|
136 |
+
'priority' => 40,
|
137 |
+
'azera_shop_image_control' => true,
|
138 |
+
'azera_shop_title_control' => true,
|
139 |
+
'azera_shop_subtitle_control' => true
|
140 |
+
) ) );
|
141 |
+
|
142 |
+
/********************************************************/
|
143 |
+
/********** TESTIMONIALS OPTIONS ***********************/
|
144 |
+
/********************************************************/
|
145 |
+
|
146 |
+
$wp_customize->add_section( 'azera_shop_testimonials_section' , array(
|
147 |
+
'title' => esc_html__( 'Testimonials section', 'themeisle-companion' ),
|
148 |
+
'priority' => 7,
|
149 |
+
'panel' => 'azera_shop_front_page_sections',
|
150 |
+
'active_callback' => 'azera_shop_show_on_front',
|
151 |
+
));
|
152 |
+
|
153 |
+
/* Testimonials show/hide */
|
154 |
+
$wp_customize->add_setting( 'azera_shop_happy_customers_show', array(
|
155 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
156 |
+
));
|
157 |
+
|
158 |
+
$wp_customize->add_control( 'azera_shop_happy_customers_show', array(
|
159 |
+
'type' => 'checkbox',
|
160 |
+
'label' => __('Disable the Testimonials section?','themeisle-companion'),
|
161 |
+
'section' => 'azera_shop_testimonials_section',
|
162 |
+
'priority' => 1,
|
163 |
+
));
|
164 |
+
|
165 |
+
/* Testimonials title */
|
166 |
+
$wp_customize->add_setting( 'azera_shop_happy_customers_title', array(
|
167 |
+
'default' => esc_html__('Happy Customers','themeisle-companion'),
|
168 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
169 |
+
));
|
170 |
+
$wp_customize->add_control( 'azera_shop_happy_customers_title', array(
|
171 |
+
'label' => esc_html__( 'Main title', 'themeisle-companion' ),
|
172 |
+
'section' => 'azera_shop_testimonials_section',
|
173 |
+
'priority' => 10,
|
174 |
+
));
|
175 |
+
|
176 |
+
/* Testimonials subtitle */
|
177 |
+
$wp_customize->add_setting( 'azera_shop_happy_customers_subtitle', array(
|
178 |
+
'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','themeisle-companion'),
|
179 |
+
'sanitize_callback' => 'azera_shop_sanitize_text',
|
180 |
+
));
|
181 |
+
$wp_customize->add_control( 'azera_shop_happy_customers_subtitle', array(
|
182 |
+
'label' => esc_html__( 'Subtitle', 'themeisle-companion' ),
|
183 |
+
'section' => 'azera_shop_testimonials_section',
|
184 |
+
'priority' => 20,
|
185 |
+
));
|
186 |
+
|
187 |
+
|
188 |
+
/* Testimonials content */
|
189 |
+
$default = azera_shop_companion_testimonials_get_default_content();
|
190 |
+
$wp_customize->add_setting( 'azera_shop_testimonials_content', array(
|
191 |
+
'sanitize_callback' => 'azera_shop_sanitize_repeater',
|
192 |
+
'default' => $default,
|
193 |
+
));
|
194 |
+
$wp_customize->add_control( new Azera_Shop_General_Repeater( $wp_customize, 'azera_shop_testimonials_content', array(
|
195 |
+
'label' => esc_html__('Add new testimonial','themeisle-companion'),
|
196 |
+
'section' => 'azera_shop_testimonials_section',
|
197 |
+
'priority' => 30,
|
198 |
+
'azera_shop_image_control' => true,
|
199 |
+
'azera_shop_title_control' => true,
|
200 |
+
'azera_shop_subtitle_control' => true,
|
201 |
+
'azera_shop_text_control' => true
|
202 |
+
) ) );
|
203 |
+
|
204 |
+
}
|
205 |
+
}
|
206 |
+
add_action( 'customize_register', 'azera_shop_companion_customize_register', 999 );
|
207 |
+
?>
|
obfx_modules/companion-legacy/inc/azera-shop/inc/translations/general.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* General functions for translation.
|
4 |
+
*
|
5 |
+
* @package azera-shop-companion
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Define Allowed Files to be included.
|
10 |
+
*/
|
11 |
+
function azera_shop_companion_filter_translations( $array ) {
|
12 |
+
return array_merge( $array, array(
|
13 |
+
'translations/translations-services-section',
|
14 |
+
'translations/translations-team-section',
|
15 |
+
'translations/translations-testimonials-section',
|
16 |
+
) );
|
17 |
+
}
|
18 |
+
add_filter( 'azera_shop_filter_translations', 'azera_shop_companion_filter_translations' );
|
obfx_modules/companion-legacy/inc/azera-shop/inc/translations/translations-services-section.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Translation functions for services section
|
4 |
+
*
|
5 |
+
* @package azera-shop-companion
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Get services section default content.
|
10 |
+
*/
|
11 |
+
function azera_shop_companion_sevices_get_default_content() {
|
12 |
+
return json_encode( array(
|
13 |
+
array(
|
14 |
+
'choice' => 'azera_shop_icon',
|
15 |
+
'icon_value' => 'fa-cogs',
|
16 |
+
'title' => esc_html__( 'Lorem Ipsum', 'themeisle-companion' ),
|
17 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.', 'themeisle-companion' )
|
18 |
+
),
|
19 |
+
array( 'choice' => 'azera_shop_icon',
|
20 |
+
'icon_value' => 'fa-bar-chart-o',
|
21 |
+
'title' => esc_html__( 'Lorem Ipsum', 'themeisle-companion' ),
|
22 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.', 'themeisle-companion' )
|
23 |
+
),
|
24 |
+
array( 'choice' => 'azera_shop_icon',
|
25 |
+
'icon_value' => 'fa-globe',
|
26 |
+
'title' => esc_html__( 'Lorem Ipsum', 'themeisle-companion' ),
|
27 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.', 'themeisle-companion' )
|
28 |
+
)
|
29 |
+
)
|
30 |
+
);
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Register strings for polylang.
|
35 |
+
*/
|
36 |
+
function azera_shop_companion_sevices_register_strings() {
|
37 |
+
if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'azera_shop_pll_string_register_helper' ) ) {
|
38 |
+
return;
|
39 |
+
}
|
40 |
+
|
41 |
+
$default = azera_shop_companion_sevices_get_default_content();
|
42 |
+
azera_shop_pll_string_register_helper( 'azera_shop_services_content', $default, 'Services section' );
|
43 |
+
}
|
44 |
+
add_action( 'after_setup_theme', 'azera_shop_companion_sevices_register_strings', 11 );
|
obfx_modules/companion-legacy/inc/azera-shop/inc/translations/translations-team-section.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Translation functions for team section
|
4 |
+
*
|
5 |
+
* @package azera-shop-companion
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Get team section default content.
|
11 |
+
*/
|
12 |
+
function azera_shop_companion_team_get_default_content() {
|
13 |
+
return json_encode( array(
|
14 |
+
array(
|
15 |
+
'image_url' => azera_shop_get_file( '/images/team/1.jpg' ),
|
16 |
+
'title' => esc_html__( 'Albert Jacobs', 'themeisle-companion' ),
|
17 |
+
'subtitle' => esc_html__( 'Founder & CEO', 'themeisle-companion' )
|
18 |
+
),
|
19 |
+
array(
|
20 |
+
'image_url' => azera_shop_get_file( '/images/team/2.jpg' ),
|
21 |
+
'title' => esc_html__( 'Tonya Garcia', 'themeisle-companion' ),
|
22 |
+
'subtitle' => esc_html__( 'Account Manager', 'themeisle-companion' )
|
23 |
+
),
|
24 |
+
array(
|
25 |
+
'image_url' => azera_shop_get_file( '/images/team/3.jpg' ),
|
26 |
+
'title' => esc_html__( 'Linda Guthrie', 'themeisle-companion' ),
|
27 |
+
'subtitle' => esc_html__( 'Business Development', 'themeisle-companion' )
|
28 |
+
)
|
29 |
+
) );
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Register strings for polylang.
|
34 |
+
*/
|
35 |
+
function azera_shop_companion_team_register_strings() {
|
36 |
+
if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'azera_shop_pll_string_register_helper' ) ) {
|
37 |
+
return;
|
38 |
+
}
|
39 |
+
|
40 |
+
$default = azera_shop_companion_team_get_default_content();
|
41 |
+
azera_shop_pll_string_register_helper( 'azera_shop_team_content', $default, 'Team section' );
|
42 |
+
}
|
43 |
+
|
44 |
+
add_action( 'after_setup_theme', 'azera_shop_companion_team_register_strings', 11 );
|
obfx_modules/companion-legacy/inc/azera-shop/inc/translations/translations-testimonials-section.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Translation functions for testimonials section
|
4 |
+
*
|
5 |
+
* @package llorix-one-companion
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Get testimonials section default content.
|
11 |
+
*/
|
12 |
+
function azera_shop_companion_testimonials_get_default_content() {
|
13 |
+
return json_encode(
|
14 |
+
array(
|
15 |
+
array(
|
16 |
+
'image_url' => azera_shop_get_file( '/images/clients/1.jpg' ),
|
17 |
+
'title' => esc_html__( 'Happy Customer', 'themeisle-companion' ),
|
18 |
+
'subtitle' => esc_html__( 'Lorem ipsum', 'themeisle-companion' ),
|
19 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.', 'themeisle-companion' )
|
20 |
+
),
|
21 |
+
array(
|
22 |
+
'image_url' => azera_shop_get_file( '/images/clients/2.jpg' ),
|
23 |
+
'title' => esc_html__( 'Happy Customer', 'themeisle-companion' ),
|
24 |
+
'subtitle' => esc_html__( 'Lorem ipsum', 'themeisle-companion' ),
|
25 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.', 'themeisle-companion' )
|
26 |
+
),
|
27 |
+
array(
|
28 |
+
'image_url' => azera_shop_get_file( '/images/clients/3.jpg' ),
|
29 |
+
'title' => esc_html__( 'Happy Customer', 'themeisle-companion' ),
|
30 |
+
'subtitle' => esc_html__( 'Lorem ipsum', 'themeisle-companion' ),
|
31 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.', 'themeisle-companion' )
|
32 |
+
)
|
33 |
+
)
|
34 |
+
);
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Register strings for polylang.
|
39 |
+
*/
|
40 |
+
function azera_shop_companion_testimonials_register_strings() {
|
41 |
+
if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'azera_shop_pll_string_register_helper' ) ) {
|
42 |
+
return;
|
43 |
+
}
|
44 |
+
|
45 |
+
$default = azera_shop_companion_testimonials_get_default_content();
|
46 |
+
azera_shop_pll_string_register_helper( 'azera_shop_testimonials_content', $default, 'Testimonials section' );
|
47 |
+
}
|
48 |
+
|
49 |
+
add_action( 'after_setup_theme', 'azera_shop_companion_testimonials_register_strings', 11 );
|
obfx_modules/companion-legacy/inc/azera-shop/sections/azera_shop_happy_customers_section.php
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: CUSTOMERS
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
$azera_shop_happy_customers_show = get_theme_mod( 'azera_shop_happy_customers_show' );
|
6 |
+
$azera_shop_happy_customers_title = get_theme_mod( 'azera_shop_happy_customers_title', esc_html__( 'Happy Customers', 'themeisle-companion' ) );
|
7 |
+
$azera_shop_happy_customers_subtitle = get_theme_mod( 'azera_shop_happy_customers_subtitle', esc_html__( 'Cloud computing subscription model out of the box proactive solution.', 'themeisle-companion' ) );
|
8 |
+
$default = '';
|
9 |
+
if( function_exists('azera_shop_companion_testimonials_get_default_content')){
|
10 |
+
$default = azera_shop_companion_testimonials_get_default_content();
|
11 |
+
}
|
12 |
+
$azera_shop_testimonials_content = get_theme_mod( 'azera_shop_testimonials_content', $default );
|
13 |
+
if ( function_exists( 'azera_shop_general_repeater_is_empty' ) ){
|
14 |
+
$content_is_empty = azera_shop_general_repeater_is_empty( $azera_shop_testimonials_content );
|
15 |
+
} else {
|
16 |
+
$content_is_empty = empty( $azera_shop_testimonials_content );
|
17 |
+
}
|
18 |
+
$section_is_empty = ! isset( $azera_shop_happy_customers_show ) || $azera_shop_happy_customers_show == 1 || ( empty( $azera_shop_happy_customers_title ) && empty( $azera_shop_happy_customers_subtitle ) && $content_is_empty );
|
19 |
+
if( !$section_is_empty) { ?>
|
20 |
+
|
21 |
+
<section class="testimonials <?php if ($section_is_empty) {
|
22 |
+
echo 'azera_shop_only_customizer';
|
23 |
+
} ?>" id="customers" role="region" aria-label="<?php esc_attr_e('Testimonials', 'themeisle-companion') ?>">
|
24 |
+
<div class="section-overlay-layer">
|
25 |
+
<div class="container">
|
26 |
+
|
27 |
+
<!-- SECTION HEADER -->
|
28 |
+
<?php
|
29 |
+
if (!empty($azera_shop_happy_customers_title) || !empty($azera_shop_happy_customers_subtitle)) { ?>
|
30 |
+
<div class="section-header">
|
31 |
+
<?php
|
32 |
+
if (!empty($azera_shop_happy_customers_title)) { ?>
|
33 |
+
<h2 class="dark-text"><?php echo wp_kses_post($azera_shop_happy_customers_title); ?></h2>
|
34 |
+
<div class="colored-line"></div>
|
35 |
+
<?php
|
36 |
+
} elseif (is_customize_preview()) { ?>
|
37 |
+
<h2 class="dark-text azera_shop_only_customizer"></h2>
|
38 |
+
<div class="colored-line azera_shop_only_customizer"></div>
|
39 |
+
<?php
|
40 |
+
}
|
41 |
+
|
42 |
+
if (!empty($azera_shop_happy_customers_subtitle)) { ?>
|
43 |
+
<div class="sub-heading"><?php echo wp_kses_post($azera_shop_happy_customers_subtitle); ?></div>
|
44 |
+
<?php
|
45 |
+
} elseif (is_customize_preview()) { ?>
|
46 |
+
<div class="sub-heading azera_shop_only_customizer"></div>
|
47 |
+
<?php
|
48 |
+
} ?>
|
49 |
+
</div>
|
50 |
+
<?php
|
51 |
+
}
|
52 |
+
|
53 |
+
|
54 |
+
if (!empty($azera_shop_testimonials_content)) { ?>
|
55 |
+
<div id="happy_customers_wrap" class="testimonials-wrap">
|
56 |
+
<?php
|
57 |
+
$azera_shop_testimonials_content_decoded = json_decode($azera_shop_testimonials_content);
|
58 |
+
foreach ($azera_shop_testimonials_content_decoded as $azera_shop_testimonial) {
|
59 |
+
$image = !empty($azera_shop_testimonial->image_url) ? apply_filters('azera_shop_translate_single_string', $azera_shop_testimonial->image_url, 'Testimonials section') : '';
|
60 |
+
$title = !empty($azera_shop_testimonial->title) ? apply_filters('azera_shop_translate_single_string', $azera_shop_testimonial->title, 'Testimonials section') : '';
|
61 |
+
$subtitle = !empty($azera_shop_testimonial->subtitle) ? apply_filters('azera_shop_translate_single_string', $azera_shop_testimonial->subtitle, 'Testimonials section') : '';
|
62 |
+
$text = !empty($azera_shop_testimonial->text) ? apply_filters('azera_shop_translate_single_string', $azera_shop_testimonial->text, 'Testimonials section') : '';
|
63 |
+
$section_is_empty = empty($image) && empty($title) && empty($subtitle) && empty($text);
|
64 |
+
|
65 |
+
if (!$section_is_empty) { ?>
|
66 |
+
<!-- SINGLE FEEDBACK -->
|
67 |
+
<div class="testimonials-box">
|
68 |
+
<div class="feedback border-bottom-hover">
|
69 |
+
<div class="pic-container">
|
70 |
+
<div class="pic-container-inner">
|
71 |
+
<?php
|
72 |
+
if (!empty($image)) { ?>
|
73 |
+
<img src="<?php echo esc_url($image); ?>"
|
74 |
+
alt="<?php echo(!empty($title) ? esc_attr($title) : esc_attr('Avatar', 'themeisle-companion')); ?>">
|
75 |
+
<?php
|
76 |
+
} else {
|
77 |
+
$default_image = azera_shop_get_file('/images/clients/client-no-image.jpg'); ?>
|
78 |
+
<img src="<?php echo esc_url($default_image); ?>"
|
79 |
+
alt="<?php esc_attr_e('Avatar', 'themeisle-companion'); ?>">
|
80 |
+
<?php
|
81 |
+
} ?>
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
<?php
|
85 |
+
if (!empty($title) || !empty($subtitle) || !empty($text)) { ?>
|
86 |
+
<div class="feedback-text-wrap">
|
87 |
+
<?php
|
88 |
+
if (!empty($title)) { ?>
|
89 |
+
<h5 class="colored-text">
|
90 |
+
<?php
|
91 |
+
echo wp_kses_post($title); ?>
|
92 |
+
</h5>
|
93 |
+
<?php
|
94 |
+
}
|
95 |
+
|
96 |
+
if (!empty($subtitle)) { ?>
|
97 |
+
<div class="small-text">
|
98 |
+
<?php
|
99 |
+
echo wp_kses_post($subtitle); ?>
|
100 |
+
</div>
|
101 |
+
<?php
|
102 |
+
}
|
103 |
+
|
104 |
+
if (!empty($text)) { ?>
|
105 |
+
<p>
|
106 |
+
<?php
|
107 |
+
echo wp_kses_post($text); ?>
|
108 |
+
</p>
|
109 |
+
<?php
|
110 |
+
} ?>
|
111 |
+
</div>
|
112 |
+
<?php
|
113 |
+
} ?>
|
114 |
+
</div>
|
115 |
+
</div><!-- .testimonials-box -->
|
116 |
+
<?php
|
117 |
+
}
|
118 |
+
} ?>
|
119 |
+
</div>
|
120 |
+
<?php
|
121 |
+
} ?>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</section>
|
125 |
+
<?php
|
126 |
+
}
|
obfx_modules/companion-legacy/inc/azera-shop/sections/azera_shop_our_services_section.php
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$azera_shop_our_services_show = get_theme_mod( 'azera_shop_our_services_show' );
|
3 |
+
$azera_shop_our_services_title = get_theme_mod( 'azera_shop_our_services_title', esc_html__( 'Our Services', 'themeisle-companion' ) );
|
4 |
+
$azera_shop_our_services_subtitle = get_theme_mod( 'azera_shop_our_services_subtitle', esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ) );
|
5 |
+
$default = '';
|
6 |
+
if( function_exists('azera_shop_companion_sevices_get_default_content')){
|
7 |
+
$default = azera_shop_companion_sevices_get_default_content();
|
8 |
+
}
|
9 |
+
$azera_shop_services = get_theme_mod( 'azera_shop_services_content', $default);
|
10 |
+
if ( function_exists( 'azera_shop_general_repeater_is_empty' ) ){
|
11 |
+
$content_is_empty = azera_shop_general_repeater_is_empty( $azera_shop_services );
|
12 |
+
} else {
|
13 |
+
$content_is_empty = empty( $azera_shop_services );
|
14 |
+
}
|
15 |
+
$section_is_empty = ! isset( $azera_shop_our_services_show ) || $azera_shop_our_services_show == 1 || ( empty( $azera_shop_our_services_title ) && empty( $azera_shop_our_services_subtitle ) && $content_is_empty );
|
16 |
+
if( !$section_is_empty ){ ?>
|
17 |
+
|
18 |
+
<section class="services <?php if ($section_is_empty) {
|
19 |
+
echo 'azera_shop_only_customizer';
|
20 |
+
} ?>" id="services" role="region" aria-label="<?php esc_attr_e('Services', 'themeisle-companion') ?>">
|
21 |
+
<div class="section-overlay-layer">
|
22 |
+
<div class="container">
|
23 |
+
<div class="section-header">
|
24 |
+
<?php
|
25 |
+
if (!empty($azera_shop_our_services_title)) { ?>
|
26 |
+
<h2 class="dark-text"><?php echo wp_kses_post($azera_shop_our_services_title); ?></h2>
|
27 |
+
<div class="colored-line"></div>
|
28 |
+
<?php
|
29 |
+
} elseif (is_customize_preview()) { ?>
|
30 |
+
<h2 class="dark-text azera_shop_only_customizer"></h2>
|
31 |
+
<div class="colored-line azera_shop_only_customizer"></div>
|
32 |
+
<?php
|
33 |
+
}
|
34 |
+
|
35 |
+
if (!empty($azera_shop_our_services_subtitle)) { ?>
|
36 |
+
<div class="sub-heading"><?php echo wp_kses_post($azera_shop_our_services_subtitle); ?></div>
|
37 |
+
<?php
|
38 |
+
} elseif (is_customize_preview()) { ?>
|
39 |
+
<div class="sub-heading azera_shop_only_customizer"></div>
|
40 |
+
<?php
|
41 |
+
} ?>
|
42 |
+
</div>
|
43 |
+
|
44 |
+
<?php
|
45 |
+
if (!$content_is_empty) {
|
46 |
+
$azera_shop_services_decoded = json_decode($azera_shop_services); ?>
|
47 |
+
<div id="our_services_wrap" class="services-wrap">
|
48 |
+
<?php
|
49 |
+
foreach ($azera_shop_services_decoded as $azera_shop_service_box) {
|
50 |
+
$choice = !empty($azera_shop_service_box->choice) ? $azera_shop_service_box->choice : '';
|
51 |
+
$icon = !empty($azera_shop_service_box->icon_value) ? apply_filters('azera_shop_translate_single_string', $azera_shop_service_box->icon_value, 'Services section') : '';
|
52 |
+
$image = !empty($azera_shop_service_box->image_url) ? apply_filters('azera_shop_translate_single_string', $azera_shop_service_box->image_url, 'Services section') : '';
|
53 |
+
$title = !empty($azera_shop_service_box->title) ? apply_filters('azera_shop_translate_single_string', $azera_shop_service_box->title, 'Services section') : '';
|
54 |
+
$text = !empty($azera_shop_service_box->text) ? apply_filters('azera_shop_translate_single_string', $azera_shop_service_box->text, 'Services section') : '';
|
55 |
+
$link = !empty($azera_shop_service_box->link) ? apply_filters('azera_shop_translate_single_string', $azera_shop_service_box->link, 'Services section') : '';
|
56 |
+
$section_is_empty = (empty($icon) || $icon === 'No Icon' && $choice === 'azera_shop_icon') && (empty($image) && $choice === 'azera_shop_image') && empty($title) && empty($text);
|
57 |
+
|
58 |
+
if (!$section_is_empty) { ?>
|
59 |
+
<div class="service-box">
|
60 |
+
<div class="single-service border-bottom-hover">
|
61 |
+
<?php
|
62 |
+
if (!empty($choice) && $choice !== 'azera_shop_none') {
|
63 |
+
|
64 |
+
if ($choice === 'azera_shop_icon') {
|
65 |
+
if (!empty($icon)) {
|
66 |
+
if (!empty($link)) { ?>
|
67 |
+
<div class="service-icon colored-text">
|
68 |
+
<a href="<?php echo esc_url($link); ?>">
|
69 |
+
<i class="fa <?php echo esc_attr($icon); ?>"></i>
|
70 |
+
</a>
|
71 |
+
</div>
|
72 |
+
<?php
|
73 |
+
} else { ?>
|
74 |
+
<div class="service-icon colored-text">
|
75 |
+
<i class="fa <?php echo esc_attr($icon); ?>"></i>
|
76 |
+
</div>
|
77 |
+
<?php
|
78 |
+
}
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
if ($choice === 'azera_shop_image') {
|
83 |
+
if (!empty($image)) {
|
84 |
+
if (!empty($link)) { ?>
|
85 |
+
<a href="<?php echo esc_url($link); ?>">
|
86 |
+
<img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : ''); ?> />
|
87 |
+
</a>
|
88 |
+
<?php
|
89 |
+
} else { ?>
|
90 |
+
<img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : ''); ?> />
|
91 |
+
<?php
|
92 |
+
}
|
93 |
+
}
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
if (!empty($title)) {
|
98 |
+
if (!empty($link)) { ?>
|
99 |
+
<h3 class="colored-text">
|
100 |
+
<a href="<?php echo esc_url($link); ?>"><?php echo wp_kses_post($title); ?></a>
|
101 |
+
</h3>
|
102 |
+
<?php
|
103 |
+
} else { ?>
|
104 |
+
<h3 class="colored-text"><?php echo wp_kses_post($title); ?></h3>
|
105 |
+
<?php
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
if (!empty($text)) { ?>
|
110 |
+
<p><?php echo wp_kses_post($text); ?></p>
|
111 |
+
<?php
|
112 |
+
} ?>
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
+
<?php
|
116 |
+
}
|
117 |
+
} ?>
|
118 |
+
</div>
|
119 |
+
<?php
|
120 |
+
} ?>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</section>
|
124 |
+
<?php
|
125 |
+
}
|
obfx_modules/companion-legacy/inc/azera-shop/sections/azera_shop_our_team_section.php
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: TEAM
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
$azera_shop_our_team_show = get_theme_mod( 'azera_shop_our_team_show' );
|
6 |
+
$azera_shop_our_team_title = get_theme_mod( 'azera_shop_our_team_title', esc_html__( 'Our Team', 'themeisle-companion' ) );
|
7 |
+
$azera_shop_our_team_background = get_theme_mod( 'azera_shop_our_team_background', azera_shop_get_file( '/images/background-images/parallax-img/team-img.jpg' ) );
|
8 |
+
$azera_shop_our_team_subtitle = get_theme_mod( 'azera_shop_our_team_subtitle', esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ) );
|
9 |
+
$default = '';
|
10 |
+
if( function_exists('azera_shop_companion_team_get_default_content') ){
|
11 |
+
$default = azera_shop_companion_team_get_default_content();
|
12 |
+
}
|
13 |
+
$azera_shop_team_content = get_theme_mod( 'azera_shop_team_content', $default );
|
14 |
+
if ( function_exists( 'azera_shop_general_repeater_is_empty' ) ){
|
15 |
+
$content_is_empty = azera_shop_general_repeater_is_empty( $azera_shop_team_content );
|
16 |
+
} else {
|
17 |
+
$content_is_empty = empty( $azera_shop_team_content );
|
18 |
+
}
|
19 |
+
$section_is_empty = ! isset( $azera_shop_our_team_show ) || $azera_shop_our_team_show == 1 || ( empty( $azera_shop_our_team_title ) && empty( $azera_shop_our_team_subtitle ) && $content_is_empty );
|
20 |
+
if( !$section_is_empty){ ?>
|
21 |
+
<section class="team" id="team" role="region" aria-label="'<?php esc_attr_e( 'Team', 'themeisle-companion' ); ?>" <?php echo ! empty( $azera_shop_our_team_background ) ? 'style="background:url(' . esc_url( $azera_shop_our_team_background ) . ');"' : ''; ?>>
|
22 |
+
<div class="section-overlay-layer">
|
23 |
+
<div class="container">
|
24 |
+
<?php
|
25 |
+
if ( ! empty( $azera_shop_our_team_title ) || ! empty( $azera_shop_our_team_subtitle ) ) { ?>
|
26 |
+
<div class="section-header">
|
27 |
+
<?php
|
28 |
+
if ( ! empty( $azera_shop_our_team_title ) ) { ?>
|
29 |
+
<h2 class="dark-text"><?php echo esc_attr( $azera_shop_our_team_title ); ?></h2>
|
30 |
+
<div class="colored-line"></div>
|
31 |
+
<?php
|
32 |
+
} elseif ( is_customize_preview() ) { ?>
|
33 |
+
<h2 class="dark-text azera_shop_only_customizer"></h2>
|
34 |
+
<div class="colored-line azera_shop_only_customizer"></div>
|
35 |
+
<?php
|
36 |
+
}
|
37 |
+
|
38 |
+
if ( ! empty( $azera_shop_our_team_subtitle ) ) { ?>
|
39 |
+
<div class="sub-heading"><?php echo esc_attr( $azera_shop_our_team_subtitle ); ?></div>
|
40 |
+
<?php
|
41 |
+
} elseif ( is_customize_preview() ) { ?>
|
42 |
+
<div class="sub-heading azera_shop_only_customizer"></div>
|
43 |
+
<?php
|
44 |
+
} ?>
|
45 |
+
</div>
|
46 |
+
<?php
|
47 |
+
}
|
48 |
+
if ( ! $content_is_empty ) { ?>
|
49 |
+
<div class="row team-member-wrap">
|
50 |
+
<?php
|
51 |
+
$azera_shop_team_decoded = json_decode( $azera_shop_team_content );
|
52 |
+
foreach ( $azera_shop_team_decoded as $azera_shop_team_member ) {
|
53 |
+
$title = ! empty( $azera_shop_team_member->title ) ? apply_filters( 'azera_shop_translate_single_string', $azera_shop_team_member->title, 'Team section' ) : '';
|
54 |
+
$subtitle = ! empty( $azera_shop_team_member->subtitle ) ? apply_filters( 'azera_shop_translate_single_string', $azera_shop_team_member->subtitle, 'Team section' ) : '';
|
55 |
+
$image = ! empty( $azera_shop_team_member->image_url ) ? apply_filters( 'azera_shop_translate_single_string', $azera_shop_team_member->image_url, 'Team section' ) : '';
|
56 |
+
$section_is_empty = empty( $image ) && empty( $title ) && empty( $subtitle );
|
57 |
+
if ( ! $section_is_empty ) { ?>
|
58 |
+
<div class="col-md-3 team-member-box">
|
59 |
+
<div class="team-member border-bottom-hover">
|
60 |
+
<div class="member-pic">
|
61 |
+
<?php
|
62 |
+
if ( ! empty( $image ) ) { ?>
|
63 |
+
<img src="<?php echo esc_url( $image ); ?>" <?php echo( ! empty( $title ) ? 'alt="' . esc_attr( $title ) . '"' : esc_html__( 'Avatar', 'themeisle-companion' ) ); ?>>
|
64 |
+
<?php
|
65 |
+
} else {
|
66 |
+
$default_url = azera_shop_get_file( '/images/team/default.png' ); ?>
|
67 |
+
<img src="<?php echo esc_url( $default_url ); ?>" alt="<?php esc_attr_e( 'Avatar', 'themeisle-companion' ); ?>">
|
68 |
+
<?php
|
69 |
+
} ?>
|
70 |
+
</div><!-- .member-pic -->
|
71 |
+
|
72 |
+
<?php
|
73 |
+
if ( ! empty( $title ) || ! empty( $subtitle ) ) { ?>
|
74 |
+
<div class="member-details">
|
75 |
+
<div class="member-details-inner">
|
76 |
+
<?php
|
77 |
+
if ( ! empty( $title ) ) { ?>
|
78 |
+
<h5 class="colored-text"> <?php echo wp_kses_post( $title ); ?></h5>
|
79 |
+
<?php
|
80 |
+
}
|
81 |
+
|
82 |
+
if ( ! empty( $subtitle ) ) { ?>
|
83 |
+
<div class="small-text"><?php echo wp_kses_post( $subtitle ); ?></div>
|
84 |
+
<?php
|
85 |
+
} ?>
|
86 |
+
</div><!-- .member-details-inner -->
|
87 |
+
</div><!-- .member-details -->
|
88 |
+
<?php
|
89 |
+
} ?>
|
90 |
+
</div><!-- .team-member -->
|
91 |
+
</div><!-- .team-member -->
|
92 |
+
<!-- MEMBER -->
|
93 |
+
<?php
|
94 |
+
}
|
95 |
+
} ?>
|
96 |
+
</div>
|
97 |
+
<?php
|
98 |
+
} ?>
|
99 |
+
</div>
|
100 |
+
</div><!-- container -->
|
101 |
+
</section><!-- #section9 -->
|
102 |
+
<?php
|
103 |
+
}
|
obfx_modules/companion-legacy/inc/azera-shop/wpml-config.xml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<wpml-config>
|
2 |
+
<admin-texts>
|
3 |
+
<key name="theme_mods_themeisle-companion">
|
4 |
+
<key name="azera_shop_our_services_title" />
|
5 |
+
<key name="azera_shop_our_services_subtitle" />
|
6 |
+
<key name="azera_shop_our_team_title" />
|
7 |
+
<key name="azera_shop_our_team_subtitle" />
|
8 |
+
<key name="azera_shop_our_team_background" />
|
9 |
+
<key name="azera_shop_happy_customers_title" />
|
10 |
+
<key name="azera_shop_happy_customers_subttle" />
|
11 |
+
</key>
|
12 |
+
</admin-texts>
|
13 |
+
</wpml-config>
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-clients-bar-section.php
CHANGED
@@ -46,7 +46,7 @@ if ( ! function_exists( 'hestia_clients_bar' ) ) :
|
|
46 |
hestia_clients_bar_section_content_trigger();
|
47 |
}
|
48 |
?>
|
49 |
-
<div class="row"
|
50 |
<?php
|
51 |
$array_length = sizeof( $hestia_clients_bar_content_decoded );
|
52 |
foreach ( $hestia_clients_bar_content_decoded as $client ) {
|
46 |
hestia_clients_bar_section_content_trigger();
|
47 |
}
|
48 |
?>
|
49 |
+
<div class="row">
|
50 |
<?php
|
51 |
$array_length = sizeof( $hestia_clients_bar_content_decoded );
|
52 |
foreach ( $hestia_clients_bar_content_decoded as $client ) {
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-features-section.php
CHANGED
@@ -97,7 +97,7 @@ function hestia_features_content( $hestia_features_content, $is_callback = false
|
|
97 |
|
98 |
$hestia_features_content = json_decode( $hestia_features_content );
|
99 |
if ( ! empty( $hestia_features_content ) ) {
|
100 |
-
echo '<div class="row"
|
101 |
foreach ( $hestia_features_content as $features_item ) :
|
102 |
$icon = ! empty( $features_item->icon_value ) ? apply_filters( 'hestia_translate_single_string', $features_item->icon_value, 'Features section' ) : '';
|
103 |
$image = ! empty( $features_item->image_url ) ? apply_filters( 'hestia_translate_single_string', $features_item->image_url, 'Features section' ) : '';
|
97 |
|
98 |
$hestia_features_content = json_decode( $hestia_features_content );
|
99 |
if ( ! empty( $hestia_features_content ) ) {
|
100 |
+
echo '<div class="row">';
|
101 |
foreach ( $hestia_features_content as $features_item ) :
|
102 |
$icon = ! empty( $features_item->icon_value ) ? apply_filters( 'hestia_translate_single_string', $features_item->icon_value, 'Features section' ) : '';
|
103 |
$image = ! empty( $features_item->image_url ) ? apply_filters( 'hestia_translate_single_string', $features_item->image_url, 'Features section' ) : '';
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-ribbon-section.php
CHANGED
@@ -47,7 +47,7 @@ if ( ! function_exists( 'hestia_ribbon' ) ) :
|
|
47 |
<?php hestia_ribbon_background(); ?>
|
48 |
<div class="container">
|
49 |
<div class="row hestia-xs-text-center hestia-like-table">
|
50 |
-
<div class="col-md-8"
|
51 |
<?php if ( ! empty( $hestia_ribbon_text ) ) { ?>
|
52 |
<h2 class="hestia-title" style="margin:0;">
|
53 |
<?php echo wp_kses_post( $hestia_ribbon_text ); ?>
|
@@ -56,7 +56,7 @@ if ( ! function_exists( 'hestia_ribbon' ) ) :
|
|
56 |
}
|
57 |
?>
|
58 |
</div>
|
59 |
-
<div class="col-md-4 text-center"
|
60 |
<?php
|
61 |
|
62 |
if ( ! empty( $hestia_ribbon_button_text ) && ! empty( $hestia_ribbon_button_url ) ) {
|
47 |
<?php hestia_ribbon_background(); ?>
|
48 |
<div class="container">
|
49 |
<div class="row hestia-xs-text-center hestia-like-table">
|
50 |
+
<div class="col-md-8">
|
51 |
<?php if ( ! empty( $hestia_ribbon_text ) ) { ?>
|
52 |
<h2 class="hestia-title" style="margin:0;">
|
53 |
<?php echo wp_kses_post( $hestia_ribbon_text ); ?>
|
56 |
}
|
57 |
?>
|
58 |
</div>
|
59 |
+
<div class="col-md-4 text-center">
|
60 |
<?php
|
61 |
|
62 |
if ( ! empty( $hestia_ribbon_button_text ) && ! empty( $hestia_ribbon_button_url ) ) {
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-team-section.php
CHANGED
@@ -114,7 +114,7 @@ function hestia_team_content( $hestia_team_content, $is_callback = false ) {
|
|
114 |
$text = ! empty( $team_item->text ) ? apply_filters( 'hestia_translate_single_string', $team_item->text, 'Team section' ) : '';
|
115 |
$link = ! empty( $team_item->link ) ? apply_filters( 'hestia_translate_single_string', $team_item->link, 'Team section' ) : '';
|
116 |
?>
|
117 |
-
<div class="col-xs-12 col-ms-6 col-sm-6"
|
118 |
<div class="card card-profile card-plain">
|
119 |
<div class="col-md-5">
|
120 |
<div class="card-image">
|
114 |
$text = ! empty( $team_item->text ) ? apply_filters( 'hestia_translate_single_string', $team_item->text, 'Team section' ) : '';
|
115 |
$link = ! empty( $team_item->link ) ? apply_filters( 'hestia_translate_single_string', $team_item->link, 'Team section' ) : '';
|
116 |
?>
|
117 |
+
<div class="col-xs-12 col-ms-6 col-sm-6">
|
118 |
<div class="card card-profile card-plain">
|
119 |
<div class="col-md-5">
|
120 |
<div class="card-image">
|
obfx_modules/companion-legacy/inc/hestia/inc/sections/hestia-testimonials-section.php
CHANGED
@@ -116,7 +116,7 @@ function hestia_testimonials_content( $hestia_testimonials_content, $is_callback
|
|
116 |
$link = ! empty( $testimonial_item->link ) ? apply_filters( 'hestia_translate_single_string', $testimonial_item->link, 'Testimonials section' ) : '';
|
117 |
?>
|
118 |
<div class="col-xs-12 col-ms-6 col-sm-6 <?php echo apply_filters( 'hestia_testimonials_per_row_class','col-md-4' ); ?>">
|
119 |
-
<div class="card card-testimonial card-plain"
|
120 |
<?php
|
121 |
if ( ! empty( $image ) ) :
|
122 |
/**
|
116 |
$link = ! empty( $testimonial_item->link ) ? apply_filters( 'hestia_translate_single_string', $testimonial_item->link, 'Testimonials section' ) : '';
|
117 |
?>
|
118 |
<div class="col-xs-12 col-ms-6 col-sm-6 <?php echo apply_filters( 'hestia_testimonials_per_row_class','col-md-4' ); ?>">
|
119 |
+
<div class="card card-testimonial card-plain">
|
120 |
<?php
|
121 |
if ( ! empty( $image ) ) :
|
122 |
/**
|
obfx_modules/companion-legacy/inc/llorix-one-companion/css/style.css
ADDED
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*---------------------------------------
|
2 |
+
SECTION: SERVICES
|
3 |
+
-----------------------------------------*/
|
4 |
+
.services-wrap {
|
5 |
+
text-align: center;
|
6 |
+
position: relative;
|
7 |
+
padding-bottom: 50px;
|
8 |
+
}
|
9 |
+
|
10 |
+
.services {
|
11 |
+
background-color: #FFF;
|
12 |
+
border-bottom: 1px solid #eaebec;
|
13 |
+
}
|
14 |
+
|
15 |
+
.services .section-overlay-layer {
|
16 |
+
}
|
17 |
+
|
18 |
+
.single-service {
|
19 |
+
padding: 40px 20px 40px 20px;
|
20 |
+
background: #ffffff;
|
21 |
+
-webkit-border-radius: 3px;
|
22 |
+
-moz-border-radius: 3px;
|
23 |
+
border-radius: 3px;
|
24 |
+
-webkit-transition: all ease 0.55s;
|
25 |
+
transition: all ease 0.55s;
|
26 |
+
}
|
27 |
+
|
28 |
+
.services-wrap .service-box {
|
29 |
+
display: inline-block;
|
30 |
+
width: 100%;
|
31 |
+
text-align: center;
|
32 |
+
}
|
33 |
+
|
34 |
+
.single-service > h3 > a:hover, .service-icon > a:hover{
|
35 |
+
text-decoration:none;
|
36 |
+
}
|
37 |
+
|
38 |
+
.services-wrap > .service-box {
|
39 |
+
width: 31.5%;
|
40 |
+
margin: 0 1%;
|
41 |
+
margin-bottom: 30px;
|
42 |
+
vertical-align: top;
|
43 |
+
}
|
44 |
+
|
45 |
+
.services-wrap > .service-box:nth-child(3n+1){
|
46 |
+
margin-left: 0;
|
47 |
+
clear: left;
|
48 |
+
}
|
49 |
+
|
50 |
+
.services-wrap > .service-box:nth-child(3n){
|
51 |
+
margin-right: 0;
|
52 |
+
clear: right;
|
53 |
+
}
|
54 |
+
|
55 |
+
.service-icon {
|
56 |
+
font-size: 60px;
|
57 |
+
margin-bottom: 35px;
|
58 |
+
}
|
59 |
+
|
60 |
+
.single-service h3 {
|
61 |
+
color: #1395ba;
|
62 |
+
margin-bottom: 15px;
|
63 |
+
padding-top: 5px;
|
64 |
+
}
|
65 |
+
|
66 |
+
.galcolumn .single-service {
|
67 |
+
width: 100%;
|
68 |
+
}
|
69 |
+
|
70 |
+
.display-none {
|
71 |
+
display: none !important;
|
72 |
+
}
|
73 |
+
|
74 |
+
/*---------------------------------------
|
75 |
+
SECTION: TESTIMONIALS
|
76 |
+
-----------------------------------------*/
|
77 |
+
.testimonials {
|
78 |
+
text-align: center;
|
79 |
+
background-color: #FFF;
|
80 |
+
border-bottom: 1px solid #eaebec;
|
81 |
+
}
|
82 |
+
|
83 |
+
.testimonials .section-overlay-layer {
|
84 |
+
padding-bottom: 20px;
|
85 |
+
}
|
86 |
+
|
87 |
+
.feedback {
|
88 |
+
padding: 0 30px;
|
89 |
+
margin-bottom: 45px;
|
90 |
+
}
|
91 |
+
|
92 |
+
.feedback .pic-container {
|
93 |
+
top: -40px;
|
94 |
+
width: 100%;
|
95 |
+
position: absolute;
|
96 |
+
}
|
97 |
+
|
98 |
+
.feedback .pic-container-inner {
|
99 |
+
-webkit-border-radius: 50%;
|
100 |
+
-moz-border-radius: 50%;
|
101 |
+
border-radius: 50%;
|
102 |
+
display: inline-block;
|
103 |
+
overflow: hidden;
|
104 |
+
background-clip: padding-box;
|
105 |
+
width: 170px;
|
106 |
+
height: 170px;
|
107 |
+
box-shadow: 0px 0px 0px 5px #f5f5f5;
|
108 |
+
background-color: #f5f5f5;
|
109 |
+
border: 5px solid #e5e5e5;
|
110 |
+
}
|
111 |
+
|
112 |
+
.feedback .pic-container img {
|
113 |
+
width: 100%;
|
114 |
+
}
|
115 |
+
|
116 |
+
.feedback p {
|
117 |
+
font-style: italic;
|
118 |
+
margin-top: 20px;
|
119 |
+
margin-bottom: 0;
|
120 |
+
}
|
121 |
+
|
122 |
+
.feedback h5 {
|
123 |
+
margin-bottom: 0;
|
124 |
+
}
|
125 |
+
|
126 |
+
.feedback-text-wrap {
|
127 |
+
padding: 0 20px;
|
128 |
+
}
|
129 |
+
|
130 |
+
.testimonials-box {
|
131 |
+
text-align: center;
|
132 |
+
width: 100%;
|
133 |
+
}
|
134 |
+
|
135 |
+
.testimonials-wrap {
|
136 |
+
position: relative;
|
137 |
+
}
|
138 |
+
|
139 |
+
.testimonials-wrap .testimonials-box {
|
140 |
+
display: inline-block;
|
141 |
+
-webkit-transition: all .2s ease;
|
142 |
+
-moz-transition: all .2s ease;
|
143 |
+
-o-transition: all .2s ease;
|
144 |
+
transition: all .2s ease;
|
145 |
+
}
|
146 |
+
|
147 |
+
.testimonials-box .feedback {
|
148 |
+
padding: 145px 0 40px 0;
|
149 |
+
margin: 40px 0 30px 0;
|
150 |
+
background: #ffffff;
|
151 |
+
-webkit-border-radius: 3px;
|
152 |
+
-moz-border-radius: 3px;
|
153 |
+
border-radius: 3px;
|
154 |
+
-webkit-transition: all ease 0.55s;
|
155 |
+
transition: all ease 0.55s;
|
156 |
+
position: relative;
|
157 |
+
}
|
158 |
+
|
159 |
+
.testimonials-box .feedback:hover {
|
160 |
+
border-bottom-color: #f16c20;
|
161 |
+
}
|
162 |
+
|
163 |
+
.galcolumn .testimonials-box {
|
164 |
+
width: 100%;
|
165 |
+
}
|
166 |
+
|
167 |
+
.testimonials-wrap > .testimonials-box {
|
168 |
+
width: 31.5%;
|
169 |
+
margin: 0 1.15% 0 1.15%;
|
170 |
+
margin-bottom: 30px;
|
171 |
+
vertical-align: top;
|
172 |
+
}
|
173 |
+
|
174 |
+
.testimonials-wrap > .testimonials-box:nth-child(3n+1) {
|
175 |
+
margin-left: 0;
|
176 |
+
clear: left;
|
177 |
+
}
|
178 |
+
|
179 |
+
.testimonials-wrap > .testimonials-box:nth-child(3n) {
|
180 |
+
margin-right: 0;
|
181 |
+
clear: right;
|
182 |
+
}
|
183 |
+
|
184 |
+
/*---------------------------------------
|
185 |
+
SECTION: TEAM
|
186 |
+
-----------------------------------------*/
|
187 |
+
.team {
|
188 |
+
background-color: #FFF;
|
189 |
+
border-bottom: 1px solid #eaebec;
|
190 |
+
background-position: 50% 50%;
|
191 |
+
background-repeat: no-repeat;
|
192 |
+
background-attachment: fixed;
|
193 |
+
background-size: cover;
|
194 |
+
border-bottom: 1px solid #F3F3F3;
|
195 |
+
}
|
196 |
+
|
197 |
+
.team .section-overlay-layer {
|
198 |
+
padding-bottom: 50px;
|
199 |
+
background: rgba(13, 60, 85, 0.8);
|
200 |
+
}
|
201 |
+
|
202 |
+
.team .sub-heading {
|
203 |
+
color: #FFF;
|
204 |
+
}
|
205 |
+
|
206 |
+
.team .dark-text {
|
207 |
+
color: #FFF;
|
208 |
+
}
|
209 |
+
|
210 |
+
.team-member {
|
211 |
+
margin-bottom: 25px;
|
212 |
+
position: relative;
|
213 |
+
overflow: hidden;
|
214 |
+
min-height: 100px;
|
215 |
+
-webkit-border-radius: 50%;
|
216 |
+
-moz-border-radius: 50%;
|
217 |
+
border-radius: 50%;
|
218 |
+
}
|
219 |
+
|
220 |
+
.team-member .social-icons {
|
221 |
+
opacity: 1;
|
222 |
+
margin-top: 5px;
|
223 |
+
position: relative;
|
224 |
+
-webkit-transition: all ease 0.55s;
|
225 |
+
transition: all ease 0.55s;
|
226 |
+
margin-bottom: 0;
|
227 |
+
margin-top: 0;
|
228 |
+
}
|
229 |
+
|
230 |
+
.team-member .social-icons li {
|
231 |
+
display: inline-block;
|
232 |
+
padding-left: 5px;
|
233 |
+
padding-right: 5px;
|
234 |
+
padding-top: 3px;
|
235 |
+
}
|
236 |
+
|
237 |
+
.team-member .social-icons li a {
|
238 |
+
opacity: 0.9;
|
239 |
+
}
|
240 |
+
|
241 |
+
.team-member .social-icons li a:hover {
|
242 |
+
opacity: 1;
|
243 |
+
text-decoration: none;
|
244 |
+
}
|
245 |
+
|
246 |
+
.team-member:hover .social-icons {
|
247 |
+
opacity: 1;
|
248 |
+
}
|
249 |
+
|
250 |
+
.member-pic {
|
251 |
+
border: none;
|
252 |
+
-webkit-border-radius: 0px;
|
253 |
+
-moz-border-radius: 0px;
|
254 |
+
border-radius: 0px;
|
255 |
+
width: 183px;
|
256 |
+
height: 183px;
|
257 |
+
}
|
258 |
+
|
259 |
+
.member-pic img {
|
260 |
+
width: 183px;
|
261 |
+
height: 183px;
|
262 |
+
}
|
263 |
+
|
264 |
+
.member-details {
|
265 |
+
left: 0;
|
266 |
+
position: absolute;
|
267 |
+
color: #FFF;
|
268 |
+
display: table;
|
269 |
+
overflow: hidden;
|
270 |
+
height: 183px;
|
271 |
+
width: 183px;
|
272 |
+
bottom: 100%;
|
273 |
+
-webkit-transition: all 0.3s;
|
274 |
+
-moz-transition: all 0.3s;
|
275 |
+
-o-transition: all 0.3s;
|
276 |
+
transition: all 0.3s;
|
277 |
+
background: rgba(0,0,0,0);
|
278 |
+
text-align: center;
|
279 |
+
}
|
280 |
+
|
281 |
+
.member-details h5 {
|
282 |
+
margin: 0;
|
283 |
+
margin-bottom: 5px;
|
284 |
+
color: #FFF;
|
285 |
+
}
|
286 |
+
|
287 |
+
.team-member-wrap {
|
288 |
+
text-align: center;
|
289 |
+
}
|
290 |
+
|
291 |
+
.team-member-wrap .team-member-box {
|
292 |
+
float: none;
|
293 |
+
display: inline-block;
|
294 |
+
margin-right: -4px;
|
295 |
+
vertical-align: top;
|
296 |
+
padding-right: 55px;
|
297 |
+
padding-left: 55px;
|
298 |
+
padding-bottom: 30px;
|
299 |
+
}
|
300 |
+
|
301 |
+
.member-details-inner {
|
302 |
+
display: table-cell;
|
303 |
+
vertical-align: middle;
|
304 |
+
}
|
305 |
+
|
306 |
+
.team-member:hover .member-details {
|
307 |
+
bottom: 0;
|
308 |
+
-webkit-transition: all 0.3s;
|
309 |
+
-moz-transition: all 0.3s;
|
310 |
+
-o-transition: all 0.3s;
|
311 |
+
transition: all 0.3s;
|
312 |
+
background: rgba(241,108,32,0.7);
|
313 |
+
}
|
314 |
+
|
315 |
+
@media (min-width: 992px) and (max-width: 1200px) {
|
316 |
+
.team-member-wrap .team-member-box {
|
317 |
+
padding-right: 30px;
|
318 |
+
padding-left: 30px;
|
319 |
+
}
|
320 |
+
}
|
321 |
+
|
obfx_modules/companion-legacy/inc/llorix-one-companion/functions.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Llorix One Companion
|
4 |
+
Plugin URI: https://github.com/Codeinwp/llorix-one-companion
|
5 |
+
Description: Add Our team, Our Services and Testimonials sections to Llorix One Lite theme.
|
6 |
+
Version: 1.1.4
|
7 |
+
Author: Themeisle
|
8 |
+
Author URI: http://themeisle.com
|
9 |
+
Text Domain: llorix-one-companion
|
10 |
+
Domain Path: /languages
|
11 |
+
License: GPLv2
|
12 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
13 |
+
*/
|
14 |
+
|
15 |
+
if ( ! function_exists( 'add_action' ) ) {
|
16 |
+
die( 'Nothing to do...' );
|
17 |
+
}
|
18 |
+
|
19 |
+
/* Important constants */
|
20 |
+
define( 'LLORIX_ONE_COMPANION_VERSION', '1.1.4' );
|
21 |
+
define( 'LLORIX_ONE_COMPANION_URL', plugin_dir_url( __FILE__ ) );
|
22 |
+
define( 'LLORIX_ONE_COMPANION_PATH', plugin_dir_path( __FILE__ ) );
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Require section translations
|
26 |
+
*/
|
27 |
+
require LLORIX_ONE_COMPANION_PATH . 'inc/translations/general.php';
|
28 |
+
|
29 |
+
/* Required helper functions */
|
30 |
+
include_once( dirname( __FILE__ ) . '/inc/settings.php' );
|
31 |
+
|
32 |
+
|
33 |
+
/* Add new sections in Llorix One */
|
34 |
+
function llorix_one_companion_sections() {
|
35 |
+
return array(
|
36 |
+
'sections/llorix_one_lite_logos_section',
|
37 |
+
'our-services-section',
|
38 |
+
'sections/llorix_one_lite_our_story_section',
|
39 |
+
'our-team-section',
|
40 |
+
'happy-customers-section',
|
41 |
+
'sections/llorix_one_lite_content_section',
|
42 |
+
'sections/llorix_one_lite_ribbon_section',
|
43 |
+
'sections/llorix_one_lite_latest_news_section',
|
44 |
+
'sections/llorix_one_lite_contact_info_section',
|
45 |
+
'sections/llorix_one_lite_map_section'
|
46 |
+
);
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Load sections
|
51 |
+
*/
|
52 |
+
function llorix_one_companion_load_sections() {
|
53 |
+
|
54 |
+
add_filter('llorix_one_companion_sections_filter', 'llorix_one_companion_sections');
|
55 |
+
}
|
56 |
+
|
57 |
+
/* Register style sheet. */
|
58 |
+
function llorix_one_companion_register_plugin_styles() {
|
59 |
+
|
60 |
+
wp_enqueue_style( 'llorix-one-companion-style', LLORIX_ONE_COMPANION_URL.'css/style.css' );
|
61 |
+
|
62 |
+
}
|
obfx_modules/companion-legacy/inc/llorix-one-companion/images/team-img.jpg
ADDED
Binary file
|
obfx_modules/companion-legacy/inc/llorix-one-companion/inc/settings.php
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function llorix_one_companion_customize_register( $wp_customize ) {
|
4 |
+
|
5 |
+
if( class_exists('Llorix_One_Lite_General_Repeater') ) {
|
6 |
+
|
7 |
+
/********************************************************/
|
8 |
+
/****************** SERVICES OPTIONS *******************/
|
9 |
+
/********************************************************/
|
10 |
+
|
11 |
+
/* SERVICES SECTION */
|
12 |
+
$wp_customize->add_section( 'llorix_one_lite_services_section' , array(
|
13 |
+
'title' => esc_html__( 'Services section', 'themeisle-companion' ),
|
14 |
+
'priority' => 40,
|
15 |
+
'panel' => 'llorix_one_lite_front_page_sections',
|
16 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
17 |
+
));
|
18 |
+
|
19 |
+
/* Services show/hide */
|
20 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_services_show', array(
|
21 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
22 |
+
));
|
23 |
+
|
24 |
+
$wp_customize->add_control( 'llorix_one_lite_our_services_show', array(
|
25 |
+
'type' => 'checkbox',
|
26 |
+
'label' => __('Disable the Services section?','themeisle-companion'),
|
27 |
+
'section' => 'llorix_one_lite_services_section',
|
28 |
+
'priority' => 1,
|
29 |
+
));
|
30 |
+
|
31 |
+
/* Services title */
|
32 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_services_title', array(
|
33 |
+
'default' => esc_html__('Our Services','themeisle-companion'),
|
34 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
35 |
+
));
|
36 |
+
$wp_customize->add_control( 'llorix_one_lite_our_services_title', array(
|
37 |
+
'label' => esc_html__( 'Main title', 'themeisle-companion' ),
|
38 |
+
'section' => 'llorix_one_lite_services_section',
|
39 |
+
'priority' => 10
|
40 |
+
));
|
41 |
+
|
42 |
+
/* Services subtitle */
|
43 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_services_subtitle', array(
|
44 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','themeisle-companion'),
|
45 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
46 |
+
));
|
47 |
+
$wp_customize->add_control( 'llorix_one_lite_our_services_subtitle', array(
|
48 |
+
'label' => esc_html__( 'Subtitle', 'themeisle-companion' ),
|
49 |
+
'section' => 'llorix_one_lite_services_section',
|
50 |
+
'priority' => 20
|
51 |
+
));
|
52 |
+
|
53 |
+
|
54 |
+
/* Services content */
|
55 |
+
$default = llorix_one_companion_sevices_get_default_content();
|
56 |
+
$wp_customize->add_setting( 'llorix_one_lite_services_content', array(
|
57 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
58 |
+
'default' => $default,
|
59 |
+
));
|
60 |
+
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array(
|
61 |
+
'label' => esc_html__('Add new service box','themeisle-companion'),
|
62 |
+
'section' => 'llorix_one_lite_services_section',
|
63 |
+
'priority' => 30,
|
64 |
+
'llorix_one_lite_image_control' => true,
|
65 |
+
'llorix_one_lite_icon_control' => true,
|
66 |
+
'llorix_one_lite_title_control' => true,
|
67 |
+
'llorix_one_lite_text_control' => true,
|
68 |
+
'llorix_one_lite_link_control' => true
|
69 |
+
) ) );
|
70 |
+
|
71 |
+
/********************************************************/
|
72 |
+
/******************* TEAM OPTIONS *********************/
|
73 |
+
/********************************************************/
|
74 |
+
|
75 |
+
$wp_customize->add_section( 'llorix_one_lite_team_section' , array(
|
76 |
+
'title' => esc_html__( 'Team section', 'themeisle-companion' ),
|
77 |
+
'priority' => 60,
|
78 |
+
'panel' => 'llorix_one_lite_front_page_sections',
|
79 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
80 |
+
));
|
81 |
+
|
82 |
+
/* Team show/hide */
|
83 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_team_show', array(
|
84 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
85 |
+
));
|
86 |
+
|
87 |
+
$wp_customize->add_control( 'llorix_one_lite_our_team_show', array(
|
88 |
+
'type' => 'checkbox',
|
89 |
+
'label' => __('Disable the Team section?','themeisle-companion'),
|
90 |
+
'section' => 'llorix_one_lite_team_section',
|
91 |
+
'priority' => 1,
|
92 |
+
));
|
93 |
+
|
94 |
+
/* Team title */
|
95 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_team_title', array(
|
96 |
+
'default' => esc_html__('Our Team','themeisle-companion'),
|
97 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
98 |
+
));
|
99 |
+
$wp_customize->add_control( 'llorix_one_lite_our_team_title', array(
|
100 |
+
'label' => esc_html__( 'Main title', 'themeisle-companion' ),
|
101 |
+
'section' => 'llorix_one_lite_team_section',
|
102 |
+
'priority' => 10,
|
103 |
+
));
|
104 |
+
|
105 |
+
/* Team subtitle */
|
106 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_team_subtitle', array(
|
107 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','themeisle-companion'),
|
108 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
109 |
+
));
|
110 |
+
$wp_customize->add_control( 'llorix_one_lite_our_team_subtitle', array(
|
111 |
+
'label' => esc_html__( 'Subtitle', 'themeisle-companion' ),
|
112 |
+
'section' => 'llorix_one_lite_team_section',
|
113 |
+
'priority' => 20,
|
114 |
+
));
|
115 |
+
|
116 |
+
/* Team Background */
|
117 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_team_background', array(
|
118 |
+
'default' => llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'),
|
119 |
+
'sanitize_callback' => 'esc_url',
|
120 |
+
));
|
121 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'llorix_one_lite_our_team_background', array(
|
122 |
+
'label' => esc_html__( 'Team Background', 'themeisle-companion' ),
|
123 |
+
'section' => 'llorix_one_lite_team_section',
|
124 |
+
'priority' => 30
|
125 |
+
)));
|
126 |
+
|
127 |
+
/* Team content */
|
128 |
+
$default = llorix_one_companion_team_get_default_content();
|
129 |
+
$wp_customize->add_setting( 'llorix_one_lite_team_content', array(
|
130 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
131 |
+
'default' => $default,
|
132 |
+
) );
|
133 |
+
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array(
|
134 |
+
'label' => esc_html__('Add new team member','themeisle-companion'),
|
135 |
+
'section' => 'llorix_one_lite_team_section',
|
136 |
+
'priority' => 40,
|
137 |
+
'llorix_one_lite_image_control' => true,
|
138 |
+
'llorix_one_lite_title_control' => true,
|
139 |
+
'llorix_one_lite_subtitle_control' => true
|
140 |
+
) ) );
|
141 |
+
|
142 |
+
/********************************************************/
|
143 |
+
/********** TESTIMONIALS OPTIONS ***********************/
|
144 |
+
/********************************************************/
|
145 |
+
|
146 |
+
$wp_customize->add_section( 'llorix_one_lite_testimonials_section' , array(
|
147 |
+
'title' => esc_html__( 'Testimonials section', 'themeisle-companion' ),
|
148 |
+
'priority' => 70,
|
149 |
+
'panel' => 'llorix_one_lite_front_page_sections',
|
150 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
151 |
+
));
|
152 |
+
|
153 |
+
/* Testimonials show/hide */
|
154 |
+
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_show', array(
|
155 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
156 |
+
));
|
157 |
+
|
158 |
+
$wp_customize->add_control( 'llorix_one_lite_happy_customers_show', array(
|
159 |
+
'type' => 'checkbox',
|
160 |
+
'label' => __('Disable the Testimonials section?','themeisle-companion'),
|
161 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
162 |
+
'priority' => 1,
|
163 |
+
));
|
164 |
+
|
165 |
+
/* Testimonials title */
|
166 |
+
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
|
167 |
+
'default' => esc_html__('Happy Customers','themeisle-companion'),
|
168 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
169 |
+
));
|
170 |
+
$wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
|
171 |
+
'label' => esc_html__( 'Main title', 'themeisle-companion' ),
|
172 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
173 |
+
'priority' => 10,
|
174 |
+
));
|
175 |
+
|
176 |
+
/* Testimonials subtitle */
|
177 |
+
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array(
|
178 |
+
'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','themeisle-companion'),
|
179 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
180 |
+
));
|
181 |
+
$wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array(
|
182 |
+
'label' => esc_html__( 'Subtitle', 'themeisle-companion' ),
|
183 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
184 |
+
'priority' => 20,
|
185 |
+
));
|
186 |
+
|
187 |
+
|
188 |
+
/* Testimonials content */
|
189 |
+
$default = llorix_one_companion_testimonials_get_default_content();
|
190 |
+
$wp_customize->add_setting( 'llorix_one_lite_testimonials_content', array(
|
191 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
192 |
+
'default' => $default,
|
193 |
+
));
|
194 |
+
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
|
195 |
+
'label' => esc_html__('Add new testimonial','themeisle-companion'),
|
196 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
197 |
+
'priority' => 30,
|
198 |
+
'llorix_one_lite_image_control' => true,
|
199 |
+
'llorix_one_lite_title_control' => true,
|
200 |
+
'llorix_one_lite_subtitle_control' => true,
|
201 |
+
'llorix_one_lite_text_control' => true
|
202 |
+
) ) );
|
203 |
+
|
204 |
+
}
|
205 |
+
}
|
206 |
+
add_action( 'customize_register', 'llorix_one_companion_customize_register', 999 );
|
207 |
+
?>
|
obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/general.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* General functions for translation.
|
4 |
+
*
|
5 |
+
* @package llorix-one-lite
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Define Allowed Files to be included.
|
10 |
+
*/
|
11 |
+
function llorix_one_companion_filter_translations( $array ) {
|
12 |
+
return array_merge( $array, array(
|
13 |
+
'translations/translations-services-section',
|
14 |
+
'translations/translations-team-section',
|
15 |
+
'translations/translations-testimonials-section',
|
16 |
+
) );
|
17 |
+
}
|
18 |
+
|
19 |
+
add_filter( 'llorix_one_lite_filter_translations', 'llorix_one_companion_filter_translations' );
|
obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/translations-services-section.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Translation functions for services section
|
4 |
+
*
|
5 |
+
* @package llorix-one-companion
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Get services section default content.
|
11 |
+
*/
|
12 |
+
function llorix_one_companion_sevices_get_default_content() {
|
13 |
+
return json_encode(
|
14 |
+
array(
|
15 |
+
array(
|
16 |
+
'choice' => 'llorix_one_lite_icon',
|
17 |
+
'icon_value' => 'fa-cogs',
|
18 |
+
'title' => esc_html__( 'Lorem Ipsum', 'themeisle-companion' ),
|
19 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.', 'themeisle-companion' )
|
20 |
+
),
|
21 |
+
array(
|
22 |
+
'choice' => 'llorix_one_lite_icon',
|
23 |
+
'icon_value' => 'fa-bar-chart-o',
|
24 |
+
'title' => esc_html__( 'Lorem Ipsum', 'themeisle-companion' ),
|
25 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.', 'themeisle-companion' )
|
26 |
+
),
|
27 |
+
array(
|
28 |
+
'choice' => 'llorix_one_lite_icon',
|
29 |
+
'icon_value' => 'fa-globe',
|
30 |
+
'title' => esc_html__( 'Lorem Ipsum', 'themeisle-companion' ),
|
31 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.', 'themeisle-companion' )
|
32 |
+
)
|
33 |
+
)
|
34 |
+
);
|
35 |
+
}
|
36 |
+
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Register strings for polylang.
|
40 |
+
*/
|
41 |
+
function llorix_one_companion_sevices_register_strings() {
|
42 |
+
if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'llorix_one_lite_pll_string_register_helper' ) ) {
|
43 |
+
return;
|
44 |
+
}
|
45 |
+
|
46 |
+
$default = llorix_one_companion_sevices_get_default_content();
|
47 |
+
llorix_one_lite_pll_string_register_helper( 'llorix_one_lite_services_content', $default, 'Services section' );
|
48 |
+
}
|
49 |
+
|
50 |
+
add_action( 'after_setup_theme', 'llorix_one_companion_sevices_register_strings', 11 );
|
obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/translations-team-section.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Translation functions for team section
|
4 |
+
*
|
5 |
+
* @package llorix-one-companion
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Get team section default content.
|
11 |
+
*/
|
12 |
+
function llorix_one_companion_team_get_default_content() {
|
13 |
+
return json_encode( array(
|
14 |
+
array(
|
15 |
+
'image_url' => llorix_one_lite_get_file( '/images/team/1.jpg' ),
|
16 |
+
'title' => esc_html__( 'Albert Jacobs', 'themeisle-companion' ),
|
17 |
+
'subtitle' => esc_html__( 'Founder & CEO', 'themeisle-companion' )
|
18 |
+
),
|
19 |
+
array(
|
20 |
+
'image_url' => llorix_one_lite_get_file( '/images/team/2.jpg' ),
|
21 |
+
'title' => esc_html__( 'Tonya Garcia', 'themeisle-companion' ),
|
22 |
+
'subtitle' => esc_html__( 'Account Manager', 'themeisle-companion' )
|
23 |
+
),
|
24 |
+
array(
|
25 |
+
'image_url' => llorix_one_lite_get_file( '/images/team/3.jpg' ),
|
26 |
+
'title' => esc_html__( 'Linda Guthrie', 'themeisle-companion' ),
|
27 |
+
'subtitle' => esc_html__( 'Business Development', 'themeisle-companion' )
|
28 |
+
)
|
29 |
+
)
|
30 |
+
);
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Register strings for polylang.
|
35 |
+
*/
|
36 |
+
function llorix_one_companion_team_register_strings() {
|
37 |
+
if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'llorix_one_lite_pll_string_register_helper' ) ) {
|
38 |
+
return;
|
39 |
+
}
|
40 |
+
|
41 |
+
$default = llorix_one_companion_team_get_default_content();
|
42 |
+
llorix_one_lite_pll_string_register_helper( 'llorix_one_lite_team_content', $default, 'Team section' );
|
43 |
+
}
|
44 |
+
|
45 |
+
add_action( 'after_setup_theme', 'llorix_one_companion_team_register_strings', 11 );
|
obfx_modules/companion-legacy/inc/llorix-one-companion/inc/translations/translations-testimonials-section.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Translation functions for testimonials section
|
4 |
+
*
|
5 |
+
* @package llorix-one-companion
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Get testimonials section default content.
|
11 |
+
*/
|
12 |
+
function llorix_one_companion_testimonials_get_default_content() {
|
13 |
+
return json_encode( array(
|
14 |
+
array(
|
15 |
+
'image_url' => llorix_one_lite_get_file( '/images/clients/1.jpg' ),
|
16 |
+
'title' => esc_html__( 'Happy Customer', 'themeisle-companion' ),
|
17 |
+
'subtitle' => esc_html__( 'Lorem ipsum', 'themeisle-companion' ),
|
18 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.', 'themeisle-companion' )
|
19 |
+
),
|
20 |
+
array(
|
21 |
+
'image_url' => llorix_one_lite_get_file( '/images/clients/2.jpg' ),
|
22 |
+
'title' => esc_html__( 'Happy Customer', 'themeisle-companion' ),
|
23 |
+
'subtitle' => esc_html__( 'Lorem ipsum', 'themeisle-companion' ),
|
24 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.', 'themeisle-companion' )
|
25 |
+
),
|
26 |
+
array(
|
27 |
+
'image_url' => llorix_one_lite_get_file( '/images/clients/3.jpg' ),
|
28 |
+
'title' => esc_html__( 'Happy Customer', 'themeisle-companion' ),
|
29 |
+
'subtitle' => esc_html__( 'Lorem ipsum', 'themeisle-companion' ),
|
30 |
+
'text' => esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.', 'themeisle-companion' )
|
31 |
+
)
|
32 |
+
)
|
33 |
+
);
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Register strings for polylang.
|
38 |
+
*/
|
39 |
+
function llorix_one_companion_testimonials_register_strings() {
|
40 |
+
if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'llorix_one_lite_pll_string_register_helper' ) ) {
|
41 |
+
return;
|
42 |
+
}
|
43 |
+
|
44 |
+
$default = llorix_one_companion_testimonials_get_default_content();
|
45 |
+
llorix_one_lite_pll_string_register_helper( 'llorix_one_lite_testimonials_content', $default, 'Testimonials section' );
|
46 |
+
}
|
47 |
+
|
48 |
+
add_action( 'after_setup_theme', 'llorix_one_companion_testimonials_register_strings', 11 );
|
obfx_modules/companion-legacy/inc/llorix-one-companion/sections/happy-customers-section.php
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: CUSTOMERS
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
|
6 |
+
$llorix_one_lite_happy_customers_show = get_theme_mod( 'llorix_one_lite_happy_customers_show' );
|
7 |
+
$llorix_one_lite_happy_customers_title = get_theme_mod( 'llorix_one_lite_happy_customers_title', esc_html__( 'Happy Customers', 'themeisle-companion' ) );
|
8 |
+
$llorix_one_lite_happy_customers_subtitle = get_theme_mod( 'llorix_one_lite_happy_customers_subtitle', esc_html__( 'Cloud computing subscription model out of the box proactive solution.', 'themeisle-companion' ) );
|
9 |
+
$default = '';
|
10 |
+
if( function_exists('llorix_one_companion_testimonials_get_default_content')){
|
11 |
+
$default = llorix_one_companion_testimonials_get_default_content();
|
12 |
+
}
|
13 |
+
$llorix_one_lite_testimonials_content = get_theme_mod( 'llorix_one_lite_testimonials_content', $default );
|
14 |
+
if ( function_exists( 'llorix_one_lite_general_repeater_is_empty' ) ){
|
15 |
+
$content_is_empty = llorix_one_lite_general_repeater_is_empty( $llorix_one_lite_testimonials_content );
|
16 |
+
} else {
|
17 |
+
$content_is_empty = empty( $llorix_one_lite_testimonials_content );
|
18 |
+
}
|
19 |
+
$section_is_empty = ! isset( $llorix_one_lite_happy_customers_show ) || $llorix_one_lite_happy_customers_show == 1 || ( empty( $llorix_one_lite_happy_customers_title ) && empty( $llorix_one_lite_happy_customers_subtitle ) && $content_is_empty );
|
20 |
+
if( !$section_is_empty) { ?>
|
21 |
+
<section class="testimonials <?php if ($section_is_empty) {
|
22 |
+
echo 'llorix_one_lite_only_customizer';
|
23 |
+
} ?>" id="customers" role="region" aria-label="<?php esc_attr_e('Testimonials', 'themeisle-companion') ?>">
|
24 |
+
<div class="section-overlay-layer">
|
25 |
+
<div class="container">
|
26 |
+
<!-- SECTION HEADER -->
|
27 |
+
<?php
|
28 |
+
if (!empty($llorix_one_lite_happy_customers_title) || !empty($llorix_one_lite_happy_customers_subtitle)) { ?>
|
29 |
+
<div class="section-header">
|
30 |
+
<?php
|
31 |
+
if (!empty($llorix_one_lite_happy_customers_title)) { ?>
|
32 |
+
<h2 class="dark-text"><?php echo wp_kses_post($llorix_one_lite_happy_customers_title); ?></h2>
|
33 |
+
<div class="colored-line"></div>
|
34 |
+
<?php
|
35 |
+
} elseif (is_customize_preview()) { ?>
|
36 |
+
<h2 class="dark-text llorix_one_lite_only_customizer"></h2>
|
37 |
+
<div class="colored-line llorix_one_lite_only_customizer"></div>
|
38 |
+
<?php
|
39 |
+
}
|
40 |
+
|
41 |
+
if (!empty($llorix_one_lite_happy_customers_subtitle)) { ?>
|
42 |
+
<div class="sub-heading"><?php echo wp_kses_post($llorix_one_lite_happy_customers_subtitle); ?></div>
|
43 |
+
<?php
|
44 |
+
} elseif (is_customize_preview()) { ?>
|
45 |
+
<div class="sub-heading llorix_one_lite_only_customizer"></div>
|
46 |
+
<?php
|
47 |
+
} ?>
|
48 |
+
</div>
|
49 |
+
<?php
|
50 |
+
}
|
51 |
+
|
52 |
+
if (!$content_is_empty) { ?>
|
53 |
+
<div id="happy_customers_wrap" class="testimonials-wrap">
|
54 |
+
<?php
|
55 |
+
$llorix_one_lite_testimonials_content_decoded = json_decode($llorix_one_lite_testimonials_content);
|
56 |
+
foreach ($llorix_one_lite_testimonials_content_decoded as $llorix_one_lite_testimonial) {
|
57 |
+
$image = !empty($llorix_one_lite_testimonial->image_url) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->image_url, 'Testimonials section') : '';
|
58 |
+
$title = !empty($llorix_one_lite_testimonial->title) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->title, 'Testimonials section') : '';
|
59 |
+
$subtitle = !empty($llorix_one_lite_testimonial->subtitle) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->subtitle, 'Testimonials section') : '';
|
60 |
+
$text = !empty($llorix_one_lite_testimonial->text) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->text, 'Testimonials section') : '';
|
61 |
+
$section_is_empty = empty($image) && empty($title) && empty($subtitle) && empty($text);
|
62 |
+
|
63 |
+
if (!$section_is_empty) { ?>
|
64 |
+
<!-- SINGLE FEEDBACK -->
|
65 |
+
<div class="testimonials-box">
|
66 |
+
<div class="feedback border-bottom-hover">
|
67 |
+
<div class="pic-container">
|
68 |
+
<div class="pic-container-inner">
|
69 |
+
<?php
|
70 |
+
if (!empty($image)) { ?>
|
71 |
+
<img src="<?php echo esc_url($image); ?>"
|
72 |
+
alt="<?php echo(!empty($title) ? esc_attr($title) : esc_attr('Avatar', 'llorix-one-companion')); ?>">
|
73 |
+
<?php
|
74 |
+
} else {
|
75 |
+
$default_image = llorix_one_lite_get_file('/images/clients/client-no-image.jpg'); ?>
|
76 |
+
<img src="<?php echo esc_url($default_image); ?>"
|
77 |
+
alt="<?php esc_attr_e('Avatar', 'themeisle-companion'); ?>">
|
78 |
+
<?php
|
79 |
+
} ?>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
<?php
|
83 |
+
if (!empty($title) || !empty($subtitle) || !empty($text)) { ?>
|
84 |
+
<div class="feedback-text-wrap">
|
85 |
+
<?php
|
86 |
+
if (!empty($title)) { ?>
|
87 |
+
<h5 class="colored-text">
|
88 |
+
<?php
|
89 |
+
echo wp_kses_post($title); ?>
|
90 |
+
</h5>
|
91 |
+
<?php
|
92 |
+
}
|
93 |
+
|
94 |
+
if (!empty($subtitle)) { ?>
|
95 |
+
<div class="small-text">
|
96 |
+
<?php
|
97 |
+
echo wp_kses_post($subtitle); ?>
|
98 |
+
</div>
|
99 |
+
<?php
|
100 |
+
}
|
101 |
+
|
102 |
+
if (!empty($text)) { ?>
|
103 |
+
<p>
|
104 |
+
<?php
|
105 |
+
echo wp_kses_post($text); ?>
|
106 |
+
</p>
|
107 |
+
<?php
|
108 |
+
} ?>
|
109 |
+
</div>
|
110 |
+
<?php
|
111 |
+
} ?>
|
112 |
+
</div>
|
113 |
+
</div><!-- .testimonials-box -->
|
114 |
+
<?php
|
115 |
+
}
|
116 |
+
} ?>
|
117 |
+
</div>
|
118 |
+
<?php
|
119 |
+
} ?>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
</section><!-- customers -->
|
123 |
+
<?php
|
124 |
+
}
|
obfx_modules/companion-legacy/inc/llorix-one-companion/sections/our-services-section.php
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: SERVICES
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
|
6 |
+
$llorix_one_lite_our_services_show = get_theme_mod( 'llorix_one_lite_our_services_show' );
|
7 |
+
$llorix_one_lite_our_services_title = get_theme_mod( 'llorix_one_lite_our_services_title', esc_html__( 'Our Services', 'themeisle-companion' ) );
|
8 |
+
$llorix_one_lite_our_services_subtitle = get_theme_mod( 'llorix_one_lite_our_services_subtitle', esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ) );
|
9 |
+
$default = '';
|
10 |
+
if( function_exists('llorix_one_companion_sevices_get_default_content')){
|
11 |
+
$default = llorix_one_companion_sevices_get_default_content();
|
12 |
+
}
|
13 |
+
$llorix_one_lite_services = get_theme_mod( 'llorix_one_lite_services_content', $default );
|
14 |
+
if ( function_exists( 'llorix_one_lite_general_repeater_is_empty' ) ){
|
15 |
+
$content_is_empty = llorix_one_lite_general_repeater_is_empty( $llorix_one_lite_services );
|
16 |
+
} else {
|
17 |
+
$content_is_empty = empty( $llorix_one_lite_services );
|
18 |
+
}
|
19 |
+
$section_is_empty = ! isset( $llorix_one_lite_our_services_show ) || $llorix_one_lite_our_services_show == 1 || ( empty( $llorix_one_lite_our_services_title ) && empty( $llorix_one_lite_our_services_subtitle ) && $content_is_empty );
|
20 |
+
if(!$section_is_empty) { ?>
|
21 |
+
|
22 |
+
<section class="services <?php if ($section_is_empty) {
|
23 |
+
echo 'llorix_one_lite_only_customizer';
|
24 |
+
} ?>" id="services" role="region" aria-label="<?php esc_html_e('Services', 'themeisle-companion') ?>">
|
25 |
+
<div class="section-overlay-layer">
|
26 |
+
<div class="container">
|
27 |
+
|
28 |
+
<!-- SECTION HEADER -->
|
29 |
+
<div class="section-header">
|
30 |
+
<?php
|
31 |
+
if (!empty($llorix_one_lite_our_services_title)) { ?>
|
32 |
+
<h2 class="dark-text"><?php echo wp_kses_post($llorix_one_lite_our_services_title); ?></h2>
|
33 |
+
<div class="colored-line"></div>
|
34 |
+
<?php
|
35 |
+
} elseif (is_customize_preview()) { ?>
|
36 |
+
<h2 class="dark-text llorix_one_lite_only_customizer"></h2>
|
37 |
+
<div class="colored-line llorix_one_lite_only_customizer"></div>
|
38 |
+
<?php
|
39 |
+
}
|
40 |
+
|
41 |
+
if (!empty($llorix_one_lite_our_services_subtitle)) { ?>
|
42 |
+
<div class="sub-heading"><?php echo wp_kses_post($llorix_one_lite_our_services_subtitle); ?></div>
|
43 |
+
<?php
|
44 |
+
} elseif (is_customize_preview()) { ?>
|
45 |
+
<div class="sub-heading llorix_one_lite_only_customizer"></div>
|
46 |
+
<?php
|
47 |
+
} ?>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
|
51 |
+
<?php
|
52 |
+
if (!$content_is_empty) {
|
53 |
+
$llorix_one_lite_services_decoded = json_decode($llorix_one_lite_services); ?>
|
54 |
+
<div id="our_services_wrap" class="services-wrap">
|
55 |
+
<?php
|
56 |
+
foreach ($llorix_one_lite_services_decoded as $llorix_one_lite_service_box) {
|
57 |
+
|
58 |
+
$choice = !empty($llorix_one_lite_service_box->choice) ? $llorix_one_lite_service_box->choice : '';
|
59 |
+
$icon = !empty($llorix_one_lite_service_box->icon_value) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->icon_value, 'Services section') : '';
|
60 |
+
$image = !empty($llorix_one_lite_service_box->image_url) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->image_url, 'Services section') : '';
|
61 |
+
$title = !empty($llorix_one_lite_service_box->title) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->title, 'Services section') : '';
|
62 |
+
$text = !empty($llorix_one_lite_service_box->text) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->text, 'Services section') : '';
|
63 |
+
$link = !empty($llorix_one_lite_service_box->link) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->link, 'Services section') : '';
|
64 |
+
$section_is_empty = (empty($icon) || $icon === 'No Icon' && $choice === 'llorix_one_lite_icon') && (empty($image) && $choice === 'llorix_one_lite_image') && empty($title) && empty($text);
|
65 |
+
|
66 |
+
if (!$section_is_empty) { ?>
|
67 |
+
<div class="service-box">
|
68 |
+
<div class="single-service border-bottom-hover">
|
69 |
+
<?php
|
70 |
+
if (!empty($choice) && $choice !== 'llorix_one_lite_none') {
|
71 |
+
|
72 |
+
if ($choice === 'llorix_one_lite_icon') {
|
73 |
+
if (!empty($icon)) {
|
74 |
+
if (!empty($link)) { ?>
|
75 |
+
<div class="service-icon colored-text">
|
76 |
+
<a href="<?php echo esc_url($link); ?>">
|
77 |
+
<i class="fa <?php echo esc_attr($icon); ?>"></i>
|
78 |
+
</a>
|
79 |
+
</div>
|
80 |
+
<?php
|
81 |
+
} else { ?>
|
82 |
+
<div class="service-icon colored-text">
|
83 |
+
<i class="fa <?php echo esc_attr($icon); ?>"></i>
|
84 |
+
</div>
|
85 |
+
<?php
|
86 |
+
}
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
if ($choice === 'llorix_one_lite_image') {
|
91 |
+
if (!empty($image)) {
|
92 |
+
if (!empty($link)) { ?>
|
93 |
+
<a href="<?php echo esc_url($link); ?>">
|
94 |
+
<img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : ''); ?> />
|
95 |
+
</a>
|
96 |
+
<?php
|
97 |
+
} else { ?>
|
98 |
+
<img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : ''); ?> />
|
99 |
+
<?php
|
100 |
+
}
|
101 |
+
}
|
102 |
+
}
|
103 |
+
}
|
104 |
+
|
105 |
+
if (!empty($title)) {
|
106 |
+
if (!empty($link)) { ?>
|
107 |
+
<h3 class="colored-text">
|
108 |
+
<a href="<?php echo esc_url($link); ?>"><?php echo wp_kses_post($title); ?></a>
|
109 |
+
</h3>
|
110 |
+
<?php
|
111 |
+
} else { ?>
|
112 |
+
<h3 class="colored-text"><?php echo wp_kses_post($title); ?></h3>
|
113 |
+
<?php
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
if (!empty($text)) { ?>
|
118 |
+
<p><?php echo wp_kses_post($text); ?></p>
|
119 |
+
<?php
|
120 |
+
} ?>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
<?php
|
124 |
+
}
|
125 |
+
} ?>
|
126 |
+
</div>
|
127 |
+
<?php
|
128 |
+
} ?>
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
</section>
|
132 |
+
<?php
|
133 |
+
}
|
obfx_modules/companion-legacy/inc/llorix-one-companion/sections/our-team-section.php
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: TEAM
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
|
6 |
+
$llorix_one_lite_our_team_show = get_theme_mod( 'llorix_one_lite_our_team_show' );
|
7 |
+
$llorix_one_lite_our_team_title = get_theme_mod( 'llorix_one_lite_our_team_title', esc_html__( 'Our Team', 'themeisle-companion' ) );
|
8 |
+
$llorix_one_lite_our_team_background = get_theme_mod( 'llorix_one_lite_our_team_background', llorix_one_lite_get_file( '/images/background-images/parallax-img/team-img.jpg' ) );
|
9 |
+
$llorix_one_lite_our_team_subtitle = get_theme_mod( 'llorix_one_lite_our_team_subtitle', esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ) );
|
10 |
+
$default = '';
|
11 |
+
if(function_exists( 'llorix_one_companion_team_get_default_content') ){
|
12 |
+
$default = llorix_one_companion_team_get_default_content();
|
13 |
+
}
|
14 |
+
$llorix_one_lite_team_content = get_theme_mod( 'llorix_one_lite_team_content', $default );
|
15 |
+
if ( function_exists( 'llorix_one_lite_general_repeater_is_empty' ) ){
|
16 |
+
$content_is_empty = llorix_one_lite_general_repeater_is_empty( $llorix_one_lite_team_content );
|
17 |
+
} else {
|
18 |
+
$content_is_empty = empty( $llorix_one_lite_team_content );
|
19 |
+
}
|
20 |
+
$section_is_empty = ! isset( $llorix_one_lite_our_team_show ) || $llorix_one_lite_our_team_show == 1 || ( empty( $llorix_one_lite_our_team_title ) && empty( $llorix_one_lite_our_team_subtitle ) && $content_is_empty );
|
21 |
+
if(!$section_is_empty) { ?>
|
22 |
+
|
23 |
+
|
24 |
+
<section class="team <?php if ($section_is_empty) {
|
25 |
+
echo 'llorix_one_lite_only_customizer';
|
26 |
+
} ?>" id="team" role="region"
|
27 |
+
aria-label="<?php esc_attr_e('Team', 'themeisle-companion'); ?>" <?php echo !empty($llorix_one_lite_our_team_background) ? 'style="background-image:url(' . esc_url($llorix_one_lite_our_team_background) . ');"' : ''; ?>>
|
28 |
+
<div class="section-overlay-layer">
|
29 |
+
<div class="container">
|
30 |
+
<!-- SECTION HEADER -->
|
31 |
+
<?php
|
32 |
+
if (!empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle)) { ?>
|
33 |
+
<div class="section-header">
|
34 |
+
<?php
|
35 |
+
if (!empty($llorix_one_lite_our_team_title)) { ?>
|
36 |
+
<h2 class="dark-text"><?php echo wp_kses_post($llorix_one_lite_our_team_title); ?></h2>
|
37 |
+
<div class="colored-line"></div>
|
38 |
+
<?php
|
39 |
+
} elseif (is_customize_preview()) { ?>
|
40 |
+
<h2 class="dark-text llorix_one_lite_only_customizer"></h2>
|
41 |
+
<div class="colored-line llorix_one_lite_only_customizer"></div>
|
42 |
+
<?php
|
43 |
+
}
|
44 |
+
|
45 |
+
if (!empty($llorix_one_lite_our_team_subtitle)) { ?>
|
46 |
+
<div class="sub-heading"><?php echo wp_kses_post($llorix_one_lite_our_team_subtitle); ?></div>
|
47 |
+
<?php
|
48 |
+
} elseif (is_customize_preview()) { ?>
|
49 |
+
<div class="sub-heading llorix_one_lite_only_customizer"></div>
|
50 |
+
<?php
|
51 |
+
} ?>
|
52 |
+
</div>
|
53 |
+
<?php
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
if (!$content_is_empty) { ?>
|
58 |
+
<div class="row team-member-wrap">
|
59 |
+
<?php
|
60 |
+
$llorix_one_lite_team_decoded = json_decode($llorix_one_lite_team_content);
|
61 |
+
foreach ($llorix_one_lite_team_decoded as $llorix_one_lite_team_member) {
|
62 |
+
$title = !empty($llorix_one_lite_team_member->title) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_team_member->title, 'Team section') : '';
|
63 |
+
$subtitle = !empty($llorix_one_lite_team_member->subtitle) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_team_member->subtitle, 'Team section') : '';
|
64 |
+
$image = !empty($llorix_one_lite_team_member->image_url) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_team_member->image_url, 'Team section') : '';
|
65 |
+
$section_is_empty = empty($image) && empty($title) && empty($subtitle);
|
66 |
+
if (!$section_is_empty) { ?>
|
67 |
+
<div class="col-md-3 team-member-box">
|
68 |
+
<div class="team-member border-bottom-hover">
|
69 |
+
<div class="member-pic">
|
70 |
+
<?php
|
71 |
+
if (!empty($image)) { ?>
|
72 |
+
<img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : esc_attr__('Avatar', 'themeisle-companion')); ?>>
|
73 |
+
<?php
|
74 |
+
} else {
|
75 |
+
$default_url = llorix_one_lite_get_file('/images/team/default.png'); ?>
|
76 |
+
<img src="<?php echo esc_url($default_url); ?>"
|
77 |
+
alt="<?php esc_attr_e('Avatar', 'themeisle-companion'); ?>">
|
78 |
+
<?php
|
79 |
+
} ?>
|
80 |
+
</div><!-- .member-pic -->
|
81 |
+
|
82 |
+
<?php
|
83 |
+
if (!empty($title) || !empty($subtitle)) { ?>
|
84 |
+
<div class="member-details">
|
85 |
+
<div class="member-details-inner">
|
86 |
+
<?php
|
87 |
+
if (!empty($title)) { ?>
|
88 |
+
<h5 class="colored-text"> <?php echo wp_kses_post($title); ?></h5>
|
89 |
+
<?php
|
90 |
+
}
|
91 |
+
|
92 |
+
if (!empty($subtitle)) { ?>
|
93 |
+
<div class="small-text"><?php echo wp_kses_post($subtitle); ?></div>
|
94 |
+
<?php
|
95 |
+
} ?>
|
96 |
+
</div><!-- .member-details-inner -->
|
97 |
+
</div><!-- .member-details -->
|
98 |
+
<?php
|
99 |
+
} ?>
|
100 |
+
</div><!-- .team-member -->
|
101 |
+
</div><!-- .team-member -->
|
102 |
+
<!-- MEMBER -->
|
103 |
+
<?php
|
104 |
+
}
|
105 |
+
} ?>
|
106 |
+
</div>
|
107 |
+
<?php
|
108 |
+
} ?>
|
109 |
+
</div>
|
110 |
+
</div><!-- container -->
|
111 |
+
</section><!-- #section9 -->
|
112 |
+
<?php
|
113 |
+
}
|
obfx_modules/companion-legacy/inc/llorix-one-companion/wpml-config.xml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<wpml-config>
|
2 |
+
<admin-texts>
|
3 |
+
<key name="theme_mods_themeisle-companion">
|
4 |
+
<key name="llorix_one_lite_our_services_title" />
|
5 |
+
<key name="llorix_one_lite_our_services_subtitle" />
|
6 |
+
<key name="llorix_one_lite_our_team_title" />
|
7 |
+
<key name="llorix_one_lite_our_team_subtitle" />
|
8 |
+
<key name="llorix_one_lite_our_team_background" />
|
9 |
+
<key name="llorix_one_lite_happy_customers_title" />
|
10 |
+
<key name="llorix_one_lite_happy_customers_subtitle" />
|
11 |
+
</key>
|
12 |
+
</admin-texts>
|
13 |
+
</wpml-config>
|
obfx_modules/companion-legacy/inc/rhea/widgets/about.widget.php
CHANGED
@@ -4,10 +4,10 @@ class Rhea_About_Company extends WP_Widget {
|
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
-
'description' => esc_html__( 'This widget is designed for footer area', '
|
8 |
);
|
9 |
|
10 |
-
parent::__construct( 'rhea-about-company', esc_html__( '[Rhea] About Company', '
|
11 |
add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
|
12 |
}
|
13 |
|
@@ -91,16 +91,16 @@ class Rhea_About_Company extends WP_Widget {
|
|
91 |
?>
|
92 |
<p>
|
93 |
<input type="checkbox" name="<?php echo $this->get_field_name( 'use_logo' ); ?>" id="<?php echo $this->get_field_id( 'use_logo' ); ?>" value="use_logo" <?php if ( isset( $instance['use_logo'] ) ) { checked( $instance['use_logo'], 'use_logo' ); } ?>>
|
94 |
-
<label for="<?php echo $this->get_field_id( 'use_logo' ); ?>"><?php esc_html_e( 'Use website logo','
|
95 |
</p>
|
96 |
<p>
|
97 |
-
<label for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php esc_html_e( 'Logo', '
|
98 |
-
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>" style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo esc_attr( $display ); ?>" alt="<?php echo __( 'Uploaded image', '
|
99 |
<input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name( 'image_uri' ); ?>" id="<?php echo $this->get_field_id( 'image_uri' ); ?>" value="<?php if ( ! empty( $instance['image_uri'] ) ) { echo $instance['image_uri']; } ?>" style="margin-top:5px;">
|
100 |
-
<input type="button" class="button button-primary custom_media_button" id="custom_media_button" name="<?php echo $this->get_field_name( 'image_uri' ); ?>" value="<?php esc_html_e( 'Upload Image','
|
101 |
</p>
|
102 |
<p>
|
103 |
-
<label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php esc_html_e( 'Company Description', '
|
104 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>" id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
|
105 |
</p>
|
106 |
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
+
'description' => esc_html__( 'This widget is designed for footer area', 'themeisle-companion' ),
|
8 |
);
|
9 |
|
10 |
+
parent::__construct( 'rhea-about-company', esc_html__( '[Rhea] About Company', 'themeisle-companion' ), $widget_args );
|
11 |
add_action( 'admin_enqueue_scripts', array( $this, 'widget_scripts' ) );
|
12 |
}
|
13 |
|
91 |
?>
|
92 |
<p>
|
93 |
<input type="checkbox" name="<?php echo $this->get_field_name( 'use_logo' ); ?>" id="<?php echo $this->get_field_id( 'use_logo' ); ?>" value="use_logo" <?php if ( isset( $instance['use_logo'] ) ) { checked( $instance['use_logo'], 'use_logo' ); } ?>>
|
94 |
+
<label for="<?php echo $this->get_field_id( 'use_logo' ); ?>"><?php esc_html_e( 'Use website logo','themeisle-companion' ); ?></label>
|
95 |
</p>
|
96 |
<p>
|
97 |
+
<label for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php esc_html_e( 'Logo', 'themeisle-companion' ); ?></label><br/>
|
98 |
+
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>" style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo esc_attr( $display ); ?>" alt="<?php echo __( 'Uploaded image', 'themeisle-companion' ); ?>"/><br/>
|
99 |
<input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name( 'image_uri' ); ?>" id="<?php echo $this->get_field_id( 'image_uri' ); ?>" value="<?php if ( ! empty( $instance['image_uri'] ) ) { echo $instance['image_uri']; } ?>" style="margin-top:5px;">
|
100 |
+
<input type="button" class="button button-primary custom_media_button" id="custom_media_button" name="<?php echo $this->get_field_name( 'image_uri' ); ?>" value="<?php esc_html_e( 'Upload Image','themeisle-companion' ); ?>" style="margin-top:5px;">
|
101 |
</p>
|
102 |
<p>
|
103 |
+
<label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php esc_html_e( 'Company Description', 'themeisle-companion' ); ?></label><br/>
|
104 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>" id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
|
105 |
</p>
|
106 |
|
obfx_modules/companion-legacy/inc/rhea/widgets/contact.widget.php
CHANGED
@@ -4,10 +4,10 @@ class Rhea_Contact_Company extends WP_Widget {
|
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
-
'description' => esc_html__( 'This widget is designed for footer area', '
|
8 |
);
|
9 |
|
10 |
-
parent::__construct( 'rhea-contact-company', esc_html__( '[Rhea] Contact', '
|
11 |
}
|
12 |
|
13 |
function widget( $args, $instance ) {
|
@@ -62,23 +62,23 @@ class Rhea_Contact_Company extends WP_Widget {
|
|
62 |
function form( $instance ) {
|
63 |
?>
|
64 |
<p>
|
65 |
-
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', '
|
66 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>">
|
67 |
</p>
|
68 |
<p>
|
69 |
-
<label for="<?php echo $this->get_field_id( 'adress' ); ?>"><?php esc_html_e( 'Company Adress', '
|
70 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'adress' ); ?>" id="<?php echo $this->get_field_id( 'adress' ); ?>"><?php if ( ! empty( $instance['adress'] ) ) { echo htmlspecialchars_decode( $instance['adress'] ); } ?></textarea>
|
71 |
</p>
|
72 |
<p>
|
73 |
-
<label for="<?php echo $this->get_field_id( 'gmaps_url' ); ?>"><?php esc_html_e( 'Google Maps URL', '
|
74 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'gmaps_url' ); ?>" id="<?php echo $this->get_field_id( 'gmaps_url' ); ?>" value="<?php if ( ! empty( $instance['gmaps_url'] ) ) { echo $instance['gmaps_url']; } ?>">
|
75 |
</p>
|
76 |
<p>
|
77 |
-
<label for="<?php echo $this->get_field_id( 'email' ); ?>"><?php esc_html_e( 'Email', '
|
78 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'email' ); ?>" id="<?php echo $this->get_field_id( 'email' ); ?>" value="<?php if ( ! empty( $instance['email'] ) ) { echo $instance['email']; } ?>">
|
79 |
</p>
|
80 |
<p>
|
81 |
-
<label for="<?php echo $this->get_field_id( 'phone' ); ?>"><?php esc_html_e( 'Phone', '
|
82 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'phone' ); ?>" id="<?php echo $this->get_field_id( 'phone' ); ?>" value="<?php if ( ! empty( $instance['phone'] ) ) { echo $instance['phone']; } ?>">
|
83 |
</p>
|
84 |
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
+
'description' => esc_html__( 'This widget is designed for footer area', 'themeisle-companion' ),
|
8 |
);
|
9 |
|
10 |
+
parent::__construct( 'rhea-contact-company', esc_html__( '[Rhea] Contact', 'themeisle-companion' ), $widget_args );
|
11 |
}
|
12 |
|
13 |
function widget( $args, $instance ) {
|
62 |
function form( $instance ) {
|
63 |
?>
|
64 |
<p>
|
65 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'themeisle-companion' ); ?></label><br/>
|
66 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>">
|
67 |
</p>
|
68 |
<p>
|
69 |
+
<label for="<?php echo $this->get_field_id( 'adress' ); ?>"><?php esc_html_e( 'Company Adress', 'themeisle-companion' ); ?></label><br/>
|
70 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'adress' ); ?>" id="<?php echo $this->get_field_id( 'adress' ); ?>"><?php if ( ! empty( $instance['adress'] ) ) { echo htmlspecialchars_decode( $instance['adress'] ); } ?></textarea>
|
71 |
</p>
|
72 |
<p>
|
73 |
+
<label for="<?php echo $this->get_field_id( 'gmaps_url' ); ?>"><?php esc_html_e( 'Google Maps URL', 'themeisle-companion' ); ?></label><br/>
|
74 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'gmaps_url' ); ?>" id="<?php echo $this->get_field_id( 'gmaps_url' ); ?>" value="<?php if ( ! empty( $instance['gmaps_url'] ) ) { echo $instance['gmaps_url']; } ?>">
|
75 |
</p>
|
76 |
<p>
|
77 |
+
<label for="<?php echo $this->get_field_id( 'email' ); ?>"><?php esc_html_e( 'Email', 'themeisle-companion' ); ?></label><br/>
|
78 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'email' ); ?>" id="<?php echo $this->get_field_id( 'email' ); ?>" value="<?php if ( ! empty( $instance['email'] ) ) { echo $instance['email']; } ?>">
|
79 |
</p>
|
80 |
<p>
|
81 |
+
<label for="<?php echo $this->get_field_id( 'phone' ); ?>"><?php esc_html_e( 'Phone', 'themeisle-companion' ); ?></label><br/>
|
82 |
<input type="text" class="widefat" name="<?php echo $this->get_field_name( 'phone' ); ?>" id="<?php echo $this->get_field_id( 'phone' ); ?>" value="<?php if ( ! empty( $instance['phone'] ) ) { echo $instance['phone']; } ?>">
|
83 |
</p>
|
84 |
|
obfx_modules/companion-legacy/inc/rhea/widgets/features.widget.php
CHANGED
@@ -4,9 +4,9 @@ class rhea_features_block extends WP_Widget {
|
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
-
'description' => esc_html__( 'This widget is designed for Our focus section widgets', '
|
8 |
);
|
9 |
-
parent::__construct( 'rhea-feature-block', esc_html__( '[Rhea] Our features widget', '
|
10 |
}
|
11 |
|
12 |
function widget( $args, $instance ) {
|
@@ -62,30 +62,30 @@ class rhea_features_block extends WP_Widget {
|
|
62 |
$icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : '';
|
63 |
?>
|
64 |
<p>
|
65 |
-
<label for="<?php echo $this->get_field_id( 'icon' ); ?>"><?php esc_html_e( 'Icon', '
|
66 |
<div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
|
67 |
<input type="hidden" class="widefat" name="<?php echo $this->get_field_name( 'icon' ); ?>" id="<?php echo $this->get_field_id( 'icon' ); ?>" value="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
|
68 |
<div class="icon-holder">
|
69 |
-
<p><?php esc_html_e( 'No icon selected :( ...', '
|
70 |
<i class="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
|
71 |
</div>
|
72 |
<div class="actions">
|
73 |
-
<button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', '
|
74 |
-
<button type="button" class="button change-icon-button"><?php esc_html_e( 'Change Icon', '
|
75 |
-
<button type="button" class="button remove-icon-button"><?php esc_html_e( 'Remove', '
|
76 |
</div>
|
77 |
</div>
|
78 |
</p>
|
79 |
<p>
|
80 |
-
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', '
|
81 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
|
82 |
</p>
|
83 |
<p>
|
84 |
-
<label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php esc_html_e( 'Text', '
|
85 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>" id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
|
86 |
</p>
|
87 |
<p>
|
88 |
-
<label for="<?php echo $this->get_field_id( 'link' ); ?>"><?php esc_html_e( 'Link','
|
89 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>" id="<?php echo $this->get_field_id( 'link' ); ?>" value="<?php if ( ! empty( $instance['link'] ) ) { echo $instance['link']; } ?>" class="widefat">
|
90 |
</p>
|
91 |
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
+
'description' => esc_html__( 'This widget is designed for Our focus section widgets', 'themeisle-companion' ),
|
8 |
);
|
9 |
+
parent::__construct( 'rhea-feature-block', esc_html__( '[Rhea] Our features widget', 'themeisle-companion' ), $widget_args );
|
10 |
}
|
11 |
|
12 |
function widget( $args, $instance ) {
|
62 |
$icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : '';
|
63 |
?>
|
64 |
<p>
|
65 |
+
<label for="<?php echo $this->get_field_id( 'icon' ); ?>"><?php esc_html_e( 'Icon', 'themeisle-companion' ); ?></label><br/>
|
66 |
<div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
|
67 |
<input type="hidden" class="widefat" name="<?php echo $this->get_field_name( 'icon' ); ?>" id="<?php echo $this->get_field_id( 'icon' ); ?>" value="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
|
68 |
<div class="icon-holder">
|
69 |
+
<p><?php esc_html_e( 'No icon selected :( ...', 'themeisle-companion' ) ?></p>
|
70 |
<i class="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
|
71 |
</div>
|
72 |
<div class="actions">
|
73 |
+
<button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', 'themeisle-companion' ) ?></button>
|
74 |
+
<button type="button" class="button change-icon-button"><?php esc_html_e( 'Change Icon', 'themeisle-companion' ) ?></button>
|
75 |
+
<button type="button" class="button remove-icon-button"><?php esc_html_e( 'Remove', 'themeisle-companion' ) ?></button>
|
76 |
</div>
|
77 |
</div>
|
78 |
</p>
|
79 |
<p>
|
80 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'themeisle-companion' ); ?></label><br/>
|
81 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
|
82 |
</p>
|
83 |
<p>
|
84 |
+
<label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php esc_html_e( 'Text', 'themeisle-companion' ); ?></label><br/>
|
85 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>" id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) { echo htmlspecialchars_decode( $instance['text'] ); } ?></textarea>
|
86 |
</p>
|
87 |
<p>
|
88 |
+
<label for="<?php echo $this->get_field_id( 'link' ); ?>"><?php esc_html_e( 'Link','themeisle-companion' ); ?></label><br />
|
89 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>" id="<?php echo $this->get_field_id( 'link' ); ?>" value="<?php if ( ! empty( $instance['link'] ) ) { echo $instance['link']; } ?>" class="widefat">
|
90 |
</p>
|
91 |
|
obfx_modules/companion-legacy/inc/rhea/widgets/hours.widget.php
CHANGED
@@ -4,9 +4,9 @@ class Rhea_Hours extends WP_Widget {
|
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
-
'description' => esc_html__( 'This widget is designed for footer area', '
|
8 |
);
|
9 |
-
parent::__construct( 'rhea-company-hours', esc_html__( '[Rhea] Company Program', '
|
10 |
}
|
11 |
|
12 |
function widget( $args, $instance ) {
|
@@ -26,7 +26,7 @@ class Rhea_Hours extends WP_Widget {
|
|
26 |
|
27 |
<?php if ( ! empty( $instance['monday_from'] ) || ! empty( $instance['monday_to'] ) ) { ?>
|
28 |
<div class="rhea_program_item">
|
29 |
-
<p><?php esc_html_e( 'Monday', '
|
30 |
<div class="rhea_program_hours">
|
31 |
<?php if ( ! empty( $instance['monday_from'] ) ) { ?>
|
32 |
<div class="rhea_program_item_from">
|
@@ -44,7 +44,7 @@ class Rhea_Hours extends WP_Widget {
|
|
44 |
|
45 |
<?php if ( ! empty( $instance['tuesday_from'] ) || ! empty( $instance['tuesday_to'] ) ) { ?>
|
46 |
<div class="rhea_program_item">
|
47 |
-
<p><?php esc_html_e( 'Tuesday', '
|
48 |
<div class="rhea_program_hours">
|
49 |
<?php if ( ! empty( $instance['tuesday_from'] ) ) { ?>
|
50 |
<div class="rhea_program_item_from">
|
@@ -62,7 +62,7 @@ class Rhea_Hours extends WP_Widget {
|
|
62 |
|
63 |
<?php if ( ! empty( $instance['wednesday_from'] ) || ! empty( $instance['wednesday_to'] ) ) { ?>
|
64 |
<div class="rhea_program_item">
|
65 |
-
<p><?php esc_html_e( 'Wednesday', '
|
66 |
<div class="rhea_program_hours">
|
67 |
<?php if ( ! empty( $instance['wednesday_from'] ) ) { ?>
|
68 |
<div class="rhea_program_item_from">
|
@@ -80,7 +80,7 @@ class Rhea_Hours extends WP_Widget {
|
|
80 |
|
81 |
<?php if ( ! empty( $instance['thursday_from'] ) || ! empty( $instance['thursday_to'] ) ) { ?>
|
82 |
<div class="rhea_program_item">
|
83 |
-
<p><?php esc_html_e( 'Thursday', '
|
84 |
<div class="rhea_program_hours">
|
85 |
<?php if ( ! empty( $instance['thursday_from'] ) ) { ?>
|
86 |
<div class="rhea_program_item_from">
|
@@ -98,7 +98,7 @@ class Rhea_Hours extends WP_Widget {
|
|
98 |
|
99 |
<?php if ( ! empty( $instance['friday_from'] ) || ! empty( $instance['friday_to'] ) ) { ?>
|
100 |
<div class="rhea_program_item">
|
101 |
-
<p><?php esc_html_e( 'Friday', '
|
102 |
<div class="rhea_program_hours">
|
103 |
<?php if ( ! empty( $instance['friday_from'] ) ) { ?>
|
104 |
<div class="rhea_program_item_from">
|
@@ -116,7 +116,7 @@ class Rhea_Hours extends WP_Widget {
|
|
116 |
|
117 |
<?php if ( ! empty( $instance['saturday_from'] ) || ! empty( $instance['saturday_to'] ) ) { ?>
|
118 |
<div class="rhea_program_item">
|
119 |
-
<p><?php esc_html_e( 'Saturday', '
|
120 |
<div class="rhea_program_hours">
|
121 |
<?php if ( ! empty( $instance['saturday_from'] ) ) { ?>
|
122 |
<div class="rhea_program_item_from">
|
@@ -134,7 +134,7 @@ class Rhea_Hours extends WP_Widget {
|
|
134 |
|
135 |
<?php if ( ( isset( $instance['sunday_from'] ) && $instance['sunday_from'] != '' ) || ( isset( $instance['sunday_to'] ) && $instance['sunday_to'] != '' ) ) { ?>
|
136 |
<div class="rhea_program_item">
|
137 |
-
<p><?php esc_html_e( 'Sunday', '
|
138 |
<div class="rhea_program_hours">
|
139 |
<?php if ( ! empty( $instance['sunday_from'] ) ) { ?>
|
140 |
<div class="rhea_program_item_from">
|
@@ -199,50 +199,50 @@ class Rhea_Hours extends WP_Widget {
|
|
199 |
function form( $instance ) {
|
200 |
?>
|
201 |
<p>
|
202 |
-
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', '
|
203 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo esc_html( $instance['title'] ); } ?>" class="widefat">
|
204 |
</p>
|
205 |
<p>
|
206 |
-
<label><?php esc_html_e( 'Monday', '
|
207 |
|
208 |
-
<input type="text" name="<?php echo $this->get_field_name( 'monday_from' ); ?>" id="<?php echo $this->get_field_id( 'monday_from' ); ?>" value="<?php if ( ! empty( $instance['monday_from'] ) ) { echo esc_html( $instance['monday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', '
|
209 |
-
<input type="text" name="<?php echo $this->get_field_name( 'monday_to' ); ?>" id="<?php echo $this->get_field_id( 'monday_to' ); ?>" value="<?php if ( ! empty( $instance['monday_to'] ) ) { echo esc_html( $instance['monday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', '
|
210 |
</p>
|
211 |
<p>
|
212 |
-
<label><?php esc_html_e( 'Tuesday', '
|
213 |
|
214 |
-
<input type="text" name="<?php echo $this->get_field_name( 'tuesday_from' ); ?>" id="<?php echo $this->get_field_id( 'tuesday_from' ); ?>" value="<?php if ( ! empty( $instance['tuesday_from'] ) ) { echo esc_html( $instance['tuesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', '
|
215 |
-
<input type="text" name="<?php echo $this->get_field_name( 'tuesday_to' ); ?>" id="<?php echo $this->get_field_id( 'tuesday_to' ); ?>" value="<?php if ( ! empty( $instance['tuesday_to'] ) ) { echo esc_html( $instance['tuesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', '
|
216 |
</p>
|
217 |
<p>
|
218 |
-
<label><?php esc_html_e( 'Wednesday', '
|
219 |
|
220 |
-
<input type="text" name="<?php echo $this->get_field_name( 'wednesday_from' ); ?>" id="<?php echo $this->get_field_id( 'wednesday_from' ); ?>" value="<?php if ( ! empty( $instance['wednesday_from'] ) ) { echo esc_html( $instance['wednesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', '
|
221 |
-
<input type="text" name="<?php echo $this->get_field_name( 'wednesday_to' ); ?>" id="<?php echo $this->get_field_id( 'wednesday_to' ); ?>" value="<?php if ( ! empty( $instance['wednesday_to'] ) ) { echo esc_html( $instance['wednesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', '
|
222 |
</p>
|
223 |
<p>
|
224 |
-
<label><?php esc_html_e( 'Thursday', '
|
225 |
|
226 |
-
<input type="text" name="<?php echo $this->get_field_name( 'thursday_from' ); ?>" id="<?php echo $this->get_field_id( 'thursday_from' ); ?>" value="<?php if ( ! empty( $instance['thursday_from'] ) ) { echo esc_html( $instance['thursday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', '
|
227 |
-
<input type="text" name="<?php echo $this->get_field_name( 'thursday_to' ); ?>" id="<?php echo $this->get_field_id( 'thursday_to' ); ?>" value="<?php if ( ! empty( $instance['thursday_to'] ) ) { echo esc_html( $instance['thursday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', '
|
228 |
</p>
|
229 |
<p>
|
230 |
-
<label><?php esc_html_e( 'Friday', '
|
231 |
|
232 |
-
<input type="text" name="<?php echo $this->get_field_name( 'friday_from' ); ?>" id="<?php echo $this->get_field_id( 'friday_from' ); ?>" value="<?php if ( ! empty( $instance['friday_from'] ) ) { echo esc_html( $instance['friday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', '
|
233 |
-
<input type="text" name="<?php echo $this->get_field_name( 'friday_to' ); ?>" id="<?php echo $this->get_field_id( 'friday_to' ); ?>" value="<?php if ( ! empty( $instance['friday_to'] ) ) { echo esc_html( $instance['friday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', '
|
234 |
</p>
|
235 |
<p>
|
236 |
-
<label><?php esc_html_e( 'Saturday', '
|
237 |
|
238 |
-
<input type="text" name="<?php echo $this->get_field_name( 'saturday_from' ); ?>" id="<?php echo $this->get_field_id( 'saturday_from' ); ?>" value="<?php if ( ! empty( $instance['saturday_from'] ) ) { echo esc_html( $instance['saturday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', '
|
239 |
-
<input type="text" name="<?php echo $this->get_field_name( 'saturday_to' ); ?>" id="<?php echo $this->get_field_id( 'saturday_to' ); ?>" value="<?php if ( ! empty( $instance['saturday_to'] ) ) { echo esc_html( $instance['saturday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', '
|
240 |
</p>
|
241 |
<p>
|
242 |
-
<label><?php esc_html_e( 'Sunday', '
|
243 |
|
244 |
-
<input type="text" name="<?php echo $this->get_field_name( 'sunday_from' ); ?>" id="<?php echo $this->get_field_id( 'sunday_from' ); ?>" value="<?php if ( ! empty( $instance['sunday_from'] ) ) { echo esc_html( $instance['sunday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', '
|
245 |
-
<input type="text" name="<?php echo $this->get_field_name( 'sunday_to' ); ?>" id="<?php echo $this->get_field_id( 'sunday_to' ); ?>" value="<?php if ( ! empty( $instance['sunday_to'] ) ) { echo esc_html( $instance['sunday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', '
|
246 |
</p>
|
247 |
|
248 |
<?php
|
4 |
public function __construct() {
|
5 |
|
6 |
$widget_args = array(
|
7 |
+
'description' => esc_html__( 'This widget is designed for footer area', 'themeisle-companion' ),
|
8 |
);
|
9 |
+
parent::__construct( 'rhea-company-hours', esc_html__( '[Rhea] Company Program', 'themeisle-companion' ), $widget_args );
|
10 |
}
|
11 |
|
12 |
function widget( $args, $instance ) {
|
26 |
|
27 |
<?php if ( ! empty( $instance['monday_from'] ) || ! empty( $instance['monday_to'] ) ) { ?>
|
28 |
<div class="rhea_program_item">
|
29 |
+
<p><?php esc_html_e( 'Monday', 'themeisle-companion' ); ?></p>
|
30 |
<div class="rhea_program_hours">
|
31 |
<?php if ( ! empty( $instance['monday_from'] ) ) { ?>
|
32 |
<div class="rhea_program_item_from">
|
44 |
|
45 |
<?php if ( ! empty( $instance['tuesday_from'] ) || ! empty( $instance['tuesday_to'] ) ) { ?>
|
46 |
<div class="rhea_program_item">
|
47 |
+
<p><?php esc_html_e( 'Tuesday', 'themeisle-companion' ); ?></p>
|
48 |
<div class="rhea_program_hours">
|
49 |
<?php if ( ! empty( $instance['tuesday_from'] ) ) { ?>
|
50 |
<div class="rhea_program_item_from">
|
62 |
|
63 |
<?php if ( ! empty( $instance['wednesday_from'] ) || ! empty( $instance['wednesday_to'] ) ) { ?>
|
64 |
<div class="rhea_program_item">
|
65 |
+
<p><?php esc_html_e( 'Wednesday', 'themeisle-companion' ); ?></p>
|
66 |
<div class="rhea_program_hours">
|
67 |
<?php if ( ! empty( $instance['wednesday_from'] ) ) { ?>
|
68 |
<div class="rhea_program_item_from">
|
80 |
|
81 |
<?php if ( ! empty( $instance['thursday_from'] ) || ! empty( $instance['thursday_to'] ) ) { ?>
|
82 |
<div class="rhea_program_item">
|
83 |
+
<p><?php esc_html_e( 'Thursday', 'themeisle-companion' ); ?></p>
|
84 |
<div class="rhea_program_hours">
|
85 |
<?php if ( ! empty( $instance['thursday_from'] ) ) { ?>
|
86 |
<div class="rhea_program_item_from">
|
98 |
|
99 |
<?php if ( ! empty( $instance['friday_from'] ) || ! empty( $instance['friday_to'] ) ) { ?>
|
100 |
<div class="rhea_program_item">
|
101 |
+
<p><?php esc_html_e( 'Friday', 'themeisle-companion' ); ?></p>
|
102 |
<div class="rhea_program_hours">
|
103 |
<?php if ( ! empty( $instance['friday_from'] ) ) { ?>
|
104 |
<div class="rhea_program_item_from">
|
116 |
|
117 |
<?php if ( ! empty( $instance['saturday_from'] ) || ! empty( $instance['saturday_to'] ) ) { ?>
|
118 |
<div class="rhea_program_item">
|
119 |
+
<p><?php esc_html_e( 'Saturday', 'themeisle-companion' ); ?></p>
|
120 |
<div class="rhea_program_hours">
|
121 |
<?php if ( ! empty( $instance['saturday_from'] ) ) { ?>
|
122 |
<div class="rhea_program_item_from">
|
134 |
|
135 |
<?php if ( ( isset( $instance['sunday_from'] ) && $instance['sunday_from'] != '' ) || ( isset( $instance['sunday_to'] ) && $instance['sunday_to'] != '' ) ) { ?>
|
136 |
<div class="rhea_program_item">
|
137 |
+
<p><?php esc_html_e( 'Sunday', 'themeisle-companion' ); ?></p>
|
138 |
<div class="rhea_program_hours">
|
139 |
<?php if ( ! empty( $instance['sunday_from'] ) ) { ?>
|
140 |
<div class="rhea_program_item_from">
|
199 |
function form( $instance ) {
|
200 |
?>
|
201 |
<p>
|
202 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'themeisle-companion' ); ?></label><br/>
|
203 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo esc_html( $instance['title'] ); } ?>" class="widefat">
|
204 |
</p>
|
205 |
<p>
|
206 |
+
<label><?php esc_html_e( 'Monday', 'themeisle-companion' ); ?></label><br/>
|
207 |
|
208 |
+
<input type="text" name="<?php echo $this->get_field_name( 'monday_from' ); ?>" id="<?php echo $this->get_field_id( 'monday_from' ); ?>" value="<?php if ( ! empty( $instance['monday_from'] ) ) { echo esc_html( $instance['monday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'themeisle-companion' ); ?>" style="width:45%;">
|
209 |
+
<input type="text" name="<?php echo $this->get_field_name( 'monday_to' ); ?>" id="<?php echo $this->get_field_id( 'monday_to' ); ?>" value="<?php if ( ! empty( $instance['monday_to'] ) ) { echo esc_html( $instance['monday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'themeisle-companion' ); ?>" style="width:45%;">
|
210 |
</p>
|
211 |
<p>
|
212 |
+
<label><?php esc_html_e( 'Tuesday', 'themeisle-companion' ); ?></label><br/>
|
213 |
|
214 |
+
<input type="text" name="<?php echo $this->get_field_name( 'tuesday_from' ); ?>" id="<?php echo $this->get_field_id( 'tuesday_from' ); ?>" value="<?php if ( ! empty( $instance['tuesday_from'] ) ) { echo esc_html( $instance['tuesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'themeisle-companion' ); ?>" style="width:45%;">
|
215 |
+
<input type="text" name="<?php echo $this->get_field_name( 'tuesday_to' ); ?>" id="<?php echo $this->get_field_id( 'tuesday_to' ); ?>" value="<?php if ( ! empty( $instance['tuesday_to'] ) ) { echo esc_html( $instance['tuesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'themeisle-companion' ); ?>" style="width:45%;">
|
216 |
</p>
|
217 |
<p>
|
218 |
+
<label><?php esc_html_e( 'Wednesday', 'themeisle-companion' ); ?></label><br/>
|
219 |
|
220 |
+
<input type="text" name="<?php echo $this->get_field_name( 'wednesday_from' ); ?>" id="<?php echo $this->get_field_id( 'wednesday_from' ); ?>" value="<?php if ( ! empty( $instance['wednesday_from'] ) ) { echo esc_html( $instance['wednesday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'themeisle-companion' ); ?>" style="width:45%;">
|
221 |
+
<input type="text" name="<?php echo $this->get_field_name( 'wednesday_to' ); ?>" id="<?php echo $this->get_field_id( 'wednesday_to' ); ?>" value="<?php if ( ! empty( $instance['wednesday_to'] ) ) { echo esc_html( $instance['wednesday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'themeisle-companion' ); ?>" style="width:45%;">
|
222 |
</p>
|
223 |
<p>
|
224 |
+
<label><?php esc_html_e( 'Thursday', 'themeisle-companion' ); ?></label><br/>
|
225 |
|
226 |
+
<input type="text" name="<?php echo $this->get_field_name( 'thursday_from' ); ?>" id="<?php echo $this->get_field_id( 'thursday_from' ); ?>" value="<?php if ( ! empty( $instance['thursday_from'] ) ) { echo esc_html( $instance['thursday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'themeisle-companion' ); ?>" style="width:45%;">
|
227 |
+
<input type="text" name="<?php echo $this->get_field_name( 'thursday_to' ); ?>" id="<?php echo $this->get_field_id( 'thursday_to' ); ?>" value="<?php if ( ! empty( $instance['thursday_to'] ) ) { echo esc_html( $instance['thursday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'themeisle-companion' ); ?>" style="width:45%;">
|
228 |
</p>
|
229 |
<p>
|
230 |
+
<label><?php esc_html_e( 'Friday', 'themeisle-companion' ); ?></label><br/>
|
231 |
|
232 |
+
<input type="text" name="<?php echo $this->get_field_name( 'friday_from' ); ?>" id="<?php echo $this->get_field_id( 'friday_from' ); ?>" value="<?php if ( ! empty( $instance['friday_from'] ) ) { echo esc_html( $instance['friday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'themeisle-companion' ); ?>" style="width:45%;">
|
233 |
+
<input type="text" name="<?php echo $this->get_field_name( 'friday_to' ); ?>" id="<?php echo $this->get_field_id( 'friday_to' ); ?>" value="<?php if ( ! empty( $instance['friday_to'] ) ) { echo esc_html( $instance['friday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'themeisle-companion' ); ?>" style="width:45%;">
|
234 |
</p>
|
235 |
<p>
|
236 |
+
<label><?php esc_html_e( 'Saturday', 'themeisle-companion' ); ?></label><br/>
|
237 |
|
238 |
+
<input type="text" name="<?php echo $this->get_field_name( 'saturday_from' ); ?>" id="<?php echo $this->get_field_id( 'saturday_from' ); ?>" value="<?php if ( ! empty( $instance['saturday_from'] ) ) { echo esc_html( $instance['saturday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'themeisle-companion' ); ?>" style="width:45%;">
|
239 |
+
<input type="text" name="<?php echo $this->get_field_name( 'saturday_to' ); ?>" id="<?php echo $this->get_field_id( 'saturday_to' ); ?>" value="<?php if ( ! empty( $instance['saturday_to'] ) ) { echo esc_html( $instance['saturday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'themeisle-companion' ); ?>" style="width:45%;">
|
240 |
</p>
|
241 |
<p>
|
242 |
+
<label><?php esc_html_e( 'Sunday', 'themeisle-companion' ); ?></label><br/>
|
243 |
|
244 |
+
<input type="text" name="<?php echo $this->get_field_name( 'sunday_from' ); ?>" id="<?php echo $this->get_field_id( 'sunday_from' ); ?>" value="<?php if ( ! empty( $instance['sunday_from'] ) ) { echo esc_html( $instance['sunday_from'] ); } ?>" placeholder="<?php esc_html_e( 'From', 'themeisle-companion' ); ?>" style="width:45%;">
|
245 |
+
<input type="text" name="<?php echo $this->get_field_name( 'sunday_to' ); ?>" id="<?php echo $this->get_field_id( 'sunday_to' ); ?>" value="<?php if ( ! empty( $instance['sunday_to'] ) ) { echo esc_html( $instance['sunday_to'] ); } ?>" placeholder="<?php esc_html_e( 'To', 'themeisle-companion' ); ?>" style="width:45%;">
|
246 |
</p>
|
247 |
|
248 |
<?php
|
obfx_modules/companion-legacy/inc/rhea/widgets/icon-box.widget.php
CHANGED
@@ -3,9 +3,9 @@ class Rhea_Icon_Box extends WP_Widget {
|
|
3 |
|
4 |
public function __construct() {
|
5 |
$widget_args = array(
|
6 |
-
'description' => esc_html__( 'This widget is designed for Right Section sidebar', '
|
7 |
);
|
8 |
-
parent::__construct( 'rhea-icon-box', esc_html__( '[Rhea] Icon Box', '
|
9 |
}
|
10 |
|
11 |
function widget( $args, $instance ) {
|
@@ -69,31 +69,31 @@ class Rhea_Icon_Box extends WP_Widget {
|
|
69 |
function form( $instance ) {
|
70 |
$icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : ''; ?>
|
71 |
<p>
|
72 |
-
<label for="<?php echo $this->get_field_id( 'icon' ); ?>"><?php esc_html_e( 'Icon', '
|
73 |
<div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
|
74 |
<input type="hidden" class="widefat" name="<?php echo $this->get_field_name( 'icon' ); ?>" id="<?php echo $this->get_field_id( 'icon' ); ?>" value="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
|
75 |
<div class="icon-holder">
|
76 |
-
<p><?php esc_html_e( 'No icon selected :( ...', '
|
77 |
<i class="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
|
78 |
</div>
|
79 |
<div class="actions">
|
80 |
-
<button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', '
|
81 |
-
<button type="button" class="button change-icon-button"><?php esc_html_e( 'Change Icon', '
|
82 |
-
<button type="button" class="button remove-icon-button"><?php esc_html_e( 'Remove', '
|
83 |
</div>
|
84 |
</div>
|
85 |
</p>
|
86 |
<p>
|
87 |
-
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', '
|
88 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
|
89 |
</p>
|
90 |
<p>
|
91 |
-
<label for="<?php echo $this->get_field_id( 'subtitle' ); ?>"><?php esc_html_e( 'Subtitle', '
|
92 |
<input type="text" name="<?php echo $this->get_field_name( 'subtitle' ); ?>" id="<?php echo $this->get_field_id( 'subtitle' ); ?>" value="<?php if ( ! empty( $instance['subtitle'] ) ) { echo $instance['subtitle']; } ?>" class="widefat">
|
93 |
</p>
|
94 |
|
95 |
<p>
|
96 |
-
<label for="<?php echo $this->get_field_id( 'description' ); ?>"><?php esc_html_e( 'Description', '
|
97 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'description' ); ?>" id="<?php echo $this->get_field_id( 'description' ); ?>"><?php if ( ! empty( $instance['description'] ) ) { echo htmlspecialchars_decode( $instance['description'] ); } ?></textarea>
|
98 |
</p>
|
99 |
|
3 |
|
4 |
public function __construct() {
|
5 |
$widget_args = array(
|
6 |
+
'description' => esc_html__( 'This widget is designed for Right Section sidebar', 'themeisle-companion' ),
|
7 |
);
|
8 |
+
parent::__construct( 'rhea-icon-box', esc_html__( '[Rhea] Icon Box', 'themeisle-companion' ), $widget_args );
|
9 |
}
|
10 |
|
11 |
function widget( $args, $instance ) {
|
69 |
function form( $instance ) {
|
70 |
$icon_holder_class = empty( $instance['icon'] ) ? ' empty-icon' : ''; ?>
|
71 |
<p>
|
72 |
+
<label for="<?php echo $this->get_field_id( 'icon' ); ?>"><?php esc_html_e( 'Icon', 'themeisle-companion' ); ?></label><br/>
|
73 |
<div class="fontawesome-icon-container<?php echo esc_attr( $icon_holder_class ); ?>">
|
74 |
<input type="hidden" class="widefat" name="<?php echo $this->get_field_name( 'icon' ); ?>" id="<?php echo $this->get_field_id( 'icon' ); ?>" value="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_html( $instance['icon'] ); } ?>">
|
75 |
<div class="icon-holder">
|
76 |
+
<p><?php esc_html_e( 'No icon selected :( ...', 'themeisle-companion' ) ?></p>
|
77 |
<i class="<?php if ( ! empty( $instance['icon'] ) ) { echo esc_attr( $instance['icon'] ); } ?>"></i>
|
78 |
</div>
|
79 |
<div class="actions">
|
80 |
+
<button type="button" class="button add-icon-button"><?php esc_html_e( 'Select Icon', 'themeisle-companion' ) ?></button>
|
81 |
+
<button type="button" class="button change-icon-button"><?php esc_html_e( 'Change Icon', 'themeisle-companion' ) ?></button>
|
82 |
+
<button type="button" class="button remove-icon-button"><?php esc_html_e( 'Remove', 'themeisle-companion' ) ?></button>
|
83 |
</div>
|
84 |
</div>
|
85 |
</p>
|
86 |
<p>
|
87 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'themeisle-companion' ); ?></label><br/>
|
88 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" class="widefat">
|
89 |
</p>
|
90 |
<p>
|
91 |
+
<label for="<?php echo $this->get_field_id( 'subtitle' ); ?>"><?php esc_html_e( 'Subtitle', 'themeisle-companion' ); ?></label><br/>
|
92 |
<input type="text" name="<?php echo $this->get_field_name( 'subtitle' ); ?>" id="<?php echo $this->get_field_id( 'subtitle' ); ?>" value="<?php if ( ! empty( $instance['subtitle'] ) ) { echo $instance['subtitle']; } ?>" class="widefat">
|
93 |
</p>
|
94 |
|
95 |
<p>
|
96 |
+
<label for="<?php echo $this->get_field_id( 'description' ); ?>"><?php esc_html_e( 'Description', 'themeisle-companion' ); ?></label><br/>
|
97 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'description' ); ?>" id="<?php echo $this->get_field_id( 'description' ); ?>"><?php if ( ! empty( $instance['description'] ) ) { echo htmlspecialchars_decode( $instance['description'] ); } ?></textarea>
|
98 |
</p>
|
99 |
|
obfx_modules/companion-legacy/inc/rhea/widgets/progress-bar.widget.php
CHANGED
@@ -3,9 +3,9 @@ class Rhea_Progress_Bar extends WP_Widget {
|
|
3 |
|
4 |
public function __construct() {
|
5 |
$widget_args = array(
|
6 |
-
'description' => esc_html__( 'This widget is designed for Progress Bar Section', '
|
7 |
);
|
8 |
-
parent::__construct( 'rhea-progress-bar', esc_html__( '[Rhea] - Progress Bar', '
|
9 |
}
|
10 |
|
11 |
function widget( $args, $instance ) {
|
@@ -59,15 +59,15 @@ class Rhea_Progress_Bar extends WP_Widget {
|
|
59 |
?>
|
60 |
|
61 |
<p>
|
62 |
-
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', '
|
63 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" placeholder="Wordpress" class="widefat">
|
64 |
</p>
|
65 |
<p>
|
66 |
-
<label for="<?php echo $this->get_field_id( 'info' ); ?>"><?php esc_html_e( 'Info', '
|
67 |
<input type="text" name="<?php echo $this->get_field_name( 'info' ); ?>" id="<?php echo $this->get_field_id( 'info' ); ?>" value="<?php if ( ! empty( $instance['info'] ) ) { echo $instance['info']; } ?>" placeholder="70%" class="widefat">
|
68 |
</p>
|
69 |
<p>
|
70 |
-
<label for="<?php echo $this->get_field_id( 'percentage' ); ?>"><?php esc_html_e( 'Percentage','
|
71 |
<input type="text" name="<?php echo $this->get_field_name( 'percentage' ); ?>" id="<?php echo $this->get_field_id( 'percentage' ); ?>" value="<?php if ( ! empty( $instance['percentage'] ) ) { echo $instance['percentage']; } ?>" placeholder="70" class="widefat">
|
72 |
</p>
|
73 |
|
3 |
|
4 |
public function __construct() {
|
5 |
$widget_args = array(
|
6 |
+
'description' => esc_html__( 'This widget is designed for Progress Bar Section', 'themeisle-companion' ),
|
7 |
);
|
8 |
+
parent::__construct( 'rhea-progress-bar', esc_html__( '[Rhea] - Progress Bar', 'themeisle-companion' ), $widget_args );
|
9 |
}
|
10 |
|
11 |
function widget( $args, $instance ) {
|
59 |
?>
|
60 |
|
61 |
<p>
|
62 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title', 'themeisle-companion' ); ?></label><br/>
|
63 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php if ( ! empty( $instance['title'] ) ) { echo $instance['title']; } ?>" placeholder="Wordpress" class="widefat">
|
64 |
</p>
|
65 |
<p>
|
66 |
+
<label for="<?php echo $this->get_field_id( 'info' ); ?>"><?php esc_html_e( 'Info', 'themeisle-companion' ); ?></label><br/>
|
67 |
<input type="text" name="<?php echo $this->get_field_name( 'info' ); ?>" id="<?php echo $this->get_field_id( 'info' ); ?>" value="<?php if ( ! empty( $instance['info'] ) ) { echo $instance['info']; } ?>" placeholder="70%" class="widefat">
|
68 |
</p>
|
69 |
<p>
|
70 |
+
<label for="<?php echo $this->get_field_id( 'percentage' ); ?>"><?php esc_html_e( 'Percentage','themeisle-companion' ); ?></label><br />
|
71 |
<input type="text" name="<?php echo $this->get_field_name( 'percentage' ); ?>" id="<?php echo $this->get_field_id( 'percentage' ); ?>" value="<?php if ( ! empty( $instance['percentage'] ) ) { echo $instance['percentage']; } ?>" placeholder="70" class="widefat">
|
72 |
</p>
|
73 |
|
obfx_modules/companion-legacy/inc/shop-isle/class-template-loader.php
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The template loader
|
4 |
+
*
|
5 |
+
* Used to load templates from plugin.
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Class Shop_Isle_Template_Loader
|
10 |
+
*/
|
11 |
+
class Shop_Isle_Template_Loader {
|
12 |
+
/**
|
13 |
+
* A reference to an instance of this class.
|
14 |
+
*/
|
15 |
+
private static $instance;
|
16 |
+
/**
|
17 |
+
* The array of templates that this plugin tracks.
|
18 |
+
*/
|
19 |
+
protected $templates;
|
20 |
+
/**
|
21 |
+
* Returns an instance of this class.
|
22 |
+
*/
|
23 |
+
public static function get_instance() {
|
24 |
+
if ( null == self::$instance ) {
|
25 |
+
self::$instance = new Shop_Isle_Template_Loader();
|
26 |
+
}
|
27 |
+
return self::$instance;
|
28 |
+
}
|
29 |
+
/**
|
30 |
+
* Initializes the plugin by setting filters and administration functions.
|
31 |
+
*/
|
32 |
+
private function __construct() {
|
33 |
+
$this->templates = array();
|
34 |
+
// Add a filter to the attributes metabox to inject template into the cache.
|
35 |
+
if ( version_compare( floatval( get_bloginfo( 'version' ) ), '4.7', '<' ) ) {
|
36 |
+
// 4.6 and older
|
37 |
+
add_filter(
|
38 |
+
'page_attributes_dropdown_pages_args',
|
39 |
+
array( $this, 'register_project_templates' )
|
40 |
+
);
|
41 |
+
} else {
|
42 |
+
// Add a filter to the wp 4.7 version attributes metabox
|
43 |
+
add_filter(
|
44 |
+
'theme_page_templates', array( $this, 'add_new_template' )
|
45 |
+
);
|
46 |
+
}
|
47 |
+
// Add a filter to the save post to inject out template into the page cache
|
48 |
+
add_filter(
|
49 |
+
'wp_insert_post_data',
|
50 |
+
array( $this, 'register_project_templates' )
|
51 |
+
);
|
52 |
+
// Add a filter to the template include to determine if the page has our
|
53 |
+
// template assigned and return it's path
|
54 |
+
add_filter(
|
55 |
+
'template_include',
|
56 |
+
array( $this, 'view_project_template')
|
57 |
+
);
|
58 |
+
// Add your templates to this array.
|
59 |
+
$this->templates = array(
|
60 |
+
'template-about.php' => 'About Us Template',
|
61 |
+
);
|
62 |
+
|
63 |
+
}
|
64 |
+
/**
|
65 |
+
* Adds our template to the page dropdown for v4.7+
|
66 |
+
*
|
67 |
+
*/
|
68 |
+
public function add_new_template( $posts_templates ) {
|
69 |
+
$posts_templates = array_merge( $posts_templates, $this->templates );
|
70 |
+
return $posts_templates;
|
71 |
+
}
|
72 |
+
/**
|
73 |
+
* Adds our template to the pages cache in order to trick WordPress
|
74 |
+
* into thinking the template file exists where it doens't really exist.
|
75 |
+
*/
|
76 |
+
public function register_project_templates( $atts ) {
|
77 |
+
// Create the key used for the themes cache
|
78 |
+
$cache_key = 'page_templates-' . md5( get_theme_root() . '/' . get_stylesheet() );
|
79 |
+
// Retrieve the cache list.
|
80 |
+
// If it doesn't exist, or it's empty prepare an array
|
81 |
+
$templates = wp_get_theme()->get_page_templates();
|
82 |
+
if ( empty( $templates ) ) {
|
83 |
+
$templates = array();
|
84 |
+
}
|
85 |
+
// New cache, therefore remove the old one
|
86 |
+
wp_cache_delete( $cache_key , 'themes');
|
87 |
+
// Now add our template to the list of templates by merging our templates
|
88 |
+
// with the existing templates array from the cache.
|
89 |
+
$templates = array_merge( $templates, $this->templates );
|
90 |
+
// Add the modified cache to allow WordPress to pick it up for listing
|
91 |
+
// available templates
|
92 |
+
wp_cache_add( $cache_key, $templates, 'themes', 1800 );
|
93 |
+
return $atts;
|
94 |
+
}
|
95 |
+
/**
|
96 |
+
* Checks if the template is assigned to the page
|
97 |
+
*/
|
98 |
+
public function view_project_template( $template ) {
|
99 |
+
|
100 |
+
// Get global post
|
101 |
+
global $post;
|
102 |
+
// Return template if post is empty
|
103 |
+
if ( ! $post ) {
|
104 |
+
return $template;
|
105 |
+
}
|
106 |
+
// Return default template if we don't have a custom one defined
|
107 |
+
if ( ! isset( $this->templates[get_post_meta(
|
108 |
+
$post->ID, '_wp_page_template', true
|
109 |
+
)] ) ) {
|
110 |
+
return $template;
|
111 |
+
}
|
112 |
+
$file = plugin_dir_path( __FILE__ ). get_post_meta(
|
113 |
+
$post->ID, '_wp_page_template', true
|
114 |
+
);
|
115 |
+
// Just to be safe, we check if the file exist first
|
116 |
+
if ( file_exists( $file ) ) {
|
117 |
+
return $file;
|
118 |
+
} else {
|
119 |
+
echo $file;
|
120 |
+
}
|
121 |
+
// Return template
|
122 |
+
return $template;
|
123 |
+
}
|
124 |
+
}
|
125 |
+
add_action( 'plugins_loaded', array( 'Shop_Isle_Template_Loader', 'get_instance' ) );
|
obfx_modules/companion-legacy/inc/shop-isle/content-slider.php
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* ***** SLIDER *******
|
5 |
+
*
|
6 |
+
*/
|
7 |
+
|
8 |
+
$shop_isle_homepage_slider_shortcode = get_theme_mod('shop_isle_homepage_slider_shortcode');
|
9 |
+
|
10 |
+
echo '<section id="home" class="home-section home-parallax home-fade'. (empty($shop_isle_homepage_slider_shortcode) ? ' home-full-height' : ' home-slider-plugin' ) .'">';
|
11 |
+
|
12 |
+
if( !empty($shop_isle_homepage_slider_shortcode) ) {
|
13 |
+
echo do_shortcode( $shop_isle_homepage_slider_shortcode );
|
14 |
+
} else {
|
15 |
+
|
16 |
+
$shop_isle_slider = get_theme_mod( 'shop_isle_slider',json_encode( array( array( 'image_url' => get_template_directory_uri() . '/assets/images/slide1.jpg', 'link' => '#', 'text' => __( 'ShopIsle','themeisle-companion' ), 'subtext' => __( 'WooCommerce Theme','themeisle-companion' ), 'label' => __( 'FIND OUT MORE','themeisle-companion' ) ), array( 'image_url' => get_template_directory_uri() . '/assets/images/slide2.jpg', 'link' => '#', 'text' => __( 'ShopIsle','themeisle-companion' ), 'subtext' => __( 'Hight quality store','themeisle-companion' ), 'label' => __( 'FIND OUT MORE','themeisle-companion' ) ), array( 'image_url' => get_template_directory_uri() . '/assets/images/slide3.jpg', 'link' => '#', 'text' => __( 'ShopIsle','themeisle-companion' ), 'subtext' => __( 'Responsive Theme','themeisle-companion' ), 'label' => __( 'FIND OUT MORE','themeisle-companion' ) ) ) ) );
|
17 |
+
|
18 |
+
if ( ! empty( $shop_isle_slider ) ) {
|
19 |
+
|
20 |
+
$shop_isle_slider_decoded = json_decode( $shop_isle_slider );
|
21 |
+
|
22 |
+
if ( ! empty( $shop_isle_slider_decoded ) ) {
|
23 |
+
|
24 |
+
echo '<div class="hero-slider">';
|
25 |
+
|
26 |
+
echo '<ul class="slides">';
|
27 |
+
|
28 |
+
foreach ( $shop_isle_slider_decoded as $shop_isle_slide ) {
|
29 |
+
|
30 |
+
if ( ! empty( $shop_isle_slide->image_url ) ) {
|
31 |
+
|
32 |
+
if ( function_exists( 'icl_t' ) && ! empty( $shop_isle_slide->id ) ) {
|
33 |
+
$shop_isle_slider_image_url = icl_t( 'Slide ' . $shop_isle_slide->id, 'Slide image', $shop_isle_slide->image_url );
|
34 |
+
echo '<li class="bg-dark-30 bg-dark" style="background-image:url(' . esc_url( $shop_isle_slider_image_url ) . ')">';
|
35 |
+
} else {
|
36 |
+
echo '<li class="bg-dark-30 bg-dark" style="background-image:url(' . esc_url( $shop_isle_slide->image_url ) . ')">';
|
37 |
+
}
|
38 |
+
|
39 |
+
echo '<div class="hs-caption">';
|
40 |
+
echo '<div class="caption-content">';
|
41 |
+
|
42 |
+
if ( ! empty( $shop_isle_slide->text ) ) {
|
43 |
+
if ( function_exists( 'icl_t' ) && ! empty( $shop_isle_slide->id ) ) {
|
44 |
+
$shop_isle_slider_text = icl_t( 'Slide ' . $shop_isle_slide->id, 'Slide text', $shop_isle_slide->text );
|
45 |
+
echo '<div class="hs-title-size-4 font-alt mb-30">' . $shop_isle_slider_text . '</div>';
|
46 |
+
} else {
|
47 |
+
echo '<div class="hs-title-size-4 font-alt mb-30">' . $shop_isle_slide->text . '</div>';
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( ! empty( $shop_isle_slide->subtext ) ) {
|
52 |
+
if ( function_exists( 'icl_t' ) && ! empty( $shop_isle_slide->id ) ) {
|
53 |
+
$shop_isle_slider_subtext = icl_t( 'Slide ' . $shop_isle_slide->id, 'Slide subtext', $shop_isle_slide->subtext );
|
54 |
+
echo '<div class="hs-title-size-1 font-alt mb-40">' . $shop_isle_slider_subtext . '</div>';
|
55 |
+
} else {
|
56 |
+
echo '<div class="hs-title-size-1 font-alt mb-40">' . $shop_isle_slide->subtext . '</div>';
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
if ( ! empty( $shop_isle_slide->link ) && ! empty( $shop_isle_slide->label ) ) {
|
61 |
+
if ( function_exists( 'icl_t' ) && ! empty( $shop_isle_slide->id ) ) {
|
62 |
+
$shop_isle_slider_link = icl_t( 'Slide ' . $shop_isle_slide->id, 'Slide button link', $shop_isle_slide->link );
|
63 |
+
$shop_isle_slider_label = icl_t( 'Slide ' . $shop_isle_slide->id, 'Slide button label', $shop_isle_slide->label );
|
64 |
+
echo '<a href="' . esc_url( $shop_isle_slider_link ) . '" class="section-scroll btn btn-border-w btn-round">' . $shop_isle_slider_label . '</a>';
|
65 |
+
} else {
|
66 |
+
echo '<a href="' . esc_url( $shop_isle_slide->link ) . '" class="section-scroll btn btn-border-w btn-round">' . $shop_isle_slide->label . '</a>';
|
67 |
+
}
|
68 |
+
}
|
69 |
+
echo '</div>';
|
70 |
+
echo '</div>';
|
71 |
+
echo '</li>';
|
72 |
+
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
echo '</ul>';
|
77 |
+
|
78 |
+
echo '</div>';
|
79 |
+
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
echo '</section >';
|
85 |
+
|
86 |
+
|
87 |
+
|
obfx_modules/companion-legacy/inc/shop-isle/customizer.php
ADDED
@@ -0,0 +1,662 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Customizer extension for Shop Isle Companion
|
4 |
+
*/
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Add Customizer Controls
|
8 |
+
*
|
9 |
+
* @param $wp_customize
|
10 |
+
*/
|
11 |
+
function shop_isle_companion_customize_register($wp_customize) {
|
12 |
+
|
13 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class ShopIsle_Companion_Aboutus_Page_Instructions
|
17 |
+
*/
|
18 |
+
class ShopIsle_Companion_Aboutus_Page_Instructions extends WP_Customize_Control {
|
19 |
+
/**
|
20 |
+
* Render about page instruction
|
21 |
+
*/
|
22 |
+
public function render_content() {
|
23 |
+
echo __( 'To customize the About us Page you need to first select the template "About us page" for the page you want to use for this purpose. Then open that page in the browser and press "Customize" in the top bar.', 'themeisle-companion' ) . '<br><br>' . __( 'Need further assistance? Check out this', 'themeisle-companion' ) . ' <a href="http://docs.themeisle.com/article/211-shopisle-customizing-the-contact-and-about-us-page" target="_blank">' . __( 'doc', 'themeisle-companion' ) . '</a>';
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
/*==========REMOVE BIG TITLE SECTION==========*/
|
28 |
+
$wp_customize->remove_section( 'shop_isle_big_title_section' );
|
29 |
+
|
30 |
+
|
31 |
+
/*==========SLIDER SECTION==========*/
|
32 |
+
$wp_customize->add_section( 'shop_isle_slider_section', array(
|
33 |
+
'title' => __( 'Slider section', 'themeisle-companion' ),
|
34 |
+
'panel' => 'shop_isle_front_page_sections',
|
35 |
+
'priority' => 1,
|
36 |
+
) );
|
37 |
+
|
38 |
+
|
39 |
+
if ( ! empty( $shop_isle_big_title_image ) || ! empty( $shop_isle_big_title_title ) || ! empty( $shop_isle_big_title_subtitle ) || ! empty( $shop_isle_big_title_button_label ) || ! empty( $shop_isle_big_title_button_link ) ) {
|
40 |
+
$shop_isle_companion_big_title_content;
|
41 |
+
}
|
42 |
+
|
43 |
+
/* Slider */
|
44 |
+
$wp_customize->add_setting( 'shop_isle_slider', array(
|
45 |
+
'sanitize_callback' => 'shop_isle_sanitize_repeater',
|
46 |
+
'default' => json_encode( array(
|
47 |
+
array(
|
48 |
+
'image_url' => get_template_directory_uri() . '/assets/images/slide1.jpg',
|
49 |
+
'link' => '#',
|
50 |
+
'text' => __( 'ShopIsle', 'themeisle-companion' ),
|
51 |
+
'subtext' => __( 'WooCommerce Theme', 'themeisle-companion' ),
|
52 |
+
'label' => __( 'FIND OUT MORE', 'themeisle-companion' )
|
53 |
+
),
|
54 |
+
array(
|
55 |
+
'image_url' => get_template_directory_uri() . '/assets/images/slide2.jpg',
|
56 |
+
'link' => '#',
|
57 |
+
'text' => __( 'ShopIsle', 'themeisle-companion' ),
|
58 |
+
'subtext' => __( 'Hight quality store', 'themeisle-companion' ),
|
59 |
+
'label' => __( 'FIND OUT MORE', 'themeisle-companion' )
|
60 |
+
),
|
61 |
+
array(
|
62 |
+
'image_url' => get_template_directory_uri() . '/assets/images/slide3.jpg',
|
63 |
+
'link' => '#',
|
64 |
+
'text' => __( 'ShopIsle', 'themeisle-companion' ),
|
65 |
+
'subtext' => __( 'Responsive Theme', 'themeisle-companion' ),
|
66 |
+
'label' => __( 'FIND OUT MORE', 'themeisle-companion' )
|
67 |
+
)
|
68 |
+
) ),
|
69 |
+
)
|
70 |
+
);
|
71 |
+
|
72 |
+
if ( class_exists( 'Shop_Isle_Repeater_Controler' ) ) {
|
73 |
+
$wp_customize->add_control( new Shop_Isle_Repeater_Controler( $wp_customize, 'shop_isle_slider', array(
|
74 |
+
'label' => __( 'Add new slide', 'themeisle-companion' ),
|
75 |
+
'section' => 'shop_isle_slider_section',
|
76 |
+
'active_callback' => 'is_front_page',
|
77 |
+
'priority' => 2,
|
78 |
+
'shop_isle_image_control' => true,
|
79 |
+
'shop_isle_text_control' => true,
|
80 |
+
'shop_isle_link_control' => true,
|
81 |
+
'shop_isle_subtext_control' => true,
|
82 |
+
'shop_isle_label_control' => true,
|
83 |
+
'shop_isle_icon_control' => false,
|
84 |
+
'shop_isle_box_label' => __( 'Slide', 'themeisle-companion' ),
|
85 |
+
'shop_isle_box_add_label' => __( 'Add new slide', 'themeisle-companion' ),
|
86 |
+
) ) );
|
87 |
+
}
|
88 |
+
|
89 |
+
/* Slider shortcode */
|
90 |
+
$wp_customize->add_setting( 'shop_isle_homepage_slider_shortcode', array(
|
91 |
+
'sanitize_callback' => 'shop_isle_sanitize_text',
|
92 |
+
) );
|
93 |
+
|
94 |
+
$wp_customize->add_control( 'shop_isle_homepage_slider_shortcode', array(
|
95 |
+
'label' => __( 'Slider shortcode', 'themeisle-companion' ),
|
96 |
+
'description' => __( 'You can replace the homepage slider with any plugin you like, just copy the shortcode generated and paste it here.', 'themeisle-companion' ),
|
97 |
+
'section' => 'shop_isle_slider_section',
|
98 |
+
'active_callback' => 'is_front_page',
|
99 |
+
'priority' => 10
|
100 |
+
) );
|
101 |
+
|
102 |
+
/*********************************/
|
103 |
+
/****** About us page **********/
|
104 |
+
/*********************************/
|
105 |
+
if ( class_exists( 'WP_Customize_Panel' ) ):
|
106 |
+
$wp_customize->add_panel( 'panel_team', array(
|
107 |
+
'priority' => 52,
|
108 |
+
'capability' => 'edit_theme_options',
|
109 |
+
'theme_supports' => '',
|
110 |
+
'title' => __( 'About us page', 'themeisle-companion' )
|
111 |
+
) );
|
112 |
+
$wp_customize->add_section( 'shop_isle_about_page_section', array(
|
113 |
+
'title' => __( 'Our team', 'themeisle-companion' ),
|
114 |
+
'priority' => 1,
|
115 |
+
'panel' => 'panel_team'
|
116 |
+
) );
|
117 |
+
else:
|
118 |
+
$wp_customize->add_section( 'shop_isle_about_page_section', array(
|
119 |
+
'title' => __( 'About us page - our team', 'themeisle-companion' ),
|
120 |
+
'priority' => 52
|
121 |
+
) );
|
122 |
+
endif;
|
123 |
+
/* Our team title */
|
124 |
+
$wp_customize->add_setting( 'shop_isle_our_team_title', array(
|
125 |
+
'sanitize_callback' => 'shop_isle_sanitize_text',
|
126 |
+
'default' => __( 'Meet our team', 'themeisle-companion' ),
|
127 |
+
'transport' => $selective_refresh,
|
128 |
+
) );
|
129 |
+
$wp_customize->add_control( 'shop_isle_our_team_title', array(
|
130 |
+
'label' => __( 'Title', 'themeisle-companion' ),
|
131 |
+
'section' => 'shop_isle_about_page_section',
|
132 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
133 |
+
'priority' => 1,
|
134 |
+
) );
|
135 |
+
/* Our team subtitle */
|
136 |
+
$wp_customize->add_setting( 'shop_isle_our_team_subtitle', array(
|
137 |
+
'sanitize_callback' => 'shop_isle_sanitize_text',
|
138 |
+
'default' => __( 'An awesome way to introduce the members of your team.', 'themeisle-companion' ),
|
139 |
+
'transport' => $selective_refresh,
|
140 |
+
) );
|
141 |
+
$wp_customize->add_control( 'shop_isle_our_team_subtitle', array(
|
142 |
+
'label' => __( 'Subtitle', 'themeisle-companion' ),
|
143 |
+
'section' => 'shop_isle_about_page_section',
|
144 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
145 |
+
'priority' => 2,
|
146 |
+
) );
|
147 |
+
/* Team members */
|
148 |
+
$wp_customize->add_setting( 'shop_isle_team_members', array(
|
149 |
+
'sanitize_callback' => 'shop_isle_sanitize_repeater',
|
150 |
+
'transport' => $selective_refresh,
|
151 |
+
'default' => json_encode( array(
|
152 |
+
array(
|
153 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team1.jpg',
|
154 |
+
'text' => 'Eva Bean',
|
155 |
+
'subtext' => 'Developer',
|
156 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'
|
157 |
+
),
|
158 |
+
array(
|
159 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team2.jpg',
|
160 |
+
'text' => 'Maria Woods',
|
161 |
+
'subtext' => 'Designer',
|
162 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'
|
163 |
+
),
|
164 |
+
array(
|
165 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team3.jpg',
|
166 |
+
'text' => 'Booby Stone',
|
167 |
+
'subtext' => 'Director',
|
168 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'
|
169 |
+
),
|
170 |
+
array(
|
171 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team4.jpg',
|
172 |
+
'text' => 'Anna Neaga',
|
173 |
+
'subtext' => 'Art Director',
|
174 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.'
|
175 |
+
)
|
176 |
+
) ),
|
177 |
+
) );
|
178 |
+
if ( class_exists( 'Shop_Isle_Repeater_Controler' ) ) {
|
179 |
+
$wp_customize->add_control( new Shop_Isle_Repeater_Controler( $wp_customize, 'shop_isle_team_members', array(
|
180 |
+
'label' => __( 'Add new team member', 'themeisle-companion' ),
|
181 |
+
'section' => 'shop_isle_about_page_section',
|
182 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
183 |
+
'priority' => 3,
|
184 |
+
'shop_isle_image_control' => true,
|
185 |
+
'shop_isle_link_control' => false,
|
186 |
+
'shop_isle_text_control' => true,
|
187 |
+
'shop_isle_subtext_control' => true,
|
188 |
+
'shop_isle_label_control' => false,
|
189 |
+
'shop_isle_icon_control' => false,
|
190 |
+
'shop_isle_description_control' => true,
|
191 |
+
'shop_isle_box_label' => __( 'Team member', 'themeisle-companion' ),
|
192 |
+
'shop_isle_box_add_label' => __( 'Add new team member', 'themeisle-companion' )
|
193 |
+
) ) );
|
194 |
+
}
|
195 |
+
/***********************************************************************************/
|
196 |
+
/****** About us page - instructions for users when not on About us page *********/
|
197 |
+
/***********************************************************************************/
|
198 |
+
$wp_customize->add_section( 'shop_isle_aboutus_page_instructions', array(
|
199 |
+
'title' => __( 'About us page', 'themeisle-companion' ),
|
200 |
+
'priority' => 52
|
201 |
+
) );
|
202 |
+
$wp_customize->add_setting( 'shop_isle_aboutus_page_instructions', array(
|
203 |
+
'sanitize_callback' => 'shop_isle_sanitize_text'
|
204 |
+
) );
|
205 |
+
$wp_customize->add_control( new ShopIsle_Companion_Aboutus_Page_Instructions( $wp_customize, 'shop_isle_aboutus_page_instructions', array(
|
206 |
+
'section' => 'shop_isle_aboutus_page_instructions',
|
207 |
+
'active_callback' => 'shop_isle_companion_is_not_aboutus_page',
|
208 |
+
) ) );
|
209 |
+
if ( class_exists( 'WP_Customize_Panel' ) ):
|
210 |
+
$wp_customize->add_section( 'shop_isle_about_page_video_section', array(
|
211 |
+
'title' => __( 'Video', 'themeisle-companion' ),
|
212 |
+
'priority' => 2,
|
213 |
+
'panel' => 'panel_team'
|
214 |
+
) );
|
215 |
+
else:
|
216 |
+
$wp_customize->add_section( 'shop_isle_about_page_video_section', array(
|
217 |
+
'title' => __( 'About us page - video', 'themeisle-companion' ),
|
218 |
+
'priority' => 53
|
219 |
+
) );
|
220 |
+
endif;
|
221 |
+
/* Video title */
|
222 |
+
$wp_customize->add_setting( 'shop_isle_about_page_video_title', array(
|
223 |
+
'sanitize_callback' => 'shop_isle_sanitize_text',
|
224 |
+
'default' => __( 'Presentation', 'themeisle-companion' ),
|
225 |
+
'transport' => $selective_refresh,
|
226 |
+
) );
|
227 |
+
$wp_customize->add_control( 'shop_isle_about_page_video_title', array(
|
228 |
+
'label' => __( 'Title', 'themeisle-companion' ),
|
229 |
+
'section' => 'shop_isle_about_page_video_section',
|
230 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
231 |
+
'priority' => 1,
|
232 |
+
) );
|
233 |
+
/* Video subtitle */
|
234 |
+
$wp_customize->add_setting( 'shop_isle_about_page_video_subtitle', array(
|
235 |
+
'sanitize_callback' => 'shop_isle_sanitize_text',
|
236 |
+
'default' => __( 'What the video about our new products', 'themeisle-companion' ),
|
237 |
+
'transport' => $selective_refresh,
|
238 |
+
) );
|
239 |
+
$wp_customize->add_control( 'shop_isle_about_page_video_subtitle', array(
|
240 |
+
'label' => __( 'Subtitle', 'themeisle-companion' ),
|
241 |
+
'section' => 'shop_isle_about_page_video_section',
|
242 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
243 |
+
'priority' => 2,
|
244 |
+
) );
|
245 |
+
/* Video background */
|
246 |
+
$wp_customize->add_setting( 'shop_isle_about_page_video_background', array(
|
247 |
+
'default' => get_template_directory_uri() . '/assets/images/background-video.jpg',
|
248 |
+
'transport' => 'postMessage',
|
249 |
+
'sanitize_callback' => 'esc_url'
|
250 |
+
) );
|
251 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'shop_isle_about_page_video_background', array(
|
252 |
+
'label' => __( 'Background', 'themeisle-companion' ),
|
253 |
+
'section' => 'shop_isle_about_page_video_section',
|
254 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
255 |
+
'priority' => 3,
|
256 |
+
) ) );
|
257 |
+
/* Video link */
|
258 |
+
$wp_customize->add_setting( 'shop_isle_about_page_video_link', array(
|
259 |
+
'sanitize_callback' => 'shop_isle_sanitize_text',
|
260 |
+
'transport' => 'postMessage'
|
261 |
+
) );
|
262 |
+
$wp_customize->add_control( 'shop_isle_about_page_video_link', array(
|
263 |
+
'label' => __( 'Video', 'themeisle-companion' ),
|
264 |
+
'section' => 'shop_isle_about_page_video_section',
|
265 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
266 |
+
'priority' => 4,
|
267 |
+
) );
|
268 |
+
if ( class_exists( 'WP_Customize_Panel' ) ):
|
269 |
+
$wp_customize->add_section( 'shop_isle_about_page_advantages_section', array(
|
270 |
+
'title' => __( 'Our advantages', 'themeisle-companion' ),
|
271 |
+
'priority' => 3,
|
272 |
+
'panel' => 'panel_team'
|
273 |
+
) );
|
274 |
+
else:
|
275 |
+
$wp_customize->add_section( 'shop_isle_about_page_advantages_section', array(
|
276 |
+
'title' => __( 'About us page - our advantages', 'themeisle-companion' ),
|
277 |
+
'priority' => 54
|
278 |
+
) );
|
279 |
+
endif;
|
280 |
+
/* Our advantages title */
|
281 |
+
$wp_customize->add_setting( 'shop_isle_our_advantages_title', array(
|
282 |
+
'sanitize_callback' => 'shop_isle_sanitize_text',
|
283 |
+
'default' => __( 'Our advantages', 'themeisle-companion' ),
|
284 |
+
'transport' => $selective_refresh,
|
285 |
+
) );
|
286 |
+
$wp_customize->add_control( 'shop_isle_our_advantages_title', array(
|
287 |
+
'label' => __( 'Title', 'themeisle-companion' ),
|
288 |
+
'section' => 'shop_isle_about_page_advantages_section',
|
289 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
290 |
+
'priority' => 1,
|
291 |
+
) );
|
292 |
+
/* Advantages */
|
293 |
+
$wp_customize->add_setting( 'shop_isle_advantages', array(
|
294 |
+
'sanitize_callback' => 'shop_isle_sanitize_repeater',
|
295 |
+
'transport' => $selective_refresh,
|
296 |
+
'default' => json_encode( array(
|
297 |
+
array(
|
298 |
+
'icon_value' => 'icon_lightbulb',
|
299 |
+
'text' => __( 'Ideas and concepts', 'themeisle-companion' ),
|
300 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )
|
301 |
+
),
|
302 |
+
array(
|
303 |
+
'icon_value' => 'icon_tools',
|
304 |
+
'text' => __( 'Designs & interfaces', 'themeisle-companion' ),
|
305 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )
|
306 |
+
),
|
307 |
+
array(
|
308 |
+
'icon_value' => 'icon_cogs',
|
309 |
+
'text' => __( 'Highly customizable', 'themeisle-companion' ),
|
310 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )
|
311 |
+
),
|
312 |
+
array(
|
313 |
+
'icon_value' => 'icon_like',
|
314 |
+
'text' => __( 'Easy to use', 'themeisle-companion' ),
|
315 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' )
|
316 |
+
)
|
317 |
+
) ),
|
318 |
+
) );
|
319 |
+
if ( class_exists( 'Shop_Isle_Repeater_Controler' ) ) {
|
320 |
+
$wp_customize->add_control( new Shop_Isle_Repeater_Controler( $wp_customize, 'shop_isle_advantages', array(
|
321 |
+
'label' => __( 'Add new advantage', 'themeisle-companion' ),
|
322 |
+
'section' => 'shop_isle_about_page_advantages_section',
|
323 |
+
'active_callback' => 'shop_isle_companion_is_aboutus_page',
|
324 |
+
'priority' => 2,
|
325 |
+
'shop_isle_image_control' => false,
|
326 |
+
'shop_isle_link_control' => false,
|
327 |
+
'shop_isle_text_control' => true,
|
328 |
+
'shop_isle_subtext_control' => true,
|
329 |
+
'shop_isle_label_control' => false,
|
330 |
+
'shop_isle_icon_control' => true,
|
331 |
+
'shop_isle_description_control' => false,
|
332 |
+
'shop_isle_box_label' => __( 'Advantage', 'themeisle-companion' ),
|
333 |
+
'shop_isle_box_add_label' => __( 'Add new advantage', 'themeisle-companion' )
|
334 |
+
) ) );
|
335 |
+
}
|
336 |
+
}
|
337 |
+
|
338 |
+
|
339 |
+
$current_theme = wp_get_theme();
|
340 |
+
$shop_isle_wporg_flag = get_option( 'shop_isle_wporg_flag' );
|
341 |
+
$theme_name = $current_theme->template;
|
342 |
+
|
343 |
+
if ( isset($shop_isle_wporg_flag) && ( 'true' == $shop_isle_wporg_flag ) && ( $theme_name == 'shop-isle' ) ) {
|
344 |
+
add_action('customize_register', 'shop_isle_companion_customize_register',100);
|
345 |
+
}
|
346 |
+
|
347 |
+
/**
|
348 |
+
* Check if is about us page
|
349 |
+
*
|
350 |
+
* @return bool
|
351 |
+
*/
|
352 |
+
function shop_isle_companion_is_aboutus_page() {
|
353 |
+
return is_page_template( 'template-about.php' );
|
354 |
+
}
|
355 |
+
|
356 |
+
/**
|
357 |
+
* Check if is not about us page
|
358 |
+
*
|
359 |
+
* @return bool
|
360 |
+
*/
|
361 |
+
function shop_isle_companion_is_not_aboutus_page() {
|
362 |
+
return ! is_page_template( 'template-about.php' );
|
363 |
+
}
|
364 |
+
|
365 |
+
if ( ! function_exists( 'shop_isle_about_page_register_partials' ) ) :
|
366 |
+
/**
|
367 |
+
* Add selective refresh for About page section controls
|
368 |
+
*
|
369 |
+
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
370 |
+
*/
|
371 |
+
function shop_isle_about_page_register_partials( $wp_customize ) {
|
372 |
+
// Abort if selective refresh is not available.
|
373 |
+
if ( ! isset( $wp_customize->selective_refresh ) ) {
|
374 |
+
return;
|
375 |
+
}
|
376 |
+
|
377 |
+
/* Our team */
|
378 |
+
$wp_customize->selective_refresh->add_partial(
|
379 |
+
'shop_isle_our_team_title', array(
|
380 |
+
'selector' => '.page-template-template-about .meet-out-team-title',
|
381 |
+
'render_callback' => 'shop_isle_about_page_team_title_callback',
|
382 |
+
'container_inclusive' => false,
|
383 |
+
)
|
384 |
+
);
|
385 |
+
|
386 |
+
$wp_customize->selective_refresh->add_partial(
|
387 |
+
'shop_isle_our_team_subtitle', array(
|
388 |
+
'selector' => '.page-template-template-about .meet-out-team-subtitle',
|
389 |
+
'render_callback' => 'shop_isle_about_page_team_subtitle_callback',
|
390 |
+
'container_inclusive' => false,
|
391 |
+
)
|
392 |
+
);
|
393 |
+
|
394 |
+
$wp_customize->selective_refresh->add_partial(
|
395 |
+
'shop_isle_team_members', array(
|
396 |
+
'selector' => '.page-template-template-about .about-team-member',
|
397 |
+
'render_callback' => 'shop_isle_about_page_display_team_members',
|
398 |
+
'container_inclusive' => true,
|
399 |
+
)
|
400 |
+
);
|
401 |
+
|
402 |
+
/* Video */
|
403 |
+
$wp_customize->selective_refresh->add_partial(
|
404 |
+
'shop_isle_about_page_video_title', array(
|
405 |
+
'selector' => '.page-template-template-about .video-box .video-title',
|
406 |
+
'render_callback' => 'shop_isle_about_page_video_title_callback',
|
407 |
+
'container_inclusive' => false,
|
408 |
+
)
|
409 |
+
);
|
410 |
+
|
411 |
+
$wp_customize->selective_refresh->add_partial(
|
412 |
+
'shop_isle_about_page_video_subtitle', array(
|
413 |
+
'selector' => '.page-template-template-about .video-box .video-subtitle',
|
414 |
+
'render_callback' => 'shop_isle_about_page_video_subtitle_callback',
|
415 |
+
'container_inclusive' => false,
|
416 |
+
)
|
417 |
+
);
|
418 |
+
|
419 |
+
/* Our advantages */
|
420 |
+
$wp_customize->selective_refresh->add_partial(
|
421 |
+
'shop_isle_our_advantages_title', array(
|
422 |
+
'selector' => '.page-template-template-about .module-title.our_advantages',
|
423 |
+
'render_callback' => 'shop_isle_about_page_advantages_title_callback',
|
424 |
+
'container_inclusive' => false,
|
425 |
+
)
|
426 |
+
);
|
427 |
+
|
428 |
+
$wp_customize->selective_refresh->add_partial(
|
429 |
+
'shop_isle_advantages', array(
|
430 |
+
'selector' => '.page-template-template-about .module-advantages .multi-columns-row',
|
431 |
+
'render_callback' => 'shop_isle_about_page_display_advantages',
|
432 |
+
'container_inclusive' => true,
|
433 |
+
)
|
434 |
+
);
|
435 |
+
}
|
436 |
+
endif;
|
437 |
+
|
438 |
+
add_action( 'customize_register', 'shop_isle_about_page_register_partials' );
|
439 |
+
|
440 |
+
if ( ! function_exists( 'shop_isle_about_page_team_title_callback' ) ) :
|
441 |
+
/**
|
442 |
+
* Callback function for the about page, team section title
|
443 |
+
*
|
444 |
+
* @return string - team title value
|
445 |
+
*/
|
446 |
+
function shop_isle_about_page_team_title_callback() {
|
447 |
+
return get_theme_mod( 'shop_isle_our_team_title' );
|
448 |
+
}
|
449 |
+
endif;
|
450 |
+
|
451 |
+
if ( ! function_exists( 'shop_isle_about_page_team_subtitle_callback' ) ) :
|
452 |
+
/**
|
453 |
+
* Callback function for the about page, team section subtitle
|
454 |
+
*
|
455 |
+
* @return string - team subtitle value
|
456 |
+
*/
|
457 |
+
function shop_isle_about_page_team_subtitle_callback() {
|
458 |
+
return get_theme_mod( 'shop_isle_our_team_subtitle' );
|
459 |
+
}
|
460 |
+
endif;
|
461 |
+
|
462 |
+
if ( ! function_exists( 'shop_isle_about_page_display_team_members' ) ) :
|
463 |
+
/**
|
464 |
+
* Callback function for team members on about page
|
465 |
+
*/
|
466 |
+
function shop_isle_about_page_display_team_members() {
|
467 |
+
|
468 |
+
$shop_isle_team_members = get_theme_mod(
|
469 |
+
'shop_isle_team_members', json_encode(
|
470 |
+
array(
|
471 |
+
array(
|
472 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team1.jpg',
|
473 |
+
'text' => 'Eva Bean',
|
474 |
+
'subtext' => 'Developer',
|
475 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.',
|
476 |
+
),
|
477 |
+
array(
|
478 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team2.jpg',
|
479 |
+
'text' => 'Maria Woods',
|
480 |
+
'subtext' => 'Designer',
|
481 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.',
|
482 |
+
),
|
483 |
+
array(
|
484 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team3.jpg',
|
485 |
+
'text' => 'Booby Stone',
|
486 |
+
'subtext' => 'Director',
|
487 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.',
|
488 |
+
),
|
489 |
+
array(
|
490 |
+
'image_url' => get_template_directory_uri() . '/assets/images/team4.jpg',
|
491 |
+
'text' => 'Anna Neaga',
|
492 |
+
'subtext' => 'Art Director',
|
493 |
+
'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit lacus, a iaculis diam.',
|
494 |
+
),
|
495 |
+
)
|
496 |
+
)
|
497 |
+
);
|
498 |
+
|
499 |
+
if ( ! empty( $shop_isle_team_members ) ) {
|
500 |
+
$shop_isle_team_members_decoded = json_decode( $shop_isle_team_members );
|
501 |
+
if ( ! empty( $shop_isle_team_members_decoded ) ) {
|
502 |
+
|
503 |
+
echo '<div class="hero-slider about-team-member">';
|
504 |
+
echo '<ul class="slides">';
|
505 |
+
foreach ( $shop_isle_team_members_decoded as $shop_isle_team_member ) {
|
506 |
+
$image_url = ! empty( $shop_isle_team_member->image_url ) ? apply_filters( 'shop_isle_translate_single_string', $shop_isle_team_member->image_url, 'Team section' ) : '';
|
507 |
+
$text = ! empty( $shop_isle_team_member->text ) ? apply_filters( 'shop_isle_translate_single_string', $shop_isle_team_member->text, 'Team section' ) : '';
|
508 |
+
$description = ! empty( $shop_isle_team_member->description ) ? apply_filters( 'shop_isle_translate_single_string', $shop_isle_team_member->description, 'Team section' ) : '';
|
509 |
+
$subtext = ! empty( $shop_isle_team_member->subtext ) ? apply_filters( 'shop_isle_translate_single_string', $shop_isle_team_member->subtext, 'Team section' ) : '';
|
510 |
+
|
511 |
+
echo '<div class="col-sm-6 col-md-3 mb-sm-20 fadeInUp">';
|
512 |
+
echo '<div class="team-item">';
|
513 |
+
|
514 |
+
echo '<div class="team-image">';
|
515 |
+
if ( ! empty( $image_url ) ) {
|
516 |
+
if ( ! empty( $text ) ) {
|
517 |
+
echo '<img src="' . esc_url( $image_url ) . '" alt="' . esc_html( $text ) . '">';
|
518 |
+
} else {
|
519 |
+
echo '<img src="' . esc_url( $image_url ) . '" alt="">';
|
520 |
+
}
|
521 |
+
}
|
522 |
+
if ( ! empty( $description ) ) {
|
523 |
+
echo '<div class="team-detail">';
|
524 |
+
echo '<p class="font-serif">' . wp_kses_post( $description ) . '</p>';
|
525 |
+
echo '</div><!-- .team-detail -->';
|
526 |
+
}
|
527 |
+
echo '</div><!-- .team-image -->';
|
528 |
+
|
529 |
+
echo '<div class="team-descr font-alt">';
|
530 |
+
if ( ! empty( $text ) ) {
|
531 |
+
echo '<div class="team-name">' . wp_kses_post( $text ) . '</div>';
|
532 |
+
}
|
533 |
+
if ( ! empty( $subtext ) ) {
|
534 |
+
echo '<div class="team-role">' . wp_kses_post( $subtext ) . '</div>';
|
535 |
+
}
|
536 |
+
echo '</div><!-- .team-descr -->';
|
537 |
+
|
538 |
+
echo '</div><!-- .team-item -->';
|
539 |
+
echo '</div><!-- .col-sm-6 col-md-3 mb-sm-20 fadeInUp -->';
|
540 |
+
}
|
541 |
+
echo '</ul>';
|
542 |
+
echo '</div>';
|
543 |
+
}
|
544 |
+
} else {
|
545 |
+
if ( is_customize_preview() ) {
|
546 |
+
echo '<div class="hero-slider about-team-member"></div>';
|
547 |
+
}
|
548 |
+
}
|
549 |
+
}
|
550 |
+
endif;
|
551 |
+
|
552 |
+
if ( ! function_exists( 'shop_isle_about_page_video_title_callback' ) ) :
|
553 |
+
/**
|
554 |
+
* Callback function for video title on about page
|
555 |
+
*
|
556 |
+
* @return string - video title value
|
557 |
+
*/
|
558 |
+
function shop_isle_about_page_video_title_callback() {
|
559 |
+
return get_theme_mod( 'shop_isle_about_page_video_title' );
|
560 |
+
}
|
561 |
+
endif;
|
562 |
+
|
563 |
+
if ( ! function_exists( 'shop_isle_about_page_video_subtitle_callback' ) ) :
|
564 |
+
/**
|
565 |
+
* Callback function for video subtitle on about page
|
566 |
+
*
|
567 |
+
* @return string - video subtitle value
|
568 |
+
*/
|
569 |
+
function shop_isle_about_page_video_subtitle_callback() {
|
570 |
+
return get_theme_mod( 'shop_isle_about_page_video_subtitle' );
|
571 |
+
}
|
572 |
+
endif;
|
573 |
+
|
574 |
+
if ( ! function_exists( 'shop_isle_about_page_advantages_title_callback' ) ) :
|
575 |
+
/**
|
576 |
+
* Callback function for advantages title
|
577 |
+
*
|
578 |
+
* @return string - advantages title value
|
579 |
+
*/
|
580 |
+
function shop_isle_about_page_advantages_title_callback() {
|
581 |
+
return get_theme_mod( 'shop_isle_our_advantages_title' );
|
582 |
+
}
|
583 |
+
endif;
|
584 |
+
|
585 |
+
if ( ! function_exists( 'shop_isle_about_page_display_advantages' ) ) :
|
586 |
+
/**
|
587 |
+
* Callback function for advantages boxes on about page
|
588 |
+
*/
|
589 |
+
function shop_isle_about_page_display_advantages() {
|
590 |
+
|
591 |
+
$shop_isle_advantages = get_theme_mod(
|
592 |
+
'shop_isle_advantages', json_encode(
|
593 |
+
array(
|
594 |
+
array(
|
595 |
+
'icon_value' => 'icon_lightbulb',
|
596 |
+
'text' => __( 'Ideas and concepts', 'themeisle-companion' ),
|
597 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ),
|
598 |
+
),
|
599 |
+
array(
|
600 |
+
'icon_value' => 'icon_tools',
|
601 |
+
'text' => __( 'Designs & interfaces', 'themeisle-companion' ),
|
602 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ),
|
603 |
+
),
|
604 |
+
array(
|
605 |
+
'icon_value' => 'icon_cogs',
|
606 |
+
'text' => __( 'Highly customizable', 'themeisle-companion' ),
|
607 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ),
|
608 |
+
),
|
609 |
+
array(
|
610 |
+
'icon_value' => 'icon_like',
|
611 |
+
'text' => __( 'Easy to use', 'themeisle-companion' ),
|
612 |
+
'subtext' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'themeisle-companion' ),
|
613 |
+
),
|
614 |
+
)
|
615 |
+
)
|
616 |
+
);
|
617 |
+
|
618 |
+
if ( ! empty( $shop_isle_advantages ) ) :
|
619 |
+
|
620 |
+
$shop_isle_advantages_decoded = json_decode( $shop_isle_advantages );
|
621 |
+
|
622 |
+
if ( ! empty( $shop_isle_advantages_decoded ) ) :
|
623 |
+
|
624 |
+
echo '<div class="row multi-columns-row">';
|
625 |
+
|
626 |
+
foreach ( $shop_isle_advantages_decoded as $shop_isle_advantage ) :
|
627 |
+
|
628 |
+
$icon_value = ! empty( $shop_isle_advantage->icon_value ) ? apply_filters( 'shop_isle_translate_single_string', $shop_isle_advantage->icon_value, 'Advantages section' ) : '';
|
629 |
+
$text = ! empty( $shop_isle_advantage->text ) ? apply_filters( 'shop_isle_translate_single_string', $shop_isle_advantage->text, 'Advantages section' ) : '';
|
630 |
+
$subtext = ! empty( $shop_isle_advantage->subtext ) ? apply_filters( 'shop_isle_translate_single_string', $shop_isle_advantage->subtext, 'Advantages section' ) : '';
|
631 |
+
|
632 |
+
echo '<div class="col-sm-6 col-md-3 col-lg-3">';
|
633 |
+
echo '<div class="features-item">';
|
634 |
+
|
635 |
+
if ( ! empty( $icon_value ) ) :
|
636 |
+
echo '<div class="features-icon">';
|
637 |
+
echo '<span class="' . esc_attr( $icon_value ) . '"></span>';
|
638 |
+
echo '</div>';
|
639 |
+
endif;
|
640 |
+
|
641 |
+
if ( ! empty( $text ) ) :
|
642 |
+
echo '<h3 class="features-title font-alt">' . wp_kses_post( $text ) . '</h3>';
|
643 |
+
endif;
|
644 |
+
|
645 |
+
if ( ! empty( $subtext ) ) :
|
646 |
+
echo wp_kses_post( $subtext );
|
647 |
+
endif;
|
648 |
+
|
649 |
+
echo '</div>';
|
650 |
+
echo '</div>';
|
651 |
+
|
652 |
+
endforeach;
|
653 |
+
|
654 |
+
echo '</div>';
|
655 |
+
endif;
|
656 |
+
else :
|
657 |
+
if ( is_customize_preview() ) {
|
658 |
+
echo '<div class="row multi-columns-row"></div>';
|
659 |
+
}
|
660 |
+
endif;
|
661 |
+
}
|
662 |
+
endif;
|
obfx_modules/companion-legacy/inc/shop-isle/functions.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Shop Isle Companion
|
4 |
+
Plugin URI: https://github.com/Codeinwp/shop-isle-companion
|
5 |
+
Description: Add a slider to the front page, add new sections to the about page template in Shop Isle.
|
6 |
+
Version: 1.0.8
|
7 |
+
Author: Themeisle
|
8 |
+
Author URI: http://themeisle.com
|
9 |
+
Text Domain: shop-isle-companion
|
10 |
+
Domain Path: /languages
|
11 |
+
License: GPLv2
|
12 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
13 |
+
*/
|
14 |
+
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Filter to replace big title section with slider.
|
18 |
+
*/
|
19 |
+
add_filter ( 'shop-isle-subheader', 'shop_isle_companion_slider');
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Function used for subheader filter/
|
23 |
+
* @return string
|
24 |
+
*/
|
25 |
+
function shop_isle_companion_slider() {
|
26 |
+
return plugin_dir_path( __FILE__ ) . 'content-slider.php';
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Include customizer controls.
|
31 |
+
*/
|
32 |
+
require plugin_dir_path( __FILE__ ) . 'customizer.php';
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Include template loader.
|
36 |
+
*/
|
37 |
+
require plugin_dir_path( __FILE__ ) . 'class-template-loader.php';
|
38 |
+
|
39 |
+
|
40 |
+
add_action('shop-isle-about-page-after-content', 'shop_isle_companion_about_addon');
|
obfx_modules/companion-legacy/inc/shop-isle/template-about.php
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The template for displaying about us page.
|
4 |
+
*
|
5 |
+
* Template Name: About us page
|
6 |
+
*
|
7 |
+
* @package WordPress
|
8 |
+
* @subpackage Shop Isle
|
9 |
+
*/
|
10 |
+
|
11 |
+
get_header(); ?>
|
12 |
+
<!-- Wrapper start -->
|
13 |
+
<div class="main">
|
14 |
+
|
15 |
+
<!-- Header section start -->
|
16 |
+
<?php
|
17 |
+
$shop_isle_header_image = get_the_post_thumbnail_url();
|
18 |
+
if ( empty( $shop_isle_header_image ) ) {
|
19 |
+
$shop_isle_header_image = get_header_image();
|
20 |
+
}
|
21 |
+
?>
|
22 |
+
<section class="page-header-module module bg-dark"
|
23 |
+
<?php
|
24 |
+
if ( ! empty( $shop_isle_header_image ) ) {
|
25 |
+
echo ' data-background="' . esc_url( $shop_isle_header_image ) . '"';
|
26 |
+
}
|
27 |
+
?>
|
28 |
+
>
|
29 |
+
<div class="container">
|
30 |
+
<div class="row">
|
31 |
+
<div class="col-sm-10 col-sm-offset-1">
|
32 |
+
<h1 class="module-title font-alt"><?php the_title(); ?></h1>
|
33 |
+
<?php
|
34 |
+
/* Header description */
|
35 |
+
$shop_isle_shop_id = get_the_ID();
|
36 |
+
if ( ! empty( $shop_isle_shop_id ) ) {
|
37 |
+
$shop_isle_page_description = get_post_meta( $shop_isle_shop_id, 'shop_isle_page_description' );
|
38 |
+
if ( ! empty( $shop_isle_page_description[0] ) ) {
|
39 |
+
echo '<div class="module-subtitle font-serif mb-0">' . wp_kses_post( $shop_isle_page_description[0] ) . '</div>';
|
40 |
+
}
|
41 |
+
}
|
42 |
+
?>
|
43 |
+
</div>
|
44 |
+
</div><!-- .row -->
|
45 |
+
</div><!-- .container -->
|
46 |
+
</section><!-- .page-header-module -->
|
47 |
+
<!-- Header section end -->
|
48 |
+
|
49 |
+
<!-- About start -->
|
50 |
+
<?php
|
51 |
+
$shop_isle_content_aboutus = '';
|
52 |
+
if ( have_posts() ) {
|
53 |
+
while ( have_posts() ) {
|
54 |
+
the_post();
|
55 |
+
$shop_isle_content_aboutus = get_the_content();
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
if ( trim( $shop_isle_content_aboutus ) != '' ) {
|
60 |
+
echo '<section class="module">';
|
61 |
+
echo '<div class="container">';
|
62 |
+
echo '<div class="row">';
|
63 |
+
echo '<div class="col-sm-12">';
|
64 |
+
the_content();
|
65 |
+
echo '</div>';
|
66 |
+
echo '</div>';
|
67 |
+
echo '</div>';
|
68 |
+
echo '</section>';
|
69 |
+
}
|
70 |
+
?>
|
71 |
+
<!-- About end -->
|
72 |
+
|
73 |
+
<!-- Divider -->
|
74 |
+
<hr class="divider-w">
|
75 |
+
<!-- Divider -->
|
76 |
+
|
77 |
+
<!-- Team start -->
|
78 |
+
<section class="module">
|
79 |
+
<div class="container">
|
80 |
+
<?php
|
81 |
+
$shop_isle_our_team_title = get_theme_mod( 'shop_isle_our_team_title', __( 'Meet our team', 'themeisle-companion' ) );
|
82 |
+
$shop_isle_our_team_subtitle = get_theme_mod( 'shop_isle_our_team_subtitle',__( 'An awesome way to introduce the members of your team.', 'themeisle-companion' ) );
|
83 |
+
|
84 |
+
if ( ! empty( $shop_isle_our_team_title ) || ! empty( $shop_isle_our_team_subtitle ) ) {
|
85 |
+
|
86 |
+
echo '<div class="row">';
|
87 |
+
echo '<div class="col-sm-6 col-sm-offset-3">';
|
88 |
+
|
89 |
+
if ( ! empty( $shop_isle_our_team_title ) ) {
|
90 |
+
echo '<h2 class="module-title font-alt meet-out-team-title">' . wp_kses_post( $shop_isle_our_team_title ) . '</h2>';
|
91 |
+
}
|
92 |
+
|
93 |
+
if ( ! empty( $shop_isle_our_team_subtitle ) ) {
|
94 |
+
echo '<div class="module-subtitle font-serif meet-out-team-subtitle">';
|
95 |
+
echo wp_kses_post( $shop_isle_our_team_subtitle );
|
96 |
+
echo '</div>';
|
97 |
+
}
|
98 |
+
|
99 |
+
echo '</div>';
|
100 |
+
echo '</div><!-- .row -->';
|
101 |
+
}
|
102 |
+
|
103 |
+
/* Team members start */
|
104 |
+
echo '<div class="row">';
|
105 |
+
shop_isle_about_page_display_team_members();
|
106 |
+
echo '</div>';
|
107 |
+
/* Team members end */
|
108 |
+
?>
|
109 |
+
</div>
|
110 |
+
</section>
|
111 |
+
<!-- Team end -->
|
112 |
+
|
113 |
+
<!-- Video start -->
|
114 |
+
<?php
|
115 |
+
$shop_isle_about_page_video_background = get_theme_mod( 'shop_isle_about_page_video_background',get_template_directory_uri() . '/assets/images/background-video.jpg' );
|
116 |
+
?>
|
117 |
+
<section class="module bg-dark-60 about-page-video"
|
118 |
+
<?php
|
119 |
+
if ( ! empty( $shop_isle_about_page_video_background ) ) {
|
120 |
+
echo 'data-background="' . esc_url( $shop_isle_about_page_video_background ) . '"';}
|
121 |
+
?>
|
122 |
+
>
|
123 |
+
<div class="container">
|
124 |
+
<div class="row">
|
125 |
+
<div class="col-sm-12">
|
126 |
+
<div class="video-box">
|
127 |
+
<?php
|
128 |
+
$shop_isle_about_page_video_link = get_theme_mod( 'shop_isle_about_page_video_link' );
|
129 |
+
if ( ! empty( $shop_isle_about_page_video_link ) ) :
|
130 |
+
echo '<div class="video-box-icon">';
|
131 |
+
echo '<a href="' . esc_url( $shop_isle_about_page_video_link ) . '" class="video-pop-up"><span class="social_youtube_square"></span></a>';
|
132 |
+
echo '</div>';
|
133 |
+
endif;
|
134 |
+
if ( empty( $shop_isle_about_page_video_link ) && is_customize_preview() ) :
|
135 |
+
echo '<div class="video-box-icon shop_isle_hidden_if_not_customizer">';
|
136 |
+
echo '<a href="' . esc_url( $shop_isle_about_page_video_link ) . '" class="video-pop-up"><span class="social_youtube_square"></span></a>';
|
137 |
+
echo '</div>';
|
138 |
+
endif;
|
139 |
+
|
140 |
+
$shop_isle_about_page_video_title = get_theme_mod( 'shop_isle_about_page_video_title',__( 'Presentation', 'themeisle-companion' ) );
|
141 |
+
$shop_isle_about_page_video_subtitle = get_theme_mod( 'shop_isle_about_page_video_subtitle',__( 'What the video about our new products', 'themeisle-companion' ) );
|
142 |
+
|
143 |
+
if ( ! empty( $shop_isle_about_page_video_title ) ) :
|
144 |
+
echo '<div class="video-title font-alt">' . wp_kses_post( $shop_isle_about_page_video_title ) . '</div>';
|
145 |
+
endif;
|
146 |
+
|
147 |
+
if ( ! empty( $shop_isle_about_page_video_subtitle ) ) :
|
148 |
+
echo '<div class="video-subtitle font-alt">' . wp_kses_post( $shop_isle_about_page_video_subtitle ) . '</div>';
|
149 |
+
endif;
|
150 |
+
?>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
</div><!-- .row -->
|
154 |
+
</div>
|
155 |
+
</section>
|
156 |
+
<!-- Video end -->
|
157 |
+
|
158 |
+
<!-- Features start -->
|
159 |
+
<section class="module module-advantages">
|
160 |
+
<div class="container">
|
161 |
+
<?php
|
162 |
+
$shop_isle_our_advantages_title = get_theme_mod( 'shop_isle_our_advantages_title',__( 'Our advantages', 'themeisle-companion' ) );
|
163 |
+
if ( ! empty( $shop_isle_our_advantages_title ) ) :
|
164 |
+
echo '<div class="row">';
|
165 |
+
echo '<div class="col-sm-6 col-sm-offset-3">';
|
166 |
+
echo '<h2 class="module-title font-alt our_advantages">' . wp_kses_post( $shop_isle_our_advantages_title ) . '</h2>';
|
167 |
+
echo '</div>';
|
168 |
+
echo '</div>';
|
169 |
+
endif;
|
170 |
+
|
171 |
+
shop_isle_about_page_display_advantages();
|
172 |
+
?>
|
173 |
+
</div><!-- .container -->
|
174 |
+
</section>
|
175 |
+
<!-- Features end -->
|
176 |
+
|
177 |
+
<?php get_footer(); ?>
|
obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-clients.php
CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'zerif_clients_widget' ) ) {
|
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'zerif_clients-widget',
|
24 |
-
__( 'Zerif - Clients widget', '
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
@@ -58,14 +58,14 @@ endif; ?>">
|
|
58 |
<?php
|
59 |
if ( ! empty( $instance['image_uri'] ) && ( preg_match('/(\.jpg|\.png|\.jpeg|\.gif|\.bmp)$/', $instance['image_uri'] ) ) ) {
|
60 |
|
61 |
-
echo '<img src="' . esc_url( $instance['image_uri'] ) . '" alt="' . __( 'Client', '
|
62 |
|
63 |
} elseif ( ! empty( $instance['custom_media_id'] ) ) {
|
64 |
|
65 |
$zerif_clients_custom_media_id = wp_get_attachment_image_src( $instance['custom_media_id'] );
|
66 |
if ( ! empty( $zerif_clients_custom_media_id ) && ! empty( $zerif_clients_custom_media_id[0] ) ) {
|
67 |
|
68 |
-
echo '<img src="' . esc_url( $zerif_clients_custom_media_id[0] ) . '" alt="' . __( 'Client', '
|
69 |
|
70 |
}
|
71 |
}
|
@@ -112,7 +112,7 @@ endif; ?>">
|
|
112 |
|
113 |
<p>
|
114 |
<label
|
115 |
-
for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', '
|
116 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
|
117 |
id="<?php echo $this->get_field_id( 'link' ); ?>"
|
118 |
value="<?php if ( ! empty( $instance['link'] ) ) : echo $instance['link'];
|
@@ -121,7 +121,7 @@ endif; ?>"
|
|
121 |
</p>
|
122 |
<p>
|
123 |
<label
|
124 |
-
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', '
|
125 |
|
126 |
<?php
|
127 |
$image_in_customizer = '';
|
@@ -145,7 +145,7 @@ endif; ?>"
|
|
145 |
endif; ?>">
|
146 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
147 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
148 |
-
alt="<?php echo __( 'Uploaded image', '
|
149 |
|
150 |
<input type="text" class="widefat custom_media_url"
|
151 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
@@ -156,7 +156,7 @@ endif; ?>"
|
|
156 |
|
157 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
158 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
159 |
-
value="<?php _e( 'Upload Image', '
|
160 |
</p>
|
161 |
|
162 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'zerif_clients-widget',
|
24 |
+
__( 'Zerif - Clients widget', 'themeisle-companion' ),
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
58 |
<?php
|
59 |
if ( ! empty( $instance['image_uri'] ) && ( preg_match('/(\.jpg|\.png|\.jpeg|\.gif|\.bmp)$/', $instance['image_uri'] ) ) ) {
|
60 |
|
61 |
+
echo '<img src="' . esc_url( $instance['image_uri'] ) . '" alt="' . __( 'Client', 'themeisle-companion' ) . '">';
|
62 |
|
63 |
} elseif ( ! empty( $instance['custom_media_id'] ) ) {
|
64 |
|
65 |
$zerif_clients_custom_media_id = wp_get_attachment_image_src( $instance['custom_media_id'] );
|
66 |
if ( ! empty( $zerif_clients_custom_media_id ) && ! empty( $zerif_clients_custom_media_id[0] ) ) {
|
67 |
|
68 |
+
echo '<img src="' . esc_url( $zerif_clients_custom_media_id[0] ) . '" alt="' . __( 'Client', 'themeisle-companion' ) . '">';
|
69 |
|
70 |
}
|
71 |
}
|
112 |
|
113 |
<p>
|
114 |
<label
|
115 |
+
for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'themeisle-companion' ); ?></label><br/>
|
116 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
|
117 |
id="<?php echo $this->get_field_id( 'link' ); ?>"
|
118 |
value="<?php if ( ! empty( $instance['link'] ) ) : echo $instance['link'];
|
121 |
</p>
|
122 |
<p>
|
123 |
<label
|
124 |
+
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'themeisle-companion' ); ?></label><br/>
|
125 |
|
126 |
<?php
|
127 |
$image_in_customizer = '';
|
145 |
endif; ?>">
|
146 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
147 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
148 |
+
alt="<?php echo __( 'Uploaded image', 'themeisle-companion' ); ?>"/><br/>
|
149 |
|
150 |
<input type="text" class="widefat custom_media_url"
|
151 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
156 |
|
157 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
158 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
159 |
+
value="<?php _e( 'Upload Image', 'themeisle-companion' ); ?>" style="margin-top:5px;">
|
160 |
</p>
|
161 |
|
162 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-focus.php
CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'zerif_ourfocus' ) ) {
|
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'ctUp-ads-widget',
|
24 |
-
__( 'Zerif - Our focus widget', '
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
@@ -62,7 +62,7 @@ if ( ! class_exists( 'zerif_ourfocus' ) ) {
|
|
62 |
<?php
|
63 |
if ( ! empty( $instance['title'] ) ) { ?>
|
64 |
<span class="sr-only">
|
65 |
-
<?php _e( 'Go to', '
|
66 |
<?php echo apply_filters( 'widget_title', $instance['title'] ); ?>
|
67 |
</span>
|
68 |
<?php
|
@@ -92,7 +92,7 @@ if ( ! class_exists( 'zerif_ourfocus' ) ) {
|
|
92 |
<?php
|
93 |
if ( ! empty( $instance['title'] ) ) { ?>
|
94 |
<span class="sr-only">
|
95 |
-
<?php _e( 'Go to', '
|
96 |
<?php echo apply_filters( 'widget_title', $instance['title'] ); ?>
|
97 |
</span>
|
98 |
<?php
|
@@ -164,7 +164,7 @@ endif; ?></h3>
|
|
164 |
?>
|
165 |
|
166 |
<p>
|
167 |
-
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', '
|
168 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
|
169 |
id="<?php echo $this->get_field_id( 'title' ); ?>"
|
170 |
value="<?php if ( ! empty( $instance['title'] ) ) : echo $instance['title'];
|
@@ -173,14 +173,14 @@ endif; ?>"
|
|
173 |
</p>
|
174 |
<p>
|
175 |
<label
|
176 |
-
for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', '
|
177 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
|
178 |
id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) : echo htmlspecialchars_decode( $instance['text'] );
|
179 |
endif; ?></textarea>
|
180 |
</p>
|
181 |
<p>
|
182 |
<label
|
183 |
-
for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', '
|
184 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
|
185 |
id="<?php echo $this->get_field_id( 'link' ); ?>"
|
186 |
value="<?php if ( ! empty( $instance['link'] ) ) : echo esc_url( $instance['link'] );
|
@@ -189,7 +189,7 @@ endif; ?>"
|
|
189 |
</p>
|
190 |
<p>
|
191 |
<label
|
192 |
-
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', '
|
193 |
|
194 |
<?php
|
195 |
$image_in_customizer = '';
|
@@ -213,7 +213,7 @@ endif; ?>"
|
|
213 |
endif; ?>">
|
214 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
215 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
216 |
-
alt="<?php echo __( 'Uploaded image', '
|
217 |
|
218 |
<input type="text" class="widefat custom_media_url"
|
219 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
@@ -224,7 +224,7 @@ endif; ?>"
|
|
224 |
|
225 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
226 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
227 |
-
value="<?php _e( 'Upload Image', '
|
228 |
</p>
|
229 |
|
230 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'ctUp-ads-widget',
|
24 |
+
__( 'Zerif - Our focus widget', 'themeisle-companion' ),
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
62 |
<?php
|
63 |
if ( ! empty( $instance['title'] ) ) { ?>
|
64 |
<span class="sr-only">
|
65 |
+
<?php _e( 'Go to', 'themeisle-companion' ); ?>
|
66 |
<?php echo apply_filters( 'widget_title', $instance['title'] ); ?>
|
67 |
</span>
|
68 |
<?php
|
92 |
<?php
|
93 |
if ( ! empty( $instance['title'] ) ) { ?>
|
94 |
<span class="sr-only">
|
95 |
+
<?php _e( 'Go to', 'themeisle-companion' ); ?>
|
96 |
<?php echo apply_filters( 'widget_title', $instance['title'] ); ?>
|
97 |
</span>
|
98 |
<?php
|
164 |
?>
|
165 |
|
166 |
<p>
|
167 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'themeisle-companion' ); ?></label><br/>
|
168 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
|
169 |
id="<?php echo $this->get_field_id( 'title' ); ?>"
|
170 |
value="<?php if ( ! empty( $instance['title'] ) ) : echo $instance['title'];
|
173 |
</p>
|
174 |
<p>
|
175 |
<label
|
176 |
+
for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'themeisle-companion' ); ?></label><br/>
|
177 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
|
178 |
id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) : echo htmlspecialchars_decode( $instance['text'] );
|
179 |
endif; ?></textarea>
|
180 |
</p>
|
181 |
<p>
|
182 |
<label
|
183 |
+
for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Link', 'themeisle-companion' ); ?></label><br/>
|
184 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
|
185 |
id="<?php echo $this->get_field_id( 'link' ); ?>"
|
186 |
value="<?php if ( ! empty( $instance['link'] ) ) : echo esc_url( $instance['link'] );
|
189 |
</p>
|
190 |
<p>
|
191 |
<label
|
192 |
+
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'themeisle-companion' ); ?></label><br/>
|
193 |
|
194 |
<?php
|
195 |
$image_in_customizer = '';
|
213 |
endif; ?>">
|
214 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
215 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
216 |
+
alt="<?php echo __( 'Uploaded image', 'themeisle-companion' ); ?>"/><br/>
|
217 |
|
218 |
<input type="text" class="widefat custom_media_url"
|
219 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
224 |
|
225 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
226 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
227 |
+
value="<?php _e( 'Upload Image', 'themeisle-companion' ); ?>" style="margin-top:5px;">
|
228 |
</p>
|
229 |
|
230 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-team.php
CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'zerif_team_widget' ) ) {
|
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'zerif_team-widget',
|
24 |
-
__( 'Zerif - Team member widget', '
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
@@ -121,7 +121,7 @@ if ( ! class_exists( 'zerif_team_widget' ) ) {
|
|
121 |
<?php
|
122 |
if ( ! empty( $instance['name'] ) ) { ?>
|
123 |
<span class="sr-only">
|
124 |
-
<?php _e( 'Facebook account of', '
|
125 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
126 |
</span>
|
127 |
<?php
|
@@ -139,7 +139,7 @@ if ( ! class_exists( 'zerif_team_widget' ) ) {
|
|
139 |
<?php
|
140 |
if ( ! empty( $instance['name'] ) ) { ?>
|
141 |
<span class="sr-only">
|
142 |
-
<?php _e( 'Twitter account of', '
|
143 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
144 |
</span>
|
145 |
<?php
|
@@ -157,7 +157,7 @@ if ( ! class_exists( 'zerif_team_widget' ) ) {
|
|
157 |
<?php
|
158 |
if ( ! empty( $instance['name'] ) ) { ?>
|
159 |
<span class="sr-only">
|
160 |
-
<?php _e( 'Behance account of', '
|
161 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
162 |
</span>
|
163 |
<?php
|
@@ -175,7 +175,7 @@ if ( ! class_exists( 'zerif_team_widget' ) ) {
|
|
175 |
<?php
|
176 |
if ( ! empty( $instance['name'] ) ) { ?>
|
177 |
<span class="sr-only">
|
178 |
-
<?php _e( 'Dribble account of', '
|
179 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
180 |
</span>
|
181 |
<?php
|
@@ -193,7 +193,7 @@ if ( ! class_exists( 'zerif_team_widget' ) ) {
|
|
193 |
<?php
|
194 |
if ( ! empty( $instance['name'] ) ) { ?>
|
195 |
<span class="sr-only">
|
196 |
-
<?php _e( 'Linkedin account of', '
|
197 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
198 |
</span>
|
199 |
<?php
|
@@ -266,7 +266,7 @@ if ( ! class_exists( 'zerif_team_widget' ) ) {
|
|
266 |
|
267 |
<p>
|
268 |
<label
|
269 |
-
for="<?php echo $this->get_field_id( 'name' ); ?>"><?php _e( 'Name', '
|
270 |
<input type="text" name="<?php echo $this->get_field_name( 'name' ); ?>"
|
271 |
id="<?php echo $this->get_field_id( 'name' ); ?>"
|
272 |
value="<?php if ( ! empty( $instance['name'] ) ) : echo $instance['name'];
|
@@ -275,14 +275,14 @@ endif; ?>"
|
|
275 |
</p>
|
276 |
<p>
|
277 |
<label
|
278 |
-
for="<?php echo $this->get_field_id( 'position' ); ?>"><?php _e( 'Position', '
|
279 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'position' ); ?>"
|
280 |
id="<?php echo $this->get_field_id( 'position' ); ?>"><?php if ( ! empty( $instance['position'] ) ) : echo htmlspecialchars_decode( $instance['position'] );
|
281 |
endif; ?></textarea>
|
282 |
</p>
|
283 |
<p>
|
284 |
<label
|
285 |
-
for="<?php echo $this->get_field_id( 'description' ); ?>"><?php _e( 'Description', '
|
286 |
<textarea class="widefat" rows="8" cols="20"
|
287 |
name="<?php echo $this->get_field_name( 'description' ); ?>"
|
288 |
id="<?php echo $this->get_field_id( 'description' ); ?>"><?php
|
@@ -292,7 +292,7 @@ endif;
|
|
292 |
</p>
|
293 |
<p>
|
294 |
<label
|
295 |
-
for="<?php echo $this->get_field_id( 'fb_link' ); ?>"><?php _e( 'Facebook link', '
|
296 |
<input type="text" name="<?php echo $this->get_field_name( 'fb_link' ); ?>"
|
297 |
id="<?php echo $this->get_field_id( 'fb_link' ); ?>"
|
298 |
value="<?php if ( ! empty( $instance['fb_link'] ) ) : echo $instance['fb_link'];
|
@@ -302,7 +302,7 @@ endif; ?>"
|
|
302 |
</p>
|
303 |
<p>
|
304 |
<label
|
305 |
-
for="<?php echo $this->get_field_id( 'tw_link' ); ?>"><?php _e( 'Twitter link', '
|
306 |
<input type="text" name="<?php echo $this->get_field_name( 'tw_link' ); ?>"
|
307 |
id="<?php echo $this->get_field_id( 'tw_link' ); ?>"
|
308 |
value="<?php if ( ! empty( $instance['tw_link'] ) ) : echo $instance['tw_link'];
|
@@ -311,7 +311,7 @@ endif; ?>"
|
|
311 |
</p>
|
312 |
<p>
|
313 |
<label
|
314 |
-
for="<?php echo $this->get_field_id( 'bh_link' ); ?>"><?php _e( 'Behance link', '
|
315 |
<input type="text" name="<?php echo $this->get_field_name( 'bh_link' ); ?>"
|
316 |
id="<?php echo $this->get_field_id( 'bh_link' ); ?>"
|
317 |
value="<?php if ( ! empty( $instance['bh_link'] ) ) : echo $instance['bh_link'];
|
@@ -321,7 +321,7 @@ endif; ?>"
|
|
321 |
</p>
|
322 |
<p>
|
323 |
<label
|
324 |
-
for="<?php echo $this->get_field_id( 'db_link' ); ?>"><?php _e( 'Dribble link', '
|
325 |
<input type="text" name="<?php echo $this->get_field_name( 'db_link' ); ?>"
|
326 |
id="<?php echo $this->get_field_id( 'db_link' ); ?>"
|
327 |
value="<?php if ( ! empty( $instance['db_link'] ) ) : echo $instance['db_link'];
|
@@ -330,7 +330,7 @@ endif; ?>"
|
|
330 |
</p>
|
331 |
<p>
|
332 |
<label
|
333 |
-
for="<?php echo $this->get_field_id( 'ln_link' ); ?>"><?php _e( 'Linkedin link', '
|
334 |
<input type="text" name="<?php echo $this->get_field_name( 'ln_link' ); ?>"
|
335 |
id="<?php echo $this->get_field_id( 'ln_link' ); ?>"
|
336 |
value="<?php if ( ! empty( $instance['ln_link'] ) ) : echo $instance['ln_link'];
|
@@ -340,12 +340,12 @@ endif; ?>"
|
|
340 |
<p>
|
341 |
<input type="checkbox" name="<?php echo $this->get_field_name( 'open_new_window' ); ?>"
|
342 |
id="<?php echo $this->get_field_id( 'open_new_window' ); ?>" <?php if ( ! empty( $instance['open_new_window'] ) ) : checked( (bool) $instance['open_new_window'], true );
|
343 |
-
endif; ?> ><?php _e( 'Open links in new window?', '
|
344 |
<br>
|
345 |
</p>
|
346 |
<p>
|
347 |
<label
|
348 |
-
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', '
|
349 |
|
350 |
<?php
|
351 |
$image_in_customizer = '';
|
@@ -369,7 +369,7 @@ endif; ?> ><?php _e( 'Open links in new window?', 'zerif-lite' ); ?>
|
|
369 |
endif; ?>">
|
370 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
371 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
372 |
-
alt="<?php echo __( 'Uploaded image', '
|
373 |
|
374 |
<input type="text" class="widefat custom_media_url"
|
375 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
@@ -380,7 +380,7 @@ endif; ?>"
|
|
380 |
|
381 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
382 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
383 |
-
value="<?php _e( 'Upload Image', '
|
384 |
</p>
|
385 |
|
386 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'zerif_team-widget',
|
24 |
+
__( 'Zerif - Team member widget', 'themeisle-companion' ),
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
121 |
<?php
|
122 |
if ( ! empty( $instance['name'] ) ) { ?>
|
123 |
<span class="sr-only">
|
124 |
+
<?php _e( 'Facebook account of', 'themeisle-companion' ); ?>
|
125 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
126 |
</span>
|
127 |
<?php
|
139 |
<?php
|
140 |
if ( ! empty( $instance['name'] ) ) { ?>
|
141 |
<span class="sr-only">
|
142 |
+
<?php _e( 'Twitter account of', 'themeisle-companion' ); ?>
|
143 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
144 |
</span>
|
145 |
<?php
|
157 |
<?php
|
158 |
if ( ! empty( $instance['name'] ) ) { ?>
|
159 |
<span class="sr-only">
|
160 |
+
<?php _e( 'Behance account of', 'themeisle-companion' ); ?>
|
161 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
162 |
</span>
|
163 |
<?php
|
175 |
<?php
|
176 |
if ( ! empty( $instance['name'] ) ) { ?>
|
177 |
<span class="sr-only">
|
178 |
+
<?php _e( 'Dribble account of', 'themeisle-companion' ); ?>
|
179 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
180 |
</span>
|
181 |
<?php
|
193 |
<?php
|
194 |
if ( ! empty( $instance['name'] ) ) { ?>
|
195 |
<span class="sr-only">
|
196 |
+
<?php _e( 'Linkedin account of', 'themeisle-companion' ); ?>
|
197 |
<?php echo apply_filters( 'widget_title', $instance['name'] ); ?>
|
198 |
</span>
|
199 |
<?php
|
266 |
|
267 |
<p>
|
268 |
<label
|
269 |
+
for="<?php echo $this->get_field_id( 'name' ); ?>"><?php _e( 'Name', 'themeisle-companion' ); ?></label><br/>
|
270 |
<input type="text" name="<?php echo $this->get_field_name( 'name' ); ?>"
|
271 |
id="<?php echo $this->get_field_id( 'name' ); ?>"
|
272 |
value="<?php if ( ! empty( $instance['name'] ) ) : echo $instance['name'];
|
275 |
</p>
|
276 |
<p>
|
277 |
<label
|
278 |
+
for="<?php echo $this->get_field_id( 'position' ); ?>"><?php _e( 'Position', 'themeisle-companion' ); ?></label><br/>
|
279 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'position' ); ?>"
|
280 |
id="<?php echo $this->get_field_id( 'position' ); ?>"><?php if ( ! empty( $instance['position'] ) ) : echo htmlspecialchars_decode( $instance['position'] );
|
281 |
endif; ?></textarea>
|
282 |
</p>
|
283 |
<p>
|
284 |
<label
|
285 |
+
for="<?php echo $this->get_field_id( 'description' ); ?>"><?php _e( 'Description', 'themeisle-companion' ); ?></label><br/>
|
286 |
<textarea class="widefat" rows="8" cols="20"
|
287 |
name="<?php echo $this->get_field_name( 'description' ); ?>"
|
288 |
id="<?php echo $this->get_field_id( 'description' ); ?>"><?php
|
292 |
</p>
|
293 |
<p>
|
294 |
<label
|
295 |
+
for="<?php echo $this->get_field_id( 'fb_link' ); ?>"><?php _e( 'Facebook link', 'themeisle-companion' ); ?></label><br/>
|
296 |
<input type="text" name="<?php echo $this->get_field_name( 'fb_link' ); ?>"
|
297 |
id="<?php echo $this->get_field_id( 'fb_link' ); ?>"
|
298 |
value="<?php if ( ! empty( $instance['fb_link'] ) ) : echo $instance['fb_link'];
|
302 |
</p>
|
303 |
<p>
|
304 |
<label
|
305 |
+
for="<?php echo $this->get_field_id( 'tw_link' ); ?>"><?php _e( 'Twitter link', 'themeisle-companion' ); ?></label><br/>
|
306 |
<input type="text" name="<?php echo $this->get_field_name( 'tw_link' ); ?>"
|
307 |
id="<?php echo $this->get_field_id( 'tw_link' ); ?>"
|
308 |
value="<?php if ( ! empty( $instance['tw_link'] ) ) : echo $instance['tw_link'];
|
311 |
</p>
|
312 |
<p>
|
313 |
<label
|
314 |
+
for="<?php echo $this->get_field_id( 'bh_link' ); ?>"><?php _e( 'Behance link', 'themeisle-companion' ); ?></label><br/>
|
315 |
<input type="text" name="<?php echo $this->get_field_name( 'bh_link' ); ?>"
|
316 |
id="<?php echo $this->get_field_id( 'bh_link' ); ?>"
|
317 |
value="<?php if ( ! empty( $instance['bh_link'] ) ) : echo $instance['bh_link'];
|
321 |
</p>
|
322 |
<p>
|
323 |
<label
|
324 |
+
for="<?php echo $this->get_field_id( 'db_link' ); ?>"><?php _e( 'Dribble link', 'themeisle-companion' ); ?></label><br/>
|
325 |
<input type="text" name="<?php echo $this->get_field_name( 'db_link' ); ?>"
|
326 |
id="<?php echo $this->get_field_id( 'db_link' ); ?>"
|
327 |
value="<?php if ( ! empty( $instance['db_link'] ) ) : echo $instance['db_link'];
|
330 |
</p>
|
331 |
<p>
|
332 |
<label
|
333 |
+
for="<?php echo $this->get_field_id( 'ln_link' ); ?>"><?php _e( 'Linkedin link', 'themeisle-companion' ); ?></label><br/>
|
334 |
<input type="text" name="<?php echo $this->get_field_name( 'ln_link' ); ?>"
|
335 |
id="<?php echo $this->get_field_id( 'ln_link' ); ?>"
|
336 |
value="<?php if ( ! empty( $instance['ln_link'] ) ) : echo $instance['ln_link'];
|
340 |
<p>
|
341 |
<input type="checkbox" name="<?php echo $this->get_field_name( 'open_new_window' ); ?>"
|
342 |
id="<?php echo $this->get_field_id( 'open_new_window' ); ?>" <?php if ( ! empty( $instance['open_new_window'] ) ) : checked( (bool) $instance['open_new_window'], true );
|
343 |
+
endif; ?> ><?php _e( 'Open links in new window?', 'themeisle-companion' ); ?>
|
344 |
<br>
|
345 |
</p>
|
346 |
<p>
|
347 |
<label
|
348 |
+
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'themeisle-companion' ); ?></label><br/>
|
349 |
|
350 |
<?php
|
351 |
$image_in_customizer = '';
|
369 |
endif; ?>">
|
370 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
371 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
372 |
+
alt="<?php echo __( 'Uploaded image', 'themeisle-companion' ); ?>"/><br/>
|
373 |
|
374 |
<input type="text" class="widefat custom_media_url"
|
375 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
380 |
|
381 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
382 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
383 |
+
value="<?php _e( 'Upload Image', 'themeisle-companion' ); ?>" style="margin-top:5px;">
|
384 |
</p>
|
385 |
|
386 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
obfx_modules/companion-legacy/inc/zerif-lite/widgets/widget-testimonial.php
CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'zerif_testimonial_widget' ) ) {
|
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'zerif_testim-widget',
|
24 |
-
__( 'Zerif - Testimonial widget', '
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
@@ -165,7 +165,7 @@ endif; ?></a>
|
|
165 |
|
166 |
<p>
|
167 |
<label
|
168 |
-
for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Author', '
|
169 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
|
170 |
id="<?php echo $this->get_field_id( 'title' ); ?>"
|
171 |
value="<?php if ( ! empty( $instance['title'] ) ) : echo $instance['title'];
|
@@ -174,7 +174,7 @@ endif; ?>"
|
|
174 |
</p>
|
175 |
<p>
|
176 |
<label
|
177 |
-
for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Author link', '
|
178 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
|
179 |
id="<?php echo $this->get_field_id( 'link' ); ?>"
|
180 |
value="<?php if ( ! empty( $instance['link'] ) ) : echo esc_url( $instance['link'] );
|
@@ -183,7 +183,7 @@ endif; ?>"
|
|
183 |
</p>
|
184 |
<p>
|
185 |
<label
|
186 |
-
for="<?php echo $this->get_field_id( 'details' ); ?>"><?php _e( 'Author details', '
|
187 |
<input type="text" name="<?php echo $this->get_field_name( 'details' ); ?>"
|
188 |
id="<?php echo $this->get_field_id( 'details' ); ?>"
|
189 |
value="<?php if ( ! empty( $instance['details'] ) ) : echo $instance['details'];
|
@@ -192,14 +192,14 @@ endif; ?>"
|
|
192 |
</p>
|
193 |
<p>
|
194 |
<label
|
195 |
-
for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', '
|
196 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
|
197 |
id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) : echo htmlspecialchars_decode( $instance['text'] );
|
198 |
endif; ?></textarea>
|
199 |
</p>
|
200 |
<p>
|
201 |
<label
|
202 |
-
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', '
|
203 |
|
204 |
<?php
|
205 |
$image_in_customizer = '';
|
@@ -223,7 +223,7 @@ endif; ?></textarea>
|
|
223 |
endif; ?>">
|
224 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
225 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
226 |
-
alt="<?php echo __( 'Uploaded image', '
|
227 |
|
228 |
<input type="text" class="widefat custom_media_url"
|
229 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
@@ -234,7 +234,7 @@ endif; ?>"
|
|
234 |
|
235 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
236 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
237 |
-
value="<?php _e( 'Upload Image', '
|
238 |
</p>
|
239 |
|
240 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
21 |
public function __construct() {
|
22 |
parent::__construct(
|
23 |
'zerif_testim-widget',
|
24 |
+
__( 'Zerif - Testimonial widget', 'themeisle-companion' ),
|
25 |
array(
|
26 |
'customize_selective_refresh' => true,
|
27 |
)
|
165 |
|
166 |
<p>
|
167 |
<label
|
168 |
+
for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Author', 'themeisle-companion' ); ?></label><br/>
|
169 |
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>"
|
170 |
id="<?php echo $this->get_field_id( 'title' ); ?>"
|
171 |
value="<?php if ( ! empty( $instance['title'] ) ) : echo $instance['title'];
|
174 |
</p>
|
175 |
<p>
|
176 |
<label
|
177 |
+
for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'Author link', 'themeisle-companion' ); ?></label><br/>
|
178 |
<input type="text" name="<?php echo $this->get_field_name( 'link' ); ?>"
|
179 |
id="<?php echo $this->get_field_id( 'link' ); ?>"
|
180 |
value="<?php if ( ! empty( $instance['link'] ) ) : echo esc_url( $instance['link'] );
|
183 |
</p>
|
184 |
<p>
|
185 |
<label
|
186 |
+
for="<?php echo $this->get_field_id( 'details' ); ?>"><?php _e( 'Author details', 'themeisle-companion' ); ?></label><br/>
|
187 |
<input type="text" name="<?php echo $this->get_field_name( 'details' ); ?>"
|
188 |
id="<?php echo $this->get_field_id( 'details' ); ?>"
|
189 |
value="<?php if ( ! empty( $instance['details'] ) ) : echo $instance['details'];
|
192 |
</p>
|
193 |
<p>
|
194 |
<label
|
195 |
+
for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text', 'themeisle-companion' ); ?></label><br/>
|
196 |
<textarea class="widefat" rows="8" cols="20" name="<?php echo $this->get_field_name( 'text' ); ?>"
|
197 |
id="<?php echo $this->get_field_id( 'text' ); ?>"><?php if ( ! empty( $instance['text'] ) ) : echo htmlspecialchars_decode( $instance['text'] );
|
198 |
endif; ?></textarea>
|
199 |
</p>
|
200 |
<p>
|
201 |
<label
|
202 |
+
for="<?php echo $this->get_field_id( 'image_uri' ); ?>"><?php _e( 'Image', 'themeisle-companion' ); ?></label><br/>
|
203 |
|
204 |
<?php
|
205 |
$image_in_customizer = '';
|
223 |
endif; ?>">
|
224 |
<img class="custom_media_image" src="<?php echo $image_in_customizer; ?>"
|
225 |
style="margin:0;padding:0;max-width:100px;float:left;display:<?php echo $display; ?>"
|
226 |
+
alt="<?php echo __( 'Uploaded image', 'themeisle-companion' ); ?>"/><br/>
|
227 |
|
228 |
<input type="text" class="widefat custom_media_url"
|
229 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
234 |
|
235 |
<input type="button" class="button button-primary custom_media_button" id="custom_media_button"
|
236 |
name="<?php echo $this->get_field_name( 'image_uri' ); ?>"
|
237 |
+
value="<?php _e( 'Upload Image', 'themeisle-companion' ); ?>" style="margin-top:5px;">
|
238 |
</p>
|
239 |
|
240 |
<input class="custom_media_id" id="<?php echo $this->get_field_id( 'custom_media_id' ); ?>"
|
obfx_modules/companion-legacy/init.php
CHANGED
@@ -69,6 +69,18 @@ class Companion_Legacy_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
69 |
$theme_name = 'Hestia Pro';
|
70 |
|
71 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
$this->name = sprintf( __( '%s enhancements ', 'themeisle-companion' ), $theme_name );
|
73 |
$this->description = sprintf( __( 'Module containing frontpage improvements for %s theme.', 'themeisle-companion' ), $theme_name );
|
74 |
}
|
@@ -105,6 +117,48 @@ class Companion_Legacy_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
105 |
return false;
|
106 |
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
/**
|
109 |
* Determine if module should be loaded.
|
110 |
*
|
@@ -113,7 +167,7 @@ class Companion_Legacy_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
113 |
* @return bool
|
114 |
*/
|
115 |
public function enable_module() {
|
116 |
-
if ( $this->is_hestia() || $this->is_rhea() || $this->is_zerif() || $this->is_hestia_pro() ) {
|
117 |
return true;
|
118 |
} else {
|
119 |
return false;
|
@@ -166,6 +220,76 @@ class Companion_Legacy_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
166 |
echo $output;
|
167 |
}
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
/**
|
170 |
* Wrapper method for themeisle_hestia_require function call.
|
171 |
*
|
@@ -230,6 +354,46 @@ class Companion_Legacy_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
230 |
themeisle_hestia_set_frontpage();
|
231 |
}
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
/**
|
234 |
* The loading logic for the module.
|
235 |
*
|
@@ -274,6 +438,31 @@ class Companion_Legacy_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
274 |
$this->loader->add_filter( 'hestia_clients_bar_default_content', $this, 'hestia_load_clients_default_content' );
|
275 |
$this->loader->add_filter( 'hestia_top_bar_alignment_default', $this, 'hestia_top_bar_default_alignment' );
|
276 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
}
|
278 |
|
279 |
/**
|
69 |
$theme_name = 'Hestia Pro';
|
70 |
|
71 |
}
|
72 |
+
if( $this->is_shop_isle() ) {
|
73 |
+
$theme_name = 'Shop Isle';
|
74 |
+
}
|
75 |
+
|
76 |
+
if ( $this->is_azera_shop() ) {
|
77 |
+
$theme_name = 'Azera Shop';
|
78 |
+
}
|
79 |
+
|
80 |
+
if ( $this->is_llorix_one_lite() ) {
|
81 |
+
$theme_name = 'Llorix One Lite';
|
82 |
+
}
|
83 |
+
|
84 |
$this->name = sprintf( __( '%s enhancements ', 'themeisle-companion' ), $theme_name );
|
85 |
$this->description = sprintf( __( 'Module containing frontpage improvements for %s theme.', 'themeisle-companion' ), $theme_name );
|
86 |
}
|
117 |
return false;
|
118 |
}
|
119 |
|
120 |
+
private function is_shop_isle() {
|
121 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
122 |
+
if( is_plugin_active( 'shop-isle-companion/shop-isle-companion.php' ) ) {
|
123 |
+
return false;
|
124 |
+
}
|
125 |
+
if ( $this->get_active_theme_dir() == 'shop-isle' ) {
|
126 |
+
return true;
|
127 |
+
}
|
128 |
+
|
129 |
+
return false;
|
130 |
+
}
|
131 |
+
|
132 |
+
private function is_azera_shop() {
|
133 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
134 |
+
if ( is_plugin_active( 'azera-shop-companion/azera-shop-companion.php' ) ) {
|
135 |
+
return false;
|
136 |
+
}
|
137 |
+
if ( is_plugin_active( 'azera-shop-plus/azera-shop-plus.php' ) ) {
|
138 |
+
return false;
|
139 |
+
}
|
140 |
+
if ( $this->get_active_theme_dir() == 'azera-shop' ) {
|
141 |
+
return true;
|
142 |
+
}
|
143 |
+
|
144 |
+
return false;
|
145 |
+
}
|
146 |
+
|
147 |
+
private function is_llorix_one_lite() {
|
148 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
149 |
+
if ( is_plugin_active( 'llorix-one-companion/llorix-one-companion.php' ) ) {
|
150 |
+
return false;
|
151 |
+
}
|
152 |
+
if ( is_plugin_active( 'llorix-one-plus/llorix_one_plus.php' ) ) {
|
153 |
+
return false;
|
154 |
+
}
|
155 |
+
if ( $this->get_active_theme_dir() == 'llorix-one-lite' ) {
|
156 |
+
return true;
|
157 |
+
}
|
158 |
+
|
159 |
+
return false;
|
160 |
+
}
|
161 |
+
|
162 |
/**
|
163 |
* Determine if module should be loaded.
|
164 |
*
|
167 |
* @return bool
|
168 |
*/
|
169 |
public function enable_module() {
|
170 |
+
if ( $this->is_hestia() || $this->is_rhea() || $this->is_zerif() || $this->is_hestia_pro() || $this->is_shop_isle() || $this->is_azera_shop() || $this->is_llorix_one_lite() ) {
|
171 |
return true;
|
172 |
} else {
|
173 |
return false;
|
220 |
echo $output;
|
221 |
}
|
222 |
|
223 |
+
/**
|
224 |
+
* Function to import customizer big title settings into first slide.
|
225 |
+
*/
|
226 |
+
public function shop_isle_get_wporg_options() {
|
227 |
+
/* import shop isle options */
|
228 |
+
$shop_isle_mods = get_option('theme_mods_shop-isle');
|
229 |
+
|
230 |
+
if (!empty($shop_isle_mods)) {
|
231 |
+
|
232 |
+
$new_slider = new stdClass();
|
233 |
+
|
234 |
+
foreach ($shop_isle_mods as $shop_isle_mod_k => $shop_isle_mod_v) {
|
235 |
+
|
236 |
+
/* migrate Big title section to Slider section */
|
237 |
+
if (($shop_isle_mod_k == 'shop_isle_big_title_image') || ($shop_isle_mod_k == 'shop_isle_big_title_title') || ($shop_isle_mod_k == 'shop_isle_big_title_subtitle') || ($shop_isle_mod_k == 'shop_isle_big_title_button_label') || ($shop_isle_mod_k == 'shop_isle_big_title_button_link')) {
|
238 |
+
|
239 |
+
if ($shop_isle_mod_k == 'shop_isle_big_title_image') {
|
240 |
+
if (!empty($shop_isle_mod_v)) {
|
241 |
+
$new_slider->image_url = $shop_isle_mod_v;
|
242 |
+
} else {
|
243 |
+
$new_slider->image_url = '';
|
244 |
+
}
|
245 |
+
}
|
246 |
+
|
247 |
+
if ($shop_isle_mod_k == 'shop_isle_big_title_title') {
|
248 |
+
if (!empty($shop_isle_mod_v)) {
|
249 |
+
$new_slider->text = $shop_isle_mod_v;
|
250 |
+
} else {
|
251 |
+
$new_slider->text = '';
|
252 |
+
}
|
253 |
+
}
|
254 |
+
|
255 |
+
if ($shop_isle_mod_k == 'shop_isle_big_title_subtitle') {
|
256 |
+
if (!empty($shop_isle_mod_v)) {
|
257 |
+
$new_slider->subtext = $shop_isle_mod_v;
|
258 |
+
} else {
|
259 |
+
$new_slider->subtext = '';
|
260 |
+
}
|
261 |
+
}
|
262 |
+
|
263 |
+
if ($shop_isle_mod_k == 'shop_isle_big_title_button_label') {
|
264 |
+
if (!empty($shop_isle_mod_v)) {
|
265 |
+
$new_slider->label = $shop_isle_mod_v;
|
266 |
+
} else {
|
267 |
+
$new_slider->label = '';
|
268 |
+
}
|
269 |
+
}
|
270 |
+
|
271 |
+
if ($shop_isle_mod_k == 'shop_isle_big_title_button_link') {
|
272 |
+
if (!empty($shop_isle_mod_v)) {
|
273 |
+
$new_slider->link = $shop_isle_mod_v;
|
274 |
+
} else {
|
275 |
+
$new_slider->link = '';
|
276 |
+
}
|
277 |
+
}
|
278 |
+
|
279 |
+
if ( !empty($new_slider->image_url) || !empty($new_slider->text) || !empty($new_slider->subtext) || !empty($new_slider->link) ) {
|
280 |
+
$new_slider_encode = json_encode(array($new_slider));
|
281 |
+
set_theme_mod('shop_isle_slider', $new_slider_encode);
|
282 |
+
}
|
283 |
+
|
284 |
+
} else {
|
285 |
+
|
286 |
+
set_theme_mod($shop_isle_mod_k, $shop_isle_mod_v);
|
287 |
+
}
|
288 |
+
}
|
289 |
+
}
|
290 |
+
|
291 |
+
}
|
292 |
+
|
293 |
/**
|
294 |
* Wrapper method for themeisle_hestia_require function call.
|
295 |
*
|
354 |
themeisle_hestia_set_frontpage();
|
355 |
}
|
356 |
|
357 |
+
/**
|
358 |
+
* Wrapper method for Azera Shop Companion styles
|
359 |
+
*
|
360 |
+
* @since 2.4.5
|
361 |
+
* @access public
|
362 |
+
*/
|
363 |
+
public function azera_shop_companion_register_plugin_styles() {
|
364 |
+
azera_shop_companion_register_plugin_styles();
|
365 |
+
}
|
366 |
+
|
367 |
+
/**
|
368 |
+
* Wrapper method for Azera Shop Companion sections
|
369 |
+
*
|
370 |
+
* @since 2.4.5
|
371 |
+
* @access public
|
372 |
+
*/
|
373 |
+
public function azera_shop_companion_load_sections() {
|
374 |
+
azera_shop_companion_load_sections();
|
375 |
+
}
|
376 |
+
|
377 |
+
/**
|
378 |
+
* Wrapper method for Llorix One Companion styles
|
379 |
+
*
|
380 |
+
* @since 2.4.5
|
381 |
+
* @access public
|
382 |
+
*/
|
383 |
+
public function llorix_one_companion_register_plugin_styles() {
|
384 |
+
llorix_one_companion_register_plugin_styles();
|
385 |
+
}
|
386 |
+
|
387 |
+
/**
|
388 |
+
* Wrapper method for Llorix One Companion sections
|
389 |
+
*
|
390 |
+
* @since 2.4.5
|
391 |
+
* @access public
|
392 |
+
*/
|
393 |
+
public function llorix_one_companion_load_sections() {
|
394 |
+
llorix_one_companion_load_sections();
|
395 |
+
}
|
396 |
+
|
397 |
/**
|
398 |
* The loading logic for the module.
|
399 |
*
|
438 |
$this->loader->add_filter( 'hestia_clients_bar_default_content', $this, 'hestia_load_clients_default_content' );
|
439 |
$this->loader->add_filter( 'hestia_top_bar_alignment_default', $this, 'hestia_top_bar_default_alignment' );
|
440 |
}
|
441 |
+
|
442 |
+
if( $this->is_shop_isle() ) {
|
443 |
+
require_once $this->inc_dir . 'shop-isle' . DIRECTORY_SEPARATOR . 'functions.php';
|
444 |
+
}
|
445 |
+
|
446 |
+
if ( $this->is_azera_shop() ) {
|
447 |
+
require_once $this->inc_dir . 'azera-shop' . DIRECTORY_SEPARATOR . 'functions.php';
|
448 |
+
$this->loader->add_action( 'wp_enqueue_scripts', $this, 'azera_shop_companion_register_plugin_styles' );
|
449 |
+
$this->loader->add_action( 'plugins_loaded', $this, 'azera_shop_companion_load_sections' );
|
450 |
+
}
|
451 |
+
|
452 |
+
if ( $this->is_llorix_one_lite() ) {
|
453 |
+
require_once $this->inc_dir . 'llorix-one-companion' . DIRECTORY_SEPARATOR . 'functions.php';
|
454 |
+
$this->loader->add_action( 'wp_enqueue_scripts', $this, 'llorix_one_companion_register_plugin_styles' );
|
455 |
+
$this->loader->add_action( 'plugins_loaded', $this, 'llorix_one_companion_load_sections' );
|
456 |
+
}
|
457 |
+
}
|
458 |
+
|
459 |
+
/**
|
460 |
+
* Import mods if is shop isle.
|
461 |
+
*/
|
462 |
+
public function activate() {
|
463 |
+
if( $this->is_shop_isle() ) {
|
464 |
+
$this->shop_isle_get_wporg_options();
|
465 |
+
}
|
466 |
}
|
467 |
|
468 |
/**
|
obfx_modules/menu-icons/init.php
CHANGED
@@ -33,6 +33,8 @@ class Menu_Icons_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
33 |
$this->name = __( 'Menu Icons', 'themeisle-companion' );
|
34 |
$this->description = __( 'Module to define menu icons for navigation.', 'themeisle-companion' );
|
35 |
$this->active_default = true;
|
|
|
|
|
36 |
}
|
37 |
|
38 |
|
@@ -64,7 +66,8 @@ class Menu_Icons_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
64 |
*/
|
65 |
public function hooks() {
|
66 |
$this->loader->add_action( 'wp_update_nav_menu_item', $this, 'save_fields', 10, 3 );
|
67 |
-
|
|
|
68 |
$this->loader->add_filter( 'wp_setup_nav_menu_item', $this, 'show_menu', 10, 1 );
|
69 |
|
70 |
}
|
@@ -139,6 +142,11 @@ class Menu_Icons_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
139 |
return array();
|
140 |
}
|
141 |
|
|
|
|
|
|
|
|
|
|
|
142 |
$this->localized = array(
|
143 |
'admin' => array(
|
144 |
'icons' => apply_filters( 'obfx_menu_icons_icon_list', $this->get_dashicons() ),
|
@@ -218,4 +226,41 @@ class Menu_Icons_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
218 |
}
|
219 |
|
220 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
}
|
33 |
$this->name = __( 'Menu Icons', 'themeisle-companion' );
|
34 |
$this->description = __( 'Module to define menu icons for navigation.', 'themeisle-companion' );
|
35 |
$this->active_default = true;
|
36 |
+
|
37 |
+
add_action( 'admin_init', array( $this, 'check_conflict' ) , 99 );
|
38 |
}
|
39 |
|
40 |
|
66 |
*/
|
67 |
public function hooks() {
|
68 |
$this->loader->add_action( 'wp_update_nav_menu_item', $this, 'save_fields', 10, 3 );
|
69 |
+
// Do not change the priority of this from 1.
|
70 |
+
$this->loader->add_filter( 'wp_edit_nav_menu_walker', $this, 'custom_walker', 1 );
|
71 |
$this->loader->add_filter( 'wp_setup_nav_menu_item', $this, 'show_menu', 10, 1 );
|
72 |
|
73 |
}
|
142 |
return array();
|
143 |
}
|
144 |
|
145 |
+
// Our walker has not been registered because another custom walker exists.
|
146 |
+
if ( ! class_exists( 'Menu_Icons_OBFX_Walker' ) ) {
|
147 |
+
return array();
|
148 |
+
}
|
149 |
+
|
150 |
$this->localized = array(
|
151 |
'admin' => array(
|
152 |
'icons' => apply_filters( 'obfx_menu_icons_icon_list', $this->get_dashicons() ),
|
226 |
}
|
227 |
|
228 |
}
|
229 |
+
|
230 |
+
/**
|
231 |
+
* Checks if there is any conflict with a theme/plugin.
|
232 |
+
*/
|
233 |
+
public function check_conflict() {
|
234 |
+
// We need to include this so that the wp_edit_nav_menu_walker filter does not misbehave.
|
235 |
+
require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
|
236 |
+
|
237 |
+
// Let's check if another walker has been defined.
|
238 |
+
$walker = apply_filters( 'wp_edit_nav_menu_walker', '' );
|
239 |
+
|
240 |
+
// Yes, a conflict!
|
241 |
+
if ( ! empty( $walker ) && $walker !== 'Menu_Icons_OBFX_Walker' ) {
|
242 |
+
$reflector = new ReflectionClass( $walker );
|
243 |
+
$path = str_replace( '\\', '/', $reflector->getFileName() );
|
244 |
+
|
245 |
+
$name = '';
|
246 |
+
$type = '';
|
247 |
+
if ( false !== strpos( $path, 'themes' ) ) {
|
248 |
+
$type = __( 'theme', 'themeisle-companion' );
|
249 |
+
$theme = wp_get_theme();
|
250 |
+
$name = $theme->get( 'Name' );
|
251 |
+
} else {
|
252 |
+
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
253 |
+
WP_Filesystem();
|
254 |
+
global $wp_filesystem;
|
255 |
+
|
256 |
+
$plugin_path = str_replace( str_replace( '\\', '/', trailingslashit( dirname( OBX_PATH ) ) ), '', $path );
|
257 |
+
$array = explode( '/', $path );
|
258 |
+
$name = reset( $array );
|
259 |
+
$type = __( 'plugin', 'themeisle-companion' );
|
260 |
+
}
|
261 |
+
|
262 |
+
$this->description .= '<br><i class="chip">' . sprintf( __( 'There appears to be a conflict with the %s %s. This module may not work as expected.', 'themeisle-companion' ), $type, $name ) . '</i>';
|
263 |
+
$this->active_default = false;
|
264 |
+
}
|
265 |
+
}
|
266 |
}
|
readme.md
CHANGED
@@ -14,6 +14,8 @@ This swiss-knife plugin comes with a quality template library, menu/sharing icon
|
|
14 |
|
15 |
Extend your theme functionality with <a href="https://themeisle.com/plugins/orbit-fox-companion/" rel="nofollow">Orbit Fox</a> with various modules like Social Media Share Buttons & Icons, Uptime Monitoring, Google Analytics, custom menu-icons, one click import page templates, page builder addons and free stock featured images.
|
16 |
|
|
|
|
|
17 |
**Features:**
|
18 |
- Uptime Monitor
|
19 |
- Google Analytics Integration
|
@@ -98,6 +100,15 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
98 |
5. Social Sharing Module
|
99 |
|
100 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
### 2.4.5 - 2018-03-29 ###
|
102 |
|
103 |
* Fixed issue with duplicated widgets in Hestia theme
|
14 |
|
15 |
Extend your theme functionality with <a href="https://themeisle.com/plugins/orbit-fox-companion/" rel="nofollow">Orbit Fox</a> with various modules like Social Media Share Buttons & Icons, Uptime Monitoring, Google Analytics, custom menu-icons, one click import page templates, page builder addons and free stock featured images.
|
16 |
|
17 |
+
https://www.youtube.com/watch?v=YHhK_twfYB8
|
18 |
+
|
19 |
**Features:**
|
20 |
- Uptime Monitor
|
21 |
- Google Analytics Integration
|
100 |
5. Social Sharing Module
|
101 |
|
102 |
## Changelog ##
|
103 |
+
### 2.4.6 - 2018-04-12 ###
|
104 |
+
|
105 |
+
* Add video to readme file
|
106 |
+
* Added notification about conflict with navwalker overrides
|
107 |
+
* Added safeguard for navwalker overrides
|
108 |
+
* Remove unused animation functions from Legacy Module
|
109 |
+
* Added Azera Shop, Llorix One Lite, Shop Isle themes functionality to Legacy Module
|
110 |
+
|
111 |
+
|
112 |
### 2.4.5 - 2018-03-29 ###
|
113 |
|
114 |
* Fixed issue with duplicated widgets in Hestia theme
|
readme.txt
CHANGED
@@ -14,6 +14,8 @@ This swiss-knife plugin comes with a quality template library, menu/sharing icon
|
|
14 |
|
15 |
Extend your theme functionality with <a href="https://themeisle.com/plugins/orbit-fox-companion/" rel="nofollow">Orbit Fox</a> with various modules like Social Media Share Buttons & Icons, Uptime Monitoring, Google Analytics, custom menu-icons, one click import page templates, page builder addons and free stock featured images.
|
16 |
|
|
|
|
|
17 |
**Features:**
|
18 |
- Uptime Monitor
|
19 |
- Google Analytics Integration
|
@@ -98,6 +100,15 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
98 |
5. Social Sharing Module
|
99 |
|
100 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
= 2.4.5 - 2018-03-29 =
|
102 |
|
103 |
* Fixed issue with duplicated widgets in Hestia theme
|
14 |
|
15 |
Extend your theme functionality with <a href="https://themeisle.com/plugins/orbit-fox-companion/" rel="nofollow">Orbit Fox</a> with various modules like Social Media Share Buttons & Icons, Uptime Monitoring, Google Analytics, custom menu-icons, one click import page templates, page builder addons and free stock featured images.
|
16 |
|
17 |
+
https://www.youtube.com/watch?v=YHhK_twfYB8
|
18 |
+
|
19 |
**Features:**
|
20 |
- Uptime Monitor
|
21 |
- Google Analytics Integration
|
100 |
5. Social Sharing Module
|
101 |
|
102 |
== Changelog ==
|
103 |
+
= 2.4.6 - 2018-04-12 =
|
104 |
+
|
105 |
+
* Add video to readme file
|
106 |
+
* Added notification about conflict with navwalker overrides
|
107 |
+
* Added safeguard for navwalker overrides
|
108 |
+
* Remove unused animation functions from Legacy Module
|
109 |
+
* Added Azera Shop, Llorix One Lite, Shop Isle themes functionality to Legacy Module
|
110 |
+
|
111 |
+
|
112 |
= 2.4.5 - 2018-03-29 =
|
113 |
|
114 |
* Fixed issue with duplicated widgets in Hestia theme
|
themeisle-companion.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Orbit Fox Companion
|
16 |
* Plugin URI: https://themeisle.com/plugins/orbit-fox-companion
|
17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
18 |
-
* Version: 2.4.
|
19 |
* Author: Themeisle
|
20 |
* Author URI: https://themeisle.com
|
21 |
* License: GPL-2.0+
|
15 |
* Plugin Name: Orbit Fox Companion
|
16 |
* Plugin URI: https://themeisle.com/plugins/orbit-fox-companion
|
17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
18 |
+
* Version: 2.4.6
|
19 |
* Author: Themeisle
|
20 |
* Author URI: https://themeisle.com
|
21 |
* License: GPL-2.0+
|
themeisle-hash.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"class-autoloader.php":"57e533b653d235e76cb9953720e4f5e9","index.php":"39ab8276fb0e4bd3fcab3270822c5977","themeisle-companion.php":"
|
1 |
+
{"class-autoloader.php":"57e533b653d235e76cb9953720e4f5e9","index.php":"39ab8276fb0e4bd3fcab3270822c5977","themeisle-companion.php":"56404d95c05f61c5b75671abf6a4f3b8","uninstall.php":"7abf753a29e0eb3a844c8a0ba9493b7c"}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit44640b86f352388a1de6f350c1f928e8::getLoader();
|
vendor/codeinwp/templates-directory/class-page-templates-directory.php
CHANGED
@@ -14,7 +14,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
14 |
* The version of this library
|
15 |
* @var string
|
16 |
*/
|
17 |
-
public static $version = '1.0.
|
18 |
|
19 |
/**
|
20 |
* Holds the module slug.
|
@@ -120,16 +120,19 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
120 |
$plugin_slug = $_POST['plugin_slug'];
|
121 |
$query_args = array( 'license' => '', 'url' => get_home_url(), 'name' => $plugin_slug );
|
122 |
|
123 |
-
$license = get_option('
|
124 |
-
|
|
|
|
|
125 |
$query_args['license'] = $license;
|
|
|
126 |
}
|
127 |
$url = add_query_arg( $query_args, 'https://themeisle.com/?edd_action=get_templates' );
|
128 |
|
129 |
-
$request = wp_remote_post( esc_url_raw( $url ) );
|
130 |
-
$response = json_decode( $request
|
131 |
|
132 |
-
if( !empty( $response ) ) {
|
133 |
update_option( $plugin_slug . '_synced_templates', $response );
|
134 |
}
|
135 |
die();
|
@@ -142,13 +145,14 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
|
|
142 |
} else {
|
143 |
$fetched = get_option( 'sizzify_synced_templates' );
|
144 |
}
|
145 |
-
if(
|
146 |
return $templates;
|
147 |
}
|
148 |
if( ! is_array( $fetched ) ) {
|
149 |
return $templates;
|
150 |
}
|
151 |
-
$new_templates = array_merge( $fetched['templates']
|
|
|
152 |
return $new_templates;
|
153 |
}
|
154 |
|
14 |
* The version of this library
|
15 |
* @var string
|
16 |
*/
|
17 |
+
public static $version = '1.0.3';
|
18 |
|
19 |
/**
|
20 |
* Holds the module slug.
|
120 |
$plugin_slug = $_POST['plugin_slug'];
|
121 |
$query_args = array( 'license' => '', 'url' => get_home_url(), 'name' => $plugin_slug );
|
122 |
|
123 |
+
$license = get_option('eaw_premium_license_data','');
|
124 |
+
|
125 |
+
if( ! empty ( $license ) ) {
|
126 |
+
$license= isset($license->key) ? $license->key :'';
|
127 |
$query_args['license'] = $license;
|
128 |
+
$query_args['_'] = time();
|
129 |
}
|
130 |
$url = add_query_arg( $query_args, 'https://themeisle.com/?edd_action=get_templates' );
|
131 |
|
132 |
+
$request = wp_remote_retrieve_body( wp_remote_post( esc_url_raw( $url ) ) );
|
133 |
+
$response = json_decode( $request, true );
|
134 |
|
135 |
+
if( ! empty( $response ) ) {
|
136 |
update_option( $plugin_slug . '_synced_templates', $response );
|
137 |
}
|
138 |
die();
|
145 |
} else {
|
146 |
$fetched = get_option( 'sizzify_synced_templates' );
|
147 |
}
|
148 |
+
if( empty( $fetched ) ) {
|
149 |
return $templates;
|
150 |
}
|
151 |
if( ! is_array( $fetched ) ) {
|
152 |
return $templates;
|
153 |
}
|
154 |
+
$new_templates = array_merge( $templates,$fetched['templates'] );
|
155 |
+
|
156 |
return $new_templates;
|
157 |
}
|
158 |
|
vendor/codeinwp/templates-directory/composer.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
"name": "codeinwp/templates-directory",
|
3 |
"description": "A WordPress library to manage page templates.",
|
4 |
"type": "library",
|
5 |
-
"version": "1.0.
|
6 |
"license": "GPL-2.0-or-later",
|
7 |
"homepage": "https://github.com/Codeinwp/templates-directory",
|
8 |
"authors": [
|
2 |
"name": "codeinwp/templates-directory",
|
3 |
"description": "A WordPress library to manage page templates.",
|
4 |
"type": "library",
|
5 |
+
"version": "1.0.3",
|
6 |
"license": "GPL-2.0-or-later",
|
7 |
"homepage": "https://github.com/Codeinwp/templates-directory",
|
8 |
"authors": [
|
vendor/codeinwp/templates-directory/js/script.js
CHANGED
@@ -138,7 +138,7 @@ var obfx_template_directory = function ( $ ) {
|
|
138 |
|
139 |
// Handle sidebar collapse in preview.
|
140 |
$( '.obfx-template-preview' ).on(
|
141 |
-
'click', '.collapse-sidebar', function () {
|
142 |
event.preventDefault();
|
143 |
var overlay = $( '.obfx-template-preview' );
|
144 |
if ( overlay.hasClass( 'expanded' ) ) {
|
138 |
|
139 |
// Handle sidebar collapse in preview.
|
140 |
$( '.obfx-template-preview' ).on(
|
141 |
+
'click', '.collapse-sidebar', function (event) {
|
142 |
event.preventDefault();
|
143 |
var overlay = $( '.obfx-template-preview' );
|
144 |
if ( overlay.hasClass( 'expanded' ) ) {
|
vendor/codeinwp/templates-directory/views/template-directory-page-tpl.php
CHANGED
@@ -74,12 +74,15 @@ if ( is_array( $templates_array ) ) { ?>
|
|
74 |
$upsell = 'no';
|
75 |
if ( isset( $properties['has_badge'] ) && ! isset( $properties['import_file'] ) ) {
|
76 |
$upsell = 'yes';
|
|
|
77 |
}
|
78 |
?>
|
79 |
<div class="install-theme-info obfx-theme-info <?php echo esc_attr( $template ); ?>"
|
80 |
data-demo-url="<?php echo esc_url( $properties['demo_url'] ); ?>"
|
|
|
81 |
data-template-file="<?php echo esc_url( $properties['import_file'] ); ?>"
|
82 |
-
|
|
|
83 |
data-upsell="<?php echo esc_attr( $upsell ) ?>">
|
84 |
<h3 class="theme-name"><?php echo esc_html( $properties['title'] ); ?></h3>
|
85 |
<div class="obfx-preview-wrap">
|
74 |
$upsell = 'no';
|
75 |
if ( isset( $properties['has_badge'] ) && ! isset( $properties['import_file'] ) ) {
|
76 |
$upsell = 'yes';
|
77 |
+
$properties['import_file'] = '';
|
78 |
}
|
79 |
?>
|
80 |
<div class="install-theme-info obfx-theme-info <?php echo esc_attr( $template ); ?>"
|
81 |
data-demo-url="<?php echo esc_url( $properties['demo_url'] ); ?>"
|
82 |
+
<?php if( isset( $properties['import_file'] ) ) { ?>
|
83 |
data-template-file="<?php echo esc_url( $properties['import_file'] ); ?>"
|
84 |
+
<?php } ?>
|
85 |
+
data-template-title="<?php echo esc_html( $properties['title'] ); ?>"
|
86 |
data-upsell="<?php echo esc_attr( $upsell ) ?>">
|
87 |
<h3 class="theme-name"><?php echo esc_html( $properties['title'] ); ?></h3>
|
88 |
<div class="obfx-preview-wrap">
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-feedback-deactivate.php
CHANGED
@@ -515,12 +515,12 @@ if ( ! class_exists( 'ThemeIsle_SDK_Feedback_Deactivate' ) ) :
|
|
515 |
return '<div id="' . $this->product->get_key() . '">'
|
516 |
. '<ul class="ti-list">' . $list . '</ul>'
|
517 |
. '<div class="actions">'
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
. get_submit_button( $button_cancel, 'primary', $this->product->get_key() . 'ti-deactivate-no', false )
|
525 |
. '</div></div>';
|
526 |
}
|
515 |
return '<div id="' . $this->product->get_key() . '">'
|
516 |
. '<ul class="ti-list">' . $list . '</ul>'
|
517 |
. '<div class="actions">'
|
518 |
+
. get_submit_button(
|
519 |
+
$button_submit, 'secondary', $this->product->get_key() . 'ti-deactivate-yes', false, array(
|
520 |
+
'data-after-text' => $button_submit,
|
521 |
+
'disabled' => true,
|
522 |
+
)
|
523 |
+
)
|
524 |
. get_submit_button( $button_cancel, 'primary', $this->product->get_key() . 'ti-deactivate-no', false )
|
525 |
. '</div></div>';
|
526 |
}
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-logger.php
CHANGED
@@ -170,16 +170,16 @@ if ( ! class_exists( 'ThemeIsle_SDK_Logger' ) ) :
|
|
170 |
return '<div >'
|
171 |
. '<p>' . $heading . '</p>'
|
172 |
. '<div class="actions">'
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
. '</div></div>';
|
184 |
}
|
185 |
|
170 |
return '<div >'
|
171 |
. '<p>' . $heading . '</p>'
|
172 |
. '<div class="actions">'
|
173 |
+
. get_submit_button(
|
174 |
+
$button_submit, 'primary ' . $this->product->get_key() . '-ti-logger', $this->product->get_key() . 'ti-logger-yes', false, array(
|
175 |
+
'data-ti-log-enable' => 1,
|
176 |
+
)
|
177 |
+
)
|
178 |
+
. get_submit_button(
|
179 |
+
$button_cancel, 'secondary ' . $this->product->get_key() . '-ti-logger', $this->product->get_key() . 'ti-logger-no', false, array(
|
180 |
+
'data-ti-log-enable' => 0,
|
181 |
+
)
|
182 |
+
)
|
183 |
. '</div></div>';
|
184 |
}
|
185 |
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php
CHANGED
@@ -60,11 +60,38 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
60 |
/**
|
61 |
* @var array $allowed_authors The allowed authors.
|
62 |
*/
|
63 |
-
private $allowed_authors = array(
|
|
|
|
|
|
|
|
|
|
|
64 |
/**
|
65 |
* @var array $allowed_external_products The allowed external_products.
|
66 |
*/
|
67 |
-
private $allowed_products = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
/**
|
69 |
* @var bool $requires_license Either user needs to activate it with license.
|
70 |
*/
|
@@ -285,6 +312,52 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
285 |
return $versions;
|
286 |
}
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
/**
|
289 |
* Return theme versions.
|
290 |
*
|
@@ -322,20 +395,20 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
|
|
322 |
* @return array Array of versions.
|
323 |
*/
|
324 |
private function get_api_versions() {
|
325 |
-
if ( ! $this->is_wordpress_available() ) {
|
326 |
-
return array();
|
327 |
-
}
|
328 |
|
329 |
$cache_key = $this->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->version ) . 'versions';
|
330 |
$cache_versions = get_transient( $this->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->version ) . 'versions' );
|
331 |
if ( false == $cache_versions ) {
|
332 |
$versions = array();
|
333 |
-
if ( $this->
|
334 |
-
$versions = $this->
|
335 |
-
}
|
336 |
-
|
337 |
-
|
338 |
-
|
|
|
|
|
|
|
339 |
}
|
340 |
set_transient( $cache_key, $versions, MONTH_IN_SECONDS );
|
341 |
} else {
|
60 |
/**
|
61 |
* @var array $allowed_authors The allowed authors.
|
62 |
*/
|
63 |
+
private $allowed_authors = array(
|
64 |
+
'proteusthemes.com',
|
65 |
+
'anarieldesign.com',
|
66 |
+
'prothemedesign.com',
|
67 |
+
'cssigniter.com',
|
68 |
+
);
|
69 |
/**
|
70 |
* @var array $allowed_external_products The allowed external_products.
|
71 |
*/
|
72 |
+
private $allowed_products = array(
|
73 |
+
'zermatt',
|
74 |
+
'neto',
|
75 |
+
'olsen',
|
76 |
+
'benson',
|
77 |
+
'romero',
|
78 |
+
'carmack',
|
79 |
+
'puzzle',
|
80 |
+
'broadsheet',
|
81 |
+
'girlywp',
|
82 |
+
'veggie',
|
83 |
+
'zeko',
|
84 |
+
'maishawp',
|
85 |
+
'didi',
|
86 |
+
'liber',
|
87 |
+
'medicpress-pt',
|
88 |
+
'adrenaline-pt',
|
89 |
+
'consultpress-pt',
|
90 |
+
'legalpress-pt',
|
91 |
+
'gympress-pt',
|
92 |
+
'readable-pt',
|
93 |
+
'bolts-pt',
|
94 |
+
);
|
95 |
/**
|
96 |
* @var bool $requires_license Either user needs to activate it with license.
|
97 |
*/
|
312 |
return $versions;
|
313 |
}
|
314 |
|
315 |
+
/**
|
316 |
+
* @return string Return license key, if available.
|
317 |
+
*/
|
318 |
+
private function get_license() {
|
319 |
+
$license_data = get_option( $this->get_key() . '_license_data', '' );
|
320 |
+
|
321 |
+
if ( empty( $license_data ) ) {
|
322 |
+
return '';
|
323 |
+
}
|
324 |
+
if ( ! isset( $license_data->key ) ) {
|
325 |
+
return '';
|
326 |
+
}
|
327 |
+
|
328 |
+
return $license_data->key;
|
329 |
+
}
|
330 |
+
|
331 |
+
/**
|
332 |
+
* @return array Array of available versions.
|
333 |
+
*/
|
334 |
+
private function get_pro_versions() {
|
335 |
+
$license = $this->get_license();
|
336 |
+
|
337 |
+
$url = sprintf( 'https://themeisle.com/?edd_action=get_versions&name=%s&url=%s&license=%s', urlencode( $this->get_name() ), urlencode( get_site_url() ), $license );
|
338 |
+
$response = wp_remote_get( $url );
|
339 |
+
if ( is_wp_error( $response ) ) {
|
340 |
+
return array();
|
341 |
+
}
|
342 |
+
$response = wp_remote_retrieve_body( $response );
|
343 |
+
$response = json_decode( $response );
|
344 |
+
if ( ! is_object( $response ) ) {
|
345 |
+
return array();
|
346 |
+
}
|
347 |
+
if ( ! isset( $response->versions ) ) {
|
348 |
+
return array();
|
349 |
+
}
|
350 |
+
$versions = array();
|
351 |
+
foreach ( $response->versions as $key => $version ) {
|
352 |
+
$versions[] = array(
|
353 |
+
'version' => $version->version,
|
354 |
+
'url' => $version->file,
|
355 |
+
);
|
356 |
+
}
|
357 |
+
|
358 |
+
return $versions;
|
359 |
+
}
|
360 |
+
|
361 |
/**
|
362 |
* Return theme versions.
|
363 |
*
|
395 |
* @return array Array of versions.
|
396 |
*/
|
397 |
private function get_api_versions() {
|
|
|
|
|
|
|
398 |
|
399 |
$cache_key = $this->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->version ) . 'versions';
|
400 |
$cache_versions = get_transient( $this->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->version ) . 'versions' );
|
401 |
if ( false == $cache_versions ) {
|
402 |
$versions = array();
|
403 |
+
if ( ! $this->is_wordpress_available() ) {
|
404 |
+
$versions = $this->get_pro_versions();
|
405 |
+
} else {
|
406 |
+
if ( $this->get_type() === 'plugin' ) {
|
407 |
+
$versions = $this->get_plugin_versions();
|
408 |
+
}
|
409 |
+
if ( $this->get_type() === 'theme' ) {
|
410 |
+
$versions = $this->get_theme_versions();
|
411 |
+
}
|
412 |
}
|
413 |
set_transient( $cache_key, $versions, MONTH_IN_SECONDS );
|
414 |
} else {
|
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget-dashboard-blog.php
CHANGED
@@ -110,142 +110,156 @@ if ( ! class_exists( 'ThemeIsle_SDK_Widget_Dashboard_Blog' ) ) :
|
|
110 |
$this->setup_feeds();
|
111 |
?>
|
112 |
<style type="text/css">
|
113 |
-
#themeisle ul {
|
114 |
-
margin-bottom: 0px;
|
115 |
-
}
|
116 |
-
|
117 |
#themeisle ul li.ti-dw-recommend-item {
|
118 |
-
|
119 |
padding-left: 7px;
|
120 |
border-top: 1px solid #eee;
|
121 |
-
|
122 |
margin-bottom: 0px;
|
123 |
padding-top: 6px;
|
124 |
}
|
125 |
-
|
126 |
#themeisle h2.hndle {
|
127 |
-
background-image: url('data:image/
|
128 |
background-repeat: no-repeat;
|
129 |
-
background-position:
|
130 |
-
background-size:
|
131 |
}
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
display: flex;
|
135 |
align-items: center;
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
-
|
138 |
-
|
139 |
-
float: left;
|
140 |
-
width: 89.9%;
|
141 |
}
|
142 |
-
|
143 |
-
|
144 |
-
width: 100%;
|
145 |
-
letter-spacing: 3px;
|
146 |
-
display: block;
|
147 |
}
|
148 |
-
|
149 |
.ti-dw-feed-item .ti-dw-month-container {
|
150 |
-
|
151 |
-
width: 100%;
|
152 |
-
display: block;
|
153 |
-
font-weight: 600;
|
154 |
-
padding: 0px;
|
155 |
-
margin-top: -6px;
|
156 |
text-transform: uppercase;
|
157 |
font-size: 10px;
|
158 |
letter-spacing: 1px;
|
|
|
159 |
}
|
160 |
-
|
161 |
.ti-dw-feed-item .ti-dw-date-container {
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
|
|
166 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
-
|
169 |
.ti-dw-recommend-item span {
|
170 |
color: #72777c;
|
171 |
}
|
172 |
-
|
173 |
.ti-dw-powered-by {
|
174 |
-
font-
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
|
|
|
179 |
</style>
|
180 |
-
<ul>
|
181 |
<?php
|
182 |
foreach ( $this->items as $item ) {
|
183 |
?>
|
184 |
-
<li class="ti-dw-feed-item"
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
|
|
198 |
</li>
|
199 |
<?php
|
200 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
|
202 |
-
|
203 |
-
if ( is_array( $recommend ) && ! empty( $recommend ) ) {
|
204 |
|
205 |
-
$type = $recommend['type'];
|
206 |
-
if ( ( $type == 'theme' && current_user_can( 'install_themes' ) ) || ( $type == 'plugin' && current_user_can( 'install_plugins' ) ) ) {
|
207 |
-
add_thickbox();
|
208 |
$url = add_query_arg(
|
209 |
array(
|
210 |
-
'
|
211 |
-
|
|
|
212 |
);
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
array(
|
218 |
-
'tab' => 'plugin-information',
|
219 |
-
'plugin' => $recommend['slug'],
|
220 |
-
), network_admin_url( 'plugin-install.php' )
|
221 |
-
);
|
222 |
-
}
|
223 |
-
?>
|
224 |
-
<li class="ti-dw-recommend-item ">
|
225 |
<span class="ti-dw-recommend"><?php echo apply_filters( 'themeisle_sdk_dashboard_popular_label', sprintf( 'Popular %s', ucwords( $type ) ) ); ?>
|
226 |
: </span>
|
227 |
-
<?php
|
228 |
-
echo trim(
|
229 |
-
str_replace(
|
230 |
-
array(
|
231 |
-
'lite',
|
232 |
-
'Lite',
|
233 |
-
), '', $recommend['name']
|
234 |
-
)
|
235 |
-
);
|
236 |
-
?>
|
237 |
-
(<a class="thickbox open-plugin-details-modal"
|
238 |
-
href="<?php echo $url . '&TB_iframe=true&width=600&height=500'; ?>"><?php echo apply_filters( 'themeisle_sdk_dashboard_install_label', 'Install' ); ?></a>)
|
239 |
-
</li>
|
240 |
-
<li class="ti-dw-powered-by">
|
241 |
-
Powered by <?php echo esc_attr( $this->product->get_friendly_name() ); ?>
|
242 |
-
</li>
|
243 |
-
|
244 |
<?php
|
245 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
}
|
247 |
-
|
248 |
-
|
249 |
|
250 |
<?php
|
251 |
|
110 |
$this->setup_feeds();
|
111 |
?>
|
112 |
<style type="text/css">
|
|
|
|
|
|
|
|
|
113 |
#themeisle ul li.ti-dw-recommend-item {
|
|
|
114 |
padding-left: 7px;
|
115 |
border-top: 1px solid #eee;
|
|
|
116 |
margin-bottom: 0px;
|
117 |
padding-top: 6px;
|
118 |
}
|
|
|
119 |
#themeisle h2.hndle {
|
120 |
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3Ny4xMiA3Ny4xMiI+PHRpdGxlPkFzc2V0IDM8L3RpdGxlPjxwYXRoIGQ9Ik03NS43Niw0Ny42cS0xLjUsNi40Ni00LjA3LDkuMjZBMzYuMjIsMzYuMjIsMCwwLDEsNjMuMjYsNjNhNTEsNTEsMCwwLDEtOS43OSw0LjZoLS4xNXY0LjgyQTQuNjYsNC42NiwwLDAsMSw1Miw3NS43Niw0LjA3LDQuMDcsMCwwLDEsNDksNzcuMTJhNCw0LDAsMCwxLTIuMTgtLjYxQTQuOTQsNC45NCwwLDAsMSw0NS4xOSw3NWE0LjQyLDQuNDIsMCwwLDEtNy41NCwwLDQuOTQsNC45NCwwLDAsMS0xLjU4LDEuNSwzLjc1LDMuNzUsMCwwLDEtMiwuNjFBNC4yNyw0LjI3LDAsMCwxLDMwLjI3LDc1YTQuOTQsNC45NCwwLDAsMS0xLjU4LDEuNSw0LDQsMCwwLDEtMi4xOC42MSwzLjkzLDMuOTMsMCwwLDEtMy4xNi0xLjQzLDUuMyw1LjMsMCwwLDEtMS4yMS0zLjU0LDEzLjgxLDEzLjgxLDAsMCwxLTguNTgsMywxMy4yMywxMy4yMywwLDAsMS05LTMuNDdBMTguMjEsMTguMjEsMCwwLDAsOSw3MC43OWExNC4yNiwxNC4yNiwwLDAsMS03LjgzLTUuNDIsMTYuMTIsMTYuMTIsMCwwLDAsNS4xOS4wNywxMi44OSwxMi44OSwwLDAsMCw0LjktMS43M1EzLjE1LDU1LjQzLDEuMDUsNTAuNDZhMTgsMTgsMCwwLDEtMS02LjkzQTQwLDQwLDAsMCwxLDEuMjEsMzQsMjYuNTksMjYuNTksMCwwLDEsNS4yNywyNC4xUTguNDQsMTkuNDMsMTMsMTkuNDNhMy40MSwzLjQxLDAsMCwxLDMuNDcsMi4yNmMuNi0uOCwxLjItMS41NiwxLjgxLTIuMjZsLjQ1LS40NS43NS0uNzUsMS4wNS0xLjgxYTM1LjIsMzUuMiwwLDAsMSwyLjExLTMuMzIsMjguNTcsMjguNTcsMCwwLDEsOS4xMi03LjY4QTIzLjQsMjMuNCwwLDAsMSw0Mi45MywyLjU2YTIyLjIyLDIyLjIyLDAsMCwxLDIuNzEuMTVBOC4xNiw4LjE2LDAsMCwxLDUxLjgxLDAsOC42OSw4LjY5LDAsMCwxLDU4LDIuNDFhMS41MSwxLjUxLDAsMCwxLC4xNS42OGMwLC4yNS0uNTUuOTMtMS42NiwybC0uMy4zYTkuNjksOS42OSwwLDAsMSwxLjU4LjgzYy41NS4zNS44My42NS44My45YTEuNjIsMS42MiwwLDAsMS0uNiwxbC0uMTUuMTVxNi43OCw2LDguNTgsMTYuMjdBMy4zLDMuMywwLDAsMSw2OSwyMy4zNWE2LjQ4LDYuNDgsMCwwLDEsNC4yMiwyLjFxMy45MiwzLjMyLDMuOTIsMTEuOUE0Mi4wNSw0Mi4wNSwwLDAsMSw3NS43Niw0Ny42Wk01My42Miw1NC4wN2EyNCwyNCwwLDAsMS0xNCw0LjUyQTIxLjQxLDIxLjQxLDAsMCwxLDI3LDU0LjY3LDI0LjI4LDI0LjI4LDAsMCwxLDE4LjUzLDQ1YTI5LDI5LDAsMCwxLTMtMTMsMzEuNzgsMzEuNzgsMCwwLDEsLjkxLTcuNTNBMzIuMTcsMzIuMTcsMCwwLDAsMTEuOSw0MS4yN2EzMy41LDMzLjUsMCwwLDAsMi43OSwxMy40LDI5LjEsMjkuMSwwLDAsMCw3LjksMTAuODUsNC42OCw0LjY4LDAsMCwxLDEuNjYtMS44OCw0LjE3LDQuMTcsMCwwLDEsNC40NC0uMDgsNC41LDQuNSwwLDAsMSwxLjU4LDEuNjZBNC4yLDQuMiwwLDAsMSwzNCw2M2EzLjgzLDMuODMsMCwwLDEsMiwuNiw0LjUsNC41LDAsMCwxLDEuNTgsMS42Niw0LjI3LDQuMjcsMCwwLDEsNy41NCwwLDQuNSw0LjUsMCwwLDEsMS41OC0xLjY2LDQuMTcsNC4xNywwLDAsMSw0LjQ0LjA4LDMuODYsMy44NiwwLDAsMSwxLjUxLDEuNzMsMzAuMTcsMzAuMTcsMCwwLDAsNy42OC05Ljk0LDMxLjE4LDMxLjE4LDAsMCwwLDMuMTYtMTIuMzVBMjguMzksMjguMzksMCwwLDEsNTMuNjIsNTQuMDdaTTI4Ljc3LDY1LjM3YTMuMSwzLjEsMCwwLDAtNC4zNywwLDMuMDYsMy4wNiwwLDAsMC0uOSwyLjI2djQuODJhMy4zMiwzLjMyLDAsMCwwLC45LDIuMzMsMi45MywyLjkzLDAsMCwwLDQuMzcsMCwzLjMyLDMuMzIsMCwwLDAsLjktMi4zM1Y2Ny42M0EzLjA2LDMuMDYsMCwwLDAsMjguNzcsNjUuMzdabS45LTQ4YTQuMjQsNC4yNCwwLDAsMCwzLjQ3LDEuNzMsNC40NSw0LjQ1LDAsMCwwLDMuNTQtMS43Myw2LDYsMCwwLDAsMS40My0zLjkyLDUuNyw1LjcsMCwwLDAtMS40My0zLjg0QTQuNTMsNC41MywwLDAsMCwzMy4xNCw4YTQuMzEsNC4zMSwwLDAsMC0zLjQ3LDEuNjYsNS43OSw1Ljc5LDAsMCwwLTEuMzUsMy43N0E2LjMzLDYuMzMsMCwwLDAsMjkuNjcsMTcuNFptNi40OCw0OGEzLjEsMy4xLDAsMCwwLTQuMzcsMCwzLjA2LDMuMDYsMCwwLDAtLjksMi4yNnY0LjgyYTMuMzIsMy4zMiwwLDAsMCwuOSwyLjMzLDIuOTMsMi45MywwLDAsMCw0LjM3LDAsMy4zMiwzLjMyLDAsMCwwLC45LTIuMzNWNjcuNjNBMy4wNiwzLjA2LDAsMCwwLDM2LjE1LDY1LjM3Wm0tNC4wNy01NC4zYTIuMzcsMi4zNywwLDAsMSwyLTEsMi4xNywyLjE3LDAsMCwxLDEuODgsMSw0LjEsNC4xLDAsMCwxLDAsNC41MiwyLjE3LDIuMTcsMCwwLDEtMS44OCwxLDIuMzcsMi4zNywwLDAsMS0yLTEsMy43MiwzLjcyLDAsMCwxLS43NS0yLjM0QTMuNDksMy40OSwwLDAsMSwzMi4wOCwxMS4wN1ptNSw5LjQxYTIwLjYxLDIwLjYxLDAsMCwwLTMuNTQsMTIuMjgsMTcuMTUsMTcuMTUsMCwwLDAsNC4wNywxMSwxMi40MywxMi40MywwLDAsMCw5Ljg3LDQuNDUsMTUuMywxNS4zLDAsMCwwLDktMywxMywxMywwLDAsMCwuNi0zLjMycTAtMy4zMi0zLjE2LTMuMzFhOC41OCw4LjU4LDAsMCwwLTIsLjNxLTcuODMsMS41LTExLjU5LS4zLTQuNTMtMi4xMi00LjUyLTkuMzRBMzcuOTIsMzcuOTIsMCwwLDEsMzcuMDUsMjAuNDhaTTYxLjQ1LDE3QTEyLjg0LDEyLjg0LDAsMCwwLDUxLjIxLDEyLjJhMTUuMTEsMTUuMTEsMCwwLDAtNi40LDEuNDMsMTcuODMsMTcuODMsMCwwLDAtNS41LDRxLTYuMTgsMjAuNjQsNi4xOCwyMC42NEEyNC43NSwyNC43NSwwLDAsMCw0OSwzNy44MWEzOC45MiwzOC45MiwwLDAsMSw0LjgyLS40NmMxLjgxLDAsMy4wNi40NiwzLjc3LDEuMzZxMS4zNSwxLjUuNzUsNS4xMmEyMS43MiwyMS43MiwwLDAsMCw1LTcuMTVBMjEuMzgsMjEuMzgsMCwwLDAsNjUuMDcsMjgsMTcuNDQsMTcuNDQsMCwwLDAsNjEuNDUsMTdaTTQzLjYsNjUuMzdhMi43MiwyLjcyLDAsMCwwLTIuMS0uOSwzLDMsMCwwLDAtMi4xOS45LDMuMDYsMy4wNiwwLDAsMC0uOSwyLjI2djQuODJhMy4zMiwzLjMyLDAsMCwwLC45LDIuMzMsMi44NCwyLjg0LDAsMCwwLDIuMTksMSwyLjYxLDIuNjEsMCwwLDAsMi4xLTEsMy40NSwzLjQ1LDAsMCwwLC44My0yLjMzVjY3LjYzQTMuMTcsMy4xNywwLDAsMCw0My42LDY1LjM3Wm03LjQ2LDBhMywzLDAsMCwwLTIuMTgtLjksMi43MywyLjczLDAsMCwwLTIuMTEuOSwzLjE3LDMuMTcsMCwwLDAtLjgzLDIuMjZ2NC44MmEzLjQ1LDMuNDUsMCwwLDAsLjgzLDIuMzMsMi42MSwyLjYxLDAsMCwwLDIuMTEsMSwyLjgzLDIuODMsMCwwLDAsMi4xOC0xLDMuMzIsMy4zMiwwLDAsMCwuOS0yLjMzVjY3LjYzQTMuMDYsMy4wNiwwLDAsMCw1MS4wNiw2NS4zN1oiLz48L3N2Zz4=');
|
121 |
background-repeat: no-repeat;
|
122 |
+
background-position: 92% 50%;
|
123 |
+
background-size: 30px;
|
124 |
}
|
125 |
+
#themeisle .inside {
|
126 |
+
padding: 0;
|
127 |
+
}
|
128 |
+
.ti-feed-list {
|
129 |
+
padding: 0 12px 5px;
|
130 |
+
margin-bottom: 10px;
|
131 |
+
border-bottom: 1px solid #eee;
|
132 |
+
}
|
133 |
+
.ti-dw-feed-item a {
|
134 |
display: flex;
|
135 |
align-items: center;
|
136 |
+
margin-bottom: 5px;
|
137 |
+
padding: 5px;
|
138 |
+
transition: .2s ease;
|
139 |
+
border-radius: 3px;
|
140 |
}
|
141 |
+
.ti-dw-feed-item a:hover {
|
142 |
+
background-color: #f8f8f8;
|
|
|
|
|
143 |
}
|
144 |
+
.ti-dw-feed-item a:hover .ti-dw-date-container {
|
145 |
+
opacity: .9;
|
|
|
|
|
|
|
146 |
}
|
|
|
147 |
.ti-dw-feed-item .ti-dw-month-container {
|
148 |
+
margin-top: -5px;
|
|
|
|
|
|
|
|
|
|
|
149 |
text-transform: uppercase;
|
150 |
font-size: 10px;
|
151 |
letter-spacing: 1px;
|
152 |
+
font-weight: 700;
|
153 |
}
|
|
|
154 |
.ti-dw-feed-item .ti-dw-date-container {
|
155 |
+
border-radius: 3px;
|
156 |
+
transition: .2s ease;
|
157 |
+
min-height: 35px;
|
158 |
+
margin-right: 5px;
|
159 |
+
min-width: 35px;
|
160 |
text-align: center;
|
161 |
+
border: 1px solid #2a6f97;
|
162 |
+
color: #fff;
|
163 |
+
background: #2ea2cc;
|
164 |
+
display: flex;
|
165 |
+
flex-direction: column;
|
166 |
+
justify-content: center;
|
167 |
+
}
|
168 |
+
.ti-dw-footer {
|
169 |
+
padding: 0 12px 5px;
|
170 |
+
text-align: center;
|
171 |
+
}
|
172 |
+
.ti-dw-recommend-item {
|
173 |
+
display: block;
|
174 |
}
|
|
|
175 |
.ti-dw-recommend-item span {
|
176 |
color: #72777c;
|
177 |
}
|
|
|
178 |
.ti-dw-powered-by {
|
179 |
+
font-size: 11px;
|
180 |
+
margin-top: 3px;
|
181 |
+
display: block;
|
182 |
+
color: #72777c;
|
183 |
+
}
|
184 |
+
.ti-dw-powered-by span {
|
185 |
+
font-weight: 600;
|
186 |
}
|
187 |
|
188 |
+
|
189 |
</style>
|
190 |
+
<ul class="ti-feed-list">
|
191 |
<?php
|
192 |
foreach ( $this->items as $item ) {
|
193 |
?>
|
194 |
+
<li class="ti-dw-feed-item">
|
195 |
+
<a href="
|
196 |
+
<?php
|
197 |
+
echo add_query_arg(
|
198 |
+
array(
|
199 |
+
'utm_campaign' => 'feed',
|
200 |
+
'utm_medium' => 'dashboard_widget',
|
201 |
+
), $item['link']
|
202 |
+
);
|
203 |
+
?>
|
204 |
+
" target="_blank">
|
205 |
+
<span class="ti-dw-date-container"><span
|
206 |
+
class="ti-dw-day-container"><?php echo date( 'd', $item['date'] ); ?></span> <span
|
207 |
+
class="ti-dw-month-container"><?php echo substr( date( 'M', $item['date'] ), 0, 3 ); ?></span></span><?php echo $item['title']; ?>
|
208 |
+
</a>
|
209 |
</li>
|
210 |
<?php
|
211 |
}
|
212 |
+
?>
|
213 |
+
</ul>
|
214 |
+
<?php
|
215 |
+
$recommend = apply_filters( 'themeisle_sdk_recommend_plugin_or_theme', array() );
|
216 |
+
if ( is_array( $recommend ) && ! empty( $recommend ) ) {
|
217 |
+
|
218 |
+
$type = $recommend['type'];
|
219 |
+
if ( ( $type == 'theme' && current_user_can( 'install_themes' ) ) || ( $type == 'plugin' && current_user_can( 'install_plugins' ) ) ) {
|
220 |
+
add_thickbox();
|
221 |
+
$url = add_query_arg(
|
222 |
+
array(
|
223 |
+
'theme' => $recommend['slug'],
|
224 |
+
), network_admin_url( 'theme-install.php' )
|
225 |
+
);
|
226 |
|
227 |
+
if ( 'plugin' === $type ) {
|
|
|
228 |
|
|
|
|
|
|
|
229 |
$url = add_query_arg(
|
230 |
array(
|
231 |
+
'tab' => 'plugin-information',
|
232 |
+
'plugin' => $recommend['slug'],
|
233 |
+
), network_admin_url( 'plugin-install.php' )
|
234 |
);
|
235 |
+
}
|
236 |
+
?>
|
237 |
+
<div class="ti-dw-footer">
|
238 |
+
<span class="ti-dw-recommend-item ">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
<span class="ti-dw-recommend"><?php echo apply_filters( 'themeisle_sdk_dashboard_popular_label', sprintf( 'Popular %s', ucwords( $type ) ) ); ?>
|
240 |
: </span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
<?php
|
242 |
+
echo trim(
|
243 |
+
str_replace(
|
244 |
+
array(
|
245 |
+
'lite',
|
246 |
+
'Lite',
|
247 |
+
), '', $recommend['name']
|
248 |
+
)
|
249 |
+
);
|
250 |
+
?>
|
251 |
+
(<a class="thickbox open-plugin-details-modal"
|
252 |
+
href="<?php echo $url . '&TB_iframe=true&width=600&height=500'; ?>"><?php echo apply_filters( 'themeisle_sdk_dashboard_install_label', 'Install' ); ?></a>)
|
253 |
+
</span>
|
254 |
+
<span class="ti-dw-powered-by">
|
255 |
+
Powered by <span><?php echo esc_attr( $this->product->get_friendly_name() ); ?></span>
|
256 |
+
</span>
|
257 |
+
</div>
|
258 |
+
|
259 |
+
<?php
|
260 |
}
|
261 |
+
}
|
262 |
+
?>
|
263 |
|
264 |
<?php
|
265 |
|
vendor/codeinwp/themeisle-sdk/load.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
*/
|
12 |
|
13 |
// Current SDK version and path.
|
14 |
-
$themeisle_sdk_version = '2.1
|
15 |
$themeisle_sdk_path = dirname( __FILE__ );
|
16 |
|
17 |
global $themeisle_sdk_max_version;
|
11 |
*/
|
12 |
|
13 |
// Current SDK version and path.
|
14 |
+
$themeisle_sdk_version = '2.2.1';
|
15 |
$themeisle_sdk_path = dirname( __FILE__ );
|
16 |
|
17 |
global $themeisle_sdk_max_version;
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit3a63382f86c4b7332a0b229aeb5f0f3e
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit3a63382f86c4b7332a0b229aeb5f0f3e
|
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
-
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
-
function
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit44640b86f352388a1de6f350c1f928e8
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit44640b86f352388a1de6f350c1f928e8', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit44640b86f352388a1de6f350c1f928e8', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
+
composerRequire44640b86f352388a1de6f350c1f928e8($fileIdentifier, $file);
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
+
function composerRequire44640b86f352388a1de6f350c1f928e8($fileIdentifier, $file)
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
vendor/composer/installed.json
CHANGED
@@ -6,15 +6,15 @@
|
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Codeinwp/themeisle-sdk.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
-
"time": "2018-
|
18 |
"type": "library",
|
19 |
"installation-source": "dist",
|
20 |
"autoload": {
|
@@ -119,18 +119,18 @@
|
|
119 |
"source": {
|
120 |
"type": "git",
|
121 |
"url": "https://github.com/Codeinwp/templates-directory.git",
|
122 |
-
"reference": "
|
123 |
},
|
124 |
"dist": {
|
125 |
"type": "zip",
|
126 |
-
"url": "https://api.github.com/repos/Codeinwp/templates-directory/zipball/
|
127 |
-
"reference": "
|
128 |
"shasum": ""
|
129 |
},
|
130 |
"require": {
|
131 |
"codeinwp/full-width-page-templates": "master"
|
132 |
},
|
133 |
-
"time": "2018-
|
134 |
"type": "library",
|
135 |
"installation-source": "dist",
|
136 |
"autoload": {
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Codeinwp/themeisle-sdk.git",
|
9 |
+
"reference": "b48ed57f8024911d418f34b8aaec48a32dfcf75f"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/b48ed57f8024911d418f34b8aaec48a32dfcf75f",
|
14 |
+
"reference": "b48ed57f8024911d418f34b8aaec48a32dfcf75f",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
+
"time": "2018-04-12 13:49:56",
|
18 |
"type": "library",
|
19 |
"installation-source": "dist",
|
20 |
"autoload": {
|
119 |
"source": {
|
120 |
"type": "git",
|
121 |
"url": "https://github.com/Codeinwp/templates-directory.git",
|
122 |
+
"reference": "287d53c39ca4718f76ccd6a576a0cd43c01f2e58"
|
123 |
},
|
124 |
"dist": {
|
125 |
"type": "zip",
|
126 |
+
"url": "https://api.github.com/repos/Codeinwp/templates-directory/zipball/287d53c39ca4718f76ccd6a576a0cd43c01f2e58",
|
127 |
+
"reference": "287d53c39ca4718f76ccd6a576a0cd43c01f2e58",
|
128 |
"shasum": ""
|
129 |
},
|
130 |
"require": {
|
131 |
"codeinwp/full-width-page-templates": "master"
|
132 |
},
|
133 |
+
"time": "2018-04-08 10:58:31",
|
134 |
"type": "library",
|
135 |
"installation-source": "dist",
|
136 |
"autoload": {
|