=== Radar Emprego ===
Contributors: radaremprego
Tags: jobs, emprego, portugal, job board, municipality
Requires at least: 6.1
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The open job ads of a Portuguese municipality, always up to date, in your theme's own style. No cookies, no scripts.

== Description ==

Radar Emprego collects job ads every day from employers' own career sites, public bodies and job boards in Portugal. This plugin shows the ads for your municipality (concelho) on any page of your site, as a plain list in your theme's own style:

* the job title, linking to the ad on Radar Emprego;
* the employer, the place, the salary when the ad states it, and the date;
* a link to every open ad, and the line "Ofertas recolhidas por Radar Emprego".

It is made for town halls (câmaras municipais), employment offices (GIP), universities, schools and associations. It is free and needs no registration.

**Privacy.** Your server fetches the list (at most once every 30 minutes per list) and prints it. Your visitors make no request to Radar Emprego, receive no cookie and load no script from it, so the plugin changes neither your cookie notice nor your privacy policy.

**Reliability.** If Radar Emprego cannot be reached, the last list fetched is shown; if there is none, nothing is shown. Visitors never see an error.

= Shortcode =

`[radar_emprego concelho="soure"]`

Options (all optional):

* `concelho` – the municipality, as a name or slug (`"Vila Nova de Gaia"` or `"vila-nova-de-gaia"`); several separated by commas. Empty: the whole country.
* `distrito` – a district instead of a municipality (`"coimbra"`).
* `raio` – also the ads within this many kilometres of the municipality (up to 100).
* `linhas` – how many ads (1 to 20, default 8).
* `estagios="1"` – internships only.
* `part_time="1"` – part-time only.
* `publico="1"` – public sector only.
* `area` – one field, as on radaremprego.pt (e.g. `"saude"`).
* `dias` – only ads published in the last N days.
* `lang` – `pt` or `en` (default: the site's language).
* `titulo="0"` – hide the heading.

Example: `[radar_emprego concelho="soure" linhas="8" raio="30" estagios="1"]`

= Block =

Add the "Radar Emprego: job ads" block (Widgets category) and choose the municipality and options in the sidebar.

= Styling =

The list uses your theme's styles. Classes: `.radar-emprego`, `.radar-emprego__title`, `.radar-emprego__list`, `.radar-emprego__job`, `.radar-emprego__meta`, `.radar-emprego__more`, `.radar-emprego__credit`. The heading is an `h3`; change it with the `radar_emprego_heading_tag` filter.

= Not on WordPress? =

https://radaremprego.pt/para-o-seu-site makes a snippet (a frame) and an RSS feed for any site.

== External services ==

This plugin connects to Radar Emprego (https://radaremprego.pt) to get the list of job ads it shows. It is needed: the ads are not stored in the plugin.

* When: when a page with the shortcode or block is shown and the copy kept on your server is older than 30 minutes (or, in the editor, when you change the block's options).
* What is sent: the list's options (municipality, number of rows, filters, language) and your site's host name (`site=`), so that Radar Emprego can count on how many sites its lists are shown. Nothing about your visitors is sent.
* Terms of use: https://radaremprego.pt/termos
* Privacy policy: https://radaremprego.pt/privacidade

== Installation ==

1. Plugins → Add New → Upload Plugin, choose `radar-emprego.zip`, then Activate.
2. Add the "Radar Emprego: job ads" block to a page, or the shortcode `[radar_emprego concelho="your-municipality"]`.

To test against another server, set `define( 'RADAR_EMPREGO_BASE', 'https://example.org' );` in `wp-config.php` or use the `radar_emprego_base_url` filter.

== Frequently Asked Questions ==

= Can I hide the "Ofertas recolhidas por Radar Emprego" line? =

Please keep it visible: it is the only thing we ask in return.

= How fresh is the list? =

Radar Emprego updates the ads every day; your site fetches the list again every 30 minutes.

= My municipality has very few ads =

With fewer than 10 ads, and no `raio` set, the list adds the ads within 30 km and says so in its heading.

== Changelog ==

= 1.0.0 =
* First version: shortcode and block, 30-minute cache, last good copy on failure.
