| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly |
| 3 |
/** |
| 4 |
* Provide a admin area view for the plugin |
| 5 |
* |
| 6 |
* This file is used to markup the admin-facing aspects of the plugin. |
| 7 |
* |
| 8 |
* @link http://rextheme.com/ |
| 9 |
* @since 1.0.0 |
| 10 |
* |
| 11 |
* @package Wpvr |
| 12 |
* @subpackage Wpvr/admin/partials |
| 13 |
*/ |
| 14 |
?> |
| 15 |
|
| 16 |
<!-- This file should display the admin pages --> |
| 17 |
<div class="rex-onboarding"> |
| 18 |
<ul class="tabs tabs-icon rex-tabs"> |
| 19 |
<li class="tab col s3 wpvr_tabs_row"> |
| 20 |
<a href="#"> |
| 21 |
<svg height="16px" width="17px" viewBox="0 -10 511.987 511" xmlns="http://www.w3.org/2000/svg"><path d="M114.594 491.14c-5.61 0-11.18-1.75-15.934-5.187a27.223 27.223 0 01-10.582-28.094l32.938-145.09L9.312 214.81a27.188 27.188 0 01-7.976-28.907 27.208 27.208 0 0123.402-18.71l147.797-13.419L230.97 17.027C235.277 6.98 245.089.492 255.992.492s20.715 6.488 25.024 16.512l58.433 136.77 147.774 13.417c10.882.98 20.054 8.344 23.425 18.711 3.372 10.368.254 21.739-7.957 28.907L390.988 312.75l32.938 145.086c2.414 10.668-1.727 21.7-10.578 28.098-8.832 6.398-20.61 6.89-29.91 1.3l-127.446-76.16-127.445 76.203c-4.309 2.559-9.11 3.864-13.953 3.864zm141.398-112.874c4.844 0 9.64 1.3 13.953 3.859l120.278 71.938-31.086-136.942a27.21 27.21 0 018.62-26.516l105.473-92.5-139.543-12.671a27.18 27.18 0 01-22.613-16.493L255.992 39.895 200.844 168.96c-3.883 9.195-12.524 15.512-22.547 16.43L38.734 198.062l105.47 92.5c7.554 6.614 10.858 16.77 8.62 26.54l-31.062 136.937 120.277-71.914c4.309-2.559 9.11-3.86 13.953-3.86zm-84.586-221.848s0 .023-.023.043zm169.13-.063l.023.043c0-.023 0-.023-.024-.043zm0 0"/></svg> |
| 22 |
<?php _e('Free vs Pro', 'wpvr'); ?> |
| 23 |
</a> |
| 24 |
</li> |
| 25 |
</ul> |
| 26 |
|
| 27 |
<div class="block-wrapper"> |
| 28 |
<div class="wpvr-compare"> |
| 29 |
<?php |
| 30 |
$pro_url = add_query_arg('wpvr-dashboard', '1', 'https://rextheme.com/wpvr/wpvr-pricing/'); |
| 31 |
|
| 32 |
$features = [ |
| 33 |
__('Unlimited Scenes (Up to 5 in Free)', 'wpvr'), |
| 34 |
__('Unlimited Hotspots (Up to to 5 for a scene in free)', 'wpvr'), |
| 35 |
__('Publish Tours Anywhere (Embed Add-on)', 'wpvr'), |
| 36 |
__('WooCommerce Add-on', 'wpvr'), |
| 37 |
__('Gyroscope Support', 'wpvr'), |
| 38 |
__('Panorama Scene Gallery', 'wpvr'), |
| 39 |
__('Explainer Video', 'wpvr'), |
| 40 |
__('Tour Background Audio', 'wpvr'), |
| 41 |
__('Info-type Hotspots (Heading, Image, Text, Video, Gif, Links)', 'wpvr'), |
| 42 |
__('Scene-type Hotspots (Connect Panoramas)', 'wpvr'), |
| 43 |
__('Custom Icon & Color for Hotspots (Using CSS)', 'wpvr'), |
| 44 |
__('900+ Icons & RGB Color Support for Hotspots', 'wpvr'), |
| 45 |
__('Partial Panorama / Mobile Panorama Support', 'wpvr'), |
| 46 |
__('360 Video Support', 'wpvr'), |
| 47 |
__('Google Street View', 'wpvr'), |
| 48 |
__('Cubemap Image Support', 'wpvr'), |
| 49 |
__('VR Glass Support for Video Tours', 'wpvr'), |
| 50 |
__('Fluent Forms Add-on', 'wpvr'), |
| 51 |
__('Autoload Tours', 'wpvr'), |
| 52 |
__('Custom Rotation Settings', 'wpvr'), |
| 53 |
__('Full Page Virtual Tours', 'wpvr'), |
| 54 |
__('Custom Preview Image & Text', 'wpvr'), |
| 55 |
__('Company Logo & Description', 'wpvr'), |
| 56 |
__('Import & Export Virtual Tours', 'wpvr'), |
| 57 |
__('Duplicate Tours with One Click', 'wpvr'), |
| 58 |
__('Control Horizontal & Vertical View of Panorama Images', 'wpvr'), |
| 59 |
__('Custom Zoom Settings', 'wpvr'), |
| 60 |
__('Custom Panorama Loading Face', 'wpvr'), |
| 61 |
__('Background Panoramas', 'wpvr'), |
| 62 |
__('Home Button to visit Default Scene', 'wpvr'), |
| 63 |
__('Scene Title', 'wpvr'), |
| 64 |
__('Scene Author with URL', 'wpvr'), |
| 65 |
__('Enable or Disable Keyboard Movement Control.', 'wpvr'), |
| 66 |
__('Enable or Disable Keyboard Zoom Control.', 'wpvr'), |
| 67 |
__('Enable or Disable Mouse Drag Control.', 'wpvr'), |
| 68 |
__('Enable or Disable Mouse Zoom control.', 'wpvr'), |
| 69 |
__('Mouse Control.', 'wpvr'), |
| 70 |
__('On Screen Compass.', 'wpvr'), |
| 71 |
__('Scene Titles on Gallery.', 'wpvr'), |
| 72 |
__('Customize Icon & Logo of Control Buttons.', 'wpvr'), |
| 73 |
__('Autoload & Autoplay Video Tours.', 'wpvr') |
| 74 |
]; |
| 75 |
|
| 76 |
// Define the corresponding icons for free and pro versions |
| 77 |
$free_icons = array_fill(0, 41, 'cross'); |
| 78 |
|
| 79 |
$free_icons[8] = 'check'; |
| 80 |
$free_icons[9] = 'check'; |
| 81 |
$free_icons[10] = 'check'; |
| 82 |
$free_icons[13] = 'check'; |
| 83 |
$free_icons[16] = 'check'; |
| 84 |
$free_icons[18] = 'check'; |
| 85 |
$free_icons[20] = 'check'; |
| 86 |
|
| 87 |
$pro_icons = array_fill(0, 41, 'check'); |
| 88 |
|
| 89 |
echo '<div class="compare-tbl-wrapper">'; |
| 90 |
echo '<div class="comparison-tbl-wrapper-area">'; |
| 91 |
|
| 92 |
echo '<ul class="single-feature list-header">'; |
| 93 |
echo '<li class="comparison-tbl-col feature">' . __('features', 'wpvr') . '</li>'; |
| 94 |
echo '<li class="comparison-tbl-col free">' . __('free', 'wpvr') . '</li>'; |
| 95 |
echo '<li class="comparison-tbl-col pro">' . __('pro', 'wpvr') . '</li>'; |
| 96 |
echo '</ul>'; |
| 97 |
|
| 98 |
echo '<div class="comparison-tbl-body">'; |
| 99 |
|
| 100 |
foreach ($features as $index => $feature) { |
| 101 |
echo '<ul class="single-feature feature-list">'; |
| 102 |
|
| 103 |
echo '<li class="comparison-tbl-col feature"><p>' . $feature . '</p></li>'; |
| 104 |
echo '<li class="comparison-tbl-col free"><span class="icon no"><img loading="lazy" src="' . WPVR_PLUGIN_DIR_URL . 'admin/icon/' . $free_icons[$index] . '.svg" alt="' . $free_icons[$index] . '"></span></li>'; |
| 105 |
echo '<li class="comparison-tbl-col pro"><span class="icon yes"><img loading="lazy" src="' . WPVR_PLUGIN_DIR_URL . 'admin/icon/' . $pro_icons[$index] . '.svg" alt="' . $pro_icons[$index] . '"></span></li>'; |
| 106 |
|
| 107 |
echo '</ul>'; |
| 108 |
} |
| 109 |
echo '</div>'; |
| 110 |
|
| 111 |
echo '</div>'; |
| 112 |
|
| 113 |
echo '<div class="comparison-tbl-footer">'; |
| 114 |
echo '<div class="footer-btn comparison-tbl-col">'; |
| 115 |
echo '<a class="wpvr-btn get-pro" href="' . esc_url($pro_url) . '" title="' . esc_attr__('Upgrade to Pro', 'wpvr') . '" target="_blank">'; |
| 116 |
echo esc_html__('Upgrade to Pro', 'wpvr'); |
| 117 |
echo '</a>'; |
| 118 |
echo '</div>'; |
| 119 |
echo '</div>'; |
| 120 |
|
| 121 |
|
| 122 |
echo '</div>'; |
| 123 |
|
| 124 |
?> |
| 125 |
</div> |
| 126 |
</div> |
| 127 |
</div> |
| 128 |
|
| 129 |
<?php |
| 130 |
|
| 131 |
if(is_plugin_active('divi-builder/divi-builder.php')){ |
| 132 |
?> |
| 133 |
<script> |
| 134 |
(function ($) { |
| 135 |
// $(".rex-onboarding .block-wrapper:not(#tab1)").hide() |
| 136 |
$('.rex-onboarding li.tab a').first().addClass("active"); |
| 137 |
$('.rex-onboarding li.tab').on('click', function(){ |
| 138 |
var target_id = $(this).find("a").attr('href'); |
| 139 |
$(".rex-onboarding li.tab a").removeClass('active'); |
| 140 |
$(this).find("a").addClass('active'); |
| 141 |
$(target_id).show(); |
| 142 |
$(target_id).siblings('.block-wrapper').hide(); |
| 143 |
}) |
| 144 |
})(jQuery); |
| 145 |
</script> |
| 146 |
<?php |
| 147 |
} |
| 148 |
|
| 149 |
?> |