WP VR – 360 Panorama and virtual tour creator for WordPress - Version 7.2.7

Version Description

(12-04-2021) = * Tweak: Rollback versions updated. * Tweak: Video tab warning pop-up redesigned. * New: Preview Image Text is made dynamic. * New: On the Hotspots tab, the active Scene ID will be mentioned. * Fix: Elementor Widget Issue. * Fix: Preview Image Test font mismatch.

Download this release

Release Info

Developer rextheme
Plugin Icon 128x128 WP VR – 360 Panorama and virtual tour creator for WordPress
Version 7.2.7
Comparing to
See all releases

Code changes from version 7.2.6 to 7.2.7

README.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-fo
5
  Requires at least: 5.0
6
  Tested up to: 5.7
7
  Requires PHP: 7.0.0
8
- Stable tag: 7.2.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -302,6 +302,14 @@ Simply add “/plugins/wpvr” to the exclusion field (or use the location where
302
 
303
  == Changelog ==
304
 
 
 
 
 
 
 
 
 
305
  = 7.2.6 (22-03-2021) =
306
  * Tweak: Rollback versions updated
307
  * Fix: Dummy notice removed
5
  Requires at least: 5.0
6
  Tested up to: 5.7
7
  Requires PHP: 7.0.0
8
+ Stable tag: 7.2.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
302
 
303
  == Changelog ==
304
 
305
+ = 7.2.7 (12-04-2021) =
306
+ * Tweak: Rollback versions updated.
307
+ * Tweak: Video tab warning pop-up redesigned.
308
+ * New: Preview Image Text is made dynamic.
309
+ * New: On the Hotspots tab, the active Scene ID will be mentioned.
310
+ * Fix: Elementor Widget Issue.
311
+ * Fix: Preview Image Test font mismatch.
312
+
313
  = 7.2.6 (22-03-2021) =
314
  * Tweak: Rollback versions updated
315
  * Fix: Dummy notice removed
admin/class-wpvr-admin-pages.php CHANGED
@@ -30,11 +30,9 @@ class Wpvr_Admin_Pages {
30
  }
31
 
32
  function wpvr_admin_doc() {
33
-
34
  require_once plugin_dir_path(__FILE__) . '/partials/wpvr_documentation.php';
35
  }
36
  function wpvr_pro_admin_doc() {
37
-
38
  require_once plugin_dir_path(__FILE__) . '/partials/wpvr_license.php';
39
  }
40
  }
30
  }
31
 
32
  function wpvr_admin_doc() {
 
33
  require_once plugin_dir_path(__FILE__) . '/partials/wpvr_documentation.php';
34
  }
35
  function wpvr_pro_admin_doc() {
 
36
  require_once plugin_dir_path(__FILE__) . '/partials/wpvr_license.php';
37
  }
38
  }
admin/class-wpvr-admin.php CHANGED
@@ -376,6 +376,10 @@ class Wpvr_Admin
376
  if (isset($postdata['preview'])) {
377
  $preview = $postdata['preview'];
378
  }
 
 
 
 
379
 
380
  $autorotation = '';
381
  if (isset($postdata["autoRotate"])) {
@@ -552,6 +556,19 @@ class Wpvr_Admin
552
  }
553
  //===preview image end===//
554
 
 
 
 
 
 
 
 
 
 
 
 
 
 
555
  //=Autoload setup=//
556
  if ($autoload == true) {
557
  $html .= '<div class="single-settings autoload">';
@@ -584,6 +601,8 @@ class Wpvr_Admin
584
  }
585
  //=Autoload setup End=//
586
 
 
 
587
  //=Control Setup=
