Contact Form 7 Style - Version 2.2.1

Version Description

  • Fixed textarea field style issue
  • New feature - textarea field additional options
Download this release

Release Info

Developer ionut.iclanzan
Plugin Icon 128x128 Contact Form 7 Style
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

Files changed (4) hide show
  1. cf7-style-meta-box.php +46 -8
  2. cf7-style.php +5 -5
  3. css/frontend.css +1 -2
  4. readme.txt +9 -7
cf7-style-meta-box.php CHANGED
@@ -101,22 +101,56 @@ function cf7_style_general_settings_array(){
101
  "title" => "Ex 1: 25px 50px 75px 100px; top padding is 25px right padding is 50px bottom padding is 75px left padding is 100px Ex 2: 25px 50px 75px; top padding is 25px right and left paddings are 50px bottom padding is 75px Ex 3: 25px 50px; top and bottom paddings are 25px right and left paddings are 50px Ex 4: 25px; all four paddings are 25px "
102
  ),array(
103
  "type" => "text",
104
- "label" => "Input margin",
105
  "description" => "hover here for example",
106
  "title" => "Ex 1: 25px 50px 75px 100px; top margin is 25px right margin is 50px bottom margin is 75px left margin is 100px Ex 2: 25px 50px 75px; top margin is 25px right and left margin are 50px bottom margin is 75px Ex 3: 25px 50px; top and bottom margin are 25px right and left margin are 50px Ex 4: 25px; all four margin are 25px"
 
 
 
 
107
  ),array(
108
  "type" => "number",
109
- "label" => "Textarea height",
110
  "description" => "Textarea height in pixels"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  ),array(
112
  "type" => "selectbox",
113
- "label" => "Label font style",
114
- "value" => array( "normal", "italic", "oblique" ),
115
  "description" => "Choose from the following font styles"
116
  ),array(
117
  "type" => "selectbox",
118
- "label" => "Label font weight",
119
- "value" => array( "normal", "bold", "bolder", "lighter", "initial", "inherit" ), // ???
120
  "description" => "Choose from the following label font weights"
121
  ),array(
122
  "type" => "number",
@@ -129,7 +163,7 @@ function cf7_style_general_settings_array(){
129
  )/*,array(
130
  "type" => "selectbox",
131
  "label" => "Label Fonts",
132
- "value" => array( "none", "solid", "dotted","double", "groove", "ridge", "inset", "outset" ), // ???
133
  "description" => "Choose from the following Google fonts"
134
  )*/
135
  ),
@@ -204,7 +238,9 @@ function cf7_style_render_settings( $type, $label, $options, $value, $descriptio
204
  </table>
205
  </label>
206
  </div><!-- /.element -->
 
207
  <?php
 
208
  }
