This file contains 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 | |
add_action( 'wp_head', function () { ?> | |
<script> | |
jQuery( document ).on( 'jet-booking/init', () => { | |
window.jetBookingState.filters.add( "jet-booking/input/config", modifyBookingConfig ); | |
window.jetBookingState.filters.add( "jet-booking/calendar/config", modifyBookingConfig ); | |
This file contains 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 | |
add_action( 'wp_head', function () { ?> | |
<script> | |
jQuery( document ).on( 'jet-booking/init', () => { | |
window.jetBookingState.filters.add( "jet-booking/input/config", modifyBookingConfig ); | |
window.jetBookingState.filters.add( "jet-booking/calendar/config", modifyBookingConfig ); | |
This file contains 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 | |
add_action( 'wp_head', function () { ?> | |
<script> | |
jQuery( document ).on( 'jet-booking/init', () => { | |
window.jetBookingState.filters.add( "jet-booking/input/config", modifyBookingConfig ); | |
window.jetBookingState.filters.add( "jet-booking/calendar/config", modifyBookingConfig ); | |
This file contains 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 | |
function getQueryResult($query_id = 1){ | |
if(function_exists('jet_engine')){ | |
$query = Jet_Engine\Query_Builder\Manager::instance()->get_query_by_id( $query_id ); | |
return $query ? ',' . jet_engine()->listings->macros->do_macros('%query_results|' . $query_id . '|ids%') . ',' : ''; | |
This file contains 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 | |
class JFB_Do_Macros_In_Default { | |
public function __construct() { | |
add_action( 'plugins_loaded', array( $this, 'maybe_add_filter' ) ); | |
} | |
public function maybe_add_filter() { | |
if ( ! function_exists( 'jet_engine' ) ) { |
This file contains 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 | |
add_filter( 'jet-smart-filters/query/final-query', function($query){ | |
if( isset( $query['meta_query'] ) ){ | |
foreach( $query['meta_query'] as $item => $value){ | |
if( $value['key'] === '_search_by_term_name' ){ | |
This file contains 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
<script> | |
document.addEventListener('DOMContentLoaded', function () { | |
const fileInput = document.querySelector('#s_cv'); | |
const outputPara = document.querySelector('#uploaded_cv'); | |
fileInput.addEventListener('change', function () { | |
if (this.files.length > 0) { | |
let fileNames = Array.from(this.files).map(file => file.name).join(', '); | |
outputPara.innerHTML = '<b>Uploaded CVs:</b> ' + fileNames; |
This file contains 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
<style> | |
.jet-ajax-search__categories-select-icon { | |
font-family: "Font Awesome 5 Free"; | |
font-weight: 900; | |
font-size: 14px !important; | |
font-style: normal; | |
} | |
.jet-ajax-search__categories-select-icon svg { | |
display: none; |
This file contains 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 | |
add_action( 'jet-engine/register-macros', function(){ | |
class Is_Sticky extends \Jet_Engine_Base_Macros { | |
public function macros_tag() { | |
return 'is_sticky'; | |
} |
This file contains 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 | |
add_action( | |
'jet-form-builder/gateways/before-create', | |
function ( $request ) { | |
if ( | |
// execute this action only when paying through Stripe | |
! is_a( | |
$request, | |
\Jet_FB_Stripe_Gateway\Compatibility\Jet_Form_Builder\Actions\Create_Checkout_Session::class |