Plugin Directory

Changeset 2914562


Ignore:
Timestamp:
05/19/2023 02:24:14 AM (3 years ago)
Author:
joanv
Message:

2.2.3 Fix category filter, add 'tag' paramter for search form shortcode

Location:
jobsearch
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • jobsearch/frontEnd/job/jobList.php

    r2510468 r2914562  
    8484
    8585        // Set up the link to send to the api
    86         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'keyword', $getParameter["keyword"]);
    87         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'jobLanguage', $getParameter["jobLanguage"]);
    88         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'type', $getParameter["type"]);
    89         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'featured', $attributes['featured']);
    90         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'company', $attributes['companyId']);
    91 
    92         foreach ( $displayCategories as $value) {
    93             $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
    94         }
     86        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'keyword', $getParameter["keyword"]);
     87        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'jobLanguage', $getParameter["jobLanguage"]);
     88        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'type', $getParameter["type"]);
     89        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'featured', $attributes['featured']);
     90        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'company', $attributes['companyId']);
     91        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'tag', $attributes['tag']);
    9592
    9693        foreach ( $excludedCategories as $value) {
     
    9895        }
    9996
    100         foreach ( $getParameter["category"] as $value) {
    101             $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
     97        if (!empty($getParameter["category"])){
     98            foreach ( $getParameter["category"] as $value) {
     99                $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
     100            }
     101        } else {
     102            foreach ( $displayCategories as $value) {
     103                $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
     104            }
    102105        }
    103106
  • jobsearch/jobsearch.php

    r2838261 r2914562  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.2.2
     5Version: 2.2.3
    66Author: Tamago-DB
    77Text Domain: jobsearch
  • jobsearch/readme.txt

    r2674369 r2914562  
    33Tags: job-board,recruiting,api,job-search,job,recruitment,recruit,job,tamago,tamago-db,
    44Requires at least: 4.9
    5 Tested up to: 5.9
     5Tested up to: 6.2.1
    66Requires PHP: 7.1
    77
     
    22222. Activate the plugin through the 'Plugins' screen in WordPress
    23233. Use the Settings->Plugin Name screen to configure the plugin
    24 4. Insert api link and api key provided by Tamago-DB then update it to set-up the plugin
     244. Insert api link and api key provided by Tamago-DB then update it to set up the plugin
    25255. Use the shortcode on the widget area or pages to make the plugin active
    2626
     
    3030url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    3131searchHidden: set to true to hide the search form on the result page
    32 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     32api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     33companyId : limit the job search to jobs belonging to this company (use the company ID)
     34tag : limit the job search to jobs with this tag (use the tag ID)
    3335
    3436[jobsearch_apply] - [tdb_job_board_apply] / Apply for candidate
    3537Parameters:
    3638redirect-link: redirect to a different page after submitting the registration form
    37 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     39api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    3840
    3941[jobsearch_last_job] - [tdb_job_board_last_job] / Widget who shown latest published jobs
    4042Parameters:
    4143url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    42 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     44api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    4345
    4446[jobsearch_category] - [tdb_job_board_category] / Widget who shown some specific jobs on category from Tamago-db
    4547Parameters:
    4648url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    47 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     49api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    4850
    4951[jobsearch_tag] - [tdb_job_board_tag] / Widget who shown some specific jobs on tag from Tamago-db
     
    5254tag: tag ID
    5355title: widget title
    54 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     56api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    5557
    5658[tdb_search_form] / Search form
     
    5860jobLanguage: filter on the language of the job
    5961url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    60 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     62api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    6163
    6264[tdb_list_form] / List form
     
    6769url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    6870urllist: pages you need to redirect to go to the detail
    69 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     71api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    7072
    7173[jobsearch_featured] - [tdb_job_board_featured] / List featured jobs from a given Company ID
     
    7375company: ID of the company jobs will be listed.
    7476url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    75 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     77api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    7678
    7779[jobsearch_apply_btn] - [tdb_job_board_apply_btn] / Create a button who redirect to the apply pages and get the current page title
  • jobsearch/trunk/frontEnd/job/jobList.php

    r2510468 r2914562  
    8484
    8585        // Set up the link to send to the api
    86         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'keyword', $getParameter["keyword"]);
    87         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'jobLanguage', $getParameter["jobLanguage"]);
    88         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'type', $getParameter["type"]);
    89         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'featured', $attributes['featured']);
    90         $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'company', $attributes['companyId']);
    91 
    92         foreach ( $displayCategories as $value) {
    93             $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
    94         }
     86        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'keyword', $getParameter["keyword"]);
     87        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'jobLanguage', $getParameter["jobLanguage"]);
     88        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'type', $getParameter["type"]);
     89        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'featured', $attributes['featured']);
     90        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'company', $attributes['companyId']);
     91        $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi, 'tag', $attributes['tag']);
    9592
    9693        foreach ( $excludedCategories as $value) {
     
    9895        }
    9996
    100         foreach ( $getParameter["category"] as $value) {
    101             $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
     97        if (!empty($getParameter["category"])){
     98            foreach ( $getParameter["category"] as $value) {
     99                $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
     100            }
     101        } else {
     102            foreach ( $displayCategories as $value) {
     103                $linkApi = $jobHelper->tdb_jb_updt_link_to_send($linkApi,'category[]',$value);
     104            }
    102105        }
    103106
  • jobsearch/trunk/jobsearch.php

    r2838261 r2914562  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.2.2
     5Version: 2.2.3
    66Author: Tamago-DB
    77Text Domain: jobsearch
  • jobsearch/trunk/readme.txt

    r2674369 r2914562  
    33Tags: job-board,recruiting,api,job-search,job,recruitment,recruit,job,tamago,tamago-db,
    44Requires at least: 4.9
    5 Tested up to: 5.9
     5Tested up to: 6.2.1
    66Requires PHP: 7.1
    77
     
    22222. Activate the plugin through the 'Plugins' screen in WordPress
    23233. Use the Settings->Plugin Name screen to configure the plugin
    24 4. Insert api link and api key provided by Tamago-DB then update it to set-up the plugin
     244. Insert api link and api key provided by Tamago-DB then update it to set up the plugin
    25255. Use the shortcode on the widget area or pages to make the plugin active
    2626
     
    3030url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    3131searchHidden: set to true to hide the search form on the result page
    32 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     32api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     33companyId : limit the job search to jobs belonging to this company (use the company ID)
     34tag : limit the job search to jobs with this tag (use the tag ID)
    3335
    3436[jobsearch_apply] - [tdb_job_board_apply] / Apply for candidate
    3537Parameters:
    3638redirect-link: redirect to a different page after submitting the registration form
    37 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     39api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    3840
    3941[jobsearch_last_job] - [tdb_job_board_last_job] / Widget who shown latest published jobs
    4042Parameters:
    4143url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    42 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     44api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    4345
    4446[jobsearch_category] - [tdb_job_board_category] / Widget who shown some specific jobs on category from Tamago-db
    4547Parameters:
    4648url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    47 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     49api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    4850
    4951[jobsearch_tag] - [tdb_job_board_tag] / Widget who shown some specific jobs on tag from Tamago-db
     
    5254tag: tag ID
    5355title: widget title
    54 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     56api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    5557
    5658[tdb_search_form] / Search form
     
    5860jobLanguage: filter on the language of the job
    5961url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    60 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     62api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    6163
    6264[tdb_list_form] / List form
     
    6769url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    6870urllist: pages you need to redirect to go to the detail
    69 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     71api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    7072
    7173[jobsearch_featured] - [tdb_job_board_featured] / List featured jobs from a given Company ID
     
    7375company: ID of the company jobs will be listed.
    7476url: add this parameter if you use this shortcode on another page than the main job list page. The URL should be the URL of the job list page.
    75 api: if you set-up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
     77api: if you set up multiple api link on admin panel, you can give the number of the api you want to use(by default it will be the first one)
    7678
    7779[jobsearch_apply_btn] - [tdb_job_board_apply_btn] / Create a button who redirect to the apply pages and get the current page title
Note: See TracChangeset for help on using the changeset viewer.