HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/application/extensions/AdvancedSettingWidget/views/buttongroup.php
<div class="btn-group" role="group"
    aria-labelledby="label-<?= CHtml::getIdByName($inputBaseName); ?>"
    <?= ($this->setting['help']) ? 'aria-describedby="help-' . CHtml::getIdByName($inputBaseName) . '"' : "" ?>
    >
    <?php foreach ($this->setting['options'] as $value => $text): ?>
        <?php if ($this->setting['value'] == $value): ?>
            <input 
                class="btn-check"
                type="radio" 
                name="<?= $inputBaseName ?>"
                id="<?= $inputBaseName . $value ?>"
                value="<?= CHtml::encode($value); ?>"
                checked
            />
            <label class="btn btn-outline-secondary" for="<?= $inputBaseName  . $value ?>">
                <?= gT($text); ?>
            </label>
        <?php else: ?>
            <input 
                class="btn-check"
                type="radio" 
                name="<?= $inputBaseName ?>"
                id="<?= $inputBaseName . $value ?>"
                value="<?= CHtml::encode($value); ?>"
            />
            <label class="btn btn-outline-secondary" for="<?= $inputBaseName . $value ?>">
                <?= gT($text); ?>
            </label>
        <?php endif; ?>
    <?php endforeach; ?>
</div>