content.php 556 B

12345678910111213141516171819202122232425262728
  1. <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
  2. /**
  3. *
  4. * Field: content
  5. *
  6. * @since 1.0.0
  7. * @version 1.0.0
  8. *
  9. */
  10. if ( ! class_exists( 'CSF_Field_content' ) ) {
  11. class CSF_Field_content extends CSF_Fields {
  12. public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
  13. parent::__construct( $field, $value, $unique, $where, $parent );
  14. }
  15. public function render() {
  16. if ( ! empty( $this->field['content'] ) ) {
  17. echo $this->field['content'];
  18. }
  19. }
  20. }
  21. }