Plugin Directory

Changeset 2957944


Ignore:
Timestamp:
08/24/2023 02:43:27 PM (3 years ago)
Author:
heyrectruit
Message:

edit page fix

Location:
heyrecruit/trunk
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • heyrecruit/trunk/Controller/HeyrecruitController.php

    r2866878 r2957944  
    150150            'displayJobEmployment'
    151151        ]);
    152         add_shortcode('hr_job_derpartment', [
     152        add_shortcode('hr_job_department', [
    153153            $this,
    154154            'displayJobDepartment'
     
    226226     */
    227227    public function displaySelectLocation(): ?string {
    228         $this->getJobData();
     228
     229        if (!$this->getJobData())
     230            return '';
    229231
    230232        $locations = $this->getLocations($this->job['AllCompanyLocationJob'] ?? []);
     
    237239            foreach ($locations->select as $key => $location) {
    238240
    239                 $selected = $key == filter_var($_GET['locationId'], FILTER_SANITIZE_STRING) ? ' selected' : '';
     241                $selected = $key == esc_attr($_GET['locationId']) ? ' selected' : '';
    240242                $locationOptions .= '<option value="' . $key . '"' . $selected . '>' . $location . '</option>';
    241243            }
     
    246248        }
    247249
    248         return null;
     250        return '';
    249251    }
    250252
     
    305307    public function displayJobForm(): string {
    306308
    307         if (!isset($this->job['Form']))
    308             return '';
    309 
    310         $this->getJobData();
     309        if (!$this->getJobData() || !isset($this->job['Form']))
     310            return '';
    311311
    312312        $form = (object)$this->job['Form'];
     
    316316        $form->postUrl = $form->post_url;
    317317        $form->locationId = $this->job['CompanyLocation']['id'];
    318         $form->jwt = filter_var($_SESSION['HEYRECRUIT_TOKEN'], FILTER_SANITIZE_STRING);
     318        $form->jwt = esc_attr($_SESSION['HEYRECRUIT_TOKEN']);
    319319        $form->confirmPage = $this->getOption('confirmPage');
    320320
     
    376376                $form->value = str_replace($modal->href, $modalLink, $formElement->QuestionString[0]->value);
    377377                $form->modalBody = $modal->value;
    378             } else
    379                 $form->value = explode(';', $formElement->QuestionString[0]->value
    380                     ?? $formElement->QuestionString[0]->default_value);
     378            } else {
     379                $string_value = ($formElement->QuestionString[0]->value
     380                    ?? ($formElement->QuestionString[0]->default_value ?? ''));
     381
     382                $form->value = explode(';', $string_value);
     383            }
     384
    381385
    382386            ob_start();
     
    418422    public function displayJobHeader(): ?string {
    419423
    420         $this->getJobData();
     424        if (!$this->getJobData())
     425            return '';
    421426
    422427        $sections = '';
     
    430435
    431436                if ($element['element_type'] === 'image') {
    432                     $image = json_decode($element['text'])->detail[0] ?? null;
    433 
    434                     if (!$image)
     437
     438                    $image = json_decode($element['text']);
     439
     440                    if (!isset($image->detail) || !is_array($image->detail))
    435441                        continue;
    436442
    437                     $imageSrc = $image->host . '/' . $image->rel_path . '/' . $image->name;
     443                    $image = $image->detail[0];
     444
     445                    $imageHost = isset($image->host)  && $image->host !== ''
     446                        ? $image->host : HEYRECRUIT_URL;
     447
     448                    $imageHost = str_replace('app/', '', $imageHost);
     449
     450                    $imageSrc = $imageHost . '/' . $image->rel_path . '/' . $image->name;
    438451
    439452                    if (strpos($imageSrc, 'header_dummy') !== false)
    440                         $imageSrc = null;
     453                        $imageSrc = '';
    441454                }
    442455            }
     
    444457
    445458        $data = new stdClass();
    446         $data->jobHeaderImage = $imageSrc ?? null;
     459        $data->jobHeaderImage = $imageSrc ?? '';
    447460        $data->jobTitle = $this->displayJobTitle();
    448461        $data->jobSubTitle = $this->displayJobSubTitle();
     
    461474        $data->jobAddress = $this->displayJobAddress();
    462475
     476
    463477        ob_start();
    464478
     
    474488     */
    475489    public function displayJobSections(): ?string {
    476         $this->getJobData();
     490
     491        if (!$this->getJobData())
     492            return '';
    477493
    478494        $sections = '';
     
    501517
    502518    /**
    503      * loadSection
    504      * @return string|null
    505      */
    506     private function loadSection(): ?string {
     519     * @return false|string|null
     520     */
     521    private function loadSection(): false|string|null {
    507522
    508523        $elementType = $this->element['element_type'];
     
    529544    /**
    530545     * displayJobTitle
    531      * @return string|null
    532      * @throws Exception
    533      */
    534     public function displayJobTitle(): ?string {
    535 
    536         $this->getJobData();
    537 
    538         if ($this->job['Job']['title']) {
     546     * @return string
     547     * @throws Exception
     548     */
     549    public function displayJobTitle(): string {
     550
     551        if (!$this->getJobData())
     552            return '';
     553
     554        if ($this->job['Job']['title'] ?? false) {
    539555            return '<span class="hrJobTitle">' . $this->job['Job']['title'] . '</span>';
    540         } else {
    541             return null;
    542         }
     556        }
     557
     558        return '';
    543559    }
    544560
    545561    /**
    546562     * displayJobTitle
    547      * @return string|null
    548      * @throws Exception
    549      */
    550     public function displayJobSubTitle(): ?string {
    551 
    552         $this->getJobData();
    553 
    554         if ($this->job['Job']['subtitle']) {
     563     * @return string
     564     * @throws Exception
     565     */
     566    public function displayJobSubTitle(): string {
     567
     568        if (!$this->getJobData())
     569            return '';
     570
     571        if ($this->job['Job']['subtitle'] ?? false) {
    555572            return '<span class="hrJobSubtitle">' . $this->job['Job']['subtitle'] . '</span>';
    556         } else {
    557             return null;
    558         }
     573        }
     574
     575        return '';
    559576    }
    560577
    561578    /**
    562579     * displayJobEmployment
    563      * @return string|null
    564      * @throws Exception
    565      */
    566     public function displayJobEmployment(): ?string {
    567 
    568         $this->getJobData();
    569 
    570         if ($this->job['Job']['employment']) {
     580     * @return string
     581     * @throws Exception
     582     */
     583    public function displayJobEmployment(): string {
     584
     585        if (!$this->getJobData())
     586            return '';
     587
     588        if ($this->job['Job']['employment'] ?? false) {
    571589            return '<span class="hrJobEmployment">' . $this->job['Job']['employment'] . '</span>';
    572         } else {
    573             return null;
    574         }
     590        }
     591
     592        return '';
    575593    }
    576594
    577595    /**
    578596     * displayJobDepartment
    579      * @return string|null
    580      * @throws Exception
    581      */
    582     public function displayJobDepartment(): ?string {
    583 
    584         $this->getJobData();
    585 
    586         if ($this->job['Job']['department']) {
     597     * @return string
     598     * @throws Exception
     599     */
     600    public function displayJobDepartment(): string {
     601
     602        if (!$this->getJobData())
     603            return '';
     604
     605        if ($this->job['Job']['department'] ?? false) {
    587606            return '<span class="hrJobDepartment">' . $this->job['Job']['department'] . '</span>';
    588         } else {
    589             return null;
    590         }
     607        }
     608
     609        return '';
    591610    }
    592611
    593612    /**
    594613     * displayJobDepartment
    595      * @return string|null
    596      * @throws Exception
    597      */
    598     public function displayJobAllowHomeOffice(): ?string {
    599 
    600         $this->getJobData();
    601 
    602         switch ($this->job['Job']['remote']) {
     614     * @return string
     615     * @throws Exception
     616     */
     617    public function displayJobAllowHomeOffice(): string {
     618
     619        if (!$this->getJobData())
     620            return '';
     621
     622        switch ($this->job['Job']['remote'] ?? null) {
    603623            case 'yes':
    604624                $homeoffice = __('Yes');
     
    610630                $homeoffice = __('No');
    611631        }
    612 
    613632        return '<span class="hrJobHomeoffice">Homeoffice: ' . $homeoffice . '</span>';
    614633    }
     
    616635    /**
    617636     * displayJobMinSalary
    618      * @return string|null
    619      * @throws Exception
    620      */
    621     public function displayJobMinSalary(): ?string {
    622 
    623         $this->getJobData();
    624 
    625         if ($this->job['Job']['salary_min'] && !empty($this->job['Job']['salary_min'])) {
     637     * @return string
     638     * @throws Exception
     639     */
     640    public function displayJobMinSalary(): string {
     641
     642        if (!$this->getJobData())
     643            return '';
     644
     645        if (($this->job['Job']['salary_min'] ?? false) && !empty($this->job['Job']['salary_min'])) {
    626646            return '<span class="">' . $this->job['Job']['salary_min'] . '</span>';
    627         } else {
    628             return null;
    629         }
     647        }
     648
     649        return '';
    630650    }
    631651
    632652    /**
    633653     * displayJobMaxSalary
    634      * @return string|null
    635      * @throws Exception
    636      */
    637     public function displayJobMaxSalary(): ?string {
    638 
    639         $this->getJobData();
    640 
    641         if ($this->job['Job']['salary_max'] && !empty($this->job['Job']['salary_max'])) {
     654     * @return string
     655     * @throws Exception
     656     */
     657    public function displayJobMaxSalary(): string {
     658
     659        if (!$this->getJobData())
     660            return '';
     661
     662        if (($this->job['Job']['salary_max'] ?? false) && !empty($this->job['Job']['salary_max'])) {
    642663            return '<span class="">' . $this->job['Job']['salary_max'] . '</span>';
    643         } else {
    644             return null;
    645         }
     664        }
     665
     666        return '';
    646667
    647668    }
     
    649670    /**
    650671     * displayJobSubDescription
    651      * @return string|null
    652      * @throws Exception
    653      */
    654     public function displayJobDescription(): ?string {
    655 
    656         $this->getJobData();
    657 
    658         if ($this->job['Job']['description'] && !empty($this->job['Job']['description'])) {
     672     * @return string
     673     * @throws Exception
     674     */
     675    public function displayJobDescription(): string {
     676
     677        if (!$this->getJobData())
     678            return '';
     679
     680        if (($this->job['Job']['description'] ?? false) && !empty($this->job['Job']['description'])) {
    659681            return '<span class="">' . $this->job['Job']['description'] . '</span>';
    660         } else {
    661             return null;
    662         }
    663 
     682        }
     683
     684        return '';
    664685    }
    665686
    666687    /**
    667688     * displayJobStreet
    668      * @return string|null
    669      * @throws Exception
    670      */
    671     public function displayJobStreet(): ?string {
    672 
    673         $this->getJobData();
    674 
    675         if ($this->job['CompanyLocation']['street']) {
     689     * @return string
     690     * @throws Exception
     691     */
     692    public function displayJobStreet(): string {
     693
     694        if (!$this->getJobData())
     695            return '';
     696
     697        if (($this->job['CompanyLocation']['street'] ?? false)) {
    676698            return '<span class="hrStreet">' . $this->job['CompanyLocation']['street'] . '</span>';
    677         } else {
    678             return null;
    679         }
     699        }
     700
     701        return '';
    680702    }
    681703
    682704    /**
    683705     * displayJobHouseNumber
    684      * @return string|null
    685      * @throws Exception
    686      */
    687     public function displayJobHouseNumber(): ?string {
    688 
    689         $this->getJobData();
    690 
    691         if ($this->job['CompanyLocation']['street_number']) {
     706     * @return string
     707     * @throws Exception
     708     */
     709    public function displayJobHouseNumber(): string {
     710
     711        if (!$this->getJobData())
     712            return '';
     713
     714        if (($this->job['CompanyLocation']['street_number'] ?? null)) {
    692715            return '<span class="hrHouseNumber">' . $this->job['CompanyLocation']['street_number'] . '</span>';
    693         } else {
    694             return null;
    695         }
     716        }
     717
     718        return '';
    696719    }
    697720
    698721    /**
    699722     * displayJobPostalCode
    700      * @return string|null
    701      * @throws Exception
    702      */
    703     public function displayJobPostalCode(): ?string {
    704 
    705         $this->getJobData();
    706 
    707         if ($this->job['CompanyLocation']['postal_code']) {
     723     * @return string
     724     * @throws Exception
     725     */
     726    public function displayJobPostalCode(): string {
     727
     728        if (!$this->getJobData())
     729            return '';
     730
     731        if (($this->job['CompanyLocation']['postal_code'] ?? null)) {
    708732            return '<span class="hrPostalCode">' . $this->job['CompanyLocation']['postal_code'] . '</span>';
    709         } else {
    710             return null;
    711         }
     733        }
     734
     735        return '';
    712736    }
    713737
    714738    /**
    715739     * displayJobCity
    716      * @return string|null
    717      * @throws Exception
    718      */
    719     public function displayJobCity(): ?string {
    720 
    721         $this->getJobData();
    722 
    723         if ($this->job['CompanyLocation']['city']) {
     740     * @return string
     741     * @throws Exception
     742     */
     743    public function displayJobCity(): string {
     744
     745        if (!$this->getJobData())
     746            return '';
     747
     748        if ($this->job['CompanyLocation']['city'] ?? null) {
    724749            return '<span class="hrCity">' . $this->job['CompanyLocation']['city'] . '</span>';
    725         } else {
    726             return null;
    727         }
     750        }
     751
     752        return '';
    728753    }
    729754
    730755    /**
    731756     * displayJobState
    732      * @return string|null
    733      * @throws Exception
    734      */
    735     public function displayJobState(): ?string {
    736 
    737         $this->getJobData();
    738 
    739         if ($this->job['CompanyLocation']['state']) {
     757     * @return string
     758     * @throws Exception
     759     */
     760    public function displayJobState(): string {
     761
     762        if (!$this->getJobData())
     763            return '';
     764
     765        if ($this->job['CompanyLocation']['state'] ?? null) {
    740766            return '<span class="hrState">' . $this->job['CompanyLocation']['state'] . '</span>';
    741         } else {
    742             return null;
    743         }
     767        }
     768
     769        return '';
    744770    }
    745771
    746772    /**
    747773     * displayJobCountry
    748      * @return string|null
    749      * @throws Exception
    750      */
    751     public function displayJobCountry(): ?string {
    752 
    753         $this->getJobData();
    754 
    755         if ($this->job['CompanyLocation']['country']) {
     774     * @return string
     775     * @throws Exception
     776     */
     777    public function displayJobCountry(): string {
     778
     779        if (!$this->getJobData())
     780            return '';
     781
     782        if ($this->job['CompanyLocation']['country'] ?? false) {
    756783            return '<span class="hrCountry">' . $this->job['CompanyLocation']['country'] . '</span>';
    757         } else {
    758             return null;
    759         }
     784        }
     785
     786        return '';
    760787    }
    761788
    762789    /**
    763790     * displayJobAddress
    764      * @return string|null
    765      * @throws Exception
    766      */
    767     public function displayJobAddress(): ?string {
    768 
    769         $this->getJobData();
     791     * @return string
     792     * @throws Exception
     793     */
     794    public function displayJobAddress(): string {
     795
     796        if (!$this->getJobData())
     797            return '';
    770798
    771799        return $this->getFormattedAddress($this->job['CompanyLocation'] ?? []);
     
    778806     * @throws Exception
    779807     */
    780     private function getJobData() {
     808    private function getJobData(): bool {
    781809
    782810        if (isset($_GET['jobId']) && isset($_GET['locationId'])) {
    783811            $this->job = $this->getHrJob(
    784                 (int)filter_var($_GET['jobId'], FILTER_SANITIZE_STRING),
    785                 (int)filter_var($_GET['locationId'], FILTER_SANITIZE_STRING)
     812                (int)esc_attr($_GET['jobId']),
     813                (int)esc_attr($_GET['locationId'])
    786814            );
    787815        }
    788816
    789         if (!isset($_GET['action']) && (!isset($this->job) || count($this->job) === 0)) {
    790             exit(__('Job not found', 'heyrecruit'));
    791         }
    792     }
    793 
    794     /**
    795      * getAllJobs
    796      * @return null|array
    797      * @throws Exception
    798      */
    799     public function displayJobsTable(): ?array {
     817        return isset($this->job) && count($this->job) > 0;
     818    }
     819
     820    /**
     821     * displayJobsTable
     822     *
     823     * @return false|array|string|null
     824     * @throws Exception
     825     */
     826    public function displayJobsTable(): false|array|string|null {
    800827
    801828        $this->jobs = $this->jobs ?? $this->getHrJobs();
     
    870897            }
    871898
    872             load_template(HEYRECRUIT_PLUGIN_DIR . '/templates/content/jobsTable.php', true, (object)[
     899
     900            $args = (object)[
    873901                'options' => $options,
    874902                'jobs'    => $jobs
    875             ]);
     903            ];
     904
     905            ob_start();
     906
     907            include(HEYRECRUIT_PLUGIN_DIR . '/templates/content/jobsTable.php');
     908
     909            return ob_get_clean();
     910
    876911        }
    877912
     
    896931        }
    897932        if ($options->showEmployment) {
    898             $job->employment = str_replace(',', ', ', $jobData->employment);
     933            $job->employment = str_replace(',', ', ', ($jobData->employment ?? ''));
    899934        }
    900935        if ($options->showLocation) {
     
    9911026    /**
    9921027     * displayFilterOptions
    993      * @return void
    994      * @throws Exception
    995      */
    996     public function displayFilterOptions() {
     1028     *
     1029     * @return false|string|null
     1030     * @throws Exception
     1031     */
     1032    public function displayFilterOptions(): false|string|null {
    9971033        if (count($this->company) > 0) {
    9981034            $filter = explode(';', $this->company['OverviewPage']['filter']);
     
    10041040                : 'filterOptionsDeactivated';
    10051041
    1006             load_template(HEYRECRUIT_PLUGIN_DIR . '/templates/content/' . $template . '.php',
    1007                 true,
    1008                 (object)[
    1009                     'showLocationList'   => in_array('list', $filter),
    1010                     'showLocationSearch' => in_array('search', $filter),
    1011                     'departmentList'     => $option->departmentList ?? [],
    1012                     'employmentList'     => $option->employmentList ?? [],
    1013                     'locationList'       => $option->locationList ?? []
    1014                 ]
    1015             );
    1016         }
     1042            $args = (object)[
     1043                'showLocationList'   => in_array('list', $filter),
     1044                'showLocationSearch' => in_array('search', $filter),
     1045                'departmentList'     => $option->departmentList ?? [],
     1046                'employmentList'     => $option->employmentList ?? [],
     1047                'locationList'       => $option->locationList ?? []
     1048            ];
     1049
     1050            ob_start();
     1051
     1052            include(HEYRECRUIT_PLUGIN_DIR . '/templates/content/' . $template . '.php');
     1053
     1054            return ob_get_clean();
     1055        }
     1056
     1057        return null;
    10171058    }
    10181059
    10191060    /**
    10201061     * displayGoogleMap
    1021      * @return void
    1022      * @throws Exception
    1023      */
    1024     public function displayGoogleMap(): void {
     1062     *
     1063     * @return false|string|null
     1064     * @throws Exception
     1065     */
     1066    public function displayGoogleMap(): false|string|null {
     1067
     1068        $args = [];
     1069
    10251070        $this->company = $this->company ?? $this->getCompany();
    10261071        if (count($this->company) > 0) {
     
    10321077            }
    10331078
    1034             load_template(HEYRECRUIT_PLUGIN_DIR . '/templates/content/' . $template, true,
    1035                 $args ?? []
    1036             );
    1037         }
     1079            ob_start();
     1080
     1081            include(HEYRECRUIT_PLUGIN_DIR . '/templates/content/' . $template);
     1082
     1083            return ob_get_clean();
     1084        }
     1085
     1086        return null;
    10381087    }
    10391088
     
    10541103        string $jobLocationId = null): string {
    10551104
    1056         return '<a href = "' . $postUrl . '?jobId=' . $jobId . (
     1105        $andOrQuestionMark = strpos($postUrl, '?') === false ? '?' : '&';
     1106
     1107        return '<a href = "' . $postUrl . $andOrQuestionMark . 'jobId=' . $jobId . (
    10571108            $jobLocationId
    10581109                ? '&locationId=' . $jobLocationId
     
    10641115    /**
    10651116     * displayCompanyInfo
    1066      * @return void
    1067      * @throws Exception
    1068      */
    1069     public function displayCompanyInfo(): void {
     1117     * @return false|string|null
     1118     * @throws Exception
     1119     */
     1120    public function displayCompanyInfo(): false|string|null {
     1121
    10701122        $this->company = $this->company ?? $this->getCompany();
    10711123        if (count($this->company) > 0) {
     
    10781130                $template = 'companyInfo.php';
    10791131
    1080                 $args = [
     1132                $args = (object)[
    10811133                    'companyName'           => $company->name,
    10821134                    'companyLogo'           => $company->logo,
     
    10981150            }
    10991151
    1100             load_template(HEYRECRUIT_PLUGIN_DIR . '/templates/content/' . $template, true,
    1101                 (object)($args ?? [])
    1102             );
    1103         }
     1152            ob_start();
     1153
     1154            include(HEYRECRUIT_PLUGIN_DIR . '/templates/content/' . $template);
     1155
     1156            return ob_get_clean();
     1157        }
     1158
     1159        return null;
    11041160    }
    11051161
     
    12691325     */
    12701326    public function deactivatePlugin(): void {
     1327
    12711328        $this->deactivateJobsPage();
    12721329        $this->deactivateDetailJobPage();
     
    14321489                $depatmentList[$job['Job']['department']] = $job['Job']['department'];
    14331490
    1434                 $employments = explode(',', $job['Job']['employment']);
     1491                $employments = explode(',', ($job['Job']['employment'] ?? ''));
    14351492
    14361493                foreach ($employments as $employment) {
     
    14831540        $this->company = $this->company ?? $this->getCompany();
    14841541
    1485 
    1486         add_filter('wp_head', function () {
    1487             return ' <script>
    1488     let HR_PLUGIN_PATH = "111"
    1489 </script>';
    1490         });
    1491 
    14921542        load_template(HEYRECRUIT_PLUGIN_DIR . '/templates/content/jsFiles.php', true, [
    14931543            'jobsAsJson' => isset($_GET['action']) ? '' : json_encode($this->jobs ?? [])
  • heyrecruit/trunk/Controller/HeyrecruitRestApiController.php

    r2866878 r2957944  
    143143
    144144        if (($result['success'] ?? false) && ($result['token'] ?? false)) {
    145             $_SESSION['HEYRECRUIT_TOKEN'] = filter_var($result['token'], FILTER_SANITIZE_STRING);
     145            $_SESSION['HEYRECRUIT_TOKEN'] = esc_attr($result['token']);
    146146            $this->renewToken = false;
    147147
     
    351351
    352352
    353         $query['ip'] = filter_var(urlencode($_SERVER['REMOTE_ADDR']), FILTER_SANITIZE_STRING);
     353        $query['ip'] = urlencode(esc_attr($_SERVER['REMOTE_ADDR'])); //ToDo: @Becla
    354354        $query['language'] = $this->filter['language'];
    355355
     
    404404                'Content-Length: ' . strlen($dataJson),
    405405                'Authorization: Bearer ' .
    406                 (filter_var($_SESSION['HEYRECRUIT_TOKEN'], FILTER_SANITIZE_STRING) ?? null)
     406                esc_attr(($_SESSION['HEYRECRUIT_TOKEN'] ?? null)) //ToDo: @Becla
    407407            ],
    408408        ]);
  • heyrecruit/trunk/constConfig.php

    r2866878 r2957944  
    33const
    44HEYRECRUIT_PLUGIN_NAME = 'Heyrecruit',
    5 HEYRECRUIT_VERSION = '1.0.0',
     5HEYRECRUIT_VERSION = '1.0.1',
    66HEYRECRUIT_PLUGIN_BASENAME = 'heyrecruit/heyrecruit.php',
    77HEYRECRUIT_OPTION_KEY_NAME = 'heyrecruit',
  • heyrecruit/trunk/heyrecruit.php

    r2866878 r2957944  
    1010
    1111/**
    12  * @since             1.0.0
     12 * @since             1.0.1
    1313 * @package           heyrecruit_core
    1414 * @wordpress-plugin
    1515 * Plugin Name:       Heyrecruit
    16  * Version:           1.0.0
     16 * Version:           1.0.1
    1717 * Author:            Matthias Becla
    1818 * Author URI:        https://www.heyrecruit.de
  • heyrecruit/trunk/js/main.js

    r2866878 r2957944  
    125125                headers: {
    126126                    'Content-Type': 'application/x-www-form-urlencoded',
    127                     'X-WP-Nonce': WP_NONCE,
     127                    // 'X-WP-Nonce': WP_NONCE,
    128128                },
    129129                redirect: 'follow',
  • heyrecruit/trunk/js/main.min.js

    r2866878 r2957944  
    1 function a0_0x5735(){const _0x2982cf=['#address','toString','.openModal','Es\x20trat\x20ein\x20Fehler\x20bei\x20der\x20Suche\x20auf.','val','result','146457nklYHS','Error:','__proto__','csrf_token','#deleteUrl','.hrPostalCode','1240505bcdLDL','constructor','#jobId','bind','{}.constructor(\x22return\x20this\x22)(\x20)','postalCode','table','#changeLocation','exception','houseNumber','299709lUEIFK','log','error','off','country','.hrCity','.hrStreet','#hrDataTable','change','19394jLKoRR','.hrCountry','return\x20(function()\x20','#locationId','#location','postUrl','warn','#employment','length','trace','#uploadUrl','<tr><td\x20colspan=\x225\x22\x20style=\x22text-align:center;\x22>Lädt...</td></tr>','152dXhbQW','prototype','#radius','jwt','application/x-www-form-urlencoded','console','POST','#hrSendJobFilter','164976nfPqDK','50658quMNrL','catch','html','delete_url','upload_url','map','hr_search_jobs','965225PTaupT','DataTable','4NWwpcC','city','keys','.closeModal','info','same-origin','click','/languages/datatable_de_DE.json','ready','json','applicant_id','then','apply','#modal','street'];a0_0x5735=function(){return _0x2982cf;};return a0_0x5735();}function a0_0x2cfe(_0x5a1e33,_0x1776dd){const _0x19e704=a0_0x5735();return a0_0x2cfe=function(_0x3340e3,_0x43b520){_0x3340e3=_0x3340e3-0x1a4;let _0x2032cd=_0x19e704[_0x3340e3];return _0x2032cd;},a0_0x2cfe(_0x5a1e33,_0x1776dd);}(function(_0x2eb70e,_0x521757){const _0x149b56=a0_0x2cfe,_0x262bd0=_0x2eb70e();while(!![]){try{const _0x496c21=-parseInt(_0x149b56(0x1a5))/0x1+-parseInt(_0x149b56(0x1be))/0x2+parseInt(_0x149b56(0x1d3))/0x3+parseInt(_0x149b56(0x1dc))/0x4*(-parseInt(_0x149b56(0x1da))/0x5)+parseInt(_0x149b56(0x1d2))/0x6+-parseInt(_0x149b56(0x1ab))/0x7+parseInt(_0x149b56(0x1ca))/0x8*(parseInt(_0x149b56(0x1b5))/0x9);if(_0x496c21===_0x521757)break;else _0x262bd0['push'](_0x262bd0['shift']());}catch(_0x4f8890){_0x262bd0['push'](_0x262bd0['shift']());}}}(a0_0x5735,0x24c9f),function(_0xc44307){const _0x2b988f=a0_0x2cfe,_0x38c93f=(function(){let _0x14f402=!![];return function(_0x2e9401,_0x1100a5){const _0x13b7d2=_0x14f402?function(){const _0x40e631=a0_0x2cfe;if(_0x1100a5){const _0x5bac06=_0x1100a5[_0x40e631(0x1e8)](_0x2e9401,arguments);return _0x1100a5=null,_0x5bac06;}}:function(){};return _0x14f402=![],_0x13b7d2;};}()),_0x5a0cf6=_0x38c93f(this,function(){const _0x4e4a61=a0_0x2cfe;let _0x1dd73d;try{const _0xbf618f=Function(_0x4e4a61(0x1c0)+_0x4e4a61(0x1af)+');');_0x1dd73d=_0xbf618f();}catch(_0xba864b){_0x1dd73d=window;}const _0x3bc58d=_0x1dd73d[_0x4e4a61(0x1cf)]=_0x1dd73d['console']||{},_0x3060a5=['log',_0x4e4a61(0x1c4),_0x4e4a61(0x1e0),_0x4e4a61(0x1b7),_0x4e4a61(0x1b3),_0x4e4a61(0x1b1),_0x4e4a61(0x1c7)];for(let _0x38e241=0x0;_0x38e241<_0x3060a5[_0x4e4a61(0x1c6)];_0x38e241++){const _0x11df7c=_0x38c93f[_0x4e4a61(0x1ac)][_0x4e4a61(0x1cb)][_0x4e4a61(0x1ae)](_0x38c93f),_0x30cf10=_0x3060a5[_0x38e241],_0x1ddba0=_0x3bc58d[_0x30cf10]||_0x11df7c;_0x11df7c[_0x4e4a61(0x1a7)]=_0x38c93f[_0x4e4a61(0x1ae)](_0x38c93f),_0x11df7c[_0x4e4a61(0x1ec)]=_0x1ddba0[_0x4e4a61(0x1ec)]['bind'](_0x1ddba0),_0x3bc58d[_0x30cf10]=_0x11df7c;}});_0x5a0cf6();'use strict';_0xc44307(document)[_0x2b988f(0x1e4)](function(){_0x190622(),_0x4c31ec(),_0x48f306(),_0x565297();});const _0x190622=()=>{const _0x244873=_0x2b988f;_0xc44307(_0x244873(0x1bc))[_0x244873(0x1db)]({'processing':!![],'searching':![],'info':![],'bLengthChange':![],'language':{'url':HR_PLUGIN_PATH+_0x244873(0x1e3)}});},_0x4c31ec=()=>{const _0x1d4ce3=_0x2b988f;_0xc44307(_0x1d4ce3(0x1d1))[_0x1d4ce3(0x1b8)]('click')['on'](_0x1d4ce3(0x1e2),function(){const _0xaa388d=_0x1d4ce3;_0xc44307(_0xaa388d(0x1bc))['DataTable']()['destroy'](),_0xc44307('#hrDataTable\x20tbody')[_0xaa388d(0x1d5)](_0xaa388d(0x1c9));let _0x1df0aa={'action':_0xaa388d(0x1d9),'department':_0xc44307('#department')[_0xaa388d(0x1ef)](),'employment':_0xc44307(_0xaa388d(0x1c5))[_0xaa388d(0x1ef)](),'location':_0xc44307(_0xaa388d(0x1c2))[_0xaa388d(0x1ef)](),'address':_0xc44307(_0xaa388d(0x1eb))[_0xaa388d(0x1ef)](),'radius':_0xc44307(_0xaa388d(0x1cc))[_0xaa388d(0x1ef)]()};_0x23d967(HR_AJAX_URL,_0x1df0aa,_0x21398c);});},_0x21398c=_0x2e0fd2=>{const _0x4f31fc=_0x2b988f;_0xc44307(_0x4f31fc(0x1bc))[_0x4f31fc(0x1db)]({'destroy':!![],'searching':![],'bLengthChange':![],'info':![],'processing':!![],'data':_0x2e0fd2,'language':{'url':HR_PLUGIN_PATH+_0x4f31fc(0x1e3)}});},_0x48f306=()=>{const _0x2bee97=_0x2b988f;_0xc44307(_0x2bee97(0x1b2))['off'](_0x2bee97(0x1bd))['on'](_0x2bee97(0x1bd),function(){const _0x85d17e=_0x2bee97;let _0x3f7407=_0xc44307(this)[_0x85d17e(0x1ef)]();_0x23d967(HR_AJAX_URL,{'action':'hr_get_form_data','jobId':_0xc44307(_0x85d17e(0x1ad))['val'](),'locationId':_0x3f7407},_0x5f29db),_0xc44307(_0x85d17e(0x1c1))[_0x85d17e(0x1ef)](_0x3f7407),_0xc44307(_0x85d17e(0x1bb))[_0x85d17e(0x1d5)](hrLocations[_0x3f7407][_0x85d17e(0x1ea)]),_0xc44307('.hrHouseNumber')['html'](hrLocations[_0x3f7407][_0x85d17e(0x1b4)]),_0xc44307(_0x85d17e(0x1aa))['html'](hrLocations[_0x3f7407][_0x85d17e(0x1b0)]),_0xc44307(_0x85d17e(0x1ba))[_0x85d17e(0x1d5)](hrLocations[_0x3f7407][_0x85d17e(0x1dd)]),_0xc44307('.hrState')[_0x85d17e(0x1d5)](hrLocations[_0x3f7407]['state']),_0xc44307(_0x85d17e(0x1bf))['html'](hrLocations[_0x3f7407][_0x85d17e(0x1b9)]);});},_0x5f29db=_0x3177ac=>{const _0x479e8f=_0x2b988f;console[_0x479e8f(0x1b6)](_0x3177ac),_0xc44307('#applicantId')['val'](_0x3177ac[_0x479e8f(0x1e6)]),_0xc44307('#postUrl')[_0x479e8f(0x1ef)](_0x3177ac[_0x479e8f(0x1c3)]),_0xc44307(_0x479e8f(0x1c8))[_0x479e8f(0x1ef)](_0x3177ac[_0x479e8f(0x1d7)]),_0xc44307(_0x479e8f(0x1a9))[_0x479e8f(0x1ef)](_0x3177ac[_0x479e8f(0x1d6)]),_0xc44307('#csrfToken')[_0x479e8f(0x1ef)](_0x3177ac[_0x479e8f(0x1a8)]),_0xc44307('#jwt')[_0x479e8f(0x1ef)](_0x3177ac[_0x479e8f(0x1cd)]);},_0x23d967=(_0x22a29d,_0x3423b5={},_0x4fd4ec=![],_0x3aa586=_0x2b988f(0x1d0))=>{const _0x271f8f=_0x2b988f;fetch(_0x22a29d,{'method':_0x3aa586,'mode':_0x271f8f(0x1e1),'cache':'force-cache','credentials':'same-origin','headers':{'Content-Type':_0x271f8f(0x1ce),'X-WP-Nonce':WP_NONCE},'redirect':'follow','referrerPolicy':'same-origin','body':_0x427c21(_0x3423b5)})[_0x271f8f(0x1e7)](_0xeb9351=>_0xeb9351[_0x271f8f(0x1e5)]())[_0x271f8f(0x1e7)](_0x2ffb27=>{const _0x26ff26=_0x271f8f;if(_0x4fd4ec)_0x4fd4ec(_0x2ffb27);if(_0x2ffb27[_0x26ff26(0x1a4)]===_0x26ff26(0x1b7)&&_0x2ffb27['errors'])alert(_0x26ff26(0x1ee));})[_0x271f8f(0x1d4)](_0x59702a=>{const _0x528172=_0x271f8f;console[_0x528172(0x1b7)](_0x528172(0x1a6),_0x59702a);});},_0x427c21=_0x4db5ad=>{const _0x2d471f=_0x2b988f;return new URLSearchParams(Object[_0x2d471f(0x1de)](_0x4db5ad)[_0x2d471f(0x1d8)](_0x1d2138=>[_0x1d2138,_0x4db5ad[_0x1d2138]]));},_0x565297=()=>{const _0x18c6df=_0x2b988f;_0xc44307(_0x18c6df(0x1ed))[_0x18c6df(0x1b8)](_0x18c6df(0x1e2))['on'](_0x18c6df(0x1e2),function(){const _0x8df6a8=_0x18c6df;_0xc44307(_0x8df6a8(0x1e9)+_0xc44307(this)['data']('id'))['fadeIn'](),_0x232b44();});},_0x232b44=()=>{const _0x1d4ff0=_0x2b988f;_0xc44307(_0x1d4ff0(0x1df))['off'](_0x1d4ff0(0x1e2))['on'](_0x1d4ff0(0x1e2),function(){_0xc44307('#modal'+_0xc44307(this)['data']('id'))['fadeOut']();});};}(jQuery));
     1function a0_0x38de(){const _0x1d53cd=['upload_url','applicant_id','.closeModal','#employment','1197315EKOAsI','3941850CGkYhW','1467114oDLvhx','csrf_token','bind','keys','#jobId','houseNumber','#uploadUrl','off','ready','prototype','2313048BlFoHl','apply','#hrDataTable','exception','.hrStreet','#changeLocation','result','#department','#locationId','#modal','#jwt','4411roijeX','19296EkbPXr','then','warn','toString','fadeIn','POST','Error:','#radius','7hbAgkW','.hrCountry','change','__proto__','#hrSendJobFilter','#csrfToken','#address','val','.hrCity','#hrDataTable\x20tbody','return\x20(function()\x20','258XJnlqP','application/x-www-form-urlencoded','city','table','/languages/datatable_de_DE.json','delete_url','console','jwt','same-origin','postalCode','follow','.hrState','click','errors','.hrPostalCode','state','data','log','390447GaSkac','street','#deleteUrl','catch','error','{}.constructor(\x22return\x20this\x22)(\x20)','#postUrl','destroy','1164nzVDYT','postUrl','DataTable','12TqqRgE','9nYyKiP','fadeOut','html'];a0_0x38de=function(){return _0x1d53cd;};return a0_0x38de();}function a0_0x4b92(_0x19fe9c,_0x169478){const _0x57d712=a0_0x38de();return a0_0x4b92=function(_0x150d43,_0x2e653a){_0x150d43=_0x150d43-0x15a;let _0x330c72=_0x57d712[_0x150d43];return _0x330c72;},a0_0x4b92(_0x19fe9c,_0x169478);}(function(_0x342536,_0x2f46df){const _0x35bd72=a0_0x4b92,_0xe93a7c=_0x342536();while(!![]){try{const _0x37605c=-parseInt(_0x35bd72(0x15e))/0x1*(parseInt(_0x35bd72(0x178))/0x2)+parseInt(_0x35bd72(0x170))/0x3*(-parseInt(_0x35bd72(0x17b))/0x4)+-parseInt(_0x35bd72(0x183))/0x5+parseInt(_0x35bd72(0x185))/0x6+parseInt(_0x35bd72(0x1a3))/0x7*(-parseInt(_0x35bd72(0x18f))/0x8)+-parseInt(_0x35bd72(0x17c))/0x9*(-parseInt(_0x35bd72(0x184))/0xa)+parseInt(_0x35bd72(0x19a))/0xb*(parseInt(_0x35bd72(0x19b))/0xc);if(_0x37605c===_0x2f46df)break;else _0xe93a7c['push'](_0xe93a7c['shift']());}catch(_0x3a4a12){_0xe93a7c['push'](_0xe93a7c['shift']());}}}(a0_0x38de,0x3452b),function(_0x28a9f5){const _0x55a5a6=a0_0x4b92,_0x4bf7a2=(function(){let _0x943e41=!![];return function(_0x24c3b9,_0x101987){const _0x516545=_0x943e41?function(){const _0x20e7ab=a0_0x4b92;if(_0x101987){const _0x264a3c=_0x101987[_0x20e7ab(0x190)](_0x24c3b9,arguments);return _0x101987=null,_0x264a3c;}}:function(){};return _0x943e41=![],_0x516545;};}()),_0x539d8e=_0x4bf7a2(this,function(){const _0x471632=a0_0x4b92,_0x919dce=function(){const _0x32278f=a0_0x4b92;let _0x7db190;try{_0x7db190=Function(_0x32278f(0x15d)+_0x32278f(0x175)+');')();}catch(_0x1a2e6e){_0x7db190=window;}return _0x7db190;},_0x821ee=_0x919dce(),_0x49214a=_0x821ee[_0x471632(0x164)]=_0x821ee[_0x471632(0x164)]||{},_0x53769a=[_0x471632(0x16f),_0x471632(0x19d),'info',_0x471632(0x174),_0x471632(0x192),_0x471632(0x161),'trace'];for(let _0x1f81a5=0x0;_0x1f81a5<_0x53769a['length'];_0x1f81a5++){const _0x4dd6e4=_0x4bf7a2['constructor'][_0x471632(0x18e)][_0x471632(0x187)](_0x4bf7a2),_0x11c133=_0x53769a[_0x1f81a5],_0x2bb4aa=_0x49214a[_0x11c133]||_0x4dd6e4;_0x4dd6e4[_0x471632(0x1a6)]=_0x4bf7a2[_0x471632(0x187)](_0x4bf7a2),_0x4dd6e4[_0x471632(0x19e)]=_0x2bb4aa[_0x471632(0x19e)]['bind'](_0x2bb4aa),_0x49214a[_0x11c133]=_0x4dd6e4;}});_0x539d8e();'use strict';_0x28a9f5(document)[_0x55a5a6(0x18d)](function(){_0x1c81ba(),_0x358867(),_0x14673b(),_0xa089d();});const _0x1c81ba=()=>{const _0x160bae=_0x55a5a6;_0x28a9f5('#hrDataTable')[_0x160bae(0x17a)]({'processing':!![],'searching':![],'info':![],'bLengthChange':![],'language':{'url':HR_PLUGIN_PATH+'/languages/datatable_de_DE.json'}});},_0x358867=()=>{const _0x31dd3c=_0x55a5a6;_0x28a9f5(_0x31dd3c(0x1a7))[_0x31dd3c(0x18c)]('click')['on'](_0x31dd3c(0x16a),function(){const _0x4e006f=_0x31dd3c;_0x28a9f5('#hrDataTable')[_0x4e006f(0x17a)]()[_0x4e006f(0x177)](),_0x28a9f5(_0x4e006f(0x15c))[_0x4e006f(0x17e)]('<tr><td\x20colspan=\x225\x22\x20style=\x22text-align:center;\x22>Lädt...</td></tr>');let _0x5e5eda={'action':'hr_search_jobs','department':_0x28a9f5(_0x4e006f(0x196))['val'](),'employment':_0x28a9f5(_0x4e006f(0x182))[_0x4e006f(0x15a)](),'location':_0x28a9f5('#location')[_0x4e006f(0x15a)](),'address':_0x28a9f5(_0x4e006f(0x1a9))[_0x4e006f(0x15a)](),'radius':_0x28a9f5(_0x4e006f(0x1a2))[_0x4e006f(0x15a)]()};_0x1b97ff(HR_AJAX_URL,_0x5e5eda,_0xea91bf);});},_0xea91bf=_0x35f9a7=>{const _0x39ef7c=_0x55a5a6;_0x28a9f5(_0x39ef7c(0x191))[_0x39ef7c(0x17a)]({'destroy':!![],'searching':![],'bLengthChange':![],'info':![],'processing':!![],'data':_0x35f9a7,'language':{'url':HR_PLUGIN_PATH+_0x39ef7c(0x162)}});},_0x14673b=()=>{const _0x1ed010=_0x55a5a6;_0x28a9f5(_0x1ed010(0x194))[_0x1ed010(0x18c)](_0x1ed010(0x1a5))['on'](_0x1ed010(0x1a5),function(){const _0x49186e=_0x1ed010;let _0x10acbc=_0x28a9f5(this)[_0x49186e(0x15a)]();_0x1b97ff(HR_AJAX_URL,{'action':'hr_get_form_data','jobId':_0x28a9f5(_0x49186e(0x189))[_0x49186e(0x15a)](),'locationId':_0x10acbc},_0x303a08),_0x28a9f5(_0x49186e(0x197))[_0x49186e(0x15a)](_0x10acbc),_0x28a9f5(_0x49186e(0x193))['html'](hrLocations[_0x10acbc][_0x49186e(0x171)]),_0x28a9f5('.hrHouseNumber')[_0x49186e(0x17e)](hrLocations[_0x10acbc][_0x49186e(0x18a)]),_0x28a9f5(_0x49186e(0x16c))[_0x49186e(0x17e)](hrLocations[_0x10acbc][_0x49186e(0x167)]),_0x28a9f5(_0x49186e(0x15b))['html'](hrLocations[_0x10acbc][_0x49186e(0x160)]),_0x28a9f5(_0x49186e(0x169))[_0x49186e(0x17e)](hrLocations[_0x10acbc][_0x49186e(0x16d)]),_0x28a9f5(_0x49186e(0x1a4))[_0x49186e(0x17e)](hrLocations[_0x10acbc]['country']);});},_0x303a08=_0xda9c8=>{const _0x590906=_0x55a5a6;console['log'](_0xda9c8),_0x28a9f5('#applicantId')['val'](_0xda9c8[_0x590906(0x180)]),_0x28a9f5(_0x590906(0x176))['val'](_0xda9c8[_0x590906(0x179)]),_0x28a9f5(_0x590906(0x18b))['val'](_0xda9c8[_0x590906(0x17f)]),_0x28a9f5(_0x590906(0x172))[_0x590906(0x15a)](_0xda9c8[_0x590906(0x163)]),_0x28a9f5(_0x590906(0x1a8))[_0x590906(0x15a)](_0xda9c8[_0x590906(0x186)]),_0x28a9f5(_0x590906(0x199))['val'](_0xda9c8[_0x590906(0x165)]);},_0x1b97ff=(_0x1669e0,_0x51cc15={},_0x5c5adf=![],_0x2d4497=_0x55a5a6(0x1a0))=>{const _0x2abc1e=_0x55a5a6;fetch(_0x1669e0,{'method':_0x2d4497,'mode':'same-origin','cache':'force-cache','credentials':_0x2abc1e(0x166),'headers':{'Content-Type':_0x2abc1e(0x15f)},'redirect':_0x2abc1e(0x168),'referrerPolicy':_0x2abc1e(0x166),'body':_0x2e453b(_0x51cc15)})[_0x2abc1e(0x19c)](_0x35269c=>_0x35269c['json']())['then'](_0x19a336=>{const _0x57eace=_0x2abc1e;if(_0x5c5adf)_0x5c5adf(_0x19a336);if(_0x19a336[_0x57eace(0x195)]===_0x57eace(0x174)&&_0x19a336[_0x57eace(0x16b)])alert('Es\x20trat\x20ein\x20Fehler\x20bei\x20der\x20Suche\x20auf.');})[_0x2abc1e(0x173)](_0xae4e1=>{const _0x506199=_0x2abc1e;console['error'](_0x506199(0x1a1),_0xae4e1);});},_0x2e453b=_0x1394b9=>{const _0x4770c5=_0x55a5a6;return new URLSearchParams(Object[_0x4770c5(0x188)](_0x1394b9)['map'](_0x23250a=>[_0x23250a,_0x1394b9[_0x23250a]]));},_0xa089d=()=>{const _0xce2014=_0x55a5a6;_0x28a9f5('.openModal')[_0xce2014(0x18c)](_0xce2014(0x16a))['on'](_0xce2014(0x16a),function(){const _0x2ffc06=_0xce2014;_0x28a9f5(_0x2ffc06(0x198)+_0x28a9f5(this)[_0x2ffc06(0x16e)]('id'))[_0x2ffc06(0x19f)](),_0x59351b();});},_0x59351b=()=>{const _0x169460=_0x55a5a6;_0x28a9f5(_0x169460(0x181))[_0x169460(0x18c)](_0x169460(0x16a))['on']('click',function(){const _0x139949=_0x169460;_0x28a9f5(_0x139949(0x198)+_0x28a9f5(this)[_0x139949(0x16e)]('id'))[_0x139949(0x17d)]();});};}(jQuery));
  • heyrecruit/trunk/templates/content/companyInfo.php

    r2866878 r2957944  
    1 <?php defined('ABSPATH') || exit; ?>
     1<?php defined('ABSPATH') || exit;?>
    22<div class="hr_jobs_company_info_wrap">
    33    <?php if ($args->overviewHeaderPicture): ?>
     
    1212    <?php endif; ?>
    1313    <?php if ($args->showDescription): ?>
    14         <p><?php echo  esc_attr($args->description); ?></p>
     14        <p><?php echo wp_kses_post($args->description); ?></p>
    1515    <?php endif; ?>
    1616    <div class="hr_jobs_social_links">
  • heyrecruit/trunk/templates/content/jsFiles.php

    r2866878 r2957944  
    1 <?php defined('ABSPATH') || exit; ?>
    2     <script>
    3         let HR_PLUGIN_PATH = '<?php echo esc_attr(HEYRECRUIT_PLUGIN_PATH);?>',
    4             jobData = <?php echo $args['jobsAsJson'];?>,
    5             HR_AJAX_URL = '<?php echo admin_url('admin-ajax.php');?>'
    6     </script>
    7 <?php
     1<?php defined('ABSPATH') || exit;
     2
     3function custom_enqueue_scripts() {
     4    wp_enqueue_script('hr-custom-script', HEYRECRUIT_PLUGIN_URL . '/js/hrMainConst.js', [],
     5        HEYRECRUIT_DEBUG_MODUS ? time() : esc_attr(HEYRECRUIT_VERSION),
     6        true);
     7
     8    $args = [
     9        'hr_plugin_path' => esc_attr(HEYRECRUIT_PLUGIN_PATH),
     10        'hr_job_data'    => $args['jobsAsJson']??[],
     11        'hr_ajax_url'    => admin_url('admin-ajax.php')
     12    ];
     13
     14    wp_localize_script('hr-custom-script', 'hr_custom_vars', $args);
     15}
     16
     17add_action('wp_enqueue_scripts', 'custom_enqueue_scripts');
     18add_action('wp_enqueue_scripts', 'custom_enqueue_scripts');
     19
     20function hr_jquery_js() {
     21    if ( ! wp_script_is( 'jquery', 'enqueued' ) ) {
     22        wp_enqueue_script(
     23            'hr_jquery_js',
     24            HEYRECRUIT_PLUGIN_URL . '/js/' . 'jquery-3.7.0.min.js',
     25            [],
     26            HEYRECRUIT_DEBUG_MODUS ? time() : esc_attr(HEYRECRUIT_VERSION),
     27            true
     28        );
     29    }
     30}
     31
     32add_action( 'wp_enqueue_scripts', 'hr_jquery_js' );
     33
    834wp_enqueue_script(
    935    'hr_datatables_js',
    1036    HEYRECRUIT_PLUGIN_URL . '/js/' . (HEYRECRUIT_DEBUG_MODUS ? 'datatables.js' : 'datatables.min.js'),
    11     [],
     37    ['jquery'],
    1238    HEYRECRUIT_DEBUG_MODUS ? time() : esc_attr(HEYRECRUIT_VERSION),
    1339    true
     
    1642    'hr_map_js',
    1743    HEYRECRUIT_PLUGIN_URL . '/js/' . (HEYRECRUIT_DEBUG_MODUS ? 'map.js' : 'map.min.js'),
    18     [],
     44    ['jquery'],
    1945    HEYRECRUIT_DEBUG_MODUS ? time() : esc_attr(HEYRECRUIT_VERSION),
    2046    true
     
    2349    'hr_googleapi_js',
    2450    'https://maps.googleapis.com/maps/api/js?key=' . esc_attr(HEYRECRUIT_MAPS_API_KEY),
    25     [],
     51    ['jquery'],
    2652    HEYRECRUIT_DEBUG_MODUS ? time() : esc_attr(HEYRECRUIT_VERSION),
    2753    true
     
    3056    'hr_main_js',
    3157    HEYRECRUIT_PLUGIN_URL . '/js/' . (HEYRECRUIT_DEBUG_MODUS ? 'main.js' : 'main.min.js'),
    32     [],
     58    ['jquery'],
    3359    HEYRECRUIT_DEBUG_MODUS ? time() : esc_attr(HEYRECRUIT_VERSION),
    3460    true
    3561);
    36 ?>
  • heyrecruit/trunk/templates/formElements/checkbox_with_modal.php

    r2866878 r2957944  
    44           value="1"/>
    55    <label for="<?php echo esc_attr($form->id); ?>">
    6         <?php echo esc_attr($form->value . $form->requierdMark); ?>
     6        <?php echo wp_kses_post($form->value . $form->requierdMark); ?>
    77    </label>
    88</div>
Note: See TracChangeset for help on using the changeset viewer.