Plugin Directory

Changeset 2517384


Ignore:
Timestamp:
04/19/2021 07:41:07 AM (5 years ago)
Author:
prosolution
Message:

1.7.6

  • Fixed custom field option when there's only have one option
  • Fixed show client field setting when disable "enable recruitment"
Location:
prosolution-wp-client/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • prosolution-wp-client/trunk/README.txt

    r2471396 r2517384  
    66Tested up to: 4.9.5
    77Requires PHP: 5.6
    8 Stable tag: 1.7.5
     8Stable tag: 1.7.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68
     69= 1.7.6 =
     70* Fixed custom field option when there's only have one option
     71* Fixed show client field setting when disable "enable recruitment"
    6872
    6973= 1.7.5 =
  • prosolution-wp-client/trunk/admin/js/prosolwpclient-setting.js

    r2471396 r2517384  
    331331        });
    332332       
    333         if($('input#wpuf-prosolwpclient_frontend\\['+selsite+'enable_recruitment\\]').is(':checked')){
     333        if($('input#wpuf-prosolwpclient_frontend\\['+selsite+'enable_recruitment\\]').is(':checked')){         
    334334            $('.'+selsite+'client_list').show();
    335335            $('#prosolwpclient_designtemplate-tab').show();
     
    350350                $('#prosolwpclient_designtemplate\\['+selsite+'destemplate\\] option[value=1]').attr('selected','selected');
    351351                var gettext=$('#prosolwpclient_designtemplate\\['+selsite+'destemplate\\] option[value=1]').text();
    352                 if(selsite=='')selsite='_';
    353                 $('#prosolwpclient_designtemplate'+selsite+'destemplate__chosen .chosen-single span').text(gettext);
     352               
     353                if(selsite==''){
     354                    var tabsite='_';
     355                } else{
     356                    var tabsite=selsite;
     357                }   
     358                $('#prosolwpclient_designtemplate'+tabsite+'destemplate__chosen .chosen-single span').text(gettext);
    354359                $('#prosolwpclient_designtemplate\\['+selsite+'destemplate\\]').trigger('change');             
    355360            }
  • prosolution-wp-client/trunk/includes/class-prosolwpclient-helper.php

    r2460136 r2517384  
    4848                $getkey=array_keys($addsite);
    4949                $urlid_arr=array();
    50 
     50               
    5151                for($x=0;$x<=count($addsite);$x++){             
    5252                    $chkurlid=substr($getkey[$x],0,7);
     
    5959                    }                   
    6060                }
    61 
    6261                if(in_array($issite,$urlid_arr)){
    6362                    $chkkey=array_search($issite,$addsite);
  • prosolution-wp-client/trunk/includes/class-prosolwpclient-table-helper.php

    r2456188 r2517384  
    8585
    8686            $is_api_setup = CBXProSolWpClient_Helper::proSol_isApiSetup($selsite);
    87             $api_config   = CBXProSolWpClient_Helper::proSol_getApiConfig($selsite);
     87            $api_config   = CBXProSolWpClient_Helper::proSol_getApiConfig($selsite); 
    8888
    8989            if ( is_array( $header_info ) && sizeof( $header_info ) > 0 && $is_api_setup ) {
  • prosolution-wp-client/trunk/includes/class-setting.php

    r2471396 r2517384  
    756756
    757757            function proSol_callback_chkbox_recruitment( $args ) {
    758 
    759758                $value = esc_attr( $this->proSol_get_option( $args['id'], $args['section']) );
    760759
     
    889888               
    890889                $required = $args['required'] ? 'required' : '';
    891 
     890                // at first, policy 1 & 6 should be mandatory; keep coding for now
     891                // $getid= substr($args['id'],$pos-1,1);   
     892                // if($getid == "1" || $getid == "6"){
     893                //  $disabled = ' disabled ';   
     894                //  $value_checked=1;
     895                //  $checked=' checked ';
     896                // } else{
     897                //  $disabled =  '';
     898                // }
     899               
    892900                echo '<div style="max-width: ' . $size . ';">';
    893901
  • prosolution-wp-client/trunk/prosolwpclient.php

    r2471396 r2517384  
    1717     * Plugin URI:        https://prosolution.com/produkte-und-services/workexpert.html
    1818     * Description:       WordPress client for ProSolution
    19      * Version:           1.7.5
     19     * Version:           1.7.6
    2020     * Author:            ProSolution
    2121     * Author URI:        https://www.prosolution.com
     
    3939
    4040    defined('PROSOLWPCLIENT_PLUGIN_NAME') or define('PROSOLWPCLIENT_PLUGIN_NAME', 'prosolwpclient');
    41     defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.7.5');
     41    defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.7.6');
    4242    defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__));
    4343    defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__));
  • prosolution-wp-client/trunk/public/class-prosolwpclient-public.php

    r2471396 r2517384  
    776776                    'ext'         => $ext,
    777777                    'description' => $description,
     778                    'filesize'    => $filesize
    778779                );
    779780
     
    869870                    $default_office = $genset[$issite.'default_office'];
    870871                }
    871                  
     872
    872873                //for recruitment additional fields
    873874                if ( $genset[$issite.'enable_recruitment'] == 'on' ) {
     
    14291430
    14301431            }
    1431            
     1432            //var_dump($safe_data);
    14321433            if ( sizeof( $validation_errors ) > 0 ) {
    14331434
  • prosolution-wp-client/trunk/public/js/jquery.formtowizard.js

    r2460136 r2517384  
    169169            $('#' + stepName + 'commands').append($btn_content);
    170170
    171             $("#" + stepName + "Next").bind("click", function (e) {
     171            $("#" + stepName + "Next").bind("click", function (e) { 
    172172                if (options.validateBeforeNext(element, $("#" + stepName)) === true) {
    173173                    $("#" + stepName).hide();
    174174                    $("#step" + (i + 1)).show();
    175175                    //if (i + 2 == count)
     176                   
    176177                    selectStep(i + 1);
    177178                }
  • prosolution-wp-client/trunk/public/js/prosolwpclientpublic.js

    r2464169 r2517384  
    862862
    863863        $application_personal_info.find('#pswp-agree1').on('click', function () {
     864           
    864865            if($(this).is(':checked')){
    865866                countcheck++;
  • prosolution-wp-client/trunk/public/templates/prosolwpclientjobapply.php

    r2464169 r2517384  
    5555    $country_arr           = $wpdb->get_results( "SELECT * FROM $table_ps_country as country WHERE country.site_id='$siteid' ORDER BY country.name ASC", ARRAY_A );
    5656    $education_arr         = $wpdb->get_results( "SELECT * FROM $table_ps_education as education WHERE education.site_id='$siteid' ORDER BY education.name ASC", ARRAY_A );
     57
    5758    $isced_arr             = $wpdb->get_results( "SELECT * FROM $table_ps_isced as isced WHERE isced.site_id='$siteid' ORDER BY isced.name ASC", ARRAY_A );
    5859    $recruitmentsource_arr = $wpdb->get_results( "SELECT * FROM $table_ps_recruitmentsource as recruitmentsource WHERE recruitmentsource.site_id='$siteid' ORDER BY recruitmentsource.name ASC", ARRAY_A );
  • prosolution-wp-client/trunk/public/templates/singlefieldset/prosolwpclientjobapplicationpersonalinfo.php

    r2456188 r2517384  
    334334    </div>
    335335
    336     <!-- Recruitment fields -->
     336    <!-- Recruitment fields --> 
    337337    <?php if($genset[$issite.'enable_recruitment']=='on'){
    338         foreach ( $customfields_arr_values as $cf_option ) {
    339         //  $cf_objkey = array_keys($customfields_arr_values,$cf_option);
    340             //var_dump($cf_objkey);
    341         }   
     338        // foreach ( $customfields_arr_values as $cf_option ) {
     339        //  $cf_objkey = array_keys($customfields_arr_values,$cf_option);
     340        //  var_dump($cf_objkey);
     341        //}
    342342        foreach($customfields_arr_fields as $cf_field){
    343343            if(substr($cf_field, 0, 17) == 'Title_profileText' ){
     
    351351            } elseif (substr($cf_field, 0, 19) == 'Title_profileOption') {
    352352                $poindex=substr($cf_field, -1);
     353               
    353354    ?>
    354355                <div class="form-group <?php echo $field_opt[$cf_field][1] ?>"><label for="<?php echo $cf_field ?>"class="col-sm-3 control-label"><?php echo $customfields_arr_values[ $cf_field ]; echo $field_opt[$cf_field][2] ?></label>
    355356                    <div class="col-sm-9 error-msg-show">
    356357                        <select autocomplete="off"  class="form-control prosolwpclient-chosen-select" name="<?php echo $cf_field ?>" id="<?php echo $cf_field ?>" <?php echo $field_opt[$cf_field][3] ?> data-rule-required="true">
    357                             <?php
    358                                 foreach ( array_keys($customfields_arr_values) as $cf_key ) {
     358                           
     359                            <?php                               
     360                                foreach ( array_keys($customfields_arr_values) as $cf_key ) {
    359361                                    if($cf_key == 'Title_profileOptionValue'.$poindex){
    360                                         foreach($customfields_arr_values[$cf_key] as $cf_value){   
     362                                        if(count($customfields_arr_values[$cf_key])){
    361363                            ?>
    362                                             <option value="<?php echo $cf_value ?>"><?php echo $cf_value ?></option>
     364                                            <option value="<?php echo $customfields_arr_values[$cf_key] ?>"><?php echo $customfields_arr_values[$cf_key] ?></option>
     365                            <?php               
     366                                        } else {
     367                                            foreach($customfields_arr_values[$cf_key] as $cf_value){   
     368                            ?>
     369                                                <option value="<?php echo $cf_value ?>"><?php echo $cf_value ?></option>
    363370                            <?php
     371                                            }
    364372                                        }   
    365373                                    }
     
    388396        if($genset[$issite.'enable_recruitment'] == 'off' && $i == 6)break;
    389397        $man_agree = ($i == 1 || $i == 6) ? '*' : '';
    390         if($pol['policy'.$i.'_act'] == '1' ||  $pol['policy'.$i.'_act'] == '6'){
     398        if($pol[$issite.'policy'.$i.'_act'] == '1' ||  $pol[$issite.'policy'.$i.'_act'] == '6'){
    391399            $id = 'pswp-agree'.$i;
    392400            if($pstemplate!=1){
     
    394402                    <div class="form-group">
    395403                        <div class="col-lg-offset-3 col-lg-9">
    396                             <label class="checkbox-inline"><span style="margin-left:0.2em">%2$s %3$s</span>
     404                            <label class="checkbox-inline">
    397405                                <input name="%1$s" type="checkbox" value="0" id="%1$s">
     406                                <span style="margin-left:0.2em">%2$s %3$s</span>
    398407                                <span class="checkmark"></span>
    399408                            </label>
    400409                        </div>
    401410                    </div>
    402                 ',$id,$pol['policy'.$i],$man_agree);
     411                ',$id,$pol[$issite.'policy'.$i],$man_agree);
    403412            } else{
    404413                $html= sprintf('
     
    412421                        </div>
    413422                    </div>
    414                 ',$id,$pol['policy'.$i],$man_agree);
     423                ',$id,$pol[$issite.'policy'.$i],$man_agree);
    415424            }
    416425           
Note: See TracChangeset for help on using the changeset viewer.