Version Description
- Added - Documentation for Posts Slider, Posts Multislider and Posts Gridbox Slider
- Added - Code documentation for widgets
Download this release
Release Info
Developer | livemesh |
Plugin | Addons for Elementor |
Version | 7.1.8 |
Comparing to | |
See all releases |
Code changes from version 7.1.7 to 7.1.8
- addons-for-elementor.php +2 -2
- includes/widgets/carousel.php +46 -0
- includes/widgets/clients.php +46 -0
- includes/widgets/heading.php +47 -1
- includes/widgets/message-box.php +46 -0
- includes/widgets/odometers.php +46 -0
- includes/widgets/piecharts.php +46 -0
- includes/widgets/portfolio.php +46 -0
- includes/widgets/posts-carousel.php +46 -0
- includes/widgets/posts-gridbox-slider.php +46 -0
- includes/widgets/posts-multislider.php +46 -0
- includes/widgets/posts-slider.php +46 -0
- includes/widgets/pricing-table.php +46 -0
- includes/widgets/services.php +46 -0
- includes/widgets/stats-bars.php +46 -0
- includes/widgets/tab-slider.php +46 -0
- includes/widgets/team-members.php +46 -0
- includes/widgets/testimonials-slider.php +46 -0
- includes/widgets/testimonials.php +46 -0
- plugin.php +2 -2
- readme.txt +6 -2
addons-for-elementor.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Author URI: https://livemeshelementor.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
-
* Version: 7.1.
|
12 |
* Text Domain: livemesh-el-addons
|
13 |
* Domain Path: languages
|
14 |
* Elementor tested up to: 3.7.0
|
@@ -37,7 +37,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
37 |
|
38 |
if ( !function_exists( 'lae_fs' ) ) {
|
39 |
// Plugin version
|
40 |
-
define( 'LAE_VERSION', '7.1.
|
41 |
// Plugin Root File
|
42 |
define( 'LAE_PLUGIN_FILE', __FILE__ );
|
43 |
// Plugin Folder Path
|
8 |
* Author URI: https://livemeshelementor.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
+
* Version: 7.1.8
|
12 |
* Text Domain: livemesh-el-addons
|
13 |
* Domain Path: languages
|
14 |
* Elementor tested up to: 3.7.0
|
37 |
|
38 |
if ( !function_exists( 'lae_fs' ) ) {
|
39 |
// Plugin version
|
40 |
+
define( 'LAE_VERSION', '7.1.8' );
|
41 |
// Plugin Root File
|
42 |
define( 'LAE_PLUGIN_FILE', __FILE__ );
|
43 |
// Plugin Folder Path
|
includes/widgets/carousel.php
CHANGED
@@ -18,33 +18,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
|
|
|
|
|
|
21 |
class LAE_Carousel_Widget extends LAE_Widget_Base
|
22 |
{
|
|
|
|
|
|
|
|
|
23 |
public function get_name()
|
24 |
{
|
25 |
return 'lae-carousel';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function get_title()
|
29 |
{
|
30 |
return __( 'Carousel', 'livemesh-el-addons' );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
33 |
public function get_icon()
|
34 |
{
|
35 |
return 'lae-icon-carousel';
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function get_categories()
|
39 |
{
|
40 |
return array( 'livemesh-addons' );
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
public function get_custom_help_url()
|
44 |
{
|
45 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/carousel-addon/';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
48 |
public function get_script_depends()
|
49 |
{
|
50 |
return [
|
@@ -55,6 +85,11 @@ class LAE_Carousel_Widget extends LAE_Widget_Base
|
|
55 |
];
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
protected function register_controls()
|
59 |
{
|
60 |
$this->start_controls_section( 'section_carousel', [
|
@@ -325,6 +360,13 @@ Fusce risus nisl, viverra et, tempor et, pretium in, sapien. Vestibulum turpis s
|
|
325 |
] );
|
326 |
}
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
protected function render()
|
329 |
{
|
330 |
$settings = $this->get_settings_for_display();
|
@@ -334,6 +376,10 @@ Fusce risus nisl, viverra et, tempor et, pretium in, sapien. Vestibulum turpis s
|
|
334 |
lae_get_template_part( 'addons/carousel/loop', $args );
|
335 |
}
|
336 |
|
|
|
|
|
|
|
|
|
337 |
protected function content_template()
|
338 |
{
|
339 |
}
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
21 |
+
/**
|
22 |
+
* Class for Carousel widget that displays a list of custom HTML content as a carousel.
|
23 |
+
*/
|
24 |
class LAE_Carousel_Widget extends LAE_Widget_Base
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Get the name for the widget
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
public function get_name()
|
31 |
{
|
32 |
return 'lae-carousel';
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Get the widget title
|
37 |
+
* @return string|void
|
38 |
+
*/
|
39 |
public function get_title()
|
40 |
{
|
41 |
return __( 'Carousel', 'livemesh-el-addons' );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the widget icon
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_icon()
|
49 |
{
|
50 |
return 'lae-icon-carousel';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Retrieve the list of categories the widget belongs to.
|
55 |
+
*
|
56 |
+
* Used to determine where to display the widget in the editor.
|
57 |
+
*
|
58 |
+
* @return string[]
|
59 |
+
*/
|
60 |
public function get_categories()
|
61 |
{
|
62 |
return array( 'livemesh-addons' );
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Get the widget documentation URL
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
public function get_custom_help_url()
|
70 |
{
|
71 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/carousel-addon/';
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Obtain the scripts required for the widget to function
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_script_depends()
|
79 |
{
|
80 |
return [
|
85 |
];
|
86 |
}
|
87 |
|
88 |
+
/**
|
89 |
+
* Register the controls for the widget
|
90 |
+
* Adds fields that help configure and customize the widget
|
91 |
+
* @return void
|
92 |
+
*/
|
93 |
protected function register_controls()
|
94 |
{
|
95 |
$this->start_controls_section( 'section_carousel', [
|
360 |
] );
|
361 |
}
|
362 |
|
363 |
+
/**
|
364 |
+
* Render HTML widget output on the frontend.
|
365 |
+
*
|
366 |
+
* Written in PHP and used to generate the final HTML.
|
367 |
+
*
|
368 |
+
* @return void
|
369 |
+
*/
|
370 |
protected function render()
|
371 |
{
|
372 |
$settings = $this->get_settings_for_display();
|
376 |
lae_get_template_part( 'addons/carousel/loop', $args );
|
377 |
}
|
378 |
|
379 |
+
/**
|
380 |
+
* Render the widget output in the editor.
|
381 |
+
* @return void
|
382 |
+
*/
|
383 |
protected function content_template()
|
384 |
{
|
385 |
}
|
includes/widgets/clients.php
CHANGED
@@ -19,33 +19,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
|
|
|
|
|
|
22 |
class LAE_Clients_Widget extends LAE_Widget_Base
|
23 |
{
|
|
|
|
|
|
|
|
|
24 |
public function get_name()
|
25 |
{
|
26 |
return 'lae-clients';
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
29 |
public function get_title()
|
30 |
{
|
31 |
return __( 'Clients', 'livemesh-el-addons' );
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
34 |
public function get_icon()
|
35 |
{
|
36 |
return 'lae-icon-clients';
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
public function get_categories()
|
40 |
{
|
41 |
return array( 'livemesh-addons' );
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
44 |
public function get_custom_help_url()
|
45 |
{
|
46 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/clients-addon/';
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
49 |
public function get_script_depends()
|
50 |
{
|
51 |
return [
|
@@ -57,6 +87,11 @@ class LAE_Clients_Widget extends LAE_Widget_Base
|
|
57 |
];
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
protected function register_controls()
|
61 |
{
|
62 |
$this->start_controls_section( 'section_clients', [
|
@@ -488,6 +523,13 @@ class LAE_Clients_Widget extends LAE_Widget_Base
|
|
488 |
$this->end_controls_section();
|
489 |
}
|
490 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
protected function render()
|
492 |
{
|
493 |
$settings = $this->get_settings_for_display();
|
@@ -497,6 +539,10 @@ class LAE_Clients_Widget extends LAE_Widget_Base
|
|
497 |
lae_get_template_part( 'addons/clients/loop', $args );
|
498 |
}
|
499 |
|
|
|
|
|
|
|
|
|
500 |
protected function content_template()
|
501 |
{
|
502 |
}
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
22 |
+
/**
|
23 |
+
* Class for Clients widget that displays one or more clients depicting a percentage value in a multi-column grid.
|
24 |
+
*/
|
25 |
class LAE_Clients_Widget extends LAE_Widget_Base
|
26 |
{
|
27 |
+
/**
|
28 |
+
* Get the name for the widget
|
29 |
+
* @return string
|
30 |
+
*/
|
31 |
public function get_name()
|
32 |
{
|
33 |
return 'lae-clients';
|
34 |
}
|
35 |
|
36 |
+
/**
|
37 |
+
* Get the widget title
|
38 |
+
* @return string|void
|
39 |
+
*/
|
40 |
public function get_title()
|
41 |
{
|
42 |
return __( 'Clients', 'livemesh-el-addons' );
|
43 |
}
|
44 |
|
45 |
+
/**
|
46 |
+
* Get the widget icon
|
47 |
+
* @return string
|
48 |
+
*/
|
49 |
public function get_icon()
|
50 |
{
|
51 |
return 'lae-icon-clients';
|
52 |
}
|
53 |
|
54 |
+
/**
|
55 |
+
* Retrieve the list of categories the widget belongs to.
|
56 |
+
*
|
57 |
+
* Used to determine where to display the widget in the editor.
|
58 |
+
*
|
59 |
+
* @return string[]
|
60 |
+
*/
|
61 |
public function get_categories()
|
62 |
{
|
63 |
return array( 'livemesh-addons' );
|
64 |
}
|
65 |
|
66 |
+
/**
|
67 |
+
* Get the widget documentation URL
|
68 |
+
* @return string
|
69 |
+
*/
|
70 |
public function get_custom_help_url()
|
71 |
{
|
72 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/clients-addon/';
|
73 |
}
|
74 |
|
75 |
+
/**
|
76 |
+
* Obtain the scripts required for the widget to function
|
77 |
+
* @return string[]
|
78 |
+
*/
|
79 |
public function get_script_depends()
|
80 |
{
|
81 |
return [
|
87 |
];
|
88 |
}
|
89 |
|
90 |
+
/**
|
91 |
+
* Register the controls for the widget
|
92 |
+
* Adds fields that help configure and customize the widget
|
93 |
+
* @return void
|
94 |
+
*/
|
95 |
protected function register_controls()
|
96 |
{
|
97 |
$this->start_controls_section( 'section_clients', [
|
523 |
$this->end_controls_section();
|
524 |
}
|
525 |
|
526 |
+
/**
|
527 |
+
* Render HTML widget output on the frontend.
|
528 |
+
*
|
529 |
+
* Written in PHP and used to generate the final HTML.
|
530 |
+
*
|
531 |
+
* @return void
|
532 |
+
*/
|
533 |
protected function render()
|
534 |
{
|
535 |
$settings = $this->get_settings_for_display();
|
539 |
lae_get_template_part( 'addons/clients/loop', $args );
|
540 |
}
|
541 |
|
542 |
+
/**
|
543 |
+
* Render the widget output in the editor.
|
544 |
+
* @return void
|
545 |
+
*/
|
546 |
protected function content_template()
|
547 |
{
|
548 |
}
|
includes/widgets/heading.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
Widget Name: Heading
|
5 |
-
Description: Display
|
6 |
Author: LiveMesh
|
7 |
Author URI: https://www.livemeshthemes.com
|
8 |
*/
|
@@ -17,38 +17,73 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
17 |
exit;
|
18 |
}
|
19 |
// Exit if accessed directly
|
|
|
|
|
|
|
20 |
class LAE_Heading_Widget extends LAE_Widget_Base
|
21 |
{
|
|
|
|
|
|
|
|
|
22 |
public function get_name()
|
23 |
{
|
24 |
return 'lae-heading';
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
27 |
public function get_title()
|
28 |
{
|
29 |
return __( 'Heading', 'livemesh-el-addons' );
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
32 |
public function get_icon()
|
33 |
{
|
34 |
return 'lae-icon-heading';
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
public function get_categories()
|
38 |
{
|
39 |
return array( 'livemesh-addons' );
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
42 |
public function get_custom_help_url()
|
43 |
{
|
44 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/heading-addon/';
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
47 |
public function get_script_depends()
|
48 |
{
|
49 |
return [ 'lae-waypoints', 'lae-frontend-scripts' ];
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
52 |
protected function register_controls()
|
53 |
{
|
54 |
$this->start_controls_section( 'section_heading', [
|
@@ -216,6 +251,13 @@ class LAE_Heading_Widget extends LAE_Widget_Base
|
|
216 |
$this->end_controls_section();
|
217 |
}
|
218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
protected function render()
|
220 |
{
|
221 |
$settings = $this->get_settings_for_display();
|
@@ -225,6 +267,10 @@ class LAE_Heading_Widget extends LAE_Widget_Base
|
|
225 |
lae_get_template_part( "addons/heading/{$settings['style']}", $args );
|
226 |
}
|
227 |
|
|
|
|
|
|
|
|
|
228 |
protected function content_template()
|
229 |
{
|
230 |
}
|
2 |
|
3 |
/*
|
4 |
Widget Name: Heading
|
5 |
+
Description: Display headings in multiple styles.
|
6 |
Author: LiveMesh
|
7 |
Author URI: https://www.livemeshthemes.com
|
8 |
*/
|
17 |
exit;
|
18 |
}
|
19 |
// Exit if accessed directly
|
20 |
+
/**
|
21 |
+
* Class for Heading widget that displays headings in multiple styles.
|
22 |
+
*/
|
23 |
class LAE_Heading_Widget extends LAE_Widget_Base
|
24 |
{
|
25 |
+
/**
|
26 |
+
* Get the name for the widget
|
27 |
+
* @return string
|
28 |
+
*/
|
29 |
public function get_name()
|
30 |
{
|
31 |
return 'lae-heading';
|
32 |
}
|
33 |
|
34 |
+
/**
|
35 |
+
* Get the widget title
|
36 |
+
* @return string|void
|
37 |
+
*/
|
38 |
public function get_title()
|
39 |
{
|
40 |
return __( 'Heading', 'livemesh-el-addons' );
|
41 |
}
|
42 |
|
43 |
+
/**
|
44 |
+
* Get the widget icon
|
45 |
+
* @return string
|
46 |
+
*/
|
47 |
public function get_icon()
|
48 |
{
|
49 |
return 'lae-icon-heading';
|
50 |
}
|
51 |
|
52 |
+
/**
|
53 |
+
* Retrieve the list of categories the widget belongs to.
|
54 |
+
*
|
55 |
+
* Used to determine where to display the widget in the editor.
|
56 |
+
*
|
57 |
+
* @return string[]
|
58 |
+
*/
|
59 |
public function get_categories()
|
60 |
{
|
61 |
return array( 'livemesh-addons' );
|
62 |
}
|
63 |
|
64 |
+
/**
|
65 |
+
* Get the widget documentation URL
|
66 |
+
* @return string
|
67 |
+
*/
|
68 |
public function get_custom_help_url()
|
69 |
{
|
70 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/heading-addon/';
|
71 |
}
|
72 |
|
73 |
+
/**
|
74 |
+
* Obtain the scripts required for the widget to function
|
75 |
+
* @return string[]
|
76 |
+
*/
|
77 |
public function get_script_depends()
|
78 |
{
|
79 |
return [ 'lae-waypoints', 'lae-frontend-scripts' ];
|
80 |
}
|
81 |
|
82 |
+
/**
|
83 |
+
* Register the controls for the widget
|
84 |
+
* Adds fields that help configure and customize the widget
|
85 |
+
* @return void
|
86 |
+
*/
|
87 |
protected function register_controls()
|
88 |
{
|
89 |
$this->start_controls_section( 'section_heading', [
|
251 |
$this->end_controls_section();
|
252 |
}
|
253 |
|
254 |
+
/**
|
255 |
+
* Render HTML widget output on the frontend.
|
256 |
+
*
|
257 |
+
* Written in PHP and used to generate the final HTML.
|
258 |
+
*
|
259 |
+
* @return void
|
260 |
+
*/
|
261 |
protected function render()
|
262 |
{
|
263 |
$settings = $this->get_settings_for_display();
|
267 |
lae_get_template_part( "addons/heading/{$settings['style']}", $args );
|
268 |
}
|
269 |
|
270 |
+
/**
|
271 |
+
* Render the widget output in the editor.
|
272 |
+
* @return void
|
273 |
+
*/
|
274 |
protected function content_template()
|
275 |
{
|
276 |
}
|
includes/widgets/message-box.php
CHANGED
@@ -20,38 +20,73 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
20 |
exit;
|
21 |
}
|
22 |
// Exit if accessed directly
|
|
|
|
|
|
|
23 |
class LAE_Message_Box_Widget extends LAE_Widget_Base
|
24 |
{
|
|
|
|
|
|
|
|
|
25 |
public function get_name()
|
26 |
{
|
27 |
return 'lae-message-box';
|
28 |
}
|
29 |
|
|
|
|
|
|
|
|
|
30 |
public function get_title()
|
31 |
{
|
32 |
return __( 'Message Box', 'livemesh-el-addons' );
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
35 |
public function get_icon()
|
36 |
{
|
37 |
return 'eicon-alert';
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
public function get_categories()
|
41 |
{
|
42 |
return array( 'livemesh-addons' );
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
45 |
public function get_custom_help_url()
|
46 |
{
|
47 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/message-box-addon/';
|
48 |
}
|
49 |
|
|
|
|
|
|
|
|
|
50 |
public function get_script_depends()
|
51 |
{
|
52 |
return [ 'lae-frontend-scripts', 'lae-message-box-scripts' ];
|
53 |
}
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
protected function register_controls()
|
56 |
{
|
57 |
$this->start_controls_section( 'section_message_box', [
|
@@ -330,6 +365,13 @@ class LAE_Message_Box_Widget extends LAE_Widget_Base
|
|
330 |
$this->end_controls_section();
|
331 |
}
|
332 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
protected function render()
|
334 |
{
|
335 |
$settings = $this->get_settings_for_display();
|
@@ -339,6 +381,10 @@ class LAE_Message_Box_Widget extends LAE_Widget_Base
|
|
339 |
lae_get_template_part( 'addons/message-box/content', $args );
|
340 |
}
|
341 |
|
|
|
|
|
|
|
|
|
342 |
protected function content_template()
|
343 |
{
|
344 |
}
|
20 |
exit;
|
21 |
}
|
22 |
// Exit if accessed directly
|
23 |
+
/**
|
24 |
+
* Class for Message Box widget that displays messages to the user that can be dismissed.
|
25 |
+
*/
|
26 |
class LAE_Message_Box_Widget extends LAE_Widget_Base
|
27 |
{
|
28 |
+
/**
|
29 |
+
* Get the name for the widget
|
30 |
+
* @return string
|
31 |
+
*/
|
32 |
public function get_name()
|
33 |
{
|
34 |
return 'lae-message-box';
|
35 |
}
|
36 |
|
37 |
+
/**
|
38 |
+
* Get the widget title
|
39 |
+
* @return string|void
|
40 |
+
*/
|
41 |
public function get_title()
|
42 |
{
|
43 |
return __( 'Message Box', 'livemesh-el-addons' );
|
44 |
}
|
45 |
|
46 |
+
/**
|
47 |
+
* Get the widget icon
|
48 |
+
* @return string
|
49 |
+
*/
|
50 |
public function get_icon()
|
51 |
{
|
52 |
return 'eicon-alert';
|
53 |
}
|
54 |
|
55 |
+
/**
|
56 |
+
* Retrieve the list of categories the widget belongs to.
|
57 |
+
*
|
58 |
+
* Used to determine where to display the widget in the editor.
|
59 |
+
*
|
60 |
+
* @return string[]
|
61 |
+
*/
|
62 |
public function get_categories()
|
63 |
{
|
64 |
return array( 'livemesh-addons' );
|
65 |
}
|
66 |
|
67 |
+
/**
|
68 |
+
* Get the widget documentation URL
|
69 |
+
* @return string
|
70 |
+
*/
|
71 |
public function get_custom_help_url()
|
72 |
{
|
73 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/message-box-addon/';
|
74 |
}
|
75 |
|
76 |
+
/**
|
77 |
+
* Obtain the scripts required for the widget to function
|
78 |
+
* @return string[]
|
79 |
+
*/
|
80 |
public function get_script_depends()
|
81 |
{
|
82 |
return [ 'lae-frontend-scripts', 'lae-message-box-scripts' ];
|
83 |
}
|
84 |
|
85 |
+
/**
|
86 |
+
* Register the controls for the widget
|
87 |
+
* Adds fields that help configure and customize the widget
|
88 |
+
* @return void
|
89 |
+
*/
|
90 |
protected function register_controls()
|
91 |
{
|
92 |
$this->start_controls_section( 'section_message_box', [
|
365 |
$this->end_controls_section();
|
366 |
}
|
367 |
|
368 |
+
/**
|
369 |
+
* Render HTML widget output on the frontend.
|
370 |
+
*
|
371 |
+
* Written in PHP and used to generate the final HTML.
|
372 |
+
*
|
373 |
+
* @return void
|
374 |
+
*/
|
375 |
protected function render()
|
376 |
{
|
377 |
$settings = $this->get_settings_for_display();
|
381 |
lae_get_template_part( 'addons/message-box/content', $args );
|
382 |
}
|
383 |
|
384 |
+
/**
|
385 |
+
* Render the widget output in the editor.
|
386 |
+
* @return void
|
387 |
+
*/
|
388 |
protected function content_template()
|
389 |
{
|
390 |
}
|
includes/widgets/odometers.php
CHANGED
@@ -20,33 +20,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
20 |
exit;
|
21 |
}
|
22 |
// Exit if accessed directly
|
|
|
|
|
|
|
23 |
class LAE_Odometers_Widget extends LAE_Widget_Base
|
24 |
{
|
|
|
|
|
|
|
|
|
25 |
public function get_name()
|
26 |
{
|
27 |
return 'lae-odometers';
|
28 |
}
|
29 |
|
|
|
|
|
|
|
|
|
30 |
public function get_title()
|
31 |
{
|
32 |
return __( 'Odometers', 'livemesh-el-addons' );
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
35 |
public function get_icon()
|
36 |
{
|
37 |
return 'eicon-counter';
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
public function get_categories()
|
41 |
{
|
42 |
return array( 'livemesh-addons' );
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
45 |
public function get_custom_help_url()
|
46 |
{
|
47 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/statistics-addons/';
|
48 |
}
|
49 |
|
|
|
|
|
|
|
|
|
50 |
public function get_script_depends()
|
51 |
{
|
52 |
return [
|
@@ -57,6 +87,11 @@ class LAE_Odometers_Widget extends LAE_Widget_Base
|
|
57 |
];
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
protected function register_controls()
|
61 |
{
|
62 |
$this->start_controls_section( 'section_odometers', [
|
@@ -354,6 +389,13 @@ class LAE_Odometers_Widget extends LAE_Widget_Base
|
|
354 |
] );
|
355 |
}
|
356 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
protected function render()
|
358 |
{
|
359 |
$settings = $this->get_settings_for_display();
|
@@ -363,6 +405,10 @@ class LAE_Odometers_Widget extends LAE_Widget_Base
|
|
363 |
lae_get_template_part( 'addons/odometers/loop', $args );
|
364 |
}
|
365 |
|
|
|
|
|
|
|
|
|
366 |
protected function content_template()
|
367 |
{
|
368 |
}
|
20 |
exit;
|
21 |
}
|
22 |
// Exit if accessed directly
|
23 |
+
/**
|
24 |
+
* Class for Odometers widget that displays one or more animated odometer statistics in a multi-column grid.
|
25 |
+
*/
|
26 |
class LAE_Odometers_Widget extends LAE_Widget_Base
|
27 |
{
|
28 |
+
/**
|
29 |
+
* Get the name for the widget
|
30 |
+
* @return string
|
31 |
+
*/
|
32 |
public function get_name()
|
33 |
{
|
34 |
return 'lae-odometers';
|
35 |
}
|
36 |
|
37 |
+
/**
|
38 |
+
* Get the widget title
|
39 |
+
* @return string|void
|
40 |
+
*/
|
41 |
public function get_title()
|
42 |
{
|
43 |
return __( 'Odometers', 'livemesh-el-addons' );
|
44 |
}
|
45 |
|
46 |
+
/**
|
47 |
+
* Get the widget icon
|
48 |
+
* @return string
|
49 |
+
*/
|
50 |
public function get_icon()
|
51 |
{
|
52 |
return 'eicon-counter';
|
53 |
}
|
54 |
|
55 |
+
/**
|
56 |
+
* Retrieve the list of categories the widget belongs to.
|
57 |
+
*
|
58 |
+
* Used to determine where to display the widget in the editor.
|
59 |
+
*
|
60 |
+
* @return string[]
|
61 |
+
*/
|
62 |
public function get_categories()
|
63 |
{
|
64 |
return array( 'livemesh-addons' );
|
65 |
}
|
66 |
|
67 |
+
/**
|
68 |
+
* Get the widget documentation URL
|
69 |
+
* @return string
|
70 |
+
*/
|
71 |
public function get_custom_help_url()
|
72 |
{
|
73 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/statistics-addons/';
|
74 |
}
|
75 |
|
76 |
+
/**
|
77 |
+
* Obtain the scripts required for the widget to function
|
78 |
+
* @return string[]
|
79 |
+
*/
|
80 |
public function get_script_depends()
|
81 |
{
|
82 |
return [
|
87 |
];
|
88 |
}
|
89 |
|
90 |
+
/**
|
91 |
+
* Register the controls for the widget
|
92 |
+
* Adds fields that help configure and customize the widget
|
93 |
+
* @return void
|
94 |
+
*/
|
95 |
protected function register_controls()
|
96 |
{
|
97 |
$this->start_controls_section( 'section_odometers', [
|
389 |
] );
|
390 |
}
|
391 |
|
392 |
+
/**
|
393 |
+
* Render HTML widget output on the frontend.
|
394 |
+
*
|
395 |
+
* Written in PHP and used to generate the final HTML.
|
396 |
+
*
|
397 |
+
* @return void
|
398 |
+
*/
|
399 |
protected function render()
|
400 |
{
|
401 |
$settings = $this->get_settings_for_display();
|
405 |
lae_get_template_part( 'addons/odometers/loop', $args );
|
406 |
}
|
407 |
|
408 |
+
/**
|
409 |
+
* Render the widget output in the editor.
|
410 |
+
* @return void
|
411 |
+
*/
|
412 |
protected function content_template()
|
413 |
{
|
414 |
}
|
includes/widgets/piecharts.php
CHANGED
@@ -18,33 +18,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
|
|
|
|
|
|
21 |
class LAE_Piecharts_Widget extends LAE_Widget_Base
|
22 |
{
|
|
|
|
|
|
|
|
|
23 |
public function get_name()
|
24 |
{
|
25 |
return 'lae-piecharts';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function get_title()
|
29 |
{
|
30 |
return __( 'Piecharts', 'livemesh-el-addons' );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
33 |
public function get_icon()
|
34 |
{
|
35 |
return 'lae-icon-piechart3';
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function get_categories()
|
39 |
{
|
40 |
return array( 'livemesh-addons' );
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
public function get_custom_help_url()
|
44 |
{
|
45 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/statistics-addons/';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
48 |
public function get_script_depends()
|
49 |
{
|
50 |
return [
|
@@ -55,6 +85,11 @@ class LAE_Piecharts_Widget extends LAE_Widget_Base
|
|
55 |
];
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
protected function register_controls()
|
59 |
{
|
60 |
$this->start_controls_section( 'section_piecharts', [
|
@@ -273,6 +308,13 @@ class LAE_Piecharts_Widget extends LAE_Widget_Base
|
|
273 |
] );
|
274 |
}
|
275 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
protected function render()
|
277 |
{
|
278 |
$settings = $this->get_settings_for_display();
|
@@ -282,6 +324,10 @@ class LAE_Piecharts_Widget extends LAE_Widget_Base
|
|
282 |
lae_get_template_part( 'addons/piecharts/loop', $args );
|
283 |
}
|
284 |
|
|
|
|
|
|
|
|
|
285 |
protected function content_template()
|
286 |
{
|
287 |
}
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
21 |
+
/**
|
22 |
+
* Class for Piecharts widget that displays one or more piecharts depicting a percentage value in a multi-column grid.
|
23 |
+
*/
|
24 |
class LAE_Piecharts_Widget extends LAE_Widget_Base
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Get the name for the widget
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
public function get_name()
|
31 |
{
|
32 |
return 'lae-piecharts';
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Get the widget title
|
37 |
+
* @return string|void
|
38 |
+
*/
|
39 |
public function get_title()
|
40 |
{
|
41 |
return __( 'Piecharts', 'livemesh-el-addons' );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the widget icon
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_icon()
|
49 |
{
|
50 |
return 'lae-icon-piechart3';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Retrieve the list of categories the widget belongs to.
|
55 |
+
*
|
56 |
+
* Used to determine where to display the widget in the editor.
|
57 |
+
*
|
58 |
+
* @return string[]
|
59 |
+
*/
|
60 |
public function get_categories()
|
61 |
{
|
62 |
return array( 'livemesh-addons' );
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Get the widget documentation URL
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
public function get_custom_help_url()
|
70 |
{
|
71 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/statistics-addons/';
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Obtain the scripts required for the widget to function
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_script_depends()
|
79 |
{
|
80 |
return [
|
85 |
];
|
86 |
}
|
87 |
|
88 |
+
/**
|
89 |
+
* Register the controls for the widget
|
90 |
+
* Adds fields that help configure and customize the widget
|
91 |
+
* @return void
|
92 |
+
*/
|
93 |
protected function register_controls()
|
94 |
{
|
95 |
$this->start_controls_section( 'section_piecharts', [
|
308 |
] );
|
309 |
}
|
310 |
|
311 |
+
/**
|
312 |
+
* Render HTML widget output on the frontend.
|
313 |
+
*
|
314 |
+
* Written in PHP and used to generate the final HTML.
|
315 |
+
*
|
316 |
+
* @return void
|
317 |
+
*/
|
318 |
protected function render()
|
319 |
{
|
320 |
$settings = $this->get_settings_for_display();
|
324 |
lae_get_template_part( 'addons/piecharts/loop', $args );
|
325 |
}
|
326 |
|
327 |
+
/**
|
328 |
+
* Render the widget output in the editor.
|
329 |
+
* @return void
|
330 |
+
*/
|
331 |
protected function content_template()
|
332 |
{
|
333 |
}
|
includes/widgets/portfolio.php
CHANGED
@@ -17,33 +17,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
17 |
exit;
|
18 |
}
|
19 |
// Exit if accessed directly
|
|
|
|
|
|
|
20 |
class LAE_Portfolio_Widget extends LAE_Widget_Base
|
21 |
{
|
|
|
|
|
|
|
|
|
22 |
public function get_name()
|
23 |
{
|
24 |
return 'lae-portfolio';
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
27 |
public function get_title()
|
28 |
{
|
29 |
return __( 'Posts Grid', 'livemesh-el-addons' );
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
32 |
public function get_icon()
|
33 |
{
|
34 |
return 'lae-icon-posts-grid-masonry';
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
public function get_categories()
|
38 |
{
|
39 |
return array( 'livemesh-addons' );
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
42 |
public function get_custom_help_url()
|
43 |
{
|
44 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-portfolio-grid/';
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
47 |
public function get_script_depends()
|
48 |
{
|
49 |
return [
|
@@ -54,6 +84,11 @@ class LAE_Portfolio_Widget extends LAE_Widget_Base
|
|
54 |
];
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
protected function register_controls()
|
58 |
{
|
59 |
$this->start_controls_section( 'section_query', [
|
@@ -775,6 +810,13 @@ class LAE_Portfolio_Widget extends LAE_Widget_Base
|
|
775 |
return $item_templates;
|
776 |
}
|
777 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
778 |
protected function render()
|
779 |
{
|
780 |
$settings = $this->get_settings_for_display();
|
@@ -1030,6 +1072,10 @@ class LAE_Portfolio_Widget extends LAE_Widget_Base
|
|
1030 |
|
1031 |
}
|
1032 |
|
|
|
|
|
|
|
|
|
1033 |
protected function content_template()
|
1034 |
{
|
1035 |
}
|
17 |
exit;
|
18 |
}
|
19 |
// Exit if accessed directly
|
20 |
+
/**
|
21 |
+
* Class for Posts Grid widget that displays posts or custom post types in a multi-column grid.
|
22 |
+
*/
|
23 |
class LAE_Portfolio_Widget extends LAE_Widget_Base
|
24 |
{
|
25 |
+
/**
|
26 |
+
* Get the name for the widget
|
27 |
+
* @return string
|
28 |
+
*/
|
29 |
public function get_name()
|
30 |
{
|
31 |
return 'lae-portfolio';
|
32 |
}
|
33 |
|
34 |
+
/**
|
35 |
+
* Get the widget title
|
36 |
+
* @return string|void
|
37 |
+
*/
|
38 |
public function get_title()
|
39 |
{
|
40 |
return __( 'Posts Grid', 'livemesh-el-addons' );
|
41 |
}
|
42 |
|
43 |
+
/**
|
44 |
+
* Get the widget icon
|
45 |
+
* @return string
|
46 |
+
*/
|
47 |
public function get_icon()
|
48 |
{
|
49 |
return 'lae-icon-posts-grid-masonry';
|
50 |
}
|
51 |
|
52 |
+
/**
|
53 |
+
* Retrieve the list of categories the widget belongs to.
|
54 |
+
*
|
55 |
+
* Used to determine where to display the widget in the editor.
|
56 |
+
*
|
57 |
+
* @return string[]
|
58 |
+
*/
|
59 |
public function get_categories()
|
60 |
{
|
61 |
return array( 'livemesh-addons' );
|
62 |
}
|
63 |
|
64 |
+
/**
|
65 |
+
* Get the widget documentation URL
|
66 |
+
* @return string
|
67 |
+
*/
|
68 |
public function get_custom_help_url()
|
69 |
{
|
70 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-portfolio-grid/';
|
71 |
}
|
72 |
|
73 |
+
/**
|
74 |
+
* Obtain the scripts required for the widget to function
|
75 |
+
* @return string[]
|
76 |
+
*/
|
77 |
public function get_script_depends()
|
78 |
{
|
79 |
return [
|
84 |
];
|
85 |
}
|
86 |
|
87 |
+
/**
|
88 |
+
* Register the controls for the widget
|
89 |
+
* Adds fields that help configure and customize the widget
|
90 |
+
* @return void
|
91 |
+
*/
|
92 |
protected function register_controls()
|
93 |
{
|
94 |
$this->start_controls_section( 'section_query', [
|
810 |
return $item_templates;
|
811 |
}
|
812 |
|
813 |
+
/**
|
814 |
+
* Render HTML widget output on the frontend.
|
815 |
+
*
|
816 |
+
* Written in PHP and used to generate the final HTML.
|
817 |
+
*
|
818 |
+
* @return void
|
819 |
+
*/
|
820 |
protected function render()
|
821 |
{
|
822 |
$settings = $this->get_settings_for_display();
|
1072 |
|
1073 |
}
|
1074 |
|
1075 |
+
/**
|
1076 |
+
* Render the widget output in the editor.
|
1077 |
+
* @return void
|
1078 |
+
*/
|
1079 |
protected function content_template()
|
1080 |
{
|
1081 |
}
|
includes/widgets/posts-carousel.php
CHANGED
@@ -18,33 +18,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
|
|
|
|
|
|
21 |
class LAE_Posts_Carousel_Widget extends LAE_Widget_Base
|
22 |
{
|
|
|
|
|
|
|
|
|
23 |
public function get_name()
|
24 |
{
|
25 |
return 'lae-posts-carousel';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function get_title()
|
29 |
{
|
30 |
return __( 'Posts Carousel', 'livemesh-el-addons' );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
33 |
public function get_icon()
|
34 |
{
|
35 |
return 'lae-icon-posts-carousel';
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function get_categories()
|
39 |
{
|
40 |
return array( 'livemesh-addons' );
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
public function get_custom_help_url()
|
44 |
{
|
45 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-carousel/';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
48 |
public function get_script_depends()
|
49 |
{
|
50 |
return [
|
@@ -55,6 +85,11 @@ class LAE_Posts_Carousel_Widget extends LAE_Widget_Base
|
|
55 |
];
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
protected function register_controls()
|
59 |
{
|
60 |
$this->start_controls_section( 'section_query', [
|
@@ -717,6 +752,13 @@ class LAE_Posts_Carousel_Widget extends LAE_Widget_Base
|
|
717 |
return $template_options;
|
718 |
}
|
719 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
720 |
protected function render()
|
721 |
{
|
722 |
$settings = $this->get_settings_for_display();
|
@@ -726,6 +768,10 @@ class LAE_Posts_Carousel_Widget extends LAE_Widget_Base
|
|
726 |
lae_get_template_part( 'addons/posts-carousel/loop', $args );
|
727 |
}
|
728 |
|
|
|
|
|
|
|
|
|
729 |
protected function content_template()
|
730 |
{
|
731 |
}
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
21 |
+
/**
|
22 |
+
* Class for Posts Carousel widget that displays blog posts or custom post types as a carousel.
|
23 |
+
*/
|
24 |
class LAE_Posts_Carousel_Widget extends LAE_Widget_Base
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Get the name for the widget
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
public function get_name()
|
31 |
{
|
32 |
return 'lae-posts-carousel';
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Get the widget title
|
37 |
+
* @return string|void
|
38 |
+
*/
|
39 |
public function get_title()
|
40 |
{
|
41 |
return __( 'Posts Carousel', 'livemesh-el-addons' );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the widget icon
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_icon()
|
49 |
{
|
50 |
return 'lae-icon-posts-carousel';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Retrieve the list of categories the widget belongs to.
|
55 |
+
*
|
56 |
+
* Used to determine where to display the widget in the editor.
|
57 |
+
*
|
58 |
+
* @return string[]
|
59 |
+
*/
|
60 |
public function get_categories()
|
61 |
{
|
62 |
return array( 'livemesh-addons' );
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Get the widget documentation URL
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
public function get_custom_help_url()
|
70 |
{
|
71 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-carousel/';
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Obtain the scripts required for the widget to function
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_script_depends()
|
79 |
{
|
80 |
return [
|
85 |
];
|
86 |
}
|
87 |
|
88 |
+
/**
|
89 |
+
* Register the controls for the widget
|
90 |
+
* Adds fields that help configure and customize the widget
|
91 |
+
* @return void
|
92 |
+
*/
|
93 |
protected function register_controls()
|
94 |
{
|
95 |
$this->start_controls_section( 'section_query', [
|
752 |
return $template_options;
|
753 |
}
|
754 |
|
755 |
+
/**
|
756 |
+
* Render HTML widget output on the frontend.
|
757 |
+
*
|
758 |
+
* Written in PHP and used to generate the final HTML.
|
759 |
+
*
|
760 |
+
* @return void
|
761 |
+
*/
|
762 |
protected function render()
|
763 |
{
|
764 |
$settings = $this->get_settings_for_display();
|
768 |
lae_get_template_part( 'addons/posts-carousel/loop', $args );
|
769 |
}
|
770 |
|
771 |
+
/**
|
772 |
+
* Render the widget output in the editor.
|
773 |
+
* @return void
|
774 |
+
*/
|
775 |
protected function content_template()
|
776 |
{
|
777 |
}
|
includes/widgets/posts-gridbox-slider.php
CHANGED
@@ -18,38 +18,73 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
|
|
|
|
|
|
21 |
class LAE_Posts_GridBox_Slider_Widget extends LAE_Widget_Base
|
22 |
{
|
|
|
|
|
|
|
|
|
23 |
public function get_name()
|
24 |
{
|
25 |
return 'lae-posts-gridbox-slider';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function get_title()
|
29 |
{
|
30 |
return __( 'Posts Grid Box Slider', 'livemesh-el-addons' );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
33 |
public function get_icon()
|
34 |
{
|
35 |
return 'lae-icon-slider3';
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function get_categories()
|
39 |
{
|
40 |
return array( 'livemesh-addons' );
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
public function get_custom_help_url()
|
44 |
{
|
45 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-gridbox-slider/';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
48 |
public function get_script_depends()
|
49 |
{
|
50 |
return [ 'lae-jquery-slick', 'lae-frontend-scripts', 'lae-posts-gridbox-slider-scripts' ];
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
protected function register_controls()
|
54 |
{
|
55 |
$this->start_controls_section( 'section_query', [
|
@@ -690,6 +725,13 @@ class LAE_Posts_GridBox_Slider_Widget extends LAE_Widget_Base
|
|
690 |
$this->end_controls_section();
|
691 |
}
|
692 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
693 |
protected function render()
|
694 |
{
|
695 |
$settings = $this->get_settings_for_display();
|
@@ -699,6 +741,10 @@ class LAE_Posts_GridBox_Slider_Widget extends LAE_Widget_Base
|
|
699 |
lae_get_template_part( 'addons/posts-gridbox-slider/loop', $args );
|
700 |
}
|
701 |
|
|
|
|
|
|
|
|
|
702 |
protected function content_template()
|
703 |
{
|
704 |
}
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
21 |
+
/**
|
22 |
+
* Class for Posts Gridbox Slider widget that displays blog posts or custom post types as a pre-styled grid based slider
|
23 |
+
*/
|
24 |
class LAE_Posts_GridBox_Slider_Widget extends LAE_Widget_Base
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Get the name for the widget
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
public function get_name()
|
31 |
{
|
32 |
return 'lae-posts-gridbox-slider';
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Get the widget title
|
37 |
+
* @return string|void
|
38 |
+
*/
|
39 |
public function get_title()
|
40 |
{
|
41 |
return __( 'Posts Grid Box Slider', 'livemesh-el-addons' );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the widget icon
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_icon()
|
49 |
{
|
50 |
return 'lae-icon-slider3';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Retrieve the list of categories the widget belongs to.
|
55 |
+
*
|
56 |
+
* Used to determine where to display the widget in the editor.
|
57 |
+
*
|
58 |
+
* @return string[]
|
59 |
+
*/
|
60 |
public function get_categories()
|
61 |
{
|
62 |
return array( 'livemesh-addons' );
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Get the widget documentation URL
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
public function get_custom_help_url()
|
70 |
{
|
71 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-gridbox-slider/';
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Obtain the scripts required for the widget to function
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_script_depends()
|
79 |
{
|
80 |
return [ 'lae-jquery-slick', 'lae-frontend-scripts', 'lae-posts-gridbox-slider-scripts' ];
|
81 |
}
|
82 |
|
83 |
+
/**
|
84 |
+
* Register the controls for the widget
|
85 |
+
* Adds fields that help configure and customize the widget
|
86 |
+
* @return void
|
87 |
+
*/
|
88 |
protected function register_controls()
|
89 |
{
|
90 |
$this->start_controls_section( 'section_query', [
|
725 |
$this->end_controls_section();
|
726 |
}
|
727 |
|
728 |
+
/**
|
729 |
+
* Render HTML widget output on the frontend.
|
730 |
+
*
|
731 |
+
* Written in PHP and used to generate the final HTML.
|
732 |
+
*
|
733 |
+
* @return void
|
734 |
+
*/
|
735 |
protected function render()
|
736 |
{
|
737 |
$settings = $this->get_settings_for_display();
|
741 |
lae_get_template_part( 'addons/posts-gridbox-slider/loop', $args );
|
742 |
}
|
743 |
|
744 |
+
/**
|
745 |
+
* Render the widget output in the editor.
|
746 |
+
* @return void
|
747 |
+
*/
|
748 |
protected function content_template()
|
749 |
{
|
750 |
}
|
includes/widgets/posts-multislider.php
CHANGED
@@ -18,33 +18,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
|
|
|
|
|
|
21 |
class LAE_Posts_Multislider_Widget extends LAE_Widget_Base
|
22 |
{
|
|
|
|
|
|
|
|
|
23 |
public function get_name()
|
24 |
{
|
25 |
return 'lae-posts-multislider';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function get_title()
|
29 |
{
|
30 |
return __( 'Posts Multislider', 'livemesh-el-addons' );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
33 |
public function get_icon()
|
34 |
{
|
35 |
return 'lae-icon-posts-carousel';
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function get_categories()
|
39 |
{
|
40 |
return array( 'livemesh-addons' );
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
public function get_custom_help_url()
|
44 |
{
|
45 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-multislider/';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
48 |
public function get_script_depends()
|
49 |
{
|
50 |
return [
|
@@ -55,6 +85,11 @@ class LAE_Posts_Multislider_Widget extends LAE_Widget_Base
|
|
55 |
];
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
protected function register_controls()
|
59 |
{
|
60 |
$this->start_controls_section( 'section_query', [
|
@@ -717,6 +752,13 @@ class LAE_Posts_Multislider_Widget extends LAE_Widget_Base
|
|
717 |
$this->end_controls_section();
|
718 |
}
|
719 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
720 |
protected function render()
|
721 |
{
|
722 |
$settings = $this->get_settings_for_display();
|
@@ -726,6 +768,10 @@ class LAE_Posts_Multislider_Widget extends LAE_Widget_Base
|
|
726 |
lae_get_template_part( 'addons/posts-multislider/loop', $args );
|
727 |
}
|
728 |
|
|
|
|
|
|
|
|
|
729 |
protected function content_template()
|
730 |
{
|
731 |
}
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
21 |
+
/**
|
22 |
+
* Class for Posts Multislider widget that displays blog posts or custom post types as a slider of list of posts.
|
23 |
+
*/
|
24 |
class LAE_Posts_Multislider_Widget extends LAE_Widget_Base
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Get the name for the widget
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
public function get_name()
|
31 |
{
|
32 |
return 'lae-posts-multislider';
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Get the widget title
|
37 |
+
* @return string|void
|
38 |
+
*/
|
39 |
public function get_title()
|
40 |
{
|
41 |
return __( 'Posts Multislider', 'livemesh-el-addons' );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the widget icon
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_icon()
|
49 |
{
|
50 |
return 'lae-icon-posts-carousel';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Retrieve the list of categories the widget belongs to.
|
55 |
+
*
|
56 |
+
* Used to determine where to display the widget in the editor.
|
57 |
+
*
|
58 |
+
* @return string[]
|
59 |
+
*/
|
60 |
public function get_categories()
|
61 |
{
|
62 |
return array( 'livemesh-addons' );
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Get the widget documentation URL
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
public function get_custom_help_url()
|
70 |
{
|
71 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-multislider/';
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Obtain the scripts required for the widget to function
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_script_depends()
|
79 |
{
|
80 |
return [
|
85 |
];
|
86 |
}
|
87 |
|
88 |
+
/**
|
89 |
+
* Register the controls for the widget
|
90 |
+
* Adds fields that help configure and customize the widget
|
91 |
+
* @return void
|
92 |
+
*/
|
93 |
protected function register_controls()
|
94 |
{
|
95 |
$this->start_controls_section( 'section_query', [
|
752 |
$this->end_controls_section();
|
753 |
}
|
754 |
|
755 |
+
/**
|
756 |
+
* Render HTML widget output on the frontend.
|
757 |
+
*
|
758 |
+
* Written in PHP and used to generate the final HTML.
|
759 |
+
*
|
760 |
+
* @return void
|
761 |
+
*/
|
762 |
protected function render()
|
763 |
{
|
764 |
$settings = $this->get_settings_for_display();
|
768 |
lae_get_template_part( 'addons/posts-multislider/loop', $args );
|
769 |
}
|
770 |
|
771 |
+
/**
|
772 |
+
* Render the widget output in the editor.
|
773 |
+
* @return void
|
774 |
+
*/
|
775 |
protected function content_template()
|
776 |
{
|
777 |
}
|
includes/widgets/posts-slider.php
CHANGED
@@ -17,38 +17,73 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
17 |
exit;
|
18 |
}
|
19 |
// Exit if accessed directly
|
|
|
|
|
|
|
20 |
class LAE_Posts_Slider_Widget extends LAE_Widget_Base
|
21 |
{
|
|
|
|
|
|
|
|
|
22 |
public function get_name()
|
23 |
{
|
24 |
return 'lae-posts-slider';
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
27 |
public function get_title()
|
28 |
{
|
29 |
return __( 'Posts Slider', 'livemesh-el-addons' );
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
32 |
public function get_icon()
|
33 |
{
|
34 |
return 'lae-icon-slider6';
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
public function get_categories()
|
38 |
{
|
39 |
return array( 'livemesh-addons' );
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
42 |
public function get_custom_help_url()
|
43 |
{
|
44 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-slider/';
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
47 |
public function get_script_depends()
|
48 |
{
|
49 |
return [ 'lae-jquery-slick', 'lae-frontend-scripts', 'lae-posts-slider-scripts' ];
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
52 |
protected function register_controls()
|
53 |
{
|
54 |
$this->start_controls_section( 'section_query', [
|
@@ -571,6 +606,13 @@ class LAE_Posts_Slider_Widget extends LAE_Widget_Base
|
|
571 |
$this->end_controls_section();
|
572 |
}
|
573 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
protected function render()
|
575 |
{
|
576 |
$settings = $this->get_settings_for_display();
|
@@ -580,6 +622,10 @@ class LAE_Posts_Slider_Widget extends LAE_Widget_Base
|
|
580 |
lae_get_template_part( 'addons/posts-slider/loop', $args );
|
581 |
}
|
582 |
|
|
|
|
|
|
|
|
|
583 |
protected function content_template()
|
584 |
{
|
585 |
}
|
17 |
exit;
|
18 |
}
|
19 |
// Exit if accessed directly
|
20 |
+
/**
|
21 |
+
* Class for Posts Slider widget that displays blog posts or custom post types as a slider.
|
22 |
+
*/
|
23 |
class LAE_Posts_Slider_Widget extends LAE_Widget_Base
|
24 |
{
|
25 |
+
/**
|
26 |
+
* Get the name for the widget
|
27 |
+
* @return string
|
28 |
+
*/
|
29 |
public function get_name()
|
30 |
{
|
31 |
return 'lae-posts-slider';
|
32 |
}
|
33 |
|
34 |
+
/**
|
35 |
+
* Get the widget title
|
36 |
+
* @return string|void
|
37 |
+
*/
|
38 |
public function get_title()
|
39 |
{
|
40 |
return __( 'Posts Slider', 'livemesh-el-addons' );
|
41 |
}
|
42 |
|
43 |
+
/**
|
44 |
+
* Get the widget icon
|
45 |
+
* @return string
|
46 |
+
*/
|
47 |
public function get_icon()
|
48 |
{
|
49 |
return 'lae-icon-slider6';
|
50 |
}
|
51 |
|
52 |
+
/**
|
53 |
+
* Retrieve the list of categories the widget belongs to.
|
54 |
+
*
|
55 |
+
* Used to determine where to display the widget in the editor.
|
56 |
+
*
|
57 |
+
* @return string[]
|
58 |
+
*/
|
59 |
public function get_categories()
|
60 |
{
|
61 |
return array( 'livemesh-addons' );
|
62 |
}
|
63 |
|
64 |
+
/**
|
65 |
+
* Get the widget documentation URL
|
66 |
+
* @return string
|
67 |
+
*/
|
68 |
public function get_custom_help_url()
|
69 |
{
|
70 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/posts-slider/';
|
71 |
}
|
72 |
|
73 |
+
/**
|
74 |
+
* Obtain the scripts required for the widget to function
|
75 |
+
* @return string[]
|
76 |
+
*/
|
77 |
public function get_script_depends()
|
78 |
{
|
79 |
return [ 'lae-jquery-slick', 'lae-frontend-scripts', 'lae-posts-slider-scripts' ];
|
80 |
}
|
81 |
|
82 |
+
/**
|
83 |
+
* Register the controls for the widget
|
84 |
+
* Adds fields that help configure and customize the widget
|
85 |
+
* @return void
|
86 |
+
*/
|
87 |
protected function register_controls()
|
88 |
{
|
89 |
$this->start_controls_section( 'section_query', [
|
606 |
$this->end_controls_section();
|
607 |
}
|
608 |
|
609 |
+
/**
|
610 |
+
* Render HTML widget output on the frontend.
|
611 |
+
*
|
612 |
+
* Written in PHP and used to generate the final HTML.
|
613 |
+
*
|
614 |
+
* @return void
|
615 |
+
*/
|
616 |
protected function render()
|
617 |
{
|
618 |
$settings = $this->get_settings_for_display();
|
622 |
lae_get_template_part( 'addons/posts-slider/loop', $args );
|
623 |
}
|
624 |
|
625 |
+
/**
|
626 |
+
* Render the widget output in the editor.
|
627 |
+
* @return void
|
628 |
+
*/
|
629 |
protected function content_template()
|
630 |
{
|
631 |
}
|
includes/widgets/pricing-table.php
CHANGED
@@ -19,6 +19,9 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
|
|
|
|
|
|
22 |
class LAE_Pricing_Table_Widget extends LAE_Widget_Base
|
23 |
{
|
24 |
public function __construct( $data = array(), $args = null )
|
@@ -38,36 +41,68 @@ class LAE_Pricing_Table_Widget extends LAE_Widget_Base
|
|
38 |
return $output;
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
41 |
public function get_name()
|
42 |
{
|
43 |
return 'lae-pricing-table';
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
46 |
public function get_title()
|
47 |
{
|
48 |
return __( 'Pricing Table', 'livemesh-el-addons' );
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
51 |
public function get_icon()
|
52 |
{
|
53 |
return 'lae-icon-pricing-table';
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
public function get_categories()
|
57 |
{
|
58 |
return array( 'livemesh-addons' );
|
59 |
}
|
60 |
|
|
|
|
|
|
|
|
|
61 |
public function get_custom_help_url()
|
62 |
{
|
63 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/pricing-table/';
|
64 |
}
|
65 |
|
|
|
|
|
|
|
|
|
66 |
public function get_script_depends()
|
67 |
{
|
68 |
return [ 'lae-waypoints', 'lae-frontend-scripts' ];
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
71 |
protected function register_controls()
|
72 |
{
|
73 |
$this->start_controls_section( 'section_pricing_table', [
|
@@ -430,6 +465,13 @@ class LAE_Pricing_Table_Widget extends LAE_Widget_Base
|
|
430 |
$this->end_controls_section();
|
431 |
}
|
432 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
433 |
protected function render()
|
434 |
{
|
435 |
$settings = $this->get_settings_for_display();
|
@@ -442,6 +484,10 @@ class LAE_Pricing_Table_Widget extends LAE_Widget_Base
|
|
442 |
lae_get_template_part( 'addons/pricing-table/loop', $args );
|
443 |
}
|
444 |
|
|
|
|
|
|
|
|
|
445 |
protected function content_template()
|
446 |
{
|
447 |
}
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
22 |
+
/**
|
23 |
+
* Class for Pricing Table widget that displays pricing plans in a multi-column grid.
|
24 |
+
*/
|
25 |
class LAE_Pricing_Table_Widget extends LAE_Widget_Base
|
26 |
{
|
27 |
public function __construct( $data = array(), $args = null )
|
41 |
return $output;
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the name for the widget
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_name()
|
49 |
{
|
50 |
return 'lae-pricing-table';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Get the widget title
|
55 |
+
* @return string|void
|
56 |
+
*/
|
57 |
public function get_title()
|
58 |
{
|
59 |
return __( 'Pricing Table', 'livemesh-el-addons' );
|
60 |
}
|
61 |
|
62 |
+
/**
|
63 |
+
* Get the widget icon
|
64 |
+
* @return string
|
65 |
+
*/
|
66 |
public function get_icon()
|
67 |
{
|
68 |
return 'lae-icon-pricing-table';
|
69 |
}
|
70 |
|
71 |
+
/**
|
72 |
+
* Retrieve the list of categories the widget belongs to.
|
73 |
+
*
|
74 |
+
* Used to determine where to display the widget in the editor.
|
75 |
+
*
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_categories()
|
79 |
{
|
80 |
return array( 'livemesh-addons' );
|
81 |
}
|
82 |
|
83 |
+
/**
|
84 |
+
* Get the widget documentation URL
|
85 |
+
* @return string
|
86 |
+
*/
|
87 |
public function get_custom_help_url()
|
88 |
{
|
89 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/pricing-table/';
|
90 |
}
|
91 |
|
92 |
+
/**
|
93 |
+
* Obtain the scripts required for the widget to function
|
94 |
+
* @return string[]
|
95 |
+
*/
|
96 |
public function get_script_depends()
|
97 |
{
|
98 |
return [ 'lae-waypoints', 'lae-frontend-scripts' ];
|
99 |
}
|
100 |
|
101 |
+
/**
|
102 |
+
* Register the controls for the widget
|
103 |
+
* Adds fields that help configure and customize the widget
|
104 |
+
* @return void
|
105 |
+
*/
|
106 |
protected function register_controls()
|
107 |
{
|
108 |
$this->start_controls_section( 'section_pricing_table', [
|
465 |
$this->end_controls_section();
|
466 |
}
|
467 |
|
468 |
+
/**
|
469 |
+
* Render HTML widget output on the frontend.
|
470 |
+
*
|
471 |
+
* Written in PHP and used to generate the final HTML.
|
472 |
+
*
|
473 |
+
* @return void
|
474 |
+
*/
|
475 |
protected function render()
|
476 |
{
|
477 |
$settings = $this->get_settings_for_display();
|
484 |
lae_get_template_part( 'addons/pricing-table/loop', $args );
|
485 |
}
|
486 |
|
487 |
+
/**
|
488 |
+
* Render the widget output in the editor.
|
489 |
+
* @return void
|
490 |
+
*/
|
491 |
protected function content_template()
|
492 |
{
|
493 |
}
|
includes/widgets/services.php
CHANGED
@@ -21,33 +21,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
21 |
exit;
|
22 |
}
|
23 |
// Exit if accessed directly
|
|
|
|
|
|
|
24 |
class LAE_Services_Widget extends LAE_Widget_Base
|
25 |
{
|
|
|
|
|
|
|
|
|
26 |
public function get_name()
|
27 |
{
|
28 |
return 'lae-services';
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
31 |
public function get_title()
|
32 |
{
|
33 |
return __( 'Services', 'livemesh-el-addons' );
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
36 |
public function get_icon()
|
37 |
{
|
38 |
return 'lae-icon-services';
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
public function get_categories()
|
42 |
{
|
43 |
return array( 'livemesh-addons' );
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
46 |
public function get_custom_help_url()
|
47 |
{
|
48 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/services-addon/';
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
51 |
public function get_script_depends()
|
52 |
{
|
53 |
return [
|
@@ -59,6 +89,11 @@ class LAE_Services_Widget extends LAE_Widget_Base
|
|
59 |
];
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
protected function register_controls()
|
63 |
{
|
64 |
$this->start_controls_section( 'section_services', [
|
@@ -579,6 +614,13 @@ class LAE_Services_Widget extends LAE_Widget_Base
|
|
579 |
$this->end_controls_section();
|
580 |
}
|
581 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
582 |
protected function render()
|
583 |
{
|
584 |
$settings = $this->get_settings_for_display();
|
@@ -588,6 +630,10 @@ class LAE_Services_Widget extends LAE_Widget_Base
|
|
588 |
lae_get_template_part( 'addons/services/loop', $args );
|
589 |
}
|
590 |
|
|
|
|
|
|
|
|
|
591 |
protected function content_template()
|
592 |
{
|
593 |
}
|
21 |
exit;
|
22 |
}
|
23 |
// Exit if accessed directly
|
24 |
+
/**
|
25 |
+
* Class for Services widget that displays services in a multi-column grid.
|
26 |
+
*/
|
27 |
class LAE_Services_Widget extends LAE_Widget_Base
|
28 |
{
|
29 |
+
/**
|
30 |
+
* Get the name for the widget
|
31 |
+
* @return string
|
32 |
+
*/
|
33 |
public function get_name()
|
34 |
{
|
35 |
return 'lae-services';
|
36 |
}
|
37 |
|
38 |
+
/**
|
39 |
+
* Get the widget title
|
40 |
+
* @return string|void
|
41 |
+
*/
|
42 |
public function get_title()
|
43 |
{
|
44 |
return __( 'Services', 'livemesh-el-addons' );
|
45 |
}
|
46 |
|
47 |
+
/**
|
48 |
+
* Get the widget icon
|
49 |
+
* @return string
|
50 |
+
*/
|
51 |
public function get_icon()
|
52 |
{
|
53 |
return 'lae-icon-services';
|
54 |
}
|
55 |
|
56 |
+
/**
|
57 |
+
* Retrieve the list of categories the widget belongs to.
|
58 |
+
*
|
59 |
+
* Used to determine where to display the widget in the editor.
|
60 |
+
*
|
61 |
+
* @return string[]
|
62 |
+
*/
|
63 |
public function get_categories()
|
64 |
{
|
65 |
return array( 'livemesh-addons' );
|
66 |
}
|
67 |
|
68 |
+
/**
|
69 |
+
* Get the widget documentation URL
|
70 |
+
* @return string
|
71 |
+
*/
|
72 |
public function get_custom_help_url()
|
73 |
{
|
74 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/services-addon/';
|
75 |
}
|
76 |
|
77 |
+
/**
|
78 |
+
* Obtain the scripts required for the widget to function
|
79 |
+
* @return string[]
|
80 |
+
*/
|
81 |
public function get_script_depends()
|
82 |
{
|
83 |
return [
|
89 |
];
|
90 |
}
|
91 |
|
92 |
+
/**
|
93 |
+
* Register the controls for the widget
|
94 |
+
* Adds fields that help configure and customize the widget
|
95 |
+
* @return void
|
96 |
+
*/
|
97 |
protected function register_controls()
|
98 |
{
|
99 |
$this->start_controls_section( 'section_services', [
|
614 |
$this->end_controls_section();
|
615 |
}
|
616 |
|
617 |
+
/**
|
618 |
+
* Render HTML widget output on the frontend.
|
619 |
+
*
|
620 |
+
* Written in PHP and used to generate the final HTML.
|
621 |
+
*
|
622 |
+
* @return void
|
623 |
+
*/
|
624 |
protected function render()
|
625 |
{
|
626 |
$settings = $this->get_settings_for_display();
|
630 |
lae_get_template_part( 'addons/services/loop', $args );
|
631 |
}
|
632 |
|
633 |
+
/**
|
634 |
+
* Render the widget output in the editor.
|
635 |
+
* @return void
|
636 |
+
*/
|
637 |
protected function content_template()
|
638 |
{
|
639 |
}
|
includes/widgets/stats-bars.php
CHANGED
@@ -18,38 +18,73 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
|
|
|
|
|
|
21 |
class LAE_Stats_Bars_Widget extends LAE_Widget_Base
|
22 |
{
|
|
|
|
|
|
|
|
|
23 |
public function get_name()
|
24 |
{
|
25 |
return 'lae-stats-bars';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function get_title()
|
29 |
{
|
30 |
return __( 'Stats Bars', 'livemesh-el-addons' );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
33 |
public function get_icon()
|
34 |
{
|
35 |
return 'lae-icon-stats-bars';
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function get_categories()
|
39 |
{
|
40 |
return array( 'livemesh-addons' );
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
public function get_custom_help_url()
|
44 |
{
|
45 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/statistics-addons/';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
48 |
public function get_script_depends()
|
49 |
{
|
50 |
return [ 'lae-waypoints', 'lae-frontend-scripts', 'lae-stats-bars-scripts' ];
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
53 |
protected function register_controls()
|
54 |
{
|
55 |
$this->start_controls_section( 'section_stats_bars', [
|
@@ -202,6 +237,13 @@ class LAE_Stats_Bars_Widget extends LAE_Widget_Base
|
|
202 |
$this->end_controls_section();
|
203 |
}
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
protected function render()
|
206 |
{
|
207 |
$settings = $this->get_settings_for_display();
|
@@ -211,6 +253,10 @@ class LAE_Stats_Bars_Widget extends LAE_Widget_Base
|
|
211 |
lae_get_template_part( 'addons/stats-bars/loop', $args );
|
212 |
}
|
213 |
|
|
|
|
|
|
|
|
|
214 |
protected function content_template()
|
215 |
{
|
216 |
}
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
21 |
+
/**
|
22 |
+
* Class for Stats Bars widget that displays multiple stats bars that talk about skills or other percentage stats.
|
23 |
+
*/
|
24 |
class LAE_Stats_Bars_Widget extends LAE_Widget_Base
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Get the name for the widget
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
public function get_name()
|
31 |
{
|
32 |
return 'lae-stats-bars';
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Get the widget title
|
37 |
+
* @return string|void
|
38 |
+
*/
|
39 |
public function get_title()
|
40 |
{
|
41 |
return __( 'Stats Bars', 'livemesh-el-addons' );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the widget icon
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_icon()
|
49 |
{
|
50 |
return 'lae-icon-stats-bars';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Retrieve the list of categories the widget belongs to.
|
55 |
+
*
|
56 |
+
* Used to determine where to display the widget in the editor.
|
57 |
+
*
|
58 |
+
* @return string[]
|
59 |
+
*/
|
60 |
public function get_categories()
|
61 |
{
|
62 |
return array( 'livemesh-addons' );
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Get the widget documentation URL
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
public function get_custom_help_url()
|
70 |
{
|
71 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/statistics-addons/';
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Obtain the scripts required for the widget to function
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_script_depends()
|
79 |
{
|
80 |
return [ 'lae-waypoints', 'lae-frontend-scripts', 'lae-stats-bars-scripts' ];
|
81 |
}
|
82 |
|
83 |
+
/**
|
84 |
+
* Register the controls for the widget
|
85 |
+
* Adds fields that help configure and customize the widget
|
86 |
+
* @return void
|
87 |
+
*/
|
88 |
protected function register_controls()
|
89 |
{
|
90 |
$this->start_controls_section( 'section_stats_bars', [
|
237 |
$this->end_controls_section();
|
238 |
}
|
239 |
|
240 |
+
/**
|
241 |
+
* Render HTML widget output on the frontend.
|
242 |
+
*
|
243 |
+
* Written in PHP and used to generate the final HTML.
|
244 |
+
*
|
245 |
+
* @return void
|
246 |
+
*/
|
247 |
protected function render()
|
248 |
{
|
249 |
$settings = $this->get_settings_for_display();
|
253 |
lae_get_template_part( 'addons/stats-bars/loop', $args );
|
254 |
}
|
255 |
|
256 |
+
/**
|
257 |
+
* Render the widget output in the editor.
|
258 |
+
* @return void
|
259 |
+
*/
|
260 |
protected function content_template()
|
261 |
{
|
262 |
}
|
includes/widgets/tab-slider.php
CHANGED
@@ -19,38 +19,73 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
|
|
|
|
|
|
22 |
class LAE_Tab_Slider_Widget extends LAE_Widget_Base
|
23 |
{
|
|
|
|
|
|
|
|
|
24 |
public function get_name()
|
25 |
{
|
26 |
return 'lae-tab-slider';
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
29 |
public function get_title()
|
30 |
{
|
31 |
return __( 'Tab Slider', 'livemesh-el-addons' );
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
34 |
public function get_icon()
|
35 |
{
|
36 |
return 'lae-icon-tab-slider1';
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
public function get_categories()
|
40 |
{
|
41 |
return array( 'livemesh-addons' );
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
44 |
public function get_custom_help_url()
|
45 |
{
|
46 |
return 'https://livemeshelementor.com/docs/livemesh-addons/';
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
49 |
public function get_script_depends()
|
50 |
{
|
51 |
return [ 'lae-jquery-slick', 'lae-frontend-scripts', 'lae-tab-slider-scripts' ];
|
52 |
}
|
53 |
|
|
|
|
|
|
|
|
|
|
|
54 |
protected function register_controls()
|
55 |
{
|
56 |
$this->start_controls_section( 'section_tabs', [
|
@@ -346,6 +381,13 @@ class LAE_Tab_Slider_Widget extends LAE_Widget_Base
|
|
346 |
] );
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
protected function render()
|
350 |
{
|
351 |
$settings = $this->get_settings_for_display();
|
@@ -355,6 +397,10 @@ class LAE_Tab_Slider_Widget extends LAE_Widget_Base
|
|
355 |
lae_get_template_part( 'addons/tab-slider/loop', $args );
|
356 |
}
|
357 |
|
|
|
|
|
|
|
|
|
358 |
protected function content_template()
|
359 |
{
|
360 |
}
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
22 |
+
/**
|
23 |
+
* Class for Tab Slider widget that displays tabbed content as a touch enabled responsive slider.
|
24 |
+
*/
|
25 |
class LAE_Tab_Slider_Widget extends LAE_Widget_Base
|
26 |
{
|
27 |
+
/**
|
28 |
+
* Get the name for the widget
|
29 |
+
* @return string
|
30 |
+
*/
|
31 |
public function get_name()
|
32 |
{
|
33 |
return 'lae-tab-slider';
|
34 |
}
|
35 |
|
36 |
+
/**
|
37 |
+
* Get the widget title
|
38 |
+
* @return string|void
|
39 |
+
*/
|
40 |
public function get_title()
|
41 |
{
|
42 |
return __( 'Tab Slider', 'livemesh-el-addons' );
|
43 |
}
|
44 |
|
45 |
+
/**
|
46 |
+
* Get the widget icon
|
47 |
+
* @return string
|
48 |
+
*/
|
49 |
public function get_icon()
|
50 |
{
|
51 |
return 'lae-icon-tab-slider1';
|
52 |
}
|
53 |
|
54 |
+
/**
|
55 |
+
* Retrieve the list of categories the widget belongs to.
|
56 |
+
*
|
57 |
+
* Used to determine where to display the widget in the editor.
|
58 |
+
*
|
59 |
+
* @return string[]
|
60 |
+
*/
|
61 |
public function get_categories()
|
62 |
{
|
63 |
return array( 'livemesh-addons' );
|
64 |
}
|
65 |
|
66 |
+
/**
|
67 |
+
* Get the widget documentation URL
|
68 |
+
* @return string
|
69 |
+
*/
|
70 |
public function get_custom_help_url()
|
71 |
{
|
72 |
return 'https://livemeshelementor.com/docs/livemesh-addons/';
|
73 |
}
|
74 |
|
75 |
+
/**
|
76 |
+
* Obtain the scripts required for the widget to function
|
77 |
+
* @return string[]
|
78 |
+
*/
|
79 |
public function get_script_depends()
|
80 |
{
|
81 |
return [ 'lae-jquery-slick', 'lae-frontend-scripts', 'lae-tab-slider-scripts' ];
|
82 |
}
|
83 |
|
84 |
+
/**
|
85 |
+
* Register the controls for the widget
|
86 |
+
* Adds fields that help configure and customize the widget
|
87 |
+
* @return void
|
88 |
+
*/
|
89 |
protected function register_controls()
|
90 |
{
|
91 |
$this->start_controls_section( 'section_tabs', [
|
381 |
] );
|
382 |
}
|
383 |
|
384 |
+
/**
|
385 |
+
* Render HTML widget output on the frontend.
|
386 |
+
*
|
387 |
+
* Written in PHP and used to generate the final HTML.
|
388 |
+
*
|
389 |
+
* @return void
|
390 |
+
*/
|
391 |
protected function render()
|
392 |
{
|
393 |
$settings = $this->get_settings_for_display();
|
397 |
lae_get_template_part( 'addons/tab-slider/loop', $args );
|
398 |
}
|
399 |
|
400 |
+
/**
|
401 |
+
* Render the widget output in the editor.
|
402 |
+
* @return void
|
403 |
+
*/
|
404 |
protected function content_template()
|
405 |
{
|
406 |
}
|
includes/widgets/team-members.php
CHANGED
@@ -21,33 +21,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
21 |
exit;
|
22 |
}
|
23 |
// Exit if accessed directly
|
|
|
|
|
|
|
24 |
class LAE_Team_Widget extends LAE_Widget_Base
|
25 |
{
|
|
|
|
|
|
|
|
|
26 |
public function get_name()
|
27 |
{
|
28 |
return 'lae-team-members';
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
31 |
public function get_title()
|
32 |
{
|
33 |
return __( 'Team Members', 'livemesh-el-addons' );
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
36 |
public function get_icon()
|
37 |
{
|
38 |
return 'lae-icon-team4';
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
public function get_categories()
|
42 |
{
|
43 |
return array( 'livemesh-addons' );
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
46 |
public function get_custom_help_url()
|
47 |
{
|
48 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/team-members/';
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
51 |
public function get_script_depends()
|
52 |
{
|
53 |
return [
|
@@ -59,6 +89,11 @@ class LAE_Team_Widget extends LAE_Widget_Base
|
|
59 |
];
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
protected function register_controls()
|
63 |
{
|
64 |
$this->start_controls_section( 'section_team', [
|
@@ -709,6 +744,13 @@ class LAE_Team_Widget extends LAE_Widget_Base
|
|
709 |
$this->end_controls_section();
|
710 |
}
|
711 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
protected function render()
|
713 |
{
|
714 |
$settings = $this->get_settings_for_display();
|
@@ -718,6 +760,10 @@ class LAE_Team_Widget extends LAE_Widget_Base
|
|
718 |
lae_get_template_part( 'addons/team-members/loop', $args );
|
719 |
}
|
720 |
|
|
|
|
|
|
|
|
|
721 |
protected function content_template()
|
722 |
{
|
723 |
}
|
21 |
exit;
|
22 |
}
|
23 |
// Exit if accessed directly
|
24 |
+
/**
|
25 |
+
* Class for Team Members widget that displays a list of your team members optionally in a multi-column grid.
|
26 |
+
*/
|
27 |
class LAE_Team_Widget extends LAE_Widget_Base
|
28 |
{
|
29 |
+
/**
|
30 |
+
* Get the name for the widget
|
31 |
+
* @return string
|
32 |
+
*/
|
33 |
public function get_name()
|
34 |
{
|
35 |
return 'lae-team-members';
|
36 |
}
|
37 |
|
38 |
+
/**
|
39 |
+
* Get the widget title
|
40 |
+
* @return string|void
|
41 |
+
*/
|
42 |
public function get_title()
|
43 |
{
|
44 |
return __( 'Team Members', 'livemesh-el-addons' );
|
45 |
}
|
46 |
|
47 |
+
/**
|
48 |
+
* Get the widget icon
|
49 |
+
* @return string
|
50 |
+
*/
|
51 |
public function get_icon()
|
52 |
{
|
53 |
return 'lae-icon-team4';
|
54 |
}
|
55 |
|
56 |
+
/**
|
57 |
+
* Retrieve the list of categories the widget belongs to.
|
58 |
+
*
|
59 |
+
* Used to determine where to display the widget in the editor.
|
60 |
+
*
|
61 |
+
* @return string[]
|
62 |
+
*/
|
63 |
public function get_categories()
|
64 |
{
|
65 |
return array( 'livemesh-addons' );
|
66 |
}
|
67 |
|
68 |
+
/**
|
69 |
+
* Get the widget documentation URL
|
70 |
+
* @return string
|
71 |
+
*/
|
72 |
public function get_custom_help_url()
|
73 |
{
|
74 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/team-members/';
|
75 |
}
|
76 |
|
77 |
+
/**
|
78 |
+
* Obtain the scripts required for the widget to function
|
79 |
+
* @return string[]
|
80 |
+
*/
|
81 |
public function get_script_depends()
|
82 |
{
|
83 |
return [
|
89 |
];
|
90 |
}
|
91 |
|
92 |
+
/**
|
93 |
+
* Register the controls for the widget
|
94 |
+
* Adds fields that help configure and customize the widget
|
95 |
+
* @return void
|
96 |
+
*/
|
97 |
protected function register_controls()
|
98 |
{
|
99 |
$this->start_controls_section( 'section_team', [
|
744 |
$this->end_controls_section();
|
745 |
}
|
746 |
|
747 |
+
/**
|
748 |
+
* Render HTML widget output on the frontend.
|
749 |
+
*
|
750 |
+
* Written in PHP and used to generate the final HTML.
|
751 |
+
*
|
752 |
+
* @return void
|
753 |
+
*/
|
754 |
protected function render()
|
755 |
{
|
756 |
$settings = $this->get_settings_for_display();
|
760 |
lae_get_template_part( 'addons/team-members/loop', $args );
|
761 |
}
|
762 |
|
763 |
+
/**
|
764 |
+
* Render the widget output in the editor.
|
765 |
+
* @return void
|
766 |
+
*/
|
767 |
protected function content_template()
|
768 |
{
|
769 |
}
|
includes/widgets/testimonials-slider.php
CHANGED
@@ -18,33 +18,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
|
|
|
|
|
|
21 |
class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
22 |
{
|
|
|
|
|
|
|
|
|
23 |
public function get_name()
|
24 |
{
|
25 |
return 'lae-testimonials-slider';
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
public function get_title()
|
29 |
{
|
30 |
return __( 'Testimonials Slider', 'livemesh-el-addons' );
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
33 |
public function get_icon()
|
34 |
{
|
35 |
return 'lae-icon-testimonials1';
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function get_categories()
|
39 |
{
|
40 |
return array( 'livemesh-addons' );
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
43 |
public function get_custom_help_url()
|
44 |
{
|
45 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/testimonials-addons/';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
48 |
public function get_script_depends()
|
49 |
{
|
50 |
return [
|
@@ -55,6 +85,11 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
55 |
];
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
protected function register_controls()
|
59 |
{
|
60 |
$this->start_controls_section( 'section_testimonials_slider', [
|
@@ -375,6 +410,13 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
375 |
$this->end_controls_section();
|
376 |
}
|
377 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
protected function render()
|
379 |
{
|
380 |
$settings = $this->get_settings_for_display();
|
@@ -385,6 +427,10 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
385 |
lae_get_template_part( 'addons/testimonials-slider/loop', $args );
|
386 |
}
|
387 |
|
|
|
|
|
|
|
|
|
388 |
protected function content_template()
|
389 |
{
|
390 |
}
|
18 |
exit;
|
19 |
}
|
20 |
// Exit if accessed directly
|
21 |
+
/**
|
22 |
+
* Class for Testimonials Slider widget that displays responsive touch friendly slider of testimonials from clients/customers.
|
23 |
+
*/
|
24 |
class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
25 |
{
|
26 |
+
/**
|
27 |
+
* Get the name for the widget
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
public function get_name()
|
31 |
{
|
32 |
return 'lae-testimonials-slider';
|
33 |
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Get the widget title
|
37 |
+
* @return string|void
|
38 |
+
*/
|
39 |
public function get_title()
|
40 |
{
|
41 |
return __( 'Testimonials Slider', 'livemesh-el-addons' );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Get the widget icon
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
public function get_icon()
|
49 |
{
|
50 |
return 'lae-icon-testimonials1';
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* Retrieve the list of categories the widget belongs to.
|
55 |
+
*
|
56 |
+
* Used to determine where to display the widget in the editor.
|
57 |
+
*
|
58 |
+
* @return string[]
|
59 |
+
*/
|
60 |
public function get_categories()
|
61 |
{
|
62 |
return array( 'livemesh-addons' );
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Get the widget documentation URL
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
public function get_custom_help_url()
|
70 |
{
|
71 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/testimonials-addons/';
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Obtain the scripts required for the widget to function
|
76 |
+
* @return string[]
|
77 |
+
*/
|
78 |
public function get_script_depends()
|
79 |
{
|
80 |
return [
|
85 |
];
|
86 |
}
|
87 |
|
88 |
+
/**
|
89 |
+
* Register the controls for the widget
|
90 |
+
* Adds fields that help configure and customize the widget
|
91 |
+
* @return void
|
92 |
+
*/
|
93 |
protected function register_controls()
|
94 |
{
|
95 |
$this->start_controls_section( 'section_testimonials_slider', [
|
410 |
$this->end_controls_section();
|
411 |
}
|
412 |
|
413 |
+
/**
|
414 |
+
* Render HTML widget output on the frontend.
|
415 |
+
*
|
416 |
+
* Written in PHP and used to generate the final HTML.
|
417 |
+
*
|
418 |
+
* @return void
|
419 |
+
*/
|
420 |
protected function render()
|
421 |
{
|
422 |
$settings = $this->get_settings_for_display();
|
427 |
lae_get_template_part( 'addons/testimonials-slider/loop', $args );
|
428 |
}
|
429 |
|
430 |
+
/**
|
431 |
+
* Render the widget output in the editor.
|
432 |
+
* @return void
|
433 |
+
*/
|
434 |
protected function content_template()
|
435 |
{
|
436 |
}
|
includes/widgets/testimonials.php
CHANGED
@@ -19,33 +19,63 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
|
|
|
|
|
|
22 |
class LAE_Testimonials_Widget extends LAE_Widget_Base
|
23 |
{
|
|
|
|
|
|
|
|
|
24 |
public function get_name()
|
25 |
{
|
26 |
return 'lae-testimonials';
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
29 |
public function get_title()
|
30 |
{
|
31 |
return __( 'Testimonials', 'livemesh-el-addons' );
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
34 |
public function get_icon()
|
35 |
{
|
36 |
return 'lae-icon-testimonials3';
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
public function get_categories()
|
40 |
{
|
41 |
return array( 'livemesh-addons' );
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
44 |
public function get_custom_help_url()
|
45 |
{
|
46 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/testimonials-addons/';
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
49 |
public function get_script_depends()
|
50 |
{
|
51 |
return [
|
@@ -57,6 +87,11 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
57 |
];
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
protected function register_controls()
|
61 |
{
|
62 |
$this->start_controls_section( 'section_testimonials', [
|
@@ -619,6 +654,13 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
619 |
$this->end_controls_section();
|
620 |
}
|
621 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
protected function render()
|
623 |
{
|
624 |
$settings = $this->get_settings_for_display();
|
@@ -628,6 +670,10 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
628 |
lae_get_template_part( 'addons/testimonials/loop', $args );
|
629 |
}
|
630 |
|
|
|
|
|
|
|
|
|
631 |
protected function content_template()
|
632 |
{
|
633 |
}
|
19 |
exit;
|
20 |
}
|
21 |
// Exit if accessed directly
|
22 |
+
/**
|
23 |
+
* Class for Testimonials widget that displays testimonials from your clients/customers in a multi-column grid.
|
24 |
+
*/
|
25 |
class LAE_Testimonials_Widget extends LAE_Widget_Base
|
26 |
{
|
27 |
+
/**
|
28 |
+
* Get the name for the widget
|
29 |
+
* @return string
|
30 |
+
*/
|
31 |
public function get_name()
|
32 |
{
|
33 |
return 'lae-testimonials';
|
34 |
}
|
35 |
|
36 |
+
/**
|
37 |
+
* Get the widget title
|
38 |
+
* @return string|void
|
39 |
+
*/
|
40 |
public function get_title()
|
41 |
{
|
42 |
return __( 'Testimonials', 'livemesh-el-addons' );
|
43 |
}
|
44 |
|
45 |
+
/**
|
46 |
+
* Get the widget icon
|
47 |
+
* @return string
|
48 |
+
*/
|
49 |
public function get_icon()
|
50 |
{
|
51 |
return 'lae-icon-testimonials3';
|
52 |
}
|
53 |
|
54 |
+
/**
|
55 |
+
* Retrieve the list of categories the widget belongs to.
|
56 |
+
*
|
57 |
+
* Used to determine where to display the widget in the editor.
|
58 |
+
*
|
59 |
+
* @return string[]
|
60 |
+
*/
|
61 |
public function get_categories()
|
62 |
{
|
63 |
return array( 'livemesh-addons' );
|
64 |
}
|
65 |
|
66 |
+
/**
|
67 |
+
* Get the widget documentation URL
|
68 |
+
* @return string
|
69 |
+
*/
|
70 |
public function get_custom_help_url()
|
71 |
{
|
72 |
return 'https://livemeshelementor.com/docs/livemesh-addons/core-addons/testimonials-addons/';
|
73 |
}
|
74 |
|
75 |
+
/**
|
76 |
+
* Obtain the scripts required for the widget to function
|
77 |
+
* @return string[]
|
78 |
+
*/
|
79 |
public function get_script_depends()
|
80 |
{
|
81 |
return [
|
87 |
];
|
88 |
}
|
89 |
|
90 |
+
/**
|
91 |
+
* Register the controls for the widget
|
92 |
+
* Adds fields that help configure and customize the widget
|
93 |
+
* @return void
|
94 |
+
*/
|
95 |
protected function register_controls()
|
96 |
{
|
97 |
$this->start_controls_section( 'section_testimonials', [
|
654 |
$this->end_controls_section();
|
655 |
}
|
656 |
|
657 |
+
/**
|
658 |
+
* Render HTML widget output on the frontend.
|
659 |
+
*
|
660 |
+
* Written in PHP and used to generate the final HTML.
|
661 |
+
*
|
662 |
+
* @return void
|
663 |
+
*/
|
664 |
protected function render()
|
665 |
{
|
666 |
$settings = $this->get_settings_for_display();
|
670 |
lae_get_template_part( 'addons/testimonials/loop', $args );
|
671 |
}
|
672 |
|
673 |
+
/**
|
674 |
+
* Render the widget output in the editor.
|
675 |
+
* @return void
|
676 |
+
*/
|
677 |
protected function content_template()
|
678 |
{
|
679 |
}
|
plugin.php
CHANGED
@@ -45,7 +45,7 @@ if ( !class_exists( 'Livemesh_Elementor_Addons' ) ) {
|
|
45 |
public function __clone()
|
46 |
{
|
47 |
// Cloning instances of the class is forbidden
|
48 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '7.1.
|
49 |
}
|
50 |
|
51 |
/**
|
@@ -55,7 +55,7 @@ if ( !class_exists( 'Livemesh_Elementor_Addons' ) ) {
|
|
55 |
public function __wakeup()
|
56 |
{
|
57 |
// Unserializing instances of the class is forbidden
|
58 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '7.1.
|
59 |
}
|
60 |
|
61 |
private function setup_debug_constants()
|
45 |
public function __clone()
|
46 |
{
|
47 |
// Cloning instances of the class is forbidden
|
48 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '7.1.8' );
|
49 |
}
|
50 |
|
51 |
/**
|
55 |
public function __wakeup()
|
56 |
{
|
57 |
// Unserializing instances of the class is forbidden
|
58 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '7.1.8' );
|
59 |
}
|
60 |
|
61 |
private function setup_debug_constants()
|
readme.txt
CHANGED
@@ -4,10 +4,10 @@ Plugin URI: https://livemeshelementor.com
|
|
4 |
Donate link: https://livemeshelementor.com/
|
5 |
Contributors: livemesh, elementoraddons, freemius
|
6 |
Tags: elementor, elementor addons, elementor extensions, elementor widgets, page builder, woocommerce elementor
|
7 |
-
Requires at least: 5.
|
8 |
Tested up to: 6.0
|
9 |
Requires PHP: 5.6
|
10 |
-
Stable Tag: 7.1.
|
11 |
License: GPLv3
|
12 |
License URI: https://opensource.org/licenses/GPL-3.0
|
13 |
|
@@ -259,6 +259,10 @@ Email us at support[at]livemeshthemes.com and we will be happy to assist you.
|
|
259 |
|
260 |
|
261 |
|
|
|
|
|
|
|
|
|
262 |
= 7.1.7 =
|
263 |
* Fixed - Elementor dropdown menu displaying incorrectly when Livemesh Addons is activated
|
264 |
* Update - Compatibility with Elementor 3.7
|
4 |
Donate link: https://livemeshelementor.com/
|
5 |
Contributors: livemesh, elementoraddons, freemius
|
6 |
Tags: elementor, elementor addons, elementor extensions, elementor widgets, page builder, woocommerce elementor
|
7 |
+
Requires at least: 5.2
|
8 |
Tested up to: 6.0
|
9 |
Requires PHP: 5.6
|
10 |
+
Stable Tag: 7.1.8
|
11 |
License: GPLv3
|
12 |
License URI: https://opensource.org/licenses/GPL-3.0
|
13 |
|
259 |
|
260 |
|
261 |
|
262 |
+
= 7.1.8 =
|
263 |
+
* Added - Documentation for Posts Slider, Posts Multislider and Posts Gridbox Slider
|
264 |
+
* Added - Code documentation for widgets
|
265 |
+
|
266 |
= 7.1.7 =
|
267 |
* Fixed - Elementor dropdown menu displaying incorrectly when Livemesh Addons is activated
|
268 |
* Update - Compatibility with Elementor 3.7
|