Version Description
- Fixed Chrome preview problem
- Removed unnecessary elements from nav menus
- Fixed custom style no title problem
- Fixed css class generator
- New feature - Added quick edit
- New feature - Added new simple pattern style category with Twenty Fifteen Pattern
Download this release
Release Info
Developer | ionut.iclanzan |
Plugin | Contact Form 7 Style |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.2
- admin/css/admin.css +6 -2
- admin/images/cf7_simple_twentyfifteen_pattern.jpg +0 -0
- admin/js/quick.edit.js +70 -0
- cf7-style-meta-box.php +113 -8
- cf7-style.php +22 -11
- css/frontend.css +74 -2
- readme.txt +23 -8
- screenshot-1.jpg +0 -0
admin/css/admin.css
CHANGED
@@ -2,12 +2,16 @@
|
|
2 |
.menu-icon-cf7_style .dashicons-twitter {
|
3 |
position: relative;
|
4 |
}
|
5 |
-
.post-type-cf7_style .wp-list-table
|
6 |
position: relative;
|
|
|
7 |
}
|
8 |
.post-type-cf7_style #preview-style {
|
9 |
width: 200px;
|
10 |
}
|
|
|
|
|
|
|
11 |
.post-type-cf7_style .preview-style {
|
12 |
text-align: center;
|
13 |
}
|
@@ -33,7 +37,7 @@
|
|
33 |
position: absolute;
|
34 |
z-index: 100;
|
35 |
top: -70px;
|
36 |
-
left:
|
37 |
width: 202px;
|
38 |
height: auto;
|
39 |
border: 1px solid #e1e1e1;
|
2 |
.menu-icon-cf7_style .dashicons-twitter {
|
3 |
position: relative;
|
4 |
}
|
5 |
+
.post-type-cf7_style .wp-list-table td {
|
6 |
position: relative;
|
7 |
+
overflow: visible;
|
8 |
}
|
9 |
.post-type-cf7_style #preview-style {
|
10 |
width: 200px;
|
11 |
}
|
12 |
+
#cf7_style_meta_box_image img {
|
13 |
+
max-width: 100%;
|
14 |
+
}
|
15 |
.post-type-cf7_style .preview-style {
|
16 |
text-align: center;
|
17 |
}
|
37 |
position: absolute;
|
38 |
z-index: 100;
|
39 |
top: -70px;
|
40 |
+
left: 0;
|
41 |
width: 202px;
|
42 |
height: auto;
|
43 |
border: 1px solid #e1e1e1;
|
admin/images/cf7_simple_twentyfifteen_pattern.jpg
ADDED
Binary file
|
admin/js/quick.edit.js
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
( function( $ ) {
|
2 |
+
|
3 |
+
// we create a copy of the WP inline edit post function
|
4 |
+
var $wp_inline_edit = inlineEditPost.edit;
|
5 |
+
|
6 |
+
// and then we overwrite the function with our own code
|
7 |
+
inlineEditPost.edit = function( id ) {
|
8 |
+
|
9 |
+
// "call" the original WP edit function
|
10 |
+
$wp_inline_edit.apply( this, arguments );
|
11 |
+
|
12 |
+
// get the post ID
|
13 |
+
var $post_id = 0;
|
14 |
+
if ( typeof( id ) == 'object' )
|
15 |
+
$post_id = parseInt( this.getId( id ) );
|
16 |
+
|
17 |
+
if ( $post_id > 0 ) {
|
18 |
+
//console.log( "Post id: " + $post_id );
|
19 |
+
|
20 |
+
var forms = [];
|
21 |
+
var unchecked = [];
|
22 |
+
checkbox = jQuery( '.data input[type="checkbox"]' );
|
23 |
+
|
24 |
+
jQuery.each( checkbox, function( index, value ) {
|
25 |
+
forms.push( $( this ).attr( 'data-id' ) );
|
26 |
+
} );
|
27 |
+
|
28 |
+
var uniqueNames = [];
|
29 |
+
$.each( forms, function( i, el ) {
|
30 |
+
if( $.inArray( el, uniqueNames ) === -1 ) uniqueNames.push( el );
|
31 |
+
} );
|
32 |
+
|
33 |
+
jQuery.each( uniqueNames, function( index, value ) {
|
34 |
+
var form = $("#form\\[" + value + "\\]")
|
35 |
+
|
36 |
+
if( form.attr( 'data-style' ) == $post_id ) {
|
37 |
+
form.prop( 'checked', true );
|
38 |
+
form.parent().parent().next().hide();
|
39 |
+
} else {
|
40 |
+
form.prop( 'checked', false );
|
41 |
+
form.parent().parent().next().show();
|
42 |
+
}
|
43 |
+
|
44 |
+
// reset hidden fields
|
45 |
+
$( '.cf7-quick-edit .hidden-fields' ).html( '' );
|
46 |
+
|
47 |
+
if( form.is( ":checked" ) ) {
|
48 |
+
|
49 |
+
unchecked.push( form.attr( 'data-id' ) );
|
50 |
+
|
51 |
+
form.on( "click", function() {
|
52 |
+
if( ! form.prop( "checked" ) ) {
|
53 |
+
$( '.cf7-quick-edit .hidden-fields' ).append( '<input type="hidden" name="remove-' + form.attr( 'id' ) + '" id="remove-' + form.attr( 'id' ) + '" value="on">' );
|
54 |
+
} else {
|
55 |
+
$("#remove-form\\[" + form.attr( 'data-id' ) + "\\]").remove();
|
56 |
+
}
|
57 |
+
} );
|
58 |
+
}
|
59 |
+
|
60 |
+
} );
|
61 |
+
}
|
62 |
+
|
63 |
+
};
|
64 |
+
|
65 |
+
$( ".inline-edit-cf7_style .button-primary" ).on( "click", function() {
|
66 |
+
var url = window.location.href;
|
67 |
+
$( ".cf7-quick-edit" ).load( url + " .cf7-quick-edit >" );
|
68 |
+
} );
|
69 |
+
|
70 |
+
} )( jQuery );
|
cf7-style-meta-box.php
CHANGED
@@ -589,9 +589,10 @@ function enque_selected_font() {
|
|
589 |
if ( $cf7s_id ) {
|
590 |
$fontid = get_post_meta( $cf7s_id, 'cf7_style_font', true );
|
591 |
$googlefont = preg_replace("/ /","+",$fontid);
|
592 |
-
|
593 |
-
|
594 |
-
|
|
|
595 |
}
|
596 |
}
|
597 |
}
|
@@ -613,19 +614,123 @@ function return_font_name( $postid ) {
|
|
613 |
/*
|
614 |
* hides change permalink and view buttons on editing screen
|
615 |
*/
|
|
|
616 |
add_action('admin_head', 'hide_edit_permalinks_on_style_customizer');
|
617 |
function hide_edit_permalinks_on_style_customizer() {
|
618 |
$currentScreen = get_current_screen();
|
619 |
-
if ( $currentScreen->post_type == 'cf7_style' ) {
|
|
|
620 |
<style type="text/css">
|
621 |
-
<!--
|
622 |
#titlediv {
|
623 |
margin-bottom: 10px;
|
624 |
}
|
625 |
-
#edit-slug-box, .
|
626 |
display: none;
|
627 |
}
|
628 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
629 |
</style>
|
630 |
<?php }
|
631 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
if ( $cf7s_id ) {
|
590 |
$fontid = get_post_meta( $cf7s_id, 'cf7_style_font', true );
|
591 |
$googlefont = preg_replace("/ /","+",$fontid);
|
592 |
+
if( ! empty( $googlefont ) && "none" !== $googlefont ) {
|
593 |
+
wp_register_style('googlefont-cf7style', 'http://fonts.googleapis.com/css?family=' . $googlefont . ':100,200,300,400,500,600,700,800,900&subset=latin,latin-ext,cyrillic,cyrillic-ext,greek-ext,greek,vietnamese', array(), false, 'all');
|
594 |
+
wp_enqueue_style('googlefont-cf7style');
|
595 |
+
}
|
596 |
}
|
597 |
}
|
598 |
}
|
614 |
/*
|
615 |
* hides change permalink and view buttons on editing screen
|
616 |
*/
|
617 |
+
|
618 |
add_action('admin_head', 'hide_edit_permalinks_on_style_customizer');
|
619 |
function hide_edit_permalinks_on_style_customizer() {
|
620 |
$currentScreen = get_current_screen();
|
621 |
+
if ( $currentScreen->post_type == 'cf7_style' ) {
|
622 |
+
?>
|
623 |
<style type="text/css">
|
|
|
624 |
#titlediv {
|
625 |
margin-bottom: 10px;
|
626 |
}
|
627 |
+
#edit-slug-box, .inline-edit-col-left, .inline-edit-col-right, .view{
|
628 |
display: none;
|
629 |
}
|
630 |
+
.inline-edit-col-left.cf7-quick-edit {
|
631 |
+
display: block;
|
632 |
+
}
|
633 |
+
.inline-edit-cf7_style {
|
634 |
+
background: #eaeaea;
|
635 |
+
padding: 20px 0;
|
636 |
+
}
|
637 |
</style>
|
638 |
<?php }
|
639 |
+
}
|
640 |
+
|
641 |
+
|
642 |
+
/**
|
643 |
+
* Quick edit
|
644 |
+
*/
|
645 |
+
|
646 |
+
add_action( 'quick_edit_custom_box', 'manage_wp_posts_qe_bulk_quick_edit_custom_box', 10, 2 );
|
647 |
+
function manage_wp_posts_qe_bulk_quick_edit_custom_box( $column_name, $post_type ) {
|
648 |
+
|
649 |
+
if( $post_type == 'cf7_style' && $column_name == 'preview-style' ) {
|
650 |
+
|
651 |
+
switch ( $post_type ) {
|
652 |
+
case 'cf7_style': ?>
|
653 |
+
<fieldset class="inline-edit-col-left cf7-quick-edit" style="clear:both">
|
654 |
+
<div class="hidden-fields"></div>
|
655 |
+
<h4><?php _e( "Activate this template on the following forms:", "cf7_style" ); ?></h4>
|
656 |
+
<div class="inline-edit-col">
|
657 |
+
<span class="data">
|
658 |
+
<?php
|
659 |
+
$args = array(
|
660 |
+
'post_type' => 'wpcf7_contact_form',
|
661 |
+
'post_status' => 'publish',
|
662 |
+
'posts_per_page' => -1
|
663 |
+
);
|
664 |
+
$forms = new WP_Query( $args );
|
665 |
+
|
666 |
+
if( $forms->have_posts() ) :
|
667 |
+
while( $forms->have_posts() ) : $forms->the_post();
|
668 |
+
$form_title = get_the_title();
|
669 |
+
$id = get_the_ID();
|
670 |
+
$form_id = "form-" . $id;
|
671 |
+
$form_style = get_post_meta( get_the_ID(), 'cf7_style_id', true );
|
672 |
+
|
673 |
+
echo "<p><span class='input-text-wrap'><input type='checkbox' name='form[{$id}]' id='form[{$id}]' data-id='{$id}' data-style='{$form_style}' /><label for='form[{$id}]' style='display:inline'>{$form_title}</label></span></p>";
|
674 |
+
if( ! empty( $form_style ) && $id != $form_style ) {
|
675 |
+
$template = get_the_title( $form_style );
|
676 |
+
$permalink = admin_url() . "post.php?post={$form_style}&action=edit";
|
677 |
+
echo "<span class='notice'>Notice: This form allready has a selected style. Checking this one will overwrite the <a href='{$permalink}' title='{$template}'>other one</a>.</span>";
|
678 |
+
}
|
679 |
+
endwhile;
|
680 |
+
wp_reset_postdata();
|
681 |
+
endif; ?>
|
682 |
+
</span>
|
683 |
+
</div>
|
684 |
+
</fieldset><?php
|
685 |
+
break;
|
686 |
+
}
|
687 |
+
}
|
688 |
+
}
|
689 |
+
|
690 |
+
|
691 |
+
/**
|
692 |
+
* Populate Quick Edit fields
|
693 |
+
*/
|
694 |
+
|
695 |
+
add_action( 'admin_print_scripts-edit.php', 'manage_wp_posts_be_qe_enqueue_admin_scripts' );
|
696 |
+
function manage_wp_posts_be_qe_enqueue_admin_scripts() {
|
697 |
+
// if using code as plugin
|
698 |
+
wp_enqueue_script( 'manage-wp-posts-using-bulk-quick-edit', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'admin/js/quick.edit.js', array( 'jquery', 'inline-edit-post' ), '', true );
|
699 |
+
}
|
700 |
+
|
701 |
+
|
702 |
+
/**
|
703 |
+
* Save quick edit templates
|
704 |
+
*/
|
705 |
+
|
706 |
+
add_action( 'save_post_cf7_style', 'manage_wp_posts_be_qe_save_post', 10, 2 );
|
707 |
+
function manage_wp_posts_be_qe_save_post( $post_id, $post ) {
|
708 |
+
// pointless if $_POST is empty (this happens on bulk edit)
|
709 |
+
if ( empty( $_POST ) )
|
710 |
+
return $post_id;
|
711 |
+
|
712 |
+
// verify quick edit nonce
|
713 |
+
if ( isset( $_POST[ '_inline_edit' ] ) && ! wp_verify_nonce( $_POST[ '_inline_edit' ], 'inlineeditnonce' ) )
|
714 |
+
return $post_id;
|
715 |
+
|
716 |
+
// don't save for autosave
|
717 |
+
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
|
718 |
+
return $post_id;
|
719 |
+
|
720 |
+
// dont save for revisions
|
721 |
+
if ( isset( $post->post_type ) && $post->post_type == 'revision' )
|
722 |
+
return $post_id;
|
723 |
+
|
724 |
+
if( isset( $_POST['form'] ) ) {
|
725 |
+
foreach( $_POST['form'] as $form_id => $value ) {
|
726 |
+
update_post_meta( $form_id, 'cf7_style_id', $post_id );
|
727 |
+
}
|
728 |
+
}
|
729 |
+
|
730 |
+
if( isset( $_POST['remove-form'] ) ) {
|
731 |
+
foreach( $_POST['remove-form'] as $form_id => $value ) {
|
732 |
+
update_post_meta( $form_id, 'cf7_style_id', '' );
|
733 |
+
}
|
734 |
+
}
|
735 |
+
|
736 |
+
}
|
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.
|
7 |
-
Author:
|
8 |
-
Author URI:
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
@@ -14,6 +14,11 @@ License: GPL2
|
|
14 |
*/
|
15 |
function get_predefined_cf7_style_template_data() {
|
16 |
return array (
|
|
|
|
|
|
|
|
|
|
|
17 |
array (
|
18 |
'title' => 'Christmas Classic',
|
19 |
'category' => 'christmas style',
|
@@ -80,6 +85,9 @@ function count_element_settings( $elements, $checks ){
|
|
80 |
}
|
81 |
function cf7_style_custom_css_generator(){
|
82 |
global $post;
|
|
|
|
|
|
|
83 |
$style = "<style class='cf7-style' media='screen' type='text/css'>\n";
|
84 |
$cf7s_id = get_cf7style_slug_or_id( $post, "yes" );
|
85 |
$cf7s_slug = get_cf7style_slug_or_id( $post, "no" );
|
@@ -98,7 +106,8 @@ function cf7_style_custom_css_generator(){
|
|
98 |
$second_part = ( $setting_key_part[0] != "submit" ) ? $setting_key_part[1] : "";
|
99 |
$third_part = ( !empty( $setting_key_part[2] ) ) ? ( ( $setting_key_part[0] != "submit" ) ? "-" : "" ) . $setting_key_part[2] : "";
|
100 |
$fourth_part = ( !empty( $setting_key_part[3] ) && $setting_key_part[0] == "submit" ) ? "-" . $setting_key_part[3] : "";
|
101 |
-
|
|
|
102 |
switch ( $setting_key_part[ 0 ]) {
|
103 |
case 'form':
|
104 |
$startelem = $temp;
|
@@ -138,10 +147,11 @@ function cf7_style_custom_css_generator(){
|
|
138 |
$style .= ( $startelem == $allelem || $allelem == 1 ) ? "}\n" : "";
|
139 |
}
|
140 |
}
|
141 |
-
$
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
145 |
}// end of cf7_style_custom_css_generator
|
146 |
|
147 |
//include_once( 'cf7-style-settings.php' );
|
@@ -152,7 +162,8 @@ function cf7_style_admin_scripts(){
|
|
152 |
}
|
153 |
function cf7_style_add_class( $class ){
|
154 |
global $post;
|
155 |
-
$
|
|
|
156 |
return $class;
|
157 |
}// end of cf7_style_add_class
|
158 |
/**
|
@@ -296,7 +307,7 @@ function cf7style_load_elements(){
|
|
296 |
'public' => true,
|
297 |
'show_ui' => true,
|
298 |
'show_in_menu' => true,
|
299 |
-
'show_in_nav_menus' =>
|
300 |
'show_in_admin_bar' => false,
|
301 |
'menu_icon' => "dashicons-twitter",
|
302 |
'menu_position' => 28.555555,
|
@@ -332,7 +343,7 @@ function cf7style_load_elements(){
|
|
332 |
'public' => true,
|
333 |
'show_ui' => false,
|
334 |
'show_admin_column' => true,
|
335 |
-
'show_in_nav_menus' =>
|
336 |
'show_tagcloud' => true,
|
337 |
);
|
338 |
//register tax
|
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 |
|
14 |
*/
|
15 |
function get_predefined_cf7_style_template_data() {
|
16 |
return array (
|
17 |
+
array (
|
18 |
+
'title' => 'Twenty Fifteen Pattern',
|
19 |
+
'category' => 'simple pattern style',
|
20 |
+
'image' => '/admin/images/cf7_simple_twentyfifteen_pattern.jpg'
|
21 |
+
),
|
22 |
array (
|
23 |
'title' => 'Christmas Classic',
|
24 |
'category' => 'christmas style',
|
85 |
}
|
86 |
function cf7_style_custom_css_generator(){
|
87 |
global $post;
|
88 |
+
if( empty( $post ) ) {
|
89 |
+
return false;
|
90 |
+
}
|
91 |
$style = "<style class='cf7-style' media='screen' type='text/css'>\n";
|
92 |
$cf7s_id = get_cf7style_slug_or_id( $post, "yes" );
|
93 |
$cf7s_slug = get_cf7style_slug_or_id( $post, "no" );
|
106 |
$second_part = ( $setting_key_part[0] != "submit" ) ? $setting_key_part[1] : "";
|
107 |
$third_part = ( !empty( $setting_key_part[2] ) ) ? ( ( $setting_key_part[0] != "submit" ) ? "-" : "" ) . $setting_key_part[2] : "";
|
108 |
$fourth_part = ( !empty( $setting_key_part[3] ) && $setting_key_part[0] == "submit" ) ? "-" . $setting_key_part[3] : "";
|
109 |
+
|
110 |
+
$classelem = "cf7-style." . ( ( is_numeric( $cf7s_slug ) ) ? "cf7-style-".$cf7s_slug : $cf7s_slug );
|
111 |
switch ( $setting_key_part[ 0 ]) {
|
112 |
case 'form':
|
113 |
$startelem = $temp;
|
147 |
$style .= ( $startelem == $allelem || $allelem == 1 ) ? "}\n" : "";
|
148 |
}
|
149 |
}
|
150 |
+
$font_family = return_font_name( $post->ID );
|
151 |
+
if( ! empty( $font_family ) && "none" !== $font_family ) {
|
152 |
+
$style .= '.cf7-style.' . $cf7s_slug . "{\n\t font-family: '" . $font_family . "',sans-serif;\n} ";
|
153 |
+
}
|
154 |
+
echo $style ."</style>";
|
155 |
}// end of cf7_style_custom_css_generator
|
156 |
|
157 |
//include_once( 'cf7-style-settings.php' );
|
162 |
}
|
163 |
function cf7_style_add_class( $class ){
|
164 |
global $post;
|
165 |
+
$temp_slug = get_cf7style_slug_or_id( $post, "no" );
|
166 |
+
$class .= " cf7-style ". ( ( is_numeric( $temp_slug ) ) ? "cf7-style-".$temp_slug : $temp_slug );
|
167 |
return $class;
|
168 |
}// end of cf7_style_add_class
|
169 |
/**
|
307 |
'public' => true,
|
308 |
'show_ui' => true,
|
309 |
'show_in_menu' => true,
|
310 |
+
'show_in_nav_menus' => false,
|
311 |
'show_in_admin_bar' => false,
|
312 |
'menu_icon' => "dashicons-twitter",
|
313 |
'menu_position' => 28.555555,
|
343 |
'public' => true,
|
344 |
'show_ui' => false,
|
345 |
'show_admin_column' => true,
|
346 |
+
'show_in_nav_menus' => false,
|
347 |
'show_tagcloud' => true,
|
348 |
);
|
349 |
//register tax
|
css/frontend.css
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
* 2.1 - Classic
|
12 |
* 2.2 - Red
|
13 |
* 2.3 - Simple
|
|
|
14 |
* -----------------------------------------------------------------------------
|
15 |
*/
|
16 |
|
@@ -608,7 +609,7 @@
|
|
608 |
margin-bottom: 20px;
|
609 |
color: #1b0a00;
|
610 |
position: relative;
|
611 |
-
margin:
|
612 |
|
613 |
}
|
614 |
.christmas-simple-container {
|
@@ -722,4 +723,75 @@
|
|
722 |
.christmas-classic .wpcf7-not-valid-tip{
|
723 |
width: 100%;
|
724 |
background: transparent;
|
725 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
* 2.1 - Classic
|
12 |
* 2.2 - Red
|
13 |
* 2.3 - Simple
|
14 |
+
* 3.0 - Simple Style
|
15 |
* -----------------------------------------------------------------------------
|
16 |
*/
|
17 |
|
609 |
margin-bottom: 20px;
|
610 |
color: #1b0a00;
|
611 |
position: relative;
|
612 |
+
margin: 75px 0 35px;
|
613 |
|
614 |
}
|
615 |
.christmas-simple-container {
|
723 |
.christmas-classic .wpcf7-not-valid-tip{
|
724 |
width: 100%;
|
725 |
background: transparent;
|
726 |
+
}
|
727 |
+
/*
|
728 |
+
**
|
729 |
+
* SIMPLE
|
730 |
+
*
|
731 |
+
* 3.1 - Twenty fiffteen like
|
732 |
+
* -----------------------------------------------------------------------------
|
733 |
+
*/
|
734 |
+
.twenty-fifteen-like {
|
735 |
+
padding-top: 1.6842em;
|
736 |
+
}
|
737 |
+
.twenty-fifteen-like p {
|
738 |
+
font-size: 1.6rem;
|
739 |
+
margin-bottom: 1.6842em;
|
740 |
+
color: rgba(51, 51, 51, 0.7);
|
741 |
+
display: block;
|
742 |
+
font-family: "Noto Sans",sans-serif;
|
743 |
+
font-weight: 700;
|
744 |
+
letter-spacing: 0.04em;
|
745 |
+
line-height: 1.5;
|
746 |
+
text-transform: uppercase;
|
747 |
+
}
|
748 |
+
.twenty-fifteen-like input[type="text"],
|
749 |
+
.twenty-fifteen-like input[type="email"],
|
750 |
+
.twenty-fifteen-like input[type="url"],
|
751 |
+
.twenty-fifteen-like input[type="submit"],
|
752 |
+
.twenty-fifteen-like textarea {
|
753 |
+
width: 100%;
|
754 |
+
padding: 0.5278em;
|
755 |
+
line-height: normal;
|
756 |
+
font-size: 1.9rem;
|
757 |
+
border: 1px solid rgba(51, 51, 51, 0.1);
|
758 |
+
color: rgba(51, 51, 51, 0.7);
|
759 |
+
background-color: #f7f7f7;
|
760 |
+
border-radius: 0;
|
761 |
+
margin: 0;
|
762 |
+
max-width: 100%;
|
763 |
+
vertical-align: baseline;
|
764 |
+
font-family: "Noto Serif", serif;
|
765 |
+
-webkit-box-sizing: border-box;
|
766 |
+
-moz-box-sizing: border-box;
|
767 |
+
box-sizing: border-box;
|
768 |
+
|
769 |
+
}
|
770 |
+
.twenty-fifteen-like input:focus,
|
771 |
+
.twenty-fifteen-like textarea:focus {
|
772 |
+
border: 1px solid rgba(51, 51, 51, 0.3);
|
773 |
+
color: #333;
|
774 |
+
background-color: #fff;
|
775 |
+
}
|
776 |
+
.twenty-fifteen-like button,
|
777 |
+
.twenty-fifteen-like input[type="button"],
|
778 |
+
.twenty-fifteen-like input[type="reset"],
|
779 |
+
.twenty-fifteen-like input[type="submit"] {
|
780 |
+
font-size: 1.6rem;
|
781 |
+
padding: 0.8125em 1.625em;
|
782 |
+
background-color: #333;
|
783 |
+
border: 0 none;
|
784 |
+
color: #fff;
|
785 |
+
cursor: pointer;
|
786 |
+
font-family: "Noto Sans",sans-serif;
|
787 |
+
font-weight: 700;
|
788 |
+
text-transform: uppercase;
|
789 |
+
width: 100%;
|
790 |
+
}
|
791 |
+
.twenty-fifteen-like button:hover,
|
792 |
+
.twenty-fifteen-like input[type="button"]:hover,
|
793 |
+
.twenty-fifteen-like input[type="reset"]:hover,
|
794 |
+
.twenty-fifteen-like input[type="submit"]:hover {
|
795 |
+
background-color: rgba(51, 51, 51, 0.7);
|
796 |
+
outline: 0 none;
|
797 |
+
}
|
readme.txt
CHANGED
@@ -13,15 +13,17 @@ Simple contact form 7 style addon that has predefined templates or the style can
|
|
13 |
== Description ==
|
14 |
|
15 |
This plugin is an addon for [Contact Form 7](http://wordpress.org/plugins/contact-form-7/) which needs to be installed on your wordpress blog.
|
16 |
-
Supports
|
17 |
-
|
18 |
-
|
19 |
- color styling, <BR>
|
20 |
-
-
|
|
|
21 |
- border-color, <BR>
|
22 |
-
- fields, text
|
23 |
-
- form styling, <BR>
|
24 |
- customized style can be imported / exported <BR>
|
|
|
25 |
|
26 |
|
27 |
== Installation ==
|
@@ -40,6 +42,15 @@ You will find 'Contact Style' menu in your WordPress admin panel.
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
= 2.1.1 =
|
44 |
* Minor JQuery fixes for older wordpress version
|
45 |
|
@@ -78,5 +89,9 @@ You will find 'Contact Style' menu in your WordPress admin panel.
|
|
78 |
* First plugin version.
|
79 |
|
80 |
== Upgrade Notice ==
|
81 |
-
= Contact Form 7 Style Version 2.
|
82 |
-
*
|
|
|
|
|
|
|
|
13 |
== Description ==
|
14 |
|
15 |
This plugin is an addon for [Contact Form 7](http://wordpress.org/plugins/contact-form-7/) which needs to be installed on your wordpress blog.
|
16 |
+
Supports custom styling, which can be easily managed via admin dashboard. Also has predefined templates like Simple Pattern, Valentine's Day, Christmas that can be activated on your Contact Form 7. <BR>
|
17 |
+
|
18 |
+
Custom style options: <BR>
|
19 |
- color styling, <BR>
|
20 |
+
- custom fonts ( google fonts included ), <BR>
|
21 |
+
- form background-color, <BR>
|
22 |
- border-color, <BR>
|
23 |
+
- styling for input fields, text, textarea, labels, submit button <BR>
|
24 |
+
- form container styling, <BR>
|
25 |
- customized style can be imported / exported <BR>
|
26 |
+
- quick edit option <BR>
|
27 |
|
28 |
|
29 |
== Installation ==
|
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 |
+
|
53 |
+
|
54 |
= 2.1.1 =
|
55 |
* Minor JQuery fixes for older wordpress version
|
56 |
|
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
|
screenshot-1.jpg
CHANGED
Binary file
|