mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-04 03:29:37 +08:00
25 lines
576 B
PHP
25 lines
576 B
PHP
|
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
|
||
|
/**
|
||
|
*
|
||
|
* Field: subheading
|
||
|
*
|
||
|
* @since 1.0.0
|
||
|
* @version 1.0.0
|
||
|
*
|
||
|
*/
|
||
|
if ( ! class_exists( 'WP_CHINA_YES_Field_subheading' ) ) {
|
||
|
class WP_CHINA_YES_Field_subheading extends WP_CHINA_YES_Fields {
|
||
|
|
||
|
public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
|
||
|
parent::__construct( $field, $value, $unique, $where, $parent );
|
||
|
}
|
||
|
|
||
|
public function render() {
|
||
|
|
||
|
echo ( ! empty( $this->field['content'] ) ) ? $this->field['content'] : '';
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|