Skip to content

Commit

Permalink
import version 11.7.3
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/cforms2/trunk@1008248 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
bgermann committed Oct 16, 2014
1 parent 2e03224 commit 0bd526a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ____HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
Version History:
=====================================================================================

WHAT's NEW in cformsII - v11.7.3
*) bugfix: stalling of upload forms fixed (or ones with alternative form action)

WHAT's NEW in cformsII - v11.7.2
*) other: enhanced support for form field arrays, e.g. : my-field[id:address[]]
*) bugfix: fixed jQuery wizard editor error
Expand Down
9 changes: 6 additions & 3 deletions cforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
Plugin URI: http://www.deliciousdays.com/cforms-plugin
Description: cformsII offers unparalleled flexibility in deploying contact forms across your blog. Features include: comprehensive SPAM protection, Ajax support, Backup & Restore, Multi-Recipients, Role Manager support, Database tracking and many more. Please see ____HISTORY.txt for <strong>what's new</strong> and current <strong>bugfixes</strong>.
Author: Oliver Seidel
Version: 11.7.2
Version: 11.7.3
Author URI: http://www.deliciousdays.com
*/

global $localversion;
$localversion = '11.7.2';
$localversion = '11.7.3';

### debug messages
$cfdebug = false;
Expand Down Expand Up @@ -493,6 +493,7 @@ function cforms($args = '',$no = '') {
substr($cformsSettings['form'.$no]['cforms'.$no.'_showpos'],3,1)=="y" )?' id="li-'.$no.'-'.$i.'"':'';

### input field names & label
$isFieldArray = false;
if ( $cformsSettings['form'.$no]['cforms'.$no.'_customnames']=='1' ){

if ( strpos($field_name,'[id:')!==false ){
Expand Down Expand Up @@ -830,12 +831,14 @@ function cforms($args = '',$no = '') {
$checked = ' checked="checked"';
}

$brackets = $isFieldArray ? '' : '[]';

if ( $labelID<>'' ) $labelIDx = substr($labelID,0,-1) . $id . '"';

if ( $opt[0]=='' )
$field .= $nttt . $tab . '<br />';
else
$field .= $nttt . $tab . '<input' . $readonly.$disabled . ' type="checkbox" id="'. $input_id .'-'. $id . '" name="'. $input_name . '[]" value="'.$opt[1].'" '.$checked.' class="cf-box-b"'.$fieldTitle.'/>'.
$field .= $nttt . $tab . '<input' . $readonly.$disabled . ' type="checkbox" id="'. $input_id .'-'. $id . '" name="'. $input_name . $brackets .'" value="'.$opt[1].'" '.$checked.' class="cf-box-b"'.$fieldTitle.'/>'.
'<label' . $labelIDx . ' for="'. $input_id .'-'. ($id++) . '" class="cf-group-after"><span>'.$opt[0] . "</span></label>";

}
Expand Down
2 changes: 1 addition & 1 deletion js/cforms.js

Large diffs are not rendered by default.

Binary file removed js/cforms.zip
Binary file not shown.

0 comments on commit 0bd526a

Please sign in to comment.