| @@ -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> |