PluginProbe
Panorama – Turn Photos into Immersive Virtual Tours / 1.7.4
Panorama – Turn Photos into Immersive Virtual Tours v1.7.4
1.8.0 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.1 trunk 1.0.0 1.0.1 1.0.10 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.3 1.1.4 1.1.5 1.1.6 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 All 38 releases
panorama / panorama.php

panorama.php in Panorama – Turn Photos into Immersive Virtual Tours 1.7.4, at panorama.php

111 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: Panorama - 360 degree Virtual Tour, Panoramic Image viewer and More
5 * Description: A lite Weight Plugin that helps you, Easily display panoramic 360 degree images / videos into WordPress Website in Post, Page, Widget Area using shortCode.
6 * Plugin URI: https://bplugins.com/products/panorama
7 * Version: 1.7.4
8 * Author: bPlugins
9 * Author URI: http://abuhayatpolash.com
10 * License: GPLv2 or later
11 * Text Domain: panorama
12 * Domain Path: /languages
13 * Requires at least: 6.5
14 * Requires PHP: 7.1
15 */
16
17 if ( !defined( 'ABSPATH' ) ) {
18 exit;
19 }
20
21 if ( function_exists( 'panorama_fs' ) ) {
22 panorama_fs()->set_basename( true, __FILE__ );
23 } else {
24 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
25 function panorama_fs() {
26 global $panorama_fs;
27
28 if ( ! isset( $panorama_fs ) ) {
29 if ( ! defined( 'WP_FS__PRODUCT_8824_MULTISITE' ) ) {
30 define( 'WP_FS__PRODUCT_8824_MULTISITE', true );
31 }
32
33 require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';
34
35 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
36 $panorama_fs = fs_dynamic_init( array(
37 'id' => '8824',
38 'slug' => 'panorama',
39 'type' => 'plugin',
40 'public_key' => 'pk_a112d1d1d66d3b480dbea5690d3ff',
41 'is_premium' => false,
42 'premium_suffix' => 'Pro',
43 'has_premium_version' => true,
44 'has_addons' => false,
45 'has_paid_plans' => true,
46 'trial' => array(
47 'days' => 7,
48 'is_require_payment' => false,
49 ),
50 'menu' => array(
51 'slug' => 'edit.php?post_type=bppiv-image-viewer',
52 'first-path' => 'edit.php?post_type=bppiv-image-viewer&page=bppiv-support#welcome',
53 ),
54 ) );
55 }
56
57 return $panorama_fs;
58 }
59
60 panorama_fs();
61 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
62 do_action( 'panorama_fs_loaded' );
63
64 define( 'BPPIV_PLUGIN_DIR', plugin_dir_url( __FILE__ ) );
65 define( 'BPPIV_VERSION', ( isset( $_SERVER['HTTP_HOST'] ) && 'localhost' === $_SERVER['HTTP_HOST'] ) ? time() : '1.7.4' );
66 defined( 'BPPIV_PATH' ) || define( 'BPPIV_PATH', plugin_dir_path( __FILE__ ) );
67 defined( 'BPPIV__FILE__' ) || define( 'BPPIV__FILE__', __FILE__ );
68 define( 'BPPIV_HAS_PRO', false );
69
70 require_once 'vendor/csf/codestar-framework.php';
71 require_once 'admin/ads/submenu.php';
72 require_once 'product-spot.php';
73
74 require_once BPPIV_PATH . 'inc/helpers.php';
75
76 $bppiv_init_file = BPPIV_PATH . 'inc/Init.php';
77 if ( file_exists( $bppiv_init_file ) ) {
78 require_once $bppiv_init_file;
79 }
80 if ( class_exists( 'BPPIV\\Init' ) ) {
81 \BPPIV\Init::instance();
82 }
83
84 // Register activation redirect option
85 register_activation_hook( __FILE__, 'bppiv_plugin_activate' );
86 function bppiv_plugin_activate() {
87 add_option( 'bppiv_do_activation_redirect', true );
88 }
89
90 // Handle redirect on admin initialization
91 add_action( 'admin_init', 'bppiv_plugin_redirect' );
92 function bppiv_plugin_redirect() {
93 if ( get_option( 'bppiv_do_activation_redirect', false ) ) {
94 delete_option( 'bppiv_do_activation_redirect' );
95
96 // Prevent redirect on bulk activation, ajax, cron, or REST API request
97 // phpcs:ignore WordPress.Security.NonceVerification.Recommended
98 if ( isset( $_GET['activate-multi'] ) ||
99 ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ||
100 ( defined( 'DOING_CRON' ) && DOING_CRON ) ||
101 ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {
102 return;
103 }
104
105 wp_safe_redirect( admin_url( 'edit.php?post_type=bppiv-image-viewer&page=bppiv-support' ) );
106 exit;
107 }
108 }
109
110 require_once 'shortcode.php';
111 }