Elementor Addons & Templates – Sizzify Lite - Version 1.2.2

Version Description

  • 2018-07-11
Download this release

Release Info

Developer themeisle
Plugin Icon wp plugin Elementor Addons & Templates – Sizzify Lite
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v1.2.1 - 2018-07-06
3
  **Changes:**
4
  * Fixes post grid pagination issue
1
 
2
+ ### v1.2.2 - 2018-07-11
3
+ **Changes:**
4
+ * Added styling options for elementor form widgets
5
+
6
  ### v1.2.1 - 2018-07-06
7
  **Changes:**
8
  * Fixes post grid pagination issue
elementor-addon-widgets.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Elementor Addons & Templates - Sizzify Lite
4
  * Plugin URI: https://themeisle.com/
5
  * Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
6
- * Version: 1.2.1
7
  * Author: ThemeIsle
8
  * Author URI: https://themeisle.com/
9
  * Requires at least: 4.4
@@ -23,7 +23,7 @@ Constants
23
  ------------------------------------------ */
24
 
25
  /* Set plugin version constant. */
26
- define( 'EA_VERSION', '1.2.1' );
27
 
28
  /* Set constant path to the plugin directory. */
29
  define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
3
  * Plugin Name: Elementor Addons & Templates - Sizzify Lite
4
  * Plugin URI: https://themeisle.com/
5
  * Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
6
+ * Version: 1.2.2
7
  * Author: ThemeIsle
8
  * Author URI: https://themeisle.com/
9
  * Requires at least: 4.4
23
  ------------------------------------------ */
24
 
25
  /* Set plugin version constant. */
26
+ define( 'EA_VERSION', '1.2.2' );
27
 
28
  /* Set constant path to the plugin directory. */
29
  define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
readme.md CHANGED
@@ -61,6 +61,11 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
61
  4. Frontend view posts with custom title.
62
 
63
  ## Changelog ##
 
 
 
 
 
64
  ### 1.2.1 - 2018-07-06 ###
65
 
66
  * Fixes post grid pagination issue
61
  4. Frontend view posts with custom title.
62
 
63
  ## Changelog ##
64
+ ### 1.2.2 - 2018-07-11 ###
65
+
66
+ * Added styling options for elementor form widgets
67
+
68
+
69
  ### 1.2.1 - 2018-07-06 ###
70
 
71
  * Fixes post grid pagination issue
readme.txt CHANGED
@@ -61,6 +61,11 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
61
  4. Frontend view posts with custom title.
62
 
63
  == Changelog ==
 
 
 
 
 
64
  = 1.2.1 - 2018-07-06 =
65
 
66
  * Fixes post grid pagination issue
61
  4. Frontend view posts with custom title.
62
 
63
  == Changelog ==
64
+ = 1.2.2 - 2018-07-11 =
65
+
66
+ * Added styling options for elementor form widgets
67
+
68
+
69
  = 1.2.1 - 2018-07-06 =
70
 
71
  * Fixes post grid pagination issue
