HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/woffice-core/extensions/woffice-poll/static.php
<?php 

defined( 'ABSPATH' ) || exit;

function woffice_poll_load_mapjs(){

	/**
	 * LOAD THE JAVASCRIPT FOR THE FORM
	 */
	if ( !is_admin() && defined('WOFFICE_THEME_VERSION')) {
			wp_enqueue_script(
				'fw-extension-woffice-poll-scripts',
				woffice_get_extension_uri('poll', 'static/js/woffice-poll-scripts.js'),
				array( 'jquery', 'woffice-theme-script'),
				WOFFICE_THEME_VERSION,
				true
			);
	}
}

add_action( 'wp_enqueue_scripts', 'woffice_poll_load_mapjs',100);