Version Description
- Draggable switch added
- Setting title capitalized
=
Download this release
Release Info
Developer | rextheme |
Plugin | WP VR – 360 Panorama and virtual tour creator for WordPress |
Version | 4.3.0 |
Comparing to | |
See all releases |
Code changes from version 4.2.0 to 4.3.0
- README.txt +5 -1
- admin/class-wpvr-admin.php +52 -52
- admin/class-wpvr-ajax.php +18 -2
- admin/partials/wpvr-meta-box-builder-display.php +5 -1
- public/class-wpvr-public.php +6 -1
- wpvr.php +7 -2
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-fo
|
|
4 |
Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 4.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -337,5 +337,9 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
|
|
337 |
* Keyboard control switch added
|
338 |
* Fontawesome conflict fix
|
339 |
|
|
|
|
|
|
|
|
|
340 |
== Upgrade Notice ==
|
341 |
Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.
|
4 |
Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 4.3.0
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
337 |
* Keyboard control switch added
|
338 |
* Fontawesome conflict fix
|
339 |
|
340 |
+
= 4.3.0 =
|
341 |
+
* Draggable switch added
|
342 |
+
* Setting title capitalized
|
343 |
+
|
344 |
== Upgrade Notice ==
|
345 |
Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.
|
admin/class-wpvr-admin.php
CHANGED
@@ -261,8 +261,8 @@ class Wpvr_Admin {
|
|
261 |
* @since 1.0.0
|
262 |
*/
|
263 |
public function wpvr_post_updated_messages( $messages ) {
|
264 |
-
$messages[$this->post_type][1] = __( '
|
265 |
-
$messages[$this->post_type][4] = __( '
|
266 |
|
267 |
return $messages;
|
268 |
}
|
@@ -363,9 +363,9 @@ class Wpvr_Admin {
|
|
363 |
$html .='<div class="rex-pano-tabs">';
|
364 |
$html .='<nav class="rex-pano-tab-nav rex-pano-nav-menu main-nav">';
|
365 |
$html .='<ul>';
|
366 |
-
$html .='<li class="general active"><span data-href="#general"><i class="fa fa-cogs"></i> '.__('
|
367 |
$html .='<li class="scene"><span data-href="#scenes"><i class="fa fa-image"></i> '.__('Scenes','wpvr').'</span></li>';
|
368 |
-
$html .='<li class="hotspot"><span data-href="#scenes"><i class="far fa-dot-circle"></i> '.__('
|
369 |
$html .='<li class="video"><span data-href="#video"><i class="fas fa-video"></i> '.__('Video','wpvr').'</span></li>';
|
370 |
$html .='</ul>';
|
371 |
$html .='</nav>';
|
@@ -455,7 +455,7 @@ class Wpvr_Admin {
|
|
455 |
//===preview image===//
|
456 |
if (!empty($preview)) {
|
457 |
$html .= '<div class="single-settings preview-setting">';
|
458 |
-
$html .= '<span>'.__('Preview Upload or
|
459 |
$html .= '<div class="form-group">';
|
460 |
$html .= '<img class="prev-img" src="'.$preview.'">';
|
461 |
$html .= '<input type="text" name="preview-attachment-url" class="preview-attachment-url" value="'.$preview.'"><br>';
|
@@ -465,7 +465,7 @@ class Wpvr_Admin {
|
|
465 |
}
|
466 |
else {
|
467 |
$html .= '<div class="single-settings preview-setting">';
|
468 |
-
$html .= '<span>'.__('Preview Upload or
|
469 |
$html .= '<div class="form-group">';
|
470 |
$html .= '<img class="prev-img" src="" style="display: none;">';
|
471 |
$html .= '<input type="text" name="preview-attachment-url" class="preview-attachment-url" value=""><br>';
|
@@ -568,7 +568,7 @@ class Wpvr_Admin {
|
|
568 |
|
569 |
//==Set Default Scene==//
|
570 |
$html .= '<div class="single-settings dscene">';
|
571 |
-
$html .= '<span>'.__('Set as
|
572 |
$html .= '<select class="dscen" name="dscene">';
|
573 |
$html .= '<option value="on"> Yes</option>';
|
574 |
$html .= '<option value="off" selected > No</option>';
|
@@ -627,7 +627,7 @@ class Wpvr_Admin {
|
|
627 |
$html .= '</div>';
|
628 |
|
629 |
$html .= '<div class="hotspot-setting">';
|
630 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
631 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
632 |
$html .= '</div>';
|
633 |
|
@@ -646,12 +646,12 @@ class Wpvr_Admin {
|
|
646 |
$html .= '</div>';
|
647 |
|
648 |
$html .= '<div class="hotspot-content">';
|
649 |
-
$html .= '<label for="hotspot-content">'.__('On
|
650 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
651 |
$html .= '</div>';
|
652 |
|
653 |
$html .= '<div class="hotspot-hover">';
|
654 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
655 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
656 |
$html .= '</div>';
|
657 |
|
@@ -685,7 +685,7 @@ class Wpvr_Admin {
|
|
685 |
|
686 |
//==Set Default Scene==//
|
687 |
$html .= '<div class="single-settings dscene">';
|
688 |
-
$html .= '<span>'.__('Set as
|
689 |
$html .= '<select class="dscen" name="dscene">';
|
690 |
$html .= '<option value="on"> Yes</option>';
|
691 |
$html .= '<option value="off" selected > No</option>';
|
@@ -745,7 +745,7 @@ class Wpvr_Admin {
|
|
745 |
$html .= '</div>';
|
746 |
|
747 |
$html .= '<div class="hotspot-setting">';
|
748 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
749 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
750 |
$html .= '</div>';
|
751 |
|
@@ -764,12 +764,12 @@ class Wpvr_Admin {
|
|
764 |
$html .= '</div>';
|
765 |
|
766 |
$html .= '<div class="hotspot-content">';
|
767 |
-
$html .= '<label for="hotspot-content">'.__('On
|
768 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
769 |
$html .= '</div>';
|
770 |
|
771 |
$html .= '<div class="hotspot-hover">';
|
772 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
773 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
774 |
$html .= '</div>';
|
775 |
|
@@ -827,7 +827,7 @@ class Wpvr_Admin {
|
|
827 |
|
828 |
//==Set Default Scene==//
|
829 |
$html .= '<div class="single-settings dscene">';
|
830 |
-
$html .= '<span>'.__('Set as
|
831 |
$html .= '<select class="dscen" name="dscene">';
|
832 |
$html .= '<option value="on"> Yes</option>';
|
833 |
$html .= '<option value="off" selected > No</option>';
|
@@ -886,7 +886,7 @@ class Wpvr_Admin {
|
|
886 |
$html .= '</div>';
|
887 |
|
888 |
$html .= '<div class="hotspot-setting">';
|
889 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
890 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
891 |
$html .= '</div>';
|
892 |
|
@@ -905,12 +905,12 @@ class Wpvr_Admin {
|
|
905 |
$html .= '</div>';
|
906 |
|
907 |
$html .= '<div class="hotspot-content">';
|
908 |
-
$html .= '<label for="hotspot-content">'.__('On
|
909 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
910 |
$html .= '</div>';
|
911 |
|
912 |
$html .= '<div class="hotspot-hover">';
|
913 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
914 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
915 |
$html .= '</div>';
|
916 |
|
@@ -964,7 +964,7 @@ class Wpvr_Admin {
|
|
964 |
//==Set Default Scene==//
|
965 |
if ($dscene == 'on') {
|
966 |
$html .= '<div class="single-settings dscene">';
|
967 |
-
$html .= '<span>'.__('Set as
|
968 |
$html .= '<select class="dscen" name="dscene">';
|
969 |
$html .= '<option value="on" selected > Yes</option>';
|
970 |
$html .= '<option value="off"> No</option>';
|
@@ -974,7 +974,7 @@ class Wpvr_Admin {
|
|
974 |
}
|
975 |
else {
|
976 |
$html .= '<div class="single-settings dscene">';
|
977 |
-
$html .= '<span>'.__('Set as
|
978 |
$html .= '<select class="dscen" name="dscene">';
|
979 |
$html .= '<option value="on"> Yes</option>';
|
980 |
$html .= '<option value="off" selected > No</option>';
|
@@ -1072,7 +1072,7 @@ class Wpvr_Admin {
|
|
1072 |
$html .= '</div>';
|
1073 |
|
1074 |
$html .= '<div class="hotspot-setting">';
|
1075 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
1076 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1077 |
$html .= '</div>';
|
1078 |
|
@@ -1094,12 +1094,12 @@ class Wpvr_Admin {
|
|
1094 |
$html .= '</div>';
|
1095 |
|
1096 |
$html .= '<div class="hotspot-content">';
|
1097 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1098 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1099 |
$html .= '</div>';
|
1100 |
|
1101 |
$html .= '<div class="hotspot-hover">';
|
1102 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1103 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1104 |
$html .= '</div>';
|
1105 |
|
@@ -1133,12 +1133,12 @@ class Wpvr_Admin {
|
|
1133 |
$html .= '</div>';
|
1134 |
|
1135 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1136 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1137 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1138 |
$html .= '</div>';
|
1139 |
|
1140 |
$html .= '<div class="hotspot-hover">';
|
1141 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1142 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1143 |
$html .= '</div>';
|
1144 |
|
@@ -1183,7 +1183,7 @@ class Wpvr_Admin {
|
|
1183 |
$html .= '</div>';
|
1184 |
|
1185 |
$html .= '<div class="hotspot-setting">';
|
1186 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
1187 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1188 |
$html .= '</div>';
|
1189 |
|
@@ -1205,12 +1205,12 @@ class Wpvr_Admin {
|
|
1205 |
$html .= '</div>';
|
1206 |
|
1207 |
$html .= '<div class="hotspot-content">';
|
1208 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1209 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1210 |
$html .= '</div>';
|
1211 |
|
1212 |
$html .= '<div class="hotspot-hover">';
|
1213 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1214 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1215 |
$html .= '</div>';
|
1216 |
|
@@ -1244,12 +1244,12 @@ class Wpvr_Admin {
|
|
1244 |
$html .= '</div>';
|
1245 |
|
1246 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1247 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1248 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1249 |
$html .= '</div>';
|
1250 |
|
1251 |
$html .= '<div class="hotspot-hover">';
|
1252 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1253 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1254 |
$html .= '</div>';
|
1255 |
|
@@ -1309,7 +1309,7 @@ class Wpvr_Admin {
|
|
1309 |
$html .= '</div>';
|
1310 |
|
1311 |
$html .= '<div class="hotspot-setting">';
|
1312 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
1313 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
1314 |
$html .= '</div>';
|
1315 |
|
@@ -1328,12 +1328,12 @@ class Wpvr_Admin {
|
|
1328 |
$html .= '</div>';
|
1329 |
|
1330 |
$html .= '<div class="hotspot-content">';
|
1331 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1332 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1333 |
$html .= '</div>';
|
1334 |
|
1335 |
$html .= '<div class="hotspot-hover">';
|
1336 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1337 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
1338 |
$html .= '</div>';
|
1339 |
|
@@ -1367,7 +1367,7 @@ class Wpvr_Admin {
|
|
1367 |
//==Set Default Scene==//
|
1368 |
if ($dscene == 'on') {
|
1369 |
$html .= '<div class="single-settings dscene">';
|
1370 |
-
$html .= '<span>'.__('Set as
|
1371 |
$html .= '<select class="dscen" name="dscene">';
|
1372 |
$html .= '<option value="on" selected > Yes</option>';
|
1373 |
$html .= '<option value="off"> No</option>';
|
@@ -1377,7 +1377,7 @@ class Wpvr_Admin {
|
|
1377 |
}
|
1378 |
else {
|
1379 |
$html .= '<div class="single-settings dscene">';
|
1380 |
-
$html .= '<span>'.__('Set as
|
1381 |
$html .= '<select class="dscen" name="dscene">';
|
1382 |
$html .= '<option value="on"> Yes</option>';
|
1383 |
$html .= '<option value="off" selected> No</option>';
|
@@ -1472,7 +1472,7 @@ class Wpvr_Admin {
|
|
1472 |
$html .= '</div>';
|
1473 |
|
1474 |
$html .= '<div class="hotspot-setting">';
|
1475 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
1476 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1477 |
$html .= '</div>';
|
1478 |
|
@@ -1494,12 +1494,12 @@ class Wpvr_Admin {
|
|
1494 |
$html .= '</div>';
|
1495 |
|
1496 |
$html .= '<div class="hotspot-content">';
|
1497 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1498 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1499 |
$html .= '</div>';
|
1500 |
|
1501 |
$html .= '<div class="hotspot-hover">';
|
1502 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1503 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1504 |
$html .= '</div>';
|
1505 |
|
@@ -1533,12 +1533,12 @@ class Wpvr_Admin {
|
|
1533 |
$html .= '</div>';
|
1534 |
|
1535 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1536 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1537 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1538 |
$html .= '</div>';
|
1539 |
|
1540 |
$html .= '<div class="hotspot-hover">';
|
1541 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1542 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1543 |
$html .= '</div>';
|
1544 |
|
@@ -1583,7 +1583,7 @@ class Wpvr_Admin {
|
|
1583 |
$html .= '</div>';
|
1584 |
|
1585 |
$html .= '<div class="hotspot-setting">';
|
1586 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
1587 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1588 |
$html .= '</div>';
|
1589 |
|
@@ -1605,12 +1605,12 @@ class Wpvr_Admin {
|
|
1605 |
$html .= '</div>';
|
1606 |
|
1607 |
$html .= '<div class="hotspot-content">';
|
1608 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1609 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1610 |
$html .= '</div>';
|
1611 |
|
1612 |
$html .= '<div class="hotspot-hover">';
|
1613 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1614 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1615 |
$html .= '</div>';
|
1616 |
|
@@ -1644,12 +1644,12 @@ class Wpvr_Admin {
|
|
1644 |
$html .= '</div>';
|
1645 |
|
1646 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1647 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1648 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1649 |
$html .= '</div>';
|
1650 |
|
1651 |
$html .= '<div class="hotspot-hover">';
|
1652 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1653 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1654 |
$html .= '</div>';
|
1655 |
|
@@ -1709,7 +1709,7 @@ class Wpvr_Admin {
|
|
1709 |
$html .= '</div>';
|
1710 |
|
1711 |
$html .= '<div class="hotspot-setting">';
|
1712 |
-
$html .= '<label for="hotspot-customclass">'.__('Hotspot
|
1713 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
1714 |
$html .= '</div>';
|
1715 |
|
@@ -1728,12 +1728,12 @@ class Wpvr_Admin {
|
|
1728 |
$html .= '</div>';
|
1729 |
|
1730 |
$html .= '<div class="hotspot-content">';
|
1731 |
-
$html .= '<label for="hotspot-content">'.__('On
|
1732 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1733 |
$html .= '</div>';
|
1734 |
|
1735 |
$html .= '<div class="hotspot-hover">';
|
1736 |
-
$html .= '<label for="hotspot-hover">'.__('On
|
1737 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
1738 |
$html .= '</div>';
|
1739 |
|
@@ -1799,7 +1799,7 @@ class Wpvr_Admin {
|
|
1799 |
$vidcontrol_off = 'checked';
|
1800 |
}
|
1801 |
$html .= '<div class="single-settings videosetup">';
|
1802 |
-
$html .= '<span>Enable Video:
|
1803 |
$html .= '<ul>';
|
1804 |
$html .= '<li class="radio-btn">';
|
1805 |
$html .= '<input class="styled-radio" id="styled-radio" type="radio" name="panovideo" value="off" >';
|
@@ -1816,7 +1816,7 @@ class Wpvr_Admin {
|
|
1816 |
|
1817 |
$html .= '<div class="video-setting" style="display:none;">';
|
1818 |
$html .= '<div class="single-settings">';
|
1819 |
-
$html .= '<span>Upload or
|
1820 |
$html .= '<div class="form-group">';
|
1821 |
$html .= '<input type="text" name="video-attachment-url" placeholder="Paste Youtube or Vimeo link or upload" class="video-attachment-url" value="'.$postdata['vidurl'].'">';
|
1822 |
$html .= '<input type="button" class="video-upload" data-info="" value="Upload" />';
|
@@ -1827,7 +1827,7 @@ class Wpvr_Admin {
|
|
1827 |
}
|
1828 |
else {
|
1829 |
$html .= '<div class="single-settings videosetup">';
|
1830 |
-
$html .= '<span>Enable Video: </span>';
|
1831 |
$html .= '<ul>';
|
1832 |
$html .= '<li class="radio-btn">';
|
1833 |
$html .= '<input class="styled-radio" id="styled-radio" type="radio" name="panovideo" value="off" checked >';
|
@@ -1846,7 +1846,7 @@ class Wpvr_Admin {
|
|
1846 |
//==Video Setting==/
|
1847 |
$html .= '<div class="video-setting" style="display:none;">';
|
1848 |
$html .= '<div class="single-settings">';
|
1849 |
-
$html .= '<span>Upload or
|
1850 |
$html .= '<div class="form-group">';
|
1851 |
$html .= '<input type="text" placeholder="Paste Youtube or Vimeo link or upload" name="video-attachment-url" class="video-attachment-url" value="">';
|
1852 |
$html .= '<input type="button" class="video-upload" data-info="" value="Upload"/>';
|
261 |
* @since 1.0.0
|
262 |
*/
|
263 |
public function wpvr_post_updated_messages( $messages ) {
|
264 |
+
$messages[$this->post_type][1] = __( 'WP VR item updated.', $this->plugin_name);
|
265 |
+
$messages[$this->post_type][4] = __( 'WP VR item updated.', $this->plugin_name);
|
266 |
|
267 |
return $messages;
|
268 |
}
|
363 |
$html .='<div class="rex-pano-tabs">';
|
364 |
$html .='<nav class="rex-pano-tab-nav rex-pano-nav-menu main-nav">';
|
365 |
$html .='<ul>';
|
366 |
+
$html .='<li class="general active"><span data-href="#general"><i class="fa fa-cogs"></i> '.__('General','wpvr').'</span></li>';
|
367 |
$html .='<li class="scene"><span data-href="#scenes"><i class="fa fa-image"></i> '.__('Scenes','wpvr').'</span></li>';
|
368 |
+
$html .='<li class="hotspot"><span data-href="#scenes"><i class="far fa-dot-circle"></i> '.__('Hotspot','wpvr').'</span></li>';
|
369 |
$html .='<li class="video"><span data-href="#video"><i class="fas fa-video"></i> '.__('Video','wpvr').'</span></li>';
|
370 |
$html .='</ul>';
|
371 |
$html .='</nav>';
|
455 |
//===preview image===//
|
456 |
if (!empty($preview)) {
|
457 |
$html .= '<div class="single-settings preview-setting">';
|
458 |
+
$html .= '<span>'.__('Preview Upload or Add Link : ','wpvr').'</span>';
|
459 |
$html .= '<div class="form-group">';
|
460 |
$html .= '<img class="prev-img" src="'.$preview.'">';
|
461 |
$html .= '<input type="text" name="preview-attachment-url" class="preview-attachment-url" value="'.$preview.'"><br>';
|
465 |
}
|
466 |
else {
|
467 |
$html .= '<div class="single-settings preview-setting">';
|
468 |
+
$html .= '<span>'.__('Preview Upload or Add Link : ','wpvr').'</span>';
|
469 |
$html .= '<div class="form-group">';
|
470 |
$html .= '<img class="prev-img" src="" style="display: none;">';
|
471 |
$html .= '<input type="text" name="preview-attachment-url" class="preview-attachment-url" value=""><br>';
|
568 |
|
569 |
//==Set Default Scene==//
|
570 |
$html .= '<div class="single-settings dscene">';
|
571 |
+
$html .= '<span>'.__('Set as Default: ','wpvr').'</span>';
|
572 |
$html .= '<select class="dscen" name="dscene">';
|
573 |
$html .= '<option value="on"> Yes</option>';
|
574 |
$html .= '<option value="off" selected > No</option>';
|
627 |
$html .= '</div>';
|
628 |
|
629 |
$html .= '<div class="hotspot-setting">';
|
630 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon Class: ','wpvr').'</label>';
|
631 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
632 |
$html .= '</div>';
|
633 |
|
646 |
$html .= '</div>';
|
647 |
|
648 |
$html .= '<div class="hotspot-content">';
|
649 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
650 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
651 |
$html .= '</div>';
|
652 |
|
653 |
$html .= '<div class="hotspot-hover">';
|
654 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
655 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
656 |
$html .= '</div>';
|
657 |
|
685 |
|
686 |
//==Set Default Scene==//
|
687 |
$html .= '<div class="single-settings dscene">';
|
688 |
+
$html .= '<span>'.__('Set as Default: ','wpvr').'</span>';
|
689 |
$html .= '<select class="dscen" name="dscene">';
|
690 |
$html .= '<option value="on"> Yes</option>';
|
691 |
$html .= '<option value="off" selected > No</option>';
|
745 |
$html .= '</div>';
|
746 |
|
747 |
$html .= '<div class="hotspot-setting">';
|
748 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon Class: ','wpvr').'</label>';
|
749 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
750 |
$html .= '</div>';
|
751 |
|
764 |
$html .= '</div>';
|
765 |
|
766 |
$html .= '<div class="hotspot-content">';
|
767 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
768 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
769 |
$html .= '</div>';
|
770 |
|
771 |
$html .= '<div class="hotspot-hover">';
|
772 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
773 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
774 |
$html .= '</div>';
|
775 |
|
827 |
|
828 |
//==Set Default Scene==//
|
829 |
$html .= '<div class="single-settings dscene">';
|
830 |
+
$html .= '<span>'.__('Set as Default: ','wpvr').'</span>';
|
831 |
$html .= '<select class="dscen" name="dscene">';
|
832 |
$html .= '<option value="on"> Yes</option>';
|
833 |
$html .= '<option value="off" selected > No</option>';
|
886 |
$html .= '</div>';
|
887 |
|
888 |
$html .= '<div class="hotspot-setting">';
|
889 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon Class: ','wpvr').'</label>';
|
890 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
891 |
$html .= '</div>';
|
892 |
|
905 |
$html .= '</div>';
|
906 |
|
907 |
$html .= '<div class="hotspot-content">';
|
908 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
909 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
910 |
$html .= '</div>';
|
911 |
|
912 |
$html .= '<div class="hotspot-hover">';
|
913 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
914 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
915 |
$html .= '</div>';
|
916 |
|
964 |
//==Set Default Scene==//
|
965 |
if ($dscene == 'on') {
|
966 |
$html .= '<div class="single-settings dscene">';
|
967 |
+
$html .= '<span>'.__('Set as Default: ','wpvr').'</span>';
|
968 |
$html .= '<select class="dscen" name="dscene">';
|
969 |
$html .= '<option value="on" selected > Yes</option>';
|
970 |
$html .= '<option value="off"> No</option>';
|
974 |
}
|
975 |
else {
|
976 |
$html .= '<div class="single-settings dscene">';
|
977 |
+
$html .= '<span>'.__('Set as Default: ','wpvr').'</span>';
|
978 |
$html .= '<select class="dscen" name="dscene">';
|
979 |
$html .= '<option value="on"> Yes</option>';
|
980 |
$html .= '<option value="off" selected > No</option>';
|
1072 |
$html .= '</div>';
|
1073 |
|
1074 |
$html .= '<div class="hotspot-setting">';
|
1075 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon Class: ','wpvr').'</label>';
|
1076 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1077 |
$html .= '</div>';
|
1078 |
|
1094 |
$html .= '</div>';
|
1095 |
|
1096 |
$html .= '<div class="hotspot-content">';
|
1097 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
1098 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1099 |
$html .= '</div>';
|
1100 |
|
1101 |
$html .= '<div class="hotspot-hover">';
|
1102 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').' </label>';
|
1103 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1104 |
$html .= '</div>';
|
1105 |
|
1133 |
$html .= '</div>';
|
1134 |
|
1135 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1136 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').' </label>';
|
1137 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1138 |
$html .= '</div>';
|
1139 |
|
1140 |
$html .= '<div class="hotspot-hover">';
|
1141 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
1142 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1143 |
$html .= '</div>';
|
1144 |
|
1183 |
$html .= '</div>';
|
1184 |
|
1185 |
$html .= '<div class="hotspot-setting">';
|
1186 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon Class: ','wpvr').'</label>';
|
1187 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1188 |
$html .= '</div>';
|
1189 |
|
1205 |
$html .= '</div>';
|
1206 |
|
1207 |
$html .= '<div class="hotspot-content">';
|
1208 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
1209 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1210 |
$html .= '</div>';
|
1211 |
|
1212 |
$html .= '<div class="hotspot-hover">';
|
1213 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
1214 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1215 |
$html .= '</div>';
|
1216 |
|
1244 |
$html .= '</div>';
|
1245 |
|
1246 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1247 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
1248 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1249 |
$html .= '</div>';
|
1250 |
|
1251 |
$html .= '<div class="hotspot-hover">';
|
1252 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').' </label>';
|
1253 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1254 |
$html .= '</div>';
|
1255 |
|
1309 |
$html .= '</div>';
|
1310 |
|
1311 |
$html .= '<div class="hotspot-setting">';
|
1312 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon class: ','wpvr').'</label>';
|
1313 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
1314 |
$html .= '</div>';
|
1315 |
|
1328 |
$html .= '</div>';
|
1329 |
|
1330 |
$html .= '<div class="hotspot-content">';
|
1331 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
1332 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1333 |
$html .= '</div>';
|
1334 |
|
1335 |
$html .= '<div class="hotspot-hover">';
|
1336 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
1337 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
1338 |
$html .= '</div>';
|
1339 |
|
1367 |
//==Set Default Scene==//
|
1368 |
if ($dscene == 'on') {
|
1369 |
$html .= '<div class="single-settings dscene">';
|
1370 |
+
$html .= '<span>'.__('Set as Default: ','wpvr').'</span>';
|
1371 |
$html .= '<select class="dscen" name="dscene">';
|
1372 |
$html .= '<option value="on" selected > Yes</option>';
|
1373 |
$html .= '<option value="off"> No</option>';
|
1377 |
}
|
1378 |
else {
|
1379 |
$html .= '<div class="single-settings dscene">';
|
1380 |
+
$html .= '<span>'.__('Set as Default: ','wpvr').'</span>';
|
1381 |
$html .= '<select class="dscen" name="dscene">';
|
1382 |
$html .= '<option value="on"> Yes</option>';
|
1383 |
$html .= '<option value="off" selected> No</option>';
|
1472 |
$html .= '</div>';
|
1473 |
|
1474 |
$html .= '<div class="hotspot-setting">';
|
1475 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon Class: ','wpvr').'</label>';
|
1476 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1477 |
$html .= '</div>';
|
1478 |
|
1494 |
$html .= '</div>';
|
1495 |
|
1496 |
$html .= '<div class="hotspot-content">';
|
1497 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').' </label>';
|
1498 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1499 |
$html .= '</div>';
|
1500 |
|
1501 |
$html .= '<div class="hotspot-hover">';
|
1502 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').' </label>';
|
1503 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1504 |
$html .= '</div>';
|
1505 |
|
1533 |
$html .= '</div>';
|
1534 |
|
1535 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1536 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
1537 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1538 |
$html .= '</div>';
|
1539 |
|
1540 |
$html .= '<div class="hotspot-hover">';
|
1541 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').' </label>';
|
1542 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1543 |
$html .= '</div>';
|
1544 |
|
1583 |
$html .= '</div>';
|
1584 |
|
1585 |
$html .= '<div class="hotspot-setting">';
|
1586 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom icon Class: ','wpvr').'</label>';
|
1587 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass" value="'.$hotspot_custom_class.'"/>';
|
1588 |
$html .= '</div>';
|
1589 |
|
1605 |
$html .= '</div>';
|
1606 |
|
1607 |
$html .= '<div class="hotspot-content">';
|
1608 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').' </label>';
|
1609 |
$html .= '<textarea name="hotspot-content">'.$hotspot_content.'</textarea>';
|
1610 |
$html .= '</div>';
|
1611 |
|
1612 |
$html .= '<div class="hotspot-hover">';
|
1613 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').' </label>';
|
1614 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1615 |
$html .= '</div>';
|
1616 |
|
1644 |
$html .= '</div>';
|
1645 |
|
1646 |
$html .= '<div class="hotspot-content" style="display:none;">';
|
1647 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').' </label>';
|
1648 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1649 |
$html .= '</div>';
|
1650 |
|
1651 |
$html .= '<div class="hotspot-hover">';
|
1652 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
1653 |
$html .= '<textarea name="hotspot-hover">'.$hotspot_hover.'</textarea>';
|
1654 |
$html .= '</div>';
|
1655 |
|
1709 |
$html .= '</div>';
|
1710 |
|
1711 |
$html .= '<div class="hotspot-setting">';
|
1712 |
+
$html .= '<label for="hotspot-customclass">'.__('Hotspot Custom Icon Class: ','wpvr').'</label>';
|
1713 |
$html .= '<input type="text" id="hotspot-customclass" name="hotspot-customclass"/>';
|
1714 |
$html .= '</div>';
|
1715 |
|
1728 |
$html .= '</div>';
|
1729 |
|
1730 |
$html .= '<div class="hotspot-content">';
|
1731 |
+
$html .= '<label for="hotspot-content">'.__('On Click Content: ','wpvr').'</label>';
|
1732 |
$html .= '<textarea name="hotspot-content"></textarea>';
|
1733 |
$html .= '</div>';
|
1734 |
|
1735 |
$html .= '<div class="hotspot-hover">';
|
1736 |
+
$html .= '<label for="hotspot-hover">'.__('On Hover Content: ','wpvr').'</label>';
|
1737 |
$html .= '<textarea name="hotspot-hover"></textarea>';
|
1738 |
$html .= '</div>';
|
1739 |
|
1799 |
$vidcontrol_off = 'checked';
|
1800 |
}
|
1801 |
$html .= '<div class="single-settings videosetup">';
|
1802 |
+
$html .= '<span>'.__('Enable Video:','wpvr').'</span>';
|
1803 |
$html .= '<ul>';
|
1804 |
$html .= '<li class="radio-btn">';
|
1805 |
$html .= '<input class="styled-radio" id="styled-radio" type="radio" name="panovideo" value="off" >';
|
1816 |
|
1817 |
$html .= '<div class="video-setting" style="display:none;">';
|
1818 |
$html .= '<div class="single-settings">';
|
1819 |
+
$html .= '<span>'.__('Upload or Add Link: ','wpvr').'</span>';
|
1820 |
$html .= '<div class="form-group">';
|
1821 |
$html .= '<input type="text" name="video-attachment-url" placeholder="Paste Youtube or Vimeo link or upload" class="video-attachment-url" value="'.$postdata['vidurl'].'">';
|
1822 |
$html .= '<input type="button" class="video-upload" data-info="" value="Upload" />';
|
1827 |
}
|
1828 |
else {
|
1829 |
$html .= '<div class="single-settings videosetup">';
|
1830 |
+
$html .= '<span>'.__('Enable Video: ','wpvr').'</span>';
|
1831 |
$html .= '<ul>';
|
1832 |
$html .= '<li class="radio-btn">';
|
1833 |
$html .= '<input class="styled-radio" id="styled-radio" type="radio" name="panovideo" value="off" checked >';
|
1846 |
//==Video Setting==/
|
1847 |
$html .= '<div class="video-setting" style="display:none;">';
|
1848 |
$html .= '<div class="single-settings">';
|
1849 |
+
$html .= '<span>'.__('Upload or Add Link: ','wpvr').'</span>';
|
1850 |
$html .= '<div class="form-group">';
|
1851 |
$html .= '<input type="text" placeholder="Paste Youtube or Vimeo link or upload" name="video-attachment-url" class="video-attachment-url" value="">';
|
1852 |
$html .= '<input type="button" class="video-upload" data-info="" value="Upload"/>';
|
admin/class-wpvr-ajax.php
CHANGED
@@ -46,6 +46,14 @@ class Wpvr_Ajax {
|
|
46 |
$mouseZoom = false;
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
$diskeyboard = sanitize_text_field($_POST['diskeyboard']);
|
50 |
if ($diskeyboard == 'on') {
|
51 |
$diskeyboard = true;
|
@@ -483,7 +491,7 @@ class Wpvr_Ajax {
|
|
483 |
$pano_id_array = array();
|
484 |
$pano_id_array = array("panoid"=>$panoid);
|
485 |
$pano_response = array();
|
486 |
-
$pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"disableKeyboardCtrl"=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
|
487 |
|
488 |
if ($rotation == 'off') {
|
489 |
unset($pano_response['autoRotate']);
|
@@ -813,6 +821,14 @@ class Wpvr_Ajax {
|
|
813 |
$mouseZoom = false;
|
814 |
}
|
815 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
816 |
$diskeyboard = sanitize_text_field($_POST['diskeyboard']);
|
817 |
if ($diskeyboard == 'on') {
|
818 |
$diskeyboard = true;
|
@@ -1122,7 +1138,7 @@ class Wpvr_Ajax {
|
|
1122 |
}
|
1123 |
|
1124 |
$pano_array = array();
|
1125 |
-
$pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "diskeyboard" )=>$diskeyboard,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
|
1126 |
|
1127 |
if ($rotation == 'off') {
|
1128 |
unset($pano_array['autoRotate']);
|
46 |
$mouseZoom = false;
|
47 |
}
|
48 |
|
49 |
+
$draggable = sanitize_text_field($_POST['draggable']);
|
50 |
+
if ($draggable == 'on') {
|
51 |
+
$draggable = true;
|
52 |
+
}
|
53 |
+
else {
|
54 |
+
$draggable = false;
|
55 |
+
}
|
56 |
+
|
57 |
$diskeyboard = sanitize_text_field($_POST['diskeyboard']);
|
58 |
if ($diskeyboard == 'on') {
|
59 |
$diskeyboard = true;
|
491 |
$pano_id_array = array();
|
492 |
$pano_id_array = array("panoid"=>$panoid);
|
493 |
$pano_response = array();
|
494 |
+
$pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,"disableKeyboardCtrl"=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
|
495 |
|
496 |
if ($rotation == 'off') {
|
497 |
unset($pano_response['autoRotate']);
|
821 |
$mouseZoom = false;
|
822 |
}
|
823 |
|
824 |
+
$draggable = sanitize_text_field($_POST['draggable']);
|
825 |
+
if ($draggable == 'on') {
|
826 |
+
$draggable = true;
|
827 |
+
}
|
828 |
+
else {
|
829 |
+
$draggable = false;
|
830 |
+
}
|
831 |
+
|
832 |
$diskeyboard = sanitize_text_field($_POST['diskeyboard']);
|
833 |
if ($diskeyboard == 'on') {
|
834 |
$diskeyboard = true;
|
1138 |
}
|
1139 |
|
1140 |
$pano_array = array();
|
1141 |
+
$pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "draggable" )=>$draggable,__( "diskeyboard" )=>$diskeyboard,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
|
1142 |
|
1143 |
if ($rotation == 'off') {
|
1144 |
unset($pano_array['autoRotate']);
|
admin/partials/wpvr-meta-box-builder-display.php
CHANGED
@@ -105,6 +105,10 @@ $mouseZoom = true;
|
|
105 |
if (isset($postdata['mouseZoom'])) {
|
106 |
$mouseZoom = $postdata['mouseZoom'];
|
107 |
}
|
|
|
|
|
|
|
|
|
108 |
$diskeyboard = false;
|
109 |
if (isset($postdata['diskeyboard'])) {
|
110 |
$diskeyboard = $postdata['diskeyboard'];
|
@@ -364,7 +368,7 @@ if (isset($postdata['panodata'])) {
|
|
364 |
$pano_id_array = array();
|
365 |
$pano_id_array = array("panoid"=>$panoid);
|
366 |
$pano_response = array();
|
367 |
-
$pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
|
368 |
|
369 |
if (empty($autorotation)) {
|
370 |
unset($pano_response['autoRotate']);
|
105 |
if (isset($postdata['mouseZoom'])) {
|
106 |
$mouseZoom = $postdata['mouseZoom'];
|
107 |
}
|
108 |
+
$draggable = true;
|
109 |
+
if (isset($postdata['draggable'])) {
|
110 |
+
$draggable = $postdata['draggable'];
|
111 |
+
}
|
112 |
$diskeyboard = false;
|
113 |
if (isset($postdata['diskeyboard'])) {
|
114 |
$diskeyboard = $postdata['diskeyboard'];
|
368 |
$pano_id_array = array();
|
369 |
$pano_id_array = array("panoid"=>$panoid);
|
370 |
$pano_response = array();
|
371 |
+
$pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
|
372 |
|
373 |
if (empty($autorotation)) {
|
374 |
unset($pano_response['autoRotate']);
|
public/class-wpvr-public.php
CHANGED
@@ -288,6 +288,11 @@ class Wpvr_Public {
|
|
288 |
$mouseZoom = $postdata['mouseZoom'];
|
289 |
}
|
290 |
|
|
|
|
|
|
|
|
|
|
|
291 |
$diskeyboard = false;
|
292 |
if (isset($postdata['diskeyboard'])) {
|
293 |
$diskeyboard = $postdata['diskeyboard'];
|
@@ -559,7 +564,7 @@ class Wpvr_Public {
|
|
559 |
$pano_id_array = array();
|
560 |
$pano_id_array = array("panoid"=>$panoid);
|
561 |
$pano_response = array();
|
562 |
-
$pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"orientationSupport"=>'false',"compass"=>$compass,"mouseZoom"=>$mouseZoom,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
|
563 |
|
564 |
if (empty($autorotation)) {
|
565 |
unset($pano_response['autoRotate']);
|
288 |
$mouseZoom = $postdata['mouseZoom'];
|
289 |
}
|
290 |
|
291 |
+
$draggable = true;
|
292 |
+
if (isset($postdata['draggable'])) {
|
293 |
+
$draggable = $postdata['draggable'];
|
294 |
+
}
|
295 |
+
|
296 |
$diskeyboard = false;
|
297 |
if (isset($postdata['diskeyboard'])) {
|
298 |
$diskeyboard = $postdata['diskeyboard'];
|
564 |
$pano_id_array = array();
|
565 |
$pano_id_array = array("panoid"=>$panoid);
|
566 |
$pano_response = array();
|
567 |
+
$pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"orientationSupport"=>'false',"compass"=>$compass,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
|
568 |
|
569 |
if (empty($autorotation)) {
|
570 |
unset($pano_response['autoRotate']);
|
wpvr.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: WP VR
|
17 |
* Plugin URI: https://rextheme.com/wpvr/
|
18 |
* Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
|
19 |
-
* Version: 4.
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
@@ -311,6 +311,11 @@ function wpvr_block_render( $attributes ) {
|
|
311 |
$mouseZoom = $postdata['mouseZoom'];
|
312 |
}
|
313 |
|
|
|
|
|
|
|
|
|
|
|
314 |
$diskeyboard = false;
|
315 |
if (isset($postdata['diskeyboard'])) {
|
316 |
$diskeyboard = $postdata['diskeyboard'];
|
@@ -583,7 +588,7 @@ function wpvr_block_render( $attributes ) {
|
|
583 |
$pano_id_array = array();
|
584 |
$pano_id_array = array('panoid'=>$panoid);
|
585 |
$pano_response = array();
|
586 |
-
$pano_response = array('autoLoad'=>$autoload,'showControls'=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,'default'=>$default_data,'scenes'=>$scene_data);
|
587 |
if (empty($autorotation)) {
|
588 |
unset($pano_response['autoRotate']);
|
589 |
unset($pano_response['autoRotateInactivityDelay']);
|
16 |
* Plugin Name: WP VR
|
17 |
* Plugin URI: https://rextheme.com/wpvr/
|
18 |
* Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
|
19 |
+
* Version: 4.3.0
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
311 |
$mouseZoom = $postdata['mouseZoom'];
|
312 |
}
|
313 |
|
314 |
+
$draggable = true;
|
315 |
+
if (isset($postdata['draggable'])) {
|
316 |
+
$draggable = $postdata['draggable'];
|
317 |
+
}
|
318 |
+
|
319 |
$diskeyboard = false;
|
320 |
if (isset($postdata['diskeyboard'])) {
|
321 |
$diskeyboard = $postdata['diskeyboard'];
|
588 |
$pano_id_array = array();
|
589 |
$pano_id_array = array('panoid'=>$panoid);
|
590 |
$pano_response = array();
|
591 |
+
$pano_response = array('autoLoad'=>$autoload,'showControls'=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,'default'=>$default_data,'scenes'=>$scene_data);
|
592 |
if (empty($autorotation)) {
|
593 |
unset($pano_response['autoRotate']);
|
594 |
unset($pano_response['autoRotateInactivityDelay']);
|