update
This commit is contained in:
parent
1f860d06a5
commit
49c56f9db0
|
@ -12,23 +12,32 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function roomwithavw_custom_add_scripts() {
|
function roomwithavw_custom_add_scripts() {
|
||||||
wp_register_script( 'roomwithavw-custom-script', plugins_url( 'assets/js/index.js', __FILE__ ), ['jquery-ui-datepicker'], '1.0', true );
|
wp_register_script( 'roomwithavw-custom-script', plugins_url( 'assets/js/index.js', __FILE__ ), '', '1.0', true );
|
||||||
wp_enqueue_script( 'roomwithavw-custom-script' );
|
wp_enqueue_script( 'roomwithavw-custom-script' );
|
||||||
|
|
||||||
wp_enqueue_style( 'roomwithavw-custom-styles', plugins_url( 'assets/css/style.css', __FILE__ ), '', '1.0' );
|
wp_enqueue_style( 'roomwithavw-custom-styles', plugins_url( 'assets/css/style.css', __FILE__ ), '', '1.0' );
|
||||||
}
|
}
|
||||||
add_action( 'wp_enqueue_scripts', 'roomwithavw_custom_add_scripts' );
|
add_action( 'wp_enqueue_scripts', 'roomwithavw_custom_add_scripts' );
|
||||||
|
|
||||||
|
function roowitahvw_dequeue_scripts() {
|
||||||
|
wp_dequeue_script( LAYERS_THEME_SLUG . '-map-api' );
|
||||||
|
wp_deregister_script( LAYERS_THEME_SLUG . '-map-api' );
|
||||||
|
// wp_dequeue_script( LAYERS_THEME_SLUG . '-map-trigger' );
|
||||||
|
// wp_deregister_script( LAYERS_THEME_SLUG . '-map-trigger' );
|
||||||
|
}
|
||||||
|
add_action( 'wp_enqueue_scripts', 'roowitahvw_dequeue_scripts', 99 );
|
||||||
|
|
||||||
|
|
||||||
function roomwithavw_custom_enquiry_form() {
|
function roomwithavw_custom_enquiry_form() {
|
||||||
?>
|
?>
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
We are family run business that enjoys liaising with our clients to ensure we provide the best experience. For this reason, unlike regular camper van hire companies, we are not using an online calendar booking system as we believe it takes away from the personal touch we strive to maintain.
|
We are family run business that enjoys liaising with our clients to ensure we provide the best experience. For this reason, unlike regular camper van hire companies, we are not using an online calendar booking system as we believe it takes away from the personal touch we strive to maintain.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
Fill in the form below and one of our team will be in touch with you shortly.
|
Fill in the form below and one of our team will be in touch with you shortly.
|
||||||
</p>
|
</p>
|
||||||
<div class="enquiry-form wpcf7" role="form" dir="ltr">
|
<div class="enquiry-form wpcf7" role="form" dir="ltr">
|
||||||
<div class="screen-reader-response" aria-live="polite"></div>
|
<div class="screen-reader-response" aria-live="polite"></div>
|
||||||
|
|
||||||
<!-- <form action="https://mailthis.to/mailthis@gabbaell.co.uk" method="post" class="wpcf7-form" novalidate="novalidate"> -->
|
<!-- <form action="https://mailthis.to/mailthis@gabbaell.co.uk" method="post" class="wpcf7-form" novalidate="novalidate"> -->
|
||||||
|
@ -59,8 +68,8 @@ Fill in the form below and one of our team will be in touch with you shortly.
|
||||||
<p><input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit" /></p>
|
<p><input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit" /></p>
|
||||||
<div class="wpcf7-response-output wpcf7-display-none" aria-hidden="true"></div>
|
<div class="wpcf7-response-output wpcf7-display-none" aria-hidden="true"></div>
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
add_shortcode('rwavw-capsule-enquiry', 'roomwithavw_custom_enquiry_form');
|
add_shortcode('rwavw-capsule-enquiry', 'roomwithavw_custom_enquiry_form');
|
||||||
|
|
Loading…
Reference in New Issue