PluginProbe
WP VR – 360 Panorama and Virtual Tour Builder / 9.0.1
WP VR – 360 Panorama and Virtual Tour Builder v9.0.1
9.1.1 9.1.0 9.0.3 9.0.2 9.0.1 9.0.0 8.5.79 8.5.78 8.5.77 8.5.76 8.5.75 8.5.74 8.5.73 8.5.72 8.5.71 8.5.70 8.5.69 8.5.68 8.5.35 8.5.36 8.5.37 8.5.38 8.5.39 8.5.4 8.5.40 All 220 releases
wpvr / src / Frontend / Frontend.php

Frontend.php in WP VR – 360 Panorama and Virtual Tour Builder 9.0.1, at src/Frontend/Frontend.php

26 lines 796 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace RexTheme\WPVR\Frontend;
4
5 /**
6 * Standalone wrapper for the legacy Wpvr_Public class.
7 *
8 * Handles public-side init and asset enqueuing via the legacy class.
9 * Also instantiates Shortcode internally (Wpvr_Public creates it in its constructor).
10 */
11 class Frontend {
12
13 private $legacy;
14
15 public function __construct() {
16 require_once WPVR_PLUGIN_LEGACY_DIR_PATH . 'public/class-wpvr-public.php';
17 require_once WPVR_PLUGIN_LEGACY_DIR_PATH . 'public/classes/class-wpvr-shortcode.php';
18
19 $this->legacy = new \Wpvr_Public( 'wpvr', WPVR_VERSION );
20
21 add_action( 'wp_enqueue_scripts', [ $this->legacy, 'enqueue_styles' ] );
22 add_action( 'wp_enqueue_scripts', [ $this->legacy, 'enqueue_scripts' ] );
23 $this->legacy->public_init();
24 }
25 }
26