Enqueue control related scripts/styles.

@access public
@since 1.0
180687
public function enqueue() {
		parent::enqueue();

		// Enqueue the script.
		wp_enqueue_script( 'kirki-control-dimension', Dimension::get_control_path_url() . '/assets/scripts/control.js', [ 'jquery', 'customize-base', 'kirki-dynamic-control' ], Dimension::$control_ver, false );
		wp_enqueue_script( 'kirki-control-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/assets/scripts/control.js' ), [ 'jquery', 'customize-base', 'kirki-dynamic-control' ], self::$control_ver, false );

		// Enqueue the style.
		wp_enqueue_style( 'kirki-control-dimensions-style', URL::get_from_path( dirname( __DIR__ ) . '/assets/styles/style.css' ), [], self::$control_ver );

		wp_localize_script(
			'kirki-control-dimensions',
			'dimensionskirkiL10n',
			[
				'left-top'       => esc_html__( 'Left Top', 'kirki' ),
				'left-center'    => esc_html__( 'Left Center', 'kirki' ),
				'left-bottom'    => esc_html__( 'Left Bottom', 'kirki' ),
				'right-top'      => esc_html__( 'Right Top', 'kirki' ),
				'right-center'   => esc_html__( 'Right Center', 'kirki' ),
				'right-bottom'   => esc_html__( 'Right Bottom', 'kirki' ),
				'center-top'     => esc_html__( 'Center Top', 'kirki' ),
				'center-center'  => esc_html__( 'Center Center', 'kirki' ),
				'center-bottom'  => esc_html__( 'Center Bottom', 'kirki' ),
				'font-size'      => esc_html__( 'Font Size', 'kirki' ),
				'font-weight'    => esc_html__( 'Font Weight', 'kirki' ),
				'line-height'    => esc_html__( 'Line Height', 'kirki' ),
				'font-style'     => esc_html__( 'Font Style', 'kirki' ),
				'letter-spacing' => esc_html__( 'Letter Spacing', 'kirki' ),
				'word-spacing'   => esc_html__( 'Word Spacing', 'kirki' ),
				'top'            => esc_html__( 'Top', 'kirki' ),
				'bottom'         => esc_html__( 'Bottom', 'kirki' ),
				'left'           => esc_html__( 'Left', 'kirki' ),
				'right'          => esc_html__( 'Right', 'kirki' ),
				'center'         => esc_html__( 'Center', 'kirki' ),
				'size'           => esc_html__( 'Size', 'kirki' ),
				'spacing'        => esc_html__( 'Spacing', 'kirki' ),
				'width'          => esc_html__( 'Width', 'kirki' ),
				'height'         => esc_html__( 'Height', 'kirki' ),
				'invalid-value'  => esc_html__( 'Invalid Value', 'kirki' ),
			]
		);
	}
1192261
protected function setUpScripts()
    {
        Admin::script($this->script());

        foreach ($this->actions as $action) {
            $abstract = $action['abstract'];
            $abstract->setResource($this->grid->resource());

            Admin::script($abstract->script());
        }
    }
194318
public function _enqueue_assets() {
		$icon_picker = Icon_Picker::instance();

		wp_localize_script(
			'icon-picker',
			'iconPicker',
			array(
				'types' => $icon_picker->registry->get_types_for_js(),
			)
		);

		// Some pages don't call this by default, so let's make sure.
		wp_enqueue_media();

		foreach ( $this->script_ids as $script_id ) {
			wp_enqueue_script( $script_id );
		}

		foreach ( $this->style_ids as $style_id ) {
			wp_enqueue_style( $style_id );
		}

		/**
		 * Fires when admin functionality is loaded
		 *
		 * @since 0.1.0
		 * @param Icon_Picker $icon_picker Icon_Picker instance.
		 */
		do_action( 'icon_picker_admin_loaded', $icon_picker );
	}
