Enqueue scripts
@return void
971800
public function script()
    {
        wp_register_script($this->defaultPrimeName, Styleguide::getScriptPath());

        //Localization
        wp_localize_script($this->defaultPrimeName, 'HbgPrimeArgs', array(
            'api' => array(
                'root' => esc_url_raw(rest_url()),
                'nonce' => wp_create_nonce('wp_rest'),
                'postTypeRestUrl' => \Municipio\Helper\PostType::postTypeRestUrl()
            ),
            'cookieConsent' => array(
                'show'      => get_field('cookie_consent_active', 'option'),
                'message'   => get_field('cookie_consent_message', 'option'),
                'button'    => get_field('cookie_consent_button', 'option'),
                'placement' => get_field('cookie_consent_placement', 'option')
            ),
            'googleTranslate' => array(
                'gaTrack' => get_field('google_translate_ga_track', 'option'),
                'gaUA'    => get_field('google_analytics_ua', 'option')
            ),
            'scrollElevator' => array(
                'cta' => get_field('scroll_elevator_text', 'option'),
                'tooltip' => get_field('scroll_elevator_tooltio', 'option'),
                'tooltipPosition' => get_field('scroll_elevator_tooltio_position', 'option')
            ),
            'tableFilter' => array(
                'empty' => apply_filters('municipio/tablefilter/empty', __('No matching content found…', 'municipio'))
            )
        ));
        wp_enqueue_script($this->defaultPrimeName);

        wp_register_script('municipio', get_template_directory_uri() . '/assets/dist/' . \Municipio\Helper\CacheBust::name('js/app.js'));
        wp_localize_script('municipio', 'MunicipioLang', array(
            'printbreak' => array(
                'tooltip' => __('Insert Print Page Break tag', 'municipio')
            ),
            'messages' => array(
                'deleteComment' => __('Are you sure you want to delete the comment?', 'municipio'),
                'onError' => __('Something went wrong, please try again later', 'municipio'),
            )
        ));
        wp_enqueue_script('municipio');

        //Load polyfill SAAS
        wp_enqueue_script('polyfill', 'https://cdn.polyfill.io/v3/polyfill.min.js', 'municipio');

        //Comment reply
        if (is_singular() && get_option('thread_comments')) {
            wp_enqueue_script('comment-reply');
        }
    }
