Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/elementor/modules/elements-color-picker/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/elementor/modules/elements-color-picker/module.php |
<?php
namespace Elementor\Modules\ElementsColorPicker;
use Elementor\Core\Experiments\Manager;
use Elementor\Core\Base\Module as BaseModule;
use Elementor\Core\Experiments\Manager as Experiments_Manager;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends BaseModule {
/**
* Retrieve the module name.
*
* @return string
*/
public function get_name() {
return 'elements-color-picker';
}
/**
* Enqueue the `Color-Thief` library to pick colors from images.
*
* @return void
*/
public function enqueue_scripts() {
wp_enqueue_script(
'color-thief',
$this->get_js_assets_url( 'color-thief', 'assets/lib/color-thief/', true ),
[ 'elementor-editor' ],
ELEMENTOR_VERSION,
true
);
}
/**
* Module constructor - Initialize the Eye-Dropper module.
*
* @return void
*/
public function __construct() {
add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'enqueue_scripts' ] );
}
}