/
layout.php
39 lines (39 loc) · 1.65 KB
/
layout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="form-group <?= $this->setting['hidden'] ? 'hidden' : '' ?>">
<div class="question-option-general-setting-block">
<?php if (in_array($this->setting['inputtype'], AdvancedSettingWidget::SINGLEINPUTTYPE) && !$this->setting['i18n']): ?>
<label class="form-label" for="<?= CHtml::getIdByName($inputBaseName); ?>">
<?= gT($this->setting['caption']) ?>
</label>
<?php else: ?>
<strong class="form-label" id="label-<?= CHtml::getIdByName($inputBaseName); ?>">
<?= gT($this->setting['caption']) ?>
</strong>
<?php endif; ?>
<!-- TODO: Object method $setting->isLocalized(). -->
<?php if ($this->setting['i18n']): ?>
<i
class="fa fa-globe"
data-toggle="tooltip"
title="<?= gT("This setting is localized") ?>"
></i>
<?php endif; ?>
<?php if ($this->setting['help']): ?>
<a
role="button"
data-toggle="collapse"
href="#help-<?= CHtml::getIdByName($inputBaseName); ?>"
><i
class="fa fa-question-circle text-info"
data-toggle="tooltip"
title="<?= CHtml::encode(strip_tags($this->setting['help'])) ?>"
> </i><span class="sr-only"><?= gT("Show help"); ?></span> </a>
<div class="help-block collapse" id="help-<?= CHtml::getIdByName($inputBaseName); ?>" aria-expanded="false"><?= $this->setting['help']; ?></div>
<?php endif; ?>
<?= $content ?>
</div>
</div>
<script>
function getNames(){
return 'testing';
}
</script>