Version Description
- Minor JQuery fixes for older wordpress version
Download this release
Release Info
Developer | mlehelsz |
Plugin | Contact Form 7 Style |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.1.1
- admin/css/admin.css +9 -0
- admin/js/admin.js +6 -6
- cf7-style.php +1 -1
- readme.txt +5 -2
admin/css/admin.css
CHANGED
@@ -21,6 +21,11 @@
|
|
21 |
}
|
22 |
.post-type-cf7_style .thumb-preview img {
|
23 |
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
.post-type-cf7_style .previewed-img {
|
26 |
opacity: 0;
|
@@ -40,6 +45,10 @@
|
|
40 |
-o-transition: all 300ms ease-in-out;
|
41 |
transition: all 300ms ease-in-out;
|
42 |
}
|
|
|
|
|
|
|
|
|
43 |
.post-type-cf7_style select[ name='cf7_style_font_selector' ] {
|
44 |
float: left;
|
45 |
margin-right: 10px;
|
21 |
}
|
22 |
.post-type-cf7_style .thumb-preview img {
|
23 |
width: 100%;
|
24 |
+
border: 1px solid #e1e1e1;
|
25 |
+
padding: 5px;
|
26 |
+
}
|
27 |
+
.type-cf7_style .taxonomy-style_category {
|
28 |
+
text-transform: capitalize;
|
29 |
}
|
30 |
.post-type-cf7_style .previewed-img {
|
31 |
opacity: 0;
|
45 |
-o-transition: all 300ms ease-in-out;
|
46 |
transition: all 300ms ease-in-out;
|
47 |
}
|
48 |
+
.post-type-cf7_style .previewed-img img {
|
49 |
+
padding: 0;
|
50 |
+
border: none;
|
51 |
+
}
|
52 |
.post-type-cf7_style select[ name='cf7_style_font_selector' ] {
|
53 |
float: left;
|
54 |
margin-right: 10px;
|
admin/js/admin.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
/*
|
2 |
jQuery functions for the Admin area
|
3 |
*/
|
4 |
-
function changeFont( value ) {
|
5 |
$(".google-fontos").remove();
|
6 |
-
if( "none" != value ) {
|
7 |
-
$("head").append('<link class="google-fontos" rel="stylesheet" href="http://fonts.googleapis.com/css?family='+value+':100,200,300,400,500,600,700,800,900&subset=latin,latin-ext,cyrillic,cyrillic-ext,greek-ext,greek,vietnamese" />');
|
8 |
-
$(".cf7-style.preview-zone p").css("font-family", "'"+value+"', sans-serif" );
|
9 |
}
|
10 |
}
|
11 |
jQuery(document).ready( function( $ ) {
|
@@ -18,9 +18,9 @@ jQuery(document).ready( function( $ ) {
|
|
18 |
$(".cf7style_body_select_all input").prop('checked', ( $(this).is(":checked") ) ? true : false );
|
19 |
});
|
20 |
|
21 |
-
changeFont( selectVar.val() );
|
22 |
selectVar.on( "change", function(){
|
23 |
-
changeFont( $( this ).val() );
|
24 |
});
|
25 |
|
26 |
});
|
1 |
/*
|
2 |
jQuery functions for the Admin area
|
3 |
*/
|
4 |
+
function changeFont( value, $ ) {
|
5 |
$(".google-fontos").remove();
|
6 |
+
if( "none" != value && "undefined" != typeof value ) {
|
7 |
+
$("head").append('<link class="google-fontos" rel="stylesheet" href="http://fonts.googleapis.com/css?family=' + value + ':100,200,300,400,500,600,700,800,900&subset=latin,latin-ext,cyrillic,cyrillic-ext,greek-ext,greek,vietnamese" />');
|
8 |
+
$(".cf7-style.preview-zone p").css("font-family", "'" + value + "', sans-serif" );
|
9 |
}
|
10 |
}
|
11 |
jQuery(document).ready( function( $ ) {
|
18 |
$(".cf7style_body_select_all input").prop('checked', ( $(this).is(":checked") ) ? true : false );
|
19 |
});
|
20 |
|
21 |
+
changeFont( selectVar.val(), $ );
|
22 |
selectVar.on( "change", function(){
|
23 |
+
changeFont( $( this ).val(), $ );
|
24 |
});
|
25 |
|
26 |
});
|
cf7-style.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.1
|
7 |
Author: REEA
|
8 |
Author URI: http://www.reea.net/
|
9 |
License: GPL2
|
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.1.1
|
7 |
Author: REEA
|
8 |
Author URI: http://www.reea.net/
|
9 |
License: GPL2
|
readme.txt
CHANGED
@@ -40,6 +40,9 @@ You will find 'Contact Style' menu in your WordPress admin panel.
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 2.1 =
|
44 |
* New feature - Google fonts preview when edit the style
|
45 |
* New feature - List all styles thumbnail preview for predefined templates
|
@@ -75,5 +78,5 @@ You will find 'Contact Style' menu in your WordPress admin panel.
|
|
75 |
* First plugin version.
|
76 |
|
77 |
== Upgrade Notice ==
|
78 |
-
= Contact Form 7 Style Version 2.
|
79 |
-
*
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 2.1.1 =
|
44 |
+
* Minor JQuery fixes for older wordpress version
|
45 |
+
|
46 |
= 2.1 =
|
47 |
* New feature - Google fonts preview when edit the style
|
48 |
* New feature - List all styles thumbnail preview for predefined templates
|
78 |
* First plugin version.
|
79 |
|
80 |
== Upgrade Notice ==
|
81 |
+
= Contact Form 7 Style Version 2.1.1 =
|
82 |
+
* Minor JQuery fixes for older wordpress version
|