-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhappyvr.php
More file actions
71 lines (68 loc) · 2.75 KB
/
Copy pathhappyvr.php
File metadata and controls
71 lines (68 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* Plugin Name: HappyVR - Virtual Tour Creator, 360 Panorama & Real Estate Viewer
* Plugin URI: https://yalogica.com/happyvr
* Description: Create interactive virtual tours with stunning 360° panoramas. Easily add scenes, interactive hotspot and controls, perfect for real estate, education, and business presentations.
* Version: 1.1.3
* Requires at least: 6.3
* Requires PHP: 8.2
* Author: Yalogica
* Author URI: https://yalogica.com
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: happyvr
* Domain Path: /languages
*/
namespace Yalogica\HappyVR;
defined( 'ABSPATH' ) || exit;
define( 'HAPPYVR_PLUGIN_NAME', 'happyvr' );
define( 'HAPPYVR_PLUGIN_VERSION', '1.1.3' );
define( 'HAPPYVR_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
define( 'HAPPYVR_PLUGIN_PATH', __DIR__ );
define( 'HAPPYVR_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'HAPPYVR_PLUGIN_REST_URL', 'happyvr/v1' );
define( 'HAPPYVR_PLUGIN_PUBLIC_REST_URL', 'happyvr/public/v1' );
define( 'HAPPYVR_SHORTCODE_NAME', 'happyvr' );
define( 'HAPPYVR_DOCS_URL', 'https://yalogica.com/docs/happyvr/' );
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/includes/autoload.php';
if ( function_exists( 'happyvr_fs' ) ) {
happyvr_fs()->set_basename( false, __FILE__ );
} else {
// Create a helper function for easy SDK access.
function happyvr_fs() {
global $happyvr_fs;
if ( !isset( $happyvr_fs ) ) {
// Include Freemius SDK.
require_once dirname( __FILE__ ) . '/vendor/freemius/wordpress-sdk/start.php';
$happyvr_fs = fs_dynamic_init( [
'id' => '21242',
'type' => 'plugin',
'slug' => 'happyvr',
'premium_slug' => 'happyvr-pro',
'public_key' => 'pk_e9a830df091290edaa2b007d9e6ff',
'is_premium' => false,
'premium_suffix' => 'Pro',
'has_addons' => false,
'has_paid_plans' => true,
'is_org_compliant' => true,
'trial' => [
'days' => 7,
'is_require_payment' => false,
],
'menu' => [
'slug' => 'happyvr',
'support' => false,
'contact' => true,
],
'is_live' => true,
] );
}
return $happyvr_fs;
}
// Init Freemius.
happyvr_fs();
// Signal that SDK was initiated.
do_action( 'happyvr_fs_loaded' );
( new Plugin() )->run();
}