| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) { |
| 2 |
die; } // Cannot access directly. |
| 3 |
/** |
| 4 |
* |
| 5 |
* Field: Preview |
| 6 |
* |
| 7 |
* @since 1.0.0 |
| 8 |
* @version 1.0.0 |
| 9 |
*/ |
| 10 |
if ( ! class_exists( 'SP_PC_Field_preview' ) ) { |
| 11 |
class SP_PC_Field_preview extends SP_PC_Fields { |
| 12 |
/** |
| 13 |
* Constructor method. |
| 14 |
* |
| 15 |
* @param [type] $field |
| 16 |
* @param string $value |
| 17 |
* @param string $unique |
| 18 |
* @param string $where |
| 19 |
* @param string $parent |
| 20 |
*/ |
| 21 |
public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) { |
| 22 |
parent::__construct( $field, $value, $unique, $where, $parent ); |
| 23 |
} |
| 24 |
/** |
| 25 |
* Render method. |
| 26 |
* |
| 27 |
* @return void |
| 28 |
*/ |
| 29 |
public function render() { |
| 30 |
echo '<div class="spsp-preview-box"><div id="spsp-preview-box"></div></div>'; |
| 31 |
} |
| 32 |
|
| 33 |
} |
| 34 |
} |
| 35 |
|