Remove all plugins / install base theme

This commit is contained in:
Tony Volpe
2024-06-18 16:14:48 -04:00
parent ecc33d62f0
commit 95cb30b884
7455 changed files with 0 additions and 1722920 deletions

View File

@@ -1,58 +0,0 @@
<?php
namespace Gravity_Forms\Gravity_Forms\Settings\Fields;
use Gravity_Forms\Gravity_Forms\Settings\Fields;
defined( 'ABSPATH' ) || die();
class Hidden extends Base {
/**
* Field type.
*
* @since 2.5
*
* @var string
*/
public $type = 'hidden';
// # RENDER METHODS ------------------------------------------------------------------------------------------------
/**
* Render field.
*
* @since 2.5
*
* @return string
*/
public function markup() {
// Get value.
$value = $this->get_value();
// Convert value to JSON string.
if ( is_array( $value ) ) {
$value = json_encode( $value );
}
// Prepare markup.
$html = sprintf(
'<input type="hidden" name="%1$s_%2$s" value=\'%3$s\' %4$s />',
esc_attr( $this->settings->get_input_name_prefix() ),
esc_attr( $this->name ),
esc_attr( $value ),
implode( ' ', $this->get_attributes() )
);
return $html;
}
}
Fields::register( 'hidden', '\Gravity_Forms\Gravity_Forms\Settings\Fields\Hidden' );