<?php

$ext = fw_ext( 'contact-form' );

if ( ! is_admin() ) {
	wp_enqueue_script(
		'fw-form-helpers',
		fw_get_framework_directory_uri( '/static/js/fw-form-helpers.js' ),
		array( 'jquery' ),
		null,
		true
	);
	wp_localize_script( 'fw-form-helpers', 'fwAjaxUrl', array( admin_url( 'admin-ajax.php', 'relative' ) ) );

	wp_enqueue_style( 'crumina-ext-contact-form', $ext->locate_URI( '/static/css/contact-form.css' ), array(), $ext->manifest->get_version() );
}