public function enqueueFront()
    {
        // Styles
        wp_enqueue_style(
            'event-integration',
            EVENTMANAGERINTEGRATION_URL . '/dist/' . Helper\CacheBust::name('css/event-manager-integration.css'));

        // Scripts

        // Google Maps JS Api
        if ($googleApiKey = get_field('google_geocode_key', 'option')) {
            wp_enqueue_script('google-maps-api', '//maps.googleapis.com/maps/api/js?key=' . $googleApiKey . '', array(), '', true);
        }

        wp_register_script('auto-complete', EVENTMANAGERINTEGRATION_URL . '/source/js/vendor/auto-complete/auto-complete.min.js', 'jquery', false, true);
        wp_enqueue_script('auto-complete');

        wp_register_script('event-integration', EVENTMANAGERINTEGRATION_URL . '/dist/' . Helper\CacheBust::name('js/event-integration-front.js'), 'jquery', false, true);
        wp_localize_script('event-integration', 'eventintegration', array(
            'ajaxurl' => admin_url('admin-ajax.php'),
            'apiurl' => get_field('event_api_url', 'option'),
        ));
        wp_localize_script('event-integration', 'eventIntegrationFront', array(
            'event_pagination_error' => __("Something went wrong, please try again later.", 'event-integration'),
            'email_not_matching' => __("The email addresses does not match.", 'event-integration'),
            'must_upload_image' => __("You must upload an image.", 'event-integration'),
        ));
        wp_enqueue_script('event-integration');
    }
public function enqueueFront()
    {
        // Styles
        wp_enqueue_style(
            'event-integration',
            EVENTMANAGERINTEGRATION_URL . '/dist/' . Helper\CacheBust::name('css/event-manager-integration.css'));

        // Scripts

        // Google Maps JS Api
        if ($googleApiKey = get_field('google_geocode_key', 'option')) {
            wp_enqueue_script('google-maps-api', '//maps.googleapis.com/maps/api/js?key=' . $googleApiKey . '', array(), '', true);
        }

        wp_register_script('auto-complete', EVENTMANAGERINTEGRATION_URL . '/source/js/vendor/auto-complete/auto-complete.min.js', 'jquery', false, true);
        wp_enqueue_script('auto-complete');

        wp_register_script('event-integration', EVENTMANAGERINTEGRATION_URL . '/dist/' . Helper\CacheBust::name('js/event-integration-front.js'), 'jquery', false, true);
        wp_localize_script('event-integration', 'eventintegration', array(
            'ajaxurl' => admin_url('admin-ajax.php'),
            'apiurl' => get_field('event_api_url', 'option'),
        ));
        wp_localize_script('event-integration', 'eventIntegrationFront', array(
            'event_pagination_error' => __("Something went wrong, please try again later.", 'event-integration'),
            'email_not_matching' => __("The email addresses does not match.", 'event-integration'),
            'must_upload_image' => __("You must upload an image.", 'event-integration'),
        ));
        wp_enqueue_script('event-integration');
    }
public function enqueueFront ( ) { // Styles wp_enqueue_style ( 'event-integration' , EVENTMANAGERINTEGRATION_URL . '/dist/' . Helper \ CacheBust :: name ( 'css/event-manager-integration.css' ) ) ; // Scripts // Google Maps JS Api if ( $ googleApiKey = get_field ( 'google_geocode_key' , 'option' ) ) { wp_enqueue_script ( 'google-maps-api' , '//maps.googleapis.com/maps/api/js?key=' . $ googleApiKey . '' , array ( ) , '' , true ) ; } wp_register_script ( 'auto-complete' , EVENTMANAGERINTEGRATION_URL . '/source/js/vendor/auto-complete/auto-complete.min.js' , 'jquery' , false , true ) ; wp_enqueue_script ( 'auto-complete' ) ; wp_register_script ( 'event-integration' , EVENTMANAGERINTEGRATION_URL . '/dist/' . Helper \ CacheBust :: name ( 'js/event-integration-front.js' ) , 'jquery' , false , true ) ; wp_localize_script ( 'event-integration' , 'eventintegration' , array ( 'ajaxurl' => admin_url ( 'admin-ajax.php' ) , 'apiurl' => get_field ( 'event_api_url' , 'option' ) , ) ) ; wp_localize_script ( 'event-integration' , 'eventIntegrationFront' , array ( 'event_pagination_error' => __ ( "Something went wrong, please try again later." , 'event-integration' ) , 'email_not_matching' => __ ( "The email addresses does not match." , 'event-integration' ) , 'must_upload_image' => __ ( "You must upload an image." , 'event-integration' ) , ) ) ; wp_enqueue_script ( 'event-integration' ) ; }
Enqueue required styles and scripts on front views
@return void
Enqueue required styles and scripts on front views