This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Change flatpickr config on Vacancy form | |
let calendar = $('#ff_5_birth, #ff_9_birth').get(0)._flatpickr; | |
if (calendar) { | |
let currentDate = new Date(); | |
let maxDate = new Date(currentDate.setFullYear(currentDate.getFullYear() - 18)); | |
// Convert minDate to 'd M Y' format | |
let maxDateString = maxDate.getDate() + ' ' + maxDate.toLocaleString('default', { month: 'short' }) + ' ' + maxDate.getFullYear(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* At the default, this is will add 'featured' meta post on the 'post' post type, to adjust it with your need | |
* use your IDE editor and use search & replace from your IDE to replace 'featured' & 'post' | |
*/ | |
/** | |
* Register the 'Featured' meta box. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function ($) { | |
// Find all anchor tags with href starting with "mailto:" | |
$('a[href^="mailto:"]').each(function () { | |
var email = $(this).attr('href').substring(7); // Extract the email address | |
// Encode the email address for obfuscation | |
var encodedEmail = ''; | |
for (var i = 0; i < email.length; i++) { | |
encodedEmail += '&#' + email.charCodeAt(i) + ';'; | |
} |