209
  /**
210
  * Calls the class the meta box. Used for selecting forms for each style.
@@ -283,7 +319,9 @@ class cf7_style_meta_boxes {
283
  <h3><?php echo __( str_replace( "_", " ", $key ).' for this custom style.', "cf7style_text_domain" ); ?></h3>
284
  <?php
285
  foreach( $settings as $setting ){
286
- $current_val = ( !empty( $setting_array ) ) ? $setting_array[ strtolower( str_replace( " ", "-", $setting["label"] ) ) ] : "";
 
 
287
  $current_option = ( $setting["type"] == "selectbox" ) ? $setting["value"] : "";
288
  $current_title = ( isset( $setting["title"] ) ) ? $setting["title"] : "";
289
  cf7_style_render_settings( $setting["type"], $setting["label"], $current_option, $current_val, $setting["description"], $current_title );
101
  "title" => "Ex 1: 25px 50px 75px 100px; top padding is 25px right padding is 50px bottom padding is 75px left padding is 100px Ex 2: 25px 50px 75px; top padding is 25px right and left paddings are 50px bottom padding is 75px Ex 3: 25px 50px; top and bottom paddings are 25px right and left paddings are 50px Ex 4: 25px; all four paddings are 25px "
102
  ),array(
103
  "type" => "text",
104
+ "label" => "Input margin",
105
  "description" => "hover here for example",
106
  "title" => "Ex 1: 25px 50px 75px 100px; top margin is 25px right margin is 50px bottom margin is 75px left margin is 100px Ex 2: 25px 50px 75px; top margin is 25px right and left margin are 50px bottom margin is 75px Ex 3: 25px 50px; top and bottom margin are 25px right and left margin are 50px Ex 4: 25px; all four margin are 25px"
107
+ ),array(
108
+ "type" => "color-selector",
109
+ "label" => "Textarea background color",
110
+ "description" => "Textarea background color"
111
  ),array(
112
  "type" => "number",
113
+ "label" => "Textarea height",
114
  "description" => "Textarea height in pixels"
115
+ ),array(
116
+ "type" => "number",
117
+ "label" => "Textarea width",
118
+ "description" => "Textarea width in pixels"
119
+ ),array(
120
+ "type" => "number",
121
+ "label" => "Textarea border-size",
122
+ "description" => "Textarea border width pixels"
123
+ ),array(
124
+ "type" => "color-selector",
125
+ "label" => "Textarea border color",
126
+ "description" => "Textarea border color"
127
+ ),array(
128
+ "type" => "selectbox",
129
+ "label" => "Textarea border style",
130
+ "value" => array( "none", "solid", "dotted","double", "groove", "ridge", "inset", "outset" ),
131
+ "description" => "Textarea border style"
132
+ ),array(
133
+ "type" => "number",
134
+ "label" => "Textarea border radius",
135
+ "description" => "Textarea border radius"
136
+ ),array(
137
+ "type" => "number",
138
+ "label" => "Textarea font-size",
139
+ "description" => "Textarea font size"
140
+ ),array(
141
+ "type" => "selectbox",
142
+ "label" => "Textarea font-style",
143
+ "value" => array( "normal", "bold", "bolder", "lighter", "initial", "inherit" ),
144
+ "description" => "Textarea font style"
145
  ),array(
146
  "type" => "selectbox",
147
+ "label" => "Label font style",
148
+ "value" => array( "normal", "italic", "oblique" ),
149
  "description" => "Choose from the following font styles"
150
  ),array(
151
  "type" => "selectbox",
152
+ "label" => "Label font weight",
153
+ "value" => array( "normal", "bold", "bolder", "lighter", "initial", "inherit" ),
154
  "description" => "Choose from the following label font weights"
155
  ),array(
156
  "type" => "number",
163
  )/*,array(
164
  "type" => "selectbox",
165
  "label" => "Label Fonts",
166
+ "value" => array( "none", "solid", "dotted","double", "groove", "ridge", "inset", "outset" ),
167
  "description" => "Choose from the following Google fonts"
168
  )*/
169
  ),
238
  </table>
239
  </label>
240
  </div><!-- /.element -->
241
+
242
  <?php
243
+
244
  }
245
  /**
246
  * Calls the class the meta box. Used for selecting forms for each style.
319
  <h3><?php echo __( str_replace( "_", " ", $key ).' for this custom style.', "cf7style_text_domain" ); ?></h3>
320
  <?php
321
  foreach( $settings as $setting ){
322
+ //this will be improved with: if ( isset( $setting_array[$setting["label"]] ) ) { - for later reference !!!
323
+ $current_val = ( !empty( $setting_array ) ) ? $setting_array[ strtolower( str_replace( " ", "-", $setting["label"] ) ) ] : "";
324
+
325
  $current_option = ( $setting["type"] == "selectbox" ) ? $setting["value"] : "";
326
  $current_title = ( isset( $setting["title"] ) ) ? $setting["title"] : "";
327
  cf7_style_render_settings( $setting["type"], $setting["label"], $current_option, $current_val, $setting["description"], $current_title );
cf7-style.php CHANGED
@@ -3,9 +3,9 @@
3
  Plugin Name: Contact Form 7 Style
4
  Plugin URI: http://wordpress.reea.net/contact-form-7-style/
5
  Description: Contact form 7 Style
6
- Version: 2.2
7
- Author: mlehelsz, dorumarginean, Johnny, MirceaR
8
- Author URI: https://contactform7style.wordpress.com/
9
  License: GPL2
10
  */
11
 
