$25 GRAYBYTE WORDPRESS FILE MANAGER $87

SERVER : premium134.web-hosting.com #1 SMP Thu Mar 13 14:29:12 UTC 2025
SERVER IP : 162.0.232.104 | ADMIN IP 216.73.216.55
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/raydofqv/raydget.vip/wp-content/plugins/3d-viewer/inc/Addons/

HOME
Current File : /home/raydofqv/raydget.vip/wp-content/plugins/3d-viewer/inc/Addons//AddonsPro.php
<?php

namespace BP3D\Addons;

if (!defined('ABSPATH')) {
	exit;
} // Exit if accessed directly

final class AddonsPro
{

	const VERSION = '1.0.0';
	const MINIMUM_ELEMENTOR_VERSION = '2.0.0';
	const MINIMUM_PHP_VERSION = '7.0';
	private static $_instance = null;

	public static function instance()
	{
		if (is_null(self::$_instance)) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}

	public function __construct() {}

	public function register()
	{
		add_action('elementor/widgets/register', [$this, 'init_widgets']);
		
		//Register Frontend Script
		add_action("elementor/frontend/after_register_scripts", [$this, 'frontend_assets_scripts']);

		// // Add Plugin actions
		add_action('elementor/editor/before_enqueue_scripts', [$this, 'editor_assets_scripts']);
	}


	/**
	 * Frontend script
	 */
	public function frontend_assets_scripts()
	{
		if (!wp_script_is('bp3d-model-viewer', 'registered')) {
			// wp_register_style('bp3d-public', BP3D_DIR . 'build/public.css', [], BP3D_VERSION);

			wp_register_script('bp3d-model-viewer', BP3D_DIR . 'public/js/model-viewer.latest.min.js', [], BP3D_VERSION, true);
			wp_register_script('bp3d-public', BP3D_DIR . 'build/frontend.js', ['react', 'react-dom', 'jquery', 'elementor-frontend'], BP3D_VERSION, true);
			wp_register_style('bp3d-frontend', BP3D_DIR . 'build/frontend.css', [],  BP3D_VERSION, 'all');
		}
	}

	/**
	 * Init Widgets
	 *
	 * Include widgets files and register them
	 *
	 * @since 1.0.0
	 *
	 * @access public
	 */
	public function init_widgets()
	{
		// Include Widget files
		require_once(__DIR__ . '/ModelViewer.php');

		// Register widget
		\Elementor\Plugin::instance()->widgets_manager->register(new ModelViewer());
		\Elementor\Plugin::instance()->widgets_manager->register(new BP3DProductModel());
	}

	public function editor_assets_scripts()
	{
		wp_enqueue_script('bp3d-o3dviewer', BP3D_DIR . 'public/js/o3dv.min.js', [], BP3D_VERSION, true);
		wp_enqueue_script('bp3d-model-viewer', BP3D_DIR . 'public/js/model-viewer.latest.min.js', [], BP3D_VERSION, true);
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 Jun 2026 8.15 AM
raydofqv / raydofqv
0755
Controls
--
8 Jun 2026 8.15 AM
raydofqv / raydofqv
0755
.htaccess
0.231 KB
8 Jun 2026 8.15 AM
raydofqv / raydofqv
0555
AddonsPro.php
2.019 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
BP3DProductModel.php
2.923 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
Blocks.php
5.165 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644
ModelViewer.php
15.292 KB
16 Mar 2026 4.43 PM
raydofqv / raydofqv
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF