PluginProbe
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress / 9.2.0
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress v9.2.0
9.2.0 9.1.4 9.1.3 9.1.2 9.1.1 9.1.0 9.0.3 9.0.2 9.0.1 9.0.0 8.5.79 8.5.78 8.5.77 8.5.76 8.5.75 8.5.74 8.5.73 8.5.72 8.5.71 8.5.70 8.5.69 8.5.68 8.5.35 8.5.36 8.5.37 All 224 releases
← All changes | legacy/admin/classes/class-wpvr-hotspot.php +7 -6 9.0.1 → 9.2.0 View file →
@@ -1,6 +1,7 @@
1 1 <?php
2 2 if (!defined('ABSPATH')) exit; // Exit if accessed directly
3 +require_once __DIR__ . '/class-wpvr-sticker-fields.php';
3 4 /**
4 5 * Responsible for managing Hotspot tab content on Setup meta box
5 6 *
6 7 * @link http://rextheme.com/
@@ -112,9 +113,9 @@
112 113 <?php WPVR_Meta_Field::render_hotspot_setting_left_fields($pano_hotspot); ?>
113 114 </div>
114 115
115 116 <div class="hotspot-type hotspot-setting">
116 - <?php WPVR_Meta_Field::render_hotspot_setting_right_fields(); ?>
117 + <?php WPVR_Meta_Field::render_hotspot_setting_right_fields(); WPVR_Sticker_Fields::render($pano_hotspot); ?>
117 118 </div>
118 119 <!-- Hotspot type End -->
119 120 <button data-repeater-delete title="Delete Hotspot" type="button" class="delete-hotspot"><i class="far fa-trash-alt"></i></button>
120 121 <?php
@@ -173,23 +174,23 @@
173 174 </div>
174 175
175 176 <!-- Hotspot type -->
176 177
177 - <?php if ($pano_hotspot['hotspot-type'] == "info") { ?>
178 + <?php if (in_array($pano_hotspot['hotspot-type'], array('info', 'sticker'), true)) { ?>
178 179 <div class="hotspot-type hotspot-setting">
179 - <?php WPVR_Meta_Field::render_hotspot_setting_info_fields($pano_hotspot); ?>
180 + <?php WPVR_Meta_Field::render_hotspot_setting_info_fields($pano_hotspot); WPVR_Sticker_Fields::render($pano_hotspot); ?>
180 181 </div>
181 182 <?php }elseif($pano_hotspot['hotspot-type'] == "fluent_form" && $is_wpvr_premium == 1){ ?>
182 183 <div class="hotspot-type hotspot-setting">
183 - <?php WPVR_Meta_Field::render_hotspot_setting_fluent_form_fields($pano_hotspot); ?>
184 + <?php WPVR_Meta_Field::render_hotspot_setting_fluent_form_fields($pano_hotspot); WPVR_Sticker_Fields::render($pano_hotspot); ?>
184 185 </div>
185 186 <?php }elseif($pano_hotspot['hotspot-type'] == "wc_product" && $is_wpvr_premium == 1){ ?>
186 187 <div class="hotspot-type hotspot-setting">
187 - <?php WPVR_Meta_Field::render_hotspot_setting_wc_product_fields($pano_hotspot); ?>
188 + <?php WPVR_Meta_Field::render_hotspot_setting_wc_product_fields($pano_hotspot); WPVR_Sticker_Fields::render($pano_hotspot); ?>
188 189 </div>
189 190 <?php } else { ?>
190 191 <div class="hotspot-type hotspot-setting">
191 - <?php WPVR_Meta_Field::render_hotspot_setting_scene_fields($pano_hotspot); ?>
192 + <?php WPVR_Meta_Field::render_hotspot_setting_scene_fields($pano_hotspot); WPVR_Sticker_Fields::render($pano_hotspot); ?>
192 193 </div>
193 194 <?php } ?>
194 195 <!-- Hotspot type End -->
195 196 <button data-repeater-delete type="button" title="Delete Hotspot" class="delete-hotspot"><i class="far fa-trash-alt"></i></button>