Files
roi-theme/wp-content/plugins/advanced-ads-pro/modules/gamipress/views/visitor-condition-achievement.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

38 lines
1.8 KiB
PHP
Executable File

<?php
/**
* View for GamiPress ranks and achievements visitor condition.
*
* @var string $type The visitor condition type.
* @var string $name Unique input name.
* @var string $operator The comparison operator.
* @var array $condition Details for the condition.
* @var array $values GamiPress achievements or ranks.
* @var array $selected_value The currently selected value.
*/
?>
<input type="hidden" name="<?php echo esc_attr( $name ); ?>[type]" value="<?php echo esc_attr( $type ); ?>"/>
<div class="advads-conditions-single">
<select name="<?php echo esc_attr( $name ); ?>[operator]">
<option value="is" <?php selected( 'is', $operator ); ?>><?php esc_attr_e( 'is', 'advanced-ads-pro' ); ?></option>
<option value="is_not" <?php selected( 'is_not', $operator ); ?>><?php esc_attr_e( 'is not', 'advanced-ads-pro' ); ?></option>
</select>
<div class="advads-conditions-select-wrap">
<select name="<?php echo esc_attr( $name ); ?>[value]">
<option value="" disabled <?php selected( 0, $selected_value ); ?>><?php esc_attr_e( 'Choose Achievement Type', 'advanced-ads-pro' ); ?></option>
<?php foreach ( $values as $label => $optgroup ) : ?>
<optgroup label="<?php echo esc_attr( $label ); ?> ">
<?php foreach ( $optgroup as $value => $option ) : ?>
<option value="<?php echo (int) $value; ?>" <?php selected( $value, $selected_value ); ?>><?php echo esc_attr( $option ); ?></option>
<?php endforeach; ?>
</optgroup>
<?php endforeach; ?>
</select>
</div>
<p class="description">
<?php echo esc_html( $condition['description'] ); ?>
<a href="https://wpadvancedads.com/manual/gamipress-ads/?utm_source=advanced-ads&utm_medium=link&utm_campaign=condition-gamipress" class="advads-manual-links" target="_blank">
<?php esc_html_e( 'Manual', 'advanced-ads-pro' ); ?>
</a>
</p>
</div>