CFF_Actionbutton_Control.php
4 years ago
CFF_Checkbox_Control.php
4 years ago
CFF_Checkboxsection_Control.php
4 years ago
CFF_Coloroverride_Control.php
4 years ago
CFF_Colorpicker_Control.php
4 years ago
CFF_Controls_Base.php
4 years ago
CFF_Customview_Control.php
4 years ago
CFF_Datepicker_Control.php
4 years ago
CFF_Heading_Control.php
4 years ago
CFF_Hidden_Control.php
4 years ago
CFF_Number_Control.php
4 years ago
CFF_Select_Control.php
4 years ago
CFF_Separator_Control.php
4 years ago
CFF_Switcher_Control.php
4 years ago
CFF_Text_Control.php
4 years ago
CFF_Textarea_Control.php
4 years ago
CFF_Toggle_Control.php
4 years ago
CFF_Togglebutton_Control.php
4 years ago
CFF_Toggleset_Control.php
4 years ago
CFF_Number_Control.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customizer Builder |
| 4 | * Number Field Control |
| 5 | * |
| 6 | * @since 4.0 |
| 7 | */ |
| 8 | namespace CustomFacebookFeed\Builder\Controls; |
| 9 | |
| 10 | if(!defined('ABSPATH')) exit; |
| 11 | |
| 12 | class CFF_Number_Control extends CFF_Controls_Base{ |
| 13 | |
| 14 | /** |
| 15 | * Get control type. |
| 16 | * |
| 17 | * Getting the Control Type |
| 18 | * |
| 19 | * @since 4.0 |
| 20 | * @access public |
| 21 | * |
| 22 | * @return string |
| 23 | */ |
| 24 | public function get_type(){ |
| 25 | return 'number'; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Output Control |
| 30 | * |
| 31 | * |
| 32 | * @since 4.0 |
| 33 | * @access public |
| 34 | * |
| 35 | * @return HTML |
| 36 | */ |
| 37 | public function get_control_output($controlEditingTypeModel){ |
| 38 | ?> |
| 39 | <div class="sb-control-input-ctn cff-fb-fs" :data-contains-suffix="control.fieldSuffix !== undefined ? 'true' : 'false'"> |
| 40 | <div class="sb-control-input-info" v-if="control.fieldPrefix">{{control.fieldPrefix.replace(/ /g," ")}}</div> |
| 41 | <input type="number" class="sb-control-input cff-fb-fs" :placeholder="control.placeholder ? control.placeholder : ''" :step="control.step ? control.step : 1" :max="control.max ? control.max : 1000" :min="control.min ? control.min : 0" v-model="<?php echo $controlEditingTypeModel ?>[control.id]" @change.prevent.default="changeSettingValue(control.id,false,false, control.ajaxAction ? control.ajaxAction : false)"> |
| 42 | <div class="sb-control-input-info" v-if="control.fieldSuffix">{{control.fieldSuffix.replace(/ /g," ")}}</div> |
| 43 | </div> |
| 44 | <?php |
| 45 | } |
| 46 | |
| 47 | } |