themeisle-hash.json CHANGED
@@ -1 +1 @@
1
- {"eaw-class.php":"414c18cd16dd525c99fc20b4d5505ece","elementor-addon-widgets.php":"e04f75589ee5afb43fb6c81e7e3ff8e7"}
1
+ {"eaw-class.php":"414c18cd16dd525c99fc20b4d5505ece","elementor-addon-widgets.php":"bc856115a2ab8f9d1dd1e00e81afcbae"}
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit857789efd9de014907eb776c76d26a74::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit6bef6e80fe72ca94ee4c3d3fe9758798::getLoader();
vendor/codeinwp/themeisle-content-forms/assets/content-forms.css CHANGED
@@ -27,4 +27,23 @@ fieldset {
27
  .content-form-error {
28
  color: #d5521a;
29
  border: 2px solid #d5521a;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
27
  .content-form-error {
28
  color: #d5521a;
29
  border: 2px solid #d5521a;
30
+ }
31
+
32
+ .content-form {
33
+ display: flex;
34
+ -webkit-flex-wrap: wrap;
35
+ -ms-flex-wrap: wrap;
36
+ flex-wrap: wrap;
37
+ -webkit-box-align: center;
38
+ -webkit-align-items: center;
39
+ -ms-flex-align: center;
40
+ align-items: center;
41
+ }
42
+
43
+ .content-form .submit-form {
44
+ width: 100%;
45
+ }
46
+
47
+ .form-control {
48
+ height: auto;
49
  }
vendor/codeinwp/themeisle-content-forms/class-themeisle-content-forms-elementor.php CHANGED
@@ -6,6 +6,12 @@ if ( ! defined( 'ABSPATH' ) ) {
6
  exit; // Exit if accessed directly.
7
  }
8
 
 
 
 
 
 
 
9
  /**
10
  * This class is used to create an Elementor widget based on a ContentForms config.
11
  * @package ThemeIsle\ContentForms
@@ -91,6 +97,8 @@ class ElementorWidget extends \Elementor\Widget_Base {
91
  }
92
 
93
 
 
 
94
  }
95
 
96
  /**
@@ -125,6 +133,7 @@ class ElementorWidget extends \Elementor\Widget_Base {
125
  );
126
  }
127
 
 
128
  protected function _register_settings_controls() {
129
  $this->start_controls_section(
130
  'section_form_settings',
@@ -156,8 +165,526 @@ class ElementorWidget extends \Elementor\Widget_Base {
156
  $this->add_submit_button_align();
157
 
158
  $this->end_controls_section();
 
 
159
  }
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  protected function _register_fields_controls() {
162
 
163
  $this->start_controls_section(
@@ -188,13 +715,10 @@ class ElementorWidget extends \Elementor\Widget_Base {
188
  $repeater->add_control(
189
  'requirement',
190
  array(
191
- 'label' => __( 'Requirement', 'elementor-addon-widgets' ),
192
- 'type' => \Elementor\Controls_Manager::SELECT,
193
- 'options' => array(
194
- 'required' => esc_html__( 'Required', 'elementor-addon-widgets' ),
195
- 'optional' => esc_html__( 'Optional', 'elementor-addon-widgets' )
196
- ),
197
- 'default' => 'optional',
198
  )
199
  );
200
 
@@ -227,6 +751,23 @@ class ElementorWidget extends \Elementor\Widget_Base {
227
  )
228
  );
229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  $fields = $this->forms_config['fields'];
231
 
232
  $default_fields = array();
@@ -238,7 +779,7 @@ class ElementorWidget extends \Elementor\Widget_Base {
238
  'label' => $field['label'],
239
  'requirement' => $field['require'],
240
  'placeholder' => isset( $field['placeholder'] ) ? $field['placeholder'] : $field['label'],
241
- 'width' => '100',
242
  );
243
  }
244
 
@@ -299,7 +840,6 @@ class ElementorWidget extends \Elementor\Widget_Base {
299
  }
300
 
301
  $this->render_form_header( $form_id );
302
-
303
  foreach ( $fields as $index => $field ) {
304
  $this->render_form_field( $field );
305
  }
@@ -392,13 +932,21 @@ class ElementorWidget extends \Elementor\Widget_Base {
392
 
393
  $field_name = 'data[' . $form_id . '][' . $key . ']';
394
 
395
- $this->add_inline_editing_attributes( $item_index . '_label', 'none' ); ?>
396
- <fieldset class="content-form-field-<?php echo $field['type'] ?>"
397
- <?php echo $this->get_render_attribute_string( 'fieldset' . $item_index ); ?> >
 
 
 
 
398
 
399
  <label for="<?php echo $field_name ?>"
400
  <?php echo $this->get_render_attribute_string( 'label' . $item_index ); ?>>
401
- <?php echo $field['label']; ?>
 
 
 
 
402
  </label>
403
 
404
  <?php
@@ -408,7 +956,8 @@ class ElementorWidget extends \Elementor\Widget_Base {
408
  <?php echo $disabled; ?>
409
  <?php echo $required; ?>
410
  placeholder="<?php echo esc_attr ( $placeholder ); ?>"
411
- cols="30" rows="5"></textarea>
 
412
  <?php break;
413
  case 'password': ?>
414
  <input type="password" name="<?php echo $field_name ?>" id="<?php echo $field_name ?>"
6
  exit; // Exit if accessed directly.
7
  }
8
 
9
+
10
+ use \Elementor\Controls_Manager as Controls_Manager;
11
+ use \Elementor\Scheme_Typography as Scheme_Typography;
12
+ use \Elementor\Scheme_Color as Scheme_Color;
13
+ use \Elementor\Group_Control_Typography as Group_Control_Typography;
14
+ use Elementor\Group_Control_Border as Group_Control_Border;
15
  /**
16
  * This class is used to create an Elementor widget based on a ContentForms config.
17
  * @package ThemeIsle\ContentForms
97
  }
98
 
99
 
100
+
101
+
102
  }
103
 
104
  /**
133
  );
134
  }
135
 
136
+ // Style section
137
  protected function _register_settings_controls() {
138
  $this->start_controls_section(
139
  'section_form_settings',
165
  $this->add_submit_button_align();
166
 
167
  $this->end_controls_section();
168
+
169
+ $this->add_style_controls();
170
  }
171
 
172
+ protected function add_style_controls() {
173
+ $this->start_controls_section(
174
+ 'section_form_style',
175
+ [
176
+ 'label' => __( 'Form', 'elementor-addon-widgets' ),
177
+ 'tab' => Controls_Manager::TAB_STYLE,
178
+ ]
179
+ );
180
+
181
+ $this->add_control(
182
+ 'column_gap',
183
+ [
184
+ 'label' => __( 'Columns Gap', 'elementor-addon-widgets' ),
185
+ 'type' => Controls_Manager::SLIDER,
186
+ 'default' => [
187
+ 'size' => 10,
188
+ ],
189
+ 'range' => [
190
+ 'px' => [
191
+ 'min' => 0,
192
+ 'max' => 60,
193
+ ],
194
+ ],
195
+ 'selectors' => [
196
+ '{{WRAPPER}} .elementor-column' => 'padding-right: calc( {{SIZE}}{{UNIT}}/2 ); padding-left: calc( {{SIZE}}{{UNIT}}/2 );',
197
+ '{{WRAPPER}} .content-form .submit-form' => 'padding-right: calc( {{SIZE}}{{UNIT}}/2 ); padding-left: calc( {{SIZE}}{{UNIT}}/2 );',
198
+ ],
199
+ ]
200
+ );
201
+
202
+ $this->add_control(
203
+ 'row_gap',
204
+ [
205
+ 'label' => __( 'Rows Gap', 'elementor-addon-widgets' ),
206
+ 'type' => Controls_Manager::SLIDER,
207
+ 'default' => [
208
+ 'size' => 10,
209
+ ],
210
+ 'range' => [
211
+ 'px' => [
212
+ 'min' => 0,
213
+ 'max' => 60,
214
+ ],
215
+ ],
216
+ 'selectors' => [
217
+ '{{WRAPPER}} .elementor-column' => 'margin-bottom: {{SIZE}}{{UNIT}};',
218
+ '{{WRAPPER}} .content-form .submit-form' => 'margin-bottom: {{SIZE}}{{UNIT}};',
219
+ ],
220
+ ]
221
+ );
222
+
223
+ $this->add_control(
224
+ 'heading_label',
225
+ [
226
+ 'label' => __( 'Label', 'elementor-addon-widgets' ),
227
+ 'type' => Controls_Manager::HEADING,
228
+ 'separator' => 'before',
229
+ ]
230
+ );
231
+
232
+ $this->add_control(
233
+ 'label_spacing',
234
+ [
235
+ 'label' => __( 'Spacing', 'elementor-addon-widgets' ),
236
+ 'type' => Controls_Manager::SLIDER,
237
+ 'default' => [
238
+ 'size' => 0,
239
+ ],
240
+ 'range' => [
241
+ 'px' => [
242
+ 'min' => 0,
243
+ 'max' => 60,
244
+ ],
245
+ ],
246
+ 'selectors' => [
247
+ 'body.rtl {{WRAPPER}} fieldset > label' => 'padding-left: {{SIZE}}{{UNIT}};',
248
+ // for the label position = inline option
249
+ 'body:not(.rtl) {{WRAPPER}} fieldset > label' => 'padding-right: {{SIZE}}{{UNIT}};',
250
+ // for the label position = inline option
251
+ 'body {{WRAPPER}} fieldset > label' => 'padding-bottom: {{SIZE}}{{UNIT}};',
252
+ // for the label position = above option
253
+ ],
254
+ ]
255
+ );
256
+
257
+ $this->add_control(
258
+ 'label_color',
259
+ [
260
+ 'label' => __( 'Text Color', 'elementor-addon-widgets' ),
261
+ 'type' => Controls_Manager::COLOR,
262
+ 'selectors' => [
263
+ '{{WRAPPER}} fieldset > label, {{WRAPPER}} .elementor-field-subgroup label' => 'color: {{VALUE}};',
264
+ ],
265
+ 'scheme' => [
266
+ 'type' => Scheme_Color::get_type(),
267
+ 'value' => Scheme_Color::COLOR_3,
268
+ ],
269
+ ]
270
+ );
271
+
272
+ $this->add_control(
273
+ 'mark_required_color',
274
+ [
275
+ 'label' => __( 'Mark Color', 'elementor-addon-widgets' ),
276
+ 'type' => Controls_Manager::COLOR,
277
+ 'default' => '',
278
+ 'selectors' => [
279
+ '{{WRAPPER}} .required-mark' => 'color: {{COLOR}};',
280
+ ],
281
+ ]
282
+ );
283
+
284
+ $this->add_group_control(
285
+ Group_Control_Typography::get_type(),
286
+ [
287
+ 'name' => 'label_typography',
288
+ 'selector' => '{{WRAPPER}} fieldset > label',
289
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_3,
290
+ ]
291
+ );
292
+ $this->end_controls_section();
293
+
294
+ $this->start_controls_section(
295
+ 'section_field_style',
296
+ [
297
+ 'label' => __( 'Field', 'elementor-addon-widgets' ),
298
+ 'tab' => Controls_Manager::TAB_STYLE,
299
+ ]
300
+ );
301
+
302
+ $this->add_group_control(
303
+ Group_Control_Typography::get_type(),
304
+ [
305
+ 'name' => 'field_typography',
306
+ 'selector' => '{{WRAPPER}} fieldset > input, {{WRAPPER}} fieldset > textarea, {{WRAPPER}} fieldset > button',
307
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_3,
308
+ ]
309
+ );
310
+
311
+ $this->add_responsive_control(
312
+ 'align_field_text',
313
+ [
314
+ 'label' => __( 'Text alignment', 'elementor-addon-widgets' ),
315
+ 'type' => \Elementor\Controls_Manager::CHOOSE,
316
+ 'toggle' => false,
317
+ 'default' => 'left',
318
+ 'options' => [
319
+ 'left' => [
320
+ 'title' => __( 'Left', 'elementor-addon-widgets' ),
321
+ 'icon' => 'fa fa-align-left',
322
+ ],
323
+ 'center' => [
324
+ 'title' => __( 'Center', 'elementor-addon-widgets' ),
325
+ 'icon' => 'fa fa-align-center',
326
+ ],
327
+ 'right' => [
328
+ 'title' => __( 'Right', 'elementor-addon-widgets' ),
329
+ 'icon' => 'fa fa-align-right',
330
+ ],
331
+ ],
332
+ 'selectors' => [
333
+ '{{WRAPPER}} fieldset > input' => 'text-align: {{VALUE}}',
334
+ '{{WRAPPER}} fieldset > textarea' => 'text-align: {{VALUE}}'
335
+ ],
336
+ ]
337
+ );
338
+
339
+ $this->start_controls_tabs( 'tabs_field_style' );
340
+
341
+ $this->start_controls_tab(
342
+ 'tab_field_normal',
343
+ [
344
+ 'label' => __( 'Normal', 'elementor-addon-widgets' ),
345
+ ]
346
+ );
347
+
348
+ $this->add_control(
349
+ 'field_text_color',
350
+ [
351
+ 'label' => __( 'Text Color', 'elementor-addon-widgets' ),
352
+ 'type' => Controls_Manager::COLOR,
353
+ 'selectors' => [
354
+ '{{WRAPPER}} fieldset > input' => 'color: {{VALUE}};',
355
+ '{{WRAPPER}} fieldset > input::placeholder' => 'color: {{VALUE}};',
356
+ '{{WRAPPER}} fieldset > textarea' => 'color: {{VALUE}};',
357
+ '{{WRAPPER}} fieldset > textarea::placeholder' => 'color: {{VALUE}};',
358
+ ],
359
+ 'scheme' => [
360
+ 'type' => Scheme_Color::get_type(),
361
+ 'value' => Scheme_Color::COLOR_3,
362
+ ],
363
+ ]
364
+ );
365
+
366
+
367
+
368
+ $this->add_control(
369
+ 'field_background_color',
370
+ [
371
+ 'label' => __( 'Background Color', 'elementor-addon-widgets' ),
372
+ 'type' => Controls_Manager::COLOR,
373
+ 'default' => '#ffffff',
374
+ 'selectors' => [
375
+ '{{WRAPPER}} fieldset > input' => 'background-color: {{VALUE}};',
376
+ '{{WRAPPER}} fieldset > textarea' => 'background-color: {{VALUE}};',
377
+ ],
378
+ 'separator' => 'before',
379
+ ]
380
+ );
381
+
382
+ $this->add_control(
383
+ 'field_border_color',
384
+ [
385
+ 'label' => __( 'Border Color', 'elementor-addon-widgets' ),
386
+ 'type' => Controls_Manager::COLOR,
387
+ 'selectors' => [
388
+ '{{WRAPPER}} fieldset > input' => 'border-color: {{VALUE}};',
389
+ '{{WRAPPER}} fieldset > textarea' => 'border-color: {{VALUE}};',
390
+ ],
391
+ 'separator' => 'before',
392
+ ]
393
+ );
394
+
395
+ $this->add_control(
396
+ 'field_border_style',
397
+ [
398
+ 'label' => _x( 'Border Type', 'Border Control', 'elementor-addon-widgets' ),
399
+ 'type' => Controls_Manager::SELECT,
400
+ 'options' => [
401
+ '' => __( 'None', 'elementor-addon-widgets' ),
402
+ 'solid' => _x( 'Solid', 'Border Control', 'elementor-addon-widgets' ),
403
+ 'double' => _x( 'Double', 'Border Control', 'elementor-addon-widgets' ),
404
+ 'dotted' => _x( 'Dotted', 'Border Control', 'elementor-addon-widgets' ),
405
+ 'dashed' => _x( 'Dashed', 'Border Control', 'elementor-addon-widgets' ),
406
+ 'groove' => _x( 'Groove', 'Border Control', 'elementor-addon-widgets' ),
407
+ ],
408
+ 'selectors' => [
409
+ '{{WRAPPER}} fieldset > input' => 'border-style: {{VALUE}};',
410
+ '{{WRAPPER}} fieldset > textarea' => 'border-style: {{VALUE}};'
411
+ ],
412
+ ]
413
+ );
414
+
415
+ $this->add_control(
416
+ 'field_border_width',
417
+ [
418
+ 'label' => __( 'Border Width', 'elementor-addon-widgets' ),
419
+ 'type' => Controls_Manager::DIMENSIONS,
420
+ 'placeholder' => '',
421
+ 'size_units' => [ 'px' ],
422
+ 'selectors' => [
423
+ '{{WRAPPER}} fieldset > input' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
424
+ '{{WRAPPER}} fieldset > textarea' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
425
+ ],
426
+ ]
427
+ );
428
+
429
+ $this->add_control(
430
+ 'field_border_radius',
431
+ [
432
+ 'label' => __( 'Border Radius', 'elementor-addon-widgets' ),
433
+ 'type' => Controls_Manager::DIMENSIONS,
434
+ 'size_units' => [ 'px', '%' ],
435
+ 'selectors' => [
436
+ '{{WRAPPER}} fieldset > input' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
437
+ '{{WRAPPER}} fieldset > textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
438
+ ],
439
+ ]
440
+ );
441
+
442
+ $this->end_controls_tab();
443
+
444
+ $this->start_controls_tab(
445
+ 'tab_field_focus',
446
+ [
447
+ 'label' => __( 'Focus', 'elementor-addon-widgets' ),
448
+ ]
449
+ );
450
+
451
+ $this->add_control(
452
+ 'field_focus_text_color',
453
+ [
454
+ 'label' => __( 'Text Color', 'elementor-addon-widgets' ),
455
+ 'type' => Controls_Manager::COLOR,
456
+ 'selectors' => [
457
+ '{{WRAPPER}} fieldset > input:focus' => 'color: {{VALUE}};',
458
+ '{{WRAPPER}} fieldset > input::placeholder:focus' => 'color: {{VALUE}};',
459
+ '{{WRAPPER}} fieldset > textarea:focus' => 'color: {{VALUE}};',
460
+ '{{WRAPPER}} fieldset > textarea::placeholder:focus' => 'color: {{VALUE}};',
461
+ ],
462
+ 'scheme' => [
463
+ 'type' => Scheme_Color::get_type(),
464
+ 'value' => Scheme_Color::COLOR_3,
465
+ ],
466
+ ]
467
+ );
468
+
469
+ $this->add_control(
470
+ 'field_focus_background_color',
471
+ [
472
+ 'label' => __( 'Background Color', 'elementor-addon-widgets' ),
473
+ 'type' => Controls_Manager::COLOR,
474
+ 'default' => '#ffffff',
475
+ 'selectors' => [
476
+ '{{WRAPPER}} fieldset > input:focus' => 'background-color: {{VALUE}};',
477
+ '{{WRAPPER}} fieldset > textarea:focus' => 'background-color: {{VALUE}};',
478
+ ],
479
+ 'separator' => 'before',
480
+ ]
481
+ );
482
+
483
+ $this->add_control(
484
+ 'field_focus_border_color',
485
+ [
486
+ 'label' => __( 'Border Color', 'elementor-addon-widgets' ),
487
+ 'type' => Controls_Manager::COLOR,
488
+ 'selectors' => [
489
+ '{{WRAPPER}} fieldset > input:focus' => 'border-color: {{VALUE}};',
490
+ '{{WRAPPER}} fieldset > textarea:focus' => 'border-color: {{VALUE}};',
491
+ ],
492
+ 'separator' => 'before',
493
+ ]
494
+ );
495
+
496
+ $this->add_control(
497
+ 'field_focus_border_style',
498
+ [
499
+ 'label' => _x( 'Border Type', 'Border Control', 'elementor-addon-widgets' ),
500
+ 'type' => Controls_Manager::SELECT,
501
+ 'options' => [
502
+ '' => __( 'None', 'elementor-addon-widgets' ),
503
+ 'solid' => _x( 'Solid', 'Border Control', 'elementor-addon-widgets' ),
504
+ 'double' => _x( 'Double', 'Border Control', 'elementor-addon-widgets' ),
505
+ 'dotted' => _x( 'Dotted', 'Border Control', 'elementor-addon-widgets' ),
506
+ 'dashed' => _x( 'Dashed', 'Border Control', 'elementor-addon-widgets' ),
507
+ 'groove' => _x( 'Groove', 'Border Control', 'elementor-addon-widgets' ),
508
+ ],
509
+ 'selectors' => [
510
+ '{{WRAPPER}} fieldset > input:focus' => 'border-style: {{VALUE}};',
511
+ '{{WRAPPER}} fieldset > textarea:focus' => 'border-style: {{VALUE}};'
512
+ ],
513
+ ]
514
+ );
515
+
516
+ $this->add_control(
517
+ 'field_focus_border_width',
518
+ [
519
+ 'label' => __( 'Border Width', 'elementor-addon-widgets' ),
520
+ 'type' => Controls_Manager::DIMENSIONS,
521
+ 'placeholder' => '',
522
+ 'size_units' => [ 'px' ],
523
+ 'selectors' => [
524
+ '{{WRAPPER}} fieldset > input:focus' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
525
+ '{{WRAPPER}} fieldset > textarea:focus' => 'border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
526
+ ],
527
+ ]
528
+ );
529
+
530
+ $this->add_control(
531
+ 'field_focus_border_radius',
532
+ [
533
+ 'label' => __( 'Border Radius', 'elementor-addon-widgets' ),
534
+ 'type' => Controls_Manager::DIMENSIONS,
535
+ 'size_units' => [ 'px', '%' ],
536
+ 'selectors' => [
537
+ '{{WRAPPER}} fieldset > input:focus' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
538
+ '{{WRAPPER}} fieldset > textarea:focus' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
539
+ ],
540
+ ]
541
+ );
542
+
543
+ $this->end_controls_tab();
544
+
545
+ $this->end_controls_tabs();
546
+
547
+ $this->end_controls_section();
548
+
549
+ $this->start_controls_section(
550
+ 'section_button_style',
551
+ [
552
+ 'label' => __( 'Button', 'elementor-addon-widgets' ),
553
+ 'tab' => Controls_Manager::TAB_STYLE,
554
+ ]
555
+ );
556
+
557
+ $this->start_controls_tabs( 'tabs_button_style' );
558
+
559
+ $this->start_controls_tab(
560
+ 'tab_button_normal',
561
+ [
562
+ 'label' => __( 'Normal', 'elementor-addon-widgets' ),
563
+ ]
564
+ );
565
+
566
+ $this->add_control(
567
+ 'button_background_color',
568
+ [
569
+ 'label' => __( 'Background Color', 'elementor-addon-widgets' ),
570
+ 'type' => Controls_Manager::COLOR,
571
+ 'scheme' => [
572
+ 'type' => Scheme_Color::get_type(),
573
+ 'value' => Scheme_Color::COLOR_4,
574
+ ],
575
+ 'selectors' => [
576
+ '{{WRAPPER}} fieldset > button' => 'background-color: {{VALUE}};',
577
+ ],
578
+ ]
579
+ );
580
+
581
+ $this->add_control(
582
+ 'button_text_color',
583
+ [
584
+ 'label' => __( 'Text Color', 'elementor-addon-widgets' ),
585
+ 'type' => Controls_Manager::COLOR,
586
+ 'default' => '',
587
+ 'selectors' => [
588
+ '{{WRAPPER}} fieldset > button' => 'color: {{VALUE}};',
589
+ ],
590
+ ]
591
+ );
592
+
593
+ $this->add_group_control(
594
+ Group_Control_Typography::get_type(),
595
+ [
596
+ 'name' => 'button_typography',
597
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_4,
598
+ 'selector' => '{{WRAPPER}} fieldset > button',
599
+ ]
600
+ );
601
+
602
+ $this->add_group_control(
603
+ Group_Control_Border::get_type(), [
604
+ 'name' => 'button_border',
605
+ 'placeholder' => '1px',
606
+ 'default' => '1px',
607
+ 'selector' => '{{WRAPPER}} fieldset > button',
608
+ 'separator' => 'before',
609
+ ]
610
+ );
611
+
612
+ $this->add_control(
613
+ 'button_border_radius',
614
+ [
615
+ 'label' => __( 'Border Radius', 'elementor-addon-widgets' ),
616
+ 'type' => Controls_Manager::DIMENSIONS,
617
+ 'size_units' => [ 'px', '%' ],
618
+ 'selectors' => [
619
+ '{{WRAPPER}} fieldset > button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
620
+ ],
621
+ ]
622
+ );
623
+
624
+ $this->add_control(
625
+ 'button_text_padding',
626
+ [
627
+ 'label' => __( 'Text Padding', 'elementor-addon-widgets' ),
628
+ 'type' => Controls_Manager::DIMENSIONS,
629
+ 'size_units' => [ 'px', 'em', '%' ],
630
+ 'selectors' => [
631
+ '{{WRAPPER}} fieldset > button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
632
+ ],
633
+ ]
634
+ );
635
+
636
+ $this->end_controls_tab();
637
+
638
+ $this->start_controls_tab(
639
+ 'tab_button_hover',
640
+ [
641
+ 'label' => __( 'Hover', 'elementor-addon-widgets' ),
642
+ ]
643
+ );
644
+
645
+ $this->add_control(
646
+ 'button_background_hover_color',
647
+ [
648
+ 'label' => __( 'Background Color', 'elementor-addon-widgets' ),
649
+ 'type' => Controls_Manager::COLOR,
650
+ 'selectors' => [
651
+ '{{WRAPPER}} fieldset > button:hover' => 'background-color: {{VALUE}};',
652
+ ],
653
+ ]
654
+ );
655
+
656
+ $this->add_control(
657
+ 'button_hover_color',
658
+ [
659
+ 'label' => __( 'Text Color', 'elementor-addon-widgets' ),
660
+ 'type' => Controls_Manager::COLOR,
661
+ 'selectors' => [
662
+ '{{WRAPPER}} fieldset > button:hover' => 'color: {{VALUE}};',
663
+ ],
664
+ ]
665
+ );
666
+
667
+ $this->add_control(
668
+ 'button_hover_border_color',
669
+ [
670
+ 'label' => __( 'Border Color', 'elementor-addon-widgets' ),
671
+ 'type' => Controls_Manager::COLOR,
672
+ 'selectors' => [
673
+ '{{WRAPPER}} fieldset > button:hover' => 'border-color: {{VALUE}};',
674
+ ],
675
+ 'condition' => [
676
+ 'button_border_border!' => '',
677
+ ],
678
+ ]
679
+ );
680
+
681
+ $this->end_controls_tab();
682
+
683
+ $this->end_controls_tabs();
684
+
685
+ $this->end_controls_section();
686
+ }
687
+ //End style section
688
  protected function _register_fields_controls() {
689
 
690
  $this->start_controls_section(
715
  $repeater->add_control(
716
  'requirement',
717
  array(
718
+ 'label' => __( 'Required', 'elementor-addon-widgets' ),
719
+ 'type' => \Elementor\Controls_Manager::SWITCHER,
720
+ 'return_value' => 'required',
721
+ 'default' => '',
 
 
 
722
  )
723
  );
724
 
751
  )
752
  );
753
 
754
+ $repeater->add_responsive_control(
755
+ 'field_width',
756
+ [
757
+ 'label' => __( 'Field Width', 'elementor-addon-widgets' ),
758
+ 'type' => Controls_Manager::SELECT,
759
+ 'options' => [
760
+ '100' => '100%',
761
+ '75' => '75%',
762
+ '66' => '66%',
763
+ '50' => '50%',
764
+ '33' => '33%',
765
+ '25' => '25%',
766
+ ],
767
+ 'default' => '100',
768
+ ]
769
+ );
770
+
771
  $fields = $this->forms_config['fields'];
772
 
773
  $default_fields = array();
779
  'label' => $field['label'],
780
  'requirement' => $field['require'],
781
  'placeholder' => isset( $field['placeholder'] ) ? $field['placeholder'] : $field['label'],
782
+ 'field_width' => '100',
783
  );
784
  }
785
 
840
  }
841
 
842
  $this->render_form_header( $form_id );
 
843
  foreach ( $fields as $index => $field ) {
844
  $this->render_form_field( $field );
845
  }
932
 
933
  $field_name = 'data[' . $form_id . '][' . $key . ']';
934
 
935
+ $this->add_render_attribute( 'fieldset' . $field['_id'], 'class', 'content-form-field-' . $field['type'] );
936
+ $this->add_render_attribute( 'fieldset' . $field['_id'], 'class', 'elementor-column elementor-col-' . $field['field_width'] );
937
+ $this->add_inline_editing_attributes( $item_index . '_label', 'none' );
938
+ ?>
939
+
940
+
941
+ <fieldset <?php $this->print_render_attribute_string( 'fieldset' . $field['_id'] ); ?>>
942
 
943
  <label for="<?php echo $field_name ?>"
944
  <?php echo $this->get_render_attribute_string( 'label' . $item_index ); ?>>
945
+ <?php echo $field['label'];
946
+ if ($field['requirement']==='required'){
947
+ echo '<span class="required-mark"> *</span>';
948
+ }
949
+ ?>
950
  </label>
951
 
952
  <?php
956
  <?php echo $disabled; ?>
957
  <?php echo $required; ?>
958
  placeholder="<?php echo esc_attr ( $placeholder ); ?>"
959
+ cols="30" rows="5">
960
+ </textarea>
961
  <?php break;
962
  case 'password': ?>
963
  <input type="password" name="<?php echo $field_name ?>" id="<?php echo $field_name ?>"
vendor/codeinwp/themeisle-content-forms/composer.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "codeinwp/themeisle-content-forms",
3
- "version": "1.0.3",
4
  "description": "ThemeIsle Content Forms ",
5
  "keywords": [
6
  "wordpress"
@@ -22,4 +22,4 @@
22
  "support": {
23
  "issues": "https://github.com/Codeinwp/themeisle-content-forms/issues"
24
  }
25
- }
1
  {
2
  "name": "codeinwp/themeisle-content-forms",
3
+ "version": "1.0.5",
4
  "description": "ThemeIsle Content Forms ",
5
  "keywords": [
6
  "wordpress"
22
  "support": {
23
  "issues": "https://github.com/Codeinwp/themeisle-content-forms/issues"
24
  }
25
+ }
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit857789efd9de014907eb776c76d26a74
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit857789efd9de014907eb776c76d26a74
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit857789efd9de014907eb776c76d26a74', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit857789efd9de014907eb776c76d26a74', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit857789efd9de014907eb776c76d26a74
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequire857789efd9de014907eb776c76d26a74($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequire857789efd9de014907eb776c76d26a74($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit6bef6e80fe72ca94ee4c3d3fe9758798
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit6bef6e80fe72ca94ee4c3d3fe9758798', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit6bef6e80fe72ca94ee4c3d3fe9758798', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequire6bef6e80fe72ca94ee4c3d3fe9758798($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequire6bef6e80fe72ca94ee4c3d3fe9758798($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
vendor/composer/installed.json CHANGED
@@ -42,15 +42,15 @@
42
  "source": {
43
  "type": "git",
44
  "url": "https://github.com/Codeinwp/themeisle-content-forms.git",
45
- "reference": "c8467927295b3e63f94cae2b19eac37b98dba87e"
46
  },
47
  "dist": {
48
  "type": "zip",
49
- "url": "https://api.github.com/repos/Codeinwp/themeisle-content-forms/zipball/c8467927295b3e63f94cae2b19eac37b98dba87e",
50
- "reference": "c8467927295b3e63f94cae2b19eac37b98dba87e",
51
  "shasum": ""
52
  },
53
- "time": "2018-06-28 10:49:56",
54
  "type": "library",
55
  "installation-source": "dist",
56
  "autoload": {
42
  "source": {
43
  "type": "git",
44
  "url": "https://github.com/Codeinwp/themeisle-content-forms.git",
45
+ "reference": "e9661407312dd9d6010b66337d46098215327624"
46
  },
47
  "dist": {
48
  "type": "zip",
49
+ "url": "https://api.github.com/repos/Codeinwp/themeisle-content-forms/zipball/e9661407312dd9d6010b66337d46098215327624",
50
+ "reference": "e9661407312dd9d6010b66337d46098215327624",
51
  "shasum": ""
52
  },
53
+ "time": "2018-07-11 11:33:20",
54
  "type": "library",
55
  "installation-source": "dist",
56
  "autoload": {