Skip to content

Commit 7b9bdfe

Browse files
committed
Added defaults
1 parent fb67d0d commit 7b9bdfe

File tree

5 files changed

+64
-28
lines changed

5 files changed

+64
-28
lines changed

assets/css/flip-box.css

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

widgets/counter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function _register_controls() {
106106
'label_on' => __( 'Show', 'mighty' ),
107107
'label_off' => __( 'Hide', 'mighty' ),
108108
'return_value' => 'yes',
109-
'default' => 'no',
109+
'default' => 'yes',
110110
]
111111
);
112112

widgets/flip-box.php

Lines changed: 58 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected function _register_controls() {
9898
'label' => __( 'Icon', 'mighty' ),
9999
'type' => Controls_Manager::ICONS,
100100
'default' => [
101-
'value' => 'fas fa-star',
101+
'value' => 'fas fa-pizza-slice',
102102
'library' => 'solid',
103103
],
104104
'condition' => [
@@ -113,7 +113,7 @@ protected function _register_controls() {
113113
'label' => __( 'Title', 'mighty' ),
114114
'type' => Controls_Manager::TEXT,
115115
'placeholder' => __( 'Front Title', 'mighty' ),
116-
'default' => __( 'Front Title', 'mighty'),
116+
'default' => __( 'Pizza', 'mighty'),
117117
]
118118
);
119119

@@ -123,7 +123,7 @@ protected function _register_controls() {
123123
'label' => __( 'Description', 'mighty' ),
124124
'type' => Controls_Manager::WYSIWYG,
125125
'placeholder' => __( 'Type your description here', 'mighty' ),
126-
'default' => __( 'Front box description', 'mighty'),
126+
'default' => __( 'A delicious, round piece of dough that comes in square boxes for some strange reason.', 'mighty'),
127127
]
128128
);
129129

