PluginProbe ʕ •ᴥ•ʔ
Custom Twitter Feeds – A Tweets Widget or X Feed Widget / 2.7.0
Custom Twitter Feeds – A Tweets Widget or X Feed Widget v2.7.0
2.8.0 2.7.0 2.6.1 2.6.0 1.0 1.0.1 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.2 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.4 1.4.1 1.5 1.5.1 1.6 1.6.1 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1 2.1.1 2.1.2 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.5.4 2.5.5 trunk
custom-twitter-feeds / inc / Builder / Controls / SB_Customview_Control.php
custom-twitter-feeds / inc / Builder / Controls Last commit date
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_Customview_Control.php
125 lines
1 <?php
2 /**
3 * Customizer Builder
4 * Custom View
5 * This control will used for custom HTMlL controls like (source, feed type...)
6 * @since 2.0
7 */
8 namespace TwitterFeed\Builder\Controls;
9
10 if(!defined('ABSPATH')) exit;
11
12 class SB_Customview_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 'customview';
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 $this->get_control_sources_output($controlEditingTypeModel);
39 $this->get_control_feedtemplate_output($controlEditingTypeModel);
40 }
41
42
43
44
45
46
47
48
49 /**
50 * Feed Type Output Control
51 *
52 *
53 * @since 2.0
54 * @access public
55 *
56 * @return HTML
57 */
58 public function get_control_sources_output($controlEditingTypeModel){
59 ?>
60 <div class="sb-control-feedtype-ctn" v-if="control.viewId == 'sources'">
61
62 <div class="sb-control-feedtype-item ctf-fb-fs" v-for="(feedType, feedTypeID) in selectSourceScreen.multipleTypes" v-if="checkMultipleFeedTypeActiveCustomizer(feedTypeID)">
63 <div class="sb-control-elem-label-title ctf-fb-fs">
64 <div class="sb-control-elem-heading sb-small-p sb-dark-text" v-html="feedType.heading"></div>
65 <!--<div class="sb-control-elem-tltp" @mouseover.prevent.default="toggleElementTooltip(feedType.description, 'show', 'center' )" @mouseleave.prevent.default="toggleElementTooltip('', 'hide')">
66 <div class="sb-control-elem-tltp-icon" v-html="svgIcons['info']"></div>
67 </div>-->
68 </div>
69 <div class="sb-control-feedtype-list ctf-fb-fs" v-if="feedTypeID != 'mentionstimeline' && feedTypeID != 'hometimeline'">
70 <div class="sb-control-feedtype-list-item" v-for="selectedSource in returnSelectedSourcesByTypeCustomizer(feedTypeID)">
71 <div class="sb-control-feedtype-list-item-icon" v-html="svgIcons[selectSourceScreen.multipleTypes[feedTypeID].icon]"></div>
72 <span v-html="feedTypeID == 'lists' ? selectedSource.name : selectedSource"></span>
73 </div>
74 </div>
75
76 <div class="sb-control-feedtype-list ctf-fb-fs" v-if="feedTypeID == 'mentionstimeline' || feedTypeID == 'hometimeline'">
77 <div class="sb-control-feedtype-list-item">
78 <div class="sb-control-feedtype-list-item-icon" v-html="svgIcons['user']"></div>
79 <span v-html="accountDetails.account_handle"></span>
80 </div>
81 </div>
82
83 </div>
84
85 <button class="sb-control-action-button sb-btn sb-btn-grey ctf-fb-fs" @click.prevent.default="openFeedTypesPopupCustomizer()">
86 <div v-html="svgIcons['edit']"></div>
87 <span>{{genericText.editSources}}</span>
88 </button>
89
90 </div>
91 <?php
92 }
93
94 /**
95 * Feed Templates Output Control
96 *
97 *
98 * @since 4.0
99 * @access public
100 *
101 * @return HTML
102 */
103 public function get_control_feedtemplate_output($controlEditingTypeModel){
104 ?>
105 <div :class="['sb-control-feedtype-ctn sb-control-feedtemplate-ctn', 'ctf-feedtemplate-' + customizerScreens.printedTemplate.type]" v-if="control.viewId == 'feedtemplate'">
106 <div class="ctf-fb-type-el" v-if="customizerFeedTemplatePrint()" @click.prevent.default="activateView('feedtemplatesPopup')">
107 <div class="ctf-fb-type-el-img ctf-fb-fs" v-html="svgIcons[customizerScreens.printedTemplate.icon]"></div>
108 <div class="ctf-fb-type-el-info ctf-fb-fs">
109 <strong class="ctf-fb-fs" v-html="customizerScreens.printedTemplate.title"></strong>
110 </div>
111 </div>
112 <button class="sb-control-action-button sb-btn ctf-fb-fs sb-btn-grey" @click.prevent.default="activateView('feedtemplatesPopup')">
113 <div v-html="svgIcons['edit']"></div>
114 <span>{{genericText.change}}</span>
115 </button>
116 <p class="ctf-fb-feedtemplate-alert ctf-fb-fs">
117 <span v-html="svgIcons['info']"></span>
118 {{selectFeedTemplateScreen.updateHeadingWarning2}}
119 </p>
120 </div>
121
122 <?php
123 }
124
125 }