@@ -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
0 commit comments