PluginProbe
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress / 8.5.68
WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress v8.5.68
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 8.5.38 8.5.39 8.5.4 All 221 releases
wpvr / admin / classes / class-wpvr-shortcode.php

class-wpvr-shortcode.php in WPVR – 360 Panorama viewer and Virtual Tour Builder for WordPress 8.5.68, at admin/classes/class-wpvr-shortcode.php

58 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) exit; // Exit if accessed directly
3 /**
4 * Responsible for managing shortcode content on Setup metabox
5 *
6 * @link http://rextheme.com/
7 * @since 1.0.0
8 *
9 * @package Wpvr
10 * @subpackage Wpvr/admin/classes
11 */
12
13 class WPVR_Shortcode_TEST {
14
15 function __construct()
16 {
17 }
18
19 /**
20 * Render shortcode content on metabox
21 * @return null
22 */
23 public function render_shortcode()
24 {
25 ob_start();
26 ?>
27
28 <?php
29 $post = get_post();
30 $id = $post->ID;
31 ?>
32 <h4 class="area-title"><?php echo __('Using this Tour', 'wpvr'); ?></h4>
33
34 <div class="shortcode-wrapper">
35 <div class="single-shortcode classic">
36 <span class="shortcode-title"><?php echo __('For Classic Editor:', 'wpvr'); ?></span>
37
38 <div class="field-wapper">
39 <span><?php echo __('To use this WP VR tour in your posts or pages use the following shortcode ', 'wpvr'); ?></span>
40
41 <div class="shortcode-field">
42 <p class="copycode" id="copy-shortcode-video">[wpvr id="<?php echo $id; ?>"]</p>
43 <span id="wpvr-copy-shortcode-video" class="wpvr-copy-shortcode">
44 <img loading="lazy" src=" <?php echo WPVR_PLUGIN_DIR_URL; ?>admin/icon/copy.png" alt="icon" />
45 </span>
46 </div>
47
48 <span id="wpvr-copied-notice-video" class="wpvr-copied-notice"></span>
49
50 </div>
51 </div>
52 </div>
53
54 <?php
55 ob_end_flush();
56 }
57
58 }