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 / Tabs / CTF_Builder_Customizer_Tab.php
custom-twitter-feeds / inc / Builder / Tabs Last commit date
CTF_Builder_Customizer_Tab.php 1 month ago CTF_Customize_Tab.php 1 month ago CTF_Settings_Tab.php 1 month ago CTF_Styling_Tab.php 1 month ago
CTF_Builder_Customizer_Tab.php
142 lines
1 <?php
2 /**
3 * Builder Customizer Tab
4 *
5 *
6 * @since 2.0
7 */
8 namespace TwitterFeed\Builder\Tabs;
9
10 if(!defined('ABSPATH')) exit;
11
12
13 class CTF_Builder_Customizer_Tab{
14
15 /**
16 * Get Tabs Data
17 *
18 *
19 * @since 2.0
20 * @access public
21 *
22 * @return array
23 */
24 public static function get_customizer_tabs(){
25 return [
26 'customize' => [
27 'id' => 'customize',
28 'heading' => __( 'Customize', 'custom-twitter-feeds' ),
29 'sections' => CTF_Customize_Tab::get_sections()
30 ],
31 'settings' => [
32 'id' => 'settings',
33 'heading' => __( 'Settings', 'custom-twitter-feeds' ),
34 'sections' => CTF_Settings_Tab::get_sections()
35 ]
36 ];
37 }
38
39
40 /**
41 * Text Size Options
42 *
43 *
44 * @since 2.0
45 * @access public
46 *
47 * @return array
48 */
49 public static function get_text_size_options(){
50 return [
51 'inherit' => __( 'Inherit', 'custom-twitter-feeds' ),
52 '10' => '10px',
53 '11' => '11px',
54 '12' => '12px',
55 '13' => '13px',
56 '14' => '14px',
57 '15' => '15px',
58 '16' => '16px',
59 '18' => '18px',
60 '20' => '20px',
61 '24' => '24px',
62 '28' => '28px',
63 '32' => '32px',
64 '36' => '36px',
65 '42' => '42px',
66 '48' => '48px',
67 '54' => '54px',
68 '60' => '60px',
69 ];
70 }
71
72
73 /**
74 * header Icons Options
75 *
76 *
77 * @since 2.0
78 * @access public
79 *
80 * @return array
81 */
82 public static function get_header_icons_options(){
83 return [
84 'facebook-square' => 'Facebook 1',
85 'facebook' => 'Facebook 2',
86 'calendar' => 'Events 1',
87 'calendar-o' => 'Events 2',
88 'picture-o' => 'Photos',
89 'users' => 'People',
90 'thumbs-o-up' => 'Thumbs Up 1',
91 'thumbs-up' => 'Thumbs Up 2',
92 'comment-o' => 'Speech Bubble 1',
93 'comment' => 'Speech Bubble 2',
94 'ticket' => 'Ticket',
95 'list-alt' => 'News List',
96 'file' => 'File 1',
97 'file-o' => 'File 2',
98 'file-text' => 'File 3',
99 'file-text-o' => 'File 4',
100 'youtube-play ' => 'Video',
101 'youtube-play' => 'YouTube',
102 'vimeo-square' => 'Vimeo',
103 ];
104 }
105
106 /**
107 * Date Format Options
108 *
109 *
110 * @since 2.0
111 * @access public
112 *
113 * @return array
114 */
115 public static function get_date_format_options(){
116
117 $original = strtotime('2016-07-25T17:30:00+0000');
118 return [
119 '1' => __('2m','custom-twitter-feeds'),
120 '2' => date('F j', $original),
121 '3' => date('F j, Y', $original),
122 '4' => date('m.d', $original),
123 '5' => date('m.d.y', $original),
124 '6' => date('D M jS, Y', $original),
125 '7' => date('l F jS, Y', $original),
126 '8' => date('l F jS, Y - g:i a', $original),
127 '9' => date("l M jS, 'y", $original),
128 '10' => date('m.d.y', $original),
129 '18' => date('m.d.y - G:i', $original),
130 '11' => date('m/d/y', $original),
131 '12' => date('d.m.y', $original),
132 '19' => date('d.m.y - G:i', $original),
133 '13' => date('d/m/y', $original),
134 '14' => date('d-m-Y, G:i', $original),
135 '15' => date('jS F Y, G:i', $original),
136 '16' => date('d M Y, G:i', $original),
137 '17' => date('l jS F Y, G:i', $original),
138 '20' => date('Y-m-d', $original),
139 'custom' => __('Custom','custom-twitter-feeds')
140 ];
141 }
142 }