Version Description
Download this release
Release Info
Code changes from version 1.9.2 to 1.9.3
- admin/admin-init.php +68 -66
- admin/assets/css/htmega_admin.css +400 -391
- admin/assets/images/warning-icon.png +0 -0
- admin/assets/js/admin.js +19 -0
- admin/assets/js/elementors_template_library.js +2 -3
- admin/assets/js/install_manager.js +0 -1
- admin/assets/js/template_library_manager.js +0 -1
- admin/include/admin-setting.php +106 -1
- admin/include/class.htmega-elementor-template-library.php +9 -19
- admin/include/class.library-source.php +3 -93
- admin/include/template-library.php +23 -2
- admin/include/templates/library/templates.php +4 -4
- assets/css/htmega-elementor-editor.css +13 -13
- assets/css/htmega-widgets.css +3 -1
- assets/js/single_product_ajax_add_to_cart.js +0 -1
- extensions/ht-builder/widgets/bl_nav_menu.php +3 -4
- extensions/ht-builder/widgets/bl_page_title.php +5 -5
- extensions/ht-builder/widgets/bl_post_archive.php +35 -35
- extensions/ht-builder/widgets/bl_post_archive_title.php +5 -5
- extensions/ht-builder/widgets/bl_post_content.php +11 -5
- extensions/ht-builder/widgets/bl_post_excerpt.php +5 -5
- extensions/ht-builder/widgets/bl_post_featured_image.php +5 -5
- extensions/ht-builder/widgets/bl_post_meta_info.php +12 -6
- extensions/ht-builder/widgets/bl_post_search_form.php +21 -4
- extensions/ht-builder/widgets/bl_post_title.php +140 -143
- extensions/ht-builder/widgets/bl_site_logo.php +4 -4
- extensions/ht-builder/widgets/bl_site_title.php +178 -178
- htmega_addons_elementor.php +4 -4
- includes/class.assests.php +1 -1
- includes/class.htmega.php +24 -4
- includes/widgets/htmega_carousel.php +2 -1
- includes/widgets/htmega_singlepost.php +57 -14
- readme.txt +13 -3
admin/admin-init.php
CHANGED
@@ -1,67 +1,69 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
4 |
-
|
5 |
-
class HTMega_Admin_Setting{
|
6 |
-
|
7 |
-
public function __construct(){
|
8 |
-
add_action( 'admin_enqueue_scripts', [ $this, 'htmega_enqueue_admin_scripts' ] );
|
9 |
-
$this->HTMega_Admin_Settings_page();
|
10 |
-
}
|
11 |
-
|
12 |
-
/*
|
13 |
-
* Setting Page
|
14 |
-
*/
|
15 |
-
public function HTMega_Admin_Settings_page() {
|
16 |
-
require_once('include/class.settings-api.php');
|
17 |
-
require_once('include/template-library.php');
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
require_once
|
22 |
-
}
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
require_once(
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
require_once(
|
39 |
-
}
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
}
|
66 |
-
|
|
|
|
|
67 |
new HTMega_Admin_Setting();
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
4 |
+
|
5 |
+
class HTMega_Admin_Setting{
|
6 |
+
|
7 |
+
public function __construct(){
|
8 |
+
add_action( 'admin_enqueue_scripts', [ $this, 'htmega_enqueue_admin_scripts' ] );
|
9 |
+
$this->HTMega_Admin_Settings_page();
|
10 |
+
}
|
11 |
+
|
12 |
+
/*
|
13 |
+
* Setting Page
|
14 |
+
*/
|
15 |
+
public function HTMega_Admin_Settings_page() {
|
16 |
+
require_once('include/class.settings-api.php');
|
17 |
+
require_once('include/template-library.php');
|
18 |
+
require_once ('include/class.htmega-elementor-template-library.php' );
|
19 |
+
require_once ('include/class.library-source.php' );
|
20 |
+
if( is_plugin_active('htmega-pro/htmega_pro.php') ){
|
21 |
+
require_once HTMEGA_ADDONS_PL_PATH_PRO.'includes/admin/admin-setting.php';
|
22 |
+
}else{
|
23 |
+
require_once( 'include/admin-setting.php' );
|
24 |
+
}
|
25 |
+
|
26 |
+
// HT Builder
|
27 |
+
if( htmega_get_option( 'themebuilder', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
28 |
+
if( is_plugin_active('htmega-pro/htmega_pro.php') ){
|
29 |
+
require_once( HTMEGA_ADDONS_PL_PATH_PRO.'extensions/ht-builder/admin/setting.php' );
|
30 |
+
}else{
|
31 |
+
require_once( HTMEGA_ADDONS_PL_PATH.'extensions/ht-builder/admin/setting.php' );
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
// Sale Notification
|
36 |
+
if( htmega_get_option( 'salenotification', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
37 |
+
if( is_plugin_active('htmega-pro/htmega_pro.php') ){
|
38 |
+
require_once( HTMEGA_ADDONS_PL_PATH_PRO.'extensions/wc-sales-notification/admin/setting.php' );
|
39 |
+
}else{
|
40 |
+
require_once( HTMEGA_ADDONS_PL_PATH.'extensions/wc-sales-notification/admin/setting.php' );
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
// HT Mega Menu
|
45 |
+
if( htmega_get_option( 'megamenubuilder', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
46 |
+
require_once( HTMEGA_ADDONS_PL_PATH.'extensions/ht-menu/admin/setting.php' );
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
/*
|
52 |
+
* Enqueue admin scripts
|
53 |
+
*/
|
54 |
+
public function htmega_enqueue_admin_scripts( $hook ){
|
55 |
+
if( $hook === 'htmega-addons_page_htmega_addons_templates_library' || $hook === 'htmega-addons_page_htmega_addons_options' || $hook === 'htmega-addons_page_htmeganotification' || $hook === 'htmega-addons_page_htmegamenubl' ){
|
56 |
+
// wp core styles
|
57 |
+
wp_enqueue_style( 'wp-jquery-ui-dialog' );
|
58 |
+
wp_enqueue_style( 'htmega-admin' );
|
59 |
+
|
60 |
+
// wp core scripts
|
61 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
62 |
+
wp_enqueue_script( 'htmega-admin' );
|
63 |
+
}
|
64 |
+
|
65 |
+
}
|
66 |
+
|
67 |
+
}
|
68 |
+
|
69 |
new HTMega_Admin_Setting();
|
admin/assets/css/htmega_admin.css
CHANGED
@@ -1,391 +1,400 @@
|
|
1 |
-
.metabox-holder .htmega_label_none th{
|
2 |
-
display: none;
|
3 |
-
}
|
4 |
-
#htmega_element_tabs h2, #htmega_thirdparty_element_tabs h2{
|
5 |
-
display: none;
|
6 |
-
}
|
7 |
-
#htmega_element_tabs, #htmega_thirdparty_element_tabs{
|
8 |
-
margin-top: 15px;
|
9 |
-
}
|
10 |
-
|
11 |
-
#htmega_element_tabs table tr, #htmega_thirdparty_element_tabs table tr, #htmega_element_pro_tabs table tr, #htmega_advance_element_tabs table tr, #htmega_themebuilder_element_tabs table tr {
|
12 |
-
border: 1px solid #ddd;
|
13 |
-
float: left;
|
14 |
-
margin-bottom: 5px;
|
15 |
-
margin-right: 5px;
|
16 |
-
padding: 0 20px;
|
17 |
-
}
|
18 |
-
|
19 |
-
#htmega_element_tabs table tr td, #htmega_element_tabs table tr th, #htmega_thirdparty_element_tabs table tr td,#htmega_thirdparty_element_tabs table tr th,#htmega_element_pro_tabs table tr td, #htmega_element_pro_tabs table tr th{
|
20 |
-
padding-right: 0;
|
21 |
-
}
|
22 |
-
|
23 |
-
#htmega_element_tabs table tr.htmega_title_row,#htmega_thirdparty_element_tabs table tr.htmega_title_row,#htmega_element_pro_tabs table tr.htmega_title_row {
|
24 |
-
border: medium none;
|
25 |
-
display: block;
|
26 |
-
width: 100%;
|
27 |
-
}
|
28 |
-
|
29 |
-
#htmega_element_tabs table tr.htmega_title_row h2,#htmega_thirdparty_element_tabs table tr.htmega_title_row h2,#htmega_element_pro_tabs table tr.htmega_title_row h2{
|
30 |
-
margin: 0;
|
31 |
-
}
|
32 |
-
|
33 |
-
#htmega_element_tabs table tr.htmega_title_row td,#htmega_thirdparty_element_tabs table tr.htmega_title_row td,#htmega_element_pro_tabs table tr.htmega_title_row td {
|
34 |
-
padding: 0;
|
35 |
-
}
|
36 |
-
|
37 |
-
/* Check box */
|
38 |
-
.htmega_element_checkbox label {
|
39 |
-
padding: 2px;
|
40 |
-
width: 43px;
|
41 |
-
height: 15px;
|
42 |
-
background-color: #2c3e50;
|
43 |
-
border-radius: 60px;
|
44 |
-
-webkit-transition: background 0.2s;
|
45 |
-
transition: background 0.2s;
|
46 |
-
position: relative;
|
47 |
-
text-indent: -99999px;
|
48 |
-
}
|
49 |
-
.htmega_element_checkbox label::before {
|
50 |
-
content: "";
|
51 |
-
position: absolute;
|
52 |
-
top: 2px;
|
53 |
-
left: 2px;
|
54 |
-
bottom: 2px;
|
55 |
-
right: 2px;
|
56 |
-
background-color: #ffffff;
|
57 |
-
border-radius: 10px;
|
58 |
-
-webkit-transition: background 0.2s;
|
59 |
-
transition: background 0.2s;
|
60 |
-
}
|
61 |
-
.htmega_element_checkbox label::after {
|
62 |
-
content: "";
|
63 |
-
position: absolute;
|
64 |
-
top: 3px;
|
65 |
-
left: 3px;
|
66 |
-
bottom: 3px;
|
67 |
-
width: 18px;
|
68 |
-
background-color: #2c3e50;
|
69 |
-
border-radius: 10px;
|
70 |
-
-webkit-transition: margin 0.2s, background 0.2s;
|
71 |
-
transition: margin 0.2s, background 0.2s;
|
72 |
-
}
|
73 |
-
.htmega_element_checkbox input {
|
74 |
-
opacity: 0;
|
75 |
-
width: 0;
|
76 |
-
height: 0;
|
77 |
-
position: absolute;
|
78 |
-
}
|
79 |
-
.htmega_element_checkbox input:checked + label {
|
80 |
-
background-color: #22b9ff;
|
81 |
-
}
|
82 |
-
.htmega_element_checkbox input:checked + label::after {
|
83 |
-
background-color: #22b9ff;
|
84 |
-
margin-left: 23px;
|
85 |
-
}
|
86 |
-
|
87 |
-
/*
|
88 |
-
* Element Toggler
|
89 |
-
*/
|
90 |
-
.htmega-open-element-toggle {
|
91 |
-
display: inline-block;
|
92 |
-
padding: 7px 15px;
|
93 |
-
background: #428bfa none repeat scroll 0 0;
|
94 |
-
color: #fff;
|
95 |
-
margin-bottom: 10px;
|
96 |
-
border-radius: 3px;
|
97 |
-
cursor: pointer;
|
98 |
-
transition: 0.4s;
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
text-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
ul#menu-to-edit li.menu-item-depth-
|
212 |
-
ul#menu-to-edit li.menu-item-depth-
|
213 |
-
ul#menu-to-edit li.menu-item-depth-
|
214 |
-
ul#menu-to-edit li.menu-item-depth-
|
215 |
-
ul#menu-to-edit li.menu-item-depth-2 .field-
|
216 |
-
ul#menu-to-edit li.menu-item-depth-2 .field-
|
217 |
-
ul#menu-to-edit li.menu-item-depth-2 .field-
|
218 |
-
ul#menu-to-edit li.menu-item-depth-
|
219 |
-
ul#menu-to-edit li.menu-item-depth-1 .field-
|
220 |
-
ul#menu-to-edit li.menu-item-depth-1 .
|
221 |
-
ul#menu-to-edit li.menu-item-depth-1 .
|
222 |
-
ul#menu-to-edit li.menu-item-depth-1 .field-
|
223 |
-
ul#menu-to-edit li.menu-item-depth-
|
224 |
-
ul#menu-to-edit li.menu-item-depth-0 .
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
display: -
|
330 |
-
display:
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
-
|
335 |
-
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
-
|
347 |
-
|
348 |
-
|
349 |
-
width:
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
flex
|
356 |
-
-
|
357 |
-
|
358 |
-
|
359 |
-
width: 100%;
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
}
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.metabox-holder .htmega_label_none th{
|
2 |
+
display: none;
|
3 |
+
}
|
4 |
+
#htmega_element_tabs h2, #htmega_thirdparty_element_tabs h2{
|
5 |
+
display: none;
|
6 |
+
}
|
7 |
+
#htmega_element_tabs, #htmega_thirdparty_element_tabs{
|
8 |
+
margin-top: 15px;
|
9 |
+
}
|
10 |
+
|
11 |
+
#htmega_element_tabs table tr, #htmega_thirdparty_element_tabs table tr, #htmega_element_pro_tabs table tr, #htmega_advance_element_tabs table tr, #htmega_themebuilder_element_tabs table tr {
|
12 |
+
border: 1px solid #ddd;
|
13 |
+
float: left;
|
14 |
+
margin-bottom: 5px;
|
15 |
+
margin-right: 5px;
|
16 |
+
padding: 0 20px;
|
17 |
+
}
|
18 |
+
|
19 |
+
#htmega_element_tabs table tr td, #htmega_element_tabs table tr th, #htmega_thirdparty_element_tabs table tr td,#htmega_thirdparty_element_tabs table tr th,#htmega_element_pro_tabs table tr td, #htmega_element_pro_tabs table tr th{
|
20 |
+
padding-right: 0;
|
21 |
+
}
|
22 |
+
|
23 |
+
#htmega_element_tabs table tr.htmega_title_row,#htmega_thirdparty_element_tabs table tr.htmega_title_row,#htmega_element_pro_tabs table tr.htmega_title_row {
|
24 |
+
border: medium none;
|
25 |
+
display: block;
|
26 |
+
width: 100%;
|
27 |
+
}
|
28 |
+
|
29 |
+
#htmega_element_tabs table tr.htmega_title_row h2,#htmega_thirdparty_element_tabs table tr.htmega_title_row h2,#htmega_element_pro_tabs table tr.htmega_title_row h2{
|
30 |
+
margin: 0;
|
31 |
+
}
|
32 |
+
|
33 |
+
#htmega_element_tabs table tr.htmega_title_row td,#htmega_thirdparty_element_tabs table tr.htmega_title_row td,#htmega_element_pro_tabs table tr.htmega_title_row td {
|
34 |
+
padding: 0;
|
35 |
+
}
|
36 |
+
|
37 |
+
/* Check box */
|
38 |
+
.htmega_element_checkbox label {
|
39 |
+
padding: 2px;
|
40 |
+
width: 43px;
|
41 |
+
height: 15px;
|
42 |
+
background-color: #2c3e50;
|
43 |
+
border-radius: 60px;
|
44 |
+
-webkit-transition: background 0.2s;
|
45 |
+
transition: background 0.2s;
|
46 |
+
position: relative;
|
47 |
+
text-indent: -99999px;
|
48 |
+
}
|
49 |
+
.htmega_element_checkbox label::before {
|
50 |
+
content: "";
|
51 |
+
position: absolute;
|
52 |
+
top: 2px;
|
53 |
+
left: 2px;
|
54 |
+
bottom: 2px;
|
55 |
+
right: 2px;
|
56 |
+
background-color: #ffffff;
|
57 |
+
border-radius: 10px;
|
58 |
+
-webkit-transition: background 0.2s;
|
59 |
+
transition: background 0.2s;
|
60 |
+
}
|
61 |
+
.htmega_element_checkbox label::after {
|
62 |
+
content: "";
|
63 |
+
position: absolute;
|
64 |
+
top: 3px;
|
65 |
+
left: 3px;
|
66 |
+
bottom: 3px;
|
67 |
+
width: 18px;
|
68 |
+
background-color: #2c3e50;
|
69 |
+
border-radius: 10px;
|
70 |
+
-webkit-transition: margin 0.2s, background 0.2s;
|
71 |
+
transition: margin 0.2s, background 0.2s;
|
72 |
+
}
|
73 |
+
.htmega_element_checkbox input {
|
74 |
+
opacity: 0;
|
75 |
+
width: 0;
|
76 |
+
height: 0;
|
77 |
+
position: absolute;
|
78 |
+
}
|
79 |
+
.htmega_element_checkbox input:checked + label {
|
80 |
+
background-color: #22b9ff;
|
81 |
+
}
|
82 |
+
.htmega_element_checkbox input:checked + label::after {
|
83 |
+
background-color: #22b9ff;
|
84 |
+
margin-left: 23px;
|
85 |
+
}
|
86 |
+
|
87 |
+
/*
|
88 |
+
* Element Toggler
|
89 |
+
*/
|
90 |
+
.htmega-open-element-toggle,.htmega-fb-clear-cache-btn {
|
91 |
+
display: inline-block;
|
92 |
+
padding: 7px 15px;
|
93 |
+
background: #428bfa none repeat scroll 0 0;
|
94 |
+
color: #fff;
|
95 |
+
margin-bottom: 10px;
|
96 |
+
border-radius: 3px;
|
97 |
+
cursor: pointer;
|
98 |
+
transition: 0.4s;
|
99 |
+
border: none;
|
100 |
+
}
|
101 |
+
.htmega-open-element-toggle:hover,.htmega-fb-clear-cache-btn:hover{
|
102 |
+
background: #2c3e50;
|
103 |
+
}
|
104 |
+
|
105 |
+
/* PopUp Notice */
|
106 |
+
.htmega-content{
|
107 |
+
text-align: center;
|
108 |
+
}
|
109 |
+
.htmega-content > p {
|
110 |
+
font-size: 20px;
|
111 |
+
}
|
112 |
+
.htmega-content > span i {
|
113 |
+
font-size: 30px;
|
114 |
+
}
|
115 |
+
.htmega_table_row.pro span,.htmegapro .description span {
|
116 |
+
color: #FF0000;
|
117 |
+
}
|
118 |
+
/*
|
119 |
+
* General Tab HTML
|
120 |
+
*/
|
121 |
+
#htmega_pro_vs_free_tabs h2,#htmega_pro_vs_free_tabs .submit{
|
122 |
+
display: none;
|
123 |
+
}
|
124 |
+
.htmega-column {
|
125 |
+
float: left;
|
126 |
+
padding: 0 15px;
|
127 |
+
}
|
128 |
+
.htmega-document-section {
|
129 |
+
margin-top: 25px;
|
130 |
+
overflow: hidden;
|
131 |
+
}
|
132 |
+
.htmega-section-title {
|
133 |
+
font-size: 20px;
|
134 |
+
padding-left: 15px;
|
135 |
+
}
|
136 |
+
.htmega-admin-row {
|
137 |
+
display: flex;
|
138 |
+
overflow: hidden;
|
139 |
+
}
|
140 |
+
.features-list-area {
|
141 |
+
border: 1px solid #ddd;
|
142 |
+
float: left;
|
143 |
+
margin: 0 15px;
|
144 |
+
padding: 0 15px;
|
145 |
+
}
|
146 |
+
.features-list-area li {
|
147 |
+
font-size: 16px;
|
148 |
+
padding: 4px 0 4px 5px;
|
149 |
+
position: relative;
|
150 |
+
}
|
151 |
+
.features-list-area li::before {
|
152 |
+
content: "";
|
153 |
+
font-family: dashicons;
|
154 |
+
left: -5px;
|
155 |
+
position: relative;
|
156 |
+
top: 2px;
|
157 |
+
}
|
158 |
+
.features-list-area li.fedel::before{
|
159 |
+
content: "\f335";
|
160 |
+
}
|
161 |
+
.features-list-area .button.button-primary,.woolentor-price-plan .button.button-primary{
|
162 |
+
margin: 5px 0 20px;
|
163 |
+
}
|
164 |
+
|
165 |
+
/* Tab panel */
|
166 |
+
.htmega-admin-tab-pane{
|
167 |
+
display: none;
|
168 |
+
}
|
169 |
+
.htmega-admin-tab-pane.httabactive{
|
170 |
+
display: block;
|
171 |
+
}
|
172 |
+
.httemplate-row .htmega-admin-tab-pane{
|
173 |
+
margin-left: -15px;
|
174 |
+
overflow: hidden;
|
175 |
+
}
|
176 |
+
.htmega-admin-tabs li{
|
177 |
+
display: inline-block;
|
178 |
+
margin-right: 15px;
|
179 |
+
}
|
180 |
+
.htmega-admin-tabs li:last-child{
|
181 |
+
margin-right: 0;
|
182 |
+
}
|
183 |
+
.httemplate-row .htmega-admin-tabs li a {
|
184 |
+
background: #428bfa none repeat scroll 0 0;
|
185 |
+
border-radius: 3px;
|
186 |
+
color: #fff;
|
187 |
+
display: block;
|
188 |
+
font-weight: 600;
|
189 |
+
padding: 8px 20px;
|
190 |
+
text-decoration: none;
|
191 |
+
text-transform: uppercase;
|
192 |
+
transition: all 0.4s ease 0s;
|
193 |
+
border: none;
|
194 |
+
}
|
195 |
+
.httemplate-row .htmega-admin-tabs li a:focus{
|
196 |
+
box-shadow: none;
|
197 |
+
}
|
198 |
+
.httemplate-row .htmega-admin-tabs li a:hover, .httemplate-row .htmega-admin-tabs li a.httabactive{
|
199 |
+
background: #d30c5c;
|
200 |
+
border-color: #d30c5c;
|
201 |
+
}
|
202 |
+
.htmega-admin-tab-area {
|
203 |
+
margin: 20px 0 15px;
|
204 |
+
}
|
205 |
+
|
206 |
+
.spinner.loading {
|
207 |
+
visibility: visible;
|
208 |
+
}
|
209 |
+
/*============Menu option=================*/
|
210 |
+
ul#menu-to-edit li.menu-item-depth-6 .hidn,
|
211 |
+
ul#menu-to-edit li.menu-item-depth-5 .hidn,
|
212 |
+
ul#menu-to-edit li.menu-item-depth-4 .hidn,
|
213 |
+
ul#menu-to-edit li.menu-item-depth-3 .hidn,
|
214 |
+
ul#menu-to-edit li.menu-item-depth-2 .field-enablemegamenu,
|
215 |
+
ul#menu-to-edit li.menu-item-depth-2 .field-menuposition,
|
216 |
+
ul#menu-to-edit li.menu-item-depth-2 .field-template ,
|
217 |
+
ul#menu-to-edit li.menu-item-depth-2 .field-menuwidth ,
|
218 |
+
ul#menu-to-edit li.menu-item-depth-1 .field-template ,
|
219 |
+
ul#menu-to-edit li.menu-item-depth-1 .field-menuwidth ,
|
220 |
+
ul#menu-to-edit li.menu-item-depth-1 .cs-fieldset,
|
221 |
+
ul#menu-to-edit li.menu-item-depth-1 .field-menuposition,
|
222 |
+
ul#menu-to-edit li.menu-item-depth-1 .field-enablemegamenu ,
|
223 |
+
ul#menu-to-edit li.menu-item-depth-0 .cs-fieldset ,
|
224 |
+
ul#menu-to-edit li.menu-item-depth-0 .field-columntitle{
|
225 |
+
display: none;
|
226 |
+
}
|
227 |
+
.menu-settings {
|
228 |
+
clear: both;
|
229 |
+
}
|
230 |
+
.menu-item-edit-active .menu-item-settings {
|
231 |
+
float: left;
|
232 |
+
margin-bottom: 10px;
|
233 |
+
}
|
234 |
+
.htmenu-pro-badge {
|
235 |
+
color: red;
|
236 |
+
}
|
237 |
+
|
238 |
+
/* Sidebar Add banner */
|
239 |
+
.htoptions-area {
|
240 |
+
width: 75%;
|
241 |
+
float: left;
|
242 |
+
}
|
243 |
+
.htoptions-area + .htoptions-sidebar-adds-area {
|
244 |
+
width: 22%;
|
245 |
+
float: right;
|
246 |
+
}
|
247 |
+
|
248 |
+
.htoption-banner-area {
|
249 |
+
background: #fff;
|
250 |
+
font-size: 14px;
|
251 |
+
line-height: 24px;
|
252 |
+
color: #444444;
|
253 |
+
padding: 30px;
|
254 |
+
box-shadow: 0 0 28px rgba(0,0,0,0.1);
|
255 |
+
}
|
256 |
+
|
257 |
+
.htoption-banner-area .htoption-logo {
|
258 |
+
text-align: center;
|
259 |
+
margin-bottom: 20px;
|
260 |
+
}
|
261 |
+
.htoption-logo img {
|
262 |
+
width: 90px;
|
263 |
+
}
|
264 |
+
.htoption-banner-area .htoption-intro {
|
265 |
+
text-align: center;
|
266 |
+
margin-bottom: 45px;
|
267 |
+
}
|
268 |
+
.htoption-banner-area .htoption-intro p {
|
269 |
+
line-height: 25px;
|
270 |
+
}
|
271 |
+
|
272 |
+
ul.htoption-feature{
|
273 |
+
margin: 0;
|
274 |
+
padding: 0;
|
275 |
+
list-style: none;
|
276 |
+
}
|
277 |
+
ul.htoption-feature li {
|
278 |
+
position: relative;
|
279 |
+
margin: 0;
|
280 |
+
padding: 0 0 0 30px;
|
281 |
+
}
|
282 |
+
ul.htoption-feature li::before {
|
283 |
+
position: absolute;
|
284 |
+
content: url(../images/icon/check.png);
|
285 |
+
width: 15px;
|
286 |
+
height: 20px;
|
287 |
+
top: 4px;
|
288 |
+
left: 0;
|
289 |
+
margin: 0;
|
290 |
+
}
|
291 |
+
ul.htoption-feature li + li {
|
292 |
+
margin-top: 15px;
|
293 |
+
}
|
294 |
+
.htoption-action-btn {
|
295 |
+
text-align: center;
|
296 |
+
margin-top: 45px;
|
297 |
+
}
|
298 |
+
.htoption-action-btn a.htoption-btn {
|
299 |
+
background: #2bc48a;
|
300 |
+
font-size: 14px;
|
301 |
+
line-height: 24px;
|
302 |
+
color: #fff;
|
303 |
+
border: 1px solid #2bc48a;
|
304 |
+
padding: 5px 5px 5px 20px;
|
305 |
+
border-radius: 25px;
|
306 |
+
outline: 0;
|
307 |
+
transition: 0.4s;
|
308 |
+
display: inline-block;
|
309 |
+
text-decoration: none;
|
310 |
+
transition: 0.4s;
|
311 |
+
}
|
312 |
+
.htoption-action-btn a.htoption-btn:hover{
|
313 |
+
background: #3aab80;
|
314 |
+
box-shadow: 0 0 28px rgba(0,0,0,0.1);
|
315 |
+
}
|
316 |
+
.htoption-action-btn a.htoption-btn .htoption-btn-icon {
|
317 |
+
width: 40px;
|
318 |
+
height: 40px;
|
319 |
+
background-color: #fff;
|
320 |
+
border-radius: 100%;
|
321 |
+
display: inline-block;
|
322 |
+
text-align: center;
|
323 |
+
line-height: 40px;
|
324 |
+
margin-left: 15px;
|
325 |
+
}
|
326 |
+
|
327 |
+
.htoption-rating-area {
|
328 |
+
display: -webkit-box;
|
329 |
+
display: -ms-flexbox;
|
330 |
+
display: flex;
|
331 |
+
-ms-flex-wrap: wrap;
|
332 |
+
flex-wrap: wrap;
|
333 |
+
-webkit-box-align: center;
|
334 |
+
-ms-flex-align: center;
|
335 |
+
align-items: center;
|
336 |
+
font-size: 14px;
|
337 |
+
line-height: 24px;
|
338 |
+
color: #444444;
|
339 |
+
padding: 30px;
|
340 |
+
background: #fff;
|
341 |
+
box-shadow: 0 0 28px rgba(0,0,0,0.1);
|
342 |
+
margin-top: 45px;
|
343 |
+
}
|
344 |
+
.htoption-rating-area .htoption-rating-icon {
|
345 |
+
-webkit-box-flex: 0;
|
346 |
+
-ms-flex: 0 0 auto;
|
347 |
+
flex: 0 0 auto;
|
348 |
+
width: auto;
|
349 |
+
max-width: none;
|
350 |
+
padding-right: 20px;
|
351 |
+
}
|
352 |
+
.htoption-rating-area .htoption-rating-intro {
|
353 |
+
-ms-flex-preferred-size: 0;
|
354 |
+
flex-basis: 0;
|
355 |
+
-webkit-box-flex: 1;
|
356 |
+
-ms-flex-positive: 1;
|
357 |
+
flex-grow: 1;
|
358 |
+
width: 100%;
|
359 |
+
max-width: 100%;
|
360 |
+
}
|
361 |
+
|
362 |
+
/*Template Library Warning Box*/
|
363 |
+
|
364 |
+
.htmega-template-library{
|
365 |
+
background: #eee;
|
366 |
+
border-radius: 4px;
|
367 |
+
box-shadow: 4px 4px 8px 0px rgb(0 0 0 / 31%);
|
368 |
+
padding-bottom: 30px;
|
369 |
+
|
370 |
+
}
|
371 |
+
.htmega-library-warning-image{
|
372 |
+
background: #d50000;
|
373 |
+
margin-bottom: 30px;
|
374 |
+
border-radius: 5px 5px 0px 0px;
|
375 |
+
padding-top: 12px;
|
376 |
+
}
|
377 |
+
.htmega-template-library h2{
|
378 |
+
margin-top: 0px;
|
379 |
+
margin-bottom: 10px;
|
380 |
+
}
|
381 |
+
.htmega-template-library{
|
382 |
+
width: 400px;
|
383 |
+
height: auto;
|
384 |
+
margin: auto;
|
385 |
+
text-align: center;
|
386 |
+
margin-top: 30px;
|
387 |
+
}
|
388 |
+
.htmega-template-library p{
|
389 |
+
font-size: 16px;
|
390 |
+
margin: 0px;
|
391 |
+
padding: 0px 30px;
|
392 |
+
}
|
393 |
+
|
394 |
+
/* Facebook review */
|
395 |
+
tr.fb_page_id {
|
396 |
+
border-top: 1px solid #ddd;
|
397 |
+
}
|
398 |
+
tr.schedule_update_days {
|
399 |
+
border-bottom: 1px solid #ddd;
|
400 |
+
}
|
admin/assets/images/warning-icon.png
ADDED
Binary file
|
admin/assets/js/admin.js
CHANGED
@@ -25,4 +25,23 @@ jQuery(document).ready(function($) {
|
|
25 |
}
|
26 |
htmega_admin_toggle( $(".htmega-open-element-toggle"), $("#htmega_element_tabs") );
|
27 |
htmega_admin_toggle( $(".htmega-open-element-toggle"), $("#htmega_thirdparty_element_tabs") );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
});
|
25 |
}
|
26 |
htmega_admin_toggle( $(".htmega-open-element-toggle"), $("#htmega_element_tabs") );
|
27 |
htmega_admin_toggle( $(".htmega-open-element-toggle"), $("#htmega_thirdparty_element_tabs") );
|
28 |
+
|
29 |
+
// facebook access token clear function
|
30 |
+
$(".htmega-fb-clear-cache-btn").on('click', function(e) {
|
31 |
+
var siteURL = site_url_data.site_url; // localize data
|
32 |
+
e.preventDefault();
|
33 |
+
$.ajax({
|
34 |
+
url: siteURL+"/wp-admin/admin-ajax.php",
|
35 |
+
data:{action:'my_delete_transient_action'},// form data
|
36 |
+
method : 'POST',
|
37 |
+
success:function(data){
|
38 |
+
$(".htmega-admin-notify").html( "Cache has been cleared");
|
39 |
+
}
|
40 |
+
|
41 |
+
});
|
42 |
+
|
43 |
+
});
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
});
|
admin/assets/js/elementors_template_library.js
CHANGED
@@ -463,10 +463,9 @@
|
|
463 |
|
464 |
this.insertTemplate = function (e) {
|
465 |
var t = e.model,
|
466 |
-
i = this;
|
467 |
-
|
468 |
i.getModal().showLoadingView(),
|
469 |
-
i.getTemplateContent(t.get("
|
470 |
success: function (e) {
|
471 |
i.getModal().hideLoadingView(),
|
472 |
i.getModal().hideModal();
|
463 |
|
464 |
this.insertTemplate = function (e) {
|
465 |
var t = e.model,
|
466 |
+
i = this;
|
|
|
467 |
i.getModal().showLoadingView(),
|
468 |
+
i.getTemplateContent(t.get("id"), {
|
469 |
success: function (e) {
|
470 |
i.getModal().hideLoadingView(),
|
471 |
i.getModal().hideModal();
|
admin/assets/js/install_manager.js
CHANGED
@@ -7,7 +7,6 @@
|
|
7 |
var HTMegatemplataPluginManager = {
|
8 |
|
9 |
init: function(){
|
10 |
-
console.log(HTTM.ajaxurl);
|
11 |
$( document ).on('click','.install-now', HTMegatemplataPluginManager.installNow );
|
12 |
$( document ).on('click','.activate-now', HTMegatemplataPluginManager.activatePlugin);
|
13 |
$( document ).on('wp-plugin-install-success', HTMegatemplataPluginManager.installingSuccess);
|
7 |
var HTMegatemplataPluginManager = {
|
8 |
|
9 |
init: function(){
|
|
|
10 |
$( document ).on('click','.install-now', HTMegatemplataPluginManager.installNow );
|
11 |
$( document ).on('click','.activate-now', HTMegatemplataPluginManager.activatePlugin);
|
12 |
$( document ).on('wp-plugin-install-success', HTMegatemplataPluginManager.installingSuccess);
|
admin/assets/js/template_library_manager.js
CHANGED
@@ -489,7 +489,6 @@
|
|
489 |
$(".htwptmessage").css( "display","block" );
|
490 |
},
|
491 |
error: function(errorThrown){
|
492 |
-
console.log(errorThrown);
|
493 |
}
|
494 |
});
|
495 |
|
489 |
$(".htwptmessage").css( "display","block" );
|
490 |
},
|
491 |
error: function(errorThrown){
|
|
|
492 |
}
|
493 |
});
|
494 |
|
admin/include/admin-setting.php
CHANGED
@@ -625,7 +625,112 @@ class HTMega_Admin_Settings {
|
|
625 |
'default'=>'on',
|
626 |
'class'=>'htmega_table_row',
|
627 |
),
|
628 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
629 |
),
|
630 |
|
631 |
'htmega_general_tabs'=>array(
|
625 |
'default'=>'on',
|
626 |
'class'=>'htmega_table_row',
|
627 |
),
|
628 |
+
// pro addon list
|
629 |
+
array(
|
630 |
+
'name' => 'info_boxp',
|
631 |
+
'label' => __( 'Info Box <span>( Pro )</span>', 'htmega-addons' ),
|
632 |
+
'type' => 'checkbox',
|
633 |
+
'default'=>'off',
|
634 |
+
'class'=>'htmega_table_row pro',
|
635 |
+
),
|
636 |
+
array(
|
637 |
+
'name' => 'lottiep',
|
638 |
+
'label' => __( 'Lottie <span>( Pro )</span>', 'htmega-addons' ),
|
639 |
+
'type' => 'checkbox',
|
640 |
+
'default'=>'off',
|
641 |
+
'class'=>'htmega_table_row pro',
|
642 |
+
),
|
643 |
+
array(
|
644 |
+
'name' => 'event_calendarp',
|
645 |
+
'label' => __( 'Event Calendar <span>( Pro )</span>', 'htmega-addons' ),
|
646 |
+
'type' => 'checkbox',
|
647 |
+
'default'=>'off',
|
648 |
+
'class'=>'htmega_table_row pro',
|
649 |
+
),
|
650 |
+
array(
|
651 |
+
'name' => 'category_listp',
|
652 |
+
'label' => __( 'Category List <span>( Pro )</span>', 'htmega-addons' ),
|
653 |
+
'type' => 'checkbox',
|
654 |
+
'default'=>'off',
|
655 |
+
'class'=>'htmega_table_row pro',
|
656 |
+
),
|
657 |
+
array(
|
658 |
+
'name' => 'pricing_menup',
|
659 |
+
'label' => __( 'Pricing Menu <span>( Pro )</span>', 'htmega-addons' ),
|
660 |
+
'type' => 'checkbox',
|
661 |
+
'default'=>'off',
|
662 |
+
'class'=>'htmega_table_row pro',
|
663 |
+
),
|
664 |
+
array(
|
665 |
+
'name' => 'feature_listp',
|
666 |
+
'label' => __( 'Feature List <span>( Pro )</span>', 'htmega-addons' ),
|
667 |
+
'type' => 'checkbox',
|
668 |
+
'default'=>'off',
|
669 |
+
'class'=>'htmega_table_row pro',
|
670 |
+
),
|
671 |
+
array(
|
672 |
+
'name' => 'social_network_iconsp',
|
673 |
+
'label' => __( 'Social Network Icons <span>( Pro )</span>', 'htmega-addons' ),
|
674 |
+
'type' => 'checkbox',
|
675 |
+
'default'=>'off',
|
676 |
+
'class'=>'htmega_table_row pro',
|
677 |
+
),
|
678 |
+
array(
|
679 |
+
'name' => 'taxonomy_termsp',
|
680 |
+
'label' => __( 'Taxonomy Terms <span>( Pro )</span>', 'htmega-addons' ),
|
681 |
+
'type' => 'checkbox',
|
682 |
+
'default'=>'off',
|
683 |
+
'class'=>'htmega_table_row pro',
|
684 |
+
),
|
685 |
+
array(
|
686 |
+
'name' => 'background_switcherp',
|
687 |
+
'label' => __( 'Background Switcher <span>( Pro )</span>', 'htmega-addons' ),
|
688 |
+
'type' => 'checkbox',
|
689 |
+
'default'=>'off',
|
690 |
+
'class'=>'htmega_table_row pro',
|
691 |
+
),
|
692 |
+
array(
|
693 |
+
'name' => 'breadcrumbsp',
|
694 |
+
'label' => __( 'Breadcrumbs <span>( Pro )</span>', 'htmega-addons' ),
|
695 |
+
'type' => 'checkbox',
|
696 |
+
'default'=>'off',
|
697 |
+
'class'=>'htmega_table_row pro',
|
698 |
+
),
|
699 |
+
array(
|
700 |
+
'name' => 'page_listp',
|
701 |
+
'label' => __( 'Page List <span>( Pro )</span>', 'htmega-addons' ),
|
702 |
+
'type' => 'checkbox',
|
703 |
+
'default'=>'off',
|
704 |
+
'class'=>'htmega_table_row pro',
|
705 |
+
),
|
706 |
+
array(
|
707 |
+
'name' => 'icon_boxp',
|
708 |
+
'label' => __( 'Icon Box <span>( Pro )</span>', 'htmega-addons' ),
|
709 |
+
'type' => 'checkbox',
|
710 |
+
'default'=>'off',
|
711 |
+
'class'=>'htmega_table_row pro',
|
712 |
+
),
|
713 |
+
array(
|
714 |
+
'name' => 'team_carouselp',
|
715 |
+
'label' => __( 'Team Carousel <span>( Pro )</span>', 'htmega-addons' ),
|
716 |
+
'type' => 'checkbox',
|
717 |
+
'default'=>'off',
|
718 |
+
'class'=>'htmega_table_row pro',
|
719 |
+
),
|
720 |
+
array(
|
721 |
+
'name' => 'interactive_promop',
|
722 |
+
'label' => __( 'Interactive Promo <span>( Pro )</span>', 'htmega-addons' ),
|
723 |
+
'type' => 'checkbox',
|
724 |
+
'default'=>'off',
|
725 |
+
'class'=>'htmega_table_row pro',
|
726 |
+
),
|
727 |
+
array(
|
728 |
+
'name' => 'facebook_reviewp',
|
729 |
+
'label' => __( 'Facebook Review <span>( Pro )</span>', 'htmega-addons' ),
|
730 |
+
'type' => 'checkbox',
|
731 |
+
'default'=>'off',
|
732 |
+
'class'=>'htmega_table_row pro',
|
733 |
+
),
|
734 |
),
|
735 |
|
736 |
'htmega_general_tabs'=>array(
|
admin/include/class.htmega-elementor-template-library.php
CHANGED
@@ -72,7 +72,15 @@ class Elementor_Library_Manage{
|
|
72 |
htmega_get_elementor()->db->switch_to_post( $editor_post_id );
|
73 |
}
|
74 |
|
75 |
-
$result =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
return $result;
|
78 |
} );
|
@@ -179,22 +187,4 @@ class Elementor_Library_Manage{
|
|
179 |
return $data;
|
180 |
}
|
181 |
|
182 |
-
|
183 |
-
/**
|
184 |
-
* [get_library_data] Get Template Info
|
185 |
-
* @param array $args new custom argument
|
186 |
-
* @return [array]
|
187 |
-
*/
|
188 |
-
public function get_library_data( array $args ) {
|
189 |
-
$source = $this->get_source();
|
190 |
-
|
191 |
-
if ( ! empty( $args['sync'] ) ) {
|
192 |
-
Library_Source::get_library_data( true );
|
193 |
-
}
|
194 |
-
|
195 |
-
return [
|
196 |
-
'templates' => $source->get_items(),
|
197 |
-
];
|
198 |
-
}
|
199 |
-
|
200 |
}
|
72 |
htmega_get_elementor()->db->switch_to_post( $editor_post_id );
|
73 |
}
|
74 |
|
75 |
+
$result = [];
|
76 |
+
|
77 |
+
$transient = get_transient( 'htmega_template_info' );
|
78 |
+
|
79 |
+
if ( $transient ){
|
80 |
+
$result = $transient;
|
81 |
+
}else{
|
82 |
+
$result = \HTMega_Template_Library::instance()->get_templates_info();
|
83 |
+
}
|
84 |
|
85 |
return $result;
|
86 |
} );
|
187 |
return $data;
|
188 |
}
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
}
|
admin/include/class.library-source.php
CHANGED
@@ -7,61 +7,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
7 |
|
8 |
class Library_Source extends Source_Base {
|
9 |
|
10 |
-
/**
|
11 |
-
* New library option key.
|
12 |
-
*/
|
13 |
-
public static $library_option_key = 'htmega_info_library_data';
|
14 |
-
|
15 |
-
/**
|
16 |
-
* API info URL.
|
17 |
-
*/
|
18 |
-
public static $endpoint = 'https://wphtmega.com/library/wp-json/htmega/v1/templates';
|
19 |
-
|
20 |
-
/**
|
21 |
-
* API get template content URL.
|
22 |
-
*/
|
23 |
-
public static $templateapi = 'https://wphtmega.com/library/wp-json/htmega/v1/templates/%s';
|
24 |
-
|
25 |
-
function __construct(){
|
26 |
-
if( is_plugin_active('htmega-pro/htmega_pro.php') && function_exists('htmega_pro_template_endpoint') ){
|
27 |
-
$option_key = get_option('htmega_info_library_data');
|
28 |
-
if(false !== $option_key){
|
29 |
-
self::$library_option_key = 'htmega_pro_info_library_data';
|
30 |
-
delete_option( 'htmega_info_library_data' );
|
31 |
-
}
|
32 |
-
}else{
|
33 |
-
if(self::$library_option_key != 'htmega_info_library_data'){
|
34 |
-
delete_option( self::$library_option_key );
|
35 |
-
}
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
// Setter Endpoint
|
40 |
-
function set_api_endpoint( $endpoint ){
|
41 |
-
self::$endpoint = $endpoint;
|
42 |
-
}
|
43 |
-
|
44 |
-
// Setter Template API
|
45 |
-
function set_api_templateapi( $templateapi ){
|
46 |
-
self::$templateapi = $templateapi;
|
47 |
-
}
|
48 |
-
|
49 |
-
// Get Endpoint
|
50 |
-
public static function get_api_endpoint(){
|
51 |
-
if( is_plugin_active('htmega-pro/htmega_pro.php') && function_exists('htmega_pro_template_endpoint') ){
|
52 |
-
self::$endpoint = htmega_pro_template_endpoint();
|
53 |
-
}
|
54 |
-
return self::$endpoint;
|
55 |
-
}
|
56 |
-
|
57 |
-
// Get Template API
|
58 |
-
public static function get_api_templateapi(){
|
59 |
-
if( is_plugin_active('htmega-pro/htmega_pro.php') && function_exists('htmega_pro_template_url') ){
|
60 |
-
self::$templateapi = htmega_pro_template_url();
|
61 |
-
}
|
62 |
-
return self::$templateapi;
|
63 |
-
}
|
64 |
-
|
65 |
/**
|
66 |
* [get_id] Get remote template ID.
|
67 |
* @return [string] The remote template ID.
|
@@ -110,10 +55,9 @@ class Library_Source extends Source_Base {
|
|
110 |
* not. Default is false.
|
111 |
* @return [array] The templates data.
|
112 |
*/
|
113 |
-
public static function get_library_data(
|
114 |
-
self::get_info_library_data( $force_update );
|
115 |
|
116 |
-
$data =
|
117 |
|
118 |
if ( empty( $data ) ) {
|
119 |
return [];
|
@@ -121,40 +65,6 @@ class Library_Source extends Source_Base {
|
|
121 |
|
122 |
return $data;
|
123 |
}
|
124 |
-
|
125 |
-
/**
|
126 |
-
* [get_info_library_data] This function notifies the user of upgrade notices, new templates and contributors.
|
127 |
-
* @param boolean $force_update Optional. Whether to force the data retrieval or
|
128 |
-
* not. Default is false.
|
129 |
-
* @return [array|false] Info data, or false.
|
130 |
-
*/
|
131 |
-
private static function get_info_library_data( $force_update = false ) {
|
132 |
-
$data = get_option( self::$library_option_key );
|
133 |
-
|
134 |
-
if ( $force_update || false === $data ) {
|
135 |
-
$timeout = ( $force_update ) ? 25 : 8;
|
136 |
-
|
137 |
-
$response = wp_remote_get( self::get_api_endpoint(), [
|
138 |
-
'timeout' => $timeout,
|
139 |
-
] );
|
140 |
-
|
141 |
-
if ( is_wp_error( $response ) || 200 !== (int) wp_remote_retrieve_response_code( $response ) ) {
|
142 |
-
update_option( self::$library_option_key, [] );
|
143 |
-
return false;
|
144 |
-
}
|
145 |
-
|
146 |
-
$data = json_decode( wp_remote_retrieve_body( $response ), true );
|
147 |
-
|
148 |
-
if ( empty( $data ) || ! is_array( $data ) ) {
|
149 |
-
update_option( self::$library_option_key, [] );
|
150 |
-
return false;
|
151 |
-
}
|
152 |
-
|
153 |
-
update_option( self::$library_option_key, $data, 'no' );
|
154 |
-
}
|
155 |
-
|
156 |
-
return $data;
|
157 |
-
}
|
158 |
|
159 |
/**
|
160 |
* [get_item Get remote template.] Retrieve a single remote template from Elementor.com servers.
|
@@ -248,7 +158,7 @@ class Library_Source extends Source_Base {
|
|
248 |
'home_url' => trailingslashit( home_url() ),
|
249 |
];
|
250 |
|
251 |
-
$content_url = sprintf(
|
252 |
$response = wp_remote_get(
|
253 |
$content_url,
|
254 |
[
|
7 |
|
8 |
class Library_Source extends Source_Base {
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
/**
|
11 |
* [get_id] Get remote template ID.
|
12 |
* @return [string] The remote template ID.
|
55 |
* not. Default is false.
|
56 |
* @return [array] The templates data.
|
57 |
*/
|
58 |
+
public static function get_library_data() {
|
|
|
59 |
|
60 |
+
$data = get_transient( 'htmega_template_info' );
|
61 |
|
62 |
if ( empty( $data ) ) {
|
63 |
return [];
|
65 |
|
66 |
return $data;
|
67 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
/**
|
70 |
* [get_item Get remote template.] Retrieve a single remote template from Elementor.com servers.
|
158 |
'home_url' => trailingslashit( home_url() ),
|
159 |
];
|
160 |
|
161 |
+
$content_url = sprintf( \HTMega_Template_Library::get_api_templateapi(), $template_id );
|
162 |
$response = wp_remote_get(
|
163 |
$content_url,
|
164 |
[
|
admin/include/template-library.php
CHANGED
@@ -79,7 +79,22 @@ class HTMega_Template_Library{
|
|
79 |
}
|
80 |
|
81 |
function library_render_html(){
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
// Get Buy Now link
|
@@ -90,6 +105,10 @@ class HTMega_Template_Library{
|
|
90 |
public static function request_remote_templates_info( $force_update ) {
|
91 |
global $wp_version;
|
92 |
|
|
|
|
|
|
|
|
|
93 |
$timeout = ( $force_update ) ? 25 : 8;
|
94 |
$request = wp_remote_get(
|
95 |
self::get_api_endpoint(),
|
@@ -100,6 +119,7 @@ class HTMega_Template_Library{
|
|
100 |
);
|
101 |
|
102 |
if ( is_wp_error( $request ) || 200 !== (int) wp_remote_retrieve_response_code( $request ) ) {
|
|
|
103 |
return [];
|
104 |
}
|
105 |
|
@@ -112,11 +132,12 @@ class HTMega_Template_Library{
|
|
112 |
* Retrieve template library and save as a transient.
|
113 |
*/
|
114 |
public static function set_templates_info( $force_update = false ) {
|
|
|
115 |
$transient = get_transient( self::TRANSIENT_KEY );
|
116 |
|
117 |
if ( ! $transient || $force_update ) {
|
118 |
$info = self::request_remote_templates_info( $force_update );
|
119 |
-
set_transient( self::TRANSIENT_KEY, $info
|
120 |
}
|
121 |
}
|
122 |
|
79 |
}
|
80 |
|
81 |
function library_render_html(){
|
82 |
+
$template_data = HTMega_Addons_Elementor::$template_info;
|
83 |
+
if(is_array($template_data) && isset($template_data['templates'])){
|
84 |
+
require_once HTMEGA_ADDONS_PL_PATH . 'admin/include/templates_list.php';
|
85 |
+
}else{
|
86 |
+
?>
|
87 |
+
<div class="htmega-template-library">
|
88 |
+
<div class="htmega-library-warning-image">
|
89 |
+
<img src="<?php echo esc_url( HTMEGA_ADDONS_PL_URL.'admin/assets/images/warning-icon.png' ); ?>">
|
90 |
+
</div>
|
91 |
+
<h2>
|
92 |
+
No data found
|
93 |
+
</h2>
|
94 |
+
<p>Please wait a few moments, this may be the causes of server issues.</p>
|
95 |
+
</div>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
}
|
99 |
|
100 |
// Get Buy Now link
|
105 |
public static function request_remote_templates_info( $force_update ) {
|
106 |
global $wp_version;
|
107 |
|
108 |
+
if(get_transient('htmega_severdown_request_pending')){
|
109 |
+
return;
|
110 |
+
}
|
111 |
+
|
112 |
$timeout = ( $force_update ) ? 25 : 8;
|
113 |
$request = wp_remote_get(
|
114 |
self::get_api_endpoint(),
|
119 |
);
|
120 |
|
121 |
if ( is_wp_error( $request ) || 200 !== (int) wp_remote_retrieve_response_code( $request ) ) {
|
122 |
+
set_transient('htmega_severdown_request_pending', 'Pending request for server down', 60 * MINUTE_IN_SECONDS);
|
123 |
return [];
|
124 |
}
|
125 |
|
132 |
* Retrieve template library and save as a transient.
|
133 |
*/
|
134 |
public static function set_templates_info( $force_update = false ) {
|
135 |
+
|
136 |
$transient = get_transient( self::TRANSIENT_KEY );
|
137 |
|
138 |
if ( ! $transient || $force_update ) {
|
139 |
$info = self::request_remote_templates_info( $force_update );
|
140 |
+
set_transient( self::TRANSIENT_KEY, $info);
|
141 |
}
|
142 |
}
|
143 |
|
admin/include/templates/library/templates.php
CHANGED
@@ -6,10 +6,10 @@
|
|
6 |
?>
|
7 |
|
8 |
<script type="text/template" id="tmpl-htmega-template-library-header-actions">
|
9 |
-
<div id="htmega-template-library-header-sync" class="elementor-templates-modal__header__item">
|
10 |
-
<i class="eicon-sync" aria-hidden="true" title="<?php esc_attr_e( 'Sync Library', 'htmega-addons' ); ?>"></i>
|
11 |
-
<span class="elementor-screen-only"><?php echo __( 'Sync Library', 'htmega-addons' ); ?></span>
|
12 |
-
</div>
|
13 |
</script>
|
14 |
|
15 |
<script type="text/template" id="tmpl-htmega-template-library-logo">
|
6 |
?>
|
7 |
|
8 |
<script type="text/template" id="tmpl-htmega-template-library-header-actions">
|
9 |
+
<!-- <div id="htmega-template-library-header-sync" class="elementor-templates-modal__header__item">
|
10 |
+
<i class="eicon-sync" aria-hidden="true" title="<?php //esc_attr_e( 'Sync Library', 'htmega-addons' ); ?>"></i>
|
11 |
+
<span class="elementor-screen-only"><?php //echo __( 'Sync Library', 'htmega-addons' ); ?></span>
|
12 |
+
</div> -->
|
13 |
</script>
|
14 |
|
15 |
<script type="text/template" id="tmpl-htmega-template-library-logo">
|
assets/css/htmega-elementor-editor.css
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
.elementor-element .icon {
|
2 |
-
position: relative;
|
3 |
-
}
|
4 |
-
.elementor-element .icon .htmega-icon::after {
|
5 |
-
content: "HT";
|
6 |
-
font-size: 10px;
|
7 |
-
opacity: 0.4;
|
8 |
-
position: absolute;
|
9 |
-
right: 5px;
|
10 |
-
top: 5px;
|
11 |
-
}
|
12 |
-
.elementor-control-redirect_page_url .elementor-control-url-more{
|
13 |
-
display: none;
|
14 |
}
|
1 |
+
.elementor-element .icon {
|
2 |
+
position: relative;
|
3 |
+
}
|
4 |
+
.elementor-element .icon .htmega-icon::after {
|
5 |
+
content: "HT";
|
6 |
+
font-size: 10px;
|
7 |
+
opacity: 0.4;
|
8 |
+
position: absolute;
|
9 |
+
right: 5px;
|
10 |
+
top: 5px;
|
11 |
+
}
|
12 |
+
.elementor-control-redirect_page_url .elementor-control-url-more{
|
13 |
+
display: none;
|
14 |
}
|
assets/css/htmega-widgets.css
CHANGED
@@ -2097,7 +2097,9 @@
|
|
2097 |
border-width: 0px 0px 0px 0px;
|
2098 |
margin: 0px 20px 20px 0px;
|
2099 |
}
|
2100 |
-
|
|
|
|
|
2101 |
|
2102 |
/*---------------------------------
|
2103 |
Pricing Table Style
|
2097 |
border-width: 0px 0px 0px 0px;
|
2098 |
margin: 0px 20px 20px 0px;
|
2099 |
}
|
2100 |
+
span.htmega-team-designation{
|
2101 |
+
display: block;
|
2102 |
+
}
|
2103 |
|
2104 |
/*---------------------------------
|
2105 |
Pricing Table Style
|
assets/js/single_product_ajax_add_to_cart.js
CHANGED
@@ -83,7 +83,6 @@
|
|
83 |
},
|
84 |
|
85 |
success: function (response) {
|
86 |
-
console.log(response);
|
87 |
if ( response.error && response.product_url ) {
|
88 |
window.location = response.product_url;
|
89 |
return;
|
83 |
},
|
84 |
|
85 |
success: function (response) {
|
|
|
86 |
if ( response.error && response.product_url ) {
|
87 |
window.location = response.product_url;
|
88 |
return;
|
extensions/ht-builder/widgets/bl_nav_menu.php
CHANGED
@@ -113,17 +113,16 @@ class Bl_Nav_Menu_ELement extends Widget_Base {
|
|
113 |
'options' => [
|
114 |
'left' => [
|
115 |
'title' => __( 'Left', 'htmega-addons' ),
|
116 |
-
'icon' => '
|
117 |
],
|
118 |
'center' => [
|
119 |
'title' => __( 'Center', 'htmega-addons' ),
|
120 |
-
'icon' => '
|
121 |
],
|
122 |
'right' => [
|
123 |
'title' => __( 'Right', 'htmega-addons' ),
|
124 |
-
'icon' => '
|
125 |
],
|
126 |
-
|
127 |
],
|
128 |
'selectors' => [
|
129 |
'{{WRAPPER}} .htbuilder-nav ul.htbuilder-mainmenu' => 'text-align: {{VALUE}};',
|
113 |
'options' => [
|
114 |
'left' => [
|
115 |
'title' => __( 'Left', 'htmega-addons' ),
|
116 |
+
'icon' => 'eicon-text-align-left',
|
117 |
],
|
118 |
'center' => [
|
119 |
'title' => __( 'Center', 'htmega-addons' ),
|
120 |
+
'icon' => 'eicon-text-align-center',
|
121 |
],
|
122 |
'right' => [
|
123 |
'title' => __( 'Right', 'htmega-addons' ),
|
124 |
+
'icon' => 'eicon-text-align-right',
|
125 |
],
|
|
|
126 |
],
|
127 |
'selectors' => [
|
128 |
'{{WRAPPER}} .htbuilder-nav ul.htbuilder-mainmenu' => 'text-align: {{VALUE}};',
|
extensions/ht-builder/widgets/bl_page_title.php
CHANGED
@@ -135,21 +135,21 @@ class Bl_Page_Title_ELement extends Widget_Base {
|
|
135 |
'options' => [
|
136 |
'left' => [
|
137 |
'title' => __( 'Left', 'htmega-addons' ),
|
138 |
-
'icon' => '
|
139 |
],
|
140 |
'center' => [
|
141 |
'title' => __( 'Center', 'htmega-addons' ),
|
142 |
-
'icon' => '
|
143 |
],
|
144 |
'right' => [
|
145 |
'title' => __( 'Right', 'htmega-addons' ),
|
146 |
-
'icon' => '
|
147 |
],
|
148 |
'justify' => [
|
149 |
'title' => __( 'Justified', 'htmega-addons' ),
|
150 |
-
'icon' => '
|
151 |
],
|
152 |
-
],
|
153 |
'prefix_class' => 'elementor-align-%s',
|
154 |
'default' => 'left',
|
155 |
]
|
135 |
'options' => [
|
136 |
'left' => [
|
137 |
'title' => __( 'Left', 'htmega-addons' ),
|
138 |
+
'icon' => 'eicon-text-align-left',
|
139 |
],
|
140 |
'center' => [
|
141 |
'title' => __( 'Center', 'htmega-addons' ),
|
142 |
+
'icon' => 'eicon-text-align-center',
|
143 |
],
|
144 |
'right' => [
|
145 |
'title' => __( 'Right', 'htmega-addons' ),
|
146 |
+
'icon' => 'eicon-text-align-right',
|
147 |
],
|
148 |
'justify' => [
|
149 |
'title' => __( 'Justified', 'htmega-addons' ),
|
150 |
+
'icon' => 'eicon-text-align-justify',
|
151 |
],
|
152 |
+
],
|
153 |
'prefix_class' => 'elementor-align-%s',
|
154 |
'default' => 'left',
|
155 |
]
|
extensions/ht-builder/widgets/bl_post_archive.php
CHANGED
@@ -297,20 +297,20 @@ class Bl_Post_Archive_ELement extends Widget_Base {
|
|
297 |
[
|
298 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
299 |
'type' => Controls_Manager::CHOOSE,
|
300 |
-
'options'
|
301 |
-
'left'
|
302 |
'title' => __( 'Left', 'htmega-addons' ),
|
303 |
-
'icon' => '
|
304 |
],
|
305 |
'center' => [
|
306 |
'title' => __( 'Center', 'htmega-addons' ),
|
307 |
-
'icon' => '
|
308 |
],
|
309 |
-
'right'
|
310 |
'title' => __( 'Right', 'htmega-addons' ),
|
311 |
-
'icon' => '
|
312 |
],
|
313 |
-
],
|
314 |
'selectors' => [
|
315 |
'{{WRAPPER}} .htbuilder-single-post' => 'text-align: {{VALUE}};',
|
316 |
],
|
@@ -378,20 +378,20 @@ class Bl_Post_Archive_ELement extends Widget_Base {
|
|
378 |
[
|
379 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
380 |
'type' => Controls_Manager::CHOOSE,
|
381 |
-
'options'
|
382 |
-
'left'
|
383 |
'title' => __( 'Left', 'htmega-addons' ),
|
384 |
-
'icon' => '
|
385 |
],
|
386 |
'center' => [
|
387 |
'title' => __( 'Center', 'htmega-addons' ),
|
388 |
-
'icon' => '
|
389 |
],
|
390 |
-
'right'
|
391 |
'title' => __( 'Right', 'htmega-addons' ),
|
392 |
-
'icon' => '
|
393 |
],
|
394 |
-
],
|
395 |
'selectors' => [
|
396 |
'{{WRAPPER}} .htbuilder-post-title' => 'text-align: {{VALUE}};',
|
397 |
],
|
@@ -485,20 +485,20 @@ class Bl_Post_Archive_ELement extends Widget_Base {
|
|
485 |
[
|
486 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
487 |
'type' => Controls_Manager::CHOOSE,
|
488 |
-
'options'
|
489 |
-
'left'
|
490 |
'title' => __( 'Left', 'htmega-addons' ),
|
491 |
-
'icon' => '
|
492 |
],
|
493 |
'center' => [
|
494 |
'title' => __( 'Center', 'htmega-addons' ),
|
495 |
-
'icon' => '
|
496 |
],
|
497 |
-
'right'
|
498 |
'title' => __( 'Right', 'htmega-addons' ),
|
499 |
-
'icon' => '
|
500 |
],
|
501 |
-
],
|
502 |
'selectors' => [
|
503 |
'{{WRAPPER}} .htbuilder-post-meta-info' => 'text-align: {{VALUE}};',
|
504 |
],
|
@@ -591,20 +591,20 @@ class Bl_Post_Archive_ELement extends Widget_Base {
|
|
591 |
[
|
592 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
593 |
'type' => Controls_Manager::CHOOSE,
|
594 |
-
'options'
|
595 |
-
'left'
|
596 |
'title' => __( 'Left', 'htmega-addons' ),
|
597 |
-
'icon' => '
|
598 |
],
|
599 |
'center' => [
|
600 |
'title' => __( 'Center', 'htmega-addons' ),
|
601 |
-
'icon' => '
|
602 |
],
|
603 |
-
'right'
|
604 |
'title' => __( 'Right', 'htmega-addons' ),
|
605 |
-
'icon' => '
|
606 |
],
|
607 |
-
],
|
608 |
'selectors' => [
|
609 |
'{{WRAPPER}} .htbuilder-post-cat' => 'text-align: {{VALUE}};',
|
610 |
],
|
@@ -671,20 +671,20 @@ class Bl_Post_Archive_ELement extends Widget_Base {
|
|
671 |
[
|
672 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
673 |
'type' => Controls_Manager::CHOOSE,
|
674 |
-
'options'
|
675 |
-
'left'
|
676 |
'title' => __( 'Left', 'htmega-addons' ),
|
677 |
-
'icon' => '
|
678 |
],
|
679 |
'center' => [
|
680 |
'title' => __( 'Center', 'htmega-addons' ),
|
681 |
-
'icon' => '
|
682 |
],
|
683 |
-
'right'
|
684 |
'title' => __( 'Right', 'htmega-addons' ),
|
685 |
-
'icon' => '
|
686 |
],
|
687 |
-
],
|
688 |
'selectors' => [
|
689 |
'{{WRAPPER}} .htbuilder-post-content p' => 'text-align: {{VALUE}};',
|
690 |
],
|
297 |
[
|
298 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
299 |
'type' => Controls_Manager::CHOOSE,
|
300 |
+
'options' => [
|
301 |
+
'left' => [
|
302 |
'title' => __( 'Left', 'htmega-addons' ),
|
303 |
+
'icon' => 'eicon-text-align-left',
|
304 |
],
|
305 |
'center' => [
|
306 |
'title' => __( 'Center', 'htmega-addons' ),
|
307 |
+
'icon' => 'eicon-text-align-center',
|
308 |
],
|
309 |
+
'right' => [
|
310 |
'title' => __( 'Right', 'htmega-addons' ),
|
311 |
+
'icon' => 'eicon-text-align-right',
|
312 |
],
|
313 |
+
],
|
314 |
'selectors' => [
|
315 |
'{{WRAPPER}} .htbuilder-single-post' => 'text-align: {{VALUE}};',
|
316 |
],
|
378 |
[
|
379 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
380 |
'type' => Controls_Manager::CHOOSE,
|
381 |
+
'options' => [
|
382 |
+
'left' => [
|
383 |
'title' => __( 'Left', 'htmega-addons' ),
|
384 |
+
'icon' => 'eicon-text-align-left',
|
385 |
],
|
386 |
'center' => [
|
387 |
'title' => __( 'Center', 'htmega-addons' ),
|
388 |
+
'icon' => 'eicon-text-align-center',
|
389 |
],
|
390 |
+
'right' => [
|
391 |
'title' => __( 'Right', 'htmega-addons' ),
|
392 |
+
'icon' => 'eicon-text-align-right',
|
393 |
],
|
394 |
+
],
|
395 |
'selectors' => [
|
396 |
'{{WRAPPER}} .htbuilder-post-title' => 'text-align: {{VALUE}};',
|
397 |
],
|
485 |
[
|
486 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
487 |
'type' => Controls_Manager::CHOOSE,
|
488 |
+
'options' => [
|
489 |
+
'left' => [
|
490 |
'title' => __( 'Left', 'htmega-addons' ),
|
491 |
+
'icon' => 'eicon-text-align-left',
|
492 |
],
|
493 |
'center' => [
|
494 |
'title' => __( 'Center', 'htmega-addons' ),
|
495 |
+
'icon' => 'eicon-text-align-center',
|
496 |
],
|
497 |
+
'right' => [
|
498 |
'title' => __( 'Right', 'htmega-addons' ),
|
499 |
+
'icon' => 'eicon-text-align-right',
|
500 |
],
|
501 |
+
],
|
502 |
'selectors' => [
|
503 |
'{{WRAPPER}} .htbuilder-post-meta-info' => 'text-align: {{VALUE}};',
|
504 |
],
|
591 |
[
|
592 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
593 |
'type' => Controls_Manager::CHOOSE,
|
594 |
+
'options' => [
|
595 |
+
'left' => [
|
596 |
'title' => __( 'Left', 'htmega-addons' ),
|
597 |
+
'icon' => 'eicon-text-align-left',
|
598 |
],
|
599 |
'center' => [
|
600 |
'title' => __( 'Center', 'htmega-addons' ),
|
601 |
+
'icon' => 'eicon-text-align-center',
|
602 |
],
|
603 |
+
'right' => [
|
604 |
'title' => __( 'Right', 'htmega-addons' ),
|
605 |
+
'icon' => 'eicon-text-align-right',
|
606 |
],
|
607 |
+
],
|
608 |
'selectors' => [
|
609 |
'{{WRAPPER}} .htbuilder-post-cat' => 'text-align: {{VALUE}};',
|
610 |
],
|
671 |
[
|
672 |
'label' => __( 'Alignment', 'htmega-addons' ),
|
673 |
'type' => Controls_Manager::CHOOSE,
|
674 |
+
'options' => [
|
675 |
+
'left' => [
|
676 |
'title' => __( 'Left', 'htmega-addons' ),
|
677 |
+
'icon' => 'eicon-text-align-left',
|
678 |
],
|
679 |
'center' => [
|
680 |
'title' => __( 'Center', 'htmega-addons' ),
|
681 |
+
'icon' => 'eicon-text-align-center',
|
682 |
],
|
683 |
+
'right' => [
|
684 |
'title' => __( 'Right', 'htmega-addons' ),
|
685 |
+
'icon' => 'eicon-text-align-right',
|
686 |
],
|
687 |
+
],
|
688 |
'selectors' => [
|
689 |
'{{WRAPPER}} .htbuilder-post-content p' => 'text-align: {{VALUE}};',
|
690 |
],
|
extensions/ht-builder/widgets/bl_post_archive_title.php
CHANGED
@@ -137,21 +137,21 @@ class Bl_Post_Archive_Title_ELement extends Widget_Base {
|
|
137 |
'options' => [
|
138 |
'left' => [
|
139 |
'title' => __( 'Left', 'htmega-addons' ),
|
140 |
-
'icon' => '
|
141 |
],
|
142 |
'center' => [
|
143 |
'title' => __( 'Center', 'htmega-addons' ),
|
144 |
-
'icon' => '
|
145 |
],
|
146 |
'right' => [
|
147 |
'title' => __( 'Right', 'htmega-addons' ),
|
148 |
-
'icon' => '
|
149 |
],
|
150 |
'justify' => [
|
151 |
'title' => __( 'Justified', 'htmega-addons' ),
|
152 |
-
'icon' => '
|
153 |
],
|
154 |
-
],
|
155 |
'prefix_class' => 'elementor-align-%s',
|
156 |
'default' => 'left',
|
157 |
]
|
137 |
'options' => [
|
138 |
'left' => [
|
139 |
'title' => __( 'Left', 'htmega-addons' ),
|
140 |
+
'icon' => 'eicon-text-align-left',
|
141 |
],
|
142 |
'center' => [
|
143 |
'title' => __( 'Center', 'htmega-addons' ),
|
144 |
+
'icon' => 'eicon-text-align-center',
|
145 |
],
|
146 |
'right' => [
|
147 |
'title' => __( 'Right', 'htmega-addons' ),
|
148 |
+
'icon' => 'eicon-text-align-right',
|
149 |
],
|
150 |
'justify' => [
|
151 |
'title' => __( 'Justified', 'htmega-addons' ),
|
152 |
+
'icon' => 'eicon-text-align-justify',
|
153 |
],
|
154 |
+
],
|
155 |
'prefix_class' => 'elementor-align-%s',
|
156 |
'default' => 'left',
|
157 |
]
|
extensions/ht-builder/widgets/bl_post_content.php
CHANGED
@@ -70,19 +70,19 @@ class Bl_Post_Content_ELement extends Widget_Base {
|
|
70 |
'options' => [
|
71 |
'left' => [
|
72 |
'title' => __( 'Left', 'htmega-addons' ),
|
73 |
-
'icon' => '
|
74 |
],
|
75 |
'center' => [
|
76 |
'title' => __( 'Center', 'htmega-addons' ),
|
77 |
-
'icon' => '
|
78 |
],
|
79 |
'right' => [
|
80 |
'title' => __( 'Right', 'htmega-addons' ),
|
81 |
-
'icon' => '
|
82 |
],
|
83 |
'justify' => [
|
84 |
'title' => __( 'Justified', 'htmega-addons' ),
|
85 |
-
'icon' => '
|
86 |
],
|
87 |
],
|
88 |
'prefix_class' => 'elementor-align-%s',
|
@@ -113,7 +113,13 @@ class Bl_Post_Content_ELement extends Widget_Base {
|
|
113 |
$have_posts[ $post->ID ] = true;
|
114 |
// End avoid editor recursion
|
115 |
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
echo Elementor::instance()->frontend->get_builder_content( $post->ID, true );
|
118 |
}else{
|
119 |
echo apply_filters( 'the_content', get_the_content() );
|
70 |
'options' => [
|
71 |
'left' => [
|
72 |
'title' => __( 'Left', 'htmega-addons' ),
|
73 |
+
'icon' => 'eicon-text-align-left',
|
74 |
],
|
75 |
'center' => [
|
76 |
'title' => __( 'Center', 'htmega-addons' ),
|
77 |
+
'icon' => 'eicon-text-align-center',
|
78 |
],
|
79 |
'right' => [
|
80 |
'title' => __( 'Right', 'htmega-addons' ),
|
81 |
+
'icon' => 'eicon-text-align-right',
|
82 |
],
|
83 |
'justify' => [
|
84 |
'title' => __( 'Justified', 'htmega-addons' ),
|
85 |
+
'icon' => 'eicon-text-align-justify',
|
86 |
],
|
87 |
],
|
88 |
'prefix_class' => 'elementor-align-%s',
|
113 |
$have_posts[ $post->ID ] = true;
|
114 |
// End avoid editor recursion
|
115 |
|
116 |
+
// End avoid editor recursion
|
117 |
+
if ( htmega_is_elementor_version( '>=', '3.2.0' ) ){
|
118 |
+
$build_width = Elementor::$instance->documents->get( $post->ID )->is_built_with_elementor();
|
119 |
+
}else{
|
120 |
+
$build_width = Elementor::$instance->db->is_built_with_elementor( $post->ID );
|
121 |
+
}
|
122 |
+
if( $build_width ){
|
123 |
echo Elementor::instance()->frontend->get_builder_content( $post->ID, true );
|
124 |
}else{
|
125 |
echo apply_filters( 'the_content', get_the_content() );
|
extensions/ht-builder/widgets/bl_post_excerpt.php
CHANGED
@@ -70,21 +70,21 @@ class Bl_Post_Excerpt_ELement extends Widget_Base {
|
|
70 |
'options' => [
|
71 |
'left' => [
|
72 |
'title' => __( 'Left', 'htmega-addons' ),
|
73 |
-
'icon' => '
|
74 |
],
|
75 |
'center' => [
|
76 |
'title' => __( 'Center', 'htmega-addons' ),
|
77 |
-
'icon' => '
|
78 |
],
|
79 |
'right' => [
|
80 |
'title' => __( 'Right', 'htmega-addons' ),
|
81 |
-
'icon' => '
|
82 |
],
|
83 |
'justify' => [
|
84 |
'title' => __( 'Justified', 'htmega-addons' ),
|
85 |
-
'icon' => '
|
86 |
],
|
87 |
-
],
|
88 |
'prefix_class' => 'elementor-align-%s',
|
89 |
'default' => 'left',
|
90 |
]
|
70 |
'options' => [
|
71 |
'left' => [
|
72 |
'title' => __( 'Left', 'htmega-addons' ),
|
73 |
+
'icon' => 'eicon-text-align-left',
|
74 |
],
|
75 |
'center' => [
|
76 |
'title' => __( 'Center', 'htmega-addons' ),
|
77 |
+
'icon' => 'eicon-text-align-center',
|
78 |
],
|
79 |
'right' => [
|
80 |
'title' => __( 'Right', 'htmega-addons' ),
|
81 |
+
'icon' => 'eicon-text-align-right',
|
82 |
],
|
83 |
'justify' => [
|
84 |
'title' => __( 'Justified', 'htmega-addons' ),
|
85 |
+
'icon' => 'eicon-text-align-justify',
|
86 |
],
|
87 |
+
],
|
88 |
'prefix_class' => 'elementor-align-%s',
|
89 |
'default' => 'left',
|
90 |
]
|
extensions/ht-builder/widgets/bl_post_featured_image.php
CHANGED
@@ -69,17 +69,17 @@ class Bl_Post_Featured_Image_ELement extends Widget_Base {
|
|
69 |
'options' => [
|
70 |
'left' => [
|
71 |
'title' => __( 'Left', 'htmega-addons' ),
|
72 |
-
'icon' => '
|
73 |
],
|
74 |
'center' => [
|
75 |
'title' => __( 'Center', 'htmega-addons' ),
|
76 |
-
'icon' => '
|
77 |
],
|
78 |
'right' => [
|
79 |
'title' => __( 'Right', 'htmega-addons' ),
|
80 |
-
'icon' => '
|
81 |
-
]
|
82 |
-
],
|
83 |
'prefix_class' => 'elementor-align-%s',
|
84 |
'default' => 'left',
|
85 |
]
|
69 |
'options' => [
|
70 |
'left' => [
|
71 |
'title' => __( 'Left', 'htmega-addons' ),
|
72 |
+
'icon' => 'eicon-text-align-left',
|
73 |
],
|
74 |
'center' => [
|
75 |
'title' => __( 'Center', 'htmega-addons' ),
|
76 |
+
'icon' => 'eicon-text-align-center',
|
77 |
],
|
78 |
'right' => [
|
79 |
'title' => __( 'Right', 'htmega-addons' ),
|
80 |
+
'icon' => 'eicon-text-align-right',
|
81 |
+
]
|
82 |
+
],
|
83 |
'prefix_class' => 'elementor-align-%s',
|
84 |
'default' => 'left',
|
85 |
]
|
extensions/ht-builder/widgets/bl_post_meta_info.php
CHANGED
@@ -43,15 +43,21 @@ class Bl_Post_Meta_Info_ELement extends Widget_Base {
|
|
43 |
$this->add_control(
|
44 |
'layout',
|
45 |
[
|
46 |
-
'label' =>
|
47 |
-
'type' => Controls_Manager::
|
48 |
'default' => 'default',
|
49 |
'options' => [
|
50 |
-
'default'
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
],
|
53 |
]
|
54 |
-
);
|
55 |
|
56 |
$repeater = new Repeater();
|
57 |
|
@@ -725,7 +731,7 @@ class Bl_Post_Meta_Info_ELement extends Widget_Base {
|
|
725 |
|
726 |
if ( empty( $items_html ) ) { return; }
|
727 |
|
728 |
-
echo '<ul class="htmeta-info meta-layout-'.esc_attr($settings['layout']).'">'
|
729 |
|
730 |
}
|
731 |
|
43 |
$this->add_control(
|
44 |
'layout',
|
45 |
[
|
46 |
+
'label' => esc_html__( 'Layout', 'htmega-pro' ),
|
47 |
+
'type' => Controls_Manager::CHOOSE,
|
48 |
'default' => 'default',
|
49 |
'options' => [
|
50 |
+
'default' => [
|
51 |
+
'title' => esc_html__( 'Default', 'htmega-pro' ),
|
52 |
+
'icon' => 'eicon-editor-list-ul',
|
53 |
+
],
|
54 |
+
'inline' => [
|
55 |
+
'title' => esc_html__( 'Inline', 'htmega-pro' ),
|
56 |
+
'icon' => 'eicon-ellipsis-h',
|
57 |
+
]
|
58 |
],
|
59 |
]
|
60 |
+
);
|
61 |
|
62 |
$repeater = new Repeater();
|
63 |
|
731 |
|
732 |
if ( empty( $items_html ) ) { return; }
|
733 |
|
734 |
+
echo '<ul class="htmeta-info meta-layout-'.esc_attr($settings['layout']).'">'.$items_html.'</ul>';
|
735 |
|
736 |
}
|
737 |
|
extensions/ht-builder/widgets/bl_post_search_form.php
CHANGED
@@ -7,7 +7,7 @@ use Elementor\Widget_Base;
|
|
7 |
use Elementor\Controls_Manager;
|
8 |
use Elementor\Group_Control_Border;
|
9 |
use Elementor\Group_Control_Box_Shadow;
|
10 |
-
use Elementor\
|
11 |
use Elementor\Group_Control_Typography;
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
@@ -72,8 +72,25 @@ class Bl_Post_Search_Form_ELement extends Widget_Base {
|
|
72 |
'button_icon',
|
73 |
[
|
74 |
'label' => __( 'Icon', 'htmega-addons' ),
|
75 |
-
'type' => Controls_Manager::
|
76 |
-
'default' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
'condition' => [
|
78 |
'button_type' => 'icon',
|
79 |
]
|
@@ -315,7 +332,7 @@ class Bl_Post_Search_Form_ELement extends Widget_Base {
|
|
315 |
if( $settings['button_type'] == 'text' ){
|
316 |
echo esc_html( $settings['button_text']);
|
317 |
}else{
|
318 |
-
echo
|
319 |
}
|
320 |
?>
|
321 |
</button>
|
7 |
use Elementor\Controls_Manager;
|
8 |
use Elementor\Group_Control_Border;
|
9 |
use Elementor\Group_Control_Box_Shadow;
|
10 |
+
use Elementor\HTMega_Icon_manager;
|
11 |
use Elementor\Group_Control_Typography;
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
72 |
'button_icon',
|
73 |
[
|
74 |
'label' => __( 'Icon', 'htmega-addons' ),
|
75 |
+
'type' => Controls_Manager::ICONS,
|
76 |
+
'default' => [
|
77 |
+
'value' => 'fa fa-search',
|
78 |
+
'library' => 'solid',
|
79 |
+
],
|
80 |
+
'recommended' => [
|
81 |
+
'fa-solid' => [
|
82 |
+
'search',
|
83 |
+
'search-dollar',
|
84 |
+
'search-location',
|
85 |
+
'search-minus',
|
86 |
+
'search-plus',
|
87 |
+
],
|
88 |
+
'fa-regular' => [
|
89 |
+
'circle',
|
90 |
+
'dot-circle',
|
91 |
+
'square-full',
|
92 |
+
],
|
93 |
+
],
|
94 |
'condition' => [
|
95 |
'button_type' => 'icon',
|
96 |
]
|
332 |
if( $settings['button_type'] == 'text' ){
|
333 |
echo esc_html( $settings['button_text']);
|
334 |
}else{
|
335 |
+
echo HTMega_Icon_manager::render_icon($settings['button_icon'], ['aria-hidden' => 'true']);
|
336 |
}
|
337 |
?>
|
338 |
</button>
|
extensions/ht-builder/widgets/bl_post_title.php
CHANGED
@@ -1,143 +1,140 @@
|
|
1 |
-
<?php
|
2 |
-
namespace HTMega_Builder\Elementor\Widget;
|
3 |
-
|
4 |
-
// Elementor Classes
|
5 |
-
use Elementor\Plugin as Elementor;
|
6 |
-
use Elementor\Widget_Base;
|
7 |
-
use Elementor\Controls_Manager;
|
8 |
-
use Elementor\
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
'
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
$this->
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
'
|
89 |
-
|
90 |
-
|
91 |
-
'
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
'
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
'
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
'
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
}
|
142 |
-
|
143 |
-
}
|
1 |
+
<?php
|
2 |
+
namespace HTMega_Builder\Elementor\Widget;
|
3 |
+
|
4 |
+
// Elementor Classes
|
5 |
+
use Elementor\Plugin as Elementor;
|
6 |
+
use Elementor\Widget_Base;
|
7 |
+
use Elementor\Controls_Manager;
|
8 |
+
use Elementor\Group_Control_Typography;
|
9 |
+
|
10 |
+
|
11 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
12 |
+
|
13 |
+
class Bl_Post_Title_ELement extends Widget_Base {
|
14 |
+
|
15 |
+
public function get_name() {
|
16 |
+
return 'bl-single-blog-title';
|
17 |
+
}
|
18 |
+
|
19 |
+
public function get_title() {
|
20 |
+
return __( 'BL: Post Title', 'htmega-addons' );
|
21 |
+
}
|
22 |
+
|
23 |
+
public function get_icon() {
|
24 |
+
return 'eicon-post-title';
|
25 |
+
}
|
26 |
+
|
27 |
+
public function get_categories() {
|
28 |
+
return ['htmega_builder'];
|
29 |
+
}
|
30 |
+
|
31 |
+
protected function register_controls() {
|
32 |
+
|
33 |
+
|
34 |
+
// Post Title
|
35 |
+
$this->start_controls_section(
|
36 |
+
'blog_title_content',
|
37 |
+
[
|
38 |
+
'label' => __( 'Post Title', 'htmega-addons' ),
|
39 |
+
]
|
40 |
+
);
|
41 |
+
$this->add_control(
|
42 |
+
'blog_title_html_tag',
|
43 |
+
[
|
44 |
+
'label' => __( 'Title HTML Tag', 'htmega-addons' ),
|
45 |
+
'type' => Controls_Manager::SELECT,
|
46 |
+
'options' => htmega_html_tag_lists(),
|
47 |
+
'default' => 'h1',
|
48 |
+
]
|
49 |
+
);
|
50 |
+
|
51 |
+
$this->end_controls_section();
|
52 |
+
|
53 |
+
// Style
|
54 |
+
$this->start_controls_section(
|
55 |
+
'blog_title_style_section',
|
56 |
+
array(
|
57 |
+
'label' => __( 'Post Title', 'htmega-addons' ),
|
58 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
59 |
+
)
|
60 |
+
);
|
61 |
+
|
62 |
+
$this->add_control(
|
63 |
+
'blog_title_color',
|
64 |
+
[
|
65 |
+
'label' => __( 'Title Color', 'htmega-addons' ),
|
66 |
+
'type' => Controls_Manager::COLOR,
|
67 |
+
'selectors' => [
|
68 |
+
'{{WRAPPER}} .entry-title' => 'color: {{VALUE}};',
|
69 |
+
],
|
70 |
+
]
|
71 |
+
);
|
72 |
+
|
73 |
+
$this->add_group_control(
|
74 |
+
Group_Control_Typography::get_type(),
|
75 |
+
array(
|
76 |
+
'name' => 'blog_title_typography',
|
77 |
+
'label' => __( 'Typography', 'htmega-addons' ),
|
78 |
+
'selector' => '{{WRAPPER}} .entry-title',
|
79 |
+
)
|
80 |
+
);
|
81 |
+
|
82 |
+
$this->add_responsive_control(
|
83 |
+
'blog_title_margin',
|
84 |
+
[
|
85 |
+
'label' => __( 'Margin', 'htmega-addons' ),
|
86 |
+
'type' => Controls_Manager::DIMENSIONS,
|
87 |
+
'size_units' => [ 'px', '%', 'em' ],
|
88 |
+
'selectors' => [
|
89 |
+
'{{WRAPPER}} .entry-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
90 |
+
],
|
91 |
+
'separator' => 'before',
|
92 |
+
]
|
93 |
+
);
|
94 |
+
|
95 |
+
$this->add_responsive_control(
|
96 |
+
'blog_title_align',
|
97 |
+
[
|
98 |
+
'label' => __( 'Alignment', 'htmega-addons' ),
|
99 |
+
'type' => Controls_Manager::CHOOSE,
|
100 |
+
'options' => [
|
101 |
+
'left' => [
|
102 |
+
'title' => __( 'Left', 'htmega-addons' ),
|
103 |
+
'icon' => 'eicon-text-align-left',
|
104 |
+
],
|
105 |
+
'center' => [
|
106 |
+
'title' => __( 'Center', 'htmega-addons' ),
|
107 |
+
'icon' => 'eicon-text-align-center',
|
108 |
+
],
|
109 |
+
'right' => [
|
110 |
+
'title' => __( 'Right', 'htmega-addons' ),
|
111 |
+
'icon' => 'eicon-text-align-right',
|
112 |
+
],
|
113 |
+
'justify' => [
|
114 |
+
'title' => __( 'Justified', 'htmega-addons' ),
|
115 |
+
'icon' => 'eicon-text-align-justify',
|
116 |
+
],
|
117 |
+
],
|
118 |
+
'prefix_class' => 'elementor-align-%s',
|
119 |
+
'default' => 'left',
|
120 |
+
]
|
121 |
+
);
|
122 |
+
|
123 |
+
$this->end_controls_section();
|
124 |
+
|
125 |
+
}
|
126 |
+
|
127 |
+
protected function render( $instance = [] ) {
|
128 |
+
$settings = $this->get_settings_for_display();
|
129 |
+
|
130 |
+
$title_tag = htmega_validate_html_tag( $settings['blog_title_html_tag'] );
|
131 |
+
|
132 |
+
if( Elementor::instance()->editor->is_edit_mode() ){
|
133 |
+
echo sprintf( '<%1$s class="entry-title">' . __('Blog Title', 'htmega-addons' ). '</%1$s>', $title_tag );
|
134 |
+
}else{
|
135 |
+
echo sprintf( the_title( '<%1$s class="entry-title">', '</%1$s>', false ), $title_tag );
|
136 |
+
}
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
}
|
|
|
|
|
|
extensions/ht-builder/widgets/bl_site_logo.php
CHANGED
@@ -157,19 +157,19 @@ class Bl_Site_Logo_ELement extends Widget_Base {
|
|
157 |
'options' => [
|
158 |
'left' => [
|
159 |
'title' => __( 'Left', 'htmega-addons' ),
|
160 |
-
'icon' => '
|
161 |
],
|
162 |
'center' => [
|
163 |
'title' => __( 'Center', 'htmega-addons' ),
|
164 |
-
'icon' => '
|
165 |
],
|
166 |
'right' => [
|
167 |
'title' => __( 'Right', 'htmega-addons' ),
|
168 |
-
'icon' => '
|
169 |
],
|
170 |
'justify' => [
|
171 |
'title' => __( 'Justified', 'htmega-addons' ),
|
172 |
-
'icon' => '
|
173 |
],
|
174 |
],
|
175 |
'prefix_class' => 'elementor-align-%s',
|
157 |
'options' => [
|
158 |
'left' => [
|
159 |
'title' => __( 'Left', 'htmega-addons' ),
|
160 |
+
'icon' => 'eicon-text-align-left',
|
161 |
],
|
162 |
'center' => [
|
163 |
'title' => __( 'Center', 'htmega-addons' ),
|
164 |
+
'icon' => 'eicon-text-align-center',
|
165 |
],
|
166 |
'right' => [
|
167 |
'title' => __( 'Right', 'htmega-addons' ),
|
168 |
+
'icon' => 'eicon-text-align-right',
|
169 |
],
|
170 |
'justify' => [
|
171 |
'title' => __( 'Justified', 'htmega-addons' ),
|
172 |
+
'icon' => 'eicon-text-align-justify',
|
173 |
],
|
174 |
],
|
175 |
'prefix_class' => 'elementor-align-%s',
|
extensions/ht-builder/widgets/bl_site_title.php
CHANGED
@@ -1,178 +1,178 @@
|
|
1 |
-
<?php
|
2 |
-
namespace HTMega_Builder\Elementor\Widget;
|
3 |
-
|
4 |
-
// Elementor Classes
|
5 |
-
use Elementor\Plugin as Elementor;
|
6 |
-
use Elementor\Widget_Base;
|
7 |
-
use Elementor\Controls_Manager;
|
8 |
-
use Elementor\Group_Control_Border;
|
9 |
-
use Elementor\Group_Control_Box_Shadow;
|
10 |
-
use Elementor\Group_Control_Text_Shadow;
|
11 |
-
use Elementor\Group_Control_Typography;
|
12 |
-
|
13 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
-
|
15 |
-
class Bl_Site_Title_ELement extends Widget_Base {
|
16 |
-
|
17 |
-
public function get_name() {
|
18 |
-
return 'bl-site-title';
|
19 |
-
}
|
20 |
-
|
21 |
-
public function get_title() {
|
22 |
-
return __( 'BL: Site Title', 'htmega-addons' );
|
23 |
-
}
|
24 |
-
|
25 |
-
public function get_icon() {
|
26 |
-
return 'eicon-site-title';
|
27 |
-
}
|
28 |
-
|
29 |
-
public function get_categories() {
|
30 |
-
return ['htmega_builder'];
|
31 |
-
}
|
32 |
-
|
33 |
-
protected function register_controls() {
|
34 |
-
|
35 |
-
// Title
|
36 |
-
$this->start_controls_section(
|
37 |
-
'title_content',
|
38 |
-
[
|
39 |
-
'label' => __( 'Site Title', 'htmega-addons' ),
|
40 |
-
]
|
41 |
-
);
|
42 |
-
|
43 |
-
$this->add_control(
|
44 |
-
'title_html_tag',
|
45 |
-
[
|
46 |
-
'label' => __( 'Title HTML Tag', 'htmega-addons' ),
|
47 |
-
'type' => Controls_Manager::SELECT,
|
48 |
-
'options' => htmega_html_tag_lists(),
|
49 |
-
'default' => 'h1',
|
50 |
-
]
|
51 |
-
);
|
52 |
-
|
53 |
-
$this->end_controls_section();
|
54 |
-
|
55 |
-
|
56 |
-
// Style
|
57 |
-
$this->start_controls_section(
|
58 |
-
'title_style_section',
|
59 |
-
array(
|
60 |
-
'label' => __( 'Site Title', 'htmega-addons' ),
|
61 |
-
'tab' => Controls_Manager::TAB_STYLE,
|
62 |
-
)
|
63 |
-
);
|
64 |
-
|
65 |
-
$this->add_control(
|
66 |
-
'title_color',
|
67 |
-
[
|
68 |
-
'label' => __( 'Color', 'htmega-addons' ),
|
69 |
-
'type' => Controls_Manager::COLOR,
|
70 |
-
'selectors' => [
|
71 |
-
'{{WRAPPER}} .htsite-title' => 'color: {{VALUE}};',
|
72 |
-
],
|
73 |
-
]
|
74 |
-
);
|
75 |
-
|
76 |
-
$this->add_group_control(
|
77 |
-
Group_Control_Typography::get_type(),
|
78 |
-
array(
|
79 |
-
'name' => 'title_typography',
|
80 |
-
'label' => __( 'Typography', 'htmega-addons' ),
|
81 |
-
'selector' => '{{WRAPPER}} .htsite-title',
|
82 |
-
)
|
83 |
-
);
|
84 |
-
|
85 |
-
$this->add_group_control(
|
86 |
-
Group_Control_Border::get_type(),
|
87 |
-
[
|
88 |
-
'name' => 'title_border',
|
89 |
-
'label' => __( 'Border', 'htmega-addons' ),
|
90 |
-
'selector' => '{{WRAPPER}} .htsite-title',
|
91 |
-
'separator' => 'before',
|
92 |
-
]
|
93 |
-
);
|
94 |
-
|
95 |
-
$this->add_responsive_control(
|
96 |
-
'title_border_radius',
|
97 |
-
[
|
98 |
-
'label' => __( 'Border Radius', 'htmega-addons' ),
|
99 |
-
'type' => Controls_Manager::DIMENSIONS,
|
100 |
-
'size_units' => [ 'px', '%', 'em' ],
|
101 |
-
'selectors' => [
|
102 |
-
'{{WRAPPER}} .htsite-title' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
103 |
-
],
|
104 |
-
]
|
105 |
-
);
|
106 |
-
|
107 |
-
$this->add_responsive_control(
|
108 |
-
'title_padding',
|
109 |
-
[
|
110 |
-
'label' => __( 'Padding', 'htmega-addons' ),
|
111 |
-
'type' => Controls_Manager::DIMENSIONS,
|
112 |
-
'size_units' => [ 'px', '%', 'em' ],
|
113 |
-
'selectors' => [
|
114 |
-
'{{WRAPPER}} .htsite-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
115 |
-
],
|
116 |
-
'separator' => 'before',
|
117 |
-
]
|
118 |
-
);
|
119 |
-
|
120 |
-
$this->add_responsive_control(
|
121 |
-
'title_margin',
|
122 |
-
[
|
123 |
-
'label' => __( 'Margin', 'htmega-addons' ),
|
124 |
-
'type' => Controls_Manager::DIMENSIONS,
|
125 |
-
'size_units' => [ 'px', '%', 'em' ],
|
126 |
-
'selectors' => [
|
127 |
-
'{{WRAPPER}} .htsite-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
128 |
-
],
|
129 |
-
]
|
130 |
-
);
|
131 |
-
|
132 |
-
$this->add_responsive_control(
|
133 |
-
'title_align',
|
134 |
-
[
|
135 |
-
'label' => __( 'Alignment', 'htmega-addons' ),
|
136 |
-
'type' => Controls_Manager::CHOOSE,
|
137 |
-
'options' => [
|
138 |
-
'left' => [
|
139 |
-
'title' => __( 'Left', 'htmega-addons' ),
|
140 |
-
'icon' => '
|
141 |
-
],
|
142 |
-
'center' => [
|
143 |
-
'title' => __( 'Center', 'htmega-addons' ),
|
144 |
-
'icon' => '
|
145 |
-
],
|
146 |
-
'right' => [
|
147 |
-
'title' => __( 'Right', 'htmega-addons' ),
|
148 |
-
'icon' => '
|
149 |
-
],
|
150 |
-
'justify' => [
|
151 |
-
'title' => __( 'Justified', 'htmega-addons' ),
|
152 |
-
'icon' => '
|
153 |
-
],
|
154 |
-
],
|
155 |
-
'prefix_class' => 'elementor-align-%s',
|
156 |
-
'default' => 'left',
|
157 |
-
]
|
158 |
-
);
|
159 |
-
|
160 |
-
$this->end_controls_section();
|
161 |
-
|
162 |
-
}
|
163 |
-
|
164 |
-
protected function render( $instance = [] ) {
|
165 |
-
$settings = $this->get_settings_for_display();
|
166 |
-
|
167 |
-
$title_tag = htmega_validate_html_tag( $settings['title_html_tag'] );
|
168 |
-
|
169 |
-
if( Elementor::instance()->editor->is_edit_mode() ){
|
170 |
-
echo sprintf( '<%1$s class="htsite-title">' . __('Site Title', 'htmega-addons' ). '</%1$s>', $title_tag );
|
171 |
-
}else{
|
172 |
-
echo sprintf( '<%1$s class="htsite-title">%2$s</%1$s>' , $title_tag, get_bloginfo( 'name', 'display' ) );
|
173 |
-
}
|
174 |
-
}
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
}
|
1 |
+
<?php
|
2 |
+
namespace HTMega_Builder\Elementor\Widget;
|
3 |
+
|
4 |
+
// Elementor Classes
|
5 |
+
use Elementor\Plugin as Elementor;
|
6 |
+
use Elementor\Widget_Base;
|
7 |
+
use Elementor\Controls_Manager;
|
8 |
+
use Elementor\Group_Control_Border;
|
9 |
+
use Elementor\Group_Control_Box_Shadow;
|
10 |
+
use Elementor\Group_Control_Text_Shadow;
|
11 |
+
use Elementor\Group_Control_Typography;
|
12 |
+
|
13 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
+
|
15 |
+
class Bl_Site_Title_ELement extends Widget_Base {
|
16 |
+
|
17 |
+
public function get_name() {
|
18 |
+
return 'bl-site-title';
|
19 |
+
}
|
20 |
+
|
21 |
+
public function get_title() {
|
22 |
+
return __( 'BL: Site Title', 'htmega-addons' );
|
23 |
+
}
|
24 |
+
|
25 |
+
public function get_icon() {
|
26 |
+
return 'eicon-site-title';
|
27 |
+
}
|
28 |
+
|
29 |
+
public function get_categories() {
|
30 |
+
return ['htmega_builder'];
|
31 |
+
}
|
32 |
+
|
33 |
+
protected function register_controls() {
|
34 |
+
|
35 |
+
// Title
|
36 |
+
$this->start_controls_section(
|
37 |
+
'title_content',
|
38 |
+
[
|
39 |
+
'label' => __( 'Site Title', 'htmega-addons' ),
|
40 |
+
]
|
41 |
+
);
|
42 |
+
|
43 |
+
$this->add_control(
|
44 |
+
'title_html_tag',
|
45 |
+
[
|
46 |
+
'label' => __( 'Title HTML Tag', 'htmega-addons' ),
|
47 |
+
'type' => Controls_Manager::SELECT,
|
48 |
+
'options' => htmega_html_tag_lists(),
|
49 |
+
'default' => 'h1',
|
50 |
+
]
|
51 |
+
);
|
52 |
+
|
53 |
+
$this->end_controls_section();
|
54 |
+
|
55 |
+
|
56 |
+
// Style
|
57 |
+
$this->start_controls_section(
|
58 |
+
'title_style_section',
|
59 |
+
array(
|
60 |
+
'label' => __( 'Site Title', 'htmega-addons' ),
|
61 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
62 |
+
)
|
63 |
+
);
|
64 |
+
|
65 |
+
$this->add_control(
|
66 |
+
'title_color',
|
67 |
+
[
|
68 |
+
'label' => __( 'Color', 'htmega-addons' ),
|
69 |
+
'type' => Controls_Manager::COLOR,
|
70 |
+
'selectors' => [
|
71 |
+
'{{WRAPPER}} .htsite-title' => 'color: {{VALUE}};',
|
72 |
+
],
|
73 |
+
]
|
74 |
+
);
|
75 |
+
|
76 |
+
$this->add_group_control(
|
77 |
+
Group_Control_Typography::get_type(),
|
78 |
+
array(
|
79 |
+
'name' => 'title_typography',
|
80 |
+
'label' => __( 'Typography', 'htmega-addons' ),
|
81 |
+
'selector' => '{{WRAPPER}} .htsite-title',
|
82 |
+
)
|
83 |
+
);
|
84 |
+
|
85 |
+
$this->add_group_control(
|
86 |
+
Group_Control_Border::get_type(),
|
87 |
+
[
|
88 |
+
'name' => 'title_border',
|
89 |
+
'label' => __( 'Border', 'htmega-addons' ),
|
90 |
+
'selector' => '{{WRAPPER}} .htsite-title',
|
91 |
+
'separator' => 'before',
|
92 |
+
]
|
93 |
+
);
|
94 |
+
|
95 |
+
$this->add_responsive_control(
|
96 |
+
'title_border_radius',
|
97 |
+
[
|
98 |
+
'label' => __( 'Border Radius', 'htmega-addons' ),
|
99 |
+
'type' => Controls_Manager::DIMENSIONS,
|
100 |
+
'size_units' => [ 'px', '%', 'em' ],
|
101 |
+
'selectors' => [
|
102 |
+
'{{WRAPPER}} .htsite-title' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
103 |
+
],
|
104 |
+
]
|
105 |
+
);
|
106 |
+
|
107 |
+
$this->add_responsive_control(
|
108 |
+
'title_padding',
|
109 |
+
[
|
110 |
+
'label' => __( 'Padding', 'htmega-addons' ),
|
111 |
+
'type' => Controls_Manager::DIMENSIONS,
|
112 |
+
'size_units' => [ 'px', '%', 'em' ],
|
113 |
+
'selectors' => [
|
114 |
+
'{{WRAPPER}} .htsite-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
115 |
+
],
|
116 |
+
'separator' => 'before',
|
117 |
+
]
|
118 |
+
);
|
119 |
+
|
120 |
+
$this->add_responsive_control(
|
121 |
+
'title_margin',
|
122 |
+
[
|
123 |
+
'label' => __( 'Margin', 'htmega-addons' ),
|
124 |
+
'type' => Controls_Manager::DIMENSIONS,
|
125 |
+
'size_units' => [ 'px', '%', 'em' ],
|
126 |
+
'selectors' => [
|
127 |
+
'{{WRAPPER}} .htsite-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
128 |
+
],
|
129 |
+
]
|
130 |
+
);
|
131 |
+
|
132 |
+
$this->add_responsive_control(
|
133 |
+
'title_align',
|
134 |
+
[
|
135 |
+
'label' => __( 'Alignment', 'htmega-addons' ),
|
136 |
+
'type' => Controls_Manager::CHOOSE,
|
137 |
+
'options' => [
|
138 |
+
'left' => [
|
139 |
+
'title' => __( 'Left', 'htmega-addons' ),
|
140 |
+
'icon' => 'eicon-text-align-left',
|
141 |
+
],
|
142 |
+
'center' => [
|
143 |
+
'title' => __( 'Center', 'htmega-addons' ),
|
144 |
+
'icon' => 'eicon-text-align-center',
|
145 |
+
],
|
146 |
+
'right' => [
|
147 |
+
'title' => __( 'Right', 'htmega-addons' ),
|
148 |
+
'icon' => 'eicon-text-align-right',
|
149 |
+
],
|
150 |
+
'justify' => [
|
151 |
+
'title' => __( 'Justified', 'htmega-addons' ),
|
152 |
+
'icon' => 'eicon-text-align-justify',
|
153 |
+
],
|
154 |
+
],
|
155 |
+
'prefix_class' => 'elementor-align-%s',
|
156 |
+
'default' => 'left',
|
157 |
+
]
|
158 |
+
);
|
159 |
+
|
160 |
+
$this->end_controls_section();
|
161 |
+
|
162 |
+
}
|
163 |
+
|
164 |
+
protected function render( $instance = [] ) {
|
165 |
+
$settings = $this->get_settings_for_display();
|
166 |
+
|
167 |
+
$title_tag = htmega_validate_html_tag( $settings['title_html_tag'] );
|
168 |
+
|
169 |
+
if( Elementor::instance()->editor->is_edit_mode() ){
|
170 |
+
echo sprintf( '<%1$s class="htsite-title">' . __('Site Title', 'htmega-addons' ). '</%1$s>', $title_tag );
|
171 |
+
}else{
|
172 |
+
echo sprintf( '<%1$s class="htsite-title">%2$s</%1$s>' , $title_tag, get_bloginfo( 'name', 'display' ) );
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
+
}
|
htmega_addons_elementor.php
CHANGED
@@ -5,17 +5,17 @@
|
|
5 |
* Plugin URI: https://wphtmega.com/
|
6 |
* Author: HasThemes
|
7 |
* Author URI: https://hasthemes.com/
|
8 |
-
* Version: 1.9.
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: htmega-addons
|
12 |
* Domain Path: /languages
|
13 |
-
* Elementor tested up to: 3.
|
14 |
-
* Elementor Pro tested up to: 3.7.
|
15 |
*/
|
16 |
|
17 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
18 |
-
define( 'HTMEGA_VERSION', '1.9.
|
19 |
define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
|
20 |
define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
|
21 |
define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
|
5 |
* Plugin URI: https://wphtmega.com/
|
6 |
* Author: HasThemes
|
7 |
* Author URI: https://hasthemes.com/
|
8 |
+
* Version: 1.9.3
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: htmega-addons
|
12 |
* Domain Path: /languages
|
13 |
+
* Elementor tested up to: 3.7.1
|
14 |
+
* Elementor Pro tested up to: 3.7.3
|
15 |
*/
|
16 |
|
17 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
18 |
+
define( 'HTMEGA_VERSION', '1.9.3' );
|
19 |
define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
|
20 |
define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
|
21 |
define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
|
includes/class.assests.php
CHANGED
@@ -404,7 +404,7 @@ if ( !class_exists( 'HTMega_Elementor_Addons_Assests' ) ) {
|
|
404 |
*/
|
405 |
public function editor_scripts() {
|
406 |
wp_enqueue_style('htmega-element-editor', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-elementor-editor.css',['elementor-editor'], HTMEGA_VERSION );
|
407 |
-
wp_enqueue_script("htmega-widgets-editor", HTMEGA_ADDONS_PL_URL ."/assets/js/htmega-widgets-editor.js", array("jquery"),
|
408 |
}
|
409 |
|
410 |
/**
|
404 |
*/
|
405 |
public function editor_scripts() {
|
406 |
wp_enqueue_style('htmega-element-editor', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-elementor-editor.css',['elementor-editor'], HTMEGA_VERSION );
|
407 |
+
wp_enqueue_script("htmega-widgets-editor", HTMEGA_ADDONS_PL_URL ."/assets/js/htmega-widgets-editor.js", array("jquery"),HTMEGA_VERSION,true);
|
408 |
}
|
409 |
|
410 |
/**
|
includes/class.htmega.php
CHANGED
@@ -39,6 +39,8 @@ final class HTMega_Addons_Elementor {
|
|
39 |
|
40 |
// Register Plugin Active Hook
|
41 |
register_activation_hook( HTMEGA_ADDONS_PL_ROOT, [ $this, 'plugin_activate_hook'] );
|
|
|
|
|
42 |
}
|
43 |
|
44 |
/**
|
@@ -94,12 +96,32 @@ final class HTMega_Addons_Elementor {
|
|
94 |
* [$template_info] Assign template data
|
95 |
* @var [type]
|
96 |
*/
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
99 |
}
|
100 |
|
101 |
}
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
/**
|
104 |
* [add_image_size]
|
105 |
* @return [void]
|
@@ -222,8 +244,6 @@ final class HTMega_Addons_Elementor {
|
|
222 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/class.assests.php' );
|
223 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/admin-init.php' );
|
224 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/widgets_control.php' );
|
225 |
-
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/include/class.htmega-elementor-template-library.php' );
|
226 |
-
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/include/class.library-source.php' );
|
227 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/class.htmega-icon-manager.php' );
|
228 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/include/custom-control/preset-manage.php' );
|
229 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/include/custom-control/preset-select.php' );
|
39 |
|
40 |
// Register Plugin Active Hook
|
41 |
register_activation_hook( HTMEGA_ADDONS_PL_ROOT, [ $this, 'plugin_activate_hook'] );
|
42 |
+
// Delete Transient on update plugin
|
43 |
+
add_action( 'upgrader_process_complete', [$this, 'upgrade_function'] ,10, 2);
|
44 |
}
|
45 |
|
46 |
/**
|
96 |
* [$template_info] Assign template data
|
97 |
* @var [type]
|
98 |
*/
|
99 |
+
|
100 |
+
if(isset($_GET['page']) && 'htmega_addons_templates_library' === $_GET['page'] ){
|
101 |
+
if( is_admin() && class_exists('HTMega_Template_Library') ){
|
102 |
+
self::$template_info = HTMega_Template_Library::instance()->get_templates_info();
|
103 |
+
}
|
104 |
}
|
105 |
|
106 |
}
|
107 |
|
108 |
+
/**
|
109 |
+
* [upgrader_process_complete] Plugins Update Hook
|
110 |
+
* @return [void]
|
111 |
+
*/
|
112 |
+
public function upgrade_function($upgrader_object, $options){
|
113 |
+
$plugin_path_name = plugin_basename( HTMEGA_ADDONS_PL_ROOT );
|
114 |
+
if ($options['action'] == 'update' && $options['type'] == 'plugin' ) {
|
115 |
+
foreach($options['plugins'] as $each_plugin) {
|
116 |
+
if ($each_plugin==$plugin_path_name) {
|
117 |
+
delete_transient('htmega_template_info');
|
118 |
+
delete_transient('htmega_template_request_pending');
|
119 |
+
delete_transient('htmega_severdown_request_pending');
|
120 |
+
}
|
121 |
+
}
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
/**
|
126 |
* [add_image_size]
|
127 |
* @return [void]
|
244 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/class.assests.php' );
|
245 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/admin-init.php' );
|
246 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/widgets_control.php' );
|
|
|
|
|
247 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/class.htmega-icon-manager.php' );
|
248 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/include/custom-control/preset-manage.php' );
|
249 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/include/custom-control/preset-select.php' );
|
includes/widgets/htmega_carousel.php
CHANGED
@@ -559,7 +559,7 @@ class HTMega_Elementor_Widget_Carousel extends Widget_Base {
|
|
559 |
'default' => '#ffffff',
|
560 |
'selectors' => [
|
561 |
'{{WRAPPER}} .htmega-carousel-activation .slick-arrow' => 'color: {{VALUE}};',
|
562 |
-
'{{WRAPPER}} .htmega-carousel-activation .slick-arrow svg path' => '
|
563 |
],
|
564 |
]
|
565 |
);
|
@@ -587,6 +587,7 @@ class HTMega_Elementor_Widget_Carousel extends Widget_Base {
|
|
587 |
],
|
588 |
'selectors' => [
|
589 |
'{{WRAPPER}} .htmega-carousel-activation .slick-arrow' => 'font-size: {{SIZE}}{{UNIT}};',
|
|
|
590 |
],
|
591 |
]
|
592 |
);
|
559 |
'default' => '#ffffff',
|
560 |
'selectors' => [
|
561 |
'{{WRAPPER}} .htmega-carousel-activation .slick-arrow' => 'color: {{VALUE}};',
|
562 |
+
'{{WRAPPER}} .htmega-carousel-activation .slick-arrow svg path' => 'fill: {{VALUE}};',
|
563 |
],
|
564 |
]
|
565 |
);
|
587 |
],
|
588 |
'selectors' => [
|
589 |
'{{WRAPPER}} .htmega-carousel-activation .slick-arrow' => 'font-size: {{SIZE}}{{UNIT}};',
|
590 |
+
'{{WRAPPER}} .htmega-carousel-activation .slick-arrow svg' => 'width: {{SIZE}}{{UNIT}};',
|
591 |
],
|
592 |
]
|
593 |
);
|
includes/widgets/htmega_singlepost.php
CHANGED
@@ -66,18 +66,7 @@ class HTMega_Elementor_Widget_SinglePost extends Widget_Base {
|
|
66 |
]
|
67 |
]
|
68 |
);
|
69 |
-
|
70 |
-
|
71 |
-
$this->add_control(
|
72 |
-
'post_name',
|
73 |
-
[
|
74 |
-
'label' => esc_html__( 'Post Name', 'htmega-addons' ),
|
75 |
-
'type' => Controls_Manager::SELECT2,
|
76 |
-
'label_block' => true,
|
77 |
-
'multiple' => true,
|
78 |
-
'options' => htmega_post_name(),
|
79 |
-
]
|
80 |
-
);
|
81 |
|
82 |
$this->end_controls_section();
|
83 |
|
@@ -522,14 +511,21 @@ class HTMega_Elementor_Widget_SinglePost extends Widget_Base {
|
|
522 |
$this->add_render_attribute( 'htmega_single_post_attr', 'class', 'htmega-single-post htmega-single-post-style-'.$settings['post_style']." ". $sectionid );
|
523 |
|
524 |
|
525 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
526 |
if( $get_post_name >= 1 ) {
|
527 |
$posts_ids = implode(', ', $get_post_name);
|
528 |
} else { $posts_ids = ''; }
|
529 |
$post_names = explode(',', $posts_ids);
|
530 |
|
531 |
$args = array(
|
532 |
-
'post_type' =>
|
533 |
'post_status' => 'publish',
|
534 |
'ignore_sticky_posts' => 1,
|
535 |
'posts_per_page' => -1,
|
@@ -610,5 +606,52 @@ class HTMega_Elementor_Widget_SinglePost extends Widget_Base {
|
|
610 |
<?php
|
611 |
}
|
612 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
}
|
66 |
]
|
67 |
]
|
68 |
);
|
69 |
+
$this->get_posts_by_post_type();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
$this->end_controls_section();
|
72 |
|
511 |
$this->add_render_attribute( 'htmega_single_post_attr', 'class', 'htmega-single-post htmega-single-post-style-'.$settings['post_style']." ". $sectionid );
|
512 |
|
513 |
|
514 |
+
$select_post_type = $settings['select_post_type'];
|
515 |
+
if( 'post'== $select_post_type ){
|
516 |
+
$get_post_name = $settings['post_name'];
|
517 |
+
} else {
|
518 |
+
$get_post_name = $settings[$select_post_type.'_post_name'];
|
519 |
+
}
|
520 |
+
|
521 |
+
|
522 |
if( $get_post_name >= 1 ) {
|
523 |
$posts_ids = implode(', ', $get_post_name);
|
524 |
} else { $posts_ids = ''; }
|
525 |
$post_names = explode(',', $posts_ids);
|
526 |
|
527 |
$args = array(
|
528 |
+
'post_type' => $select_post_type,
|
529 |
'post_status' => 'publish',
|
530 |
'ignore_sticky_posts' => 1,
|
531 |
'posts_per_page' => -1,
|
606 |
<?php
|
607 |
}
|
608 |
}
|
609 |
+
public function get_posts_by_post_type(){
|
610 |
+
|
611 |
+
$this->add_control(
|
612 |
+
'select_post_type',
|
613 |
+
[
|
614 |
+
'label' => esc_html__( 'Select Post Type', 'htmega-addons' ),
|
615 |
+
'type' => Controls_Manager::SELECT,
|
616 |
+
'default' => 'bottom',
|
617 |
+
'options' => htmega_get_post_types(),
|
618 |
+
'default' => 'post',
|
619 |
+
]
|
620 |
+
);
|
621 |
|
622 |
+
$post_list = htmega_get_post_types();
|
623 |
+
foreach( $post_list as $post_key => $post_value ){
|
624 |
+
if ( 'post' == $post_key ){
|
625 |
+
$this->add_control(
|
626 |
+
'post_name',
|
627 |
+
[
|
628 |
+
'label' => esc_html__( 'Post Name', 'htmega-addons' ),
|
629 |
+
'type' => Controls_Manager::SELECT2,
|
630 |
+
'label_block' => true,
|
631 |
+
'multiple' => true,
|
632 |
+
'options' => htmega_post_name('post', -1),
|
633 |
+
'condition' => [
|
634 |
+
'select_post_type' => 'post',
|
635 |
+
],
|
636 |
+
]
|
637 |
+
);
|
638 |
+
|
639 |
+
} else {
|
640 |
+
|
641 |
+
$this->add_control(
|
642 |
+
"{$post_key}_post_name",
|
643 |
+
[
|
644 |
+
'label' => esc_html__( 'Post Name', 'htmega-pro' ),
|
645 |
+
'type' => Controls_Manager::SELECT2,
|
646 |
+
'label_block' => true,
|
647 |
+
'options' => htmega_post_name($post_key, -1),
|
648 |
+
'multiple' => true,
|
649 |
+
'condition' => [
|
650 |
+
'select_post_type' => $post_key,
|
651 |
+
],
|
652 |
+
]
|
653 |
+
);
|
654 |
+
}
|
655 |
+
}
|
656 |
+
}
|
657 |
}
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== HT Mega – Addons for Elementor Page Builder ( Elementor Addons, Post Grid, Slider, Carousel, Mega Menu, Elementor Widgets, Elementor Templates, Accordion, Forms, Table) ===
|
2 |
Contributors: hasthemes, htplugins, devitemsllc, tarekht, zenaulislam, aslamhasib
|
3 |
Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 6.0.1
|
6 |
-
Stable tag: 1.9.
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -168,7 +168,13 @@ Choose your page layout from template list. You can easily import the template w
|
|
168 |
6. **[Social Network (Style 7) ](https://wphtmega.com/widget/elementor-social-network-widget/)** HT Mega Elementor Social Icons Widget is an efficient widget that lets you add links for all of your social media channels in just a few moments. The best part? It's as simple as adding any social media icon to any screen or page of your site.
|
169 |
7. **[Category List (Style 8) ](https://wphtmega.com/widget/elementor-category-list-widget/)** HT Mega Elementor Category List Widget is easy to active, user-friendly and customizable — saving you countless hours of time in the process of organizing your site content and categorizing them. Create an impressive list of categories with ease with this exclusive widget.
|
170 |
8. **[Taxonomy Terms (Style 5) ](https://wphtmega.com/widget/elementor-taxonomy-terms-widget/)** HT Mega Elementor Taxonomy Terms Widget for Elementor is an outstanding addon that lets you create different ways of displaying tags and categories on your website based on your needs.
|
171 |
-
9. **[Background Switcher (Style 6) ](https://wphtmega.com/widget/elementor-background-switcher-widget/)** HT Mega Elementor Background Switcher
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
**[PURCHASE HT Mega PRO FROM OUR WEBSITE]( https://wphtmega.com/pricing/ )**
|
174 |
|
@@ -210,6 +216,10 @@ Feel free to [Contact us](https://hasthemes.com/contact-us/) 💌
|
|
210 |
Visit [HasThemes](https://hasthemes.com/) for more details about HTML, Shopify and WordPress products and services.
|
211 |
|
212 |
== Changelog ==
|
|
|
|
|
|
|
|
|
213 |
= Version: 1.9.2 - Date: 2022-07-23 =
|
214 |
* Added: Slide Direction option on tablet and mobile devices in scroll navigation addon.
|
215 |
|
1 |
+
=== HT Mega – Addons for Elementor Page Builder ( Elementor Addons, Post Grid, Slider, Carousel, Mega Menu, Elementor Widgets, Elementor Templates, Accordion, Forms, Table) ===
|
2 |
Contributors: hasthemes, htplugins, devitemsllc, tarekht, zenaulislam, aslamhasib
|
3 |
Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 6.0.1
|
6 |
+
Stable tag: 1.9.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
168 |
6. **[Social Network (Style 7) ](https://wphtmega.com/widget/elementor-social-network-widget/)** HT Mega Elementor Social Icons Widget is an efficient widget that lets you add links for all of your social media channels in just a few moments. The best part? It's as simple as adding any social media icon to any screen or page of your site.
|
169 |
7. **[Category List (Style 8) ](https://wphtmega.com/widget/elementor-category-list-widget/)** HT Mega Elementor Category List Widget is easy to active, user-friendly and customizable — saving you countless hours of time in the process of organizing your site content and categorizing them. Create an impressive list of categories with ease with this exclusive widget.
|
170 |
8. **[Taxonomy Terms (Style 5) ](https://wphtmega.com/widget/elementor-taxonomy-terms-widget/)** HT Mega Elementor Taxonomy Terms Widget for Elementor is an outstanding addon that lets you create different ways of displaying tags and categories on your website based on your needs.
|
171 |
+
9. **[Background Switcher (Style 6) ](https://wphtmega.com/widget/elementor-background-switcher-widget/)** HT Mega Elementor Background Switcher Widget can help you to create a great digital experience for your customers and facilitate the process of building responsive layouts. When you hover over one of these boxes it changes the background for the whole section. Its allow you to seamlessly create a variety of layouts.
|
172 |
+
10. **[Team Carousel (Style 5) ](https://wphtmega.com/elementor-team-carousel-widget/)** With HT Mega Elementor Team Carousel Widget, you don't need to struggle to create a Team Carousel on your own. It's the easiest way to get a conversion-boosting, brand-building carousel on your website. Get all the features you need at an affordable price like slides, and custom style.
|
173 |
+
11. **[Interactive Promo (Style 15) ](https://wphtmega.com/elementor-interactive-promo-widget/)** HT Mega Elementor Interactive Promo Widget is a highly configurable widget that will let you add attractive Interactive Promo to your website. It provides you with numerous unique Interactive Promo Styles to choose from.
|
174 |
+
12. **[Icon Box (Style 7) ](https://wphtmega.com/elementor-icon-box-widget/)** HT Mega Elementor Icon Box Widget Create more engaging, persuasive, and eye-catching content. It's easy to use, and offers a variety of customization options for your project.
|
175 |
+
13. **[Page List (Style 6) ](https://wphtmega.com/elementor-page-list-widget/)** You'll finally be able to set up a page list with a horizontal or vertical layout and customize it according to your needs by using the HT Mega Elementor Page List widget.
|
176 |
+
14. **[Facebook Review (Style 3) ](https://wphtmega.com/widget/elementor-facebook-review-widget/)** HT Mega Elementor Facebook Review Widget allows you to display a stunning showcase of your Facebook page info and reviews on your website.
|
177 |
+
15. **[Breadcrumbs (Style 9) ](https://wphtmega.com/elementor-breadcrumbs-widget/)** HT Mega Elementor Breadcrumbs Widget helps you visualize your breadcrumbs in different ways with a variety of customizable options. You can easily create one to suit your needs.
|
178 |
|
179 |
**[PURCHASE HT Mega PRO FROM OUR WEBSITE]( https://wphtmega.com/pricing/ )**
|
180 |
|
216 |
Visit [HasThemes](https://hasthemes.com/) for more details about HTML, Shopify and WordPress products and services.
|
217 |
|
218 |
== Changelog ==
|
219 |
+
= Version: 1.9.3 - Date: 2022-08-16 =
|
220 |
+
* Added: Custom posts select option in single post addon
|
221 |
+
* Fixed: Designation alignment issue in team member addon
|
222 |
+
|
223 |
= Version: 1.9.2 - Date: 2022-07-23 =
|
224 |
* Added: Slide Direction option on tablet and mobile devices in scroll navigation addon.
|
225 |
|