Version Description
Download this release
Release Info
Code changes from version 1.3.9 to 1.4.0
- admin/admin-init.php +11 -8
- admin/assets/js/{admin_install_manager.js → install_manager.js} +0 -0
- admin/assets/js/{admin_scripts.js → template_library_manager.js} +0 -0
- admin/include/template-library.php +9 -112
- assets/css/htbbootstrap.css +211 -204
- assets/css/htmega-elementor-editor.css +1 -4
- htmega_addons_elementor.php +4 -3
- includes/class.assests.php +408 -0
- includes/class.htmega.php +93 -20
- includes/init.php +0 -386
- includes/widgets/htmega_single_post.php +24 -2
- languages/htmega-addons.pot +73 -69
- readme.txt +6 -1
admin/admin-init.php
CHANGED
@@ -5,7 +5,7 @@ if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
|
5 |
class HTMega_Admin_Setting{
|
6 |
|
7 |
public function __construct(){
|
8 |
-
add_action('admin_enqueue_scripts',
|
9 |
$this->HTMega_Admin_Settings_page();
|
10 |
}
|
11 |
|
@@ -49,14 +49,17 @@ class HTMega_Admin_Setting{
|
|
49 |
/*
|
50 |
* Enqueue admin scripts
|
51 |
*/
|
52 |
-
public function htmega_enqueue_admin_scripts(){
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
60 |
|
61 |
}
|
62 |
|
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 |
|
49 |
/*
|
50 |
* Enqueue admin scripts
|
51 |
*/
|
52 |
+
public function htmega_enqueue_admin_scripts( $hook ){
|
53 |
|
54 |
+
if( $hook === 'htmega-addons_page_htmega_addons_templates_library' || $hook === 'htmega-addons_page_htmega_addons_options' ){
|
55 |
+
// wp core styles
|
56 |
+
wp_enqueue_style( 'wp-jquery-ui-dialog' );
|
57 |
+
wp_enqueue_style( 'htmega-admin' );
|
58 |
+
|
59 |
+
// wp core scripts
|
60 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
61 |
+
wp_enqueue_script( 'htmega-admin' );
|
62 |
+
}
|
63 |
|
64 |
}
|
65 |
|
admin/assets/js/{admin_install_manager.js → install_manager.js}
RENAMED
File without changes
|
admin/assets/js/{admin_scripts.js → template_library_manager.js}
RENAMED
File without changes
|
admin/include/template-library.php
CHANGED
@@ -21,7 +21,7 @@ class HTMega_Template_Library{
|
|
21 |
}
|
22 |
|
23 |
function __construct(){
|
24 |
-
self::$buylink = isset($this->get_templates_info()['pro_link'][0]['url']) ? $this->get_templates_info()['pro_link'][0]['url'] : '#';
|
25 |
if ( is_admin() ) {
|
26 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 225 );
|
27 |
add_action( 'wp_ajax_htmega_ajax_request', [ $this, 'templates_ajax_request' ] );
|
@@ -114,122 +114,19 @@ class HTMega_Template_Library{
|
|
114 |
*/
|
115 |
public function scripts( $hook ) {
|
116 |
|
117 |
-
// wp core styles
|
118 |
-
wp_enqueue_style( 'wp-jquery-ui-dialog' );
|
119 |
-
// wp core scripts
|
120 |
-
wp_enqueue_script( 'jquery-ui-dialog' );
|
121 |
-
|
122 |
-
wp_enqueue_script(
|
123 |
-
'htmega-admin',
|
124 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/js/admin.js',
|
125 |
-
[ 'jquery'],
|
126 |
-
true
|
127 |
-
);
|
128 |
-
|
129 |
if( $hook === 'htmega-addons_page_htmega_addons_templates_library' ){
|
130 |
-
|
131 |
-
// wp core styles
|
132 |
-
wp_enqueue_style( 'wp-jquery-ui-dialog' );
|
133 |
-
// wp core scripts
|
134 |
-
wp_enqueue_script( 'jquery-ui-dialog' );
|
135 |
|
136 |
// CSS
|
137 |
-
wp_enqueue_style(
|
138 |
-
|
139 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/css/selectric.css',
|
140 |
-
NULL,
|
141 |
-
HTMEGA_VERSION
|
142 |
-
);
|
143 |
-
|
144 |
-
wp_enqueue_style(
|
145 |
-
'htmega-temlibray-style',
|
146 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/css/tmp-style.css',
|
147 |
-
NULL,
|
148 |
-
HTMEGA_VERSION
|
149 |
-
);
|
150 |
|
151 |
// JS
|
152 |
-
wp_enqueue_script(
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
);
|
158 |
-
wp_enqueue_script(
|
159 |
-
'jquery-selectric',
|
160 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/js/jquery.selectric.min.js',
|
161 |
-
[ 'jquery'],
|
162 |
-
HTMEGA_VERSION,
|
163 |
-
TRUE
|
164 |
-
);
|
165 |
-
wp_enqueue_script(
|
166 |
-
'jquery-ScrollMagic',
|
167 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/js/ScrollMagic.min.js',
|
168 |
-
[ 'jquery'],
|
169 |
-
HTMEGA_VERSION,
|
170 |
-
TRUE
|
171 |
-
);
|
172 |
-
wp_enqueue_script(
|
173 |
-
'babel-min',
|
174 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/js/babel.min.js',
|
175 |
-
[ 'jquery'],
|
176 |
-
HTMEGA_VERSION,
|
177 |
-
TRUE
|
178 |
-
);
|
179 |
-
|
180 |
-
wp_enqueue_script(
|
181 |
-
'htmega-templates',
|
182 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/js/admin_scripts.js',
|
183 |
-
[ 'jquery'],
|
184 |
-
HTMEGA_VERSION,
|
185 |
-
TRUE
|
186 |
-
);
|
187 |
-
|
188 |
-
wp_enqueue_script(
|
189 |
-
'htmega-admin-install-manager',
|
190 |
-
HTMEGA_ADDONS_PL_URL . 'admin/assets/js/admin_install_manager.js',
|
191 |
-
['htmega-templates', 'wp-util', 'updates'],
|
192 |
-
HTMEGA_VERSION,
|
193 |
-
TRUE
|
194 |
-
);
|
195 |
-
|
196 |
-
// Localize Script
|
197 |
-
$current_user = wp_get_current_user();
|
198 |
-
wp_localize_script(
|
199 |
-
'htmega-templates',
|
200 |
-
'HTTM',
|
201 |
-
[
|
202 |
-
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
203 |
-
'adminURL' => admin_url(),
|
204 |
-
'elementorURL' => admin_url( 'edit.php?post_type=elementor_library' ),
|
205 |
-
'version' => HTMEGA_VERSION,
|
206 |
-
'pluginURL' => plugin_dir_url( __FILE__ ),
|
207 |
-
'alldata' => !empty( $this->get_templates_info()['templates'] ) ? $this->get_templates_info()['templates']:array(),
|
208 |
-
'prolink' => !empty( $this->get_pro_link() ) ? $this->get_pro_link() : '#',
|
209 |
-
'prolabel' => esc_html__( 'Pro', 'htmega-addons' ),
|
210 |
-
'loadingimg' => HTMEGA_ADDONS_PL_URL . 'admin/assets/images/loading.gif',
|
211 |
-
'message' =>[
|
212 |
-
'packagedesc'=> esc_html__( 'in this package', 'htmega-addons' ),
|
213 |
-
'allload' => esc_html__( 'All Items have been Loaded', 'htmega-addons' ),
|
214 |
-
'notfound' => esc_html__( 'Nothing Found', 'htmega-addons' ),
|
215 |
-
],
|
216 |
-
'buttontxt' =>[
|
217 |
-
'tmplibrary' => esc_html__( 'Import to Library', 'htmega-addons' ),
|
218 |
-
'tmppage' => esc_html__( 'Import to Page', 'htmega-addons' ),
|
219 |
-
'import' => esc_html__( 'Import', 'htmega-addons' ),
|
220 |
-
'buynow' => esc_html__( 'Buy Now', 'htmega-addons' ),
|
221 |
-
'preview' => esc_html__( 'Preview', 'htmega-addons' ),
|
222 |
-
'installing' => esc_html__( 'Installing..', 'htmega-addons' ),
|
223 |
-
'activating' => esc_html__( 'Activating..', 'htmega-addons' ),
|
224 |
-
'active' => esc_html__( 'Active', 'htmega-addons' ),
|
225 |
-
],
|
226 |
-
'user' => [
|
227 |
-
'email' => $current_user->user_email,
|
228 |
-
],
|
229 |
-
|
230 |
-
]
|
231 |
-
);
|
232 |
-
|
233 |
|
234 |
}
|
235 |
|
21 |
}
|
22 |
|
23 |
function __construct(){
|
24 |
+
self::$buylink = isset( $this->get_templates_info()['pro_link'][0]['url']) ? $this->get_templates_info()['pro_link'][0]['url'] : '#';
|
25 |
if ( is_admin() ) {
|
26 |
add_action( 'admin_menu', [ $this, 'admin_menu' ], 225 );
|
27 |
add_action( 'wp_ajax_htmega_ajax_request', [ $this, 'templates_ajax_request' ] );
|
114 |
*/
|
115 |
public function scripts( $hook ) {
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
if( $hook === 'htmega-addons_page_htmega_addons_templates_library' ){
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
// CSS
|
120 |
+
wp_enqueue_style( 'htmega-selectric' );
|
121 |
+
wp_enqueue_style( 'htmega-temlibray-style' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
// JS
|
124 |
+
wp_enqueue_script( 'htmega-modernizr' );
|
125 |
+
wp_enqueue_script( 'jquery-selectric' );
|
126 |
+
wp_enqueue_script( 'jquery-ScrollMagic' );
|
127 |
+
wp_enqueue_script( 'babel-min' );
|
128 |
+
wp_enqueue_script( 'htmega-templates' );
|
129 |
+
wp_enqueue_script( 'htmega-install-manager' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
}
|
132 |
|
assets/css/htbbootstrap.css
CHANGED
@@ -1210,6 +1210,12 @@ a.htb-btn.htb-disabled, fieldset[disabled] a.htb-htb-btn {
|
|
1210 |
opacity: 0;
|
1211 |
transition: opacity .15s linear;
|
1212 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1213 |
.htb-fade.htb-show {
|
1214 |
opacity: 1;
|
1215 |
}
|
@@ -1309,215 +1315,216 @@ tbody.htb-collapse.htb-show {
|
|
1309 |
|
1310 |
@media (min-width:576px) {
|
1311 |
|
1312 |
-
.htb-pagination {
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
}
|
1319 |
-
|
1320 |
-
.htb-alert {
|
1321 |
-
position: relative;
|
1322 |
-
padding: .75rem 1.25rem;
|
1323 |
-
margin-bottom: 1rem;
|
1324 |
-
border: 1px solid transparent;
|
1325 |
-
border-radius: .25rem;
|
1326 |
-
}
|
1327 |
-
|
1328 |
-
@-webkit-keyframes progress-bar-stripes {
|
1329 |
-
from {
|
1330 |
-
background-position: 1rem 0;
|
1331 |
-
}
|
1332 |
-
to {
|
1333 |
-
background-position: 0 0;
|
1334 |
-
}
|
1335 |
-
}@keyframes progress-bar-stripes {
|
1336 |
-
from {
|
1337 |
-
background-position: 1rem 0;
|
1338 |
-
}
|
1339 |
-
to {
|
1340 |
-
background-position: 0 0;
|
1341 |
-
}
|
1342 |
-
}.htb-progress {
|
1343 |
-
display: -ms-flexbox;
|
1344 |
-
display: flex;
|
1345 |
-
height: 1rem;
|
1346 |
-
overflow: hidden;
|
1347 |
-
font-size: .75rem;
|
1348 |
-
background-color: #e9ecef;
|
1349 |
-
border-radius: .25rem;
|
1350 |
-
}
|
1351 |
-
.htb-progress-bar {
|
1352 |
-
display: -ms-flexbox;
|
1353 |
-
display: flex;
|
1354 |
-
-ms-flex-align: center;
|
1355 |
-
align-items: center;
|
1356 |
-
-ms-flex-pack: center;
|
1357 |
-
justify-content: center;
|
1358 |
-
color: #fff;
|
1359 |
-
background-color: #007bff;
|
1360 |
-
}
|
1361 |
-
.htb-progress-bar-striped {
|
1362 |
-
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
1363 |
-
background-size: 1rem 1rem;
|
1364 |
-
}
|
1365 |
-
.htb-progress-bar-animated {
|
1366 |
-
-webkit-animation: progress-bar-stripes 1s linear infinite;
|
1367 |
-
animation: progress-bar-stripes 1s linear infinite;
|
1368 |
-
}
|
1369 |
-
.htb-media {
|
1370 |
-
display: -ms-flexbox;
|
1371 |
-
display: flex;
|
1372 |
-
-ms-flex-align: start;
|
1373 |
-
align-items: flex-start;
|
1374 |
-
}
|
1375 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1376 |
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
}
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
}
|
1411 |
-
.htb-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
}
|
1472 |
-
.htb-modal-
|
1473 |
-
|
1474 |
-
|
1475 |
-
}
|
1476 |
-
.htb-modal-title {
|
1477 |
-
margin-bottom: 0;
|
1478 |
-
line-height: 1.5;
|
1479 |
-
}
|
1480 |
-
.htb-modal-body {
|
1481 |
-
position: relative;
|
1482 |
-
-ms-flex: 1 1 auto;
|
1483 |
-
flex: 1 1 auto;
|
1484 |
-
padding: 15px;
|
1485 |
-
}
|
1486 |
-
.htb-modal-footer {
|
1487 |
-
display: -ms-flexbox;
|
1488 |
-
display: flex;
|
1489 |
-
-ms-flex-align: center;
|
1490 |
-
align-items: center;
|
1491 |
-
-ms-flex-pack: end;
|
1492 |
-
justify-content: flex-end;
|
1493 |
-
padding: 15px;
|
1494 |
-
border-top: 1px solid #e9ecef;
|
1495 |
-
}
|
1496 |
-
.htb-modal-footer>:not(:first-child) {
|
1497 |
-
margin-left: .25rem;
|
1498 |
-
}
|
1499 |
-
.htb-modal-footer>:not(:last-child) {
|
1500 |
-
margin-right: .25rem;
|
1501 |
-
}
|
1502 |
-
.htb-modal-scrollbar-measure {
|
1503 |
-
position: absolute;
|
1504 |
-
top: -9999px;
|
1505 |
-
width: 50px;
|
1506 |
-
height: 50px;
|
1507 |
-
overflow: scroll;
|
1508 |
-
}
|
1509 |
-
@media (min-width:576px) {
|
1510 |
.htb-modal-dialog {
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1517 |
}@media (min-width:992px) {
|
1518 |
.htb-modal-lg {
|
1519 |
-
|
1520 |
-
}
|
1521 |
}.htb-tooltip {
|
1522 |
position: absolute;
|
1523 |
z-index: 1070;
|
1210 |
opacity: 0;
|
1211 |
transition: opacity .15s linear;
|
1212 |
}
|
1213 |
+
.htb-modal.htb-fade {
|
1214 |
+
display: none;
|
1215 |
+
}
|
1216 |
+
.htb-modal.htb-fade.htb-show {
|
1217 |
+
display: block;
|
1218 |
+
}
|
1219 |
.htb-fade.htb-show {
|
1220 |
opacity: 1;
|
1221 |
}
|
1315 |
|
1316 |
@media (min-width:576px) {
|
1317 |
|
1318 |
+
.htb-pagination {
|
1319 |
+
display: -ms-flexbox;
|
1320 |
+
display: flex;
|
1321 |
+
padding-left: 0;
|
1322 |
+
list-style: none;
|
1323 |
+
border-radius: .25rem;
|
1324 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1325 |
|
1326 |
+
.htb-alert {
|
1327 |
+
position: relative;
|
1328 |
+
padding: .75rem 1.25rem;
|
1329 |
+
margin-bottom: 1rem;
|
1330 |
+
border: 1px solid transparent;
|
1331 |
+
border-radius: .25rem;
|
1332 |
+
}
|
1333 |
|
1334 |
+
@-webkit-keyframes progress-bar-stripes {
|
1335 |
+
from {
|
1336 |
+
background-position: 1rem 0;
|
1337 |
+
}
|
1338 |
+
to {
|
1339 |
+
background-position: 0 0;
|
1340 |
+
}
|
1341 |
+
}@keyframes progress-bar-stripes {
|
1342 |
+
from {
|
1343 |
+
background-position: 1rem 0;
|
1344 |
+
}
|
1345 |
+
to {
|
1346 |
+
background-position: 0 0;
|
1347 |
+
}
|
1348 |
+
}
|
1349 |
+
.htb-progress {
|
1350 |
+
display: -ms-flexbox;
|
1351 |
+
display: flex;
|
1352 |
+
height: 1rem;
|
1353 |
+
overflow: hidden;
|
1354 |
+
font-size: .75rem;
|
1355 |
+
background-color: #e9ecef;
|
1356 |
+
border-radius: .25rem;
|
1357 |
+
}
|
1358 |
+
.htb-progress-bar {
|
1359 |
+
display: -ms-flexbox;
|
1360 |
+
display: flex;
|
1361 |
+
-ms-flex-align: center;
|
1362 |
+
align-items: center;
|
1363 |
+
-ms-flex-pack: center;
|
1364 |
+
justify-content: center;
|
1365 |
+
color: #fff;
|
1366 |
+
background-color: #007bff;
|
1367 |
+
}
|
1368 |
+
.htb-progress-bar-striped {
|
1369 |
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
1370 |
+
background-size: 1rem 1rem;
|
1371 |
+
}
|
1372 |
+
.htb-progress-bar-animated {
|
1373 |
+
-webkit-animation: progress-bar-stripes 1s linear infinite;
|
1374 |
+
animation: progress-bar-stripes 1s linear infinite;
|
1375 |
+
}
|
1376 |
+
.htb-media {
|
1377 |
+
display: -ms-flexbox;
|
1378 |
+
display: flex;
|
1379 |
+
-ms-flex-align: start;
|
1380 |
+
align-items: flex-start;
|
1381 |
+
}
|
1382 |
+
|
1383 |
+
}@media (min-width:320px) {
|
1384 |
+
.htb-close {
|
1385 |
+
float: right;
|
1386 |
+
font-size: 1.5rem;
|
1387 |
+
font-weight: 700;
|
1388 |
+
line-height: 1;
|
1389 |
+
color: #000;
|
1390 |
+
text-shadow: 0 1px 0 #fff;
|
1391 |
+
opacity: .5;
|
1392 |
+
}
|
1393 |
+
.htb-close:focus, .htb-close:hover {
|
1394 |
+
color: #000;
|
1395 |
+
text-decoration: none;
|
1396 |
+
opacity: .75;
|
1397 |
+
}
|
1398 |
+
button.htb-close {
|
1399 |
+
padding: 0;
|
1400 |
+
background: 0 0;
|
1401 |
+
border: 0;
|
1402 |
+
-webkit-appearance: none;
|
1403 |
+
}
|
1404 |
+
.htb-modal-open {
|
1405 |
+
overflow: hidden;
|
1406 |
+
}
|
1407 |
+
.htb-modal {
|
1408 |
+
position: fixed;
|
1409 |
+
top: 0;
|
1410 |
+
right: 0;
|
1411 |
+
bottom: 0;
|
1412 |
+
left: 0;
|
1413 |
+
z-index: 1050;
|
1414 |
+
display: none;
|
1415 |
+
overflow: hidden;
|
1416 |
+
outline: 0;
|
1417 |
+
}
|
1418 |
+
.htb-modal.htb-fade .htb-modal-dialog {
|
1419 |
+
transition: -webkit-transform .3s ease-out;
|
1420 |
+
transition: transform .3s ease-out;
|
1421 |
+
transition: transform .3s ease-out, -webkit-transform .3s ease-out;
|
1422 |
+
-webkit-transform: translate(0, -25%);
|
1423 |
+
transform: translate(0, -25%);
|
1424 |
+
}
|
1425 |
+
.htb-modal.htb-show .htb-modal-dialog {
|
1426 |
+
-webkit-transform: translate(0, 0);
|
1427 |
+
transform: translate(0, 0);
|
1428 |
+
}
|
1429 |
+
.htb-modal-open .htb-modal {
|
1430 |
+
overflow-x: hidden;
|
1431 |
+
overflow-y: auto;
|
1432 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1433 |
.htb-modal-dialog {
|
1434 |
+
position: relative;
|
1435 |
+
width: auto;
|
1436 |
+
margin: 10px;
|
1437 |
+
pointer-events: none;
|
1438 |
+
}
|
1439 |
+
.htb-modal-content {
|
1440 |
+
position: relative;
|
1441 |
+
display: -ms-flexbox;
|
1442 |
+
display: flex;
|
1443 |
+
-ms-flex-direction: column;
|
1444 |
+
flex-direction: column;
|
1445 |
+
pointer-events: auto;
|
1446 |
+
background-color: #fff;
|
1447 |
+
background-clip: padding-box;
|
1448 |
+
border: 1px solid rgba(0, 0, 0, .2);
|
1449 |
+
border-radius: .3rem;
|
1450 |
+
outline: 0;
|
1451 |
+
}
|
1452 |
+
.htb-modal-backdrop {
|
1453 |
+
position: fixed;
|
1454 |
+
top: 0;
|
1455 |
+
right: 0;
|
1456 |
+
bottom: 0;
|
1457 |
+
left: 0;
|
1458 |
+
z-index: 1040;
|
1459 |
+
background-color: #000;
|
1460 |
+
}
|
1461 |
+
.htb-modal-backdrop.htb-fade {
|
1462 |
+
opacity: 0;
|
1463 |
+
}
|
1464 |
+
.htb-modal-backdrop.htb-show {
|
1465 |
+
opacity: .5;
|
1466 |
+
}
|
1467 |
+
.htb-modal-header {
|
1468 |
+
display: -ms-flexbox;
|
1469 |
+
display: flex;
|
1470 |
+
-ms-flex-align: start;
|
1471 |
+
align-items: flex-start;
|
1472 |
+
-ms-flex-pack: justify;
|
1473 |
+
justify-content: space-between;
|
1474 |
+
padding: 15px;
|
1475 |
+
border-bottom: 1px solid #e9ecef;
|
1476 |
+
border-top-left-radius: .3rem;
|
1477 |
+
border-top-right-radius: .3rem;
|
1478 |
+
}
|
1479 |
+
.htb-modal-header .htb-close {
|
1480 |
+
padding: 15px;
|
1481 |
+
margin: -15px -15px -15px auto;
|
1482 |
+
}
|
1483 |
+
.htb-modal-title {
|
1484 |
+
margin-bottom: 0;
|
1485 |
+
line-height: 1.5;
|
1486 |
+
}
|
1487 |
+
.htb-modal-body {
|
1488 |
+
position: relative;
|
1489 |
+
-ms-flex: 1 1 auto;
|
1490 |
+
flex: 1 1 auto;
|
1491 |
+
padding: 15px;
|
1492 |
+
}
|
1493 |
+
.htb-modal-footer {
|
1494 |
+
display: -ms-flexbox;
|
1495 |
+
display: flex;
|
1496 |
+
-ms-flex-align: center;
|
1497 |
+
align-items: center;
|
1498 |
+
-ms-flex-pack: end;
|
1499 |
+
justify-content: flex-end;
|
1500 |
+
padding: 15px;
|
1501 |
+
border-top: 1px solid #e9ecef;
|
1502 |
+
}
|
1503 |
+
.htb-modal-footer>:not(:first-child) {
|
1504 |
+
margin-left: .25rem;
|
1505 |
+
}
|
1506 |
+
.htb-modal-footer>:not(:last-child) {
|
1507 |
+
margin-right: .25rem;
|
1508 |
+
}
|
1509 |
+
.htb-modal-scrollbar-measure {
|
1510 |
+
position: absolute;
|
1511 |
+
top: -9999px;
|
1512 |
+
width: 50px;
|
1513 |
+
height: 50px;
|
1514 |
+
overflow: scroll;
|
1515 |
+
}
|
1516 |
+
.htb-modal-dialog {
|
1517 |
+
max-width: 500px;
|
1518 |
+
margin: 30px auto;
|
1519 |
+
}
|
1520 |
+
.htb-modal-sm {
|
1521 |
+
max-width: 300px;
|
1522 |
+
}
|
1523 |
+
|
1524 |
}@media (min-width:992px) {
|
1525 |
.htb-modal-lg {
|
1526 |
+
max-width: 800px;
|
1527 |
+
}
|
1528 |
}.htb-tooltip {
|
1529 |
position: absolute;
|
1530 |
z-index: 1070;
|
assets/css/htmega-elementor-editor.css
CHANGED
@@ -8,7 +8,4 @@
|
|
8 |
position: absolute;
|
9 |
right: 5px;
|
10 |
top: 5px;
|
11 |
-
}
|
12 |
-
/*#elementor-panel-category-htmega-addons .elementor-element:hover .icon, #elementor-panel-category-htmega-addons .elementor-element:hover .title {
|
13 |
-
color: #14abf4;
|
14 |
-
}*/
|
8 |
position: absolute;
|
9 |
right: 5px;
|
10 |
top: 5px;
|
11 |
+
}
|
|
|
|
|
|
htmega_addons_elementor.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: http://demo.wphash.com/htmega/
|
6 |
* Author: HasThemes
|
7 |
* Author URI: https://hasthemes.com/
|
8 |
-
* Version: 1.
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: htmega-addons
|
@@ -13,11 +13,12 @@
|
|
13 |
*/
|
14 |
|
15 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
16 |
-
define( 'HTMEGA_VERSION', '1.
|
17 |
define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
|
18 |
define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
|
19 |
define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
|
20 |
define( 'HTMEGA_ADDONS_PLUGIN_BASE', plugin_basename( HTMEGA_ADDONS_PL_ROOT ) );
|
21 |
|
22 |
// Required File
|
23 |
-
require_once ( HTMEGA_ADDONS_PL_PATH .'includes/class.htmega.php' );
|
|
5 |
* Plugin URI: http://demo.wphash.com/htmega/
|
6 |
* Author: HasThemes
|
7 |
* Author URI: https://hasthemes.com/
|
8 |
+
* Version: 1.4.0
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: htmega-addons
|
13 |
*/
|
14 |
|
15 |
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
16 |
+
define( 'HTMEGA_VERSION', '1.4.0' );
|
17 |
define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
|
18 |
define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
|
19 |
define( 'HTMEGA_ADDONS_PL_PATH', plugin_dir_path( HTMEGA_ADDONS_PL_ROOT ) );
|
20 |
define( 'HTMEGA_ADDONS_PLUGIN_BASE', plugin_basename( HTMEGA_ADDONS_PL_ROOT ) );
|
21 |
|
22 |
// Required File
|
23 |
+
require_once ( HTMEGA_ADDONS_PL_PATH .'includes/class.htmega.php' );
|
24 |
+
htmega();
|
includes/class.assests.php
ADDED
@@ -0,0 +1,408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
4 |
+
|
5 |
+
if ( !class_exists( 'HTMega_Elementor_Addons_Assests' ) ) {
|
6 |
+
|
7 |
+
class HTMega_Elementor_Addons_Assests{
|
8 |
+
|
9 |
+
/**
|
10 |
+
* [$_instance]
|
11 |
+
* @var null
|
12 |
+
*/
|
13 |
+
private static $_instance = null;
|
14 |
+
|
15 |
+
/**
|
16 |
+
* [instance] Initializes a singleton instance
|
17 |
+
* @return [HTMega_Elementor_Addons_Assests]
|
18 |
+
*/
|
19 |
+
public static function instance() {
|
20 |
+
if ( is_null( self::$_instance ) ) {
|
21 |
+
self::$_instance = new self();
|
22 |
+
}
|
23 |
+
return self::$_instance;
|
24 |
+
}
|
25 |
+
|
26 |
+
/**
|
27 |
+
* [__construct] Class construcotr
|
28 |
+
*/
|
29 |
+
public function __construct(){
|
30 |
+
|
31 |
+
// Register Scripts
|
32 |
+
add_action( 'wp_enqueue_scripts', [ $this, 'register_assets' ] );
|
33 |
+
add_action( 'admin_enqueue_scripts', [ $this, 'register_assets' ] );
|
34 |
+
|
35 |
+
// Elementor Editor Style
|
36 |
+
add_action( 'elementor/editor/after_enqueue_styles', [ $this, 'editor_scripts' ] );
|
37 |
+
|
38 |
+
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
|
39 |
+
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* All available styles
|
44 |
+
*
|
45 |
+
* @return array
|
46 |
+
*/
|
47 |
+
public function get_styles() {
|
48 |
+
|
49 |
+
$style_list = [
|
50 |
+
|
51 |
+
'htbbootstrap' => [
|
52 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/htbbootstrap.css',
|
53 |
+
'version' => HTMEGA_VERSION
|
54 |
+
],
|
55 |
+
'htmega-widgets' => [
|
56 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-widgets.css',
|
57 |
+
'version' => HTMEGA_VERSION
|
58 |
+
],
|
59 |
+
'htmega-animation' => [
|
60 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/animation.css',
|
61 |
+
'version' => HTMEGA_VERSION
|
62 |
+
],
|
63 |
+
'slick' => [
|
64 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/slick.min.css',
|
65 |
+
'version' => HTMEGA_VERSION
|
66 |
+
],
|
67 |
+
'magnific-popup' => [
|
68 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/magnific-popup.css',
|
69 |
+
'version' => HTMEGA_VERSION
|
70 |
+
],
|
71 |
+
'ytplayer' => [
|
72 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/jquery.mb.YTPlayer.min.css',
|
73 |
+
'version' => HTMEGA_VERSION
|
74 |
+
],
|
75 |
+
'swiper' => [
|
76 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/swiper.css',
|
77 |
+
'version' => HTMEGA_VERSION
|
78 |
+
],
|
79 |
+
'compare-image' => [
|
80 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/compare-image.css',
|
81 |
+
'version' => HTMEGA_VERSION,
|
82 |
+
'deps' => [ 'htmega-widgets' ]
|
83 |
+
],
|
84 |
+
'justify-gallery' => [
|
85 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/justify-gallery.css',
|
86 |
+
'version' => HTMEGA_VERSION,
|
87 |
+
'deps' => [ 'htmega-widgets' ]
|
88 |
+
],
|
89 |
+
'datatables' => [
|
90 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/datatables.min.css',
|
91 |
+
'version' => HTMEGA_VERSION,
|
92 |
+
'deps' => [ 'htmega-widgets' ]
|
93 |
+
],
|
94 |
+
'magnifier' => [
|
95 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/magnifier.css',
|
96 |
+
'version' => HTMEGA_VERSION,
|
97 |
+
'deps' => [ 'htmega-widgets' ]
|
98 |
+
],
|
99 |
+
'animated-heading' => [
|
100 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/animated-text.css',
|
101 |
+
'version' => HTMEGA_VERSION,
|
102 |
+
'deps' => [ 'htmega-widgets' ]
|
103 |
+
],
|
104 |
+
'htmega-keyframes' => [
|
105 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-keyframes.css',
|
106 |
+
'version' => HTMEGA_VERSION
|
107 |
+
],
|
108 |
+
|
109 |
+
'htmega-admin' => [
|
110 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/css/htmega_admin.css',
|
111 |
+
'version' => HTMEGA_VERSION
|
112 |
+
],
|
113 |
+
'htmega-selectric' => [
|
114 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/css/selectric.css',
|
115 |
+
'version' => HTMEGA_VERSION
|
116 |
+
],
|
117 |
+
'htmega-temlibray-style' => [
|
118 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/css/tmp-style.css',
|
119 |
+
'version' => HTMEGA_VERSION
|
120 |
+
],
|
121 |
+
|
122 |
+
];
|
123 |
+
return $style_list;
|
124 |
+
|
125 |
+
}
|
126 |
+
|
127 |
+
/**
|
128 |
+
* All available scripts
|
129 |
+
*
|
130 |
+
* @return array
|
131 |
+
*/
|
132 |
+
public function get_scripts(){
|
133 |
+
|
134 |
+
$google_map_api_key = htmega_get_option( 'google_map_api_key','htmega_general_tabs' );
|
135 |
+
|
136 |
+
$script_list = [
|
137 |
+
|
138 |
+
'htbbootstrap' => [
|
139 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/htbbootstrap.js',
|
140 |
+
'version' => HTMEGA_VERSION,
|
141 |
+
'deps' => [ 'jquery' ]
|
142 |
+
],
|
143 |
+
'htmega-popper' => [
|
144 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/popper.min.js',
|
145 |
+
'version' => HTMEGA_VERSION,
|
146 |
+
'deps' => [ 'jquery' ]
|
147 |
+
],
|
148 |
+
'htmega-widgets-scripts' => [
|
149 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/htmega-widgets-active.js',
|
150 |
+
'version' => HTMEGA_VERSION,
|
151 |
+
'deps' => [ 'jquery' ]
|
152 |
+
],
|
153 |
+
'slick' => [
|
154 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/slick.min.js',
|
155 |
+
'version' => HTMEGA_VERSION,
|
156 |
+
'deps' => [ 'jquery' ]
|
157 |
+
],
|
158 |
+
'magnific-popup' => [
|
159 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.magnific-popup.min.js',
|
160 |
+
'version' => HTMEGA_VERSION,
|
161 |
+
'deps' => [ 'jquery' ]
|
162 |
+
],
|
163 |
+
'beerslider' => [
|
164 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-beerslider-min.js',
|
165 |
+
'version' => HTMEGA_VERSION,
|
166 |
+
'deps' => [ 'jquery' ]
|
167 |
+
],
|
168 |
+
'ytplayer' => [
|
169 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.mb.YTPlayer.min.js',
|
170 |
+
'version' => HTMEGA_VERSION,
|
171 |
+
'deps' => [ 'jquery' ]
|
172 |
+
],
|
173 |
+
'mapmarker' => [
|
174 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/mapmarker.jquery.js',
|
175 |
+
'version' => HTMEGA_VERSION,
|
176 |
+
'deps' => [ 'jquery' ]
|
177 |
+
],
|
178 |
+
'jquery-easing' => [
|
179 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.easing.1.3.js',
|
180 |
+
'version' => HTMEGA_VERSION,
|
181 |
+
'deps' => [ 'jquery' ]
|
182 |
+
],
|
183 |
+
'jquery-mousewheel' => [
|
184 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.mousewheel.js',
|
185 |
+
'version' => HTMEGA_VERSION,
|
186 |
+
'deps' => [ 'jquery' ]
|
187 |
+
],
|
188 |
+
'vaccordion' => [
|
189 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.vaccordion.js',
|
190 |
+
'version' => HTMEGA_VERSION,
|
191 |
+
'deps' => [ 'jquery' ]
|
192 |
+
],
|
193 |
+
'easy-pie-chart' => [
|
194 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-easy-pie-chart.js',
|
195 |
+
'version' => HTMEGA_VERSION,
|
196 |
+
'deps' => [ 'jquery' ]
|
197 |
+
],
|
198 |
+
'htmega-countdown' => [
|
199 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-countdown.min.js',
|
200 |
+
'version' => HTMEGA_VERSION,
|
201 |
+
'deps' => [ 'jquery' ]
|
202 |
+
],
|
203 |
+
'htmega-newsticker' => [
|
204 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-newsticker-min.js',
|
205 |
+
'version' => HTMEGA_VERSION,
|
206 |
+
'deps' => [ 'jquery' ]
|
207 |
+
],
|
208 |
+
'htmega-goodshare' => [
|
209 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/goodshare.min.js',
|
210 |
+
'version' => HTMEGA_VERSION,
|
211 |
+
'deps' => [ 'jquery' ]
|
212 |
+
],
|
213 |
+
'htmega-notify' => [
|
214 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/notify.min.js',
|
215 |
+
'version' => HTMEGA_VERSION,
|
216 |
+
'deps' => [ 'jquery' ]
|
217 |
+
],
|
218 |
+
'counterup' => [
|
219 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.counterup.js',
|
220 |
+
'version' => HTMEGA_VERSION,
|
221 |
+
'deps' => [ 'jquery' ]
|
222 |
+
],
|
223 |
+
'isotope' => [
|
224 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/isotope.pkgd.min.js',
|
225 |
+
'version' => HTMEGA_VERSION,
|
226 |
+
'deps' => [ 'jquery' ]
|
227 |
+
],
|
228 |
+
'swiper' => [
|
229 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/swiper.min.js',
|
230 |
+
'version' => HTMEGA_VERSION,
|
231 |
+
'deps' => [ 'jquery' ]
|
232 |
+
],
|
233 |
+
'justified-gallery' => [
|
234 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/justified-gallery.js',
|
235 |
+
'version' => HTMEGA_VERSION,
|
236 |
+
'deps' => [ 'jquery' ]
|
237 |
+
],
|
238 |
+
'datatables' => [
|
239 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/datatables.min.js',
|
240 |
+
'version' => HTMEGA_VERSION,
|
241 |
+
'deps' => [ 'jquery' ]
|
242 |
+
],
|
243 |
+
'magnifier' => [
|
244 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/magnifier.js',
|
245 |
+
'version' => HTMEGA_VERSION,
|
246 |
+
'deps' => [ 'jquery' ]
|
247 |
+
],
|
248 |
+
'animated-heading' => [
|
249 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/animated-heading.js',
|
250 |
+
'version' => HTMEGA_VERSION,
|
251 |
+
'deps' => [ 'jquery' ]
|
252 |
+
],
|
253 |
+
'waypoints' => [
|
254 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'assets/js/waypoints.js',
|
255 |
+
'version' => HTMEGA_VERSION,
|
256 |
+
'deps' => [ 'jquery' ]
|
257 |
+
],
|
258 |
+
'google-map-api' => [
|
259 |
+
'src' => 'http://maps.googleapis.com/maps/api/js?sensor=false',
|
260 |
+
'version' => HTMEGA_VERSION,
|
261 |
+
'deps' => [ 'jquery' ]
|
262 |
+
],
|
263 |
+
|
264 |
+
'htmega-admin' => [
|
265 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/js/admin.js',
|
266 |
+
'version' => HTMEGA_VERSION,
|
267 |
+
'deps' => [ 'jquery' ]
|
268 |
+
],
|
269 |
+
'htmega-modernizr' => [
|
270 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/js/modernizr.custom.63321.js',
|
271 |
+
'version' => HTMEGA_VERSION,
|
272 |
+
'deps' => [ 'jquery' ]
|
273 |
+
],
|
274 |
+
'jquery-selectric' => [
|
275 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/js/jquery.selectric.min.js',
|
276 |
+
'version' => HTMEGA_VERSION,
|
277 |
+
'deps' => [ 'jquery' ]
|
278 |
+
],
|
279 |
+
'jquery-ScrollMagic' => [
|
280 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/js/ScrollMagic.min.js',
|
281 |
+
'version' => HTMEGA_VERSION,
|
282 |
+
'deps' => [ 'jquery' ]
|
283 |
+
],
|
284 |
+
'babel-min' => [
|
285 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/lib/js/babel.min.js',
|
286 |
+
'version' => HTMEGA_VERSION,
|
287 |
+
'deps' => [ 'jquery' ]
|
288 |
+
],
|
289 |
+
'htmega-templates' => [
|
290 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/js/template_library_manager.js',
|
291 |
+
'version' => HTMEGA_VERSION,
|
292 |
+
'deps' => [ 'jquery' ]
|
293 |
+
],
|
294 |
+
'htmega-install-manager' => [
|
295 |
+
'src' => HTMEGA_ADDONS_PL_URL . 'admin/assets/js/install_manager.js',
|
296 |
+
'version' => HTMEGA_VERSION,
|
297 |
+
'deps' => [ 'htmega-templates', 'wp-util', 'updates' ]
|
298 |
+
],
|
299 |
+
|
300 |
+
];
|
301 |
+
|
302 |
+
if( !empty( $google_map_api_key ) ){
|
303 |
+
$script_list['google-map-api'] = [
|
304 |
+
'src' => 'https://maps.googleapis.com/maps/api/js?key='.$google_map_api_key,
|
305 |
+
'version' => HTMEGA_VERSION,
|
306 |
+
'deps' => [ 'jquery' ]
|
307 |
+
];
|
308 |
+
}
|
309 |
+
|
310 |
+
return $script_list;
|
311 |
+
|
312 |
+
}
|
313 |
+
|
314 |
+
/**
|
315 |
+
* Register scripts and styles
|
316 |
+
*
|
317 |
+
* @return void
|
318 |
+
*/
|
319 |
+
public function register_assets() {
|
320 |
+
$scripts = $this->get_scripts();
|
321 |
+
$styles = $this->get_styles();
|
322 |
+
|
323 |
+
// Register Scripts
|
324 |
+
foreach ( $scripts as $handle => $script ) {
|
325 |
+
$deps = ( isset( $script['deps'] ) ? $script['deps'] : false );
|
326 |
+
wp_register_script( $handle, $script['src'], $deps, $script['version'], true );
|
327 |
+
}
|
328 |
+
|
329 |
+
// Register Styles
|
330 |
+
foreach ( $styles as $handle => $style ) {
|
331 |
+
$deps = ( isset( $style['deps'] ) ? $style['deps'] : false );
|
332 |
+
wp_register_style( $handle, $style['src'], $deps, $style['version'] );
|
333 |
+
}
|
334 |
+
|
335 |
+
//Localize Scripts
|
336 |
+
$current_user = wp_get_current_user();
|
337 |
+
$localize_data = [
|
338 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
339 |
+
'adminURL' => admin_url(),
|
340 |
+
'elementorURL' => admin_url( 'edit.php?post_type=elementor_library' ),
|
341 |
+
'version' => HTMEGA_VERSION,
|
342 |
+
'pluginURL' => plugin_dir_url( __FILE__ ),
|
343 |
+
'alldata' => ( !empty( HTMega_Template_Library::instance()->get_templates_info()['templates'] ) ? HTMega_Template_Library::instance()->get_templates_info()['templates']:array() ),
|
344 |
+
'prolink' => ( !empty( HTMega_Template_Library::instance()->get_pro_link() ) ? HTMega_Template_Library::instance()->get_pro_link() : '#' ),
|
345 |
+
'prolabel' => esc_html__( 'Pro', 'htmega-addons' ),
|
346 |
+
'loadingimg' => HTMEGA_ADDONS_PL_URL . 'admin/assets/images/loading.gif',
|
347 |
+
'message' =>[
|
348 |
+
'packagedesc'=> esc_html__( 'in this package', 'htmega-addons' ),
|
349 |
+
'allload' => esc_html__( 'All Items have been Loaded', 'htmega-addons' ),
|
350 |
+
'notfound' => esc_html__( 'Nothing Found', 'htmega-addons' ),
|
351 |
+
],
|
352 |
+
'buttontxt' =>[
|
353 |
+
'tmplibrary' => esc_html__( 'Import to Library', 'htmega-addons' ),
|
354 |
+
'tmppage' => esc_html__( 'Import to Page', 'htmega-addons' ),
|
355 |
+
'import' => esc_html__( 'Import', 'htmega-addons' ),
|
356 |
+
'buynow' => esc_html__( 'Buy Now', 'htmega-addons' ),
|
357 |
+
'preview' => esc_html__( 'Preview', 'htmega-addons' ),
|
358 |
+
'installing' => esc_html__( 'Installing..', 'htmega-addons' ),
|
359 |
+
'activating' => esc_html__( 'Activating..', 'htmega-addons' ),
|
360 |
+
'active' => esc_html__( 'Active', 'htmega-addons' ),
|
361 |
+
],
|
362 |
+
'user' => [
|
363 |
+
'email' => $current_user->user_email,
|
364 |
+
],
|
365 |
+
];
|
366 |
+
wp_localize_script( 'htmega-templates', 'HTTM', $localize_data );
|
367 |
+
|
368 |
+
}
|
369 |
+
|
370 |
+
|
371 |
+
/**
|
372 |
+
* [editor_scripts]
|
373 |
+
* @return [void] Load Editor Scripts
|
374 |
+
*/
|
375 |
+
public function editor_scripts() {
|
376 |
+
wp_enqueue_style('htmega-element-editor', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-elementor-editor.css', HTMEGA_VERSION );
|
377 |
+
}
|
378 |
+
|
379 |
+
/**
|
380 |
+
* [enqueue_scripts]
|
381 |
+
* @return [void] Frontend Scripts
|
382 |
+
*/
|
383 |
+
public function enqueue_scripts(){
|
384 |
+
|
385 |
+
// CSS
|
386 |
+
wp_enqueue_style( 'htbbootstrap' );
|
387 |
+
wp_enqueue_style( 'htmega-widgets' );
|
388 |
+
wp_enqueue_style( 'font-awesome' );
|
389 |
+
wp_enqueue_style( 'htmega-animation' );
|
390 |
+
wp_enqueue_style( 'slick' );
|
391 |
+
wp_enqueue_style( 'compare-image' );
|
392 |
+
wp_enqueue_style( 'justify-gallery' );
|
393 |
+
wp_enqueue_style( 'htmega-keyframes' );
|
394 |
+
wp_enqueue_style( 'animated-heading' );
|
395 |
+
wp_enqueue_style( 'htmega-widgets' );
|
396 |
+
|
397 |
+
// JS
|
398 |
+
wp_enqueue_script( 'htmega-popper' );
|
399 |
+
wp_enqueue_script( 'htbbootstrap' );
|
400 |
+
wp_enqueue_script( 'waypoints' );
|
401 |
+
|
402 |
+
}
|
403 |
+
|
404 |
+
}
|
405 |
+
|
406 |
+
HTMega_Elementor_Addons_Assests::instance();
|
407 |
+
|
408 |
+
}
|
includes/class.htmega.php
CHANGED
@@ -1,11 +1,20 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class HTMega_Addons_Elementor {
|
4 |
|
5 |
const MINIMUM_ELEMENTOR_VERSION = '2.5.0';
|
6 |
const MINIMUM_PHP_VERSION = '7.0';
|
7 |
|
|
|
|
|
|
|
|
|
8 |
private static $_instance = null;
|
|
|
|
|
|
|
|
|
|
|
9 |
public static function instance() {
|
10 |
if ( is_null( self::$_instance ) ) {
|
11 |
self::$_instance = new self();
|
@@ -13,18 +22,31 @@ class HTMega_Addons_Elementor {
|
|
13 |
return self::$_instance;
|
14 |
}
|
15 |
|
16 |
-
|
|
|
|
|
|
|
17 |
if ( ! function_exists('is_plugin_active') ){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); }
|
|
|
18 |
add_action( 'init', [ $this, 'i18n' ] );
|
19 |
add_action( 'plugins_loaded', [ $this, 'init' ] );
|
|
|
20 |
// Register Plugin Active Hook
|
21 |
register_activation_hook( HTMEGA_ADDONS_PL_ROOT, [ $this, 'plugin_activate_hook'] );
|
22 |
}
|
23 |
|
|
|
|
|
|
|
|
|
24 |
public function i18n() {
|
25 |
load_plugin_textdomain( 'htmega-addons', false, dirname( plugin_basename( HTMEGA_ADDONS_PL_ROOT ) ) . '/languages/' );
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function init() {
|
29 |
|
30 |
// Check if Elementor installed and activated
|
@@ -32,11 +54,13 @@ class HTMega_Addons_Elementor {
|
|
32 |
add_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );
|
33 |
return;
|
34 |
}
|
|
|
35 |
// Check for required Elementor version
|
36 |
if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {
|
37 |
add_action( 'admin_notices', [ $this, 'admin_notice_minimum_elementor_version' ] );
|
38 |
return;
|
39 |
}
|
|
|
40 |
// Check for required PHP version
|
41 |
if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {
|
42 |
add_action( 'admin_notices', [ $this, 'admin_notice_minimum_php_version' ] );
|
@@ -46,6 +70,9 @@ class HTMega_Addons_Elementor {
|
|
46 |
// Plugins Required File
|
47 |
$this->includes();
|
48 |
|
|
|
|
|
|
|
49 |
// After Active Plugin then redirect to setting page
|
50 |
$this->plugin_redirect_option_page();
|
51 |
|
@@ -54,11 +81,30 @@ class HTMega_Addons_Elementor {
|
|
54 |
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
public function is_plugins_active( $pl_file_path = NULL ){
|
58 |
$installed_plugins_list = get_plugins();
|
59 |
return isset( $installed_plugins_list[$pl_file_path] );
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
62 |
public function admin_notice_missing_main_plugin() {
|
63 |
|
64 |
if ( isset( $_GET['activate'] ) ) unset( $_GET['activate'] );
|
@@ -83,6 +129,10 @@ class HTMega_Addons_Elementor {
|
|
83 |
echo '<div class="error"><p>' . $message . '</p></div>';
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
86 |
public function admin_notice_minimum_elementor_version() {
|
87 |
if ( isset( $_GET['activate'] ) ) unset( $_GET['activate'] );
|
88 |
$message = sprintf(
|
@@ -94,6 +144,10 @@ class HTMega_Addons_Elementor {
|
|
94 |
printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message );
|
95 |
}
|
96 |
|
|
|
|
|
|
|
|
|
97 |
public function admin_notice_minimum_php_version() {
|
98 |
if ( isset( $_GET['activate'] ) ) unset( $_GET['activate'] );
|
99 |
$message = sprintf(
|
@@ -105,7 +159,11 @@ class HTMega_Addons_Elementor {
|
|
105 |
printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message );
|
106 |
}
|
107 |
|
108 |
-
|
|
|
|
|
|
|
|
|
109 |
public function plugins_setting_links( $links ) {
|
110 |
$htmega_settings_link = '<a href="admin.php?page=htmega_addons_options">'.esc_html__( 'Settings', 'htmega-addons' ).'</a>';
|
111 |
array_unshift( $links, $htmega_settings_link );
|
@@ -115,13 +173,18 @@ class HTMega_Addons_Elementor {
|
|
115 |
return $links;
|
116 |
}
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
public function plugin_activate_hook() {
|
123 |
add_option('htmega_do_activation_redirect', true);
|
124 |
}
|
|
|
|
|
|
|
|
|
|
|
125 |
public function plugin_redirect_option_page() {
|
126 |
if ( get_option( 'htmega_do_activation_redirect', false ) ) {
|
127 |
delete_option('htmega_do_activation_redirect');
|
@@ -131,41 +194,44 @@ class HTMega_Addons_Elementor {
|
|
131 |
}
|
132 |
}
|
133 |
|
134 |
-
|
|
|
|
|
|
|
135 |
public function includes() {
|
136 |
-
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/helper-function.php' );
|
137 |
-
require_once ( HTMEGA_ADDONS_PL_PATH.'
|
138 |
-
require_once ( HTMEGA_ADDONS_PL_PATH.'
|
139 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/widgets_control.php' );
|
140 |
-
require_once ( HTMEGA_ADDONS_PL_PATH.'includes/class.htmega-icon-manager.php' );
|
141 |
|
142 |
// Extension Assest Management
|
143 |
-
require_once( HTMEGA_ADDONS_PL_PATH.'extensions/class.enqueue_scripts.php' );
|
144 |
|
145 |
// HT Builder
|
146 |
if( htmega_get_option( 'themebuilder', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
147 |
-
require_once( HTMEGA_ADDONS_PL_PATH.'extensions/ht-builder/init.php' );
|
148 |
}
|
149 |
|
150 |
// WC Sales Notification
|
151 |
if( htmega_get_option( 'salenotification', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
152 |
if( is_plugin_active('htmega-pro/htmega_pro.php') ){
|
153 |
if( htmega_get_option( 'notification_content_type', 'htmegawcsales_setting_tabs', 'actual' ) == 'fakes' ){
|
154 |
-
require_once( HTMEGA_ADDONS_PL_PATH_PRO.'extensions/wc-sales-notification/classes/class.sale_notification_fake.php' );
|
155 |
}else{
|
156 |
-
require_once( HTMEGA_ADDONS_PL_PATH_PRO.'extensions/wc-sales-notification/classes/class.sale_notification.php' );
|
157 |
}
|
158 |
}else{
|
159 |
-
require_once( HTMEGA_ADDONS_PL_PATH.'extensions/wc-sales-notification/classes/class.sale_notification.php' );
|
160 |
}
|
161 |
}
|
162 |
|
163 |
// HT Menu
|
164 |
if( htmega_get_option( 'megamenubuilder', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
165 |
if( is_plugin_active('htmega-pro/htmega_pro.php') ){
|
166 |
-
require_once( HTMEGA_ADDONS_PL_PATH_PRO.'extensions/ht-menu/classes/class.mega-menu.php' );
|
167 |
}else{
|
168 |
-
require_once( HTMEGA_ADDONS_PL_PATH.'extensions/ht-menu/classes/class.mega-menu.php' );
|
169 |
}
|
170 |
}
|
171 |
|
@@ -174,4 +240,11 @@ class HTMega_Addons_Elementor {
|
|
174 |
|
175 |
}
|
176 |
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
|
3 |
+
final class HTMega_Addons_Elementor {
|
4 |
|
5 |
const MINIMUM_ELEMENTOR_VERSION = '2.5.0';
|
6 |
const MINIMUM_PHP_VERSION = '7.0';
|
7 |
|
8 |
+
/**
|
9 |
+
* [$_instance]
|
10 |
+
* @var null
|
11 |
+
*/
|
12 |
private static $_instance = null;
|
13 |
+
|
14 |
+
/**
|
15 |
+
* [instance] Initializes a singleton instance
|
16 |
+
* @return [HTMega_Addons_Elementor]
|
17 |
+
*/
|
18 |
public static function instance() {
|
19 |
if ( is_null( self::$_instance ) ) {
|
20 |
self::$_instance = new self();
|
22 |
return self::$_instance;
|
23 |
}
|
24 |
|
25 |
+
/**
|
26 |
+
* [__construct] Class construcotr
|
27 |
+
*/
|
28 |
+
private function __construct() {
|
29 |
if ( ! function_exists('is_plugin_active') ){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); }
|
30 |
+
|
31 |
add_action( 'init', [ $this, 'i18n' ] );
|
32 |
add_action( 'plugins_loaded', [ $this, 'init' ] );
|
33 |
+
|
34 |
// Register Plugin Active Hook
|
35 |
register_activation_hook( HTMEGA_ADDONS_PL_ROOT, [ $this, 'plugin_activate_hook'] );
|
36 |
}
|
37 |
|
38 |
+
/**
|
39 |
+
* [i18n] Load Text Domain
|
40 |
+
* @return [void]
|
41 |
+
*/
|
42 |
public function i18n() {
|
43 |
load_plugin_textdomain( 'htmega-addons', false, dirname( plugin_basename( HTMEGA_ADDONS_PL_ROOT ) ) . '/languages/' );
|
44 |
}
|
45 |
|
46 |
+
/**
|
47 |
+
* [init] Plugins Loaded Init Hook
|
48 |
+
* @return [void]
|
49 |
+
*/
|
50 |
public function init() {
|
51 |
|
52 |
// Check if Elementor installed and activated
|
54 |
add_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );
|
55 |
return;
|
56 |
}
|
57 |
+
|
58 |
// Check for required Elementor version
|
59 |
if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {
|
60 |
add_action( 'admin_notices', [ $this, 'admin_notice_minimum_elementor_version' ] );
|
61 |
return;
|
62 |
}
|
63 |
+
|
64 |
// Check for required PHP version
|
65 |
if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {
|
66 |
add_action( 'admin_notices', [ $this, 'admin_notice_minimum_php_version' ] );
|
70 |
// Plugins Required File
|
71 |
$this->includes();
|
72 |
|
73 |
+
// Add Image Size
|
74 |
+
$this->add_image_size();
|
75 |
+
|
76 |
// After Active Plugin then redirect to setting page
|
77 |
$this->plugin_redirect_option_page();
|
78 |
|
81 |
|
82 |
}
|
83 |
|
84 |
+
/**
|
85 |
+
* [add_image_size]
|
86 |
+
* @return [void]
|
87 |
+
*/
|
88 |
+
public function add_image_size() {
|
89 |
+
add_image_size( 'htmega_size_585x295', 585, 295, true );
|
90 |
+
add_image_size( 'htmega_size_1170x536', 1170, 536, true );
|
91 |
+
add_image_size( 'htmega_size_396x360', 396, 360, true );
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* [is_plugins_active] Check Plugin installation status
|
96 |
+
* @param [string] $pl_file_path plugin location
|
97 |
+
* @return boolean True | False
|
98 |
+
*/
|
99 |
public function is_plugins_active( $pl_file_path = NULL ){
|
100 |
$installed_plugins_list = get_plugins();
|
101 |
return isset( $installed_plugins_list[$pl_file_path] );
|
102 |
}
|
103 |
|
104 |
+
/**
|
105 |
+
* [admin_notice_missing_main_plugin] Admin Notice if elementor Deactive | Not Install
|
106 |
+
* @return [void]
|
107 |
+
*/
|
108 |
public function admin_notice_missing_main_plugin() {
|
109 |
|
110 |
if ( isset( $_GET['activate'] ) ) unset( $_GET['activate'] );
|
129 |
echo '<div class="error"><p>' . $message . '</p></div>';
|
130 |
}
|
131 |
|
132 |
+
/**
|
133 |
+
* [admin_notice_minimum_elementor_version]
|
134 |
+
* @return [void] Elementor Required version check with current version
|
135 |
+
*/
|
136 |
public function admin_notice_minimum_elementor_version() {
|
137 |
if ( isset( $_GET['activate'] ) ) unset( $_GET['activate'] );
|
138 |
$message = sprintf(
|
144 |
printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message );
|
145 |
}
|
146 |
|
147 |
+
/**
|
148 |
+
* [admin_notice_minimum_php_version] Check PHP Version with required version
|
149 |
+
* @return [void]
|
150 |
+
*/
|
151 |
public function admin_notice_minimum_php_version() {
|
152 |
if ( isset( $_GET['activate'] ) ) unset( $_GET['activate'] );
|
153 |
$message = sprintf(
|
159 |
printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message );
|
160 |
}
|
161 |
|
162 |
+
/**
|
163 |
+
* [plugins_setting_links]
|
164 |
+
* @param [array] $links plugin menu list.
|
165 |
+
* @return [array] plugin menu list.
|
166 |
+
*/
|
167 |
public function plugins_setting_links( $links ) {
|
168 |
$htmega_settings_link = '<a href="admin.php?page=htmega_addons_options">'.esc_html__( 'Settings', 'htmega-addons' ).'</a>';
|
169 |
array_unshift( $links, $htmega_settings_link );
|
173 |
return $links;
|
174 |
}
|
175 |
|
176 |
+
/**
|
177 |
+
* [plugin_activate_hook] Plugin Activation Hook
|
178 |
+
* @return [void]
|
179 |
+
*/
|
180 |
public function plugin_activate_hook() {
|
181 |
add_option('htmega_do_activation_redirect', true);
|
182 |
}
|
183 |
+
|
184 |
+
/**
|
185 |
+
* [plugin_redirect_option_page] After Install plugin then redirect setting page
|
186 |
+
* @return [void]
|
187 |
+
*/
|
188 |
public function plugin_redirect_option_page() {
|
189 |
if ( get_option( 'htmega_do_activation_redirect', false ) ) {
|
190 |
delete_option('htmega_do_activation_redirect');
|
194 |
}
|
195 |
}
|
196 |
|
197 |
+
/**
|
198 |
+
* [include_files] Required Necessary file
|
199 |
+
* @return [void]
|
200 |
+
*/
|
201 |
public function includes() {
|
202 |
+
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/helper-function.php' );
|
203 |
+
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/class.assests.php' );
|
204 |
+
require_once ( HTMEGA_ADDONS_PL_PATH . 'admin/admin-init.php' );
|
205 |
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/widgets_control.php' );
|
206 |
+
require_once ( HTMEGA_ADDONS_PL_PATH . 'includes/class.htmega-icon-manager.php' );
|
207 |
|
208 |
// Extension Assest Management
|
209 |
+
require_once( HTMEGA_ADDONS_PL_PATH . 'extensions/class.enqueue_scripts.php' );
|
210 |
|
211 |
// HT Builder
|
212 |
if( htmega_get_option( 'themebuilder', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
213 |
+
require_once( HTMEGA_ADDONS_PL_PATH . 'extensions/ht-builder/init.php' );
|
214 |
}
|
215 |
|
216 |
// WC Sales Notification
|
217 |
if( htmega_get_option( 'salenotification', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
218 |
if( is_plugin_active('htmega-pro/htmega_pro.php') ){
|
219 |
if( htmega_get_option( 'notification_content_type', 'htmegawcsales_setting_tabs', 'actual' ) == 'fakes' ){
|
220 |
+
require_once( HTMEGA_ADDONS_PL_PATH_PRO . 'extensions/wc-sales-notification/classes/class.sale_notification_fake.php' );
|
221 |
}else{
|
222 |
+
require_once( HTMEGA_ADDONS_PL_PATH_PRO . 'extensions/wc-sales-notification/classes/class.sale_notification.php' );
|
223 |
}
|
224 |
}else{
|
225 |
+
require_once( HTMEGA_ADDONS_PL_PATH . 'extensions/wc-sales-notification/classes/class.sale_notification.php' );
|
226 |
}
|
227 |
}
|
228 |
|
229 |
// HT Menu
|
230 |
if( htmega_get_option( 'megamenubuilder', 'htmega_advance_element_tabs', 'off' ) === 'on' ){
|
231 |
if( is_plugin_active('htmega-pro/htmega_pro.php') ){
|
232 |
+
require_once( HTMEGA_ADDONS_PL_PATH_PRO . 'extensions/ht-menu/classes/class.mega-menu.php' );
|
233 |
}else{
|
234 |
+
require_once( HTMEGA_ADDONS_PL_PATH . 'extensions/ht-menu/classes/class.mega-menu.php' );
|
235 |
}
|
236 |
}
|
237 |
|
240 |
|
241 |
}
|
242 |
|
243 |
+
/**
|
244 |
+
* Initializes the main plugin
|
245 |
+
*
|
246 |
+
* @return \HTMega_Addons_Elementor
|
247 |
+
*/
|
248 |
+
function htmega() {
|
249 |
+
return HTMega_Addons_Elementor::instance();
|
250 |
+
}
|
includes/init.php
DELETED
@@ -1,386 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
|
4 |
-
|
5 |
-
if ( !class_exists( 'HTMega_Elementor_Addons_Init' ) ) {
|
6 |
-
|
7 |
-
class HTMega_Elementor_Addons_Init{
|
8 |
-
|
9 |
-
private static $_instance = null;
|
10 |
-
public static function instance() {
|
11 |
-
if ( is_null( self::$_instance ) ) {
|
12 |
-
self::$_instance = new self();
|
13 |
-
}
|
14 |
-
return self::$_instance;
|
15 |
-
}
|
16 |
-
|
17 |
-
public function __construct(){
|
18 |
-
add_action( 'init', [ $this, 'after_setup_theme' ] );
|
19 |
-
// All Scripts
|
20 |
-
add_action( 'elementor/editor/after_enqueue_styles', [ $this, 'editor_scripts' ] );
|
21 |
-
add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_frontend_styles' ], 10 );
|
22 |
-
add_action( 'elementor/frontend/after_register_scripts', [ $this, 'register_fronted_scripts' ], 10 );
|
23 |
-
add_action( 'elementor/frontend/after_enqueue_styles', [ $this, 'enqueue_frontend_styles' ], 10 );
|
24 |
-
add_action( 'elementor/frontend/after_enqueue_scripts', [ $this, 'enqueue_frontend_scripts' ], 10 );
|
25 |
-
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
|
26 |
-
}
|
27 |
-
|
28 |
-
// Enqueue Scripts
|
29 |
-
public function enqueue_scripts(){
|
30 |
-
wp_enqueue_style( 'htbbootstrap' );
|
31 |
-
wp_enqueue_style('htmega-widgets', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-widgets.css');
|
32 |
-
}
|
33 |
-
|
34 |
-
// Add Image size
|
35 |
-
public function after_setup_theme() {
|
36 |
-
add_image_size( 'htmega_size_585x295', 585, 295, true );
|
37 |
-
add_image_size( 'htmega_size_1170x536', 1170, 536, true );
|
38 |
-
add_image_size( 'htmega_size_396x360', 396, 360, true );
|
39 |
-
}
|
40 |
-
|
41 |
-
// Editor Scripts
|
42 |
-
public function editor_scripts() {
|
43 |
-
wp_enqueue_style('htmega-element-editor', HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-elementor-editor.css', '', HTMEGA_VERSION );
|
44 |
-
}
|
45 |
-
|
46 |
-
// Register frontend style
|
47 |
-
public function register_frontend_styles(){
|
48 |
-
|
49 |
-
wp_register_style(
|
50 |
-
'htbbootstrap',
|
51 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/htbbootstrap.css',
|
52 |
-
array(),
|
53 |
-
HTMEGA_VERSION
|
54 |
-
);
|
55 |
-
|
56 |
-
wp_register_style(
|
57 |
-
'htmega-widgets',
|
58 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-widgets.css',
|
59 |
-
array(),
|
60 |
-
HTMEGA_VERSION
|
61 |
-
);
|
62 |
-
|
63 |
-
wp_register_style(
|
64 |
-
'htmega-animation',
|
65 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/animation.css',
|
66 |
-
array(),
|
67 |
-
HTMEGA_VERSION
|
68 |
-
);
|
69 |
-
|
70 |
-
wp_register_style(
|
71 |
-
'slick',
|
72 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/slick.min.css',
|
73 |
-
array(),
|
74 |
-
HTMEGA_VERSION
|
75 |
-
);
|
76 |
-
|
77 |
-
wp_register_style(
|
78 |
-
'magnific-popup',
|
79 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/magnific-popup.css',
|
80 |
-
array(),
|
81 |
-
HTMEGA_VERSION
|
82 |
-
);
|
83 |
-
|
84 |
-
wp_register_style(
|
85 |
-
'ytplayer',
|
86 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/jquery.mb.YTPlayer.min.css',
|
87 |
-
array(),
|
88 |
-
HTMEGA_VERSION
|
89 |
-
);
|
90 |
-
|
91 |
-
wp_register_style(
|
92 |
-
'swiper',
|
93 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/swiper.css',
|
94 |
-
array('htmega-widgets'),
|
95 |
-
HTMEGA_VERSION
|
96 |
-
);
|
97 |
-
|
98 |
-
wp_register_style(
|
99 |
-
'compare-image',
|
100 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/compare-image.css',
|
101 |
-
array('htmega-widgets'),
|
102 |
-
HTMEGA_VERSION
|
103 |
-
);
|
104 |
-
|
105 |
-
wp_register_style(
|
106 |
-
'justify-gallery',
|
107 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/justify-gallery.css',
|
108 |
-
array('htmega-widgets'),
|
109 |
-
HTMEGA_VERSION
|
110 |
-
);
|
111 |
-
|
112 |
-
wp_register_style(
|
113 |
-
'datatables',
|
114 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/datatables.min.css',
|
115 |
-
array('htmega-widgets'),
|
116 |
-
HTMEGA_VERSION
|
117 |
-
);
|
118 |
-
|
119 |
-
wp_register_style(
|
120 |
-
'magnifier',
|
121 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/magnifier.css',
|
122 |
-
array('htmega-widgets'),
|
123 |
-
HTMEGA_VERSION
|
124 |
-
);
|
125 |
-
|
126 |
-
wp_register_style(
|
127 |
-
'animated-heading',
|
128 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/animated-text.css',
|
129 |
-
array('htmega-widgets'),
|
130 |
-
HTMEGA_VERSION
|
131 |
-
);
|
132 |
-
|
133 |
-
wp_register_style(
|
134 |
-
'htmega-keyframes',
|
135 |
-
HTMEGA_ADDONS_PL_URL . 'assets/css/htmega-keyframes.css',
|
136 |
-
array(),
|
137 |
-
HTMEGA_VERSION
|
138 |
-
);
|
139 |
-
|
140 |
-
}
|
141 |
-
|
142 |
-
// Register frontend script
|
143 |
-
public function register_fronted_scripts(){
|
144 |
-
|
145 |
-
$google_map_api_key = htmega_get_option('google_map_api_key','htmega_general_tabs');
|
146 |
-
|
147 |
-
wp_register_script(
|
148 |
-
'htbbootstrap',
|
149 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/htbbootstrap.js',
|
150 |
-
array('jquery'),
|
151 |
-
HTMEGA_VERSION,
|
152 |
-
TRUE
|
153 |
-
);
|
154 |
-
|
155 |
-
wp_register_script(
|
156 |
-
'htmega-popper',
|
157 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/popper.min.js',
|
158 |
-
array('jquery'),
|
159 |
-
HTMEGA_VERSION,
|
160 |
-
TRUE
|
161 |
-
);
|
162 |
-
|
163 |
-
wp_register_script(
|
164 |
-
'htmega-widgets-scripts',
|
165 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/htmega-widgets-active.js',
|
166 |
-
array('jquery'),
|
167 |
-
HTMEGA_VERSION,
|
168 |
-
TRUE
|
169 |
-
);
|
170 |
-
|
171 |
-
wp_register_script(
|
172 |
-
'slick',
|
173 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/slick.min.js',
|
174 |
-
array('jquery'),
|
175 |
-
HTMEGA_VERSION,
|
176 |
-
TRUE
|
177 |
-
);
|
178 |
-
|
179 |
-
wp_register_script(
|
180 |
-
'magnific-popup',
|
181 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.magnific-popup.min.js',
|
182 |
-
array('jquery'),
|
183 |
-
HTMEGA_VERSION,
|
184 |
-
TRUE
|
185 |
-
);
|
186 |
-
|
187 |
-
wp_register_script(
|
188 |
-
'beerslider',
|
189 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-beerslider-min.js',
|
190 |
-
array('jquery'),
|
191 |
-
HTMEGA_VERSION,
|
192 |
-
TRUE
|
193 |
-
);
|
194 |
-
|
195 |
-
wp_register_script(
|
196 |
-
'ytplayer',
|
197 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.mb.YTPlayer.min.js',
|
198 |
-
array('jquery'),
|
199 |
-
HTMEGA_VERSION,
|
200 |
-
TRUE
|
201 |
-
);
|
202 |
-
|
203 |
-
wp_register_script(
|
204 |
-
'mapmarker',
|
205 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/mapmarker.jquery.js',
|
206 |
-
array('jquery'),
|
207 |
-
NULL,
|
208 |
-
TRUE
|
209 |
-
);
|
210 |
-
|
211 |
-
wp_register_script(
|
212 |
-
'jquery-easing',
|
213 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.easing.1.3.js',
|
214 |
-
array('jquery'),
|
215 |
-
NULL,
|
216 |
-
TRUE
|
217 |
-
);
|
218 |
-
|
219 |
-
wp_register_script(
|
220 |
-
'jquery-mousewheel',
|
221 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.mousewheel.js',
|
222 |
-
array('jquery'),
|
223 |
-
NULL,
|
224 |
-
TRUE
|
225 |
-
);
|
226 |
-
|
227 |
-
wp_register_script(
|
228 |
-
'vaccordion',
|
229 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.vaccordion.js',
|
230 |
-
array('jquery'),
|
231 |
-
NULL,
|
232 |
-
TRUE
|
233 |
-
);
|
234 |
-
|
235 |
-
wp_register_script(
|
236 |
-
'easy-pie-chart',
|
237 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-easy-pie-chart.js',
|
238 |
-
array('jquery'),
|
239 |
-
NULL,
|
240 |
-
TRUE
|
241 |
-
);
|
242 |
-
|
243 |
-
wp_register_script(
|
244 |
-
'htmega-countdown',
|
245 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-countdown.min.js',
|
246 |
-
array('jquery'),
|
247 |
-
NULL,
|
248 |
-
TRUE
|
249 |
-
);
|
250 |
-
|
251 |
-
wp_register_script(
|
252 |
-
'htmega-newsticker',
|
253 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery-newsticker-min.js',
|
254 |
-
array('jquery'),
|
255 |
-
NULL,
|
256 |
-
TRUE
|
257 |
-
);
|
258 |
-
|
259 |
-
wp_register_script(
|
260 |
-
'htmega-goodshare',
|
261 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/goodshare.min.js',
|
262 |
-
array('jquery'),
|
263 |
-
NULL,
|
264 |
-
TRUE
|
265 |
-
);
|
266 |
-
|
267 |
-
wp_register_script(
|
268 |
-
'htmega-notify',
|
269 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/notify.min.js',
|
270 |
-
array('jquery'),
|
271 |
-
NULL,
|
272 |
-
TRUE
|
273 |
-
);
|
274 |
-
|
275 |
-
wp_register_script(
|
276 |
-
'counterup',
|
277 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/jquery.counterup.js',
|
278 |
-
array('jquery'),
|
279 |
-
NULL,
|
280 |
-
TRUE
|
281 |
-
);
|
282 |
-
|
283 |
-
wp_register_script(
|
284 |
-
'isotope',
|
285 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/isotope.pkgd.min.js',
|
286 |
-
array('jquery'),
|
287 |
-
NULL,
|
288 |
-
TRUE
|
289 |
-
);
|
290 |
-
|
291 |
-
wp_register_script(
|
292 |
-
'swiper',
|
293 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/swiper.min.js',
|
294 |
-
array('jquery'),
|
295 |
-
NULL,
|
296 |
-
TRUE
|
297 |
-
);
|
298 |
-
|
299 |
-
wp_register_script(
|
300 |
-
'justified-gallery',
|
301 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/justified-gallery.js',
|
302 |
-
array('jquery'),
|
303 |
-
NULL,
|
304 |
-
TRUE
|
305 |
-
);
|
306 |
-
|
307 |
-
wp_register_script(
|
308 |
-
'datatables',
|
309 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/datatables.min.js',
|
310 |
-
array('jquery'),
|
311 |
-
NULL,
|
312 |
-
TRUE
|
313 |
-
);
|
314 |
-
|
315 |
-
wp_register_script(
|
316 |
-
'magnifier',
|
317 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/magnifier.js',
|
318 |
-
array('jquery'),
|
319 |
-
NULL,
|
320 |
-
TRUE
|
321 |
-
);
|
322 |
-
|
323 |
-
wp_register_script(
|
324 |
-
'animated-heading',
|
325 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/animated-heading.js',
|
326 |
-
array('jquery'),
|
327 |
-
NULL,
|
328 |
-
TRUE
|
329 |
-
);
|
330 |
-
|
331 |
-
wp_register_script(
|
332 |
-
'waypoints',
|
333 |
-
HTMEGA_ADDONS_PL_URL . 'assets/js/waypoints.js',
|
334 |
-
array('jquery'),
|
335 |
-
'4.0.1',
|
336 |
-
TRUE
|
337 |
-
);
|
338 |
-
|
339 |
-
if( !empty( $google_map_api_key ) ){
|
340 |
-
wp_register_script(
|
341 |
-
'google-map-api',
|
342 |
-
'https://maps.googleapis.com/maps/api/js?key='.$google_map_api_key,
|
343 |
-
array('jquery'),
|
344 |
-
NULL,
|
345 |
-
TRUE
|
346 |
-
);
|
347 |
-
}else{
|
348 |
-
wp_register_script(
|
349 |
-
'google-map-api',
|
350 |
-
'http://maps.googleapis.com/maps/api/js?sensor=false',
|
351 |
-
array('jquery'),
|
352 |
-
NULL,
|
353 |
-
TRUE
|
354 |
-
);
|
355 |
-
}
|
356 |
-
|
357 |
-
}
|
358 |
-
|
359 |
-
// enqueue frontend style
|
360 |
-
public function enqueue_frontend_styles(){
|
361 |
-
|
362 |
-
wp_enqueue_style( 'font-awesome' );
|
363 |
-
wp_enqueue_style( 'htmega-animation' );
|
364 |
-
wp_enqueue_style( 'slick' );
|
365 |
-
wp_enqueue_style( 'compare-image' );
|
366 |
-
wp_enqueue_style( 'justify-gallery' );
|
367 |
-
wp_enqueue_style( 'htmega-keyframes' );
|
368 |
-
wp_enqueue_style( 'animated-heading' );
|
369 |
-
wp_enqueue_style( 'htmega-widgets' );
|
370 |
-
|
371 |
-
}
|
372 |
-
|
373 |
-
// enqueue frontend scripts
|
374 |
-
public function enqueue_frontend_scripts(){
|
375 |
-
|
376 |
-
wp_enqueue_script( 'htmega-popper' );
|
377 |
-
wp_enqueue_script( 'htbbootstrap' );
|
378 |
-
wp_enqueue_script( 'waypoints' );
|
379 |
-
|
380 |
-
}
|
381 |
-
|
382 |
-
}
|
383 |
-
|
384 |
-
HTMega_Elementor_Addons_Init::instance();
|
385 |
-
|
386 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/widgets/htmega_single_post.php
CHANGED
@@ -73,6 +73,22 @@ class HTMega_Elementor_Widget_SinglePost extends Widget_Base {
|
|
73 |
]
|
74 |
);
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
$this->add_control(
|
77 |
'show_category',
|
78 |
[
|
@@ -368,6 +384,7 @@ class HTMega_Elementor_Widget_SinglePost extends Widget_Base {
|
|
368 |
protected function render( $instance = [] ) {
|
369 |
|
370 |
$settings = $this->get_settings_for_display();
|
|
|
371 |
|
372 |
$this->add_render_attribute( 'htmega_single_post_attr', 'class', 'htmega-single-post htmega-single-post-style-'.$settings['post_style'] );
|
373 |
|
@@ -419,7 +436,7 @@ class HTMega_Elementor_Widget_SinglePost extends Widget_Base {
|
|
419 |
?>
|
420 |
</div>
|
421 |
<?php endif; if($settings['show_title'] == 'yes' ):?>
|
422 |
-
<h2><a href="<?php the_permalink();?>"><?php echo wp_trim_words( get_the_title(),
|
423 |
<?php endif; if( $settings['show_author'] == 'yes' || $settings['show_date'] == 'yes'):?>
|
424 |
<ul class="meta">
|
425 |
<?php if( $settings['show_author'] == 'yes' ):?>
|
@@ -432,7 +449,12 @@ class HTMega_Elementor_Widget_SinglePost extends Widget_Base {
|
|
432 |
</div>
|
433 |
</div>
|
434 |
|
435 |
-
<?php endwhile; wp_reset_postdata(); wp_reset_query();
|
|
|
|
|
|
|
|
|
|
|
436 |
|
437 |
<?php
|
438 |
|
73 |
]
|
74 |
);
|
75 |
|
76 |
+
$this->add_control(
|
77 |
+
'single_post_title_length',
|
78 |
+
[
|
79 |
+
'label' => __( 'Title Length', 'htmega-addons' ),
|
80 |
+
'type' => Controls_Manager::NUMBER,
|
81 |
+
'min' => 1,
|
82 |
+
'max' => 1000,
|
83 |
+
'step' => 1,
|
84 |
+
'default' => 5,
|
85 |
+
'condition'=>[
|
86 |
+
'show_title'=>'yes',
|
87 |
+
],
|
88 |
+
]
|
89 |
+
);
|
90 |
+
|
91 |
+
|
92 |
$this->add_control(
|
93 |
'show_category',
|
94 |
[
|
384 |
protected function render( $instance = [] ) {
|
385 |
|
386 |
$settings = $this->get_settings_for_display();
|
387 |
+
$title_length = ( $settings['single_post_title_length'] ? $settings['single_post_title_length'] : 5 );
|
388 |
|
389 |
$this->add_render_attribute( 'htmega_single_post_attr', 'class', 'htmega-single-post htmega-single-post-style-'.$settings['post_style'] );
|
390 |
|
436 |
?>
|
437 |
</div>
|
438 |
<?php endif; if($settings['show_title'] == 'yes' ):?>
|
439 |
+
<h2><a href="<?php the_permalink();?>"><?php echo wp_trim_words( get_the_title(), $title_length, '' ); ?></a></h2>
|
440 |
<?php endif; if( $settings['show_author'] == 'yes' || $settings['show_date'] == 'yes'):?>
|
441 |
<ul class="meta">
|
442 |
<?php if( $settings['show_author'] == 'yes' ):?>
|
449 |
</div>
|
450 |
</div>
|
451 |
|
452 |
+
<?php endwhile; wp_reset_postdata(); wp_reset_query();
|
453 |
+
else:
|
454 |
+
echo esc_html__( 'No selected post', 'htmega-addons' );
|
455 |
+
endif;
|
456 |
+
?>
|
457 |
+
|
458 |
|
459 |
<?php
|
460 |
|
languages/htmega-addons.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: HT Mega - Absolute Addons for Elementor Page Builder\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2020-
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/\n"
|
16 |
-
"X-Loco-Version: 2.3.
|
17 |
|
18 |
#: includes/widgets/htmega_twitter_feed.php:1491
|
19 |
msgid " days ago"
|
@@ -35,7 +35,7 @@ msgstr ""
|
|
35 |
msgid " years ago"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: includes/class.htmega.php:
|
39 |
#, php-format
|
40 |
msgid "\"%1$s\" requires \"%2$s\" version %3$s or greater."
|
41 |
msgstr ""
|
@@ -591,22 +591,21 @@ msgstr ""
|
|
591 |
msgid "Accordion Title Two"
|
592 |
msgstr ""
|
593 |
|
594 |
-
#: admin/include/template-library.php:
|
595 |
-
#: admin/include/template-library.php:
|
596 |
msgid "Activate"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: admin/include/template-library.php:
|
600 |
-
#: admin/include/template-library.php:
|
601 |
msgid "Activated"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#:
|
605 |
msgid "Activating.."
|
606 |
msgstr ""
|
607 |
|
608 |
-
#:
|
609 |
-
#: includes/widgets/htmega_accordion.php:550
|
610 |
#: includes/widgets/htmega_accordion.php:880
|
611 |
#: includes/widgets/htmega_buddy_press.php:55
|
612 |
#: includes/widgets/htmega_carousel.php:749
|
@@ -754,8 +753,8 @@ msgstr ""
|
|
754 |
#: includes/widgets/htmega_services.php:426
|
755 |
#: includes/widgets/htmega_services.php:617
|
756 |
#: includes/widgets/htmega_services.php:817
|
757 |
-
#: includes/widgets/htmega_single_post.php:
|
758 |
-
#: includes/widgets/htmega_single_post.php:
|
759 |
#: includes/widgets/htmega_special_banner.php:254
|
760 |
#: includes/widgets/htmega_tab.php:314 includes/widgets/htmega_table.php:414
|
761 |
#: includes/widgets/htmega_table.php:534
|
@@ -788,7 +787,7 @@ msgstr ""
|
|
788 |
msgid "All Builders"
|
789 |
msgstr ""
|
790 |
|
791 |
-
#:
|
792 |
msgid "All Items have been Loaded"
|
793 |
msgstr ""
|
794 |
|
@@ -928,7 +927,7 @@ msgstr ""
|
|
928 |
#: includes/widgets/htmega_job_manager.php:86
|
929 |
#: includes/widgets/htmega_post_carousel.php:266
|
930 |
#: includes/widgets/htmega_post_slider.php:244
|
931 |
-
#: includes/widgets/htmega_single_post.php:
|
932 |
#: includes/widgets/htmega_twitter_feed.php:662
|
933 |
msgid "Author"
|
934 |
msgstr ""
|
@@ -1153,7 +1152,7 @@ msgstr ""
|
|
1153 |
#: includes/widgets/htmega_services.php:788
|
1154 |
#: includes/widgets/htmega_services.php:921
|
1155 |
#: includes/widgets/htmega_services.php:977
|
1156 |
-
#: includes/widgets/htmega_single_post.php:
|
1157 |
#: includes/widgets/htmega_slider_thumb_gallery.php:700
|
1158 |
#: includes/widgets/htmega_slider_thumb_gallery.php:777
|
1159 |
#: includes/widgets/htmega_slider_thumb_gallery.php:900
|
@@ -2268,9 +2267,9 @@ msgstr ""
|
|
2268 |
msgid "Button Width"
|
2269 |
msgstr ""
|
2270 |
|
2271 |
-
#:
|
2272 |
-
#: admin/include/template-library.php:
|
2273 |
-
#: admin/include/template-library.php:
|
2274 |
msgid "Buy Now"
|
2275 |
msgstr ""
|
2276 |
|
@@ -2364,8 +2363,8 @@ msgstr ""
|
|
2364 |
#: includes/widgets/htmega_post_grid_tab.php:466
|
2365 |
#: includes/widgets/htmega_post_slider.php:234
|
2366 |
#: includes/widgets/htmega_post_slider.php:758
|
2367 |
-
#: includes/widgets/htmega_single_post.php:
|
2368 |
-
#: includes/widgets/htmega_single_post.php:
|
2369 |
msgid "Category"
|
2370 |
msgstr ""
|
2371 |
|
@@ -2428,8 +2427,8 @@ msgstr ""
|
|
2428 |
#: includes/widgets/htmega_services.php:434
|
2429 |
#: includes/widgets/htmega_services.php:625
|
2430 |
#: includes/widgets/htmega_services.php:825
|
2431 |
-
#: includes/widgets/htmega_single_post.php:
|
2432 |
-
#: includes/widgets/htmega_single_post.php:
|
2433 |
#: includes/widgets/htmega_special_banner.php:40
|
2434 |
#: includes/widgets/htmega_special_banner.php:262
|
2435 |
#: includes/widgets/htmega_tab.php:322 includes/widgets/htmega_table.php:422
|
@@ -2787,9 +2786,9 @@ msgstr ""
|
|
2787 |
#: includes/widgets/htmega_services.php:656
|
2788 |
#: includes/widgets/htmega_services.php:869
|
2789 |
#: includes/widgets/htmega_services.php:960
|
2790 |
-
#: includes/widgets/htmega_single_post.php:
|
2791 |
-
#: includes/widgets/htmega_single_post.php:
|
2792 |
-
#: includes/widgets/htmega_single_post.php:
|
2793 |
#: includes/widgets/htmega_slider_thumb_gallery.php:648
|
2794 |
#: includes/widgets/htmega_slider_thumb_gallery.php:733
|
2795 |
#: includes/widgets/htmega_slider_thumb_gallery.php:883
|
@@ -3223,7 +3222,7 @@ msgstr ""
|
|
3223 |
#: includes/widgets/htmega_post_grid.php:1018
|
3224 |
#: includes/widgets/htmega_post_grid_tab.php:1189
|
3225 |
#: includes/widgets/htmega_post_slider.php:1731
|
3226 |
-
#: includes/widgets/htmega_single_post.php:
|
3227 |
msgid "d F Y"
|
3228 |
msgstr ""
|
3229 |
|
@@ -3258,8 +3257,8 @@ msgstr ""
|
|
3258 |
#: includes/widgets/htmega_post_grid_tab.php:183
|
3259 |
#: includes/widgets/htmega_post_slider.php:149
|
3260 |
#: includes/widgets/htmega_post_slider.php:254
|
3261 |
-
#: includes/widgets/htmega_single_post.php:
|
3262 |
-
#: includes/widgets/htmega_single_post.php:
|
3263 |
#: includes/widgets/htmega_vertical_timeline.php:182
|
3264 |
msgid "Date"
|
3265 |
msgstr ""
|
@@ -3478,11 +3477,11 @@ msgstr ""
|
|
3478 |
msgid "Easy Digital Downloads"
|
3479 |
msgstr ""
|
3480 |
|
3481 |
-
#: admin/include/template-library.php:
|
3482 |
msgid "Edit Page"
|
3483 |
msgstr ""
|
3484 |
|
3485 |
-
#: admin/include/template-library.php:
|
3486 |
msgid "Edit Template"
|
3487 |
msgstr ""
|
3488 |
|
@@ -3555,15 +3554,15 @@ msgstr ""
|
|
3555 |
msgid "Element Space"
|
3556 |
msgstr ""
|
3557 |
|
3558 |
-
#: includes/class.htmega.php:
|
3559 |
msgid "Elementor"
|
3560 |
msgstr ""
|
3561 |
|
3562 |
-
#: includes/class.htmega.php:
|
3563 |
msgid "Elementor Activate Now"
|
3564 |
msgstr ""
|
3565 |
|
3566 |
-
#: includes/class.htmega.php:
|
3567 |
msgid "Elementor Install Now"
|
3568 |
msgstr ""
|
3569 |
|
@@ -4049,7 +4048,7 @@ msgstr ""
|
|
4049 |
msgid "Go Premium"
|
4050 |
msgstr ""
|
4051 |
|
4052 |
-
#: includes/class.htmega.php:
|
4053 |
msgid "Go Pro"
|
4054 |
msgstr ""
|
4055 |
|
@@ -4476,18 +4475,18 @@ msgstr ""
|
|
4476 |
msgid "HT Menu Settings"
|
4477 |
msgstr ""
|
4478 |
|
4479 |
-
#: includes/class.htmega.php:
|
4480 |
#: includes/widgets_control.php:27 admin/include/admin-setting.php:37
|
4481 |
#: admin/include/admin-setting.php:38
|
4482 |
msgid "HTMega Addons"
|
4483 |
msgstr ""
|
4484 |
|
4485 |
-
#: includes/class.htmega.php:
|
4486 |
msgid ""
|
4487 |
"HTMEGA Addons not working because you need to activate the Elementor plugin."
|
4488 |
msgstr ""
|
4489 |
|
4490 |
-
#: includes/class.htmega.php:
|
4491 |
msgid ""
|
4492 |
"HTMEGA Addons not working because you need to install the Elementor plugin"
|
4493 |
msgstr ""
|
@@ -4894,7 +4893,7 @@ msgstr ""
|
|
4894 |
msgid "Image space"
|
4895 |
msgstr ""
|
4896 |
|
4897 |
-
#:
|
4898 |
msgid "Import"
|
4899 |
msgstr ""
|
4900 |
|
@@ -4902,15 +4901,15 @@ msgstr ""
|
|
4902 |
msgid "Import template to your Library"
|
4903 |
msgstr ""
|
4904 |
|
4905 |
-
#:
|
4906 |
msgid "Import to Library"
|
4907 |
msgstr ""
|
4908 |
|
4909 |
-
#:
|
4910 |
msgid "Import to Page"
|
4911 |
msgstr ""
|
4912 |
|
4913 |
-
#:
|
4914 |
msgid "in this package"
|
4915 |
msgstr ""
|
4916 |
|
@@ -4992,12 +4991,12 @@ msgstr ""
|
|
4992 |
msgid "Instagram user ID"
|
4993 |
msgstr ""
|
4994 |
|
4995 |
-
#: admin/include/admin-setting.php:1159 admin/include/template-library.php:
|
4996 |
-
#: admin/include/template-library.php:
|
4997 |
msgid "Install Now"
|
4998 |
msgstr ""
|
4999 |
|
5000 |
-
#:
|
5001 |
msgid "Installing.."
|
5002 |
msgstr ""
|
5003 |
|
@@ -5155,8 +5154,8 @@ msgstr ""
|
|
5155 |
#: includes/widgets/htmega_services.php:442
|
5156 |
#: includes/widgets/htmega_services.php:633
|
5157 |
#: includes/widgets/htmega_services.php:833
|
5158 |
-
#: includes/widgets/htmega_single_post.php:
|
5159 |
-
#: includes/widgets/htmega_single_post.php:
|
5160 |
#: includes/widgets/htmega_special_banner.php:270
|
5161 |
#: includes/widgets/htmega_table.php:430 includes/widgets/htmega_table.php:550
|
5162 |
#: includes/widgets/htmega_tablepress.php:219
|
@@ -5357,8 +5356,8 @@ msgstr ""
|
|
5357 |
#: includes/widgets/htmega_services.php:430
|
5358 |
#: includes/widgets/htmega_services.php:621
|
5359 |
#: includes/widgets/htmega_services.php:821
|
5360 |
-
#: includes/widgets/htmega_single_post.php:
|
5361 |
-
#: includes/widgets/htmega_single_post.php:
|
5362 |
#: includes/widgets/htmega_slider_thumb_gallery.php:48
|
5363 |
#: includes/widgets/htmega_special_banner.php:42
|
5364 |
#: includes/widgets/htmega_special_banner.php:258
|
@@ -5857,9 +5856,9 @@ msgstr ""
|
|
5857 |
#: includes/widgets/htmega_services.php:560
|
5858 |
#: includes/widgets/htmega_services.php:761
|
5859 |
#: includes/widgets/htmega_services.php:894
|
5860 |
-
#: includes/widgets/htmega_single_post.php:
|
5861 |
-
#: includes/widgets/htmega_single_post.php:
|
5862 |
-
#: includes/widgets/htmega_single_post.php:
|
5863 |
#: includes/widgets/htmega_slider_thumb_gallery.php:673
|
5864 |
#: includes/widgets/htmega_socialshere.php:458
|
5865 |
#: includes/widgets/htmega_special_banner.php:283
|
@@ -6220,6 +6219,10 @@ msgstr ""
|
|
6220 |
msgid "No contact form found"
|
6221 |
msgstr ""
|
6222 |
|
|
|
|
|
|
|
|
|
6223 |
#: includes/helper-function.php:65
|
6224 |
msgid "No sidebars were found"
|
6225 |
msgstr ""
|
@@ -6344,7 +6347,7 @@ msgstr ""
|
|
6344 |
msgid "Normal Title"
|
6345 |
msgstr ""
|
6346 |
|
6347 |
-
#:
|
6348 |
msgid "Nothing Found"
|
6349 |
msgstr ""
|
6350 |
|
@@ -6829,9 +6832,9 @@ msgstr ""
|
|
6829 |
#: includes/widgets/htmega_services.php:574
|
6830 |
#: includes/widgets/htmega_services.php:774
|
6831 |
#: includes/widgets/htmega_services.php:907
|
6832 |
-
#: includes/widgets/htmega_single_post.php:
|
6833 |
-
#: includes/widgets/htmega_single_post.php:
|
6834 |
-
#: includes/widgets/htmega_single_post.php:
|
6835 |
#: includes/widgets/htmega_slider_thumb_gallery.php:686
|
6836 |
#: includes/widgets/htmega_slider_thumb_gallery.php:860
|
6837 |
#: includes/widgets/htmega_socialshere.php:445
|
@@ -7023,7 +7026,7 @@ msgstr ""
|
|
7023 |
msgid "Photoshop"
|
7024 |
msgstr ""
|
7025 |
|
7026 |
-
#: includes/class.htmega.php:
|
7027 |
msgid "PHP"
|
7028 |
msgstr ""
|
7029 |
|
@@ -7077,11 +7080,11 @@ msgstr ""
|
|
7077 |
msgid "Please wait..."
|
7078 |
msgstr ""
|
7079 |
|
7080 |
-
#: admin/include/template-library.php:
|
7081 |
msgid "Plugin Not Found"
|
7082 |
msgstr ""
|
7083 |
|
7084 |
-
#: admin/include/template-library.php:
|
7085 |
msgid "Plugin Successfully Activated"
|
7086 |
msgstr ""
|
7087 |
|
@@ -7234,7 +7237,7 @@ msgstr ""
|
|
7234 |
msgid "premium version"
|
7235 |
msgstr ""
|
7236 |
|
7237 |
-
#:
|
7238 |
msgid "Preview"
|
7239 |
msgstr ""
|
7240 |
|
@@ -7295,7 +7298,7 @@ msgstr ""
|
|
7295 |
msgid "Print Page <span>( Pro )</span>"
|
7296 |
msgstr ""
|
7297 |
|
7298 |
-
#:
|
7299 |
msgid "Pro"
|
7300 |
msgstr ""
|
7301 |
|
@@ -7595,8 +7598,8 @@ msgstr ""
|
|
7595 |
#: includes/widgets/htmega_services.php:438
|
7596 |
#: includes/widgets/htmega_services.php:629
|
7597 |
#: includes/widgets/htmega_services.php:829
|
7598 |
-
#: includes/widgets/htmega_single_post.php:
|
7599 |
-
#: includes/widgets/htmega_single_post.php:
|
7600 |
#: includes/widgets/htmega_slider_thumb_gallery.php:46
|
7601 |
#: includes/widgets/htmega_special_banner.php:43
|
7602 |
#: includes/widgets/htmega_special_banner.php:266
|
@@ -7930,7 +7933,7 @@ msgstr ""
|
|
7930 |
msgid "Services Title"
|
7931 |
msgstr ""
|
7932 |
|
7933 |
-
#: includes/class.htmega.php:
|
7934 |
#: admin/include/admin-setting.php:48
|
7935 |
msgid "Settings"
|
7936 |
msgstr ""
|
@@ -8406,7 +8409,7 @@ msgstr ""
|
|
8406 |
msgid "Sorry, the username you entered is not valid"
|
8407 |
msgstr ""
|
8408 |
|
8409 |
-
#: admin/include/template-library.php:
|
8410 |
msgid "Sorry, you are not allowed to install themes on this site."
|
8411 |
msgstr ""
|
8412 |
|
@@ -9085,7 +9088,7 @@ msgstr ""
|
|
9085 |
msgid "The resolution to tablet."
|
9086 |
msgstr ""
|
9087 |
|
9088 |
-
#: admin/include/template-library.php:
|
9089 |
msgid "Theme Activated"
|
9090 |
msgstr ""
|
9091 |
|
@@ -9319,7 +9322,7 @@ msgstr ""
|
|
9319 |
#: includes/widgets/htmega_section_title.php:487
|
9320 |
#: includes/widgets/htmega_services.php:234
|
9321 |
#: includes/widgets/htmega_single_post.php:69
|
9322 |
-
#: includes/widgets/htmega_single_post.php:
|
9323 |
#: includes/widgets/htmega_slider_thumb_gallery.php:59
|
9324 |
#: includes/widgets/htmega_slider_thumb_gallery.php:641
|
9325 |
#: includes/widgets/htmega_socialshere.php:94
|
@@ -9380,6 +9383,7 @@ msgstr ""
|
|
9380 |
#: includes/widgets/htmega_post_carousel.php:206
|
9381 |
#: includes/widgets/htmega_post_grid.php:165
|
9382 |
#: includes/widgets/htmega_post_slider.php:175
|
|
|
9383 |
msgid "Title Length"
|
9384 |
msgstr ""
|
9385 |
|
@@ -9634,9 +9638,9 @@ msgstr ""
|
|
9634 |
#: includes/widgets/htmega_pricing_list_view.php:726
|
9635 |
#: includes/widgets/htmega_progressbar.php:444
|
9636 |
#: includes/widgets/htmega_progressbar.php:524
|
9637 |
-
#: includes/widgets/htmega_single_post.php:
|
9638 |
-
#: includes/widgets/htmega_single_post.php:
|
9639 |
-
#: includes/widgets/htmega_single_post.php:
|
9640 |
#: includes/widgets/htmega_special_banner.php:338
|
9641 |
#: includes/widgets/htmega_special_banner.php:402
|
9642 |
#: includes/widgets/htmega_special_banner.php:466
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: HT Mega - Absolute Addons for Elementor Page Builder\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2020-04-13 06:19+0000\n"
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/\n"
|
16 |
+
"X-Loco-Version: 2.3.3; wp-5.4"
|
17 |
|
18 |
#: includes/widgets/htmega_twitter_feed.php:1491
|
19 |
msgid " days ago"
|
35 |
msgid " years ago"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: includes/class.htmega.php:139 includes/class.htmega.php:154
|
39 |
#, php-format
|
40 |
msgid "\"%1$s\" requires \"%2$s\" version %3$s or greater."
|
41 |
msgstr ""
|
591 |
msgid "Accordion Title Two"
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: admin/include/template-library.php:229
|
595 |
+
#: admin/include/template-library.php:281
|
596 |
msgid "Activate"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: admin/include/template-library.php:240
|
600 |
+
#: admin/include/template-library.php:292
|
601 |
msgid "Activated"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: includes/class.assests.php:359
|
605 |
msgid "Activating.."
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: includes/class.assests.php:360 includes/widgets/htmega_accordion.php:550
|
|
|
609 |
#: includes/widgets/htmega_accordion.php:880
|
610 |
#: includes/widgets/htmega_buddy_press.php:55
|
611 |
#: includes/widgets/htmega_carousel.php:749
|
753 |
#: includes/widgets/htmega_services.php:426
|
754 |
#: includes/widgets/htmega_services.php:617
|
755 |
#: includes/widgets/htmega_services.php:817
|
756 |
+
#: includes/widgets/htmega_single_post.php:188
|
757 |
+
#: includes/widgets/htmega_single_post.php:353
|
758 |
#: includes/widgets/htmega_special_banner.php:254
|
759 |
#: includes/widgets/htmega_tab.php:314 includes/widgets/htmega_table.php:414
|
760 |
#: includes/widgets/htmega_table.php:534
|
787 |
msgid "All Builders"
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: includes/class.assests.php:349
|
791 |
msgid "All Items have been Loaded"
|
792 |
msgstr ""
|
793 |
|
927 |
#: includes/widgets/htmega_job_manager.php:86
|
928 |
#: includes/widgets/htmega_post_carousel.php:266
|
929 |
#: includes/widgets/htmega_post_slider.php:244
|
930 |
+
#: includes/widgets/htmega_single_post.php:105
|
931 |
#: includes/widgets/htmega_twitter_feed.php:662
|
932 |
msgid "Author"
|
933 |
msgstr ""
|
1152 |
#: includes/widgets/htmega_services.php:788
|
1153 |
#: includes/widgets/htmega_services.php:921
|
1154 |
#: includes/widgets/htmega_services.php:977
|
1155 |
+
#: includes/widgets/htmega_single_post.php:281
|
1156 |
#: includes/widgets/htmega_slider_thumb_gallery.php:700
|
1157 |
#: includes/widgets/htmega_slider_thumb_gallery.php:777
|
1158 |
#: includes/widgets/htmega_slider_thumb_gallery.php:900
|
2267 |
msgid "Button Width"
|
2268 |
msgstr ""
|
2269 |
|
2270 |
+
#: includes/class.assests.php:356 admin/include/admin-setting.php:1185
|
2271 |
+
#: admin/include/template-library.php:248
|
2272 |
+
#: admin/include/template-library.php:300
|
2273 |
msgid "Buy Now"
|
2274 |
msgstr ""
|
2275 |
|
2363 |
#: includes/widgets/htmega_post_grid_tab.php:466
|
2364 |
#: includes/widgets/htmega_post_slider.php:234
|
2365 |
#: includes/widgets/htmega_post_slider.php:758
|
2366 |
+
#: includes/widgets/htmega_single_post.php:95
|
2367 |
+
#: includes/widgets/htmega_single_post.php:220
|
2368 |
msgid "Category"
|
2369 |
msgstr ""
|
2370 |
|
2427 |
#: includes/widgets/htmega_services.php:434
|
2428 |
#: includes/widgets/htmega_services.php:625
|
2429 |
#: includes/widgets/htmega_services.php:825
|
2430 |
+
#: includes/widgets/htmega_single_post.php:196
|
2431 |
+
#: includes/widgets/htmega_single_post.php:361
|
2432 |
#: includes/widgets/htmega_special_banner.php:40
|
2433 |
#: includes/widgets/htmega_special_banner.php:262
|
2434 |
#: includes/widgets/htmega_tab.php:322 includes/widgets/htmega_table.php:422
|
2786 |
#: includes/widgets/htmega_services.php:656
|
2787 |
#: includes/widgets/htmega_services.php:869
|
2788 |
#: includes/widgets/htmega_services.php:960
|
2789 |
+
#: includes/widgets/htmega_single_post.php:138
|
2790 |
+
#: includes/widgets/htmega_single_post.php:230
|
2791 |
+
#: includes/widgets/htmega_single_post.php:303
|
2792 |
#: includes/widgets/htmega_slider_thumb_gallery.php:648
|
2793 |
#: includes/widgets/htmega_slider_thumb_gallery.php:733
|
2794 |
#: includes/widgets/htmega_slider_thumb_gallery.php:883
|
3222 |
#: includes/widgets/htmega_post_grid.php:1018
|
3223 |
#: includes/widgets/htmega_post_grid_tab.php:1189
|
3224 |
#: includes/widgets/htmega_post_slider.php:1731
|
3225 |
+
#: includes/widgets/htmega_single_post.php:445
|
3226 |
msgid "d F Y"
|
3227 |
msgstr ""
|
3228 |
|
3257 |
#: includes/widgets/htmega_post_grid_tab.php:183
|
3258 |
#: includes/widgets/htmega_post_slider.php:149
|
3259 |
#: includes/widgets/htmega_post_slider.php:254
|
3260 |
+
#: includes/widgets/htmega_single_post.php:115
|
3261 |
+
#: includes/widgets/htmega_single_post.php:293
|
3262 |
#: includes/widgets/htmega_vertical_timeline.php:182
|
3263 |
msgid "Date"
|
3264 |
msgstr ""
|
3477 |
msgid "Easy Digital Downloads"
|
3478 |
msgstr ""
|
3479 |
|
3480 |
+
#: admin/include/template-library.php:173
|
3481 |
msgid "Edit Page"
|
3482 |
msgstr ""
|
3483 |
|
3484 |
+
#: admin/include/template-library.php:173
|
3485 |
msgid "Edit Template"
|
3486 |
msgstr ""
|
3487 |
|
3554 |
msgid "Element Space"
|
3555 |
msgstr ""
|
3556 |
|
3557 |
+
#: includes/class.htmega.php:141 admin/include/templates_list.php:42
|
3558 |
msgid "Elementor"
|
3559 |
msgstr ""
|
3560 |
|
3561 |
+
#: includes/class.htmega.php:119
|
3562 |
msgid "Elementor Activate Now"
|
3563 |
msgstr ""
|
3564 |
|
3565 |
+
#: includes/class.htmega.php:127
|
3566 |
msgid "Elementor Install Now"
|
3567 |
msgstr ""
|
3568 |
|
4048 |
msgid "Go Premium"
|
4049 |
msgstr ""
|
4050 |
|
4051 |
+
#: includes/class.htmega.php:171
|
4052 |
msgid "Go Pro"
|
4053 |
msgstr ""
|
4054 |
|
4475 |
msgid "HT Menu Settings"
|
4476 |
msgstr ""
|
4477 |
|
4478 |
+
#: includes/class.htmega.php:140 includes/class.htmega.php:155
|
4479 |
#: includes/widgets_control.php:27 admin/include/admin-setting.php:37
|
4480 |
#: admin/include/admin-setting.php:38
|
4481 |
msgid "HTMega Addons"
|
4482 |
msgstr ""
|
4483 |
|
4484 |
+
#: includes/class.htmega.php:118
|
4485 |
msgid ""
|
4486 |
"HTMEGA Addons not working because you need to activate the Elementor plugin."
|
4487 |
msgstr ""
|
4488 |
|
4489 |
+
#: includes/class.htmega.php:125
|
4490 |
msgid ""
|
4491 |
"HTMEGA Addons not working because you need to install the Elementor plugin"
|
4492 |
msgstr ""
|
4893 |
msgid "Image space"
|
4894 |
msgstr ""
|
4895 |
|
4896 |
+
#: includes/class.assests.php:355
|
4897 |
msgid "Import"
|
4898 |
msgstr ""
|
4899 |
|
4901 |
msgid "Import template to your Library"
|
4902 |
msgstr ""
|
4903 |
|
4904 |
+
#: includes/class.assests.php:353
|
4905 |
msgid "Import to Library"
|
4906 |
msgstr ""
|
4907 |
|
4908 |
+
#: includes/class.assests.php:354
|
4909 |
msgid "Import to Page"
|
4910 |
msgstr ""
|
4911 |
|
4912 |
+
#: includes/class.assests.php:348
|
4913 |
msgid "in this package"
|
4914 |
msgstr ""
|
4915 |
|
4991 |
msgid "Instagram user ID"
|
4992 |
msgstr ""
|
4993 |
|
4994 |
+
#: admin/include/admin-setting.php:1159 admin/include/template-library.php:235
|
4995 |
+
#: admin/include/template-library.php:287
|
4996 |
msgid "Install Now"
|
4997 |
msgstr ""
|
4998 |
|
4999 |
+
#: includes/class.assests.php:358
|
5000 |
msgid "Installing.."
|
5001 |
msgstr ""
|
5002 |
|
5154 |
#: includes/widgets/htmega_services.php:442
|
5155 |
#: includes/widgets/htmega_services.php:633
|
5156 |
#: includes/widgets/htmega_services.php:833
|
5157 |
+
#: includes/widgets/htmega_single_post.php:204
|
5158 |
+
#: includes/widgets/htmega_single_post.php:369
|
5159 |
#: includes/widgets/htmega_special_banner.php:270
|
5160 |
#: includes/widgets/htmega_table.php:430 includes/widgets/htmega_table.php:550
|
5161 |
#: includes/widgets/htmega_tablepress.php:219
|
5356 |
#: includes/widgets/htmega_services.php:430
|
5357 |
#: includes/widgets/htmega_services.php:621
|
5358 |
#: includes/widgets/htmega_services.php:821
|
5359 |
+
#: includes/widgets/htmega_single_post.php:192
|
5360 |
+
#: includes/widgets/htmega_single_post.php:357
|
5361 |
#: includes/widgets/htmega_slider_thumb_gallery.php:48
|
5362 |
#: includes/widgets/htmega_special_banner.php:42
|
5363 |
#: includes/widgets/htmega_special_banner.php:258
|
5856 |
#: includes/widgets/htmega_services.php:560
|
5857 |
#: includes/widgets/htmega_services.php:761
|
5858 |
#: includes/widgets/htmega_services.php:894
|
5859 |
+
#: includes/widgets/htmega_single_post.php:164
|
5860 |
+
#: includes/widgets/htmega_single_post.php:256
|
5861 |
+
#: includes/widgets/htmega_single_post.php:329
|
5862 |
#: includes/widgets/htmega_slider_thumb_gallery.php:673
|
5863 |
#: includes/widgets/htmega_socialshere.php:458
|
5864 |
#: includes/widgets/htmega_special_banner.php:283
|
6219 |
msgid "No contact form found"
|
6220 |
msgstr ""
|
6221 |
|
6222 |
+
#: includes/widgets/htmega_single_post.php:454
|
6223 |
+
msgid "No selected post"
|
6224 |
+
msgstr ""
|
6225 |
+
|
6226 |
#: includes/helper-function.php:65
|
6227 |
msgid "No sidebars were found"
|
6228 |
msgstr ""
|
6347 |
msgid "Normal Title"
|
6348 |
msgstr ""
|
6349 |
|
6350 |
+
#: includes/class.assests.php:350
|
6351 |
msgid "Nothing Found"
|
6352 |
msgstr ""
|
6353 |
|
6832 |
#: includes/widgets/htmega_services.php:574
|
6833 |
#: includes/widgets/htmega_services.php:774
|
6834 |
#: includes/widgets/htmega_services.php:907
|
6835 |
+
#: includes/widgets/htmega_single_post.php:176
|
6836 |
+
#: includes/widgets/htmega_single_post.php:268
|
6837 |
+
#: includes/widgets/htmega_single_post.php:341
|
6838 |
#: includes/widgets/htmega_slider_thumb_gallery.php:686
|
6839 |
#: includes/widgets/htmega_slider_thumb_gallery.php:860
|
6840 |
#: includes/widgets/htmega_socialshere.php:445
|
7026 |
msgid "Photoshop"
|
7027 |
msgstr ""
|
7028 |
|
7029 |
+
#: includes/class.htmega.php:156
|
7030 |
msgid "PHP"
|
7031 |
msgstr ""
|
7032 |
|
7080 |
msgid "Please wait..."
|
7081 |
msgstr ""
|
7082 |
|
7083 |
+
#: admin/include/template-library.php:323
|
7084 |
msgid "Plugin Not Found"
|
7085 |
msgstr ""
|
7086 |
|
7087 |
+
#: admin/include/template-library.php:343
|
7088 |
msgid "Plugin Successfully Activated"
|
7089 |
msgstr ""
|
7090 |
|
7237 |
msgid "premium version"
|
7238 |
msgstr ""
|
7239 |
|
7240 |
+
#: includes/class.assests.php:357
|
7241 |
msgid "Preview"
|
7242 |
msgstr ""
|
7243 |
|
7298 |
msgid "Print Page <span>( Pro )</span>"
|
7299 |
msgstr ""
|
7300 |
|
7301 |
+
#: includes/class.assests.php:345 admin/include/templates_list.php:54
|
7302 |
msgid "Pro"
|
7303 |
msgstr ""
|
7304 |
|
7598 |
#: includes/widgets/htmega_services.php:438
|
7599 |
#: includes/widgets/htmega_services.php:629
|
7600 |
#: includes/widgets/htmega_services.php:829
|
7601 |
+
#: includes/widgets/htmega_single_post.php:200
|
7602 |
+
#: includes/widgets/htmega_single_post.php:365
|
7603 |
#: includes/widgets/htmega_slider_thumb_gallery.php:46
|
7604 |
#: includes/widgets/htmega_special_banner.php:43
|
7605 |
#: includes/widgets/htmega_special_banner.php:266
|
7933 |
msgid "Services Title"
|
7934 |
msgstr ""
|
7935 |
|
7936 |
+
#: includes/class.htmega.php:168 admin/include/admin-setting.php:47
|
7937 |
#: admin/include/admin-setting.php:48
|
7938 |
msgid "Settings"
|
7939 |
msgstr ""
|
8409 |
msgid "Sorry, the username you entered is not valid"
|
8410 |
msgstr ""
|
8411 |
|
8412 |
+
#: admin/include/template-library.php:358
|
8413 |
msgid "Sorry, you are not allowed to install themes on this site."
|
8414 |
msgstr ""
|
8415 |
|
9088 |
msgid "The resolution to tablet."
|
9089 |
msgstr ""
|
9090 |
|
9091 |
+
#: admin/include/template-library.php:369
|
9092 |
msgid "Theme Activated"
|
9093 |
msgstr ""
|
9094 |
|
9322 |
#: includes/widgets/htmega_section_title.php:487
|
9323 |
#: includes/widgets/htmega_services.php:234
|
9324 |
#: includes/widgets/htmega_single_post.php:69
|
9325 |
+
#: includes/widgets/htmega_single_post.php:128
|
9326 |
#: includes/widgets/htmega_slider_thumb_gallery.php:59
|
9327 |
#: includes/widgets/htmega_slider_thumb_gallery.php:641
|
9328 |
#: includes/widgets/htmega_socialshere.php:94
|
9383 |
#: includes/widgets/htmega_post_carousel.php:206
|
9384 |
#: includes/widgets/htmega_post_grid.php:165
|
9385 |
#: includes/widgets/htmega_post_slider.php:175
|
9386 |
+
#: includes/widgets/htmega_single_post.php:79
|
9387 |
msgid "Title Length"
|
9388 |
msgstr ""
|
9389 |
|
9638 |
#: includes/widgets/htmega_pricing_list_view.php:726
|
9639 |
#: includes/widgets/htmega_progressbar.php:444
|
9640 |
#: includes/widgets/htmega_progressbar.php:524
|
9641 |
+
#: includes/widgets/htmega_single_post.php:155
|
9642 |
+
#: includes/widgets/htmega_single_post.php:247
|
9643 |
+
#: includes/widgets/htmega_single_post.php:320
|
9644 |
#: includes/widgets/htmega_special_banner.php:338
|
9645 |
#: includes/widgets/htmega_special_banner.php:402
|
9646 |
#: includes/widgets/htmega_special_banner.php:466
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: hasthemes, htplugins, devitemsllc
|
|
3 |
Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.4
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -190,6 +190,11 @@ Visit [HasThemes](https://hasthemes.com/) for more details about HTML, Shopify a
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
193 |
= Version: 1.3.7 - Date: 2020-03-09 =
|
194 |
* Working Process 5 column responsive issue fixed
|
195 |
* Post slider responsive issue fixed.
|
3 |
Tags: Elementor, Elementor Addons, Elementor Widgets, elementor page builder, Elementor Blocks
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 1.4.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
190 |
|
191 |
== Changelog ==
|
192 |
|
193 |
+
= Version: 1.4.0 - Date: 2020-04-13 =
|
194 |
+
* Single Post Title Length option added.
|
195 |
+
* Modal Issue solved for mobile device.
|
196 |
+
* Image Grid Overlay color Issue solved.
|
197 |
+
|
198 |
= Version: 1.3.7 - Date: 2020-03-09 =
|
199 |
* Working Process 5 column responsive issue fixed
|
200 |
* Post slider responsive issue fixed.
|