Plugin Directory

Changeset 2456188


Ignore:
Timestamp:
01/14/2021 10:16:01 AM (5 years ago)
Author:
prosolution
Message:

1.7.1

  • Fixed frontend process when added url parameter siteid
  • Fixed additonal site, in admin site tab application form 1st Step when there is no Show following fields
  • Fixed pre-selected "Profession" at Application Form of Additional Sites
Location:
prosolution-wp-client/trunk
Files:
10 edited

Legend:

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

    r2454627 r2456188  
    66Tested up to: 4.9.5
    77Requires PHP: 5.6
    8 Stable tag: 1.7.0
     8Stable tag: 1.7.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666
    6767== Changelog ==
     68
     69= 1.7.1 =
     70* Fixed frontend process when added url parameter siteid
     71* Fixed additonal site, in admin site tab application form 1st Step when there is no Show following fields
     72* Fixed pre-selected "Profession" at Application Form of Additional Sites
    6873
    6974= 1.7.0 =
  • prosolution-wp-client/trunk/admin/js/prosolwpclient-setting.js

    r2454627 r2456188  
    498498        });
    499499
    500         function findSingleChecked(){
     500        function findSingleChecked(whichsite){
    501501            var isFindSingleChk = 1;
    502502            for (const [key, field] of Object.entries(fields_section)) {
    503                 if($(idAppForm+'\\['+key+'_act\\]').val() == 1 && key !='personaldata' && key !='education' && key !='workexperience'){
     503                if($(idAppForm+'\\['+whichsite+key+'_act\\]').val() == 1 && key !='personaldata' && key !='education' && key !='workexperience'){
    504504                    isFindSingleChk = 0;                   
    505505                    field.forEach(function(item){
    506                         if($(idAppForm+'\\['+key+'_'+item+'_act\\]').val() == 1){
     506                        if($(idAppForm+'\\['+whichsite+key+'_'+item+'_act\\]').val() == 1){
    507507                            isFindSingleChk = 1;
    508508                        }
     
    533533            var current_txtbutton = button_view.html();
    534534            button_view.addClass('hidden');
     535           
    535536            if ( ! button_check.hasClass('process-busy')){
    536537                button_check.addClass('process-busy');
     
    550551                        button_view.html(data.message);
    551552                        button_view.removeClass('hidden');
     553                       
    552554                        if (parseInt(data.error) == 1) {
    553555                            button_view.addClass('notvalid');
     
    590592        });
    591593        $('form').on('submit', function(e){
    592             var isValid=findSingleChecked();
     594            var isValid=findSingleChecked(selsite);
    593595            if(isValid == false) {
    594596                e.preventDefault();
  • prosolution-wp-client/trunk/includes/class-prosolwpclient-helper.php

    r2454627 r2456188  
    2121            if($issite!=''){
    2222                $addsite= get_option('prosolwpclient_additionalsite');
    23                 if(in_array($issite,$addsite)){
    24                     $chkkey=array_search($issite,$addsite);
    25                     $getkey=explode("_",$chkkey);
    26                     $issite='site'.substr($getkey[0],7,strlen($getkey[0])).'_';
     23                $getkey=array_keys($addsite);
     24                $urlid_arr=array();
     25
     26                for($x=0;$x<=count($addsite);$x++){             
     27                    $chkurlid=substr($getkey[$x],0,7);
     28                    $pos = strpos($getkey[$x], '_');
     29                    $anotherchkurlid=substr($getkey[$x],$pos,strlen($getkey[$x]));
     30                   
     31                    if($chkurlid=='addsite' && $anotherchkurlid=='_urlid'){                     
     32                        $getsite= substr($getkey[$x],7,$pos-7);
     33                        $urlid_arr[ $getsite ]= $addsite[ $getkey[$x] ];                       
     34                    }                   
     35                }
     36
     37                if(in_array($issite,$urlid_arr)){
     38                    $chkkey=array_search($issite,$urlid_arr);
     39                    $issite='site'.$chkkey.'_';
    2740                }
    2841            }
     
    3346            if($issite!=''){
    3447                $addsite= get_option('prosolwpclient_additionalsite');
    35                 if(in_array($issite,$addsite)){
     48                $getkey=array_keys($addsite);
     49                $urlid_arr=array();
     50
     51                for($x=0;$x<=count($addsite);$x++){             
     52                    $chkurlid=substr($getkey[$x],0,7);
     53                    $pos = strpos($getkey[$x], '_');
     54                    $anotherchkurlid=substr($getkey[$x],$pos,strlen($getkey[$x]));
     55                   
     56                    if($chkurlid=='addsite' && $anotherchkurlid=='_urlid'){                     
     57                        $getsite= substr($getkey[$x],7,$pos-7);
     58                        $urlid_arr[ $getsite ]= $addsite[ $getkey[$x] ];                       
     59                    }                   
     60                }
     61
     62                if(in_array($issite,$urlid_arr)){
    3663                    $chkkey=array_search($issite,$addsite);
    37                     $getkey=explode("_",$chkkey);
    38                     $issite=substr($getkey[0],7,strlen($getkey[0]));
     64                    $pos=explode("_",$chkkey);
     65                    $issite=substr($pos[0],7,strlen($chkkey)-7);                   
    3966                }
    4067            }
     
    4875                $prosolwpclient_api_config = maybe_unserialize( $prosolwpclient_api_config );
    4976            }
    50 
    5177            $api_user = array_key_exists( $issite.'api_user', $prosolwpclient_api_config ) ? sanitize_text_field( $prosolwpclient_api_config[$issite.'api_user'] ) : '';
    5278            //$api_pass = array_key_exists( 'api_pass', $prosolwpclient_api_config ) ?  sanitize_text_field( base64_decode($prosolwpclient_api_config['api_pass'] )) : '';
  • prosolution-wp-client/trunk/includes/class-prosolwpclient-table-helper.php

    r2454627 r2456188  
    118118        }
    119119
    120         //kev
    121120        public static function proSol_cleardatasites() {
    122121            $remsite='';
     
    180179                    $country_code_arr = $response_data->id;
    181180                    $name_arr         = $response_data->name;
    182 
     181                   
    183182                    foreach ( $country_code_arr as $index => $country_code ) {
    184183                        $wpdb->insert(
  • prosolution-wp-client/trunk/prosolwpclient.php

    r2454627 r2456188  
    1717     * Plugin URI:        https://prosolution.com/produkte-und-services/workexpert.html
    1818     * Description:       WordPress client for ProSolution
    19      * Version:           1.7.0
     19     * Version:           1.7.1
    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.0');
     41    defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.7.1');
    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

    r2454627 r2456188  
    15541554                        )
    15551555                    );
    1556                     //var_dump($response);
    1557                     //var_dump(is_wp_error($response));
     1556                    //var_dump($header_info);
     1557                    //var_dump($payload);
    15581558                    $msg = '';
    15591559                    if ( ! is_wp_error( $response ) ) {
  • prosolution-wp-client/trunk/public/templates/prosolwpclientjobapply.php

    r2454627 r2456188  
    3939    $issite       = CBXProSolWpClient_Helper::proSol_getSiteid($hassiteid);
    4040    $siteid       = CBXProSolWpClient_Helper::proSol_getSiteidonly($hassiteid);
    41 
     41   
    4242    global $wpdb;
    4343    $table_ps_title             = $wpdb->prefix . 'title';
     
    394394                    role="button"><?php echo $prosoldes[$issite.'desbtnappformtosearch'] ?></a>
    395395            <?php } ?> 
    396             <?php          
     396            <?php       
    397397            if($isrec=="on"){
    398398                $prof_id_mustache = '';
     
    426426                            $prof_id_mustache = join(",",$prof_id_arr);
    427427                            $prof_name_mustache = join(",",$prof_name_arr);
    428                             $prof_showinappli_mustache = join(",",$prof_showinappli_arr);
    429                        
     428                            $prof_showinappli_mustache = join(",",$prof_showinappli_arr);                           
    430429                        } else{
    431430                            $response_data = sprintf( __( 'Api response failed. Message: %s', 'prosolwpclient' ), $response['body']  );
     
    587586                           
    588587                        if( $list_opt_appform[$issite.'education_act'] != '0'){
    589                             include( 'singlefieldset/prosolwpclientjobapplicationeducationinfo.php' ); 
     588                            include( 'singlefieldset/prosolwpclientjobapplicationeducationinfo.php' );
    590589                        }
    591590                       
     
    595594                       
    596595                        if( $list_opt_appform[$issite.'expertise_act'] != '0'){ 
    597                             include( 'singlefieldset/prosolwpclientjobapplicationexpertiseinfo.php' ); 
     596                            include( 'singlefieldset/prosolwpclientjobapplicationexpertiseinfo.php' );
    598597                        }   
    599598               
    600599                        if( $list_opt_appform[$issite.'sidedishes_act'] != '0'){
    601                             include( 'singlefieldset/prosolwpclientjobapplicationsidedishesinfo.php' ); 
     600                            include( 'singlefieldset/prosolwpclientjobapplicationsidedishesinfo.php' );
    602601                        }
    603602
  • prosolution-wp-client/trunk/public/templates/singlefieldset/modals/prosolwpclientjobapplicationjobmodal.php

    r2437099 r2456188  
    3030                        <div class="col-md-9 job-modal-section">
    3131                            <ul class="list-unstyled job-profession-groups">
    32                                 <?php
     32                                <?php 
    3333                                    if($pstemplate!=1){
    3434                                        foreach ( $all_profession as $index => $profession_info ) {
     
    3838                                                    <span class="checkmark-layer"></span>       
    3939                                                </label>
    40                                             </li>';
     40                                            </li>';                             
    4141                                        }
    4242                                    } else{
    43                                         foreach ( $all_profession as $index => $profession_info ) {
     43                                        foreach ( $all_profession as $index => $profession_info ) {                                             
    4444                                            echo '<li>
    4545                                                <label class="checkbox-inline">
  • prosolution-wp-client/trunk/public/templates/singlefieldset/prosolwpclientjobapplicationexperienceinfo.php

    r2454627 r2456188  
    1212
    1313    global $wpdb;
    14     $table_ps_profession         = $wpdb->prefix . 'profession';
    1514    $table_ps_contract           = $wpdb->prefix . 'contract';
    1615    $table_ps_employment         = $wpdb->prefix . 'employment';
    1716    $table_ps_experienceposition = $wpdb->prefix . 'experienceposition';
    1817
    19     $all_profession         = $wpdb->get_results( "SELECT * FROM $table_ps_profession as profession WHERE profession.site_id='$siteid' ORDER BY profession.name ASC", ARRAY_A );
    2018    $contract_arr           = $wpdb->get_results( "SELECT * FROM $table_ps_contract as contract WHERE contract.site_id='$siteid'  ORDER BY contract.name ASC", ARRAY_A );
    2119    $employment_arr         = $wpdb->get_results( "SELECT * FROM $table_ps_employment as employment WHERE employment.site_id='$siteid'  ORDER BY employment.name ASC", ARRAY_A );
  • prosolution-wp-client/trunk/public/templates/singlefieldset/prosolwpclientjobapplicationpersonalinfo.php

    r2454627 r2456188  
    1414    $table_ps_profession = $wpdb->prefix . 'profession';
    1515    $all_profession      = $wpdb->get_results( "SELECT * FROM $table_ps_profession as profession WHERE profession.site_id='$siteid' ORDER BY profession.name ASC", ARRAY_A );
     16   
    1617    $opt = get_option('prosolwpclient_applicationform');
    1718    $pol = get_option('prosolwpclient_privacypolicy');
     
    2021    $fields_section=array('title','federal','phone','mobile','email','nationality','marital','gender','diverse','countrybirth','availfrom','notes');
    2122    $isrec=0;
    22 
     23   
    2324    if($genset[$issite.'enable_recruitment'] == 'on'){
    2425        $isrec=1;
     
    2728        if( (isset($prof_id_arr) || $prof_id_arr != null) && (isset($prof_name_arr) || $prof_name_arr != null)
    2829            && (isset($prof_showinappli_arr) || $prof_showinappli_arr != null) ){
    29             $all_profession = [];           
    30             for ($i = 0; $i < count($prof_id_arr); $i++){
     30            $all_profession = [];   
     31           
     32            for ($i = 0; $i < count($prof_id_arr); $i++){               
    3133                $all_profession[$i]['professionId'] = $prof_id_arr[$i];
    3234                $all_profession[$i]['name'] = $prof_name_arr[$i];           
    33             }           
     35            }   
     36               
    3437        }
    35        
    3638        //new form for recruitment
    3739        array_push($fields_section,'max_distance');
Note: See TracChangeset for help on using the changeset viewer.