| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly |
| 3 |
/** |
| 4 |
* Responsible for managing basic settings |
| 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_Basic_Setting { |
| 14 |
function __construct() |
| 15 |
{ |
| 16 |
|
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
/** |
| 21 |
* Render Basic Setting Tab Content |
| 22 |
* @param mixed $preview |
| 23 |
* @param mixed $previewtext |
| 24 |
* @param mixed $autoload |
| 25 |
* @param mixed $control |
| 26 |
* @param mixed $postdata |
| 27 |
* @param mixed $autorotation |
| 28 |
* @param mixed $autorotationinactivedelay |
| 29 |
* @param mixed $autorotationstopdelay |
| 30 |
* |
| 31 |
* @return void |
| 32 |
*/ |
| 33 |
public function render_basic_setting($postdata) |
| 34 |
{ |
| 35 |
ob_start(); |
| 36 |
?> |
| 37 |
<div class="basic-settings-content inner-single-content active" id="gen-basic"> |
| 38 |
<?php $this->render_basic_setting_content_wrapper($postdata) ;?> |
| 39 |
</div> |
| 40 |
<?php |
| 41 |
ob_end_flush(); |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
private function render_basic_setting_content_wrapper($postdata) |
| 46 |
{ |
| 47 |
ob_start(); |
| 48 |
$status = get_option('wpvr_edd_license_status'); |
| 49 |
?> |
| 50 |
<div class="content-wrapper"> |
| 51 |
<div class="left"> |
| 52 |
<?php WPVR_Meta_Field::render_basic_settings_left_fields($postdata);?> |
| 53 |
</div> |
| 54 |
|
| 55 |
<div class="right"> |
| 56 |
<?php WPVR_Meta_Field::render_basic_setting_right_fields($postdata) ;?> |
| 57 |
|
| 58 |
<div class="autorotationdata-wrapper"> |
| 59 |
<?php WPVR_Meta_Field::render_autorotation_data_wrapper_fields($postdata) ;?> |
| 60 |
</div> |
| 61 |
|
| 62 |
</div> |
| 63 |
</div> |
| 64 |
<?php |
| 65 |
ob_end_flush(); |
| 66 |
} |
| 67 |
} |