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_Notice_Control.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customizer Builder |
| 4 | * Notice Control |
| 5 | * |
| 6 | * @since 2.0 |
| 7 | */ |
| 8 | namespace TwitterFeed\Builder\Controls; |
| 9 | |
| 10 | if(!defined('ABSPATH')) exit; |
| 11 | |
| 12 | class SB_Notice_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 'notice'; |
| 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-notice-ctn ctf-fb-fs" @click.prevent.default="control.containerAction != undefined ? noticeClickAction(control.containerAction) : false" :data-notice-action="control.containerAction != undefined ? 'true': false"> |
| 40 | <div class="sb-control-notice-content ctf-fb-fs"> |
| 41 | <div class="sb-control-notice-icon" v-if="control.noticeIcon != undefined" v-html="svgIcons[control.noticeIcon]"></div> |
| 42 | <div v-html="control.noticeDescription"></div> |
| 43 | </div> |
| 44 | <div class="ctf-fb-fs"> |
| 45 | <div class="sb-control-notice-btn ctf-fb-hd-btn ctf-btn-grey sb-button-standard ctf-small-chevron" data-icon="right" v-if="control.buttonAction != undefined" @click.prevent.default="noticeClickAction(control.buttonAction)"> |
| 46 | <span v-html="control.buttonActionText"></span> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | <?php |
| 51 | } |
| 52 | |
| 53 | } |