SB_Actionbutton_Control.php
1 month ago
SB_Checkbox_Control.php
1 month ago
SB_Checkboxlist_Control.php
1 month ago
SB_Checkboxsection_Control.php
1 month ago
SB_Coloroverride_Control.php
1 month ago
SB_Colorpicker_Control.php
1 month ago
SB_Controls_Base.php
1 month ago
SB_Customview_Control.php
1 month ago
SB_Datepicker_Control.php
1 month ago
SB_Heading_Control.php
1 month ago
SB_Hidden_Control.php
1 month ago
SB_Imagechooser_Control.php
1 month ago
SB_Notice_Control.php
1 month ago
SB_Number_Control.php
1 month ago
SB_Select_Control.php
1 month ago
SB_Separator_Control.php
1 month ago
SB_Switcher_Control.php
1 month ago
SB_Text_Control.php
1 month ago
SB_Textarea_Control.php
1 month ago
SB_Toggle_Control.php
1 month ago
SB_Togglebutton_Control.php
1 month ago
SB_Toggleset_Control.php
1 month ago
SB_Checkboxlist_Control.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customizer Builder |
| 4 | * CheckBox List Control |
| 5 | * |
| 6 | * @since 2.0 |
| 7 | */ |
| 8 | namespace TwitterFeed\Builder\Controls; |
| 9 | |
| 10 | if(!defined('ABSPATH')) exit; |
| 11 | |
| 12 | class SB_Checkboxlist_Control extends SB_Controls_Base{ |
| 13 | |
| 14 | /** |
| 15 | * Get control type. |
| 16 | * |
| 17 | * Getting the Control Type |
| 18 | * |
| 19 | * @since 2.0 |
| 20 | * @access public |
| 21 | * |
| 22 | * @return string |
| 23 | */ |
| 24 | public function get_type(){ |
| 25 | return 'checkboxlist'; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Output Control |
| 30 | * |
| 31 | * |
| 32 | * @since 2.0 |
| 33 | * @access public |
| 34 | * |
| 35 | * @return HTML |
| 36 | */ |
| 37 | public function get_control_output($controlEditingTypeModel){ |
| 38 | ?> |
| 39 | <div class="sb-control-checkbox-ctn ctf-fb-fs" v-for="option in control.options" @click.prevent.default="changeCheckboxListValue(control.id, option.value)"> |
| 40 | <div class="sb-control-checkbox" :data-active="<?php echo $controlEditingTypeModel ?>[control.id].includes(option.value)"></div> |
| 41 | <div class="sb-control-label sb-small-p sb-dark-text" v-html="option.label"></div> |
| 42 | </div> |
| 43 | <?php |
| 44 | } |
| 45 | |
| 46 | } |