36 lines
993 B
PHP
36 lines
993 B
PHP
<?php
|
|
/**
|
|
* Plugin Name: Elementor Addon
|
|
* Description: Simple hello world widgets for Elementor.
|
|
* Version: 1.0.0
|
|
* Author: Elementor Developer
|
|
* Author URI: https://developers.elementor.com/
|
|
* Text Domain: elementor-addon
|
|
*
|
|
* Requires Plugins: elementor
|
|
* Elementor tested up to: 3.21.0
|
|
* Elementor Pro tested up to: 3.21.0
|
|
*/
|
|
|
|
function enqueue_360_image_script() {
|
|
wp_enqueue_script(
|
|
'cloudimage-360-view',
|
|
plugins_url( '/assets/lib/js-cloudimage-360/js-cloudimage-360-view.min.js', __FILE__ ),
|
|
array(),
|
|
null,
|
|
true
|
|
);
|
|
}
|
|
add_action( 'wp_enqueue_scripts', 'enqueue_360_image_script' );
|
|
|
|
function register_hello_world_widget( $widgets_manager ) {
|
|
|
|
require_once( __DIR__ . '/widgets/button-addon.php' );
|
|
require_once( __DIR__ . '/widgets/image-360.php' );
|
|
|
|
$widgets_manager->register( new \Elementor_Button_Addon );
|
|
$widgets_manager->register( new \Elementor_Image_360_Addon );
|
|
|
|
}
|
|
add_action( 'elementor/widgets/register', 'register_hello_world_widget' );
|