Skip to content

Commit e2a15fd

Browse files
committed
Upgraded version and fixed initialization issue
1 parent c2b0065 commit e2a15fd

File tree

3 files changed

+98
-3
lines changed

3 files changed

+98
-3
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Tags: elementor, elementor extensions, progress bar, elementor addons, elementor
77
Requires at least: 4.0 or higher
88
Tested up to: 5.3
99
Requires PHP: 5.6
10-
Stable Tag: 1.1.0
10+
Stable Tag: 1.2.0
1111
License: GPLv2 or later
1212
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1313

@@ -117,6 +117,15 @@ Create an issue on the desired product or maybe give us a ⭐. 😀
117117

118118
== Changelog ==
119119

120+
= 1.2.0 =
121+
* Added: Mighty Dashboard
122+
* Added: MT Flip Box Widget
123+
* Added: MT Opening Hours Widget
124+
* Fixed: FAQ Schema for accordion
125+
* Fixed: MT Testimonial Widget
126+
* Fixed: Few other minor fixes
127+
* Updated: Widget Icons
128+
120129
= 1.1.0 =
121130
* Added: MT Gradient Heading Widget
122131
* Added: MT Flip Box Widget

classes/class-helper-functions.php

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,93 @@ class HelperFunctions {
99
public static function mighty_addons() {
1010

1111
$widgets = get_option( 'mighty_addons_status' );
12+
13+
if ( empty($widgets) ) {
14+
$widgets = [
1215

16+
'testimonial' => [
17+
'title' => 'MT Testimonial',
18+
'description' => '',
19+
'enable' => true,
20+
'class' => 'MT_Testimonial',
21+
'slug' => 'testimonial',
22+
'icon' => 'mf mf-testimonial'
23+
],
24+
'team' => [
25+
'title' => 'MT Team',
26+
'description' => '',
27+
'enable' => true,
28+
'class' => 'MT_Team',
29+
'slug' => 'team',
30+
'icon' => 'mf mf-team'
31+
],
32+
'progressbar' => [
33+
'title' => 'MT Progress Bar',
34+
'description' => '',
35+
'enable' => true,
36+
'class' => 'MT_Progressbar',
37+
'slug' => 'progressbar',
38+
'icon' => 'mf mf-progressbar'
39+
],
40+
'counter' => [
41+
'title' => 'MT Counter',
42+
'description' => '',
43+
'enable' => true,
44+
'class' => 'MT_Counter',
45+
'slug' => 'counter',
46+
'icon' => 'mf mf-counter'
47+
],
48+
'buttongroup' => [
49+
'title' => 'MT Button Group',
50+
'description' => '',
51+
'enable' => true,
52+
'class' => 'MT_Buttongroup',
53+
'slug' => 'buttongroup',
54+
'icon' => 'mf mf-button'
55+
],
56+
'accordion' => [
57+
'title' => 'MT Accordion',
58+
'description' => '',
59+
'enable' => true,
60+
'class' => 'MT_Accordion',
61+
'slug' => 'accordion',
62+
'icon' => 'mf mf-accordion'
63+
],
64+
'beforeafter' => [
65+
'title' => 'MT Before After',
66+
'description' => '',
67+
'enable' => true,
68+
'class' => 'MT_Beforeafter',
69+
'slug' => 'beforeafter',
70+
'icon' => 'mf mf-beforeafter'
71+
],
72+
'gradientheading' => [
73+
'title' => 'MT Gradient Heading',
74+
'description' => '',
75+
'enable' => true,
76+
'class' => 'MT_Gradientheading',
77+
'slug' => 'gradientheading',
78+
'icon' => 'mf mf-heading'
79+
],
80+
'flipbox' => [
81+
'title' => 'MT Flip Box',
82+
'description' => '',
83+
'enable' => true,
84+
'class' => 'MT_Flipbox',
85+
'slug' => 'flipbox',
86+
'icon' => 'mf mf-flipbox'
87+
],
88+
'openinghours' => [
89+
'title' => 'MT Opening Hours',
90+
'description' => '',
91+
'enable' => true,
92+
'class' => 'MT_Openinghours',
93+
'slug' => 'openinghours',
94+
'icon' => 'mf mf-openinghours'
95+
],
96+
];
97+
}
98+
1399
return $widgets;
14100
}
15101

mighty-addons.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Mighty Addons
44
* Description: Addons for elementor by MightyThemes.
55
* Plugin URI: https://mightythemes.com/products/mighty-addons/
6-
* Version: 1.1.0
6+
* Version: 1.2.0
77
* Author: MightyThemes1
88
* Author URI: https://mightythemes.com/
99
* Text Domain: mighty
@@ -13,7 +13,7 @@
1313

1414
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
1515

16-
define( 'MIGHTY_ADDONS_VERSION', '1.1.0' );
16+
define( 'MIGHTY_ADDONS_VERSION', '1.2.0' );
1717
define( 'MIGHTY_ADDONS_DIR_PATH', plugin_dir_path( __FILE__ ) );
1818
define( 'MIGHTY_ADDONS_PLG_URL', plugin_dir_url( __FILE__ ) );
1919

0 commit comments

Comments
 (0)