| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Setup wizard view |
| 5 |
* |
| 6 |
* @package '' |
| 7 |
* @since 7.4.14 |
| 8 |
*/ |
| 9 |
?> |
| 10 |
|
| 11 |
<!DOCTYPE html> |
| 12 |
<html style="background-color: #F2EFFF;" lang="en" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
| 13 |
|
| 14 |
<head> |
| 15 |
<meta name="viewport" content="width=device-width" /> |
| 16 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 17 |
<title><?php esc_html_e('WPVR - Setup Wizard', 'wpvr'); ?></title> |
| 18 |
<?php do_action('admin_enqueue_scripts'); ?> |
| 19 |
<?php do_action('admin_print_styles'); ?> |
| 20 |
<?php do_action('admin_head'); ?> |
| 21 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> |
| 22 |
<script type="text/javascript"> |
| 23 |
addLoadEvent = function(func) { |
| 24 |
if (typeof jQuery != "undefined") jQuery(document).ready(func); |
| 25 |
else if (typeof wpOnload != 'function') { |
| 26 |
wpOnload = func; |
| 27 |
} else { |
| 28 |
var oldonload = wpOnload; |
| 29 |
wpOnload = function() { |
| 30 |
oldonload(); |
| 31 |
func(); |
| 32 |
} |
| 33 |
} |
| 34 |
}; |
| 35 |
var ajaxurl = '<?php echo admin_url('admin-ajax.php', 'relative'); ?>'; |
| 36 |
var pagenow = ''; |
| 37 |
</script> |
| 38 |
</head> |
| 39 |
|
| 40 |
<body> |
| 41 |
<div class="setup-wizard__container"> |
| 42 |
<div class="setup-wizard__inner-container"> |
| 43 |
<div id="wizardContainer" style="height:100vh;"> |
| 44 |
|
| 45 |
</div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
<?php |
| 49 |
wp_enqueue_media(); // add media |
| 50 |
wp_print_scripts(); // window.wp |
| 51 |
do_action('admin_footer'); |
| 52 |
|
| 53 |
$current_date = date('Y-m-d H:i:s'); |
| 54 |
$start_date = '2025-07-04 00:00:00'; |
| 55 |
$end_date = '2025-07-14 23:59:59'; |
| 56 |
$discount_percentage = ''; |
| 57 |
$discount_price = ''; |
| 58 |
if ($current_date >= $start_date && $current_date <= $end_date) { |
| 59 |
$discount_percentage = "Save 25%"; |
| 60 |
$discount_price = "$59.99"; |
| 61 |
} else { |
| 62 |
$discount_percentage = "Save 15%"; |
| 63 |
$discount_price = "$67.99"; |
| 64 |
} |
| 65 |
|
| 66 |
$data = array( |
| 67 |
'stepOne' => array( |
| 68 |
'step_text' => __("Welcome", "wpvr"), |
| 69 |
'welcome_section_heading' => __("Hello, welcome to", "wpvr"), |
| 70 |
'welcome_section_strong_heading' => array( |
| 71 |
__("WPVR", "wpvr"), |
| 72 |
), |
| 73 |
'welcome_section_description' => __("WP VR is a powerful virtual tour creator for WordPress that |
| 74 |
lets you create captivating walkthroughs of any property or |
| 75 |
location, with detailed and interactive information to enrich |
| 76 |
your audience's experience with your business.", "wpvr"), |
| 77 |
// 'img_alt' => __("Welcome banner image", "wpvr"), |
| 78 |
'welcome_section_button_text' => array( |
| 79 |
__("Let’s create your first tour", "wpvr"), |
| 80 |
__("Check the guide", "wpvr"), |
| 81 |
), |
| 82 |
'footer_section_button_text' => array( |
| 83 |
__("Let’s create your first tour", "wpvr"), |
| 84 |
__("Next", "wpvr"), |
| 85 |
), |
| 86 |
|
| 87 |
// feature section data |
| 88 |
'feature_section_heading' => __("", "wpvr"), |
| 89 |
'feature_section_strong_heading' => array( |
| 90 |
__("WPVR Features", "wpvr"), |
| 91 |
), |
| 92 |
'feature_section_description' => __("Transform Properties, Rooms & Spaces into 360 Virtual Tours |
| 93 |
Using WP VR Features.", "wpvr"), |
| 94 |
'feature_icon_one' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/video.svg', |
| 95 |
'feature_icon_two' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/brand.svg', |
| 96 |
'feature_icon_three' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/lead-form.svg', |
| 97 |
'feature_icon_four' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/password.svg', |
| 98 |
'feature_icon_five' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/sharing.svg', |
| 99 |
'feature_section_button_text' => array( |
| 100 |
__("Check All Features", "wpvr"), |
| 101 |
__("", "wpvr"), |
| 102 |
), |
| 103 |
|
| 104 |
'feature_explainer_video' => array( |
| 105 |
__("Guided Explainer Video", "wpvr"), |
| 106 |
__("Display Your Entire Property With Virtual Floor Plans.", "wpvr"), |
| 107 |
), |
| 108 |
'feature_brand_identity' => array( |
| 109 |
__("Reinforce Brand Identity", "wpvr"), |
| 110 |
__("Reinforce Your Brand Identity within Virtual Tours.", "wpvr"), |
| 111 |
), |
| 112 |
'feature_lead_forms' => array( |
| 113 |
__("Integrated Leads Forms", "wpvr"), |
| 114 |
__("Capture Valuable Leads with Integrated Forms.", "wpvr"), |
| 115 |
), |
| 116 |
'feature_password' => array( |
| 117 |
__("Password Protected Tour", "wpvr"), |
| 118 |
__("Secure Your Virtual Tours with Password Protection.", "wpvr"), |
| 119 |
), |
| 120 |
'feature_sharing' => array( |
| 121 |
__("Easy Sharing Tour", "wpvr"), |
| 122 |
__("Maximize Exposure By Enabling Easy Sharing Of Your Virtual Tours.", "wpvr"), |
| 123 |
), |
| 124 |
|
| 125 |
// pro features data |
| 126 |
'pro_feature_section_heading' => __("WPVR", "wpvr"), |
| 127 |
'pro_feature_section_strong_heading' => array( |
| 128 |
__("Pro Features", "wpvr"), |
| 129 |
), |
| 130 |
'pro_feature_icon_one' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/gallery.svg', |
| 131 |
'pro_feature_title_one' => __("Unlimited Scenes", "wpvr"), |
| 132 |
|
| 133 |
'pro_feature_icon_two' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/panorama-control.svg', |
| 134 |
'pro_feature_title_two' => __("Custom Panorama Controls", "wpvr"), |
| 135 |
|
| 136 |
'pro_feature_icon_three' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/custom-cta.svg', |
| 137 |
'pro_feature_title_three' => __("Custom CTA Button", "wpvr"), |
| 138 |
|
| 139 |
'pro_feature_icon_four' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/floorplan.svg', |
| 140 |
'pro_feature_title_four' => __("Complete Floor Plan", "wpvr"), |
| 141 |
|
| 142 |
'pro_feature_icon_five' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/unlimited-hotspot.svg', |
| 143 |
'pro_feature_title_five' => __("Unlimited Hotspots", "wpvr"), |
| 144 |
|
| 145 |
'pro_feature_icon_six' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/embed-addon.svg', |
| 146 |
'pro_feature_title_six' => __("Embed Addon", "wpvr"), |
| 147 |
|
| 148 |
'pro_feature_icon_seven' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/partial-panoroma.svg', |
| 149 |
'pro_feature_title_seven' => __("Partial Panorama", "wpvr"), |
| 150 |
|
| 151 |
'pro_feature_icon_eight' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/cube.svg', |
| 152 |
'pro_feature_title_eight' => __("Cubemap Image Support", "wpvr"), |
| 153 |
|
| 154 |
'pro_feature_button_text' => __("Upgrade To Pro Now", "wpvr"), |
| 155 |
), |
| 156 |
|
| 157 |
'stepTwo' => array( |
| 158 |
'step_text' => __("Settings & Industry", "wpvr"), |
| 159 |
|
| 160 |
// industry section data |
| 161 |
'industry_section_heading' => __("Select Your", "wpvr"), |
| 162 |
'industry_section_strong_heading' => array( |
| 163 |
__("Industry", "wpvr"), |
| 164 |
), |
| 165 |
|
| 166 |
// general settings section data |
| 167 |
'general_section_heading' => __("", "wpvr"), |
| 168 |
'general_section_strong_heading' => array( |
| 169 |
__("General Settings", "wpvr"), |
| 170 |
), |
| 171 |
|
| 172 |
'footer_section_button_text' => array( |
| 173 |
__("Let’s create your first tour", "wpvr"), |
| 174 |
__("Next", "wpvr"), |
| 175 |
), |
| 176 |
), |
| 177 |
|
| 178 |
'stepThree' => array( |
| 179 |
'step_text' => __("Done", "wpvr"), |
| 180 |
'heading' => __("Get", "wpvr"), |
| 181 |
'strong_heading' => array( |
| 182 |
__("Email Notification", "wpvr"), |
| 183 |
), |
| 184 |
|
| 185 |
'done_icon' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/done-icon.svg', |
| 186 |
'quote_icon' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/quote-icon.svg', |
| 187 |
|
| 188 |
'footer_section_button_text' => array( |
| 189 |
__("Let’s create your first tour", "wpvr"), |
| 190 |
__("Upgrade To Pro", "wpvr"), |
| 191 |
), |
| 192 |
|
| 193 |
'testimonial_one' => array( |
| 194 |
__("The WP VR 360 Panorama and Virtual Tour Builder for WordPress is a game-changer for virtual reality enthusiasts. This plugin offers an exceptional VR experience, allowing you to create captivating 360-degree panoramas and immersive virtual tours on your WordPress website. The support team is top-notch, ensuring you have all the assistance you need.", "wpvr"), |
| 195 |
__("-- Shweta Bathani", "wpvr"), |
| 196 |
), |
| 197 |
'testimonial_two' => array( |
| 198 |
__("These guys are real pro's! Any problem, and they will stick with it until it is fixed. Amazing support. I just love the plugin, and I just love where it is going, and all the great idea's they will be implementing. Can't wait! But I am already thrilled with what is there now, too. Keep up the good work, guys!", "wpvr"), |
| 199 |
__("-- Firat Sabah", "wpvr"), |
| 200 |
), |
| 201 |
), |
| 202 |
); |
| 203 |
|
| 204 |
$setup_wizard_price = array( |
| 205 |
'discount_price' => $discount_price, |
| 206 |
'discount_percentage_text' => $discount_percentage |
| 207 |
); |
| 208 |
|
| 209 |
$popular_industries = array( |
| 210 |
'real_estate' => array( |
| 211 |
'name' => 'Real Estate', |
| 212 |
'logo_url' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/real-estate.php', |
| 213 |
), |
| 214 |
'hotel' => array( |
| 215 |
'name' => 'Hotel', |
| 216 |
'logo_url' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/hotel.svg', |
| 217 |
), |
| 218 |
'art_gallery' => array( |
| 219 |
'name' => 'Art Gallery', |
| 220 |
'logo_url' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/art-gallary.svg', |
| 221 |
), |
| 222 |
'beauty_parlor' => array( |
| 223 |
'name' => 'Beauty Parlor', |
| 224 |
'logo_url' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/beauty-parlor.svg', |
| 225 |
), |
| 226 |
'car_showroom' => array( |
| 227 |
'name' => 'Car Showroom', |
| 228 |
'logo_url' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/car-showroom.svg', |
| 229 |
), |
| 230 |
'pinterest' => array( |
| 231 |
'name' => 'Pub/Bar', |
| 232 |
'feed_url' => 'post-new.php?post_type=product-feed&rex_feed_merchant=pinterest', |
| 233 |
'logo_url' => WPVR_ASSET_PATH . 'icon/setup-wizard-images/pub.svg', |
| 234 |
) |
| 235 |
); |
| 236 |
?> |
| 237 |
|
| 238 |
<script type="text/javascript"> |
| 239 |
const rex_wpvr_wizard_translate_string = <?php echo wp_json_encode($data); ?>; |
| 240 |
const logoUrl = <?php echo json_encode(esc_url(WPVR_ASSET_PATH . 'icon/setup-wizard-images/wpvr-logo.webp')); ?>; |
| 241 |
const bannerUrl = <?php echo json_encode(esc_url(WPVR_ASSET_PATH . 'icon/setup-wizard-images/welcome-image.webp')); ?>; |
| 242 |
const thumnailImage = <?php echo json_encode(esc_url(WPVR_ASSET_PATH . 'icon/setup-wizard-images/youtube-thumbnill.webp')); ?>; |
| 243 |
const woocommerceUrl = <?php echo json_encode(esc_url(WPVR_ASSET_PATH . 'icon/setup-wizard-images/woocommerce-logo.webp')); ?>; |
| 244 |
// const yt_video = 'https://www.youtube.com/embed/SWsv-bplne8?&autoplay=1"'; |
| 245 |
const setup_wizard_admin_url = <?php echo json_encode(esc_url(get_admin_url())); ?>; |
| 246 |
|
| 247 |
const popular_industries = <?php echo json_encode($popular_industries); ?>; |
| 248 |
const discount_information = <?php echo wp_json_encode($setup_wizard_price)?>; |
| 249 |
</script> |
| 250 |
<script src="<?php echo WPVR_JS_PATH . 'setup-wizard/setup_wizard.js' ?>"> |
| 251 |
</script> |
| 252 |
</body> |
| 253 |
|
| 254 |
</html> |