Changeset 2517384
- Timestamp:
- 04/19/2021 07:41:07 AM (5 years ago)
- Location:
- prosolution-wp-client/trunk
- Files:
-
- 11 edited
-
README.txt (modified) (2 diffs)
-
admin/js/prosolwpclient-setting.js (modified) (2 diffs)
-
includes/class-prosolwpclient-helper.php (modified) (2 diffs)
-
includes/class-prosolwpclient-table-helper.php (modified) (1 diff)
-
includes/class-setting.php (modified) (2 diffs)
-
prosolwpclient.php (modified) (2 diffs)
-
public/class-prosolwpclient-public.php (modified) (3 diffs)
-
public/js/jquery.formtowizard.js (modified) (1 diff)
-
public/js/prosolwpclientpublic.js (modified) (1 diff)
-
public/templates/prosolwpclientjobapply.php (modified) (1 diff)
-
public/templates/singlefieldset/prosolwpclientjobapplicationpersonalinfo.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
prosolution-wp-client/trunk/README.txt
r2471396 r2517384 6 6 Tested up to: 4.9.5 7 7 Requires PHP: 5.6 8 Stable tag: 1.7. 58 Stable tag: 1.7.6 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == 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" 68 72 69 73 = 1.7.5 = -
prosolution-wp-client/trunk/admin/js/prosolwpclient-setting.js
r2471396 r2517384 331 331 }); 332 332 333 if($('input#wpuf-prosolwpclient_frontend\\['+selsite+'enable_recruitment\\]').is(':checked')){ 333 if($('input#wpuf-prosolwpclient_frontend\\['+selsite+'enable_recruitment\\]').is(':checked')){ 334 334 $('.'+selsite+'client_list').show(); 335 335 $('#prosolwpclient_designtemplate-tab').show(); … … 350 350 $('#prosolwpclient_designtemplate\\['+selsite+'destemplate\\] option[value=1]').attr('selected','selected'); 351 351 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); 354 359 $('#prosolwpclient_designtemplate\\['+selsite+'destemplate\\]').trigger('change'); 355 360 } -
prosolution-wp-client/trunk/includes/class-prosolwpclient-helper.php
r2460136 r2517384 48 48 $getkey=array_keys($addsite); 49 49 $urlid_arr=array(); 50 50 51 51 for($x=0;$x<=count($addsite);$x++){ 52 52 $chkurlid=substr($getkey[$x],0,7); … … 59 59 } 60 60 } 61 62 61 if(in_array($issite,$urlid_arr)){ 63 62 $chkkey=array_search($issite,$addsite); -
prosolution-wp-client/trunk/includes/class-prosolwpclient-table-helper.php
r2456188 r2517384 85 85 86 86 $is_api_setup = CBXProSolWpClient_Helper::proSol_isApiSetup($selsite); 87 $api_config = CBXProSolWpClient_Helper::proSol_getApiConfig($selsite); 87 $api_config = CBXProSolWpClient_Helper::proSol_getApiConfig($selsite); 88 88 89 89 if ( is_array( $header_info ) && sizeof( $header_info ) > 0 && $is_api_setup ) { -
prosolution-wp-client/trunk/includes/class-setting.php
r2471396 r2517384 756 756 757 757 function proSol_callback_chkbox_recruitment( $args ) { 758 759 758 $value = esc_attr( $this->proSol_get_option( $args['id'], $args['section']) ); 760 759 … … 889 888 890 889 $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 892 900 echo '<div style="max-width: ' . $size . ';">'; 893 901 -
prosolution-wp-client/trunk/prosolwpclient.php
r2471396 r2517384 17 17 * Plugin URI: https://prosolution.com/produkte-und-services/workexpert.html 18 18 * Description: WordPress client for ProSolution 19 * Version: 1.7. 519 * Version: 1.7.6 20 20 * Author: ProSolution 21 21 * Author URI: https://www.prosolution.com … … 39 39 40 40 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'); 42 42 defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__)); 43 43 defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__)); -
prosolution-wp-client/trunk/public/class-prosolwpclient-public.php
r2471396 r2517384 776 776 'ext' => $ext, 777 777 'description' => $description, 778 'filesize' => $filesize 778 779 ); 779 780 … … 869 870 $default_office = $genset[$issite.'default_office']; 870 871 } 871 872 872 873 //for recruitment additional fields 873 874 if ( $genset[$issite.'enable_recruitment'] == 'on' ) { … … 1429 1430 1430 1431 } 1431 1432 //var_dump($safe_data); 1432 1433 if ( sizeof( $validation_errors ) > 0 ) { 1433 1434 -
prosolution-wp-client/trunk/public/js/jquery.formtowizard.js
r2460136 r2517384 169 169 $('#' + stepName + 'commands').append($btn_content); 170 170 171 $("#" + stepName + "Next").bind("click", function (e) { 171 $("#" + stepName + "Next").bind("click", function (e) { 172 172 if (options.validateBeforeNext(element, $("#" + stepName)) === true) { 173 173 $("#" + stepName).hide(); 174 174 $("#step" + (i + 1)).show(); 175 175 //if (i + 2 == count) 176 176 177 selectStep(i + 1); 177 178 } -
prosolution-wp-client/trunk/public/js/prosolwpclientpublic.js
r2464169 r2517384 862 862 863 863 $application_personal_info.find('#pswp-agree1').on('click', function () { 864 864 865 if($(this).is(':checked')){ 865 866 countcheck++; -
prosolution-wp-client/trunk/public/templates/prosolwpclientjobapply.php
r2464169 r2517384 55 55 $country_arr = $wpdb->get_results( "SELECT * FROM $table_ps_country as country WHERE country.site_id='$siteid' ORDER BY country.name ASC", ARRAY_A ); 56 56 $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 57 58 $isced_arr = $wpdb->get_results( "SELECT * FROM $table_ps_isced as isced WHERE isced.site_id='$siteid' ORDER BY isced.name ASC", ARRAY_A ); 58 59 $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 334 334 </div> 335 335 336 <!-- Recruitment fields --> 336 <!-- Recruitment fields --> 337 337 <?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 //} 342 342 foreach($customfields_arr_fields as $cf_field){ 343 343 if(substr($cf_field, 0, 17) == 'Title_profileText' ){ … … 351 351 } elseif (substr($cf_field, 0, 19) == 'Title_profileOption') { 352 352 $poindex=substr($cf_field, -1); 353 353 354 ?> 354 355 <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> 355 356 <div class="col-sm-9 error-msg-show"> 356 357 <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 ) { 359 361 if($cf_key == 'Title_profileOptionValue'.$poindex){ 360 foreach($customfields_arr_values[$cf_key] as $cf_value){362 if(count($customfields_arr_values[$cf_key])){ 361 363 ?> 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> 363 370 <?php 371 } 364 372 } 365 373 } … … 388 396 if($genset[$issite.'enable_recruitment'] == 'off' && $i == 6)break; 389 397 $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'){ 391 399 $id = 'pswp-agree'.$i; 392 400 if($pstemplate!=1){ … … 394 402 <div class="form-group"> 395 403 <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"> 397 405 <input name="%1$s" type="checkbox" value="0" id="%1$s"> 406 <span style="margin-left:0.2em">%2$s %3$s</span> 398 407 <span class="checkmark"></span> 399 408 </label> 400 409 </div> 401 410 </div> 402 ',$id,$pol[ 'policy'.$i],$man_agree);411 ',$id,$pol[$issite.'policy'.$i],$man_agree); 403 412 } else{ 404 413 $html= sprintf(' … … 412 421 </div> 413 422 </div> 414 ',$id,$pol[ 'policy'.$i],$man_agree);423 ',$id,$pol[$issite.'policy'.$i],$man_agree); 415 424 } 416 425
Note: See TracChangeset
for help on using the changeset viewer.