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_Checkboxsection_Control.php
58 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customizer Builder |
| 4 | * CheckBox Section Control |
| 5 | * |
| 6 | * @since 2.0 |
| 7 | */ |
| 8 | namespace TwitterFeed\Builder\Controls; |
| 9 | |
| 10 | if(!defined('ABSPATH')) exit; |
| 11 | |
| 12 | class SB_Checkboxsection_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 'checkboxsection'; |
| 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-checkboxsection-header" v-if="control.header"> |
| 40 | <div class="sb-control-checkboxsection-name"> |
| 41 | <div v-html="svgIcons['preview']"></div> |
| 42 | <strong class="">{{genericText.name}}</strong> |
| 43 | </div> |
| 44 | <strong>{{genericText.edit}}</strong> |
| 45 | </div> |
| 46 | <div class="sb-control-checkbox-ctn ctf-fb-fs" @click.prevent.default="control.section.controls.length > 0 ? switchNestedSection(control.section.id, control.section) : false"> |
| 47 | <div class="sb-control-checkbox-hover"></div> |
| 48 | <div class="sb-control-checkbox" @click.stop.prevent.default="changeCheckboxSectionValue(control.id, control.value, control.ajaxAction != undefined ? control.ajaxAction : false, control.checkBoxAction != undefined ? control : false)" |
| 49 | :data-active="checkActiveControl(control.id, control.options.enabled)"></div> |
| 50 | <div class="ctf-fb-fs" :data-active="<?php echo $controlEditingTypeModel ?>[control.id] == control.options.enabled"> |
| 51 | <strong class="sb-control-label">{{control.label}}</strong> |
| 52 | </div> |
| 53 | <div v-if="control.section.controls.length > 0" class="sb-control-checkboxsection-btn"></div> |
| 54 | </div> |
| 55 | <?php |
| 56 | } |
| 57 | |
| 58 | } |