subheading.php 549 B

123456789101112131415161718192021222324
  1. <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
  2. /**
  3. *
  4. * Field: subheading
  5. *
  6. * @since 1.0.0
  7. * @version 1.0.0
  8. *
  9. */
  10. if ( ! class_exists( 'CSF_Field_subheading' ) ) {
  11. class CSF_Field_subheading 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. echo ( ! empty( $this->field['content'] ) ) ? $this->field['content'] : '';
  17. }
  18. }
  19. }