Custom Facebook Feed - Version 4.1.1

Version Description

  • Fix: Updating from version 2.x to version 4.1 would not transfer legacy sources.
  • Fix: Improved plugin hardening by removing unused admin pages.
Download this release

Release Info

Developer Craig at Smash Balloon
Plugin Icon 128x128 Custom Facebook Feed
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1 to 4.1.1

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: smashballoon
3
  Tags: Facebook, Facebook feed, Facebook posts, Facebook group, Facebook page
4
  Requires at least: 4.1
5
  Requires PHP: 5.6
6
- Tested up to: 5.8
7
- Stable tag: 4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -262,6 +262,10 @@ The most common reason for this is that an add-on or extension you have installe
262
  9. It's super easy to display your Facebook feed in any page or post
263
 
264
  == Changelog ==
 
 
 
 
265
  = 4.1 =
266
  * Tweak: The Facebook app used to connect groups has changed. If you are using a Facebook group feed, then please reconnect your group accounts using the new app when convenient to prevent any future issues. When reconnecting, follow the included directions on how to add the new app to your group settings.
267
  * Tweak: All Facebook data is now encrypted in your WordPress database.
3
  Tags: Facebook, Facebook feed, Facebook posts, Facebook group, Facebook page
4
  Requires at least: 4.1
5
  Requires PHP: 5.6
6
+ Tested up to: 5.9
7
+ Stable tag: 4.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
262
  9. It's super easy to display your Facebook feed in any page or post
263
 
264
  == Changelog ==
265
+ = 4.1.1 =
266
+ * Fix: Updating from version 2.x to version 4.1 would not transfer legacy sources.
267
+ * Fix: Improved plugin hardening by removing unused admin pages.
268
+
269
  = 4.1 =
270
  * Tweak: The Facebook app used to connect groups has changed. If you are using a Facebook group feed, then please reconnect your group accounts using the new app when convenient to prevent any future issues. When reconnecting, follow the included directions on how to add the new app to your group settings.
271
  * Tweak: All Facebook data is now encrypted in your WordPress database.
admin/admin-functions.php CHANGED
@@ -10,5122 +10,27 @@ function cff_group_cache_function(){
10
  CustomFacebookFeed\CFF_Group_Posts::cron_update_group_persistent_cache();
11
  }
12
 
 
 
 
 
 
13
 
14
- //Create Style page
15
- function cff_style_page() {
16
- //Declare variables for fields
17
- $style_hidden_field_name = 'cff_style_submit_hidden';
18
- $style_general_hidden_field_name = 'cff_style_general_submit_hidden';
19
- $style_post_layout_hidden_field_name = 'cff_style_post_layout_submit_hidden';
20
- $style_typography_hidden_field_name = 'cff_style_typography_submit_hidden';
21
- $style_misc_hidden_field_name = 'cff_style_misc_submit_hidden';
22
- $style_custom_text_hidden_field_name = 'cff_style_custom_text_submit_hidden';
23
-
24
- //Defaults need to be here on the Settings page so that they're saved when the initial settings are saved
25
- $defaults = array(
26
- //Post types
27
- 'cff_show_links_type' => true,
28
- 'cff_show_event_type' => true,
29
- 'cff_show_video_type' => true,
30
- 'cff_show_photos_type' => true,
31
- 'cff_show_status_type' => true,
32
- //Layout
33
- 'cff_preset_layout' => 'thumb',
34
- //Include
35
- 'cff_show_text' => true,
36
- 'cff_show_desc' => true,
37
- 'cff_show_shared_links' => true,
38
- 'cff_show_date' => true,
39
- 'cff_show_media' => true,
40
- 'cff_show_media_link' => true,
41
- 'cff_show_event_title' => true,
42
- 'cff_show_event_details' => true,
43
- 'cff_show_meta' => true,
44
- 'cff_show_link' => true,
45
- 'cff_show_like_box' => true,
46
- //Post Style
47
- 'cff_post_style' => '',
48
- 'cff_post_bg_color' => '',
49
- 'cff_post_rounded' => '0',
50
- 'cff_box_shadow' => false,
51
- //Typography
52
- 'cff_title_format' => 'p',
53
- 'cff_title_size' => 'inherit',
54
- 'cff_title_weight' => 'inherit',
55
- 'cff_title_color' => '',
56
- 'cff_posttext_link_color' => '',
57
- 'cff_body_size' => '12',
58
- 'cff_body_weight' => 'inherit',
59
- 'cff_body_color' => '',
60
- 'cff_link_title_format' => 'p',
61
- 'cff_link_title_size' => 'inherit',
62
- 'cff_link_url_size' => '12',
63
- 'cff_link_desc_size' => 'inherit',
64
- 'cff_link_desc_color' => '',
65
- 'cff_link_title_color' => '',
66
- 'cff_link_url_color' => '',
67
- 'cff_link_bg_color' => '',
68
- 'cff_link_border_color' => '',
69
- 'cff_disable_link_box' => '',
70
- //Event title
71
- 'cff_event_title_format' => 'p',
72
- 'cff_event_title_size' => 'inherit',
73
- 'cff_event_title_weight' => 'inherit',
74
- 'cff_event_title_color' => '',
75
- //Event date
76
- 'cff_event_date_size' => 'inherit',
77
- 'cff_event_date_weight' => 'inherit',
78
- 'cff_event_date_color' => '',
79
- 'cff_event_date_position' => 'below',
80
- 'cff_event_date_formatting' => '1',
81
- 'cff_event_date_custom' => '',
82
- //Event details
83
- 'cff_event_details_size' => 'inherit',
84
- 'cff_event_details_weight' => 'inherit',
85
- 'cff_event_details_color' => '',
86
- 'cff_event_link_color' => '',
87
- //Date
88
- 'cff_date_position' => 'author',
89
- 'cff_date_size' => 'inherit',
90
- 'cff_date_weight' => 'inherit',
91
- 'cff_date_color' => '',
92
- 'cff_date_formatting' => '1',
93
- 'cff_date_custom' => '',
94
- 'cff_date_before' => '',
95
- 'cff_date_after' => '',
96
- 'cff_timezone' => 'America/Chicago',
97
-
98
- //Link to Facebook
99
- 'cff_link_size' => 'inherit',
100
- 'cff_link_weight' => 'inherit',
101
- 'cff_link_color' => '',
102
- 'cff_facebook_link_text' => 'View on Facebook',
103
- 'cff_view_link_text' => 'View Link',
104
- 'cff_link_to_timeline' => false,
105
- //Meta
106
- 'cff_icon_style' => 'light',
107
- 'cff_meta_text_color' => '',
108
- 'cff_meta_bg_color' => '',
109
- 'cff_nocomments_text' => 'No comments yet',
110
- 'cff_hide_comments' => '',
111
- //Misc
112
- 'cff_feed_width' => '100%',
113
- 'cff_feed_width_resp' => false,
114
- 'cff_feed_height' => '',
115
- 'cff_feed_padding' => '',
116
- 'cff_like_box_position' => 'bottom',
117
- 'cff_like_box_outside' => false,
118
- 'cff_likebox_width' => '',
119
- 'cff_likebox_height' => '',
120
- 'cff_like_box_faces' => false,
121
- 'cff_like_box_border' => false,
122
- 'cff_like_box_cover' => true,
123
- 'cff_like_box_small_header' => false,
124
- 'cff_like_box_hide_cta' => false,
125
-
126
- 'cff_bg_color' => '',
127
- 'cff_likebox_bg_color' => '',
128
- 'cff_like_box_text_color' => 'blue',
129
- 'cff_video_height' => '',
130
- 'cff_show_author' => true,
131
- 'cff_class' => '',
132
- 'cff_open_links' => true,
133
- 'cff_cron' => 'unset',
134
- 'cff_request_method' => 'auto',
135
- 'cff_disable_styles' => false,
136
- 'cff_format_issue' => false,
137
- 'cff_restricted_page' => false,
138
- 'cff_cols' => 1,
139
- 'cff_cols_mobile' => 1,
140
-
141
- //New
142
- 'gdpr' => 'auto',
143
- 'cff_custom_css' => '',
144
- 'cff_custom_js' => '',
145
- 'cff_title_link' => false,
146
- 'cff_post_tags' => true,
147
- 'cff_link_hashtags' => true,
148
- 'cff_event_title_link' => true,
149
- 'cff_video_action' => 'post',
150
- 'cff_app_id' => '',
151
- 'cff_show_credit' => '',
152
- 'cff_font_source' => '',
153
- 'cff_enqueue_with_shortcode' => false,
154
- 'cff_minify' => false,
155
- 'disable_admin_notice' => false,
156
- 'cff_sep_color' => '',
157
- 'cff_sep_size' => '1',
158
-
159
- //Feed Header
160
- 'cff_show_header' => '',
161
- 'cff_header_type' => '',
162
- 'cff_header_cover' => true,
163
- 'cff_header_name' => true,
164
- 'cff_header_bio' => true,
165
- 'cff_header_outside' => false,
166
- 'cff_header_cover_height' => '300',
167
- 'cff_header_text' => 'Facebook Posts',
168
- 'cff_header_bg_color' => '',
169
- 'cff_header_padding' => '',
170
- 'cff_header_text_size' => '',
171
- 'cff_header_text_weight' => '',
172
- 'cff_header_text_color' => '',
173
- 'cff_header_icon' => '',
174
- 'cff_header_icon_color' => '',
175
- 'cff_header_icon_size' => '28',
176
-
177
- //Author
178
- 'cff_author_size' => 'inherit',
179
- 'cff_author_color' => '',
180
-
181
- //Translate - general
182
- 'cff_see_more_text' => 'See More',
183
- 'cff_see_less_text' => 'See Less',
184
- 'cff_facebook_link_text' => 'View on Facebook',
185
- 'cff_facebook_share_text' => 'Share',
186
- 'cff_show_facebook_link' => true,
187
- 'cff_show_facebook_share' => true,
188
-
189
- 'cff_translate_photos_text' => 'photos',
190
- 'cff_translate_photo_text' => 'Photo',
191
- 'cff_translate_video_text' => 'Video',
192
-
193
- 'cff_translate_learn_more_text' => 'Learn More',
194
- 'cff_translate_shop_now_text' => 'Shop Now',
195
- 'cff_translate_message_page_text' => 'Message Page',
196
-
197
- //Translate - date
198
- 'cff_translate_second' => 'second',
199
- 'cff_translate_seconds' => 'seconds',
200
- 'cff_translate_minute' => 'minute',
201
- 'cff_translate_minutes' => 'minutes',
202
- 'cff_translate_hour' => 'hour',
203
- 'cff_translate_hours' => 'hours',
204
- 'cff_translate_day' => 'day',
205
- 'cff_translate_days' => 'days',
206
- 'cff_translate_week' => 'week',
207
- 'cff_translate_weeks' => 'weeks',
208
- 'cff_translate_month' => 'month',
209
- 'cff_translate_months' => 'months',
210
- 'cff_translate_year' => 'year',
211
- 'cff_translate_years' => 'years',
212
- 'cff_translate_ago' => 'ago',
213
-
214
- // email
215
- 'enable_email_report' => 'on',
216
- 'email_notification' => 'monday',
217
- 'email_notification_addresses' => get_option( 'admin_email' )
218
- );
219
- //Save layout option in an array
220
- $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
221
- add_option( 'cff_style_settings', $options );
222
-
223
- //Set the page variables
224
- //Post types
225
- $cff_show_links_type = $options[ 'cff_show_links_type' ];
226
- $cff_show_event_type = $options[ 'cff_show_event_type' ];
227
- $cff_show_video_type = $options[ 'cff_show_video_type' ];
228
- $cff_show_photos_type = $options[ 'cff_show_photos_type' ];
229
- $cff_show_status_type = $options[ 'cff_show_status_type' ];
230
- //Layout
231
- $cff_preset_layout = $options[ 'cff_preset_layout' ];
232
- //Include
233
- $cff_show_text = $options[ 'cff_show_text' ];
234
- $cff_show_desc = $options[ 'cff_show_desc' ];
235
- $cff_show_shared_links = $options[ 'cff_show_shared_links' ];
236
- $cff_show_date = $options[ 'cff_show_date' ];
237
- $cff_show_media = $options[ 'cff_show_media' ];
238
- $cff_show_media_link = $options[ 'cff_show_media_link' ];
239
- $cff_show_event_title = $options[ 'cff_show_event_title' ];
240
- $cff_show_event_details = $options[ 'cff_show_event_details' ];
241
- $cff_show_meta = $options[ 'cff_show_meta' ];
242
- $cff_show_link = $options[ 'cff_show_link' ];
243
- $cff_show_like_box = $options[ 'cff_show_like_box' ];
244
- //Post Style
245
- $cff_post_style = $options[ 'cff_post_style' ];
246
- $cff_post_bg_color = $options[ 'cff_post_bg_color' ];
247
- $cff_post_rounded = $options[ 'cff_post_rounded' ];
248
- $cff_box_shadow = $options[ 'cff_box_shadow' ];
249
-
250
- //Typography
251
- $cff_see_more_text = $options[ 'cff_see_more_text' ];
252
- $cff_see_less_text = $options[ 'cff_see_less_text' ];
253
- $cff_title_format = $options[ 'cff_title_format' ];
254
- $cff_title_size = $options[ 'cff_title_size' ];
255
- $cff_title_weight = $options[ 'cff_title_weight' ];
256
- $cff_title_color = $options[ 'cff_title_color' ];
257
- $cff_posttext_link_color = $options[ 'cff_posttext_link_color' ];
258
- $cff_body_size = $options[ 'cff_body_size' ];
259
- $cff_body_weight = $options[ 'cff_body_weight' ];
260
- $cff_body_color = $options[ 'cff_body_color' ];
261
- $cff_link_title_format = $options[ 'cff_link_title_format' ];
262
- $cff_link_title_size = $options[ 'cff_link_title_size' ];
263
- $cff_link_url_size = $options[ 'cff_link_url_size' ];
264
- $cff_link_desc_size = $options[ 'cff_link_desc_size' ];
265
- $cff_link_desc_color = $options[ 'cff_link_desc_color' ];
266
- $cff_link_title_color = $options[ 'cff_link_title_color' ];
267
- $cff_link_url_color = $options[ 'cff_link_url_color' ];
268
- $cff_link_bg_color = $options[ 'cff_link_bg_color' ];
269
- $cff_link_border_color = $options[ 'cff_link_border_color' ];
270
- $cff_disable_link_box = $options[ 'cff_disable_link_box' ];
271
-
272
- //Event title
273
- $cff_event_title_format = $options[ 'cff_event_title_format' ];
274
- $cff_event_title_size = $options[ 'cff_event_title_size' ];
275
- $cff_event_title_weight = $options[ 'cff_event_title_weight' ];
276
- $cff_event_title_color = $options[ 'cff_event_title_color' ];
277
- //Event date
278
- $cff_event_date_size = $options[ 'cff_event_date_size' ];
279
- $cff_event_date_weight = $options[ 'cff_event_date_weight' ];
280
- $cff_event_date_color = $options[ 'cff_event_date_color' ];
281
- $cff_event_date_position = $options[ 'cff_event_date_position' ];
282
- $cff_event_date_formatting = $options[ 'cff_event_date_formatting' ];
283
- $cff_event_date_custom = $options[ 'cff_event_date_custom' ];
284
- //Event details
285
- $cff_event_details_size = $options[ 'cff_event_details_size' ];
286
- $cff_event_details_weight = $options[ 'cff_event_details_weight' ];
287
- $cff_event_details_color = $options[ 'cff_event_details_color' ];
288
- $cff_event_link_color = $options[ 'cff_event_link_color' ];
289
- //Date
290
- $cff_date_position = $options[ 'cff_date_position' ];
291
- $cff_date_size = $options[ 'cff_date_size' ];
292
- $cff_date_weight = $options[ 'cff_date_weight' ];
293
- $cff_date_color = $options[ 'cff_date_color' ];
294
- $cff_date_formatting = $options[ 'cff_date_formatting' ];
295
- $cff_date_custom = $options[ 'cff_date_custom' ];
296
- $cff_date_before = $options[ 'cff_date_before' ];
297
- $cff_date_after = $options[ 'cff_date_after' ];
298
- $cff_timezone = $options[ 'cff_timezone' ];
299
-
300
- //Date translate
301
- $cff_translate_second = $options[ 'cff_translate_second' ];
302
- $cff_translate_seconds = $options[ 'cff_translate_seconds' ];
303
- $cff_translate_minute = $options[ 'cff_translate_minute' ];
304
- $cff_translate_minutes = $options[ 'cff_translate_minutes' ];
305
- $cff_translate_hour = $options[ 'cff_translate_hour' ];
306
- $cff_translate_hours = $options[ 'cff_translate_hours' ];
307
- $cff_translate_day = $options[ 'cff_translate_day' ];
308
- $cff_translate_days = $options[ 'cff_translate_days' ];
309
- $cff_translate_week = $options[ 'cff_translate_week' ];
310
- $cff_translate_weeks = $options[ 'cff_translate_weeks' ];
311
- $cff_translate_month = $options[ 'cff_translate_month' ];
312
- $cff_translate_months = $options[ 'cff_translate_months' ];
313
- $cff_translate_year = $options[ 'cff_translate_year' ];
314
- $cff_translate_years = $options[ 'cff_translate_years' ];
315
- $cff_translate_ago = $options[ 'cff_translate_ago' ];
316
- //Photos translate
317
- $cff_translate_photos_text = $options[ 'cff_translate_photos_text' ];
318
- $cff_translate_photo_text = $options[ 'cff_translate_photo_text' ];
319
- $cff_translate_video_text = $options[ 'cff_translate_video_text' ];
320
-
321
- $cff_translate_learn_more_text = $options[ 'cff_translate_learn_more_text' ];
322
- $cff_translate_shop_now_text = $options[ 'cff_translate_shop_now_text' ];
323
- $cff_translate_message_page_text = $options[ 'cff_translate_message_page_text' ];
324
-
325
- //View on Facebook link
326
- $cff_link_size = $options[ 'cff_link_size' ];
327
- $cff_link_weight = $options[ 'cff_link_weight' ];
328
- $cff_link_color = $options[ 'cff_link_color' ];
329
- $cff_facebook_link_text = $options[ 'cff_facebook_link_text' ];
330
- $cff_view_link_text = $options[ 'cff_view_link_text' ];
331
- $cff_link_to_timeline = $options[ 'cff_link_to_timeline' ];
332
- $cff_facebook_share_text = $options[ 'cff_facebook_share_text' ];
333
- $cff_show_facebook_link = $options[ 'cff_show_facebook_link' ];
334
- $cff_show_facebook_share = $options[ 'cff_show_facebook_share' ];
335
- //Meta
336
- $cff_icon_style = $options[ 'cff_icon_style' ];
337
- $cff_meta_text_color = $options[ 'cff_meta_text_color' ];
338
- $cff_meta_bg_color = $options[ 'cff_meta_bg_color' ];
339
- $cff_nocomments_text = $options[ 'cff_nocomments_text' ];
340
- $cff_hide_comments = $options[ 'cff_hide_comments' ];
341
- //Misc
342
- $cff_feed_width = $options[ 'cff_feed_width' ];
343
- $cff_feed_width_resp = $options[ 'cff_feed_width_resp' ];
344
- $cff_feed_height = $options[ 'cff_feed_height' ];
345
- $cff_feed_padding = $options[ 'cff_feed_padding' ];
346
- $cff_like_box_position = $options[ 'cff_like_box_position' ];
347
- $cff_like_box_outside = $options[ 'cff_like_box_outside' ];
348
- $cff_likebox_width = $options[ 'cff_likebox_width' ];
349
- $cff_likebox_height = $options[ 'cff_likebox_height' ];
350
- $cff_like_box_faces = $options[ 'cff_like_box_faces' ];
351
- $cff_like_box_border = $options[ 'cff_like_box_border' ];
352
- $cff_like_box_cover = $options[ 'cff_like_box_cover' ];
353
- $cff_like_box_small_header = $options[ 'cff_like_box_small_header' ];
354
- $cff_like_box_hide_cta = $options[ 'cff_like_box_hide_cta' ];
355
-
356
-
357
- $cff_show_media = $options[ 'cff_show_media' ];
358
- $cff_bg_color = $options[ 'cff_bg_color' ];
359
- $cff_likebox_bg_color = $options[ 'cff_likebox_bg_color' ];
360
- $cff_like_box_text_color = $options[ 'cff_like_box_text_color' ];
361
- $cff_video_height = $options[ 'cff_video_height' ];
362
- $cff_show_author = $options[ 'cff_show_author' ];
363
- $cff_class = $options[ 'cff_class' ];
364
- $cff_open_links = $options[ 'cff_open_links' ];
365
- $cff_app_id = $options[ 'cff_app_id' ];
366
- $cff_show_credit = $options[ 'cff_show_credit' ];
367
- $cff_font_source = $options[ 'cff_font_source' ];
368
- $cff_preserve_settings = 'cff_preserve_settings';
369
- $cff_preserve_settings_val = get_option( $cff_preserve_settings );
370
- $cff_cron = $options[ 'cff_cron' ];
371
- $cff_request_method = $options[ 'cff_request_method' ];
372
- $cff_disable_styles = $options[ 'cff_disable_styles' ];
373
- $cff_format_issue = $options[ 'cff_format_issue' ];
374
- $cff_restricted_page = $options[ 'cff_restricted_page' ];
375
- $cff_enqueue_with_shortcode = $options[ 'cff_enqueue_with_shortcode' ];
376
- $cff_minify = $options[ 'cff_minify' ];
377
- $cff_cols = $options[ 'cff_cols' ];
378
- $cff_cols_mobile = $options[ 'cff_cols_mobile' ];
379
- $cff_disable_admin_notice = $options[ 'disable_admin_notice' ];
380
- $cff_enable_email_report = $options[ 'enable_email_report' ];
381
- $cff_email_notification = $options[ 'email_notification' ];
382
- $cff_email_notification_addresses = $options[ 'email_notification_addresses' ];
383
-
384
- //Page Header
385
- $cff_show_header = $options[ 'cff_show_header' ];
386
- $cff_header_type = $options[ 'cff_header_type' ];
387
- $cff_header_cover = $options[ 'cff_header_cover' ];
388
- $cff_header_name = $options[ 'cff_header_name' ];
389
- $cff_header_bio = $options[ 'cff_header_bio' ];
390
- $cff_header_cover_height = $options[ 'cff_header_cover_height' ];
391
- $cff_header_outside = $options[ 'cff_header_outside' ];
392
- $cff_header_text = $options[ 'cff_header_text' ];
393
- $cff_header_bg_color = $options[ 'cff_header_bg_color' ];
394
- $cff_header_padding = $options[ 'cff_header_padding' ];
395
- $cff_header_text_size = $options[ 'cff_header_text_size' ];
396
- $cff_header_text_weight = $options[ 'cff_header_text_weight' ];
397
- $cff_header_text_color = $options[ 'cff_header_text_color' ];
398
- $cff_header_icon = $options[ 'cff_header_icon' ];
399
- $cff_header_icon_color = $options[ 'cff_header_icon_color' ];
400
- $cff_header_icon_size = $options[ 'cff_header_icon_size' ];
401
-
402
- //Author
403
- $cff_author_size = $options[ 'cff_author_size' ];
404
- $cff_author_color = $options[ 'cff_author_color' ];
405
-
406
- $gdpr = $options[ 'gdpr' ];
407
- //New
408
- $cff_custom_css = $options[ 'cff_custom_css' ];
409
- $cff_custom_js = $options[ 'cff_custom_js' ];
410
- $cff_title_link = $options[ 'cff_title_link' ];
411
- $cff_post_tags = $options[ 'cff_post_tags' ];
412
- $cff_link_hashtags = $options[ 'cff_link_hashtags' ];
413
- $cff_event_title_link = $options[ 'cff_event_title_link' ];
414
- $cff_video_action = $options[ 'cff_video_action' ];
415
- $cff_sep_color = $options[ 'cff_sep_color' ];
416
- $cff_sep_size = $options[ 'cff_sep_size' ];
417
-
418
- // Texts lengths
419
- $cff_title_length = 'cff_title_length';
420
- $cff_body_length = 'cff_body_length';
421
- // Read in existing option value from database
422
- $cff_title_length_val = get_option( $cff_title_length, '400' );
423
- $cff_body_length_val = get_option( $cff_body_length, '200' );
424
-
425
- //Ajax
426
- $cff_ajax = 'cff_ajax';
427
- $cff_ajax_val = get_option( $cff_ajax );
428
-
429
- //Check nonce before saving data
430
- if ( ! isset( $_POST['cff_customize_nonce'] ) || ! wp_verify_nonce( $_POST['cff_customize_nonce'], 'cff_saving_customize' ) ) {
431
- //Nonce did not verify
432
- } else {
433
- // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
434
- if( isset($_POST[ $style_hidden_field_name ]) && $_POST[ $style_hidden_field_name ] == 'Y' ) {
435
- //Update the General options
436
- if( isset($_POST[ $style_general_hidden_field_name ]) && $_POST[ $style_general_hidden_field_name ] == 'Y' ) {
437
- //General
438
- if (isset($_POST[ 'cff_feed_width' ]) ) $cff_feed_width = sanitize_text_field( $_POST[ 'cff_feed_width' ] );
439
- (isset($_POST[ 'cff_feed_width_resp' ]) ) ? $cff_feed_width_resp = sanitize_text_field( $_POST[ 'cff_feed_width_resp' ] ) : $cff_feed_width_resp = '';
440
- if (isset($_POST[ 'cff_feed_height' ]) ) $cff_feed_height = sanitize_text_field( $_POST[ 'cff_feed_height' ] );
441
- if (isset($_POST[ 'cff_feed_padding' ]) ) $cff_feed_padding = sanitize_text_field( $_POST[ 'cff_feed_padding' ] );
442
- if (isset($_POST[ 'cff_bg_color' ]) ) $cff_bg_color = sanitize_text_field( $_POST[ 'cff_bg_color' ] );
443
- if (isset($_POST[ 'cff_class' ]) ) $cff_class = sanitize_text_field( $_POST[ 'cff_class' ] );
444
- if (isset($_POST[ 'cff_cols' ])) $cff_cols = sanitize_text_field( $_POST[ 'cff_cols' ] );
445
- if (isset($_POST[ 'cff_cols_mobile' ])) $cff_cols_mobile = sanitize_text_field( $_POST[ 'cff_cols_mobile' ] );
446
-
447
- //Page Header
448
- (isset($_POST[ 'cff_show_header' ])) ? $cff_show_header = sanitize_text_field( $_POST[ 'cff_show_header' ] ) : $cff_show_header = '';
449
- (isset($_POST[ 'cff_header_type' ])) ? $cff_header_type = $_POST[ 'cff_header_type' ] : $cff_header_type = '';
450
- (isset($_POST[ 'cff_header_cover' ])) ? $cff_header_cover = $_POST[ 'cff_header_cover' ] : $cff_header_cover = '';
451
- (isset($_POST[ 'cff_header_name' ])) ? $cff_header_name = $_POST[ 'cff_header_name' ] : $cff_header_name = '';
452
- (isset($_POST[ 'cff_header_bio' ])) ? $cff_header_bio = $_POST[ 'cff_header_bio' ] : $cff_header_bio = '';
453
- (isset($_POST[ 'cff_header_cover_height' ])) ? $cff_header_cover_height = $_POST[ 'cff_header_cover_height' ] : $cff_header_cover_height = '';
454
- (isset($_POST[ 'cff_header_outside' ])) ? $cff_header_outside = sanitize_text_field( $_POST[ 'cff_header_outside' ] ) : $cff_header_outside = '';
455
- if (isset($_POST[ 'cff_header_text' ])) $cff_header_text = sanitize_text_field( $_POST[ 'cff_header_text' ] );
456
- if (isset($_POST[ 'cff_header_bg_color' ])) $cff_header_bg_color = sanitize_text_field( $_POST[ 'cff_header_bg_color' ] );
457
- if (isset($_POST[ 'cff_header_padding' ])) $cff_header_padding = sanitize_text_field( $_POST[ 'cff_header_padding' ] );
458
- if (isset($_POST[ 'cff_header_text_size' ])) $cff_header_text_size = sanitize_text_field( $_POST[ 'cff_header_text_size' ] );
459
- if (isset($_POST[ 'cff_header_text_weight' ])) $cff_header_text_weight = sanitize_text_field( $_POST[ 'cff_header_text_weight' ] );
460
- if (isset($_POST[ 'cff_header_text_color' ])) $cff_header_text_color = sanitize_text_field( $_POST[ 'cff_header_text_color' ] );
461
- if (isset($_POST[ 'cff_header_icon' ])) $cff_header_icon = sanitize_text_field( $_POST[ 'cff_header_icon' ] );
462
- if (isset($_POST[ 'cff_header_icon_color' ])) $cff_header_icon_color = sanitize_text_field( $_POST[ 'cff_header_icon_color' ] );
463
- if (isset($_POST[ 'cff_header_icon_size' ])) $cff_header_icon_size = sanitize_text_field( $_POST[ 'cff_header_icon_size' ] );
464
-
465
- //Like Box
466
- (isset($_POST[ 'cff_show_like_box' ])) ? $cff_show_like_box = sanitize_text_field( $_POST[ 'cff_show_like_box' ] ) : $cff_show_like_box = '';
467
- if (isset($_POST[ 'cff_like_box_position' ])) $cff_like_box_position = sanitize_text_field( $_POST[ 'cff_like_box_position' ] );
468
- (isset($_POST[ 'cff_like_box_outside' ])) ? $cff_like_box_outside = sanitize_text_field( $_POST[ 'cff_like_box_outside' ] ) : $cff_like_box_outside = '';
469
- if (isset($_POST[ 'cff_likebox_bg_color' ])) $cff_likebox_bg_color = sanitize_text_field( $_POST[ 'cff_likebox_bg_color' ] );
470
- if (isset($_POST[ 'cff_like_box_text_color' ])) $cff_like_box_text_color = sanitize_text_field( $_POST[ 'cff_like_box_text_color' ] );
471
- if (isset($_POST[ 'cff_likebox_width' ])) $cff_likebox_width = sanitize_text_field( $_POST[ 'cff_likebox_width' ] );
472
- if (isset($_POST[ 'cff_likebox_height' ])) $cff_likebox_height = sanitize_text_field( $_POST[ 'cff_likebox_height' ] );
473
- (isset($_POST[ 'cff_like_box_faces' ])) ? $cff_like_box_faces = sanitize_text_field( $_POST[ 'cff_like_box_faces' ] ) : $cff_like_box_faces = '';
474
- (isset($_POST[ 'cff_like_box_border' ])) ? $cff_like_box_border = sanitize_text_field( $_POST[ 'cff_like_box_border' ] ) : $cff_like_box_border = '';
475
- (isset($_POST[ 'cff_like_box_cover' ])) ? $cff_like_box_cover = sanitize_text_field( $_POST[ 'cff_like_box_cover' ] ) : $cff_like_box_cover = '';
476
- (isset($_POST[ 'cff_like_box_small_header' ])) ? $cff_like_box_small_header = sanitize_text_field( $_POST[ 'cff_like_box_small_header' ] ) : $cff_like_box_small_header = '';
477
- (isset($_POST[ 'cff_like_box_hide_cta' ])) ? $cff_like_box_hide_cta = sanitize_text_field( $_POST[ 'cff_like_box_hide_cta' ] ) : $cff_like_box_hide_cta = '';
478
-
479
- //Post types
480
- if (isset($_POST[ 'cff_show_links_type' ]) ) $cff_show_links_type = sanitize_text_field( $_POST[ 'cff_show_links_type' ] );
481
- if (isset($_POST[ 'cff_show_event_type' ]) ) $cff_show_event_type = sanitize_text_field( $_POST[ 'cff_show_event_type' ] );
482
- if (isset($_POST[ 'cff_show_video_type' ]) ) $cff_show_video_type = sanitize_text_field( $_POST[ 'cff_show_video_type' ] );
483
- if (isset($_POST[ 'cff_show_photos_type' ]) ) $cff_show_photos_type = sanitize_text_field( $_POST[ 'cff_show_photos_type' ] );
484
- if (isset($_POST[ 'cff_show_status_type' ]) ) $cff_show_status_type = sanitize_text_field( $_POST[ 'cff_show_status_type' ] );
485
- //General
486
- $options[ 'cff_feed_width' ] = $cff_feed_width;
487
- $options[ 'cff_feed_width_resp' ] = $cff_feed_width_resp;
488
- $options[ 'cff_feed_height' ] = $cff_feed_height;
489
- $options[ 'cff_feed_padding' ] = $cff_feed_padding;
490
- $options[ 'cff_bg_color' ] = $cff_bg_color;
491
- $options[ 'cff_class' ] = $cff_class;
492
- $options[ 'cff_cols' ] = $cff_cols;
493
- $options[ 'cff_cols_mobile' ] = $cff_cols_mobile;
494
-
495
- //Page Header
496
- $options[ 'cff_show_header' ] = $cff_show_header;
497
- $options[ 'cff_header_type' ] = $cff_header_type;
498
- $options[ 'cff_header_cover' ] = $cff_header_cover;
499
- $options[ 'cff_header_name' ] = $cff_header_name;
500
- $options[ 'cff_header_bio' ] = $cff_header_bio;
501
- $options[ 'cff_header_cover_height' ] = $cff_header_cover_height;
502
- $options[ 'cff_header_outside' ] = $cff_header_outside;
503
- $options[ 'cff_header_text' ] = $cff_header_text;
504
- $options[ 'cff_header_bg_color' ] = $cff_header_bg_color;
505
- $options[ 'cff_header_padding' ] = $cff_header_padding;
506
- $options[ 'cff_header_text_size' ] = $cff_header_text_size;
507
- $options[ 'cff_header_text_weight' ] = $cff_header_text_weight;
508
- $options[ 'cff_header_text_color' ] = $cff_header_text_color;
509
- $options[ 'cff_header_icon' ] = $cff_header_icon;
510
- $options[ 'cff_header_icon_color' ] = $cff_header_icon_color;
511
- $options[ 'cff_header_icon_size' ] = $cff_header_icon_size;
512
-
513
- //Misc
514
- $options[ 'cff_show_like_box' ] = $cff_show_like_box;
515
- $options[ 'cff_like_box_position' ] = $cff_like_box_position;
516
- $options[ 'cff_like_box_outside' ] = $cff_like_box_outside;
517
- $options[ 'cff_likebox_bg_color' ] = $cff_likebox_bg_color;
518
- $options[ 'cff_like_box_text_color' ] = $cff_like_box_text_color;
519
- $options[ 'cff_likebox_width' ] = $cff_likebox_width;
520
- $options[ 'cff_likebox_height' ] = $cff_likebox_height;
521
- $options[ 'cff_like_box_faces' ] = $cff_like_box_faces;
522
- $options[ 'cff_like_box_border' ] = $cff_like_box_border;
523
- $options[ 'cff_like_box_cover' ] = $cff_like_box_cover;
524
- $options[ 'cff_like_box_small_header' ] = $cff_like_box_small_header;
525
- $options[ 'cff_like_box_hide_cta' ] = $cff_like_box_hide_cta;
526
-
527
- //Post types
528
- $options[ 'cff_show_links_type' ] = $cff_show_links_type;
529
- $options[ 'cff_show_event_type' ] = $cff_show_event_type;
530
- $options[ 'cff_show_video_type' ] = $cff_show_video_type;
531
- $options[ 'cff_show_photos_type' ] = $cff_show_photos_type;
532
- $options[ 'cff_show_status_type' ] = $cff_show_status_type;
533
- }
534
- //Update the Post Layout options
535
- if( isset($_POST[ $style_post_layout_hidden_field_name ]) && $_POST[ $style_post_layout_hidden_field_name ] == 'Y' ) {
536
- //Layout
537
- if (isset($_POST[ 'cff_preset_layout' ]) ) $cff_preset_layout = sanitize_text_field( $_POST[ 'cff_preset_layout' ] );
538
- //Include
539
- (isset($_POST[ 'cff_show_author' ]) ) ? $cff_show_author = sanitize_text_field( $_POST[ 'cff_show_author' ] ) : $cff_show_author = '';
540
- (isset($_POST[ 'cff_show_text' ]) ) ? $cff_show_text = sanitize_text_field( $_POST[ 'cff_show_text' ] ) : $cff_show_text = '';
541
- (isset($_POST[ 'cff_show_desc' ]) ) ? $cff_show_desc = sanitize_text_field( $_POST[ 'cff_show_desc' ] ) : $cff_show_desc = '';
542
- (isset($_POST[ 'cff_show_shared_links' ]) ) ? $cff_show_shared_links = sanitize_text_field( $_POST[ 'cff_show_shared_links' ] ) : $cff_show_shared_links = '';
543
- (isset($_POST[ 'cff_show_date' ]) ) ? $cff_show_date = sanitize_text_field( $_POST[ 'cff_show_date' ] ) : $cff_show_date = '';
544
- (isset($_POST[ 'cff_show_media' ]) ) ? $cff_show_media = sanitize_text_field( $_POST[ 'cff_show_media' ] ) : $cff_show_media = '';
545
- (isset($_POST[ 'cff_show_media_link' ]) ) ? $cff_show_media_link = sanitize_text_field( $_POST[ 'cff_show_media_link' ] ) : $cff_show_media_link = '';
546
- (isset($_POST[ 'cff_show_event_title' ]) ) ? $cff_show_event_title = sanitize_text_field( $_POST[ 'cff_show_event_title' ] ) : $cff_show_event_title = '';
547
- (isset($_POST[ 'cff_show_event_details' ]) ) ? $cff_show_event_details = sanitize_text_field( $_POST[ 'cff_show_event_details' ] ) : $cff_show_event_details = '';
548
- (isset($_POST[ 'cff_show_meta' ]) ) ? $cff_show_meta = sanitize_text_field( $_POST[ 'cff_show_meta' ] ) : $cff_show_meta = '';
549
- (isset($_POST[ 'cff_show_link' ]) ) ? $cff_show_link = sanitize_text_field( $_POST[ 'cff_show_link' ] ) : $cff_show_link = '';
550
-
551
- //Layout
552
- $options[ 'cff_preset_layout' ] = $cff_preset_layout;
553
- //Include
554
- $options[ 'cff_show_author' ] = $cff_show_author;
555
- $options[ 'cff_show_text' ] = $cff_show_text;
556
- $options[ 'cff_show_desc' ] = $cff_show_desc;
557
- $options[ 'cff_show_shared_links' ] = $cff_show_shared_links;
558
- $options[ 'cff_show_date' ] = $cff_show_date;
559
- $options[ 'cff_show_media' ] = $cff_show_media;
560
- $options[ 'cff_show_media_link' ] = $cff_show_media_link;
561
- $options[ 'cff_show_event_title' ] = $cff_show_event_title;
562
- $options[ 'cff_show_event_details' ] = $cff_show_event_details;
563
- $options[ 'cff_show_meta' ] = $cff_show_meta;
564
- $options[ 'cff_show_link' ] = $cff_show_link;
565
-
566
- }
567
- //Update the Typography options
568
- if( isset($_POST[ $style_typography_hidden_field_name ]) && $_POST[ $style_typography_hidden_field_name ] == 'Y' ) {
569
- //Character limits
570
- if (isset($_POST[ 'cff_title_length' ]) ) $cff_title_length_val = sanitize_text_field( $_POST[ $cff_title_length ] );
571
- if (isset($_POST[ 'cff_body_length' ]) ) $cff_body_length_val = sanitize_text_field( $_POST[ $cff_body_length ] );
572
-
573
- //Post Style
574
- if (isset($_POST[ 'cff_post_style' ]) ) $cff_post_style = $_POST[ 'cff_post_style' ];
575
- (isset($_POST[ 'cff_post_bg_color' ]) ) ? $cff_post_bg_color = $_POST[ 'cff_post_bg_color' ] : $cff_post_bg_color = '';
576
- (isset($_POST[ 'cff_post_rounded' ]) ) ? $cff_post_rounded = $_POST[ 'cff_post_rounded' ] : $cff_post_rounded = '';
577
- if (isset($_POST[ 'cff_sep_color' ])) $cff_sep_color = $_POST[ 'cff_sep_color' ];
578
- if (isset($_POST[ 'cff_sep_size' ])) $cff_sep_size = $_POST[ 'cff_sep_size' ];
579
- (isset($_POST[ 'cff_box_shadow' ]) ) ? $cff_box_shadow = $_POST[ 'cff_box_shadow' ] : $cff_box_shadow = '';
580
-
581
- //Author
582
- if (isset($_POST[ 'cff_author_size' ])) $cff_author_size = sanitize_text_field( $_POST[ 'cff_author_size' ] );
583
- if (isset($_POST[ 'cff_author_color' ])) $cff_author_color = sanitize_text_field( $_POST[ 'cff_author_color' ] );
584
-
585
- //Typography
586
- if (isset($_POST[ 'cff_title_format' ]) ) $cff_title_format = sanitize_text_field( $_POST[ 'cff_title_format' ] );
587
- if (isset($_POST[ 'cff_title_size' ]) ) $cff_title_size = sanitize_text_field( $_POST[ 'cff_title_size' ] );
588
- if (isset($_POST[ 'cff_title_weight' ]) ) $cff_title_weight = sanitize_text_field( $_POST[ 'cff_title_weight' ] );
589
- if (isset($_POST[ 'cff_title_color' ]) ) $cff_title_color = sanitize_text_field( $_POST[ 'cff_title_color' ] );
590
- if (isset($_POST[ 'cff_posttext_link_color' ]) ) $cff_posttext_link_color = sanitize_text_field( $_POST[ 'cff_posttext_link_color' ] );
591
-
592
- (isset($_POST[ 'cff_title_link' ]) ) ? $cff_title_link = sanitize_text_field( $_POST[ 'cff_title_link' ] ) : $cff_title_link = '';
593
- (isset($_POST[ 'cff_post_tags' ]) ) ? $cff_post_tags = sanitize_text_field( $_POST[ 'cff_post_tags' ] ) : $cff_post_tags = '';
594
- (isset($_POST[ 'cff_link_hashtags' ]) ) ? $cff_link_hashtags = sanitize_text_field( $_POST[ 'cff_link_hashtags' ] ) : $cff_link_hashtags = '';
595
-
596
- $cff_body_size = $_POST[ 'cff_body_size' ];
597
- if (isset($_POST[ 'cff_body_weight' ]) ) $cff_body_weight = sanitize_text_field( $_POST[ 'cff_body_weight' ] );
598
- if (isset($_POST[ 'cff_body_color' ]) ) $cff_body_color = sanitize_text_field( $_POST[ 'cff_body_color' ] );
599
- if (isset($_POST[ 'cff_link_title_format' ]) ) $cff_link_title_format = sanitize_text_field( $_POST[ 'cff_link_title_format' ] );
600
- if (isset($_POST[ 'cff_link_title_size' ]) ) $cff_link_title_size = $_POST[ 'cff_link_title_size' ];
601
- if (isset($_POST[ 'cff_link_url_size' ]) ) $cff_link_url_size = $_POST[ 'cff_link_url_size' ];
602
- if (isset($_POST[ 'cff_link_desc_size' ]) ) $cff_link_desc_size = $_POST[ 'cff_link_desc_size' ];
603
- if (isset($_POST[ 'cff_link_desc_color' ]) ) $cff_link_desc_color = $_POST[ 'cff_link_desc_color' ];
604
- if (isset($_POST[ 'cff_link_title_color' ]) ) $cff_link_title_color = $_POST[ 'cff_link_title_color' ];
605
- if (isset($_POST[ 'cff_link_url_color' ]) ) $cff_link_url_color = $_POST[ 'cff_link_url_color' ];
606
- if (isset($_POST[ 'cff_link_bg_color' ]) ) $cff_link_bg_color = $_POST[ 'cff_link_bg_color' ];
607
- if (isset($_POST[ 'cff_link_border_color' ]) ) $cff_link_border_color = $_POST[ 'cff_link_border_color' ];
608
- (isset($_POST[ 'cff_disable_link_box' ])) ? $cff_disable_link_box = $_POST[ 'cff_disable_link_box' ] : $cff_disable_link_box = '';
609
-
610
-
611
- //Event title
612
- if (isset($_POST[ 'cff_event_title_format' ]) ) $cff_event_title_format = sanitize_text_field( $_POST[ 'cff_event_title_format' ] );
613
- if (isset($_POST[ 'cff_event_title_size' ]) ) $cff_event_title_size = sanitize_text_field( $_POST[ 'cff_event_title_size' ] );
614
- if (isset($_POST[ 'cff_event_title_weight' ]) ) $cff_event_title_weight = sanitize_text_field( $_POST[ 'cff_event_title_weight' ] );
615
- if (isset($_POST[ 'cff_event_title_color' ]) ) $cff_event_title_color = sanitize_text_field( $_POST[ 'cff_event_title_color' ] );
616
- (isset($_POST[ 'cff_event_title_link' ]) ) ? $cff_event_title_link = sanitize_text_field( $_POST[ 'cff_event_title_link' ] ) : $cff_event_title_link = '';
617
- //Event date
618
- if (isset($_POST[ 'cff_event_date_size' ]) ) $cff_event_date_size = sanitize_text_field( $_POST[ 'cff_event_date_size' ] );
619
- if (isset($_POST[ 'cff_event_date_weight' ]) ) $cff_event_date_weight = sanitize_text_field( $_POST[ 'cff_event_date_weight' ] );
620
- if (isset($_POST[ 'cff_event_date_color' ]) ) $cff_event_date_color = sanitize_text_field( $_POST[ 'cff_event_date_color' ] );
621
- if (isset($_POST[ 'cff_event_date_position' ]) ) $cff_event_date_position = sanitize_text_field( $_POST[ 'cff_event_date_position' ] );
622
- if (isset($_POST[ 'cff_event_date_formatting' ]) ) $cff_event_date_formatting = sanitize_text_field( $_POST[ 'cff_event_date_formatting' ] );
623
- if (isset($_POST[ 'cff_event_date_custom' ]) ) $cff_event_date_custom = sanitize_text_field( $_POST[ 'cff_event_date_custom' ] );
624
- //Event details
625
- if (isset($_POST[ 'cff_event_details_size' ]) ) $cff_event_details_size = sanitize_text_field( $_POST[ 'cff_event_details_size' ] );
626
- if (isset($_POST[ 'cff_event_details_weight' ]) ) $cff_event_details_weight = sanitize_text_field( $_POST[ 'cff_event_details_weight' ] );
627
- if (isset($_POST[ 'cff_event_details_color' ]) ) $cff_event_details_color = sanitize_text_field( $_POST[ 'cff_event_details_color' ] );
628
- if (isset($_POST[ 'cff_event_link_color' ]) ) $cff_event_link_color = sanitize_text_field( $_POST[ 'cff_event_link_color' ] );
629
- //Date
630
- if (isset($_POST[ 'cff_date_position' ]) ) $cff_date_position = sanitize_text_field( $_POST[ 'cff_date_position' ] );
631
- if (isset($_POST[ 'cff_date_size' ]) ) $cff_date_size = sanitize_text_field( $_POST[ 'cff_date_size' ] );
632
- if (isset($_POST[ 'cff_date_weight' ]) ) $cff_date_weight = sanitize_text_field( $_POST[ 'cff_date_weight' ] );
633
- if (isset($_POST[ 'cff_date_color' ]) ) $cff_date_color = sanitize_text_field( $_POST[ 'cff_date_color' ] );
634
- if (isset($_POST[ 'cff_date_formatting' ]) ) $cff_date_formatting = sanitize_text_field( $_POST[ 'cff_date_formatting' ] );
635
- if (isset($_POST[ 'cff_date_custom' ]) ) $cff_date_custom = sanitize_text_field( $_POST[ 'cff_date_custom' ] );
636
- if (isset($_POST[ 'cff_date_before' ]) ) $cff_date_before = sanitize_text_field( $_POST[ 'cff_date_before' ] );
637
- if (isset($_POST[ 'cff_date_after' ]) ) $cff_date_after = sanitize_text_field( $_POST[ 'cff_date_after' ] );
638
- if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = sanitize_text_field( $_POST[ 'cff_timezone' ] );
639
-
640
- //Date translate
641
- if (isset($_POST[ 'cff_translate_second' ]) ) $cff_translate_second = sanitize_text_field( $_POST[ 'cff_translate_second' ] );
642
- if (isset($_POST[ 'cff_translate_seconds' ]) ) $cff_translate_seconds = sanitize_text_field( $_POST[ 'cff_translate_seconds' ] );
643
- if (isset($_POST[ 'cff_translate_minute' ]) ) $cff_translate_minute = sanitize_text_field( $_POST[ 'cff_translate_minute' ] );
644
- if (isset($_POST[ 'cff_translate_minutes' ]) ) $cff_translate_minutes = sanitize_text_field( $_POST[ 'cff_translate_minutes' ] );
645
- if (isset($_POST[ 'cff_translate_hour' ]) ) $cff_translate_hour = sanitize_text_field( $_POST[ 'cff_translate_hour' ] );
646
- if (isset($_POST[ 'cff_translate_hours' ]) ) $cff_translate_hours = sanitize_text_field( $_POST[ 'cff_translate_hours' ] );
647
- if (isset($_POST[ 'cff_translate_day' ]) ) $cff_translate_day = sanitize_text_field( $_POST[ 'cff_translate_day' ] );
648
- if (isset($_POST[ 'cff_translate_days' ]) ) $cff_translate_days = sanitize_text_field( $_POST[ 'cff_translate_days' ] );
649
- if (isset($_POST[ 'cff_translate_week' ]) ) $cff_translate_week = sanitize_text_field( $_POST[ 'cff_translate_week' ] );
650
- if (isset($_POST[ 'cff_translate_weeks' ]) ) $cff_translate_weeks = sanitize_text_field( $_POST[ 'cff_translate_weeks' ] );
651
- if (isset($_POST[ 'cff_translate_month' ]) ) $cff_translate_month = sanitize_text_field( $_POST[ 'cff_translate_month' ] );
652
- if (isset($_POST[ 'cff_translate_months' ]) ) $cff_translate_months = sanitize_text_field( $_POST[ 'cff_translate_months' ] );
653
- if (isset($_POST[ 'cff_translate_year' ]) ) $cff_translate_year = sanitize_text_field( $_POST[ 'cff_translate_year' ] );
654
- if (isset($_POST[ 'cff_translate_years' ]) ) $cff_translate_years = sanitize_text_field( $_POST[ 'cff_translate_years' ] );
655
- if (isset($_POST[ 'cff_translate_ago' ]) ) $cff_translate_ago = sanitize_text_field( $_POST[ 'cff_translate_ago' ] );
656
-
657
- //Meta
658
- if (isset($_POST[ 'cff_icon_style' ])) $cff_icon_style = sanitize_text_field( $_POST[ 'cff_icon_style' ] );
659
- if (isset($_POST[ 'cff_meta_text_color' ])) $cff_meta_text_color = sanitize_text_field( $_POST[ 'cff_meta_text_color' ] );
660
- if (isset($_POST[ 'cff_meta_bg_color' ])) $cff_meta_bg_color = sanitize_text_field( $_POST[ 'cff_meta_bg_color' ] );
661
- if (isset($_POST[ 'cff_nocomments_text' ])) $cff_nocomments_text = sanitize_text_field( $_POST[ 'cff_nocomments_text' ] );
662
- if (isset($_POST[ 'cff_hide_comments' ])) $cff_hide_comments = sanitize_text_field( $_POST[ 'cff_hide_comments' ] );
663
-
664
- //View on Facebook link
665
- if (isset($_POST[ 'cff_link_size' ]) ) $cff_link_size = sanitize_text_field( $_POST[ 'cff_link_size' ] );
666
- if (isset($_POST[ 'cff_link_weight' ]) ) $cff_link_weight = sanitize_text_field( $_POST[ 'cff_link_weight' ] );
667
- if (isset($_POST[ 'cff_link_color' ]) ) $cff_link_color = sanitize_text_field( $_POST[ 'cff_link_color' ] );
668
- if (isset($_POST[ 'cff_facebook_link_text' ]) ) $cff_facebook_link_text = sanitize_text_field( $_POST[ 'cff_facebook_link_text' ] );
669
- if (isset($_POST[ 'cff_facebook_share_text' ]) ) $cff_facebook_share_text = sanitize_text_field( $_POST[ 'cff_facebook_share_text' ] );
670
- (isset($_POST[ 'cff_show_facebook_link' ]) ) ? $cff_show_facebook_link = sanitize_text_field( $_POST[ 'cff_show_facebook_link' ] ) : $cff_show_facebook_link = '';
671
- (isset($_POST[ 'cff_show_facebook_share' ]) ) ? $cff_show_facebook_share = sanitize_text_field( $_POST[ 'cff_show_facebook_share' ] ) : $cff_show_facebook_share = '';
672
- if (isset($_POST[ 'cff_view_link_text' ]) ) $cff_view_link_text = sanitize_text_field( $_POST[ 'cff_view_link_text' ] );
673
- if (isset($_POST[ 'cff_link_to_timeline' ]) ) $cff_link_to_timeline = sanitize_text_field( $_POST[ 'cff_link_to_timeline' ] );
674
-
675
- //Character limits
676
- update_option( $cff_title_length, $cff_title_length_val );
677
- update_option( $cff_body_length, $cff_body_length_val );
678
- //Author
679
- $options[ 'cff_author_size' ] = $cff_author_size;
680
- $options[ 'cff_author_color' ] = $cff_author_color;
681
-
682
- //Post Style
683
- $options[ 'cff_post_style' ] = $cff_post_style;
684
- $options[ 'cff_post_bg_color' ] = $cff_post_bg_color;
685
- $options[ 'cff_post_rounded' ] = $cff_post_rounded;
686
- $options[ 'cff_sep_color' ] = $cff_sep_color;
687
- $options[ 'cff_sep_size' ] = $cff_sep_size;
688
- $options[ 'cff_box_shadow' ] = $cff_box_shadow;
689
-
690
- //Typography
691
- $options[ 'cff_title_format' ] = $cff_title_format;
692
- $options[ 'cff_title_size' ] = $cff_title_size;
693
- $options[ 'cff_title_weight' ] = $cff_title_weight;
694
- $options[ 'cff_title_color' ] = $cff_title_color;
695
- $options[ 'cff_posttext_link_color' ] = $cff_posttext_link_color;
696
- $options[ 'cff_title_link' ] = $cff_title_link;
697
- $options[ 'cff_post_tags' ] = $cff_post_tags;
698
- $options[ 'cff_link_hashtags' ] = $cff_link_hashtags;
699
- $options[ 'cff_body_size' ] = $cff_body_size;
700
- $options[ 'cff_body_weight' ] = $cff_body_weight;
701
- $options[ 'cff_body_color' ] = $cff_body_color;
702
- $options[ 'cff_link_title_format' ] = $cff_link_title_format;
703
- $options[ 'cff_link_title_size' ] = $cff_link_title_size;
704
- $options[ 'cff_link_url_size' ] = $cff_link_url_size;
705
- $options[ 'cff_link_desc_size' ] = $cff_link_desc_size;
706
- $options[ 'cff_link_desc_color' ] = $cff_link_desc_color;
707
- $options[ 'cff_link_title_color' ] = $cff_link_title_color;
708
- $options[ 'cff_link_url_color' ] = $cff_link_url_color;
709
- $options[ 'cff_link_bg_color' ] = $cff_link_bg_color;
710
- $options[ 'cff_link_border_color' ] = $cff_link_border_color;
711
- $options[ 'cff_disable_link_box' ] = $cff_disable_link_box;
712
-
713
- //Event title
714
- $options[ 'cff_event_title_format' ] = $cff_event_title_format;
715
- $options[ 'cff_event_title_size' ] = $cff_event_title_size;
716
- $options[ 'cff_event_title_weight' ] = $cff_event_title_weight;
717
- $options[ 'cff_event_title_color' ] = $cff_event_title_color;
718
- $options[ 'cff_event_title_link' ] = $cff_event_title_link;
719
- //Event date
720
- $options[ 'cff_event_date_size' ] = $cff_event_date_size;
721
- $options[ 'cff_event_date_weight' ] = $cff_event_date_weight;
722
- $options[ 'cff_event_date_color' ] = $cff_event_date_color;
723
- $options[ 'cff_event_date_position' ] = $cff_event_date_position;
724
- $options[ 'cff_event_date_formatting' ] = $cff_event_date_formatting;
725
- $options[ 'cff_event_date_custom' ] = $cff_event_date_custom;
726
- //Event details
727
- $options[ 'cff_event_details_size' ] = $cff_event_details_size;
728
- $options[ 'cff_event_details_weight' ] = $cff_event_details_weight;
729
- $options[ 'cff_event_details_color' ] = $cff_event_details_color;
730
- $options[ 'cff_event_link_color' ] = $cff_event_link_color;
731
- //Date
732
- $options[ 'cff_date_position' ] = $cff_date_position;
733
- $options[ 'cff_date_size' ] = $cff_date_size;
734
- $options[ 'cff_date_weight' ] = $cff_date_weight;
735
- $options[ 'cff_date_color' ] = $cff_date_color;
736
- $options[ 'cff_date_formatting' ] = $cff_date_formatting;
737
- $options[ 'cff_date_custom' ] = $cff_date_custom;
738
- $options[ 'cff_date_before' ] = $cff_date_before;
739
- $options[ 'cff_date_after' ] = $cff_date_after;
740
- $options[ 'cff_timezone' ] = $cff_timezone;
741
-
742
- //Date translate
743
- $options[ 'cff_translate_second' ] = $cff_translate_second;
744
- $options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
745
- $options[ 'cff_translate_minute' ] = $cff_translate_minute;
746
- $options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
747
- $options[ 'cff_translate_hour' ] = $cff_translate_hour;
748
- $options[ 'cff_translate_hours' ] = $cff_translate_hours;
749
- $options[ 'cff_translate_day' ] = $cff_translate_day;
750
- $options[ 'cff_translate_days' ] = $cff_translate_days;
751
- $options[ 'cff_translate_week' ] = $cff_translate_week;
752
- $options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
753
- $options[ 'cff_translate_month' ] = $cff_translate_month;
754
- $options[ 'cff_translate_months' ] = $cff_translate_months;
755
- $options[ 'cff_translate_year' ] = $cff_translate_year;
756
- $options[ 'cff_translate_years' ] = $cff_translate_years;
757
- $options[ 'cff_translate_ago' ] = $cff_translate_ago;
758
-
759
- //Meta
760
- $options[ 'cff_icon_style' ] = $cff_icon_style;
761
- $options[ 'cff_meta_text_color' ] = $cff_meta_text_color;
762
- $options[ 'cff_meta_bg_color' ] = $cff_meta_bg_color;
763
- $options[ 'cff_nocomments_text' ] = $cff_nocomments_text;
764
- $options[ 'cff_hide_comments' ] = $cff_hide_comments;
765
-
766
- //View on Facebook link
767
- $options[ 'cff_link_size' ] = $cff_link_size;
768
- $options[ 'cff_link_weight' ] = $cff_link_weight;
769
- $options[ 'cff_link_color' ] = $cff_link_color;
770
- $options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
771
- $options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
772
- $options[ 'cff_show_facebook_link' ] = $cff_show_facebook_link;
773
- $options[ 'cff_show_facebook_share' ] = $cff_show_facebook_share;
774
- $options[ 'cff_view_link_text' ] = $cff_view_link_text;
775
- $options[ 'cff_link_to_timeline' ] = $cff_link_to_timeline;
776
- }
777
- //Update the Misc options
778
- if( isset($_POST[ $style_misc_hidden_field_name ]) && $_POST[ $style_misc_hidden_field_name ] == 'Y' ) {
779
- if (isset($_POST[ 'gdpr' ])) $gdpr = sanitize_text_field( $_POST[ 'gdpr' ] );
780
- //Custom CSS
781
- if (isset($_POST[ 'cff_custom_css' ])) $cff_custom_css = $_POST[ 'cff_custom_css' ];
782
- if (isset($_POST[ 'cff_custom_js' ])) $cff_custom_js = $_POST[ 'cff_custom_js' ];
783
-
784
- if (isset($_POST[ 'cff_video_height' ])) $cff_video_height = sanitize_text_field( $_POST[ 'cff_video_height' ] );
785
- if (isset($_POST[ 'cff_video_action' ])) $cff_video_action = sanitize_text_field( $_POST[ 'cff_video_action' ] );
786
- if (isset($_POST[ 'cff_open_links' ])) $cff_open_links = sanitize_text_field( $_POST[ 'cff_open_links' ] );
787
-
788
- (isset($_POST[ $cff_ajax ])) ? $cff_ajax_val = sanitize_text_field( $_POST[ 'cff_ajax' ] ) : $cff_ajax_val = '';
789
- if (isset($_POST[ 'cff_app_id' ])) $cff_app_id = sanitize_text_field( $_POST[ 'cff_app_id' ] );
790
- (isset($_POST[ 'cff_show_credit' ])) ? $cff_show_credit = sanitize_text_field( $_POST[ 'cff_show_credit' ] ) : $cff_show_credit = '';
791
- (isset($_POST[ 'cff_font_source' ])) ? $cff_font_source = sanitize_text_field( $_POST[ 'cff_font_source' ] ) : $cff_font_source = '';
792
- (isset($_POST[ $cff_preserve_settings ])) ? $cff_preserve_settings_val = sanitize_text_field( $_POST[ 'cff_preserve_settings' ] ) : $cff_preserve_settings_val = '';
793
- if (isset($_POST[ 'cff_cron' ])) $cff_cron = sanitize_text_field( $_POST[ 'cff_cron' ] );
794
- if (isset($_POST[ 'cff_request_method' ])) $cff_request_method = sanitize_text_field( $_POST[ 'cff_request_method' ] );
795
- (isset($_POST[ 'cff_disable_styles' ])) ? $cff_disable_styles = sanitize_text_field( $_POST[ 'cff_disable_styles' ] ) : $cff_disable_styles = '';
796
- (isset($_POST[ 'cff_format_issue' ])) ? $cff_format_issue = sanitize_text_field( $_POST[ 'cff_format_issue' ] ) : $cff_format_issue = '';
797
- (isset($_POST[ 'cff_restricted_page' ])) ? $cff_restricted_page = sanitize_text_field( $_POST[ 'cff_restricted_page' ] ) : $cff_restricted_page = '';
798
- (isset($_POST[ 'cff_enqueue_with_shortcode' ])) ? $cff_enqueue_with_shortcode = $_POST[ 'cff_enqueue_with_shortcode' ] : $cff_enqueue_with_shortcode = '';
799
- (isset($_POST[ 'cff_minify' ])) ? $cff_minify = sanitize_text_field( $_POST[ 'cff_minify' ] ) : $cff_minify = '';
800
- (isset($_POST[ 'cff_disable_admin_notice' ])) ? $cff_disable_admin_notice = sanitize_text_field( $_POST[ 'cff_disable_admin_notice' ] ) : $cff_disable_admin_notice = '';
801
-
802
- $options[ 'gdpr' ] = $gdpr;
803
- //Custom CSS
804
- $options[ 'cff_custom_css' ] = $cff_custom_css;
805
- $options[ 'cff_custom_js' ] = $cff_custom_js;
806
-
807
- $options[ 'cff_video_height' ] = $cff_video_height;
808
- $options[ 'cff_video_action' ] = $cff_video_action;
809
- $options[ 'cff_open_links' ] = $cff_open_links;
810
-
811
- update_option( $cff_ajax, $cff_ajax_val );
812
- $options[ 'cff_app_id' ] = $cff_app_id;
813
- $options[ 'cff_show_credit' ] = $cff_show_credit;
814
- $options[ 'cff_font_source' ] = $cff_font_source;
815
- update_option( $cff_preserve_settings, $cff_preserve_settings_val );
816
-
817
- $options[ 'cff_cron' ] = $cff_cron;
818
- $options[ 'cff_request_method' ] = $cff_request_method;
819
- $options[ 'cff_disable_styles' ] = $cff_disable_styles;
820
- $options[ 'cff_format_issue' ] = $cff_format_issue;
821
- $options[ 'cff_restricted_page' ] = $cff_restricted_page;
822
- $options[ 'cff_enqueue_with_shortcode' ] = $cff_enqueue_with_shortcode;
823
- $options[ 'cff_minify' ] = $cff_minify;
824
- $options[ 'disable_admin_notice' ] = $cff_disable_admin_notice;
825
-
826
- if( $cff_cron == 'no' ) wp_clear_scheduled_hook('cff_cron_job');
827
-
828
- //Run cron when Misc settings are saved
829
- if( $cff_cron == 'yes' ){
830
- //Clear the existing cron event
831
- wp_clear_scheduled_hook('cff_cron_job');
832
- $cff_cache_time = get_option( 'cff_cache_time' );
833
- $cff_cache_time_unit = get_option( 'cff_cache_time_unit' );
834
-
835
- //Set the event schedule based on what the caching time is set to
836
- $cff_cron_schedule = 'hourly';
837
- if( $cff_cache_time_unit == 'hours' && $cff_cache_time > 5 ) $cff_cron_schedule = 'twicedaily';
838
- if( $cff_cache_time_unit == 'days' ) $cff_cron_schedule = 'daily';
839
- wp_schedule_event(time(), $cff_cron_schedule, 'cff_cron_job');
840
- }
841
-
842
- isset($_POST[ 'cff_enable_email_report' ]) ? $cff_enable_email_report = $_POST[ 'cff_enable_email_report' ] : $cff_enable_email_report = '';
843
- $options['enable_email_report'] = $cff_enable_email_report;
844
- isset($_POST[ 'cff_email_notification' ]) ? $cff_email_notification = $_POST[ 'cff_email_notification' ] : $cff_email_notification = '';
845
- $original = $options['email_notification'];
846
- $options['email_notification'] = $cff_email_notification;
847
- isset($_POST[ 'cff_email_notification_addresses' ]) ? $cff_email_notification_addresses = $_POST[ 'cff_email_notification_addresses' ] : $cff_email_notification_addresses = get_option( 'admin_email' );
848
- $options['email_notification_addresses'] = $cff_email_notification_addresses;
849
-
850
- if ( $original !== $cff_email_notification && $cff_enable_email_report === 'on' ){
851
- //Clear the existing cron event
852
- wp_clear_scheduled_hook('cff_feed_issue_email');
853
-
854
- $input = sanitize_text_field($_POST[ 'cff_email_notification' ] );
855
- $timestamp = strtotime( 'next ' . $input );
856
-
857
- if ( $timestamp - (3600 * 1) < time() ) {
858
- $timestamp = $timestamp + (3600 * 24 * 7);
859
- }
860
- $six_am_local = $timestamp + CFF_Utils::cff_get_utc_offset() + (6*60*60);
861
-
862
- wp_schedule_event( $six_am_local, 'cffweekly', 'cff_feed_issue_email' );
863
- }
864
-
865
- }
866
- //Update the Custom Text / Translate options
867
- if( isset($_POST[ $style_custom_text_hidden_field_name ]) && $_POST[ $style_custom_text_hidden_field_name ] == 'Y' ) {
868
-
869
- //Translate
870
- if (isset($_POST[ 'cff_see_more_text' ])) $cff_see_more_text = sanitize_text_field( $_POST[ 'cff_see_more_text' ] );
871
- if (isset($_POST[ 'cff_see_less_text' ])) $cff_see_less_text = sanitize_text_field( $_POST[ 'cff_see_less_text' ] );
872
- if (isset($_POST[ 'cff_facebook_link_text' ])) $cff_facebook_link_text = sanitize_text_field( $_POST[ 'cff_facebook_link_text' ] );
873
- if (isset($_POST[ 'cff_facebook_share_text' ])) $cff_facebook_share_text = sanitize_text_field( $_POST[ 'cff_facebook_share_text' ] );
874
-
875
- //Social translate
876
- if (isset($_POST[ 'cff_translate_photos_text' ])) $cff_translate_photos_text = sanitize_text_field( $_POST[ 'cff_translate_photos_text' ] );
877
- if (isset($_POST[ 'cff_translate_photo_text' ])) $cff_translate_photo_text = sanitize_text_field( $_POST[ 'cff_translate_photo_text' ] );
878
- if (isset($_POST[ 'cff_translate_video_text' ])) $cff_translate_video_text = sanitize_text_field( $_POST[ 'cff_translate_video_text' ] );
879
-
880
- if (isset($_POST[ 'cff_translate_learn_more_text' ])) $cff_translate_learn_more_text = sanitize_text_field( $_POST[ 'cff_translate_learn_more_text' ] );
881
- if (isset($_POST[ 'cff_translate_shop_now_text' ])) $cff_translate_shop_now_text = sanitize_text_field( $_POST[ 'cff_translate_shop_now_text' ] );
882
- if (isset($_POST[ 'cff_translate_message_page_text' ])) $cff_translate_message_page_text = sanitize_text_field( $_POST[ 'cff_translate_message_page_text' ] );
883
-
884
- //Date translate
885
- if (isset($_POST[ 'cff_translate_second' ])) $cff_translate_second = sanitize_text_field( $_POST[ 'cff_translate_second' ] );
886
- if (isset($_POST[ 'cff_translate_seconds' ])) $cff_translate_seconds = sanitize_text_field( $_POST[ 'cff_translate_seconds' ] );
887
- if (isset($_POST[ 'cff_translate_minute' ])) $cff_translate_minute = sanitize_text_field( $_POST[ 'cff_translate_minute' ] );
888
- if (isset($_POST[ 'cff_translate_minutes' ])) $cff_translate_minutes = sanitize_text_field( $_POST[ 'cff_translate_minutes' ] );
889
- if (isset($_POST[ 'cff_translate_hour' ])) $cff_translate_hour = sanitize_text_field( $_POST[ 'cff_translate_hour' ] );
890
- if (isset($_POST[ 'cff_translate_hours' ])) $cff_translate_hours = sanitize_text_field( $_POST[ 'cff_translate_hours' ] );
891
- if (isset($_POST[ 'cff_translate_day' ])) $cff_translate_day = sanitize_text_field( $_POST[ 'cff_translate_day' ] );
892
- if (isset($_POST[ 'cff_translate_days' ])) $cff_translate_days = sanitize_text_field( $_POST[ 'cff_translate_days' ] );
893
- if (isset($_POST[ 'cff_translate_week' ])) $cff_translate_week = sanitize_text_field( $_POST[ 'cff_translate_week' ] );
894
- if (isset($_POST[ 'cff_translate_weeks' ])) $cff_translate_weeks = sanitize_text_field( $_POST[ 'cff_translate_weeks' ] );
895
- if (isset($_POST[ 'cff_translate_month' ])) $cff_translate_month = sanitize_text_field( $_POST[ 'cff_translate_month' ] );
896
- if (isset($_POST[ 'cff_translate_months' ])) $cff_translate_months = sanitize_text_field( $_POST[ 'cff_translate_months' ] );
897
- if (isset($_POST[ 'cff_translate_year' ])) $cff_translate_year = sanitize_text_field( $_POST[ 'cff_translate_year' ] );
898
- if (isset($_POST[ 'cff_translate_years' ])) $cff_translate_years = sanitize_text_field( $_POST[ 'cff_translate_years' ] );
899
- if (isset($_POST[ 'cff_translate_ago' ])) $cff_translate_ago = sanitize_text_field( $_POST[ 'cff_translate_ago' ] );
900
-
901
- //Translate
902
- $options[ 'cff_see_more_text' ] = $cff_see_more_text;
903
- $options[ 'cff_see_less_text' ] = $cff_see_less_text;
904
- $options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
905
- $options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
906
-
907
- //Social translate
908
- $options[ 'cff_translate_photos_text' ] = $cff_translate_photos_text;
909
- $options[ 'cff_translate_photo_text' ] = $cff_translate_photo_text;
910
- $options[ 'cff_translate_video_text' ] = $cff_translate_video_text;
911
-
912
- $options[ 'cff_translate_learn_more_text' ] = $cff_translate_learn_more_text;
913
- $options[ 'cff_translate_shop_now_text' ] = $cff_translate_shop_now_text;
914
- $options[ 'cff_translate_message_page_text' ] = $cff_translate_message_page_text;
915
-
916
- //Date translate
917
- $options[ 'cff_translate_second' ] = $cff_translate_second;
918
- $options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
919
- $options[ 'cff_translate_minute' ] = $cff_translate_minute;
920
- $options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
921
- $options[ 'cff_translate_hour' ] = $cff_translate_hour;
922
- $options[ 'cff_translate_hours' ] = $cff_translate_hours;
923
- $options[ 'cff_translate_day' ] = $cff_translate_day;
924
- $options[ 'cff_translate_days' ] = $cff_translate_days;
925
- $options[ 'cff_translate_week' ] = $cff_translate_week;
926
- $options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
927
- $options[ 'cff_translate_month' ] = $cff_translate_month;
928
- $options[ 'cff_translate_months' ] = $cff_translate_months;
929
- $options[ 'cff_translate_year' ] = $cff_translate_year;
930
- $options[ 'cff_translate_years' ] = $cff_translate_years;
931
- $options[ 'cff_translate_ago' ] = $cff_translate_ago;
932
-
933
- }
934
- //Update the array
935
- update_option( 'cff_style_settings', $options );
936
- // Put an settings updated message on the screen
937
- ?>
938
- <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
939
- <?php } ?>
940
-
941
- <?php } //End nonce check ?>
942
-
943
- <?php
944
- $lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
945
-
946
- if ( ! $lite_notice_dismissed ) :
947
- ?>
948
- <div id="cff-notice-bar" style="display:none">
949
- <span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoondemo.com/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
950
- <button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
951
- </button>
952
- </div>
953
- <?php endif; ?>
954
-
955
- <div id="cff-admin" class="wrap">
956
- <div id="header">
957
- <h1><?php _e('Custom Facebook Feed', 'custom-facebook-feed'); ?></h1>
958
- </div>
959
-
960
- <form name="form1" method="post" action="">
961
- <input type="hidden" name="<?php echo $style_hidden_field_name; ?>" value="Y">
962
- <?php wp_nonce_field( 'cff_saving_customize', 'cff_customize_nonce' ); ?>
963
-
964
- <?php
965
- $cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
966
- ?>
967
-
968
- <h2 class="nav-tab-wrapper">
969
- <a href="?page=cff-top&amp;tab=configuration" class="nav-tab <?php echo $cff_active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration'); ?></a>
970
- <a href="?page=cff-style" class="nav-tab nav-tab-active"><?php _e('Customize'); ?></a>
971
- <a href="?page=cff-top&amp;tab=support" class="nav-tab <?php echo $cff_active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support'); ?></a>
972
- <a href="?page=cff-top&amp;tab=more" class="nav-tab <?php echo $cff_active_tab == 'more' ? 'nav-tab-active' : ''; ?>"><?php _e('More Social Feeds', 'custom-facebook-feed'); ?>
973
- <?php
974
- $seen_more_plugins_page = get_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', true);
975
- if( !$seen_more_plugins_page ) echo '<span class="cff-alert-bubble">1</span>';
976
- ?>
977
- </a>
978
- </h2>
979
-
980
- <h2 class="nav-tab-wrapper cff-subtabs">
981
- <a href="?page=cff-style&amp;tab=general" class="nav-tab <?php echo $cff_active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General'); ?></a>
982
- <a href="?page=cff-style&amp;tab=post_layout" class="nav-tab <?php echo $cff_active_tab == 'post_layout' ? 'nav-tab-active' : ''; ?>"><?php _e('Post Layout'); ?></a>
983
- <a href="?page=cff-style&amp;tab=typography" class="nav-tab <?php echo $cff_active_tab == 'typography' ? 'nav-tab-active' : ''; ?>"><?php _e('Style Posts'); ?></a>
984
- <a href="?page=cff-style&amp;tab=misc" class="nav-tab <?php echo $cff_active_tab == 'misc' ? 'nav-tab-active' : ''; ?>"><?php _e('Misc'); ?></a>
985
- <a href="?page=cff-style&amp;tab=custom_text" class="nav-tab <?php echo $cff_active_tab == 'custom_text' ? 'nav-tab-active' : ''; ?>"><?php _e('Custom Text / Translate'); ?></a>
986
- </h2>
987
- <?php if( $cff_active_tab == 'general' ) { //Start General tab ?>
988
-
989
- <p class="cff_contents_links" id="general">
990
- <span>Jump to: </span>
991
- <a href="#general"><?php _e('General', 'custom-facebook-feed'); ?></a>
992
- <a href="#header"><?php _e('Header', 'custom-facebook-feed'); ?></a>
993
- <a href="#likebox"><?php _e('Like Box', 'custom-facebook-feed'); ?></a>
994
- </p>
995
-
996
- <input type="hidden" name="<?php echo $style_general_hidden_field_name; ?>" value="Y">
997
- <br />
998
- <table class="form-table">
999
- <tbody>
1000
- <h3><?php _e('General', 'custom-facebook-feed'); ?></h3>
1001
- <tr valign="top">
1002
- <th class="bump-left" scope="row"><label><?php _e('Feed Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> width
1003
- Eg: width=500px</code></th>
1004
- <td>
1005
- <input name="cff_feed_width" id="cff_feed_width" type="text" value="<?php esc_attr_e( $cff_feed_width, 'custom-facebook-feed' ); ?>" size="6" />
1006
- <i style="color: #666; font-size: 11px;">Eg. 100% or 500px</i>
1007
- <div id="cff_width_options">
1008
- <input name="cff_feed_width_resp" type="checkbox" id="cff_feed_width_resp" <?php if($cff_feed_width_resp == true) echo "checked"; ?> /><label for="cff_feed_width_resp"><?php _e('Set to be 100% width on mobile?', 'custom-facebook-feed'); ?></label>
1009
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
1010
- <p class="cff-tooltip cff-more-info"><?php _e("If you set a width on the feed then this will be used on mobile as well as desktop. Check this setting to set the feed width to be 100% on mobile so that it is responsive.", 'custom-facebook-feed'); ?></p>
1011
- </div>
1012
- </td>
1013
- </tr>
1014
- <tr valign="top">
1015
- <th class="bump-left" scope="row"><label><?php _e('Feed Height', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> height
1016
- Eg: height=500px</code></th>
1017
- <td>
1018
- <input name="cff_feed_height" type="text" value="<?php esc_attr_e( $cff_feed_height, 'custom-facebook-feed' ); ?>" size="6" />
1019
- <i style="color: #666; font-size: 11px;">Eg. 500px</i>
1020
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1021
- <p class="cff-tooltip cff-more-info"><?php _e("Use this to set a fixed height on the feed. If the feed exceeds this height then a scroll bar will be used. Leave it empty to set no maximum height."); ?></p>
1022
- </td>
1023
- </tr>
1024
- <th class="bump-left" scope="row"><label><?php _e('Feed Padding', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> padding
1025
- Eg: padding=20px</code></th>
1026
- <td>
1027
- <input name="cff_feed_padding" type="text" value="<?php esc_attr_e( $cff_feed_padding, 'custom-facebook-feed' ); ?>" size="6" />
1028
- <i style="color: #666; font-size: 11px;">Eg. 20px or 2%</i>
1029
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1030
- <p class="cff-tooltip cff-more-info"><?php _e("This is the amount of padding/spacing that goes around the feed. This is particularly useful if you intend to set a background color on the feed."); ?></p>
1031
- </td>
1032
- </tr>
1033
- <tr valign="top">
1034
- <th class="bump-left" scope="row"><label><?php _e('Feed Background Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> bgcolor
1035
- Eg: bgcolor=FF0000</code></th>
1036
- <td>
1037
- <input name="cff_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_bg_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1038
- </td>
1039
- </tr>
1040
- <tr valign="top">
1041
- <th class="bump-left" scope="row"><label><?php _e('Add CSS class to feed', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> class
1042
- Eg: class=myfeed</code></th>
1043
- <td>
1044
- <input name="cff_class" type="text" value="<?php esc_attr_e( $cff_class, 'custom-facebook-feed' ); ?>" size="25" />
1045
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1046
- <p class="cff-tooltip cff-more-info"><?php _e("You can add your own CSS classes to the feed here. To add multiple classes separate each with a space, Eg. classone classtwo classthree"); ?></p>
1047
- </td>
1048
- </tr>
1049
-
1050
- <tr valign="top">
1051
- <th class="bump-left" scope="row"><label for="cff_cols">Feed Columns</label><code class="cff_shortcode"> cols
1052
- Eg: cols=3</code></th>
1053
- <td class="cff-short">
1054
- <select name="cff_cols" id="cff_cols">
1055
- <option value="1" <?php if( $cff_cols == 1 ) { echo 'selected'; } ?>>1</option>
1056
- <option value="2" <?php if( $cff_cols == 2 ) { echo 'selected'; } ?>>2</option>
1057
- <option value="3" <?php if( $cff_cols == 3 ) { echo 'selected'; } ?>>3</option>
1058
- <option value="4" <?php if( $cff_cols == 4 ) { echo 'selected'; } ?>>4</option>
1059
- <option value="5" <?php if( $cff_cols == 5 ) { echo 'selected'; } ?>>5</option>
1060
- <option value="6" <?php if( $cff_cols == 6 ) { echo 'selected'; } ?>>6</option>
1061
- </select>
1062
-
1063
- <br />
1064
- <div class="cff-mobile-col-settings" <?php if( intval($cff_cols) > 1 ) echo 'style="display:block;"' ?>>
1065
- <div class="cff-row">
1066
- <label title="Click for shortcode option">Mobile Columns:</label><code class="cff_shortcode"> colsmobile
1067
- Eg: colsmobile=2</code>
1068
- <select name="cff_cols_mobile" id="cff_cols_mobile">
1069
- <option value="1" <?php if( $cff_cols_mobile == 1 ) { echo 'selected'; } ?>>1</option>
1070
- <option value="2" <?php if( $cff_cols_mobile == 2 ) { echo 'selected'; } ?>>2</option>
1071
- </select>
1072
- </div>
1073
- </div>
1074
-
1075
- </td>
1076
- </tr>
1077
-
1078
- </tbody>
1079
- </table>
1080
-
1081
- <?php submit_button(); ?>
1082
-
1083
- <hr id="types" />
1084
- <table class="form-table">
1085
- <tbody>
1086
- <h3><?php _e('Post Types', 'custom-facebook-feed'); ?></h3>
1087
- <tr valign="top">
1088
- <th scope="row"><?php _e('Only show these types of posts:', 'custom-facebook-feed'); ?><br />
1089
- <i style="color: #666; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=types" target="_blank"><?php _e('Upgrade to Pro to enable post types, photos, videos and more', 'custom-facebook-feed'); ?></a></i></th>
1090
- <td>
1091
- <div>
1092
- <input name="cff_show_status_type" type="checkbox" id="cff_show_status_type" disabled checked />
1093
- <label for="cff_show_status_type"><?php _e('Statuses', 'custom-facebook-feed'); ?></label>
1094
- </div>
1095
- <div>
1096
- <input type="checkbox" name="cff_show_event_type" id="cff_show_event_type" disabled checked />
1097
- <label for="cff_show_event_type"><?php _e('Events', 'custom-facebook-feed'); ?></label>
1098
- </div>
1099
- <div>
1100
- <input type="checkbox" name="cff_show_photos_type" id="cff_show_photos_type" disabled checked />
1101
- <label for="cff_show_photos_type"><?php _e('Photos', 'custom-facebook-feed'); ?></label>
1102
- </div>
1103
- <div>
1104
- <input type="checkbox" name="cff_show_video_type" id="cff_show_video_type" disabled checked />
1105
- <label for="cff_show_video_type"><?php _e('Videos', 'custom-facebook-feed'); ?></label>
1106
- </div>
1107
- <div>
1108
- <input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
1109
- <label for="cff_show_links_type"><?php _e('Links', 'custom-facebook-feed'); ?></label>
1110
- </div>
1111
- <div>
1112
- <input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
1113
- <label for="cff_show_links_type"><?php _e('Albums', 'custom-facebook-feed'); ?></label>
1114
- </div>
1115
- </td>
1116
- </tr>
1117
- </tbody>
1118
- </table>
1119
-
1120
- <hr />
1121
-
1122
- <table class="form-table">
1123
- <tbody>
1124
- <h3><?php _e('Header', 'custom-facebook-feed'); ?></h3>
1125
- <tr valign="top">
1126
- <th class="bump-left" scope="row"><label><?php _e('Show Feed Header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showheader
1127
- Eg: showheader=true</code></th>
1128
- <td>
1129
- <input type="checkbox" name="cff_show_header" id="cff_show_header" <?php if($cff_show_header == true) echo 'checked="checked"' ?> />
1130
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is the header?', 'custom-facebook-feed'); ?></a>
1131
- <p class="cff-tooltip cff-more-info"><?php _e("The header allows you to display text and an icon at the top of your feed. Customize the text, style, and layout of the header using the settings below.", "custom-facebook-feed"); ?></p>
1132
- </td>
1133
- </tr>
1134
-
1135
- <tbody>
1136
-
1137
- <tr valign="top" class="cff-header-type">
1138
- <th class="bump-left" scope="row"><label><?php _e('Header Type'); ?></label><code class="cff_shortcode"> headertype
1139
- Eg: headertype=visual</code></th>
1140
- <td>
1141
- <select name="cff_header_type" id="cff_header_type" style="width: 100px;">
1142
- <option value="text" <?php if($cff_header_type == "text") echo 'selected="selected"' ?> ><?php _e('Text'); ?></option>
1143
- <option value="visual" <?php if($cff_header_type == "visual") echo 'selected="selected"' ?> ><?php _e('Visual'); ?></option>
1144
- </select>
1145
-
1146
- <div class="cff-header-options">
1147
- <table>
1148
- <tbody class="cff-facebook-header">
1149
- <tr valign="top">
1150
- <th class="bump-left" scope="row"><label><?php _e('Facebook Header Elements', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
1151
- Eg: headerinc=cover,name
1152
- Eg: headerexclude=about
1153
-
1154
- Options: cover,name,about</code></th>
1155
- <td>
1156
- <div>
1157
- <input name="cff_header_cover" type="checkbox" id="cff_header_cover" <?php if($cff_header_cover == true) echo "checked"; ?> />
1158
- <label for="cff_header_cover">
1159
- <?php _e('Cover Photo', 'custom-facebook-feed'); ?>
1160
- </label>
1161
- </div>
1162
- <div>
1163
- <input name="cff_header_name" type="checkbox" id="cff_header_name" <?php if($cff_header_name == true) echo "checked"; ?> />
1164
- <label for="cff_header_name">
1165
- <?php _e('Name and Avatar', 'custom-facebook-feed'); ?>
1166
- </label>
1167
- </div>
1168
- <div>
1169
- <input name="cff_header_bio" type="checkbox" id="cff_header_bio" <?php if($cff_header_bio == true) echo "checked"; ?> />
1170
- <label for="cff_header_bio">
1171
- <?php _e('About Info (bio and likes)', 'custom-facebook-feed'); ?>
1172
- </label>
1173
- </div>
1174
- </td>
1175
- </tr>
1176
- <tr valign="top">
1177
- <th class="bump-left" scope="row"><label><?php _e('Cover Photo Height', 'custom-facebook-feed'); ?></label></th>
1178
- <td>
1179
- <input style="width:70px" name="cff_header_cover_height" type="text" id="cff_header_cover_height" value="<?php echo $cff_header_cover_height; ?>"/> px
1180
- </td>
1181
- </tr>
1182
- </tbody>
1183
- <tbody class="cff-text-header">
1184
- <tr>
1185
- <th class="bump-left cff-text-header" scope="row"><label><?php _e('Header Text'); ?></label><code class="cff_shortcode"> headertext
1186
- Eg: headertext='Facebook Feed'</code></th>
1187
- <td>
1188
- <input name="cff_header_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_header_text ) ); ?>" size="30" />
1189
- </td>
1190
- </tr>
1191
- <tr valign="top">
1192
- <th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> headerbg
1193
- Eg: headerbg=DDD</code></th>
1194
- <td>
1195
- <input name="cff_header_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_bg_color) ); ?>" class="cff-colorpicker" />
1196
- </td>
1197
- </tr>
1198
- </tr>
1199
- <th class="bump-left" scope="row"><label><?php _e('Padding/Spacing'); ?></label><code class="cff_shortcode"> headerpadding
1200
- Eg: headerpadding=20px</code></th>
1201
- <td>
1202
- <input name="cff_header_padding" type="text" value="<?php esc_attr_e( $cff_header_padding ); ?>" size="6" />
1203
- <i style="color: #666; font-size: 11px;">Eg. 20px</i>
1204
- </td>
1205
- </tr>
1206
- <tr>
1207
- <th class="bump-left" scope="row"><label><?php _e('Icon Type'); ?></label><code class="cff_shortcode"> headericon
1208
- Eg: headericon=facebook</code></th>
1209
- <td>
1210
- <select name="cff_header_icon" id="cff-header-icon">
1211
- <option value="facebook-square" <?php if($cff_header_icon == "facebook-square") echo 'selected="selected"' ?> >Facebook 1</option>
1212
- <option value="facebook" <?php if($cff_header_icon == "facebook") echo 'selected="selected"' ?> >Facebook 2</option>
1213
- <option value="calendar" <?php if($cff_header_icon == "calendar") echo 'selected="selected"' ?> >Events 1</option>
1214
- <option value="calendar-o" <?php if($cff_header_icon == "calendar-o") echo 'selected="selected"' ?> >Events 2</option>
1215
- <option value="picture-o" <?php if($cff_header_icon == "picture-o") echo 'selected="selected"' ?> >Photos</option>
1216
- <option value="users" <?php if($cff_header_icon == "users") echo 'selected="selected"' ?> >People</option>
1217
- <option value="thumbs-o-up" <?php if($cff_header_icon == "thumbs-o-up") echo 'selected="selected"' ?> >Thumbs Up 1</option>
1218
- <option value="thumbs-up" <?php if($cff_header_icon == "thumbs-up") echo 'selected="selected"' ?> >Thumbs Up 2</option>
1219
- <option value="comment-o" <?php if($cff_header_icon == "comment-o") echo 'selected="selected"' ?> >Speech Bubble 1</option>
1220
- <option value="comment" <?php if($cff_header_icon == "comment") echo 'selected="selected"' ?> >Speech Bubble 2</option>
1221
- <option value="ticket" <?php if($cff_header_icon == "ticket") echo 'selected="selected"' ?> >Ticket</option>
1222
- <option value="list-alt" <?php if($cff_header_icon == "list-alt") echo 'selected="selected"' ?> >News List</option>
1223
- <option value="file" <?php if($cff_header_icon == "file") echo 'selected="selected"' ?> >File 1</option>
1224
- <option value="file-o" <?php if($cff_header_icon == "file-o") echo 'selected="selected"' ?> >File 2</option>
1225
- <option value="file-text" <?php if($cff_header_icon == "file-text") echo 'selected="selected"' ?> >File 3</option>
1226
- <option value="file-text-o" <?php if($cff_header_icon == "file-text-o") echo 'selected="selected"' ?> >File 4</option>
1227
- <option value="youtube-play" <?php if($cff_header_icon == "youtube-play") echo 'selected="selected"' ?> >Video</option>
1228
- <option value="youtube" <?php if($cff_header_icon == "youtube") echo 'selected="selected"' ?> >YouTube</option>
1229
- <option value="vimeo-square" <?php if($cff_header_icon == "vimeo-square") echo 'selected="selected"' ?> >Vimeo</option>
1230
- </select>
1231
-
1232
- <i id="cff-header-icon-example" class="fa fa-facebook-square"></i>
1233
- </td>
1234
- </tr>
1235
- <tr>
1236
- <th class="bump-left" scope="row"><label><?php _e('Icon Color'); ?></label><code class="cff_shortcode"> headericoncolor
1237
- Eg: headericoncolor=FFF</code></th>
1238
- <td>
1239
- <input name="cff_header_icon_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_icon_color) ); ?>" class="cff-colorpicker" />
1240
- </td>
1241
- </tr>
1242
- <tr>
1243
- <th class="bump-left" scope="row"><label><?php _e('Icon Size'); ?></label><code class="cff_shortcode"> headericonsize
1244
- Eg: headericonsize=28</code></th>
1245
- <td>
1246
- <select name="cff_header_icon_size" id="cff-header-icon-size" style="width: 80px;">
1247
- <option value="10" <?php if($cff_header_icon_size == "10") echo 'selected="selected"' ?> >10px</option>
1248
- <option value="11" <?php if($cff_header_icon_size == "11") echo 'selected="selected"' ?> >11px</option>
1249
- <option value="12" <?php if($cff_header_icon_size == "12") echo 'selected="selected"' ?> >12px</option>
1250
- <option value="13" <?php if($cff_header_icon_size == "13") echo 'selected="selected"' ?> >13px</option>
1251
- <option value="14" <?php if($cff_header_icon_size == "14") echo 'selected="selected"' ?> >14px</option>
1252
- <option value="16" <?php if($cff_header_icon_size == "16") echo 'selected="selected"' ?> >16px</option>
1253
- <option value="18" <?php if($cff_header_icon_size == "18") echo 'selected="selected"' ?> >18px</option>
1254
- <option value="20" <?php if($cff_header_icon_size == "20") echo 'selected="selected"' ?> >20px</option>
1255
- <option value="24" <?php if($cff_header_icon_size == "24") echo 'selected="selected"' ?> >24px</option>
1256
- <option value="28" <?php if($cff_header_icon_size == "28") echo 'selected="selected"' ?> >28px</option>
1257
- <option value="32" <?php if($cff_header_icon_size == "32") echo 'selected="selected"' ?> >32px</option>
1258
- <option value="36" <?php if($cff_header_icon_size == "36") echo 'selected="selected"' ?> >36px</option>
1259
- <option value="42" <?php if($cff_header_icon_size == "42") echo 'selected="selected"' ?> >42px</option>
1260
- <option value="48" <?php if($cff_header_icon_size == "48") echo 'selected="selected"' ?> >48px</option>
1261
- <option value="54" <?php if($cff_header_icon_size == "54") echo 'selected="selected"' ?> >54px</option>
1262
- <option value="60" <?php if($cff_header_icon_size == "60") echo 'selected="selected"' ?> >60px</option>
1263
- </select>
1264
- </td>
1265
- </tr>
1266
- </tbody>
1267
- </table>
1268
- </div>
1269
- </td>
1270
- </tr>
1271
- </tbody>
1272
-
1273
- <tbody class="cff-header-text-styles">
1274
- <tr valign="top">
1275
- <th class="bump-left" scope="row"><label><?php _e('Display outside scrollable area'); ?></label><code class="cff_shortcode"> headeroutside
1276
- Eg: headeroutside=true</code></th>
1277
- <td>
1278
- <input type="checkbox" name="cff_header_outside" id="cff_header_outside" <?php if($cff_header_outside == true) echo 'checked="checked"' ?> />
1279
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1280
- <p class="cff-tooltip cff-more-info"><?php _e("This positions the Header outside of the feed container. It is useful if your feed has a vertical scrollbar as it places it outside of the scrollable area and fixes it at the top."); ?></p>
1281
- </td>
1282
- </tr>
1283
- <tr>
1284
- <th class="bump-left" scope="row"><label><?php _e('Text Size'); ?></label><code class="cff_shortcode"> headertextsize
1285
- Eg: headertextsize=28</code></th>
1286
- <td>
1287
- <select name="cff_header_text_size" class="cff-text-size-setting">
1288
- <option value="inherit" <?php if($cff_header_text_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
1289
- <option value="10" <?php if($cff_header_text_size == "10") echo 'selected="selected"' ?> >10px</option>
1290
- <option value="11" <?php if($cff_header_text_size == "11") echo 'selected="selected"' ?> >11px</option>
1291
- <option value="12" <?php if($cff_header_text_size == "12") echo 'selected="selected"' ?> >12px</option>
1292
- <option value="13" <?php if($cff_header_text_size == "13") echo 'selected="selected"' ?> >13px</option>
1293
- <option value="14" <?php if($cff_header_text_size == "14") echo 'selected="selected"' ?> >14px</option>
1294
- <option value="16" <?php if($cff_header_text_size == "16") echo 'selected="selected"' ?> >16px</option>
1295
- <option value="18" <?php if($cff_header_text_size == "18") echo 'selected="selected"' ?> >18px</option>
1296
- <option value="20" <?php if($cff_header_text_size == "20") echo 'selected="selected"' ?> >20px</option>
1297
- <option value="24" <?php if($cff_header_text_size == "24") echo 'selected="selected"' ?> >24px</option>
1298
- <option value="28" <?php if($cff_header_text_size == "28") echo 'selected="selected"' ?> >28px</option>
1299
- <option value="32" <?php if($cff_header_text_size == "32") echo 'selected="selected"' ?> >32px</option>
1300
- <option value="36" <?php if($cff_header_text_size == "36") echo 'selected="selected"' ?> >36px</option>
1301
- <option value="42" <?php if($cff_header_text_size == "42") echo 'selected="selected"' ?> >42px</option>
1302
- <option value="48" <?php if($cff_header_text_size == "48") echo 'selected="selected"' ?> >48px</option>
1303
- <option value="54" <?php if($cff_header_text_size == "54") echo 'selected="selected"' ?> >54px</option>
1304
- <option value="60" <?php if($cff_header_text_size == "60") echo 'selected="selected"' ?> >60px</option>
1305
- </select>
1306
- </td>
1307
- </tr>
1308
- <tr>
1309
- <th class="bump-left" scope="row"><label><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> headertextweight
1310
- Eg: headertextweight=bold</code></th>
1311
- <td>
1312
- <select name="cff_header_text_weight" class="cff-text-size-setting">
1313
- <option value="inherit" <?php if($cff_header_text_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
1314
- <option value="normal" <?php if($cff_header_text_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1315
- <option value="bold" <?php if($cff_header_text_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1316
- </select>
1317
- </td>
1318
- </tr>
1319
- <tr>
1320
- <th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label><code class="cff_shortcode"> headertextcolor
1321
- Eg: headertextcolor=333</code></th>
1322
- <td>
1323
- <input name="cff_header_text_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_text_color) ); ?>" class="cff-colorpicker" />
1324
- </td>
1325
- </tr>
1326
- <tr id="author"><!-- Quick link --></tr>
1327
- </tbody>
1328
- </table>
1329
-
1330
- <?php submit_button(); ?>
1331
-
1332
- <hr id="likebox" /><!-- Quick link -->
1333
-
1334
- <h3><?php _e('Like Box / Page Plugin', 'custom-facebook-feed'); ?></h3>
1335
- <table class="form-table">
1336
- <tbody>
1337
- <tr valign="top">
1338
- <th class="bump-left" scope="row"><label><?php _e('Show the Like Box', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
1339
- Eg: include/exclude=likebox</code></th>
1340
- <td>
1341
- <input type="checkbox" name="cff_show_like_box" id="cff_show_like_box" <?php if($cff_show_like_box == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
1342
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is the Like Box?'); ?></a>
1343
- <p class="cff-tooltip cff-more-info"><?php _e("The Like Box is an official Facebook widget that we include at the bottom or top of the feed. It contains information about your Facebook Page and allows users to 'like' it directly on your site."); ?></p>
1344
- </td>
1345
- </tr>
1346
- <tr valign="top">
1347
- <th class="bump-left" scope="row"><label><?php _e('Position', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxpos
1348
- Eg: likeboxpos=top</code></th>
1349
- <td>
1350
- <select name="cff_like_box_position">
1351
- <option value="bottom" <?php if($cff_like_box_position == "bottom") echo 'selected="selected"' ?> ><?php _e('Bottom of feed', 'custom-facebook-feed'); ?></option>
1352
- <option value="top" <?php if($cff_like_box_position == "top") echo 'selected="selected"' ?> ><?php _e('Top of feed', 'custom-facebook-feed'); ?></option>
1353
- </select>
1354
- </td>
1355
- </tr>
1356
- <tr valign="top">
1357
- <th class="bump-left" scope="row"><label><?php _e('Display outside the scrollable area', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxoutside
1358
- Eg: likeboxoutside=true</code></th>
1359
- <td>
1360
- <input type="checkbox" name="cff_like_box_outside" id="cff_like_box_outside" <?php if($cff_like_box_outside == true) echo 'checked="checked"' ?> />
1361
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1362
- <p class="cff-tooltip cff-more-info"><?php _e("This positions the Like Box widget outside of the feed container. It is useful if your feed has a vertical scrollbar as it places it outside of the scrollable area and fixes it at the top or bottom."); ?></p>
1363
- </td>
1364
- </tr>
1365
-
1366
- <tr valign="top">
1367
- <th class="bump-left" scope="row"><label><?php _e('Show faces of fans', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxfaces
1368
- Eg: likeboxfaces=true</code></th>
1369
- <td>
1370
- <input type="checkbox" name="cff_like_box_faces" id="cff_like_box_faces" <?php if($cff_like_box_faces == true) echo 'checked="checked"' ?> />
1371
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1372
- <p class="cff-tooltip cff-more-info"><?php _e("This will display thumbnail photos within the Like Box of some of the people who like your page."); ?></p>
1373
- </td>
1374
- </tr>
1375
- <tr valign="top">
1376
- <th class="bump-left" scope="row"><label><?php _e('Include the Cover Photo', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxcover
1377
- Eg: likeboxcover=true</code></th>
1378
- <td>
1379
- <input type="checkbox" name="cff_like_box_cover" id="cff_like_box_cover" <?php if($cff_like_box_cover == true) echo 'checked="checked"' ?> />
1380
- </td>
1381
- </tr>
1382
- <tr valign="top">
1383
- <th class="bump-left" scope="row"><label><?php _e('Use a small header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxsmallheader
1384
- Eg: likeboxsmallheader=true</code></th>
1385
- <td>
1386
- <input type="checkbox" name="cff_like_box_small_header" id="cff_like_box_small_header" <?php if($cff_like_box_small_header == true) echo 'checked="checked"' ?> />
1387
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1388
- <p class="cff-tooltip cff-more-info"><?php _e("This will display a shorter version of the Like Box with a slimmer cover photo and less information."); ?></p>
1389
- </td>
1390
- </tr>
1391
- <tr valign="top">
1392
- <th class="bump-left" scope="row"><label><?php _e('Hide custom call to action button', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxhidebtn
1393
- Eg: likeboxhidebtn=true</code></th>
1394
- <td>
1395
- <input type="checkbox" name="cff_like_box_hide_cta" id="cff_like_box_hide_cta" <?php if($cff_like_box_hide_cta == true) echo 'checked="checked"' ?> />
1396
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1397
- <p class="cff-tooltip cff-more-info"><?php _e("If you have a custom 'Call To Action' button for your Facebook Page then this will hide it and display the default Like Box button."); ?></p>
1398
- </td>
1399
- </tr>
1400
- <tr valign="top">
1401
- <th class="bump-left" for="cff_likebox_width" scope="row"><label><?php _e('Custom Like Box Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxwidth
1402
- Eg: likeboxwidth=500</code></th>
1403
- <td>
1404
- <input name="cff_likebox_width" type="text" value="<?php esc_attr_e( $cff_likebox_width, 'custom-facebook-feed' ); ?>" size="3" /><span class="cff-pixel-label">px</span>
1405
- <span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Default: 340, Min: 180, Max: 500', 'custom-facebook-feed'); ?></i></span>
1406
- </td>
1407
- </tr>
1408
- </tbody>
1409
- </table>
1410
-
1411
- <?php submit_button(); ?>
1412
-
1413
- <hr />
1414
-
1415
- <h3><?php _e('"Load More" button'); ?></h3>
1416
- <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=loadmore" target="_blank">Upgrade to Pro to enable the Load More button</a>
1417
- <p class="submit cff-expand-button">
1418
- <a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
1419
- </p>
1420
- <table class="form-table cff-expandable-options">
1421
- <tbody>
1422
- <tr valign="top" class="cff-pro">
1423
- <th class="bump-left" scope="row"><label><?php _e('Show "Load More" Button'); ?></label></th>
1424
- <td>
1425
- <input type="checkbox" name="cff_load_more" id="cff_load_more" disabled />
1426
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1427
- <p class="cff-tooltip cff-more-info"><?php _e("The Load More button is added to the bottom of your feed and allows you to dynamically load more posts into your feed. Use the button below to reveal customization settings for the button."); ?></p>
1428
- </td>
1429
- </tr>
1430
- <tr valign="top" class="cff-pro">
1431
- <th class="bump-left" scope="row"><label><?php _e('Button Background Color'); ?></label></th>
1432
- <td>
1433
- <input name="cff_load_more_bg" type="text" class="cff-colorpicker" disabled />
1434
- </td>
1435
- </tr>
1436
- <tr valign="top" class="cff-pro">
1437
- <th class="bump-left" scope="row"><label><?php _e('Button Hover Color'); ?></label></th>
1438
- <td>
1439
- <input name="cff_load_more_bg_hover" type="text" class="cff-colorpicker" disabled />
1440
- </td>
1441
- </tr>
1442
- <tr valign="top" class="cff-pro">
1443
- <th class="bump-left" scope="row"><label><?php _e('Button Text Color'); ?></label></th>
1444
- <td>
1445
- <input name="cff_load_more_text_color" type="text" class="cff-colorpicker" disabled />
1446
- </td>
1447
- </tr>
1448
- <tr valign="top" class="cff-pro">
1449
- <th class="bump-left" scope="row"><label><?php _e('Button Text'); ?></label></th>
1450
- <td>
1451
- <input name="cff_load_more_text" type="text" size="30" disabled />
1452
- </td>
1453
- </tr>
1454
- </tbody>
1455
- </table>
1456
-
1457
- <hr />
1458
-
1459
- <h3><?php _e('Lightbox'); ?></h3>
1460
- <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=lightbox" target="_blank">Upgrade to Pro to enable the Lightbox</a>
1461
- <p class="submit cff-expand-button">
1462
- <a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
1463
- </p>
1464
- <table class="form-table cff-expandable-options">
1465
- <tbody>
1466
- <tr valign="top" class="cff-pro">
1467
- <th class="bump-left" scope="row"><label><?php _e('Disable Popup Lightbox'); ?></label><code class="cff_shortcode"> disablelightbox
1468
- Eg: disablelightbox=true</code></th>
1469
- <td>
1470
- <input name="cff_disable_lightbox" type="checkbox" id="cff_disable_lightbox" disabled />
1471
- <label for="cff_disable_lightbox"><?php _e('Disable'); ?></label>
1472
- </td>
1473
- </tr>
1474
- <tr valign="top" class="cff-pro">
1475
- <th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label></th>
1476
- <td>
1477
- <input name="cff_lightbox_bg_color" type="text" class="cff-colorpicker" disabled />
1478
- </td>
1479
- </tr>
1480
- <tr valign="top" class="cff-pro">
1481
- <th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label></th>
1482
- <td>
1483
- <input name="cff_lightbox_text_color" type="text" class="cff-colorpicker" disabled />
1484
- </td>
1485
- </tr>
1486
- <tr valign="top" class="cff-pro">
1487
- <th class="bump-left" scope="row"><label><?php _e('Link Color'); ?></label></th>
1488
- <td>
1489
- <input name="cff_lightbox_link_color" type="text" class="cff-colorpicker" disabled />
1490
- </td>
1491
- </tr>
1492
- <tr valign="top" class="cff-pro">
1493
- <th class="bump-left" scope="row"><label><?php _e('Show Comments in Lightbox'); ?></label><code class="cff_shortcode"> lightboxcomments
1494
- Eg: lightboxcomments=true</code></th>
1495
- <td>
1496
- <input type="checkbox" name="cff_lightbox_comments" id="cff_lightbox_comments" disabled/>
1497
- <span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('For timeline posts only'); ?></i></span>
1498
- </td>
1499
- </tr>
1500
- </tbody>
1501
- </table>
1502
-
1503
- <hr />
1504
-
1505
- <h3><?php _e('Filter Content by String'); ?></h3>
1506
- <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=filtering" target="_blank">Upgrade to Pro to enable Filtering</a>
1507
- <p class="submit cff-expand-button">
1508
- <a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
1509
- </p>
1510
- <table class="form-table cff-expandable-options">
1511
- <tbody>
1512
- <tr valign="top" class="cff-pro">
1513
- <th class="bump-left" scope="row"><label><?php _e('Only show posts containing:'); ?></label></th>
1514
- <td>
1515
- <input name="cff_filter_string" type="text" size="25" disabled />
1516
- <i style="color: #666; font-size: 11px;">Eg. #smash, balloon </i>
1517
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1518
- <p class="cff-tooltip cff-more-info"><?php _e("You can use this setting to only display posts containing these text strings. Separate multiple strings using commas. If only a few posts, or none at all, are displayed then you may need to increase the plugin's 'Post Limit' settings. See <a href='https://smashballoon.com/filtering-your-facebook-posts/' target='_blank'>this FAQ</a> to learn more about how filtering works."); ?></p>
1519
- </td>
1520
- </tr>
1521
- <tr valign="top" class="cff-pro">
1522
- <th class="bump-left" scope="row"><label><?php _e("Don't show posts containing:"); ?></label></th>
1523
- <td>
1524
- <input name="cff_exclude_string" type="text" size="25" disabled />
1525
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1526
- <p class="cff-tooltip cff-more-info"><?php _e("You can use this setting to remove any posts containing these text strings. Separate multiple strings using commas."); ?></p>
1527
- </td>
1528
- </tr>
1529
- </tbody>
1530
- </table>
1531
-
1532
- <hr />
1533
-
1534
- <?php submit_button(); ?>
1535
-
1536
- <p style="padding-top: 5px;"><i class="fa fa-life-ring" aria-hidden="true"></i>&nbsp; <?php _e('Having trouble using the plugin? Check out the', 'custom-facebook-feed'); ?> <a href='admin.php?page=cff-top&amp;tab=support'><?php _e('Support', 'custom-facebook-feed'); ?></a> <?php _e('tab', 'custom-facebook-feed'); ?>.</p>
1537
-
1538
- <div class="cff_quickstart">
1539
- <h3><i class="fa fa-rocket" aria-hidden="true"></i>&nbsp; Display your feed</h3>
1540
- <p>Copy and paste this shortcode directly into the page, post or widget where you'd like to display the feed: <input type="text" value="[custom-facebook-feed]" size="22" readonly="readonly" style="text-align: center;" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p>
1541
- <p>Find out how to display <a href="https://smashballoon.com/using-shortcode-options-customize-facebook-feeds/" target="_blank"><b>multiple feeds</b></a>.</p>
1542
- </div>
1543
-
1544
-
1545
- <a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png?2019' ?>" /></a>
1546
-
1547
- <?php } //End General tab ?>
1548
- <?php if( $cff_active_tab == 'post_layout' ) { //Start Post Layout tab ?>
1549
-
1550
- <p class="cff_contents_links" id="layout">
1551
- <span>Jump to: </span>
1552
- <a href="#showhide">Show/Hide</a>
1553
- </p>
1554
-
1555
- <input type="hidden" name="<?php echo $style_post_layout_hidden_field_name; ?>" value="Y">
1556
- <br />
1557
- <h3><?php _e('Post Layouts', 'custom-facebook-feed'); ?></h3>
1558
- <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=layouts" target="_blank"><?php _e('Upgrade to Pro to enable layouts', 'custom-facebook-feed'); ?></a>
1559
- <p class="submit cff-expand-button">
1560
- <a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
1561
- </p>
1562
-
1563
- <div class="form-table cff-expandable-options cff-pro">
1564
- <p><?php _e("Choose a layout from the 3 below."); ?>
1565
-
1566
- <div class="cff-layouts">
1567
- <div class="cff-layout cff-thumb <?php if($cff_preset_layout == "thumb") echo "cff-layout-selected"; ?>">
1568
- <h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="thumb" disabled />&nbsp;<?php _e('Thumbnail'); ?></h3>
1569
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/layout-thumb.png' ?>" alt="Thumbnail Layout" />
1570
-
1571
- </div>
1572
- <div class="cff-layout cff-half <?php if($cff_preset_layout == "half") echo "cff-layout-selected"; ?>">
1573
- <h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="half" disabled />&nbsp;<?php _e('Half-width'); ?></h3>
1574
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/layout-half.png' ?>" alt="Half Width Layout" />
1575
-
1576
- </div>
1577
- <div class="cff-layout cff-full <?php if($cff_preset_layout == "full") echo "cff-layout-selected"; ?>">
1578
- <h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="full" disabled />&nbsp;<?php _e('Full-width'); ?></h3>
1579
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/layout-full.png' ?>" alt="Full Width Layout" />
1580
-
1581
- </div>
1582
- </div>
1583
-
1584
- <table class="form-table">
1585
- <tbody>
1586
- <tr class="cff-media-position" class="cff-pro">
1587
- <th><label for="cff_media_position" class="bump-left"><?php _e('Photo/Video Position'); ?></label></th>
1588
- <td>
1589
- <select name="cff_media_position" disabled>
1590
- <option value="below">Below Text</option>
1591
- <option value="above">Above Text</option>
1592
- </select>
1593
- </td>
1594
- </tr>
1595
- <tr class="cff-pro">
1596
- <th><label for="cff_media_position" class="bump-left"><?php _e('Photo/Video Position'); ?></label></th>
1597
- <td>
1598
- <select name="cff_media_position" disabled>
1599
- <option value="below">Below Text</option>
1600
- <option value="above">Above Text</option>
1601
- </select>
1602
- <i style="color: #666; font-size: 11px; margin-left: 5px;">Only applies to Full-width layout</i>
1603
- </td>
1604
- </tr>
1605
- <tr class="cff-pro">
1606
- <th><label for="cff_enable_narrow" class="bump-left"><?php _e('Always use the Full-width layout when feed is narrow?'); ?></label></th>
1607
- <td>
1608
- <input name="cff_enable_narrow" type="checkbox" id="cff_enable_narrow" disabled />
1609
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1610
- <p class="cff-tooltip cff-more-info"><?php _e("When displaying posts in either a narrow column or on a mobile device the plugin will automatically default to using the 'Full-width' layout as it's better suited to narrow sizes."); ?></p>
1611
- </td>
1612
- </tr>
1613
- <tr class="cff-pro">
1614
- <th><label for="cff_one_image" class="bump-left"><?php _e('Only show one image per post'); ?></label></th>
1615
- <td>
1616
- <input name="cff_one_image" type="checkbox" id="cff_one_image" disabled />
1617
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1618
- <p class="cff-tooltip cff-more-info"><?php _e("If a Facebook post contains more than photo then enabling this setting means that only the first photo in the post is displayed."); ?></p>
1619
- </td>
1620
- </tr>
1621
- </tbody>
1622
- </table>
1623
- </div>
1624
-
1625
-
1626
-
1627
- <table class="form-table" id="showhide">
1628
-
1629
- <hr />
1630
- <h3><?php _e('Show/Hide'); ?></h3>
1631
- <table class="form-table">
1632
- <tbody>
1633
- <tr valign="top">
1634
- <th scope="row"><label><?php _e('Include the following in posts: <i style="font-size: 11px;">(when applicable)</i>'); ?></label><code class="cff_shortcode"> include exclude
1635
- Eg: include=text,date,likebox
1636
- Eg: exclude=likebox
1637
-
1638
- Options: author, text, desc, sharedlinks, date, eventtitle, eventdetails, link, likebox</code></th>
1639
- <td class="cff_show_hide_settings">
1640
- <div>
1641
- <input name="cff_show_author" type="checkbox" id="cff_show_author" <?php if($cff_show_author == true) echo "checked"; ?> />
1642
- <label for="cff_show_author">
1643
- <b><?php _e('Author Name and Avatar'); ?></b>
1644
- <p class="cff-show-hide-desc"><?php _e("The author name and avatar image that's shown at the top of each timeline post"); ?></p>
1645
- </label>
1646
-
1647
- </div>
1648
- <div>
1649
- <input name="cff_show_text" type="checkbox" id="cff_show_text" <?php if($cff_show_text == true) echo "checked"; ?> />
1650
- <label for="cff_show_text">
1651
- <b><?php _e('Post Text'); ?></b>
1652
- <p class="cff-show-hide-desc"><?php _e("The main text of the Facebook post"); ?></p>
1653
- </label>
1654
- </div>
1655
- <div>
1656
- <input type="checkbox" name="cff_show_desc" id="cff_show_desc" <?php if($cff_show_desc == true) echo 'checked="checked"' ?> />
1657
- <label for="cff_show_desc">
1658
- <b><?php _e('Description Text'); ?></b>
1659
- <p class="cff-show-hide-desc"><?php _e("The description text associated with shared photos, videos, or links"); ?></p>
1660
- </label>
1661
- </div>
1662
- <div>
1663
- <input type="checkbox" name="cff_show_shared_links" id="cff_show_shared_links" <?php if($cff_show_shared_links == true) echo 'checked="checked"' ?> />
1664
- <label for="cff_show_shared_links">
1665
- <b><?php _e('Shared Link Box'); ?></b>
1666
- <p class="cff-show-hide-desc"><?php _e("The link info box that's created when a link is shared in a Facebook post"); ?></p>
1667
- </label>
1668
- </div>
1669
- <div>
1670
- <input type="checkbox" name="cff_show_date" id="cff_show_date" <?php if($cff_show_date == true) echo 'checked="checked"' ?> />
1671
- <label for="cff_show_date">
1672
- <b><?php _e('Date'); ?></b>
1673
- <p class="cff-show-hide-desc"><?php _e("The date of the post"); ?></p>
1674
- </label>
1675
- </div>
1676
- <div class="cff-disabled">
1677
- <input type="checkbox" name="cff_show_media" disabled />
1678
- <label for="cff_show_media">
1679
- <b><?php _e('Photos and Videos'); ?></b>
1680
- <p class="cff-show-hide-desc"><?php _e("Any photos or videos in your posts"); ?></p>
1681
- </label>
1682
- </div>
1683
- <div>
1684
- <input type="checkbox" name="cff_show_media_link" id="cff_show_media_link" <?php if($cff_show_media_link == true) echo 'checked="checked"' ?> />
1685
- <label for="cff_show_media_link">
1686
- <b><?php _e('Media link', 'custom-facebook-feed'); ?></b>
1687
- <p class="cff-show-hide-desc"><?php _e("Display an icon and link to Facebook if the post contains either a photo or video"); ?></p>
1688
- </label>
1689
- </div>
1690
- <div>
1691
- <input type="checkbox" name="cff_show_event_title" id="cff_show_event_title" <?php if($cff_show_event_title == true) echo 'checked="checked"' ?> />
1692
- <label for="cff_show_event_title">
1693
- <b><?php _e('Event Title'); ?></b>
1694
- <p class="cff-show-hide-desc"><?php _e("The title of an event"); ?></p>
1695
- </label>
1696
- </div>
1697
- <div>
1698
- <input type="checkbox" name="cff_show_event_details" id="cff_show_event_details" <?php if($cff_show_event_details == true) echo 'checked="checked"' ?> />
1699
- <label for="cff_show_event_details">
1700
- <b><?php _e('Event Details'); ?></b>
1701
- <p class="cff-show-hide-desc"><?php _e("The information associated with an event"); ?></p>
1702
- </label>
1703
- </div>
1704
- <div class="cff-disabled">
1705
- <input type="checkbox" name="cff_show_meta" disabled />
1706
- <label for="cff_show_meta">
1707
- <b><?php _e('Like, Shares, and Comments'); ?></b>
1708
- <p class="cff-show-hide-desc"><?php _e("The comments box displayed at the bottom of each timeline post"); ?></p>
1709
- </label>
1710
- </div>
1711
- <div>
1712
- <input type="checkbox" name="cff_show_link" id="cff_show_link" <?php if($cff_show_link == true) echo 'checked="checked"' ?> />
1713
- <label for="cff_show_link">
1714
- <b><?php _e('Post Action Links'); ?></b>
1715
- <p class="cff-show-hide-desc"><?php _e('The "View on Facebook" and "Share" links at the bottom of each post'); ?></p>
1716
- </label>
1717
- </div>
1718
- </td>
1719
- </tr>
1720
- <tr id="poststyle"><!-- Quick link --></tr>
1721
- </tbody>
1722
- </table>
1723
-
1724
- <?php submit_button(); ?>
1725
- <a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
1726
- <?php } //End Post Layout tab ?>
1727
- <?php if( $cff_active_tab == 'typography' ) { //Start Typography tab ?>
1728
-
1729
- <p class="cff_contents_links" id="postitem">
1730
- <span>Jump to: </span>
1731
- <a href="#postitem">Post Item</a>
1732
- <a href="#author">Post Author</a>
1733
- <a href="#text">Post Text</a>
1734
- <a href="#description">Shared Post Description</a>
1735
- <a href="#date">Post Date</a>
1736
- <a href="#links">Shared Link Boxes</a>
1737
- <a href="#eventtitle">Event Title</a>
1738
- <a href="#eventdate">Event Date</a>
1739
- <a href="#eventdetails">Event Details</a>
1740
- <a href="#comments">Comments Box</a>
1741
- <a href="#action">Post Action Links</a>
1742
- </p>
1743
-
1744
- <input type="hidden" name="<?php echo $style_typography_hidden_field_name; ?>" value="Y">
1745
- <br />
1746
-
1747
- <h3><?php _e('Post Item'); ?></h3>
1748
- <table class="form-table">
1749
- <tbody>
1750
- <tr>
1751
- <th class="bump-left" scope="row"><label><?php _e('Post Style'); ?></label><code class="cff_shortcode"> poststyle
1752
- Eg: poststyle=regular/boxed</code></th>
1753
- <td>
1754
- <?php
1755
- //If a post style isn't set (eg on initial update) then set it to be regular unless a bgcolor is set
1756
- if( $cff_post_style == '' || empty($cff_post_style) ){
1757
- $cff_post_style = 'regular';
1758
- if( strlen($cff_post_bg_color) > 1 ) $cff_post_style = 'boxed';
1759
- }
1760
-
1761
- ?>
1762
- <div class="cff-layouts">
1763
- <div class="cff-post-style cff-layout <?php if($cff_post_style == "regular") echo "cff-layout-selected"; ?>">
1764
- <h3><input type="radio" name="cff_post_style" id="cff_post_style" class="cff_post_style" value="regular" <?php if($cff_post_style == "regular") echo "checked"; ?> />&nbsp;<?php _e('Regular'); ?></h3>
1765
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Regular Post Style" />
1766
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Regular Post Style" />
1767
- </div>
1768
-
1769
- <div class="cff-post-style cff-boxed cff-layout <?php if($cff_post_style == "boxed") echo "cff-layout-selected"; ?>">
1770
- <h3><input type="radio" name="cff_post_style" id="cff_post_style" class="cff_post_style" value="boxed" <?php if($cff_post_style == "boxed") echo "checked"; ?> />&nbsp;<?php _e('Boxed'); ?></h3>
1771
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Box Post Style" style="margin-top: -2px;" />
1772
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/post-style.png' ?>" alt="Box Post Style" style="margin-top: 2px;" />
1773
- </div>
1774
-
1775
- <div class="cff-post-style-settings cff-regular">
1776
-
1777
- <div class="cff-row">
1778
- <label><?php _e('Separating Line Color'); ?></label><code class="cff_shortcode"> sepcolor
1779
- Eg: sepcolor=CFCFCF</code>
1780
- <br />
1781
- <input name="cff_sep_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_sep_color) ); ?>" class="cff-colorpicker" />
1782
- </div>
1783
- <div class="cff-row">
1784
- <label><?php _e('Separating Line Thickness'); ?></label><code class="cff_shortcode"> sepsize
1785
- Eg: sepsize=3</code>
1786
- <br />
1787
- <input name="cff_sep_size" type="text" value="<?php esc_attr_e( $cff_sep_size ); ?>" size="1" /><span class="cff-pixel-label">px</span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to hide'); ?></i>
1788
- </div>
1789
- </div>
1790
-
1791
- <div class="cff-post-style-settings cff-boxed">
1792
- <div class="cff-row">
1793
- <label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> postbgcolor
1794
- Eg: postbgcolor=ff0000</code>
1795
- <br />
1796
- <input name="cff_post_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_post_bg_color) ); ?>" class="cff-colorpicker" />
1797
- </div>
1798
- <div class="cff-row">
1799
- <label><?php _e('Rounded Corner Size'); ?></label><code class="cff_shortcode"> postcorners
1800
- Eg: postcorners=10</code>
1801
- <br />
1802
- <input name="cff_post_rounded" type="text" value="<?php esc_attr_e( $cff_post_rounded ); ?>" size="3" /><span class="cff-pixel-label">px</span> <span><i style="color: #666; font-size: 11px; margin-left: 5px;">Eg. 5</i></span>
1803
- </div>
1804
- <div class="cff-row">
1805
- <label><?php _e('Box Shadow'); ?></label><code class="cff_shortcode"> boxshadow
1806
- Eg: boxshadow=true</code>
1807
- <br />
1808
- <input type="checkbox" name="cff_box_shadow" id="cff_box_shadow" <?php if($cff_box_shadow == true) echo 'checked="checked"' ?> /> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Adds a subtle shadow around the post'); ?></i>
1809
- </div>
1810
- </div>
1811
-
1812
- </div>
1813
- </td>
1814
- </tr>
1815
- </tbody>
1816
- </table>
1817
- <hr />
1818
-
1819
- <h3><?php _e('Post Author'); ?></h3>
1820
- <table class="form-table">
1821
- <tbody>
1822
- <tr>
1823
- <th class="bump-left"><label for="cff_author_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> authorsize
1824
- Eg: authorsize=20</code></th>
1825
- <td>
1826
- <select name="cff_author_size" class="cff-text-size-setting">
1827
- <option value="inherit" <?php if($cff_author_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
1828
- <option value="10" <?php if($cff_author_size == "10") echo 'selected="selected"' ?> >10px</option>
1829
- <option value="11" <?php if($cff_author_size == "11") echo 'selected="selected"' ?> >11px</option>
1830
- <option value="12" <?php if($cff_author_size == "12") echo 'selected="selected"' ?> >12px</option>
1831
- <option value="13" <?php if($cff_author_size == "13") echo 'selected="selected"' ?> >13px</option>
1832
- <option value="14" <?php if($cff_author_size == "14") echo 'selected="selected"' ?> >14px</option>
1833
- <option value="16" <?php if($cff_author_size == "16") echo 'selected="selected"' ?> >16px</option>
1834
- <option value="18" <?php if($cff_author_size == "18") echo 'selected="selected"' ?> >18px</option>
1835
- <option value="20" <?php if($cff_author_size == "20") echo 'selected="selected"' ?> >20px</option>
1836
- <option value="24" <?php if($cff_author_size == "24") echo 'selected="selected"' ?> >24px</option>
1837
- <option value="28" <?php if($cff_author_size == "28") echo 'selected="selected"' ?> >28px</option>
1838
- <option value="32" <?php if($cff_author_size == "32") echo 'selected="selected"' ?> >32px</option>
1839
- <option value="36" <?php if($cff_author_size == "36") echo 'selected="selected"' ?> >36px</option>
1840
- <option value="42" <?php if($cff_author_size == "42") echo 'selected="selected"' ?> >42px</option>
1841
- <option value="48" <?php if($cff_author_size == "48") echo 'selected="selected"' ?> >48px</option>
1842
- <option value="54" <?php if($cff_author_size == "54") echo 'selected="selected"' ?> >54px</option>
1843
- <option value="60" <?php if($cff_author_size == "60") echo 'selected="selected"' ?> >60px</option>
1844
- </select>
1845
- </td>
1846
- </tr>
1847
- <tr>
1848
- <th class="bump-left"><label for="cff_author_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> authorcolor
1849
- Eg: authorcolor=ff0000</code></th>
1850
- <td>
1851
- <input name="cff_author_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_author_color) ); ?>" class="cff-colorpicker" />
1852
- </td>
1853
- </tr>
1854
- <tr id="text"><!-- Quick link --></tr>
1855
- </tbody>
1856
- </table>
1857
-
1858
- <div style="margin-top: -15px;">
1859
- <?php submit_button(); ?>
1860
- </div>
1861
-
1862
- <hr />
1863
-
1864
- <h3><?php _e('Post Text'); ?></h3>
1865
- <table class="form-table">
1866
- <tbody>
1867
- <tr valign="top">
1868
- <th class="bump-left" scope="row"><label class="bump-left"><?php _e('Maximum Post Text Length'); ?></label><code class="cff_shortcode"> textlength
1869
- Eg: textlength=200</code></th>
1870
- <td>
1871
- <input name="cff_title_length" type="text" value="<?php esc_attr_e( $cff_title_length_val ); ?>" size="4" /><span class="cff-pixel-label"><?php _e('Characters'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Eg. 200'); ?></i>
1872
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
1873
- <p class="cff-tooltip cff-more-info"><?php _e("If the post text exceeds this length then a 'See More' link will be added. Leave empty to set no maximum length."); ?></p>
1874
- </td>
1875
- </tr>
1876
- <tr>
1877
- <th class="bump-left"><label for="cff_title_format" class="bump-left"><?php _e('Format'); ?></label><code class="cff_shortcode"> textformat
1878
- Eg: textformat=h4</code></th>
1879
- <td>
1880
- <select name="cff_title_format" class="cff-text-size-setting">
1881
- <option value="p" <?php if($cff_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
1882
- <option value="h3" <?php if($cff_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
1883
- <option value="h4" <?php if($cff_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
1884
- <option value="h5" <?php if($cff_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
1885
- <option value="h6" <?php if($cff_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
1886
- </select>
1887
- </td>
1888
- </tr>
1889
- <tr>
1890
- <th class="bump-left"><label for="cff_title_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> textsize
1891
- Eg: textsize=12</code></th>
1892
- <td>
1893
- <select name="cff_title_size" class="cff-text-size-setting">
1894
- <option value="inherit" <?php if($cff_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
1895
- <option value="10" <?php if($cff_title_size == "10") echo 'selected="selected"' ?> >10px</option>
1896
- <option value="11" <?php if($cff_title_size == "11") echo 'selected="selected"' ?> >11px</option>
1897
- <option value="12" <?php if($cff_title_size == "12") echo 'selected="selected"' ?> >12px</option>
1898
- <option value="13" <?php if($cff_title_size == "13") echo 'selected="selected"' ?> >13px</option>
1899
- <option value="14" <?php if($cff_title_size == "14") echo 'selected="selected"' ?> >14px</option>
1900
- <option value="16" <?php if($cff_title_size == "16") echo 'selected="selected"' ?> >16px</option>
1901
- <option value="18" <?php if($cff_title_size == "18") echo 'selected="selected"' ?> >18px</option>
1902
- <option value="20" <?php if($cff_title_size == "20") echo 'selected="selected"' ?> >20px</option>
1903
- <option value="24" <?php if($cff_title_size == "24") echo 'selected="selected"' ?> >24px</option>
1904
- <option value="28" <?php if($cff_title_size == "28") echo 'selected="selected"' ?> >28px</option>
1905
- <option value="32" <?php if($cff_title_size == "32") echo 'selected="selected"' ?> >32px</option>
1906
- <option value="36" <?php if($cff_title_size == "36") echo 'selected="selected"' ?> >36px</option>
1907
- <option value="42" <?php if($cff_title_size == "42") echo 'selected="selected"' ?> >42px</option>
1908
- <option value="48" <?php if($cff_title_size == "48") echo 'selected="selected"' ?> >48px</option>
1909
- <option value="54" <?php if($cff_title_size == "54") echo 'selected="selected"' ?> >54px</option>
1910
- <option value="60" <?php if($cff_title_size == "60") echo 'selected="selected"' ?> >60px</option>
1911
- </select>
1912
- </td>
1913
- </tr>
1914
- <tr>
1915
- <th class="bump-left"><label for="cff_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> textweight
1916
- Eg: textweight=bold</code></th>
1917
- <td>
1918
- <select name="cff_title_weight" class="cff-text-size-setting">
1919
- <option value="inherit" <?php if($cff_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
1920
- <option value="normal" <?php if($cff_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1921
- <option value="bold" <?php if($cff_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1922
- </select>
1923
- </td>
1924
- </tr>
1925
- <tr>
1926
- <th class="bump-left"><label for="cff_title_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> textcolor
1927
- Eg: textcolor=333</code></th>
1928
- <td>
1929
- <input name="cff_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_title_color) ); ?>" class="cff-colorpicker" />
1930
- </td>
1931
- </tr>
1932
- <tr>
1933
- <th class="bump-left"><label for="cff_posttext_link_color" class="bump-left"><?php _e('Link Color'); ?></label><code class="cff_shortcode"> textlinkcolor
1934
- Eg: textlinkcolor=E69100</code></th>
1935
- <td>
1936
- <input name="cff_posttext_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_posttext_link_color) ); ?>" class="cff-colorpicker" />
1937
- </td>
1938
- </tr>
1939
- <tr>
1940
- <th class="bump-left"><label for="cff_title_link" class="bump-left"><?php _e('Link Text to Facebook Post'); ?></label><code class="cff_shortcode"> textlink
1941
- Eg: textlink=true</code></th>
1942
- <td><input type="checkbox" name="cff_title_link" id="cff_title_link" <?php if($cff_title_link == true) echo 'checked="checked"' ?> /></td>
1943
- </tr>
1944
-
1945
- <tr>
1946
- <th class="bump-left"><label for="cff_post_tags" class="bump-left"><?php _e('Link Post Tags'); ?></label><code class="cff_shortcode"> posttags
1947
- Eg: posttags=false</code></th>
1948
- <td>
1949
- <input type="checkbox" name="cff_post_tags" id="cff_post_tags" <?php if($cff_post_tags == true) echo 'checked="checked"' ?> />
1950
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What are Post Tags?'); ?></a>
1951
- <p class="cff-tooltip cff-more-info"><?php _e("When you tag another Facebook page or user in your post using the @ symbol it creates a post tag, which is a link to either that Facebook page or user profile."); ?></p>
1952
- </td>
1953
- </tr>
1954
-
1955
- <tr>
1956
- <th class="bump-left"><label for="cff_link_hashtags" class="bump-left"><?php _e('Link Hashtags'); ?></label><code class="cff_shortcode"> linkhashtags
1957
- Eg: linkhashtags=false</code></th>
1958
- <td>
1959
- <input type="checkbox" name="cff_link_hashtags" id="cff_link_hashtags" <?php if($cff_link_hashtags == true) echo 'checked="checked"' ?> />
1960
- </td>
1961
- </tr>
1962
- <tr id="description"><!-- Quick link --></tr>
1963
- </tbody>
1964
- </table>
1965
-
1966
- <hr />
1967
-
1968
- <h3><?php _e('Shared Post Description'); ?></h3>
1969
- <table class="form-table">
1970
- <tbody>
1971
- <tr>
1972
- <th class="bump-left"><label for="cff_body_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> descsize
1973
- Eg: descsize=11</code></th>
1974
- <td>
1975
- <select name="cff_body_size" class="cff-text-size-setting">
1976
- <option value="inherit" <?php if($cff_body_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
1977
- <option value="10" <?php if($cff_body_size == "10") echo 'selected="selected"' ?> >10px</option>
1978
- <option value="11" <?php if($cff_body_size == "11") echo 'selected="selected"' ?> >11px</option>
1979
- <option value="12" <?php if($cff_body_size == "12") echo 'selected="selected"' ?> >12px</option>
1980
- <option value="13" <?php if($cff_body_size == "13") echo 'selected="selected"' ?> >13px</option>
1981
- <option value="14" <?php if($cff_body_size == "14") echo 'selected="selected"' ?> >14px</option>
1982
- <option value="16" <?php if($cff_body_size == "16") echo 'selected="selected"' ?> >16px</option>
1983
- <option value="18" <?php if($cff_body_size == "18") echo 'selected="selected"' ?> >18px</option>
1984
- <option value="20" <?php if($cff_body_size == "20") echo 'selected="selected"' ?> >20px</option>
1985
- <option value="24" <?php if($cff_body_size == "24") echo 'selected="selected"' ?> >24px</option>
1986
- <option value="28" <?php if($cff_body_size == "28") echo 'selected="selected"' ?> >28px</option>
1987
- <option value="32" <?php if($cff_body_size == "32") echo 'selected="selected"' ?> >32px</option>
1988
- <option value="36" <?php if($cff_body_size == "36") echo 'selected="selected"' ?> >36px</option>
1989
- <option value="42" <?php if($cff_body_size == "42") echo 'selected="selected"' ?> >42px</option>
1990
- <option value="48" <?php if($cff_body_size == "48") echo 'selected="selected"' ?> >48px</option>
1991
- <option value="54" <?php if($cff_body_size == "54") echo 'selected="selected"' ?> >54px</option>
1992
- <option value="60" <?php if($cff_body_size == "60") echo 'selected="selected"' ?> >60px</option>
1993
- </select>
1994
- </td>
1995
- </tr>
1996
- <tr>
1997
- <th class="bump-left"><label for="cff_body_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> descweight
1998
- Eg: descweight=bold</code></th>
1999
- <td>
2000
- <select name="cff_body_weight" class="cff-text-size-setting">
2001
- <option value="inherit" <?php if($cff_body_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2002
- <option value="normal" <?php if($cff_body_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2003
- <option value="bold" <?php if($cff_body_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2004
- </select>
2005
- </td>
2006
- </tr>
2007
- <tr>
2008
- <th class="bump-left"><label for="cff_body_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> desccolor
2009
- Eg: desccolor=9F9F9F</code></th>
2010
-
2011
- <td>
2012
- <input name="cff_body_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_body_color) ); ?>" class="cff-colorpicker" />
2013
- </td>
2014
- </tr>
2015
- <tr id="date"><!-- Quick link --></tr>
2016
- </tbody>
2017
- </table>
2018
-
2019
- <div style="margin-top: -15px;">
2020
- <?php submit_button(); ?>
2021
- </div>
2022
- <hr />
2023
-
2024
- <h3><?php _e('Post Date'); ?></h3>
2025
- <table class="form-table">
2026
- <tbody>
2027
- <tr>
2028
- <th class="bump-left"><label for="cff_date_position" class="bump-left"><?php _e('Position'); ?></label><code class="cff_shortcode"> datepos
2029
- Eg: datepos=below</code></th>
2030
- <td>
2031
- <select name="cff_date_position" style="width: 300px;">
2032
- <option value="author" <?php if($cff_date_position == "author") echo 'selected="selected"' ?> >Immediately under the post author</option>
2033
- <option value="above" <?php if($cff_date_position == "above") echo 'selected="selected"' ?> >At the top of the post</option>
2034
- <option value="below" <?php if($cff_date_position == "below") echo 'selected="selected"' ?> >At the bottom of the post</option>
2035
- </select>
2036
- </td>
2037
- </tr>
2038
- <tr>
2039
- <th class="bump-left"><label for="cff_date_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> datesize
2040
- Eg: datesize=14</code></th>
2041
- <td>
2042
- <select name="cff_date_size" class="cff-text-size-setting">
2043
- <option value="inherit" <?php if($cff_date_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2044
- <option value="10" <?php if($cff_date_size == "10") echo 'selected="selected"' ?> >10px</option>
2045
- <option value="11" <?php if($cff_date_size == "11") echo 'selected="selected"' ?> >11px</option>
2046
- <option value="12" <?php if($cff_date_size == "12") echo 'selected="selected"' ?> >12px</option>
2047
- <option value="13" <?php if($cff_date_size == "13") echo 'selected="selected"' ?> >13px</option>
2048
- <option value="14" <?php if($cff_date_size == "14") echo 'selected="selected"' ?> >14px</option>
2049
- <option value="16" <?php if($cff_date_size == "16") echo 'selected="selected"' ?> >16px</option>
2050
- <option value="18" <?php if($cff_date_size == "18") echo 'selected="selected"' ?> >18px</option>
2051
- <option value="20" <?php if($cff_date_size == "20") echo 'selected="selected"' ?> >20px</option>
2052
- <option value="24" <?php if($cff_date_size == "24") echo 'selected="selected"' ?> >24px</option>
2053
- <option value="28" <?php if($cff_date_size == "28") echo 'selected="selected"' ?> >28px</option>
2054
- <option value="32" <?php if($cff_date_size == "32") echo 'selected="selected"' ?> >32px</option>
2055
- <option value="36" <?php if($cff_date_size == "36") echo 'selected="selected"' ?> >36px</option>
2056
- <option value="42" <?php if($cff_date_size == "42") echo 'selected="selected"' ?> >42px</option>
2057
- <option value="48" <?php if($cff_date_size == "48") echo 'selected="selected"' ?> >48px</option>
2058
- <option value="54" <?php if($cff_date_size == "54") echo 'selected="selected"' ?> >54px</option>
2059
- <option value="60" <?php if($cff_date_size == "60") echo 'selected="selected"' ?> >60px</option>
2060
- </select>
2061
- </td>
2062
- </tr>
2063
- <tr>
2064
- <th class="bump-left"><label for="cff_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> dateweight
2065
- Eg: dateweight=normal</code></th>
2066
- <td>
2067
- <select name="cff_date_weight" class="cff-text-size-setting">
2068
- <option value="inherit" <?php if($cff_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2069
- <option value="normal" <?php if($cff_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2070
- <option value="bold" <?php if($cff_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2071
- </select>
2072
- </td>
2073
- </tr>
2074
- <tr>
2075
- <th class="bump-left"><label for="cff_date_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> datecolor
2076
- Eg: datecolor=EAD114</code></th>
2077
- <td>
2078
- <input name="cff_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_date_color) ); ?>" class="cff-colorpicker" />
2079
- </td>
2080
- </tr>
2081
-
2082
- <tr>
2083
- <th class="bump-left"><label for="cff_date_formatting" class="bump-left"><?php _e('Date Formatting'); ?></label><code class="cff_shortcode"> dateformat
2084
- Eg: dateformat=3</code></th>
2085
- <td>
2086
- <select name="cff_date_formatting" style="width: 300px;">
2087
- <?php $original = strtotime('2016-07-25T17:30:00+0000'); ?>
2088
- <option value="1" <?php if($cff_date_formatting == "1") echo 'selected="selected"' ?> ><?php _e('2 days ago'); ?></option>
2089
- <option value="2" <?php if($cff_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:i a', $original); ?></option>
2090
- <option value="3" <?php if($cff_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('F jS', $original); ?></option>
2091
- <option value="4" <?php if($cff_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('D F jS', $original); ?></option>
2092
- <option value="5" <?php if($cff_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS', $original); ?></option>
2093
- <option value="6" <?php if($cff_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y', $original); ?></option>
2094
- <option value="7" <?php if($cff_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y', $original); ?></option>
2095
- <option value="8" <?php if($cff_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:i a', $original); ?></option>
2096
- <option value="9" <?php if($cff_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
2097
- <option value="10" <?php if($cff_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y', $original); ?></option>
2098
- <option value="18" <?php if($cff_date_formatting == "18") echo 'selected="selected"' ?> ><?php echo date('m.d.y - G:i', $original); ?></option>
2099
- <option value="11" <?php if($cff_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y', $original); ?></option>
2100
- <option value="12" <?php if($cff_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y', $original); ?></option>
2101
- <option value="19" <?php if($cff_date_formatting == "19") echo 'selected="selected"' ?> ><?php echo date('d.m.y - G:i', $original); ?></option>
2102
- <option value="13" <?php if($cff_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y', $original); ?></option>
2103
-
2104
- <option value="14" <?php if($cff_date_formatting == "14") echo 'selected="selected"' ?> ><?php echo date('d-m-Y, G:i', $original); ?></option>
2105
- <option value="15" <?php if($cff_date_formatting == "15") echo 'selected="selected"' ?> ><?php echo date('jS F Y, G:i', $original); ?></option>
2106
- <option value="16" <?php if($cff_date_formatting == "16") echo 'selected="selected"' ?> ><?php echo date('d M Y, G:i', $original); ?></option>
2107
- <option value="17" <?php if($cff_date_formatting == "17") echo 'selected="selected"' ?> ><?php echo date('l jS F Y, G:i', $original); ?></option>
2108
- </select>
2109
- </tr>
2110
-
2111
- <tr>
2112
- <th class="bump-left"><label for="cff_timezone" class="bump-left"><?php _e('Timezone'); ?></label><code class="cff_shortcode"> timezone
2113
- Eg: timezone="America/New_York"
2114
- <a href="http://php.net/manual/en/timezones.php" target="_blank">See full list</a></code></th>
2115
- <td>
2116
- <select name="cff_timezone" style="width: 300px;">
2117
- <option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa'); ?></option>
2118
- <option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian'); ?></option>
2119
- <option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii'); ?></option>
2120
- <option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands'); ?></option>
2121
- <option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands'); ?></option>
2122
- <option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska'); ?></option>
2123
- <option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California'); ?></option>
2124
- <option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands'); ?></option>
2125
- <option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)'); ?></option>
2126
- <option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)'); ?></option>
2127
- <option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan'); ?></option>
2128
- <option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona'); ?></option>
2129
- <option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America'); ?></option>
2130
- <option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey'); ?></option>
2131
- <option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island'); ?></option>
2132
- <option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)'); ?></option>
2133
- <option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)'); ?></option>
2134
- <option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba'); ?></option>
2135
- <option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco'); ?></option>
2136
- <option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas'); ?></option>
2137
- <option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago'); ?></option>
2138
- <option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz'); ?></option>
2139
- <option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands'); ?></option>
2140
- <option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil'); ?></option>
2141
- <option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)'); ?></option>
2142
- <option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)'); ?></option>
2143
- <option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland'); ?></option>
2144
- <option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3'); ?></option>
2145
- <option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo'); ?></option>
2146
- <option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre'); ?></option>
2147
- <option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland'); ?></option>
2148
- <option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires'); ?></option>
2149
- <option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia'); ?></option>
2150
- <option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic'); ?></option>
2151
- <option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.'); ?></option>
2152
- <option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores'); ?></option>
2153
- <option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast'); ?></option>
2154
- <option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin'); ?></option>
2155
- <option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon'); ?></option>
2156
- <option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London'); ?></option>
2157
- <option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik'); ?></option>
2158
- <option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'); ?></option>
2159
- <option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'); ?></option>
2160
- <option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris'); ?></option>
2161
- <option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa'); ?></option>
2162
- <option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek'); ?></option>
2163
- <option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut'); ?></option>
2164
- <option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo'); ?></option>
2165
- <option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza'); ?></option>
2166
- <option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria'); ?></option>
2167
- <option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem'); ?></option>
2168
- <option value="Europe/Helsinki" <?php if($cff_timezone == "Europe/Helsinki") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Helsinki'); ?></option>
2169
- <option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk'); ?></option>
2170
- <option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria'); ?></option>
2171
- <option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd'); ?></option>
2172
- <option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi'); ?></option>
2173
- <option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran'); ?></option>
2174
- <option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat'); ?></option>
2175
- <option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan'); ?></option>
2176
- <option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul'); ?></option>
2177
- <option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg'); ?></option>
2178
- <option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent'); ?></option>
2179
- <option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi'); ?></option>
2180
- <option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu'); ?></option>
2181
- <option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka'); ?></option>
2182
- <option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk'); ?></option>
2183
- <option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)'); ?></option>
2184
- <option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta'); ?></option>
2185
- <option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk'); ?></option>
2186
- <option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi'); ?></option>
2187
- <option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar'); ?></option>
2188
- <option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth'); ?></option>
2189
- <option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla'); ?></option>
2190
- <option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo'); ?></option>
2191
- <option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul'); ?></option>
2192
- <option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk'); ?></option>
2193
- <option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide'); ?></option>
2194
- <option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin'); ?></option>
2195
- <option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane'); ?></option>
2196
- <option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Hobart'); ?></option>
2197
- <option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok'); ?></option>
2198
- <option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island'); ?></option>
2199
- <option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia'); ?></option>
2200
- <option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan'); ?></option>
2201
- <option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island'); ?></option>
2202
- <option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka'); ?></option>
2203
- <option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington'); ?></option>
2204
- <option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.'); ?></option>
2205
- <option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands'); ?></option>
2206
- <option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa'); ?></option>
2207
- <option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati'); ?></option>
2208
- </select>
2209
- </td>
2210
- </tr>
2211
-
2212
- <tr>
2213
- <th class="bump-left"><label for="cff_date_custom" class="bump-left"><?php _e('Custom Format'); ?></label><code class="cff_shortcode"> datecustom
2214
- Eg: datecustom='D M jS, Y'</code></th>
2215
- <td>
2216
- <input name="cff_date_custom" type="text" value="<?php esc_attr_e( $cff_date_custom ); ?>" size="10" placeholder="Eg. F j, Y" />
2217
- <a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
2218
- </td>
2219
- </tr>
2220
- <tr>
2221
- <th class="bump-left"><label for="cff_date_before" class="bump-left"><?php _e('Text Before Date'); ?></label><code class="cff_shortcode"> beforedate
2222
- Eg: beforedate='Posted'</code></th>
2223
- <td>
2224
- <input name="cff_date_before" type="text" value="<?php esc_attr_e( $cff_date_before ); ?>" size="20" placeholder="Eg. Posted" />
2225
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
2226
- <p class="cff-tooltip cff-more-info"><?php _e('You can add custom text here to display immediately <b>before</b> the date text'); ?></p>
2227
- </td>
2228
- </tr>
2229
- <tr>
2230
- <th class="bump-left"><label for="cff_date_after" class="bump-left"><?php _e('Text After Date'); ?></label><code class="cff_shortcode"> afterdate
2231
- Eg: afterdate='Ago'</code></th>
2232
- <td>
2233
- <input name="cff_date_after" type="text" value="<?php esc_attr_e( $cff_date_after ); ?>" size="20" placeholder="Eg. by ___" />
2234
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
2235
- <p class="cff-tooltip cff-more-info"><?php _e('You can add custom text here to display immediately <b>after</b> the date text'); ?></p>
2236
- </td>
2237
- </tr>
2238
- <tr id="links"><!-- Quick link --></tr>
2239
- </tbody>
2240
- </table>
2241
-
2242
- <hr />
2243
-
2244
-
2245
- <h3><?php _e('Shared Link Boxes'); ?></h3>
2246
- <table class="form-table">
2247
- <tbody>
2248
-
2249
- <tr class="cff-settings-row-header"><th>Box Style</th></tr>
2250
- <tr>
2251
- <th class="bump-left"><label for="cff_link_bg_color" class="bump-left"><?php _e('Link Box Background Color'); ?></label><code class="cff_shortcode"> linkbgcolor
2252
- Eg: linkbgcolor='EEE'</code></th>
2253
- <td>
2254
- <input name="cff_link_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_bg_color) ); ?>" class="cff-colorpicker" />
2255
- </td>
2256
- </tr>
2257
-
2258
- <tr>
2259
- <th class="bump-left"><label for="cff_link_border_color" class="bump-left"><?php _e('Link Box Border Color'); ?></label><code class="cff_shortcode"> linkbordercolor
2260
- Eg: linkbordercolor='CCC'</code></th>
2261
- <td>
2262
- <input name="cff_link_border_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_border_color) ); ?>" class="cff-colorpicker" />
2263
- </td>
2264
- </tr>
2265
-
2266
- <tr>
2267
- <th class="bump-left"><label for="cff_disable_link_box" class="bump-left"><?php _e('Remove Background/Border'); ?></label><code class="cff_shortcode"> disablelinkbox
2268
- Eg: disablelinkbox=true</code></th>
2269
- <td><input type="checkbox" name="cff_disable_link_box" id="cff_disable_link_box" <?php if($cff_disable_link_box == true) echo 'checked="checked"' ?> /></td>
2270
- </tr>
2271
-
2272
- <tr class="cff-settings-row-header"><th>Link Title</th></tr>
2273
- <tr>
2274
- <th class="bump-left"><label for="cff_link_title_format" class="bump-left"><?php _e('Link Title Format'); ?></label><code class="cff_shortcode"> linktitleformat
2275
- Eg: linktitleformat='h3'</code></th>
2276
- <td>
2277
- <select name="cff_link_title_format" class="cff-text-size-setting">
2278
- <option value="p" <?php if($cff_link_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
2279
- <option value="h3" <?php if($cff_link_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
2280
- <option value="h4" <?php if($cff_link_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
2281
- <option value="h5" <?php if($cff_link_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
2282
- <option value="h6" <?php if($cff_link_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
2283
- </select>
2284
- </td>
2285
- </tr>
2286
- <tr>
2287
- <th class="bump-left"><label for="cff_link_title_size" class="bump-left"><?php _e('Link Title Size'); ?></label><code class="cff_shortcode"> linktitlesize
2288
- Eg: linktitlesize='18'</code></th>
2289
- <td>
2290
- <select name="cff_link_title_size" class="cff-text-size-setting">
2291
- <option value="inherit" <?php if($cff_link_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2292
- <option value="10" <?php if($cff_link_title_size == "10") echo 'selected="selected"' ?> >10px</option>
2293
- <option value="11" <?php if($cff_link_title_size == "11") echo 'selected="selected"' ?> >11px</option>
2294
- <option value="12" <?php if($cff_link_title_size == "12") echo 'selected="selected"' ?> >12px</option>
2295
- <option value="13" <?php if($cff_link_title_size == "13") echo 'selected="selected"' ?> >13px</option>
2296
- <option value="14" <?php if($cff_link_title_size == "14") echo 'selected="selected"' ?> >14px</option>
2297
- <option value="16" <?php if($cff_link_title_size == "16") echo 'selected="selected"' ?> >16px</option>
2298
- <option value="18" <?php if($cff_link_title_size == "18") echo 'selected="selected"' ?> >18px</option>
2299
- <option value="20" <?php if($cff_link_title_size == "20") echo 'selected="selected"' ?> >20px</option>
2300
- <option value="24" <?php if($cff_link_title_size == "24") echo 'selected="selected"' ?> >24px</option>
2301
- <option value="28" <?php if($cff_link_title_size == "28") echo 'selected="selected"' ?> >28px</option>
2302
- <option value="32" <?php if($cff_link_title_size == "32") echo 'selected="selected"' ?> >32px</option>
2303
- <option value="36" <?php if($cff_link_title_size == "36") echo 'selected="selected"' ?> >36px</option>
2304
- <option value="42" <?php if($cff_link_title_size == "42") echo 'selected="selected"' ?> >42px</option>
2305
- <option value="48" <?php if($cff_link_title_size == "48") echo 'selected="selected"' ?> >48px</option>
2306
- <option value="54" <?php if($cff_link_title_size == "54") echo 'selected="selected"' ?> >54px</option>
2307
- <option value="60" <?php if($cff_link_title_size == "60") echo 'selected="selected"' ?> >60px</option>
2308
- </select>
2309
- </td>
2310
- </tr>
2311
- <tr>
2312
- <th class="bump-left"><label for="cff_link_title_color" class="bump-left"><?php _e('Link Title Color'); ?></label><code class="cff_shortcode"> linktitlecolor
2313
- Eg: linktitlecolor='ff0000'</code></th>
2314
- <td>
2315
- <input name="cff_link_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_title_color) ); ?>" class="cff-colorpicker" />
2316
- </td>
2317
- </tr>
2318
-
2319
- <tr class="cff-settings-row-header"><th>Link URL</th></tr>
2320
- <tr>
2321
- <th class="bump-left"><label for="cff_link_url_size" class="bump-left"><?php _e('Link URL Size'); ?></label><code class="cff_shortcode"> linkurlsize
2322
- Eg: linkurlsize='12'</code></th>
2323
- <td>
2324
- <select name="cff_link_url_size" class="cff-text-size-setting">
2325
- <option value="inherit" <?php if($cff_link_url_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2326
- <option value="10" <?php if($cff_link_url_size == "10") echo 'selected="selected"' ?> >10px</option>
2327
- <option value="11" <?php if($cff_link_url_size == "11") echo 'selected="selected"' ?> >11px</option>
2328
- <option value="12" <?php if($cff_link_url_size == "12") echo 'selected="selected"' ?> >12px</option>
2329
- <option value="13" <?php if($cff_link_url_size == "13") echo 'selected="selected"' ?> >13px</option>
2330
- <option value="14" <?php if($cff_link_url_size == "14") echo 'selected="selected"' ?> >14px</option>
2331
- <option value="16" <?php if($cff_link_url_size == "16") echo 'selected="selected"' ?> >16px</option>
2332
- <option value="18" <?php if($cff_link_url_size == "18") echo 'selected="selected"' ?> >18px</option>
2333
- <option value="20" <?php if($cff_link_url_size == "20") echo 'selected="selected"' ?> >20px</option>
2334
- <option value="24" <?php if($cff_link_url_size == "24") echo 'selected="selected"' ?> >24px</option>
2335
- <option value="28" <?php if($cff_link_url_size == "28") echo 'selected="selected"' ?> >28px</option>
2336
- <option value="32" <?php if($cff_link_url_size == "32") echo 'selected="selected"' ?> >32px</option>
2337
- <option value="36" <?php if($cff_link_url_size == "36") echo 'selected="selected"' ?> >36px</option>
2338
- <option value="42" <?php if($cff_link_url_size == "42") echo 'selected="selected"' ?> >42px</option>
2339
- <option value="48" <?php if($cff_link_url_size == "48") echo 'selected="selected"' ?> >48px</option>
2340
- <option value="54" <?php if($cff_link_url_size == "54") echo 'selected="selected"' ?> >54px</option>
2341
- <option value="60" <?php if($cff_link_url_size == "60") echo 'selected="selected"' ?> >60px</option>
2342
- </select>
2343
- </td>
2344
- </tr>
2345
- <tr>
2346
- <th class="bump-left"><label for="cff_link_url_color" class="bump-left"><?php _e('Link URL Color'); ?></label><code class="cff_shortcode"> linkurlcolor
2347
- Eg: linkurlcolor='999999'</code></th>
2348
- <td>
2349
- <input name="cff_link_url_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_url_color) ); ?>" class="cff-colorpicker" />
2350
- </td>
2351
- </tr>
2352
-
2353
- <tr class="cff-settings-row-header"><th>Link Description</th></tr>
2354
-
2355
- <tr>
2356
- <th class="bump-left"><label for="cff_link_desc_size" class="bump-left"><?php _e('Link Description Size'); ?></label><code class="cff_shortcode"> linkdescsize
2357
- Eg: linkdescsize='14'</code></th>
2358
- <td>
2359
- <select name="cff_link_desc_size" class="cff-text-size-setting">
2360
- <option value="inherit" <?php if($cff_link_desc_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2361
- <option value="10" <?php if($cff_link_desc_size == "10") echo 'selected="selected"' ?> >10px</option>
2362
- <option value="11" <?php if($cff_link_desc_size == "11") echo 'selected="selected"' ?> >11px</option>
2363
- <option value="12" <?php if($cff_link_desc_size == "12") echo 'selected="selected"' ?> >12px</option>
2364
- <option value="13" <?php if($cff_link_desc_size == "13") echo 'selected="selected"' ?> >13px</option>
2365
- <option value="14" <?php if($cff_link_desc_size == "14") echo 'selected="selected"' ?> >14px</option>
2366
- <option value="16" <?php if($cff_link_desc_size == "16") echo 'selected="selected"' ?> >16px</option>
2367
- <option value="18" <?php if($cff_link_desc_size == "18") echo 'selected="selected"' ?> >18px</option>
2368
- <option value="20" <?php if($cff_link_desc_size == "20") echo 'selected="selected"' ?> >20px</option>
2369
- <option value="24" <?php if($cff_link_desc_size == "24") echo 'selected="selected"' ?> >24px</option>
2370
- <option value="28" <?php if($cff_link_desc_size == "28") echo 'selected="selected"' ?> >28px</option>
2371
- <option value="32" <?php if($cff_link_desc_size == "32") echo 'selected="selected"' ?> >32px</option>
2372
- <option value="36" <?php if($cff_link_desc_size == "36") echo 'selected="selected"' ?> >36px</option>
2373
- <option value="42" <?php if($cff_link_desc_size == "42") echo 'selected="selected"' ?> >42px</option>
2374
- <option value="48" <?php if($cff_link_desc_size == "48") echo 'selected="selected"' ?> >48px</option>
2375
- <option value="54" <?php if($cff_link_desc_size == "54") echo 'selected="selected"' ?> >54px</option>
2376
- <option value="60" <?php if($cff_link_desc_size == "60") echo 'selected="selected"' ?> >60px</option>
2377
- </select>
2378
- </td>
2379
- </tr>
2380
-
2381
- <tr>
2382
- <th class="bump-left"><label for="cff_link_desc_color" class="bump-left"><?php _e('Link Description Color'); ?></label><code class="cff_shortcode"> linkdesccolor
2383
- Eg: linkdesccolor='ff0000'</code></th>
2384
- <td>
2385
- <input name="cff_link_desc_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_desc_color) ); ?>" class="cff-colorpicker" />
2386
- </td>
2387
- </tr>
2388
-
2389
- <tr valign="top">
2390
- <th class="bump-left" scope="row"><label class="bump-left"><?php _e('Maximum Link Description Length'); ?></label><code class="cff_shortcode"> desclength
2391
- Eg: desclength=150</code></th>
2392
- <td>
2393
- <input name="cff_body_length" type="text" value="<?php esc_attr_e( $cff_body_length_val ); ?>" size="4" /><span class="cff-pixel-label"><?php _e('Characters'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Eg. 200'); ?></i>
2394
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
2395
- <p class="cff-tooltip cff-more-info"><?php _e("If the link description text exceeds this length then it will be truncated with an ellipsis. Leave empty to set no maximum length."); ?></p>
2396
- </td>
2397
- </tr>
2398
- <tr id="eventtitle"><!-- Quick link --></tr>
2399
- </tbody>
2400
- </table>
2401
-
2402
- <div style="margin-top: -15px;">
2403
- <?php submit_button(); ?>
2404
- </div>
2405
- <hr />
2406
-
2407
- <h3><?php _e('Event Title'); ?></h3>
2408
- <table class="form-table">
2409
- <tbody>
2410
- <tr>
2411
- <th class="bump-left"><label for="cff_event_title_format" class="bump-left"><?php _e('Format'); ?></label><code class="cff_shortcode"> eventtitleformat
2412
- Eg: eventtitleformat=h5</code></th>
2413
- <td>
2414
- <select name="cff_event_title_format" class="cff-text-size-setting">
2415
- <option value="p" <?php if($cff_event_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
2416
- <option value="h3" <?php if($cff_event_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
2417
- <option value="h4" <?php if($cff_event_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
2418
- <option value="h5" <?php if($cff_event_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
2419
- <option value="h6" <?php if($cff_event_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
2420
- </select>
2421
- </td>
2422
- </tr>
2423
-
2424
- <tr>
2425
- <th class="bump-left"><label for="cff_event_title_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventtitlesize
2426
- Eg: eventtitlesize=12</code></th>
2427
- <td>
2428
- <select name="cff_event_title_size" class="cff-text-size-setting">
2429
- <option value="inherit" <?php if($cff_event_title_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2430
- <option value="10" <?php if($cff_event_title_size == "10") echo 'selected="selected"' ?> >10px</option>
2431
- <option value="11" <?php if($cff_event_title_size == "11") echo 'selected="selected"' ?> >11px</option>
2432
- <option value="12" <?php if($cff_event_title_size == "12") echo 'selected="selected"' ?> >12px</option>
2433
- <option value="13" <?php if($cff_event_title_size == "13") echo 'selected="selected"' ?> >13px</option>
2434
- <option value="14" <?php if($cff_event_title_size == "14") echo 'selected="selected"' ?> >14px</option>
2435
- <option value="16" <?php if($cff_event_title_size == "16") echo 'selected="selected"' ?> >16px</option>
2436
- <option value="18" <?php if($cff_event_title_size == "18") echo 'selected="selected"' ?> >18px</option>
2437
- <option value="20" <?php if($cff_event_title_size == "20") echo 'selected="selected"' ?> >20px</option>
2438
- <option value="24" <?php if($cff_event_title_size == "24") echo 'selected="selected"' ?> >24px</option>
2439
- <option value="28" <?php if($cff_event_title_size == "28") echo 'selected="selected"' ?> >28px</option>
2440
- <option value="32" <?php if($cff_event_title_size == "32") echo 'selected="selected"' ?> >32px</option>
2441
- <option value="36" <?php if($cff_event_title_size == "36") echo 'selected="selected"' ?> >36px</option>
2442
- <option value="42" <?php if($cff_event_title_size == "42") echo 'selected="selected"' ?> >42px</option>
2443
- <option value="48" <?php if($cff_event_title_size == "48") echo 'selected="selected"' ?> >48px</option>
2444
- <option value="54" <?php if($cff_event_title_size == "54") echo 'selected="selected"' ?> >54px</option>
2445
- <option value="60" <?php if($cff_event_title_size == "60") echo 'selected="selected"' ?> >60px</option>
2446
- </select>
2447
- </td>
2448
- </tr>
2449
- <tr>
2450
- <th class="bump-left"><label for="cff_event_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventtitleweight
2451
- Eg: eventtitleweight=bold</code></th>
2452
- <td>
2453
- <select name="cff_event_title_weight" class="cff-text-size-setting">
2454
- <option value="inherit" <?php if($cff_event_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2455
- <option value="normal" <?php if($cff_event_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2456
- <option value="bold" <?php if($cff_event_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2457
- </select>
2458
- </td>
2459
- </tr>
2460
- <tr>
2461
- <th class="bump-left"><label for="cff_event_title_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventtitlecolor
2462
- Eg: eventtitlecolor=666</code></th>
2463
- <td>
2464
- <input name="cff_event_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_title_color) ); ?>" class="cff-colorpicker" />
2465
- </td>
2466
- </tr>
2467
- <tr>
2468
- <th class="bump-left"><label for="cff_event_title_link" class="bump-left"><?php _e('Link Title to Event on Facebook'); ?></label><code class="cff_shortcode"> eventtitlelink
2469
- Eg: eventtitlelink=true</code></th>
2470
- <td><input type="checkbox" name="cff_event_title_link" id="cff_event_title_link" <?php if($cff_event_title_link == true) echo 'checked="checked"' ?> /></td>
2471
- </tr>
2472
- <tr id="eventdate"><!-- Quick link --></tr>
2473
- </tbody>
2474
- </table>
2475
- <hr />
2476
-
2477
- <h3><?php _e('Event Date'); ?></h3>
2478
- <table class="form-table">
2479
- <tbody>
2480
- <tr>
2481
- <th class="bump-left"><label for="cff_event_date_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventdatesize
2482
- Eg: eventdatesize=18</code></th>
2483
- <td>
2484
- <select name="cff_event_date_size" class="cff-text-size-setting">
2485
- <option value="inherit" <?php if($cff_event_date_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2486
- <option value="10" <?php if($cff_event_date_size == "10") echo 'selected="selected"' ?> >10px</option>
2487
- <option value="11" <?php if($cff_event_date_size == "11") echo 'selected="selected"' ?> >11px</option>
2488
- <option value="12" <?php if($cff_event_date_size == "12") echo 'selected="selected"' ?> >12px</option>
2489
- <option value="13" <?php if($cff_event_date_size == "13") echo 'selected="selected"' ?> >13px</option>
2490
- <option value="14" <?php if($cff_event_date_size == "14") echo 'selected="selected"' ?> >14px</option>
2491
- <option value="16" <?php if($cff_event_date_size == "16") echo 'selected="selected"' ?> >16px</option>
2492
- <option value="18" <?php if($cff_event_date_size == "18") echo 'selected="selected"' ?> >18px</option>
2493
- <option value="20" <?php if($cff_event_date_size == "20") echo 'selected="selected"' ?> >20px</option>
2494
- <option value="24" <?php if($cff_event_date_size == "24") echo 'selected="selected"' ?> >24px</option>
2495
- <option value="28" <?php if($cff_event_date_size == "28") echo 'selected="selected"' ?> >28px</option>
2496
- <option value="32" <?php if($cff_event_date_size == "32") echo 'selected="selected"' ?> >32px</option>
2497
- <option value="36" <?php if($cff_event_date_size == "36") echo 'selected="selected"' ?> >36px</option>
2498
- <option value="42" <?php if($cff_event_date_size == "42") echo 'selected="selected"' ?> >42px</option>
2499
- <option value="48" <?php if($cff_event_date_size == "48") echo 'selected="selected"' ?> >48px</option>
2500
- <option value="54" <?php if($cff_event_date_size == "54") echo 'selected="selected"' ?> >54px</option>
2501
- <option value="60" <?php if($cff_event_date_size == "60") echo 'selected="selected"' ?> >60px</option>
2502
- </select>
2503
- </td>
2504
- </tr>
2505
- <tr>
2506
- <th class="bump-left"><label for="cff_event_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventdateweight
2507
- Eg: eventdateweight=bold</code></th>
2508
- <td>
2509
- <select name="cff_event_date_weight" class="cff-text-size-setting">
2510
- <option value="inherit" <?php if($cff_event_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2511
- <option value="normal" <?php if($cff_event_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2512
- <option value="bold" <?php if($cff_event_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2513
- </select>
2514
- </td>
2515
- </tr>
2516
- <tr>
2517
- <th class="bump-left"><label for="cff_event_date_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventdatecolor
2518
- Eg: eventdatecolor=EB6A00</code></th>
2519
- <td>
2520
- <input name="cff_event_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_date_color) ); ?>" class="cff-colorpicker" />
2521
- </td>
2522
- </tr>
2523
- <tr valign="top">
2524
- <th class="bump-left" scope="row"><label class="bump-left"><?php _e('Date Position'); ?></label><code class="cff_shortcode"> eventdatepos
2525
- Eg: eventdatepos=below</code></th>
2526
- <td>
2527
- <select name="cff_event_date_position">
2528
- <option value="below" <?php if($cff_event_date_position == "below") echo 'selected="selected"' ?> ><?php _e('Below event title'); ?></option>
2529
- <option value="above" <?php if($cff_event_date_position == "above") echo 'selected="selected"' ?> ><?php _e('Above event title'); ?></option>
2530
- </select>
2531
- </td>
2532
- </tr>
2533
- <tr>
2534
- <th class="bump-left"><label for="cff_event_date_formatting" class="bump-left"><?php _e('Event Date Formatting'); ?></label><code class="cff_shortcode"> eventdateformat
2535
- Eg: eventdateformat=12</code></th>
2536
- <td>
2537
- <select name="cff_event_date_formatting" style="width: 280px;">
2538
- <?php $original = strtotime('2016-07-25T17:30:00+0000'); ?>
2539
- <option value="14" <?php if($cff_event_date_formatting == "14") echo 'selected="selected"' ?> ><?php echo date('M j, g:ia', $original); ?></option>
2540
- <option value="15" <?php if($cff_event_date_formatting == "15") echo 'selected="selected"' ?> ><?php echo date('M j, G:i', $original); ?></option>
2541
- <option value="1" <?php if($cff_event_date_formatting == "1") echo 'selected="selected"' ?> ><?php echo date('F j, Y, g:ia', $original); ?></option>
2542
- <option value="2" <?php if($cff_event_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:ia', $original); ?></option>
2543
- <option value="3" <?php if($cff_event_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('g:ia - F jS', $original); ?></option>
2544
- <option value="4" <?php if($cff_event_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('g:ia, F jS', $original); ?></option>
2545
- <option value="5" <?php if($cff_event_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS - g:ia', $original); ?></option>
2546
- <option value="6" <?php if($cff_event_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y, g:iA', $original); ?></option>
2547
- <option value="7" <?php if($cff_event_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y, g:iA', $original); ?></option>
2548
- <option value="8" <?php if($cff_event_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:ia', $original); ?></option>
2549
- <option value="9" <?php if($cff_event_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
2550
- <option value="10" <?php if($cff_event_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y - g:iA', $original); ?></option>
2551
- <option value="20" <?php if($cff_event_date_formatting == "20") echo 'selected="selected"' ?> ><?php echo date('m.d.y - G:i', $original); ?></option>
2552
- <option value="11" <?php if($cff_event_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y, g:ia', $original); ?></option>
2553
- <option value="12" <?php if($cff_event_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y - g:iA', $original); ?></option>
2554
- <option value="21" <?php if($cff_event_date_formatting == "21") echo 'selected="selected"' ?> ><?php echo date('d.m.y - G:i', $original); ?></option>
2555
- <option value="13" <?php if($cff_event_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y, g:ia', $original); ?></option>
2556
-
2557
- <option value="16" <?php if($cff_event_date_formatting == "16") echo 'selected="selected"' ?> ><?php echo date('d-m-Y, G:i', $original); ?></option>
2558
- <option value="17" <?php if($cff_event_date_formatting == "17") echo 'selected="selected"' ?> ><?php echo date('jS F Y, G:i', $original); ?></option>
2559
- <option value="18" <?php if($cff_event_date_formatting == "18") echo 'selected="selected"' ?> ><?php echo date('d M Y, G:i', $original); ?></option>
2560
- <option value="19" <?php if($cff_event_date_formatting == "19") echo 'selected="selected"' ?> ><?php echo date('l jS F Y, G:i', $original); ?></option>
2561
- </select>
2562
- </td>
2563
- </tr>
2564
- <tr>
2565
- <th class="bump-left"><label for="cff_event_date_custom" class="bump-left"><?php _e('Custom Event Date Format'); ?></label><code class="cff_shortcode"> eventdatecustom
2566
- Eg: eventdatecustom='D M jS, Y'</code></th>
2567
- <td>
2568
- <input name="cff_event_date_custom" type="text" value="<?php _e($cff_event_date_custom); ?>" size="10" placeholder="Eg. F j, Y - g:ia" />
2569
- <a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
2570
- </td>
2571
- </tr>
2572
- <tr id="eventdetails"><!-- Quick link --></tr>
2573
- </tbody>
2574
- </table>
2575
- <hr />
2576
-
2577
- <h3><?php _e('Event Details'); ?></h3>
2578
- <table class="form-table">
2579
- <tbody>
2580
- <tr>
2581
- <th class="bump-left"><label for="cff_event_details_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> eventdetailssize
2582
- Eg: eventdetailssize=13</code></th>
2583
- <td>
2584
- <select name="cff_event_details_size" class="cff-text-size-setting">
2585
- <option value="inherit" <?php if($cff_event_details_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2586
- <option value="10" <?php if($cff_event_details_size == "10") echo 'selected="selected"' ?> >10px</option>
2587
- <option value="11" <?php if($cff_event_details_size == "11") echo 'selected="selected"' ?> >11px</option>
2588
- <option value="12" <?php if($cff_event_details_size == "12") echo 'selected="selected"' ?> >12px</option>
2589
- <option value="13" <?php if($cff_event_details_size == "13") echo 'selected="selected"' ?> >13px</option>
2590
- <option value="14" <?php if($cff_event_details_size == "14") echo 'selected="selected"' ?> >14px</option>
2591
- <option value="16" <?php if($cff_event_details_size == "16") echo 'selected="selected"' ?> >16px</option>
2592
- <option value="18" <?php if($cff_event_details_size == "18") echo 'selected="selected"' ?> >18px</option>
2593
- <option value="20" <?php if($cff_event_details_size == "20") echo 'selected="selected"' ?> >20px</option>
2594
- <option value="24" <?php if($cff_event_details_size == "24") echo 'selected="selected"' ?> >24px</option>
2595
- <option value="28" <?php if($cff_event_details_size == "28") echo 'selected="selected"' ?> >28px</option>
2596
- <option value="32" <?php if($cff_event_details_size == "32") echo 'selected="selected"' ?> >32px</option>
2597
- <option value="36" <?php if($cff_event_details_size == "36") echo 'selected="selected"' ?> >36px</option>
2598
- <option value="42" <?php if($cff_event_details_size == "42") echo 'selected="selected"' ?> >42px</option>
2599
- <option value="48" <?php if($cff_event_details_size == "48") echo 'selected="selected"' ?> >48px</option>
2600
- <option value="54" <?php if($cff_event_details_size == "54") echo 'selected="selected"' ?> >54px</option>
2601
- <option value="60" <?php if($cff_event_details_size == "60") echo 'selected="selected"' ?> >60px</option>
2602
- </select>
2603
- </td>
2604
- </tr>
2605
- <tr>
2606
- <th class="bump-left"><label for="cff_event_details_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> eventdetailsweight
2607
- Eg: eventdetailsweight=bold</code></th>
2608
- <td>
2609
- <select name="cff_event_details_weight" class="cff-text-size-setting">
2610
- <option value="inherit" <?php if($cff_event_details_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2611
- <option value="normal" <?php if($cff_event_details_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2612
- <option value="bold" <?php if($cff_event_details_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2613
- </select>
2614
- </td>
2615
- </tr>
2616
- <tr>
2617
- <th class="bump-left"><label for="cff_event_details_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> eventdetailscolor
2618
- Eg: eventdetailscolor=FFF000</code></th>
2619
- <td>
2620
- <input name="cff_event_details_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_details_color) ); ?>" class="cff-colorpicker" />
2621
- </td>
2622
- </tr>
2623
- <tr>
2624
- <th class="bump-left"><label for="cff_event_link_color" class="bump-left"><?php _e('Link Color'); ?></label><code class="cff_shortcode"> eventlinkcolor
2625
- Eg: eventlinkcolor=333</code></th>
2626
- <td>
2627
- <input name="cff_event_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_link_color) ); ?>" class="cff-colorpicker" />
2628
- </td>
2629
- </tr>
2630
- <tr id="comments"><!-- Quick link --></tr>
2631
- </tbody>
2632
- </table>
2633
-
2634
- <?php submit_button(); ?>
2635
-
2636
- <hr />
2637
-
2638
- <h3><?php _e('Post Action Links'); ?></span> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is this?'); ?></a>
2639
- <p class="cff-tooltip cff-more-info"><?php _e('Post action links refer to the "View on Facebook" and "Share" links at the bottom of each post'); ?></p></h3>
2640
- <table class="form-table">
2641
- <tbody>
2642
- <tr>
2643
- <th class="bump-left"><label for="cff_link_size" class="bump-left"><?php _e('Text Size'); ?></label><code class="cff_shortcode"> linksize
2644
- Eg: linksize=13</code></th>
2645
- <td>
2646
- <select name="cff_link_size" class="cff-text-size-setting">
2647
- <option value="inherit" <?php if($cff_link_size == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2648
- <option value="10" <?php if($cff_link_size == "10") echo 'selected="selected"' ?> >10px</option>
2649
- <option value="11" <?php if($cff_link_size == "11") echo 'selected="selected"' ?> >11px</option>
2650
- <option value="12" <?php if($cff_link_size == "12") echo 'selected="selected"' ?> >12px</option>
2651
- <option value="13" <?php if($cff_link_size == "13") echo 'selected="selected"' ?> >13px</option>
2652
- <option value="14" <?php if($cff_link_size == "14") echo 'selected="selected"' ?> >14px</option>
2653
- <option value="16" <?php if($cff_link_size == "16") echo 'selected="selected"' ?> >16px</option>
2654
- <option value="18" <?php if($cff_link_size == "18") echo 'selected="selected"' ?> >18px</option>
2655
- <option value="20" <?php if($cff_link_size == "20") echo 'selected="selected"' ?> >20px</option>
2656
- <option value="24" <?php if($cff_link_size == "24") echo 'selected="selected"' ?> >24px</option>
2657
- <option value="28" <?php if($cff_link_size == "28") echo 'selected="selected"' ?> >28px</option>
2658
- <option value="32" <?php if($cff_link_size == "32") echo 'selected="selected"' ?> >32px</option>
2659
- <option value="36" <?php if($cff_link_size == "36") echo 'selected="selected"' ?> >36px</option>
2660
- <option value="42" <?php if($cff_link_size == "42") echo 'selected="selected"' ?> >42px</option>
2661
- <option value="48" <?php if($cff_link_size == "48") echo 'selected="selected"' ?> >48px</option>
2662
- <option value="54" <?php if($cff_link_size == "54") echo 'selected="selected"' ?> >54px</option>
2663
- <option value="60" <?php if($cff_link_size == "60") echo 'selected="selected"' ?> >60px</option>
2664
- </select>
2665
- </td>
2666
- </tr>
2667
- <tr>
2668
- <th class="bump-left"><label for="cff_link_weight" class="bump-left"><?php _e('Text Weight'); ?></label><code class="cff_shortcode"> linkweight
2669
- Eg: linkweight=bold</code></th>
2670
- <td>
2671
- <select name="cff_link_weight" class="cff-text-size-setting">
2672
- <option value="inherit" <?php if($cff_link_weight == "inherit") echo 'selected="selected"' ?> >Inherit from theme</option>
2673
- <option value="normal" <?php if($cff_link_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2674
- <option value="bold" <?php if($cff_link_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2675
- </select>
2676
- </td>
2677
- </tr>
2678
- <tr>
2679
- <th class="bump-left"><label for="cff_link_color" class="bump-left"><?php _e('Text Color'); ?></label><code class="cff_shortcode"> linkcolor
2680
- Eg: linkcolor=E01B5D</code></th>
2681
- <td>
2682
- <input name="cff_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_color) ); ?>" class="cff-colorpicker" />
2683
- </td>
2684
- </tr>
2685
- <tr>
2686
- <th class="bump-left"><label for="cff_facebook_link_text" class="bump-left"><?php _e('"View on Facebook" Text'); ?></label><code class="cff_shortcode"> facebooklinktext
2687
- Eg: facebooklinktext='Read more...'</code></th>
2688
- <td>
2689
- <input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" size="25" />
2690
- </td>
2691
- </tr>
2692
-
2693
- <tr>
2694
- <th class="bump-left"><label for="cff_facebook_share_text" class="bump-left"><?php _e('"Share" Text'); ?></label><code class="cff_shortcode"> sharelinktext
2695
- Eg: sharelinktext='Share this post'</code></th>
2696
- <td>
2697
- <input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" size="25" />
2698
- </td>
2699
- </tr>
2700
-
2701
- <tr>
2702
- <th class="bump-left"><label for="cff_show_facebook_link" class="bump-left"><?php _e('Show "View on Facebook" link'); ?></label><code class="cff_shortcode"> showfacebooklink
2703
- Eg: showfacebooklink=true</code></th>
2704
- <td>
2705
- <input type="checkbox" name="cff_show_facebook_link" id="cff_show_facebook_link" <?php if($cff_show_facebook_link == true) echo 'checked="checked"' ?> />
2706
- </td>
2707
- </tr>
2708
-
2709
- <tr>
2710
- <th class="bump-left"><label for="cff_show_facebook_share" class="bump-left"><?php _e('Show "Share" link'); ?></label><code class="cff_shortcode"> showsharelink
2711
- Eg: showsharelink=true</code></th>
2712
- <td>
2713
- <input type="checkbox" name="cff_show_facebook_share" id="cff_show_facebook_share" <?php if($cff_show_facebook_share == true) echo 'checked="checked"' ?> />
2714
- </td>
2715
- </tr>
2716
- <tr id="loadmore"><!-- Quick link --></tr>
2717
- </tbody>
2718
- </table>
2719
-
2720
- <hr />
2721
-
2722
- <h3><?php _e('Likes, Shares and Comments Box'); ?></h3>
2723
- <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=likesharescom" target="_blank">Upgrade to Pro to enable likes, shares and comments</a>
2724
- <p class="submit cff-expand-button">
2725
- <a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
2726
- </p>
2727
- <table class="form-table cff-expandable-options">
2728
- <tbody>
2729
- <tr valign="top" class="cff-pro">
2730
- <th class="bump-left" scope="row"><label><?php _e('Icon Style'); ?></label><code class="cff_shortcode"> iconstyle
2731
- Eg: iconstyle=dark</code></th>
2732
- <td>
2733
- <select name="cff_icon_style" style="width: 250px;" disabled>
2734
- <option value="light"><?php _e('Light (for light backgrounds)'); ?></option>
2735
- <option value="dark"><?php _e('Dark (for dark backgrounds)'); ?></option>
2736
- </select>
2737
- </td>
2738
- </tr>
2739
- <tr valign="top" class="cff-pro">
2740
- <th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label><code class="cff_shortcode"> socialtextcolor
2741
- Eg: socialtextcolor=FFF</code></th>
2742
- <td>
2743
- <input name="cff_meta_text_color" class="cff-colorpicker" />
2744
- </td>
2745
- </tr>
2746
- <tr valign="top" class="cff-pro">
2747
- <th class="bump-left" scope="row"><label><?php _e('Link Color'); ?></label><code class="cff_shortcode"> sociallinkcolor
2748
- Eg: sociallinkcolor=FFF</code></th>
2749
- <td>
2750
- <input name="cff_meta_link_color" class="cff-colorpicker" />
2751
- </td>
2752
- </tr>
2753
- <tr valign="top" class="cff-pro">
2754
- <th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label><code class="cff_shortcode"> socialbgcolor
2755
- Eg: socialbgcolor=111</code></th>
2756
- <td>
2757
- <input name="cff_meta_bg_color" class="cff-colorpicker" />
2758
- </td>
2759
- </tr>
2760
- <tr valign="top" class="cff-pro">
2761
- <th class="bump-left" scope="row"><label><?php _e('Expand Comments Box Initially'); ?></label><code class="cff_shortcode"> expandcomments
2762
- Eg: expandcomments=true</code></th>
2763
- <td>
2764
- <input type="checkbox" name="cff_expand_comments" id="cff_expand_comments" disabled />
2765
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
2766
- <p class="cff-tooltip cff-more-info"><?php _e('Checking this box will automatically expand the comments box beneath each post. Unchecking this box will mean that users will need to click the number of comments below each post in order to expand the comments box.'); ?></p>
2767
- </td>
2768
- </tr>
2769
- <tr valign="top" class="cff-pro">
2770
- <th class="bump-left" for="cff_comments_num" scope="row"><label><?php _e('Number of Comments to Show Initially'); ?></label><code class="cff_shortcode"> commentsnum
2771
- Eg: commentsnum=1</code></th>
2772
- <td>
2773
- <input name="cff_comments_num" type="text" size="2" disabled />
2774
- <span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('25 max'); ?></i></span>
2775
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
2776
- <p class="cff-tooltip cff-more-info"><?php _e('The number of comments to show initially when the comments box is expanded.'); ?></p>
2777
-
2778
- </td>
2779
- </tr>
2780
- <tr valign="top" class="cff-pro">
2781
- <th class="bump-left" scope="row"><label><?php _e('Hide Comment Avatars'); ?></label><code class="cff_shortcode"> hidecommentimages
2782
- Eg: hidecommentimages=true</code></th>
2783
- <td>
2784
- <input type="checkbox" name="cff_hide_comment_avatars" id="cff_hide_comment_avatars" disabled />
2785
- </td>
2786
- </tr>
2787
- <tr valign="top" class="cff-pro">
2788
- <th class="bump-left" scope="row"><label><?php _e('Show Comments in Lightbox'); ?></label></th>
2789
- <td>
2790
- <input type="checkbox" name="cff_lightbox_comments" id="cff_lightbox_comments" disabled />
2791
- <span><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('For timeline posts only'); ?>
2792
- </td>
2793
- </tr>
2794
- <tr id="action"><!-- Quick link --></tr>
2795
- </tbody>
2796
- </table>
2797
-
2798
-
2799
- <div style="margin-top: -15px;">
2800
- <?php submit_button(); ?>
2801
- </div>
2802
-
2803
- <a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
2804
-
2805
- <?php } //End Typography tab ?>
2806
- <?php if( $cff_active_tab == 'misc' ) { //Start Misc tab ?>
2807
-
2808
- <p class="cff_contents_links" id="comments">
2809
- <span>Jump to: </span>
2810
- <a href="#css">Custom CSS</a>
2811
- <a href="#js">Custom JavaScript</a>
2812
- <a href="#gdpr">GDPR</a>
2813
- <a href="#misc">Misc Settings</a>
2814
- </p>
2815
-
2816
- <input type="hidden" name="<?php echo $style_misc_hidden_field_name; ?>" value="Y">
2817
- <br />
2818
-
2819
- <span id="css"><!-- Quick link --></span>
2820
- <hr />
2821
- <h3><?php _e('Custom CSS', 'custom-facebook-feed'); ?></h3>
2822
- <table class="form-table">
2823
- <tbody>
2824
- <tr valign="top">
2825
- <td style="padding-top: 0;">
2826
- <p style="padding-bottom: 10px;"><?php _e('Enter your own custom CSS in the box below', 'custom-facebook-feed'); ?> <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i></p>
2827
- <textarea name="cff_custom_css" id="cff_custom_css" style="width: 70%;" rows="7"><?php echo esc_textarea( stripslashes($cff_custom_css), 'custom-facebook-feed' ); ?></textarea>
2828
- </td>
2829
- </tr>
2830
- </tbody>
2831
- </table>
2832
- <h3 id="js"><?php _e('Custom JavaScript', 'custom-facebook-feed'); ?></h3><!-- Quick link -->
2833
- <table class="form-table">
2834
- <tbody>
2835
- <tr valign="top">
2836
- <td style="padding-top: 0;">
2837
- <p style="padding-bottom: 10px;"><?php _e('Enter your own custom JavaScript/jQuery in the box below', 'custom-facebook-feed'); ?> <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i></p>
2838
- <textarea name="cff_custom_js" id="cff_custom_js" style="width: 70%;" rows="7"><?php echo esc_textarea( stripslashes($cff_custom_js), 'custom-facebook-feed' ); ?></textarea>
2839
- </td>
2840
- </tr>
2841
- </tbody>
2842
- </table>
2843
-
2844
- <?php submit_button(); ?>
2845
- <span id="gdpr"><!-- Quick link --></span>
2846
- <hr />
2847
- <h3><?php _e('GDPR'); ?></h3>
2848
- <table class="form-table">
2849
- <tbody>
2850
- <tr>
2851
- <th class="bump-left"><label class="bump-left"><?php _e("Enable GDPR settings", 'custom-facebook-feed'); ?></label></th>
2852
- <td>
2853
-
2854
- <?php
2855
- $select_options = array(
2856
- array(
2857
- 'label' => __( 'Automatic', 'custom-facebook-feed' ),
2858
- 'value' => 'auto'
2859
- ),
2860
- array(
2861
- 'label' => __( 'Yes', 'custom-facebook-feed' ),
2862
- 'value' => 'yes'
2863
- ),
2864
- array(
2865
- 'label' => __( 'No', 'custom-facebook-feed' ),
2866
- 'value' => 'no'
2867
- )
2868
- )
2869
- ?>
2870
- <?php
2871
- $gdpr_list = "<ul class='cff-list'>
2872
- <li>" . __('The Facebook "Like Box" widget won\'t be included in the feed.', 'custom-facebook-feed') . "</li>
2873
- <li>" . __('The "Visual" header will not be shown.', 'custom-facebook-feed') . "</li>
2874
- <li>" . __('Any profile pictures will show a placeholder.', 'custom-facebook-feed') . "</li>
2875
- </ul>";
2876
- ?>
2877
- <div>
2878
- <select name="gdpr" id="cff_gdpr_setting">
2879
- <?php foreach ( $select_options as $select_option ) :
2880
- $selected = $select_option['value'] === $gdpr ? ' selected' : '';
2881
- ?>
2882
- <option value="<?php echo esc_attr( $select_option['value'] ); ?>"<?php echo $selected; ?> ><?php echo esc_html( $select_option['label'] ); ?></option>
2883
- <?php endforeach; ?>
2884
- </select>
2885
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
2886
- <div class="cff-tooltip cff-more-info gdpr_tooltip">
2887
-
2888
- <p><span><?php _e("Yes", 'custom-facebook-feed' ); ?>:</span> <?php _e("Enabling this setting prevents all images and videos from being loaded directly from Facebook's servers (CDN) to prevent any requests to external websites in your browser. To accommodate this, some features of the plugin will be disabled or limited.", 'custom-facebook-feed' ); ?> <a href="JavaScript:void(0);" class="cff_show_gdpr_list"><?php _e( 'What will be limited?', 'custom-facebook-feed' ); ?></a></p>
2889
-
2890
- <?php echo "<div class='cff_gdpr_list'>" . $gdpr_list . '</div>'; ?>
2891
-
2892
-
2893
- <p><span><?php _e("No", 'custom-facebook-feed' ); ?>:</span> <?php _e("The plugin will still make some requests to load and display images and videos directly from Facebook.", 'custom-facebook-feed' ); ?></p>
2894
-
2895
-
2896
- <p><span><?php _e("Automatic", 'custom-facebook-feed' ); ?>:</span> <?php echo sprintf( __( 'The plugin will only load images and videos directly from Facebook if consent has been given by one of these integrated %s', 'custom-facebook-feed' ), '<a href="https://smashballoon.com/doc/gdpr-plugin-list/?facebook" target="_blank" rel="noopener">' . __( 'GDPR cookie plugins', 'custom-facebook-feed' ) . '</a>' ); ?></p>
2897
-
2898
- <p><?php echo sprintf( __( '%s to learn more about GDPR compliance in the Facebook Feed plugin.', 'custom-facebook-feed' ), '<a href="https://smashballoon.com/doc/custom-facebook-feed-gdpr-compliance/?facebook" target="_blank" rel="noopener">'. __( 'Click here', 'custom-facebook-feed' ).'</a>' ); ?></p>
2899
- </div>
2900
- </div>
2901
-
2902
- <?php if ( ! CFF_GDPR_Integrations::gdpr_tests_successful( isset( $_GET['retest'] ) ) ) :
2903
- $errors = CFF_GDPR_Integrations::gdpr_tests_error_message();
2904
- ?>
2905
- <div class="cff-box cff_gdpr_error">
2906
- <div class="cff-box-setting">
2907
- <p>
2908
- <strong><?php _e( 'Error:', 'custom-facebook-feed' ); ?></strong> <?php _e("Due to a configuration issue on your web server, the GDPR setting is unable to be enabled. Please see below for more information.", 'custom-facebook-feed' ); ?></p>
2909
- <p>
2910
- <?php echo $errors; ?>
2911
- </p>
2912
- </div>
2913
- </div>
2914
- <?php else: ?>
2915
-
2916
- <div class="cff_gdpr_auto">
2917
- <?php if ( CFF_GDPR_Integrations::gdpr_plugins_active() ) :
2918
- $active_plugin = CFF_GDPR_Integrations::gdpr_plugins_active();
2919
- ?>
2920
- <div class="cff_gdpr_plugin_active">
2921
- <div class="cff_active">
2922
- <p>
2923
- <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-check-circle fa-w-16 fa-2x"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z" class=""></path></svg>
2924
- <b><?php echo sprintf( __( '%s detected', 'custom-facebook-feed' ), $active_plugin ); ?></b>
2925
- <br />
2926
- <?php _e( 'Some Facebook Feed features will be limited for visitors to ensure GDPR compliance until they give consent.', 'custom-facebook-feed' ); ?>
2927
- <a href="JavaScript:void(0);" class="cff_show_gdpr_list"><?php _e( 'What will be limited?', 'custom-facebook-feed' ); ?></a>
2928
- </p>
2929
- <?php echo "<div class='cff_gdpr_list'>" . $gdpr_list . '</div>'; ?>
2930
- </div>
2931
-
2932
- </div>
2933
- <?php else: ?>
2934
- <div class="cff-box">
2935
- <div class="cff-box-setting">
2936
- <p><?php _e( 'No GDPR consent plugin detected. Install a compatible <a href="https://smashballoon.com/doc/gdpr-plugin-list/?facebook" target="_blank">GDPR consent plugin</a>, or manually enable the setting above to display a GDPR compliant version of the feed to all visitors.', 'custom-facebook-feed' ); ?></p>
2937
- </div>
2938
- </div>
2939
- <?php endif; ?>
2940
- </div>
2941
-
2942
- <div class="cff-box cff_gdpr_yes">
2943
- <div class="cff-box-setting">
2944
- <p><?php _e( "No requests will be made to third-party websites. To accommodate this, some features of the plugin will be limited:", 'custom-facebook-feed' ); ?></p>
2945
- <?php echo $gdpr_list; ?>
2946
- </div>
2947
- </div>
2948
-
2949
- <div class="cff-box cff_gdpr_no">
2950
- <div class="cff-box-setting">
2951
- <p><?php _e( "The plugin will function as normal and load images and videos directly from Facebook.", 'custom-facebook-feed' ); ?></p>
2952
- </div>
2953
- </div>
2954
- <?php endif; ?>
2955
-
2956
- </td>
2957
- </tr>
2958
-
2959
- </tbody>
2960
- </table>
2961
-
2962
- <hr />
2963
- <h3><?php _e('Media'); ?></h3>
2964
- <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=settings&utm_medium=media" target="_blank">Upgrade to Pro to enable Media options</a>
2965
- <p class="submit cff-expand-button">
2966
- <a href="javascript:void(0);" class="button"><b>+</b> Show Pro Options</a>
2967
- </p>
2968
- <table class="form-table cff-expandable-options">
2969
- <tbody>
2970
- <tr valign="top" class="cff-pro">
2971
- <th class="bump-left" scope="row"><label><?php _e('Disable Popup Lightbox'); ?></label><code class="cff_shortcode"> disablelightbox
2972
- Eg: disablelightbox=true</code></th>
2973
- <td>
2974
- <input name="cff_disable_lightbox" type="checkbox" id="cff_disable_lightbox" disabled />
2975
- <label for="cff_disable_lightbox"><?php _e('Disable'); ?></label>
2976
- </td>
2977
- </tr>
2978
- <tr class="cff-pro">
2979
- <th class="bump-left"><label class="bump-left"><?php _e('Use full-size shared link images'); ?></label><code class="cff_shortcode"> fulllinkimages
2980
- Eg: fulllinkimages=false</code></th>
2981
- <td>
2982
- <input type="checkbox" name="cff_full_link_images" id="cff_full_link_images" disabled />
2983
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
2984
- <p class="cff-tooltip cff-more-info"><?php _e("By default the shared link boxes in your posts use the same layout selected on the 'Post Layout' page, however, but you can disable this by unchecking this setting to force all shared links to use the smaller image thumbnails instead."); ?></p>
2985
- </td>
2986
- </tr>
2987
- <tr valign="top" class="cff-pro">
2988
- <th class="bump-left" scope="row"><label><?php _e('Lightbox video player'); ?></label><code class="cff_shortcode"> videoplayer
2989
- Eg: videoplayer=facebook</code></th>
2990
- <td>
2991
- <select name="cff_video_player" style="width: 280px;" disabled>
2992
- <option value="facebook"><?php _e('Facebook Video Player'); ?></option>
2993
- <option value="standard"><?php _e('Standard HTML5 Video'); ?></option>
2994
- </select>
2995
- </td>
2996
- </tr>
2997
- <tr valign="top" class="cff-pro">
2998
- <th class="bump-left" scope="row"><label><?php _e('Play video action'); ?></label><code class="cff_shortcode"> videoaction
2999
- Eg: videoaction=facebook</code></th>
3000
- <td>
3001
- <select name="cff_video_action" style="width: 280px;" disabled>
3002
- <option value="post"><?php _e('Play videos directly in the feed'); ?></option>
3003
- <!-- Link to the video either on Facebook or whatever the source is: -->
3004
- <option value="facebook"><?php _e('Link to the video on Facebook'); ?></option>
3005
- </select>
3006
- </td>
3007
- </tr>
3008
- </tbody>
3009
- </table>
3010
-
3011
- <hr id="misc" />
3012
- <h3><?php _e('Misc Settings', 'custom-facebook-feed'); ?></h3>
3013
- <table class="form-table">
3014
- <tbody>
3015
- <tr>
3016
- <th class="bump-left"><label class="bump-left"><?php _e('Is your theme loading the feed via Ajax?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> ajax
3017
- Eg: ajax=true</code></th>
3018
- <td>
3019
- <input name="cff_ajax" type="checkbox" id="cff_ajax" <?php if($cff_ajax_val == true) echo "checked"; ?> />
3020
- <label for="cff_ajax"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
3021
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3022
- <p class="cff-tooltip cff-more-info"><?php _e('Some modern WordPress themes use Ajax to load content into the page after it has loaded. If your theme uses Ajax to load the Custom Facebook Feed content into the page then check this box. If you are not sure then please check with the theme author.', 'custom-facebook-feed'); ?></p>
3023
- </td>
3024
- </tr>
3025
- <tr>
3026
- <th class="bump-left"><label class="bump-left"><?php _e("Preserve settings when plugin is removed", 'custom-facebook-feed'); ?></label></th>
3027
- <td>
3028
- <input name="cff_preserve_settings" type="checkbox" id="cff_preserve_settings" <?php if($cff_preserve_settings_val == true) echo "checked"; ?> />
3029
- <label for="cff_preserve_settings"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
3030
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3031
- <p class="cff-tooltip cff-more-info"><?php _e('When removing the plugin your settings are automatically deleted from your database. Checking this box will prevent any settings from being deleted. This means that you can uninstall and reinstall the plugin without losing your settings.', 'custom-facebook-feed'); ?></p>
3032
- </td>
3033
- </tr>
3034
- <tr>
3035
- <th class="bump-left"><label class="bump-left"><?php _e("Display credit link", 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> credit
3036
- Eg: credit=true</code></th>
3037
- <td>
3038
- <input name="cff_show_credit" type="checkbox" id="cff_show_credit" <?php if($cff_show_credit == true) echo "checked"; ?> />
3039
- <label for="cff_show_credit"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
3040
- <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Display a link at the bottom of the feed to help promote the plugin', 'custom-facebook-feed'); ?></i>
3041
- </td>
3042
- </tr>
3043
-
3044
- <tr>
3045
- <th class="bump-left"><label class="bump-left"><?php _e("Enqueue CSS/JS with the shortcode"); ?></label></th>
3046
- <td>
3047
- <input name="cff_enqueue_with_shortcode" type="checkbox" id="cff_enqueue_with_shortcode" <?php if($cff_enqueue_with_shortcode == true) echo "checked"; ?> />
3048
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
3049
- <p class="cff-tooltip cff-more-info"><?php _e("Check this box if you'd like to only include the CSS and JS files for the plugin when the feed is on the page.", 'custom-facebook-feed'); ?></p>
3050
- </td>
3051
- </tr>
3052
-
3053
- <tr>
3054
- <th class="bump-left"><label class="bump-left"><?php _e("Minify CSS and JavaScript files"); ?></label></th>
3055
- <td>
3056
- <input name="cff_minify" type="checkbox" id="cff_minify" <?php if($cff_minify == true) echo "checked"; ?> />
3057
- </td>
3058
- </tr>
3059
-
3060
- <tr>
3061
- <th class="bump-left"><label class="bump-left"><?php _e('Is Facebook Page restricted?'); ?></label><code class="cff_shortcode"> restrictedpage
3062
- Eg: restrictedpage=true</code></th>
3063
- <td>
3064
- <input name="cff_restricted_page" type="checkbox" id="cff_restricted_page" <?php if($cff_restricted_page == true) echo "checked"; ?> />
3065
- <label for="cff_ajax"><?php _e('Yes'); ?></label>
3066
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3067
- <p class="cff-tooltip cff-more-info"><?php _e('If you want to display your Facebook feed on your website then ideally your Facebook page should not have any age or location restrictions on it as that restricts the plugin from being able to fully access the content. If it is not possible for you to remove all restrictions then you can enable this setting.'); ?></p>
3068
- </td>
3069
- </tr>
3070
-
3071
- <tr>
3072
- <th class="bump-left"><label class="bump-left"><?php _e("Icon font source", 'custom-facebook-feed'); ?></label></th>
3073
- <td>
3074
- <select name="cff_font_source">
3075
- <option value="cdn" <?php if($cff_font_source == "cdn") echo 'selected="selected"' ?> ><?php _e('CDN', 'custom-facebook-feed'); ?></option>
3076
- <option value="local" <?php if($cff_font_source == "local") echo 'selected="selected"' ?> ><?php _e('Local copy', 'custom-facebook-feed'); ?></option>
3077
- <option value="none" <?php if($cff_font_source == "none") echo 'selected="selected"' ?> ><?php _e("Don't load", 'custom-facebook-feed'); ?></option>
3078
- </select>
3079
- </td>
3080
- </tr>
3081
-
3082
- <tr>
3083
- <th class="bump-left">
3084
- <label class="bump-left"><?php _e("Force cache to clear on interval", 'custom-facebook-feed'); ?></label>
3085
- </th>
3086
- <td>
3087
- <select name="cff_cron">
3088
- <option value="unset" <?php if($cff_cron == "unset") echo 'selected="selected"' ?> ><?php _e(' - ', 'custom-facebook-feed'); ?></option>
3089
- <option value="yes" <?php if($cff_cron == "yes") echo 'selected="selected"' ?> ><?php _e('Yes', 'custom-facebook-feed'); ?></option>
3090
- <option value="no" <?php if($cff_cron == "no") echo 'selected="selected"' ?> ><?php _e('No', 'custom-facebook-feed'); ?></option>
3091
- </select>
3092
-
3093
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3094
- <p class="cff-tooltip cff-more-info"><?php _e("If you're experiencing an issue with the plugin not auto-updating then you can set this to 'Yes' to run a scheduled event behind the scenes which forces the plugin cache to clear on a regular basis and retrieve new data from Facebook.", 'custom-facebook-feed'); ?></p>
3095
- </td>
3096
- </tr>
3097
-
3098
- <tr>
3099
- <th class="bump-left"><label class="bump-left"><?php _e("Request method", 'custom-facebook-feed'); ?></label></th>
3100
- <td>
3101
- <select name="cff_request_method">
3102
- <option value="auto" <?php if($cff_request_method == "auto") echo 'selected="selected"' ?> ><?php _e('Auto', 'custom-facebook-feed'); ?></option>
3103
- <option value="1" <?php if($cff_request_method == "1") echo 'selected="selected"' ?> ><?php _e('cURL', 'custom-facebook-feed'); ?></option>
3104
- <option value="2" <?php if($cff_request_method == "2") echo 'selected="selected"' ?> ><?php _e('file_get_contents', 'custom-facebook-feed'); ?></option>
3105
- <option value="3" <?php if($cff_request_method == "3") echo 'selected="selected"' ?> ><?php _e("WP_Http", 'custom-facebook-feed'); ?></option>
3106
- </select>
3107
- </td>
3108
- </tr>
3109
- <tr>
3110
- <th class="bump-left"><label class="bump-left"><?php _e('Fix text shortening issue'); ?></label><code class="cff_shortcode"> textissue
3111
- Eg: textissue=true</code></th>
3112
- <td>
3113
- <input name="cff_format_issue" type="checkbox" id="cff_format_issue" <?php if($cff_format_issue == true) echo "checked"; ?> />
3114
- </td>
3115
- </tr>
3116
- <tr>
3117
- <th class="bump-left"><label for="cff_disable_styles" class="bump-left"><?php _e("Disable default styles", 'custom-facebook-feed'); ?></label></th>
3118
- <td>
3119
- <input name="cff_disable_styles" type="checkbox" id="cff_disable_styles" <?php if($cff_disable_styles == true) echo "checked"; ?> />
3120
- <label for="cff_disable_styles"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
3121
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3122
- <p class="cff-tooltip cff-more-info"><?php _e("The plugin includes some basic text and link styles which can be disabled by enabling this setting. Note that the styles used for the layout of the posts will still be applied.", 'custom-facebook-feed'); ?></p>
3123
- </td>
3124
- </tr>
3125
-
3126
- <tr>
3127
- <th class="bump-left"><label for="cff_disable_admin_notice" class="bump-left"><?php _e("Disable admin error notice", 'custom-facebook-feed'); ?></label></th>
3128
- <td>
3129
- <input name="cff_disable_admin_notice" type="checkbox" id="cff_disable_admin_notice" <?php if($cff_disable_admin_notice == true) echo "checked"; ?> />
3130
- <label for="cff_disable_admin_notice"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
3131
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3132
- <p class="cff-tooltip cff-more-info"><?php _e("This will permanently disable the feed error notice that displays in the bottom right corner for admins on the front end of your site.", 'custom-facebook-feed'); ?></p>
3133
- </td>
3134
- </tr>
3135
-
3136
- <tr>
3137
- <th class="bump-left"><label for="cff_enable_email_report" class="bump-left"><?php _e("Feed issue email report", 'custom-facebook-feed'); ?></label></th>
3138
- <td>
3139
- <input name="cff_enable_email_report" type="checkbox" id="cff_enable_email_report" <?php if($cff_enable_email_report == 'on') echo "checked"; ?> />
3140
- <label for="cff_enable_email_report"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
3141
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3142
- <p class="cff-tooltip cff-more-info"><?php _e("Custom Facebook Feed will send a weekly notification email using your site's wp_mail() function if one or more of your feeds is not updating or is not displaying. If you're not receiving the emails in your inbox, you may need to configure an SMTP service using another plugin like WP Mail SMTP.", 'custom-facebook-feed'); ?></p>
3143
-
3144
- <div class="cff_box" style="display: block;">
3145
- <div class="cff_box_setting">
3146
- <label><?php _e('Schedule Weekly on', 'custom-facebook-feed'); ?></label><br>
3147
- <?php
3148
- $schedule_options = array(
3149
- array(
3150
- 'val' => 'monday',
3151
- 'label' => __( 'Monday', 'custom-facebook-feed' )
3152
- ),
3153
- array(
3154
- 'val' => 'tuesday',
3155
- 'label' => __( 'Tuesday', 'custom-facebook-feed' )
3156
- ),
3157
- array(
3158
- 'val' => 'wednesday',
3159
- 'label' => __( 'Wednesday', 'custom-facebook-feed' )
3160
- ),
3161
- array(
3162
- 'val' => 'thursday',
3163
- 'label' => __( 'Thursday', 'custom-facebook-feed' )
3164
- ),
3165
- array(
3166
- 'val' => 'friday',
3167
- 'label' => __( 'Friday', 'custom-facebook-feed' )
3168
- ),
3169
- array(
3170
- 'val' => 'saturday',
3171
- 'label' => __( 'Saturday', 'custom-facebook-feed' )
3172
- ),
3173
- array(
3174
- 'val' => 'sunday',
3175
- 'label' => __( 'Sunday', 'custom-facebook-feed' )
3176
- ),
3177
- );
3178
-
3179
- if ( isset( $_GET['flag'] ) ){
3180
- echo '<span id="cff-goto"></span>';
3181
- }
3182
- ?>
3183
- <select name="cff_email_notification" id="cff_email_notification">
3184
- <?php foreach ( $schedule_options as $schedule_option ) : ?>
3185
- <option value="<?php echo esc_attr( $schedule_option['val'] ) ; ?>" <?php if ( $schedule_option['val'] === $cff_email_notification ) { echo 'selected';} ?>><?php echo esc_html( $schedule_option['label'] ) ; ?></option>
3186
- <?php endforeach; ?>
3187
- </select>
3188
- </div>
3189
- <div class="cff_box_setting">
3190
- <label><?php _e('Email Recipients', 'custom-facebook-feed'); ?></label><br><input class="regular-text" type="text" name="cff_email_notification_addresses" value="<?php echo esc_attr( $cff_email_notification_addresses ); ?>"><span class="cff_note"><?php _e('separate multiple emails with commas', 'custom-facebook-feed'); ?></span>
3191
- <br><br><?php _e( 'Emails not working?', 'custom-facebook-feed' ) ?> <a href="https://smashballoon.com/email-report-is-not-in-my-inbox/" target="_blank"><?php _e( 'See our related FAQ', 'custom-facebook-feed' ) ?></a>
3192
- </div>
3193
- </div>
3194
-
3195
- </td>
3196
- </tr>
3197
-
3198
- <tr>
3199
- <?php
3200
- $usage_tracking = get_option( 'cff_usage_tracking', array( 'last_send' => 0, 'enabled' => CFF_Utils::cff_is_pro_version() ) );
3201
-
3202
- if ( isset( $_POST['cff_email_notification_addresses'] ) ) {
3203
- $usage_tracking['enabled'] = false;
3204
- if ( isset( $_POST['cff_usage_tracking_enable'] ) ) {
3205
- if ( ! is_array( $usage_tracking ) ) {
3206
- $usage_tracking = array(
3207
- 'enabled' => true,
3208
- 'last_send' => 0,
3209
- );
3210
- } else {
3211
- $usage_tracking['enabled'] = true;
3212
- }
3213
- }
3214
- update_option( 'cff_usage_tracking', $usage_tracking, false );
3215
- }
3216
- $cff_usage_tracking_enable = isset( $usage_tracking['enabled'] ) ? $usage_tracking['enabled'] : true;
3217
- ?>
3218
- <th class="bump-left"><label class="bump-left"><?php _e("Enable Usage Tracking", 'custom-facebook-feed'); ?></label></th>
3219
- <td>
3220
- <input name="cff_usage_tracking_enable" type="checkbox" id="cff_usage_tracking_enable" <?php if( $cff_usage_tracking_enable ) echo "checked"; ?> />
3221
- <label for="cff_usage_tracking_enable"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
3222
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is usage tracking?', 'custom-facebook-feed'); ?></a>
3223
- <p class="cff-tooltip"><?php _e("Understanding how you are using the plugin allows us to further improve it. The plugin will send a report in the background once per week which includes information about your plugin settings and statistics about your site, which we can use to help improve the features which matter most to you and improve your experience using the plugin. The plugin will never collect any sensitive information like access tokens, email addresses, or user information, and sending this data won't slow down your site at all. For more information,", 'custom-facebook-feed'); ?> <a href="https://smashballoon.com/custom-facebook-feed/docs/usage-tracking/" target="_blank"><?php _e("see here", 'custom-facebook-feed'); ?></a>.</p>
3224
- </td>
3225
- </tr>
3226
-
3227
- </tbody>
3228
- </table>
3229
-
3230
- <?php submit_button(); ?>
3231
- <a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
3232
- <?php } //End Misc tab ?>
3233
-
3234
-
3235
- <?php if( $cff_active_tab == 'custom_text' ) { //Start Custom Text tab ?>
3236
-
3237
- <p class="cff_contents_links">
3238
- <span>Jump to: </span>
3239
- <a href="#text">Post Text</a>
3240
- <a href="#action">Post Action Links</a>
3241
- <a href="#medialink">Media Links</a>
3242
- <a href="#date">Date</a>
3243
- </p>
3244
-
3245
- <input type="hidden" name="<?php echo $style_custom_text_hidden_field_name; ?>" value="Y">
3246
- <br />
3247
- <h3><?php _e('Custom Text / Translate', 'custom-facebook-feed'); ?></h3>
3248
- <p><?php _e('Enter custom text for the words below, or translate it into the language you would like to use.', 'custom-facebook-feed'); ?></p>
3249
- <table class="form-table cff-translate-table" style="width: 100%; max-width: 940px;">
3250
- <tbody>
3251
-
3252
- <thead id="text">
3253
- <tr>
3254
- <th><?php _e('Original Text', 'custom-facebook-feed'); ?></th>
3255
- <th><?php _e('Custom Text / Translation', 'custom-facebook-feed'); ?></th>
3256
- <th><?php _e('Context', 'custom-facebook-feed'); ?></th>
3257
- </tr>
3258
- </thead>
3259
-
3260
- <tr class="cff-table-header"><th colspan="3"><?php _e('Post Text', 'custom-facebook-feed'); ?></th></tr>
3261
- <tr>
3262
- <td><label for="cff_see_more_text" class="bump-left"><?php _e('See More', 'custom-facebook-feed'); ?></label></td>
3263
- <td><input name="cff_see_more_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_more_text ) ); ?>" /></td>
3264
- <td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
3265
- </tr>
3266
-
3267
- <tr id="action"><!-- Quick link -->
3268
- <td><label for="cff_see_less_text" class="bump-left"><?php _e('See Less', 'custom-facebook-feed'); ?></label></td>
3269
- <td><input name="cff_see_less_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_less_text ) ); ?>" /></td>
3270
- <td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
3271
- </tr>
3272
-
3273
- <tr class="cff-table-header"><th colspan="3"><?php _e('Post Action Links', 'custom-facebook-feed'); ?></th></tr>
3274
- <tr>
3275
- <td><label for="cff_facebook_link_text" class="bump-left"><?php _e('View on Facebook', 'custom-facebook-feed'); ?></label></td>
3276
- <td><input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" /></td>
3277
- <td class="cff-context"><?php _e('Used for the link to the post on Facebook', 'custom-facebook-feed'); ?></td>
3278
- </tr>
3279
- <tr>
3280
- <td><label for="cff_facebook_share_text" class="bump-left"><?php _e('Share', 'custom-facebook-feed'); ?></label></td>
3281
- <td><input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" /></td>
3282
- <td class="cff-context"><?php _e('Used for sharing the Facebook post via Social Media', 'custom-facebook-feed'); ?></td>
3283
- </tr>
3284
-
3285
- <tr id="medialink"><!-- Quick link -->
3286
- <td><label for="cff_translate_photos_text" class="bump-left"><?php _e('photos', 'custom-facebook-feed'); ?></label></td>
3287
- <td><input name="cff_translate_photos_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photos_text ) ); ?>" /></td>
3288
- <td class="cff-context"><?php _e('Added to the end of an album name. Eg. (6 photos)', 'custom-facebook-feed'); ?></td>
3289
- </tr>
3290
-
3291
- <tr class="cff-table-header"><th colspan="3"><?php _e('Media Links', 'custom-facebook-feed'); ?></th></tr>
3292
- <tr>
3293
- <td><label for="cff_translate_photo_text" class="bump-left"><?php _e('Photo', 'custom-facebook-feed'); ?></label></td>
3294
- <td><input name="cff_translate_photo_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photo_text ) ); ?>" /></td>
3295
- <td class="cff-context"><?php _e('Used to link to photos on Facebook', 'custom-facebook-feed'); ?></td>
3296
- </tr>
3297
- <tr id="date"><!-- Quick link -->
3298
- <td><label for="cff_translate_video_text" class="bump-left"><?php _e('Video', 'custom-facebook-feed'); ?></label></td>
3299
- <td><input name="cff_translate_video_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_video_text ) ); ?>" /></td>
3300
- <td class="cff-context"><?php _e('Used to link to videos on Facebook', 'custom-facebook-feed'); ?></td>
3301
- </tr>
3302
-
3303
- <tr class="cff-table-header"><th colspan="3"><?php _e('Call-to-action Buttons', 'custom-facebook-feed'); ?></th></tr>
3304
- <tr>
3305
- <td><label for="cff_translate_learn_more_text" class="bump-left"><?php _e('Learn More', 'custom-facebook-feed'); ?></label></td>
3306
- <td><input name="cff_translate_learn_more_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_learn_more_text ) ); ?>" /></td>
3307
- <td class="cff-context"><?php _e("Used for the 'Learn More' button", 'custom-facebook-feed'); ?></td>
3308
- </tr>
3309
- <tr>
3310
- <td><label for="cff_translate_shop_now_text" class="bump-left"><?php _e('Shop Now', 'custom-facebook-feed'); ?></label></td>
3311
- <td><input name="cff_translate_shop_now_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_shop_now_text ) ); ?>" /></td>
3312
- <td class="cff-context"><?php _e("Used for the 'Shop Now' button", 'custom-facebook-feed'); ?></td>
3313
- </tr>
3314
- <tr>
3315
- <td><label for="cff_translate_message_page_text" class="bump-left"><?php _e('Message Page', 'custom-facebook-feed'); ?></label></td>
3316
- <td><input name="cff_translate_message_page_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_message_page_text ) ); ?>" /></td>
3317
- <td class="cff-context"><?php _e("Used for the 'Message Page' button", 'custom-facebook-feed'); ?></td>
3318
- </tr>
3319
-
3320
- <tr class="cff-table-header"><th colspan="3"><?php _e('Date', 'custom-facebook-feed'); ?></th></tr>
3321
- <tr>
3322
- <td><label for="cff_photos_text" class="bump-left"><?php _e('"Posted _ hours ago" text', 'custom-facebook-feed'); ?></label></td>
3323
- <td class="cff-translate-date">
3324
-
3325
- <label for="cff_translate_second"><?php _e("second", 'custom-facebook-feed'); ?></label>
3326
- <input name="cff_translate_second" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_second ) ); ?>" size="20" />
3327
- <br />
3328
- <label for="cff_translate_seconds"><?php _e("seconds", 'custom-facebook-feed'); ?></label>
3329
- <input name="cff_translate_seconds" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_seconds ) ); ?>" size="20" />
3330
- <br />
3331
- <label for="cff_translate_minute"><?php _e("minute", 'custom-facebook-feed'); ?></label>
3332
- <input name="cff_translate_minute" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minute ) ); ?>" size="20" />
3333
- <br />
3334
- <label for="cff_translate_minutes"><?php _e("minutes", 'custom-facebook-feed'); ?></label>
3335
- <input name="cff_translate_minutes" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minutes ) ); ?>" size="20" />
3336
- <br />
3337
- <label for="cff_translate_hour"><?php _e("hour", 'custom-facebook-feed'); ?></label>
3338
- <input name="cff_translate_hour" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hour ) ); ?>" size="20" />
3339
- <br />
3340
- <label for="cff_translate_hours"><?php _e("hours", 'custom-facebook-feed'); ?></label>
3341
- <input name="cff_translate_hours" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hours ) ); ?>" size="20" />
3342
- <br />
3343
- <label for="cff_translate_day"><?php _e("day", 'custom-facebook-feed'); ?></label>
3344
- <input name="cff_translate_day" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_day ) ); ?>" size="20" />
3345
- <br />
3346
- <label for="cff_translate_days"><?php _e("days", 'custom-facebook-feed'); ?></label>
3347
- <input name="cff_translate_days" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_days ) ); ?>" size="20" />
3348
- <br />
3349
- <label for="cff_translate_week"><?php _e("week", 'custom-facebook-feed'); ?></label>
3350
- <input name="cff_translate_week" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_week ) ); ?>" size="20" />
3351
- <br />
3352
- <label for="cff_translate_weeks"><?php _e("weeks", 'custom-facebook-feed'); ?></label>
3353
- <input name="cff_translate_weeks" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_weeks ) ); ?>" size="20" />
3354
- <br />
3355
- <label for="cff_translate_month"><?php _e("month", 'custom-facebook-feed'); ?></label>
3356
- <input name="cff_translate_month" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_month ) ); ?>" size="20" />
3357
- <br />
3358
- <label for="cff_translate_months"><?php _e("months", 'custom-facebook-feed'); ?></label>
3359
- <input name="cff_translate_months" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_months ) ); ?>" size="20" />
3360
- <br />
3361
- <label for="cff_translate_year"><?php _e("year", 'custom-facebook-feed'); ?></label>
3362
- <input name="cff_translate_year" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_year ) ); ?>" size="20" />
3363
- <br />
3364
- <label for="cff_translate_years"><?php _e("years", 'custom-facebook-feed'); ?></label>
3365
- <input name="cff_translate_years" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_years ) ); ?>" size="20" />
3366
- <br />
3367
- <label for="cff_translate_ago"><?php _e("ago", 'custom-facebook-feed'); ?></label>
3368
- <input name="cff_translate_ago" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_ago ) ); ?>" size="20" />
3369
- </td>
3370
- <td class="cff-context"><?php _e('Used to translate the "__ days ago" date text', 'custom-facebook-feed'); ?></td>
3371
- </tr>
3372
-
3373
- </tbody>
3374
- </table>
3375
-
3376
- <?php submit_button(); ?>
3377
- <a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png' ?>" /></a>
3378
- <?php } //End Custom Text tab ?>
3379
-
3380
- </form>
3381
-
3382
- <div class="cff-share-plugin">
3383
- <h3><?php _e('Like the plugin? Help spread the word!', 'custom-facebook-feed'); ?></h3>
3384
-
3385
- <button id="cff-admin-show-share-links" class="button secondary" style="margin-bottom: 1px;"><i class="fa fa-share-alt" aria-hidden="true"></i>&nbsp;&nbsp;Share the plugin</button> <div id="cff-admin-share-links"></div>
3386
- </div>
3387
-
3388
- <?php
3389
- } //End Style_Page
3390
-
3391
-
3392
-
3393
- //Create Settings page
3394
- function cff_settings_page() {
3395
- //Declare variables for fields
3396
- $hidden_field_name = 'cff_submit_hidden';
3397
- $show_access_token = 'cff_show_access_token';
3398
- $access_token = 'cff_access_token';
3399
- $page_id = 'cff_page_id';
3400
- $cff_connected_accounts = 'cff_connected_accounts';
3401
- $cff_page_type = 'cff_page_type';
3402
- $num_show = 'cff_num_show';
3403
- $cff_post_limit = 'cff_post_limit';
3404
- $cff_show_others = 'cff_show_others';
3405
- $cff_cache_time = 'cff_cache_time';
3406
- $cff_cache_time_unit = 'cff_cache_time_unit';
3407
- $cff_locale = 'cff_locale';
3408
- // Read in existing option value from database
3409
- $show_access_token_val = true;
3410
- $access_token_val = get_option( $access_token );
3411
- $page_id_val = get_option( $page_id );
3412
- $cff_connected_accounts_val = get_option( $cff_connected_accounts );
3413
-
3414
- $cff_page_type_val = get_option( $cff_page_type, 'page' );
3415
- $num_show_val = get_option( $num_show, '5' );
3416
- $cff_post_limit_val = get_option( $cff_post_limit );
3417
- $cff_show_others_val = get_option( $cff_show_others );
3418
- $cff_cache_time_val = get_option( $cff_cache_time, '1' );
3419
- $cff_cache_time_unit_val = get_option( $cff_cache_time_unit, 'hours' );
3420
- $cff_locale_val = get_option( $cff_locale, 'en_US' );
3421
-
3422
- //Timezone
3423
- $defaults = array(
3424
- 'cff_timezone' => 'America/Chicago',
3425
- 'cff_num_mobile' => ''
3426
- );
3427
- $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
3428
- $cff_timezone = $options[ 'cff_timezone' ];
3429
- $cff_num_mobile = $options[ 'cff_num_mobile' ];
3430
-
3431
-
3432
- //Check nonce before saving data
3433
- if ( ! isset( $_POST['cff_settings_nonce'] ) || ! wp_verify_nonce( $_POST['cff_settings_nonce'], 'cff_saving_settings' ) ) {
3434
- //Nonce did not verify
3435
- } else {
3436
-
3437
- // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
3438
- if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {
3439
- // Read their posted value
3440
- isset( $_POST[ $show_access_token ] ) ? $show_access_token_val = true : $show_access_token_val = true;
3441
- isset( $_POST[ $access_token ] ) ? $access_token_val = sanitize_text_field( $_POST[ $access_token ] ) : $access_token_val = '';
3442
- isset( $_POST[ $page_id ] ) ? $page_id_val = sanitize_text_field( $_POST[ $page_id ] ) : $page_id_val = '';
3443
- isset( $_POST[ $cff_connected_accounts ] ) ? $cff_connected_accounts_val = $_POST[ $cff_connected_accounts ] : $cff_connected_accounts_val = '';
3444
- isset( $_POST[ $cff_page_type ] ) ? $cff_page_type_val = sanitize_text_field( $_POST[ $cff_page_type ] ) : $cff_page_type_val = '';
3445
- isset( $_POST[ $num_show ] ) ? $num_show_val = sanitize_text_field( $_POST[ $num_show ] ) : $num_show_val = '';
3446
- isset( $_POST[ 'cff_num_mobile' ] ) ? $cff_num_mobile = sanitize_text_field( $_POST[ 'cff_num_mobile' ] ) : $cff_num_mobile = '';
3447
- isset( $_POST[ $cff_post_limit ] ) ? $cff_post_limit_val = sanitize_text_field( $_POST[ $cff_post_limit ] ) : $cff_post_limit_val = '';
3448
- isset( $_POST[ $cff_show_others ] ) ? $cff_show_others_val = sanitize_text_field( $_POST[ $cff_show_others ] ) : $cff_show_others_val = '';
3449
- isset( $_POST[ $cff_cache_time ] ) ? $cff_cache_time_val = sanitize_text_field( $_POST[ $cff_cache_time ] ) : $cff_cache_time_val = '';
3450
- isset( $_POST[ $cff_cache_time_unit ] ) ? $cff_cache_time_unit_val = sanitize_text_field( $_POST[ $cff_cache_time_unit ] ) : $cff_cache_time_unit_val = '';
3451
- isset( $_POST[ $cff_locale ] ) ? $cff_locale_val = sanitize_text_field( $_POST[ $cff_locale ] ) : $cff_locale_val = '';
3452
- if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = sanitize_text_field( $_POST[ 'cff_timezone' ] );
3453
-
3454
- // Save the posted value in the database
3455
- update_option( $show_access_token, true );
3456
- update_option( $access_token, $access_token_val );
3457
- update_option( $page_id, $page_id_val );
3458
- update_option( $cff_connected_accounts, $cff_connected_accounts_val );
3459
-
3460
- update_option( $cff_page_type, $cff_page_type_val );
3461
- update_option( $num_show, $num_show_val );
3462
- update_option( $cff_post_limit, $cff_post_limit_val );
3463
- update_option( $cff_show_others, $cff_show_others_val );
3464
- update_option( $cff_cache_time, $cff_cache_time_val );
3465
- update_option( $cff_cache_time_unit, $cff_cache_time_unit_val );
3466
- update_option( $cff_locale, $cff_locale_val );
3467
-
3468
- $options[ 'cff_timezone' ] = $cff_timezone;
3469
- $options[ 'cff_num_mobile' ] = $cff_num_mobile;
3470
- update_option( 'cff_style_settings', $options );
3471
- $cff_cron_schedule = 'hourly';
3472
- if( $cff_cache_time_unit_val == 'hours' && $cff_cache_time_val > 5 ) $cff_cron_schedule = 'twicedaily';
3473
- if( $cff_cache_time_unit_val == 'days' ) $cff_cron_schedule = 'daily';
3474
- CustomFacebookFeed\CFF_Group_Posts::group_reschedule_event(time(), $cff_cron_schedule);
3475
-
3476
- //Delete ALL transients
3477
- cff_delete_cache();
3478
- // Put an settings updated message on the screen
3479
- \cff_main()->cff_error_reporter->add_action_log( 'Saved settings on the configure tab.' );
3480
- ?>
3481
- <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
3482
- <?php } ?>
3483
-
3484
- <?php } //End nonce check ?>
3485
-
3486
- <div id="cff-admin" class="wrap">
3487
-
3488
- <?php
3489
- $lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
3490
-
3491
- if ( ! $lite_notice_dismissed ) :
3492
- ?>
3493
- <div id="cff-notice-bar" style="display:none">
3494
- <span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
3495
- <button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
3496
- </button>
3497
- </div>
3498
- <?php endif; ?>
3499
- <?php do_action( 'cff_admin_overview_before_table' ); ?>
3500
-
3501
- <div id="header">
3502
- <h1><?php _e('Custom Facebook Feed', 'custom-facebook-feed'); ?></h1>
3503
- </div>
3504
-
3505
- <?php
3506
- $cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'configuration';
3507
- ?>
3508
- <h2 class="nav-tab-wrapper">
3509
- <a href="?page=cff-top&amp;tab=configuration" class="nav-tab <?php echo $cff_active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration', 'custom-facebook-feed'); ?></a>
3510
- <a href="?page=cff-style" class="nav-tab <?php echo $cff_active_tab == 'customize' ? 'nav-tab-active' : ''; ?>"><?php _e('Customize', 'custom-facebook-feed'); ?></a>
3511
- <a href="?page=cff-top&amp;tab=support" class="nav-tab <?php echo $cff_active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support', 'custom-facebook-feed'); ?></a>
3512
- <a href="?page=cff-top&amp;tab=more" class="nav-tab <?php echo $cff_active_tab == 'more' ? 'nav-tab-active' : ''; ?>"><?php _e('More Social Feeds', 'custom-facebook-feed'); ?>
3513
- <?php
3514
- $seen_more_plugins_page = get_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', true);
3515
- if( !$seen_more_plugins_page ) echo '<span class="cff-alert-bubble">1</span>';
3516
- ?>
3517
- </a>
3518
- </h2>
3519
-
3520
- <?php if( $cff_active_tab == 'configuration' ) { //Start tab ?>
3521
-
3522
- <form name="form1" method="post" action="">
3523
- <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
3524
- <?php wp_nonce_field( 'cff_saving_settings', 'cff_settings_nonce' ); ?>
3525
-
3526
- <br />
3527
- <h3><?php _e('Configuration', 'custom-facebook-feed'); ?></h3>
3528
-
3529
-
3530
- <div id="cff_fb_login_modal">
3531
- <div class="cff_modal_box">
3532
-
3533
- <p>Log into your Facebook account using the button below and approve the plugin to connect your account.</p>
3534
-
3535
-
3536
- <div class="cff-login-options">
3537
- <label for="cff_login_type">Would you like to display a Facebook Page or Group?</label>
3538
- <select id="cff_login_type">
3539
- <option value="page">Facebook Page</option>
3540
- <option value="group">Facebook Group</option>
3541
- </select>
3542
-
3543
- <p>
3544
- <a href="javascript:void(0);" id="cff_admin_cancel_btn" class="cff-admin-cancel-btn">Cancel</a>
3545
-
3546
- <?php
3547
- $admin_url_state = admin_url('admin.php?page=cff-top');
3548
- //If the admin_url isn't returned correctly then use a fallback
3549
- if( $admin_url_state == '/wp-admin/admin.php?page=cff-top' || $admin_url_state == '/wp-admin/admin.php?page=cff-top&tab=configuration' ){
3550
- $admin_url_state = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
3551
- }
3552
- ?>
3553
- <a href="https://api.smashballoon.com/v2/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_page_app"><i class="fa fa-facebook-square"></i> <?php _e( 'Continue', 'custom-facebook-feed' ); ?></a>
3554
-
3555
- <a href="https://api.smashballoon.com/v2/facebook-group-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_group_app"><i class="fa fa-facebook-square"></i> <?php _e( 'Continue', 'custom-facebook-feed' ); ?></a>
3556
-
3557
- </p>
3558
- </div>
3559
-
3560
- <p style="font-size: 11px; margin-top: 25px;"><b>Please note:</b> this does not give us permission to manage your Facebook pages or groups, it simply allows the plugin to see a list that you manage and retrieve an Access Token.</p>
3561
-
3562
- </div>
3563
- </div>
3564
-
3565
- <a href="JavaScript:void(0);" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect a Facebook account', 'custom-facebook-feed' ); ?></a>
3566
-
3567
-
3568
- <?php
3569
- if( isset($_GET['cff_access_token']) && isset($_GET['cff_final_response']) ){
3570
-
3571
- if( $_GET['cff_final_response'] == 'true' ) {
3572
-
3573
- \cff_main()->cff_error_reporter->remove_error( 'connection' );
3574
- \cff_main()->cff_error_reporter->add_action_log( 'Connection or updating account');
3575
-
3576
- $access_token = $_GET['cff_access_token'];
3577
- $cff_is_groups = false;
3578
- $pages_data_arr = '';
3579
- $groups_data_arr = '';
3580
-
3581
- if( isset($_GET['cff_group']) ){
3582
- //Get Groups
3583
-
3584
- $cff_is_groups = true;
3585
- $groups_data_arr = '';
3586
-
3587
- //Extend the user token by making a call to /me/accounts. User must be an admin of a page for this to work as won't work if the response is empty.
3588
- $url = 'https://graph.facebook.com/me/accounts?limit=500&access_token='.$access_token;
3589
-
3590
- $accounts_data = CFF_Utils::cff_fetchUrl($url);
3591
- $accounts_data_arr = json_decode($accounts_data);
3592
- $cff_token_expiration = 'never';
3593
- if( empty($accounts_data_arr->data) ){
3594
- $cff_token_expiration = '60 days';
3595
- }
3596
-
3597
- //Get User ID
3598
- $user_url = 'https://graph.facebook.com/me?fields=id&access_token='.$access_token;
3599
- $user_id_data = CFF_Utils::cff_fetchUrl($user_url);
3600
-
3601
- if( !empty($user_id_data) ){
3602
- $user_id_data_arr = json_decode($user_id_data);
3603
- $user_id = $user_id_data_arr->id;
3604
-
3605
- //Get groups they're admin of
3606
- $groups_admin_url = 'https://graph.facebook.com/'.$user_id.'/groups?admin_only=true&fields=name,id,picture&access_token='.$access_token;
3607
- $groups_admin_data = CFF_Utils::cff_fetchUrl($groups_admin_url);
3608
- $groups_admin_data_arr = json_decode($groups_admin_data);
3609
-
3610
- //Get member groups
3611
- $groups_url = 'https://graph.facebook.com/'.$user_id.'/groups?admin_only=false&fields=name,id,picture&access_token='.$access_token;
3612
- $groups_data = CFF_Utils::cff_fetchUrl($groups_url);
3613
- $groups_data_arr = json_decode($groups_data);
3614
-
3615
- // $pages_data_arr = $groups_data_arr;
3616
- }
3617
- } else {
3618
- //Get Pages
3619
-
3620
- $url = 'https://graph.facebook.com/me/accounts?limit=500&access_token='.$access_token;
3621
- $pages_data = CFF_Utils::cff_fetchUrl($url);
3622
- $pages_data_arr = json_decode($pages_data);
3623
-
3624
- if( empty($pages_data_arr->data) ){
3625
- //If they don't manage any pages then just use the user token instead
3626
- ?>
3627
- <script type='text/javascript'>
3628
- jQuery(document).ready(function($) {
3629
- $('#cff_access_token').val('<?php echo $access_token ?>').addClass('cff-success');
3630
- //Check the own access token setting so it reveals token field
3631
- if( $('#cff_show_access_token:checked').length < 1 ){
3632
- $("#cff_show_access_token").trigger("change").prop( "checked", true );
3633
- }
3634
- });
3635
- </script>
3636
- <?php
3637
- }
3638
-
3639
- }
3640
-
3641
-
3642
- if( !empty($pages_data_arr->data) || $cff_is_groups ){
3643
- //Show the pages they manage
3644
- echo '<div id="cff_fb_login_modal" class="cff_modal_tokens cffnomodal">';
3645
- echo '<div class="cff_modal_box">';
3646
- echo '<div class="cff-managed-pages">';
3647
-
3648
- if( $cff_is_groups ){
3649
- //GROUPS
3650
-
3651
- if( empty($groups_data_arr->data) && empty($groups_admin_data_arr->data) ){
3652
- echo '<h3>No Groups Returned</h3>';
3653
- echo "<p>Facebook has not returned any groups for your user. It is only possible to display a feed from a group which you are either an admin or a member. Please note, if you are not an admin of the group then it is required that an admin add our app in the group settings in order to display a feed.</p><p>Please either create or join a Facebook group and then follow the directions when connecting your account on this page.</p>";
3654
- echo '<a href="JavaScript:void(0);" class="button button-primary" id="cff-close-modal-primary-button">Close</a>';
3655
- } else {
3656
-
3657
-
3658
- \cff_main()->cff_error_reporter->remove_error( 'connection' );
3659
- echo '<div class="cff-groups-list">';
3660
- echo '<p style="margin-top: 0;"><i class="fa fa-check-circle" aria-hidden="true" style="font-size: 15px; margin: 0 8px 0 2px;"></i>Select a Facebook group below to get an Access Token.</p>';
3661
-
3662
- echo '<div class="cff-pages-wrap">';
3663
- //Admin groups
3664
- foreach ( $groups_admin_data_arr->data as $page => $group_data ) {
3665
- echo '<div class="cff-managed-page cff-group-admin';
3666
- if( $group_data->id == $page_id_val ) echo ' cff-page-selected';
3667
- echo '" data-token="'.$access_token.'" data-page-id="'.$group_data->id.'" id="cff_'.$group_data->id.'" data-pagetype="group">';
3668
- echo '<p>';
3669
- if( isset( $group_data->picture->data->url ) ) echo '<img class="cff-page-avatar" border="0" height="50" width="50" src="'.$group_data->picture->data->url.'">';
3670
- echo '<b class="cff-page-info-name">'.$group_data->name.'</b><span class="cff-page-info">(Group ID: '.$group_data->id.')</span></p>';
3671
- echo '<div class="cff-group-admin-icon"><i class="fa fa-user" aria-hidden="true"></i> Admin</div>';
3672
- echo '</div>';
3673
- }
3674
- //Member groups
3675
- foreach ( $groups_data_arr->data as $page => $group_data ) {
3676
- echo '<div class="cff-managed-page';
3677
- if( $group_data->id == $page_id_val ) echo ' cff-page-selected';
3678
- echo '" data-token="'.$access_token.'" data-page-id="'.$group_data->id.'" id="cff_'.$group_data->id.'" data-pagetype="group">';
3679
- echo '<p>';
3680
- if( isset( $group_data->picture->data->url ) ) echo '<img class="cff-page-avatar" border="0" height="50" width="50" src="'.$group_data->picture->data->url.'">';
3681
- echo '<b class="cff-page-info-name">'.$group_data->name.'</b><span class="cff-page-info">(Group ID: '.$group_data->id.')</span></p>';
3682
- echo '</div>';
3683
- }
3684
- echo '</div>';
3685
- echo '<a href="JavaScript:void(0);" class="button button-primary cff-group-btn" id="cff-insert-token" disabled="disabled">Use token for this Group</a>';
3686
- if( $cff_token_expiration == "60 days" ) echo '<div id="cff_token_expiration_note" class="cff-error"><b>Important:</b> This token will expire in 60 days.<br /><a href="https://smashballoon.com/extending-a-group-access-token-so-it-never-expires/" target="_blank">Extend token so it never expires</a></div>';
3687
- echo '</div>';
3688
-
3689
- echo '<div id="cff-group-installation">';
3690
- echo '<h3>Important</h3>';
3691
-
3692
- echo '<div id="cff-group-admin-directions">';
3693
- echo '<p>To display a feed from your group you need to add our app in your Facebook group settings:</p>';
3694
- echo '<ul>';
3695
- echo '<li><b>1)</b> Go to your group settings page by clicking <a id="cff-group-edit" href="https://www.facebook.com/groups/" target="_blank">here<i class="fa fa-external-link" aria-hidden="true" style="font-size: 13px; position: relative; top: 2px; margin-left: 5px;"></i></a></li>';
3696
- echo '<li><b>2)</b> In the "Apps" section click "Add Apps".</li>';
3697
- echo '<li><b>3)</b> Search for "Smash Balloon" and select our app (<a id="cff-group-app-tooltip">screenshot</a>).<img id="cff-group-app-screenshot" src="'. CFF_PLUGIN_URL ."admin/assets/img/group-app.png" .'" alt="Thumbnail Layout" /></li>';
3698
- echo '<li><b>4</b>) Click "Add".</li>';
3699
- echo '</ul>';
3700
-
3701
- echo '<p style="margin-bottom: 10px;">You can now use the plugin to display a feed from your group.</p>';
3702
- echo '</div>';
3703
-
3704
- echo '<div id="cff-group-member-directions">';
3705
- echo '<p>To display a feed from this group an admin needs to first add our app in the group settings. Please ask an admin to follow the directions <a href="https://smashballoon.com/adding-our-app-to-a-facebook-group/" target="_blank">here</a> to add our app.</p>';
3706
- echo '<p>Once this is done you will then be able to display a feed from this group.</p>';
3707
- echo '</div>';
3708
-
3709
- echo '<a href="JavaScript:void(0);" class="button button-primary" id="cff-close-modal-primary-button">Done</a>';
3710
- echo '<a href="https://smashballoon.com/display-facebook-group-feed/" target="_blank" class="button button-secondary"><i class="fa fa-life-ring"></i> Help</a>';
3711
- echo '</div>';
3712
-
3713
- }
3714
-
3715
- } else {
3716
- //PAGES
3717
-
3718
-
3719
- \cff_main()->cff_error_reporter->remove_error( 'connection' );
3720
-
3721
- echo '<p class="cff-tokens-note"><i class="fa fa-check-circle" aria-hidden="true" style="font-size: 15px; margin: 0 8px 0 2px;"></i> Select a Facebook page below to connect it.</p>';
3722
-
3723
- echo '<div class="cff-pages-wrap">';
3724
- foreach ( $pages_data_arr->data as $page => $page_data ) {
3725
- echo '<div class="cff-managed-page ';
3726
- if( $page_data->id == $page_id_val ) echo 'cff-page-selected';
3727
- echo '" data-token="'.$page_data->access_token.'" data-page-id="'.$page_data->id.'" data-pagetype="page">';
3728
- echo '<p><img class="cff-page-avatar" border="0" height="50" width="50" src="https://graph.facebook.com/'.$page_data->id.'/picture"><b class="cff-page-info-name">'.$page_data->name.'</b><span class="cff-page-info">(Page ID: '.$page_data->id.')</span></p>';
3729
- echo '</div>';
3730
- }
3731
- echo '</div>';
3732
-
3733
- $cff_use_token_text = 'Connect this page';
3734
- echo '<a href="JavaScript:void(0);" id="cff-insert-token" class="button button-primary" disabled="disabled">'.$cff_use_token_text.'</a>';
3735
- echo '<a href="JavaScript:void(0);" id="cff-insert-all-tokens" class="button button-secondary cff_connect_all">Connect All</a>';
3736
- echo "<a href='https://smashballoon.com/facebook-pages-im-admin-of-arent-listed-after-authorizing-plugin/' target='_blank' class='cff-connection-note'>One of my pages isn't listed</a>";
3737
-
3738
- }
3739
-
3740
- echo '</div>';
3741
- echo '<a href="JavaScript:void(0);" class="cff-modal-close"><i class="fa fa-times"></i></a>';
3742
- echo '</div>';
3743
- echo '</div>';
3744
-
3745
- echo '<a href="JavaScript:void(0);" class="cff_admin_btn" id="cff_fb_show_tokens"><i class="fa fa-th-list" aria-hidden="true" style="font-size: 14px; margin-right: 8px;"></i>';
3746
- $cff_is_groups ? _e( "Show Available Groups", "custom-facebook-feed" ) : _e( "Show Available Pages", "custom-facebook-feed" );
3747
- echo '</a>';
3748
-
3749
- }
3750
-
3751
- }
3752
- }
3753
- ?>
3754
-
3755
- <table class="form-table">
3756
- <tbody>
3757
- <tr valign="top">
3758
- <th scope="row"><label><?php _e('Facebook Page ID<br /><i style="font-weight: normal; font-size: 12px;">ID of your Facebook Page or Group</i>', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> id
3759
- Eg: id="YOUR_PAGE_OR_GROUP_ID"</code></th>
3760
- <td>
3761
- <p id="cff_primary_account_label"></p>
3762
- <input name="cff_page_id" id="cff_page_id" type="text" value="<?php esc_attr_e( $page_id_val, 'custom-facebook-feed' ); ?>" size="45" data-page-id="<?php esc_attr_e( $page_id_val ); ?>" />
3763
- &nbsp;<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What\'s my Page ID?', 'custom-facebook-feed'); ?></a>
3764
- <br /><i style="color: #666; font-size: 11px;">Eg. 1234567890123 or smashballoon</i>
3765
- <div class="cff-tooltip cff-more-info">
3766
- <ul>
3767
- <li><?php _e('<b>Facebook Page</b><br />
3768
- You can find the ID of your Facebook <b>Page</b> from the URL. In each URL format, the ID is highlighted below:<br /><br />
3769
- URL Format 1: <code>https://www.facebook.com/<span class="cff-highlight">your_page_name</span></code>
3770
- <br />
3771
- URL Format 2: <code>https://www.facebook.com/your_page_name-<span class="cff-highlight">1234567890</span></code>
3772
- <br />
3773
- URL Format 3: <code>https://www.facebook.com/pages/your_page_name/<span class="cff-highlight">1234567890</span></code>
3774
- '); ?>
3775
- </li>
3776
- <li><?php _e('<b>Facebook Group</b><br />You can find the ID of your Facebook <b>Group</b> from the URL, like so: <code>https://www.facebook.com/groups/<span class="cff-highlight">1234567890</span></code>'); ?></li>
3777
- </ul>
3778
- </div>
3779
- </td>
3780
- </tr>
3781
-
3782
- <?php
3783
- //When connecting an account check the current access token to see if it has an error. If so then add a class to the field and replace it automatically in JS when getting a new one.
3784
- $cff_replace_token = false;
3785
- if( isset($_GET['cff_access_token']) && isset($_GET['cff_final_response']) ){
3786
-
3787
- if( $_GET['cff_final_response'] == 'true' ){
3788
- $api_page_id = trim($page_id_val);
3789
- $url = 'https://graph.facebook.com/'.$api_page_id.'?limit=1&fields=id&access_token='.$access_token_val;
3790
- $accounts_data = CFF_Utils::cff_fetchUrl($url);
3791
- //If there's an error (and it's not the PPCA one) then mark the token as needing to be replaced
3792
- if (strpos($accounts_data, 'error') !== false && strpos($accounts_data, 'Public') == false) $cff_replace_token = true;
3793
- }
3794
-
3795
- }
3796
-
3797
- ?>
3798
-
3799
- <tr valign="top">
3800
-
3801
- <?php
3802
- //Check to see whether we've already checked the token against the API. If so, then don't do it again until the settings are saved which clears this transient.
3803
- //This var is used to add an attr to the access token field below. If it's set then ana Ajax call is made in the admin JS file which checks the API to see if the token matches the ID.
3804
- $cff_check_api_for_ppca = false;
3805
- if( ! get_transient( 'cff_ppca_admin_token_check' ) ){
3806
- $cff_check_api_for_ppca = true;
3807
- set_transient( 'cff_ppca_admin_token_check', 1, YEAR_IN_SECONDS );
3808
- }
3809
-
3810
- ?>
3811
- <th scope="row" style="padding-bottom: 10px;"><?php _e('Facebook Access Token', 'custom-facebook-feed'); ?><br /><i style="font-weight: normal; font-size: 12px; color: red;"><?php _e('Required', 'custom-facebook-feed'); ?></i></th>
3812
- <td>
3813
- <textarea name="cff_access_token" id="cff_access_token" <?php if($cff_replace_token) echo 'class="cff-replace-token"' ?> style="min-width: 60%;" data-accesstoken="<?php esc_attr_e( $access_token_val ); ?>" <?php if($cff_check_api_for_ppca) echo 'data-check-ppca="true"'; ?>><?php esc_attr_e( $access_token_val ); ?></textarea>
3814
-
3815
- <div class="cff-ppca-check-notice cff-error"><?php _e("<b>Important:</b> This Access Token does not match the Facebook ID used above. To check which Facebook Page this Access Token is for, <a href='https://smashballoon.com/checking-what-facebook-page-an-access-token-is-from/' target='_blank'>see here</a>.", 'custom-facebook-feed'); ?>
3816
-
3817
- <span style="display: block; padding-top: 4px;"><i class="fa fa-question-circle" aria-hidden="true"></i>&nbsp;<a class="cff-tooltip-link" style="margin:0;" href="JavaScript:void(0);"><?php _e("Why am I seeing this?"); ?></a></span>
3818
- <p class="cff-tooltip cff-more-info"><?php _e("Due to <a href='https://smashballoon.com/facebook-api-changes-september-4-2020/' target='_blank'>Facebook API changes</a> on September 4, 2020, it is only possible to display Facebook feeds from a Facebook page you have admin permissions on. This Access Token doesn't appear to match the Facebook page specified above that you are trying to display a feed from. To troubleshoot this issue, please <a href='https://smashballoon.com/facebook-ppca-error-notice/' target='_blank'>see here</a>.", 'custom-facebook-feed'); ?></p>
3819
- </div>
3820
-
3821
- <br /><a class="cff-tooltip-link" style="margin-left: 3px;" href="JavaScript:void(0);"><?php _e("What is this?", 'custom-facebook-feed'); ?></a>
3822
- <p class="cff-tooltip cff-more-info"><?php _e("In order to connect to Facebook and get a feed, you need to use an Access Token. To get one, simply use the blue button above to log into your Facebook account. You will then receive a token that will be used to connect to Facebook's API. If you already have an Access Token then you can enter it here.", 'custom-facebook-feed'); ?></p>
3823
-
3824
- <div class="cff-notice cff-profile-error cff-access-token">
3825
- <?php _e("<p>This doesn't appear to be an Access Token. Please be sure that you didn't enter your App Secret instead of your Access Token.<br />Your App ID and App Secret are used to obtain your Access Token; simply paste them into the fields in the last step of the <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>Access Token instructions</a> and click '<b>Get my Access Token</b>'.</p>", 'custom-facebook-feed'); ?>
3826
- </div>
3827
- </td>
3828
- </tr>
3829
- </tbody>
3830
- </table>
3831
-
3832
- <div id="cff_accounts_section">
3833
- <a href="JavaScript:void(0);" class="button-secondary button" id="cff_manual_account_button">Manually connect account</a>
3834
-
3835
- <div id="cff_manual_account">
3836
- <div id="cff_manual_account_step_1">
3837
- <label for="cff_manual_account_type"><?php _e('Is it a Facebook page or group?'); ?></label>
3838
- <select name="cff_manual_account_type" id="cff_manual_account_type">
3839
- <option value="" disabled selected><?php _e('- Select one -'); ?></option>
3840
- <option value="page"><?php _e('Page'); ?></option>
3841
- <option value="group"><?php _e('Group'); ?></option>
3842
- </select>
3843
- <a href="javascript:void(0);" class="cff_manual_forward button-primary"><i class="fa fa-chevron-right" aria-hidden="true"></i></a>
3844
- </div>
3845
-
3846
- <div id="cff_manual_account_step_2" class="cff_account_type_page">
3847
- <div>
3848
- <label for="cff_manual_account_name"><span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('Name'); ?> <span style="font-size: 11px;"><?php _e('(optional)'); ?></span></label>
3849
- <input name="cff_manual_account_name" id="cff_manual_account_name" type="text" value="" placeholder="Eg: John's Facebook Page" />
3850
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3851
- <p class="cff-tooltip cff-more-info"><?php _e('This is just for labeling the account here on this settings page'); ?></p>
3852
- </div>
3853
-
3854
- <div>
3855
- <label for="cff_manual_account_id"><span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('ID'); ?></label>
3856
- <input name="cff_manual_account_id" id="cff_manual_account_id" type="text" value="" placeholder="Eg: 1234567890123 or smashballoon" />
3857
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3858
- <p class="cff-tooltip cff-more-info"><?php _e('The ID of the Facebook'); ?> <span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('you want to add.'); ?> &nbsp;<a href='https://smashballoon.com/custom-facebook-feed/id/' target='_blank'><?php _e("How do I find my Page ID?"); ?></a></p>
3859
- </div>
3860
-
3861
- <div>
3862
- <label for="cff_manual_account_token"><?php _e('Access Token'); ?></label>
3863
- <input name="cff_manual_account_token" id="cff_manual_account_token" type="text" value="" />
3864
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3865
- <p class="cff-tooltip cff-more-info"><?php _e('The Access Token of the Facebook'); ?> <span class="cff_page"><?php _e('Page'); ?></span><span class="cff_group"><?php _e('Group'); ?></span> <?php _e('you want to add'); ?></p>
3866
- </div>
3867
-
3868
- <?php
3869
- $cff_submit_btn_atts = array( 'disabled' => 'true' );
3870
- submit_button('Connect Account', 'primary', 'submit', true, $cff_submit_btn_atts);
3871
- ?>
3872
- <a href="javascript:void(0);" class="cff_manual_back button-secondary">Back</a>
3873
- </div>
3874
-
3875
- </div>
3876
-
3877
- <h3 class="cff_connected_actions">Connected Accounts:</h3>
3878
- <div id="cff_connected_accounts_wrap"><?php //Add connected accounts here ?></div>
3879
-
3880
- <div class="cff_connected_actions cff_feeds_account_ctn">
3881
- <?php if ( CFF_Feed_Locator::count_unique() >= 1 ) : ?>
3882
- <div class="cff_locations_link">
3883
- <a href="?page=cff-top&amp;tab=allfeeds"><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="search" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-search fa-w-16 fa-2x"><path fill="currentColor" d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z" class=""></path></svg> <?php _e('Feed Finder', 'custom-facebook-feed'); ?></a>
3884
- </div>
3885
- <?php endif; ?>
3886
- <a href="JavaScript:void(0);" id="cff_export_accounts">Show raw account data</a>
3887
- <div id="cff_export_accounts_wrap">
3888
- <textarea name="cff_connected_accounts" id="cff_connected_accounts" style="width: 100%;" rows="5" /><?php echo stripslashes( esc_attr( $cff_connected_accounts_val ) ); ?></textarea>
3889
- </div>
3890
-
3891
- <?php submit_button('Save Settings'); ?>
3892
- </div>
3893
-
3894
- </div>
3895
-
3896
- <hr />
3897
- <table class="form-table">
3898
- <tbody>
3899
- <h3><?php _e('Settings', 'custom-facebook-feed'); ?></h3>
3900
-
3901
- <tr valign="top" class="cff-page-type">
3902
- <th scope="row"><label><?php _e('Is it a page or group?'); ?></label><code class="cff_shortcode"> pagetype
3903
- Eg: pagetype=group</code></th>
3904
- <td>
3905
- <select name="cff_page_type" id="cff_page_type" style="width: 100px;">
3906
- <option value="page" <?php if($cff_page_type_val == "page") echo 'selected="selected"' ?> ><?php _e('Page'); ?></option>
3907
- <option value="group" <?php if($cff_page_type_val == "group") echo 'selected="selected"' ?> ><?php _e('Group'); ?></option>
3908
- <option value="profile" <?php if($cff_page_type_val == "profile") echo 'selected="selected"' ?> ><?php _e('Profile'); ?></option>
3909
- </select>
3910
- <div class="cff-notice cff-profile-error cff-page-type">
3911
- <?php _e("<p>Due to Facebook's privacy policy you're not able to display posts from a personal profile, only from a public Facebook Page.</p><p>If you're using a profile to represent a business, organization, product, public figure or the like, then Facebook recommends <a href='http://www.facebook.com/help/175644189234902/' target='_blank'>converting your profile to a page</a>. There are many advantages to using pages over profiles, and once you've converted then the plugin will be able to successfully retrieve and display all of your posts.</p>", 'custom-facebook-feed'); ?>
3912
- </div>
3913
- </td>
3914
- </tr>
3915
-
3916
- <tr valign="top">
3917
- <th scope="row"><label><?php _e('Show posts on my page by:', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showpostsby
3918
- Eg: showpostsby=others</code></th>
3919
- <td>
3920
- <select name="cff_show_others" id="cff_show_others" style="width: 250px;">
3921
- <option value="me" <?php if($cff_show_others_val == 'me') echo 'selected="selected"' ?> ><?php _e('Only the page owner (me)', 'custom-facebook-feed'); ?></option>
3922
- <option value="others" <?php if($cff_show_others_val == 'others' || $cff_show_others_val == 'on') echo 'selected="selected"' ?> ><?php _e('Page owner + other people', 'custom-facebook-feed'); ?></option>
3923
- <option value="onlyothers" <?php if($cff_show_others_val == 'onlyothers') echo 'selected="selected"' ?> ><?php _e('Only other people', 'custom-facebook-feed'); ?></option>
3924
- </select>
3925
- </td>
3926
- </tr>
3927
-
3928
- <tr valign="top">
3929
- <th scope="row"><label><?php _e('Number of posts to display', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> num, nummobile
3930
- Eg: num=5
3931
- nummobile=3</code></th>
3932
- <td>
3933
- <input name="cff_num_show" type="text" value="<?php esc_attr_e( $num_show_val, 'custom-facebook-feed' ); ?>" size="4" />
3934
- <i style="color: #666; font-size: 11px;">Max 100</i>
3935
- <div style="margin: 8px 0 0 1px; font-size: 12px;">
3936
- <input type="checkbox" name="cff_show_num_mobile" id="cff_show_num_mobile" <?php if(! empty( $cff_num_mobile )) echo 'checked="checked"' ?> />&nbsp;<label for="cff_show_num_mobile"><?php _e('Show different number for mobile'); ?></label>
3937
- <div class="cff-mobile-col-settings">
3938
- <div class="cff-row">
3939
- <label title="Click for shortcode option"><?php _e('Mobile Number', 'custom-facebook-feed'); ?>:</label><code class="cff_shortcode"> nummobile
3940
- Eg: nummobile=4</code>
3941
- <input type="text" name="cff_num_mobile" id="cff_num_mobile" size="4" value="<?php echo esc_attr( $cff_num_mobile ); ?>">
3942
- <i style="color: #666; font-size: 11px;"><?php _e('Leave blank for default', 'custom-facebook-feed'); ?></i>
3943
- </div>
3944
- </div>
3945
- </div>
3946
- </td>
3947
- </tr>
3948
- <tr valign="top">
3949
- <th scope="row"><label><?php _e('Facebook API post limit', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> limit
3950
- Eg: limit=10</code></th>
3951
- <td>
3952
- <select name="cff_limit_setting" id="cff_limit_setting" style="width: 90px;">
3953
- <option value="auto" selected="selected"><?php _e('Auto'); ?></option>
3954
- <option value="manual"><?php _e('Manual'); ?></option>
3955
- </select>
3956
- <div id="cff_limit_manual_settings">
3957
- <input name="cff_post_limit" id="cff_post_limit" type="text" value="<?php esc_attr_e( $cff_post_limit_val ); ?>" size="4" />
3958
- <i style="color: #666; font-size: 11px;">Eg. 10. Max 100.</i>
3959
- </div>
3960
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3961
- <p class="cff-tooltip cff-more-info"><?php _e("The post 'limit' is the number of posts retrieved from the Facebook API. Most users won't need to manually adjust this setting as by default the plugin automatically retrieves a few more posts from the Facebook API than you need, as some posts may be filtered out.", "custom-facebook-feed"); ?><br /><br />
3962
-
3963
- <b><?php _e('Auto', 'custom-facebook-feed'); ?></b> (<?php _e('Recommended', 'custom-facebook-feed'); ?>)<br />
3964
- <?php _e("Allow the plugin to automatically decide how many posts to retrieve from Facebook's API.", "custom-facebook-feed"); ?><br /><br />
3965
-
3966
- <b><?php _e('Manual', 'custom-facebook-feed'); ?></b><br />
3967
- <?php _e("Manually set how many posts to retrieve from Facebook's API.<br /><b>Note:</b> If you choose to retrieve a high number of posts then it will take longer for Facebook to return the posts when the plugin checks for new ones.", "custom-facebook-feed"); ?></p>
3968
- </td>
3969
- </tr>
3970
- <tr valign="top">
3971
- <th scope="row"><?php _e('Check for new posts every', 'custom-facebook-feed'); ?></th>
3972
- <td>
3973
- <input name="cff_cache_time" type="text" value="<?php esc_attr_e( $cff_cache_time_val, 'custom-facebook-feed' ); ?>" size="4" />
3974
- <select name="cff_cache_time_unit" style="width: 100px;">
3975
- <option value="minutes" <?php if($cff_cache_time_unit_val == "minutes") echo 'selected="selected"' ?> ><?php _e('Minutes', 'custom-facebook-feed'); ?></option>
3976
- <option value="hours" <?php if($cff_cache_time_unit_val == "hours") echo 'selected="selected"' ?> ><?php _e('Hours', 'custom-facebook-feed'); ?></option>
3977
- <option value="days" <?php if($cff_cache_time_unit_val == "days") echo 'selected="selected"' ?> ><?php _e('Days', 'custom-facebook-feed'); ?></option>
3978
- </select>
3979
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
3980
- <p class="cff-tooltip cff-more-info"><?php _e('Your Facebook posts and comments data is temporarily cached by the plugin in your WordPress database. You can choose how long this data should be cached for. If you set the time to 60 minutes then the plugin will clear the cached data after that length of time, and the next time the page is viewed it will check for new data.', 'custom-facebook-feed'); ?></p>
3981
- </td>
3982
- </tr>
3983
-
3984
- <tr valign="top">
3985
- <th scope="row"><label><?php _e('Localization', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> locale
3986
- Eg: locale=es_ES</code></th>
3987
- <td>
3988
- <select name="cff_locale">
3989
- <option value="af_ZA" <?php if($cff_locale_val == "af_ZA") echo 'selected="selected"' ?> ><?php _e('Afrikaans', 'custom-facebook-feed'); ?></option>
3990
- <option value="ar_AR" <?php if($cff_locale_val == "ar_AR") echo 'selected="selected"' ?> ><?php _e('Arabic', 'custom-facebook-feed'); ?></option>
3991
- <option value="az_AZ" <?php if($cff_locale_val == "az_AZ") echo 'selected="selected"' ?> ><?php _e('Azerbaijani', 'custom-facebook-feed'); ?></option>
3992
- <option value="be_BY" <?php if($cff_locale_val == "be_BY") echo 'selected="selected"' ?> ><?php _e('Belarusian', 'custom-facebook-feed'); ?></option>
3993
- <option value="bg_BG" <?php if($cff_locale_val == "bg_BG") echo 'selected="selected"' ?> ><?php _e('Bulgarian', 'custom-facebook-feed'); ?></option>
3994
- <option value="bn_IN" <?php if($cff_locale_val == "bn_IN") echo 'selected="selected"' ?> ><?php _e('Bengali', 'custom-facebook-feed'); ?></option>
3995
- <option value="bs_BA" <?php if($cff_locale_val == "bs_BA") echo 'selected="selected"' ?> ><?php _e('Bosnian', 'custom-facebook-feed'); ?></option>
3996
- <option value="ca_ES" <?php if($cff_locale_val == "ca_ES") echo 'selected="selected"' ?> ><?php _e('Catalan', 'custom-facebook-feed'); ?></option>
3997
- <option value="cs_CZ" <?php if($cff_locale_val == "cs_CZ") echo 'selected="selected"' ?> ><?php _e('Czech', 'custom-facebook-feed'); ?></option>
3998
- <option value="cy_GB" <?php if($cff_locale_val == "cy_GB") echo 'selected="selected"' ?> ><?php _e('Welsh', 'custom-facebook-feed'); ?></option>
3999
- <option value="da_DK" <?php if($cff_locale_val == "da_DK") echo 'selected="selected"' ?> ><?php _e('Danish', 'custom-facebook-feed'); ?></option>
4000
- <option value="de_DE" <?php if($cff_locale_val == "de_DE") echo 'selected="selected"' ?> ><?php _e('German', 'custom-facebook-feed'); ?></option>
4001
- <option value="el_GR" <?php if($cff_locale_val == "el_GR") echo 'selected="selected"' ?> ><?php _e('Greek', 'custom-facebook-feed'); ?></option>
4002
- <option value="en_GB" <?php if($cff_locale_val == "en_GB") echo 'selected="selected"' ?> ><?php _e('English (UK)', 'custom-facebook-feed'); ?></option>
4003
- <option value="en_PI" <?php if($cff_locale_val == "en_PI") echo 'selected="selected"' ?> ><?php _e('English (Pirate)', 'custom-facebook-feed'); ?></option>
4004
- <option value="en_UD" <?php if($cff_locale_val == "en_UD") echo 'selected="selected"' ?> ><?php _e('English (Upside Down)', 'custom-facebook-feed'); ?></option>
4005
- <option value="en_US" <?php if($cff_locale_val == "en_US") echo 'selected="selected"' ?> ><?php _e('English (US)', 'custom-facebook-feed'); ?></option>
4006
- <option value="eo_EO" <?php if($cff_locale_val == "eo_EO") echo 'selected="selected"' ?> ><?php _e('Esperanto', 'custom-facebook-feed'); ?></option>
4007
- <option value="es_ES" <?php if($cff_locale_val == "es_ES") echo 'selected="selected"' ?> ><?php _e('Spanish (Spain)', 'custom-facebook-feed'); ?></option>
4008
- <option value="es_LA" <?php if($cff_locale_val == "es_LA") echo 'selected="selected"' ?> ><?php _e('Spanish', 'custom-facebook-feed'); ?></option>
4009
- <option value="et_EE" <?php if($cff_locale_val == "et_EE") echo 'selected="selected"' ?> ><?php _e('Estonian', 'custom-facebook-feed'); ?></option>
4010
- <option value="eu_ES" <?php if($cff_locale_val == "eu_ES") echo 'selected="selected"' ?> ><?php _e('Basque', 'custom-facebook-feed'); ?></option>
4011
- <option value="fa_IR" <?php if($cff_locale_val == "fa_IR") echo 'selected="selected"' ?> ><?php _e('Persian', 'custom-facebook-feed'); ?></option>
4012
- <option value="fb_LT" <?php if($cff_locale_val == "fb_LT") echo 'selected="selected"' ?> ><?php _e('Leet Speak', 'custom-facebook-feed'); ?></option>
4013
- <option value="fi_FI" <?php if($cff_locale_val == "fi_FI") echo 'selected="selected"' ?> ><?php _e('Finnish', 'custom-facebook-feed'); ?></option>
4014
- <option value="fo_FO" <?php if($cff_locale_val == "fo_FO") echo 'selected="selected"' ?> ><?php _e('Faroese', 'custom-facebook-feed'); ?></option>
4015
- <option value="fr_CA" <?php if($cff_locale_val == "fr_CA") echo 'selected="selected"' ?> ><?php _e('French (Canada)', 'custom-facebook-feed'); ?></option>
4016
- <option value="fr_FR" <?php if($cff_locale_val == "fr_FR") echo 'selected="selected"' ?> ><?php _e('French (France)', 'custom-facebook-feed'); ?></option>
4017
- <option value="fy_NL" <?php if($cff_locale_val == "fy_NL") echo 'selected="selected"' ?> ><?php _e('Frisian', 'custom-facebook-feed'); ?></option>
4018
- <option value="ga_IE" <?php if($cff_locale_val == "ga_IE") echo 'selected="selected"' ?> ><?php _e('Irish', 'custom-facebook-feed'); ?></option>
4019
- <option value="gl_ES" <?php if($cff_locale_val == "gl_ES") echo 'selected="selected"' ?> ><?php _e('Galician', 'custom-facebook-feed'); ?></option>
4020
- <option value="he_IL" <?php if($cff_locale_val == "he_IL") echo 'selected="selected"' ?> ><?php _e('Hebrew', 'custom-facebook-feed'); ?></option>
4021
- <option value="hi_IN" <?php if($cff_locale_val == "hi_IN") echo 'selected="selected"' ?> ><?php _e('Hindi', 'custom-facebook-feed'); ?></option>
4022
- <option value="hr_HR" <?php if($cff_locale_val == "hr_HR") echo 'selected="selected"' ?> ><?php _e('Croatian', 'custom-facebook-feed'); ?></option>
4023
- <option value="hu_HU" <?php if($cff_locale_val == "hu_HU") echo 'selected="selected"' ?> ><?php _e('Hungarian', 'custom-facebook-feed'); ?></option>
4024
- <option value="hy_AM" <?php if($cff_locale_val == "hy_AM") echo 'selected="selected"' ?> ><?php _e('Armenian', 'custom-facebook-feed'); ?></option>
4025
- <option value="id_ID" <?php if($cff_locale_val == "id_ID") echo 'selected="selected"' ?> ><?php _e('Indonesian', 'custom-facebook-feed'); ?></option>
4026
- <option value="is_IS" <?php if($cff_locale_val == "is_IS") echo 'selected="selected"' ?> ><?php _e('Icelandic', 'custom-facebook-feed'); ?></option>
4027
- <option value="it_IT" <?php if($cff_locale_val == "it_IT") echo 'selected="selected"' ?> ><?php _e('Italian', 'custom-facebook-feed'); ?></option>
4028
- <option value="ja_JP" <?php if($cff_locale_val == "ja_JP") echo 'selected="selected"' ?> ><?php _e('Japanese', 'custom-facebook-feed'); ?></option>
4029
- <option value="ka_GE" <?php if($cff_locale_val == "ka_GE") echo 'selected="selected"' ?> ><?php _e('Georgian', 'custom-facebook-feed'); ?></option>
4030
- <option value="km_KH" <?php if($cff_locale_val == "km_KH") echo 'selected="selected"' ?> ><?php _e('Khmer', 'custom-facebook-feed'); ?></option>
4031
- <option value="ko_KR" <?php if($cff_locale_val == "ko_KR") echo 'selected="selected"' ?> ><?php _e('Korean', 'custom-facebook-feed'); ?></option>
4032
- <option value="ku_TR" <?php if($cff_locale_val == "ku_TR") echo 'selected="selected"' ?> ><?php _e('Kurdish', 'custom-facebook-feed'); ?></option>
4033
- <option value="la_VA" <?php if($cff_locale_val == "la_VA") echo 'selected="selected"' ?> ><?php _e('Latin', 'custom-facebook-feed'); ?></option>
4034
- <option value="lt_LT" <?php if($cff_locale_val == "lt_LT") echo 'selected="selected"' ?> ><?php _e('Lithuanian', 'custom-facebook-feed'); ?></option>
4035
- <option value="lv_LV" <?php if($cff_locale_val == "lv_LV") echo 'selected="selected"' ?> ><?php _e('Latvian', 'custom-facebook-feed'); ?></option>
4036
- <option value="mk_MK" <?php if($cff_locale_val == "mk_MK") echo 'selected="selected"' ?> ><?php _e('Macedonian', 'custom-facebook-feed'); ?></option>
4037
- <option value="ml_IN" <?php if($cff_locale_val == "ml_IN") echo 'selected="selected"' ?> ><?php _e('Malayalam', 'custom-facebook-feed'); ?></option>
4038
- <option value="ms_MY" <?php if($cff_locale_val == "ms_MY") echo 'selected="selected"' ?> ><?php _e('Malay', 'custom-facebook-feed'); ?></option>
4039
- <option value="nb_NO" <?php if($cff_locale_val == "nb_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (bokmal)', 'custom-facebook-feed'); ?></option>
4040
- <option value="ne_NP" <?php if($cff_locale_val == "ne_NP") echo 'selected="selected"' ?> ><?php _e('Nepali', 'custom-facebook-feed'); ?></option>
4041
- <option value="nl_NL" <?php if($cff_locale_val == "nl_NL") echo 'selected="selected"' ?> ><?php _e('Dutch', 'custom-facebook-feed'); ?></option>
4042
- <option value="nn_NO" <?php if($cff_locale_val == "nn_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (nynorsk)', 'custom-facebook-feed'); ?></option>
4043
- <option value="pa_IN" <?php if($cff_locale_val == "pa_IN") echo 'selected="selected"' ?> ><?php _e('Punjabi', 'custom-facebook-feed'); ?></option>
4044
- <option value="pl_PL" <?php if($cff_locale_val == "pl_PL") echo 'selected="selected"' ?> ><?php _e('Polish', 'custom-facebook-feed'); ?></option>
4045
- <option value="ps_AF" <?php if($cff_locale_val == "ps_AF") echo 'selected="selected"' ?> ><?php _e('Pashto', 'custom-facebook-feed'); ?></option>
4046
- <option value="pt_BR" <?php if($cff_locale_val == "pt_BR") echo 'selected="selected"' ?> ><?php _e('Portuguese (Brazil)', 'custom-facebook-feed'); ?></option>
4047
- <option value="pt_PT" <?php if($cff_locale_val == "pt_PT") echo 'selected="selected"' ?> ><?php _e('Portuguese (Portugal)', 'custom-facebook-feed'); ?></option>
4048
- <option value="ro_RO" <?php if($cff_locale_val == "ro_RO") echo 'selected="selected"' ?> ><?php _e('Romanian', 'custom-facebook-feed'); ?></option>
4049
- <option value="ru_RU" <?php if($cff_locale_val == "ru_RU") echo 'selected="selected"' ?> ><?php _e('Russian', 'custom-facebook-feed'); ?></option>
4050
- <option value="sk_SK" <?php if($cff_locale_val == "sk_SK") echo 'selected="selected"' ?> ><?php _e('Slovak', 'custom-facebook-feed'); ?></option>
4051
- <option value="sl_SI" <?php if($cff_locale_val == "sl_SI") echo 'selected="selected"' ?> ><?php _e('Slovenian', 'custom-facebook-feed'); ?></option>
4052
- <option value="sq_AL" <?php if($cff_locale_val == "sq_AL") echo 'selected="selected"' ?> ><?php _e('Albanian', 'custom-facebook-feed'); ?></option>
4053
- <option value="sr_RS" <?php if($cff_locale_val == "sr_RS") echo 'selected="selected"' ?> ><?php _e('Serbian', 'custom-facebook-feed'); ?></option>
4054
- <option value="sv_SE" <?php if($cff_locale_val == "sv_SE") echo 'selected="selected"' ?> ><?php _e('Swedish', 'custom-facebook-feed'); ?></option>
4055
- <option value="sw_KE" <?php if($cff_locale_val == "sw_KE") echo 'selected="selected"' ?> ><?php _e('Swahili', 'custom-facebook-feed'); ?></option>
4056
- <option value="ta_IN" <?php if($cff_locale_val == "ta_IN") echo 'selected="selected"' ?> ><?php _e('Tamil', 'custom-facebook-feed'); ?></option>
4057
- <option value="te_IN" <?php if($cff_locale_val == "te_IN") echo 'selected="selected"' ?> ><?php _e('Telugu', 'custom-facebook-feed'); ?></option>
4058
- <option value="th_TH" <?php if($cff_locale_val == "th_TH") echo 'selected="selected"' ?> ><?php _e('Thai', 'custom-facebook-feed'); ?></option>
4059
- <option value="tl_PH" <?php if($cff_locale_val == "tl_PH") echo 'selected="selected"' ?> ><?php _e('Filipino', 'custom-facebook-feed'); ?></option>
4060
- <option value="tr_TR" <?php if($cff_locale_val == "tr_TR") echo 'selected="selected"' ?> ><?php _e('Turkish', 'custom-facebook-feed'); ?></option>
4061
- <option value="uk_UA" <?php if($cff_locale_val == "uk_UA") echo 'selected="selected"' ?> ><?php _e('Ukrainian', 'custom-facebook-feed'); ?></option>
4062
- <option value="vi_VN" <?php if($cff_locale_val == "vi_VN") echo 'selected="selected"' ?> ><?php _e('Vietnamese', 'custom-facebook-feed'); ?></option>
4063
- <option value="zh_CN" <?php if($cff_locale_val == "zh_CN") echo 'selected="selected"' ?> ><?php _e('Simplified Chinese (China)', 'custom-facebook-feed'); ?></option>
4064
- <option value="zh_HK" <?php if($cff_locale_val == "zh_HK") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Hong Kong)', 'custom-facebook-feed'); ?></option>
4065
- <option value="zh_TW" <?php if($cff_locale_val == "zh_TW") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Taiwan)', 'custom-facebook-feed'); ?></option>
4066
- </select>
4067
- <a class="cff-tooltip-link" href="JavaScript:void(0);"><i class="fa fa-question-circle" aria-hidden="true"></i></a>
4068
- <p class="cff-tooltip cff-more-info"><?php _e("This translates some of the text sent by Facebook, specifically, the descriptive post text (eg: Smash Balloon shared a link) and the text in the 'Like Box' widget. To find out how to translate the other text in the plugin see <a href='https://smashballoon.com/cff-how-does-the-plugin-handle-text-and-language-translation/' target='_blank'>this FAQ</a>."); ?></p>
4069
- </td>
4070
- </tr>
4071
-
4072
- <tr>
4073
- <th><label for="cff_timezone" class="bump-left"><?php _e('Timezone', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> timezone
4074
- Eg: timezone="America/New_York"
4075
- <a href="http://php.net/manual/en/timezones.php" target="_blank">See full list</a></code></th>
4076
- <td>
4077
- <select name="cff_timezone" style="width: 300px;">
4078
- <option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa', 'custom-facebook-feed'); ?></option>
4079
- <option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian', 'custom-facebook-feed'); ?></option>
4080
- <option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii', 'custom-facebook-feed'); ?></option>
4081
- <option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands', 'custom-facebook-feed'); ?></option>
4082
- <option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands', 'custom-facebook-feed'); ?></option>
4083
- <option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska', 'custom-facebook-feed'); ?></option>
4084
- <option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California', 'custom-facebook-feed'); ?></option>
4085
- <option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands', 'custom-facebook-feed'); ?></option>
4086
- <option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)', 'custom-facebook-feed'); ?></option>
4087
- <option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)', 'custom-facebook-feed'); ?></option>
4088
- <option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan', 'custom-facebook-feed'); ?></option>
4089
- <option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona', 'custom-facebook-feed'); ?></option>
4090
- <option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America', 'custom-facebook-feed'); ?></option>
4091
- <option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey', 'custom-facebook-feed'); ?></option>
4092
- <option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island', 'custom-facebook-feed'); ?></option>
4093
- <option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)', 'custom-facebook-feed'); ?></option>
4094
- <option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)', 'custom-facebook-feed'); ?></option>
4095
- <option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba', 'custom-facebook-feed'); ?></option>
4096
- <option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco', 'custom-facebook-feed'); ?></option>
4097
- <option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas', 'custom-facebook-feed'); ?></option>
4098
- <option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago', 'custom-facebook-feed'); ?></option>
4099
- <option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz', 'custom-facebook-feed'); ?></option>
4100
- <option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands', 'custom-facebook-feed'); ?></option>
4101
- <option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil', 'custom-facebook-feed'); ?></option>
4102
- <option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)', 'custom-facebook-feed'); ?></option>
4103
- <option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)', 'custom-facebook-feed'); ?></option>
4104
- <option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland', 'custom-facebook-feed'); ?></option>
4105
- <option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3', 'custom-facebook-feed'); ?></option>
4106
- <option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo', 'custom-facebook-feed'); ?></option>
4107
- <option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre', 'custom-facebook-feed'); ?></option>
4108
- <option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland', 'custom-facebook-feed'); ?></option>
4109
- <option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires', 'custom-facebook-feed'); ?></option>
4110
- <option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia', 'custom-facebook-feed'); ?></option>
4111
- <option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic', 'custom-facebook-feed'); ?></option>
4112
- <option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.', 'custom-facebook-feed'); ?></option>
4113
- <option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores', 'custom-facebook-feed'); ?></option>
4114
- <option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast', 'custom-facebook-feed'); ?></option>
4115
- <option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin', 'custom-facebook-feed'); ?></option>
4116
- <option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon', 'custom-facebook-feed'); ?></option>
4117
- <option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London', 'custom-facebook-feed'); ?></option>
4118
- <option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik', 'custom-facebook-feed'); ?></option>
4119
- <option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', 'custom-facebook-feed'); ?></option>
4120
- <option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'custom-facebook-feed'); ?></option>
4121
- <option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris', 'custom-facebook-feed'); ?></option>
4122
- <option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa', 'custom-facebook-feed'); ?></option>
4123
- <option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek', 'custom-facebook-feed'); ?></option>
4124
- <option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut', 'custom-facebook-feed'); ?></option>
4125
- <option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo', 'custom-facebook-feed'); ?></option>
4126
- <option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza', 'custom-facebook-feed'); ?></option>
4127
- <option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria', 'custom-facebook-feed'); ?></option>
4128
- <option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem', 'custom-facebook-feed'); ?></option>
4129
- <option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk', 'custom-facebook-feed'); ?></option>
4130
- <option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria', 'custom-facebook-feed'); ?></option>
4131
- <option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd', 'custom-facebook-feed'); ?></option>
4132
- <option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi', 'custom-facebook-feed'); ?></option>
4133
- <option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran', 'custom-facebook-feed'); ?></option>
4134
- <option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat', 'custom-facebook-feed'); ?></option>
4135
- <option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan', 'custom-facebook-feed'); ?></option>
4136
- <option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul', 'custom-facebook-feed'); ?></option>
4137
- <option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg', 'custom-facebook-feed'); ?></option>
4138
- <option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent', 'custom-facebook-feed'); ?></option>
4139
- <option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', 'custom-facebook-feed'); ?></option>
4140
- <option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu', 'custom-facebook-feed'); ?></option>
4141
- <option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka', 'custom-facebook-feed'); ?></option>
4142
- <option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk', 'custom-facebook-feed'); ?></option>
4143
- <option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)', 'custom-facebook-feed'); ?></option>
4144
- <option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta', 'custom-facebook-feed'); ?></option>
4145
- <option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk', 'custom-facebook-feed'); ?></option>
4146
- <option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', 'custom-facebook-feed'); ?></option>
4147
- <option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar', 'custom-facebook-feed'); ?></option>
4148
- <option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth', 'custom-facebook-feed'); ?></option>
4149
- <option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla', 'custom-facebook-feed'); ?></option>
4150
- <option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo', 'custom-facebook-feed'); ?></option>
4151
- <option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul', 'custom-facebook-feed'); ?></option>
4152
- <option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk', 'custom-facebook-feed'); ?></option>
4153
- <option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide', 'custom-facebook-feed'); ?></option>
4154
- <option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin', 'custom-facebook-feed'); ?></option>
4155
- <option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane', 'custom-facebook-feed'); ?></option>
4156
- <option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Sydney', 'custom-facebook-feed'); ?></option>
4157
- <option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok', 'custom-facebook-feed'); ?></option>
4158
- <option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island', 'custom-facebook-feed'); ?></option>
4159
- <option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia', 'custom-facebook-feed'); ?></option>
4160
- <option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan', 'custom-facebook-feed'); ?></option>
4161
- <option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island', 'custom-facebook-feed'); ?></option>
4162
- <option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka', 'custom-facebook-feed'); ?></option>
4163
- <option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington', 'custom-facebook-feed'); ?></option>
4164
- <option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.', 'custom-facebook-feed'); ?></option>
4165
- <option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands', 'custom-facebook-feed'); ?></option>
4166
- <option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa', 'custom-facebook-feed'); ?></option>
4167
- <option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati', 'custom-facebook-feed'); ?></option>
4168
- </select>
4169
- </td>
4170
- </tr>
4171
-
4172
- </tbody>
4173
- </table>
4174
-
4175
- <div class="cff-save-settings-btn">
4176
- <?php submit_button('Save Settings & Clear Cache'); ?>
4177
-
4178
- <a class="cff-tooltip-link" href="JavaScript:void(0);">Why is the cache cleared?</a>
4179
- <p class="cff-tooltip cff-more-info"><?php _e("As the settings on this page directly affect the request made to Facebook to get data, then when these settings are changed the plugin cache is cleared in order for the plugin to check Facebook for data again using these new settings. The plugin will check Facebook for data the next time the page that the feed is on is loaded."); ?></p>
4180
- </div>
4181
-
4182
- <p style="padding-top: 5px;"><i class="fa fa-life-ring" aria-hidden="true"></i>&nbsp; <?php _e('Having trouble using the plugin? Check out the', 'custom-facebook-feed'); ?> <a href='admin.php?page=cff-top&amp;tab=support'><?php _e('Support', 'custom-facebook-feed'); ?></a> <?php _e('tab', 'custom-facebook-feed'); ?>.</p>
4183
- </form>
4184
-
4185
- <div class="cff_quickstart">
4186
- <h3><i class="fa fa-rocket" aria-hidden="true"></i>&nbsp; Display your feed</h3>
4187
- <p>Copy and paste this shortcode directly into the page, post or widget where you'd like to display the feed: <input type="text" value="[custom-facebook-feed]" size="22" readonly="readonly" style="text-align: center;" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)."></p>
4188
- <p>Find out how to display <a href="https://smashballoon.com/using-shortcode-options-customize-facebook-feeds/?utm_campaign=facebook-free&utm_source=settings&utm_medium=multiple" target="_blank"><b>multiple feeds</b></a>.</p>
4189
- </div>
4190
-
4191
- <a href="https://smashballoon.com/custom-facebook-feed/demo/?utm_campaign=facebook-free&utm_source=footer&utm_medium=ad" target="_blank" class="cff-pro-notice"><img src="<?php echo CFF_PLUGIN_URL. 'admin/assets/img/pro.png?2019' ?>" /></a>
4192
-
4193
- <p class="cff_plugins_promo dashicons-before dashicons-admin-plugins"> <?php _e('Check out our other free plugins for <a href="https://wordpress.org/plugins/instagram-feed/" target="_blank">Instagram</a>, <a href="https://wordpress.org/plugins/custom-twitter-feeds/" target="_blank">Twitter</a>, and <a href="https://wordpress.org/plugins/feeds-for-youtube/" target="_blank">YouTube</a>.', 'custom-facebook-feed' ); ?></p>
4194
-
4195
- <div class="cff-share-plugin">
4196
- <h3><?php _e('Like the plugin? Help spread the word!', 'custom-facebook-feed'); ?></h3>
4197
-
4198
- <button id="cff-admin-show-share-links" class="button secondary" style="margin-bottom: 1px;"><i class="fa fa-share-alt" aria-hidden="true"></i>&nbsp;&nbsp;Share the plugin</button> <div id="cff-admin-share-links"></div>
4199
- </div>
4200
-
4201
- <?php } //End config tab ?>
4202
-
4203
- <?php if ( $cff_active_tab == 'allfeeds' ) {
4204
- $locator_summary = CFF_Feed_Locator::summary();
4205
- include_once trailingslashit( CFF_PLUGIN_DIR ) . 'admin/templates/locator-summary.php';
4206
- } ?>
4207
-
4208
- <?php if( $cff_active_tab == 'support' ) { //Start Support tab ?>
4209
-
4210
- <div class="cff_support">
4211
-
4212
- <br />
4213
- <h3 style="padding-bottom: 10px;">Need help?</h3>
4214
-
4215
- <p>
4216
- <span class="cff-support-title"><i class="fa fa-life-ring" aria-hidden="true"></i>&nbsp; <a href="https://smashballoon.com/custom-facebook-feed/docs/free/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank"><?php _e('Setup Directions'); ?></a></span>
4217
- <?php _e('A step-by-step guide on how to setup and use the plugin.'); ?>
4218
- </p>
4219
-
4220
- <p>
4221
- <span class="cff-support-title"><i class="fa fa-question-circle" aria-hidden="true"></i>&nbsp; <a href="https://smashballoon.com/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=faqs" target="_blank"><?php _e('FAQs and Docs'); ?></a></span>
4222
- <?php _e('View our expansive library of FAQs and documentation to help solve your problem as quickly as possible.'); ?>
4223
- </p>
4224
-
4225
- <div class="cff-support-faqs">
4226
-
4227
- <ul class="cff-faq-col-1">
4228
- <li><b>FAQs</b></li>
4229
- <li>&bull;&nbsp; <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=general" target="_blank">General Questions</a>'); ?></li>
4230
- <li>&bull;&nbsp; <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/getting-started/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank">Getting Started</a>'); ?></li>
4231
- <li>&bull;&nbsp; <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/troubleshooting/?utm_campaign=facebook-free&utm_source=support&utm_medium=issues" target="_blank">Common Issues</a>'); ?></li>
4232
- <li style="margin-top: 8px; font-size: 12px;"><a href="https://smashballoon.com/custom-facebook-feed/faq/?utm_campaign=facebook-free&utm_source=support&utm_medium=faqs" target="_blank">See all<i class="fa fa-chevron-right" aria-hidden="true"></i></a></li>
4233
-
4234
- </ul>
4235
-
4236
- <ul>
4237
- <li><b>Documentation</b></li>
4238
- <li>&bull;&nbsp; <?php _e('<a href="http://smashballoon.com/custom-facebook-feed/docs/free/?utm_campaign=facebook-free&utm_source=support&utm_medium=setup" target="_blank">Installation and Configuration</a>'); ?></li>
4239
- <li>&bull;&nbsp; <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/shortcodes/?utm_campaign=facebook-free&utm_source=support&utm_medium=shortcode" target="_blank">Shortcode Reference</a>', 'custom-facebook-feed'); ?></li>
4240
- <li>&bull;&nbsp; <?php _e('<a href="https://smashballoon.com/snippets/?utm_campaign=facebook-free&utm_source=support&utm_medium=snippets" target="_blank">Custom CSS and JavaScript Snippets</a>'); ?></li>
4241
- <li style="margin-top: 8px; font-size: 12px;"><a href="https://smashballoon.com/custom-facebook-feed/docs/?utm_campaign=facebook-free&utm_source=support&utm_medium=docs" target="_blank">See all<i class="fa fa-chevron-right" aria-hidden="true"></i></a></li>
4242
- </ul>
4243
- </div>
4244
-
4245
- <p>
4246
- <span class="cff-support-title"><i class="fa fa-envelope" aria-hidden="true"></i>&nbsp; <a href="http://smashballoon.com/custom-facebook-feed/support/?utm_campaign=facebook-free&utm_source=support&utm_medium=support" target="_blank"><?php _e('Request Support'); ?></a></span>
4247
- <?php _e('Still need help? Submit a ticket and one of our support experts will get back to you as soon as possible.<br /><b>Important:</b> Please include your <b>System Info</b> below with all support requests.'); ?>
4248
- </p>
4249
- </div>
4250
-
4251
- <hr />
4252
-
4253
- <h3><?php _e('System Info &nbsp; <i style="color: #666; font-size: 11px; font-weight: normal;">Click the text below to select all</i>', 'custom-facebook-feed'); ?></h3>
4254
-
4255
- <?php
4256
- $cff_use_own_token = get_option( 'cff_show_access_token' );
4257
- $access_token = get_option( $access_token );
4258
- $posts_json = CFF_Utils::cff_fetchUrl("https://graph.facebook.com/".get_option( trim($page_id) )."/feed?access_token=". trim($access_token) ."&limit=1");
4259
- ?>
4260
-
4261
- <textarea readonly="readonly" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)." style="width: 70%; height: 500px; white-space: pre; font-family: Menlo,Monaco,monospace;">
4262
- ## SITE/SERVER INFO: ##
4263
- Site URL: <?php echo site_url() . "\n"; ?>
4264
- Home URL: <?php echo home_url() . "\n"; ?>
4265
- WordPress Version: <?php echo get_bloginfo( 'version' ) . "\n"; ?>
4266
- PHP Version: <?php echo PHP_VERSION . "\n"; ?>
4267
- Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
4268
- PHP allow_url_fopen: <?php echo ini_get( 'allow_url_fopen' ) ? "Yes" . "\n" : "No" . "\n"; ?>
4269
- PHP cURL: <?php echo is_callable('curl_init') ? "Yes" . "\n" : "No" . "\n"; ?>
4270
- JSON: <?php echo function_exists("json_decode") ? "Yes" . "\n" : "No" . "\n" ?>
4271
- SSL Stream: <?php echo in_array('https', stream_get_wrappers()) ? "Yes" . "\n" : "No" . "\n" ?>
4272
-
4273
- ## ACTIVE PLUGINS: ##
4274
- <?php
4275
- $plugins = get_plugins();
4276
- $active_plugins = get_option( 'active_plugins', array() );
4277
-
4278
- foreach ( $plugins as $plugin_path => $plugin ) {
4279
- // If the plugin isn't active, don't show it.
4280
- if ( ! in_array( $plugin_path, $active_plugins ) )
4281
- continue;
4282
-
4283
- echo $plugin['Name'] . ': ' . $plugin['Version'] ."\n";
4284
- }
4285
- ?>
4286
-
4287
- ## PLUGIN SETTINGS: ##
4288
- Access Token: <?php echo chunk_split( get_option( 'cff_access_token' ), 110 ); ?>
4289
- Page ID: <?php echo get_option( 'cff_page_id' ) ."\n"; ?>
4290
- Number of Posts: <?php echo get_option( 'cff_num_show' ) ."\n"; ?>
4291
- Post Limit: <?php echo get_option( 'cff_post_limit' ) ."\n"; ?>
4292
- Show Posts by: <?php echo get_option( 'cff_show_others' ) ."\n"; ?>
4293
- Cache Time: <?php echo get_option( 'cff_cache_time' ) ." ".get_option( 'cff_cache_time_unit' )."\n"; ?>
4294
- Locale: <?php echo get_option( 'cff_locale' ) ."\n"; ?>
4295
- Timezone: <?php $options = get_option( 'cff_style_settings', array() );
4296
- echo $options[ 'cff_timezone' ] ."\n"; ?>
4297
-
4298
- <?php if( isset( $options[ 'cff_feed_width' ] ) ) { ?>
4299
- ## CUSTOMIZE ##
4300
- Feed Width => <?php echo $options[ 'cff_feed_width' ] ."\n"; ?>
4301
- Responsive => <?php echo $options[ 'cff_feed_width_resp' ] ."\n"; ?>
4302
- Feed Height => <?php echo $options[ 'cff_feed_height' ] ."\n"; ?>
4303
- Feed Padding => <?php echo $options[ 'cff_feed_padding' ] ."\n"; ?>
4304
- Feed BG Color => <?php echo $options[ 'cff_bg_color' ] ."\n"; ?>
4305
- CSS Class => <?php echo $options[ 'cff_class' ] ."\n"; ?>
4306
- Feed Columns => <?php echo $options['cff_cols'] ."\n"; ?>
4307
- Mobile Columns => <?php echo $options['cff_cols_mobile'] ."\n"; ?>
4308
-
4309
- ## HEADER: ##
4310
- Show Header => <?php echo $options[ 'cff_show_header' ] ."\n"; ?>
4311
- Header Type => <?php echo $options[ 'cff_header_type' ] ."\n"; ?>
4312
- Header Cover => <?php echo $options[ 'cff_header_cover' ] ."\n"; ?>
4313
- Header Name => <?php echo $options[ 'cff_header_name' ] ."\n"; ?>
4314
- Header Bio => <?php echo $options[ 'cff_header_bio' ] ."\n"; ?>
4315
- Header Cover Height => <?php echo $options[ 'cff_header_cover_height' ] ."\n"; ?>
4316
- Text => <?php echo $options[ 'cff_header_text' ] ."\n"; ?>
4317
- Header Outside => <?php echo $options[ 'cff_header_outside' ] ."\n"; ?>
4318
- Background Color => <?php echo $options[ 'cff_header_bg_color' ] ."\n"; ?>
4319
- Padding => <?php echo $options[ 'cff_header_padding' ] ."\n"; ?>
4320
- Text Size => <?php echo $options[ 'cff_header_text_size' ] ."\n"; ?>
4321
- Text Weight => <?php echo $options[ 'cff_header_text_weight' ] ."\n"; ?>
4322
- Text Color => <?php echo $options[ 'cff_header_text_color' ] ."\n"; ?>
4323
- Icon => <?php echo $options[ 'cff_header_icon' ] ."\n"; ?>
4324
- Icon Color => <?php echo $options[ 'cff_header_icon_color' ] ."\n"; ?>
4325
- Icon Size => <?php echo $options[ 'cff_header_icon_size' ] ."\n"; ?>
4326
-
4327
- ## LIKE BOX: ##
4328
- Position => <?php echo $options[ 'cff_like_box_position' ] ."\n"; ?>
4329
- Display Outside => <?php echo $options[ 'cff_like_box_outside' ] ."\n"; ?>
4330
- Show Fans => <?php echo $options[ 'cff_like_box_faces' ] ."\n"; ?>
4331
- Cover Photo => <?php echo $options[ 'cff_like_box_cover' ] ."\n"; ?>
4332
- Small Header => <?php echo $options[ 'cff_like_box_small_header' ] ."\n"; ?>
4333
- Hide CTA => <?php echo $options[ 'cff_like_box_hide_cta' ] ."\n"; ?>
4334
- Custom Width => <?php echo $options[ 'cff_likebox_width' ] ."\n"; ?>
4335
-
4336
- ## SHOW/HIDE: ##
4337
- Show => <?php if( $options[ 'cff_show_author' ] ) echo 'Author, ';
4338
- if( $options[ 'cff_show_text' ] ) echo 'Post Text, ';
4339
- if( $options[ 'cff_show_desc' ] ) echo 'Description, ';
4340
- if( $options[ 'cff_show_shared_links' ] ) echo 'Shared Links, ';
4341
- if( $options[ 'cff_show_date' ] ) echo 'Date, ';
4342
- if( $options[ 'cff_show_media' ] ) echo 'Photos/Videos, ';
4343
- if( $options[ 'cff_show_event_title' ] ) echo 'Event Title, ';
4344
- if( $options[ 'cff_show_event_details' ] ) echo 'Event Details, ';
4345
- if( $options[ 'cff_show_meta' ] ) echo 'Comments Box, ';
4346
- if( $options[ 'cff_show_link' ] ) echo 'Post Link';
4347
- echo "\n"; ?>
4348
- Hide => <?php if( !$options[ 'cff_show_author' ] ) echo 'Author, ';
4349
- if( !$options[ 'cff_show_text' ] ) echo 'Post Text, ';
4350
- if( !$options[ 'cff_show_desc' ] ) echo 'Description, ';
4351
- if( !$options[ 'cff_show_shared_links' ] ) echo 'Shared Links, ';
4352
- if( !$options[ 'cff_show_date' ] ) echo 'Date, ';
4353
- if( !$options[ 'cff_show_media' ] ) echo 'Photos/Videos, ';
4354
- if( !$options[ 'cff_show_event_title' ] ) echo 'Event Title, ';
4355
- if( !$options[ 'cff_show_event_details' ] ) echo 'Event Details, ';
4356
- if( !$options[ 'cff_show_meta' ] ) echo 'Comments Box, ';
4357
- if( !$options[ 'cff_show_link' ] ) echo 'Post Link';
4358
- echo "\n"; ?>
4359
-
4360
- ## STYLE POSTS: ##
4361
- Post Style => <?php echo $options[ 'cff_post_style' ] ."\n"; ?>
4362
- Background Color => <?php echo $options[ 'cff_post_bg_color' ] ."\n"; ?>
4363
- Rounded => <?php echo $options[ 'cff_post_rounded' ] ."\n"; ?>
4364
- Seperator Color => <?php echo $options[ 'cff_sep_color' ] ."\n"; ?>
4365
- Seperator Size => <?php echo $options[ 'cff_sep_size' ] ."\n"; ?>
4366
- Box Shadow => <?php echo $options[ 'cff_box_shadow' ] ."\n"; ?>
4367
-
4368
- ## POST AUTHOR: ##
4369
- Text Size => <?php echo $options[ 'cff_author_size' ] ."\n"; ?>
4370
- Text Color => <?php echo $options[ 'cff_author_color' ] ."\n"; ?>
4371
-
4372
- ## POST TEXT: ##
4373
- Text Length => <?php echo get_option('cff_title_length') ."\n"; ?>
4374
- Format => <?php echo $options['cff_title_format'] ."\n"; ?>
4375
- Text Size => <?php echo $options['cff_title_size'] ."\n"; ?>
4376
- Text Weight => <?php echo $options['cff_title_weight'] ."\n"; ?>
4377
- Text Color => <?php echo $options['cff_title_color'] ."\n"; ?>
4378
- Link Color => <?php echo $options['cff_link_color'] ."\n"; ?>
4379
- Link Text To Facebook => <?php echo $options['cff_link_to_timeline'] ."\n"; ?>
4380
- Link Post Tags => <?php echo $options['cff_post_tags'] ."\n"; ?>
4381
- Link Hashags => <?php echo $options['cff_link_hashtags'] ."\n"; ?>
4382
-
4383
- ## SHARED POST DESCRIPTION: ##
4384
- Text Size => <?php echo $options['cff_body_size'] ."\n"; ?>
4385
- Text Weight => <?php echo $options['cff_body_weight'] ."\n"; ?>
4386
- Text Color => <?php echo $options['cff_body_color'] ."\n"; ?>
4387
-
4388
- ## POST DATE: ##
4389
- Position => <?php echo $options['cff_date_position'] ."\n"; ?>
4390
- Text Size => <?php echo $options['cff_date_size'] ."\n"; ?>
4391
- Text Weight => <?php echo $options['cff_date_weight'] ."\n"; ?>
4392
- Text Color => <?php echo $options['cff_date_color'] ."\n"; ?>
4393
- Date Formatting => <?php echo $options['cff_date_formatting'] ."\n"; ?>
4394
- Timezone => <?php echo $options['cff_timezone'] ."\n"; ?>
4395
- Custom Format => <?php echo $options['cff_date_custom'] ."\n"; ?>
4396
- Text Before Date => <?php echo $options['cff_date_before'] ."\n"; ?>
4397
- Text After Date => <?php echo $options['cff_date_after'] ."\n"; ?>
4398
-
4399
- ## SHARED LINK BOXES: ##
4400
- Link Box BG Color => <?php echo $options['cff_link_bg_color'] ."\n"; ?>
4401
- Link Box Border Color => <?php echo $options['cff_link_border_color'] ."\n"; ?>
4402
- Remove Background/Border => <?php echo $options['cff_disable_link_box'] ."\n"; ?>
4403
- Link Title Format => <?php echo $options['cff_link_title_format'] ."\n"; ?>
4404
- Link Title Color => <?php echo $options['cff_link_title_color'] ."\n"; ?>
4405
- Link Title Size => <?php echo $options['cff_link_title_size'] ."\n"; ?>
4406
- Link URL Size => <?php echo $options['cff_link_url_size'] ."\n"; ?>
4407
- Link URL Color => <?php echo $options['cff_link_url_color'] ."\n"; ?>
4408
- Link Description Size => <?php echo $options['cff_link_desc_size'] ."\n"; ?>
4409
- Link Description Color => <?php echo $options['cff_link_desc_color'] ."\n"; ?>
4410
- Max Length => <?php echo get_option('cff_body_length') ."\n"; ?>
4411
-
4412
- ## EVENT TITLE: ##
4413
- Format => <?php echo $options['cff_event_title_format'] ."\n"; ?>
4414
- Text Size => <?php echo $options['cff_event_title_size'] ."\n"; ?>
4415
- Text Weight => <?php echo $options['cff_event_title_weight'] ."\n"; ?>
4416
- Text Color => <?php echo $options['cff_event_title_color'] ."\n"; ?>
4417
- Link To Facebook => <?php echo $options['cff_event_title_link'] ."\n"; ?>
4418
-
4419
- ## EVENT DATE: ##
4420
- Text Size => <?php echo $options['cff_event_date_size'] ."\n"; ?>
4421
- Text Weight => <?php echo $options['cff_event_date_weight'] ."\n"; ?>
4422
- Text Color => <?php echo $options['cff_event_date_color'] ."\n"; ?>
4423
- Date Position => <?php echo $options['cff_event_date_position'] ."\n"; ?>
4424
- Date Formatting => <?php echo $options['cff_event_date_formatting'] ."\n"; ?>
4425
- Custom Format => <?php echo $options['cff_event_date_custom'] ."\n"; ?>
4426
-
4427
- ## EVENT DETAILS: ##
4428
- Text Size => <?php echo $options['cff_event_details_size'] ."\n"; ?>
4429
- Text Weight => <?php echo $options['cff_event_details_weight'] ."\n"; ?>
4430
- Text Color => <?php echo $options['cff_event_details_color'] ."\n"; ?>
4431
- Link Color => <?php echo $options['cff_event_link_color'] ."\n"; ?>
4432
-
4433
- ## POST ACTION LINKS: ##
4434
- Text Size => <?php echo $options['cff_link_size'] ."\n"; ?>
4435
- Text Weight => <?php echo $options['cff_link_weight'] ."\n"; ?>
4436
- Text Color => <?php echo $options['cff_link_color'] ."\n"; ?>
4437
- View on Facebook Text => <?php echo $options['cff_facebook_link_text'] ."\n"; ?>
4438
- Share Text => <?php echo $options['cff_facebook_share_text'] ."\n"; ?>
4439
- Show View on Facebook Text => <?php echo $options['cff_show_facebook_link'] ."\n"; ?>
4440
- Show Share Text => <?php echo $options['cff_show_facebook_share'] ."\n"; ?>
4441
-
4442
- ## CUSTOM CSS/JS: ##
4443
- Custom CSS => <?php echo $options['cff_custom_css'] ."\n"; ?>
4444
- Custom JavaScript => <?php echo $options['cff_custom_js'] ."\n"; ?>
4445
-
4446
- ## MISC SETTINGS: ##
4447
- Loading via AJAX => <?php echo get_option('cff_ajax') ."\n"; ?>
4448
- Preserve Settings => <?php echo get_option('cff_preserve_settings') ."\n"; ?>
4449
- Credit Link => <?php echo $options['cff_show_credit'] ."\n"; ?>
4450
- Minify CSS/JS => <?php echo $options['cff_minify'] ."\n"; ?>
4451
- Restricted Page => <?php echo $options['cff_restricted_page'] ."\n"; ?>
4452
- Icon Font Source Method => <?php echo $options['cff_font_source'] ."\n"; ?>
4453
- Force Cache To Clear => <?php echo $options['cff_cron'] ."\n"; ?>
4454
- Request Method => <?php echo $options['cff_request_method'] ."\n"; ?>
4455
- Fix Text Shortening => <?php echo $options['cff_format_issue'] ."\n"; ?>
4456
- Disable Default Styles => <?php echo $options['cff_disable_styles'] ."\n"; ?>
4457
- Disable Frontend Error Notice => <?php if ( isset( $options['disable_admin_notice'] ) ) echo $options['disable_admin_notice']; echo "\n"; ?>
4458
- Enable Email => <?php if ( isset( $options['enable_email_report'] ) ) echo $options['enable_email_report']; echo "\n" ?>
4459
- Email Addresses => <?php if ( isset( $options['enable_email_report'] ) ) echo $options['email_notification_addresses']; echo "\n"; ?>
4460
-
4461
- ## CUSTOM TEXT/TRANSLATE: ##
4462
- Modified text strings:
4463
- <?php if($options['cff_see_more_text'] != 'See More'){ ?>See More => <?php echo $options['cff_see_more_text'] ."\n"; ?><?php } ?>
4464
- <?php if($options['cff_see_less_text'] != 'See Less'){ ?>See Less => <?php echo $options['cff_see_less_text'] ."\n"; ?><?php } ?>
4465
- <?php if($options['cff_facebook_link_text'] != 'View on Facebook'){ ?>View on Facebook => <?php echo $options['cff_facebook_link_text'] ."\n"; ?><?php } ?>
4466
- <?php if($options['cff_facebook_share_text'] != 'Share'){ ?>Share => <?php echo $options['cff_facebook_share_text'] ."\n"; ?><?php } ?>
4467
- <?php if($options['cff_translate_photos_text'] != 'photos'){ ?>Photos => <?php echo $options['cff_translate_photos_text'] ."\n"; ?><?php } ?>
4468
- <?php if($options['cff_translate_photo_text'] != 'Photo'){ ?>Photo => <?php echo $options['cff_translate_photo_text'] ."\n"; ?><?php } ?>
4469
- <?php if($options['cff_translate_video_text'] != 'Video'){ ?>Video => <?php echo $options['cff_translate_video_text'] ."\n"; ?><?php } ?>
4470
- <?php if($options['cff_translate_learn_more_text'] != 'Learn More'){ ?>Learn More => <?php echo $options['cff_translate_learn_more_text'] ."\n"; ?><?php } ?>
4471
- <?php if($options['cff_translate_shop_now_text'] != 'Shop Now'){ ?>Shop Now => <?php echo $options['cff_translate_shop_now_text'] ."\n"; ?><?php } ?>
4472
- <?php if($options['cff_translate_message_page_text'] != 'Message Page'){ ?>Message Page => <?php echo $options['cff_translate_message_page_text'] ."\n"; ?><?php } ?>
4473
- <?php if($options['cff_translate_second'] != 'second'){ ?>Second => <?php echo $options['cff_translate_second'] ."\n"; ?><?php } ?>
4474
- <?php if($options['cff_translate_seconds'] != 'seconds'){ ?>Seconds => <?php echo $options['cff_translate_seconds'] ."\n"; ?><?php } ?>
4475
- <?php if($options['cff_translate_minute'] != 'minute'){ ?>Minute => <?php echo $options['cff_translate_minute'] ."\n"; ?><?php } ?>
4476
- <?php if($options['cff_translate_minutes'] != 'minutes'){ ?>Minutes => <?php echo $options['cff_translate_minutes'] ."\n"; ?><?php } ?>
4477
- <?php if($options['cff_translate_hour'] != 'hour'){ ?>Hour => <?php echo $options['cff_translate_hour'] ."\n"; ?><?php } ?>
4478
- <?php if($options['cff_translate_hours'] != 'hours'){ ?>Hours => <?php echo $options['cff_translate_hours'] ."\n"; ?><?php } ?>
4479
- <?php if($options['cff_translate_day'] != 'day'){ ?>Day => <?php echo $options['cff_translate_day'] ."\n"; ?><?php } ?>
4480
- <?php if($options['cff_translate_days'] != 'days'){ ?>Days => <?php echo $options['cff_translate_days'] ."\n"; ?><?php } ?>
4481
- <?php if($options['cff_translate_week'] != 'week'){ ?>Week => <?php echo $options['cff_translate_week'] ."\n"; ?><?php } ?>
4482
- <?php if($options['cff_translate_weeks'] != 'weeks'){ ?>Weeks => <?php echo $options['cff_translate_weeks'] ."\n"; ?><?php } ?>
4483
- <?php if($options['cff_translate_month'] != 'month'){ ?>Month => <?php echo $options['cff_translate_month'] ."\n"; ?><?php } ?>
4484
- <?php if($options['cff_translate_months'] != 'months'){ ?>Months => <?php echo $options['cff_translate_months'] ."\n"; ?><?php } ?>
4485
- <?php if($options['cff_translate_year'] != 'year'){ ?>Year => <?php echo $options['cff_translate_year'] ."\n"; ?><?php } ?>
4486
- <?php if($options['cff_translate_years'] != 'years'){ ?>Years => <?php echo $options['cff_translate_years'] ."\n"; ?><?php } ?>
4487
- <?php if($options['cff_translate_ago'] != 'ago'){ ?>Ago => <?php echo $options['cff_translate_ago'] ."\n"; ?><?php } ?>
4488
- <?php } else {
4489
- echo "\n"."## CUSTOMIZE ##"."\n";
4490
- echo '-----------------------------'."\n";
4491
- echo "Customize Settings not saved."."\n";
4492
- echo '-----------------------------'."\n";
4493
- } ?>
4494
-
4495
- ## FACEBOOK API RESPONSE: ##
4496
- <?php
4497
- $api_response_json = json_decode($posts_json);
4498
- if( isset( $api_response_json->error ) ) echo $posts_json;
4499
- if( isset( $api_response_json->data ) ){
4500
- $posts_json_split = explode(',"paging":{', $posts_json);
4501
- echo $posts_json_split[0];
4502
- } ?>
4503
-
4504
-
4505
- ## CRON EVENTS: ##
4506
- <?php
4507
- $cron = _get_cron_array();
4508
- foreach ( $cron as $key => $data ) {
4509
- $is_target = false;
4510
- foreach ( $data as $key2 => $val ) {
4511
- if ( strpos( $key2, 'cff' ) !== false ) {
4512
- $is_target = true;
4513
- echo $key2;
4514
- echo "\n";
4515
- }
4516
- }
4517
- if ( $is_target) {
4518
- echo date( "Y-m-d H:i:s", $key );
4519
- echo "\n";
4520
- echo 'Next Scheduled: ' . ((int)$key - time())/60 . ' minutes';
4521
- echo "\n\n";
4522
- }
4523
- }
4524
- ?>
4525
-
4526
- ## Errors: ##
4527
- <?php
4528
-
4529
- $errors = \cff_main()->cff_error_reporter->get_errors();
4530
- if ( ! empty( $errors['resizing'] ) ) :
4531
- echo '* Resizing *' . "\n";
4532
- echo $errors['resizing'] . "\n";
4533
- endif;
4534
- if ( ! empty( $errors['database_create'] ) ) :
4535
- echo '* Database Create *' . "\n";
4536
- echo $errors['database_create'] . "\n";
4537
- endif;
4538
- if ( ! empty( $errors['upload_dir'] ) ) :
4539
- echo '* Uploads Directory *' . "\n";
4540
- echo $errors['upload_dir'] . "\n";
4541
- endif;
4542
- if ( ! empty( $errors['connection'] ) ) :
4543
- echo '* API/WP_HTTP Request *' . "\n";
4544
- var_export( $errors['connection'] );
4545
- endif;
4546
- ?>
4547
-
4548
- ## Error Log: ##
4549
- <?php
4550
- $error_log = \cff_main()->cff_error_reporter->get_error_log();
4551
- if ( ! empty( $error_log ) ) :
4552
- foreach ( $error_log as $error ) :
4553
- echo strip_tags($error) . "\n";
4554
- endforeach;
4555
- endif;
4556
- ?>
4557
-
4558
- ## Action Log: ##
4559
- <?php
4560
- $actions = \cff_main()->cff_error_reporter->get_action_log();
4561
-
4562
- if ( ! empty( $actions ) ) :
4563
- foreach ( $actions as $action ) :
4564
- echo strip_tags($action) . "\n";
4565
- endforeach;
4566
- endif;
4567
- ?>
4568
-
4569
- ## Location Summary: ##
4570
- <?php
4571
- $locator_summary = CFF_Feed_Locator::summary();
4572
-
4573
- if ( ! empty( $locator_summary) ) {
4574
-
4575
- foreach ( $locator_summary as $locator_section ) {
4576
- if ( ! empty( $locator_section['results'] ) ) {
4577
- $first_five = array_slice( $locator_section['results'], 0, 5 );
4578
- foreach ( $first_five as $result ) {
4579
- echo esc_url( get_the_permalink( $result['post_id'] ) ) . "\n";
4580
- }
4581
-
4582
- }
4583
- }
4584
- }?>
4585
-
4586
- ## oEmbed: ##
4587
- <?php
4588
- $oembed_token_settings = get_option( 'cff_oembed_token', array() );
4589
- foreach( $oembed_token_settings as $key => $value ) {
4590
- echo $key . ': ' . esc_attr( $value ) . "\n";
4591
- }
4592
-
4593
- ?>
4594
- </textarea>
4595
- <div style="margin-bottom: 20px;"><input id="cff_reset_log" class="button-secondary" type="submit" value="<?php esc_attr_e( 'Reset Error Log' ); ?>" style="vertical-align: middle;"/></div>
4596
-
4597
- <?php } //End support tab
4598
-
4599
-
4600
- if( $cff_active_tab == 'more' ) { //Start More Social Feeds tab
4601
-
4602
- add_user_meta(get_current_user_id(), 'seen_more_plugins_page_1', 'true', true); //Iterate when adding a new plugin
4603
- ?>
4604
-
4605
- <div class="cff_more_plugins" id="cff-admin-about">
4606
-
4607
- <div class="cff-more-plugins-intro">
4608
- <h3><?php _e( "Here's some more <span>free</span> plugins you might like!", 'custom-facebook-feed' ); ?></h3>
4609
- <p><?php _e( "As you're already using one of our free plugins we thought we'd suggest some others you might like to. Check out our other free plugins below:", 'custom-facebook-feed' ); ?></p>
4610
- </div>
4611
-
4612
- <?php function get_am_plugins() {
4613
-
4614
- $images_url = CFF_PLUGIN_URL . 'admin/assets/img/about/';
4615
-
4616
- return array(
4617
- 'instagram-feed/instagram-feed.php' => array(
4618
- 'icon' => $images_url . 'plugin-if.png',
4619
- 'name' => esc_html__( 'Instagram Feed', 'custom-facebook-feed' ),
4620
- 'desc' => esc_html__( 'Instagram Feed is a clean and beautiful way to add your Instagram posts to your website. Grab your visitors attention and keep them engaged with your site longer.', 'custom-facebook-feed' ),
4621
- 'url' => 'https://downloads.wordpress.org/plugin/instagram-feed.zip',
4622
- 'pro' => array(
4623
- 'plug' => 'instagram-feed-pro/instagram-feed.php',
4624
- 'icon' => $images_url . 'plugin-if.png',
4625
- 'name' => esc_html__( 'Instagram Feed Pro', 'custom-facebook-feed' ),
4626
- 'desc' => esc_html__( 'Instagram Feed is a clean and beautiful way to add your Instagram posts to your website. Grab your visitors attention and keep them engaged with your site longer.', 'custom-facebook-feed' ),
4627
- 'url' => 'https://smashballoon.com/instagram-feed/?utm_campaign=facebook-free&utm_source=cross&utm_medium=cffinstaller',
4628
- 'act' => 'go-to-url',
4629
- ),
4630
- ),
4631
- 'custom-facebook-feed/custom-facebook-feed.php' => array(
4632
- 'icon' => $images_url . 'plugin-fb.png',
4633
- 'name' => esc_html__( 'Custom Facebook Feed', 'custom-facebook-feed' ),
4634
- 'desc' => esc_html__( 'Custom Facebook Feed makes displaying your Facebook posts easy. Keep your site visitors informed and increase engagement with your Facebook page by displaying a feed on your website.', 'custom-facebook-feed' ),
4635
- 'url' => 'https://downloads.wordpress.org/plugin/custom-facebook-feed.zip',
4636
- 'pro' => array(
4637
- 'plug' => 'custom-facebook-feed-pro/custom-facebook-feed.php',
4638
- 'icon' => $images_url . 'plugin-fb.png',
4639
- 'name' => esc_html__( 'Custom Facebook Feed Pro', 'custom-facebook-feed' ),
4640
- 'desc' => esc_html__( 'Custom Facebook Feed makes displaying your Facebook posts easy. Keep your site visitors informed and increase engagement with your Facebook page by displaying a feed on your website.', 'custom-facebook-feed' ),
4641
- 'url' => 'https://smashballoon.com/custom-facebook-feed/?utm_campaign=instagram-free&utm_source=cross&utm_medium=cffinstaller',
4642
- 'act' => 'go-to-url',
4643
- )
4644
- ),
4645
-
4646
- 'custom-twitter-feeds/custom-twitter-feed.php' => array(
4647
- 'icon' => $images_url . 'plugin-tw.jpg',
4648
- 'name' => esc_html__( 'Custom Twitter Feeds', 'custom-facebook-feed' ),
4649
- 'desc' => esc_html__( 'Custom Twitter Feeds is a highly customizable way to display tweets from your Twitter account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed' ),
4650
- 'url' => 'https://downloads.wordpress.org/plugin/custom-twitter-feeds.zip',
4651
- 'pro' => array(
4652
- 'plug' => 'custom-twitter-feeds-pro/custom-twitter-feed.php',
4653
- 'icon' => $images_url . 'plugin-tw.jpg',
4654
- 'name' => esc_html__( 'Custom Twitter Feeds Pro', 'custom-facebook-feed' ),
4655
- 'desc' => esc_html__( 'Custom Twitter Feeds is a highly customizable way to display tweets from your Twitter account. Promote your latest content and update your site content automatically.', 'custom-facebook-feed' ),
4656
- 'url' => 'https://smashballoon.com/custom-twitter-feeds/?utm_campaign=instagram-free&utm_source=cross&utm_medium=ctfinstaller',
4657
- 'act' => 'go-to-url',
4658
- )
4659
- ),
4660
-
4661
- 'feeds-for-youtube/youtube-feed.php' => array(
4662
- 'icon' => $images_url . 'plugin-yt.png',
4663
- 'name' => esc_html__( 'Feeds for YouTube', 'custom-facebook-feed' ),
4664
- 'desc' => esc_html__( 'Feeds for YouTube is a simple yet powerful way to display videos from YouTube on your website. Increase engagement with your channel while keeping visitors on your website.', 'custom-facebook-feed' ),
4665
- 'url' => 'https://downloads.wordpress.org/plugin/feeds-for-youtube.zip',
4666
- 'pro' => array(
4667
- 'plug' => 'youtube-feed-pro/youtube-feed.php',
4668
- 'icon' => $images_url . 'plugin-yt.png',
4669
- 'name' => esc_html__( 'Feeds for YouTube Pro', 'custom-facebook-feed' ),
4670
- 'desc' => esc_html__( 'Feeds for YouTube is a simple yet powerful way to display videos from YouTube on your website. Increase engagement with your channel while keeping visitors on your website.', 'custom-facebook-feed' ),
4671
- 'url' => 'https://smashballoon.com/youtube-feed/?utm_campaign=instagram-free&utm_source=cross&utm_medium=sbyinstaller',
4672
- 'act' => 'go-to-url',
4673
- )
4674
- ),
4675
- );
4676
-
4677
- }
4678
-
4679
- function output_about_addons() {
4680
-
4681
- if ( version_compare( PHP_VERSION, '5.3.0' ) <= 0
4682
- || version_compare( get_bloginfo('version'), '4.6' , '<' ) ){
4683
- return;
4684
- }
4685
-
4686
- $all_plugins = get_plugins();
4687
- $am_plugins = get_am_plugins();
4688
- $has_all_plugins = true;
4689
-
4690
- ?>
4691
- <div id="cff-admin-addons">
4692
- <div class="addons-container">
4693
- <?php
4694
- foreach ( $am_plugins as $plugin => $details ) :
4695
-
4696
- $free_only = true;
4697
- $plugin_data = get_the_plugin_data( $plugin, $details, $all_plugins, $free_only );
4698
- $plugin_slug = strtolower( str_replace( ' ', '_', $plugin_data['details']['name'] ) );
4699
-
4700
- //Only show the plugin if both free/pro versions aren't already active
4701
- isset( $plugin_data['details']['plug'] ) ? $pro_plugin_source = $plugin_data['details']['plug'] : $pro_plugin_source = '';
4702
-
4703
- if( !is_plugin_active( $plugin ) && !is_plugin_active( $pro_plugin_source ) ){
4704
- $has_all_plugins = false;
4705
- ?>
4706
- <div class="addon-container" id="install_<?php echo $plugin_slug; ?>">
4707
- <div class="addon-item">
4708
- <div class="details cff-clear">
4709
- <img src="<?php echo esc_url( $plugin_data['details']['icon'] ); ?>">
4710
- <h5 class="addon-name">
4711
- <?php echo esc_html( $plugin_data['details']['name'] ); ?>
4712
- </h5>
4713
- <p class="addon-desc">
4714
- <?php echo wp_kses_post( $plugin_data['details']['desc'] ); ?>
4715
- </p>
4716
- </div>
4717
- <div class="actions cff-clear">
4718
- <div class="status">
4719
- <strong>
4720
- <?php _e( 'Price:', 'custom-facebook-feed' );
4721
- echo ' <span style="color: green;">';
4722
- _e( 'Free', 'custom-facebook-feed' );
4723
- echo '</span>'; ?>
4724
- </strong>
4725
- </div>
4726
- <div class="action-button">
4727
- <button class="<?php echo esc_attr( $plugin_data['action_class'] ); ?>" data-plugin="<?php echo esc_attr( $plugin_data['plugin_src'] ); ?>" data-type="plugin">
4728
- <?php echo wp_kses_post( $plugin_data['action_text'] ); ?>
4729
- </button>
4730
- </div>
4731
- </div>
4732
- </div>
4733
- </div>
4734
-
4735
- <?php } ?>
4736
-
4737
- <?php endforeach;
4738
-
4739
- if( $has_all_plugins == true ){ ?>
4740
-
4741
- <style type="text/css">.cff-more-plugins-intro{display:none;}</style>
4742
- <h2><?php _e( 'You already have all of our free plugins. Awesome!', 'custom-facebook-feed' ); ?></h2>
4743
-
4744
- <p><?php _e( 'Thank you so much for using our plugins. We appreciate you trusting us to power your social media feeds.', 'custom-facebook-feed' ); ?></p>
4745
- <p><?php _e( 'If you want to support us in our mission to make bringing social media content to your website both easy and reliable, then consider upgrading to one of our Pro plugins.', 'custom-facebook-feed' ); ?></p>
4746
-
4747
- <div class="cff-cols-4">
4748
- <?php //Show a list of Pro plugins which aren't currently active ?>
4749
- <?php foreach ( $am_plugins as $plugin => $details ) :
4750
-
4751
- $plugin_data = get_the_plugin_data( $plugin, $details, $all_plugins );
4752
- $plugin_slug = strtolower( str_replace( ' ', '_', $plugin_data['details']['name'] ) );
4753
-
4754
- isset( $plugin_data['details']['plug'] ) ? $pro_plugin_source = $plugin_data['details']['plug'] : $pro_plugin_source = '';
4755
- if( !is_plugin_active( $pro_plugin_source ) ){
4756
- ?>
4757
-
4758
- <div class="addon-container" id="install_<?php echo $plugin_slug; ?>">
4759
- <div class="addon-item">
4760
- <div class="details cff-clear">
4761
- <img src="<?php echo esc_url( $plugin_data['details']['icon'] ); ?>">
4762
- <h5 class="addon-name">
4763
- <?php echo esc_html( $plugin_data['details']['name'] ); ?>
4764
- </h5>
4765
- <p class="addon-desc">
4766
- <?php echo wp_kses_post( $plugin_data['details']['desc'] ); ?>
4767
- </p>
4768
- </div>
4769
- <div class="actions cff-clear">
4770
- <div class="action-button">
4771
- <a href="<?php echo esc_attr( $details['pro']['url'] ); ?>" target="_blank" class="status-go-to-url button button-primary">
4772
- <?php _e( 'Upgrade to Pro', 'custom-facebook-feed' ); ?>
4773
- </a>
4774
- </div>
4775
- </div>
4776
- </div>
4777
- </div>
4778
-
4779
- <?php } ?>
4780
-
4781
- <?php endforeach; ?>
4782
- </div>
4783
-
4784
- <?php } ?>
4785
-
4786
- </div>
4787
- </div>
4788
- <?php
4789
- }
4790
-
4791
-
4792
- function get_the_plugin_data( $plugin, $details, $all_plugins, $free_only = false ) {
4793
-
4794
- $have_pro = ( ! empty( $details['pro'] ) && ! empty( $details['pro']['plug'] ) );
4795
- $show_pro = false;
4796
-
4797
- $plugin_data = array();
4798
-
4799
- if( $free_only ) $have_pro = false;
4800
-
4801
- if ( $have_pro ) {
4802
- if ( array_key_exists( $plugin, $all_plugins ) ) {
4803
- if ( is_plugin_active( $plugin ) ) {
4804
- $show_pro = true;
4805
- }
4806
- }
4807
- if ( array_key_exists( $details['pro']['plug'], $all_plugins ) ) {
4808
- $show_pro = true;
4809
- }
4810
- if ( $show_pro ) {
4811
- $plugin = $details['pro']['plug'];
4812
- $details = $details['pro'];
4813
- }
4814
- }
4815
-
4816
- if( $free_only ) $show_pro = false;
4817
-
4818
- if ( array_key_exists( $plugin, $all_plugins ) ) {
4819
- if ( is_plugin_active( $plugin ) ) {
4820
- // Status text/status.
4821
- $plugin_data['status_class'] = 'status-active';
4822
- $plugin_data['status_text'] = esc_html__( 'Active', 'custom-facebook-feed' );
4823
- // Button text/status.
4824
- $plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary disabled';
4825
- $plugin_data['action_text'] = esc_html__( 'Activated', 'custom-facebook-feed' );
4826
- $plugin_data['plugin_src'] = esc_attr( $plugin );
4827
- } else {
4828
- // Status text/status.
4829
- $plugin_data['status_class'] = 'status-inactive';
4830
- $plugin_data['status_text'] = esc_html__( 'Inactive', 'custom-facebook-feed' );
4831
- // Button text/status.
4832
- $plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-secondary';
4833
- $plugin_data['action_text'] = esc_html__( 'Activate', 'custom-facebook-feed' );
4834
- $plugin_data['plugin_src'] = esc_attr( $plugin );
4835
- }
4836
- } else {
4837
- // Doesn't exist, install.
4838
- // Status text/status.
4839
- $plugin_data['status_class'] = 'status-download';
4840
- if ( isset( $details['act'] ) && 'go-to-url' === $details['act'] ) {
4841
- $plugin_data['status_class'] = 'status-go-to-url';
4842
- }
4843
- $plugin_data['status_text'] = esc_html__( 'Not Installed', 'custom-facebook-feed' );
4844
- // Button text/status.
4845
- $plugin_data['action_class'] = $plugin_data['status_class'] . ' button button-primary';
4846
- $plugin_data['action_text'] = esc_html__( 'Install Plugin', 'custom-facebook-feed' );
4847
- $plugin_data['plugin_src'] = esc_url( $details['url'] );
4848
- }
4849
-
4850
- $plugin_data['details'] = $details;
4851
-
4852
- return $plugin_data;
4853
- }
4854
-
4855
-
4856
- output_about_addons();
4857
-
4858
- ?>
4859
- <style>.cff_quickstart, .cff-pro-notice, .cff_plugins_promo, .cff_share_plugin{ display: none !Important; }</style>
4860
- </div>
4861
-
4862
- <?php
4863
- } //End More tab
4864
-
4865
-
4866
-
4867
-
4868
- } //End Settings_Page
4869
-
4870
-
4871
-
4872
- function cff_oembeds_page() {
4873
- ( is_plugin_active( 'social-wall/social-wall.php' ) ) ? $cff_sw_active = true : $cff_sw_active = false;
4874
-
4875
- ?>
4876
-
4877
- <div id="cff-admin" class="wrap cff-oembeds">
4878
- <?php
4879
- $lite_notice_dismissed = get_transient( 'facebook_feed_dismiss_lite' );
4880
-
4881
- if ( ! $lite_notice_dismissed ) :
4882
- ?>
4883
- <div id="cff-notice-bar" style="display:none">
4884
- <span class="cff-notice-bar-message"><?php _e( 'You\'re using Custom Facebook Feed Lite. To unlock more features consider <a href="https://smashballoon.com/custom-facebook-feed/?utm_campaign=facebook-free&utm_source=notices&utm_medium=lite" target="_blank" rel="noopener noreferrer">upgrading to Pro</a>.', 'custom-facebook-feed'); ?></span>
4885
- <button type="button" class="dismiss" title="<?php _e( 'Dismiss this message.', 'custom-facebook-feed'); ?>" data-page="overview">
4886
- </button>
4887
- </div>
4888
- <?php endif; ?>
4889
-
4890
- <div id="header">
4891
- <h1><?php _e('Facebook oEmbeds', 'custom-facebook-feed'); ?></h1>
4892
- </div>
4893
-
4894
- <p>
4895
- <?php
4896
- _e( "You can use the Custom Facebook Feed plugin to power your Facebook oEmbeds, both old and new.", "custom-facebook-feed" );
4897
- if ( ! CFF_Oembed::can_do_oembed() ) {
4898
- echo ' ';
4899
- _e( "Just click the button below and we'll do the rest.", "custom-facebook-feed" );
4900
- }
4901
- ?>
4902
- </p>
4903
-
4904
- <div class="cff-oembed-button">
4905
-
4906
- <?php
4907
- //delete_option('cff_oembed_token');
4908
- $admin_url_state = admin_url('admin.php?page=cff-oembeds');
4909
- //If the admin_url isn't returned correctly then use a fallback
4910
- if( $admin_url_state == '/wp-admin/admin.php?page=cff-oembeds' ){
4911
- $admin_url_state = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
4912
- }
4913
-
4914
- $oembed_token_settings = get_option( 'cff_oembed_token', array() );
4915
- $saved_access_token_data = isset( $oembed_token_settings['access_token'] ) ? $oembed_token_settings['access_token'] : false;
4916
-
4917
- $access_token_error = false;
4918
- $valid_new_access_token = false;
4919
- $show_token_expiration_modal = false;
4920
- if ( ! empty( $_GET['cff_access_token'] ) && strlen( $_GET['cff_access_token'] ) <= 20 ) {
4921
- $access_token_error = true;
4922
- } elseif ( ! empty( $_GET['transfer'] ) ) {
4923
- if ( class_exists( 'SB_Instagram_Oembed' ) ) {
4924
- $sbi_oembed_token = SB_Instagram_Oembed::last_access_token();
4925
- $valid_new_access_token = $sbi_oembed_token;
4926
- }
4927
- } else {
4928
- $valid_new_access_token = ! empty( $_GET['cff_access_token'] ) && strlen( $_GET['cff_access_token'] ) > 20 && $saved_access_token_data !== $_GET['cff_access_token'] ? sanitize_text_field( $_GET['cff_access_token'] ) : false;
4929
- if ( $valid_new_access_token && ! empty( $_GET['cff_access_token'] ) ) {
4930
- $url = esc_url_raw( 'https://graph.facebook.com/me/accounts?limit=500&access_token=' . $valid_new_access_token );
4931
- $pages_data_connection = wp_remote_get( $url );
4932
-
4933
- if ( ! is_wp_error( $pages_data_connection ) && isset( $pages_data_connection['body'] ) ) {
4934
- $pages_data = json_decode( $pages_data_connection['body'], true );
4935
- if ( isset( $pages_data['data'][0]['access_token'] ) ) {
4936
- $oembed_token_settings['expiration_date'] = 'never';
4937
- } else {
4938
- $oembed_token_settings['expiration_date'] = time() + (60 * DAY_IN_SECONDS);
4939
- $show_token_expiration_modal = true;
4940
- }
4941
- } else {
4942
- $oembed_token_settings['expiration_date'] = 'unknown';
4943
- }
4944
- }
4945
- }
4946
-
4947
- ?>
4948
-
4949
- <?php if ( ! $saved_access_token_data && ! $valid_new_access_token && ! CFF_Oembed::can_do_oembed() ) {
4950
- if ( $access_token_error ) { ?>
4951
- <p><?php _e("There was a problem with the access token that was retrieved.", "custom-facebook-feed"); ?></p>
4952
-
4953
- <?php }
4954
- $token_href = 'https://api.smashballoon.com/v2/facebook-login.php?state=' . $admin_url_state;
4955
- if ( class_exists( 'SB_Instagram_Oembed' ) ) {
4956
- $sbi_oembed_token = SB_Instagram_Oembed::last_access_token();
4957
-
4958
- if ( ! empty( $sbi_oembed_token ) ) {
4959
- $token_href = add_query_arg( 'transfer', '1', $admin_url_state );
4960
- }
4961
- }
4962
-
4963
- ?>
4964
- <a href="<?php echo esc_url( $token_href ); ?>" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect to Facebook and Enable oEmbeds', 'custom-facebook-feed' ); ?></a>
4965
-
4966
- <div class="cff-oembed-promo cff-oembed-desc">
4967
- <div class="cff-col">
4968
- <h2><?php _e("What are oEmbeds?", "custom-facebook-feed"); ?></h2>
4969
- <p><?php _e("Anytime you share a link to a Facebook post or video in WordPress, it is automatically converted into an embedded version of that Facebook post (an \"oEmbed\").</p><p>WordPress is discontinuing support for Facebook oEmbeds due to them now requiring an Access Token to work. Don't worry though, we have your back. Just use the button above to connect to Facebook and we'll make sure your Facebook oEmbeds keep working.", "custom-facebook-feed"); ?></p>
4970
- </div>
4971
-
4972
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/cff-oembed.png'; ?>" style="padding: 0px; background: white;">
4973
- </div>
4974
-
4975
- <?php } else {
4976
- if ( $valid_new_access_token ) {
4977
- $oembed_token_settings['access_token'] = $valid_new_access_token;
4978
- $oembed_token_settings['disabled'] = false;
4979
- update_option( 'cff_oembed_token', $oembed_token_settings );
4980
- ?>
4981
- <div><p class="cff-success"><strong><?php _e("You're all set!", "custom-facebook-feed"); ?></strong> <?php _e("You're all set! Custom Facebook Feed is now powering all of your existing Facebook oEmbeds and also any new ones you create.", "custom-facebook-feed"); ?> <a href="javascript:void(0);" id="cff-oembed-disable"><?php _e("Disable", "custom-facebook-feed"); ?></a></p></div>
4982
-
4983
- <?php if ( $show_token_expiration_modal ) : ?>
4984
- <div id="cff_fb_login_modal" class="cff_modal_tokens cffnomodal">
4985
- <div class="cff_modal_box">
4986
- <p><strong><?php _e( 'Heads up!', 'custom-facebook-feed' ); ?></strong><br></p>
4987
-
4988
- <p>
4989
- <?php _e( 'Your access token will expire in 60 days. Facebook requires that users have a role on a Facebook page in order to create access tokens that don\'t expire. Click the button below for instructions on creating a Facebook page and extending your access token to never expire.', 'custom-facebook-feed' ); ?>
4990
- </p>
4991
- <p style="text-align: center;">
4992
- <a style="display: inline-block; float: none; margin-bottom: 0;" href="https://smashballoon.com/doc/how-to-prevent-your-oembed-access-token-from-expiring/?facebook" class="cff_admin_btn" target="blank" rel="noopener"><?php _e( 'How to Create a Facebook Page', 'custom-facebook-feed' ); ?></a>
4993
- &nbsp;&nbsp;<a href="https://api.smashballoon.com/v2/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="button button-secondary" style="height: 47px;line-height: 47px;font-size: 14px;padding: 0 21px;"><?php _e( 'Try Again', 'custom-facebook-feed' ); ?></a>
4994
- </p>
4995
-
4996
- <a href="JavaScript:void(0);" class="cff-modal-close"><i class="fa fa-times"></i></a>
4997
- </div>
4998
- </div>
4999
- <?php endif; ?>
5000
- <?php } else {
5001
- if ( ! isset( $oembed_token_settings['expiration_date'] ) || (int)$oembed_token_settings['expiration_date'] === 0 || $oembed_token_settings['expiration_date'] > time() ) :
5002
- ?>
5003
- <div><p class="cff-success"><?php _e("The Custom Facebook Feed plugin is now powering your Facebook oEmbeds.", "custom-facebook-feed"); ?> <a href="javascript:void(0);" id="cff-oembed-disable"><?php _e("Disable", "custom-facebook-feed"); ?></a></p></div>
5004
- <?php
5005
- endif;
5006
- if ( ! empty( $oembed_token_settings['expiration_date'] )
5007
- && $oembed_token_settings['expiration_date'] !== 'never' ) :
5008
- $link_1 = '<a href="https://smashballoon.com/doc/how-to-prevent-your-oembed-access-token-from-expiring/?facebook" target="blank" rel="noopener">';
5009
- $link_2 = '</a>';
5010
- $class = 'cff-warning';
5011
- if ( $oembed_token_settings['expiration_date'] > time() ) {
5012
- $days_to_expire = floor( ( $oembed_token_settings['expiration_date'] - time() ) / DAY_IN_SECONDS );
5013
- $message = sprintf( __( '%1sImportant:%2s Your access token for powering oEmbeds will expire in %3s days.', 'custom-facebook-feed' ), '<strong>', '</strong>', $days_to_expire );
5014
- } else {
5015
- $class = 'cff-profile-error';
5016
- $message = __( 'Your access token for powering oEmbeds has expired.', 'custom-facebook-feed' );
5017
- }
5018
- ?>
5019
- <div class="<?php echo $class; ?>" style="display:inline-block;width: auto;">
5020
- <p>
5021
- <?php echo $message ; ?>
5022
- </p>
5023
- <p>
5024
- <?php echo sprintf( __( 'Facebook requires that users have a role on a Facebook page in order to create access tokens that don\'t expire. Visit %1sthis link%2s for instructions on extending your access token to never expire.', 'custom-facebook-feed' ), $link_1, $link_2 ); ?>
5025
- </p>
5026
- <p>
5027
- <a href="https://api.smashballoon.com/v2/facebook-login.php?state=<?php echo $admin_url_state; ?>" class="cff_admin_btn" id="cff_fb_login"><i class="fa fa-facebook-square"></i> <?php _e( 'Connect to Facebook and Recheck Access Token', 'custom-facebook-feed' ); ?></a>
5028
- </p>
5029
- </div>
5030
-
5031
- <?php endif; ?>
5032
-
5033
- <?php } ?>
5034
-
5035
- <div class="cff-oembed-promo">
5036
- <h2><?php _e("Did you know, the Custom Facebook Feed plugin can also automatically display your Facebook updates on your website?", "custom-facebook-feed"); ?></h2>
5037
- <div class="cff-reasons">
5038
- <div><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="clock" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-clock fa-w-16 fa-2x"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z" class=""></path></svg><span><?php _e("Save time", "custom-facebook-feed"); ?></span></div>
5039
- <div><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="chart-line" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-chart-line fa-w-16 fa-2x"><path fill="currentColor" d="M117.65 277.65c6.25 6.25 16.38 6.25 22.63 0L192 225.94l84.69 84.69c6.25 6.25 16.38 6.25 22.63 0L409.54 200.4l29.49 29.5c15.12 15.12 40.97 4.41 40.97-16.97V112c0-8.84-7.16-16-16-16H363.07c-21.38 0-32.09 25.85-16.97 40.97l29.5 29.49-87.6 87.6-84.69-84.69c-6.25-6.25-16.38-6.25-22.63 0l-74.34 74.34c-6.25 6.25-6.25 16.38 0 22.63l11.31 11.31zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z" class=""></path></svg><span><?php _e("Increase social engagement", "custom-facebook-feed"); ?></span></div>
5040
- <div><svg style="width: 16px; height: 16px;" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="search" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-search fa-w-16 fa-2x"><path fill="currentColor" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z" class=""></path></svg><span><?php _e("Add dynamic SEO content to your site.", "custom-facebook-feed"); ?></span></div>
5041
- </div>
5042
- <p>
5043
- <?php $check_svg = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-check fa-w-16 fa-2x"><path fill="currentColor" d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" class=""></path></svg>'; ?>
5044
- <?php echo $check_svg; ?><span><?php _e("Super simple to set up", "custom-facebook-feed"); ?></span>
5045
- <?php echo $check_svg; ?><span><?php _e("Works for Facebook pages or groups", "custom-facebook-feed"); ?></span>
5046
- <?php echo $check_svg; ?><span><?php _e("Lightning fast", "custom-facebook-feed"); ?></span>
5047
- <?php echo $check_svg; ?><span><?php _e("Completely customizable", "custom-facebook-feed"); ?></span>
5048
- </p>
5049
- <a href="?page=cff-top" class="button button-primary"><?php _e("Add a Facebook feed now", "custom-facebook-feed"); ?></a>
5050
- </div>
5051
- <?php } ?>
5052
-
5053
- </div>
5054
- </div>
5055
- <?php }
5056
-
5057
- function cff_social_wall_page() {
5058
-
5059
- ( is_plugin_active( 'social-wall/social-wall.php' ) ) ? $cff_sw_active = true : $cff_sw_active = false;
5060
-
5061
- ?>
5062
-
5063
- <div id="cff-admin" class="wrap sw-landing-page">
5064
-
5065
- <?php $plus_svg = '<span class="cff-sb-plus"><svg aria-hidden="true" focusable="false" data-prefix="fal" data-icon="plus" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-plus fa-w-12 fa-2x"><path fill="currentColor" d="M376 232H216V72c0-4.42-3.58-8-8-8h-32c-4.42 0-8 3.58-8 8v160H8c-4.42 0-8 3.58-8 8v32c0 4.42 3.58 8 8 8h160v160c0 4.42 3.58 8 8 8h32c4.42 0 8-3.58 8-8V280h160c4.42 0 8-3.58 8-8v-32c0-4.42-3.58-8-8-8z" class=""></path></svg></span>'; ?>
5066
-
5067
- <div class="cff-sw-icons">
5068
-
5069
- <span style="display: inline-block; padding: 0 0 12px 0; width: 360px; max-width: 100%;">
5070
- <svg viewBox="0 0 9161 1878" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2">
5071
- <path d="M671.51192 492.98498c-131.56765-59.12206-268.60859-147.41608-396.53319-188.5154 45.4516 108.39585 83.81326 223.88002 123.5099 338.03081-79.17849 59.49897-171.6647 105.68858-260.02357 156.01204C213.65642 872.8361 320.1446 915.85885 404.9893 980.52836c-67.96118 83.8619-201.48512 171.0179-234.02089 247.0198 140.6921-17.62678 304.63665-46.21028 435.53762-52.00414 28.76425 144.58318 43.59867 303.0974 84.5075 435.5368 60.92028-175.2656 116.0013-356.3729 188.5158-520.0447 111.90636 46.28566 248.28994 102.72599 357.52876 130.01178-76.6463-107.53462-146.59336-221.76932-214.51645-338.02878 100.51155-72.83872 202.17166-144.52441 299.02516-221.02077-136.89504-12.61227-278.73407-20.28825-422.53587-25.99863-22.85286-148.332-16.84825-325.5158-52.00496-461.53949-53.19323 111.48812-115.96685 213.3914-175.51405 318.52475m65.00509 1228.60643c-18.07949 77.37581 41.48757 109.11319 32.50294 156.01204-58.81404-20.26799-103.0575-30.6796-182.01552-19.50201 2.47017-60.37032 56.76657-68.90954 45.50428-143.0107-841.40803-95.6632-843.09804-1616.06909-6.50107-1709.64388C1672.04777-111.55711 1704.8713 1694.70523 736.517 1721.5914" fill="#e34f0e"/>
5072
- <path d="M847.02597 174.46023c35.15671 136.0237 29.1521 313.20749 52.00455 461.53544 143.80221 5.71443 285.63962 13.38636 422.53628 26.00268-96.8531 76.49636-198.51483 148.18205-299.02556 221.01874 67.92349 116.2623 137.87014 230.49416 214.51847 338.03-109.24085-27.2866-245.62443-83.72572-357.5308-130.0126-72.51448 163.67262-127.5955 344.77992-188.51538 520.04553-40.90924-132.4394-55.74325-290.95364-84.5079-435.53681-130.90057 5.79548-294.84472 34.37736-435.53722 52.00415 32.53577-76.0007 166.0589-163.15589 234.02008-247.02021-84.8451-64.67032-191.33207-107.69066-266.52343-182.01472 88.35886-50.32346 180.84346-96.51307 260.02276-156.01609-39.69705-114.14674-78.05668-229.63091-123.50868-338.02675C402.9013 345.5689 539.94427 433.86292 671.51192 492.98498c59.5468-105.13335 122.32082-207.03663 175.51405-318.52475" fill="#fff"/>
5073
- <path d="M1782.27033 1236.51938c41.18267 21.61921 126.79927 44.31938 214.58338 44.31938 213.49962 0 311.03752-107.01507 311.03752-232.40646 0-101.61027-58.52274-171.87269-189.65702-220.5159-92.11913-33.50977-131.13429-48.6432-131.13429-85.39586 0-32.4288 32.51263-54.04801 92.11913-54.04801 72.61154 0 126.79927 20.53824 158.22814 34.59073l41.18267-155.65828c-47.6852-21.6192-110.54295-37.83361-197.2433-37.83361-184.23826 0-293.69746 99.44834-293.69746 228.08262 0 108.09602 82.36534 176.19652 205.91335 219.43493 82.36533 28.10497 114.87797 48.64321 114.87797 84.3149 0 36.75265-32.51264 59.45282-99.70541 59.45282-73.6953 0-145.2231-22.70017-189.65703-45.40034l-36.84765 161.06308zM3019.37602 1270.02915h189.65702l-36.84765-728.56722h-256.8498l-55.27148 194.57285c-21.67508 76.74818-45.51768 179.4394-66.10902 268.07815h-3.25126c-15.17256-88.63875-36.84765-185.92517-57.43898-266.99719l-47.6852-195.6538h-263.35233l-45.51768 728.56721h179.90323l11.9213-260.51142c3.25127-83.23394 6.50253-191.32997 10.83755-294.0212h2.1675c17.34008 99.44835 39.01517 207.54438 58.52274 286.45448l60.69025 252.9447h152.80938l72.61154-254.02566c23.8426-79.99106 54.18773-189.16805 76.94657-285.37352h3.25126c0 113.50083 1.08376 210.78726 4.33502 294.0212l8.67004 260.51142zM3699.9738 1101.39935l46.60144 168.6298h211.33211l-217.83464-728.56722H3478.8879l-211.33211 728.56722h202.66208l41.18267-168.6298h188.57327zm-162.56317-143.76772l31.42888-130.79619c9.7538-41.07649 20.59134-101.61026 31.42888-143.76771h2.1675c11.9213 42.15745 26.01012 102.69122 36.84766 143.76771l33.59639 130.7962h-135.4693zM4016.4301 1236.51938c41.18266 21.61921 126.79926 44.31938 214.58337 44.31938 213.49962 0 311.03752-107.01507 311.03752-232.40646 0-101.61027-58.52274-171.87269-189.65702-220.5159-92.11913-33.50977-131.1343-48.6432-131.1343-85.39586 0-32.4288 32.51264-54.04801 92.11914-54.04801 72.61154 0 126.79926 20.53824 158.22814 34.59073l41.18267-155.65828c-47.6852-21.6192-110.54295-37.83361-197.2433-37.83361-184.23826 0-293.69746 99.44834-293.69746 228.08262 0 108.09602 82.36534 176.19652 205.91335 219.43493 82.36533 28.10497 114.87797 48.64321 114.87797 84.3149 0 36.75265-32.51264 59.45282-99.70541 59.45282-73.6953 0-145.2231-22.70017-189.65703-45.40034l-36.84765 161.06308zM4623.27688 541.46193v728.56722h196.15955V981.41276h237.34222v288.6164h196.15955V541.46192h-196.15955v269.1591h-237.34222v-269.1591h-196.15955z" fill="#282828" fill-rule="nonzero"/>
5074
- <g>
5075
- <path d="M6900.00785 293.7053c5.29-14.371 11.90999-24.77099 19.84998-31.19998 7.94-6.429 16.07-9.644 24.38998-9.644 8.32 0 15.7 2.08 22.12999 6.241 6.43 4.16 10.39999 9.265 11.90999 15.31599 2.27 43.86896 4.16 92.65493 5.67 146.35689 1.51 53.70296 2.65 109.86291 3.4 168.48187.76 58.61796 1.52 118.74891 2.26999 180.39386.76 61.64396 1.33 122.71991 1.71 183.22987.37 60.50695.56 119.1269.56 175.85686 0 56.72996.38 109.28992 1.14 157.69988-3.78 12.1-10.59 20.98999-20.41999 26.65998-9.83999 5.68-19.85998 8.14-30.06997 7.38-10.21-.76-19.28999-4.73-27.22998-11.91-7.94-7.18999-11.91-17.58998-11.91-31.19997l-3.4-983.66226zm173.57987 0c5.3-14.371 11.90999-24.77099 19.85998-31.19998 7.94-6.429 16.06999-9.644 24.38998-9.644 8.32 0 15.69 2.08 22.11999 6.241 6.43 4.16 10.39999 9.265 11.91999 15.31599 2.27 43.86896 4.15 92.65493 5.67 146.35689 1.51 53.70296 2.64 109.86291 3.4 168.48187.76 58.61796 1.51999 118.74891 2.26999 180.39386.76 61.64396 1.33 122.71991 1.7 183.22987.38 60.50695.57 119.1269.57 175.85686 0 56.72996.38 109.28992 1.13 157.69988-3.78 12.1-10.59 20.98999-20.41999 26.65998-9.82999 5.68-19.84998 8.14-30.05998 7.38-10.20999-.76-19.28998-4.73-27.22997-11.91-7.94-7.18999-11.92-17.58998-11.92-31.19997l-3.4-983.66226zm-419.49969 980.25225c-6.81-4.54-13.60999-12.66999-20.41998-24.38998-6.81-11.71999-13.61-24.57998-20.41999-38.57997-6.81-13.98999-13.61999-28.16998-20.41998-42.53997-6.81-14.36999-13.99999-26.84998-21.55998-37.43997-7.56-10.58999-15.51-18.33998-23.82999-23.25998-8.31999-4.92-17.38998-4.73-27.22998.57-15.11998 24.95998-30.43997 49.15996-45.93996 72.60994-15.50999 23.44999-32.52998 43.48997-51.05996 60.12996-18.52999 16.63999-39.70997 28.35998-63.52995 35.16997-23.82999 6.81-51.62997 6.05-83.38994-2.27-31.01998-8.31999-56.16996-24.57998-75.44994-48.77996-19.28999-24.20998-33.65998-52.94996-43.10997-86.22993-9.46-33.27998-14.19-69.77995-14.19-109.48992 0-39.70397 4.35-79.22394 13.05-118.55591 8.7-39.33097 21.36998-77.14894 38.00997-113.45492 16.63999-36.30597 36.67997-67.50595 60.12995-93.60093 23.44999-26.09398 50.10997-45.75996 79.98994-58.99595 29.86998-13.237 62.20996-16.82999 96.99993-10.779 32.51998 6.051 59.36996 19.855 80.54994 41.41198 21.17998 21.55598 38.76997 47.65096 52.75996 78.28394 13.98999 30.63297 24.95998 64.47995 32.89998 101.54192 7.93999 37.06197 15.12998 74.12394 21.55998 111.18692 6.43 37.06197 12.85999 72.42194 19.28999 106.08192 6.41999 33.65997 14.92998 62.58995 25.51998 86.78993 10.58999 24.20998 24.01998 41.97997 40.27997 53.32996 16.25998 11.34 37.62997 12.84999 64.09995 4.53 30.25997-31.00998 54.45996-51.61996 72.60994-61.82996 18.15999-10.20999 31.38998-13.60999 39.70997-10.20999 8.32 3.4 11.91 11.91 10.78 25.52998-1.13 13.61-6.05 28.73998-14.75 45.37997-8.69999 16.63999-20.60998 32.89997-35.73997 48.77996-15.11999 15.88999-32.32997 27.98998-51.61996 36.30997-19.28998 8.32-40.46997 11.16-63.52995 8.51-23.06998-2.65-47.08997-14.56-72.04995-35.73998zm2413.83818 6.81c-2.26-39.32997-5.67-82.25994-10.20999-128.7699-4.53-46.51997-10.58-92.84993-18.14999-138.9899-7.55999-46.13396-16.63998-89.81493-27.22998-131.0369-10.58999-41.22197-23.06998-76.01494-37.43997-104.37892-14.36999-28.36298-30.81997-48.21797-49.34996-59.56396-18.52999-11.34499-39.51997-9.83199-62.96995 4.539-23.44998 14.37099-49.34997 43.30197-77.71994 86.79293-28.35998 43.49097-59.93996 106.08092-94.72993 187.76786-3.03 6.05-7 15.88-11.91 29.49998-4.91999 13.60999-10.20999 28.92998-15.88998 45.94997-5.67 17.01998-11.91 34.97997-18.71999 53.88996-6.8 18.90998-13.03999 37.05997-18.71998 54.45995-5.67 17.4-10.78 32.89998-15.31 46.50997-4.53999 13.61999-7.56999 23.82998-9.07998 30.63998-6.05 15.11998-13.62 23.62998-22.68999 25.52998-9.08 1.89-18.14998.18-27.22998-5.11-9.07999-5.3-17.39998-12.47999-24.95998-21.55998-7.56-9.07-12.09999-17.01999-13.61999-23.81999 6.81-26.47998 12.86-55.96995 18.15999-88.49993 5.29-32.51997 9.45-69.57995 12.47999-111.17991 3.02-41.60397 4.16-88.68794 3.4-141.2559-.76-52.56696-4.54-112.13091-11.35-178.69186 8.32-17.39599 16.65-27.03998 24.96999-28.93098 8.31999-1.891 16.63998.756 24.94998 7.942 8.32 7.18499 16.07999 17.77498 23.25998 31.76697 7.19 13.99299 13.61999 28.17498 19.28999 42.54597 5.67 14.37099 10.20999 27.79698 13.61998 40.27697 3.4 12.47999 5.1 20.61098 5.1 24.39298 16.63999-14.371 31.95998-32.71298 45.94997-55.02596 13.98999-22.31298 28.35997-44.62597 43.10996-66.93895 14.75-22.31298 30.82998-42.16697 48.21997-59.56396 17.39998-17.39598 38.19997-27.98597 62.39995-31.76697 49.91996-9.077 92.27993-3.215 127.0699 17.58499 34.79998 20.79998 63.34996 50.67696 85.65994 89.62993 22.30998 38.95297 39.32997 84.14593 51.05996 135.5789 11.72 51.43296 20.03999 103.05492 24.95998 154.86588 4.91 51.80996 6.99 101.34992 6.24 148.62989-.76 47.26996-2.65 86.02993-5.68 116.2899-8.32 17.39-19.46998 26.08999-33.46997 26.08999-13.99 0-25.13998-8.7-33.46998-26.08998zm-1029.72922-9.08c-43.86997-18.14998-78.46994-41.97996-103.80992-71.46994-25.33998-29.49998-43.10997-61.83995-53.32996-97.00993-10.21-35.16997-13.61-72.03994-10.21-110.61791 3.41-38.57497 12.48-76.20395 27.22999-112.88792 14.74998-36.68397 34.41997-71.28794 58.99995-103.81092 24.57998-32.52398 52.56996-60.32095 83.95994-83.38994 31.38997-23.06898 65.79995-40.08797 103.23992-51.05496 37.43997-10.967 76.20994-13.42599 116.28991-7.375 33.27998 5.295 61.83995 20.99 85.65994 47.08397 23.82998 26.09498 42.73996 58.42996 56.72995 97.00493 13.99 38.57397 22.87999 80.93094 26.65998 127.0699 3.78 46.13797 1.7 91.70893-6.24 136.7079-7.93999 45.00996-21.55997 86.79993-40.83996 125.3699-19.28999 38.57998-44.62997 69.77995-76.01994 93.59993-31.38998 23.82999-69.39995 37.81998-114.01992 41.97997-44.62996 4.16-96.05992-6.24-154.29988-31.19997zm-642.42952 0c-43.86996-18.14998-78.46994-41.97996-103.80992-71.46994-25.33998-29.49998-43.10997-61.83995-53.31996-97.00993-10.20999-35.16997-13.61999-72.03994-10.20999-110.61791 3.4-38.57497 12.48-76.20395 27.21998-112.88792 14.74999-36.68397 34.41997-71.28794 58.99996-103.81092 24.57998-32.52398 52.56996-60.32095 83.95993-83.38994 31.38998-23.06898 65.79995-40.08797 103.23992-51.05496 37.43998-10.967 76.20995-13.42599 116.29992-7.375 33.27997 5.295 61.82995 20.99 85.64993 47.08397 23.82998 26.09498 42.73997 58.42996 56.72996 97.00493 13.98999 38.57397 22.87998 80.93094 26.65998 127.0699 3.79 46.13797 1.71 91.70893-6.24 136.7079-7.94 45.00996-21.54998 86.79993-40.83997 125.3699-19.28998 38.57998-44.62996 69.77995-76.01994 93.59993-31.38997 23.82999-69.38995 37.81998-114.01991 41.97997-44.61997 4.16-96.05993-6.24-154.29989-31.19997zm-1823.64862-14.69998c-5.29-34.31998-9.64-71.39995-13.04999-111.24992-3.4-39.85997-6.24-80.95994-8.5-123.2999-2.27-42.34497-3.79-85.24294-4.54-128.6939-.75999-43.45198-1.13999-86.07294-1.13999-127.86391 0-41.78997.38-81.91994 1.14-120.38991.75-38.46997 1.89-74.30995 3.4-107.52092 2.27-9.41 8.13-15.63699 17.58998-18.68199 9.45-3.044 19.65999-3.736 30.62998-2.075 10.97 1.66 20.98998 5.12 30.06998 10.378 9.07 5.259 13.98999 11.48599 14.73999 18.68198-1.51 31.54998-2.64 62.40896-3.4 92.57593-.76 30.16698-.57 59.91796.57 89.25494 1.13 29.33597 3.4 58.81095 6.81 88.42493 3.4 29.61298 8.12999 59.64095 14.17998 90.08493 35.54998-34.31797 72.03995-55.90596 109.47992-64.76195 37.43997-8.856 72.79995-8.441 106.07992 1.245 33.27998 9.687 63.72995 26.56898 91.32993 50.64796 27.60998 24.07798 49.54996 51.61496 65.80995 82.61194 16.25999 31.00198 25.89998 63.65195 28.92998 97.97192 3.02 34.31998-3.22 66.41995-18.71999 96.30993-15.50998 29.88998-41.40996 55.62996-77.71994 77.21994-36.29997 21.58999-85.46993 35.42998-147.48989 41.50997-27.22998 2.77-50.86996 4.99-70.90994 6.65-20.03999 1.66-38.94997 1.8-56.72996.41-17.76999-1.38-35.91997-5.12-54.45996-11.21-18.52998-6.08999-39.89997-15.49998-64.09995-28.22997zm85.08994-154.42989c-9.83 32.09998-11.34 58.25996-4.53 78.45994 6.8 20.20999 18.89998 35.00998 36.29997 44.41997 17.39999 9.41 38.57997 14.11999 63.53995 14.11999 24.95998 0 50.66997-3.74 77.13995-11.21 26.47998-7.46999 52.37996-18.12998 77.71994-31.96997 25.33998-13.83999 47.08996-30.15997 65.23995-48.97996 13.60999-13.83999 20.79998-30.58998 21.55998-50.23996.75-19.64999-2.84-39.70997-10.78-60.18996-7.94998-20.47998-19.85998-40.13097-35.73996-58.95095-15.88-18.81999-33.65998-34.31798-53.31996-46.49597-19.66999-12.17699-40.65997-19.64998-62.96996-22.41698-22.31998-2.768-44.24996 1.799-65.80995 13.69899-21.54998 11.90099-41.78996 32.10397-60.69995 60.61095-18.90999 28.50398-34.78997 68.22395-47.64996 119.14391zm2380.9882 74.95995c49.15996 31.76997 93.21993 45.00996 132.1799 39.70997 38.94997-5.29 71.65995-21.92999 98.12993-49.91997 26.47998-27.97997 46.32996-63.71995 59.56995-107.20991 13.24-43.48997 18.90999-87.92994 17.01999-133.3119-1.9-45.38197-11.73-87.54994-29.49998-126.5029-17.77999-38.95298-44.81997-68.26196-81.11994-87.92694-20.41998-10.59-44.24997-10.022-71.47994 1.701-27.22998 11.72399-53.88996 30.63297-79.97994 56.72795-26.09998 26.09498-49.73997 57.29496-70.90995 93.60093-21.17999 36.30498-35.54997 73.55695-43.11997 111.75292-7.56 38.19897-6.62 75.06894 2.84 110.61892 9.45 35.54997 31.57998 65.79995 66.36995 90.75993zm-642.42952 0c49.16997 31.76997 93.21993 45.00996 132.1799 39.70997 38.94997-5.29 71.65995-21.92999 98.13993-49.91997 26.46998-27.97997 46.31997-63.71995 59.55996-107.20991 13.23999-43.48997 18.90998-87.92994 17.01998-133.3119-1.89-45.38197-11.71999-87.54994-29.49998-126.5029-17.76998-38.95298-44.80996-68.26196-81.11993-87.92694-20.41999-10.59-44.24997-10.022-71.47995 1.701-27.22998 11.72399-53.88996 30.63297-79.97994 56.72795-26.09998 26.09498-49.72996 57.29496-70.90995 93.60093-21.17998 36.30498-35.54997 73.55695-43.10996 111.75292-7.57 38.19897-6.62 75.06894 2.83 110.61892 9.45999 35.54997 31.57997 65.79995 66.36994 90.75993zm-1159.18912-39.69997c19.65998 30.24997 40.26997 47.64996 61.82995 52.18996 21.55999 4.53 42.53997.56 62.96995-11.92 20.41999-12.47998 39.70997-31.00997 57.85996-55.58995 18.14999-24.57998 33.65998-50.86996 46.51997-78.84994 12.84999-27.98998 22.30998-55.40696 28.35997-82.25794 6.05-26.85098 7.56-48.97496 4.54-66.37095-3.78-18.15299-6.81-34.41497-9.08-48.78596-2.27-14.371-4.72999-27.22898-7.36999-38.57497-2.65-11.345-5.68-21.74599-9.07999-31.19998-3.4-9.455-8.13-19.09799-14.17999-28.93098-30.25998-21.17898-58.42996-29.49898-84.52994-24.95998-26.08998 4.538-49.53996 17.39599-70.33994 38.57397-20.79999 21.17898-38.18997 48.40796-52.18996 81.68794-13.99 33.27997-24.19998 68.07295-30.62998 104.37892-6.43 36.30597-8.51 71.47995-6.24 105.50992 2.27 34.03998 9.45 62.39995 21.55999 85.09994z" fill="#282828" fill-rule="nonzero"/>
5076
- <path d="M6892.93785 1141.07765l-2.93-847.33736c-.01-1.191.2-2.374.61-3.492 6.06-16.43098 13.87-28.16497 22.94999-35.51497 9.95999-8.065 20.24998-11.87199 30.67997-11.87199 10.37 0 19.54999 2.66 27.55998 7.845 8.86 5.732 14.1 12.94799 16.18 21.28698.16.625.25 1.264.29 1.908 2.26999 43.93997 4.15999 92.80393 5.67999 146.59289 1.51 53.75096 2.65 109.96191 3.4 168.63387.76 58.61996 1.52 118.75391 2.27 180.39986.76 61.66396 1.33 122.76091 1.71 183.28987.37 60.52995.56 119.1699.56 175.91986 0 56.66996.38 109.18992 1.13999 157.54988.01 1.06-.14 2.12-.46 3.13-4.6 14.73-12.99999 25.43998-24.96998 32.34998-11.7 6.75-23.64998 9.58-35.79997 8.68-12.44-.92-23.51999-5.71-33.19998-14.47-9.87-8.93-15.19999-21.69998-15.19999-38.57997l-.25-72.25994c-2.06 5.06-4.48 10.24999-7.27 15.58998-9.08998 17.41-21.52998 34.43998-37.35996 51.04997-16.08 16.88998-34.38998 29.74997-54.89996 38.58997-20.83999 8.98999-43.70997 12.12999-68.62995 9.25999-24.60998-2.82-50.33996-15.20999-76.94994-37.68997-7.62-5.23-15.41999-14.25-23.02998-27.34998-6.92-11.92-13.84-24.98998-20.75999-39.21997-6.83-14.02-13.64999-28.23998-20.46998-42.63997-6.53-13.77999-13.4-25.75998-20.65999-35.90997-6.62-9.27-13.48999-16.15999-20.76998-20.45999-4.67-2.76-9.71-2.7-15.12-.35-14.69998 24.18998-29.57997 47.66997-44.62996 70.42995-16.00999 24.20998-33.58997 44.87997-52.71996 62.05995-19.67998 17.66999-42.16997 30.11998-67.46995 37.34997-25.32998 7.23-54.88996 6.63-88.72993-2.23-33.15997-8.89999-60.03995-26.31997-80.66994-52.20995-20.07998-25.18998-35.06997-55.08996-44.90996-89.72994-9.7-34.10997-14.57-71.50994-14.57-112.21991 0-40.42697 4.43-80.66694 13.29-120.71491 8.84999-40.02697 21.73998-78.51394 38.67997-115.46191 17.08998-37.28898 37.69997-69.31695 61.77995-96.11793 24.43998-27.19398 52.23996-47.66197 83.36994-61.45595 31.65997-14.024 65.90995-17.899 102.88992-11.467 34.67997 6.452 63.26995 21.24799 85.85994 44.23397 21.94998 22.34798 40.20996 49.38096 54.70995 81.13794 14.28 31.25498 25.48998 65.78695 33.58998 103.60192 7.97 37.19097 15.17999 74.38195 21.62998 111.57192 6.42 37.00197 12.84 72.31194 19.25999 105.91192 6.27 32.82997 14.53999 61.05995 24.85998 84.65993 9.73 22.24999 21.89998 38.70997 36.83997 49.12997 13.55 9.45999 31.25998 10.32999 53.02996 3.92 30.31998-30.90998 54.72996-51.40997 73.05995-61.72996 12.16999-6.84 22.40998-10.8 30.62997-12.17 7.06-1.17999 12.97-.53999 17.76999 1.42 3.08 1.26 5.82 2.97 8.15 5.15zm171.26987-850.82935c-.41 1.118-.62 2.301-.62 3.492l3.4 983.65725c0 16.87999 5.34 29.64998 15.21 38.57997 9.67998 8.76 20.75997 13.55 33.19997 14.47 12.14999.9 24.09998-1.93 35.79997-8.68 11.95999-6.91 20.36998-17.61999 24.96998-32.34998.32-1.01.47-2.07.45-3.13-.75-48.35996-1.13-100.87992-1.13-157.54988 0-56.74995-.19-115.3899-.57-175.91986-.38-60.52896-.94-121.62591-1.7-183.28987-.76-61.64595-1.51-121.7799-2.27-180.39986-.76-58.67196-1.89-114.88291-3.41-168.63387-1.51-53.78896-3.4-102.65292-5.67999-146.5929-.03-.644-.13-1.283-.28-1.90799-2.09-8.339-7.32-15.55499-16.17999-21.28698-8.02-5.185-17.18998-7.845-27.55998-7.845-10.43999 0-20.71998 3.807-30.68997 11.872-9.08 7.34999-16.88999 19.08398-22.93999 35.51497zm1588.0788 521.3466c11.02-11.49199 21.36999-24.98198 31.06998-40.44997 14.03-22.37998 28.44998-44.75996 43.23997-67.13995 15.13999-22.89798 31.63998-43.26796 49.48996-61.12095 18.93999-18.93699 41.57997-30.45998 67.67995-34.53497 52.65996-9.574 97.29993-3.098 133.9899 18.84098 36.21997 21.64899 65.98995 52.69896 89.20993 93.24193 22.76999 39.74697 40.15997 85.84694 52.12996 138.3279 11.82 51.85696 20.20999 103.90492 25.15998 156.14788 4.96 52.18996 7.05 102.09992 6.29 149.72989-.77 47.60996-2.68 86.64993-5.73 117.1199-.11 1.16-.43 2.28-.92 3.32-10.40999 21.74999-24.99998 31.77998-42.49996 31.77998-17.48999 0-32.07998-10.03-42.48997-31.77997-.56-1.17-.88-2.44-.96-3.73-2.26-39.21997-5.65-82.00994-10.18-128.3799-4.51999-46.29997-10.53998-92.40994-18.06998-138.3399-7.51-45.82997-16.51999-89.21993-27.03998-130.1689-10.38999-40.41497-22.58998-74.53795-36.67997-102.34693-13.35999-26.36698-28.42998-45.00796-45.64997-55.55495-15.47998-9.474-32.93997-7.465-52.51996 4.536-22.56998 13.82998-47.26996 41.87496-74.56994 83.72993-28.12998 43.12897-59.40996 105.21592-93.90993 186.22486-.08.19-.17.37-.26.55-2.91 5.83-6.71 15.30999-11.45 28.42998-4.88999 13.53999-10.15998 28.77998-15.79998 45.70996-5.7 17.09-11.95999 35.12998-18.79998 54.11996-6.77 18.80999-12.98 36.85997-18.61999 54.16996-5.68 17.41999-10.79 32.93998-15.33999 46.57997-4.39 13.16999-7.33 23.04998-8.8 29.63997-.12.52-.28 1.04-.48 1.54-7.70999 19.27999-18.35998 29.19998-29.92997 31.59998-11.43 2.39-22.87998.41-34.30997-6.25-10.03-5.85-19.24999-13.76999-27.59998-23.78998-8.86-10.63999-13.93-20.08998-15.7-28.05998-.33999-1.54-.30999-3.14.08-4.66 6.74-26.20997 12.73-55.41995 17.97-87.60993 5.25-32.26997 9.36999-69.03995 12.36999-110.30991 3.01-41.34297 4.13-88.13794 3.38-140.3819-.75-52.31096-4.52-111.58291-11.29-177.81786-.19-1.829.13-3.674.92-5.332 10.19-21.30698 21.57999-32.05198 31.76998-34.36797 11.17999-2.541 22.52998.468 33.70997 10.12499 9.13 7.881 17.73999 19.41898 25.61998 34.76697 7.34 14.288 13.9 28.76898 19.68999 43.44197 5.82 14.74199 10.46999 28.51598 13.95999 41.31797.7 2.54 1.32 4.919 1.87 7.135zm-1260.43904 469.29265c-45.43997-18.81999-81.21994-43.59997-107.46992-74.15995-26.30998-30.62997-44.73997-64.20995-55.34996-100.72992-10.55-36.33997-14.07999-74.42994-10.56-114.28691 3.48-39.54797 12.79-78.12894 27.90999-115.73892 15.06999-37.49597 35.16997-72.86794 60.28995-106.11092 25.18998-33.31797 53.85996-61.78595 86.01994-85.41793 32.32997-23.76398 67.77995-41.29597 106.34992-52.59396 38.82997-11.373 79.02994-13.941 120.6799-7.653 35.51998 5.652 66.02996 22.35899 91.46994 50.21697 24.64998 26.99898 44.25996 60.42495 58.73995 100.33692 14.28 39.36297 23.36998 82.58094 27.22998 129.6629 3.85 46.99997 1.73 93.42293-6.36 139.2649-8.10999 45.98996-22.03998 88.68993-41.74996 128.1099-20.00999 40.01997-46.33997 72.36995-78.90994 97.08993-32.80998 24.89998-72.49995 39.61997-119.13991 43.96996-46.01997 4.29-99.08993-6.22-159.14988-31.95997zm642.41951 0c-45.43996-18.81999-81.21994-43.59997-107.46992-74.15995-26.30998-30.62997-44.73996-64.20995-55.33995-100.72992-10.55-36.33997-14.08-74.42994-10.57-114.28691 3.49-39.54797 12.79-78.12894 27.90998-115.73892 15.08-37.49597 35.17998-72.86794 60.29996-106.11092 25.17998-33.31797 53.85996-61.78595 86.00993-85.41793 32.33998-23.76398 67.78995-41.29597 106.35992-52.59396 38.82997-11.373 79.01994-13.941 120.66991-7.653 35.52997 5.652 66.03995 22.35899 91.47993 50.21697 24.64998 26.99898 44.25997 60.42495 58.73996 100.33692 14.27999 39.36297 23.36998 82.58094 27.22998 129.6629 3.85 46.99997 1.73 93.42293-6.36 139.2649-8.12 45.98996-22.03998 88.68993-41.74997 128.1099-20.00998 40.01997-46.33996 72.36995-78.90994 97.08993-32.80997 24.89998-72.49994 39.61997-119.1399 43.96996-46.01997 4.29-99.09993-6.22-159.15989-31.95997zM6968.3578 276.0543c-1.1-3.399-3.7-6.152-7.41999-8.557-4.84-3.135-10.41999-4.636-16.68999-4.636-6.2 0-12.17999 2.622-18.09998 7.417-6.5 5.259-11.73 13.762-16.13999 25.24198l3.4 981.84726c0 10.31 2.6 18.33999 8.62 23.77998 6.20999 5.62 13.27998 8.76 21.25998 9.36 8.26999.61 16.35998-1.47 24.32998-6.07 7.31-4.21 12.36999-10.78 15.39999-19.52998-.75-47.98997-1.12-100.04993-1.12-156.16989 0-56.70995-.19-115.30991-.56-175.79486-.38-60.48896-.95-121.54591-1.7-183.16987-.76-61.64195-1.52-121.7709-2.27-180.38686-.76-58.56596-1.89-114.67491-3.4-168.32887-1.5-53.15996-3.37-101.49493-5.61-145.0029zm173.57988 0c-1.1-3.399-3.69-6.152-7.41-8.557-4.84-3.135-10.42-4.636-16.68999-4.636-6.21 0-12.17999 2.622-18.09998 7.417-6.5 5.259-11.74 13.762-16.14 25.24198l3.39 981.84726c0 10.31 2.61 18.33999 8.63 23.77998 6.2 5.62 13.27999 8.76 21.25998 9.36 8.27.61 16.36-1.47 24.31999-6.07 7.31-4.21 12.36999-10.78 15.39998-19.52998-.74-47.98997-1.11-100.04993-1.11-156.16989 0-56.70995-.19-115.30991-.57-175.79486-.37-60.48896-.94-121.54591-1.7-183.16987-.75-61.64195-1.51-121.7709-2.27-180.38686-.75-58.56596-1.88999-114.67491-3.39999-168.32887-1.49-53.15996-3.36-101.49493-5.61-145.0029zm-1474.8589 611.05154c32.78998-28.61098 66.40996-46.87097 100.71993-54.98596 39.23997-9.282 76.29994-8.777 111.17992 1.375 34.64997 10.08599 66.35995 27.64098 95.10993 52.71196 28.56997 24.91798 51.24996 53.42596 68.07995 85.50393 16.88998 32.18698 26.89997 66.10695 30.03997 101.73693 3.2 36.27997-3.42 70.20994-19.80998 101.79992-16.27999 31.37997-43.34997 58.53995-81.47994 81.19994-37.32997 22.19998-87.83993 36.60997-151.58989 42.86996-27.29998 2.78-50.99996 5-71.08994 6.66-20.60999 1.71-40.05997 1.84-58.32996.42-18.53999-1.44-37.47997-5.33-56.80996-11.68-18.96998-6.22999-40.84997-15.83998-65.62995-28.87997-2.81-1.47-4.75-4.19-5.23-7.32-5.32999-34.52997-9.70999-71.83994-13.12998-111.92991-3.41-39.95997-6.26-81.15994-8.53-123.6199-2.28-42.45897-3.79-85.47694-4.55-129.0499-.76-43.51098-1.14-86.18994-1.14-128.03791 0-41.85797.38-82.05394 1.14-120.58691.76-38.56197 1.89-74.48795 3.41-107.77892.03-.637.12-1.27.27-1.889 3.13-12.99999 11.18-21.65098 24.23999-25.85598 10.86999-3.498 22.58998-4.353 35.19997-2.445 12.24999 1.856 23.43998 5.739 33.57997 11.614 12.52 7.25499 18.62999 16.35998 19.67999 26.28797.05.506.07 1.016.04 1.524-1.51 31.47298-2.64 62.25596-3.39 92.34793-.75 29.95198-.57 59.49096.56 88.61794 1.12 29.08597 3.37 58.30895 6.75 87.66993 2.72 23.63898 6.28 47.54596 10.70999 71.71995zm992.55926 378.53171c-5.84-3.89-11.48-11.03-17.31999-21.08998-6.7-11.53-13.38999-24.16999-20.07998-37.92998-6.79-13.95998-13.58-28.10997-20.37999-42.44996-7.08-14.97-14.57999-27.94998-22.44998-38.97997-8.51-11.9-17.51999-20.51999-26.87998-26.04998-11.32-6.69-23.67998-6.83-37.05997.37-1.57.85-2.88 2.1-3.81 3.62-15.05999 24.84997-30.29998 48.93996-45.73996 72.27994-15 22.68998-31.45998 42.10997-49.38997 58.20995-17.37998 15.61-37.24997 26.60998-59.59995 32.99998-22.31999 6.37-48.34997 5.46-78.10994-2.33-28.79998-7.73-52.21996-22.82998-70.15995-45.34996-18.49999-23.20999-32.24998-50.79997-41.31997-82.71994-9.21-32.44998-13.79999-68.03995-13.79999-106.75992 0-38.98097 4.27-77.78094 12.81-116.39591 8.54998-38.63497 20.98998-75.78495 37.33996-111.44792 16.19-35.32397 35.65998-65.69495 58.47996-91.08393 22.45998-24.99598 47.97996-43.85797 76.59994-56.53696 28.08998-12.44899 58.50996-15.75999 91.23993-10.069 30.24998 5.628 55.35996 18.44 75.12995 38.56698 20.39998 20.76598 37.30997 45.92097 50.78996 75.43094 13.70999 30.00998 24.43998 63.17396 32.21997 99.48293 7.92 36.93297 15.08 73.86594 21.48999 110.79991 6.43 37.12298 12.86999 72.53295 19.30998 106.24292 6.59 34.48998 15.34 64.12996 26.18998 88.92994 11.45 26.16998 26.13998 45.24996 43.71997 57.51995 18.48999 12.9 42.71997 15.33 72.81994 5.87 1.58-.49 3.01-1.37 4.16-2.55 29.34998-30.08998 52.73996-50.19996 70.35995-60.09995 8.15-4.59 15.17999-7.72 21.11998-9.24 4.06-1.05 7.35-1.48 9.9-.44 4.83 1.98 5.26 7.53 4.6 15.45-1.04 12.47998-5.67 26.31997-13.65 41.57996-8.3 15.86999-19.68998 31.36998-34.11997 46.51997-14.17 14.87998-30.26998 26.22998-48.33997 34.01997-17.73998 7.65-37.21997 10.19-58.42995 7.76-21.40999-2.46-43.55997-13.78-66.71995-33.42998l-.92-.7zm2465.44814 12.35c2.91-29.76999 4.72-67.65996 5.46-113.66992.75-46.92997-1.32-96.09993-6.2-147.5199-4.87-51.38895-13.12999-102.58491-24.74998-153.59388-11.49-50.38496-28.12998-94.67092-49.98996-132.8309-21.39999-37.36197-48.73997-66.06595-82.10994-86.01693-32.88998-19.65999-72.95995-24.90898-120.38991-16.28799-22.05998 3.447-41.01997 13.102-56.87996 28.95798-16.93999 16.93999-32.57997 36.27997-46.93996 58.00796-14.71 22.24498-29.03998 44.49096-42.98997 66.73695-14.56999 23.23798-30.54998 42.31396-47.87996 57.28095-2.96 2.557-7.14 3.153-10.7 1.525-3.56-1.628-5.84-5.181-5.84-9.093 0-3.38099-1.70999-10.60698-4.74999-21.76198-3.32-12.15799-7.74-25.23598-13.26999-39.23597-5.55-14.06799-11.84999-27.95098-18.87998-41.64996-6.49-12.637-13.39-22.27799-20.89999-28.76698-5.47-4.718-10.73999-7-16.20999-5.759-2.45.558-4.67 2.587-7.11999 5.432-3.3 3.817-6.54 9.02999-9.82 15.58699 6.66 65.73995 10.36 124.6399 11.11 176.70886.76 52.89196-.39 100.26493-3.43 142.1199-3.05 41.92996-7.25 79.28994-12.57999 112.06991-5.18 31.79998-11.08 60.72995-17.68999 86.79993 1.68 5.13 5.45 10.9 10.96 17.51 6.77 8.11999 14.18999 14.57998 22.31998 19.31998 6.72 3.93 13.41999 5.36 20.14998 3.96 6.46-1.35 10.86-8.16 15.16-18.77 1.62-7.01999 4.65999-17.27998 9.15999-30.76997 4.53-13.58999 9.62999-29.07998 15.29998-46.44996 5.7-17.48999 11.97-35.73998 18.80999-54.74996 6.78-18.82999 12.99999-36.71997 18.63999-53.65996 5.71-17.10999 11.02999-32.49998 15.96998-46.18997 5.02-13.88999 9.11-23.97298 12.22-30.26797 35.04997-82.24394 66.88994-145.2539 95.45992-189.06286 29.42998-45.12797 56.52996-74.94494 80.85994-89.85593 27.31998-16.744 51.82996-17.75999 73.41995-4.541 19.83998 12.144 37.66997 33.21197 53.04996 63.57295 14.64998 28.91898 27.40998 64.38095 38.20997 106.40992 10.65999 41.49597 19.79998 85.46594 27.40998 131.9149 7.6 46.34997 13.67999 92.88993 18.23998 139.6299 4.47 45.84996 7.84 88.22993 10.12 127.1199 6.08999 12 13.56998 18.70999 23.59998 18.70999 10.08999 0 17.58998-6.77 23.68998-18.86999zm-1725.4887-15.54c-42.25997-17.47998-75.64994-40.33997-100.04992-68.74995-24.36999-28.36997-41.48997-59.44995-51.30996-93.27993-9.87-33.99997-13.14-69.64994-9.85-106.94891 3.31-37.60098 12.17-74.27895 26.53998-110.03592 14.43-35.87297 33.65998-69.70795 57.69996-101.51292 23.97998-31.72998 51.27996-58.85496 81.89994-81.36094 30.43997-22.37399 63.81995-38.87897 100.12992-49.51597 36.05997-10.56199 73.38995-12.91099 111.98992-7.084 30.95997 4.925 57.54995 19.607 79.76994 43.93898 22.99998 25.18998 41.19997 56.43395 54.70996 93.67193 13.70999 37.78597 22.38998 79.28094 26.09998 124.4769 3.71 45.27597 1.67 89.99593-6.12 134.1609-7.77 44.01997-21.07998 84.89994-39.94997 122.6299-18.55999 37.11998-42.89997 67.17996-73.10994 90.10994-29.96998 22.74998-66.29995 36.00997-108.90992 39.98997-43.22997 4.03-93.00993-6.26-149.42989-30.43998l-.11-.05zm642.41952 0c-42.24997-17.47998-75.63995-40.33997-100.04993-68.74995-24.35998-28.36997-41.47997-59.44995-51.29996-93.27993-9.87-33.99997-13.14999-69.64994-9.86-106.94891 3.32-37.60098 12.17-74.27895 26.54999-110.03592 14.41999-35.87297 33.65997-69.70795 57.69995-101.51292 23.97999-31.72998 51.27997-58.85496 81.89994-81.36094 30.43998-22.37399 63.81995-38.87897 100.12993-49.51597 36.05997-10.56199 73.38994-12.91099 111.98991-7.084 30.94998 4.925 57.54996 19.607 79.76994 43.93898 22.99999 25.18998 41.19997 56.43395 54.70996 93.67193 13.7 37.78597 22.38998 79.28094 26.08998 124.4769 3.71 45.27597 1.68 89.99593-6.12 134.1609-7.76999 44.01997-21.06998 84.89994-39.93996 122.6299-18.55999 37.11998-42.90997 67.17996-73.10995 90.10994-29.96998 22.74998-66.29995 36.00997-108.90992 39.98997-43.22996 4.03-93.00993-6.26-149.42988-30.43998l-.12-.05zM5632.4288 546.7151c-.72-4.174-4.34-7.351-9.72999-10.47199-8.01-4.642-16.86999-7.678-26.54998-9.144-9.33-1.413-18.01998-.883-26.06998 1.707-5.56 1.792-9.16 5.322-10.71 10.675-1.47999 32.83197-2.59999 68.23495-3.33999 106.20592-.76 38.40597-1.14 78.47094-1.14 120.1929 0 41.73398.38 84.29694 1.14 127.68891.75 43.32997 2.26 86.10694 4.52 128.3289 2.26 42.23997 5.09 83.22994 8.49 122.97991 3.21999 37.68997 7.27999 72.88995 12.20998 105.58992 21.78999 11.26 41.14997 19.67999 58.09996 25.24998 17.72999 5.83 35.09997 9.42 52.10996 10.74 17.26999 1.35 35.64997 1.2 55.11996-.41 19.99998-1.66 43.56997-3.87 70.75994-6.63 60.26996-5.91 108.08992-19.17999 143.3599-40.15997 34.48997-20.49998 59.21995-44.82997 73.94994-73.21994 14.61999-28.18998 20.48999-58.46996 17.63999-90.82994-2.91-32.99997-12.19-64.39995-27.82998-94.20593-15.68999-29.91597-36.86997-56.48395-63.51995-79.72193-26.46998-23.08499-55.63996-39.29498-87.54994-48.58197-31.67997-9.221-65.34995-9.546-100.98992-1.115-35.87997 8.488-70.76995 29.33298-104.83992 62.22396-2.63 2.541-6.44 3.442-9.93 2.349-3.49-1.093-6.10999-4.005-6.81999-7.594-6.11-30.71598-10.88-61.01395-14.30999-90.89293-3.43-29.86598-5.72-59.59296-6.86-89.17993-1.15-29.54598-1.34-59.50996-.58-89.89194.75-29.94797 1.88-60.57595 3.37-91.88193zm15.14 553.17259c13.18998-52.14997 29.57997-92.78993 48.95996-122.00191 19.95998-30.08698 41.44996-51.27696 64.19995-63.83695 23.53998-12.994 47.49996-17.891 71.86994-14.869 23.73999 2.944 46.07997 10.883 66.99995 23.83899 20.53999 12.71799 39.10997 28.89298 55.69996 48.54796 16.63999 19.71899 29.09998 40.32097 37.41997 61.78096 8.47 21.83998 12.25 43.24996 11.45 64.19995-.86 22.23998-9.01 41.18997-24.34999 56.78995-18.82998 19.51999-41.36997 36.46998-67.63995 50.81997-26.01998 14.20999-52.61996 25.13998-79.79994 32.80997-27.39998 7.74-54.02996 11.59-79.85994 11.59-26.84998 0-49.58996-5.2-68.29994-15.32-19.60999-10.60999-33.33998-27.23998-41.01997-50.02996-7.32-21.70998-6.15-49.83996 4.37-84.31993zm19.33998 5.12c12.51999-49.58997 27.86998-88.30994 46.28996-116.06692 17.85999-26.92498 36.82998-46.14197 57.19996-57.38296 19.56999-10.80799 39.46997-15.04399 59.73996-12.52999 20.87998 2.59 40.51996 9.597 58.92995 20.99499 18.78999 11.63699 35.76997 26.45898 50.94996 44.44396 15.12 17.92099 26.48998 36.61097 34.04998 56.11096 7.42 19.12999 10.81999 37.84997 10.10999 56.19996-.65 17.04998-6.87 31.58997-18.68999 43.59996-17.54998 18.2-38.49997 33.89998-62.89995 47.22997-24.65998 13.46999-49.86996 23.83998-75.63994 31.10998-25.53998 7.20999-50.34996 10.83999-74.42995 10.83999-23.07998 0-42.69996-4.21-58.77995-12.91-15.18-8.20999-25.64998-21.19998-31.58998-38.81996-6.28-18.63999-4.44-42.72997 4.63-72.33995l.13-.48zm1723.4387 80.90993c51.62996 33.36998 98.03992 46.77997 138.9499 41.21997 41.29996-5.61 75.97994-23.27998 104.04991-52.95996 27.45998-29.02998 48.13997-66.05995 61.86996-111.16992 13.55999-44.57996 19.37998-90.12293 17.43998-136.6379-1.95-46.72396-12.08999-90.13293-30.38997-130.2379-18.71999-41.02096-47.21997-71.85994-85.45994-92.56893-23.01998-11.93999-49.70996-11.81599-80.18994 1.31-28.27998 12.173-56.00995 31.74398-83.09993 58.84096-26.66998 26.66498-50.83997 58.53395-72.47995 95.63293-21.75998 37.30897-36.50997 75.59694-44.27997 114.84991-7.87999 39.75097-6.86 78.13094 2.98 115.13091 10.02 37.67997 33.31998 69.85995 70.19995 96.31993l.41.27zm642.41951 0c51.62996 33.36998 98.04993 46.77997 138.9499 41.21997 41.30997-5.61 75.98994-23.27998 104.05992-52.95996 27.45998-29.02998 48.12996-66.05995 61.86995-111.16992 13.56-44.57996 19.37999-90.12293 17.43999-136.6379-1.95-46.72396-12.09-90.13293-30.38998-130.2379-18.71998-41.02096-47.22996-71.85994-85.45993-92.56893-23.01998-11.93999-49.70996-11.81599-80.18994 1.31-28.27998 12.173-56.00996 31.74398-83.10994 58.84096-26.65998 26.66498-50.82996 58.53395-72.46994 95.63293-21.76999 37.30897-36.51998 75.59694-44.28997 114.84991-7.87 39.75097-6.86 78.13094 2.98 115.13091 10.02999 37.67997 33.32997 69.85995 70.20994 96.31993l.4.27zm11.07-16.65999c46.60996 30.07998 88.23993 43.08997 125.1899 38.06997 36.59997-4.98 67.34995-20.58998 92.21993-46.88996 25.47998-26.93998 44.51997-61.38995 57.25996-103.24992 12.90999-42.40997 18.43998-85.73594 16.58999-129.9859-1.83-44.03997-11.35-84.96594-28.59998-122.76691-16.82999-36.88497-42.40997-64.66495-76.62995-83.20194-17.97998-9.323-38.93997-8.313-62.91995 2.009-26.17998 11.274-51.76996 29.52098-76.85994 54.61396-25.52998 25.52498-48.62996 56.05596-69.34995 91.56793-20.58998 35.30297-34.57997 71.51695-41.93997 108.65792-7.24999 36.63597-6.38 72.00594 2.69 106.10592 8.87 33.34997 29.74998 61.62995 62.34996 85.06993zm-642.42952 0c46.60996 30.07998 88.24993 43.08997 125.1899 38.06997 36.59998-4.98 67.34995-20.58998 92.21994-46.88996 25.48998-26.93998 44.51996-61.38995 57.25995-103.24992 12.91-42.40997 18.43999-85.73594 16.59999-129.9859-1.84-44.03997-11.36-84.96594-28.60998-122.76691-16.82999-36.88497-42.39997-64.66495-76.61994-83.20194-17.97999-9.323-38.94997-8.313-62.91995 2.009-26.18998 11.274-51.77996 29.52098-76.86995 54.61396-25.52998 25.52498-48.62996 56.05596-69.33994 91.56793-20.59999 35.30297-34.58998 71.51695-41.94997 108.65792-7.25 36.63597-6.37 72.00594 2.7 106.10592 8.86999 33.34997 29.73997 61.62995 62.33995 85.06993zm-1173.21912-25.98998c21.51999 33.09998 44.56997 51.54996 68.15995 56.51996 24.03999 5.06 47.46997.75 70.23995-13.16999 21.39998-13.06999 41.66997-32.41998 60.68995-58.17996 18.56-25.12998 34.41998-52.00996 47.55997-80.61994 13.16999-28.64997 22.83998-56.73495 29.03998-84.22993 6.4-28.42898 7.83-51.86396 4.63-70.28295l-.06-.326c-3.75-17.97399-6.74-34.07597-8.99-48.30596-2.31-14.636-4.82-27.73198-7.52-39.28697-2.74-11.752-5.86999-22.52199-9.39999-32.31498-3.62-10.059-8.64-20.32498-15.06999-30.78498-.72-1.164-1.67-2.168-2.79-2.952-32.86997-23.00798-63.61995-31.54997-91.96992-26.61997-28.08998 4.885-53.36996 18.62598-75.75995 41.41997-21.60998 21.99998-39.73997 50.24796-54.27996 84.81893-14.26999 33.96098-24.69998 69.46395-31.25997 106.51092-6.57 37.13497-8.69 73.11395-6.37 107.92392 2.38 35.65997 10.03 65.34995 22.70999 89.12993l.44.75zm223.31984-388.7207c-26.98998-18.50399-52.01996-26.18998-75.36995-22.12799-24.10998 4.192-45.70996 16.16699-64.91995 35.72898-19.99998 20.35698-36.65997 46.56796-50.10996 78.55694-13.70999 32.59997-23.70998 66.68295-29.99998 102.24692-6.29 35.47697-8.33 69.84595-6.11 103.10592 2.15 32.21998 8.8 59.13996 20.2 80.67994 17.73998 27.17998 35.82996 43.38997 55.26995 47.47996 19.06999 4.02 37.61997.38 55.68996-10.65999 19.44998-11.87999 37.74997-29.59997 55.02996-52.99996 17.74998-24.02998 32.90997-49.72996 45.47996-77.08994 12.55-27.30998 21.78999-54.06896 27.68998-80.27594 5.69-25.21598 7.29-45.98996 4.46-62.34495-3.79-18.24499-6.83-34.59698-9.12-49.05396-2.22-14.106-4.63-26.72698-7.22999-37.86298-2.55-10.93899-5.47-20.96898-8.75-30.08497-2.98-8.28-7.05999-16.709-12.20998-25.29798z" fill="#fff"/>
5077
- </g>
5078
- </svg>
5079
- </span>
5080
- <br />
5081
-
5082
- <span style="width: 34px; top: -5px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-facebook fa-w-16 fa-2x"><path fill="#475e8f" d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z" class=""></path></svg></span>
5083
-
5084
- <?php echo $plus_svg; ?>
5085
-
5086
- <span><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-instagram fa-w-14 fa-2x"><path fill="#e15073" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" class=""></path></svg></span>
5087
-
5088
- <?php echo $plus_svg; ?>
5089
-
5090
- <span style="top: -4px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-twitter fa-w-16 fa-2x"><path fill="#1a92dc" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z" class=""></path></svg></span>
5091
-
5092
- <?php echo $plus_svg; ?>
5093
-
5094
- <span style="width: 35px; top: -5px;"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="svg-inline--fa fa-youtube fa-w-18 fa-2x"><path fill="#f5413d" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" class=""></path></svg></span>
5095
- </div>
5096
-
5097
- <h1>Combine all your social media channels into one single wall.</h1>
5098
- <h2>Maximize your social content and get more followers.</h2>
5099
-
5100
- <div style="text-align: center;">
5101
- <a href="https://smashballoon.com/social-wall/?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-cta-1" target="_blank" class="cta button button-primary">Get the Social Wall plugin</a>
5102
- </div>
5103
-
5104
- <div class="cff-sw-info">
5105
- <div class="cff-sw-features">
5106
- <p><span>A dash of Instagram</span>Add posts from your profile, public hashtag posts, or posts you're tagged in.</p>
5107
- <p><span>A sprinkle of Facebook</span>Include posts from your page or group timeline, or from your photos, videos, albums, and events pages.</p>
5108
- <p><span>A spoonful of Twitter</span>Add Tweets from any Twitter account, hashtag Tweets, mentions, and more.</p>
5109
- <p><span>And a dollop of YouTube</span>Embed videos from any public YouTube channel, playlists, searches, and more.</p>
5110
- <p><span>All in the same feed</span>Combine feeds from all of our Smash Balloon Pro plugins into one single wall feed, and show off all your social media content in one place.</p>
5111
- </div>
5112
- <a class="cff-sw-screenshot" href="https://smashballoon.com/social-wall/demo?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-demo" target="_blank">
5113
- <span class="cta">View Demo</span>
5114
-
5115
- <img src="<?php echo CFF_PLUGIN_URL . 'admin/assets/img/sw-screenshot.png'; ?>" alt="Smash Balloon Social Wall plugin screenshot showing Facebook, Instagram, Twitter, and YouTube posts combined into one wall.">
5116
- </a>
5117
- </div>
5118
-
5119
- <div class="cff-sw-footer-cta">
5120
- <a href="https://smashballoon.com/social-wall/?utm_source=plugin-pro&utm_campaign=cff&utm_medium=sw-cta-2" target="_blank"><span>🚀</span>Get Social Wall and Increase Engagement >></a>
5121
- </div>
5122
-
5123
- </div>
5124
-
5125
- <?php
5126
- }
5127
 
 
 
 
 
5128
 
 
 
 
 
5129
 
5130
  function cff_lite_dismiss() {
5131
  check_ajax_referer( 'cff_nonce' , 'cff_nonce');
@@ -5142,62 +47,6 @@ function cff_lite_dismiss() {
5142
  }
5143
  add_action( 'wp_ajax_cff_lite_dismiss', 'cff_lite_dismiss' );
5144
 
5145
-
5146
-
5147
-
5148
- /* Display a notice regarding PPCA changes, which can be dismissed */
5149
- add_action('admin_notices', 'cff_ppca_notice');
5150
- function cff_ppca_notice() {
5151
-
5152
- global $current_user;
5153
- $user_id = $current_user->ID;
5154
-
5155
- $cap = current_user_can( 'manage_custom_facebook_feed_options' ) ? 'manage_custom_facebook_feed_options' : 'manage_options';
5156
- $cap = apply_filters( 'cff_settings_pages_capability', $cap );
5157
- if( !current_user_can( $cap ) ) return;
5158
-
5159
- // Use this to show notice again
5160
- // delete_user_meta($user_id, 'cff_ignore_ppca_notice');
5161
-
5162
- /* Check whether it's an app token or if the user hasn't already clicked to ignore the message */
5163
- if( get_user_meta($user_id, 'cff_ignore_ppca_notice') ) return;
5164
-
5165
- $page_id = get_option( 'cff_page_id' );
5166
- $cff_access_token = get_option( 'cff_access_token' );
5167
-
5168
- if( $page_id && $cff_access_token ){
5169
-
5170
- //Make a call to the API to see whether the ID and token are for the same Facebook page.
5171
- $cff_ppca_check_url = 'https://graph.facebook.com/v8.0/'.$page_id.'/posts?limit=1&access_token='.$cff_access_token;
5172
-
5173
- //Store the response in a transient which is deleted and then reset if the settings are saved.
5174
- if ( ! get_transient( 'cff_ppca_admin_check' ) ) {
5175
- //Get the contents of the API response
5176
- $cff_ppca_admin_check_response = CFF_Utils::cff_fetchUrl($cff_ppca_check_url);
5177
- set_transient( 'cff_ppca_admin_check', $cff_ppca_admin_check_response, YEAR_IN_SECONDS );
5178
-
5179
- $cff_ppca_admin_check_json = json_decode($cff_ppca_admin_check_response);
5180
- } else {
5181
- $cff_ppca_admin_check_response = get_transient( 'cff_ppca_admin_check' );
5182
- //If we can't find the transient then fall back to just getting the json from the api
5183
- if ($cff_ppca_admin_check_response == false) $cff_ppca_admin_check_response = CFF_Utils::cff_fetchUrl($cff_ppca_check_url);
5184
-
5185
- $cff_ppca_admin_check_json = json_decode($cff_ppca_admin_check_response);
5186
- }
5187
-
5188
- //If there's a PPCA error or it's a multifeed then display notice
5189
- if( ( isset($cff_ppca_admin_check_json->error->message) && strpos($cff_ppca_admin_check_json->error->message, 'Public Content Access') ) || strpos( $page_id, ',') != false ){
5190
- _e("
5191
- <div class='cff-admin-top-notice'>
5192
- <a class='cff-admin-notice-close' href='" .esc_url( add_query_arg( 'cff_nag_ppca_ignore', '0' ) ). "'>Don't show again<i class='fa fa-close' style='margin-left: 5px;'></i></a>
5193
- <p style='min-height: 22px;'><img src='" . CFF_PLUGIN_URL . 'admin/assets/img/fb-icon.png' . "' style='float: left; width: 22px; height: 22px; margin-right: 12px; border-radius: 5px; box-shadow: 0 0 1px 0 #BA7B7B;'>
5194
- <b>Action required: PPCA Error.</b> <span style='margin-right: 10px;'>Due to Facebook API changes it is no longer possible to display feeds from Facebook Pages you are not an admin of. Please <a href='https://smashballoon.com/facebook-ppca-error-notice/' target='_blank'>see here</a> for more information.</span><a href='admin.php?page=cff-top' class='cff-admin-notice-button'>Go to Facebook Feed Settings</a></p>
5195
- </div>
5196
- ");
5197
- }
5198
- }
5199
-
5200
- }
5201
  //If PPCA notice is dismissed then don't show again
5202
  add_action('admin_init', 'cff_nag_ppca_ignore');
5203
  function cff_nag_ppca_ignore() {
@@ -5605,4 +454,4 @@ function cff_delete_all_platform_data(){
5605
  $manager->delete_caches();
5606
  \cff_main()->cff_error_reporter->add_action_log( 'Deleted all platform data.' );
5607
  \cff_main()->cff_error_reporter->reset_api_errors();
5608
- }
10
  CustomFacebookFeed\CFF_Group_Posts::cron_update_group_persistent_cache();
11
  }
12
 
13
+ //Create Style page
14
+ /**
15
+ * @deprecated
16
+ */
17
+ function cff_style_page() {} //End Style_Page
18
 
19
+ //Create Settings page
20
+ /**
21
+ * @deprecated
22
+ */
23
+ function cff_settings_page() {} //End Settings_Page
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
+ /**
26
+ * @deprecated
27
+ */
28
+ function cff_oembeds_page() {}
29
 
30
+ /**
31
+ * @deprecated
32
+ */
33
+ function cff_social_wall_page() {}
34
 
35
  function cff_lite_dismiss() {
36
  check_ajax_referer( 'cff_nonce' , 'cff_nonce');
47
  }
48
  add_action( 'wp_ajax_cff_lite_dismiss', 'cff_lite_dismiss' );
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  //If PPCA notice is dismissed then don't show again
51
  add_action('admin_init', 'cff_nag_ppca_ignore');
52
  function cff_nag_ppca_ignore() {
454
  $manager->delete_caches();
455
  \cff_main()->cff_error_reporter->add_action_log( 'Deleted all platform data.' );
456
  \cff_main()->cff_error_reporter->reset_api_errors();
457
+ }
custom-facebook-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Smash Balloon Custom Facebook Feed
4
  Plugin URI: https://smashballoon.com/custom-facebook-feed
5
  Description: Add completely customizable Facebook feeds to your WordPress site
6
- Version: 4.1
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
@@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
27
 
28
- define('CFFVER', '4.1');
29
  define( 'WPW_SL_STORE_URL', 'https://smashballoon.com/' );
30
  define( 'WPW_SL_ITEM_NAME', 'Custom Facebook Feed WordPress Plugin Personal' ); //*!*Update Plugin Name at top of file*!*
31
 
3
  Plugin Name: Smash Balloon Custom Facebook Feed
4
  Plugin URI: https://smashballoon.com/custom-facebook-feed
5
  Description: Add completely customizable Facebook feeds to your WordPress site
6
+ Version: 4.1.1
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  License: GPLv2 or later
25
  */
26
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
27
 
28
+ define('CFFVER', '4.1.1');
29
  define( 'WPW_SL_STORE_URL', 'https://smashballoon.com/' );
30
  define( 'WPW_SL_ITEM_NAME', 'Custom Facebook Feed WordPress Plugin Personal' ); //*!*Update Plugin Name at top of file*!*
31
 
inc/Builder/CFF_Db.php CHANGED
@@ -663,7 +663,7 @@ class CFF_Db {
663
  account_id varchar(255) NOT NULL default '',
664
  account_type varchar(255) NOT NULL default '',
665
  privilege varchar(255) NOT NULL default '',
666
- access_token varchar(255) NOT NULL default '',
667
  username varchar(255) NOT NULL default '',
668
  info text NOT NULL default '',
669
  error text NOT NULL default '',
663
  account_id varchar(255) NOT NULL default '',
664
  account_type varchar(255) NOT NULL default '',
665
  privilege varchar(255) NOT NULL default '',
666
+ access_token varchar(1000) NOT NULL default '',
667
  username varchar(255) NOT NULL default '',
668
  info text NOT NULL default '',
669
  error text NOT NULL default '',