588
  if ($control == false) {
589
  $html .= '<div class="single-settings controls">';
@@ -1130,7 +1149,7 @@ class Wpvr_Admin
1130
  $html .= '<div data-repeater-list="scene-list" class="rex-pano-tab-content">';
1131
 
1132
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab" data-title="0" id="scene-0">';
1133
-
1134
  $html .= '<div class="scene-content">';
1135
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1136
 
@@ -1252,7 +1271,7 @@ class Wpvr_Admin
1252
 
1253
 
1254
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab active" data-title="1" id="scene-1">';
1255
-
1256
  $html .= '<div class="scene-content">';
1257
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1258
 
@@ -1396,7 +1415,7 @@ class Wpvr_Admin
1396
 
1397
  //===Default empty repeater declared by nazmus sakib===//
1398
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab" data-title="0" id="scene-0">';
1399
-
1400
  $html .= '<div class="scene-content">';
1401
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1402
 
@@ -1537,7 +1556,7 @@ class Wpvr_Admin
1537
  $firstvalueset = reset($pano_data["scene-list"]);
1538
  if ($pano_scenes['scene-id'] == $firstvalueset['scene-id']) {
1539
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab active" data-title="1" id="scene-'.$s.'">';
1540
-
1541
  $html .= '<div class="scene-content">';
1542
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1543
 
@@ -1928,7 +1947,7 @@ class Wpvr_Admin
1928
  $html .= '</div>';
1929
  } else {
1930
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab" data-title="1" id="scene-'.$s.'">';
1931
-
1932
  $html .= '<div class="scene-content">';
1933
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1934
 
376
  if (isset($postdata['preview'])) {
377
  $preview = $postdata['preview'];
378
  }
379
+ $previewtext = '';
380
+ if (isset($postdata['previewtext'])) {
381
+ $previewtext = $postdata['previewtext'];
382
+ }
383
 
384
  $autorotation = '';
385
  if (isset($postdata["autoRotate"])) {
556
  }
557
  //===preview image end===//
558
 
559
+ //=Message on Tour Preview Image=//
560
+ if(!empty($previewtext)){
561
+ $html .= '<div class="single-settings preview-img-message">';
562
+ $html .= '<span>'.__('Preview Image Message: ', 'wpvr').'</span>';
563
+ $html .= '<input class="previewtext" type="text" name="previewtext" value="'.$previewtext.'"/>';
564
+ $html .= '</div>';
565
+ }else{
566
+ $html .= '<div class="single-settings preview-img-message">';
567
+ $html .= '<span>'.__('Preview Image Message: ', 'wpvr').'</span>';
568
+ $html .= '<input class="previewtext" type="text" name="previewtext" value="Click To Load Panorama"/>';
569
+ $html .= '</div>';
570
+ }
571
+
572
  //=Autoload setup=//
573
  if ($autoload == true) {
574
  $html .= '<div class="single-settings autoload">';
601
  }
602
  //=Autoload setup End=//
603
 
604
+
605
+
606
  //=Control Setup=
607
  if ($control == false) {
608
  $html .= '<div class="single-settings controls">';
1149
  $html .= '<div data-repeater-list="scene-list" class="rex-pano-tab-content">';
1150
 
1151
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab" data-title="0" id="scene-0">';
1152
+ $html .= '<div class="active_scene_id"><p></p></div>';
1153
  $html .= '<div class="scene-content">';
1154
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1155
 
1271
 
1272
 
1273
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab active" data-title="1" id="scene-1">';
1274
+ $html .= '<div class="active_scene_id"><p></p></div>';
1275
  $html .= '<div class="scene-content">';
1276
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1277
 
1415
 
1416
  //===Default empty repeater declared by nazmus sakib===//
1417
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab" data-title="0" id="scene-0">';
1418
+ $html .= '<div class="active_scene_id"><p></p></div>';
1419
  $html .= '<div class="scene-content">';
1420
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1421
 
1556
  $firstvalueset = reset($pano_data["scene-list"]);
1557
  if ($pano_scenes['scene-id'] == $firstvalueset['scene-id']) {
1558
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab active" data-title="1" id="scene-'.$s.'">';
1559
+ $html .= '<div class="active_scene_id"><p></p></div>';
1560
  $html .= '<div class="scene-content">';
1561
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1562
 
1947
  $html .= '</div>';
1948
  } else {
1949
  $html .= '<div data-repeater-item class="single-scene rex-pano-tab" data-title="1" id="scene-'.$s.'">';
1950
+ $html .= '<div class="active_scene_id"><p></p></div>';
1951
  $html .= '<div class="scene-content">';
1952
  $html .= '<h6 class="title"><i class="fa fa-cog"></i> Scene Setting </h6>';
1953
 
admin/class-wpvr-ajax.php CHANGED
@@ -80,7 +80,6 @@ class Wpvr_Ajax {
80
 
81
  $default_scene = '';
82
  $default_scene = sanitize_text_field($_POST['defaultscene']);
83
-
84
  $preview = '';
85
  $preview = esc_url($_POST['preview']);
86
 
@@ -94,6 +93,14 @@ class Wpvr_Ajax {
94
  $autorotationstopdelay = '';
95
  $autorotationstopdelay = sanitize_text_field($_POST['autorotationstopdelay']);
96
 
 
 
 
 
 
 
 
 
97
  if (!empty($autorotationinactivedelay) && !empty($autorotationstopdelay)) {
98
  wp_send_json_error('<p><span>Warning:</span> You can not apply both autorotation pause or stop delay. Please choose either autorotation inactive delay or autorotation stop delay</p>');
99
  die();
@@ -338,16 +345,16 @@ class Wpvr_Ajax {
338
  }
339
 
340
  $default_data = array();
341
- $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration);
 
 
 
 
342
  $scene_data = array();
343
-
344
  foreach ($panodata["scene-list"] as $panoscenes) {
345
-
346
  if (!empty($panoscenes['scene-id'])) {
347
-
348
  $scene_ititle = '';
349
  $scene_ititle = sanitize_text_field($panoscenes["scene-ititle"]);
350
-
351
  $scene_author = '';
352
  $scene_author = sanitize_text_field($panoscenes["scene-author"]);
353
 
@@ -495,11 +502,11 @@ class Wpvr_Ajax {
495
  unset($scene_info['minYaw']);
496
  }
497
 
498
- if ($panoscenes["czscene"] == "off") {
499
- unset($scene_info['hfov']);
500
- unset($scene_info['maxHfov']);
501
- unset($scene_info['minHfov']);
502
- }
503
 
504
  $scene_array = array();
505
  $scene_array = array(
@@ -509,11 +516,11 @@ class Wpvr_Ajax {
509
  }
510
 
511
  }
512
-
513
  $pano_id_array = array();
514
  $pano_id_array = array("panoid"=>$panoid);
515
  $pano_response = array();
516
- $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,"disableKeyboardCtrl"=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
517
 
518
  if ($rotation == 'off') {
519
  unset($pano_response['autoRotate']);
@@ -531,6 +538,12 @@ class Wpvr_Ajax {
531
  if (empty($autorotationstopdelay)) {
532
  unset($pano_response['autoRotateStopDelay']);
533
  }
 
 
 
 
 
 
534
  $response = array();
535
  $response = array($pano_id_array,$pano_response);
536
 
@@ -663,12 +676,26 @@ class Wpvr_Ajax {
663
 
664
  $panoid ='';
665
  $postid = sanitize_text_field($_POST['postid']);
 
 
 
 
 
666
  $post_type = get_post_type( $postid );
667
  if ($post_type != 'wpvr_item') {
668
  die();
669
  }
670
  $panoid = 'pano'.$postid;
671
 
 
 
 
 
 
 
 
 
 
672
  $streetview = $_POST['streetview'];
673
  if ($streetview == 'on') {
674
  $streetviewurl = esc_url_raw($_POST['streetviewurl']);
@@ -1237,7 +1264,7 @@ class Wpvr_Ajax {
1237
  //===audio===//
1238
 
1239
  $pano_array = array();
1240
- $pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "vrgallery_title" )=>$vrgallery_title,__( "vrgallery_display" )=>$vrgallery_display,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "deviceorientationcontrol" )=>$deviceorientationcontrol,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "draggable" )=>$draggable,__( "diskeyboard" )=>$diskeyboard,__( "keyboardzoom" )=>$keyboardzoom,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "bg_music" )=>$bg_music,__( "bg_music_url" )=>$bg_music_url,__( "autoplay_bg_music" )=>$autoplay_bg_music,__( "loop_bg_music" )=>$loop_bg_music,__( "panodata" )=>$panodata);
1241
 
1242
  if ($rotation == 'off') {
1243
  unset($pano_array['autoRotate']);
@@ -1258,7 +1285,6 @@ class Wpvr_Ajax {
1258
  if (empty($autorotationstopdelay)) {
1259
  unset($pano_array['autoRotateStopDelay']);
1260
  }
1261
-
1262
  update_post_meta( $postid, 'panodata', $pano_array );
1263
  die();
1264
  }
80
 
81
  $default_scene = '';
82
  $default_scene = sanitize_text_field($_POST['defaultscene']);
 
83
  $preview = '';
84
  $preview = esc_url($_POST['preview']);
85
 
93
  $autorotationstopdelay = '';
94
  $autorotationstopdelay = sanitize_text_field($_POST['autorotationstopdelay']);
95
 
96
+ $default_global_zoom = '';
97
+ $max_global_zoom = '';
98
+ $min_global_zoom = '';
99
+ if(isset($_POST['gzoom']) == 'on'){
100
+ $default_global_zoom = $_POST['dzoom'];
101
+ $max_global_zoom = $_POST['maxzoom'];
102
+ $min_global_zoom = $_POST['minzoom'];
103
+ }
104
  if (!empty($autorotationinactivedelay) && !empty($autorotationstopdelay)) {
105
  wp_send_json_error('<p><span>Warning:</span> You can not apply both autorotation pause or stop delay. Please choose either autorotation inactive delay or autorotation stop delay</p>');
106
  die();
345
  }
346
 
347
  $default_data = array();
348
+ if($_POST['gzoom'] == 'on'){
349
+ $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration,"hfov"=>$default_global_zoom,"maxHfov"=>$max_global_zoom,"minHfov"=>$min_global_zoom);
350
+ }else{
351
+ $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration);
352
+ }
353
  $scene_data = array();
 
354
  foreach ($panodata["scene-list"] as $panoscenes) {
 
355
  if (!empty($panoscenes['scene-id'])) {
 
356
  $scene_ititle = '';
357
  $scene_ititle = sanitize_text_field($panoscenes["scene-ititle"]);
 
358
  $scene_author = '';
359
  $scene_author = sanitize_text_field($panoscenes["scene-author"]);
360
 
502
  unset($scene_info['minYaw']);
503
  }
504
 
505
+ // if ($panoscenes["czscene"] == "off") {
506
+ // unset($scene_info['hfov']);
507
+ // unset($scene_info['maxHfov']);
508
+ // unset($scene_info['minHfov']);
509
+ // }
510
 
511
  $scene_array = array();
512
  $scene_array = array(
516
  }
517
 
518
  }
519
+
520
  $pano_id_array = array();
521
  $pano_id_array = array("panoid"=>$panoid);
522
  $pano_response = array();
523
+ $pano_response = array("autoLoad"=>$autoload,"defaultZoom"=>$default_global_zoom,"minZoom"=>$min_global_zoom,"maxZoom"=>$max_global_zoom,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,"disableKeyboardCtrl"=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
524
 
525
  if ($rotation == 'off') {
526
  unset($pano_response['autoRotate']);
538
  if (empty($autorotationstopdelay)) {
539
  unset($pano_response['autoRotateStopDelay']);
540
  }
541
+
542
+ // if($_POST['gzoom'] == 'off' ){
543
+ // unset($pano_response['defaultZoom']);
544
+ // unset($pano_response['minZoom']);
545
+ // unset($pano_response['maxZoom']);
546
+ // }
547
  $response = array();
548
  $response = array($pano_id_array,$pano_response);
549
 
676
 
677
  $panoid ='';
678
  $postid = sanitize_text_field($_POST['postid']);
679
+ $prevtext = sanitize_text_field($_POST['previewtext']);
680
+ $previewtext = '';
681
+ if(strlen($prevtext) <= 50 ){
682
+ $previewtext = $prevtext;
683
+ }
684
  $post_type = get_post_type( $postid );
685
  if ($post_type != 'wpvr_item') {
686
  die();
687
  }
688
  $panoid = 'pano'.$postid;
689
 
690
+ $default_global_zoom = '';
691
+ $max_global_zoom = '';
692
+ $min_global_zoom = '';
693
+ if(isset($_POST['gzoom']) == 'on'){
694
+ $default_global_zoom = $_POST['dzoom'];
695
+ $max_global_zoom = $_POST['maxzoom'];
696
+ $min_global_zoom = $_POST['minzoom'];
697
+ }
698
+
699
  $streetview = $_POST['streetview'];
700
  if ($streetview == 'on') {
701
  $streetviewurl = esc_url_raw($_POST['streetviewurl']);
1264
  //===audio===//
1265
 
1266
  $pano_array = array();
1267
+ $pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__("hfov")=>$default_global_zoom,__("maxHfov")=>$max_global_zoom,__("minHfov")=>$min_global_zoom,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "vrgallery_title" )=>$vrgallery_title,__( "vrgallery_display" )=>$vrgallery_display,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "deviceorientationcontrol" )=>$deviceorientationcontrol,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "draggable" )=>$draggable,__( "diskeyboard" )=>$diskeyboard,__( "keyboardzoom" )=>$keyboardzoom,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "bg_music" )=>$bg_music,__( "bg_music_url" )=>$bg_music_url,__( "autoplay_bg_music" )=>$autoplay_bg_music,__( "loop_bg_music" )=>$loop_bg_music,__( "panodata" )=>$panodata,__("previewtext")=>$previewtext);
1268
 
1269
  if ($rotation == 'off') {
1270
  unset($pano_array['autoRotate']);
1285
  if (empty($autorotationstopdelay)) {
1286
  unset($pano_array['autoRotateStopDelay']);
1287
  }
 
1288
  update_post_meta( $postid, 'panodata', $pano_array );
1289
  die();
1290
  }
admin/css/wpvr-admin.css CHANGED
@@ -1095,10 +1095,10 @@ div.custom-tooltip:hover span:after {
1095
  justify-content: space-between;
1096
  }
1097
 
1098
-
1099
- /* .rex-pano-tab-content .general .inner-nav-content .single-settings:not(.preview-setting):last-child {
1100
- margin-bottom: 0;
1101
- } */
1102
 
1103
  .rex-pano-tab-content .general .inner-nav-content .single-settings .wpvr-switcher {
1104
  min-width: auto;
@@ -1284,19 +1284,17 @@ div.custom-tooltip:hover span:after {
1284
  .rex-pano-tab-content .general .inner-nav-content .single-settings.audio-setting .audio-upload:focus {
1285
  outline: none;
1286
  }
1287
-
1288
-
1289
  /* -----------logo upload style-------- */
1290
 
1291
 
1292
  /*----company-info style-----*/
1293
-
1294
  .rex-pano-tab-content .general .inner-nav-content .company-info-wrapper {
1295
  width: 100%;
1296
  padding: 25px 20px;
1297
  border-radius: 5px;
1298
  background-color: #ffffff;
1299
  margin-top: -18px;
 
1300
  }
1301
 
1302
  .rex-pano-tab-content .general .inner-nav-content .company-info-wrapper .single-settings {
@@ -1385,6 +1383,14 @@ div.custom-tooltip:hover span:after {
1385
  }
1386
 
1387
 
 
 
 
 
 
 
 
 
1388
  /* --------------end general inner tab style--------------- */
1389
 
1390
  .rex-pano-tab-content .general .inner-nav-content .wpvr-pro {
@@ -3551,7 +3557,7 @@ button.delete-hotspot {
3551
  padding: 15px;
3552
  width: calc(100% - 160px);
3553
  height: 100%;
3554
- background: rgba(51, 51, 51, 0.2);
3555
  z-index: 999;
3556
  display: none;
3557
  flex-flow: row wrap;
@@ -3576,25 +3582,12 @@ button.delete-hotspot {
3576
  }
3577
 
3578
  .wpvr-delete-alert-wrapper .icon {
3579
- width: 50px;
3580
- height: 50px;
3581
- border: 2px solid #004EFA;
3582
  display: flex;
3583
  align-items: center;
3584
  justify-content: center;
3585
- margin: 0 auto 20px;
3586
  border-radius: 100%;
3587
  }
3588
 
3589
- .wpvr-delete-alert-wrapper .icon svg {
3590
- width: 18px;
3591
- height: 18px;
3592
- }
3593
-
3594
- .wpvr-delete-alert-wrapper .icon svg path {
3595
- stroke: #004EFA;
3596
- }
3597
-
3598
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn {
3599
  display: flex;
3600
  flex-flow: row;
@@ -3609,10 +3602,15 @@ button.delete-hotspot {
3609
 
3610
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn .btn-default {
3611
  height: 41px;
3612
- line-height: 42px;
3613
  padding: 0 20px;
3614
  min-width: 110px;
3615
  border-radius: 5px;
 
 
 
 
 
3616
  }
3617
 
3618
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn .btn-default.yes {
@@ -3621,7 +3619,7 @@ button.delete-hotspot {
3621
  }
3622
 
3623
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn .btn-default.yes:hover {
3624
- background-color: #004EFA;
3625
  cursor: pointer;
3626
  }
3627
 
1095
  justify-content: space-between;
1096
  }
1097
 
1098
+ .rex-pano-tab-content .general .inner-nav-content .single-settings.preview-img-message input {
1099
+ padding: 2px 7px;
1100
+ height: 33px;
1101
+ }
1102
 
1103
  .rex-pano-tab-content .general .inner-nav-content .single-settings .wpvr-switcher {
1104
  min-width: auto;
1284
  .rex-pano-tab-content .general .inner-nav-content .single-settings.audio-setting .audio-upload:focus {
1285
  outline: none;
1286
  }
 
 
1287
  /* -----------logo upload style-------- */
1288
 
1289
 
1290
  /*----company-info style-----*/
 
1291
  .rex-pano-tab-content .general .inner-nav-content .company-info-wrapper {
1292
  width: 100%;
1293
  padding: 25px 20px;
1294
  border-radius: 5px;
1295
  background-color: #ffffff;
1296
  margin-top: -18px;
1297
+ margin-bottom: 20px;
1298
  }
1299
 
1300
  .rex-pano-tab-content .general .inner-nav-content .company-info-wrapper .single-settings {
1383
  }
1384
 
1385
 
1386
+ /* --------Zoom Preferences-------- */
1387
+ .rex-pano-tab-content .general .inner-nav-content .single-settings.czscenedata input {
1388
+ width: 70px;
1389
+ padding: 2px 7px;
1390
+ height: 33px;
1391
+ margin-left: auto;
1392
+ }
1393
+
1394
  /* --------------end general inner tab style--------------- */
1395
 
1396
  .rex-pano-tab-content .general .inner-nav-content .wpvr-pro {
3557
  padding: 15px;
3558
  width: calc(100% - 160px);
3559
  height: 100%;
3560
+ background: rgba(51, 51, 51, 0.4);
3561
  z-index: 999;
3562
  display: none;
3563
  flex-flow: row wrap;
3582
  }
3583
 
3584
  .wpvr-delete-alert-wrapper .icon {
 
 
 
3585
  display: flex;
3586
  align-items: center;
3587
  justify-content: center;
 
3588
  border-radius: 100%;
3589
  }
3590
 
 
 
 
 
 
 
 
 
 
3591
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn {
3592
  display: flex;
3593
  flex-flow: row;
3602
 
3603
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn .btn-default {
3604
  height: 41px;
3605
+ line-height: 40px;
3606
  padding: 0 20px;
3607
  min-width: 110px;
3608
  border-radius: 5px;
3609
+ border: none;
3610
+ outline: none;
3611
+ font-size: 16px;
3612
+ font-weight: 500;
3613
+ transition: all 0.3s ease;
3614
  }
3615
 
3616
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn .btn-default.yes {
3619
  }
3620
 
3621
  .wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn .btn-default.yes:hover {
3622
+ background-color: #0c4ee0;
3623
  cursor: pointer;
3624
  }
3625
 
admin/js/wpvr-admin.js CHANGED
@@ -2,7 +2,7 @@
2
  'use strict';
3
  var j = 1;
4
  var color = '#00b4ff';
5
-
6
  /**
7
  * All of the code for your admin-facing JavaScript source
8
  * should reside in this file.
@@ -67,8 +67,7 @@
67
  });
68
 
69
  jQuery(document).ready(function($) {
70
-
71
-
72
  j = $('#scene-1').find('.hotspot-nav li').eq(-2).find('span').attr('data-index');
73
  var ajaxurl = wpvr_obj.ajaxurl;
74
  $('#panolenspreview').on('click', function(e) {
@@ -89,6 +88,9 @@
89
 
90
  var panodata = $('.scene-setup').repeaterVal();
91
  var panolist = JSON.stringify(panodata);
 
 
 
92
  jQuery.ajax({
93
  type: "POST",
94
  url: ajaxurl,
@@ -104,13 +106,13 @@
104
  autorotation: autorotation,
105
  autorotationinactivedelay: autorotationinactivedelay,
106
  autorotationstopdelay: autorotationstopdelay,
107
-
108
  preview: preview,
109
  scenefadeduration: scenefadeduration,
110
  },
111
-
112
  success: function(response) {
113
  $('.wpvr-loading').hide();
 
114
  if (response.success == true) {
115
  $('#error_occured').hide();
116
  $('#error_occuredpub').hide();
@@ -176,6 +178,10 @@
176
  $('html, body').animate({
177
  scrollTop: $("#wpvr_item_builder__box").offset().top
178
  }, 500);
 
 
 
 
179
  } else {
180
  $('#error_occured').show();
181
  $('#error_occured').html(response.data);
@@ -186,12 +192,14 @@
186
  scrollTop: $("#error_occured").offset().top
187
  }, 500);
188
  }
 
189
  }
190
  });
191
  });
192
  });
193
 
194
- jQuery(document).ready(function($) {
 
195
  var ajaxurl = wpvr_obj.ajaxurl;
196
  $('#videopreview').on('click', function(e) {
197
  e.preventDefault();
@@ -233,7 +241,7 @@
233
  });
234
 
235
  jQuery(document).ready(function($) {
236
-
237
  var flag_ok = false;
238
  $('#publish').on('click', function(e) {
239
  var x = $(this).val();
@@ -254,7 +262,7 @@
254
  var autorotationstopdelay = $("input[name='auto-rotation-stop-delay']").val();
255
 
256
  var scenefadeduration = $("input[name='scene-fade-duration']").val();
257
-
258
  if ($('.scene-setup')[0]) {
259
  var panodata = $('.scene-setup').repeaterVal();
260
  var panolist = JSON.stringify(panodata);
@@ -283,6 +291,7 @@
283
  autorotationinactivedelay: autorotationinactivedelay,
284
  autorotationstopdelay: autorotationstopdelay,
285
  scenefadeduration: scenefadeduration,
 
286
  },
287
 
288
  success: function(response) {
@@ -317,6 +326,12 @@
317
  e.stopPropagation();
318
  });
319
  });
 
 
 
 
 
 
320
 
321
  jQuery(document).ready(function($) {
322
 
@@ -551,6 +566,7 @@
551
  j = parseInt(j);
552
  j = j + 1;
553
  var parent_scene = $(this).parent().parent().parent('.single-scene.active').attr('id');
 
554
  var hotspot = parent_scene + '-hotspot-' + j;
555
 
556
  var replace_string = parent_scene.replace("scene-", "");
@@ -881,9 +897,21 @@
881
 
882
  $(document).on("click", ".rex-pano-nav-menu.main-nav ul li span", function() {
883
  var screen = $(this).parent().attr('data-screen');
884
- console.log($('#wpvr_active_tab').val(screen));
885
  $('#wpvr_active_tab').val(screen);
886
-
 
 
 
 
 
 
 
 
 
 
 
 
 
887
  $([$(this).parent()[0], $($(this).data('href'))[0]]).addClass('active').siblings('.active').removeClass('active');
888
  });
889
 
@@ -1181,6 +1209,7 @@
1181
 
1182
  //------general tab's inner tab-------
1183
  jQuery(document).ready(function($) {
 
1184
  $('.general-inner-tab .inner-nav li span').on('click', function() {
1185
  var this_id = $(this).attr('data-href');
1186
  $(this_id).show();
@@ -1236,7 +1265,7 @@
1236
  return false;
1237
  });
1238
 
1239
-
1240
  });
1241
 
1242
 
@@ -1245,7 +1274,7 @@
1245
 
1246
  //------active tab scripts-------
1247
  jQuery(document).ready(function($) {
1248
-
1249
  function getUrlVars() {
1250
  var vars = [],
1251
  hash;
@@ -1353,6 +1382,8 @@
1353
  }
1354
  }
1355
  }
 
 
1356
  });
1357
 
1358
 
2
  'use strict';
3
  var j = 1;
4
  var color = '#00b4ff';
5
+ var scene_parent = '';
6
  /**
7
  * All of the code for your admin-facing JavaScript source
8
  * should reside in this file.
67
  });
68
 
69
  jQuery(document).ready(function($) {
70
+
 
71
  j = $('#scene-1').find('.hotspot-nav li').eq(-2).find('span').attr('data-index');
72
  var ajaxurl = wpvr_obj.ajaxurl;
73
  $('#panolenspreview').on('click', function(e) {
88
 
89
  var panodata = $('.scene-setup').repeaterVal();
90
  var panolist = JSON.stringify(panodata);
91
+ var previewtext = $('.previewtext').val();
92
+
93
+
94
  jQuery.ajax({
95
  type: "POST",
96
  url: ajaxurl,
106
  autorotation: autorotation,
107
  autorotationinactivedelay: autorotationinactivedelay,
108
  autorotationstopdelay: autorotationstopdelay,
 
109
  preview: preview,
110
  scenefadeduration: scenefadeduration,
111
  },
112
+
113
  success: function(response) {
114
  $('.wpvr-loading').hide();
115
+
116
  if (response.success == true) {
117
  $('#error_occured').hide();
118
  $('#error_occuredpub').hide();
178
  $('html, body').animate({
179
  scrollTop: $("#wpvr_item_builder__box").offset().top
180
  }, 500);
181
+ //set preview text
182
+ if("" != previewtext){
183
+ $('.pnlm-load-button p').text(previewtext);
184
+ }
185
  } else {
186
  $('#error_occured').show();
187
  $('#error_occured').html(response.data);
192
  scrollTop: $("#error_occured").offset().top
193
  }, 500);
194
  }
195
+
196
  }
197
  });
198
  });
199
  });
200
 
201
+ jQuery(document).ready(function($){
202
+
203
  var ajaxurl = wpvr_obj.ajaxurl;
204
  $('#videopreview').on('click', function(e) {
205
  e.preventDefault();
241
  });
242
 
243
  jQuery(document).ready(function($) {
244
+
245
  var flag_ok = false;
246
  $('#publish').on('click', function(e) {
247
  var x = $(this).val();
262
  var autorotationstopdelay = $("input[name='auto-rotation-stop-delay']").val();
263
 
264
  var scenefadeduration = $("input[name='scene-fade-duration']").val();
265
+ var previewtext = $('.previewtext').val();
266
  if ($('.scene-setup')[0]) {
267
  var panodata = $('.scene-setup').repeaterVal();
268
  var panolist = JSON.stringify(panodata);
291
  autorotationinactivedelay: autorotationinactivedelay,
292
  autorotationstopdelay: autorotationstopdelay,
293
  scenefadeduration: scenefadeduration,
294
+ previewtext:previewtext,
295
  },
296
 
297
  success: function(response) {
326
  e.stopPropagation();
327
  });
328
  });
329
+ jQuery(document).ready(function($) {
330
+ var previewtext = $('.previewtext').val();
331
+ if( "" != previewtext){
332
+ $('.pnlm-load-button p').text(previewtext);
333
+ }
334
+ });
335
 
336
  jQuery(document).ready(function($) {
337
 
566
  j = parseInt(j);
567
  j = j + 1;
568
  var parent_scene = $(this).parent().parent().parent('.single-scene.active').attr('id');
569
+ scene_parent = parent_scene;
570
  var hotspot = parent_scene + '-hotspot-' + j;
571
 
572
  var replace_string = parent_scene.replace("scene-", "");
897
 
898
  $(document).on("click", ".rex-pano-nav-menu.main-nav ul li span", function() {
899
  var screen = $(this).parent().attr('data-screen');
 
900
  $('#wpvr_active_tab').val(screen);
901
+ if('hotspot' == screen){
902
+ $('.active_scene_id').show();
903
+ var id = $('.single-scene.active').attr('id');
904
+ $('.active_scene_id p').text("Adding Hotspots on Scene: ");
905
+ var scenceID = $('#'+id+' .sceneid' ).val();
906
+ var span = '<span>('+scenceID+')</span>'
907
+ $('.active_scene_id p').append(span);
908
+ $('.active_scene_id').css({"background-color":"#E0E1F7","width":"100%","height": "48px","padding":"1px","text-align":"center"});
909
+ $('.active_scene_id p').css({"color":"black","font-size":"15px"});
910
+ $('.active_scene_id p span').css({"color":"#004efa","font-size":"15px"});
911
+
912
+ }else{
913
+ $('.active_scene_id').hide();
914
+ }
915
  $([$(this).parent()[0], $($(this).data('href'))[0]]).addClass('active').siblings('.active').removeClass('active');
916
  });
917
 
1209
 
1210
  //------general tab's inner tab-------
1211
  jQuery(document).ready(function($) {
1212
+
1213
  $('.general-inner-tab .inner-nav li span').on('click', function() {
1214
  var this_id = $(this).attr('data-href');
1215
  $(this_id).show();
1265
  return false;
1266
  });
1267
 
1268
+
1269
  });
1270
 
1271
 
1274
 
1275
  //------active tab scripts-------
1276
  jQuery(document).ready(function($) {
1277
+
1278
  function getUrlVars() {
1279
  var vars = [],
1280
  hash;
1382
  }
1383
  }
1384
  }
1385
+
1386
+
1387
  });
1388
 
1389
 
admin/partials/wpvr-meta-box-builder-display.php CHANGED
@@ -179,6 +179,21 @@ if (isset($postdata['scenefadeduration'])) {
179
  $scene_fade_duration = $postdata['scenefadeduration'];
180
  }
181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  $panodata = '';
183
  if (isset($postdata['panodata'])) {
184
  $panodata = $postdata['panodata'];
@@ -186,7 +201,12 @@ if (isset($postdata['panodata'])) {
186
 
187
 
188
  $default_data = array();
189
- $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration);
 
 
 
 
 
190
  $scene_data = array();
191
 
192
  if (!empty($panodata)) {
@@ -253,39 +273,37 @@ if (isset($postdata['panodata'])) {
253
 
254
 
255
  $default_zoom = 100;
256
- if (isset($panoscenes["scene-zoom"])) {
257
- $default_zoom = $panoscenes["scene-zoom"];
 
 
 
 
 
 
258
  }
259
 
260
- if (!empty($default_zoom)) {
261
- $default_zoom = (int)$default_zoom;
262
- }
263
- else {
264
- $default_zoom = 100;
265
- }
266
 
267
  $max_zoom = 120;
268
- if (isset($panoscenes["scene-maxzoom"])) {
269
- $max_zoom = $panoscenes["scene-maxzoom"];
 
 
 
 
270
  }
271
 
272
- if (!empty($max_zoom)) {
273
- $max_zoom = (int)$max_zoom;
274
- }
275
- else {
276
- $max_zoom = 120;
277
- }
278
 
 
 
279
  $min_zoom = 50;
280
- if (isset($panoscenes["scene-minzoom"])) {
281
- $min_zoom = $panoscenes["scene-minzoom"];
282
- }
283
-
284
- if (!empty($min_zoom)) {
285
- $min_zoom = (int)$min_zoom;
286
- }
287
- else {
288
- $min_zoom = 50;
289
  }
290
 
291
  $hotspot_datas = array();
@@ -334,8 +352,9 @@ if (isset($postdata['panodata'])) {
334
  }
335
 
336
  $scene_info = array();
 
337
  $scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$panoscenes["scene-attachment-url"],"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, "hotSpots"=>$hotspots);
338
-
339
  if (isset($panoscenes["ptyscene"])) {
340
  if ($panoscenes["ptyscene"] == "off") {
341
  unset($scene_info['pitch']);
@@ -391,13 +410,13 @@ if (isset($postdata['panodata'])) {
391
  unset($scene_info['minYaw']);
392
  }
393
 
394
- if (isset($panoscenes["czscene"])) {
395
- if ($panoscenes["czscene"] == "off") {
396
- unset($scene_info['hfov']);
397
- unset($scene_info['maxHfov']);
398
- unset($scene_info['minHfov']);
399
- }
400
- }
401
 
402
  $scene_array = array();
403
  $scene_array = array(
@@ -412,7 +431,7 @@ if (isset($postdata['panodata'])) {
412
  $pano_id_array = array("panoid"=>$panoid);
413
  $pano_response = array();
414
  $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
415
-
416
  if (empty($autorotation)) {
417
  unset($pano_response['autoRotate']);
418
  unset($pano_response['autoRotateInactivityDelay']);
179
  $scene_fade_duration = $postdata['scenefadeduration'];
180
  }
181
 
182
+ $default_global_zoom = '';
183
+ if (isset($postdata['hfov'])) {
184
+ $default_global_zoom = $postdata['hfov'];
185
+ }
186
+
187
+ $max_global_zoom = '';
188
+ if (isset($postdata['maxHfov'])) {
189
+ $max_global_zoom = $postdata['maxHfov'];
190
+ }
191
+
192
+ $min_global_zoom = '';
193
+ if (isset($postdata['minHfov'])) {
194
+ $min_global_zoom = $postdata['minHfov'];
195
+ }
196
+
197
  $panodata = '';
198
  if (isset($postdata['panodata'])) {
199
  $panodata = $postdata['panodata'];
201
 
202
 
203
  $default_data = array();
204
+ if($default_global_zoom != '' && $max_global_zoom != '' && $min_global_zoom != ''){
205
+ $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration,"hfov"=>$default_global_zoom,"maxHfov"=>$max_global_zoom,"minHfov"=>$min_global_zoom);
206
+ }else{
207
+ $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration);
208
+ }
209
+
210
  $scene_data = array();
211
 
212
  if (!empty($panodata)) {
273
 
274
 
275
  $default_zoom = 100;
276
+ if (isset($panoscenes["scene-zoom"]) && $panoscenes["scene-zoom"] != '') {
277
+ $default_zoom = (int)$panoscenes["scene-zoom"];
278
+
279
+ }else{
280
+ if($default_global_zoom != ''){
281
+ $default_zoom = (int)$default_global_zoom;
282
+
283
+ }
284
  }
285
 
286
+
 
 
 
 
 
287
 
288
  $max_zoom = 120;
289
+ if (isset($panoscenes["scene-maxzoom"]) && $panoscenes["scene-maxzoom"] != '') {
290
+ $max_zoom = (int)$panoscenes["scene-maxzoom"];
291
+ }else{
292
+ if($max_global_zoom != ''){
293
+ $max_zoom = (int)$max_global_zoom;
294
+ }
295
  }
296
 
 
 
 
 
 
 
297
 
298
+
299
+
300
  $min_zoom = 50;
301
+ if (isset($panoscenes["scene-minzoom"]) && $panoscenes["scene-minzoom"] != '') {
302
+ $min_zoom = (int)$panoscenes["scene-minzoom"];
303
+ }else{
304
+ if($min_global_zoom != ''){
305
+ $min_zoom = (int)$min_global_zoom;
306
+ }
 
 
 
307
  }
308
 
309
  $hotspot_datas = array();
352
  }
353
 
354
  $scene_info = array();
355
+
356
  $scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$panoscenes["scene-attachment-url"],"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, "hotSpots"=>$hotspots);
357
+
358
  if (isset($panoscenes["ptyscene"])) {
359
  if ($panoscenes["ptyscene"] == "off") {
360
  unset($scene_info['pitch']);
410
  unset($scene_info['minYaw']);
411
  }
412
 
413
+ // if (isset($panoscenes["czscene"])) {
414
+ // if ($panoscenes["czscene"] == "off") {
415
+ // unset($scene_info['hfov']);
416
+ // unset($scene_info['maxHfov']);
417
+ // unset($scene_info['minHfov']);
418
+ // }
419
+ // }
420
 
421
  $scene_array = array();
422
  $scene_array = array(
431
  $pano_id_array = array("panoid"=>$panoid);
432
  $pano_response = array();
433
  $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
434
+
435
  if (empty($autorotation)) {
436
  unset($pano_response['autoRotate']);
437
  unset($pano_response['autoRotateInactivityDelay']);
admin/partials/wpvr_confirmation_alert.php CHANGED
@@ -1,16 +1,17 @@
1
  <div class="wpvr-delete-alert-wrapper">
2
  <div class="wpvr-delete-confirmation">
3
  <span class="icon">
4
- <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
5
- <path d="M11.1667 1.72266L1.72223 11.1671" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
- <path d="M1.72223 1.72266L11.1667 11.1671" stroke="#7A8B9A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
 
7
  </svg>
8
  </span>
9
  <h3><?php echo __('Turning On The Video Option Will Erase Your Virtual Tour Data. Are You Sure?', 'wpvr'); ?></h3>
10
  <ul class="wpvr-delete-confirm-btn">
11
  <li><button class="btn-default cancel"><?php echo __('Cancel', 'wpvr'); ?></button></li>
12
  <li>
13
- <button type="button" class="btn-default yes delete-checkout-field tcf_delete_row">
14
  <?php echo __('Yes', 'wpvr'); ?>
15
  </button>
16
  </li>
1
  <div class="wpvr-delete-alert-wrapper">
2
  <div class="wpvr-delete-confirmation">
3
  <span class="icon">
4
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-alert-triangle" width="54" height="54" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffa500" fill="none" stroke-linecap="round" stroke-linejoin="round">
5
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
6
+ <path d="M12 9v2m0 4v.01" />
7
+ <path d="M5 19h14a2 2 0 0 0 1.84 -2.75l-7.1 -12.25a2 2 0 0 0 -3.5 0l-7.1 12.25a2 2 0 0 0 1.75 2.75" />
8
  </svg>
9
  </span>
10
  <h3><?php echo __('Turning On The Video Option Will Erase Your Virtual Tour Data. Are You Sure?', 'wpvr'); ?></h3>
11
  <ul class="wpvr-delete-confirm-btn">
12
  <li><button class="btn-default cancel"><?php echo __('Cancel', 'wpvr'); ?></button></li>
13
  <li>
14
+ <button type="button" class="btn-default yes">
15
  <?php echo __('Yes', 'wpvr'); ?>
16
  </button>
17
  </li>
admin/partials/wpvr_documentation.php CHANGED
@@ -728,11 +728,11 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
728
  <form class="wpvr-version">
729
  <h6><?php _e('Select a Version to Rollback','wpvr'); ?></h6>
730
  <select name="wpvr_version">
731
- <option value="7.2.2">7.2.5</option>
732
- <option value="7.2.1">7.2.4</option>
733
- <option value="7.2.0">7.2.3</option>
734
- <option value="7.1.0">7.2.2</option>
735
- <option value="7.0.0">7.2.1</option>
736
  </select>
737
  <input class="wpvr-btn" type="submit" value="Rollback">
738
  </form>
728
  <form class="wpvr-version">
729
  <h6><?php _e('Select a Version to Rollback','wpvr'); ?></h6>
730
  <select name="wpvr_version">
731
+ <option value="7.2.6">7.2.6</option>
732
+ <option value="7.2.5">7.2.5</option>
733
+ <option value="7.2.4">7.2.4</option>
734
+ <option value="7.2.3">7.2.3</option>
735
+ <option value="7.2.2">7.2.2</option>
736
  </select>
737
  <input class="wpvr-btn" type="submit" value="Rollback">
738
  </form>
public/class-wpvr-public.php CHANGED
@@ -224,6 +224,8 @@ class Wpvr_Public
224
  $postdata = get_post_meta($id, 'panodata', true);
225
  $panoid = 'pano'.$id;
226
 
 
 
227
  if (isset($postdata['streetviewdata'])) {
228
  if (empty($width)) {
229
  $width = '600px';
@@ -240,6 +242,7 @@ class Wpvr_Public
240
  return $html;
241
  }
242
 
 
243
  if (isset($postdata['vidid'])) {
244
  if (empty($width)) {
245
  $width = '600px';
@@ -402,6 +405,21 @@ class Wpvr_Public
402
  $default_scene = $postdata['defaultscene'];
403
  }
404
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
405
  $preview = '';
406
  if (isset($postdata['preview'])) {
407
  $preview = $postdata['preview'];
@@ -432,7 +450,13 @@ class Wpvr_Public
432
  $hotspoticoncolor = '#00b4ff';
433
  $hotspotblink = 'on';
434
  $default_data = array();
 
 
 
435
  $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration);
 
 
 
436
  $scene_data = array();
437
 
438
  if (!empty($panodata["scene-list"])) {
@@ -502,37 +526,36 @@ class Wpvr_Public
502
  }
503
 
504
  $default_zoom = 100;
505
- if (isset($panoscenes["scene-zoom"])) {
506
  $default_zoom = $panoscenes["scene-zoom"];
 
 
 
 
507
  }
508
 
509
- if (!empty($default_zoom)) {
510
- $default_zoom = (int)$default_zoom;
511
- } else {
512
- $default_zoom = 100;
513
- }
514
 
515
  $max_zoom = 120;
516
- if (isset($panoscenes["scene-maxzoom"])) {
517
- $max_zoom = $panoscenes["scene-maxzoom"];
 
 
 
 
518
  }
519
 
520
- if (!empty($max_zoom)) {
521
- $max_zoom = (int)$max_zoom;
522
- } else {
523
- $max_zoom = 120;
524
- }
525
 
526
  $min_zoom = 50;
527
- if (isset($panoscenes["scene-minzoom"])) {
528
- $min_zoom = $panoscenes["scene-minzoom"];
 
 
 
 
529
  }
530
 
531
- if (!empty($min_zoom)) {
532
- $min_zoom = (int)$min_zoom;
533
- } else {
534
- $min_zoom = 50;
535
- }
536
  $hotspot_datas = array();
537
  if (isset($panoscenes["hotspot-list"])) {
538
  $hotspot_datas = $panoscenes["hotspot-list"];
@@ -631,6 +654,7 @@ class Wpvr_Public
631
  }
632
 
633
  $scene_info = array();
 
634
  $scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$device_scene,"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "authorURL"=>$scene_author_url, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, "hotSpots"=>$hotspots);
635
 
636
  if (isset($panoscenes["ptyscene"])) {
@@ -690,13 +714,13 @@ class Wpvr_Public
690
  unset($scene_info['minYaw']);
691
  }
692
 
693
- if (isset($panoscenes["czscene"])) {
694
- if ($panoscenes["czscene"] == "off") {
695
- unset($scene_info['hfov']);
696
- unset($scene_info['maxHfov']);
697
- unset($scene_info['minHfov']);
698
- }
699
- }
700
 
701
  $scene_array = array();
702
  $scene_array = array(
@@ -1043,9 +1067,7 @@ class Wpvr_Public
1043
  $html .= '}';
1044
  $html .= '}';
1045
  $html .= '}';
1046
-
1047
  $html .= 'var panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);';
1048
-
1049
  $html .= 'panoshow'.$id.'.on("load", function (){
1050
  setTimeout(() => {
1051
  window.dispatchEvent(new Event("resize"));
@@ -1165,34 +1187,64 @@ class Wpvr_Public
1165
  $sin_qout = "'";
1166
 
1167
  if ($vrgallery_display) {
1168
- $html .= '
1169
- jQuery(document).ready(function($){
1170
- jQuery("#sccontrols'.$id.'").show();
1171
- jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_down.$sin_qout.');
1172
- });
1173
- ';
1174
 
1175
- $html .= '
1176
- var slide'.$id.' = "down";
1177
- jQuery(document).on("click","#vrgcontrols'.$id.'",function() {
 
 
 
 
 
1178
 
1179
- if (slide'.$id.' == "up") {
1180
- jQuery(".vrgctrl'.$id.'").empty();
1181
- jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_down.$sin_qout.');
1182
- slide'.$id.' = "down";
1183
- }
1184
- else {
1185
- jQuery(".vrgctrl'.$id.'").empty();
1186
- jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1187
- slide'.$id.' = "up";
1188
- }
1189
- jQuery("#sccontrols'.$id.'").slideToggle();
1190
- });
1191
- ';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1192
  } else {
1193
  $html .= '
1194
  jQuery(document).ready(function($){
1195
- jQuery("#sccontrols'.$id.'").hide();
1196
  jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1197
  });
1198
  ';
@@ -1230,6 +1282,16 @@ class Wpvr_Public
1230
 
1231
  ';
1232
 
 
 
 
 
 
 
 
 
 
 
1233
  $html .= 'panoshow'.$id.'.on("load", function (){
1234
  jQuery("#controls'.$id.'").show();
1235
  jQuery("#zoom-in-out-controls'.$id.'").show();
@@ -1270,7 +1332,6 @@ class Wpvr_Public
1270
  }
1271
  });
1272
  ';
1273
-
1274
  $html .= '
1275
  jQuery(".geodir-tab-head dd, #vr-tour-tab").click(function(){
1276
  jQuery("#pano'.$id.'").children(".pnlm-render-container").remove();
@@ -1288,6 +1349,17 @@ class Wpvr_Public
1288
  }, 200);
1289
  });
1290
  ';
 
 
 
 
 
 
 
 
 
 
 
1291
 
1292
 
1293
  $html .= '});';
224
  $postdata = get_post_meta($id, 'panodata', true);
225
  $panoid = 'pano'.$id;
226
 
227
+
228
+
229
  if (isset($postdata['streetviewdata'])) {
230
  if (empty($width)) {
231
  $width = '600px';
242
  return $html;
243
  }
244
 
245
+
246
  if (isset($postdata['vidid'])) {
247
  if (empty($width)) {
248
  $width = '600px';
405
  $default_scene = $postdata['defaultscene'];
406
  }
407
 
408
+ $default_global_zoom = '';
409
+ if (isset($postdata['hfov'])) {
410
+ $default_global_zoom = $postdata['hfov'];
411
+ }
412
+
413
+ $max_global_zoom = '';
414
+ if (isset($postdata['maxHfov'])) {
415
+ $max_global_zoom = $postdata['maxHfov'];
416
+ }
417
+
418
+ $min_global_zoom = '';
419
+ if (isset($postdata['minHfov'])) {
420
+ $min_global_zoom = $postdata['minHfov'];
421
+ }
422
+
423
  $preview = '';
424
  if (isset($postdata['preview'])) {
425
  $preview = $postdata['preview'];
450
  $hotspoticoncolor = '#00b4ff';
451
  $hotspotblink = 'on';
452
  $default_data = array();
453
+ if($default_global_zoom != '' && $max_global_zoom != '' && $min_global_zoom != ''){
454
+ $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration,"hfov"=>$default_global_zoom,"maxHfov"=>$max_global_zoom,"minHfov"=>$min_global_zoom);
455
+ }else{
456
  $default_data = array("firstScene"=>$default_scene,"sceneFadeDuration"=>$scene_fade_duration);
457
+
458
+ }
459
+
460
  $scene_data = array();
461
 
462
  if (!empty($panodata["scene-list"])) {
526
  }
527
 
528
  $default_zoom = 100;
529
+ if ( isset($panoscenes["scene-zoom"]) && $panoscenes["scene-zoom"] != "") {
530
  $default_zoom = $panoscenes["scene-zoom"];
531
+ }else{
532
+ if( $default_global_zoom != ''){
533
+ $default_zoom = (int)$default_global_zoom;
534
+ }
535
  }
536
 
 
 
 
 
 
537
 
538
  $max_zoom = 120;
539
+ if (isset($panoscenes["scene-maxzoom"]) && $panoscenes["scene-maxzoom"] != '') {
540
+ $max_zoom = (int)$panoscenes["scene-maxzoom"];
541
+ }else{
542
+ if($max_global_zoom != ''){
543
+ $max_zoom = (int)$max_global_zoom;
544
+ }
545
  }
546
 
547
+
 
 
 
 
548
 
549
  $min_zoom = 50;
550
+ if (isset($panoscenes["scene-minzoom"]) && $panoscenes["scene-minzoom"] != '') {
551
+ $min_zoom = (int)$panoscenes["scene-minzoom"];
552
+ }else{
553
+ if($min_global_zoom != ''){
554
+ $min_zoom = (int)$min_global_zoom;
555
+ }
556
  }
557
 
558
+
 
 
 
 
559
  $hotspot_datas = array();
560
  if (isset($panoscenes["hotspot-list"])) {
561
  $hotspot_datas = $panoscenes["hotspot-list"];
654
  }
655
 
656
  $scene_info = array();
657
+
658
  $scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$device_scene,"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "authorURL"=>$scene_author_url, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, "hotSpots"=>$hotspots);
659
 
660
  if (isset($panoscenes["ptyscene"])) {
714
  unset($scene_info['minYaw']);
715
  }
716
 
717
+ // if (isset($panoscenes["czscene"])) {
718
+ // if ($panoscenes["czscene"] == "off") {
719
+ // unset($scene_info['hfov']);
720
+ // unset($scene_info['maxHfov']);
721
+ // unset($scene_info['minHfov']);
722
+ // }
723
+ // }
724
 
725
  $scene_array = array();
726
  $scene_array = array(
1067
  $html .= '}';
1068
  $html .= '}';
1069
  $html .= '}';
 
1070
  $html .= 'var panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);';
 
1071
  $html .= 'panoshow'.$id.'.on("load", function (){
1072
  setTimeout(() => {
1073
  window.dispatchEvent(new Event("resize"));
1187
  $sin_qout = "'";
1188
 
1189
  if ($vrgallery_display) {
 
 
 
 
 
 
1190
 
1191
+ if (!$autoload) {
1192
+ $html .= '
1193
+ jQuery(document).ready(function($){
1194
+ jQuery("#sccontrols'.$id.'").hide();
1195
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1196
+ jQuery("#sccontrols'.$id.'").hide();
1197
+ });
1198
+ ';
1199
 
1200
+ $html .= '
1201
+ var slide'.$id.' = "down";
1202
+ jQuery(document).on("click","#vrgcontrols'.$id.'",function() {
1203
+
1204
+ if (slide'.$id.' == "up") {
1205
+ jQuery(".vrgctrl'.$id.'").empty();
1206
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1207
+ slide'.$id.' = "down";
1208
+ }
1209
+ else {
1210
+ jQuery(".vrgctrl'.$id.'").empty();
1211
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_down.$sin_qout.');
1212
+ slide'.$id.' = "up";
1213
+ }
1214
+ jQuery("#sccontrols'.$id.'").slideToggle();
1215
+ });
1216
+ ';
1217
+ }
1218
+ else {
1219
+ $html .= '
1220
+ jQuery(document).ready(function($){
1221
+ jQuery("#sccontrols'.$id.'").show();
1222
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_down.$sin_qout.');
1223
+ });
1224
+ ';
1225
+
1226
+ $html .= '
1227
+ var slide'.$id.' = "down";
1228
+ jQuery(document).on("click","#vrgcontrols'.$id.'",function() {
1229
+
1230
+ if (slide'.$id.' == "up") {
1231
+ jQuery(".vrgctrl'.$id.'").empty();
1232
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_down.$sin_qout.');
1233
+ slide'.$id.' = "down";
1234
+ }
1235
+ else {
1236
+ jQuery(".vrgctrl'.$id.'").empty();
1237
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1238
+ slide'.$id.' = "up";
1239
+ }
1240
+ jQuery("#sccontrols'.$id.'").slideToggle();
1241
+ });
1242
+ ';
1243
+ }
1244
  } else {
1245
  $html .= '
1246
  jQuery(document).ready(function($){
1247
+ jQuery("#sccontrols'.$id.'").hide();
1248
  jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1249
  });
1250
  ';
1282
 
1283
  ';
1284
 
1285
+ if ($vrgallery_display) {
1286
+ $html .= 'var load_once = "true";';
1287
+ $html .= 'panoshow'.$id.'.on("load", function (){
1288
+ if (load_once == "true") {
1289
+ load_once = "false";
1290
+ jQuery("#sccontrols'.$id.'").slideToggle();
1291
+ }
1292
+ });';
1293
+ }
1294
+
1295
  $html .= 'panoshow'.$id.'.on("load", function (){
1296
  jQuery("#controls'.$id.'").show();
1297
  jQuery("#zoom-in-out-controls'.$id.'").show();
1332
  }
1333
  });
1334
  ';
 
1335
  $html .= '
1336
  jQuery(".geodir-tab-head dd, #vr-tour-tab").click(function(){
1337
  jQuery("#pano'.$id.'").children(".pnlm-render-container").remove();
1349
  }, 200);
1350
  });
1351
  ';
1352
+ if (isset($postdata['previewtext']) && $postdata['previewtext'] != '') {
1353
+ $html .= '
1354
+ jQuery("#pano'.$id.'").children(".pnlm-ui").find(".pnlm-load-button p").text("'.$postdata['previewtext'].'")
1355
+ ';
1356
+ }
1357
+
1358
+ if ($default_global_zoom != '' || $max_global_zoom != '' || $min_global_zoom != '') {
1359
+ $html .= '
1360
+ jQuery(".globalzoom").val("on").change();
1361
+ ';
1362
+ }
1363
 
1364
 
1365
  $html .= '});';
public/js/wpvr-public.js CHANGED
@@ -53,11 +53,8 @@ function wpvrtooltip(hotSpotDiv, args) {
53
 
54
  jQuery(document).ready(function($) {
55
 
56
-
57
-
58
  $(".cross").on("click", function(e) {
59
  e.preventDefault();
60
-
61
  $(this).parent(".custom-ifram-wrapper").fadeOut();
62
  $(this).parents(".pano-wrap").removeClass("show-modal");
63
 
@@ -71,6 +68,7 @@ jQuery(document).ready(function($) {
71
  });
72
 
73
  jQuery(document).ready(function($) {
 
74
  var notice_active = wpvr_public.notice_active;
75
  var notice = wpvr_public.notice;
76
  if (notice_active == "true") {
53
 
54
  jQuery(document).ready(function($) {
55
 
 
 
56
  $(".cross").on("click", function(e) {
57
  e.preventDefault();
 
58
  $(this).parent(".custom-ifram-wrapper").fadeOut();
59
  $(this).parents(".pano-wrap").removeClass("show-modal");
60
 
68
  });
69
 
70
  jQuery(document).ready(function($) {
71
+
72
  var notice_active = wpvr_public.notice_active;
73
  var notice = wpvr_public.notice;
74
  if (notice_active == "true") {
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: 7.2.6
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -34,7 +34,7 @@ require plugin_dir_path(__FILE__) . 'elementor/elementor.php';
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
- define('WPVR', '7.2.6');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
@@ -392,10 +392,26 @@ function wpvr_block_render($attributes)
392
  if (isset($postdata['panodata'])) {
393
  $panodata = $postdata['panodata'];
394
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
  $hotspoticoncolor = '#00b4ff';
396
  $hotspotblink = 'on';
397
  $default_data = array();
398
- $default_data = array('firstScene'=>$default_scene, 'sceneFadeDuration'=>$scene_fade_duration);
399
  $scene_data = array();
400
 
401
  if (!empty($panodata['scene-list'])) {
@@ -465,37 +481,36 @@ function wpvr_block_render($attributes)
465
  }
466
 
467
  $default_zoom = 100;
468
- if (isset($panoscenes["scene-zoom"])) {
469
- $default_zoom = $panoscenes["scene-zoom"];
 
 
 
 
470
  }
471
 
472
- if (!empty($default_zoom)) {
473
- $default_zoom = (int)$default_zoom;
474
- } else {
475
- $default_zoom = 100;
476
- }
477
 
478
  $max_zoom = 120;
479
- if (isset($panoscenes["scene-maxzoom"])) {
480
- $max_zoom = $panoscenes["scene-maxzoom"];
 
 
 
 
481
  }
482
 
483
- if (!empty($max_zoom)) {
484
- $max_zoom = (int)$max_zoom;
485
- } else {
486
- $max_zoom = 120;
 
 
 
487
  }
488
 
489
- $min_zoom = 50;
490
- if (isset($panoscenes["scene-minzoom"])) {
491
- $min_zoom = $panoscenes["scene-minzoom"];
492
- }
493
 
494
- if (!empty($min_zoom)) {
495
- $min_zoom = (int)$min_zoom;
496
- } else {
497
- $min_zoom = 50;
498
- }
499
 
500
  $hotspot_datas = array();
501
  if (isset($panoscenes['hotspot-list'])) {
@@ -652,18 +667,19 @@ function wpvr_block_render($attributes)
652
  unset($scene_info['minYaw']);
653
  }
654
 
655
- if (isset($panoscenes["czscene"])) {
656
- if ($panoscenes["czscene"] == "off") {
657
- unset($scene_info['hfov']);
658
- unset($scene_info['maxHfov']);
659
- unset($scene_info['minHfov']);
660
- }
661
- }
662
 
663
  $scene_array = array();
664
  $scene_array = array(
665
  $panoscenes['scene-id']=>$scene_info
666
  );
 
667
  $scene_data[$panoscenes['scene-id']] = $scene_info;
668
  }
669
  }
@@ -1107,6 +1123,34 @@ function wpvr_block_render($attributes)
1107
  $sin_qout = "'";
1108
 
1109
  if ($vrgallery_display) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1110
  $html .= '
1111
  jQuery(document).ready(function($){
1112
  jQuery("#sccontrols'.$id.'").show();
@@ -1131,6 +1175,7 @@ function wpvr_block_render($attributes)
1131
  jQuery("#sccontrols'.$id.'").slideToggle();
1132
  });
1133
  ';
 
1134
  } else {
1135
  $html .= '
1136
  jQuery(document).ready(function($){
@@ -1170,6 +1215,16 @@ function wpvr_block_render($attributes)
1170
 
1171
  ';
1172
 
 
 
 
 
 
 
 
 
 
 
1173
  $html .= 'panoshow'.$id.'.on("load", function (){
1174
  jQuery("#controls'.$id.'").show();
1175
  jQuery("#zoom-in-out-controls'.$id.'").show();
@@ -1177,6 +1232,15 @@ function wpvr_block_render($attributes)
1177
  jQuery("#pano'.$id.'").find(".pnlm-panorama-info").show();
1178
  });';
1179
  }
 
 
 
 
 
 
 
 
 
1180
  $html .= '});';
1181
  $html .= '</script>';
1182
  //script end
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: 7.2.7
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
+ define('WPVR', '7.2.7');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
392
  if (isset($postdata['panodata'])) {
393
  $panodata = $postdata['panodata'];
394
  }
395
+
396
+ $default_zoom_global = 100;
397
+ if (isset($postdata['hfov']) && $postdata['hfov'] != '') {
398
+ $default_zoom_global = $postdata['hfov'];
399
+ }
400
+
401
+ $min_zoom_global = 50;
402
+ if (isset($postdata['minHfov']) && $postdata['minHfov'] != '') {
403
+ $min_zoom_global = $postdata['minHfov'];
404
+ }
405
+
406
+ $max_zoom_global = 120;
407
+ if (isset($postdata['maxHfov']) && $postdata['maxHfov'] != '') {
408
+ $max_zoom_global = $postdata['maxHfov'];
409
+ }
410
+
411
  $hotspoticoncolor = '#00b4ff';
412
  $hotspotblink = 'on';
413
  $default_data = array();
414
+ $default_data = array('firstScene'=>$default_scene, 'sceneFadeDuration'=>$scene_fade_duration,'hfov'=>$default_zoom_global,'maxHfov'=>$max_zoom_global,'minHfov'=>$min_zoom_global );
415
  $scene_data = array();
416
 
417
  if (!empty($panodata['scene-list'])) {
481
  }
482
 
483
  $default_zoom = 100;
484
+ if (isset($panoscenes["scene-zoom"]) && $panoscenes["scene-zoom"] != '') {
485
+ $default_zoom = (int)$panoscenes["scene-zoom"];
486
+ }else{
487
+ if( $default_zoom_global != ''){
488
+ $default_zoom = (int)$default_zoom_global;
489
+ }
490
  }
491
 
 
 
 
 
 
492
 
493
  $max_zoom = 120;
494
+ if (isset($panoscenes["scene-maxzoom"]) && $panoscenes["scene-maxzoom"] != '') {
495
+ $max_zoom = (int)$panoscenes["scene-maxzoom"];
496
+ }else{
497
+ if( $max_zoom_global != ''){
498
+ $max_zoom = (int)$max_zoom_global;
499
+ }
500
  }
501
 
502
+ $min_zoom = 120;
503
+ if (isset($panoscenes["scene-minzoom"]) && $panoscenes["scene-minzoom"] != '') {
504
+ $min_zoom = (int)$panoscenes["scene-minzoom"];
505
+ }else{
506
+ if( $min_zoom_global != ''){
507
+ $min_zoom = (int)$min_zoom_global;
508
+ }
509
  }
510
 
 
 
 
 
511
 
512
+
513
+
 
 
 
514
 
515
  $hotspot_datas = array();
516
  if (isset($panoscenes['hotspot-list'])) {
667
  unset($scene_info['minYaw']);
668
  }
669
 
670
+ // if (isset($panoscenes["czscene"])) {
671
+ // if ($panoscenes["czscene"] == "off") {
672
+ // unset($scene_info['hfov']);
673
+ // unset($scene_info['maxHfov']);
674
+ // unset($scene_info['minHfov']);
675
+ // }
676
+ // }
677
 
678
  $scene_array = array();
679
  $scene_array = array(
680
  $panoscenes['scene-id']=>$scene_info
681
  );
682
+
683
  $scene_data[$panoscenes['scene-id']] = $scene_info;
684
  }
685
  }
1123
  $sin_qout = "'";
1124
 
1125
  if ($vrgallery_display) {
1126
+ if (!$autoload) {
1127
+ $html .= '
1128
+ jQuery(document).ready(function($){
1129
+ jQuery("#sccontrols'.$id.'").hide();
1130
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1131
+ jQuery("#sccontrols'.$id.'").hide();
1132
+ });
1133
+ ';
1134
+
1135
+ $html .= '
1136
+ var slide'.$id.' = "down";
1137
+ jQuery(document).on("click","#vrgcontrols'.$id.'",function() {
1138
+
1139
+ if (slide'.$id.' == "up") {
1140
+ jQuery(".vrgctrl'.$id.'").empty();
1141
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_up.$sin_qout.');
1142
+ slide'.$id.' = "down";
1143
+ }
1144
+ else {
1145
+ jQuery(".vrgctrl'.$id.'").empty();
1146
+ jQuery(".vrgctrl'.$id.'").html('.$sin_qout.$angle_down.$sin_qout.');
1147
+ slide'.$id.' = "up";
1148
+ }
1149
+ jQuery("#sccontrols'.$id.'").slideToggle();
1150
+ });
1151
+ ';
1152
+ }
1153
+ else {
1154
  $html .= '
1155
  jQuery(document).ready(function($){
1156
  jQuery("#sccontrols'.$id.'").show();
1175
  jQuery("#sccontrols'.$id.'").slideToggle();
1176
  });
1177
  ';
1178
+ }
1179
  } else {
1180
  $html .= '
1181
  jQuery(document).ready(function($){
1215
 
1216
  ';
1217
 
1218
+ if ($vrgallery_display) {
1219
+ $html .= 'var load_once = "true";';
1220
+ $html .= 'panoshow'.$id.'.on("load", function (){
1221
+ if (load_once == "true") {
1222
+ load_once = "false";
1223
+ jQuery("#sccontrols'.$id.'").slideToggle();
1224
+ }
1225
+ });';
1226
+ }
1227
+
1228
  $html .= 'panoshow'.$id.'.on("load", function (){
1229
  jQuery("#controls'.$id.'").show();
1230
  jQuery("#zoom-in-out-controls'.$id.'").show();
1232
  jQuery("#pano'.$id.'").find(".pnlm-panorama-info").show();
1233
  });';
1234
  }
1235
+ if (isset($postdata['previewtext'])) {
1236
+ $html .= '
1237
+ jQuery("#pano'.$id.'").children(".pnlm-ui").find(".pnlm-load-button p").text("'.$postdata['previewtext'].'")
1238
+ ';
1239
+ }else{
1240
+ $html .= '
1241
+ jQuery("#pano'.$id.'").children(".pnlm-ui").find(".pnlm-load-button p").text("Click To Load Panorama")
1242
+ ';
1243
+ }
1244
  $html .= '});';
1245
  $html .= '</script>';
1246
  //script end