Plugin Directory

Changeset 3169059


Ignore:
Timestamp:
10/15/2024 07:50:03 AM (18 months ago)
Author:
joanv
Message:

v2.3.0 Attachment field toggle and local storage option

Location:
jobsearch
Files:
4 added
26 edited

Legend:

Unmodified
Added
Removed
  • jobsearch/admin/admin.php

    r2684460 r3169059  
    180180            $arrayParam["templateActivateCheck"] = $adminHelper->tdb_jb_update_param($helper, "templateActivateCheck", 'text');
    181181
     182            $arrayParam["attachmentStorageLocalEnableCheck"] = $adminHelper->tdb_jb_update_param($helper, "attachmentStorageLocalEnableCheck", 'text');
     183
    182184            $arrayParam["ccTemplate"] = $adminHelper->tdb_jb_update_clean_param($helper, "ccTemplate", 'text');
    183185            $arrayParam["fromTemplate"] = $adminHelper->tdb_jb_update_clean_param($helper, "fromTemplate", 'text');
     
    218220
    219221        // Get all parameter to show on admin page
     222        $attachmentStorageLocalEnable = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'attachmentStorageLocalEnable', 'sValue', 'sName');
    220223        $sourceType = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'sourceType', 'sValue', 'sName');
    221224        $tagGroup1 = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'tagGroup1', 'sValue', 'sName');
     
    498501        }
    499502
     503        $attachmentStorageLocalEnableCheck = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'attachmentStorageLocalEnableCheck', 'sValue', 'sName');
     504        if($attachmentStorageLocalEnableCheck <> ''){
     505            $attachmentStorageLocalEnableCheck = 'checked';
     506        }
     507
    500508        //Get list of template available
    501509        $templateArray = [];
     
    557565        $reverseLanguageSkillCheckHtml = $helper->tdb_jb_get_col(4, "checkbox", "reverseLanguageSkillCheck", $reverseLanguageSkillCheck, TDB_LANG_REVERSE_LANGUAGE_SKILL, "tdb-jd-input-text tdb-jd-input");
    558566        $descriptionCleanedHtml = $helper->tdb_jb_get_col(4, "checkbox", "descriptionCleanedCheck", $descriptionCleanedCheck, TDB_LANG_DESCRIPTION_CLEANED, "tdb-jd-input-text tdb-jd-input");
     567        $attachmentStorageLocalEnableHtml = $helper->tdb_jb_get_col(4, "checkbox", "attachmentStorageLocalEnableCheck", $attachmentStorageLocalEnableCheck, TDB_LANG_ATTACHMENT_STORAGE_LOCAL_ENABLE, "tdb-jd-input-text tdb-jd-input");
    559568
    560569        $displayLink = 'style = "display:none"';
     
    645654            "langPreferedListOption" => TDB_LANG_CHOOSEFIRSTOPTION,
    646655            "langApplyExplain" => TDB_LANG_CHOOSESHOWNFIELD,
     656            "langAttention" => TDB_LANG_ATTENTION,
     657            "langAttachmentStorage" => TDB_LANG_ATTACHMENT_STORAGE,
     658            "langAttachmentStorageLocalEnable" => TDB_LANG_ATTACHMENT_STORAGE_LOCAL_ENABLE,
     659            "langAttachmentStorageLocalWarning" => TDB_LANG_ATTACHMENT_STORAGE_LOCAL_WARNING,
    647660            "langMandatoryExplain" => TDB_LANG_CHOOSEMANDATORY,
    648661            "langElemShowExplain" => TDB_LANG_CHOOSEELEMENTS,
     
    742755            "searchFieldIsMultiple" => $searchFieldIsMultipleCheck,
    743756            "rewriteUrl" => $rewriteUrlCheck,
     757            "attachmentStorageLocalEnableCheck" => $attachmentStorageLocalEnableHtml,
    744758            "templateActivate" => $templateActivateCheck,
    745759            "fromTemplate" => $helper->tdb_jb_get_col(4, "text", "fromTemplate", $fromTemplate, TDB_LANG_FROMTEMPLATE, "tdb-jd-input-text"),
  • jobsearch/admin/helper/adminHelper.php

    r2708599 r3169059  
    513513        $label["noticePeriod"] = TDB_LANG_NOTICED_PERIOD;
    514514        $label["url"] = TDB_LANG_URL;
     515        $label["attachment"] = TDB_LANG_ATTACHMENT;
    515516
    516517        $html.= '<div class="tdb-jd-row" >';
     
    802803        $translatTitle["contact"] = TDB_LANG_CONTACTDETAIL;
    803804        $translatTitle["personal"] = TDB_LANG_PERSONALINFO;
    804         $translatTitle["source"] = TDB_LANG_SOURCETYPE;
     805        $translatTitle["source"] = TDB_LANG_SOURCE;
    805806        $translatTitle["job"] = TDB_LANG_JOB;
    806807        $translatTitle["fromTemplate"] = TDB_LANG_FROMTEMPLATE;
  • jobsearch/css/admin.css

    r2510468 r3169059  
    994994.tdb-jd-label {
    995995    float: left;
     996    margin-right: 10px;
     997    padding-top:5px;
    996998}
    997999.tdb-jd-row-header-detail{
  • jobsearch/frontEnd/apply/applyForm.php

    r2684460 r3169059  
    524524            "sourceDetail" => $sourceDetail,
    525525            "applyUrl" => $paramApply["url"],
     526            "applyAttachment" => $paramApply["attachment"],
    526527            "nbEmployement" => $nbEmployement,
    527528            "nbSkill" => $nbSkill,
  • jobsearch/frontEnd/apply/applyResult.php

    r2708599 r3169059  
    301301            $date = date('m/d/Y h:i', time());
    302302            $timezone = date_default_timezone_get();
    303             // save the application on wordpress database
     303            // save the application on WordPress database
    304304            $idWp = $applyHelper->tdb_jb_insert_apply($idJob, $familyName . ' ' . $givenName, $date, $timezone, $json, $postdata);
    305305            // if attachment
    306306            if (count($_FILES["attachments"]["name"]) > 0 && $_FILES["attachments"]["name"]["0"] <> "") {
    307                 $applyHelper->tdb_jb_send_file_to_wordpress($idWp);
    308             }
    309 
     307                $localStorage = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'attachmentStorageLocalEnableCheck', 'sValue', 'sName');
     308                if($localStorage <> ''){
     309                    $applyHelper->tdb_jb_send_file_to_wordpress($idWp);
     310                }
     311            }
    310312
    311313            if($nonceCheck == false && $recaptchaCheck == false){
  • jobsearch/helper/helper.php

    r3064244 r3169059  
    386386        }
    387387
    388         if(isset($label) && $nameContent <>"" && $contentType <> "checkbox" ) {
     388        if(isset($label) && $label <> "" && $nameContent <> "" && $contentType <> "checkbox" ) {
    389389            if ($TypeLabel == "") {
    390390                $html.= '<label for="'.$nameContent.'" class = "tdb-jd-label" >'.$label.$requiredSpan.'</label>';
     
    728728        $param["recaptcha"] = $this->tdb_jb_get_parameters(TDB_TABLE_PARAM,'recaptchaApply','sValue','sName');
    729729        $param["url"] = $this->tdb_jb_get_parameters(TDB_TABLE_PARAM,'urlApply','sValue','sName');
     730        $param["attachment"] = $this->tdb_jb_get_parameters(TDB_TABLE_PARAM,'attachmentApply','sValue','sName');
    730731
    731732        return $param;
  • jobsearch/helper/sql.php

    r2684460 r3169059  
    369369        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'linkedinApply', 'sValue' => '1','nIdApi' => 1),'sName','linkedinApply');
    370370        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'urlApply', 'sValue' => '1','nIdApi' => 1),'sName','urlApply');
     371        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'attachmentApply', 'sValue' => '1','nIdApi' => 1),'sName','attachmentApply');
    371372        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'recaptchaApply', 'sValue' => '','nIdApi' => 1),'sName','recaptchaApply');
    372373        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'recaptchaKey', 'sValue' => "",'nIdApi' => 1),'sName','recaptchaKey');
  • jobsearch/helper/translation.php

    r3073587 r3169059  
    894894        define('TDB_LANG_ATTOP',__("At the top",$translation_name));
    895895        define('TDB_LANG_ATTACHMENT',__("Attachment",$translation_name));
     896        define('TDB_LANG_ATTACHMENT_STORAGE',__("Attachment storage",$translation_name));
     897        define('TDB_LANG_ATTACHMENT_STORAGE_LOCAL_ENABLE',__("Store attachments on the server",$translation_name));
     898        define('TDB_LANG_ATTACHMENT_STORAGE_LOCAL_WARNING',__("WordPress uploads are public accessible by default. Enabling this will require extra steps to prevent public access to uploaded files. Files are submitted automatically to Tamago-DB upon submission and available in 'Applications'. Use this as a backup solution and you are taking steps to secure the uploaded files.",$translation_name));
     899        define('TDB_LANG_ATTENTION',__("Attention!!",$translation_name));
    896900//B//
    897901        define('TDB_LANG_BASIS',__("Basis",$translation_name));
  • jobsearch/jobsearch.php

    r3074972 r3169059  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.2.11
     5Version: 2.3.0
    66Author: Tamago-DB
    77Text Domain: jobsearch
  • jobsearch/readme.txt

    r3076238 r3169059  
    33Tags: job-board,recruiting,job,recruitment,ats
    44Requires at least: 4.9
    5 Tested up to: 6.5.2
     5Tested up to: 6.6.2
    66Requires PHP: 7.3
    77
  • jobsearch/templates/admin/admin1.tpl

    r2684460 r3169059  
    318318            </div>
    319319            {$applyField}
    320             <br/>
     320            <hr class="tdb-jd-my-4">
     321            <h3>{$langAttachmentStorage}</h3>
     322            <div class="tdb-jd-row">
     323                {$attachmentStorageLocalEnableCheck}
     324            </div>
     325            <p><strong><span style="color:red;">{$langAttention}</span> {$langAttachmentStorageLocalWarning}</strong></p>
    321326            <hr class="tdb-jd-my-4">
    322327            <h3>{$langNationalityCountryVisa}</h3>
  • jobsearch/templates/apply/form/jobApplyBody1.tpl

    r3073662 r3169059  
    382382        {/if}
    383383
    384         <!-- File bloc -->
    385         <hr class="tdb-jd-my-4">
    386         <div class="tdb-jd-show-id-form" id="FileData" >
    387             <h3 id="tdb-title-file">{$langFile}</h3>
    388         </div>
    389         <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
    390             <div class="tdb-jd-container">
    391                 <div class="tdb-jd-row">
    392                     <div class="tdb-jd-col-4" id="tdb-col-file">
    393                         <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
    394                                accept=".doc,.docx,.pdf,.xls,.xlsx"
    395                                multiple  {$requiredAttachment}>
    396                     </div>
    397                 </div>
    398                 <div class="tdb-jd-row">
    399                     <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
    400                         <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
    401                             {$requiredSpanAttachment}
    402                         </label>
    403                     </div>
    404                 </div>
    405             </div>
    406         </div>
     384        {if $applyAttachment != ""}
     385            <!-- File bloc -->
     386            <hr class="tdb-jd-my-4">
     387            <div class="tdb-jd-show-id-form" id="FileData" >
     388                <h3 id="tdb-title-file">{$langFile}</h3>
     389            </div>
     390            <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
     391                <div class="tdb-jd-container">
     392                    <div class="tdb-jd-row">
     393                        <div class="tdb-jd-col-4" id="tdb-col-file">
     394                            <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
     395                                   accept=".doc,.docx,.pdf,.xls,.xlsx"
     396                                   multiple  {$requiredAttachment}>
     397                        </div>
     398                    </div>
     399                    <div class="tdb-jd-row">
     400                        <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
     401                            <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
     402                                {$requiredSpanAttachment}
     403                            </label>
     404                        </div>
     405                    </div>
     406                </div>
     407            </div>
     408        {/if}
    407409
    408410        {if $privacyPolicyRequired == true}
  • jobsearch/templates/apply/form/jobApplyBody9.tpl

    r3064244 r3169059  
    400400        {/if}
    401401
    402         <!-- File bloc -->
    403         <div class="tdb-jd-show-id-form" id="FileData" >
    404             <h3 id="tdb-title-file">{$langFile}</h3>
    405         </div>
    406         <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
    407             <div class="tdb-jd-container">
    408                 <div class="tdb-jd-row">
    409                     <div class="tdb-jd-col-4" id="tdb-col-file">
    410                         <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
    411                                accept=".doc,.docx,.pdf,.xls,.xlsx"
    412                                multiple  {$requiredAttachment}>
    413                     </div>
    414                 </div>
    415                 <div class="tdb-jd-row">
    416                     <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
    417                         <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
    418                     {$requiredSpanAttachment}
    419                     </label>
    420                 </div>
    421             </div>
    422         </div>
     402        {if $applyAttachment != ""}
     403            <!-- File bloc -->
     404            <div class="tdb-jd-show-id-form" id="FileData" >
     405                <h3 id="tdb-title-file">{$langFile}</h3>
     406            </div>
     407            <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
     408                <div class="tdb-jd-container">
     409                    <div class="tdb-jd-row">
     410                        <div class="tdb-jd-col-4" id="tdb-col-file">
     411                            <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
     412                                   accept=".doc,.docx,.pdf,.xls,.xlsx"
     413                                   multiple  {$requiredAttachment}>
     414                        </div>
     415                    </div>
     416                    <div class="tdb-jd-row">
     417                        <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
     418                            <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
     419                        {$requiredSpanAttachment}
     420                        </label>
     421                    </div>
     422                </div>
     423            </div>
     424        {/if}
    423425
    424426        {if $privacyPolicyRequired == true}
  • jobsearch/trunk/admin/admin.php

    r2684460 r3169059  
    180180            $arrayParam["templateActivateCheck"] = $adminHelper->tdb_jb_update_param($helper, "templateActivateCheck", 'text');
    181181
     182            $arrayParam["attachmentStorageLocalEnableCheck"] = $adminHelper->tdb_jb_update_param($helper, "attachmentStorageLocalEnableCheck", 'text');
     183
    182184            $arrayParam["ccTemplate"] = $adminHelper->tdb_jb_update_clean_param($helper, "ccTemplate", 'text');
    183185            $arrayParam["fromTemplate"] = $adminHelper->tdb_jb_update_clean_param($helper, "fromTemplate", 'text');
     
    218220
    219221        // Get all parameter to show on admin page
     222        $attachmentStorageLocalEnable = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'attachmentStorageLocalEnable', 'sValue', 'sName');
    220223        $sourceType = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'sourceType', 'sValue', 'sName');
    221224        $tagGroup1 = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'tagGroup1', 'sValue', 'sName');
     
    498501        }
    499502
     503        $attachmentStorageLocalEnableCheck = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'attachmentStorageLocalEnableCheck', 'sValue', 'sName');
     504        if($attachmentStorageLocalEnableCheck <> ''){
     505            $attachmentStorageLocalEnableCheck = 'checked';
     506        }
     507
    500508        //Get list of template available
    501509        $templateArray = [];
     
    557565        $reverseLanguageSkillCheckHtml = $helper->tdb_jb_get_col(4, "checkbox", "reverseLanguageSkillCheck", $reverseLanguageSkillCheck, TDB_LANG_REVERSE_LANGUAGE_SKILL, "tdb-jd-input-text tdb-jd-input");
    558566        $descriptionCleanedHtml = $helper->tdb_jb_get_col(4, "checkbox", "descriptionCleanedCheck", $descriptionCleanedCheck, TDB_LANG_DESCRIPTION_CLEANED, "tdb-jd-input-text tdb-jd-input");
     567        $attachmentStorageLocalEnableHtml = $helper->tdb_jb_get_col(4, "checkbox", "attachmentStorageLocalEnableCheck", $attachmentStorageLocalEnableCheck, TDB_LANG_ATTACHMENT_STORAGE_LOCAL_ENABLE, "tdb-jd-input-text tdb-jd-input");
    559568
    560569        $displayLink = 'style = "display:none"';
     
    645654            "langPreferedListOption" => TDB_LANG_CHOOSEFIRSTOPTION,
    646655            "langApplyExplain" => TDB_LANG_CHOOSESHOWNFIELD,
     656            "langAttention" => TDB_LANG_ATTENTION,
     657            "langAttachmentStorage" => TDB_LANG_ATTACHMENT_STORAGE,
     658            "langAttachmentStorageLocalEnable" => TDB_LANG_ATTACHMENT_STORAGE_LOCAL_ENABLE,
     659            "langAttachmentStorageLocalWarning" => TDB_LANG_ATTACHMENT_STORAGE_LOCAL_WARNING,
    647660            "langMandatoryExplain" => TDB_LANG_CHOOSEMANDATORY,
    648661            "langElemShowExplain" => TDB_LANG_CHOOSEELEMENTS,
     
    742755            "searchFieldIsMultiple" => $searchFieldIsMultipleCheck,
    743756            "rewriteUrl" => $rewriteUrlCheck,
     757            "attachmentStorageLocalEnableCheck" => $attachmentStorageLocalEnableHtml,
    744758            "templateActivate" => $templateActivateCheck,
    745759            "fromTemplate" => $helper->tdb_jb_get_col(4, "text", "fromTemplate", $fromTemplate, TDB_LANG_FROMTEMPLATE, "tdb-jd-input-text"),
  • jobsearch/trunk/admin/helper/adminHelper.php

    r2708599 r3169059  
    513513        $label["noticePeriod"] = TDB_LANG_NOTICED_PERIOD;
    514514        $label["url"] = TDB_LANG_URL;
     515        $label["attachment"] = TDB_LANG_ATTACHMENT;
    515516
    516517        $html.= '<div class="tdb-jd-row" >';
     
    802803        $translatTitle["contact"] = TDB_LANG_CONTACTDETAIL;
    803804        $translatTitle["personal"] = TDB_LANG_PERSONALINFO;
    804         $translatTitle["source"] = TDB_LANG_SOURCETYPE;
     805        $translatTitle["source"] = TDB_LANG_SOURCE;
    805806        $translatTitle["job"] = TDB_LANG_JOB;
    806807        $translatTitle["fromTemplate"] = TDB_LANG_FROMTEMPLATE;
  • jobsearch/trunk/css/admin.css

    r2510468 r3169059  
    994994.tdb-jd-label {
    995995    float: left;
     996    margin-right: 10px;
     997    padding-top:5px;
    996998}
    997999.tdb-jd-row-header-detail{
  • jobsearch/trunk/frontEnd/apply/applyForm.php

    r2684460 r3169059  
    524524            "sourceDetail" => $sourceDetail,
    525525            "applyUrl" => $paramApply["url"],
     526            "applyAttachment" => $paramApply["attachment"],
    526527            "nbEmployement" => $nbEmployement,
    527528            "nbSkill" => $nbSkill,
  • jobsearch/trunk/frontEnd/apply/applyResult.php

    r2708599 r3169059  
    301301            $date = date('m/d/Y h:i', time());
    302302            $timezone = date_default_timezone_get();
    303             // save the application on wordpress database
     303            // save the application on WordPress database
    304304            $idWp = $applyHelper->tdb_jb_insert_apply($idJob, $familyName . ' ' . $givenName, $date, $timezone, $json, $postdata);
    305305            // if attachment
    306306            if (count($_FILES["attachments"]["name"]) > 0 && $_FILES["attachments"]["name"]["0"] <> "") {
    307                 $applyHelper->tdb_jb_send_file_to_wordpress($idWp);
    308             }
    309 
     307                $localStorage = $helper->tdb_jb_get_parameters(TDB_TABLE_PARAM, 'attachmentStorageLocalEnableCheck', 'sValue', 'sName');
     308                if($localStorage <> ''){
     309                    $applyHelper->tdb_jb_send_file_to_wordpress($idWp);
     310                }
     311            }
    310312
    311313            if($nonceCheck == false && $recaptchaCheck == false){
  • jobsearch/trunk/helper/helper.php

    r3064244 r3169059  
    386386        }
    387387
    388         if(isset($label) && $nameContent <>"" && $contentType <> "checkbox" ) {
     388        if(isset($label) && $label <> "" && $nameContent <> "" && $contentType <> "checkbox" ) {
    389389            if ($TypeLabel == "") {
    390390                $html.= '<label for="'.$nameContent.'" class = "tdb-jd-label" >'.$label.$requiredSpan.'</label>';
     
    728728        $param["recaptcha"] = $this->tdb_jb_get_parameters(TDB_TABLE_PARAM,'recaptchaApply','sValue','sName');
    729729        $param["url"] = $this->tdb_jb_get_parameters(TDB_TABLE_PARAM,'urlApply','sValue','sName');
     730        $param["attachment"] = $this->tdb_jb_get_parameters(TDB_TABLE_PARAM,'attachmentApply','sValue','sName');
    730731
    731732        return $param;
  • jobsearch/trunk/helper/sql.php

    r2684460 r3169059  
    369369        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'linkedinApply', 'sValue' => '1','nIdApi' => 1),'sName','linkedinApply');
    370370        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'urlApply', 'sValue' => '1','nIdApi' => 1),'sName','urlApply');
     371        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'attachmentApply', 'sValue' => '1','nIdApi' => 1),'sName','attachmentApply');
    371372        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'recaptchaApply', 'sValue' => '','nIdApi' => 1),'sName','recaptchaApply');
    372373        $this->tdb_jb_insert_line(TDB_TABLE_PARAM, array('sName' => 'recaptchaKey', 'sValue' => "",'nIdApi' => 1),'sName','recaptchaKey');
  • jobsearch/trunk/helper/translation.php

    r3073587 r3169059  
    894894        define('TDB_LANG_ATTOP',__("At the top",$translation_name));
    895895        define('TDB_LANG_ATTACHMENT',__("Attachment",$translation_name));
     896        define('TDB_LANG_ATTACHMENT_STORAGE',__("Attachment storage",$translation_name));
     897        define('TDB_LANG_ATTACHMENT_STORAGE_LOCAL_ENABLE',__("Store attachments on the server",$translation_name));
     898        define('TDB_LANG_ATTACHMENT_STORAGE_LOCAL_WARNING',__("WordPress uploads are public accessible by default. Enabling this will require extra steps to prevent public access to uploaded files. Files are submitted automatically to Tamago-DB upon submission and available in 'Applications'. Use this as a backup solution and you are taking steps to secure the uploaded files.",$translation_name));
     899        define('TDB_LANG_ATTENTION',__("Attention!!",$translation_name));
    896900//B//
    897901        define('TDB_LANG_BASIS',__("Basis",$translation_name));
  • jobsearch/trunk/jobsearch.php

    r3074972 r3169059  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.2.11
     5Version: 2.3.0
    66Author: Tamago-DB
    77Text Domain: jobsearch
  • jobsearch/trunk/readme.txt

    r3076239 r3169059  
    33Tags: job-board,recruiting,job,recruitment,ats
    44Requires at least: 4.9
    5 Tested up to: 6.5.2
     5Tested up to: 6.6.2
    66Requires PHP: 7.3
    77
  • jobsearch/trunk/templates/admin/admin1.tpl

    r2684460 r3169059  
    318318            </div>
    319319            {$applyField}
    320             <br/>
     320            <hr class="tdb-jd-my-4">
     321            <h3>{$langAttachmentStorage}</h3>
     322            <div class="tdb-jd-row">
     323                {$attachmentStorageLocalEnableCheck}
     324            </div>
     325            <p><strong><span style="color:red;">{$langAttention}</span> {$langAttachmentStorageLocalWarning}</strong></p>
    321326            <hr class="tdb-jd-my-4">
    322327            <h3>{$langNationalityCountryVisa}</h3>
  • jobsearch/trunk/templates/apply/form/jobApplyBody1.tpl

    r3073662 r3169059  
    382382        {/if}
    383383
    384         <!-- File bloc -->
    385         <hr class="tdb-jd-my-4">
    386         <div class="tdb-jd-show-id-form" id="FileData" >
    387             <h3 id="tdb-title-file">{$langFile}</h3>
    388         </div>
    389         <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
    390             <div class="tdb-jd-container">
    391                 <div class="tdb-jd-row">
    392                     <div class="tdb-jd-col-4" id="tdb-col-file">
    393                         <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
    394                                accept=".doc,.docx,.pdf,.xls,.xlsx"
    395                                multiple  {$requiredAttachment}>
    396                     </div>
    397                 </div>
    398                 <div class="tdb-jd-row">
    399                     <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
    400                         <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
    401                             {$requiredSpanAttachment}
    402                         </label>
    403                     </div>
    404                 </div>
    405             </div>
    406         </div>
     384        {if $applyAttachment != ""}
     385            <!-- File bloc -->
     386            <hr class="tdb-jd-my-4">
     387            <div class="tdb-jd-show-id-form" id="FileData" >
     388                <h3 id="tdb-title-file">{$langFile}</h3>
     389            </div>
     390            <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
     391                <div class="tdb-jd-container">
     392                    <div class="tdb-jd-row">
     393                        <div class="tdb-jd-col-4" id="tdb-col-file">
     394                            <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
     395                                   accept=".doc,.docx,.pdf,.xls,.xlsx"
     396                                   multiple  {$requiredAttachment}>
     397                        </div>
     398                    </div>
     399                    <div class="tdb-jd-row">
     400                        <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
     401                            <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
     402                                {$requiredSpanAttachment}
     403                            </label>
     404                        </div>
     405                    </div>
     406                </div>
     407            </div>
     408        {/if}
    407409
    408410        {if $privacyPolicyRequired == true}
  • jobsearch/trunk/templates/apply/form/jobApplyBody9.tpl

    r3064244 r3169059  
    400400        {/if}
    401401
    402         <!-- File bloc -->
    403         <div class="tdb-jd-show-id-form" id="FileData" >
    404             <h3 id="tdb-title-file">{$langFile}</h3>
    405         </div>
    406         <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
    407             <div class="tdb-jd-container">
    408                 <div class="tdb-jd-row">
    409                     <div class="tdb-jd-col-4" id="tdb-col-file">
    410                         <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
    411                                accept=".doc,.docx,.pdf,.xls,.xlsx"
    412                                multiple  {$requiredAttachment}>
    413                     </div>
    414                 </div>
    415                 <div class="tdb-jd-row">
    416                     <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
    417                         <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
    418                     {$requiredSpanAttachment}
    419                     </label>
    420                 </div>
    421             </div>
    422         </div>
     402        {if $applyAttachment != ""}
     403            <!-- File bloc -->
     404            <div class="tdb-jd-show-id-form" id="FileData" >
     405                <h3 id="tdb-title-file">{$langFile}</h3>
     406            </div>
     407            <div class="tdb-jd-show-id-form1" id="FileDataBloc" >
     408                <div class="tdb-jd-container">
     409                    <div class="tdb-jd-row">
     410                        <div class="tdb-jd-col-4" id="tdb-col-file">
     411                            <input class ="tdb-jd-form-control tdb-jd-label" type="file"  name="attachments[]"  id="attachments"
     412                                   accept=".doc,.docx,.pdf,.xls,.xlsx"
     413                                   multiple  {$requiredAttachment}>
     414                        </div>
     415                    </div>
     416                    <div class="tdb-jd-row">
     417                        <div class="tdb-jd-col-{$colSize['resumeRegister']}" id="tdb-col-attachment">
     418                            <label for="attachments" class="tdb-jd-label tdb-jd-label-attachment">{$langUpload}
     419                        {$requiredSpanAttachment}
     420                        </label>
     421                    </div>
     422                </div>
     423            </div>
     424        {/if}
    423425
    424426        {if $privacyPolicyRequired == true}
Note: See TracChangeset for help on using the changeset viewer.