@@ -202,7 +202,7 @@ protected function _register_controls() {
202202
[
203203
'label' => __( 'Graphic Element', 'mighty' ),
204204
'type' => Controls_Manager::SELECT,
205-
'default' => 'icon',
205+
'default' => 'none',
206206
'options' => [
207207
'none' => __( 'None', 'mighty' ),
208208
'image' => __( 'Image', 'mighty' ),
@@ -241,10 +241,6 @@ protected function _register_controls() {
241241
[
242242
'label' => __( 'Icon', 'mighty' ),
243243
'type' => Controls_Manager::ICONS,
244-
'default' => [
245-
'value' => 'fas fa-star',
246-
'library' => 'solid',
247-
],
248244
'condition' => [
249245
'back_graphic_element' => 'icon',
250246
],
@@ -257,7 +253,7 @@ protected function _register_controls() {
257253
'label' => __( 'Title', 'mighty' ),
258254
'type' => Controls_Manager::TEXT,
259255
'placeholder' => __( 'Back Title', 'mighty' ),
260-
'default' => __( 'Back Title', 'mighty'),
256+
'default' => 'Pizza',
261257
]
262258
);
263259

@@ -267,7 +263,7 @@ protected function _register_controls() {
267263
'label' => __( 'Description', 'mighty' ),
268264
'type' => Controls_Manager::WYSIWYG,
269265
'placeholder' => __( 'Type your description here', 'mighty' ),
270-
'default' => __( 'Back box description', 'mighty'),
266+
'default' => __( 'A sacred food gifted to mankind by the gods. <br>Very delicious and cheesy with tomato sauce and toppings of your choice. Commonly consumed recreationally or at parties.', 'mighty'),
271267
]
272268
);
273269

@@ -276,7 +272,7 @@ protected function _register_controls() {
276272
[
277273
'label' => __( 'Button Text', 'mighty' ),
278274
'type' => Controls_Manager::TEXT,
279-
'default' => __( 'Click Here', 'mighty' ),
275+
'default' => __( 'Get It Now', 'mighty' ),
280276
'placeholder' => __( 'Enter Button Text', 'mighty' ),
281277
]
282278
);
@@ -521,7 +517,7 @@ protected function _register_controls() {
521517
'type' => \Elementor\Scheme_Color::get_type(),
522518
'value' => \Elementor\Scheme_Color::COLOR_1,
523519
],
524-
'default' => '#562dd4',
520+
'default' => '#e53c30',
525521
'selectors' => [
526522
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon i' => 'color: {{VALUE}}',
527523
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon svg' => 'color: {{VALUE}}',
@@ -547,7 +543,7 @@ protected function _register_controls() {
547543
],
548544
'default' => [
549545
'unit' => 'px',
550-
'size' => 50,
546+
'size' => 70,
551547
],
552548
'selectors' => [
553549
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-icon i' => 'font-size: {{SIZE}}{{UNIT}};',
@@ -802,7 +798,7 @@ protected function _register_controls() {
802798
'type' => \Elementor\Scheme_Color::get_type(),
803799
'value' => \Elementor\Scheme_Color::COLOR_1,
804800
],
805-
'default' => "#000",
801+
'default' => "#e53c30",
806802
'selectors' => [
807803
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-title' => 'color: {{VALUE}}',
808804
],
@@ -829,6 +825,29 @@ protected function _register_controls() {
829825
]
830826
);
831827

828+
$this->add_control(
829+
'front_description_spacing',
830+
[
831+
'label' => __( 'Spacing', 'mighty' ),
832+
'type' => Controls_Manager::SLIDER,
833+
'size_units' => [ 'px' ],
834+
'range' => [
835+
'px' => [
836+
'min' => 0,
837+
'max' => 100,
838+
'step' => 1,
839+
]
840+
],
841+
'default' => [
842+
'unit' => 'px',
843+
'size' => 10,
844+
],
845+
'selectors' => [
846+
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-front .mt-flipbox-description' => 'margin-bottom: {{SIZE}}{{UNIT}};',
847+
]
848+
]
849+
);
850+
832851
$this->add_control(
833852
'front_description_color',
834853
[
@@ -1226,7 +1245,7 @@ protected function _register_controls() {
12261245
'type' => \Elementor\Scheme_Color::get_type(),
12271246
'value' => \Elementor\Scheme_Color::COLOR_1,
12281247
],
1229-
'default' => '#000',
1248+
'default' => '#e53c30',
12301249
'selectors' => [
12311250
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back .mt-flipbox-title' => 'color: {{VALUE}}',
12321251
],
@@ -1253,6 +1272,29 @@ protected function _register_controls() {
12531272
]
12541273
);
12551274

1275+
$this->add_control(
1276+
'back_description_spacing',
1277+
[
1278+
'label' => __( 'Spacing', 'mighty' ),
1279+
'type' => Controls_Manager::SLIDER,
1280+
'size_units' => [ 'px' ],
1281+
'range' => [
1282+
'px' => [
1283+
'min' => 0,
1284+
'max' => 100,
1285+
'step' => 1,
1286+
]
1287+
],
1288+
'default' => [
1289+
'unit' => 'px',
1290+
'size' => 10,
1291+
],
1292+
'selectors' => [
1293+
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back .mt-flipbox-description' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1294+
]
1295+
]
1296+
);
1297+
12561298
$this->add_control(
12571299
'back_description_color',
12581300
[
@@ -1341,7 +1383,7 @@ protected function _register_controls() {
13411383
'type' => \Elementor\Scheme_Color::get_type(),
13421384
'value' => \Elementor\Scheme_Color::COLOR_1,
13431385
],
1344-
'default' => '#562dd4',
1386+
'default' => '#e53c30',
13451387
'selectors' => [
13461388
'{{WRAPPER}} .mt-flipbox-wrapper .mt-flipbox-card .mt-flipbox-back .mt-flipbox-button a' => 'background-color: {{VALUE}}',
13471389
],

widgets/opening-hours.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function _register_controls() {
9595
'type' => Scheme_Color::get_type(),
9696
'value' => Scheme_Color::COLOR_1,
9797
],
98-
'default' => '#000',
98+
'default' => '#232323',
9999
'selectors' => [
100100
'{{WRAPPER}} .ma-openinghours-wrapper {{CURRENT_ITEM}} .ma-oh-day' => 'color: {{VALUE}}',
101101
],
@@ -114,7 +114,7 @@ protected function _register_controls() {
114114
'type' => Scheme_Color::get_type(),
115115
'value' => Scheme_Color::COLOR_1,
116116
],
117-
'default' => '#000',
117+
'default' => '#232323',
118118
'selectors' => [
119119
'{{WRAPPER}} .ma-openinghours-wrapper {{CURRENT_ITEM}} .ma-oh-time' => 'color: {{VALUE}}',
120120
],
@@ -543,7 +543,7 @@ protected function _register_controls() {
543543
'selectors' => [
544544
'{{WRAPPER}} .ma-oh-header' => 'background-color: {{VALUES}}'
545545
],
546-
'default' => '#000',
546+
'default' => '#4965fb',
547547
]
548548
);
549549

widgets/testimonial.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ protected function _register_controls() {
134134
'image' => Utils::get_placeholder_image_src(),
135135
'name' => __( 'Darth Vader', 'mighty' ),
136136
'title' => __( 'Digital Overlord', 'mighty' ),
137-
'testimonial' => 'The circle is now complete. When I left you, I was but the learner. Now I am the master.',
137+
'testimonial_content' => 'The circle is now complete. When I left you, I was but the learner. Now I am the master.',
138138
],
139139
[
140140
'image' => Utils::get_placeholder_image_src(),
141141
'name' => __( 'Yoda', 'mighty' ),
142142
'title' => __( 'Digita Master', 'mighty' ),
143-
'testimonial' => 'If you end your training now — if you choose the quick and easy path as Vader did — you will become an agent of evil.',
143+
'testimonial_content' => 'If you end your training now — if you choose the quick and easy path as Vader did — you will become an agent of evil.',
144144
],
145145
]
146146
]

0 commit comments

Comments
 (0)