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_Togglebutton_Control.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customizer Builder |
| 4 | * Toggle Buttons |
| 5 | * |
| 6 | * @since 2.0 |
| 7 | */ |
| 8 | namespace TwitterFeed\Builder\Controls; |
| 9 | |
| 10 | if(!defined('ABSPATH')) exit; |
| 11 | |
| 12 | class SB_Togglebutton_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 'togglebutton'; |
| 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-togglebutton-ctn ctf-fb-fs"> |
| 40 | <div class="sb-control-togglebutton-elm ctf-fb-fs sb-tr-1" v-for="toggle in control.options" :data-active="<?php echo $controlEditingTypeModel ?>[control.id] == toggle.value" v-show="toggle.condition != undefined ? checkControlCondition(toggle.condition) : true" @click.prevent.default="changeSettingValue(control.id,toggle.value, true)" > |
| 41 | {{toggle.label}} |
| 42 | </div> |
| 43 | </div> |
| 44 | |
| 45 | <?php |
| 46 | } |
| 47 | |
| 48 | } |