1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
|
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); }
return array( 'name' => esc_html__( 'Tweetmeme Button', 'js_composer' ), 'base' => 'vc_tweetmeme', 'icon' => 'icon-wpb-tweetme', 'category' => esc_html__( 'Social', 'js_composer' ), 'description' => esc_html__( 'Tweet button', 'js_composer' ), 'params' => array( array( 'type' => 'dropdown', 'param_name' => 'type', 'heading' => esc_html__( 'Choose a button', 'js_composer' ), 'value' => array( esc_html__( 'Share a link', 'js_composer' ) => 'share', esc_html__( 'Follow', 'js_composer' ) => 'follow', esc_html__( 'Hashtag', 'js_composer' ) => 'hashtag', esc_html__( 'Mention', 'js_composer' ) => 'mention', ), 'description' => esc_html__( 'Select type of Twitter button.', 'js_composer' ), ), // share type array( 'type' => 'checkbox', 'heading' => esc_html__( 'Share url: page URL', 'js_composer' ), 'param_name' => 'share_use_page_url', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'page_url', ), 'std' => 'page_url', 'dependency' => array( 'element' => 'type', 'value' => 'share', ), 'description' => esc_html__( 'Use the current page url to share?', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Share url: custom URL', 'js_composer' ), 'param_name' => 'share_use_custom_url', 'value' => '', 'dependency' => array( 'element' => 'share_use_page_url', 'value_not_equal_to' => 'page_url', ), 'description' => esc_html__( 'Enter custom page url which you like to share on twitter?', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Tweet text: page title', 'js_composer' ), 'param_name' => 'share_text_page_title', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'page_title', ), 'std' => 'page_title', 'dependency' => array( 'element' => 'type', 'value' => 'share', ), 'description' => esc_html__( 'Use the current page title as tweet text?', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Tweet text: custom text', 'js_composer' ), 'param_name' => 'share_text_custom_text', 'value' => '', 'dependency' => array( 'element' => 'share_text_page_title', 'value_not_equal_to' => 'page_title', ), 'description' => esc_html__( 'Enter the text to be used as a tweet?', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Via @', 'js_composer' ), 'param_name' => 'share_via', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'share', ), 'description' => esc_html__( 'Enter your Twitter username.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Recommend @', 'js_composer' ), 'param_name' => 'share_recommend', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'share', ), 'description' => esc_html__( 'Enter the Twitter username to be recommended.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Hashtag #', 'js_composer' ), 'param_name' => 'share_hashtag', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'share', ), 'description' => esc_html__( 'Add a comma-separated list of hashtags to a Tweet using the hashtags parameter.', 'js_composer' ), ), // follow type array( 'type' => 'textfield', 'heading' => esc_html__( 'User @', 'js_composer' ), 'param_name' => 'follow_user', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'follow', ), 'description' => esc_html__( 'Enter username to follow.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Show username', 'js_composer' ), 'param_name' => 'follow_show_username', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes', ), 'std' => 'yes', 'dependency' => array( 'element' => 'type', 'value' => 'follow', ), 'description' => esc_html__( 'Do you want to show username in button?', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Show followers count', 'js_composer' ), 'param_name' => 'show_followers_count', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'follow', ), 'description' => esc_html__( 'Do you want to displat the follower count in button?', 'js_composer' ), ), // hashtag type array( 'type' => 'textfield', 'heading' => esc_html__( 'Hashtag #', 'js_composer' ), 'param_name' => 'hashtag_hash', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'hashtag', ), 'description' => esc_html__( 'Add hashtag to a Tweet using the hashtags parameter', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Tweet text: No default text', 'js_composer' ), 'param_name' => 'hashtag_no_default', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes', ), 'std' => 'yes', 'dependency' => array( 'element' => 'type', 'value' => 'hashtag', ), 'description' => esc_html__( 'Set no default text for tweet?', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Tweet text: custom', 'js_composer' ), 'param_name' => 'hashtag_custom_tweet_text', 'value' => '', 'dependency' => array( 'element' => 'hashtag_no_default', 'value_not_equal_to' => 'yes', ), 'description' => esc_html__( 'Set custom text for tweet.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Recommend @', 'js_composer' ), 'param_name' => 'hashtag_recommend_1', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'hashtag', ), 'description' => esc_html__( 'Enter username to be recommended.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Recommend @', 'js_composer' ), 'param_name' => 'hashtag_recommend_2', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'hashtag', ), 'description' => esc_html__( 'Enter username to be recommended.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Tweet url: No URL', 'js_composer' ), 'param_name' => 'hashtag_no_url', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes', ), 'std' => 'yes', 'dependency' => array( 'element' => 'type', 'value' => 'hashtag', ), 'description' => esc_html__( 'Do you want to set no url to be tweeted?', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Tweet url: custom', 'js_composer' ), 'param_name' => 'hashtag_custom_tweet_url', 'value' => '', 'dependency' => array( 'element' => 'hashtag_no_url', 'value_not_equal_to' => 'yes', ), 'description' => esc_html__( 'Enter custom url to be used in the tweet.', 'js_composer' ), ), // mention type array( 'type' => 'textfield', 'heading' => esc_html__( 'Tweet to @', 'js_composer' ), 'param_name' => 'mention_tweet_to', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'mention', ), 'description' => esc_html__( 'Enter username where you want to send your tweet.', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Tweet text: No default text', 'js_composer' ), 'param_name' => 'mention_no_default', 'value' => array( esc_html__( 'Yes', 'js_composer' ) => 'yes', ), 'std' => 'yes', 'dependency' => array( 'element' => 'type', 'value' => 'mention', ), 'description' => esc_html__( 'Set no default text of the tweet?', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Tweet text: custom', 'js_composer' ), 'param_name' => 'mention_custom_tweet_text', 'value' => '', 'dependency' => array( 'element' => 'mention_no_default', 'value_not_equal_to' => 'yes', ), 'description' => esc_html__( 'Enter custom text for the tweet.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Recommend @', 'js_composer' ), 'param_name' => 'mention_recommend_1', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'mention', ), 'description' => esc_html__( 'Enter username to recommend.', 'js_composer' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Recommend @', 'js_composer' ), 'param_name' => 'mention_recommend_2', 'value' => '', 'dependency' => array( 'element' => 'type', 'value' => 'mention', ), 'description' => esc_html__( 'Enter username to recommend.', 'js_composer' ), ), // general array( 'type' => 'checkbox', 'heading' => esc_html__( 'Use large button', 'js_composer' ), 'param_name' => 'large_button', 'value' => '', 'description' => esc_html__( 'Do you like to display a larger Tweet button?', 'js_composer' ), ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Opt-out of tailoring Twitter', 'js_composer' ), 'param_name' => 'disable_tailoring', 'value' => '', 'description' => esc_html__( 'Tailored suggestions make building a great timeline. Would you like to disable this feature?', 'js_composer' ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Language', 'js_composer' ), 'param_name' => 'lang', 'value' => array( 'Automatic' => '', 'French - français' => 'fr', 'English' => 'en', 'Arabic - العربية' => 'ar', 'Japanese - 日本語' => 'ja', 'Spanish - Español' => 'es', 'German - Deutsch' => 'de', 'Italian - Italiano' => 'it', 'Indonesian - Bahasa Indonesia' => 'id', 'Portuguese - Português' => 'pt', 'Korean - 한국어' => 'ko', 'Turkish - Türkçe' => 'tr', 'Russian - Русский' => 'ru', 'Dutch - Nederlands' => 'nl', 'Filipino - Filipino' => 'fil', 'Malay - Bahasa Melayu' => 'msa', 'Traditional Chinese - 繁體中文' => 'zh-tw', 'Simplified Chinese - 简体中文' => 'zh-cn', 'Hindi - हिन्दी' => 'hi', 'Norwegian - Norsk' => 'no', 'Swedish - Svenska' => 'sv', 'Finnish - Suomi' => 'fi', 'Danish - Dansk' => 'da', 'Polish - Polski' => 'pl', 'Hungarian - Magyar' => 'hu', 'Farsi - فارسی' => 'fa', 'Hebrew - עִבְרִית' => 'he', 'Urdu - اردو' => 'ur', 'Thai - ภาษาไทย' => 'th', ), 'description' => esc_html__( 'Select button display language or allow it to be automatically defined by user preferences.', 'js_composer' ), ), vc_map_add_css_animation(), array( 'type' => 'el_id', 'heading' => esc_html__( 'Element ID', 'js_composer' ), 'param_name' => 'el_id', 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Extra class name', 'js_composer' ), 'param_name' => 'el_class', 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ), ), array( 'type' => 'css_editor', 'heading' => esc_html__( 'CSS box', 'js_composer' ), 'param_name' => 'css', 'group' => esc_html__( 'Design Options', 'js_composer' ), ), ), );
|