Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

35 lines
1.1 KiB
PHP

<?php if($this->settings['restrictions']['restriction_type'] !== 'selected'): ?>
<?php if(current_user_can(AGE_GATE_CAP_SET_BYPASS)): ?>
<div class="verify-restrict">
<label class="selectit">
<?php echo form_checkbox(
array(
'name' => "ag_settings[bypass]",
'id' => "age-bypass"
),
1, // value
false,
array('class' => 'age-gate-toggle', 'data-type' => 'bypass') // checked
); ?> <?php esc_html_e( 'Do not age restrict this content', 'age-gate' ); ?>
</label>
</div>
<?php endif; ?>
<?php else: ?>
<?php if(current_user_can(AGE_GATE_CAP_SET_CONTENT)): ?>
<div class="verify-restrict">
<label class="selectit">
<?php echo form_checkbox(
array(
'name' => "ag_settings[restrict]",
'id' => "age-restricted"
),
1, // value
false,
array('class' => 'age-gate-toggle', 'data-type' => 'restrict') // checked
); ?> <?php _e('Age Gate this content', 'age-gate'); ?>
</label>
</div>
<?php endif; ?>
<?php endif; ?>