| 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 esc_html__( 'Using this Tour', 'wpvr' ); ?></h4> |
| 33 |
|
| 34 |
<div class="shortcode-wrapper"> |
| 35 |
<div class="single-shortcode classic"> |
| 36 |
<span class="shortcode-title"><?php echo esc_html__( 'For Classic Editor:', 'wpvr' ); ?></span> |
| 37 |
|
| 38 |
<div class="field-wapper"> |
| 39 |
<span><?php echo esc_html__( '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 esc_attr( $id ); ?>"]</p> |
| 43 |
<span id="wpvr-copy-shortcode-video" class="wpvr-copy-shortcode"> |
| 44 |
<img loading="lazy" src=" <?php echo esc_url( 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 |
} |