File "read-only.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/the-events-calendar/common/src/admin-views/components/read-only.php
File size: 1.46 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* View: Read only field.
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe/admin-views/components/read-only.php
*
* See more documentation about our views templating system.
*
* @since 1.4.0
*
* @version 1.4.0
*
* @link http://evnt.is/1aiy
*
* @var array<string,string> $classes_wrap An array of classes for the toggle button.
* @var string $label The label for the text input.
* @var string $screen_reader The screen reader instructions for the text input.
* @var string $id ID of the hidden input.
* @var string $name The name for the text input.
* @var string $value The value of the text field.
*/
?>
<div <?php tribe_classes( $classes_wrap ); ?> >
<fieldset class="tec-automator-settings-details__read-only-field">
<legend class="tec-automator-settings-details__label tribe-field-label screen-reader-text">
<?php echo esc_html( $label ); ?>
</legend>
<div class="tec-automator-settings-details__field-wrap tribe-field-wrap">
<?php echo esc_html( $value ); ?>
<input
id="<?php echo esc_attr( $id ); ?>"
type="hidden"
name="<?php echo esc_attr( $name ); ?>"
value="<?php echo esc_attr( $value ); ?>"
>
<?php if ( $screen_reader ) { ?>
<label class="screen-reader-text">
<?php echo esc_html( $screen_reader ); ?>
</label>
<?php } ?>
</div>
</fieldset>
</div>