| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly |
| 3 |
/** |
| 4 |
* Responsible for managing control button tab content |
| 5 |
* |
| 6 |
* @link http://rextheme.com/ |
| 7 |
* @since 8.0.0 |
| 8 |
* |
| 9 |
* @package Wpvr |
| 10 |
* @subpackage Wpvr/admin/classes |
| 11 |
*/ |
| 12 |
|
| 13 |
class WPVR_Control_Button extends Singleton { |
| 14 |
|
| 15 |
/** |
| 16 |
* Render Advanced Control Tab Content |
| 17 |
* |
| 18 |
* @return void |
| 19 |
* @since 8.0.0 |
| 20 |
*/ |
| 21 |
public static function render($postdata) |
| 22 |
{ |
| 23 |
ob_start(); |
| 24 |
?> |
| 25 |
<div class="control-settings-content inner-single-content" id="gen-control"> |
| 26 |
<?php self::render_meta_fields($postdata);?> |
| 27 |
</div> |
| 28 |
<?php |
| 29 |
ob_end_flush(); |
| 30 |
} |
| 31 |
|
| 32 |
|
| 33 |
/** |
| 34 |
* Render Control Button Meta Fields |
| 35 |
* |
| 36 |
* @return void |
| 37 |
* @since 8.0.0 |
| 38 |
*/ |
| 39 |
public static function render_meta_fields($postdata) { |
| 40 |
ob_start(); |
| 41 |
?> |
| 42 |
|
| 43 |
<div class="content-wrapper"> |
| 44 |
<div class="left"> |
| 45 |
<?php WPVR_Meta_Field::render_control_button_left_fields($postdata) ?> |
| 46 |
</div> |
| 47 |
<!-- end left --> |
| 48 |
|
| 49 |
<div class="right"> |
| 50 |
<?php WPVR_Meta_Field::render_control_button_right_fields($postdata) ?> |
| 51 |
</div> |
| 52 |
<!-- end right --> |
| 53 |
</div> |
| 54 |
|
| 55 |
<?php |
| 56 |
ob_end_flush(); |
| 57 |
} |
| 58 |
} |
| 59 |
|