Version Description
Bug fix misaligned rows in CSV export, misspelled languages folder, and slashes appearing in emails and admin. Other minor improvements.
Download this release
Release Info
Developer | mmuro |
Plugin | Visual Form Builder |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 2.0
- class-entries-detail.php +17 -18
- class-entries-list.php +2 -1
- css/visual-form-builder-admin.css +1 -1
- js/visual-form-builder.js +1 -1
- languages/visual-form-builder-hu_HU.mo +0 -0
- languages/visual-form-builder-hu_HU.po +403 -0
- {langauges → languages}/visual-form-builder.pot +0 -0
- readme.txt +13 -1
- visual-form-builder.php +127 -51
class-entries-detail.php
CHANGED
@@ -34,56 +34,55 @@ class VisualFormBuilder_Entries_Detail{
|
|
34 |
/* Loop trough the entries and setup the data to be displayed for each row */
|
35 |
foreach ( $entries as $entry ) {
|
36 |
$data = unserialize( $entry->data );
|
37 |
-
|
38 |
-
|
|
|
39 |
<div id="side-info-column" class="inner-sidebar">
|
40 |
<div id="side-sortables">
|
41 |
<div id="submitdiv" class="postbox">
|
42 |
-
<h3><span
|
43 |
<div class="inside">
|
44 |
<div id="submitbox" class="submitbox">
|
45 |
<div id="minor-publishing">
|
46 |
<div id="misc-publishing-actions">
|
47 |
<div class="misc-pub-section">
|
48 |
-
<span><strong
|
49 |
</div>
|
50 |
<div class="misc-pub-section">
|
51 |
-
<span><strong
|
52 |
</div>
|
53 |
<div class="misc-pub-section">
|
54 |
-
<span><strong
|
55 |
</div>
|
56 |
<div class="misc-pub-section">
|
57 |
-
<span><strong
|
58 |
</div>
|
59 |
<div class="misc-pub-section">
|
60 |
-
<span><strong
|
61 |
</div>
|
62 |
<div class="misc-pub-section">
|
63 |
-
<span><strong
|
64 |
</div>
|
65 |
<div class="misc-pub-section misc-pub-section-last">
|
66 |
-
<span><strong
|
67 |
</div>
|
68 |
<div class="clear"></div>
|
69 |
</div>
|
70 |
</div>
|
71 |
|
72 |
<div id="major-publishing-actions">
|
73 |
-
<div id="delete-action">'
|
74 |
-
. sprintf( '<a class="submitdelete deletion entry-delete" href="?page=%s&view=%s&action=%s&entry=%s">Delete</a>', $_REQUEST['page'], $_REQUEST['view'], 'delete', $entry_id ) .
|
75 |
-
'</div>
|
76 |
<div class="clear"></div>
|
77 |
</div>
|
78 |
</div>
|
79 |
</div>
|
80 |
</div>
|
81 |
</div>
|
82 |
-
</div>
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
$open_fieldset = $open_section = false;
|
88 |
|
89 |
foreach ( $data as $k => $v ) {
|
34 |
/* Loop trough the entries and setup the data to be displayed for each row */
|
35 |
foreach ( $entries as $entry ) {
|
36 |
$data = unserialize( $entry->data );
|
37 |
+
?>
|
38 |
+
<h3><span><?php echo stripslashes( $entry->form_title ); ?> : <?php echo __( 'Entry' , 'visual-form-builder'); ?> # <?php echo $entry->entries_id; ?></span></h3>
|
39 |
+
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
40 |
<div id="side-info-column" class="inner-sidebar">
|
41 |
<div id="side-sortables">
|
42 |
<div id="submitdiv" class="postbox">
|
43 |
+
<h3><span><?php echo __( 'Details' , 'visual-form-builder'); ?></span></h3>
|
44 |
<div class="inside">
|
45 |
<div id="submitbox" class="submitbox">
|
46 |
<div id="minor-publishing">
|
47 |
<div id="misc-publishing-actions">
|
48 |
<div class="misc-pub-section">
|
49 |
+
<span><strong><?php echo __( 'Form Title' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->form_title ); ?></span>
|
50 |
</div>
|
51 |
<div class="misc-pub-section">
|
52 |
+
<span><strong><?php echo __( 'Date Submitted' , 'visual-form-builder'); ?>: </strong><?php echo date( "$date_format $time_format", strtotime( $entry->date_submitted ) ); ?></span>
|
53 |
</div>
|
54 |
<div class="misc-pub-section">
|
55 |
+
<span><strong><?php echo __( 'IP Address' , 'visual-form-builder'); ?>: </strong><?php echo $entry->ip_address; ?></span>
|
56 |
</div>
|
57 |
<div class="misc-pub-section">
|
58 |
+
<span><strong><?php echo __( 'Email Subject' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->subject ); ?></span>
|
59 |
</div>
|
60 |
<div class="misc-pub-section">
|
61 |
+
<span><strong><?php echo __( 'Sender Name' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->sender_name ); ?></span>
|
62 |
</div>
|
63 |
<div class="misc-pub-section">
|
64 |
+
<span><strong><?php echo __( 'Sender Email' , 'visual-form-builder'); ?>: </strong><a href="mailto:<?php echo stripslashes( $entry->sender_email ); ?>"><?php echo stripslashes( $entry->sender_email ); ?></a></span>
|
65 |
</div>
|
66 |
<div class="misc-pub-section misc-pub-section-last">
|
67 |
+
<span><strong><?php echo __( 'Emailed To' , 'visual-form-builder'); ?>: </strong><?php echo preg_replace('/\b([A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4})\b/i', '<a href="mailto:$1">$1</a>', implode( ',', unserialize( stripslashes( $entry->emails_to ) ) ) ); ?></span>
|
68 |
</div>
|
69 |
<div class="clear"></div>
|
70 |
</div>
|
71 |
</div>
|
72 |
|
73 |
<div id="major-publishing-actions">
|
74 |
+
<div id="delete-action"><?php echo sprintf( '<a class="submitdelete deletion entry-delete" href="?page=%s&view=%s&action=%s&entry=%s">Delete</a>', $_REQUEST['page'], $_REQUEST['view'], 'delete', $entry_id ); ?></div>
|
|
|
|
|
75 |
<div class="clear"></div>
|
76 |
</div>
|
77 |
</div>
|
78 |
</div>
|
79 |
</div>
|
80 |
</div>
|
81 |
+
</div>
|
82 |
+
<div>
|
83 |
+
<div id="post-body-content">
|
84 |
+
<?php
|
85 |
+
$count = 0;
|
86 |
$open_fieldset = $open_section = false;
|
87 |
|
88 |
foreach ( $data as $k => $v ) {
|
class-entries-list.php
CHANGED
@@ -301,6 +301,7 @@ class VisualFormBuilder_Entries_List extends WP_List_Table {
|
|
301 |
switch ( $obj->type ) {
|
302 |
case 'fieldset' :
|
303 |
case 'section' :
|
|
|
304 |
case 'submit' :
|
305 |
break;
|
306 |
|
@@ -310,7 +311,7 @@ class VisualFormBuilder_Entries_List extends WP_List_Table {
|
|
310 |
|
311 |
/* Find new field names and make a new column with a header */
|
312 |
if ( !array_key_exists( $obj->name, $cols ) ) {
|
313 |
-
$cols[$
|
314 |
'header' => $header,
|
315 |
'data' => array()
|
316 |
);
|
301 |
switch ( $obj->type ) {
|
302 |
case 'fieldset' :
|
303 |
case 'section' :
|
304 |
+
case 'instructions' :
|
305 |
case 'submit' :
|
306 |
break;
|
307 |
|
311 |
|
312 |
/* Find new field names and make a new column with a header */
|
313 |
if ( !array_key_exists( $obj->name, $cols ) ) {
|
314 |
+
$cols[$obj->name] = array(
|
315 |
'header' => $header,
|
316 |
'data' => array()
|
317 |
);
|
css/visual-form-builder-admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
label.error{color:red;display:block}#visual-form-builder-update input.error,#visual-form-builder-update textarea.error,#visual-form-builder-update select.error{border:1px solid red}.menu-item-handle.fieldset,#form-element-fieldset{background-image:-moz-linear-gradient(top,#e3e3e3 0,#ccc 100%);background-image:-o-linear-gradient(top,#e3e3e3 0,#ccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#e3e3e3),color-stop(1,#ccc));background-image:linear-gradient(top,#e3e3e3 0,#ccc 100%);box-shadow:0 1px 0 #e3e3e3 inset}.sender-labels{width:80px}.is-field-required{color:#bc1212;vertical-align:middle}.visual-form-builder-inline-edit{width:100%}.visual-form-builder-inline-edit-col{padding:0 .5em}.visual-form-builder-inline-edit label{display:block;margin:.2em 0}.visual-form-builder-inline-edit .title{display:block;float:left;width:5em;font-style:italic}.visual-form-builder-inline-edit .input-text-wrap{display:block;margin-left:5em}.visual-form-builder-inline-edit .input-text-wrap input[type="text"]{width:100%;border:#DDD solid 1px;border-radius:3px}.subsubsub{float:none}.nav-tabs-arrow-left{display:none}#form-items input{width:104px;float:left;margin:0 5px 10px 0}#form-element-text{background:url(sprite.png) 0 -89px no-repeat transparent}#form-element-textarea{background:url(sprite.png) 0 -173px no-repeat transparent}#form-element-checkbox{background:url(sprite.png) 0 -259px no-repeat transparent}#form-element-radio{background:url(sprite.png) 0 -51px no-repeat transparent}#form-element-select{background:url(sprite.png) 0 -7px no-repeat transparent}#form-element-address{background:url(sprite.png) 0 -129px no-repeat transparent}#form-element-datepicker{background:url(sprite.png) 0 -215px no-repeat transparent}#form-element-email{background:url(sprite.png) 0 -304px no-repeat transparent}#form-element-url{background:url(sprite.png) 0 -356px no-repeat transparent}#form-element-currency{background:url(sprite.png) 0 -405px no-repeat transparent}#form-element-digits{background:url(sprite.png) 0 -452px no-repeat transparent}#form-element-time{background:url(sprite.png) 0 -489px no-repeat transparent}#form-element-phone{background:url(sprite.png) 0 -529px no-repeat transparent}#form-element-html{background:url(sprite.png) 0 -559px no-repeat transparent}#form-element-file{background:url(sprite.png) 0 -587px no-repeat transparent}#form-element-instructions{background:url(sprite.png) 0 -621px no-repeat transparent}#form-element-section{background:url(sprite.png) 0 -809px no-repeat transparent}#form-details-nav{font-size:1.0em;font-weight:bold;padding-top:10px}#form-details-nav a{padding:5px 10px;text-decoration:none}#form-details-nav a.current{background-color:#777;background-image:-ms-linear-gradient(bottom,#6d6d6d,#808080);background-image:-moz-linear-gradient(bottom,#6d6d6d,#808080);background-image:-o-linear-gradient(bottom,#6d6d6d,#808080);background-image:-webkit-gradient(linear,left bottom,left top,from(#6d6d6d),to(#808080));background-image:-webkit-linear-gradient(bottom,#6d6d6d,#808080);background-image:linear-gradient(bottom,#6d6d6d,#808080);color:white;border-radius:5px;height:40px;text-shadow:0 -1px 0 #333;border-color:#dfdfdf}.form-details,#form-success-message-text,#form-success-message-page,#form-success-message-redirect{display:none}.form-details-current,.active{display:block}#confirmation-message textarea,#notification textarea{font-family:Consolas,Monaco,monospace;width:75%;height:10em;margin-top:10px}#form-success-message-page,#form-success-message-redirect{margin-top:10px}.post-body-plain ol li{list-style:decimal}#promote-vfb li{padding-left:20px}#promote-vfb #twitter{background:url(sprite.png) -10px -746px no-repeat transparent}#promote-vfb #star{background:url(sprite.png) -10px -710px no-repeat transparent}#promote-vfb #paypal{background:url(sprite.png) -10px -777px no-repeat transparent}.menu .ui-nestedSortable-error{background-color:#fbe3e4;border-color:red;color:#8a1f11}ul#menu-to-edit ul{margin:0 0 0 25px;padding:0;list-style-type:none;width:98%}.vfb-details{padding:0 10px;border:1px solid #ccc;margin-bottom:10px;border-radius:3px;width:95%}.vfb-details.section{background-color:#efefef;width:97.55%}.vfb-details .postbox{min-height:60px}#poststuff .vfb-details h2{margin-top:0}#poststuff h3.section-heading{padding-left:0}
|
1 |
+
label.error{color:red;display:block}#visual-form-builder-update input.error,#visual-form-builder-update textarea.error,#visual-form-builder-update select.error{border:1px solid red}.menu-item-handle.fieldset,#form-element-fieldset{background-image:-moz-linear-gradient(top,#e3e3e3 0,#ccc 100%);background-image:-o-linear-gradient(top,#e3e3e3 0,#ccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#e3e3e3),color-stop(1,#ccc));background-image:linear-gradient(top,#e3e3e3 0,#ccc 100%);box-shadow:0 1px 0 #e3e3e3 inset}.sender-labels{width:80px}.is-field-required{color:#bc1212;vertical-align:middle}.visual-form-builder-inline-edit{width:100%}.visual-form-builder-inline-edit-col{padding:0 .5em}.visual-form-builder-inline-edit label{display:block;margin:.2em 0}.visual-form-builder-inline-edit .title{display:block;float:left;width:5em;font-style:italic}.visual-form-builder-inline-edit .input-text-wrap{display:block;margin-left:5em}.visual-form-builder-inline-edit .input-text-wrap input[type="text"]{width:100%;border:#DDD solid 1px;border-radius:3px}.subsubsub{float:none}.nav-tabs-arrow-left{display:none}#form-items input{width:104px;float:left;margin:0 5px 10px 0}#form-element-text{background:url(sprite.png) 0 -89px no-repeat transparent}#form-element-textarea{background:url(sprite.png) 0 -173px no-repeat transparent}#form-element-checkbox{background:url(sprite.png) 0 -259px no-repeat transparent}#form-element-radio{background:url(sprite.png) 0 -51px no-repeat transparent}#form-element-select{background:url(sprite.png) 0 -7px no-repeat transparent}#form-element-address{background:url(sprite.png) 0 -129px no-repeat transparent}#form-element-datepicker{background:url(sprite.png) 0 -215px no-repeat transparent}#form-element-email{background:url(sprite.png) 0 -304px no-repeat transparent}#form-element-url{background:url(sprite.png) 0 -356px no-repeat transparent}#form-element-currency{background:url(sprite.png) 0 -405px no-repeat transparent}#form-element-digits{background:url(sprite.png) 0 -452px no-repeat transparent}#form-element-time{background:url(sprite.png) 0 -489px no-repeat transparent}#form-element-phone{background:url(sprite.png) 0 -529px no-repeat transparent}#form-element-html{background:url(sprite.png) 0 -559px no-repeat transparent}#form-element-file{background:url(sprite.png) 0 -587px no-repeat transparent}#form-element-instructions{background:url(sprite.png) 0 -621px no-repeat transparent}#form-element-section{background:url(sprite.png) 0 -809px no-repeat transparent}#form-details-nav{font-size:1.0em;font-weight:bold;padding-top:10px}#form-details-nav a{padding:5px 10px;text-decoration:none}#form-details-nav a.current{background-color:#777;background-image:-ms-linear-gradient(bottom,#6d6d6d,#808080);background-image:-moz-linear-gradient(bottom,#6d6d6d,#808080);background-image:-o-linear-gradient(bottom,#6d6d6d,#808080);background-image:-webkit-gradient(linear,left bottom,left top,from(#6d6d6d),to(#808080));background-image:-webkit-linear-gradient(bottom,#6d6d6d,#808080);background-image:linear-gradient(bottom,#6d6d6d,#808080);color:white;border-radius:5px;height:40px;text-shadow:0 -1px 0 #333;border-color:#dfdfdf}.form-details,#form-success-message-text,#form-success-message-page,#form-success-message-redirect{display:none}.form-details-current,.active{display:block}#confirmation-message textarea,#notification textarea{font-family:Consolas,Monaco,monospace;width:75%;height:10em;margin-top:10px}#form-success-message-page,#form-success-message-redirect{margin-top:10px}.post-body-plain ol li{list-style:decimal}#promote-vfb li{padding-left:20px}#promote-vfb #twitter{background:url(sprite.png) -10px -746px no-repeat transparent}#promote-vfb #star{background:url(sprite.png) -10px -710px no-repeat transparent}#promote-vfb #paypal{background:url(sprite.png) -10px -777px no-repeat transparent}.menu .ui-nestedSortable-error{background-color:#fbe3e4;border-color:red;color:#8a1f11}ul#menu-to-edit ul{margin:0 0 0 25px;padding:0;list-style-type:none;width:98%}.vfb-details{padding:0 10px;border:1px solid #ccc;margin-bottom:10px;border-radius:3px;width:95%}.vfb-details.section{background-color:#efefef;width:97.55%}.vfb-details .postbox{min-height:60px}#poststuff .vfb-details h2{margin-top:0}#poststuff h3.section-heading{padding-left:0}.vfb-pro-call-to-action a{text-decoration:none}.vfb-pro-call-to-action:hover{border-color:#dbf1ff}.vfb-pro-call-to-action{background-color:#3d93cd;border:5px solid #b0d2e8;border-radius:7px;box-shadow:inset 1px 1px 5px #398cc3,inset -1px -25px 5px #398cc3,0px 0 0 #fff;height:37px;margin:0 auto;padding:5px 30px 10px 30px;text-shadow:0 1px #2b658c;width:115px;line-height:22px}.vfb-pro-call-to-action .cta-sign-up{color:#fff;display:block;font-size:24px;font-weight:bold;text-align:center;text-decoration:none;text-shadow:1px 1px 1px #2b658c;width:100%;line-height:22px}.vfb-pro-call-to-action .cta-price{color:#ace7ff;display:block;font-size:12px;font-weight:normal;line-height:20px;text-align:center;text-decoration:none;width:100%;line-height:20px}.vfb-pro-upgrade{width:350px;float:left;padding:10px;background-color:#d3e7ee;border:1px solid #21759b;border-radius:5px}.vfb-pro-upgrade ul{list-style:outside;margin-left:10px;}.post-body-plain{width:430px;float:left}#menu-instructions.post-body-plain{width:auto;float:none;}
|
js/visual-form-builder.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(a){function n(){if(b.length){var i=b.width(),j=0,l={};h=b.offset().left;g=h+i;d.makeTabVisible(h,g,c,k,m);if(e.last().isTabVisible(h,g)){j=b.width()-f;j=j>0?0:j;l[k]=j+"px";c.animate(l,100,"linear")}if(i>f)a(".nav-tabs-arrow-right, .nav-tabs-arrow-left").hide();else a(".nav-tabs-arrow-right, .nav-tabs-arrow-left").show()}}a(".addOption").live("click",function(b){var c=a(this).parent().parent().find(".clonedOption").length;var d=c+1;var e=a(this).closest("div").attr("id");var f=a(this).closest("div").children("label").attr("for");var g=f.replace(new RegExp(/(\d+)$/g),"");var h=e.replace(new RegExp(/(\d+)$/g),"");var i=a("#"+e).clone().attr("id",h+d);i.children("label").attr("for",g+d);i.find("input").attr("id",g+d);a("#"+h+c).after(i);return false});a(".deleteOption").live("click",function(){var b=a(this).parent().parent().find(".clonedOption").length;if(b-1==0){alert("You must have at least one option.")}else{a(this).closest("div").remove()}return false});a(".addEmail").live("click",function(b){var c=a(this).parent().parent().find(".clonedOption").length;var d=c+1;var e=a(this).closest("div").attr("id");var f=a(this).closest("div").children("label").attr("for");var g=f.replace(new RegExp(/(\d+)$/g),"");var h=e.replace(new RegExp(/(\d+)$/g),"");var i=a("#"+e).clone().attr("id",h+d);i.children("label").attr("for",g+d);i.find("input").attr("id",g+d);a("#"+h+c).after(i);return false});a(".deleteEmail").live("click",function(){var b=a(this).parent().parent().find(".clonedOption").length;if(b-1==0){alert("You must have at least one option.")}else{a(this).closest("div").remove()}return false});a(".menu-delete, .entry-delete").click(function(){var b=a(this).hasClass("entry-delete")?"entry":"form";var c=confirm("You are about to permanently delete this "+b+" and all of its data.\n'Cancel' to stop, 'OK' to delete.");if(c)return;return false});a(".item-edit").live("click",function(b){a(b.target).closest("li").children(".menu-item-settings").slideToggle("fast");a(this).toggleClass("opened");return false});a("#form-copy-to-clipboard").focus(function(){this.select()});var b=a(".nav-tabs-wrapper"),c=b.children(".nav-tabs"),d=c.children(".nav-tab-active"),e=c.children(".nav-tab"),f=0,g,h,i={},j,k="margin-left",l="margin-right",m=2;e.each(function(){f+=a(this).outerWidth(true)});i["padding"]=0;i[l]=-1*f+"px";c.css(i);n();a(window).resize(function(){if(j)clearTimeout(j);j=setTimeout(n,200)});a(".nav-tabs-arrow-right").mousedown(function(){var a=Math.abs(parseInt(c.css(k))),d=a,e={};d=Math.abs(f-b.width())-a;if(!d)return;e[k]="-="+d+"px";c.animate(e,d*m,"linear")}).mouseup(function(){c.stop(true)});a(".nav-tabs-arrow-left").mousedown(function(){var a=Math.abs(parseInt(c.css(k))),b=a,d={};if(!b)return;d[k]="+="+b+"px";c.animate(d,b*m,"linear")}).mouseup(function(){c.stop(true)});a("#menu-to-edit").nestedSortable({listType:"ul",maxLevels:3,handle:".menu-item-handle",placeholder:"sortable-placeholder",tolerance:"pointer",toleranceElement:"> dl",items:"li:not(.ui-state-disabled)",create:function(b,c){a(this).css("min-height",a(this).height())},start:function(a,b){b.placeholder.height(b.item.height())},stop:function(b,c){opts={url:ajaxurl,type:"POST",async:true,cache:false,dataType:"json",data:{action:"visual_form_builder_process_sort",order:a(this).nestedSortable("toArray")},success:function(b){a("#loading-animation").hide();return}};a.ajax(opts)}});a('#form-items input[type="submit"]').click(function(){a(this).closest("form").data("submit_value",a(this))});a("#form-items").live("submit",function(b){b.preventDefault();var c=a(this).serializeArray(),d=a(this).data("submit_value").attr("value");a("img.waiting").show();a.ajax({url:ajaxurl,type:"
|
1 |
+
jQuery(document).ready(function(a){function n(){if(b.length){var i=b.width(),j=0,l={};h=b.offset().left;g=h+i;d.makeTabVisible(h,g,c,k,m);if(e.last().isTabVisible(h,g)){j=b.width()-f;j=j>0?0:j;l[k]=j+"px";c.animate(l,100,"linear")}if(i>f)a(".nav-tabs-arrow-right, .nav-tabs-arrow-left").hide();else a(".nav-tabs-arrow-right, .nav-tabs-arrow-left").show()}}a(".addOption").live("click",function(b){var c=a(this).parent().parent().find(".clonedOption").length;var d=c+1;var e=a(this).closest("div").attr("id");var f=a(this).closest("div").children("label").attr("for");var g=f.replace(new RegExp(/(\d+)$/g),"");var h=e.replace(new RegExp(/(\d+)$/g),"");var i=a("#"+e).clone().attr("id",h+d);i.children("label").attr("for",g+d);i.find("input").attr("id",g+d);a("#"+h+c).after(i);return false});a(".deleteOption").live("click",function(){var b=a(this).parent().parent().find(".clonedOption").length;if(b-1==0){alert("You must have at least one option.")}else{a(this).closest("div").remove()}return false});a(".addEmail").live("click",function(b){var c=a(this).parent().parent().find(".clonedOption").length;var d=c+1;var e=a(this).closest("div").attr("id");var f=a(this).closest("div").children("label").attr("for");var g=f.replace(new RegExp(/(\d+)$/g),"");var h=e.replace(new RegExp(/(\d+)$/g),"");var i=a("#"+e).clone().attr("id",h+d);i.children("label").attr("for",g+d);i.find("input").attr("id",g+d);a("#"+h+c).after(i);return false});a(".deleteEmail").live("click",function(){var b=a(this).parent().parent().find(".clonedOption").length;if(b-1==0){alert("You must have at least one option.")}else{a(this).closest("div").remove()}return false});a(".menu-delete, .entry-delete").click(function(){var b=a(this).hasClass("entry-delete")?"entry":"form";var c=confirm("You are about to permanently delete this "+b+" and all of its data.\n'Cancel' to stop, 'OK' to delete.");if(c)return;return false});a(".item-edit").live("click",function(b){a(b.target).closest("li").children(".menu-item-settings").slideToggle("fast");a(this).toggleClass("opened");return false});a("#form-copy-to-clipboard").focus(function(){this.select()});var b=a(".nav-tabs-wrapper"),c=b.children(".nav-tabs"),d=c.children(".nav-tab-active"),e=c.children(".nav-tab"),f=0,g,h,i={},j,k="margin-left",l="margin-right",m=2;e.each(function(){f+=a(this).outerWidth(true)});i["padding"]=0;i[l]=-1*f+"px";c.css(i);n();a(window).resize(function(){if(j)clearTimeout(j);j=setTimeout(n,200)});a(".nav-tabs-arrow-right").mousedown(function(){var a=Math.abs(parseInt(c.css(k))),d=a,e={};d=Math.abs(f-b.width())-a;if(!d)return;e[k]="-="+d+"px";c.animate(e,d*m,"linear")}).mouseup(function(){c.stop(true)});a(".nav-tabs-arrow-left").mousedown(function(){var a=Math.abs(parseInt(c.css(k))),b=a,d={};if(!b)return;d[k]="+="+b+"px";c.animate(d,b*m,"linear")}).mouseup(function(){c.stop(true)});a("#menu-to-edit").nestedSortable({listType:"ul",maxLevels:3,handle:".menu-item-handle",placeholder:"sortable-placeholder",tolerance:"pointer",toleranceElement:"> dl",items:"li:not(.ui-state-disabled)",create:function(b,c){a(this).css("min-height",a(this).height())},start:function(a,b){b.placeholder.height(b.item.height())},stop:function(b,c){opts={url:ajaxurl,type:"POST",async:true,cache:false,dataType:"json",data:{action:"visual_form_builder_process_sort",order:a(this).nestedSortable("toArray")},success:function(b){a("#loading-animation").hide();return}};a.ajax(opts)}});a('#form-items input[type="submit"]').click(function(){a(this).closest("form").data("submit_value",a(this))});a("#form-items").live("submit",function(b){b.preventDefault();var c=a(this).serializeArray(),d=a(this).data("submit_value").attr("value");a("img.waiting").show();a.ajax({url:ajaxurl,type:"POST",async:true,cache:false,dataType:"html",data:{action:"visual_form_builder_create_field",data:c,field_type:d,page:pagenow,nonce:a("#_wpnonce").val()},success:function(b){a("img.waiting").hide();a(b).hide().insertBefore("#menu-to-edit li.ui-state-disabled").fadeIn();return},error:function(a,b,c){alert("There was an error loading the content");return}})});a(".item-delete").live("click",function(b){b.preventDefault();var c=childs=new Array,d=0,e=a(this).attr("href"),f=e.split("&");for(var g=0;g<f.length;g++){var h=f[g].indexOf("=");var i=f[g].substring(0,h);var j=f[g].substring(h+1);c[i]=j}var k=a(this).closest(".form-item").find("ul").children();var l=k.parent().html();k.each(function(b){childs[b]=a(this).attr("id").match(new RegExp(/(\d+)$/g))[0]});var m=a(this).closest("li.form-item").parents("li.form-item");if(m.length)d=m.attr("id").match(new RegExp(/(\d+)$/g))[0];console.log(d);a.ajax({url:ajaxurl,type:"POST",async:true,cache:false,dataType:"html",data:{action:"visual_form_builder_delete_field",form:c["form"],field:c["field"],child_ids:childs,parent_id:d,page:pagenow,nonce:c["_wpnonce"]},success:function(b){a("#form_item_"+c["field"]).addClass("deleting").animate({opacity:0,height:0},350,function(){a(this).before(l).remove()});return},error:function(a,b,c){alert("There was an error loading the content");return}})});var o=a(".form-success-type:checked").val();a("#form-success-message-"+o).show();a(".form-success-type").change(function(){var b=a(this).val();if("text"==b){a("#form-success-message-text").show();a("#form-success-message-page, #form-success-message-redirect").hide()}else if("page"==b){a("#form-success-message-page").show();a("#form-success-message-text, #form-success-message-redirect").hide()}else if("redirect"==b){a("#form-success-message-redirect").show();a("#form-success-message-text, #form-success-message-page").hide()}});a("#visual-form-builder-update").validate({rules:{"form_email_to[]":{email:true},form_email_from:{email:true},form_success_message_redirect:{url:true},form_notification_email_name:{required:function(b){return a("#form-notification-setting").is(":checked")}},form_notification_email_from:{required:function(b){return a("#form-notification-setting").is(":checked")},email:true},form_notification_email:{required:function(b){return a("#form-notification-setting").is(":checked")}}},errorPlacement:function(a,b){a.insertAfter(b.parent())}});a("#form_email_from_name_override").change(function(){if(a("#form_email_from_name_override").val()==""){a("#form-email-sender-name").attr("readonly",false)}else{a("#form-email-sender-name").attr("readonly","readonly")}});a("#form_email_from_override").change(function(){if(a("#form_email_from_override").val()==""){a("#form-email-sender").attr("readonly",false)}else{a("#form-email-sender").attr("readonly","readonly")}});if(a("#form-notification-setting").is(":checked")){a("#notification-email").show()}else{a("#notification-email").hide()}a("#form-notification-setting").change(function(){var b=a(this).is(":checked");if(b){a("#notification-email").show();a("#form-notification-email-name, #form-notification-email-from, #form-notification-email, #form-notification-subject, #form-notification-message, #form-notification-entry").attr("disabled",false)}else{a("#notification-email").hide();a("#form-notification-email-name, #form-notification-email-from, #form-notification-email, #form-notification-subject, #form-notification-message, #form-notification-entry").attr("disabled","disabled")}});a.validator.addMethod("multiemail",function(a,b){if(this.optional(b))return true;var c=a.split(new RegExp("\\s*[,|;]\\s*","gi"));valid=true;for(var d in c){a=c[d];valid=valid&&jQuery.validator.methods.email.call(this,a,b)}return valid},"One or more email addresses are invalid")});jQuery.fn.extend({makeTabVisible:function(a,b,c,d,e){var f=this.eq(0),g,h,i={},j=0;if(!f.length)return this;g=f.offset().left;h=g+f.outerWidth();if(h>b)j=b-h;else if(g<a)j=a-g;if(!j)return this;i[d]="+="+1*j+"px";c.animate(i,Math.abs(j)*e,"linear");return this},isTabVisible:function(a,b){var c=this.eq(0),d=c.offset().left,e=d+c.outerWidth();return e<=b&&d>=a?true:false}})
|
languages/visual-form-builder-hu_HU.mo
ADDED
Binary file
|
languages/visual-form-builder-hu_HU.po
ADDED
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Visual Form Builder\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-10-06 13:57-0600\n"
|
6 |
+
"PO-Revision-Date: 2012-02-10 11:54+0100\n"
|
7 |
+
"Last-Translator: glocs <inkabb.nem@gmail.kom>\n"
|
8 |
+
"Language-Team: glocs\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-Language: Hungarian\n"
|
15 |
+
"X-Poedit-Country: HUNGARY\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-SearchPath-0: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder\n"
|
18 |
+
|
19 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:40
|
20 |
+
msgid "Details"
|
21 |
+
msgstr "Részletek"
|
22 |
+
|
23 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:46
|
24 |
+
msgid "Form Title"
|
25 |
+
msgstr "Űrlap cím"
|
26 |
+
|
27 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:49
|
28 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:98
|
29 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:222
|
30 |
+
msgid "Date Submitted"
|
31 |
+
msgstr "Elkészítés dátuma"
|
32 |
+
|
33 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:52
|
34 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:97
|
35 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:226
|
36 |
+
msgid "IP Address"
|
37 |
+
msgstr "IP cím"
|
38 |
+
|
39 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:55
|
40 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:93
|
41 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:230
|
42 |
+
msgid "Email Subject"
|
43 |
+
msgstr "Email tárgy"
|
44 |
+
|
45 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:58
|
46 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:94
|
47 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:234
|
48 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:817
|
49 |
+
msgid "Sender Name"
|
50 |
+
msgstr "Küldő Név"
|
51 |
+
|
52 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:61
|
53 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:95
|
54 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:238
|
55 |
+
msgid "Sender Email"
|
56 |
+
msgstr "Küldő Email"
|
57 |
+
|
58 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:64
|
59 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:96
|
60 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:242
|
61 |
+
msgid "Emailed To"
|
62 |
+
msgstr "Címzett"
|
63 |
+
|
64 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-detail.php:84
|
65 |
+
msgid "Entry"
|
66 |
+
msgstr "Bejegyzés"
|
67 |
+
|
68 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:67
|
69 |
+
msgid "Cancel"
|
70 |
+
msgstr "Mégse"
|
71 |
+
|
72 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:92
|
73 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:218
|
74 |
+
msgid "Form"
|
75 |
+
msgstr "Űrlap"
|
76 |
+
|
77 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:168
|
78 |
+
msgid "Delete"
|
79 |
+
msgstr "Törlés"
|
80 |
+
|
81 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:169
|
82 |
+
msgid "Export All"
|
83 |
+
msgstr "Minden exportálása"
|
84 |
+
|
85 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:170
|
86 |
+
msgid "Export Selected"
|
87 |
+
msgstr "A kiválasztottak exportálása"
|
88 |
+
|
89 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:214
|
90 |
+
msgid "Entries ID"
|
91 |
+
msgstr "Bejegyzés ID"
|
92 |
+
|
93 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:369
|
94 |
+
msgid "View all forms"
|
95 |
+
msgstr "Minden űrlap"
|
96 |
+
|
97 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/class-entries-list.php:376
|
98 |
+
msgid "Filter"
|
99 |
+
msgstr "Szűrő"
|
100 |
+
|
101 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:340
|
102 |
+
msgid "Settings"
|
103 |
+
msgstr "Beállítások"
|
104 |
+
|
105 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:353
|
106 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:643
|
107 |
+
msgid "Visual Form Builder"
|
108 |
+
msgstr "Visual Form Builder"
|
109 |
+
|
110 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:383
|
111 |
+
#, php-format
|
112 |
+
msgid "<div id=\"message\" class=\"updated\"><p>The <strong>%s</strong> form has been created.</p></div>"
|
113 |
+
msgstr "<div id=\"message\" class=\"updated\"><p>Az <strong>%s</strong> űrlap elkészítve.</p></div>"
|
114 |
+
|
115 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:499
|
116 |
+
#, php-format
|
117 |
+
msgid "<div id=\"message\" class=\"updated\"><p>The <strong>%s</strong> form has been updated.</p></div>"
|
118 |
+
msgstr "<div id=\"message\" class=\"updated\"><p>Az <strong>%s</strong> űrlap frissítve.</p></div>"
|
119 |
+
|
120 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:645
|
121 |
+
msgid "Forms"
|
122 |
+
msgstr "Űrlapok"
|
123 |
+
|
124 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:646
|
125 |
+
msgid "Entries"
|
126 |
+
msgstr "Bejegyzések"
|
127 |
+
|
128 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:685
|
129 |
+
msgid "Form Items"
|
130 |
+
msgstr "Űrlap mezők"
|
131 |
+
|
132 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:688
|
133 |
+
msgid "Click"
|
134 |
+
msgstr "Kattintás"
|
135 |
+
|
136 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:688
|
137 |
+
msgid "to Add a Field"
|
138 |
+
msgstr "mező hozzáadása"
|
139 |
+
|
140 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:712
|
141 |
+
msgid "Form Output"
|
142 |
+
msgstr "Űrlap kimenet"
|
143 |
+
|
144 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:715
|
145 |
+
msgid "Copy this shortcode and paste into any Post or Page."
|
146 |
+
msgstr "Másold ki ezt a kódot és illeszd be bármely oldalba, vagy bejegyzésbe."
|
147 |
+
|
148 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:794
|
149 |
+
msgid "Form Name"
|
150 |
+
msgstr "Űrlap neve"
|
151 |
+
|
152 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:804
|
153 |
+
msgid "Customize Email Details"
|
154 |
+
msgstr "Email részletek testreszabása"
|
155 |
+
|
156 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:804
|
157 |
+
msgid "Email Details"
|
158 |
+
msgstr "Email részletek"
|
159 |
+
|
160 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:805
|
161 |
+
msgid "Customize Confirmation Message"
|
162 |
+
msgstr "Megerősítő email testreszabása"
|
163 |
+
|
164 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:805
|
165 |
+
msgid "Confirmation"
|
166 |
+
msgstr "Megerősítés"
|
167 |
+
|
168 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:806
|
169 |
+
msgid "Customize Notification Email"
|
170 |
+
msgstr "Értesítő email testreszabása"
|
171 |
+
|
172 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:806
|
173 |
+
msgid "Notification"
|
174 |
+
msgstr "Értesítés"
|
175 |
+
|
176 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:810
|
177 |
+
msgid "The forms you build here will send information to one or more email addresses when submitted by a user on your site. Use the fields below to customize the details of that email."
|
178 |
+
msgstr "Az elkészített űrlap információt küld egy, vagy több email címre, ha a felhasználó elküldte. Használd az alábbi mezőket az email testre szabásához."
|
179 |
+
|
180 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:812
|
181 |
+
msgid "E-mail Subject"
|
182 |
+
msgstr "E-mail tárgy"
|
183 |
+
|
184 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:822
|
185 |
+
msgid "Select a required text field"
|
186 |
+
msgstr "Válassz egy kötelező mezőt"
|
187 |
+
|
188 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:831
|
189 |
+
msgid "Sender E-mail"
|
190 |
+
msgstr "Küldő e-mail"
|
191 |
+
|
192 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:834
|
193 |
+
msgid "OR"
|
194 |
+
msgstr "VAGY"
|
195 |
+
|
196 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:836
|
197 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:899
|
198 |
+
msgid "Select a required text field with email validation"
|
199 |
+
msgstr "Válassz egy kötelező mezőt, ami email formátumú."
|
200 |
+
|
201 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:845
|
202 |
+
msgid "E-mail(s) To"
|
203 |
+
msgstr "E-mail(ek) címzettje"
|
204 |
+
|
205 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:848
|
206 |
+
msgid "(multiple emails separated by commas)"
|
207 |
+
msgstr "(több email esetén vesszővel elválasztva)"
|
208 |
+
|
209 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:852
|
210 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:888
|
211 |
+
msgid "After someone submits a form, you can control what is displayed. By default, it's a message but you can send them to another WordPress Page or a custom URL."
|
212 |
+
msgstr "Az űrlap elküldése után megjelenő rész. Alapból egy üzenet, de akár egy WordPress oldalra, vagy URL-re is küldheted."
|
213 |
+
|
214 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:855
|
215 |
+
msgid "Text"
|
216 |
+
msgstr "Szöveg"
|
217 |
+
|
218 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:859
|
219 |
+
msgid "Page"
|
220 |
+
msgstr "Oldal"
|
221 |
+
|
222 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:863
|
223 |
+
msgid "Redirect"
|
224 |
+
msgstr "Átirányítás"
|
225 |
+
|
226 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:870
|
227 |
+
msgid "Your form was successfully submitted. Thank you for contacting us."
|
228 |
+
msgstr "Az űrlap sikeresen elküldve. Köszönjük a megkeresést!"
|
229 |
+
|
230 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:879
|
231 |
+
msgid "Select a Page"
|
232 |
+
msgstr "Válassz oldalt"
|
233 |
+
|
234 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:891
|
235 |
+
msgid "Send Confirmation Email to User"
|
236 |
+
msgstr "Megerősítő email küldése a felhasználónak"
|
237 |
+
|
238 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:896
|
239 |
+
msgid "Send To"
|
240 |
+
msgstr "Címzett"
|
241 |
+
|
242 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:908
|
243 |
+
msgid "Subject"
|
244 |
+
msgstr "Tárgy"
|
245 |
+
|
246 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:912
|
247 |
+
msgid "Message"
|
248 |
+
msgstr "Üzenet"
|
249 |
+
|
250 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:918
|
251 |
+
msgid "Include a Copy of the User's Entry"
|
252 |
+
msgstr "A felhasználó bejegyzésének másolása"
|
253 |
+
|
254 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:925
|
255 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1072
|
256 |
+
msgid "Create Form"
|
257 |
+
msgstr "Űrlap készítése"
|
258 |
+
|
259 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:925
|
260 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1072
|
261 |
+
msgid "Save Form"
|
262 |
+
msgstr "Űrlap mentése"
|
263 |
+
|
264 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:929
|
265 |
+
msgid "Delete Form"
|
266 |
+
msgstr "Űrlap törlése"
|
267 |
+
|
268 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:939
|
269 |
+
msgid "To create a custom form, give it a name above and click Create Form. Then choose form elements from the left column to add to this form."
|
270 |
+
msgstr "Saját űrlap készítéséhez adj nevet a fenti fülön és kattints az Űrlap készítése gombra. Aztán válassz űrlap elemet a bal oldali dobozból."
|
271 |
+
|
272 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:940
|
273 |
+
msgid "After you have added your items, drag and drop to put them in the order you want. You can also click each item to reveal additional configuration options."
|
274 |
+
msgstr "A hozzáadott elemet fogd-és-vidd módszerrel tudod rendezni. Minden elemet tudsz szerkeszteni, ha rákattintasz."
|
275 |
+
|
276 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:941
|
277 |
+
msgid "When you have finished building your custom form, make sure you click the Save Form button."
|
278 |
+
msgstr "Ha befejezted az űrlap készítését, kattints az Űrlap mentése gombra."
|
279 |
+
|
280 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:942
|
281 |
+
msgid "For more help, click on the Help tab at the top of this page."
|
282 |
+
msgstr "Segítségért kattints a fent található Súgó fülre."
|
283 |
+
|
284 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:948
|
285 |
+
msgid "Select form inputs from the box at left to begin building your custom form. An initial fieldset has been automatically added to get you started."
|
286 |
+
msgstr "Válassz mezőt a bal oldali dobozból a saját űrlap építéséhez. Egy kezdő mező már automatikusan hozzáadódott."
|
287 |
+
|
288 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:964
|
289 |
+
msgid "Edit Field Item"
|
290 |
+
msgstr "Mező szerkesztése"
|
291 |
+
|
292 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:979
|
293 |
+
msgid "Name"
|
294 |
+
msgstr "Név"
|
295 |
+
|
296 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:985
|
297 |
+
msgid "Description"
|
298 |
+
msgstr "Magyarázat"
|
299 |
+
|
300 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1003
|
301 |
+
msgid "Options (separated by commas)"
|
302 |
+
msgstr "Opciók (vesszővel elválasztva)"
|
303 |
+
|
304 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1018
|
305 |
+
msgid "12 Hour Format"
|
306 |
+
msgstr "12 órás formátum"
|
307 |
+
|
308 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1019
|
309 |
+
msgid "24 Hour Format"
|
310 |
+
msgstr "24 órás formátum"
|
311 |
+
|
312 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1021
|
313 |
+
msgid "None"
|
314 |
+
msgstr "Üres"
|
315 |
+
|
316 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1022
|
317 |
+
msgid "Email"
|
318 |
+
msgstr "Email"
|
319 |
+
|
320 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1023
|
321 |
+
msgid "URL"
|
322 |
+
msgstr "URL"
|
323 |
+
|
324 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1024
|
325 |
+
msgid "Date"
|
326 |
+
msgstr "Dátum"
|
327 |
+
|
328 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1025
|
329 |
+
msgid "Number"
|
330 |
+
msgstr "Szám"
|
331 |
+
|
332 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1026
|
333 |
+
msgid "Digits"
|
334 |
+
msgstr "Számok"
|
335 |
+
|
336 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1027
|
337 |
+
msgid "Phone"
|
338 |
+
msgstr "Telefon"
|
339 |
+
|
340 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1034
|
341 |
+
msgid "Required"
|
342 |
+
msgstr "Kötelező"
|
343 |
+
|
344 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1036
|
345 |
+
msgid "No"
|
346 |
+
msgstr "Nem"
|
347 |
+
|
348 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1037
|
349 |
+
msgid "Yes"
|
350 |
+
msgstr "Igen"
|
351 |
+
|
352 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1045
|
353 |
+
msgid "Size"
|
354 |
+
msgstr "Méret"
|
355 |
+
|
356 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1047
|
357 |
+
msgid "Medium"
|
358 |
+
msgstr "Közepes"
|
359 |
+
|
360 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1048
|
361 |
+
msgid "Large"
|
362 |
+
msgstr "Nagy"
|
363 |
+
|
364 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1055
|
365 |
+
msgid "Remove"
|
366 |
+
msgstr "Törlés"
|
367 |
+
|
368 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1383
|
369 |
+
msgid "Verification"
|
370 |
+
msgstr "Ellenőrzés"
|
371 |
+
|
372 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1387
|
373 |
+
msgid "Please enter any two digits with"
|
374 |
+
msgstr "Kérlek, írj be két tetszőleges számot"
|
375 |
+
|
376 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1387
|
377 |
+
msgid "no"
|
378 |
+
msgstr "szóköz"
|
379 |
+
|
380 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1387
|
381 |
+
msgid "spaces (Example: 12)"
|
382 |
+
msgstr "nélkül (Például: 12)"
|
383 |
+
|
384 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1394
|
385 |
+
msgid "This box is for spam protection"
|
386 |
+
msgstr "Ez a mező a spam robotok ellen véd"
|
387 |
+
|
388 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1394
|
389 |
+
msgid "please leave it blank"
|
390 |
+
msgstr "kérlek, hagyd üresen"
|
391 |
+
|
392 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1401
|
393 |
+
msgid "Submit"
|
394 |
+
msgstr "Küldés"
|
395 |
+
|
396 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1427
|
397 |
+
msgid "Security check"
|
398 |
+
msgstr "Biztonsági ellenőrzés"
|
399 |
+
|
400 |
+
#: /Applications/MAMP/htdocs/wp3/wp-content/plugins/visual-form-builder/visual-form-builder.php:1589
|
401 |
+
msgid "Ooops! Looks like you have failed the security validation for this form. Please go back and try again."
|
402 |
+
msgstr "Hoppááá! Úgy tűnik, nem sikerült a biztonsági ellenőrzés. Kérlek, próbáld újra."
|
403 |
+
|
{langauges → languages}/visual-form-builder.pot
RENAMED
File without changes
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=G87A9
|
|
4 |
Tags: form, forms, contact form, form to email, email form, email, input, validation, jquery, shortcode
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag:
|
8 |
|
9 |
Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
10 |
|
@@ -173,6 +173,15 @@ To Export Selected:
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
**Version 1.9.2**
|
177 |
|
178 |
* Bug fix for copied forms with nested fields
|
@@ -269,6 +278,9 @@ To Export Selected:
|
|
269 |
|
270 |
== Upgrade Notice ==
|
271 |
|
|
|
|
|
|
|
272 |
= 1.9.2 =
|
273 |
Bug fix for copied form with nested fields.
|
274 |
|
4 |
Tags: form, forms, contact form, form to email, email form, email, input, validation, jquery, shortcode
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 2.0
|
8 |
|
9 |
Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
10 |
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
**Version 2.0**
|
177 |
+
|
178 |
+
* Fix bug for misspelled languages folder
|
179 |
+
* Fix bug for slashes appearing in email and admin
|
180 |
+
* Fix bug for misaligned rows in CSV export
|
181 |
+
* Update admin notices functionality
|
182 |
+
* Update the way Addresses were handled during email
|
183 |
+
* Add Hungarian translation
|
184 |
+
|
185 |
**Version 1.9.2**
|
186 |
|
187 |
* Bug fix for copied forms with nested fields
|
278 |
|
279 |
== Upgrade Notice ==
|
280 |
|
281 |
+
= 2.0 =
|
282 |
+
Bug fix misaligned rows in CSV export, misspelled languages folder, and slashes appearing in emails and admin. Other minor improvements.
|
283 |
+
|
284 |
= 1.9.2 =
|
285 |
Bug fix for copied form with nested fields.
|
286 |
|
visual-form-builder.php
CHANGED
@@ -3,7 +3,8 @@
|
|
3 |
Plugin Name: Visual Form Builder
|
4 |
Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
5 |
Author: Matthew Muro
|
6 |
-
|
|
|
7 |
*/
|
8 |
|
9 |
/*
|
@@ -27,7 +28,7 @@ $visual_form_builder = new Visual_Form_Builder();
|
|
27 |
/* Restrict Categories class */
|
28 |
class Visual_Form_Builder{
|
29 |
|
30 |
-
|
31 |
|
32 |
public function __construct(){
|
33 |
global $wpdb;
|
@@ -78,6 +79,9 @@ class Visual_Form_Builder{
|
|
78 |
/* Load the jQuery and CSS we need if we're on our plugin page */
|
79 |
add_action( 'load-settings_page_visual-form-builder', array( &$this, 'form_admin_scripts' ) );
|
80 |
add_action( 'load-settings_page_visual-form-builder', array( &$this, 'form_admin_css' ) );
|
|
|
|
|
|
|
81 |
}
|
82 |
|
83 |
add_shortcode( 'vfb', array( &$this, 'form_code' ) );
|
@@ -102,6 +106,31 @@ class Visual_Form_Builder{
|
|
102 |
require_once( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'class-entries-detail.php' );
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
/**
|
106 |
* Register contextual help. This is for the Help tab dropdown
|
107 |
*
|
@@ -303,9 +332,7 @@ class Visual_Form_Builder{
|
|
303 |
/* Create or Update database tables */
|
304 |
dbDelta( $field_sql );
|
305 |
dbDelta( $form_sql );
|
306 |
-
dbDelta( $entries_sql );
|
307 |
-
|
308 |
-
|
309 |
}
|
310 |
|
311 |
/**
|
@@ -444,7 +471,7 @@ class Visual_Form_Builder{
|
|
444 |
case 'update_form' :
|
445 |
|
446 |
$form_id = absint( $_REQUEST['form_id'] );
|
447 |
-
$form_key = sanitize_title( $_REQUEST['form_title'] );
|
448 |
$form_title = esc_html( $_REQUEST['form_title'] );
|
449 |
$form_subject = esc_html( $_REQUEST['form_email_subject'] );
|
450 |
$form_to = serialize( array_map( 'esc_html', $_REQUEST['form_email_to'] ) );
|
@@ -576,9 +603,6 @@ class Visual_Form_Builder{
|
|
576 |
}
|
577 |
}
|
578 |
|
579 |
-
/* Set message to display */
|
580 |
-
$this->message = sprintf( __( '<div id="message" class="updated"><p>The <strong>%s</strong> form has been updated.</p></div>' , 'visual-form-builder'), $form_title );
|
581 |
-
|
582 |
break;
|
583 |
|
584 |
case 'delete_form' :
|
@@ -590,11 +614,8 @@ class Visual_Form_Builder{
|
|
590 |
$wpdb->query( $wpdb->prepare( "DELETE FROM $this->form_table_name WHERE form_id = %d", $id ) );
|
591 |
$wpdb->query( $wpdb->prepare( "DELETE FROM $this->field_table_name WHERE form_id = %d", $id ) );
|
592 |
|
593 |
-
/* Set message to display */
|
594 |
-
$this->message = '<div id="message" class="updated"><p>This form has been deleted.</p></div>';
|
595 |
-
|
596 |
/* Redirect to keep the URL clean (use AJAX in the future?) */
|
597 |
-
wp_redirect( 'options-general.php?page=visual-form-builder' );
|
598 |
exit();
|
599 |
|
600 |
break;
|
@@ -677,13 +698,6 @@ class Visual_Form_Builder{
|
|
677 |
$wpdb->update( $this->field_table_name, array( 'field_parent' => $v ), array( 'form_id' => $new_form_selected, 'field_parent' => $k ) );
|
678 |
}
|
679 |
|
680 |
-
/* Set message to display */
|
681 |
-
$this->message = '<div id="message" class="updated"><p>This form has been copied.</p></div>';
|
682 |
-
|
683 |
-
/* Redirect to keep the URL clean (use AJAX in the future?) */
|
684 |
-
wp_redirect( 'options-general.php?page=visual-form-builder&form=' . $new_form_selected );
|
685 |
-
exit();
|
686 |
-
|
687 |
break;
|
688 |
}
|
689 |
}
|
@@ -875,7 +889,7 @@ class Visual_Form_Builder{
|
|
875 |
<li id="form_item_<?php echo $field->field_id; ?>" class="form-item<?php echo ( $field->field_type == 'submit' ) ? ' ui-state-disabled' : ''; ?><?php echo ( !in_array( $field->field_type, array( 'fieldset', 'section' ) ) ) ? ' ui-nestedSortable-no-nesting' : ''; ?>">
|
876 |
<dl class="menu-item-bar">
|
877 |
<dt class="menu-item-handle<?php echo ( $field->field_type == 'fieldset' ) ? ' fieldset' : ''; ?>">
|
878 |
-
<span class="item-title"><?php echo stripslashes(
|
879 |
<span class="item-controls">
|
880 |
<span class="item-type"><?php echo strtoupper( str_replace( '-', ' ', $field->field_type ) ); ?></span>
|
881 |
<a href="#" title="<?php _e( 'Edit Field Item' , 'visual-form-builder'); ?>" id="edit-<?php echo $field->field_id; ?>" class="item-edit"><?php _e( 'Edit Field Item' , 'visual-form-builder'); ?></a>
|
@@ -897,7 +911,7 @@ class Visual_Form_Builder{
|
|
897 |
<p class="description description-wide">
|
898 |
<label for="edit-form-item-name-<?php echo $field->field_id; ?>">
|
899 |
<?php _e( 'Name' , 'visual-form-builder'); ?><br />
|
900 |
-
<input type="text" value="<?php echo stripslashes(
|
901 |
</label>
|
902 |
</p>
|
903 |
<p class="description description-wide">
|
@@ -908,7 +922,7 @@ class Visual_Form_Builder{
|
|
908 |
<p class="description description-wide">
|
909 |
<label for="edit-form-item-css-<?php echo $field->field_id; ?>">
|
910 |
<?php _e( 'CSS Classes' , 'visual-form-builder'); ?><br />
|
911 |
-
<input type="text" value="<?php echo stripslashes(
|
912 |
</label>
|
913 |
</p>
|
914 |
|
@@ -918,7 +932,7 @@ class Visual_Form_Builder{
|
|
918 |
<p class="description description-wide">
|
919 |
<label for="edit-form-item-name-<?php echo $field->field_id; ?>">
|
920 |
<?php _e( 'Name' , 'visual-form-builder'); ?><br />
|
921 |
-
<input type="text" value="<?php echo stripslashes(
|
922 |
</label>
|
923 |
</p>
|
924 |
<?php if ( $field->field_type !== 'submit' ) : ?>
|
@@ -1018,7 +1032,7 @@ class Visual_Form_Builder{
|
|
1018 |
<p class="description description-wide">
|
1019 |
<label for="edit-form-item-css-<?php echo $field->field_id; ?>">
|
1020 |
<?php _e( 'CSS Classes' , 'visual-form-builder'); ?><br />
|
1021 |
-
<input type="text" value="<?php echo stripslashes(
|
1022 |
</label>
|
1023 |
</p>
|
1024 |
|
@@ -1263,7 +1277,7 @@ class Visual_Form_Builder{
|
|
1263 |
<!-- E-mail Subject -->
|
1264 |
<label for="form-email-subject" class="menu-name-label howto open-label">
|
1265 |
<span class="sender-labels"><?php _e( 'E-mail Subject' , 'visual-form-builder'); ?></span>
|
1266 |
-
<input type="text" value="<?php echo $form_subject; ?>" class="menu-name regular-text menu-item-textbox" id="form-email-subject" name="form_email_subject" />
|
1267 |
</label>
|
1268 |
<br class="clear" />
|
1269 |
|
@@ -1277,7 +1291,7 @@ class Visual_Form_Builder{
|
|
1277 |
<option value="" <?php selected( $form_email_from_name_override, '' ); ?>><?php _e( 'Select a required text field' , 'visual-form-builder'); ?></option>
|
1278 |
<?php
|
1279 |
foreach( $senders as $sender ) {
|
1280 |
-
echo '<option value="' . $sender->field_id . '"' . selected( $form_email_from_name_override, $sender->field_id ) . '>' . $sender->field_name . '</option>';
|
1281 |
}
|
1282 |
?>
|
1283 |
</select>
|
@@ -1293,7 +1307,7 @@ class Visual_Form_Builder{
|
|
1293 |
<option value="" <?php selected( $form_email_from_override, '' ); ?>><?php _e( 'Select a required text field with email validation' , 'visual-form-builder'); ?></option>
|
1294 |
<?php
|
1295 |
foreach( $emails as $email ) {
|
1296 |
-
echo '<option value="' . $email->field_id . '"' . selected( $form_email_from_override, $email->field_id ) . '>' . $email->field_name . '</option>';
|
1297 |
}
|
1298 |
?>
|
1299 |
</select>
|
@@ -1432,7 +1446,7 @@ class Visual_Form_Builder{
|
|
1432 |
<li><?php _e( 'When you have finished building your form, click the Save Form button.' , 'visual-form-builder'); ?></li>
|
1433 |
</ol>
|
1434 |
|
1435 |
-
<h3><?php _e( '
|
1436 |
<ol>
|
1437 |
<li><?php _e( 'Click on the Help tab at the top of this page.' , 'visual-form-builder'); ?></li>
|
1438 |
<li><a href="http://wordpress.org/extend/plugins/visual-form-builder/faq/">Visual Form Builder FAQ</a></li>
|
@@ -1448,6 +1462,27 @@ class Visual_Form_Builder{
|
|
1448 |
</li>
|
1449 |
</ul>
|
1450 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1451 |
<?php else :
|
1452 |
|
1453 |
if ( !empty( $form_nav_selected_id ) && $form_nav_selected_id !== '0' ) :
|
@@ -1825,7 +1860,7 @@ class Visual_Form_Builder{
|
|
1825 |
<h3>' . __( 'Verification' , 'visual-form-builder') . '</h3>
|
1826 |
</div>
|
1827 |
<ul class="section section-' . $count . '">
|
1828 |
-
<li>
|
1829 |
<label for="vfb-secret" class="desc">' . __( 'Please enter any two digits with' , 'visual-form-builder') . ' <strong>' . __( 'no' , 'visual-form-builder') . '</strong> ' . __( 'spaces (Example: 12)' , 'visual-form-builder') . '<span>*</span></label>
|
1830 |
<div>
|
1831 |
<input type="text" name="vfb-secret" id="vfb-secret" class="text medium" />
|
@@ -1839,7 +1874,7 @@ class Visual_Form_Builder{
|
|
1839 |
</div>
|
1840 |
</li>
|
1841 |
</div>
|
1842 |
-
<li>
|
1843 |
<input type="submit" name="visual-form-builder-submit" value="' . $submit . '" class="submit" id="sendmail" />
|
1844 |
</li>
|
1845 |
</ul>
|
@@ -1884,18 +1919,18 @@ class Visual_Form_Builder{
|
|
1884 |
|
1885 |
/* Get sender and email details */
|
1886 |
foreach ( $forms as $form ) {
|
1887 |
-
$form_title = $form->form_title;
|
1888 |
-
$form_subject = $form->form_email_subject;
|
1889 |
$form_to = ( is_array( unserialize( $form->form_email_to ) ) ) ? unserialize( $form->form_email_to ) : explode( ',', unserialize( $form->form_email_to ) );
|
1890 |
-
$form_from = $form->form_email_from;
|
1891 |
-
$form_from_name = $form->form_email_from_name;
|
1892 |
-
$form_notification_setting = $form->form_notification_setting;
|
1893 |
-
$form_notification_email_name = $form->form_notification_email_name;
|
1894 |
-
$form_notification_email_from = $form->form_notification_email_from;
|
1895 |
-
$form_notification_email = $form->form_notification_email;
|
1896 |
-
$form_notification_subject = $form->form_notification_subject;
|
1897 |
-
$form_notification_message = $form->form_notification_message;
|
1898 |
-
$form_notification_entry = $form->form_notification_entry;
|
1899 |
}
|
1900 |
|
1901 |
/* Sender name override query */
|
@@ -1969,9 +2004,13 @@ class Visual_Form_Builder{
|
|
1969 |
'value' => $uploaded_file['url']
|
1970 |
);
|
1971 |
|
1972 |
-
$message .= '<tr><td><strong>' . $field->field_name . ': </strong></td><td><a href="' . $uploaded_file['url'] . '">' . $uploaded_file['url'] . '</a></td></tr>';
|
1973 |
}
|
1974 |
}
|
|
|
|
|
|
|
|
|
1975 |
}
|
1976 |
/* Everything else */
|
1977 |
else {
|
@@ -1981,22 +2020,59 @@ class Visual_Form_Builder{
|
|
1981 |
if ( is_array( $value ) && array_key_exists( 'hour', $value ) && array_key_exists( 'min', $value ) )
|
1982 |
$value = ( array_key_exists( 'ampm', $value ) ) ? substr_replace( implode( ':', $value ), ' ', 5, 1 ) : implode( ':', $value );
|
1983 |
/* If address field, build proper output */
|
1984 |
-
elseif ( is_array( $value ) && array_key_exists( 'address', $value ) && array_key_exists( 'address-2', $value ) )
|
1985 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1986 |
/* If multiple values, build the list */
|
1987 |
elseif ( is_array( $value ) )
|
1988 |
$value = implode( ', ', $value );
|
1989 |
/* Lastly, handle single values */
|
1990 |
else
|
1991 |
-
$value = esc_html( $value );
|
1992 |
|
1993 |
if ( $field->field_type !== 'submit' ) {
|
1994 |
if ( $field->field_type == 'fieldset' )
|
1995 |
-
$message .= '<tr style="background-color:#393E40;color:white;font-size:14px;"><td colspan="2">' . $field->field_name . '</td></tr>';
|
1996 |
elseif ( $field->field_type == 'section' )
|
1997 |
-
$message .= '<tr style="background-color:#6E7273;color:white;font-size:14px;"><td colspan="2">' . $field->field_name . '</td></tr>';
|
1998 |
else
|
1999 |
-
$message .= '<tr><td><strong>' . $field->field_name . ': </strong></td><td>' . $value . '</td></tr>';
|
2000 |
}
|
2001 |
|
2002 |
$data[] = array(
|
@@ -2030,7 +2106,7 @@ class Visual_Form_Builder{
|
|
2030 |
$message .= '</table></body></html>';
|
2031 |
|
2032 |
/* Initialize header filter vars */
|
2033 |
-
$this->header_from_name = $form_from_name;
|
2034 |
$this->header_from = $form_from;
|
2035 |
$this->header_content_type = 'text/html';
|
2036 |
|
@@ -2056,7 +2132,7 @@ class Visual_Form_Builder{
|
|
2056 |
if ( $form_notification_setting !== '' ) :
|
2057 |
|
2058 |
/* Assign notify header filter vars */
|
2059 |
-
$this->header_from_name = $form_notification_email_name;
|
2060 |
$this->header_from = $form_notification_email_from;
|
2061 |
|
2062 |
/* Set the wp_mail header filters for notification email */
|
3 |
Plugin Name: Visual Form Builder
|
4 |
Description: Dynamically build forms using a simple interface. Forms include jQuery validation, a basic logic-based verification system, and entry tracking.
|
5 |
Author: Matthew Muro
|
6 |
+
Author URI: http://matthewmuro.com
|
7 |
+
Version: 2.0
|
8 |
*/
|
9 |
|
10 |
/*
|
28 |
/* Restrict Categories class */
|
29 |
class Visual_Form_Builder{
|
30 |
|
31 |
+
protected $vfb_db_version = '2.0';
|
32 |
|
33 |
public function __construct(){
|
34 |
global $wpdb;
|
79 |
/* Load the jQuery and CSS we need if we're on our plugin page */
|
80 |
add_action( 'load-settings_page_visual-form-builder', array( &$this, 'form_admin_scripts' ) );
|
81 |
add_action( 'load-settings_page_visual-form-builder', array( &$this, 'form_admin_css' ) );
|
82 |
+
|
83 |
+
/* Display update messages */
|
84 |
+
add_action('admin_notices', array( &$this, 'admin_notices' ) );
|
85 |
}
|
86 |
|
87 |
add_shortcode( 'vfb', array( &$this, 'form_code' ) );
|
106 |
require_once( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'class-entries-detail.php' );
|
107 |
}
|
108 |
|
109 |
+
/**
|
110 |
+
* Display admin notices
|
111 |
+
*
|
112 |
+
* @since 1.0
|
113 |
+
*/
|
114 |
+
public function admin_notices(){
|
115 |
+
if ( isset( $_REQUEST['action'] ) ) {
|
116 |
+
switch( $_REQUEST['action'] ) {
|
117 |
+
case 'create_form' :
|
118 |
+
echo __( '<div id="message" class="updated"><p>The form has been successfully created.</p></div>' , 'visual-form-builder');
|
119 |
+
break;
|
120 |
+
case 'update_form' :
|
121 |
+
echo sprintf( __( '<div id="message" class="updated"><p>The <strong>%s</strong> form has been updated.</p></div>' , 'visual-form-builder'), stripslashes( $_REQUEST['form_title'] ) );
|
122 |
+
break;
|
123 |
+
case 'deleted' :
|
124 |
+
echo __( '<div id="message" class="updated"><p>The form has been successfully deleted.</p></div>' , 'visual-form-builder');
|
125 |
+
break;
|
126 |
+
case 'copy_form' :
|
127 |
+
echo __( '<div id="message" class="updated"><p>The form has been successfully duplicated.</p></div>' , 'visual-form-builder');
|
128 |
+
break;
|
129 |
+
}
|
130 |
+
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
/**
|
135 |
* Register contextual help. This is for the Help tab dropdown
|
136 |
*
|
332 |
/* Create or Update database tables */
|
333 |
dbDelta( $field_sql );
|
334 |
dbDelta( $form_sql );
|
335 |
+
dbDelta( $entries_sql );
|
|
|
|
|
336 |
}
|
337 |
|
338 |
/**
|
471 |
case 'update_form' :
|
472 |
|
473 |
$form_id = absint( $_REQUEST['form_id'] );
|
474 |
+
$form_key = sanitize_title( $_REQUEST['form_title'], $form_id );
|
475 |
$form_title = esc_html( $_REQUEST['form_title'] );
|
476 |
$form_subject = esc_html( $_REQUEST['form_email_subject'] );
|
477 |
$form_to = serialize( array_map( 'esc_html', $_REQUEST['form_email_to'] ) );
|
603 |
}
|
604 |
}
|
605 |
|
|
|
|
|
|
|
606 |
break;
|
607 |
|
608 |
case 'delete_form' :
|
614 |
$wpdb->query( $wpdb->prepare( "DELETE FROM $this->form_table_name WHERE form_id = %d", $id ) );
|
615 |
$wpdb->query( $wpdb->prepare( "DELETE FROM $this->field_table_name WHERE form_id = %d", $id ) );
|
616 |
|
|
|
|
|
|
|
617 |
/* Redirect to keep the URL clean (use AJAX in the future?) */
|
618 |
+
wp_redirect( add_query_arg( 'action', 'deleted', 'options-general.php?page=visual-form-builder' ) );
|
619 |
exit();
|
620 |
|
621 |
break;
|
698 |
$wpdb->update( $this->field_table_name, array( 'field_parent' => $v ), array( 'form_id' => $new_form_selected, 'field_parent' => $k ) );
|
699 |
}
|
700 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
701 |
break;
|
702 |
}
|
703 |
}
|
889 |
<li id="form_item_<?php echo $field->field_id; ?>" class="form-item<?php echo ( $field->field_type == 'submit' ) ? ' ui-state-disabled' : ''; ?><?php echo ( !in_array( $field->field_type, array( 'fieldset', 'section' ) ) ) ? ' ui-nestedSortable-no-nesting' : ''; ?>">
|
890 |
<dl class="menu-item-bar">
|
891 |
<dt class="menu-item-handle<?php echo ( $field->field_type == 'fieldset' ) ? ' fieldset' : ''; ?>">
|
892 |
+
<span class="item-title"><?php echo stripslashes( htmlspecialchars_decode( $field->field_name ) ); ?><?php echo ( $field->field_required == 'yes' ) ? ' <span class="is-field-required">*</span>' : ''; ?></span>
|
893 |
<span class="item-controls">
|
894 |
<span class="item-type"><?php echo strtoupper( str_replace( '-', ' ', $field->field_type ) ); ?></span>
|
895 |
<a href="#" title="<?php _e( 'Edit Field Item' , 'visual-form-builder'); ?>" id="edit-<?php echo $field->field_id; ?>" class="item-edit"><?php _e( 'Edit Field Item' , 'visual-form-builder'); ?></a>
|
911 |
<p class="description description-wide">
|
912 |
<label for="edit-form-item-name-<?php echo $field->field_id; ?>">
|
913 |
<?php _e( 'Name' , 'visual-form-builder'); ?><br />
|
914 |
+
<input type="text" value="<?php echo stripslashes( htmlspecialchars_decode( $field->field_name ) ); ?>" name="field_name-<?php echo $field->field_id; ?>" class="widefat" id="edit-form-item-name-<?php echo $field->field_id; ?>" />
|
915 |
</label>
|
916 |
</p>
|
917 |
<p class="description description-wide">
|
922 |
<p class="description description-wide">
|
923 |
<label for="edit-form-item-css-<?php echo $field->field_id; ?>">
|
924 |
<?php _e( 'CSS Classes' , 'visual-form-builder'); ?><br />
|
925 |
+
<input type="text" value="<?php echo stripslashes( htmlspecialchars_decode( $field->field_css ) ); ?>" name="field_css-<?php echo $field->field_id; ?>" class="widefat" id="edit-form-item-css-<?php echo $field->field_id; ?>" />
|
926 |
</label>
|
927 |
</p>
|
928 |
|
932 |
<p class="description description-wide">
|
933 |
<label for="edit-form-item-name-<?php echo $field->field_id; ?>">
|
934 |
<?php _e( 'Name' , 'visual-form-builder'); ?><br />
|
935 |
+
<input type="text" value="<?php echo stripslashes( htmlspecialchars_decode( $field->field_name ) ); ?>" name="field_name-<?php echo $field->field_id; ?>" class="widefat" id="edit-form-item-name-<?php echo $field->field_id; ?>" />
|
936 |
</label>
|
937 |
</p>
|
938 |
<?php if ( $field->field_type !== 'submit' ) : ?>
|
1032 |
<p class="description description-wide">
|
1033 |
<label for="edit-form-item-css-<?php echo $field->field_id; ?>">
|
1034 |
<?php _e( 'CSS Classes' , 'visual-form-builder'); ?><br />
|
1035 |
+
<input type="text" value="<?php echo stripslashes( htmlspecialchars_decode( $field->field_css ) ); ?>" name="field_css-<?php echo $field->field_id; ?>" class="widefat" id="edit-form-item-css-<?php echo $field->field_id; ?>" />
|
1036 |
</label>
|
1037 |
</p>
|
1038 |
|
1277 |
<!-- E-mail Subject -->
|
1278 |
<label for="form-email-subject" class="menu-name-label howto open-label">
|
1279 |
<span class="sender-labels"><?php _e( 'E-mail Subject' , 'visual-form-builder'); ?></span>
|
1280 |
+
<input type="text" value="<?php echo stripslashes( $form_subject ); ?>" class="menu-name regular-text menu-item-textbox" id="form-email-subject" name="form_email_subject" />
|
1281 |
</label>
|
1282 |
<br class="clear" />
|
1283 |
|
1291 |
<option value="" <?php selected( $form_email_from_name_override, '' ); ?>><?php _e( 'Select a required text field' , 'visual-form-builder'); ?></option>
|
1292 |
<?php
|
1293 |
foreach( $senders as $sender ) {
|
1294 |
+
echo '<option value="' . $sender->field_id . '"' . selected( $form_email_from_name_override, $sender->field_id ) . '>' . stripslashes( $sender->field_name ) . '</option>';
|
1295 |
}
|
1296 |
?>
|
1297 |
</select>
|
1307 |
<option value="" <?php selected( $form_email_from_override, '' ); ?>><?php _e( 'Select a required text field with email validation' , 'visual-form-builder'); ?></option>
|
1308 |
<?php
|
1309 |
foreach( $emails as $email ) {
|
1310 |
+
echo '<option value="' . $email->field_id . '"' . selected( $form_email_from_override, $email->field_id ) . '>' . stripslashes( $email->field_name ) . '</option>';
|
1311 |
}
|
1312 |
?>
|
1313 |
</select>
|
1446 |
<li><?php _e( 'When you have finished building your form, click the Save Form button.' , 'visual-form-builder'); ?></li>
|
1447 |
</ol>
|
1448 |
|
1449 |
+
<h3><?php _e( 'Need more help?' , 'visual-form-builder'); ?></h3>
|
1450 |
<ol>
|
1451 |
<li><?php _e( 'Click on the Help tab at the top of this page.' , 'visual-form-builder'); ?></li>
|
1452 |
<li><a href="http://wordpress.org/extend/plugins/visual-form-builder/faq/">Visual Form Builder FAQ</a></li>
|
1462 |
</li>
|
1463 |
</ul>
|
1464 |
</div>
|
1465 |
+
<div class="vfb-pro-upgrade">
|
1466 |
+
<h3>Upgrade to <a href="http://vfb.matthewmuro.com">Visual Form Builder Pro</a> for only $10</h3>
|
1467 |
+
<p>Attention Visual Form Builder users! I am happy to announce <a href="http://vfb.matthewmuro.com">Visual Form Builder Pro</a>, available now for only <strong>$10</strong>.</p>
|
1468 |
+
<h3><?php _e( 'New Features of Visual Form Builder Pro' , 'visual-form-builder'); ?></h3>
|
1469 |
+
<ul>
|
1470 |
+
<li><?php _e( '10 new Form Fields (Username, Password, Color Picker, Autocomplete, and more)' , 'visual-form-builder'); ?></li>
|
1471 |
+
<li><?php _e( 'Edit and Update Entries' , 'visual-form-builder'); ?></li>
|
1472 |
+
<li><?php _e( 'Quality HTML Email Template' , 'visual-form-builder'); ?></li>
|
1473 |
+
<li><?php _e( 'Email Designer' , 'visual-form-builder'); ?></li>
|
1474 |
+
<li><?php _e( 'Analytics' , 'visual-form-builder'); ?></li>
|
1475 |
+
<li><?php _e( 'Data & Form Migration' , 'visual-form-builder'); ?></li>
|
1476 |
+
<li><?php _e( 'PayPal Integration' , 'visual-form-builder'); ?></li>
|
1477 |
+
<li><?php _e( 'Form Paging' , 'visual-form-builder'); ?></li>
|
1478 |
+
<li><?php _e( 'No License Key' , 'visual-form-builder'); ?></li>
|
1479 |
+
<li><?php _e( 'Unlimited Use' , 'visual-form-builder'); ?></li>
|
1480 |
+
<li><?php _e( 'Automatic Updates' , 'visual-form-builder'); ?></li>
|
1481 |
+
</ul>
|
1482 |
+
|
1483 |
+
<p><a href="http://matthewmuro.com/2012/02/07/introducing-visual-form-builder-pro/"><?php _e( 'Learn more about some of these features' , 'visual-form-builder'); ?></a>.</p>
|
1484 |
+
<p class="vfb-pro-call-to-action"><a href="http://visualformbuilder.fetchapp.com/sell/dahdaeng"><span class="cta-sign-up"><?php _e( 'Buy Now' , 'visual-form-builder'); ?></span><span class="cta-price"><?php _e( 'Only $10' , 'visual-form-builder'); ?></span></a></p>
|
1485 |
+
</div>
|
1486 |
<?php else :
|
1487 |
|
1488 |
if ( !empty( $form_nav_selected_id ) && $form_nav_selected_id !== '0' ) :
|
1860 |
<h3>' . __( 'Verification' , 'visual-form-builder') . '</h3>
|
1861 |
</div>
|
1862 |
<ul class="section section-' . $count . '">
|
1863 |
+
<li class="item item-text">
|
1864 |
<label for="vfb-secret" class="desc">' . __( 'Please enter any two digits with' , 'visual-form-builder') . ' <strong>' . __( 'no' , 'visual-form-builder') . '</strong> ' . __( 'spaces (Example: 12)' , 'visual-form-builder') . '<span>*</span></label>
|
1865 |
<div>
|
1866 |
<input type="text" name="vfb-secret" id="vfb-secret" class="text medium" />
|
1874 |
</div>
|
1875 |
</li>
|
1876 |
</div>
|
1877 |
+
<li class="item item-submit">
|
1878 |
<input type="submit" name="visual-form-builder-submit" value="' . $submit . '" class="submit" id="sendmail" />
|
1879 |
</li>
|
1880 |
</ul>
|
1919 |
|
1920 |
/* Get sender and email details */
|
1921 |
foreach ( $forms as $form ) {
|
1922 |
+
$form_title = stripslashes( html_entity_decode( $form->form_title, ENT_QUOTES, 'UTF-8' ) );
|
1923 |
+
$form_subject = stripslashes( html_entity_decode( $form->form_email_subject, ENT_QUOTES, 'UTF-8' ) );
|
1924 |
$form_to = ( is_array( unserialize( $form->form_email_to ) ) ) ? unserialize( $form->form_email_to ) : explode( ',', unserialize( $form->form_email_to ) );
|
1925 |
+
$form_from = stripslashes( $form->form_email_from );
|
1926 |
+
$form_from_name = stripslashes( $form->form_email_from_name );
|
1927 |
+
$form_notification_setting = stripslashes( $form->form_notification_setting );
|
1928 |
+
$form_notification_email_name = stripslashes( $form->form_notification_email_name );
|
1929 |
+
$form_notification_email_from = stripslashes( $form->form_notification_email_from );
|
1930 |
+
$form_notification_email = stripslashes( $form->form_notification_email );
|
1931 |
+
$form_notification_subject = stripslashes( $form->form_notification_subject );
|
1932 |
+
$form_notification_message = stripslashes( $form->form_notification_message );
|
1933 |
+
$form_notification_entry = stripslashes( $form->form_notification_entry );
|
1934 |
}
|
1935 |
|
1936 |
/* Sender name override query */
|
2004 |
'value' => $uploaded_file['url']
|
2005 |
);
|
2006 |
|
2007 |
+
$message .= '<tr><td><strong>' . stripslashes( $field->field_name ) . ': </strong></td><td><a href="' . $uploaded_file['url'] . '">' . $uploaded_file['url'] . '</a></td></tr>';
|
2008 |
}
|
2009 |
}
|
2010 |
+
else {
|
2011 |
+
$value = $_POST[ 'vfb-' . $field->field_key . '-' . $field->field_id ];
|
2012 |
+
$message .= '<tr><td><strong>' . stripslashes( $field->field_name ) . ': </strong></td><td>' . $value . '</td></tr>';
|
2013 |
+
}
|
2014 |
}
|
2015 |
/* Everything else */
|
2016 |
else {
|
2020 |
if ( is_array( $value ) && array_key_exists( 'hour', $value ) && array_key_exists( 'min', $value ) )
|
2021 |
$value = ( array_key_exists( 'ampm', $value ) ) ? substr_replace( implode( ':', $value ), ' ', 5, 1 ) : implode( ':', $value );
|
2022 |
/* If address field, build proper output */
|
2023 |
+
elseif ( is_array( $value ) && array_key_exists( 'address', $value ) && array_key_exists( 'address-2', $value ) ) {
|
2024 |
+
$address = '';
|
2025 |
+
|
2026 |
+
if ( !empty( $value['address'] ) )
|
2027 |
+
$address .= $value['address'];
|
2028 |
+
|
2029 |
+
if ( !empty( $value['address-2'] ) ) {
|
2030 |
+
if ( !empty( $address ) )
|
2031 |
+
$address .= '<br>';
|
2032 |
+
$address .= $value['address-2'];
|
2033 |
+
}
|
2034 |
+
|
2035 |
+
if ( !empty( $value['city'] ) ) {
|
2036 |
+
if ( !empty( $address ) )
|
2037 |
+
$address .= '<br>';
|
2038 |
+
$address .= $value['city'];
|
2039 |
+
}
|
2040 |
+
if ( !empty( $value['state'] ) ) {
|
2041 |
+
if ( !empty( $address ) && empty( $value['city'] ) )
|
2042 |
+
$address .= '<br>';
|
2043 |
+
else if ( !empty( $address ) && !empty( $value['city'] ) )
|
2044 |
+
$address .= ', ';
|
2045 |
+
$address .= $value['state'];
|
2046 |
+
}
|
2047 |
+
if ( !empty( $value['zip'] ) ) {
|
2048 |
+
if ( !empty( $address ) && ( empty( $value['city'] ) && empty( $value['state'] ) ) )
|
2049 |
+
$address .= '<br>';
|
2050 |
+
else if ( !empty( $address ) && ( !empty( $value['city'] ) || !empty( $value['state'] ) ) )
|
2051 |
+
$address .= '. ';
|
2052 |
+
$address .= $value['zip'];
|
2053 |
+
}
|
2054 |
+
if ( !empty( $value['country'] ) ) {
|
2055 |
+
if ( !empty( $address ) )
|
2056 |
+
$address .= '<br>';
|
2057 |
+
$address .= $value['country'];
|
2058 |
+
}
|
2059 |
+
|
2060 |
+
$value = $address;
|
2061 |
+
}
|
2062 |
/* If multiple values, build the list */
|
2063 |
elseif ( is_array( $value ) )
|
2064 |
$value = implode( ', ', $value );
|
2065 |
/* Lastly, handle single values */
|
2066 |
else
|
2067 |
+
$value = html_entity_decode( stripslashes( esc_html( $value ) ), ENT_QUOTES, 'UTF-8' );
|
2068 |
|
2069 |
if ( $field->field_type !== 'submit' ) {
|
2070 |
if ( $field->field_type == 'fieldset' )
|
2071 |
+
$message .= '<tr style="background-color:#393E40;color:white;font-size:14px;"><td colspan="2">' . stripslashes( $field->field_name ) . '</td></tr>';
|
2072 |
elseif ( $field->field_type == 'section' )
|
2073 |
+
$message .= '<tr style="background-color:#6E7273;color:white;font-size:14px;"><td colspan="2">' . stripslashes( $field->field_name ) . '</td></tr>';
|
2074 |
else
|
2075 |
+
$message .= '<tr><td><strong>' . stripslashes( $field->field_name ) . ': </strong></td><td>' . $value . '</td></tr>';
|
2076 |
}
|
2077 |
|
2078 |
$data[] = array(
|
2106 |
$message .= '</table></body></html>';
|
2107 |
|
2108 |
/* Initialize header filter vars */
|
2109 |
+
$this->header_from_name = stripslashes( $form_from_name );
|
2110 |
$this->header_from = $form_from;
|
2111 |
$this->header_content_type = 'text/html';
|
2112 |
|
2132 |
if ( $form_notification_setting !== '' ) :
|
2133 |
|
2134 |
/* Assign notify header filter vars */
|
2135 |
+
$this->header_from_name = stripslashes( $form_notification_email_name );
|
2136 |
$this->header_from = $form_notification_email_from;
|
2137 |
|
2138 |
/* Set the wp_mail header filters for notification email */
|