5439 |
daniel |
1 |
<div class="form-group form-group-sm form-checkbox <?php echo ((wpsg_isSizedString($this->view['field_config']['help']))?'has-feedback':''); ?>">
|
5266 |
daniel |
2 |
|
5792 |
daniel |
3 |
<?php if (wpsg_isSizedString($this->view['field_config']['label'])) { $value_class = 'col-sm-6'; ?>
|
|
|
4 |
<label class="col-sm-6 control-label">
|
|
|
5 |
<?php echo wpsg_hspc($this->view['field_config']['label']); ?>
|
|
|
6 |
</label>
|
|
|
7 |
<?php } else {
|
|
|
8 |
|
|
|
9 |
if (wpsg_isTrue($this->view['field_config']['fullWidth'])) $value_class = 'col-sm-12';
|
|
|
10 |
else $value_class = 'col-sm-offset-6 col-sm-6';
|
|
|
11 |
|
|
|
12 |
} ?>
|
|
|
13 |
|
|
|
14 |
<div class="<?php echo $value_class; ?>">
|
5266 |
daniel |
15 |
|
|
|
16 |
<div class="checkbox">
|
|
|
17 |
<label>
|
5450 |
daniel |
18 |
|
5439 |
daniel |
19 |
<div class="wpsg_field_wrap">
|
|
|
20 |
<input type="hidden" name="<?php echo $this->view['field_name']; ?>" value="0" />
|
5450 |
daniel |
21 |
<input type="checkbox" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" value="<?php echo wpsg_getStr($this->view['field_config']['value'], '1'); ?>" <?php echo (($this->view['field_checked'] > 0)?'checked="checked"':''); ?> />
|
5266 |
daniel |
22 |
|
5439 |
daniel |
23 |
<?php echo $this->view['field_label']; ?>
|
|
|
24 |
|
|
|
25 |
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
|
|
|
26 |
<a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-info-sign form-control-feedback" aria-hidden="true"></a>
|
|
|
27 |
<?php } ?>
|
|
|
28 |
|
|
|
29 |
</div>
|
5266 |
daniel |
30 |
|
|
|
31 |
</label>
|
|
|
32 |
</div>
|
|
|
33 |
|
|
|
34 |
</div>
|
|
|
35 |
|
5391 |
daniel |
36 |
<div class="clearfix wpsg_clear"></div>
|
|
|
37 |
|
5266 |
daniel |
38 |
</div>
|