Update 2.0.0
Changelog
Shortcode [otys-vacancies-apply].
Added GDPR question when GDPR is setup for your client.
Improved layout.
The shortcode can now be used to display the application form on the vacancy detail page by adding the shortcode to the vacancy detail and adding the attribute vacancy-uid="$args['vacancy']['uid']".
<?php echo do_shortcode("[otys-vacancies-apply vacancy-uid={$args['vacancy']['uid']}]"); ?>The shortcode is now used for vacancy applications aswell.
The application page now works using ajax calls. This means the page will not refresh anymore when submitting the form, which improves the user experience.
[bugfix] Multiple notifcations emails will not happen anymore.
Improved error handling.
Improved styling.
The plugin relies on less database calls now which helps to improve performance for site with a slower or offsite database.
It's now possible to change the header fallback image in OTYS settings by going to OTYS -> Settings -> Vacancies; Under vacancy detail you'll have the setting 'Fallback header image'.
[bugfix] Special characters showing strange characters in motivation is now fixed.
[bugfix] Special characters showing strange chracters for extra fields question is now fixed.
When using vacancy search the search now searching in more vacancy fields.
Vacancy list results are now ordered on the publication date instead of the creation date.
Error when displaying [otys-vacancies-search] shortcode on a 404 page has been fixed.
When the plugin gets activated for the first time, default documents will be created by the plugin. The new documents created are using the new OTYS mergefields.
[otys-vacancies-list] sorting has been changed to publication date instead of creation date.
Candidates get assigned a language now based on the language they apply in.
When using UTM tags, the tags get added to both the candidate and the procedure. UTM tags will not be updated when the candidate is already known.
Now using home_url() instead of site_url() because of some WordPress installations changing the site_url() output.
DEV Notes
Shortcode [otys-vacancies-apply]
Old files (not used anymore)
[plugins-folder]/otys-jobs-apply/app/views/vacancies/vacancies-open-apply.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/vacancies/vacancies-open-apply.php[plugins-folder]/otys-jobs-apply/app/views/vacancies/vacancies-open-apply-success.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/vacancies/vacancies-open-apply-success.php
New files
[plugins-folder]/otys-jobs-apply/vacancies/apply/vacancies-apply-shortcode.php
[plugins-folder]/otys-jobs-apply/vacancies/apply/vacancies-apply-success.php
Templates for form files (include-parts)
All the input fields in these files now have a attribute id, this way the form fields can be linked to the form labels to improve the user experience.
Old files (not used anymore)
[plugins-folder]/otys-jobs-apply/app/views/include-parts/forms/field-*.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/include-parts/forms/field-*.php
New files
[plugins-folder]/otys-jobs-apply/app/views/include-parts/rest-forms/field-*.php
Vacancy application
Old files (not used anymore)
[plugins-folder]/otys-jobs-apply/app/views/vacancies/vacancies-apply.php
When overwritten in your theme: [your-theme]/otys-jobs-apply/vacancies/vacancies-apply.php
New files
[plugins-folder]/otys-jobs-apply/app/views/vacancies/apply/vacancies-apply.php
Vacancy application callback
When a vacancy application happens a WordPress action 'otys_application' gets triggered containing the information regarding the application. This action can be used for example to trigger events via the backend. These events can for example be Google tracking events, using the Google analytics API.
Readmore: https://wordpress.otys.com/kb/guide/en/application-callback-SuySHaHT7o/Steps/2682225
Change header fallback image
Before the header fallback image was hardcoded in the plugin. This hardcoded image still remains, but you're able to overwrite this header by setting the setting 'Fallback header image'. If you've overwritten the vacancy-detail.php in your theme and you want to be able to use the setting do as described below.
In the vacancy-detail.php the hardcoded image url should be replaced with <?php echo esc_url($args['vacancy']['vacancyFallbackImage']) ?>. For reference check the new original vacancy-detail.php in [your-plugin-folder]/otys-jobs-apply/views/vacancies/vacancies-detail.php.