HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/s/l/y/slyfwmm/pianob/wp-content/plugins/hbook/admin-pages/pages/details/details.php
<?php
class HbAdminPageDetails extends HbAdminPage {

	public function __construct( $page_id, $hbdb, $utils, $options_utils ) {
		$this->data = array(
			'hb_text' => array(
				'form_saved' => esc_html__( 'The Details form settings have been saved.', 'hbook-admin' ),
				'new_field' => esc_html__( 'New field', 'hbook-admin' ),
				'confirm_delete_field' => esc_html__( 'Remove \'%field_name\'?', 'hbook-admin' ),
				'confirm_delete_field_no_name' => esc_html__( 'Remove field?', 'hbook-admin' ),
				'confirm_info' => esc_html__( '(This will also erase all data associated to this field.)', 'hbook-admin' ),
				'new_choice' => esc_html__( 'New choice', 'hbook-admin' ),
				'confirm_delete_choice' => esc_html__( 'Remove \'%choice_name\'?', 'hbook-admin' ),
				'details_form_title' => esc_html__( 'Form title', 'hbook-admin' ),
				'first_name' => esc_html__( 'First name', 'hbook-admin' ),
				'last_name' => esc_html__( 'Last name', 'hbook-admin' ),
				'email' => esc_html__( 'Email', 'hbook-admin' ),
			),
			'hb_fields' => $hbdb->get_details_form_fields()
		);
		parent::__construct( $page_id, $hbdb, $utils, $options_utils );
	}

	public function display() {
		?>

		<div class="wrap">

			<form id="hb-form-fields">

				<h1><?php esc_html_e( 'Customer and booking details form', 'hbook-admin' ); ?></h1>
				<?php $this->display_right_menu(); ?>

				<hr/>

				<p>
					<i>
						<?php esc_html_e( 'Customize the Details form.', 'hbook-admin' ); ?><br/>
						<?php esc_html_e( 'You can add new fields, change fields settings and Drag and Drop fields to reorder them.', 'hbook-admin' ); ?>
					</i>
				</p>

				<?php $this->options_utils->display_save_options_section(); ?>

				<input id="hb-form-add-field-top" type="button" class="button" value="<?php esc_attr_e( 'Add a field', 'hbook-admin' ); ?>" data-bind="click: add_field_top" />

				<?php $this->display_form_builder(); ?>

				<p>
					<input id="hb-form-add-field-bottom" type="button" class="button" value="<?php esc_attr_e( 'Add a field', 'hbook-admin' ); ?>" data-bind="click: add_field_bottom" />
				</p>

				<?php $this->options_utils->display_save_options_section(); ?>

			</form>

		</div><!-- end .wrap -->

	<?php
	}
}