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 / SB_Builder_Customizer.php
custom-twitter-feeds / inc / Builder Last commit date
Controls 1 month ago Tabs 1 month ago CTF_Db.php 1 month ago CTF_Feed_Builder.php 1 month ago CTF_Feed_Saver.php 1 month ago CTF_Feed_Saver_Manager.php 1 month ago CTF_Post_Set.php 1 month ago CTF_Theme_CSS.php 1 month ago CTF_Tooltip_Wizard.php 1 month ago SB_Builder_Customizer.php 1 month ago
SB_Builder_Customizer.php
97 lines
1 <?php
2 /**
3 * Customizer Builder
4 *
5 *
6 * @since 2.0
7 */
8 namespace TwitterFeed\Builder;
9
10 if(!defined('ABSPATH')) exit;
11
12 class SB_Builder_Customizer{
13
14
15 /**
16 * Controls Classes Array
17 *
18 *
19 * @since 2.0
20 * @access private
21 *
22 * @var array
23 */
24 public static $controls_classes = [];
25
26
27 /**
28 * Get controls list.
29 *
30 * Getting controls list
31 *
32 * @since 2.0
33 * @access public
34 *
35 * @return array
36 */
37 public static function get_controls_list(){
38 return [
39 'actionbutton',
40 'checkbox',
41 'checkboxsection',
42 'datepicker',
43 'colorpicker',
44 'number',
45 'select',
46 'switcher',
47 'text',
48 'textarea',
49 'toggle',
50 'toggleset',
51 'heading',
52 'separator',
53 'customview',
54 'coloroverride',
55 'togglebutton',
56 'hidden',
57 'imagechooser',
58 'checkboxlist',
59 'notice'
60 ];
61 }
62
63 /**
64 * Register Controls
65 *
66 * Including Control
67 *
68 * @since 2.0
69 * @access public
70 *
71 */
72 public static function register_controls(){
73 $controls_list = self::get_controls_list();
74 foreach ($controls_list as $control) {
75 $controlClassName = 'SB_'.ucfirst($control).'_Control';
76 $cls_name = __NAMESPACE__.''.'\Controls\\'.$controlClassName;
77 $control_class = new $cls_name();
78 self::$controls_classes[$control] = $control_class;
79 }
80 }
81
82 /**
83 * Print Controls Vue JS Tempalte
84 *
85 * Including Control
86 *
87 * @since 2.0
88 * @access public
89 *
90 */
91 public static function get_controls_templates($editingType){
92 $controls_list = self::get_controls_list();
93 foreach ($controls_list as $control) {
94 self::$controls_classes[$control]->print_control_wrapper($editingType);
95 }
96 }
97 }