diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-03-22 13:59:16 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-03-22 13:59:16 +0000 |
| commit | 0fc69ce3ad89844dd5fb2f87532e7b6fca55923d (patch) | |
| tree | b89a251b26e0726a80c4c24eb0b726f1bbaeea62 /views/admin/form/checkbox.phtml | |
| parent | c14a7c20ec8c489a37412cebb524e367679f5a60 (diff) | |
- sync
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5439 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/form/checkbox.phtml')
| -rw-r--r-- | views/admin/form/checkbox.phtml | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/views/admin/form/checkbox.phtml b/views/admin/form/checkbox.phtml index c183513..e20ddea 100644 --- a/views/admin/form/checkbox.phtml +++ b/views/admin/form/checkbox.phtml @@ -1,14 +1,26 @@ -<div class="form-group form-group-sm form-checkbox">
+<div class="form-group form-group-sm form-checkbox <?php echo ((wpsg_isSizedString($this->view['field_config']['help']))?'has-feedback':''); ?>">
- <div class="col-sm-offset-6 col-sm-6">
+ <div class="<?php
+
+ if (wpsg_isTrue($this->view['field_config']['fullWidth'])) echo 'col-sm-12';
+ else echo 'col-sm-offset-6 col-sm-6';
+
+ ?>">
<div class="checkbox">
<label>
- <input type="hidden" name="<?php echo $this->view['field_name']; ?>" value="0" />
- <input type="checkbox" name="<?php echo $this->view['field_name']; ?>" value="1" <?php echo (($this->view['field_checked'] > 0)?'checked="checked"':''); ?> />
+ <div class="wpsg_field_wrap">
+ <input type="hidden" name="<?php echo $this->view['field_name']; ?>" value="0" />
+ <input type="checkbox" id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" value="1" <?php echo (($this->view['field_checked'] > 0)?'checked="checked"':''); ?> />
- <?php echo $this->view['field_label']; ?>
+ <?php echo $this->view['field_label']; ?>
+
+ <?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
+ <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>
+ <?php } ?>
+
+ </div>
</label>
</div>
|