@@ -289,8 +289,8 @@ function cf7style_load_elements(){
289
  'parent_item_colon' => __( 'Parent Style:', 'cf7_style' ),
290
  'all_items' => __( 'All Styles', 'cf7_style' ),
291
  'view_item' => __( 'View Style', 'cf7_style' ),
292
- 'add_new_item' => __( 'Add Custom Style', 'cf7_style' ),
293
- 'add_new' => __( 'Add Custom Style', 'cf7_style' ),
294
  'edit_item' => __( 'Edit Style', 'cf7_style' ),
295
  'update_item' => __( 'Update Style', 'cf7_style' ),
296
  'search_items' => __( 'Search Style', 'cf7_style' ),
3
  Plugin Name: Contact Form 7 Style
4
  Plugin URI: http://wordpress.reea.net/contact-form-7-style/
5
  Description: Contact form 7 Style
6
+ Version: 2.2.1
7
+ Author: Reea
8
+ Author URI: http://www.reea.net/
9
  License: GPL2
10
  */
11
 
289
  'parent_item_colon' => __( 'Parent Style:', 'cf7_style' ),
290
  'all_items' => __( 'All Styles', 'cf7_style' ),
291
  'view_item' => __( 'View Style', 'cf7_style' ),
292
+ 'add_new_item' => __( 'Add New', 'cf7_style' ),
293
+ 'add_new' => __( 'Add New', 'cf7_style' ),
294
  'edit_item' => __( 'Edit Style', 'cf7_style' ),
295
  'update_item' => __( 'Update Style', 'cf7_style' ),
296
  'search_items' => __( 'Search Style', 'cf7_style' ),
css/frontend.css CHANGED
@@ -38,8 +38,7 @@
38
  }
39
  .cf7-style input:focus,
40
  .cf7-style textarea:focus,
41
- .cf7-style input[ type="submit" ]:hover,
42
- .cf7-style textarea {
43
  background-color: inherit;
44
  }
45
 
38
  }
39
  .cf7-style input:focus,
40
  .cf7-style textarea:focus,
41
+ .cf7-style input[ type="submit" ]:hover {
 
42
  background-color: inherit;
43
  }
44
 
readme.txt CHANGED
@@ -42,11 +42,16 @@ You will find 'Contact Style' menu in your WordPress admin panel.
42
 
43
  == Changelog ==
44
 
 
 
 
 
 
45
  = 2.2 =
46
  * Fixed Chrome preview problem
47
  * Removed unnecessary elements from nav menus
48
  * Fixed custom style no title problem
49
- * [Fixed](https://wordpress.org/support/topic/custom-style-is-not-working?replies=6) css class generator
50
  * New feature - Added quick edit
51
  * New feature - Added new simple pattern style category with Twenty Fifteen Pattern
52
 
@@ -89,9 +94,6 @@ You will find 'Contact Style' menu in your WordPress admin panel.
89
  * First plugin version.
90
 
91
  == Upgrade Notice ==
92
- = Contact Form 7 Style Version 2.2 =
93
- * Fixed Chrome preview problem
94
- * Removed unnecessary elements from nav menus
95
- * Fixed custom style no title problem
96
- * NEW - Added quick edit
97
- * NEW - Added new simple pattern style category with Twenty Fifteen Pattern
42
 
43
  == Changelog ==
44
 
45
+ = 2.2.1 =
46
+ * [Fixed](https://wordpress.org/support/topic/field-style-issue) textarea field style issue
47
+ * New feature - textarea field additional options
48
+
49
+
50
  = 2.2 =
51
  * Fixed Chrome preview problem
52
  * Removed unnecessary elements from nav menus
53
  * Fixed custom style no title problem
54
+ * [Fixed](https://wordpress.org/support/topic/custom-style-is-not-working) css class generator
55
  * New feature - Added quick edit
56
  * New feature - Added new simple pattern style category with Twenty Fifteen Pattern
57
 
94
  * First plugin version.
95
 
96
  == Upgrade Notice ==
97
+ = Contact Form 7 Style Version 2.2.1 =
98
+ * [Fixed](https://wordpress.org/support/topic/field-style-issue) textarea field style issue
99
+ * New feature - textarea field additional options