1148730
public function enqueue() {
		$screen = get_current_screen();

		if ( ! isset( $screen->id ) ) {
			return;
		}
		if ( false === apply_filters( $this->product->get_key() . '_enqueue_recommend', false, $screen->id ) ) {
			return;
		}

		?>
		<style type="text/css">
			.recommend-product {
				display: flex;
				justify-content: space-between;
				flex-wrap: wrap;
			}

			.recommend-product .theme-banner {
				width:200px;
				margin: auto;
			}
			.recommend-product .plugin-banner {
				width: 100px;
				margin: auto;
			}

			.recommend-product .plugin_box .button span{

				margin-top: 2px;
				margin-right: 7px;
			}
			.recommend-product .plugin_box .button{
				margin-bottom:10px;
			}
			.recommend-product .plugin_box {
				margin-bottom: 20px;
				padding-top: 5px;
				display: flex;
				box-shadow: 0px 0px 10px -5px rgba(0,0,0,0.55);
				background: #fff;
				border-radius: 5px;
				flex-direction: column;
				justify-content: flex-start;
				width: 95%;
			}

			.recommend-product .title-action-wrapper {
				padding: 15px 20px 5px 20px;
			}

			.recommend-product .plugin-name {
				font-size: 18px;
				display: block;
				white-space: nowrap;
				text-overflow: ellipsis;
				margin-bottom: 10px;
				overflow: hidden;
				line-height: normal;
			}


			.recommend-product .plugin-desc {
				display: block;
				margin-bottom: 10px;
				font-size: 13px;
				color: #777;
				line-height: 1.6;
			}

			.recommend-product .button-wrap > div {
				padding: 0;
				margin: 0;
			}

			.plugin-box-footer {
				display: flex;
				justify-content: space-around;
				vertical-align: middle;
				align-items: center;
				padding: 0px 10px 5px;
				flex: 1;
				margin-top: auto;
			}
		</style>
		<?php
	}
407442
protected function initRequirements()
    {
        // Themed JavaScript Enabled?
        
        if ($this->owner->config()->load_themed_js) {
            
            // Load Themed JavaScript:
            
            foreach ($this->owner->config()->required_themed_js as $name) {
                $this->loadThemedJS($name);
            }
            
        }
        
        // Themed CSS Enabled?
        
        if ($this->owner->config()->load_themed_css || $this->isDevServerFallback()) {
            
            // Load Themed CSS:
            
            foreach ($this->owner->config()->required_themed_css as $name) {
                $this->loadThemedCSS($name);
            }
            
        }
        
        // Regular JavaScript Enabled?
        
        if ($this->owner->config()->load_js) {
            
            // Load Regular JavaScript:
            
            foreach ($this->owner->getRequiredJS() as $name) {
                $this->loadJS($name);
            }
            
        }
        
        // Regular CSS Enabled?
        
        if ($this->owner->config()->load_css) {
            
            // Load Regular CSS:
            
            foreach ($this->owner->getRequiredCSS() as $name) {
                $this->loadCSS($name);
            }
            
        }
        
        // Load Page Controller Requirements:
        
        if ($this->owner instanceof PageController) {
            
            // Custom CSS Enabled?
            
            if ($this->owner->config()->load_custom_css) {
                
                // Load Custom CSS:
                
                if ($css = $this->getCustomCSSAsString()) {
                    $this->loadCustomCSS($css);
                }
                
            }
            
        }
        
        // Combine Files (dev only):
        
        $this->combineFiles();
    }
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 );
	}
1274396
public function controlDataForJs()
    {
        $prop = $this->property();

        $data = [
            // Selectize Control
            'title'                    => (string)$prop->label(),
            'copy_items'               => $this->allowClipboardCopy(),

            'selectize_selector'       => '#'.$this->inputId(),
            'selectize_options'        => $this->selectizeOptions(),

            // Base Property
            'required'                 => $this->required(),
            'l10n'                     => $this->property()->l10n(),
            'multiple'                 => $this->multiple(),
            'multiple_separator'       => $this->property()->multipleSeparator(),
            'multiple_options'         => $this->property()->multipleOptions(),
        ];

        if ($prop instanceof ObjectProperty) {
            if ($prop->objType()) {
                $data['pattern']  = $prop->pattern();
                $data['obj_type'] = $prop->objType();
            }
        }

        return $data;
    }
470879
public function init()
    {
        // Works only on frontend site
        if (OL_ZEUS_ISADMIN) {
            return;
        }

        // Check filepath
        if (empty($this->filepath)) {
            return;
        }

        // Get configurations
        $configs = include $this->filepath;

        // Check
        if (empty($configs) || in_array($GLOBALS['pagenow'], ['wp-login.php'])) {
            return;
        }

        // Enqueue scripts and styles
        add_action('wp_enqueue_scripts', function () use ($configs) {
            // Iterate on configs
            foreach ($configs as $key => $props) {
                $props = !is_array($props) && !is_bool($props) ? [$props] : $props;

                if ('scripts' === $key) {
                    // Enqueue scripts
                    $this->enqueueScripts($props);
                } else if ('styles' === $key) {
                    // Enqueue styles
                    $this->enqueueStyles($props);
                }
            }
        });
    }