159820
public function enqueueGumroadEmbedLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'gumroad-embed' => [
                    'sri'     => '', // No SRI, updated by Gumroad.
                    'url'     => '//gumroad.com/js/gumroad-embed.js',
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
1288062
public function enqueue_module_assets( $name ) {
		if ( ! in_array( $name, $this->_enqueued_modules, true ) ) {
			$module = $this->get_module( $name );

			if ( $module instanceof Module && method_exists( $module, 'enqueue_assets' ) ) {
				$this->_enqueued_modules[] = $name;
				$module->enqueue_assets();
			}
		}
	}
1165736
protected function enqueue_script( $script, $hook = null ) {
		if ( $script['condition']( $hook ) ) {
			wp_enqueue_script(
				$script['handle'],
				$this->url . $script['src'] . $this->min . '.js',
				isset( $script['deps'] ) ? $script['deps'] : array(),
				$this->version,
				isset( $script['footer'] ) ? $script['footer'] : false
			);

			if ( isset( $script['localize'] ) ) {
				if ( is_callable( $script['localize'] ) ) { // @todo make all properties callables
					$script['localize'] = call_user_func( $script['localize'] );
				}

				wp_localize_script(
					$script['handle'],
					$script['localize']['name'],
					$script['localize']['data']
				);
			}
		}
	}
466604
protected function enqueue( $set, $type ) {
		// go over the set to see if it has styles or scripts

		$enqueue_type = 'wp_enqueue_' . $type;

		foreach ( $set as $key => $item ) {

			if ( is_int( $key ) ) {
				$enqueue_type( $item );
				continue;
			}

			$args = $this->build_asset_args( $item );
			$enqueue_type( $key, $args['src'], $args['deps'], $args['ver'], $args['in_footer'] );

		}

	}
1230427
public function setScripts(array $scripts): self
    {
        $this->_params = [];
        foreach ($scripts as $name => $script) {
            $this->addScript($name, $script);
        }

        return $this;
    }
1111061
public function enqueue() {
		wp_register_style(
			'bglib-ui-css',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/css/ui.css'
		);

		wp_register_script(
			'bglib-ui-js',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/ui.js',
			'jquery.sticky-kit'
		);

		wp_register_script(
			'bglib-sticky',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/sticky.js',
			'jquery'
		);

		wp_register_style(
			'bglib-attributes-css',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/css/attributes.css'
		);

		wp_register_script(
			'bglib-attributes-js',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/attributes.js',
			'jquery'
		);
	}
956288
public function enqueueScripts()
    {
        $posttypesEnabled = self::getOption('options_readspeaker-helper-enable-posttypes');
        if (!is_array($posttypesEnabled) || !in_array(get_post_type(), $posttypesEnabled)) {
            return;
        }

        /**
         * Enqueue readspeaker script
         */
        wp_register_script(
            'readspeaker',
            '//f1-eu.readspeaker.com/script/' . self::$customerId . '/ReadSpeaker.js?pids=embhl&jit=1',
            array(),
            '1.0.0',
            self::getOption('options_readspeaker-helper-script-footer')
        );
        wp_enqueue_script('readspeaker');
    }
63331
public function enqueue()
	{
		if ($this->assets) {
			foreach ($this->assets as $type => $assets) {
				$registerFunc = 'wp_register_' . $type;
				$enqueueFunc = 'wp_enqueue_' . $type;
				foreach ($assets as $handle => $data) {
					if ($data) {
						$data = array_merge(array(
							'src' => null,
							'deps' => array(),
							'ver' => false,
							'in_footer' => false,
							'media' => 'all',
						), $data);
						$lastArg = 'script' == $type ? $data['in_footer'] : $data['media'];
						$registerFunc($handle, $data['src'], $data['deps'], $data['ver'], $lastArg);
					}

					$enqueueFunc($handle);
				}
			}
		}

		if ($this->deregister) {
			foreach ($this->deregister as $type => $handles) {
				$function = 'wp_deregister_' . $type;
				foreach ($handles as $handle) {
					$function($handle);
				}
			}
		}
	}
1208844
public function enqueue_scripts() {
		$version = \GeotFunctions\get_version();
		wp_enqueue_script( 'geot-selectize', $this->plugin_url . 'js/selectize.min.js', array( 'jquery' ), $version, false );
		wp_enqueue_script( 'geot-chosen', $this->plugin_url . 'js/chosen.jquery.min.js', array( 'jquery' ), $version, false );
		wp_enqueue_script( 'geot', $this->plugin_url . 'js/geotargeting-admin.js', array(
			'jquery',
			'geot-chosen',
			'geot-selectize',
			'jquery-ui-dialog'
		), $version, false );
		wp_localize_script( 'geot', 'geot', array(
			'ajax_url' => admin_url( 'admin-ajax.php' )
		) );
	}
563510
public function enqueueSemanticUiScripts()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data['scripts'] = [
            'semantic-ui' => [
                'ver'  => $this->cv,
                'deps' => ['jquery'],
                'url'  => $this->c::appWsCoreUrl('/client-s/semantic/dist/semantic.min.js'),
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
865439
protected function enqueueScript()
    {
        wp_enqueue_script(
            $this->getHandle(),
            $this->getUrl(),
            $this->getDependencies(),
            $this->getVersion(),
            $this->getArgument()
        );

        if (! empty($this->localize)) {
            foreach ($this->localize as $name => $data) {
                wp_localize_script($this->getHandle(), $name, $data);
            }
        }

        if (! empty($this->inline)) {
            foreach ($this->inline as $code) {
                wp_add_inline_script($this->getHandle(), $code['code'], $code['position']);
            }
        }
    }
201769
public function enqueue()
    {
        $this->out('<info>' . __d('cake_resque', 'Adding a job to worker') . '</info>');
        if (count($this->args) !== 3) {
            $this->err('<error>' . __d('cake_resque', 'Wrong number of arguments') . '</error>');
            $this->out(__d('cake_resque', 'Usage : enqueue <queue> <jobclass> <comma-separated-args>'), 2);

            return false;
        }

        $result = CakeResque::enqueue($this->args[0], $this->args[1], explode(',', $this->args[2]));

        $this->out('<success>' . __d('cake_resque', 'Succesfully enqueued Job #{0}', $result) . '</success>');

        $this->out('');
    }
1154087
protected function execute()
    {
        $classes = get_declared_classes();
        eval($this->script);
        $this->newClasses = array_diff(get_declared_classes(), $classes);
    }
409552
public function enqueue() {
		parent::enqueue();

		// Enqueue iro.
		wp_enqueue_script( 'iro', URL::get_from_path( dirname( dirname( __DIR__ ) ) . '/node_modules/@jaames/iro/dist/iro.min.js' ), [], '4.3.3', true );
		wp_enqueue_script( 'iro-transparency-plugin', URL::get_from_path( dirname( dirname( __DIR__ ) ) . '/node_modules/iro-transparency-plugin/dist/iro-transparency-plugin.min.js' ), [ 'iro' ], '0.1.2', true );

		// Enqueue the control script.
		wp_enqueue_script( 'kirki-control-color', URL::get_from_path( dirname( __DIR__ ) . '/assets/scripts/control.js' ), [ 'jquery', 'customize-base', 'customize-controls', 'iro', 'iro-transparency-plugin', 'kirki-dynamic-control' ], self::$control_ver, false );
		wp_set_script_translations( 'kirki-control-color', 'kirki' );

		// Enqueue the control style.
		wp_enqueue_style( 'kirki-control-color', URL::get_from_path( dirname( __DIR__ ) . '/assets/styles/style.css' ), [], self::$control_ver );
	}
109440
protected function scripts()
    {
        if (empty($this->scripts)) {
            return false;
        }
        foreach ($this->scripts as $path) {
            $name = last(explode('/', $path));
            $this->container->add(str_slug($name), $path);
        }
    }
817363
public function enqueue_admin_stylescripts() {

		$screen = get_current_screen();

		if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
			return;
		}

		if ( in_array( $screen->id, $this->plugin_screen_hook_suffix, true ) ) {
			$slug = array_search( $screen->id, $this->plugin_screen_hook_suffix );
			// $configfiles = glob( $this->get_path( __FILE__ ) .'configs/'.$slug.'-*.php' );
			if ( file_exists( $this->get_path( __FILE__ ) . 'configs/fieldgroups-' . $slug . '.php' ) ) {
				include $this->get_path( __FILE__ ) . 'configs/fieldgroups-' . $slug . '.php';
			}

			if ( ! empty( $configfiles ) ) {

				foreach ( $configfiles as $key => $fieldfile ) {
					include $fieldfile;
					if ( ! empty( $group['scripts'] ) ) {
						foreach ( $group['scripts'] as $script ) {
							wp_enqueue_script( $this->plugin_slug . '-' . strtok( $script, '.' ), $this->get_url( 'assets/js/' . $script, __FILE__ ), array( 'jquery' ) );
						}
					}
					if ( ! empty( $group['styles'] ) ) {
						foreach ( $group['styles'] as $style ) {
							wp_enqueue_style( $this->plugin_slug . '-' . strtok( $style, '.' ), $this->get_url( 'assets/css/' . $style, __FILE__ ) );
						}
					}
				}
			}
			wp_enqueue_style( $this->plugin_slug . '-admin-styles', $this->get_url( 'assets/css/panel.css', __FILE__ ), array(), self::VERSION );
			wp_enqueue_style( 'pods-codemirror' );
			wp_enqueue_script( $this->plugin_slug . '-admin-scripts', $this->get_url( 'assets/js/panel.js', __FILE__ ), array(), self::VERSION );
			wp_enqueue_script( 'pods_codemirror' );
			wp_enqueue_script( 'pods-codemirror-overlay' );
			wp_enqueue_script( 'pods-codemirror-hints' );
			wp_enqueue_script( $this->plugin_slug . '-cm-editor', $this->get_url( 'assets/js/editor1.js', __FILE__ ), array( 'jquery' ), self::VERSION, true );
			wp_enqueue_script( 'pods-codemirror-mode-xml' );
			wp_enqueue_script( 'pods-codemirror-mode-html' );
			wp_enqueue_script( 'pods-codemirror-mode-css' );
		}//end if

	}