# age-gate/3.7.3/src/Resources/views/admin/partials/fields/wrapper.php

Age Gate, version 3.7.3. 21 lines.

- Page: https://pluginprobe.com/plugins/age-gate/3.7.3/code/src/Resources/views/admin/partials/fields/wrapper.php
- Raw: https://pluginprobe.com/plugins/age-gate/3.7.3/raw/src/Resources/views/admin/partials/fields/wrapper.php
- Modified: 2025-03-27T08:14:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/age-gate/3.7.3/code/src/Resources/views/admin/partials/fields/wrapper.php#L10-L20`.

```php
<div class="ag-field ag-field--<?php echo esc_attr($field['type']) ?> <?php echo esc_attr($field['wrapper']['class'] ?? '') ?>">
    <?php if ($field['translate'] ?? false) : ?>
        <?php $this->insert('partials/global/flag', [
            'lang' => $lang ?? false,
            'name' => '',
        ]) ?>
    <?php endif; ?>

    <?php echo $this->section('input') // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

    <?php if ($field['tooltip'] ?? false) : ?>
        <span data-ag-tooltip="<?php echo esc_html($field['tooltip']) ?>">
            <i class="ag-tooltip dashicons dashicons-editor-help"></i>
        </span>
    <?php endif; ?>

    <?php if ($field['subtext'] ?? false) : ?>
        <p class="ag-small"><?php echo $this->md(esc_html($field['subtext'])) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
    <?php endif; ?>
</div>

```