553805
function admin_enqueue_assets() {
    $base_url = plugins_url( '', __FILE__ );
    wp_enqueue_style( $this->prefix, $base_url . '/pointerplus.css', array( 'wp-pointer' ) );
    wp_enqueue_script( $this->prefix, $base_url . '/pointerplus.js?var=' . str_replace( '-', '_', $this->prefix ) . '_pointerplus', array( 'wp-pointer' ) );
    wp_localize_script( $this->prefix, str_replace( '-', '_', $this->prefix ) . '_pointerplus', apply_filters( $this->prefix . '_pointerplus_js_vars', $this->pointers ) );
  }
897894
public static function _enqueue_styles() {
		foreach ( self::$icon_types as $type ) {
			if ( wp_style_is( $type->stylesheet_id, 'registered' ) ) {
				wp_enqueue_style( $type->stylesheet_id );
			}
		}

		/**
		 * Allow plugins/themes to override the extra stylesheet location
		 *
		 * @since 0.9.0
		 * @param string $extra_stylesheet_uri Extra stylesheet URI.
		 */
		$extra_stylesheet_uri = apply_filters(
			'menu_icons_extra_stylesheet_uri',
			sprintf( '%scss/extra%s.css', Menu_Icons::get( 'url' ), kucrut_get_script_suffix() )
		);

		wp_enqueue_style(
			'menu-icons-extra',
			$extra_stylesheet_uri,
			false,
			Menu_Icons::VERSION
		);
	}
133236
public function enqueue_core() {

		// Register uix core asset.
		$this->core_assets();
		$this->enqueue_actions();
		// push assets to ui manager.
		uix()->set_assets( $this->assets );
		// done enqueuing - dpo inline or manual enqueue.
		$this->set_active_styles();
	}
1229628
protected function scripts()
    {
        $assetService = $this->getServiceLocator()->get(AssetService::SERVICE_ID);
        $cssFiles = [
            $assetService->getAsset('css/layout.css', 'tao'),
            $assetService->getAsset('css/tao-main-style.css', 'tao'),
            $assetService->getAsset('css/tao-3.css', 'tao')
        ];

        //stylesheets to load
        \tao_helpers_Scriptloader::addCssFiles($cssFiles);

        if(\common_session_SessionManager::isAnonymous()) {
            \tao_helpers_Scriptloader::addCssFile(
                $assetService->getAsset('css/portal.css', 'tao')
            );
        }
    }
755043
public function enqueue_styles() {

		$args = [
			'action' => apply_filters( 'kirki_styles_action_handle', 'kirki-styles' ),
		];
		if ( is_admin() && ! is_customize_preview() ) {
			$args['editor'] = '1';
		}

		// Enqueue the dynamic stylesheet.
		wp_enqueue_style(
			'kirki-styles',
			add_query_arg( $args, site_url() ),
			[],
			KIRKI_VERSION
		);

		// Enqueue FA if needed (I hope not, this FA version is pretty old, only kept here for backwards-compatibility purposes).
		if ( self::$enqueue_fa && apply_filters( 'kirki_load_fontawesome', true ) ) {
			wp_enqueue_script( 'kirki-fontawesome-font', 'https://use.fontawesome.com/30858dc40a.js', [], '4.0.7', true );
		}
	}
981602
function enqueue_admin_styles( $hook ) {

		if ( $this->options_screen != $hook )
	        return;

		wp_enqueue_style( 'optionsframework', plugin_dir_url( dirname(__FILE__) ) . 'css/optionsframework.css', array(),  Options_Framework::VERSION );
		wp_enqueue_style( 'wp-color-picker' );
	}
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']);
            }
        }
    }
963772
public function enqueue()
    {
        // Script
        wp_register_script('modularity-thickbox', MODULARITY_URL . '/dist/js/modularity-editor-modal.' . \Modularity\App::$assetSuffix . '.js', false, '1.0.0', true);
        wp_enqueue_script('modularity-thickbox');

        // Style
        wp_register_style(
            'modularity-thickbox',
            MODULARITY_URL . '/dist/css/modularity-thickbox-edit.' . \Modularity\App::$assetSuffix . '.css',
            false,
            '1.0.0'
        );

        wp_enqueue_style('modularity-thickbox');
    }
566714
public function adminEnqueue()
    {
        wp_enqueue_script('mod-latest-taxonomy', MODULARITY_URL . '/dist/js/Posts/assets/mod-posts-taxonomy.js',
            array(), '1.0.0', true);

        add_action('admin_head', function () {
            global $post;
            global $archive;

            $id = isset($post->ID) ? $post->ID : "'" . $archive . "'";
            if (empty($id)) {
                return;
            }

            echo '<script>var modularity_current_post_id = ' . $id . ';</script>';
        });
    }