Plugin Directory

Changeset 1671329


Ignore:
Timestamp:
06/05/2017 10:53:01 PM (9 years ago)
Author:
Engr.MTH
Message:

Committing version 1.2.0.3

Location:
forms-management-system-views-builder/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • forms-management-system-views-builder/trunk/classes/admin/FVB_View_Post_Type.php

    r1429728 r1671329  
    409409    public function get_the_fields_table( $fms_fields_setting, $val = '' ) {
    410410
     411        $correct_fields_order = array();
     412        for ($x = 1; $x <= 6; $x++) {
     413            foreach ( $fms_fields_setting as $index => $field ) {
     414                if( !isset($field['step']) ){
     415                    $correct_fields_order[$index] = $field;
     416                    continue;
     417                }
     418
     419                if((int)$field['step']==$x){
     420                    $correct_fields_order[]=$field;
     421                }
     422            }
     423        }
     424
     425        $fms_fields_setting = $correct_fields_order;
     426
    411427        $html = '<table class="fvb_fields_table table table-bordered">';
    412428        $html .= '<thead>';
  • forms-management-system-views-builder/trunk/classes/frontend/FVB_Core.php

    r1429728 r1671329  
    113113            'stepper'
    114114        );
     115        $text_fields = apply_filters('fvb_text_fields', $text_fields, $field, $view_settings );
    115116        $media_fields  = array( 'image_upload', 'file_upload' );
    116117        $custom_fields = array( 'radio_field', 'dropdown_field', 'multiple_select', 'checkbox_field', 'repeat_field' );
     
    166167            }
    167168            $html .= '</p>';
     169        } else {
     170            $html .= apply_filters( 'fvb_render_'.$field['template'], '', $field, $value, $view_settings );
    168171        }
    169172
  • forms-management-system-views-builder/trunk/fms-views-builder.php

    r1429750 r1671329  
    77  Plugin URI: http://mostasharoon.org
    88  Description: An easy way to display the custom fields at the frontend.
    9   Version: 1.2.0.1
     9  Version: 1.2.0.3
    1010  Author: Mohammed Thaer
    1111  Author URI: http://mostasharoon.org
     
    1313 */
    1414
    15 define( 'FVB_VERSION', '1.2.0.1' );
     15define( 'FVB_VERSION', '1.2.0.3' );
    1616
    1717/* ----------------------------------------------------------------------------------- */
     
    2727        return false;
    2828        //Check if FMS is old
    29     } elseif ( version_compare( FMS_VERSION, '2.6', '<' ) ) {
     29    } elseif ( version_compare( FMS_VERSION, '3.0', '<' ) ) {
    3030        add_action( 'admin_notices', 'fvb_old_fms_warning' );
    3131
     
    4747    ?>
    4848    <div class="message error">
    49         <p><?php printf( __( 'FMS Views Builder is enabled but not effective. It is not compatible with  <a href="%s">FMS</a> versions prior 2.6.', 'fvb' ),
     49        <p><?php printf( __( 'FMS Views Builder is enabled but not effective. It is not compatible with  <a href="%s">FMS</a> versions prior 3.0.', 'fvb' ),
    5050                'https://mostasharoon.org/wordpress/plugins/forms-management-system/' ); ?></p></div>
    5151    <?php
  • forms-management-system-views-builder/trunk/readme.txt

    r1429750 r1671329  
    44Tags: forms management system, visual builder, custom fields, custom post type, form, forms, mostasharoon,views
    55Requires at least: 3.5
    6 Tested up to: 4.5.2
    7 Stable tag: 1.2.0.1
     6Tested up to: 4.7.5
     7Stable tag: 1.2.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
     43= 1.2.0.3 =
     44* New: Adding new hooks
     45* Fix: Incorrect fields order issue
     46
     47= 1.2.0.2 =
     48* Fix: Incorrect fields order issue, caused by the new multi-step form feature.
     49
    4350= 1.2.0.1 =
    4451* Enhance: Update readme.txt file
Note: See TracChangeset for help on using the changeset viewer.