Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest - Version 2.5.3

Version Description

Download this release

Release Info

Developer slickremix
Plugin Icon 128x128 Feed Them Social – Facebook, Instagram, Twitter, YouTube, Pinterest
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2.1 to 2.5.3

admin/class-fts-facebook-options-page.php ADDED
@@ -0,0 +1,980 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - Facebook Options Page
4
+ *
5
+ * This page is used to create the general options for Facebook Feeds
6
+ * including setting access tokens.
7
+ *
8
+ * @package feedthemsocial
9
+ * @copyright Copyright (c) 2012-2018, SlickRemix
10
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
+ * @since 1.0.0
12
+ */
13
+
14
+ namespace feedthemsocial;
15
+
16
+ /**
17
+ * Class FTS Facebook Options Page
18
+ *
19
+ * @package feedthemsocial
20
+ */
21
+ class FTS_Facebook_Options_Page {
22
+
23
+ /** * Construct
24
+ *
25
+ * Facebook Style Options Page constructor.
26
+ *
27
+ * @since 1.9.6
28
+ */
29
+ public function __construct() {
30
+
31
+ }
32
+
33
+ /**
34
+ * Feed Them Facebook Options Page
35
+ *
36
+ * @since 1.9.6
37
+ */
38
+ public function feed_them_facebook_options_page() {
39
+ $fts_functions = new feed_them_social_functions();
40
+ ?>
41
+
42
+ <div class="feed-them-social-admin-wrap">
43
+ <h1>
44
+ <?php esc_html_e( 'Facebook Feed Options', 'feed-them-social' ); ?>
45
+ </h1>
46
+ <div class="use-of-plugin">
47
+ <?php esc_html_e( 'Change the language, color and more for your facebook feed using the options below.', 'feed-them-social' ); ?>
48
+ </div>
49
+ <!-- custom option for padding -->
50
+ <form method="post" class="fts-facebook-feed-options-form" action="options.php" id="fts-facebook-feed-options-form">
51
+ <br/>
52
+ <?php
53
+
54
+ $fts_fb_options_nonce = wp_create_nonce( 'fts-facebook-options-page-nonce' );
55
+
56
+ if ( wp_verify_nonce( $fts_fb_options_nonce, 'fts-facebook-options-page-nonce' ) ) {
57
+
58
+ // get our registered settings from the fts functions!
59
+ settings_fields( 'fts-facebook-feed-style-options' );
60
+ // Language select!
61
+ $fb_language = get_option( 'fb_language', 'en_US' );
62
+ // share button!
63
+ $fb_show_follow_btn = get_option( 'fb_show_follow_btn' );
64
+ $fb_show_follow_btn_where = get_option( 'fb_show_follow_btn_where' );
65
+ $fb_show_follow_btn_profile_pic = get_option( 'fb_show_follow_btn_profile_pic' );
66
+ $fb_like_btn_color = get_option( 'fb_like_btn_color', 'light' );
67
+ $fb_hide_shared_by_etc_text = get_option( 'fb_hide_shared_by_etc_text' );
68
+ $fb_hide_images_in_posts = get_option( 'fb_hide_images_in_posts' );
69
+ $fb_hide_error_handler_message = get_option( 'fb_hide_error_handler_message' );
70
+ $fb_hide_no_posts_message = get_option( 'fb_hide_no_posts_message' );
71
+ $fb_reviews_remove_see_reviews_link = get_option( 'fb_reviews_remove_see_reviews_link' );
72
+ $fb_loadmore_background_color = get_option( 'fb_loadmore_background_color' );
73
+ $fb_loadmore_text_color = get_option( 'fb_loadmore_text_color' );
74
+
75
+ $fb_reviews_overall_rating_background_border_hide = get_option( 'fb_reviews_overall_rating_background_border_hide' );
76
+
77
+ $lang_options_array = json_decode( $fts_functions->xml_json_parse( 'https://raw.githubusercontent.com/pennersr/django-allauth/master/allauth/socialaccount/providers/facebook/data/FacebookLocales.xml' ) );
78
+ // echo '<pre>';
79
+ // print_r($lang_options_array);
80
+ // echo '</pre>'; !
81
+ ?>
82
+ <div id="fb-token-master-wrap" class="feed-them-social-admin-input-wrap" style="padding-bottom:0px;">
83
+ <div class="fts-title-description-settings-page" style="padding-top:0; border:none; margin-bottom:0px;">
84
+ <h3>
85
+ <?php esc_html_e( 'Facebook API Token', 'feed-them-social' ); ?>
86
+ </h3>
87
+ <?php esc_html_e( 'This Facebook Access Token is for Business Pages, Photos and Videos only and is simply used to display the feed. You must be an admin of the business page to get your token. This will NOT work for personal profiles or groups. ', 'feed-them-social' ); ?>
88
+ <p>
89
+ <?php
90
+ echo sprintf(
91
+ esc_html( '%1$sLogin and get my Access Token%2$s', 'feed-them-social' ),
92
+ '<a href="' . esc_url( 'https://www.facebook.com/dialog/oauth?client_id=1123168491105924&redirect_uri=https://www.slickremix.com/facebook-token/&state=' . admin_url( 'admin.php?page=fts-facebook-feed-styles-submenu-page' ) . '&scope=manage_pages' ) . '" class="fts-facebook-get-access-token">',
93
+ '</a>'
94
+ );
95
+ ?>
96
+ </p>
97
+
98
+ </div>
99
+ <a href="<?php echo esc_url( 'mailto:support@slickremix.com' ); ?>" target="_blank" class="fts-admin-button-no-work"><?php esc_html_e( 'Button not working?', 'feed-them-social' ); ?></a>
100
+ <?php
101
+ $test_app_token_id = get_option( 'fts_facebook_custom_api_token' );
102
+ $test_app_token_id_biz = get_option( 'fts_facebook_custom_api_token_biz' );
103
+ if ( ! empty( $test_app_token_id ) || ! empty( $test_app_token_id_biz ) ) {
104
+ $fts_fb_access_token = '226916994002335|ks3AFvyAOckiTA1u_aDoI4HYuuw';
105
+ $test_app_token_url = array(
106
+ 'app_token_id' => 'https://graph.facebook.com/debug_token?input_token=' . $test_app_token_id . '&access_token=' . $test_app_token_id,
107
+ );
108
+ $test_app_token_url_biz = array(
109
+ 'app_token_id_biz' => 'https://graph.facebook.com/debug_token?input_token=' . $test_app_token_id_biz . '&access_token=' . $test_app_token_id_biz . '&',
110
+ /*'app_token_id' => 'https://graph.facebook.com/oauth/access_token?client_id=705020102908771&client_secret=70166128c6a7b5424856282a5358f47b&grant_type=fb_exchange_token&fb_exchange_token=CAAKBNkjLG2MBAK5jVUp1ZBCYCiLB8ZAdALWTEI4CesM8h3DeI4Jotngv4TKUsQZBwnbw9jiZCgyg0eEmlpiVauTsReKJWBgHe31xWCsbug1Tv3JhXZBEZBOdOIaz8iSZC6JVs4uc9RVjmyUq5H52w7IJVnxzcMuZBx4PThN3CfgKC5E4acJ9RnblrbKB37TBa1yumiPXDt72yiISKci7sqds0WFR3XsnkwQZD'*/
111
+ );
112
+ // Test App ID
113
+ // Leave these for reference:
114
+ // App token for FTS APP2: 358962200939086|lyXQ5-zqXjvYSIgEf8mEhE9gZ_M
115
+ // App token for FTS APP3: 705020102908771|rdaGxW9NK2caHCtFrulCZwJNPyY!
116
+ $test_app_token_response = $fts_functions->fts_get_feed_json( $test_app_token_url );
117
+ $test_app_token_response = json_decode( $test_app_token_response['app_token_id'] );
118
+ $test_app_token_response_biz = $fts_functions->fts_get_feed_json( $test_app_token_url_biz );
119
+ $test_app_token_response_biz = json_decode( $test_app_token_response_biz['app_token_id_biz'] );
120
+ }
121
+ ?>
122
+ <div class="clear"></div>
123
+ <div class="feed-them-social-admin-input-wrap fts-fb-token-wrap" id="fts-fb-token-wrap" style="margin-bottom:0px;">
124
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
125
+ <?php esc_html_e( 'Page ID', 'feed-them-social' ); ?>
126
+ </div>
127
+
128
+ <input type="text" name="fts_facebook_custom_api_token_user_id" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_id" value="<?php echo esc_attr( get_option( 'fts_facebook_custom_api_token_user_id' ) ); ?>"/>
129
+ <div class="clear" style="margin-bottom:10px;"></div>
130
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
131
+ <?php esc_html_e( 'Access Token Required', 'feed-them-social' ); ?>
132
+ </div>
133
+
134
+ <input type="text" name="fts_facebook_custom_api_token" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token" value="<?php echo esc_attr( get_option( 'fts_facebook_custom_api_token' ) ); ?>"/>
135
+ <div class="clear"></div>
136
+
137
+ <input type="text" hidden name="fts_facebook_custom_api_token_user_name" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_name" value="<?php echo esc_attr( get_option( 'fts_facebook_custom_api_token_user_name' ) ); ?>"/>
138
+ <div class="clear"></div>
139
+ <?php
140
+ if ( ! empty( $test_app_token_response ) && ! empty( $test_app_token_id ) ) {
141
+ if ( isset( $test_app_token_response->data->is_valid ) || '(#100) You must provide an app access token or a user access token that is an owner or developer of the app' === $test_app_token_response->error->message ) {
142
+ $fb_id = get_option( 'fts_facebook_custom_api_token_user_id' );
143
+ $fb_name = get_option( 'fts_facebook_custom_api_token_user_name' );
144
+ echo '<div class="fts-successful-api-token fts-special-working-wrap">';
145
+
146
+ if ( ! empty( $fb_id ) && ! empty( $fb_name ) && ! empty( $test_app_token_id ) ) {
147
+ echo '<a href="' . esc_url( 'https://www.facebook.com/' . get_option( 'fts_facebook_custom_api_token_user_id' ) ) . '" target="_blank"><img border="0" height="50" width="50" class="fts-fb-page-thumb" src="' . esc_url( 'https://graph.facebook.com/' . $fb_id . '/picture' ) . '"/></a><h3><a href="' . esc_url( 'https://www.facebook.com/' . get_option( 'fts_facebook_custom_api_token_user_id' ) ) . '" target="_blank">' . esc_html( $fb_name ) . '</a></h3>';
148
+ }
149
+
150
+ echo sprintf(
151
+ esc_html( 'Your Access Token is now working! Generate your shortcode on the %1$sSettings Page%2$s', 'feed-them-social' ),
152
+ '<a href="' . esc_url( 'admin.php?page=feed-them-settings-page#feed_type=facebook' ) . '">',
153
+ '</a>'
154
+ );
155
+
156
+ echo '</div>';
157
+ }
158
+ if ( isset( $test_app_token_response->data->error->message ) && ! empty( $test_app_token_id ) || isset( $test_app_token_response->error->message ) && ! empty( $test_app_token_id ) && '(#100) You must provide an app access token or a user access token that is an owner or developer of the app' !== $test_app_token_response->error->message ) {
159
+ if ( isset( $test_app_token_response->data->error->message ) ) {
160
+ echo sprintf(
161
+ esc_html( '%1$sOh No something\'s wrong. %2$s. Please click the button above to retrieve a new Access Token.%3$s', 'feed-them-social' ),
162
+ '<div class="fts-failed-api-token">',
163
+ esc_html( $test_app_token_response->data->error->message ),
164
+ '</div>'
165
+ );
166
+ }
167
+ if ( isset( $test_app_token_response->error->message ) ) {
168
+ echo sprintf(
169
+ esc_html( '%1$sOh No something\'s wrong. %2$s. Please click the button above to retrieve a new Access Token.%3$s', 'feed-them-social' ),
170
+ '<div class="fts-failed-api-token">',
171
+ esc_html( $test_app_token_response->error->message ),
172
+ '</div>'
173
+ );
174
+ }
175
+
176
+ if ( isset( $test_app_token_response->data->error->message ) && empty( $test_app_token_id ) || isset( $test_app_token_response->error->message ) && empty( $test_app_token_id ) ) {
177
+ echo sprintf(
178
+ esc_html( '%1$sTo get started, please click the button above to retrieve your Access Token.%2$s', 'feed-them-social' ),
179
+ '<div class="fts-failed-api-token get-started-message">',
180
+ '</div>'
181
+ );
182
+ }
183
+ }
184
+ } else {
185
+ if ( ! isset( $_GET['return_long_lived_token'] ) || isset( $_GET['reviews_token'] ) ) {
186
+ echo sprintf(
187
+ esc_html( '%1$sTo get started, please click the button above to retrieve your Access Token.%2$s', 'feed-them-social' ),
188
+ '<div class="fts-failed-api-token get-started-message">',
189
+ '</div>'
190
+ );
191
+ }
192
+ }
193
+ ?>
194
+ <div class="clear"></div>
195
+
196
+ <?php
197
+
198
+ if ( isset( $_GET['return_long_lived_token'] ) && ! isset( $_GET['reviews_token'] ) ) {
199
+ // Echo our shortcode for the page token list with loadmore button
200
+ // These functions are on feed-them-functions.php!
201
+ echo do_shortcode( '[fts_fb_page_token]' );
202
+
203
+ }
204
+ ?>
205
+ </div>
206
+
207
+ <div class="clear"></div>
208
+ </div>
209
+ <!--/fts-facebook-feed-styles-input-wrap-->
210
+
211
+ <?php if ( is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) { ?>
212
+ <!-- style="padding-top:0; border:none; margin-bottom:0px; -->
213
+ <div id="fts-fb-reviews-wrap" class="feed-them-social-admin-input-wrap">
214
+ <div class="fts-title-description-settings-page" style="margin-bottom:0px;">
215
+ <h3>
216
+ <?php esc_html_e( 'Facebook Page Reviews Access Token', 'feed-them-social' ); ?>
217
+ </h3>
218
+ <?php esc_html_e( 'This Facebook Access Token works for the Reviews feed only and is simply used to display the feed. You must be an admin of the page to get your token.', 'feed-them-social' ); ?>
219
+ <p>
220
+ <?php
221
+ echo sprintf(
222
+ esc_html( '%1$sLogin and get my Reviews Access Token%2$s', 'feed-them-social' ),
223
+ '<a href="' . esc_url( 'https://www.facebook.com/dialog/oauth?client_id=1123168491105924&redirect_uri=https://www.slickremix.com/facebook-token/&state=' . admin_url( 'admin.php?page=fts-facebook-feed-styles-submenu-page' ) . '%26reviews_token=yes&scope=manage_pages' ) . '" class="fts-facebook-get-access-token">',
224
+ '</a>'
225
+ );
226
+ ?>
227
+ </p>
228
+
229
+ </div>
230
+
231
+ <a href="mailto:support@slickremix.com" target="_blank" class="fts-admin-button-no-work"><?php esc_html_e( 'Button not working?', 'feed-them-social' ); ?></a>
232
+
233
+ <div class="clear"></div>
234
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
235
+ <?php esc_html_e( 'Page Reviews ID', 'feed-them-social' ); ?>
236
+ </div>
237
+ <input type="text" name="fts_facebook_custom_api_token_user_id_biz" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_id_biz" value="<?php echo esc_attr( get_option( 'fts_facebook_custom_api_token_user_id_biz' ) ); ?>"/>
238
+
239
+ <div class="clear" style="margin-bottom:10px;"></div>
240
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
241
+ <?php esc_html_e( 'Page Reviews Access Token', 'feed-them-social' ); ?>
242
+ </div>
243
+ <input type="text" name="fts_facebook_custom_api_token_biz" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_biz" value="<?php echo esc_attr( get_option( 'fts_facebook_custom_api_token_biz' ) ); ?>"/>
244
+ <input type="text" hidden name="fts_facebook_custom_api_token_user_name_biz" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_name_biz" value="<?php echo esc_attr( get_option( 'fts_facebook_custom_api_token_user_name_biz' ) ); ?>"/>
245
+ <div class="clear"></div>
246
+
247
+ <?php
248
+ if (!empty($test_app_token_response_biz) && !empty($test_app_token_id_biz)) {
249
+ $fb_name_biz = get_option('fts_facebook_custom_api_token_user_name_biz');
250
+ $fb_id_biz = get_option('fts_facebook_custom_api_token_user_id_biz');
251
+ if (isset($test_app_token_response_biz->data->is_valid) || $test_app_token_response_biz->error->message == "(#100) You must provide an app access token or a user access token that is an owner or developer of the app") {
252
+ echo '<div class="fts-successful-api-token fts-special-working-wrap">';
253
+
254
+
255
+ if (!empty($fb_id_biz) && !empty($fb_name_biz) && !empty($test_app_token_id_biz)) {
256
+ echo '<img border="0" height="50" width="50" class="fts-fb-page-thumb" src="https://graph.facebook.com/' . $fb_id_biz . '/picture"/><h3><a href="https://facebook.com/'.$test_app_token_id_biz.'" target="_blank">' . $fb_name_biz . '</a></h3>';
257
+ }
258
+ echo __('Your Page Reviews Access Token is now working! Generate your shortcode on the <a href="admin.php?page=feed-them-settings-page#feed_type=facebook_reviews">settings page</a>.', 'feed-them-social') . '</div>';
259
+
260
+ }
261
+
262
+ if (isset($test_app_token_response_biz->data->error->message) && !empty($test_app_token_id_biz) || isset($test_app_token_response_biz->error->message) && !empty($test_app_token_id) && $test_app_token_response_biz->error->message !== "(#100) You must provide an app access token or a user access token that is an owner or developer of the app") {
263
+ if (isset($test_app_token_response_biz->data->error->message)) {
264
+ echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $test_app_token_response_biz->data->error->message . ' ' . __('Please click the button above to retreive a new Access Token.', 'feed-them-social') . '</div>';
265
+ }
266
+ if (isset($test_app_token_response_biz->error->message) && !empty($test_app_token_id_biz) && !isset($_GET["return_long_lived_token"])) {
267
+ echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $test_app_token_response_biz->error->message . ' ' . __('Please click the button above to retreive a new Access Token.', 'feed-them-social') . '</div>';
268
+ }
269
+ }
270
+
271
+ }
272
+ if (!isset($_GET['reviews_token']) && empty($test_app_token_id_biz)) {
273
+ echo '<div class="fts-failed-api-token get-started-message">' . __('To get started, please click the button above to retrieve your Page Reviews Access Token.', 'feed-them-social') . '</div>';
274
+ }
275
+
276
+
277
+ if (isset($_GET['return_long_lived_token']) && isset($_GET['reviews_token'])) {
278
+ // Echo our shortcode for the page token list with loadmore button
279
+ // These functions are on feed-them-functions.php
280
+ echo do_shortcode('[fts_fb_page_token]');
281
+
282
+ } ?>
283
+
284
+ <div class="clear"></div>
285
+ </div>
286
+ <!--/fts-facebook-feed-styles-input-wrap-->
287
+
288
+ <div class="feed-them-social-admin-input-wrap">
289
+ <div class="fts-title-description-settings-page">
290
+ <h3>
291
+ <?php esc_html_e( 'Reviews: Style and Text Options', 'feed-them-social' ); ?>
292
+ </h3>
293
+ <?php esc_html_e( 'The styles above still apply, these are just some extra options for the Reviews List feed.', 'feed-them-social' ); ?>
294
+ </div>
295
+ <div class="feed-them-social-admin-input-label fb-events-title-color-label">
296
+ <?php
297
+ echo sprintf(
298
+ esc_html( 'Stars Background Color%1$sApplies to Overall Rating too.%2$s', 'feed-them-social' ),
299
+ '<br/><small>',
300
+ '</small>'
301
+ );
302
+ ?>
303
+ </div>
304
+ <input type="text" name="fb_reviews_backg_color" class="feed-them-social-admin-input fb-reviews-backg-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-reviews-backg-color" placeholder="#4791ff" value="<?php echo esc_attr( get_option( 'fb_reviews_backg_color' ) ); ?>"/>
305
+ <div class="clear"></div>
306
+ </div>
307
+ <!--/fts-facebook-feed-styles-input-wrap-->
308
+
309
+ <div class="feed-them-social-admin-input-wrap">
310
+ <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
311
+ <?php
312
+ echo sprintf(
313
+ esc_html( 'Stars & Text Color%1$sApplies to Overall Rating too.%2$s', 'feed-them-social' ),
314
+ '<br/><small>',
315
+ '</small>'
316
+ );
317
+ ?>
318
+ </div>
319
+ <input type="text" name="fb_reviews_text_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-reviews-text-color" placeholder="#fff" value="<?php echo esc_attr( get_option( 'fb_reviews_text_color' ) ); ?>"/>
320
+ <div class="clear"></div>
321
+ </div>
322
+ <!--/fts-facebook-feed-styles-input-wrap-->
323
+
324
+ <div class="feed-them-social-admin-input-wrap">
325
+ <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
326
+ <?php esc_html_e( 'Text for the word "star"', 'feed-them-social' ); ?>
327
+ </div>
328
+ <input type="text" name="fb_reviews_star_language" class="feed-them-social-admin-input" id="fb_reviews_star_language" placeholder="star" value="<?php echo esc_attr( get_option( 'fb_reviews_star_language' ) ); ?>"/>
329
+ <div class="clear"></div>
330
+ </div>
331
+ <!--/fts-facebook-feed-styles-input-wrap-->
332
+
333
+ <div class="feed-them-social-admin-input-wrap">
334
+ <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
335
+ <?php esc_html_e( 'Text for the word "Recommended"', 'feed-them-social' ); ?>
336
+ </div>
337
+ <input type="text" name="fb_reviews_recommended_language" class="feed-them-social-admin-input" id="fb_reviews_recommended_language" placeholder="Recommeded" value="<?php echo esc_attr( get_option( 'fb_reviews_recommended_language' ) ); ?>"/>
338
+ <div class="clear"></div>
339
+ </div>
340
+ <!--/fts-facebook-feed-styles-input-wrap-->
341
+
342
+ <div class="feed-them-social-admin-input-wrap">
343
+ <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
344
+ <?php esc_html_e( 'Text for "See More Reviews"', 'feed-them-social' ); ?>
345
+ </div>
346
+ <input type="text" name="fb_reviews_see_more_reviews_language" class="feed-them-social-admin-input" id="fb_reviews_see_more_reviews_language" placeholder="See More Reviews" value="<?php echo esc_attr( get_option( 'fb_reviews_see_more_reviews_language' ) ); ?>"/>
347
+ <div class="clear"></div>
348
+ </div>
349
+ <!--/fts-facebook-feed-styles-input-wrap-->
350
+
351
+ <div class="feed-them-social-admin-input-wrap">
352
+ <div class="feed-them-social-admin-input-label">
353
+ <?php esc_html_e( 'Remove "See More Reviews" link', 'feed-them-social' ); ?>
354
+ </div>
355
+ <select name="fb_reviews_remove_see_reviews_link" id="fb_reviews_remove_see_reviews_link" class="feed-them-social-admin-input">
356
+ <option value="">
357
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
358
+ </option>
359
+ <option <?php echo selected( $fb_reviews_remove_see_reviews_link, 'yes', false ); ?> value="<?php esc_html_e( 'yes' ); ?>">
360
+ <?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
361
+ </option>
362
+ <option <?php echo selected( $fb_reviews_remove_see_reviews_link, 'no', false ); ?> value="<?php esc_html_e( 'no' ); ?>">
363
+ <?php esc_html_e( 'No', 'feed-them-social' ); ?>
364
+ </option>
365
+ </select>
366
+ <div class="clear"></div>
367
+ </div>
368
+ <!--/fts-facebook-feed-styles-input-wrap-->
369
+
370
+ <div class="fts-title-description-settings-page" id="overall-rating-options">
371
+ <h3>
372
+ <?php esc_html_e( 'Reviews: Overall Rating Style Options', 'feed-them-social' ); ?>
373
+ </h3>
374
+ <?php esc_html_e( 'These styles are for the overall rating that appear above your feed.', 'feed-them-social' ); ?>
375
+ </div>
376
+ <div class="feed-them-social-admin-input-wrap">
377
+ <div class="feed-them-social-admin-input-label">
378
+ <?php esc_html_e( 'Hide Overall Rating Background & Border', 'feed-them-social' ); ?>
379
+ </div>
380
+ <select name="fb_reviews_overall_rating_background_border_hide" id="fb_reviews_overall_rating_background_border_hide" class="feed-them-social-admin-input">
381
+ <option value="">
382
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
383
+ </option>
384
+ <option <?php echo selected( $fb_reviews_overall_rating_background_border_hide, 'yes', false ); ?> value="<?php esc_html_e( 'yes' ); ?>">
385
+ <?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
386
+ </option>
387
+ <option <?php echo selected( $fb_reviews_overall_rating_background_border_hide, 'no', false ); ?> value="<?php esc_html_e( 'no' ); ?>">
388
+ <?php esc_html_e( 'No', 'feed-them-social' ); ?>
389
+ </option>
390
+ </select>
391
+ <div class="clear"></div>
392
+ </div>
393
+ <!--/fts-facebook-feed-styles-input-wrap-->
394
+
395
+ <div class="feed-them-social-admin-input-wrap">
396
+ <div class="feed-them-social-admin-input-label">
397
+ <?php esc_html_e( 'Overall Rating Background Color', 'feed-them-social' ); ?>
398
+ </div>
399
+ <input type="text" name="fb_reviews_overall_rating_background_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb_reviews_overall_rating_background_color" placeholder="#fff" value="<?php echo esc_attr( get_option( 'fb_reviews_overall_rating_background_color' ) ); ?>"/>
400
+ <div class="clear"></div>
401
+ </div>
402
+ <!--/fts-facebook-feed-styles-input-wrap-->
403
+
404
+ <div class="feed-them-social-admin-input-wrap">
405
+ <div class="feed-them-social-admin-input-label">
406
+ <?php esc_html_e( 'Overall Rating Text Color', 'feed-them-social' ); ?>
407
+ </div>
408
+ <input type="text" name="fb_reviews_overall_rating_text_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb_reviews_overall_rating_text_color" placeholder="#fff" value="<?php echo esc_attr( get_option( 'fb_reviews_overall_rating_text_color' ) ); ?>"/>
409
+ <div class="clear"></div>
410
+ </div>
411
+ <!--/fts-facebook-feed-styles-input-wrap-->
412
+
413
+ <div class="feed-them-social-admin-input-wrap">
414
+ <div class="feed-them-social-admin-input-label">
415
+ <?php esc_html_e( 'Overall Rating Border Color', 'feed-them-social' ); ?>
416
+ </div>
417
+ <input type="text" name="fb_reviews_overall_rating_border_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb_reviews_overall_rating_border_color" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_reviews_overall_rating_border_color' ) ); ?>"/>
418
+ <div class="clear"></div>
419
+ </div>
420
+ <!--/fts-facebook-feed-styles-input-wrap-->
421
+
422
+ <div class="feed-them-social-admin-input-wrap">
423
+ <div class="feed-them-social-admin-input-label">
424
+ <?php esc_html_e( 'Overall Rating Background Padding', 'feed-them-social' ); ?>
425
+ </div>
426
+ <input type="text" name="fb_reviews_overall_rating_background_padding" class="feed-them-social-admin-input" id="fb_reviews_overall_rating_background_padding" placeholder="10px 10px 15px 10px" value="<?php echo esc_attr( get_option( 'fb_reviews_overall_rating_background_padding' ) ); ?>"/>
427
+ <div class="clear"></div>
428
+ </div>
429
+ <!--/fts-facebook-feed-styles-input-wrap-->
430
+
431
+ <div class="feed-them-social-admin-input-wrap">
432
+ <div class="feed-them-social-admin-input-label">
433
+ <?php esc_html_e( 'Overall Rating "of 5 stars" text', 'feed-them-social' ); ?>
434
+ </div>
435
+ <input type="text" name="fb_reviews_overall_rating_of_5_stars_text" class="feed-them-social-admin-input" id="fb_reviews_overall_rating_of_5_stars_text" placeholder="of 5 stars" value="<?php echo esc_attr( get_option( 'fb_reviews_overall_rating_of_5_stars_text' ) ); ?>"/>
436
+ <div class="clear"></div>
437
+ </div>
438
+ <!--/fts-facebook-feed-styles-input-wrap-->
439
+
440
+ <div class="feed-them-social-admin-input-wrap">
441
+ <div class="feed-them-social-admin-input-label">
442
+ <?php esc_html_e( 'Overall Rating "reviews" text', 'feed-them-social' ); ?>
443
+ </div>
444
+ <input type="text" name="fb_reviews_overall_rating_reviews_text" class="feed-them-social-admin-input" id="fb_reviews_overall_rating_reviews_text" placeholder="reviews" value="<?php echo esc_attr( get_option( 'fb_reviews_overall_rating_reviews_text' ) ); ?>"/>
445
+ <div class="clear"></div>
446
+ </div>
447
+ <!--/fts-facebook-feed-styles-input-wrap-->
448
+
449
+ <?php
450
+ } // end if reviewsp plugin active
451
+ ?>
452
+
453
+ <div class="feed-them-social-admin-input-wrap">
454
+ <div class="fts-title-description-settings-page">
455
+ <h3>
456
+ <?php esc_html_e( 'Language Options', 'feed-them-social' ); ?>
457
+ </h3>
458
+ <?php
459
+
460
+ echo sprintf(
461
+ esc_html( 'You must have your Facebook Access Token saved above before this feature will work. This option will translate the FB Titles and Like Button or Box Text. It will not translate your actual post. To translate the Feed Them Social parts of this plugin just set your language on the %1$sWordPress settings%2$s page. If would like to help translate please %3$sClick Here.%4$s', 'feed-them-social' ),
462
+ '<a href="' . esc_url( 'options-general.php' ) . '" target="_blank">',
463
+ '</a>',
464
+ '<a href="' . esc_url( 'http://translate.slickremix.com/glotpress/projects/feed-them-social/' ) . '" target="_blank">',
465
+ '</a>'
466
+ );
467
+
468
+ ?>
469
+
470
+ </div>
471
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
472
+ <?php esc_html_e( 'Language For Facebook Feeds', 'feed-them-social' ); ?>
473
+ </div>
474
+ <select name="fb_language" id="fb-lang-btn" class="feed-them-social-admin-input">
475
+ <option value="en_US">
476
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
477
+ </option>
478
+ <?php
479
+ foreach ( $lang_options_array->locale as $language ) {
480
+ echo '<option ' . selected( $fb_language, $language->codes->code->standard->representation, true ) . ' value="' . esc_html( $language->codes->code->standard->representation ) . '">' . esc_html( $language->englishName ) . '</option>';
481
+ }
482
+ ?>
483
+ </select>
484
+ <div class="clear"></div>
485
+ </div>
486
+ <!--/fts-twitter-feed-styles-input-wrap-->
487
+
488
+ <div class="feed-them-social-admin-input-wrap" style="display: none;">
489
+ <div class="fts-title-description-settings-page">
490
+ <h3>
491
+ <?php esc_html_e( 'Offset Limit', 'feed-them-social' ); ?>
492
+ </h3>
493
+ <?php
494
+ echo sprintf(
495
+ esc_html( '%1$sWARNING, PLEASE READ CAREFULLY!%2$s DO NOT use this field to set your facebook posts. If you are getting the message "Please go to the Facebook Options page of our plugin and look for the "Change Limit" option and add the number 7 or more." then adjust the number below so posts will show in your feed. Generally adding at least %3$s7%4$s is a good idea if you are getting that notice. This is only for Pages and Groups. We filter certain posts that do not have a story or message or if the shared content is not available via the API.', 'feed-them-social' ),
496
+ '<strong style="color:red">',
497
+ '</strong>',
498
+ '<strong>',
499
+ '</strong>'
500
+ );
501
+ ?>
502
+ </div>
503
+ <div class="feed-them-social-admin-input-label">
504
+ <?php esc_html_e( 'Offset Quantity', 'feed-them-social' ); ?>
505
+ </div>
506
+ <input type="text" name="fb_count_offset" class="feed-them-social-admin-input" id="fb_count_offset" value="<?php echo esc_attr( get_option( 'fb_count_offset' ) ); ?>"/>
507
+ <div class="clear"></div>
508
+ </div>
509
+ <!--/fts-twitter-feed-styles-input-wrap-->
510
+
511
+ <div class="feed-them-social-admin-input-wrap">
512
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
513
+ <?php esc_html_e( 'Hide Notice on Front End', 'feed-them-social' ); ?>
514
+ </div>
515
+ <select name="fb_hide_no_posts_message" id="fb_hide_no_posts_message" class="feed-them-social-admin-input">
516
+ <option value="">
517
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
518
+ </option>
519
+ <option <?php echo selected( $fb_hide_no_posts_message, 'yes', false ); ?> value="<?php esc_html_e( 'yes' ); ?>">
520
+ <?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
521
+ </option>
522
+ <option <?php echo selected( $fb_hide_no_posts_message, 'no', false ); ?> value="<?php esc_html_e( 'no' ); ?>">
523
+ <?php esc_html_e( 'No', 'feed-them-social' ); ?>
524
+ </option>
525
+ </select>
526
+ <div class="clear"></div>
527
+ </div>
528
+ <!--/fts-twitter-feed-styles-input-wrap-->
529
+
530
+ <div class="feed-them-social-admin-input-wrap">
531
+ <div class="fts-title-description-settings-page">
532
+ <h3>
533
+ <?php esc_html_e( 'Like Button or Box Options', 'feed-them-social' ); ?>
534
+ </h3>
535
+ <?php esc_html_e( 'This will only show on regular feeds not combined feeds.', 'feed-them-social' ); ?>
536
+ </div>
537
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
538
+ <?php esc_html_e( 'Show Follow Button', 'feed-them-social' ); ?>
539
+
540
+ </div>
541
+ <select name="fb_show_follow_btn" id="fb-show-follow-btn" class="feed-them-social-admin-input">
542
+ <option>
543
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
544
+ </option>
545
+ <option <?php echo selected( $fb_show_follow_btn, 'dont-display', false ); ?> value="<?php esc_html_e( 'dont-display' ); ?>">
546
+ <?php esc_html_e( 'Don\'t Display a Button', 'feed-them-social' ); ?>
547
+ </option>
548
+ <optgroup label="Like Box">
549
+ <option <?php echo selected( $fb_show_follow_btn, 'like-box', false ); ?> value="<?php esc_html_e( 'like-box' ); ?>">
550
+ <?php esc_html_e( 'Like Box', 'feed-them-social' ); ?>
551
+ </option>
552
+ <option <?php echo selected( $fb_show_follow_btn, 'like-box-faces', false ); ?> value="<?php esc_html_e( 'like-box-faces' ); ?>">
553
+ <?php esc_html_e( 'Like Box with Faces', 'feed-them-social' ); ?>
554
+ </option>
555
+ </optgroup>
556
+ <optgroup label="Like Button">
557
+ <option <?php echo selected( $fb_show_follow_btn, 'like-button', false ); ?> value="<?php esc_html_e( 'like-button' ); ?>">
558
+ <?php esc_html_e( 'Like Button', 'feed-them-social' ); ?>
559
+ </option>
560
+ <option <?php echo selected( $fb_show_follow_btn, 'like-button-share', false ); ?> value="<?php esc_html_e( 'like-button-share' ); ?>">
561
+ <?php esc_html_e( 'Like Button and Share Button', 'feed-them-social' ); ?>
562
+ </option>
563
+ <option <?php echo selected( $fb_show_follow_btn, 'like-button-faces', false ); ?> value="<?php esc_html_e( 'like-button-faces' ); ?>">
564
+ <?php esc_html_e( 'Like Button with Faces', 'feed-them-social' ); ?>
565
+ </option>
566
+ <option <?php echo selected( $fb_show_follow_btn, 'like-button-share-faces', false ); ?> value="<?php esc_html_e( 'like-button-share-faces' ); ?>">
567
+ <?php esc_html_e( 'Like Button and Share Button with Faces', 'feed-them-social' ); ?>
568
+ </option>
569
+ </optgroup>
570
+ </select>
571
+ <div class="clear"></div>
572
+ </div>
573
+ <!--/fts-twitter-feed-styles-input-wrap-->
574
+
575
+ <div class="feed-them-social-admin-input-wrap" style="display:none">
576
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
577
+ <?php esc_html_e( 'Show Profile Icon next to social option above', 'feed-them-social' ); ?>
578
+ </div>
579
+ <select name="fb_show_follow_like_box_cover" id="fb-show-follow-like-box-cover" class="feed-them-social-admin-input">
580
+ <option>
581
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
582
+ </option>
583
+ <option <?php echo selected( $fb_show_follow_btn_profile_pic, 'fb_like_box_cover-yes', false ); ?> value="<?php esc_html_e( 'fb_like_box_cover-yes' ); ?>">
584
+ <?php esc_html_e( 'Display Cover Photo in Like Box', 'feed-them-social' ); ?>
585
+ </option>
586
+ <option <?php echo selected( $fb_show_follow_btn_profile_pic, 'fb_like_box_cover-no', false ); ?> value="<?php esc_html_e( 'fb_like_box_cover-no' ); ?>">
587
+ <?php esc_html_e( 'Hide Cover Photo in Like Box', 'feed-them-social' ); ?>
588
+ </option>
589
+ </select>
590
+ <div class="clear"></div>
591
+ </div>
592
+ <!--/fts-twitter-feed-styles-input-wrap-->
593
+
594
+ <div class="feed-them-social-admin-input-wrap">
595
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
596
+ <?php esc_html_e( 'Like Button Color', 'feed-them-social' ); ?>
597
+ </div>
598
+ <select name="fb_like_btn_color" id="fb-like-btn-color" class="feed-them-social-admin-input">
599
+ <option value="light">
600
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
601
+ </option>
602
+ <option <?php echo selected( $fb_like_btn_color, 'light', false ); ?> value="<?php esc_html_e( 'light' ); ?>">
603
+ <?php esc_html_e( 'Light', 'feed-them-social' ); ?>
604
+ </option>
605
+ <option <?php echo selected( $fb_like_btn_color, 'dark', false ); ?> value="<?php esc_html_e( 'dark' ); ?>">
606
+ <?php esc_html_e( 'Dark', 'feed-them-social' ); ?>
607
+ </option>
608
+ </select>
609
+ <div class="clear"></div>
610
+ </div>
611
+ <!--/fts-twitter-feed-styles-input-wrap-->
612
+
613
+ <div class="feed-them-social-admin-input-wrap">
614
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
615
+ <?php esc_html_e( 'Placement of the Button(s)', 'feed-them-social' ); ?>
616
+ </div>
617
+ <select name="fb_show_follow_btn_where" id="fb-show-follow-btn-where" class="feed-them-social-admin-input">
618
+ <option value="">
619
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
620
+ </option>
621
+ <option <?php echo selected( $fb_show_follow_btn_where, 'fb-like-top-above-title', false ); ?> value="<?php esc_attr_e( 'fb-like-top-above-title' ); ?>">
622
+ <?php esc_html_e( 'Show Top of Feed Above Title', 'feed-them-social' ); ?>
623
+ </option>
624
+ <option <?php echo selected( $fb_show_follow_btn_where, 'fb-like-top-below-title', false ); ?> value="<?php esc_attr_e( 'fb-like-top-below-title' ); ?>">
625
+ <?php esc_html_e( 'Show Top of Feed Below Title', 'feed-them-social' ); ?>
626
+ </option>
627
+ <option <?php echo selected( $fb_show_follow_btn_where, 'fb-like-below', false ); ?> value="<?php esc_attr_e( 'fb-like-below' ); ?>">
628
+ <?php esc_html_e( 'Show Botton of Feed', 'feed-them-social' ); ?>
629
+ </option>
630
+ </select>
631
+ <div class="clear"></div>
632
+ </div>
633
+ <!--/fts-twitter-feed-styles-input-wrap-->
634
+
635
+ <div class="feed-them-social-admin-input-wrap">
636
+ <div class="fts-title-description-settings-page" style="margin-top:0;">
637
+ <h3>
638
+ <?php esc_html_e( 'Global Facebook Style Options', 'feed-them-social' ); ?>
639
+ </h3>
640
+ </div>
641
+
642
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
643
+ <?php
644
+ echo sprintf(
645
+ esc_html( 'Text after your FB name %1$sie* Shared by or New Photo Added etc.%2$s', 'feed-them-social' ),
646
+ '<br/><small>',
647
+ '</small>'
648
+ );
649
+ ?>
650
+ </div>
651
+ <select name="fb_hide_shared_by_etc_text" id="fb_hide_shared_by_etc_text" class="feed-them-social-admin-input">
652
+ <option value="">
653
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
654
+ </option>
655
+ <option <?php echo selected( $fb_hide_shared_by_etc_text, 'no', false ); ?> value="<?php esc_attr_e( 'no' ); ?>">
656
+ <?php esc_html_e( 'No', 'feed-them-social' ); ?>
657
+ </option>
658
+ <option <?php echo selected( $fb_hide_shared_by_etc_text, 'yes', false ); ?> value="<?php esc_attr_e( 'yes' ); ?>">
659
+ <?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
660
+ </option>
661
+ </select>
662
+ <div class="clear"></div>
663
+ </div>
664
+ <!--/fts-twitter-feed-styles-input-wrap-->
665
+
666
+ <div class="feed-them-social-admin-input-wrap">
667
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
668
+ <?php esc_html_e( 'Hide Images in Posts', 'feed-them-social' ); ?>
669
+ </div>
670
+ <select name="fb_hide_images_in_posts" id="fb_hide_images_in_posts" class="feed-them-social-admin-input">
671
+ <option value="">
672
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
673
+ </option>
674
+ <option <?php echo selected( $fb_hide_images_in_posts, 'no', false ); ?> value="<?php esc_attr_e( 'no' ); ?>">
675
+ <?php esc_html_e( 'No', 'feed-them-social' ); ?>
676
+ </option>
677
+ <option <?php echo selected( $fb_hide_images_in_posts, 'yes', false ); ?> value="<?php esc_attr_e( 'yes' ); ?>">
678
+ <?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
679
+ </option>
680
+ </select>
681
+ <div class="clear"></div>
682
+ </div>
683
+ <!--/fts-twitter-feed-styles-input-wrap-->
684
+
685
+ <div class="feed-them-social-admin-input-wrap">
686
+ <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
687
+ <?php esc_html_e( 'Max-width for Images & Videos', 'feed-them-social' ); ?>
688
+ </div>
689
+ <input type="text" name="fb_max_image_width" class="feed-them-social-admin-input" placeholder="500px" value="<?php echo esc_attr( get_option( 'fb_max_image_width' ) ); ?>"/>
690
+ <div class="clear"></div>
691
+ </div>
692
+ <!--/fts-facebook-feed-styles-input-wrap-->
693
+
694
+ <div class="feed-them-social-admin-input-wrap">
695
+ <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
696
+ <?php esc_html_e( 'Feed Header Extra Text Color', 'feed-them-social' ); ?>
697
+ </div>
698
+ <input type="text" name="fb_header_extra_text_color" class="feed-them-social-admin-input fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-text-color-input" placeholder="#222" value="<?php echo esc_attr( get_option( 'fb_header_extra_text_color' ) ); ?>"/>
699
+ <div class="clear"></div>
700
+ </div>
701
+ <!--/fts-facebook-feed-styles-input-wrap-->
702
+
703
+ <div class="feed-them-social-admin-input-wrap">
704
+ <div class="feed-them-social-admin-input-label fts-fb-text-size-label">
705
+ <?php esc_html_e( 'Feed Description Text Size', 'feed-them-social' ); ?>
706
+ </div>
707
+ <input type="text" name="fb_text_size" class="feed-them-social-admin-input fb-text-size-input" id="fb-text-size-input" placeholder="12px" value="<?php echo esc_attr( get_option( 'fb_text_size' ) ); ?>"/>
708
+ <div class="clear"></div>
709
+ </div>
710
+ <!--/fts-facebook-feed-styles-input-wrap-->
711
+
712
+ <div class="feed-them-social-admin-input-wrap">
713
+ <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
714
+ <?php esc_html_e( 'Feed Text Color', 'feed-them-social' ); ?>
715
+ </div>
716
+ <input type="text" name="fb_text_color" class="feed-them-social-admin-input fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-text-color-input" placeholder="#222" value="<?php echo esc_attr( get_option( 'fb_text_color' ) ); ?>"/>
717
+ <div class="clear"></div>
718
+ </div>
719
+ <!--/fts-facebook-feed-styles-input-wrap-->
720
+
721
+ <div class="feed-them-social-admin-input-wrap">
722
+ <div class="feed-them-social-admin-input-label fts-fb-link-color-label">
723
+ <?php esc_html_e( 'Feed Link Color', 'feed-them-social' ); ?>
724
+ </div>
725
+ <input type="text" name="fb_link_color" class="feed-them-social-admin-input fb-link-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-link-color-input" placeholder="#222" value="<?php echo esc_attr( get_option( 'fb_link_color' ) ); ?>"/>
726
+ <div class="clear"></div>
727
+ </div>
728
+ <!--/fts-facebook-feed-styles-input-wrap-->
729
+
730
+ <div class="feed-them-social-admin-input-wrap">
731
+ <div class="feed-them-social-admin-input-label fts-fb-link-color-hover-label">
732
+ <?php esc_html_e( 'Feed Link Color Hover', 'feed-them-social' ); ?>
733
+ </div>
734
+ <input type="text" name="fb_link_color_hover" class="feed-them-social-admin-input fb-link-color-hover-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-link-color-hover-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_link_color_hover' ) ); ?>"/>
735
+ <div class="clear"></div>
736
+ </div>
737
+ <!--/fts-facebook-feed-styles-input-wrap-->
738
+
739
+ <div class="feed-them-social-admin-input-wrap">
740
+ <div class="feed-them-social-admin-input-label fts-fb-feed-width-label">
741
+ <?php esc_html_e( 'Feed Width', 'feed-them-social' ); ?>
742
+ </div>
743
+ <input type="text" name="fb_feed_width" class="feed-them-social-admin-input fb-feed-width-input" id="fb-feed-width-input" placeholder="500px" value="<?php echo esc_attr( get_option( 'fb_feed_width' ) ); ?>"/>
744
+ <div class="clear"></div>
745
+ </div>
746
+ <!--/fts-facebook-feed-styles-input-wrap-->
747
+
748
+ <div class="feed-them-social-admin-input-wrap">
749
+ <div class="feed-them-social-admin-input-label fts-fb-feed-margin-label">
750
+ <?php
751
+ echo sprintf(
752
+ esc_html( 'Feed Margin %1$sTo center feed type auto%2$s', 'feed-them-social' ),
753
+ '<br/><small>',
754
+ '</small>'
755
+ );
756
+ ?>
757
+ </div>
758
+ <input type="text" name="fb_feed_margin" class="feed-them-social-admin-input fb-feed-margin-input" id="fb-feed-margin-input" placeholder="10px" value="<?php echo esc_attr( get_option( 'fb_feed_margin' ) ); ?>"/>
759
+ <div class="clear"></div>
760
+ </div>
761
+ <!--/fts-facebook-feed-styles-input-wrap-->
762
+
763
+ <div class="feed-them-social-admin-input-wrap">
764
+ <div class="feed-them-social-admin-input-label fts-fb-feed-padding-label">
765
+ <?php esc_html_e( 'Feed Padding', 'feed-them-social' ); ?>
766
+ </div>
767
+ <input type="text" name="fb_feed_padding" class="feed-them-social-admin-input fb-feed-padding-input" id="fb-feed-padding-input" placeholder="10px" value="<?php echo esc_attr( get_option( 'fb_feed_padding' ) ); ?>"/>
768
+ <div class="clear"></div>
769
+ </div>
770
+ <!--/fts-facebook-feed-styles-input-wrap-->
771
+
772
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) || is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) { ?>
773
+ <div class="feed-them-social-admin-input-wrap">
774
+ <div class="feed-them-social-admin-input-label fts-fb-post-background-color-label">
775
+ <?php
776
+ echo sprintf(
777
+ esc_html( 'Post Background Color %1$sOnly works with show_media=top%2$s', 'feed-them-social' ),
778
+ '<br/><small>',
779
+ '</small>'
780
+ );
781
+ ?>
782
+ </div>
783
+ <input type="text" name="fb_post_background_color" class="feed-them-social-admin-input fb-post-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-feed-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_post_background_color' ) ); ?>"/>
784
+ <div class="clear"></div>
785
+ </div>
786
+ <!--/fts-facebook-feed-styles-input-wrap-->
787
+ <?php } ?>
788
+
789
+ <div class="feed-them-social-admin-input-wrap">
790
+ <div class="feed-them-social-admin-input-label fts-fb-feed-background-color-label">
791
+ <?php esc_html_e( 'Feed Background Color', 'feed-them-social' ); ?>
792
+ </div>
793
+ <input type="text" name="fb_feed_background_color" class="feed-them-social-admin-input fb-feed-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-feed-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_feed_background_color' ) ); ?>"/>
794
+ <div class="clear"></div>
795
+ </div>
796
+ <!--/fts-facebook-feed-styles-input-wrap-->
797
+
798
+ <div class="feed-them-social-admin-input-wrap">
799
+ <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
800
+ <?php esc_html_e( 'Border Bottom Color', 'feed-them-social' ); ?>
801
+ </div>
802
+ <input type="text" name="fb_border_bottom_color" class="feed-them-social-admin-input fb-border-bottom-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-border-bottom-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_border_bottom_color' ) ); ?>"/>
803
+ <div class="clear"></div>
804
+ </div>
805
+ <!--/fts-facebook-feed-styles-input-wrap-->
806
+
807
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) || is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) { ?>
808
+ <div class="feed-them-social-admin-input-wrap">
809
+ <div class="fts-title-description-settings-page">
810
+ <h3>
811
+ <?php esc_html_e( 'Grid Styles', 'feed-them-social' ); ?>
812
+ </h3>
813
+ </div>
814
+ <div class="feed-them-social-admin-input-label fts-fb-grid-posts-background-color-label">
815
+ <?php esc_html_e( 'Posts Background Color', 'feed-them-social' ); ?>
816
+ </div>
817
+ <input type="text" name="fb_grid_posts_background_color" class="feed-them-social-admin-input fb-grid-posts-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-grid-posts-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_grid_posts_background_color' ) ); ?>"/>
818
+ <div class="clear"></div>
819
+ </div>
820
+ <!--/fts-facebook-feed-styles-input-wrap-->
821
+
822
+ <div class="feed-them-social-admin-input-wrap">
823
+ <div class="feed-them-social-admin-input-label fts-fb-grid-border-bottom-color-label">
824
+ <?php esc_html_e( 'Border Bottom Color', 'feed-them-social' ); ?>
825
+ </div>
826
+ <input type="text" name="fb_grid_border_bottom_color" class="feed-them-social-admin-input fb-grid-border-bottom-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-border-bottom-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_grid_border_bottom_color' ) ); ?>"/>
827
+ <div class="clear"></div>
828
+ </div>
829
+ <!--/fts-facebook-feed-styles-input-wrap-->
830
+
831
+ <div class="feed-them-social-admin-input-wrap">
832
+ <div class="fts-title-description-settings-page">
833
+ <h3>
834
+ <?php esc_html_e( 'Load More Button Styles & Options', 'feed-them-social' ); ?>
835
+ </h3>
836
+ </div>
837
+ <div class="feed-them-social-admin-input-label fts-fb-loadmore-background-color-label">
838
+ <?php esc_html_e( 'Button Color', 'feed-them-social' ); ?>
839
+ </div>
840
+ <input type="text" name="fb_loadmore_background_color" class="feed-them-social-admin-input fb-loadmore-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-loadmore-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_loadmore_background_color' ) ); ?>"/>
841
+ <div class="clear"></div>
842
+ </div>
843
+ <!--/fts-fb-feed-styles-input-wrap-->
844
+
845
+ <div class="feed-them-social-admin-input-wrap">
846
+ <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
847
+ <?php esc_html_e( 'Text Color', 'feed-them-social' ); ?>
848
+ </div>
849
+ <input type="text" name="fb_loadmore_text_color" class="feed-them-social-admin-input fb-loadmore-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-loadmore-text-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_loadmore_text_color' ) ); ?>"/>
850
+ <div class="clear"></div>
851
+ </div>
852
+ <!--/fts-fb-feed-styles-input-wrap-->
853
+
854
+ <div class="feed-them-social-admin-input-wrap">
855
+ <div class="feed-them-social-admin-input-label">
856
+ <?php esc_html_e( '"Load More" Text', 'feed-them-social' ); ?>
857
+ </div>
858
+ <input type="text" name="fb_load_more_text" class="feed-them-social-admin-input" id="fb_load_more_text" placeholder="Load More" value="<?php echo esc_attr( get_option( 'fb_load_more_text' ) ); ?>"/>
859
+ <div class="clear"></div>
860
+ </div>
861
+ <!--/fts-facebook-feed-styles-input-wrap-->
862
+
863
+ <div class="feed-them-social-admin-input-wrap">
864
+ <div class="feed-them-social-admin-input-label">
865
+ <?php esc_html_e( '"No More Posts" Text', 'feed-them-social' ); ?>
866
+ </div>
867
+ <input type="text" name="fb_no_more_posts_text" class="feed-them-social-admin-input" id="fb_no_more_posts_text" placeholder="No More Posts" value="<?php echo esc_attr( get_option( 'fb_no_more_posts_text' ) ); ?>"/>
868
+ <div class="clear"></div>
869
+ </div>
870
+ <!--/fts-facebook-feed-styles-input-wrap-->
871
+
872
+ <div class="feed-them-social-admin-input-wrap">
873
+ <div class="feed-them-social-admin-input-label">
874
+ <?php esc_html_e( '"No More Photos" Text', 'feed-them-social' ); ?>
875
+ </div>
876
+ <input type="text" name="fb_no_more_photos_text" class="feed-them-social-admin-input" id="fb_no_more_photos_text" placeholder="No More Photos" value="<?php echo esc_attr( get_option( 'fb_no_more_photos_text' ) ); ?>"/>
877
+ <div class="clear"></div>
878
+ </div>
879
+ <!--/fts-facebook-feed-styles-input-wrap-->
880
+
881
+ <div class="feed-them-social-admin-input-wrap">
882
+ <div class="feed-them-social-admin-input-label">
883
+ <?php esc_html_e( '"No More Videos" Text', 'feed-them-social' ); ?>
884
+ </div>
885
+ <input type="text" name="fb_no_more_videos_text" class="feed-them-social-admin-input" id="fb_no_more_videos_text" placeholder="No More Videos" value="<?php echo esc_attr( get_option( 'fb_no_more_videos_text' ) ); ?>"/>
886
+ <div class="clear"></div>
887
+ </div>
888
+ <!--/fts-facebook-feed-styles-input-wrap-->
889
+
890
+ <?php } ?>
891
+
892
+ <?php if ( is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) { ?>
893
+
894
+ <div class="feed-them-social-admin-input-wrap">
895
+ <div class="feed-them-social-admin-input-label">
896
+ <?php esc_html_e( '"No More Reviews" Text', 'feed-them-social' ); ?>
897
+ </div>
898
+ <input type="text" name="fb_no_more_reviews_text" class="feed-them-social-admin-input" id="fb_no_more_reviews_text" placeholder="No More Reviews" value="<?php echo esc_attr( get_option( 'fb_no_more_reviews_text' ) ); ?>"/>
899
+ <div class="clear"></div>
900
+ </div>
901
+ <!--/fts-facebook-feed-styles-input-wrap-->
902
+ <?php } ?>
903
+
904
+ <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
905
+ <div class="fts-title-description-settings-page">
906
+ <h3>
907
+ <?php esc_html_e( 'Event Style Options', 'feed-them-social' ); ?>
908
+ </h3>
909
+ <?php esc_html_e( 'The styles above still apply, these are just some extra options for the Event List feed.', 'feed-them-social' ); ?>
910
+ </div>
911
+ <div class="feed-them-social-admin-input-label fb-events-title-color-label">
912
+ <?php esc_html_e( 'Events Feed: Title Color', 'feed-them-social' ); ?>
913
+ </div>
914
+ <input type="text" name="fb_events_title_color" class="feed-them-social-admin-input fb-events-title-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-events-title-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_events_title_color' ) ); ?>"/>
915
+ <div class="clear"></div>
916
+ </div>
917
+ <!--/fts-facebook-feed-styles-input-wrap-->
918
+
919
+ <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
920
+ <div class="feed-them-social-admin-input-label fb-events-title-size-label">
921
+ <?php esc_html_e( 'Events Feed: Title Size', 'feed-them-social' ); ?>
922
+ </div>
923
+ <input type="text" name="fb_events_title_size" class="feed-them-social-admin-input fb-events-title-size" id="fb-events-title-color-input" placeholder="20px" value="<?php echo esc_attr( get_option( 'fb_events_title_size' ) ); ?>"/>
924
+ <div class="clear"></div>
925
+ </div>
926
+ <!--/fts-facebook-feed-styles-input-wrap-->
927
+
928
+ <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
929
+ <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
930
+ <?php esc_html_e( 'Events Feed: Map Link Color', 'feed-them-social' ); ?>
931
+ </div>
932
+ <input type="text" name="fb_events_map_link_color" class="feed-them-social-admin-input fb-events-map-link-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-events-map-link-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fb_events_map_link_color' ) ); ?>"/>
933
+ <div class="clear"></div>
934
+ </div>
935
+ <!--/fts-facebook-feed-styles-input-wrap-->
936
+
937
+ <div class="feed-them-social-admin-input-wrap">
938
+ <div class="fts-title-description-settings-page">
939
+ <h3>
940
+ <?php esc_html_e( 'Facebook Error Message', 'feed-them-social' ); ?>
941
+ </h3>
942
+ <?php
943
+ echo sprintf(
944
+ esc_html( 'If your feed is displaying a notice or error message at times you can utilize this option to hide them from displaying. Make sure and delete the %1$sCache%2$s to see the change. %3$sNOTE: This does not hide any php warnings that may come up. To remove those go to the wp-config.php file on root of your WordPress install and set the wp_debug option to FALSE. Having that option set to TRUE is really only necessary when developing.%4$s', 'feed-them-social' ),
945
+ '<a href="' . esc_url( 'admin.php?page=feed-them-settings-page&tab=global_options' ) . '">',
946
+ '</a>',
947
+ '<p><small>',
948
+ '</small></p>'
949
+ );
950
+ ?>
951
+ </div>
952
+ <div class="feed-them-social-admin-input-label fb-error-handler-label">
953
+ <?php esc_html_e( 'Hide Error Handler Message', 'feed-them-social' ); ?>
954
+ </div>
955
+ <select name="fb_hide_error_handler_message" id="fb_hide_error_handler_message" class="feed-them-social-admin-input">
956
+ <option value="">
957
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
958
+ </option>
959
+ <option <?php echo selected( $fb_hide_error_handler_message, 'no', false ); ?> value="<?php esc_attr_e( 'no' ); ?>">
960
+ <?php esc_html_e( 'No', 'feed-them-social' ); ?>
961
+ </option>
962
+ <option <?php echo selected( $fb_hide_error_handler_message, 'yes', false ); ?> value="<?php esc_attr_e( 'yes' ); ?>">
963
+ <?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
964
+ </option>
965
+ </select>
966
+ <div class="clear"></div>
967
+ </div>
968
+ <!--/fts-facebook-feed-styles-input-wrap-->
969
+
970
+ <div class="clear"></div>
971
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php esc_html_e( 'Save All Changes' ); ?>"/>
972
+
973
+ <?php } ?>
974
+ </form>
975
+ <div class="clear"></div>
976
+ <a class="feed-them-social-admin-slick-logo" href="https://www.slickremix.com" target="_blank"></a></div>
977
+ <!--/feed-them-social-admin-wrap-->
978
+ <?php
979
+ }
980
+ }//end class
admin/class-fts-instagram-options-page.php ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - Instagram Options Page
4
+ *
5
+ * This page is used to create the general options for Instagram Feeds
6
+ * including setting access tokens.
7
+ *
8
+ * @package feedthemsocial
9
+ * @copyright Copyright (c) 2012-2018, SlickRemix
10
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
+ * @since 1.0.0
12
+ */
13
+
14
+ namespace feedthemsocial;
15
+
16
+ /**
17
+ * Class FTS Instagram Options Page
18
+ *
19
+ * @package feedthemsocial
20
+ */
21
+ class FTS_Instagram_Options_Page {
22
+
23
+ /**
24
+ * Construct
25
+ *
26
+ * Instagram Style Options Page constructor.
27
+ *
28
+ * @since 1.9.6
29
+ */
30
+ public function __construct() {
31
+ }
32
+
33
+ /**
34
+ * Feed Them Instagram Options Page
35
+ *
36
+ * @since 1.9.6
37
+ */
38
+ public function feed_them_instagram_options_page() {
39
+ $fts_instagram_access_token = get_option( 'fts_instagram_custom_api_token' );
40
+ $fts_instagram_custom_id = get_option( 'fts_instagram_custom_id' );
41
+ $fts_instagram_show_follow_btn = get_option( 'instagram_show_follow_btn' );
42
+ $fts_instagram_show_follow_btn_where = get_option( 'instagram_show_follow_btn_where' );
43
+
44
+ ?>
45
+ <div class="feed-them-social-admin-wrap">
46
+ <h1>
47
+ <?php esc_html_e( 'Instagram Feed Options', 'feed-them-social' ); ?>
48
+ </h1>
49
+ <div class="use-of-plugin">
50
+ <?php esc_html_e( 'Get your Access Token and add a follow button and position it using the options below.', 'feed-them-social' ); ?>
51
+ </div>
52
+ <!-- custom option for padding -->
53
+ <form method="post" class="fts-facebook-feed-options-form" action="options.php">
54
+ <?php
55
+ $fts_fb_options_nonce = wp_create_nonce( 'fts-instagram-options-page-nonce' );
56
+
57
+ if ( wp_verify_nonce( $fts_fb_options_nonce, 'fts-instagram-options-page-nonce' ) ) {
58
+ ?>
59
+
60
+ <div class="feed-them-social-admin-input-wrap" style="padding-top:0px; ">
61
+ <div class="fts-title-description-settings-page">
62
+ <?php
63
+ // get our registered settings from the fts functions!
64
+ settings_fields( 'fts-instagram-feed-style-options' );
65
+ ?>
66
+ <h3>
67
+ <?php esc_html_e( 'Instagram API Token', 'feed-them-social' ); ?>
68
+ </h3>
69
+ <?php
70
+
71
+ $insta_url = esc_url( 'https://api.instagram.com/v1/tags/slickremix/media/recent/?access_token=' . $fts_instagram_access_token );
72
+ // Get Data for Instagram!
73
+ $response = wp_remote_fopen( $insta_url );
74
+ // Error Check!
75
+ $test_app_token_response = json_decode( $response );
76
+ ?>
77
+ <p>
78
+ <?php
79
+ echo sprintf(
80
+ esc_html( 'This is required to make the feed work. Just click the button below and it will connect to your Instagram to get an access token, then it will return it in the input below. Then just click the save button and you will now be able to generate your Instagram feed. If the button is not working for you and can always %1$s manually create an Access Token.%2$s', 'feed-them-gallery' ),
81
+ '<a href="' . esc_url( 'https://www.slickremix.com/docs/how-to-create-instagram-access-token/' ) . '" target="_blank">',
82
+ '</a>'
83
+ );
84
+ ?>
85
+ </p>
86
+ <p>
87
+ <?php
88
+ echo sprintf(
89
+ esc_html( '%1$sLogin and get my Access Token%2$s', 'feed-them-gallery' ),
90
+ '<a href="' . esc_url( 'https://instagram.com/oauth/authorize/?client_id=da06fb6699f1497bb0d5d4234a50da75&redirect_uri=http://www.slickremix.com/instagram-token-plugin/?return_uri=' . admin_url( 'admin.php?page=fts-instagram-feed-styles-submenu-page' ) . '&response_type=token&scope=public_content' ) . '" class="fts-instagram-get-access-token">',
91
+ '</a>'
92
+ );
93
+ ?>
94
+ </p>
95
+ <a href="<?php echo esc_url( 'mailto:support@slickremix.com' ); ?>" target="_blank" class="fts-admin-button-no-work"><?php esc_html_e( 'Button not working?', 'feed-them-social' ); ?></a>
96
+ </div>
97
+
98
+ <div class="fts-clear"></div>
99
+
100
+ <div class="feed-them-social-admin-input-wrap" style="margin-bottom:0">
101
+ <div class="feed-them-social-admin-input-label fts-instagram-border-bottom-color-label">
102
+ <?php esc_html_e( 'Instagram ID', 'feed-them-social' ); ?>
103
+ </div>
104
+ <input type="text" name="fts_instagram_custom_id" class="feed-them-social-admin-input" id="fts_instagram_custom_id" value="<?php echo esc_attr( $fts_instagram_custom_id ); ?>"/>
105
+ <div class="fts-clear"></div>
106
+ </div>
107
+
108
+ <div class="feed-them-social-admin-input-wrap">
109
+ <div class="feed-them-social-admin-input-label fts-instagram-border-bottom-color-label">
110
+ <?php esc_html_e( 'Access Token Required', 'feed-them-social' ); ?>
111
+ </div>
112
+ <script>
113
+ jQuery(document).ready(function ($) {
114
+ function getQueryString(Param) {
115
+ return decodeURI(
116
+ (RegExp('[#|&]' + Param + '=' + '(.+?)(&|$)').exec(location.hash) || [, null])[1]
117
+ );
118
+ }
119
+
120
+ if (window.location.hash) {
121
+
122
+ $('select').find('option[value=5]').attr('selected', 'selected');
123
+
124
+ $('#fts_instagram_custom_api_token').val('');
125
+ $('#fts_instagram_custom_api_token').val($('#fts_instagram_custom_api_token').val() + getQueryString('access_token'));
126
+
127
+
128
+ $('#fts_instagram_custom_id').val('');
129
+ var str = getQueryString('access_token');
130
+ $('#fts_instagram_custom_id').val($('#fts_instagram_custom_id').val() + str.split('.', 1));
131
+
132
+ }
133
+ });
134
+ </script>
135
+ <input type="text" name="fts_instagram_custom_api_token" class="feed-them-social-admin-input" id="fts_instagram_custom_api_token" value="<?php echo esc_attr( $fts_instagram_access_token ); ?>"/>
136
+ <div class="fts-clear"></div>
137
+ </div>
138
+ <?php
139
+ // Error Check
140
+ // if the combined streams plugin is active we won't allow the settings page link to open up the Instagram Feed, instead we'll remove the #feed_type=instagram and just let the user manually select the combined streams or single instagram feed.
141
+ if ( is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) {
142
+ $custom_instagram_link_hash = '';
143
+ } else {
144
+ $custom_instagram_link_hash = '#feed_type=instagram';
145
+ }
146
+ if ( ! isset( $test_app_token_response->meta->error_message ) && ! isset( $test_app_token_response->error_message ) && ! empty( $fts_instagram_access_token ) || isset( $test_app_token_response->meta->error_message ) && 'This client has not been approved to access this resource.' === $test_app_token_response->meta->error_message ) {
147
+ echo sprintf(
148
+ esc_html( '%1$sYour access token is working! Generate your shortcode on the %2$sSettings Page%3$s', 'feed-them-gallery' ),
149
+ '<div class="fts-successful-api-token">',
150
+ '<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' . $custom_instagram_link_hash ) . '">',
151
+ '</a></div>'
152
+ );
153
+ } elseif ( isset( $test_app_token_response->meta->error_message ) && ! empty( $fts_instagram_access_token ) || isset( $test_app_token_response->error_message ) && ! empty( $fts_instagram_access_token ) ) {
154
+ $text = isset( $test_app_token_response->meta->error_message ) ? $test_app_token_response->meta->error_message : $test_app_token_response->error_message;
155
+ echo sprintf(
156
+ esc_html( '%1$sOh No something\'s wrong. %2$s. %3$s.', 'feed-them-gallery' ),
157
+ '<div class="fts-failed-api-token">',
158
+ esc_html( $text ),
159
+ '</div>'
160
+ );
161
+ }
162
+ if ( empty( $fts_instagram_access_token ) ) {
163
+ echo sprintf(
164
+ esc_html( '%1$sYou are required to get an access token to view your photos. Click Save all Changes after getting your Access Token.%2$s.', 'feed-them-gallery' ),
165
+ '<div class="fts-failed-api-token">',
166
+ '</div>'
167
+ );
168
+ }
169
+ ?>
170
+ <div class="fts-clear"></div>
171
+ </div>
172
+
173
+ <div class="feed-them-social-admin-input-wrap">
174
+ <div class="fts-title-description-settings-page">
175
+ <h3>
176
+ <?php esc_html_e( 'Follow Button Options', 'feed-them-social' ); ?>
177
+ </h3>
178
+ <?php esc_html_e( 'This will only show on regular feeds not combined feeds.', 'feed-them-social' ); ?>
179
+ </div>
180
+ <div class="feed-them-social-admin-input-label fts-instagram-text-color-label">
181
+ <?php esc_html_e( 'Show Follow Button', 'feed-them-social' ); ?>
182
+ </div>
183
+ <select name="instagram_show_follow_btn" id="instagram-show-follow-btn" class="feed-them-social-admin-input">
184
+ <option <?php echo selected( $fts_instagram_show_follow_btn, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
185
+ <?php esc_html_e( 'No', 'feed-them-social' ); ?>
186
+ </option>
187
+ <option <?php echo selected( $fts_instagram_show_follow_btn, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
188
+ <?php esc_html_e( 'Yes', 'feed-them-social' ); ?>
189
+ </option>
190
+ </select>
191
+ <div class="fts-clear"></div>
192
+ </div>
193
+ <!--/fts-instagram-feed-styles-input-wrap-->
194
+
195
+ <div class="feed-them-social-admin-input-wrap">
196
+ <div class="feed-them-social-admin-input-label fts-instagram-text-color-label">
197
+ <?php esc_html_e( 'Placement of the Buttons', 'feed-them-social' ); ?>
198
+ </div>
199
+ <select name="instagram_show_follow_btn_where" id="instagram-show-follow-btn-where" class="feed-them-social-admin-input">
200
+ <option>
201
+ <?php esc_html_e( 'Please Select Option', 'feed-them-social' ); ?>
202
+ </option>
203
+ <option
204
+ '<?php echo selected( $fts_instagram_show_follow_btn_where, 'instagram-follow-above', false ); ?>
205
+ '
206
+ value="<?php echo esc_attr( 'instagram-follow-above' ); ?>">
207
+ <?php esc_html_e( 'Show Above Feed', 'feed-them-social' ); ?>
208
+ </option>
209
+ <option
210
+ '<?php echo selected( $fts_instagram_show_follow_btn_where, 'instagram-follow-below', false ); ?>
211
+ '
212
+ value="<?php echo esc_attr( 'instagram-follow-below' ); ?>">
213
+ <?php esc_html_e( 'Show Below Feed', 'feed-them-social' ); ?>
214
+ </option>
215
+ </select>
216
+ <div class="fts-clear"></div>
217
+ </div>
218
+ <!--/fts-instagram-feed-styles-input-wrap-->
219
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
220
+
221
+ <div class="feed-them-social-admin-input-wrap">
222
+ <div class="fts-title-description-settings-page">
223
+ <h3>
224
+ <?php esc_html_e( 'Load More Button Styles & Options', 'feed-them-social' ); ?>
225
+ </h3>
226
+ </div>
227
+ <div class="feed-them-social-admin-input-wrap">
228
+ <div class="feed-them-social-admin-input-label fts-fb-loadmore-background-color-label">
229
+ <?php esc_html_e( 'Load More Button Color', 'feed-them-social' ); ?>
230
+ </div>
231
+ <input type="text" name="instagram_loadmore_background_color" class="feed-them-social-admin-input fb-loadmore-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="instagram-loadmore-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'instagram_loadmore_background_color' ) ); ?>"/>
232
+ <div class="fts-clear"></div>
233
+ </div>
234
+ <!--/fts-instagram-feed-styles-input-wrap-->
235
+
236
+ <div class="feed-them-social-admin-input-wrap">
237
+ <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
238
+ <?php esc_html_e( 'Load More Button Text Color', 'feed-them-social' ); ?>
239
+ </div>
240
+ <input type="text" name="instagram_loadmore_text_color" class="feed-them-social-admin-input fb-loadmore-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="instagram-loadmore-text-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'instagram_loadmore_text_color' ) ); ?>"/>
241
+ <div class="fts-clear"></div>
242
+ </div>
243
+ <!--/fts-instagram-feed-styles-input-wrap-->
244
+
245
+ <div class="feed-them-social-admin-input-wrap">
246
+ <div class="feed-them-social-admin-input-label">
247
+ <?php esc_html_e( '"Load More" Text', 'feed-them-social' ); ?>
248
+ </div>
249
+ <input type="text" name="instagram_load_more_text" class="feed-them-social-admin-input" id="instagram_load_more_text" placeholder="Load More" value="<?php echo esc_attr( get_option( 'instagram_load_more_text' ) ); ?>"/>
250
+ <div class="clear"></div>
251
+ </div>
252
+ <!--/fts-instagram-feed-styles-input-wrap-->
253
+
254
+ <div class="feed-them-social-admin-input-wrap">
255
+ <div class="feed-them-social-admin-input-label">
256
+ <?php esc_html_e( '"No More Photos" Text', 'feed-them-social' ); ?>
257
+ </div>
258
+ <input type="text" name="instagram_no_more_photos_text" class="feed-them-social-admin-input" id="instagram_no_more_photos_text" placeholder="No More Photos" value="<?php echo esc_attr( get_option( 'instagram_no_more_photos_text' ) ); ?>"/>
259
+ <div class="clear"></div>
260
+ </div>
261
+ <!--/fts-instagram-feed-styles-input-wrap-->
262
+ <?php } ?>
263
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php esc_html_e( 'Save All Changes' ); ?>"/>
264
+ <?php } ?>
265
+ </form>
266
+ </div>
267
+ <!--/feed-them-social-admin-wrap-->
268
+
269
+ <?php
270
+ }
271
+ }//end class
admin/class-fts-pinterest-options-page.php ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - Pinterest Options Page
4
+ *
5
+ * This page is used to create the general options for Pinterest Feeds
6
+ * including setting access tokens.
7
+ *
8
+ * @package feedthemsocial
9
+ * @copyright Copyright (c) 2012-2018, SlickRemix
10
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
+ * @since 1.0.0
12
+ */
13
+
14
+ namespace feedthemsocial;
15
+
16
+ /**
17
+ * Class FTS Pinterest Options Page
18
+ *
19
+ * @package feedthemsocial
20
+ * @since 1.9.6
21
+ */
22
+ class FTS_Pinterest_Options_Page {
23
+ /**
24
+ * FTS_Pinterest_Options_Page constructor.
25
+ */
26
+ public function __construct() {
27
+ }
28
+
29
+ /**
30
+ * Feed Them Pinterest Options Page
31
+ *
32
+ * @since 1.9.6
33
+ */
34
+ public function feed_them_pinterest_options_page() {
35
+ $fts_pinterest_access_token = get_option( 'fts_pinterest_custom_api_token' );
36
+ $fts_pinterest_show_follow_btn = get_option( 'pinterest_show_follow_btn' );
37
+ $fts_pinterest_show_follow_btn_where = get_option( 'pinterest_show_follow_btn_where' );
38
+ ?>
39
+ <div class="feed-them-social-admin-wrap">
40
+ <h1>
41
+ <?php echo esc_html( 'Pinterest Feed Options', 'feed-them-social' ); ?>
42
+ </h1>
43
+ <div class="use-of-plugin">
44
+ <?php echo esc_html( 'Add a follow button and position it using the options below.', 'feed-them-social' ); ?>
45
+ </div>
46
+
47
+ <!-- custom option for padding -->
48
+ <form method="post" class="fts-pinterest-feed-options-form" action="options.php">
49
+
50
+ <?php
51
+ $fts_fb_options_nonce = wp_create_nonce( 'fts-pinterest-options-page-nonce' );
52
+
53
+ if ( wp_verify_nonce( $fts_fb_options_nonce, 'fts-pinterest-options-page-nonce' ) ) {
54
+ ?>
55
+
56
+ <?php settings_fields( 'fts-pinterest-feed-style-options' ); ?>
57
+
58
+ <div class="feed-them-social-admin-input-wrap" style="padding-top:0">
59
+ <div class="fts-title-description-settings-page">
60
+ <h3>
61
+ <?php echo esc_html( 'Pinterest Access Token', 'feed-them-social' ); ?>
62
+ </h3>
63
+ <p>
64
+ <?php
65
+ echo sprintf(
66
+ esc_html( 'This is required to make the feed work. Click the button below and it will connect to your Pinterest account to get an access token, and it will return it in the input below. Then click the save button and you will now be able to generate your Pinterest feed. If you are having troubles with the button you can also get your Access Token %1$sHere%2$s.', 'feed-them-gallery' ),
67
+ '<a href="' . esc_url( 'https://www.slickremix.com/docs/how-to-create-a-pinterest-access-token/' ) . '" target="_blank">',
68
+ '</a>'
69
+ );
70
+ ?>
71
+ </p>
72
+ <p>
73
+ <?php
74
+ echo sprintf(
75
+ esc_html( '%1$sLogin and get my Access Token%2$s', 'feed-them-gallery' ),
76
+ '<a href="' . esc_url( 'https://api.pinterest.com/oauth/?response_type=token&redirect_uri=https://www.slickremix.com/pinterest-token-plugin/&client_id=4852080225414031681&scope=read_public&state=' . admin_url( 'admin.php?page=fts-pinterest-feed-styles-submenu-page' ) . '&scope=manage_pages' ) . '" class="fts-pinterest-get-access-token">',
77
+ '</a>'
78
+ );
79
+ ?>
80
+ </p>
81
+ <a href="<?php echo esc_url( 'mailto:support@slickremix.com' ); ?>" target="_blank" class="fts-admin-button-no-work"><?php echo esc_html( 'Button not working?', 'feed-them-social' ); ?></a>
82
+ </div>
83
+
84
+ <div class="fts-clear"></div>
85
+
86
+ <div class="feed-them-social-admin-input-wrap" style="margin-bottom:0;">
87
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
88
+ <?php echo esc_html( 'Access Token Required', 'feed-them-social' ); ?>
89
+ </div>
90
+ <script>
91
+ jQuery(document).ready(function ($) {
92
+ function getQueryString(Param) {
93
+ return decodeURI(
94
+ (RegExp('[#|&]' + Param + '=' + '(.+?)(&|$)').exec(location.hash) || [, null])[1]
95
+ );
96
+ }
97
+
98
+ if (window.location.hash) {
99
+ $('#fts_pinterest_custom_api_token').val('');
100
+ $('#fts_pinterest_custom_api_token').val($('#fts_pinterest_custom_api_token').val() + getQueryString('access_token'));
101
+ }
102
+ });
103
+ </script>
104
+ <input type="text" name="fts_pinterest_custom_api_token" class="feed-them-social-admin-input" id="fts_pinterest_custom_api_token" value="<?php echo esc_attr( get_option( 'fts_pinterest_custom_api_token' ) ); ?>"/>
105
+ <div class="fts-clear"></div>
106
+ </div>
107
+
108
+ <?php
109
+ // Get Data for Instagram!
110
+ $response = wp_remote_fopen( 'https://api.pinterest.com/v1/me/?access_token=' . $fts_pinterest_access_token . '&id' );
111
+ // Error Check!
112
+ $test_app_token_response = json_decode( $response );
113
+
114
+ // Error Check!
115
+ if ( ! isset( $test_app_token_response->status ) && ! empty( $fts_pinterest_access_token ) ) {
116
+ echo sprintf(
117
+ esc_html( '%1$sYour access token is working! Generate your shortcode on the %2$sSettings Page%3$s', 'feed-them-gallery' ),
118
+ '<div class="fts-successful-api-token">',
119
+ '<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' ) . '">',
120
+ '</a></div>'
121
+ );
122
+ } elseif ( isset( $test_app_token_response->status ) && ! empty( $fts_pinterest_access_token ) ) {
123
+ echo sprintf(
124
+ esc_html( '%1$sOh No something\'s wrong. %2$s. Please try again, if you are still having troulbes please contact us on our Support Forum. Make sure to include screenshots of the browser page that may come up with any errors. %3$sSupport Forum%4$s', 'feed-them-gallery' ),
125
+ '<div class="fts-failed-api-token">',
126
+ esc_html( $test_app_token_response->message ),
127
+ '<a href="' . esc_url( 'https://www.slickremix.com/support/' ) . '">',
128
+ '</a></div>'
129
+ );
130
+ }
131
+ if ( empty( $fts_pinterest_access_token ) ) {
132
+ echo sprintf(
133
+ esc_html( 'You are required to get an access token to view your any of the Pinterest Feeds. Click "Save All Changes" after getting your Access Token.', 'feed-them-gallery' ),
134
+ '<div class="fts-failed-api-token">',
135
+ '</div>'
136
+ );
137
+ }
138
+ ?>
139
+
140
+ <div class="fts-clear"></div>
141
+ </div>
142
+ <!--/fts-pinterest-feed-styles-input-wrap-->
143
+
144
+ <div class="feed-them-social-admin-input-wrap">
145
+ <div class="fts-title-description-settings-page">
146
+ <h3>
147
+ <?php echo esc_html( 'Follow Button Options', 'feed-them-social' ); ?>
148
+ </h3>
149
+ <?php echo esc_html( 'This will only show on regular feeds not combined feeds.', 'feed-them-social' ); ?>
150
+ </div>
151
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label"><?php echo esc_html( 'Show Follow Button', 'feed-them-social' ); ?></div>
152
+
153
+ <select name="pinterest_show_follow_btn" id="pinterest-show-follow-btn" class="feed-them-social-admin-input">
154
+ <option <?php echo selected( $fts_pinterest_show_follow_btn, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
155
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
156
+ </option>
157
+ <option <?php echo selected( $fts_pinterest_show_follow_btn, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
158
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
159
+ </option>
160
+ </select>
161
+
162
+ <div class="fts-clear"></div>
163
+ </div><!--/fts-twitter-feed-styles-input-wrap-->
164
+
165
+ <div class="feed-them-social-admin-input-wrap">
166
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label"><?php echo esc_html( 'Placement of the Buttons', 'feed-them-social' ); ?></div>
167
+
168
+ <select name="pinterest_show_follow_btn_where" id="pinterest-show-follow-btn-where" class="feed-them-social-admin-input">
169
+ <option>
170
+ <?php echo esc_html( 'Please Select Option', 'feed-them-social' ); ?>
171
+ </option>
172
+ <option <?php echo selected( $fts_pinterest_show_follow_btn_where, 'pinterest-follow-above', false ); ?> value="<?php echo esc_attr( 'pinterest-follow-above' ); ?>">
173
+ <?php echo esc_html( 'Show Above Feed', 'feed-them-social' ); ?>
174
+ </option>
175
+ <option <?php echo selected( $fts_pinterest_show_follow_btn_where, 'pinterest-follow-below', false ); ?> value="<?php echo esc_attr( 'pinterest-follow-below' ); ?>">
176
+ <?php echo esc_html( 'Show Below Feed', 'feed-them-social' ); ?>
177
+ </option>
178
+ </select>
179
+
180
+ <div class="fts-clear"></div>
181
+ </div><!--/fts-twitter-feed-styles-input-wrap-->
182
+
183
+ <div class="feed-them-social-admin-input-wrap">
184
+ <div class="fts-title-description-settings-page">
185
+ <h3>
186
+ <?php echo esc_html( 'Boards List Style Options', 'feed-them-social' ); ?>
187
+ </h3>
188
+ <?php
189
+ echo sprintf(
190
+ esc_html( 'These styles are for the list of Boards type feed %1$sSeen Here%2$s', 'feed-them-gallery' ),
191
+ '<a href="' . esc_url( 'https://feedthemsocial.com/pinterest/' ) . '">',
192
+ '</a>'
193
+ );
194
+ ?>
195
+ </div>
196
+ <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
197
+ <?php echo esc_html( 'Board Title Color', 'feed-them-social' ); ?>
198
+ </div>
199
+ <input type="text" name="pinterest_board_title_color" class="feed-them-social-admin-input fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="pinterest_board_title_color" placeholder="#555555" value="<?php echo esc_attr( get_option( 'pinterest_board_title_color' ) ); ?>"/>
200
+ <div class="fts-clear"></div>
201
+ </div>
202
+ <!--/fts-facebook-feed-styles-input-wrap-->
203
+ <div class="feed-them-social-admin-input-wrap">
204
+ <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
205
+ <?php echo esc_html( 'Board Title Size', 'feed-them-social' ); ?>
206
+ </div>
207
+ <input type="text" name="pinterest_board_title_size" class="feed-them-social-admin-input" placeholder="16px" value="<?php echo esc_attr( get_option( 'pinterest_board_title_size' ) ); ?>"/>
208
+ <div class="fts-clear"></div>
209
+ </div>
210
+ <!--/fts-facebook-feed-styles-input-wrap-->
211
+ <div class="feed-them-social-admin-input-wrap">
212
+ <div class="feed-them-social-admin-input-label fts-fb-link-color-label">
213
+ <?php echo esc_html( 'Background on Hover', 'feed-them-social' ); ?>
214
+ </div>
215
+ <input type="text" name="pinterest_board_backg_hover_color" class="feed-them-social-admin-input fb-link-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="pinterest_board_backg_hover_color" placeholder="#FFF" value="<?php echo esc_attr( get_option( 'pinterest_board_backg_hover_color' ) ); ?>"/>
216
+ <div class="fts-clear"></div>
217
+ </div>
218
+ <!--/fts-facebook-feed-styles-input-wrap-->
219
+
220
+ <div class="fts-clear"></div>
221
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php echo esc_html( 'Save All Changes' ); ?>"/>
222
+ <?php } ?>
223
+ </form>
224
+ </div>
225
+ <!--/feed-them-social-admin-wrap-->
226
+
227
+ <?php
228
+ }
229
+ }//end class
admin/class-fts-settings-page-options.php ADDED
@@ -0,0 +1,4990 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - Settings Options
4
+ *
5
+ * This class is used for the settings options on the settiings page
6
+ *
7
+ * @package feedthemsocial
8
+ * @copyright Copyright (c) 2012-2018, SlickRemix
9
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+ * @since 1.0.0
11
+ */
12
+
13
+ namespace feedthemsocial;
14
+
15
+ class FTS_Settings_Page_Options {
16
+ /**
17
+ * Construct
18
+ *
19
+ * FTS_Settings_Page_Options constructor.
20
+ *
21
+ * @since 1.9.6
22
+ */
23
+ public function __construct() {
24
+ }
25
+
26
+ public function settings_page_options ($facebookReviewsTokenCheck, $limitforpremium, $step2_custom_message){
27
+ $feed_settings_array = array(
28
+
29
+ // ******************************************
30
+ // Combine Streams Feed
31
+ // ******************************************
32
+ 'combine_streams' => array(
33
+ 'shorcode_label' => 'mashup',
34
+ 'section_attr_key' => 'combine_',
35
+ 'section_title' => __( 'Combine Streams Shortcode Generator', 'feed-them-social' ),
36
+ 'section_wrap_class' => 'fts-combine-steams-shortcode-form',
37
+ // Form Info
38
+ 'form_wrap_classes' => 'combine-steams-shortcode-form',
39
+ 'form_wrap_id' => 'fts-combine-steams-form',
40
+
41
+ // Feed Type Selection
42
+ 'feed_type_select' => array(
43
+ 'label' => __( 'Feeds To Combine', 'feed-them-social' ),
44
+ 'select_wrap_classes' => 'fts-combine-steams-selector',
45
+ 'select_classes' => '',
46
+ 'select_name' => 'combine-steams-selector',
47
+ 'select_id' => 'combine-steams-selector',
48
+ ),
49
+
50
+ // Feed Types and their options
51
+ 'feeds_types' => array(
52
+
53
+ // All Feeds (1 of each for now)
54
+ 1 => array(
55
+ 'value' => 'all',
56
+ 'title' => __( 'All Feeds', 'feed-them-social' ),
57
+ ),
58
+
59
+ // All Feeds (1 of each for now)
60
+ 2 => array(
61
+ 'value' => 'multiple_facebook',
62
+ 'title' => __( 'Multiple Facebook Feeds', 'feed-them-social' ),
63
+ ),
64
+ ),
65
+ 'premium_msg_boxes' => array(
66
+ 'main_select' => [
67
+ 'req_plugin' => 'combine_streams',
68
+ 'msg' => 'With this extension you can mix a Facebook, Instagram, Twitter, Youtube and Pinterest posts all in one feed. The other feature this exentsion gives you is the abillity to mix multiple Facebook accounts into one feed!
69
+ <a href="http://feedthemsocial.com/feed-them-social-combined-streams/" target="_blank">View Combined Streams Demo</a> . <a href="http://feedthemsocial.com/feed-them-social-combined-streams/#combined-fb-streams" target="_blank">View Combined Facebook Streams Demo</a>',
70
+ ],
71
+ ),
72
+ 'short_attr_final' => 'yes',
73
+
74
+ // Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
75
+ 'main_options' => array(
76
+
77
+ // Combined Total # of Posts
78
+ array(
79
+ 'grouped_options_title' => __( 'Combined Stream', 'feed-them-social' ),
80
+ 'option_type' => 'input',
81
+ 'label' => __( 'Combined Total # of Posts', 'feed-them-social' ),
82
+ 'type' => 'text',
83
+ 'id' => 'combine_post_count',
84
+ 'name' => 'combine_post_count',
85
+ 'value' => '',
86
+ 'placeholder' => __( '6 is the default number', 'feed-them-social' ),
87
+ 'req_plugin' => 'combine_streams',
88
+
89
+ // Relative to JS.
90
+ 'short_attr' => array(
91
+ 'attr_name' => 'posts',
92
+ 'var_final_if' => 'yes',
93
+ 'empty_error' => 'set',
94
+ 'empty_error_value' => 'posts=6',
95
+ ),
96
+ ),
97
+
98
+ // # of Posts per Social Network
99
+ array(
100
+ 'option_type' => 'input',
101
+ 'input_wrap_class' => 'combine_social_network_post_count',
102
+ 'label' => __( '# of Posts per Social Network', 'feed-them-social' ) . '<br/><small>' . __( 'NOT the combined total', 'feed-them-social' ) . '</small>',
103
+ 'type' => 'text',
104
+
105
+ // 'instructional-text' => __('', 'feed-them-social'),
106
+ 'id' => 'combine_social_network_post_count',
107
+ 'name' => 'combine_social_network_post_count',
108
+ 'value' => '',
109
+ 'placeholder' => __( '1 is the default number', 'feed-them-social' ),
110
+ 'req_plugin' => 'combine_streams',
111
+
112
+ // Relative to JS.
113
+ 'short_attr' => array(
114
+ 'attr_name' => 'social_network_posts',
115
+ 'var_final_if' => 'yes',
116
+ 'empty_error' => 'set',
117
+ 'empty_error_value' => 'social_network_posts=1',
118
+ ),
119
+ ),
120
+
121
+ // Facebook Amount of words
122
+ array(
123
+ 'option_type' => 'input',
124
+ 'label' => __( 'Amount of words per post', 'feed-them-social' ) . '<br/><small>' . __( 'Type 0 to remove the posts description', 'feed-them-social' ) . '</small>',
125
+ 'type' => 'text',
126
+ 'id' => 'combine_word_count_option',
127
+ 'name' => 'combine_word_count_option',
128
+ 'placeholder' => '45 ' . __( 'is the default number', 'feed-them-social' ),
129
+ 'value' => '',
130
+ 'req_plugin' => 'combine_streams',
131
+
132
+ // Relative to JS.
133
+ 'short_attr' => array(
134
+ 'attr_name' => 'words',
135
+ 'empty_error' => 'set',
136
+ 'empty_error_value' => 'words=45',
137
+ ),
138
+ ),
139
+
140
+ // Center Container
141
+ array(
142
+ 'option_type' => 'select',
143
+ 'label' => __( 'Center Feed Container', 'feed-them-social' ),
144
+ 'type' => 'text',
145
+ 'id' => 'combine_container_position',
146
+ 'name' => 'combine_container_position',
147
+ 'options' => array(
148
+ 1 => array(
149
+ 'label' => __( 'Yes', 'feed-them-social' ),
150
+ 'value' => 'yes',
151
+ ),
152
+ 2 => array(
153
+ 'label' => __( 'No', 'feed-them-social' ),
154
+ 'value' => 'no',
155
+ ),
156
+ ),
157
+ 'req_plugin' => 'combine_streams',
158
+ 'short_attr' => array(
159
+ 'attr_name' => 'center_container',
160
+ ),
161
+ ),
162
+
163
+ // Page Fixed Height
164
+ array(
165
+ 'input_wrap_class' => 'combine_height',
166
+ 'option_type' => 'input',
167
+ 'label' => __( 'Feed Fixed Height', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank for auto height', 'feed-them-social' ) . '</small>',
168
+ 'type' => 'text',
169
+ 'id' => 'combine_height',
170
+ 'name' => 'combine_height',
171
+ 'value' => '',
172
+ 'req_plugin' => 'combine_streams',
173
+ 'placeholder' => '450px ' . __( 'for example', 'feed-them-social' ),
174
+
175
+ // Relative to JS.
176
+ 'short_attr' => array(
177
+ 'attr_name' => 'height',
178
+ 'var_final_if' => 'yes',
179
+ 'empty_error' => 'set',
180
+ 'empty_error_value' => '',
181
+ ),
182
+ ),
183
+
184
+ // Background Color
185
+ array(
186
+ 'option_type' => 'input',
187
+ 'color_picker' => 'yes',
188
+ 'input_wrap_class' => 'combine_background_color',
189
+ 'label' => __( 'Background Color', 'feed-them-social' ),
190
+ 'type' => 'text',
191
+ 'id' => 'combine_background_color',
192
+ 'name' => 'combine_background_color', // Relative to JS.
193
+ 'req_plugin' => 'combine_streams',
194
+ 'short_attr' => array(
195
+ 'attr_name' => 'background_color',
196
+ 'var_final_if' => 'yes',
197
+ 'empty_error' => 'set',
198
+ 'empty_error_value' => '',
199
+ ),
200
+ ),
201
+
202
+ // Social Icon
203
+ array(
204
+ 'input_wrap_class' => 'combine_show_social_icon',
205
+ 'option_type' => 'select',
206
+ 'label' => __( 'Show Social Icon', 'feed-them-social' ) . '<br/><small>' . __( 'Right, Left or No', 'feed-them-social' ) . '</small>',
207
+ 'type' => 'text',
208
+ 'id' => 'combine_show_social_icon',
209
+ 'name' => 'combine_show_social_icon',
210
+ 'req_plugin' => 'combine_streams',
211
+ 'options' => array(
212
+ array(
213
+ 'label' => __( 'Right', 'feed-them-social' ),
214
+ 'value' => 'right',
215
+ ),
216
+ array(
217
+ 'label' => __( 'Left', 'feed-them-social' ),
218
+ 'value' => 'left',
219
+ ),
220
+ array(
221
+ 'label' => __( 'No', 'feed-them-social' ),
222
+ 'value' => 'no',
223
+ ),
224
+ ),
225
+ 'short_attr' => array(
226
+ 'attr_name' => 'show_social_icon',
227
+ ),
228
+ ),
229
+
230
+ // Show Description below image or video Name
231
+ array(
232
+ 'input_wrap_class' => 'combine_show_media',
233
+ 'option_type' => 'select',
234
+ 'label' => __( 'Show Image/Video', 'feed-them-social' ) . '<br/><small>' . __( 'Bottom (default) or Top of Post', 'feed-them-social' ) . '</small>',
235
+ 'type' => 'text',
236
+ 'id' => 'combine_show_media',
237
+ 'name' => 'combine_show_media',
238
+ 'req_plugin' => 'combine_streams',
239
+ 'options' => array(
240
+ array(
241
+ 'label' => __( 'Below Username, Date & Description', 'feed-them-social' ),
242
+ 'value' => 'bottom',
243
+ ),
244
+ array(
245
+ 'label' => __( 'Above Username, Date & Description', 'feed-them-social' ),
246
+ 'value' => 'top',
247
+ ),
248
+ ),
249
+ 'short_attr' => array(
250
+ 'attr_name' => 'show_media',
251
+ ),
252
+ ), // Show Username
253
+ array(
254
+ 'input_wrap_class' => 'combine_hide_date',
255
+ 'option_type' => 'select',
256
+ 'label' => __( 'Show Username', 'feed-them-social' ) . '<br/><small>' . __( 'Yes or No', 'feed-them-social' ) . '</small>',
257
+ 'type' => 'text',
258
+ 'id' => 'combine_hide_date',
259
+ 'name' => 'combine_hide_date',
260
+ 'req_plugin' => 'combine_streams',
261
+ 'options' => array(
262
+ array(
263
+ 'label' => __( 'Yes', 'feed-them-social' ),
264
+ 'value' => 'yes',
265
+ ),
266
+ array(
267
+ 'label' => __( 'No', 'feed-them-social' ),
268
+ 'value' => 'no',
269
+ ),
270
+ ),
271
+ 'short_attr' => array(
272
+ 'attr_name' => 'show_date',
273
+ ),
274
+ ),
275
+
276
+ // Show Date
277
+ array(
278
+ 'input_wrap_class' => 'combine_hide_name',
279
+ 'option_type' => 'select',
280
+ 'label' => __( 'Show Date', 'feed-them-social' ) . '<br/><small>' . __( 'Yes or No', 'feed-them-social' ) . '</small>',
281
+ 'type' => 'text',
282
+ 'id' => 'combine_hide_name',
283
+ 'name' => 'combine_hide_name',
284
+ 'req_plugin' => 'combine_streams',
285
+ 'options' => array(
286
+ array(
287
+ 'label' => __( 'Yes', 'feed-them-social' ),
288
+ 'value' => 'yes',
289
+ ),
290
+ array(
291
+ 'label' => __( 'No', 'feed-them-social' ),
292
+ 'value' => 'no',
293
+ ),
294
+ ),
295
+ 'short_attr' => array(
296
+ 'attr_name' => 'show_name',
297
+ ),
298
+ ),
299
+
300
+ // Padding
301
+ array(
302
+ 'option_type' => 'input',
303
+ 'input_wrap_class' => 'combine_padding',
304
+ 'label' => __( 'Padding', 'feed-them-social' ),
305
+ 'type' => 'text',
306
+ 'id' => 'combine_padding',
307
+ 'name' => 'combine_padding',
308
+ 'req_plugin' => 'combine_streams',
309
+
310
+ // Relative to JS.
311
+ 'short_attr' => array(
312
+ 'attr_name' => 'padding',
313
+ 'var_final_if' => 'yes',
314
+ 'empty_error' => 'set',
315
+ 'empty_error_value' => '',
316
+ ),
317
+ ),
318
+
319
+ // Combine Facebook
320
+ array(
321
+ 'grouped_options_title' => __( 'Facebook', 'feed-them-social' ),
322
+ 'option_type' => 'select',
323
+ 'label' => __( 'Combine Facebook', 'feed-them-social' ),
324
+ 'type' => 'text',
325
+ 'id' => 'combine_facebook',
326
+ 'name' => 'combine_facebook',
327
+ 'options' => array(
328
+ array(
329
+ 'label' => __( 'No', 'feed-them-social' ),
330
+ 'value' => 'no',
331
+ ),
332
+ array(
333
+ 'label' => __( 'Yes', 'feed-them-social' ),
334
+ 'value' => 'yes',
335
+ ),
336
+ ),
337
+ 'req_plugin' => 'combine_streams',
338
+ 'short_attr' => array(
339
+ 'attr_name' => '',
340
+ 'empty_error_value' => '',
341
+ 'no_attribute' => 'yes',
342
+ 'ifs' => 'combine_facebook',
343
+ ),
344
+ 'sub_options' => array(
345
+ 'sub_options_wrap_class' => 'main-combine-facebook-wrap',
346
+ ),
347
+ ),
348
+
349
+ // Combine Facebook ID
350
+ array(
351
+ 'option_type' => 'input',
352
+ 'input_wrap_class' => 'combine_facebook_name',
353
+ 'label' => __( 'Facebook ID or Name', 'feed-them-social' ),
354
+ 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">Facebook Options</a> page. If that is in place your page ID should appear in the input below.',
355
+ 'type' => 'text',
356
+ 'id' => 'combine_facebook_name',
357
+ 'name' => 'combine_facebook_name',
358
+ 'req_plugin' => 'combine_streams',
359
+
360
+ // Relative to JS.
361
+ 'short_attr' => array(
362
+ 'attr_name' => 'facebook_name',
363
+ 'var_final_if' => 'yes',
364
+ 'empty_error' => 'set',
365
+ 'empty_error_value' => '',
366
+ ),
367
+ 'sub_options' => array(
368
+ 'sub_options_wrap_class' => 'combine-facebook-wrap',
369
+ ),
370
+ 'sub_options_end' => true,
371
+ ),
372
+
373
+ // Combine Twitter
374
+ array(
375
+ 'grouped_options_title' => __( 'Twitter', 'feed-them-social' ),
376
+ 'option_type' => 'select',
377
+ 'label' => __( 'Combine Twitter', 'feed-them-social' ),
378
+ 'type' => 'text',
379
+ 'id' => 'combine_twitter',
380
+ 'name' => 'combine_twitter',
381
+ 'req_plugin' => 'combine_streams',
382
+ 'options' => array(
383
+ array(
384
+ 'label' => __( 'No', 'feed-them-social' ),
385
+ 'value' => 'no',
386
+ ),
387
+ array(
388
+ 'label' => __( 'Yes', 'feed-them-social' ),
389
+ 'value' => 'yes',
390
+ ),
391
+ ),
392
+ 'short_attr' => array(
393
+ 'attr_name' => '',
394
+ 'empty_error_value' => '',
395
+ 'no_attribute' => 'yes',
396
+ ),
397
+ 'sub_options' => array(
398
+ 'sub_options_wrap_class' => 'main-combine-twitter-wrap',
399
+ ),
400
+ ),
401
+
402
+ // Feed Type Selection
403
+ array(
404
+ 'option_type' => 'select',
405
+ 'label' => __( 'Feed Type', 'feed-them-social' ),
406
+ 'select_wrap_classes' => 'combine-twitter-gen-selection',
407
+ 'select_classes' => '',
408
+ 'name' => 'combine-twitter-messages-selector',
409
+ 'id' => 'combine-twitter-messages-selector',
410
+ 'req_plugin' => 'combine_streams',
411
+
412
+ // Feed Types and their options
413
+ 'options' => array(
414
+
415
+ // User Feed
416
+ array(
417
+ 'value' => 'user',
418
+ 'label' => __( 'User Feed', 'feed-them-social' ),
419
+ ),
420
+
421
+ // hastag Feed
422
+ array(
423
+ 'value' => 'hashtag',
424
+ 'label' => __( 'Hashtag, Search and more Feed', 'feed-them-social' ),
425
+ ),
426
+ ),
427
+ 'short_attr' => array(
428
+ 'attr_name' => '',
429
+ 'empty_error_value' => '',
430
+ 'no_attribute' => 'yes',
431
+ ),
432
+ 'sub_options' => array(
433
+ 'sub_options_wrap_class' => 'combine-twitter-wrap',
434
+ ),
435
+ ),
436
+
437
+ // 'short_attr_final' => 'yes',
438
+ // Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
439
+ // Twitter Search Name
440
+ array(
441
+ 'option_type' => 'input',
442
+ 'input_wrap_class' => 'combine_twitter_hashtag_etc_name',
443
+ 'label' => __( 'Twitter Search Name (required)', 'feed-them-social' ),
444
+ 'type' => 'text',
445
+ 'id' => 'combine_twitter_hashtag_etc_name',
446
+ 'name' => 'combine_twitter_hashtag_etc_name',
447
+ 'value' => '',
448
+
449
+ // Relative to JS.
450
+ 'short_attr' => array(
451
+ 'attr_name' => 'search',
452
+ 'var_final_if' => 'yes',
453
+ 'empty_error' => 'set',
454
+ 'empty_error_value' => '',
455
+ 'empty_error_if' => array(
456
+ 'attribute' => 'select#combine-twitter-messages-selector',
457
+ 'operator' => '==',
458
+ 'value' => 'hashtag',
459
+ ),
460
+ ),
461
+ 'req_plugin' => 'combine_streams',
462
+
463
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
464
+ 'sub_options' => array(
465
+ 'sub_options_wrap_class' => 'combine-twitter-hashtag-etc-wrap',
466
+ 'sub_options_title' => __( 'Twitter Search', 'feed-them-social' ),
467
+ ),
468
+ 'sub_options_end' => true,
469
+ ),
470
+
471
+ // Twitter Name
472
+ array(
473
+ 'option_type' => 'input',
474
+ 'input_wrap_class' => 'combine_twitter_name',
475
+ 'label' => __( 'Twitter Name', 'feed-them-social' ),
476
+ 'type' => 'text',
477
+ 'id' => 'combine_twitter_name',
478
+ 'name' => 'combine_twitter_name',
479
+ 'instructional-text' => '<span class="must-copy-twitter-name">' . __( 'You must copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/how-to-get-your-twitter-name/" target="_blank">' . __( 'Twitter Name', 'feed-them-social' ) . '</a> ' . __( 'and paste it in the first input below.', 'feed-them-social' ) . '</span>',
480
+ 'value' => '',
481
+
482
+ // Relative to JS.
483
+ 'short_attr' => array(
484
+ 'attr_name' => 'twitter_name',
485
+ 'var_final_if' => 'yes',
486
+ 'empty_error' => 'set',
487
+ 'empty_error_value' => '',
488
+ 'empty_error_if' => array(
489
+ 'attribute' => 'select#combine-twitter-messages-selector',
490
+ 'operator' => '==',
491
+ 'value' => 'user',
492
+ ),
493
+ ),
494
+ 'req_plugin' => 'combine_streams',
495
+ 'sub_options_end' => 2,
496
+ ),
497
+
498
+ // Combine Instagram
499
+ array(
500
+ 'grouped_options_title' => __( 'Instagram', 'feed-them-social' ),
501
+ 'option_type' => 'select',
502
+ 'label' => __( 'Combine Instagram', 'feed-them-social' ),
503
+ 'type' => 'text',
504
+ 'id' => 'combine_instagram',
505
+ 'name' => 'combine_instagram',
506
+ 'options' => array(
507
+ 1 => array(
508
+ 'label' => __( 'No', 'feed-them-social' ),
509
+ 'value' => 'no',
510
+ ),
511
+ 2 => array(
512
+ 'label' => __( 'Yes', 'feed-them-social' ),
513
+ 'value' => 'yes',
514
+ ),
515
+ ),
516
+ 'req_plugin' => 'combine_streams',
517
+ 'short_attr' => array(
518
+ 'attr_name' => '',
519
+ 'empty_error_value' => '',
520
+ 'no_attribute' => 'yes',
521
+ ),
522
+ 'sub_options' => array(
523
+ 'sub_options_wrap_class' => 'main-combine-instagram-wrap',
524
+ ),
525
+ ),
526
+
527
+ // Instagram Type
528
+ array(
529
+ 'input_wrap_class' => 'combine_instagram_type',
530
+ 'option_type' => 'select',
531
+ 'label' => __( 'Instagram Type', 'feed-them-social' ),
532
+ 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-instagram-feed-styles-submenu-page" target="_blank">Instagram Options</a>.',
533
+ 'type' => 'text',
534
+ 'id' => 'combine_instagram_type',
535
+ 'name' => 'combine_instagram_type',
536
+ 'options' => array(
537
+
538
+ // User Feed
539
+ array(
540
+ 'value' => 'user',
541
+ 'label' => __( 'User Feed', 'feed-them-social' ),
542
+ ),
543
+
544
+ // hastag Feed
545
+ array(
546
+ 'value' => 'hashtag',
547
+ 'label' => __( 'Hashtag Feed', 'feed-them-social' ),
548
+ ),
549
+
550
+ // location Feed
551
+ array(
552
+ 'value' => 'location',
553
+ 'label' => __( 'Location Feed', 'feed-them-social' ),
554
+ ),
555
+ ),
556
+ 'req_plugin' => 'combine_streams',
557
+ 'short_attr' => array(
558
+ 'attr_name' => 'instagram_type',
559
+ 'ifs' => 'combine_instagram',
560
+ ),
561
+ 'sub_options' => array(
562
+ 'sub_options_wrap_class' => 'combine-instagram-wrap',
563
+ ),
564
+ ),
565
+
566
+ // Combine Convert Instagram Name
567
+ // array(
568
+ // 'option_type' => 'input',
569
+ // 'input_wrap_class' => 'combine-instagram-id-option-wrap',
570
+ // 'label' => __('Convert Instagram Name to ID', 'feed-them-social'),
571
+ // 'type' => 'text',
572
+ // 'id' => 'combine_convert_instagram_username',
573
+ // 'name' => 'combine_convert_instagram_username',
574
+ // 'instructional-text' => __('You must copy your <a href="https://www.slickremix.com/how-to-get-your-instagram-name-and-convert-to-id/" target="_blank">Instagram Name</a> and paste it in the first input below', 'feed-them-social'),
575
+ // 'req_plugin' => 'combine_streams',
576
+ // Relative to JS.
577
+ // 'short_attr' => array(
578
+ // 'attr_name' => '',
579
+ // 'ifs' => 'combine_instagram',
580
+ // 'no_attribute' => 'yes'
581
+ // ),
582
+ // ),
583
+ // Instagram ID
584
+ array(
585
+ 'option_type' => 'input',
586
+
587
+ // 'input_wrap_class' => 'combine_instagram_name',
588
+ 'label' => array(
589
+ 1 => array(
590
+ 'text' => __( 'Instagram ID # (required)', 'feed-them-social' ),
591
+ 'class' => 'combine-instagram-user-option-text',
592
+ ),
593
+ 2 => array(
594
+ 'text' => __( 'Hashtag (required)', 'feed-them-social' ),
595
+ 'class' => 'combine-instagram-hashtag-option-text',
596
+ ),
597
+ 3 => array(
598
+ 'text' => __( 'Location ID (required)', 'feed-them-social' ),
599
+ 'class' => 'combine-instagram-location-option-text',
600
+ ),
601
+ ),
602
+ 'type' => 'text',
603
+ 'id' => 'combine_instagram_name',
604
+ 'name' => 'combine_instagram_name',
605
+ 'required' => 'combine_streams',
606
+ 'instructional-text' => array(
607
+ 1 => array(
608
+ 'text' => __( '<div class="fts-insta-info-plus-wrapper">If your Access Token is set on the Instagram Options page of our plugin your ID should appear below.</div>', 'feed-them-social' ),
609
+ 'class' => 'combine-instagram-user-option-text',
610
+ ),
611
+ 2 => array(
612
+ 'text' => __( 'Add your Hashtag below. Do not add the #, just the name.', 'feed-them-social' ),
613
+ 'class' => 'combine-instagram-hashtag-option-text',
614
+ ),
615
+ 3 => array(
616
+ 'text' => __( '<strong>NOTE:</strong> The post count may not count proper in some location instances because private instagram photos are in the mix. We cannot pull private accounts photos in any location feed. Add your Location ID below.', 'feed-them-social' ),
617
+ 'class' => 'combine-instagram-location-option-text',
618
+ ),
619
+ ),
620
+
621
+ // Relative to JS.
622
+ 'short_attr' => array(
623
+ 'attr_name' => 'instagram_name',
624
+ 'ifs' => 'combine_instagram',
625
+ 'var_final_if' => 'no',
626
+ 'empty_error' => 'set',
627
+ 'empty_error_value' => '',
628
+ ),
629
+ 'sub_options_end' => 2,
630
+ ),
631
+
632
+ // Combine Pinterest
633
+ array(
634
+ 'grouped_options_title' => __( 'Pinterest', 'feed-them-social' ),
635
+ 'option_type' => 'select',
636
+ 'label' => __( 'Combine Pinterest', 'feed-them-social' ),
637
+ 'type' => 'text',
638
+ 'id' => 'combine_pinterest',
639
+ 'name' => 'combine_pinterest',
640
+ 'options' => array(
641
+ array(
642
+ 'label' => __( 'No', 'feed-them-social' ),
643
+ 'value' => 'no',
644
+ ),
645
+ array(
646
+ 'label' => __( 'Yes', 'feed-them-social' ),
647
+ 'value' => 'yes',
648
+ ),
649
+ ),
650
+ 'req_plugin' => 'combine_streams',
651
+ 'short_attr' => array(
652
+ 'attr_name' => '',
653
+ 'empty_error_value' => '',
654
+ 'no_attribute' => 'yes',
655
+ ),
656
+ 'sub_options' => array(
657
+ 'sub_options_wrap_class' => 'main-combine-pinterest-wrap',
658
+ ),
659
+ ),
660
+
661
+ // Pinterest Type
662
+ array(
663
+ 'input_wrap_class' => 'combine_pinterest_type',
664
+ 'option_type' => 'select',
665
+ 'label' => __( 'Pinterest Type', 'feed-them-social' ),
666
+ 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-pinterest-feed-styles-submenu-page" target="_blank">Pinterest Options</a> page then copy your <a href="https://www.slickremix.com/how-to-get-your-pinterest-name/" target="_blank">Pinterest and or Board Name</a> and paste them below based on your selection. A users board list is not available in this feed.',
667
+ 'type' => 'text',
668
+ 'id' => 'combine_pinterest_type',
669
+ 'name' => 'combine_pinterest_type',
670
+ 'options' => array(
671
+
672
+ // Single Board Pins
673
+ array(
674
+ 'label' => __( 'Latest Pins from a User', 'feed-them-social' ),
675
+ 'value' => 'pins_from_user',
676
+ ),
677
+
678
+ // Single Board Pins
679
+ array(
680
+ 'label' => __( 'Pins From a Specific Board', 'feed-them-social' ),
681
+ 'value' => 'single_board_pins',
682
+ ),
683
+ ),
684
+ 'req_plugin' => 'combine_streams',
685
+ 'short_attr' => array(
686
+ 'attr_name' => 'pinterest_type',
687
+ 'ifs' => 'combine_pinterest',
688
+ ),
689
+ 'sub_options' => array(
690
+ 'sub_options_wrap_class' => 'combine-pinterest-wrap',
691
+ ),
692
+ ),
693
+
694
+ // Pinterest Name
695
+ array(
696
+ 'option_type' => 'input',
697
+ 'input_wrap_class' => 'combine_pinterest_name',
698
+ 'label' => __( 'Pinterest Name', 'feed-them-social' ),
699
+ 'type' => 'text',
700
+ 'id' => 'combine_pinterest_name',
701
+ 'name' => 'combine_pinterest_name',
702
+ 'req_plugin' => 'combine_streams',
703
+
704
+ // Relative to JS.
705
+ 'short_attr' => array(
706
+ 'attr_name' => 'pinterest_name',
707
+ 'ifs' => 'combine_pinterest',
708
+ 'var_final_if' => 'yes',
709
+ 'empty_error' => 'set',
710
+ 'empty_error_value' => '',
711
+ ),
712
+ ),
713
+
714
+ // Pinterest Board ID
715
+ array(
716
+ 'option_type' => 'input',
717
+ 'input_wrap_class' => 'combine_board_id',
718
+ 'label' => __( 'Pinterest Board ID', 'feed-them-social' ),
719
+ 'type' => 'text',
720
+ 'id' => 'combine_board_id',
721
+ 'name' => 'combine_board_id',
722
+ 'req_plugin' => 'combine_streams',
723
+
724
+ // Relative to JS.
725
+ 'short_attr' => array(
726
+ 'attr_name' => 'board_id',
727
+ 'ifs' => 'pinterest_single_board_pins',
728
+ ),
729
+ 'sub_options_end' => 2,
730
+ ),
731
+
732
+ // Combine Youtube
733
+ array(
734
+ 'grouped_options_title' => __( 'Youtube', 'feed-them-social' ),
735
+ 'option_type' => 'select',
736
+ 'label' => __( 'Combine Youtube', 'feed-them-social' ),
737
+ 'type' => 'text',
738
+ 'id' => 'combine_youtube',
739
+ 'name' => 'combine_youtube',
740
+ 'options' => array(
741
+ array(
742
+ 'label' => __( 'No', 'feed-them-social' ),
743
+ 'value' => 'no',
744
+ ),
745
+ array(
746
+ 'label' => __( 'Yes', 'feed-them-social' ),
747
+ 'value' => 'yes',
748
+ ),
749
+ ),
750
+ 'req_plugin' => 'combine_streams',
751
+ 'short_attr' => array(
752
+ 'attr_name' => '',
753
+ 'empty_error_value' => '',
754
+ 'no_attribute' => 'yes',
755
+ ),
756
+ 'sub_options' => array(
757
+ 'sub_options_wrap_class' => 'main-combine-youtube-wrap',
758
+ ),
759
+ ),
760
+
761
+ // Youtube Type
762
+ array(
763
+ 'input_wrap_class' => 'combine_youtube_type',
764
+ 'option_type' => 'select',
765
+ 'label' => __( 'Youtube Type', 'feed-them-social' ),
766
+ 'type' => 'text',
767
+ 'id' => 'combine_youtube_type',
768
+ 'name' => 'combine_youtube_type',
769
+ 'options' => array( // Channel Feed
770
+ array(
771
+ 'label' => __( 'Channel Feed', 'feed-them-social' ),
772
+ 'value' => 'channelID',
773
+ ), // Channel Playlist Feed
774
+ array(
775
+ 'label' => __( 'Channel\'s Specific Playlist', 'feed-them-social' ),
776
+ 'value' => 'playlistID',
777
+ ),
778
+
779
+ // User's Most Recent Videos
780
+ array(
781
+ 'label' => __( 'User\'s Most Recent Videos', 'feed-them-social' ),
782
+ 'value' => 'username',
783
+ ),
784
+
785
+ // User's Playlist
786
+ array(
787
+ 'label' => __( 'User\'s Specific Playlist', 'feed-them-social' ),
788
+ 'value' => 'userPlaylist',
789
+ ),
790
+ ),
791
+ 'req_plugin' => 'combine_streams',
792
+ 'short_attr' => array(
793
+ 'attr_name' => '',
794
+ 'no_attribute' => 'yes',
795
+ 'ifs' => 'combine_youtube',
796
+ ),
797
+ 'sub_options' => array(
798
+ 'sub_options_wrap_class' => 'combine-youtube-wrap',
799
+ ),
800
+ ),
801
+
802
+ // Youtube Name
803
+ array(
804
+ 'option_type' => 'input',
805
+ 'input_wrap_class' => 'combine_youtube_name',
806
+ 'label' => __( 'YouTube Username', 'feed-them-social' ),
807
+ 'type' => 'text',
808
+ 'id' => 'combine_youtube_name',
809
+ 'name' => 'combine_youtube_name',
810
+ 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>API Key</strong> or <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-youtube-feed-styles-submenu-page" target="_blank">Youtube Options</a> page then copy your YouTube <a href="https://www.slickremix.com/how-to-get-your-youtube-name/" target="_blank">Username</a> and paste it below.',
811
+ 'req_plugin' => 'combine_streams',
812
+
813
+ // Relative to JS.
814
+ 'short_attr' => array(
815
+ 'attr_name' => 'youtube_name',
816
+ 'ifs' => 'combine_youtube',
817
+ 'var_final_if' => 'yes',
818
+ 'empty_error' => 'set',
819
+ 'empty_error_value' => '',
820
+ ),
821
+ ),
822
+
823
+ // YouTube Playlist ID
824
+ array(
825
+ 'option_type' => 'input',
826
+ 'input_wrap_class' => 'combine_playlist_id',
827
+ 'label' => __( 'YouTube Playlist ID', 'feed-them-social' ),
828
+ 'type' => 'text',
829
+ 'id' => 'combine_playlist_id',
830
+ 'name' => 'combine_playlist_id',
831
+ 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>API Key</strong> or <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-youtube-feed-styles-submenu-page" target="_blank">Youtube Options</a> page then copy your YouTube <a href="https://www.slickremix.com/how-to-get-your-youtube-name/" target="_blank">Playlist ID</a> and paste them below.',
832
+ 'req_plugin' => 'combine_streams',
833
+
834
+ // Relative to JS.
835
+ 'short_attr' => array(
836
+ 'attr_name' => 'playlist_id',
837
+ 'ifs' => 'combine_youtube',
838
+ ),
839
+ ),
840
+
841
+ // YouTube Channel ID
842
+ array(
843
+ 'option_type' => 'input',
844
+ 'input_wrap_class' => 'combine_channel_id',
845
+ 'label' => __( 'YouTube Channel ID', 'feed-them-social' ),
846
+ 'type' => 'text',
847
+ 'id' => 'combine_channel_id',
848
+ 'name' => 'combine_channel_id',
849
+ 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>API Key</strong> or <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-youtube-feed-styles-submenu-page" target="_blank">Youtube Options</a> page then copy your YouTube <a href="https://www.slickremix.com/how-to-get-your-youtube-name/" target="_blank">Channel ID</a> and paste it below.',
850
+ 'req_plugin' => 'combine_streams',
851
+
852
+ // Relative to JS.
853
+ 'short_attr' => array(
854
+ 'attr_name' => 'channel_id',
855
+ 'ifs' => 'combine_youtube',
856
+ ),
857
+ 'sub_options_end' => 2,
858
+ ),
859
+
860
+ // ******************************************
861
+ // Combine Streams Grid Options
862
+ // ******************************************
863
+ // Facebook Page Display Posts in Grid
864
+ array(
865
+ 'grouped_options_title' => __( 'Grid', 'feed-them-social' ),
866
+ 'input_wrap_class' => 'combine_grid_option',
867
+ 'option_type' => 'select',
868
+ 'label' => __( 'Display Posts in Grid', 'feed-them-social' ),
869
+ 'type' => 'text',
870
+ 'id' => 'combine_grid_option',
871
+ 'name' => 'combine_grid_option',
872
+ 'options' => array(
873
+ 1 => array(
874
+ 'label' => __( 'No', 'feed-them-social' ),
875
+ 'value' => 'no',
876
+ ),
877
+ 2 => array(
878
+ 'label' => __( 'Yes', 'feed-them-social' ),
879
+ 'value' => 'yes',
880
+ ),
881
+ ),
882
+ 'req_plugin' => 'combine_streams',
883
+ 'short_attr' => array(
884
+ 'attr_name' => 'grid',
885
+ 'empty_error' => 'set',
886
+ 'set_operator' => '==',
887
+ 'set_equals' => 'yes',
888
+ 'empty_error_value' => '',
889
+ ),
890
+
891
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
892
+ 'sub_options' => array(
893
+ 'sub_options_wrap_class' => 'combine-main-grid-options-wrap',
894
+ ),
895
+ ),
896
+
897
+ // Grid Column Width
898
+ array(
899
+ 'option_type' => 'input',
900
+ 'label' => __( 'Grid Column Width', 'feed-them-social' ),
901
+ 'type' => 'text',
902
+ 'id' => 'combine_grid_column_width',
903
+ 'name' => 'combine_grid_column_width',
904
+ 'instructional-text' => '<strong> ' . __( 'NOTE:', 'feed-them-social' ) . '</strong> ' . sprintf( __( 'Define the Width of each post and the Space between each post below. You must add px after any number. Learn how to make the %1$sgrid responsive%2$s.', 'feed-them-social' ), '<a href="https://www.slickremix.com/docs/responsive-grid-css/" target="_blank">', '</a>' ),
905
+ 'placeholder' => '310px ' . __( 'for example', 'feed-them-social' ),
906
+ 'req_plugin' => 'combine_streams',
907
+
908
+ // Relative to JS.
909
+ 'short_attr' => array(
910
+ 'attr_name' => 'column_width',
911
+ 'empty_error' => 'set',
912
+ 'empty_error_value' => 'column_width=310px',
913
+ 'ifs' => 'combine_grid',
914
+ ),
915
+
916
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
917
+ 'sub_options' => array(
918
+ 'sub_options_wrap_class' => 'combine-grid-options-wrap',
919
+ ),
920
+ ),
921
+
922
+ // Grid Spaces Between Posts
923
+ array(
924
+ 'option_type' => 'input',
925
+ 'label' => __( 'Grid Spaces Between Posts', 'feed-them-social' ),
926
+ 'type' => 'text',
927
+ 'id' => 'combine_grid_space_between_posts',
928
+ 'name' => 'combine_grid_space_between_posts',
929
+ 'placeholder' => '10px ' . __( 'for example', 'feed-them-social' ),
930
+ 'req_plugin' => 'combine_streams',
931
+
932
+ // Relative to JS.
933
+ 'short_attr' => array(
934
+ 'attr_name' => 'space_between_posts',
935
+ 'empty_error' => 'set',
936
+ 'empty_error_value' => 'space_between_posts=10px',
937
+ 'ifs' => 'combine_grid',
938
+ ),
939
+ 'sub_options_end' => 2,
940
+ ),
941
+ ),
942
+
943
+ // Final Shortcode ifs
944
+ 'shortcode_ifs' => array(
945
+ 'main_select' => array(
946
+ 'if' => array(
947
+ 'class' => 'select#shortcode-form-selector',
948
+ 'operator' => '==',
949
+ 'value' => 'combine-steams-shortcode-form',
950
+ ),
951
+ ),
952
+ 'combine_facebook' => array(
953
+ 'if' => array(
954
+ 'class' => 'select#combine_facebook',
955
+ 'operator' => '==',
956
+ 'value' => 'yes',
957
+ ),
958
+ ),
959
+
960
+ // 'combine_twitter' => array(
961
+ // 'if' => array(
962
+ // 'class' => 'select#combine-twitter-messages-selector',
963
+ // 'operator' => '==',
964
+ // 'value' => '',
965
+ // ),
966
+ // ),
967
+ // 'combine_twitter_search' => array(
968
+ // 'if' => array(
969
+ // 'class' => 'select#combine-twitter-messages-selector',
970
+ // 'operator' => '==',
971
+ // 'value' => '',
972
+ // ),
973
+ // ),
974
+ 'combine_instagram' => array(
975
+ 'if' => array(
976
+ 'class' => 'select#combine_instagram',
977
+ 'operator' => '==',
978
+ 'value' => 'yes',
979
+ ),
980
+ ),
981
+ 'combine_pinterest' => array(
982
+ 'if' => array(
983
+ 'class' => 'select#combine_pinterest',
984
+ 'operator' => '==',
985
+ 'value' => 'yes',
986
+ ),
987
+ ),
988
+ 'combine_youtube' => array(
989
+ 'if' => array(
990
+ 'class' => 'select#combine_youtube',
991
+ 'operator' => '==',
992
+ 'value' => 'yes',
993
+ ),
994
+ ),
995
+ 'combine_load_more' => array(
996
+ 'if' => array(
997
+ 'class' => 'select#fb_load_more_option',
998
+ 'operator' => '==',
999
+ 'value' => 'yes',
1000
+ ),
1001
+ ),
1002
+ 'combine_grid' => array(
1003
+ 'if' => array(
1004
+ 'class' => 'select#combine_grid_option',
1005
+ 'operator' => '==',
1006
+ 'value' => 'yes',
1007
+ ),
1008
+ ),
1009
+ 'yt_username' => array(
1010
+ 'if' => array(
1011
+ 'class' => 'select#combine_youtube_type',
1012
+ 'operator' => '==',
1013
+ 'value' => 'username',
1014
+ ),
1015
+ ),
1016
+ 'yt_userPlaylist' => array(
1017
+ 'if' => array(
1018
+ 'class' => 'select#combine_youtube_type',
1019
+ 'operator' => '==',
1020
+ 'value' => 'userPlaylist',
1021
+ ),
1022
+ ),
1023
+ 'yt_channelID' => array(
1024
+ 'if' => array(
1025
+ 'class' => 'select#combine_youtube_type',
1026
+ 'operator' => '==',
1027
+ 'value' => 'channelID',
1028
+ ),
1029
+ ),
1030
+ 'yt_playlistID' => array(
1031
+ 'if' => array(
1032
+ 'class' => 'select#combine_youtube_type',
1033
+ 'operator' => '==',
1034
+ 'value' => 'playlistID',
1035
+ ),
1036
+ ),
1037
+ 'pinterest_single_board_pins' => array(
1038
+ 'if' => array(
1039
+ 'class' => 'select#combine_pinterest_type',
1040
+ 'operator' => '==',
1041
+ 'value' => 'single_board_pins',
1042
+ ),
1043
+ ),
1044
+ ),
1045
+
1046
+ // Generator Info
1047
+ 'generator_title' => __( 'Combine Streams Shortcode', 'feed-them-social' ),
1048
+ 'generator_class' => 'combine-streams-final-shortcode',
1049
+ ), // End Combine Streams
1050
+
1051
+ // ******************************************
1052
+ // Facebook Page Feed
1053
+ // ******************************************
1054
+ 'facebook' => array(
1055
+ 'section_attr_key' => 'facebook_',
1056
+ 'section_title' => __( 'Facebook Page Shortcode Generator', 'feed-them-social' ),
1057
+ 'section_wrap_class' => 'fts-facebook_page-shortcode-form',
1058
+
1059
+ // Form Info
1060
+ 'form_wrap_classes' => 'fts-fb-page-shortcode-form',
1061
+ 'form_wrap_id' => 'fts-fb-page-form',
1062
+
1063
+ // Token Check
1064
+ 'token_check' => $facebookReviewsTokenCheck,
1065
+
1066
+ // Feed Type Selection
1067
+ 'feed_type_select' => array(
1068
+ 'label' => __( 'Feed Type', 'feed-them-social' ),
1069
+ 'select_wrap_classes' => 'fts-social-selector',
1070
+ 'select_classes' => '',
1071
+ 'select_name' => 'facebook-messages-selector',
1072
+ 'select_id' => 'facebook-messages-selector',
1073
+ ),
1074
+
1075
+ // Feed Types and their options
1076
+ 'feeds_types' => array(
1077
+
1078
+ // Facebook Page
1079
+ array(
1080
+ 'value' => 'page',
1081
+ 'title' => __( 'Facebook Page', 'feed-them-social' ),
1082
+ ),
1083
+
1084
+ // Facebook Page List of Events
1085
+ // array(
1086
+ // 'value' => 'events',
1087
+ // 'title' => __('Facebook Page List of Events', 'feed-them-social'),
1088
+ // ),
1089
+ // Facebook Page Single Event Posts
1090
+ // array(
1091
+ // 'value' => 'event',
1092
+ // 'title' => __('Facebook Page Single Event Posts', 'feed-them-social'),
1093
+ // ),
1094
+ // Facebook Group
1095
+ // array(
1096
+ // 'value' => 'group',
1097
+ // 'title' => __('Facebook Group', 'feed-them-social'),
1098
+ // ),
1099
+ // Facebook Album Photos
1100
+ array(
1101
+ 'value' => 'album_photos',
1102
+ 'title' => __( 'Facebook Album Photos', 'feed-them-social' ),
1103
+ ),
1104
+
1105
+ // Facebook Album Covers
1106
+ array(
1107
+ 'value' => 'albums',
1108
+ 'title' => __( 'Facebook Album Covers', 'feed-them-social' ),
1109
+ ),
1110
+
1111
+ // Facebook Videos
1112
+ array(
1113
+ 'value' => 'album_videos',
1114
+ 'title' => __( 'Facebook Videos', 'feed-them-social' ),
1115
+ ),
1116
+
1117
+ // Facebook Page Reviews
1118
+ array(
1119
+ 'value' => 'reviews',
1120
+ 'title' => __( 'Facebook Page Reviews', 'feed-them-social' ),
1121
+ ),
1122
+ ),
1123
+ 'premium_msg_boxes' => array(
1124
+ 'album_videos' => array(
1125
+ 'req_plugin' => 'fts_premium',
1126
+ 'msg' => 'The Facebook video feed allows you to view your uploaded videos from facebook. See these great examples and options of all the different ways you can bring new life to your wordpress site! <a href="http://feedthemsocial.com/facebook-videos-demo/" target="_blank">View Demo</a><br /><br />Additionally if you purchase the Carousel Plugin you can showcase your videos in a slideshow or carousel. Works with your Facebook Photos too! <a href="http://feedthemsocial.com/facebook-carousels/" target="_blank">View Carousel Demo</a>',
1127
+ ),
1128
+ 'reviews' => array(
1129
+ 'req_plugin' => 'facebook_reviews',
1130
+ 'msg' => 'The Facebook Reviews feed allows you to view all of the reviews people have made on your Facebook Page. See these great examples and options of all the different ways you can display your Facebook Page Reviews on your website. <a href="http://feedthemsocial.com/facebook-page-reviews-demo/" target="_blank">View Demo</a>',
1131
+ ),
1132
+ ),
1133
+ 'short_attr_final' => 'yes',
1134
+ 'main_options' => array(
1135
+
1136
+ // Feed Type
1137
+ array(
1138
+ 'option_type' => 'select',
1139
+ 'id' => 'facebook-messages-selector',
1140
+ 'name' => 'facebook-messages-selector',
1141
+
1142
+ // DONT SHOW HTML
1143
+ 'no_html' => 'yes',
1144
+
1145
+ // Relative to JS.
1146
+ 'short_attr' => array(
1147
+ 'attr_name' => 'type',
1148
+ ),
1149
+ ),
1150
+
1151
+ // Facebook ID
1152
+ array(
1153
+ 'option_type' => 'input',
1154
+ 'input_wrap_class' => 'fb_page_id',
1155
+ 'label' => __( 'Facebook ID (required)', 'feed-them-social' ),
1156
+ 'instructional-text' => array(
1157
+ array(
1158
+ 'text' => __( 'If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the' ) . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __( 'Facebook Options', 'feed-them-social' ) . '</a> ' . __( 'page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social' ) . '',
1159
+ 'class' => 'facebook-message-generator page inst-text-facebook-page',
1160
+ ),
1161
+ array(
1162
+ 'text' => __( 'Copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/how-to-get-your-facebook-group-id/" target="_blank">' . __( 'Facebook Group ID', 'feed-them-social' ) . '</a> ' . __( 'and paste it in the first input below.', 'feed-them-social' ),
1163
+ 'class' => 'facebook-message-generator group inst-text-facebook-group',
1164
+ ),
1165
+ array(
1166
+ 'text' => __( 'Copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/how-to-get-your-facebook-page-vanity-url/" target="_blank">' . __( 'Facebook Page ID', 'feed-them-social' ) . '</a> ' . __( 'and paste it in the first input below. PLEASE NOTE: This will only work with Facebook Page Events and you cannot have more than 25 events on Facebook.', 'feed-them-social' ),
1167
+ 'class' => 'facebook-message-generator event-list inst-text-facebook-event-list',
1168
+ ),
1169
+ array(
1170
+ 'text' => __( 'Copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/how-to-get-your-facebook-event-id/" target="_blank">' . __( 'Facebook Event ID', 'feed-them-social' ) . '</a> ' . __( 'and paste it in the first input below.', 'feed-them-social' ),
1171
+ 'class' => 'facebook-message-generator event inst-text-facebook-event',
1172
+ ),
1173
+ array(
1174
+ 'text' => __( 'To show a specific Album copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/docs/how-to-get-your-facebook-photo-gallery-id/" target="_blank">' . __( 'Facebook Album ID', 'feed-them-social' ) . '</a> ' . __( 'and paste it in the third input below. If you want to show all your uploaded photos leave the Album ID input blank.', 'feed-them-social' ),
1175
+ 'class' => 'facebook-message-generator album_photos inst-text-facebook-album-photos',
1176
+ ),
1177
+ array(
1178
+ 'text' => __( 'If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the' ) . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __( 'Facebook Options', 'feed-them-social' ) . '</a> ' . __( 'page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social' ) . '',
1179
+ 'class' => 'facebook-message-generator albums inst-text-facebook-albums',
1180
+ ),
1181
+ array(
1182
+ 'text' => __( 'If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the' ) . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __( 'Facebook Options', 'feed-them-social' ) . '</a> ' . __( 'page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social' ) . '',
1183
+ 'class' => 'facebook-message-generator video inst-text-facebook-video',
1184
+ ),
1185
+ array(
1186
+ 'text' => __( 'If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the' ) . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __( 'Facebook Options', 'feed-them-social' ) . '</a> ' . __( 'page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social' ) . '',
1187
+ 'class' => 'facebook-message-generator reviews inst-text-facebook-reviews',
1188
+ ),
1189
+ ),
1190
+ 'type' => 'text',
1191
+ 'id' => 'fb_page_id',
1192
+ 'name' => 'fb_page_id',
1193
+ 'value' => '',
1194
+
1195
+ // Relative to JS.
1196
+ 'short_attr' => array(
1197
+ 'attr_name' => 'id',
1198
+ 'var_final_if' => 'no',
1199
+ 'empty_error' => 'yes',
1200
+ ),
1201
+ ),
1202
+
1203
+ // Access Token
1204
+ array(
1205
+ 'option_type' => 'input',
1206
+ 'label' => __( 'Access Token (required) ', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-gallery' ) . '</small>',
1207
+ 'type' => 'text',
1208
+ 'id' => 'fb_access_token',
1209
+ 'name' => 'fb_access_token',
1210
+
1211
+ // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
1212
+ // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
1213
+ 'placeholder' => __( '', 'feed-them-social' ),
1214
+
1215
+ // Relative to JS.
1216
+ 'short_attr' => array(
1217
+ 'attr_name' => 'access_token',
1218
+ 'var_final_if' => 'yes',
1219
+ 'empty_error' => 'set',
1220
+ 'empty_error_value' => '',
1221
+ ),
1222
+ ),
1223
+
1224
+ // Facebook Album ID
1225
+ array(
1226
+ 'option_type' => 'input',
1227
+ 'input_wrap_class' => 'fb_album_photos_id',
1228
+ 'label' => __( 'Album ID ', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank to show all uploaded photos', 'feed-them-social' ) . '</small>',
1229
+ 'type' => 'text',
1230
+ 'id' => 'fb_album_id',
1231
+ 'name' => 'fb_album_id',
1232
+ 'value' => '',
1233
+
1234
+ // Relative to JS.
1235
+ 'short_attr' => array(
1236
+ 'attr_name' => 'album_id',
1237
+ 'var_final_if' => 'yes',
1238
+ 'empty_error' => 'set',
1239
+ 'empty_error_value' => 'album_id=photo_stream',
1240
+ 'empty_error_if' => array(
1241
+ 'attribute' => 'select#facebook-messages-selector',
1242
+ 'operator' => '==',
1243
+ 'value' => 'album_photos',
1244
+ ),
1245
+ 'ifs' => 'album_photos',
1246
+ ),
1247
+ ),
1248
+
1249
+ // Facebook Page Post Type Visible
1250
+ array(
1251
+ 'input_wrap_class' => 'facebook-post-type-visible',
1252
+ 'option_type' => 'select',
1253
+ 'label' => __( 'Post Type Visible', 'feed-them-social' ),
1254
+ 'type' => 'text',
1255
+ 'id' => 'fb_page_posts_displayed',
1256
+ 'name' => 'fb_page_posts_displayed',
1257
+ 'options' => array(
1258
+ array(
1259
+ 'label' => __( 'Display Posts made by Page only', 'feed-them-social' ),
1260
+ 'value' => 'page_only',
1261
+ ),
1262
+ array(
1263
+ 'label' => __( 'Display Posts made by Page and Others', 'feed-them-social' ),
1264
+ 'value' => 'page_and_others',
1265
+ ),
1266
+ ),
1267
+ 'short_attr' => array(
1268
+ 'attr_name' => 'posts_displayed',
1269
+ 'ifs' => 'page',
1270
+ ),
1271
+ ),
1272
+
1273
+ // Facebook page # of Posts
1274
+ array(
1275
+ 'option_type' => 'input',
1276
+ 'label' => __( '# of Posts', 'feed-them-social' ) . $limitforpremium,
1277
+ 'type' => 'text',
1278
+ 'id' => 'fb_page_post_count',
1279
+ 'name' => 'fb_page_post_count',
1280
+ 'value' => '',
1281
+ 'placeholder' => __( '6 is the default number', 'feed-them-social' ),
1282
+
1283
+ // Relative to JS.
1284
+ 'short_attr' => array(
1285
+ 'attr_name' => 'posts',
1286
+ 'var_final_if' => 'yes',
1287
+ 'empty_error' => 'set',
1288
+ 'empty_error_value' => 'posts=6',
1289
+ ),
1290
+ ),
1291
+
1292
+ // Facebook Page Facebook Fixed Height
1293
+ array(
1294
+ 'input_wrap_class' => 'fixed_height_option',
1295
+ 'option_type' => 'input',
1296
+ 'label' => __( 'Facebook Fixed Height', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank for auto height', 'feed-them-social' ) . '</small>',
1297
+ 'type' => 'text',
1298
+ 'id' => 'facebook_page_height',
1299
+ 'name' => 'facebook_page_height',
1300
+ 'value' => '',
1301
+ 'placeholder' => '450px ' . __( 'for example', 'feed-them-social' ),
1302
+
1303
+ // Relative to JS.
1304
+ 'short_attr' => array(
1305
+ 'attr_name' => 'height',
1306
+ 'var_final_if' => 'yes',
1307
+ 'empty_error' => 'set',
1308
+ 'empty_error_value' => '',
1309
+ ),
1310
+ ),
1311
+
1312
+ // Facebook Page Show Page Title (Premium)
1313
+ array(
1314
+ 'input_wrap_class' => 'fb-page-title-option-hide',
1315
+ 'option_type' => 'select',
1316
+ 'label' => __( 'Show Page Title', 'feed-them-social' ) . '<br/><small>' . __( 'Yes or No', 'feed-them-social' ) . '</small>',
1317
+ 'type' => 'text',
1318
+ 'id' => 'fb_page_title_option',
1319
+ 'name' => 'fb_page_title_option',
1320
+ 'options' => array(
1321
+ array(
1322
+ 'label' => __( 'Yes', 'feed-them-social' ),
1323
+ 'value' => 'yes',
1324
+ ),
1325
+ array(
1326
+ 'label' => __( 'No', 'feed-them-social' ),
1327
+ 'value' => 'no',
1328
+ ),
1329
+ ),
1330
+ 'req_plugin' => 'fts_premium',
1331
+ 'short_attr' => array(
1332
+ 'attr_name' => 'title',
1333
+ ),
1334
+ 'sub_options' => array(
1335
+ 'sub_options_wrap_class' => 'facebook-title-options-wrap',
1336
+ ),
1337
+ ),
1338
+
1339
+ // Facebook Page Align Title (Premium)
1340
+ array(
1341
+ 'input_wrap_class' => 'fb-page-title-align',
1342
+ 'option_type' => 'select',
1343
+ 'label' => __( 'Align Title', 'feed-them-social' ) . '<br/><small>' . __( 'Left, Center or Right', 'feed-them-social' ) . '</small>',
1344
+ 'type' => 'text',
1345
+ 'id' => 'fb_page_title_align',
1346
+ 'name' => 'fb_page_title_align',
1347
+ 'options' => array(
1348
+ 1 => array(
1349
+ 'label' => __( 'Left', 'feed-them-social' ),
1350
+ 'value' => 'left',
1351
+ ),
1352
+ 2 => array(
1353
+ 'label' => __( 'Center', 'feed-them-social' ),
1354
+ 'value' => 'center',
1355
+ ),
1356
+ 3 => array(
1357
+ 'label' => __( 'Right', 'feed-them-social' ),
1358
+ 'value' => 'right',
1359
+ ),
1360
+ ),
1361
+ 'req_plugin' => 'fts_premium',
1362
+ 'short_attr' => array(
1363
+ 'attr_name' => 'title_align',
1364
+ ),
1365
+ ),
1366
+
1367
+ // Facebook Page Show Page Description (Premium)
1368
+ array(
1369
+ 'input_wrap_class' => 'fb-page-description-option-hide',
1370
+ 'option_type' => 'select',
1371
+ 'label' => __( 'Show Page Description', 'feed-them-social' ) . '<br/><small>' . __( 'Yes or No', 'feed-them-social' ) . '</small>',
1372
+ 'type' => 'text',
1373
+ 'id' => 'fb_page_description_option',
1374
+ 'name' => 'fb_page_description_option',
1375
+ 'options' => array(
1376
+ 1 => array(
1377
+ 'label' => __( 'Yes', 'feed-them-social' ),
1378
+ 'value' => 'yes',
1379
+ ),
1380
+ 2 => array(
1381
+ 'label' => __( 'No', 'feed-them-social' ),
1382
+ 'value' => 'no',
1383
+ ),
1384
+ ),
1385
+ 'short_attr' => array(
1386
+ 'attr_name' => 'description',
1387
+ ),
1388
+ 'sub_options_end' => true,
1389
+ ),
1390
+
1391
+ // Show Description below image or video Name
1392
+ array(
1393
+ 'input_wrap_class' => 'facebook_show_media',
1394
+ 'option_type' => 'select',
1395
+ 'label' => __( 'Show Image/Video', 'feed-them-social' ) . '<br/><small>' . __( 'Bottom or Top of Post', 'feed-them-social' ) . '</small>',
1396
+ 'type' => 'text',
1397
+ 'id' => 'facebook_show_media',
1398
+ 'name' => 'facebook_show_media',
1399
+ 'req_plugin' => 'fts_premium',
1400
+ 'or_req_plugin' => 'combine_streams',
1401
+ 'options' => array(
1402
+ array(
1403
+ 'label' => __( 'Below Username, Date & Description', 'feed-them-social' ),
1404
+ 'value' => 'bottom',
1405
+ ),
1406
+ array(
1407
+ 'label' => __( 'Above Username, Date & Description', 'feed-them-social' ),
1408
+ 'value' => 'top',
1409
+ ),
1410
+ ),
1411
+ 'short_attr' => array(
1412
+ 'attr_name' => 'show_media',
1413
+ ),
1414
+ ),
1415
+
1416
+ // Show Thumbnail
1417
+ array(
1418
+ 'input_wrap_class' => 'facebook_hide_thumbnail',
1419
+ 'option_type' => 'select',
1420
+ 'label' => __( 'Show User Thumbnail', 'feed-them-social' ) . '<br/><small>' . __( 'Yes or No', 'feed-them-social' ) . '</small>',
1421
+ 'type' => 'text',
1422
+ 'id' => 'facebook_hide_thumbnail',
1423
+ 'name' => 'facebook_hide_thumbnail',
1424
+ 'req_plugin' => 'fts_premium',
1425
+ 'or_req_plugin' => 'combine_streams',
1426
+ 'options' => array(
1427
+ array(
1428
+ 'label' => __( 'Yes', 'feed-them-social' ),
1429
+ 'value' => 'yes',
1430
+ ),
1431
+ array(
1432
+ 'label' => __( 'No', 'feed-them-social' ),
1433
+ 'value' => 'no',
1434
+ ),
1435
+ ),
1436
+ 'short_attr' => array(
1437
+ 'attr_name' => 'show_thumbnail',
1438
+ ),
1439
+ ),
1440
+
1441
+ // Show Username
1442
+ array(
1443
+ 'input_wrap_class' => 'facebook_hide_date',
1444
+ 'option_type' => 'select',
1445
+ 'label' => __( 'Show Username', 'feed-them-social' ) . '<br/><small>' . __( 'Yes or No', 'feed-them-social' ) . '</small>',
1446
+ 'type' => 'text',
1447
+ 'id' => 'facebook_hide_date',
1448
+ 'name' => 'facebook_hide_date',
1449
+ 'req_plugin' => 'fts_premium',
1450
+ 'or_req_plugin' => 'combine_streams',
1451
+ 'options' => array(
1452
+ array(
1453
+ 'label' => __( 'Yes', 'feed-them-social' ),
1454
+ 'value' => 'yes',
1455
+ ),
1456
+ array(
1457
+ 'label' => __( 'No', 'feed-them-social' ),
1458
+ 'value' => 'no',
1459
+ ),
1460
+ ),
1461
+ 'short_attr' => array(
1462
+ 'attr_name' => 'show_date',
1463
+ ),
1464
+ ),
1465
+
1466
+ // Show Date
1467
+ array(
1468
+ 'input_wrap_class' => 'facebook_hide_name',
1469
+ 'option_type' => 'select',
1470
+ 'label' => __( 'Show Date', 'feed-them-social' ) . '<br/><small>' . __( 'Yes or No', 'feed-them-social' ) . '</small>',
1471
+ 'type' => 'text',
1472
+ 'id' => 'facebook_hide_name',
1473
+ 'name' => 'facebook_hide_name',
1474
+ 'req_plugin' => 'fts_premium',
1475
+ 'or_req_plugin' => 'combine_streams',
1476
+ 'options' => array(
1477
+ array(
1478
+ 'label' => __( 'Yes', 'feed-them-social' ),
1479
+ 'value' => 'yes',
1480
+ ),
1481
+ array(
1482
+ 'label' => __( 'No', 'feed-them-social' ),
1483
+ 'value' => 'no',
1484
+ ),
1485
+ ),
1486
+ 'short_attr' => array(
1487
+ 'attr_name' => 'show_name',
1488
+ ),
1489
+ ),
1490
+
1491
+ // Facebook Amount of words
1492
+ array(
1493
+ 'option_type' => 'input',
1494
+ 'label' => __( 'Amount of words per post', 'feed-them-social' ) . '<br/><small>' . __( 'Type 0 to remove the posts description', 'feed-them-social' ) . '</small>',
1495
+ 'type' => 'text',
1496
+ 'id' => 'fb_page_word_count_option',
1497
+ 'name' => 'fb_page_word_count_option',
1498
+ 'placeholder' => '45 ' . __( 'is the default number', 'feed-them-social' ),
1499
+ 'value' => '',
1500
+ 'req_plugin' => 'fts_premium',
1501
+ 'or_req_plugin' => 'combine_streams',
1502
+ 'or_req_plugin_three' => 'facebook_reviews',
1503
+
1504
+ // Relative to JS.
1505
+ 'short_attr' => array(
1506
+ 'attr_name' => 'words',
1507
+ 'empty_error' => 'set',
1508
+ 'empty_error_value' => 'words=45',
1509
+ ),
1510
+ ),
1511
+
1512
+ // Facebook Image Width
1513
+ array(
1514
+ 'option_type' => 'input',
1515
+ 'label' => __( 'Facebook Image Width', 'feed-them-social' ) . '<br/><small>' . __( 'Max width is 640px', 'feed-them-social' ) . '</small>',
1516
+ 'type' => 'text',
1517
+ 'id' => 'fts-slicker-facebook-container-image-width',
1518
+ 'name' => 'fts-slicker-facebook-container-image-width',
1519
+ 'placeholder' => '250px',
1520
+
1521
+ // Relative to JS.
1522
+ 'short_attr' => array(
1523
+ 'attr_name' => 'image_width',
1524
+ 'empty_error' => 'set',
1525
+ 'empty_error_value' => 'image_width=250px',
1526
+ 'ifs' => 'album_photos,albums,album_videos',
1527
+ ),
1528
+ 'sub_options' => array(
1529
+ 'sub_options_wrap_class' => 'fts-super-facebook-options-wrap',
1530
+ ),
1531
+ ),
1532
+
1533
+ // Facebook Image Height
1534
+ array(
1535
+ 'option_type' => 'input',
1536
+ 'label' => __( 'Facebook Image Height', 'feed-them-social' ) . '<br/><small>' . __( 'Max width is 640px', 'feed-them-social' ) . '</small>',
1537
+ 'type' => 'text',
1538
+ 'id' => 'fts-slicker-facebook-container-image-height',
1539
+ 'name' => 'fts-slicker-facebook-container-image-height',
1540
+ 'placeholder' => '250px',
1541
+
1542
+ // Relative to JS.
1543
+ 'short_attr' => array(
1544
+ 'attr_name' => 'image_height',
1545
+ 'empty_error' => 'set',
1546
+ 'empty_error_value' => 'image_height=250px',
1547
+ 'ifs' => 'album_photos,albums,album_videos',
1548
+ ),
1549
+ ),
1550
+
1551
+ // Facebook The space between photos
1552
+ array(
1553
+ 'option_type' => 'input',
1554
+ 'label' => __( 'The space between photos', 'feed-them-social' ),
1555
+ 'type' => 'text',
1556
+ 'id' => 'fts-slicker-facebook-container-margin',
1557
+ 'name' => 'fts-slicker-facebook-container-margin',
1558
+ 'placeholder' => '1px',
1559
+
1560
+ // Relative to JS.
1561
+ 'short_attr' => array(
1562
+ 'attr_name' => 'space_between_photos',
1563
+ 'empty_error' => 'set',
1564
+ 'empty_error_value' => 'space_between_photos=1px',
1565
+ 'ifs' => 'album_photos,albums,album_videos',
1566
+ ),
1567
+ ),
1568
+
1569
+ // Hide Date, Likes and Comments
1570
+ array(
1571
+ 'option_type' => 'select',
1572
+ 'label' => __( 'Hide Date, Likes and Comments', 'feed-them-social' ),
1573
+ 'label_note' => __( 'Good for image sizes under 120px', 'feed-them-social' ),
1574
+ 'type' => 'text',
1575
+ 'id' => 'fts-slicker-facebook-container-hide-date-likes-comments',
1576
+ 'name' => 'fts-slicker-facebook-container-hide-date-likes-comments',
1577
+ 'options' => array(
1578
+ 1 => array(
1579
+ 'label' => __( 'No', 'feed-them-social' ),
1580
+ 'value' => 'no',
1581
+ ),
1582
+ 2 => array(
1583
+ 'label' => __( 'Yes', 'feed-them-social' ),
1584
+ 'value' => 'yes',
1585
+ ),
1586
+ ),
1587
+ 'short_attr' => array(
1588
+ 'attr_name' => 'hide_date_likes_comments',
1589
+ 'ifs' => 'album_photos,albums,album_videos',
1590
+ ),
1591
+ ),
1592
+
1593
+ // Center Facebook Container
1594
+ array(
1595
+ 'option_type' => 'select',
1596
+ 'label' => __( 'Center Facebook Container', 'feed-them-social' ),
1597
+ 'type' => 'text',
1598
+ 'id' => 'fts-slicker-facebook-container-position',
1599
+ 'name' => 'fts-slicker-facebook-container-position',
1600
+ 'options' => array(
1601
+ 1 => array(
1602
+ 'label' => __( 'Yes', 'feed-them-social' ),
1603
+ 'value' => 'yes',
1604
+ ),
1605
+ 2 => array(
1606
+ 'label' => __( 'No', 'feed-them-social' ),
1607
+ 'value' => 'no',
1608
+ ),
1609
+ ),
1610
+ 'short_attr' => array(
1611
+ 'attr_name' => 'center_container',
1612
+ 'ifs' => 'album_photos,albums,album_videos',
1613
+ ),
1614
+ 'sub_options_end' => true,
1615
+ ),
1616
+
1617
+ // Image Stacking Animation NOT USING THIS ANYMORE
1618
+ array(
1619
+ 'option_type' => 'input',
1620
+ 'label' => __( 'Image Stacking Animation On', 'feed-them-social' ),
1621
+ 'label_note' => __( 'This happens when resizing browser', 'feed-them-social' ),
1622
+ 'type' => 'hidden',
1623
+
1624
+ // used to trick is Visible in JS
1625
+ 'class' => 'non-visible',
1626
+ 'id' => 'fts-slicker-facebook-container-animation',
1627
+ 'name' => 'fts-slicker-facebook-container-animation',
1628
+ 'value' => 'no',
1629
+ 'short_attr' => array(
1630
+ 'attr_name' => 'image_stack_animation',
1631
+ 'empty_error' => 'set',
1632
+ 'empty_error_value' => 'image_stack_animation=no',
1633
+ 'ifs' => 'grid',
1634
+ ),
1635
+ 'sub_options' => array(
1636
+ 'sub_options_wrap_class' => 'facebook-image-animation-option-wrap',
1637
+ ),
1638
+ 'sub_options_end' => true,
1639
+ ),
1640
+
1641
+ // Align Images non-grid
1642
+ array(
1643
+ 'input_wrap_id' => 'facebook_align_images_wrapper',
1644
+ 'option_type' => 'select',
1645
+ 'label' => __( 'Align Images', 'feed-them-social' ),
1646
+ 'type' => 'text',
1647
+ 'id' => 'facebook_align_images',
1648
+ 'name' => 'facebook_align_images',
1649
+ 'options' => array(
1650
+ 1 => array(
1651
+ 'label' => __( 'Left', 'feed-them-social' ),
1652
+ 'value' => 'left',
1653
+ ),
1654
+ 2 => array(
1655
+ 'label' => __( 'Center', 'feed-them-social' ),
1656
+ 'value' => 'center',
1657
+ ),
1658
+ 3 => array(
1659
+ 'label' => __( 'Right', 'feed-them-social' ),
1660
+ 'value' => 'right',
1661
+ ),
1662
+ ),
1663
+ 'short_attr' => array(
1664
+ 'attr_name' => 'images_align',
1665
+ 'ifs' => 'page',
1666
+ ),
1667
+ 'sub_options' => array(
1668
+ 'sub_options_wrap_class' => 'align-images-wrap',
1669
+ ),
1670
+ 'sub_options_end' => true,
1671
+ ),
1672
+
1673
+ // ******************************************
1674
+ // Facebook Review Options
1675
+ // ******************************************
1676
+ // Reviews to Show
1677
+ array(
1678
+ 'grouped_options_title' => __( 'Reviews', 'feed-them-social' ),
1679
+ 'option_type' => 'select',
1680
+ 'label' => __( 'Reviews to Show', 'feed-them-social' ),
1681
+ 'type' => 'text',
1682
+ 'id' => 'reviews_type_to_show',
1683
+ 'name' => 'reviews_type_to_show',
1684
+ 'options' => array(
1685
+ 1 => array(
1686
+ 'label' => __( 'Show all Reviews', 'feed-them-social' ),
1687
+ 'value' => '1',
1688
+ ),
1689
+ 2 => array(
1690
+ 'label' => __( '5 Star Reviews only', 'feed-them-social' ),
1691
+ 'value' => '5',
1692
+ ),
1693
+ 3 => array(
1694
+ 'label' => __( '4 and 5 Stars Reviews only', 'feed-them-social' ),
1695
+ 'value' => '4',
1696
+ ),
1697
+ 4 => array(
1698
+ 'label' => __( '3, 4 and 5 Star Reviews only', 'feed-them-social' ),
1699
+ 'value' => '3',
1700
+ ),
1701
+ 5 => array(
1702
+ 'label' => __( '2, 3, 4, and 5 Star Reviews only', 'feed-them-social' ),
1703
+ 'value' => '2',
1704
+ ),
1705
+ ),
1706
+ 'req_plugin' => 'facebook_reviews',
1707
+ 'short_attr' => array(
1708
+ 'attr_name' => 'reviews_type_to_show',
1709
+ 'ifs' => 'reviews',
1710
+ ),
1711
+ 'sub_options' => array(
1712
+ 'sub_options_wrap_class' => 'facebook-reviews-wrap',
1713
+ ),
1714
+ ),
1715
+
1716
+ // Rating Format
1717
+ array(
1718
+ 'option_type' => 'select',
1719
+ 'label' => __( 'Rating Format', 'feed-them-social' ) . '<br/><small>' . __( '8/17/2018: Facebook has moved to what are called "recommendations" so for some people this option may not be necessary.', 'feed-them-premium' ) . '</small>',
1720
+ 'type' => 'text',
1721
+ 'id' => 'reviews_rating_format',
1722
+ 'name' => 'reviews_rating_format',
1723
+ 'options' => array(
1724
+ 1 => array(
1725
+ 'label' => __( '5 star - &#9733;&#9733;&#9733;&#9733;&#9733;', 'feed-them-social' ),
1726
+ 'value' => '1',
1727
+ ),
1728
+ 2 => array(
1729
+ 'label' => __( '5 star &#9733;', 'feed-them-social' ),
1730
+ 'value' => '2',
1731
+ ),
1732
+ 3 => array(
1733
+ 'label' => __( '5 star', 'feed-them-social' ),
1734
+ 'value' => '3',
1735
+ ),
1736
+ 4 => array(
1737
+ 'label' => __( '5 &#9733;', 'feed-them-social' ),
1738
+ 'value' => '4',
1739
+ ),
1740
+ 5 => array(
1741
+ 'label' => __( '&#9733;&#9733;&#9733;&#9733;&#9733;', 'feed-them-social' ),
1742
+ 'value' => '5',
1743
+ ),
1744
+ ),
1745
+ 'req_plugin' => 'facebook_reviews',
1746
+ 'short_attr' => array(
1747
+ 'attr_name' => 'reviews_rating_format',
1748
+ 'ifs' => 'reviews',
1749
+ ),
1750
+ ),
1751
+
1752
+ // Overall Rating
1753
+ array(
1754
+ 'option_type' => 'select',
1755
+ 'label' => __( 'Overall Rating above Feed', 'feed-them-social' ) . '<br/><small>' . __( 'More settings: <a href="admin.php?page=fts-facebook-feed-styles-submenu-page#overall-rating-options">Facebook Options</a> page.', 'feed-them-social' ) . '</small>',
1756
+ 'type' => 'text',
1757
+ 'id' => 'reviews_overall_rating_show',
1758
+ 'name' => 'reviews_overall_rating_show',
1759
+ 'options' => array(
1760
+ 1 => array(
1761
+ 'label' => __( 'Yes', 'feed-them-social' ),
1762
+ 'value' => 'yes',
1763
+ ),
1764
+ 2 => array(
1765
+ 'label' => __( 'No', 'feed-them-social' ),
1766
+ 'value' => 'no',
1767
+ ),
1768
+ ),
1769
+ 'req_plugin' => 'facebook_reviews',
1770
+ 'short_attr' => array(
1771
+ 'attr_name' => 'overall_rating',
1772
+ 'ifs' => 'reviews',
1773
+ ),
1774
+ ),
1775
+
1776
+ // Hide Reviews with no Text
1777
+ array(
1778
+ 'option_type' => 'select',
1779
+ 'label' => __( 'Hide Reviews with no description', 'feed-them-social' ),
1780
+ 'type' => 'text',
1781
+ 'id' => 'reviews_with_no_text',
1782
+ 'name' => 'reviews_with_no_text',
1783
+ 'options' => array(
1784
+ 1 => array(
1785
+ 'label' => __( 'Yes', 'feed-them-social' ),
1786
+ 'value' => 'no',
1787
+ ),
1788
+ 2 => array(
1789
+ 'label' => __( 'No', 'feed-them-social' ),
1790
+ 'value' => 'yes',
1791
+ ),
1792
+ ),
1793
+ 'req_plugin' => 'facebook_reviews',
1794
+ 'short_attr' => array(
1795
+ 'attr_name' => 'remove_reviews_no_description',
1796
+ 'ifs' => 'reviews',
1797
+ ),
1798
+ ),
1799
+
1800
+ // Hide Reviews the text link, "See More Reviews"
1801
+ array(
1802
+ 'option_type' => 'select',
1803
+ 'label' => __( 'Hide the text "See More Reviews"', 'feed-them-social' ),
1804
+ 'type' => 'text',
1805
+ 'id' => 'hide_see_more_reviews_link',
1806
+ 'name' => 'hide_see_more_reviews_link',
1807
+ 'options' => array(
1808
+ 1 => array(
1809
+ 'label' => __( 'No', 'feed-them-social' ),
1810
+ 'value' => 'no',
1811
+ ),
1812
+ 2 => array(
1813
+ 'label' => __( 'Yes', 'feed-them-social' ),
1814
+ 'value' => 'yes',
1815
+ ),
1816
+ ),
1817
+ 'req_plugin' => 'facebook_reviews',
1818
+ 'short_attr' => array(
1819
+ 'attr_name' => 'hide_see_more_reviews_link',
1820
+ 'ifs' => 'reviews',
1821
+ ),
1822
+ 'sub_options_end' => true,
1823
+ ),
1824
+
1825
+ // ******************************************
1826
+ // Like Box Options
1827
+ // ******************************************
1828
+ // Facebook Hide Like Box or Button (Premium)
1829
+ array(
1830
+ 'grouped_options_title' => __( 'Like Box', 'feed-them-social' ),
1831
+ 'option_type' => 'select',
1832
+ 'label' => __( 'Hide Like Box or Button', 'feed-them-social' ) . '<br/><small>' . __( 'Turn on from <a href="admin.php?page=fts-facebook-feed-styles-submenu-page">Facebook Options</a> page', 'feed-them-social' ) . '</small>',
1833
+ 'type' => 'text',
1834
+ 'id' => 'fb_hide_like_box_button',
1835
+ 'name' => 'fb_hide_like_box_button',
1836
+ 'options' => array(
1837
+ 1 => array(
1838
+ 'label' => __( 'Yes', 'feed-them-social' ),
1839
+ 'value' => 'yes',
1840
+ ),
1841
+ 2 => array(
1842
+ 'label' => __( 'No', 'feed-them-social' ),
1843
+ 'value' => 'no',
1844
+ ),
1845
+ ),
1846
+ 'req_plugin' => 'fts_premium',
1847
+ 'or_req_plugin' => 'combine_streams',
1848
+ 'or_req_plugin_three' => 'facebook_reviews',
1849
+ 'short_attr' => array(
1850
+ 'attr_name' => 'hide_like_option',
1851
+ 'ifs' => 'not_group',
1852
+ 'empty_error' => 'set',
1853
+ 'set_operator' => '==',
1854
+ 'set_equals' => 'no',
1855
+ 'empty_error_value' => '',
1856
+ ),
1857
+ 'sub_options' => array(
1858
+ 'sub_options_wrap_class' => 'main-like-box-wrap',
1859
+ ),
1860
+ ),
1861
+
1862
+ // Position of Like Box or Button (Premium)
1863
+ array(
1864
+ 'option_type' => 'select',
1865
+ 'label' => __( 'Position of Like Box or Button', 'feed-them-social' ),
1866
+ 'type' => 'text',
1867
+ 'id' => 'fb_position_likebox',
1868
+ 'name' => 'fb_position_likebox',
1869
+ 'options' => array(
1870
+ 1 => array(
1871
+ 'label' => __( 'Above Title', 'feed-them-social' ),
1872
+ 'value' => 'above_title',
1873
+ ),
1874
+ 2 => array(
1875
+ 'label' => __( 'Below Title', 'feed-them-social' ),
1876
+ 'value' => 'below_title',
1877
+ ),
1878
+ 3 => array(
1879
+ 'label' => __( 'Bottom of Feed', 'feed-them-social' ),
1880
+ 'value' => 'bottom',
1881
+ ),
1882
+ ),
1883
+ 'req_plugin' => 'fts_premium',
1884
+ 'or_req_plugin' => 'combine_streams',
1885
+ 'or_req_plugin_three' => 'facebook_reviews',
1886
+ 'short_attr' => array(
1887
+ 'attr_name' => 'show_follow_btn_where',
1888
+ 'ifs' => 'not_group',
1889
+ 'and_ifs' => 'like_box',
1890
+ ),
1891
+ 'sub_options' => array(
1892
+ 'sub_options_wrap_class' => 'like-box-wrap',
1893
+ ),
1894
+ ),
1895
+
1896
+ // Facebook Page Align Like Box or Button (Premium)
1897
+ array(
1898
+ 'option_type' => 'select',
1899
+ 'label' => __( 'Align Like Box or Button', 'feed-them-social' ),
1900
+ 'type' => 'text',
1901
+ 'id' => 'fb_align_likebox',
1902
+ 'name' => 'fb_align_likebox',
1903
+ 'options' => array(
1904
+ 1 => array(
1905
+ 'label' => __( 'Left', 'feed-them-social' ),
1906
+ 'value' => 'left',
1907
+ ),
1908
+ 2 => array(
1909
+ 'label' => __( 'Center', 'feed-them-social' ),
1910
+ 'value' => 'center',
1911
+ ),
1912
+ 3 => array(
1913
+ 'label' => __( 'Right', 'feed-them-social' ),
1914
+ 'value' => 'right',
1915
+ ),
1916
+ ),
1917
+ 'req_plugin' => 'fts_premium',
1918
+ 'or_req_plugin' => 'combine_streams',
1919
+ 'or_req_plugin_three' => 'facebook_reviews',
1920
+ 'short_attr' => array(
1921
+ 'attr_name' => 'like_option_align',
1922
+ 'ifs' => 'not_group',
1923
+ 'and_ifs' => 'like_box',
1924
+ ),
1925
+ ),
1926
+
1927
+ // Facebook Page Width of Like Box
1928
+ array(
1929
+ 'option_type' => 'input',
1930
+ 'label' => __( 'Width of Like Box', 'feed-them-social' ) . '<br/><small>' . __( 'This only works for the Like Box', 'feed-them-social' ) . '</small>',
1931
+ 'type' => 'text',
1932
+ 'id' => 'like_box_width',
1933
+ 'name' => 'like_box_width',
1934
+ 'placeholder' => __( '500px max', 'feed-them-social' ),
1935
+ 'req_plugin' => 'fts_premium',
1936
+ 'or_req_plugin' => 'combine_streams',
1937
+ 'or_req_plugin_three' => 'facebook_reviews',
1938
+
1939
+ // Relative to JS.
1940
+ 'short_attr' => array(
1941
+ 'attr_name' => 'like_box_width',
1942
+ 'empty_error' => 'set',
1943
+ 'empty_error_value' => 'like_box_width=500px',
1944
+ 'ifs' => 'not_group',
1945
+ 'and_ifs' => 'like_box',
1946
+ ),
1947
+ 'sub_options_end' => 2,
1948
+ ),
1949
+
1950
+ // ******************************************
1951
+ // Popup
1952
+ // ******************************************
1953
+ // Facebook Page Display Photos in Popup
1954
+ array(
1955
+ 'grouped_options_title' => __( 'Popup', 'feed-them-social' ),
1956
+ 'option_type' => 'select',
1957
+ 'label' => __( 'Display Photos in Popup', 'feed-them-social' ),
1958
+ 'type' => 'text',
1959
+ 'id' => 'facebook_popup',
1960
+ 'name' => 'facebook_popup',
1961
+ 'options' => array(
1962
+ 1 => array(
1963
+ 'label' => __( 'No', 'feed-them-social' ),
1964
+ 'value' => 'no',
1965
+ ),
1966
+ 2 => array(
1967
+ 'label' => __( 'Yes', 'feed-them-social' ),
1968
+ 'value' => 'yes',
1969
+ ),
1970
+ ),
1971
+ 'req_plugin' => 'fts_premium',
1972
+ 'or_req_plugin' => 'combine_streams',
1973
+ 'short_attr' => array(
1974
+ 'attr_name' => 'popup',
1975
+ ),
1976
+ 'sub_options' => array(
1977
+ 'sub_options_wrap_class' => 'facebook-popup-wrap',
1978
+ ),
1979
+ 'sub_options_end' => true,
1980
+ ),
1981
+
1982
+ // Facebook Comments in Popup
1983
+ array(
1984
+ 'option_type' => 'select',
1985
+ 'label' => __( 'Hide Comments in Popup', 'feed-them-social' ),
1986
+ 'type' => 'text',
1987
+ 'id' => 'facebook_popup_comments',
1988
+ 'name' => 'facebook_popup_comments',
1989
+ 'options' => array(
1990
+ 1 => array(
1991
+ 'label' => __( 'No', 'feed-them-social' ),
1992
+ 'value' => 'no',
1993
+ ),
1994
+ 2 => array(
1995
+ 'label' => __( 'Yes', 'feed-them-social' ),
1996
+ 'value' => 'yes',
1997
+ ),
1998
+ ),
1999
+ 'req_plugin' => 'fts_premium',
2000
+ 'or_req_plugin' => 'combine_streams',
2001
+ 'short_attr' => array(
2002
+ 'attr_name' => 'hide_comments_popup',
2003
+ 'ifs' => 'popup',
2004
+ ),
2005
+ 'sub_options' => array(
2006
+ 'sub_options_wrap_class' => 'display-comments-wrap',
2007
+ ),
2008
+ 'sub_options_end' => true,
2009
+ ),
2010
+
2011
+ // ******************************************
2012
+ // Facebook Load More Options
2013
+ // ******************************************
2014
+ // Facebook Page Load More Button
2015
+ array(
2016
+ 'grouped_options_title' => __( 'Load More', 'feed-them-social' ),
2017
+ 'option_type' => 'select',
2018
+ 'label' => __( 'Load More Button', 'feed-them-social' ),
2019
+ 'type' => 'text',
2020
+ 'id' => 'fb_load_more_option',
2021
+ 'name' => 'fb_load_more_option',
2022
+ 'options' => array(
2023
+ 1 => array(
2024
+ 'label' => __( 'No', 'feed-them-social' ),
2025
+ 'value' => 'no',
2026
+ ),
2027
+ 2 => array(
2028
+ 'label' => __( 'Yes', 'feed-them-social' ),
2029
+ 'value' => 'yes',
2030
+ ),
2031
+ ),
2032
+ 'req_plugin' => 'fts_premium',
2033
+ 'or_req_plugin' => 'facebook_reviews',
2034
+ 'short_attr' => array(
2035
+ 'attr_name' => '',
2036
+ 'empty_error_value' => '',
2037
+ 'no_attribute' => 'yes',
2038
+ 'ifs' => 'not_events',
2039
+ ),
2040
+ 'sub_options' => array(
2041
+ 'sub_options_wrap_class' => 'facebook-loadmore-wrap',
2042
+
2043
+ // 'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2044
+ ),
2045
+ ),
2046
+
2047
+ // Facebook Page Load More Style
2048
+ array(
2049
+ 'option_type' => 'select',
2050
+ 'label' => __( 'Load More Style', 'feed-them-social' ),
2051
+ 'type' => 'text',
2052
+ 'id' => 'fb_load_more_style',
2053
+ 'name' => 'fb_load_more_style',
2054
+ 'instructional-text' => '<strong>' . __( 'NOTE:', 'feed-them-social' ) . '</strong> ' . __( 'The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social' ),
2055
+ 'options' => array(
2056
+ 1 => array(
2057
+ 'label' => __( 'Button', 'feed-them-social' ),
2058
+ 'value' => 'button',
2059
+ ),
2060
+ 2 => array(
2061
+ 'label' => __( 'AutoScroll', 'feed-them-social' ),
2062
+ 'value' => 'autoscroll',
2063
+ ),
2064
+ ),
2065
+ 'req_plugin' => 'fts_premium',
2066
+ 'or_req_plugin' => 'facebook_reviews',
2067
+ 'short_attr' => array(
2068
+ 'attr_name' => 'loadmore',
2069
+ 'ifs' => 'load_more',
2070
+ ),
2071
+
2072
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2073
+ 'sub_options' => array(
2074
+ 'sub_options_wrap_class' => 'fts-facebook-load-more-options-wrap',
2075
+
2076
+ // 'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2077
+ ),
2078
+ 'sub_options_end' => true,
2079
+ ),
2080
+
2081
+ // Facebook Page Load more Button Width
2082
+ array(
2083
+ 'option_type' => 'input',
2084
+ 'label' => __( 'Load more Button Width', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank for auto width', 'feed-them-social' ) . '</small>',
2085
+ 'type' => 'text',
2086
+ 'id' => 'loadmore_button_width',
2087
+ 'name' => 'loadmore_button_width',
2088
+ 'placeholder' => '300px ' . __( 'for example', 'feed-them-social' ),
2089
+ 'value' => '',
2090
+ 'req_plugin' => 'fts_premium',
2091
+ 'or_req_plugin' => 'facebook_reviews',
2092
+
2093
+ // Relative to JS.
2094
+ 'short_attr' => array(
2095
+ 'attr_name' => 'loadmore_btn_maxwidth',
2096
+ 'empty_error' => 'set',
2097
+ 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
2098
+ 'ifs' => 'load_more',
2099
+ ),
2100
+
2101
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2102
+ 'sub_options' => array(
2103
+ 'sub_options_wrap_class' => 'fts-facebook-load-more-options2-wrap',
2104
+
2105
+ // 'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2106
+ ),
2107
+ ),
2108
+
2109
+ // Facebook Page Load more Button Margin
2110
+ array(
2111
+ 'option_type' => 'input',
2112
+ 'label' => __( 'Load more Button Margin', 'feed-them-social' ),
2113
+ 'type' => 'text',
2114
+ 'id' => 'loadmore_button_margin',
2115
+ 'name' => 'loadmore_button_margin',
2116
+ 'placeholder' => '10px ' . __( 'for example', 'feed-them-social' ),
2117
+ 'value' => '',
2118
+ 'req_plugin' => 'fts_premium',
2119
+ 'or_req_plugin' => 'facebook_reviews',
2120
+
2121
+ // Relative to JS.
2122
+ 'short_attr' => array(
2123
+ 'attr_name' => 'loadmore_btn_margin',
2124
+ 'empty_error' => 'set',
2125
+ 'empty_error_value' => 'loadmore_btn_margin=10px',
2126
+ 'ifs' => 'load_more',
2127
+ ),
2128
+ 'sub_options_end' => 2,
2129
+ ),
2130
+
2131
+ // ******************************************
2132
+ // Facebook Grid Options
2133
+ // ******************************************
2134
+ // Facebook Page Display Posts in Grid
2135
+ array(
2136
+ 'grouped_options_title' => __( 'Grid', 'feed-them-social' ),
2137
+ 'input_wrap_class' => 'fb-posts-in-grid-option-wrap',
2138
+ 'option_type' => 'select',
2139
+ 'label' => __( 'Display Posts in Grid', 'feed-them-social' ),
2140
+ 'type' => 'text',
2141
+ 'id' => 'fb-grid-option',
2142
+ 'name' => 'fb-grid-option',
2143
+ 'options' => array(
2144
+ 1 => array(
2145
+ 'label' => __( 'No', 'feed-them-social' ),
2146
+ 'value' => 'no',
2147
+ ),
2148
+ 2 => array(
2149
+ 'label' => __( 'Yes', 'feed-them-social' ),
2150
+ 'value' => 'yes',
2151
+ ),
2152
+ ),
2153
+ 'req_plugin' => 'fts_premium',
2154
+ 'or_req_plugin' => 'combine_streams',
2155
+ 'or_req_plugin_three' => 'facebook_reviews',
2156
+ 'short_attr' => array(
2157
+ 'attr_name' => 'grid',
2158
+ 'empty_error' => 'set',
2159
+ 'set_operator' => '==',
2160
+ 'set_equals' => 'yes',
2161
+ 'empty_error_value' => '',
2162
+ ),
2163
+
2164
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2165
+ 'sub_options' => array(
2166
+ 'sub_options_wrap_class' => 'main-grid-options-wrap',
2167
+ ),
2168
+ ),
2169
+
2170
+ // Grid Column Width
2171
+ array(
2172
+ 'option_type' => 'input',
2173
+ 'label' => __( 'Grid Column Width', 'feed-them-social' ),
2174
+ 'type' => 'text',
2175
+ 'id' => 'facebook_grid_column_width',
2176
+ 'name' => 'facebook_grid_column_width',
2177
+ 'instructional-text' => '<strong> ' . __( 'NOTE:', 'feed-them-social' ) . '</strong> ' . sprintf( __( 'Define the Width of each post and the Space between each post below. You must add px after any number. Learn how to make the %1$sgrid responsive%2$s.', 'feed-them-social' ), '<a href="https://www.slickremix.com/docs/responsive-grid-css/" target="_blank">', '</a>' ),
2178
+ 'placeholder' => '310px ' . __( 'for example', 'feed-them-social' ),
2179
+ 'value' => '',
2180
+ 'req_plugin' => 'fts_premium',
2181
+ 'or_req_plugin' => 'combine_streams',
2182
+ 'or_req_plugin_three' => 'facebook_reviews',
2183
+
2184
+ // Relative to JS.
2185
+ 'short_attr' => array(
2186
+ 'attr_name' => 'colmn_width',
2187
+ 'empty_error' => 'set',
2188
+ 'empty_error_value' => 'colmn_width=310px',
2189
+ 'ifs' => 'grid',
2190
+ ),
2191
+
2192
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2193
+ 'sub_options' => array(
2194
+ 'sub_options_wrap_class' => 'fts-facebook-grid-options-wrap',
2195
+
2196
+ // 'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2197
+ ),
2198
+ ),
2199
+
2200
+ // Grid Spaces Between Posts
2201
+ array(
2202
+ 'option_type' => 'input',
2203
+ 'label' => __( 'Grid Spaces Between Posts', 'feed-them-social' ),
2204
+ 'type' => 'text',
2205
+ 'id' => 'facebook_grid_space_between_posts',
2206
+ 'name' => 'facebook_grid_space_between_posts',
2207
+ 'placeholder' => '10px ' . __( 'for example', 'feed-them-social' ),
2208
+ 'value' => '',
2209
+ 'req_plugin' => 'fts_premium',
2210
+ 'or_req_plugin' => 'combine_streams',
2211
+ 'or_req_plugin_three' => 'facebook_reviews',
2212
+
2213
+ // Relative to JS.
2214
+ 'short_attr' => array(
2215
+ 'attr_name' => 'space_between_posts',
2216
+ 'empty_error' => 'set',
2217
+ 'empty_error_value' => 'space_between_posts=10px',
2218
+ 'ifs' => 'grid',
2219
+ ),
2220
+ 'sub_options_end' => 2,
2221
+ ),
2222
+
2223
+ // ******************************************
2224
+ // Facebook Video Options
2225
+ // ******************************************
2226
+ // Video Play Button
2227
+ array(
2228
+ 'grouped_options_title' => __( 'Video Button Options', 'feed-them-social' ),
2229
+ 'option_type' => 'select',
2230
+ 'label' => __( 'Video Play Button', 'feed-them-social' ) . '<br/><small>' . __( 'Displays over Video Thumbnail', 'feed-them-social' ) . '</small>',
2231
+ 'type' => 'text',
2232
+ 'id' => 'facebook_show_video_button',
2233
+ 'name' => 'facebook_show_video_button',
2234
+ 'options' => array(
2235
+ 1 => array(
2236
+ 'label' => __( 'No', 'feed-them-social' ),
2237
+ 'value' => 'no',
2238
+ ),
2239
+ 2 => array(
2240
+ 'label' => __( 'Yes', 'feed-them-social' ),
2241
+ 'value' => 'yes',
2242
+ ),
2243
+ ),
2244
+ 'req_plugin' => 'fts_premium',
2245
+ 'short_attr' => array(
2246
+ 'attr_name' => 'play_btn',
2247
+ 'empty_error' => 'set',
2248
+ 'set_operator' => '==',
2249
+ 'set_equals' => 'yes',
2250
+ 'ifs' => 'album_videos',
2251
+ ),
2252
+
2253
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2254
+ 'sub_options' => array(
2255
+ 'sub_options_wrap_class' => 'fb-video-play-btn-options-wrap',
2256
+ ),
2257
+ ),
2258
+
2259
+ // Size of the Play Button
2260
+ array(
2261
+ 'option_type' => 'input',
2262
+ 'label' => __( 'Size of the Play Button', 'feed-them-social' ),
2263
+ 'type' => 'text',
2264
+ 'id' => 'facebook_size_video_play_btn',
2265
+ 'name' => 'facebook_size_video_play_btn',
2266
+ 'placeholder' => '40px ' . __( 'for example', 'feed-them-social' ),
2267
+ 'req_plugin' => 'fts_premium',
2268
+
2269
+ // Relative to JS.
2270
+ 'short_attr' => array(
2271
+ 'attr_name' => 'play_btn_size',
2272
+ 'empty_error' => 'set',
2273
+ 'empty_error_value' => 'play_btn_size=40px',
2274
+ 'ifs' => 'album_videos',
2275
+ 'and_ifs' => 'video',
2276
+ ),
2277
+
2278
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2279
+ 'sub_options' => array(
2280
+ 'sub_options_wrap_class' => 'fb-video-play-btn-options-content',
2281
+ ),
2282
+ ),
2283
+
2284
+ // Show Play Button in Front
2285
+ array(
2286
+ 'option_type' => 'select',
2287
+ 'label' => __( 'Show Play Button in Front', 'feed-them-social' ) . '<br/><small>' . __( 'Displays before hovering over thumbnail', 'feed-them-social' ) . '</small>',
2288
+ 'type' => 'text',
2289
+ 'id' => 'facebook_show_video_button_in_front',
2290
+ 'name' => 'facebook_show_video_button_in_front',
2291
+ 'options' => array(
2292
+ 1 => array(
2293
+ 'label' => __( 'No', 'feed-them-social' ),
2294
+ 'value' => 'no',
2295
+ ),
2296
+ 2 => array(
2297
+ 'label' => __( 'Yes', 'feed-them-social' ),
2298
+ 'value' => 'yes',
2299
+ ),
2300
+ ),
2301
+ 'req_plugin' => 'fts_premium',
2302
+ 'short_attr' => array(
2303
+ 'attr_name' => 'play_btn_visible',
2304
+ 'ifs' => 'album_videos',
2305
+ 'and_ifs' => 'video',
2306
+ ),
2307
+ 'sub_options_end' => 2,
2308
+ ),
2309
+
2310
+ // ******************************************
2311
+ // Facebook Carousel
2312
+ // ******************************************
2313
+ // Carousel/Slideshow
2314
+ array(
2315
+ 'grouped_options_title' => __( 'Carousel/Slider', 'feed-them-social' ),
2316
+ 'input_wrap_id' => 'facebook_slider',
2317
+ 'instructional-text' => __( 'Create a Carousel or Slideshow with these options.', 'feed-them-social' ) . ' <a href="http://feedthemsocial.com/facebook-carousels-or-sliders/" target="_blank">' . __( 'View Demos', 'feed-them-social' ) . '</a> ' . __( 'and copy easy to use shortcode examples.', 'feed-them-social' ),
2318
+ 'option_type' => 'select',
2319
+ 'label' => __( 'Carousel/Slideshow', 'feed-them-social' ),
2320
+ 'type' => 'text',
2321
+ 'id' => 'fts-slider',
2322
+ 'name' => 'fts-slider',
2323
+ 'options' => array(
2324
+ 1 => array(
2325
+ 'label' => __( 'Off', 'feed-them-social' ),
2326
+ 'value' => 'no',
2327
+ ),
2328
+ 2 => array(
2329
+ 'label' => __( 'On', 'feed-them-social' ),
2330
+ 'value' => 'yes',
2331
+ ),
2332
+ ),
2333
+ 'req_plugin' => 'fts_carousel',
2334
+ 'short_attr' => array(
2335
+ 'attr_name' => 'slider',
2336
+ 'empty_error' => 'set',
2337
+ 'set_operator' => '==',
2338
+ 'set_equals' => 'yes',
2339
+ 'ifs' => 'album_photos,album_videos',
2340
+ ),
2341
+
2342
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2343
+ 'sub_options' => array(
2344
+ 'sub_options_wrap_class' => 'slideshow-wrap',
2345
+ ),
2346
+ ),
2347
+
2348
+ // Carousel/Slideshow Type
2349
+ array(
2350
+ 'input_wrap_id' => 'facebook_scrollhorz_or_carousel',
2351
+ 'option_type' => 'select',
2352
+ 'label' => __( 'Type', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-social' ) . '</small>',
2353
+ 'type' => 'text',
2354
+ 'id' => 'scrollhorz_or_carousel',
2355
+ 'name' => 'scrollhorz_or_carousel',
2356
+ 'options' => array(
2357
+ 1 => array(
2358
+ 'label' => __( 'Slideshow', 'feed-them-social' ),
2359
+ 'value' => 'scrollhorz',
2360
+ ),
2361
+ 2 => array(
2362
+ 'label' => __( 'Carousel', 'feed-them-social' ),
2363
+ 'value' => 'carousel',
2364
+ ),
2365
+ ),
2366
+ 'req_plugin' => 'fts_carousel',
2367
+ 'short_attr' => array(
2368
+ 'attr_name' => 'scrollhorz_or_carousel',
2369
+ 'ifs' => 'album_photos,album_videos',
2370
+ 'and_ifs' => 'carousel',
2371
+ ),
2372
+
2373
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2374
+ 'sub_options' => array(
2375
+ 'sub_options_wrap_class' => 'slider_options_wrap',
2376
+ ),
2377
+ ),
2378
+
2379
+ // Carousel Slides Visible
2380
+ array(
2381
+ 'input_wrap_id' => 'facebook_slides_visible',
2382
+ 'option_type' => 'input',
2383
+ 'label' => __( 'Carousel Slides Visible', 'feed-them-social' ) . '<br/><small>' . __( 'Not for Slideshow. Example: 1-500', 'feed-them-social' ) . '</small>',
2384
+ 'type' => 'text',
2385
+ 'id' => 'slides_visible',
2386
+ 'name' => 'slides_visible',
2387
+ 'placeholder' => __( '3 is the default number', 'feed-them-social' ),
2388
+ 'req_plugin' => 'fts_carousel',
2389
+
2390
+ // Relative to JS.
2391
+ 'short_attr' => array(
2392
+ 'attr_name' => 'slides_visible',
2393
+ 'empty_error' => 'set',
2394
+ 'empty_error_value' => 'slides_visible=3',
2395
+ 'ifs' => 'album_photos,album_videos',
2396
+ 'and_ifs' => 'carousel',
2397
+ ),
2398
+
2399
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2400
+ 'sub_options' => array(
2401
+ 'sub_options_wrap_class' => 'slider_carousel_wrap',
2402
+ ),
2403
+ ),
2404
+
2405
+ // Carousel Spacing in between Slides
2406
+ array(
2407
+ 'input_wrap_id' => 'facebook_slider_spacing',
2408
+ 'option_type' => 'input',
2409
+ 'label' => __( 'Spacing in between Slides', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-social' ) . '</small>',
2410
+ 'type' => 'text',
2411
+ 'id' => 'slider_spacing',
2412
+ 'name' => 'slider_spacing',
2413
+ 'value' => '',
2414
+ 'placeholder' => __( '2px', 'feed-them-social' ),
2415
+ 'req_plugin' => 'fts_carousel',
2416
+
2417
+ // Relative to JS.
2418
+ 'short_attr' => array(
2419
+ 'attr_name' => 'slider_spacing',
2420
+ 'empty_error' => 'set',
2421
+ 'empty_error_value' => 'slider_spacing=2px',
2422
+ 'ifs' => 'album_photos,album_videos',
2423
+ 'and_ifs' => 'carousel',
2424
+ ),
2425
+ 'sub_options_end' => true,
2426
+ ),
2427
+
2428
+ // Carousel/Slideshow Margin
2429
+ array(
2430
+ 'input_wrap_id' => 'facebook_slider_margin',
2431
+ 'option_type' => 'input',
2432
+ 'label' => __( 'Carousel/Slideshow Margin', 'feed-them-social' ) . '<br/><small>' . __( 'Center feed. Add space above/below.', 'feed-them-social' ) . '</small>',
2433
+ 'type' => 'text',
2434
+ 'id' => 'slider_margin',
2435
+ 'name' => 'slider_margin',
2436
+ 'value' => '',
2437
+ 'placeholder' => __( '-6px auto 1px auto', 'feed-them-social' ),
2438
+ 'req_plugin' => 'fts_carousel',
2439
+
2440
+ // Relative to JS.
2441
+ 'short_attr' => array(
2442
+ 'attr_name' => 'slider_margin',
2443
+ 'empty_error' => 'set',
2444
+ 'empty_error_value' => 'slider_margin="-6px auto 1px auto"',
2445
+ 'ifs' => 'album_photos,album_videos',
2446
+ 'and_ifs' => 'carousel',
2447
+ ),
2448
+ ),
2449
+
2450
+ // Carousel/Slideshow Slider Speed
2451
+ array(
2452
+ 'input_wrap_id' => 'facebook_slider_speed',
2453
+ 'option_type' => 'input',
2454
+ 'label' => __( 'Slider Speed', 'feed-them-social' ) . '<br/><small>' . __( 'How fast the slider changes', 'feed-them-social' ) . '</small>',
2455
+ 'type' => 'text',
2456
+ 'id' => 'slider_speed',
2457
+ 'name' => 'slider_speed',
2458
+ 'value' => '',
2459
+ 'placeholder' => __( '0-10000', 'feed-them-social' ),
2460
+ 'req_plugin' => 'fts_carousel',
2461
+
2462
+ // Relative to JS.
2463
+ 'short_attr' => array(
2464
+ 'attr_name' => 'slider_speed',
2465
+ 'empty_error' => 'set',
2466
+ 'empty_error_value' => 'slider_speed=1000',
2467
+ 'ifs' => 'album_photos,album_videos',
2468
+ 'and_ifs' => 'carousel',
2469
+ ),
2470
+ ),
2471
+
2472
+ // Carousel/Slideshow Slider Timeout
2473
+ array(
2474
+ 'input_wrap_id' => 'facebook_slider_timeout',
2475
+ 'option_type' => 'input',
2476
+ 'label' => __( 'Slider Timeout', 'feed-them-social' ) . '<br/><small>' . __( 'Amount of Time before the next slide.', 'feed-them-social' ) . '</small>',
2477
+ 'type' => 'text',
2478
+ 'id' => 'slider_timeout',
2479
+ 'name' => 'slider_timeout',
2480
+ 'value' => '',
2481
+ 'placeholder' => __( '0-10000', 'feed-them-social' ),
2482
+ 'req_plugin' => 'fts_carousel',
2483
+
2484
+ // Relative to JS.
2485
+ 'short_attr' => array(
2486
+ 'attr_name' => 'slider_timeout',
2487
+ 'empty_error' => 'set',
2488
+ 'empty_error_value' => 'slider_timeout=1000',
2489
+ 'ifs' => 'album_photos,album_videos',
2490
+ 'and_ifs' => 'carousel',
2491
+ ),
2492
+ ),
2493
+
2494
+ // Carousel/Slideshow
2495
+ array(
2496
+ 'input_wrap_id' => 'facebook_slider_controls',
2497
+ 'option_type' => 'select',
2498
+ 'label' => __( 'Slider Controls', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-social' ) . '</small>',
2499
+ 'type' => 'text',
2500
+ 'id' => 'slider_controls',
2501
+ 'name' => 'slider_controls',
2502
+ 'options' => array(
2503
+ 1 => array(
2504
+ 'label' => __( 'Dots above Feed', 'feed-them-social' ),
2505
+ 'value' => 'dots_above_feed',
2506
+ ),
2507
+ 2 => array(
2508
+ 'label' => __( 'Dots and Arrows above Feed', 'feed-them-social' ),
2509
+ 'value' => 'dots_and_arrows_above_feed',
2510
+ ),
2511
+ 3 => array(
2512
+ 'label' => __( 'Dots and Numbers above Feed', 'feed-them-social' ),
2513
+ 'value' => 'dots_and_numbers_above_feed',
2514
+ ),
2515
+ 4 => array(
2516
+ 'label' => __( 'Dots, Arrows and Numbers above Feed', 'feed-them-social' ),
2517
+ 'value' => 'dots_arrows_and_numbers_above_feed',
2518
+ ),
2519
+ 5 => array(
2520
+ 'label' => __( 'Arrows and Numbers above feed', 'feed-them-social' ),
2521
+ 'value' => 'arrows_and_numbers_above_feed',
2522
+ ),
2523
+ 6 => array(
2524
+ 'label' => __( 'Arrows above Feed', 'feed-them-social' ),
2525
+ 'value' => 'arrows_above_feed',
2526
+ ),
2527
+ 7 => array(
2528
+ 'label' => __( 'Numbers above Feed', 'feed-them-social' ),
2529
+ 'value' => 'numbers_above_feed',
2530
+ ),
2531
+ 8 => array(
2532
+ 'label' => __( 'Dots below Feed', 'feed-them-social' ),
2533
+ 'value' => 'dots_below_feed',
2534
+ ),
2535
+ array(
2536
+ 'label' => __( 'Dots and Arrows below Feed', 'feed-them-social' ),
2537
+ 'value' => 'dots_and_arrows_below_feed',
2538
+ ),
2539
+ array(
2540
+ 'label' => __( 'Dots and Numbers below Feed', 'feed-them-social' ),
2541
+ 'value' => 'dots_and_numbers_below_feed',
2542
+ ),
2543
+ array(
2544
+ 'label' => __( 'Dots, Arrows and Numbers below Feed', 'feed-them-social' ),
2545
+ 'value' => 'dots_arrows_and_numbers_below_feed',
2546
+ ),
2547
+ array(
2548
+ 'label' => __( 'Arrows below Feed', 'feed-them-social' ),
2549
+ 'value' => 'arrows_below_feed',
2550
+ ),
2551
+ array(
2552
+ 'label' => __( 'Numbers Below Feed', 'feed-them-social' ),
2553
+ 'value' => 'numbers_below_feed',
2554
+ ),
2555
+ ),
2556
+ 'req_plugin' => 'fts_carousel',
2557
+
2558
+ // Relative to JS.
2559
+ 'short_attr' => array(
2560
+ 'attr_name' => 'slider_controls',
2561
+ 'ifs' => 'album_photos,album_videos',
2562
+ 'and_ifs' => 'carousel',
2563
+ ),
2564
+ ),
2565
+
2566
+ // Carousel/Slideshow Slider Controls Text Color
2567
+ array(
2568
+ 'input_wrap_id' => 'facebook_slider_controls_text_color',
2569
+ 'option_type' => 'input',
2570
+ 'label' => __( 'Slider Controls Text Color', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-social' ) . '</small>',
2571
+ 'type' => 'text',
2572
+ 'id' => 'slider_controls_text_color',
2573
+ 'name' => 'slider_controls_text_color',
2574
+ 'class' => 'fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:\'#eee\',pickerFace:3,pickerBorder:0,pickerInsetColor:\'white\'}',
2575
+ 'value' => '',
2576
+ 'placeholder' => '#FFF',
2577
+ 'req_plugin' => 'fts_carousel',
2578
+
2579
+ // Relative to JS.
2580
+ 'short_attr' => array(
2581
+ 'attr_name' => 'slider_controls_text_color',
2582
+ 'empty_error' => 'set',
2583
+ 'empty_error_value' => 'slider_controls_text_color=#FFF',
2584
+ 'ifs' => 'album_photos,album_videos',
2585
+ 'and_ifs' => 'carousel',
2586
+ ),
2587
+ ),
2588
+
2589
+ // Carousel/Slideshow Slider Controls Bar Color
2590
+ array(
2591
+ 'input_wrap_id' => 'facebook_slider_controls_bar_color',
2592
+ 'option_type' => 'input',
2593
+ 'label' => __( 'Slider Controls Bar Color', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-social' ) . '</small>',
2594
+ 'type' => 'text',
2595
+ 'id' => 'slider_controls_bar_color',
2596
+ 'name' => 'slider_controls_bar_color',
2597
+ 'class' => 'fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:\'#eee\',pickerFace:3,pickerBorder:0,pickerInsetColor:\'white\'}',
2598
+ 'value' => '',
2599
+ 'placeholder' => '#000',
2600
+ 'req_plugin' => 'fts_carousel',
2601
+
2602
+ // Relative to JS.
2603
+ 'short_attr' => array(
2604
+ 'attr_name' => 'slider_controls_bar_color',
2605
+ 'empty_error' => 'set',
2606
+ 'empty_error_value' => 'slider_controls_bar_color=320px',
2607
+ 'ifs' => 'album_photos,album_videos',
2608
+ 'and_ifs' => 'carousel',
2609
+ ),
2610
+ ),
2611
+
2612
+ // Carousel/Slideshow Slider Controls Bar Color
2613
+ array(
2614
+ 'input_wrap_id' => 'facebook_slider_controls_width',
2615
+ 'option_type' => 'input',
2616
+ 'label' => __( 'Slider Controls Max Width', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-social' ) . '</small>',
2617
+ 'type' => 'text',
2618
+ 'id' => 'slider_controls_width',
2619
+ 'name' => 'slider_controls_width',
2620
+ 'class' => 'fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:\'#eee\',pickerFace:3,pickerBorder:0,pickerInsetColor:\'white\'}',
2621
+ 'value' => '',
2622
+ 'placeholder' => '320px',
2623
+ 'req_plugin' => 'fts_carousel',
2624
+
2625
+ // Relative to JS.
2626
+ 'short_attr' => array(
2627
+ 'attr_name' => 'slider_controls_width',
2628
+ 'empty_error' => 'set',
2629
+ 'empty_error_value' => 'slider_controls_width=320px',
2630
+ 'ifs' => 'album_photos,album_videos',
2631
+ 'and_ifs' => 'carousel',
2632
+ ),
2633
+ 'sub_options_end' => 2,
2634
+ ),
2635
+ ),
2636
+
2637
+ // Final Shortcode ifs
2638
+ 'shortcode_ifs' => array(
2639
+ 'page' => array(
2640
+ 'if' => array(
2641
+ 'class' => 'select#facebook-messages-selector',
2642
+ 'operator' => '==',
2643
+ 'value' => 'page',
2644
+ ),
2645
+ ),
2646
+ 'events' => array(
2647
+ 'if' => array(
2648
+ 'class' => 'select#facebook-messages-selector',
2649
+ 'operator' => '==',
2650
+ 'value' => 'events',
2651
+ ),
2652
+ ),
2653
+ 'not_events' => array(
2654
+ 'if' => array(
2655
+ 'class' => 'select#facebook-messages-selector',
2656
+ 'operator' => '!==',
2657
+ 'value' => 'events',
2658
+ ),
2659
+ ),
2660
+ 'event' => array(
2661
+ 'if' => array(
2662
+ 'class' => 'select#facebook-messages-selector',
2663
+ 'operator' => '==',
2664
+ 'value' => 'event',
2665
+ ),
2666
+ ),
2667
+ 'group' => array(
2668
+ 'if' => array(
2669
+ 'class' => 'select#facebook-messages-selector',
2670
+ 'operator' => '==',
2671
+ 'value' => 'group',
2672
+ ),
2673
+ ),
2674
+ 'not_group' => array(
2675
+ 'if' => array(
2676
+ 'class' => 'select#facebook-messages-selector',
2677
+ 'operator' => '!==',
2678
+ 'value' => 'group',
2679
+ ),
2680
+ ),
2681
+ 'album_photos' => array(
2682
+ 'if' => array(
2683
+ 'class' => 'select#facebook-messages-selector',
2684
+ 'operator' => '==',
2685
+ 'value' => 'album_photos',
2686
+ ),
2687
+ ),
2688
+ 'albums' => array(
2689
+ 'if' => array(
2690
+ 'class' => 'select#facebook-messages-selector',
2691
+ 'operator' => '==',
2692
+ 'value' => 'albums',
2693
+ ),
2694
+ ),
2695
+ 'album_videos' => array(
2696
+ 'if' => array(
2697
+ 'class' => 'select#facebook-messages-selector',
2698
+ 'operator' => '==',
2699
+ 'value' => 'album_videos',
2700
+ ),
2701
+ ),
2702
+ 'reviews' => array(
2703
+ 'if' => array(
2704
+ 'class' => 'select#facebook-messages-selector',
2705
+ 'operator' => '==',
2706
+ 'value' => 'reviews',
2707
+ ),
2708
+ ),
2709
+ 'like_box' => array(
2710
+ 'if' => array(
2711
+ 'class' => 'select#fb_hide_like_box_button',
2712
+ 'operator' => '==',
2713
+ 'value' => 'no',
2714
+ ),
2715
+ ),
2716
+ 'popup' => array(
2717
+ 'if' => array(
2718
+ 'class' => 'select#facebook_popup',
2719
+ 'operator' => '==',
2720
+ 'value' => 'yes',
2721
+ ),
2722
+ ),
2723
+ 'load_more' => array(
2724
+ 'if' => array(
2725
+ 'class' => 'select#fb_load_more_option',
2726
+ 'operator' => '==',
2727
+ 'value' => 'yes',
2728
+ ),
2729
+ ),
2730
+ 'video' => array(
2731
+ 'if' => array(
2732
+ 'class' => 'select#facebook_show_video_button',
2733
+ 'operator' => '==',
2734
+ 'value' => 'yes',
2735
+ ),
2736
+ ),
2737
+ 'grid' => array(
2738
+ 'if' => array(
2739
+ 'class' => 'select#fb-grid-option',
2740
+ 'operator' => '==',
2741
+ 'value' => 'yes',
2742
+ ),
2743
+ ),
2744
+ 'carousel' => array(
2745
+ 'if' => array(
2746
+ 'class' => 'select#fts-slider',
2747
+ 'operator' => '==',
2748
+ 'value' => 'yes',
2749
+ ),
2750
+ ),
2751
+ ),
2752
+
2753
+ // Generator Info
2754
+ 'generator_title' => __( 'Facebook Page Feed Shortcode', 'feed-them-social' ),
2755
+ 'generator_class' => 'facebook-page-final-shortcode',
2756
+ ), // End Facebook Page Feed
2757
+
2758
+ // ******************************************
2759
+ // Youtube Feed
2760
+ // ******************************************
2761
+ 'youtube' => array(
2762
+ 'section_attr_key' => 'youtube_',
2763
+ 'section_title' => __( 'Youtube Shortcode Generator', 'feed-them-social' ),
2764
+ 'section_wrap_class' => 'fts-youtube-shortcode-form',
2765
+
2766
+ // Form Info
2767
+ 'form_wrap_classes' => 'youtube-shortcode-form',
2768
+ 'form_wrap_id' => 'fts-youtube-form',
2769
+
2770
+ // Feed Type Selection
2771
+ 'feed_type_select' => array(
2772
+ 'label' => __( 'Feed Type', 'feed-them-social' ) . '<br/><small><a href="http://feedthemsocial.com/youtube-demo-1-large-with-4-video-per-row/" target="_blank">' . __( 'See Example Demos', 'feed-them-social' ) . '</a></small>',
2773
+ 'select_wrap_classes' => 'youtube-gen-selection',
2774
+ 'select_classes' => '',
2775
+ 'select_name' => 'youtube-messages-selector',
2776
+ 'select_id' => 'youtube-messages-selector',
2777
+ ),
2778
+
2779
+ // Token Check
2780
+ 'token_check' => array(
2781
+ array(
2782
+ 'option_name' => 'youtube_custom_api_token',
2783
+ 'no_token_msg' => __( '<strong>STEP 1:</strong> Please add your API Token or Access Token to our <a href="admin.php?page=fts-youtube-feed-styles-submenu-page">Youtube Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social' ),
2784
+ ),
2785
+ ),
2786
+
2787
+ // Feed Types and their options
2788
+ 'feeds_types' => array(
2789
+
2790
+ // Channel Feed
2791
+ array(
2792
+ 'value' => 'channelID',
2793
+ 'title' => __( 'Channel Feed', 'feed-them-social' ),
2794
+ ),
2795
+
2796
+ // Channel Playlist Feed
2797
+ array(
2798
+ 'value' => 'playlistID',
2799
+ 'title' => __( 'Channel\'s Specific Playlist', 'feed-them-social' ),
2800
+ ),
2801
+
2802
+ // User's Most Recent Videos
2803
+ array(
2804
+ 'value' => 'username',
2805
+ 'title' => __( 'User\'s Most Recent Videos', 'feed-them-social' ),
2806
+ ),
2807
+
2808
+ // User's Playlist
2809
+ array(
2810
+ 'value' => 'userPlaylist',
2811
+ 'title' => __( 'User\'s Specific Playlist', 'feed-them-social' ),
2812
+ ),
2813
+
2814
+ // Single Video with description
2815
+ array(
2816
+ 'value' => 'singleID',
2817
+ 'title' => __( 'Single Video with title, date & description', 'feed-them-social' ),
2818
+ ),
2819
+ ),
2820
+ 'short_attr_final' => 'yes',
2821
+
2822
+ // Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
2823
+ // 'empty_error'=> 'set',
2824
+ // 'empty_error_value'=> 'auto',
2825
+ 'main_options' => array(
2826
+
2827
+ // Youtube Name
2828
+ array(
2829
+ 'option_type' => 'input',
2830
+ 'input_wrap_class' => 'youtube_name',
2831
+ 'label' => __( 'Youtube Username (required)', 'feed-them-social' ),
2832
+ 'instructional-text' => __( 'You must copy your YouTube <strong>Username</strong> url and paste it below. Your url should look similar to our Example url.<br/><strong>Example:</strong>', 'feed-them-social' ) . ' <a href="https://www.youtube.com/channel/" target="_blank">https://www.youtube.com/user/nationalgeographic</a>',
2833
+ 'type' => 'text',
2834
+ 'id' => 'youtube_name',
2835
+ 'name' => 'youtube_name',
2836
+
2837
+ // Relative to JS.
2838
+ 'short_attr' => array(
2839
+ 'attr_name' => 'username',
2840
+ 'empty_error' => 'yes',
2841
+ 'ifs' => 'username',
2842
+ 'empty_error_if' => array(
2843
+ 'attribute' => 'select#youtube-messages-selector',
2844
+ 'operator' => '==',
2845
+ 'value' => 'username',
2846
+ ),
2847
+ ),
2848
+ ),
2849
+
2850
+ // Youtube Playlist ID
2851
+ array(
2852
+ 'option_type' => 'input',
2853
+ 'input_wrap_class' => 'youtube_playlistID',
2854
+ 'label' => __( 'Youtube Playlist ID (required)', 'feed-them-social' ),
2855
+ 'instructional-text' => __( 'You must copy your YouTube <strong>Playlist</strong> and <strong>Channel</strong> url link and paste them below. Your urls should look similar to our Example urls below. <br/><br/><strong>Playlist ID:</strong>', 'feed-them-social' ) . ' <a href="https://www.youtube.com/watch?v=_-sySjjthB0&list=PL7V-xVyJYY3cI-A9ZHkl6A3r31yiVz0XN" target="_blank">https://www.youtube.com/watch?v=_-sySjjthB0&list=PL7V-xVyJYY3cI-A9ZHkl6A3r31yiVz0XN</a><br/><strong>' . __( 'Channel ID:', 'feed-them-social' ) . '</strong> <a href="https://www.youtube.com/channel/UCt16NSYjauKclK67LCXvQyA" target="_blank">https://www.youtube.com/channel/UCt16NSYjauKclK67LCXvQyA</a>',
2856
+ 'type' => 'text',
2857
+ 'id' => 'youtube_playlistID',
2858
+ 'name' => 'youtube_playlistID',
2859
+ 'value' => '',
2860
+
2861
+ // Relative to JS.
2862
+ 'short_attr' => array(
2863
+ 'attr_name' => 'playlist_id',
2864
+ 'empty_error' => 'yes',
2865
+ 'ifs' => 'playlistID',
2866
+ 'empty_error_if' => array(
2867
+ 'attribute' => 'select#youtube-messages-selector',
2868
+ 'operator' => '==',
2869
+ 'value' => 'playlistID',
2870
+ ),
2871
+ ),
2872
+ ),
2873
+
2874
+ // Youtube Playlist ID2
2875
+ array(
2876
+ 'option_type' => 'input',
2877
+ 'input_wrap_class' => 'youtube_playlistID2',
2878
+ 'label' => __( 'Youtube Playlist ID (required)', 'feed-them-social' ),
2879
+ 'instructional-text' => __( 'You must copy your YouTube <strong>Playlist</strong> and <strong>Username</strong> url and paste them below. Your urls should look similar to our Example urls below.<br/><br/><strong>Playlist ID:</strong>', 'feed-them-social' ) . ' <a href="https://www.youtube.com/watch?v=cxrLRbkOwKs&index=10&list=PLivjPDlt6ApS90YoAu-T8VIj6awyflIym" target="_blank">https://www.youtube.com/watch?v=cxrLRbkOwKs&index=10&list=PLivjPDlt6ApS90YoAu-T8VIj6awyflIym</a><br/><strong>' . __( 'Username:', 'feed-them-social' ) . '</strong> <a href="https://www.youtube.com/user/nationalgeographic" target="_blank">https://www.youtube.com/user/nationalgeographic</a>',
2880
+ 'type' => 'text',
2881
+ 'id' => 'youtube_playlistID2',
2882
+ 'name' => 'youtube_playlistID2',
2883
+ 'value' => '',
2884
+
2885
+ // Relative to JS.
2886
+ 'short_attr' => array(
2887
+ 'attr_name' => 'playlist_id',
2888
+ 'empty_error' => 'yes',
2889
+ 'ifs' => 'userPlaylist',
2890
+ 'empty_error_if' => array(
2891
+ 'attribute' => 'select#youtube-messages-selector',
2892
+ 'operator' => '==',
2893
+ 'value' => 'userPlaylist',
2894
+ ),
2895
+ ),
2896
+ ),
2897
+
2898
+ // Youtube Name 2
2899
+ array(
2900
+ 'option_type' => 'input',
2901
+ 'input_wrap_class' => 'youtube_name2',
2902
+ 'label' => __( 'Youtube Username<br/><small>Required if showing <a href="admin.php?page=fts-youtube-feed-styles-submenu-page">Subscribe button</a></small>', 'feed-them-social' ),
2903
+ 'type' => 'text',
2904
+ 'id' => 'youtube_name2',
2905
+ 'name' => 'youtube_name2',
2906
+
2907
+ // Relative to JS.
2908
+ 'short_attr' => array(
2909
+ 'attr_name' => 'username_subscribe_btn',
2910
+ 'ifs' => 'userPlaylist',
2911
+ 'empty_error_if' => array(
2912
+ 'attribute' => 'select#youtube-messages-selector',
2913
+ 'operator' => '==',
2914
+ 'value' => 'userPlaylist',
2915
+ ),
2916
+ ),
2917
+ ),
2918
+
2919
+ // Youtube Channel ID
2920
+ array(
2921
+ 'option_type' => 'input',
2922
+ 'input_wrap_class' => 'youtube_channelID',
2923
+ 'label' => __( 'Youtube Channel ID (required)', 'feed-them-social' ),
2924
+ 'instructional-text' => __( 'You must copy your YouTube <strong>Channel</strong> url and paste it below. Your url should look similar to our Example url.<br/><strong>Example:</strong>', 'feed-them-social' ) . ' <a href="https://www.youtube.com/channel/UCqhnX4jA0A5paNd1v-zEysw" target="_blank">https://www.youtube.com/channel/UCqhnX4jA0A5paNd1v-zEysw</a>',
2925
+ 'type' => 'text',
2926
+ 'id' => 'youtube_channelID',
2927
+ 'name' => 'youtube_channelID',
2928
+
2929
+ // Relative to JS.
2930
+ 'short_attr' => array(
2931
+ 'attr_name' => 'channel_id',
2932
+ 'ifs' => 'channelID',
2933
+ 'empty_error' => 'yes',
2934
+ 'empty_error_if' => array(
2935
+ 'attribute' => 'select#youtube-messages-selector',
2936
+ 'operator' => '==',
2937
+ 'value' => 'channelID',
2938
+ ),
2939
+ ),
2940
+ ),
2941
+
2942
+ // Youtube Channel ID 2
2943
+ array(
2944
+ 'option_type' => 'input',
2945
+ 'input_wrap_class' => 'youtube_channelID2',
2946
+ 'label' => __( 'Youtube Channel ID<br/><small>Required if showing <a href="admin.php?page=fts-youtube-feed-styles-submenu-page">Subscribe button</a></small>', 'feed-them-social' ),
2947
+ 'type' => 'text',
2948
+ 'id' => 'youtube_channelID2',
2949
+ 'name' => 'youtube_channelID2',
2950
+
2951
+ // Relative to JS.
2952
+ 'short_attr' => array(
2953
+ 'attr_name' => 'channel_id',
2954
+ 'ifs' => 'playlistID',
2955
+ 'empty_error_if' => array(
2956
+ 'attribute' => 'select#youtube-messages-selector',
2957
+ 'operator' => '==',
2958
+ 'value' => 'playlistID',
2959
+ ),
2960
+ ),
2961
+ ),
2962
+
2963
+ // Youtube Single Video ID
2964
+ array(
2965
+ 'option_type' => 'input',
2966
+ 'input_wrap_class' => 'youtube_singleVideoID',
2967
+ 'label' => __( 'Single Youtube Video ID (required)', 'feed-them-social' ),
2968
+ 'instructional-text' => __( 'You must copy your <strong>YouTube Video</strong> url link and paste it below. Your url should look similar to our Example url below. <br/><strong>Video URL:</strong>', 'feed-them-social' ) . ' <a href="https://www.youtube.com/watch?v=_-sySjjthB0" target="_blank">https://www.youtube.com/watch?v=_-sySjjthB0</a>',
2969
+ 'type' => 'text',
2970
+ 'id' => 'youtube_singleVideoID',
2971
+ 'name' => 'youtube_singleVideoID',
2972
+
2973
+ // Relative to JS.
2974
+ 'short_attr' => array(
2975
+ 'attr_name' => 'video_id_or_link',
2976
+ 'ifs' => 'singleID',
2977
+ 'empty_error' => 'yes',
2978
+ 'empty_error_if' => array(
2979
+ 'attribute' => 'select#youtube-messages-selector',
2980
+ 'operator' => '==',
2981
+ 'value' => 'singleID',
2982
+ ),
2983
+ ),
2984
+ ),
2985
+
2986
+ // # of videos
2987
+ array(
2988
+ 'option_type' => 'input',
2989
+ 'input_wrap_class' => 'youtube_vid_count',
2990
+ 'label' => __( '# of videos', 'feed-them-social' ) . $limitforpremium,
2991
+ 'type' => 'text',
2992
+ 'id' => 'youtube_vid_count',
2993
+ 'name' => 'youtube_vid_count',
2994
+ 'placeholder' => __( '4 is the default value', 'feed-them-social' ),
2995
+
2996
+ // Relative to JS.
2997
+ 'short_attr' => array(
2998
+ 'attr_name' => 'vid_count',
2999
+ 'empty_error' => 'set',
3000
+ 'empty_error_value' => 'vid_count=4',
3001
+ ),
3002
+
3003
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
3004
+ 'sub_options' => array(
3005
+ 'sub_options_wrap_class' => 'fts-youtube-first-video-wrap',
3006
+ ),
3007
+ ),
3008
+
3009
+ // Display First video full size
3010
+ array(
3011
+ 'grouped_options_title' => __( 'First Video Display', 'feed-them-social' ),
3012
+ 'input_wrap_class' => 'youtube_hide_option',
3013
+ 'option_type' => 'select',
3014
+ 'label' => __( 'Display First video full size', 'feed-them-social' ),
3015
+ 'type' => 'text',
3016
+ 'id' => 'youtube_first_video',
3017
+ 'name' => 'youtube_first_video',
3018
+ 'options' => array(
3019
+ array(
3020
+ 'label' => __( 'Yes', 'feed-them-social' ),
3021
+ 'value' => 'yes',
3022
+ ),
3023
+ array(
3024
+ 'label' => __( 'No', 'feed-them-social' ),
3025
+ 'value' => 'no',
3026
+ ),
3027
+ ),
3028
+ 'short_attr' => array(
3029
+ 'attr_name' => 'large_vid',
3030
+ ),
3031
+ 'sub_options_end' => true,
3032
+ ),
3033
+
3034
+ // Display Large Video Title
3035
+ array(
3036
+ 'option_type' => 'select',
3037
+ 'input_wrap_class' => 'youtube_hide_option',
3038
+ 'label' => __( 'Show the Large Video Title', 'feed-them-social' ),
3039
+ 'type' => 'text',
3040
+ 'id' => 'youtube_large_vid_title',
3041
+ 'name' => 'youtube_large_vid_title',
3042
+ 'options' => array(
3043
+ array(
3044
+ 'label' => __( 'No', 'feed-them-social' ),
3045
+ 'value' => 'no',
3046
+ ),
3047
+ array(
3048
+ 'label' => __( 'Yes', 'feed-them-social' ),
3049
+ 'value' => 'yes',
3050
+ ),
3051
+ ),
3052
+ 'short_attr' => array(
3053
+ 'attr_name' => 'large_vid_title',
3054
+ ),
3055
+ ),
3056
+
3057
+ // Display Large Video Description
3058
+ array(
3059
+ 'option_type' => 'select',
3060
+ 'input_wrap_class' => 'youtube_hide_option',
3061
+ 'label' => __( 'Show the Large Video Description', 'feed-them-social' ),
3062
+ 'type' => 'text',
3063
+ 'id' => 'youtube_large_vid_description',
3064
+ 'name' => 'youtube_large_vid_description',
3065
+ 'options' => array(
3066
+ array(
3067
+ 'label' => __( 'No', 'feed-them-social' ),
3068
+ 'value' => 'no',
3069
+ ),
3070
+ array(
3071
+ 'label' => __( 'Yes', 'feed-them-social' ),
3072
+ 'value' => 'yes',
3073
+ ),
3074
+ ),
3075
+ 'short_attr' => array(
3076
+ 'attr_name' => 'large_vid_description',
3077
+ ),
3078
+ ),
3079
+
3080
+ // Play thumbs in large video container
3081
+ array(
3082
+ 'grouped_options_title' => __( 'Video Thumbnails', 'feed-them-social' ),
3083
+ 'input_wrap_class' => 'youtube_hide_option',
3084
+ 'option_type' => 'select',
3085
+ 'label' => __( 'Click thumb to play Video', 'feed-them-social' ),
3086
+ 'type' => 'text',
3087
+ 'id' => 'youtube_play_thumbs',
3088
+ 'name' => 'youtube_play_thumbs',
3089
+ 'options' => array(
3090
+ array(
3091
+ 'label' => __( 'Play on Page', 'feed-them-social' ),
3092
+ 'value' => 'yes',
3093
+ ),
3094
+ array(
3095
+ 'label' => __( 'Open in YouTube', 'feed-them-social' ),
3096
+ 'value' => 'no',
3097
+ ),
3098
+ array(
3099
+ 'label' => __( 'Open in Popup (Premium Version Required)', 'feed-them-social' ),
3100
+ 'value' => 'popup',
3101
+ ),
3102
+ ),
3103
+ 'short_attr' => array(
3104
+ 'attr_name' => 'thumbs_play_in_iframe',
3105
+ ),
3106
+ ),
3107
+
3108
+ // # of videos in each row
3109
+ array(
3110
+ 'input_wrap_class' => 'youtube_hide_option',
3111
+ 'option_type' => 'select',
3112
+ 'label' => __( '# of videos in each row', 'feed-them-social' ),
3113
+ 'type' => 'text',
3114
+ 'id' => 'youtube_columns',
3115
+ 'name' => 'youtube_columns',
3116
+ 'default_value' => '4',
3117
+ 'options' => array(
3118
+ array(
3119
+ 'label' => __( '1', 'feed-them-social' ),
3120
+ 'value' => '1',
3121
+ ),
3122
+ array(
3123
+ 'label' => __( '2', 'feed-them-social' ),
3124
+ 'value' => '2',
3125
+ ),
3126
+ array(
3127
+ 'label' => __( '3', 'feed-them-social' ),
3128
+ 'value' => '3',
3129
+ ),
3130
+ array(
3131
+ 'label' => __( '4', 'feed-them-social' ),
3132
+ 'value' => '4',
3133
+ ),
3134
+ array(
3135
+ 'label' => __( '5', 'feed-them-social' ),
3136
+ 'value' => '5',
3137
+ ),
3138
+ array(
3139
+ 'label' => __( '6', 'feed-them-social' ),
3140
+ 'value' => '6',
3141
+ ),
3142
+ ),
3143
+ 'short_attr' => array(
3144
+ 'attr_name' => 'vids_in_row',
3145
+ ),
3146
+ ),
3147
+
3148
+ // omit first video thumbnail
3149
+ array(
3150
+ 'input_wrap_class' => 'youtube_hide_option',
3151
+ 'option_type' => 'select',
3152
+ 'label' => __( 'Hide the first thumbnail', 'feed-them-social' ) . '<br/><small>' . __( 'Useful if playing videos on the page.', 'feed-them-social' ) . '</small>',
3153
+ 'type' => 'text',
3154
+ 'id' => 'youtube_omit_first_thumbnail',
3155
+ 'name' => 'youtube_omit_first_thumbnail',
3156
+ 'default_value' => 'no',
3157
+ 'options' => array(
3158
+ array(
3159
+ 'label' => __( 'No', 'feed-them-social' ),
3160
+ 'value' => 'no',
3161
+ ),
3162
+ array(
3163
+ 'label' => __( 'Yes', 'feed-them-social' ),
3164
+ 'value' => 'yes',
3165
+ ),
3166
+ ),
3167
+ 'short_attr' => array(
3168
+ 'attr_name' => 'omit_first_thumbnail',
3169
+ ),
3170
+ ),
3171
+
3172
+ // Space between Vids
3173
+ array(
3174
+ 'input_wrap_class' => 'youtube_hide_option',
3175
+ 'option_type' => 'input',
3176
+ 'label' => __( 'Space between video thumbnails', 'feed-them-social' ),
3177
+ 'type' => 'text',
3178
+ 'id' => 'fts-slicker-youtube-container-margin',
3179
+ 'name' => 'fts-slicker-youtube-container-margin',
3180
+ 'placeholder' => '1px is the default value',
3181
+ 'value' => '',
3182
+ 'short_attr' => array(
3183
+ 'attr_name' => 'space_between_videos',
3184
+ 'var_final_if' => 'yes',
3185
+ 'empty_error' => 'set',
3186
+ 'empty_error_value' => 'space_between_videos=1px',
3187
+ ),
3188
+ ),
3189
+
3190
+ // Force Video Rows
3191
+ array(
3192
+ 'input_wrap_class' => 'youtube_hide_option',
3193
+ 'option_type' => 'select',
3194
+ 'label' => __( 'Force thumbnails rows', 'feed-them-gallery' ) . '<br/><small>' . __( 'No, will allow the video images to be responsive for smaller devices. Yes, will force the selected rows.', 'feed-them-social' ) . '</small>',
3195
+ 'type' => 'text',
3196
+ 'id' => 'fts_youtube_force_columns',
3197
+ 'name' => 'fts_youtube_force_columns',
3198
+ 'default_value' => 'no',
3199
+ 'options' => array(
3200
+ array(
3201
+ 'label' => __( 'No', 'feed-them-gallery' ),
3202
+ 'value' => 'no',
3203
+ ),
3204
+ array(
3205
+ 'label' => __( 'Yes', 'feed-them-gallery' ),
3206
+ 'value' => 'yes',
3207
+ ),
3208
+ ),
3209
+ 'short_attr' => array(
3210
+ 'attr_name' => 'force_columns',
3211
+ ),
3212
+ ),
3213
+
3214
+ // Display Max Res Images for thumbs
3215
+ array(
3216
+ 'input_wrap_class' => 'youtube_hide_option',
3217
+ 'option_type' => 'select',
3218
+ 'label' => __( 'High quality thumbnail images', 'feed-them-social' ),
3219
+ 'type' => 'text',
3220
+ 'id' => 'youtube_maxres_thumbnail_images',
3221
+ 'name' => 'youtube_maxres_thumbnail_images',
3222
+ 'options' => array(
3223
+ array(
3224
+ 'label' => __( 'Yes', 'feed-them-social' ),
3225
+ 'value' => 'yes',
3226
+ ),
3227
+ array(
3228
+ 'label' => __( 'No', 'feed-them-social' ),
3229
+ 'value' => 'no',
3230
+ ),
3231
+ ),
3232
+ 'short_attr' => array(
3233
+ 'attr_name' => 'maxres_thumbnail_images',
3234
+ ),
3235
+ ),
3236
+
3237
+ // Background color for thumbs container
3238
+ array(
3239
+ 'input_wrap_class' => 'youtube_hide_option',
3240
+ 'option_type' => 'input',
3241
+ 'color_picker' => 'yes',
3242
+ 'label' => __( 'Container Background color ', 'feed-them-social' ),
3243
+ 'type' => 'text',
3244
+ 'id' => 'youtube_thumbs_wrap_color',
3245
+ 'name' => 'youtube_thumbs_wrap_color',
3246
+ 'default' => '#000',
3247
+ 'placeholder' => '#000',
3248
+
3249
+ // Relative to JS.
3250
+ 'short_attr' => array(
3251
+ 'attr_name' => 'thumbs_wrap_color',
3252
+ 'empty_error' => 'set',
3253
+ 'empty_error_value' => 'thumbs_wrap_color=#000',
3254
+ ),
3255
+ ),
3256
+
3257
+ // Align container right or left of video
3258
+ array(
3259
+ 'input_wrap_class' => 'youtube_hide_option',
3260
+ 'option_type' => 'select',
3261
+ 'label' => __( 'Align Thumbs', 'feed-them-social' ) . '<br/><small>' . __( 'Bottom (default), Right, or left of Videoo', 'feed-them-social' ) . '</small>',
3262
+ 'type' => 'text',
3263
+ 'id' => 'youtube_thumbs_wrap',
3264
+ 'name' => 'youtube_thumbs_wrap',
3265
+ 'options' => array(
3266
+ array(
3267
+ 'label' => __( 'Below Video', 'feed-them-social' ),
3268
+ 'value' => 'none',
3269
+ ),
3270
+ array(
3271
+ 'label' => __( 'Right', 'feed-them-social' ),
3272
+ 'value' => 'right',
3273
+ ),
3274
+ array(
3275
+ 'label' => __( 'Left', 'feed-them-social' ),
3276
+ 'value' => 'left',
3277
+ ),
3278
+ ),
3279
+
3280
+ // Relative to JS.
3281
+ 'short_attr' => array(
3282
+ 'attr_name' => 'wrap',
3283
+ ),
3284
+ 'prem_req' => 'yes',
3285
+ 'req_plugin' => 'fts_premium',
3286
+ ),
3287
+
3288
+ // Align container right or left of video
3289
+ array(
3290
+ 'input_wrap_class' => 'youtube_align_comments_wrap',
3291
+ 'option_type' => 'select',
3292
+ 'label' => __( 'Align Title, Description etc.', 'feed-them-social' ) . '<br/><small>' . __( 'Bottom (default), Right, or left of Video', 'feed-them-social' ) . '</small>',
3293
+ 'type' => 'text',
3294
+ 'id' => 'youtube_comments_wrap',
3295
+ 'name' => 'youtube_comments_wrap',
3296
+ 'options' => array(
3297
+ array(
3298
+ 'label' => __( 'Below Video', 'feed-them-social' ),
3299
+ 'value' => 'none',
3300
+ ),
3301
+ array(
3302
+ 'label' => __( 'Right', 'feed-them-social' ),
3303
+ 'value' => 'right',
3304
+ ),
3305
+ array(
3306
+ 'label' => __( 'Left', 'feed-them-social' ),
3307
+ 'value' => 'left',
3308
+ ),
3309
+ ),
3310
+
3311
+ // Relative to JS.
3312
+ 'short_attr' => array(
3313
+ 'attr_name' => 'wrap_single',
3314
+ ),
3315
+ 'prem_req' => 'yes',
3316
+ 'req_plugin' => 'fts_premium',
3317
+ ),
3318
+
3319
+ // Align container right or left of video
3320
+ array(
3321
+ 'input_wrap_class' => 'youtube_video_thumbs_display',
3322
+ 'option_type' => 'select',
3323
+ 'label' => __( 'Video/Thumbs width options', 'feed-them-social' ) . '<br/><small>' . __( 'Sizes: 80/20, 60/40 or 50/50', 'feed-them-social' ) . '</small>',
3324
+ 'type' => 'text',
3325
+ 'id' => 'youtube_video_thumbs_display',
3326
+ 'name' => 'youtube_video_thumbs_display',
3327
+ 'options' => array(
3328
+ array(
3329
+ 'label' => __( 'None', 'feed-them-social' ),
3330
+ 'value' => 'none',
3331
+ ),
3332
+ array(
3333
+ 'label' => __( 'Option 1 (Video 80%, Thumbs Container 20%)', 'feed-them-social' ),
3334
+ 'value' => '1',
3335
+ ),
3336
+ array(
3337
+ 'label' => __( 'Option 1 (Video 60%, Thumbs Container 40%)', 'feed-them-social' ),
3338
+ 'value' => '2',
3339
+ ),
3340
+ array(
3341
+ 'label' => __( 'Option 1 (Video 50%, Thumbs Container 50%)', 'feed-them-social' ),
3342
+ 'value' => '3',
3343
+ ),
3344
+ ),
3345
+
3346
+ // Relative to JS.
3347
+ 'short_attr' => array(
3348
+ 'attr_name' => 'video_wrap_display',
3349
+ ),
3350
+ 'prem_req' => 'yes',
3351
+ 'req_plugin' => 'fts_premium',
3352
+ ),
3353
+
3354
+ // Align container right or left of video
3355
+ array(
3356
+ 'input_wrap_class' => 'youtube_video_single_info_display',
3357
+ 'option_type' => 'select',
3358
+ 'label' => __( 'Video/Info width options', 'feed-them-social' ) . '<br/><small>' . __( 'Sizes: 80/20, 60/40 or 50/50', 'feed-them-social' ) . '</small>',
3359
+ 'type' => 'text',
3360
+ 'id' => 'youtube_video_comments_display',
3361
+ 'name' => 'youtube_video_comments_display',
3362
+ 'options' => array(
3363
+ array(
3364
+ 'label' => __( 'None', 'feed-them-social' ),
3365
+ 'value' => 'none',
3366
+ ),
3367
+ array(
3368
+ 'label' => __( 'Option 1 (Video 80%, Info Container 20%)', 'feed-them-social' ),
3369
+ 'value' => '1',
3370
+ ),
3371
+ array(
3372
+ 'label' => __( 'Option 1 (Video 60%, Info Container 40%)', 'feed-them-social' ),
3373
+ 'value' => '2',
3374
+ ),
3375
+ array(
3376
+ 'label' => __( 'Option 1 (Video 50%, Info Container 50%)', 'feed-them-social' ),
3377
+ 'value' => '3',
3378
+ ),
3379
+ ),
3380
+
3381
+ // Relative to JS.
3382
+ 'short_attr' => array(
3383
+ 'attr_name' => 'video_wrap_display_single',
3384
+ ),
3385
+ 'prem_req' => 'yes',
3386
+ 'req_plugin' => 'fts_premium',
3387
+ ),
3388
+
3389
+ // Youtube Load More Button
3390
+ array(
3391
+ 'input_wrap_class' => 'youtube_hide_option',
3392
+ 'grouped_options_title' => __( 'Load More', 'feed-them-social' ),
3393
+ 'option_type' => 'select',
3394
+ 'label' => __( 'Load More Button', 'feed-them-social' ),
3395
+ 'type' => 'text',
3396
+ 'id' => 'youtube_load_more_option',
3397
+ 'name' => 'youtube_load_more_option',
3398
+ 'options' => array(
3399
+ array(
3400
+ 'label' => __( 'No', 'feed-them-social' ),
3401
+ 'value' => 'no',
3402
+ ),
3403
+ array(
3404
+ 'label' => __( 'Yes', 'feed-them-social' ),
3405
+ 'value' => 'yes',
3406
+ ),
3407
+ ),
3408
+ 'prem_req' => 'yes',
3409
+ 'req_plugin' => 'fts_premium',
3410
+ 'short_attr' => array(
3411
+ 'attr_name' => '',
3412
+ 'empty_error_value' => '',
3413
+ 'no_attribute' => 'yes',
3414
+ ),
3415
+ 'sub_options' => array(
3416
+ 'sub_options_wrap_class' => 'youtube-loadmore-wrap',
3417
+ ),
3418
+ ),
3419
+
3420
+ // Youtube Load More Style
3421
+ array(
3422
+ 'option_type' => 'select',
3423
+ 'label' => __( 'Load More Style', 'feed-them-social' ),
3424
+ 'type' => 'text',
3425
+ 'id' => 'youtube_load_more_style',
3426
+ 'name' => 'youtube_load_more_style',
3427
+ 'instructional-text' => '<strong>' . __( 'NOTE:', 'feed-them-social' ) . '</strong> ' . __( 'The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social' ),
3428
+ 'options' => array(
3429
+ array(
3430
+ 'label' => __( 'Button', 'feed-them-social' ),
3431
+ 'value' => 'button',
3432
+ ),
3433
+ array(
3434
+ 'label' => __( 'AutoScroll', 'feed-them-social' ),
3435
+ 'value' => 'autoscroll',
3436
+ ),
3437
+ ),
3438
+ 'prem_req' => 'yes',
3439
+ 'req_plugin' => 'fts_premium',
3440
+ 'short_attr' => array(
3441
+ 'attr_name' => 'loadmore',
3442
+ 'ifs' => 'load_more',
3443
+ ),
3444
+
3445
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
3446
+ 'sub_options' => array(
3447
+ 'sub_options_wrap_class' => 'fts-youtube-load-more-options-wrap',
3448
+ ),
3449
+ 'sub_options_end' => true,
3450
+ ),
3451
+
3452
+ // youtube Page Load more Amount
3453
+ array(
3454
+ 'option_type' => 'input',
3455
+ 'label' => __( 'Load more Amount', 'feed-them-social' ) . '<br/><small>' . __( 'How many more videos will load at a time.', 'feed-them-social' ) . '</small>',
3456
+ 'type' => 'text',
3457
+ 'id' => 'youtube_loadmore_count',
3458
+ 'name' => 'youtube_loadmore_count',
3459
+ 'placeholder' => __( '5 is the default number', 'feed-them-social' ),
3460
+ 'value' => '',
3461
+ 'req_plugin' => 'fts_premium',
3462
+
3463
+ // Relative to JS.
3464
+ 'short_attr' => array(
3465
+ 'attr_name' => 'loadmore_count',
3466
+ 'empty_error' => 'set',
3467
+ 'empty_error_value' => 'loadmore_count=5',
3468
+ 'ifs' => 'load_more',
3469
+ ),
3470
+
3471
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
3472
+ 'sub_options' => array(
3473
+ 'sub_options_wrap_class' => 'fts-youtube-load-more-options2-wrap',
3474
+ ),
3475
+ ),
3476
+
3477
+ // youtube Load more Button Width
3478
+ array(
3479
+ 'option_type' => 'input',
3480
+ 'label' => __( 'Load more Button Width', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank for auto width', 'feed-them-social' ) . '</small>',
3481
+ 'type' => 'text',
3482
+ 'id' => 'youtube_loadmore_button_width',
3483
+ 'name' => 'youtube_loadmore_button_width',
3484
+ 'placeholder' => '300px ' . __( 'for example', 'feed-them-social' ),
3485
+ 'value' => '',
3486
+ 'prem_req' => 'yes',
3487
+ 'req_plugin' => 'fts_premium',
3488
+
3489
+ // Relative to JS.
3490
+ 'short_attr' => array(
3491
+ 'attr_name' => 'loadmore_btn_maxwidth',
3492
+ 'empty_error' => 'set',
3493
+ 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
3494
+ 'ifs' => 'load_more',
3495
+ ),
3496
+ ),
3497
+
3498
+ // youtube Load more Button Margin
3499
+ array(
3500
+ 'option_type' => 'input',
3501
+ 'label' => __( 'Load more Button Margin', 'feed-them-social' ),
3502
+ 'type' => 'text',
3503
+ 'id' => 'youtube_loadmore_button_margin',
3504
+ 'name' => 'youtube_loadmore_button_margin',
3505
+ 'placeholder' => '10px ' . __( 'for example', 'feed-them-social' ),
3506
+ 'value' => '',
3507
+ 'req_plugin' => 'fts_premium',
3508
+
3509
+ // Relative to JS.
3510
+ 'short_attr' => array(
3511
+ 'attr_name' => 'loadmore_btn_margin',
3512
+ 'empty_error' => 'set',
3513
+ 'empty_error_value' => 'loadmore_btn_margin=10px',
3514
+ 'ifs' => 'load_more',
3515
+ ),
3516
+ 'sub_options_end' => 2,
3517
+ ),
3518
+
3519
+ // Display Comments
3520
+ array(
3521
+ 'grouped_options_title' => __( 'Comments', 'feed-them-social' ),
3522
+ 'option_type' => 'input',
3523
+ 'label' => __( '# of Comments', 'feed-them-social' ) . '<br/><small>' . __( 'Maximum amount is 50', 'feed-them-social' ) . '</small>',
3524
+ 'type' => 'text',
3525
+ 'id' => 'youtube_comments_count',
3526
+ 'name' => 'youtube_comments_count',
3527
+ 'placeholder' => '',
3528
+ 'value' => '',
3529
+ 'short_attr' => array(
3530
+ 'attr_name' => 'comments_count',
3531
+ 'empty_error' => 'set',
3532
+ 'empty_error_value' => 'comments_count=0',
3533
+ ),
3534
+ 'req_plugin' => 'fts_premium',
3535
+ ),
3536
+ ),
3537
+
3538
+ // Final Shortcode ifs
3539
+ 'shortcode_ifs' => array(
3540
+ 'load_more' => array(
3541
+ 'if' => array(
3542
+ 'class' => 'select#youtube_load_more_option',
3543
+ 'operator' => '==',
3544
+ 'value' => 'yes',
3545
+ ),
3546
+ ),
3547
+ 'username' => array(
3548
+ 'if' => array(
3549
+ 'class' => 'select#youtube-messages-selector',
3550
+ 'operator' => '==',
3551
+ 'value' => 'username',
3552
+ ),
3553
+ ),
3554
+ 'userPlaylist' => array(
3555
+ 'if' => array(
3556
+ 'class' => 'select#youtube-messages-selector',
3557
+ 'operator' => '==',
3558
+ 'value' => 'userPlaylist',
3559
+ ),
3560
+ ),
3561
+ 'channelID' => array(
3562
+ 'if' => array(
3563
+ 'class' => 'select#youtube-messages-selector',
3564
+ 'operator' => '==',
3565
+ 'value' => 'channelID',
3566
+ ),
3567
+ ),
3568
+ 'playlistID' => array(
3569
+ 'if' => array(
3570
+ 'class' => 'select#youtube-messages-selector',
3571
+ 'operator' => '==',
3572
+ 'value' => 'playlistID',
3573
+ ),
3574
+ ),
3575
+ 'singleID' => array(
3576
+ 'if' => array(
3577
+ 'class' => 'select#youtube-messages-selector',
3578
+ 'operator' => '==',
3579
+ 'value' => 'singleID',
3580
+ ),
3581
+ ),
3582
+ ),
3583
+
3584
+ // Generator Info
3585
+ 'generator_title' => __( 'YouTube Feed Shortcode', 'feed-them-social' ),
3586
+ 'generator_class' => 'youtube-final-shortcode',
3587
+ ), // End Youtube Feed
3588
+
3589
+ // ******************************************
3590
+ // Pinterest
3591
+ // ******************************************
3592
+ 'pinterest' => array(
3593
+ 'section_attr_key' => 'pinterest_',
3594
+ 'section_title' => __( 'Pinterest Shortcode Generator', 'feed-them-social' ),
3595
+ 'section_wrap_class' => 'pinterest-shortcode-form',
3596
+
3597
+ // Form Info
3598
+ 'form_wrap_classes' => 'pinterest-shortcode-form',
3599
+ 'form_wrap_id' => 'fts-pinterest-form',
3600
+
3601
+ // Feed Type Selection
3602
+ 'feed_type_select' => array(
3603
+ 'label' => __( 'Feed Type', 'feed-them-social' ),
3604
+ 'select_wrap_classes' => 'pinterest-gen-selection',
3605
+ 'select_classes' => '',
3606
+ 'select_name' => 'pinterest-messages-selector',
3607
+ 'select_id' => 'pinterest-messages-selector',
3608
+ ),
3609
+
3610
+ // Token Check
3611
+ 'token_check' => array(
3612
+ array(
3613
+ 'option_name' => 'fts_pinterest_custom_api_token',
3614
+ 'no_token_msg' => __( '<strong>STEP 1:</strong> Please add a Pinterest API Token to our <a href="admin.php?page=fts-pinterest-feed-styles-submenu-page">Pinterest Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social' ),
3615
+ ),
3616
+ ),
3617
+
3618
+ // Feed Types and their options
3619
+ 'feeds_types' => array(
3620
+
3621
+ // Board List
3622
+ array(
3623
+ 'value' => 'boards_list',
3624
+ 'title' => __( 'Board List', 'feed-them-social' ),
3625
+ ),
3626
+
3627
+ // Single Board Pins
3628
+ array(
3629
+ 'value' => 'single_board_pins',
3630
+ 'title' => __( 'Pins From a Specific Board', 'feed-them-social' ),
3631
+ ),
3632
+
3633
+ // Single Board Pins
3634
+ array(
3635
+ 'value' => 'pins_from_user',
3636
+ 'title' => __( 'Latest Pins from a User', 'feed-them-social' ),
3637
+ ),
3638
+ ),
3639
+ 'short_attr_final' => 'yes',
3640
+
3641
+ // Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
3642
+ // 'empty_error'=> 'set',
3643
+ // 'empty_error_value'=> 'auto',
3644
+ 'main_options' => array(
3645
+
3646
+ // Feed Type
3647
+ array(
3648
+ 'option_type' => 'select',
3649
+ 'id' => 'pinterest-messages-selector',
3650
+ 'name' => 'pinterest-messages-selector',
3651
+
3652
+ // DONT SHOW HTML
3653
+ 'no_html' => 'yes',
3654
+
3655
+ // Relative to JS.
3656
+ 'short_attr' => array(
3657
+ 'attr_name' => 'type',
3658
+ ),
3659
+ ),
3660
+
3661
+ // Pinterest Board Name
3662
+ array(
3663
+ 'option_type' => 'input',
3664
+ 'input_wrap_class' => 'board-name',
3665
+ 'label' => __( 'Pinterest Board Name (required)', 'feed-them-social' ),
3666
+ 'type' => 'text',
3667
+ 'id' => 'pinterest_board_name',
3668
+ 'name' => 'pinterest_board_name',
3669
+ 'value' => '',
3670
+ 'instructional-text' => __( 'Copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/how-to-get-your-pinterest-name/" target="_blank">' . __( 'Pinterest and Board Name', 'feed-them-social' ) . '</a> ' . __( 'and paste them below.', 'feed-them-social' ),
3671
+ 'instructional-class' => 'pinterest-board-and-name-text',
3672
+
3673
+ // Relative to JS.
3674
+ 'short_attr' => array(
3675
+ 'attr_name' => 'board_id',
3676
+ 'var_final_if' => 'no',
3677
+ 'empty_error' => 'yes',
3678
+ 'empty_error_if' => array(
3679
+ 'attribute' => 'select#pinterest-messages-selector',
3680
+ 'operator' => '==',
3681
+ 'value' => 'single_board_pins',
3682
+ ),
3683
+ 'ifs' => 'single_board_pins',
3684
+ ),
3685
+ ),
3686
+
3687
+ // Pinterest Name
3688
+ array(
3689
+ 'option_type' => 'input',
3690
+ 'input_wrap_class' => 'pinterest_name',
3691
+ 'label' => __( 'Pinterest Username (required)', 'feed-them-social' ),
3692
+ 'type' => 'text',
3693
+ 'id' => 'pinterest_name',
3694
+ 'name' => 'pinterest_name',
3695
+ 'value' => '',
3696
+ 'instructional-text' => __( 'Copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/how-to-get-your-pinterest-name/" target="_blank">' . __( 'Pinterest Name', 'feed-them-social' ) . '</a> ' . __( 'and paste it in the first input below.', 'feed-them-social' ),
3697
+ 'instructional-class' => 'pinterest-name-text',
3698
+
3699
+ // Relative to JS.
3700
+ 'short_attr' => array(
3701
+ 'attr_name' => 'pinterest_name',
3702
+ 'empty_error' => 'yes',
3703
+ 'var_final_if' => 'no',
3704
+ ),
3705
+ ),
3706
+
3707
+ // Board Count
3708
+ array(
3709
+ 'option_type' => 'input',
3710
+ 'input_wrap_class' => 'number-of-boards',
3711
+ 'label' => __( '# of Boards', 'feed-them-social' ) . $limitforpremium,
3712
+ 'type' => 'text',
3713
+ 'id' => 'boards_count',
3714
+ 'name' => 'boards_count',
3715
+
3716
+ // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
3717
+ // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
3718
+ 'placeholder' => __( '6 is the default value', 'feed-them-social' ),
3719
+ 'value' => '',
3720
+
3721
+ // Relative to JS.
3722
+ 'short_attr' => array(
3723
+ 'attr_name' => 'boards_count',
3724
+ 'var_final_if' => 'yes',
3725
+ 'empty_error' => 'set',
3726
+ 'empty_error_value' => 'boards_count=6',
3727
+ 'ifs' => 'boards',
3728
+ ),
3729
+ ),
3730
+
3731
+ // Pins Count
3732
+ array(
3733
+ 'option_type' => 'input',
3734
+ 'input_wrap_class' => 'show-pins-amount',
3735
+ 'label' => __( '# of Pins', 'feed-them-social' ) . $limitforpremium,
3736
+ 'type' => 'text',
3737
+ 'id' => 'pins_count',
3738
+ 'name' => 'pins_count',
3739
+
3740
+ // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
3741
+ // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
3742
+ 'placeholder' => __( '6 is the default value', 'feed-them-social' ),
3743
+ 'value' => '',
3744
+
3745
+ // Relative to JS.
3746
+ 'short_attr' => array(
3747
+ 'attr_name' => 'pins_count',
3748
+ 'var_final_if' => 'yes',
3749
+ 'empty_error' => 'set',
3750
+ 'empty_error_value' => 'pins_count=6',
3751
+ 'ifs' => 'single_board_pins,pins_from_user',
3752
+ ),
3753
+ ),
3754
+ ),
3755
+
3756
+ // Final Shortcode ifs
3757
+ 'shortcode_ifs' => array(
3758
+ 'single_board_pins' => array(
3759
+ 'if' => array(
3760
+ 'class' => 'select#pinterest-messages-selector',
3761
+ 'operator' => '==',
3762
+ 'value' => 'single_board_pins',
3763
+ ),
3764
+ ),
3765
+ 'pins_from_user' => array(
3766
+ 'if' => array(
3767
+ 'class' => 'select#pinterest-messages-selector',
3768
+ 'operator' => '==',
3769
+ 'value' => 'pins_from_user',
3770
+ ),
3771
+ ),
3772
+ 'boards' => array(
3773
+ 'if' => array(
3774
+ 'class' => 'select#pinterest-messages-selector',
3775
+ 'operator' => '==',
3776
+ 'value' => 'boards_list',
3777
+ ),
3778
+ ),
3779
+ ),
3780
+
3781
+ // Generator Info
3782
+ 'generator_title' => __( 'Pinterest Feed Shortcode', 'feed-them-social' ),
3783
+ 'generator_class' => 'pinterest-final-shortcode',
3784
+ ), // End Pinterest Feed
3785
+
3786
+ // ******************************************
3787
+ // Twitter
3788
+ // ******************************************
3789
+ 'twitter' => array(
3790
+ 'section_attr_key' => 'twitter_',
3791
+ 'section_title' => __( 'Twitter Shortcode Generator', 'feed-them-social' ),
3792
+ 'section_wrap_class' => 'fts-twitter-shortcode-form',
3793
+
3794
+ // Form Info
3795
+ 'form_wrap_classes' => 'twitter-shortcode-form',
3796
+ 'form_wrap_id' => 'fts-twitter-form',
3797
+
3798
+ // Token Check
3799
+ 'token_check' => array(
3800
+ array(
3801
+ 'option_name' => 'fts_twitter_custom_access_token_secret',
3802
+ 'no_token_msg' => __( '<strong>STEP 1:</strong> Please add Twitter API Tokens to our <a href="admin.php?page=fts-twitter-feed-styles-submenu-page">Twitter Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social' ),
3803
+ ),
3804
+ ),
3805
+
3806
+ // Feed Type Selection
3807
+ 'feed_type_select' => array(
3808
+ 'label' => __( 'Feed Type', 'feed-them-social' ),
3809
+ 'select_wrap_classes' => 'twitter-gen-selection',
3810
+ 'select_classes' => '',
3811
+ 'select_name' => 'twitter-messages-selector',
3812
+ 'select_id' => 'twitter-messages-selector',
3813
+ ),
3814
+
3815
+ // Feed Types and their options
3816
+ 'feeds_types' => array(
3817
+
3818
+ // User Feed
3819
+ array(
3820
+ 'value' => 'user',
3821
+ 'title' => __( 'User Feed', 'feed-them-social' ),
3822
+ ),
3823
+
3824
+ // hastag Feed
3825
+ array(
3826
+ 'value' => 'hashtag',
3827
+ 'title' => __( 'Hashtag, Search and more Feed', 'feed-them-social' ),
3828
+ ),
3829
+ ),
3830
+ 'short_attr_final' => 'yes',
3831
+
3832
+ // Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
3833
+ 'main_options' => array(
3834
+
3835
+ // Twitter Search Name
3836
+ array(
3837
+ 'option_type' => 'input',
3838
+ 'input_wrap_class' => 'twitter_hashtag_etc_name',
3839
+ 'label' => __( 'Twitter Search Name (required)', 'feed-them-social' ),
3840
+ 'type' => 'text',
3841
+ 'id' => 'twitter_hashtag_etc_name',
3842
+ 'name' => 'twitter_hashtag_etc_name',
3843
+ 'value' => '',
3844
+ 'instructional-text' => __( 'You can use #hashtag, @person, or single words. For example, weather or weather-channel.<br/><br/>If you want to filter a specific users hashtag copy this example into the first input below and replace the user_name and YourHashtag name. DO NOT remove the from: or %# characters. NOTE: Only displays last 7 days worth of Tweets. <strong style="color:#225DE2;">from:user_name%#YourHashtag</strong>', 'feed-them-social' ),
3845
+
3846
+ // Relative to JS.
3847
+ 'short_attr' => array(
3848
+ 'attr_name' => 'search',
3849
+ 'var_final_if' => 'no',
3850
+ 'empty_error' => 'yes',
3851
+ 'ifs' => 'twitter_search',
3852
+ 'empty_error_if' => array(
3853
+ 'attribute' => 'select#twitter-messages-selector',
3854
+ 'operator' => '==',
3855
+ 'value' => 'hashtag',
3856
+ ),
3857
+ ),
3858
+
3859
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
3860
+ 'sub_options' => array(
3861
+ 'sub_options_wrap_class' => 'twitter-hashtag-etc-wrap',
3862
+ 'sub_options_title' => __( 'Twitter Search', 'feed-them-social' ),
3863
+ ),
3864
+ 'sub_options_end' => true,
3865
+ ),
3866
+
3867
+ // Twitter Name
3868
+ array(
3869
+ 'option_type' => 'input',
3870
+ 'input_wrap_class' => 'twitter_name',
3871
+ 'label' => __( 'Twitter Name', 'feed-them-social' ),
3872
+ 'type' => 'text',
3873
+ 'id' => 'twitter_name',
3874
+ 'name' => 'twitter_name',
3875
+ 'instructional-text' => '<span class="hashtag-option-small-text">' . __( 'Twitter Name is only required if you want to show a', 'feed-them-social' ) . ' <a href="admin.php?page=fts-twitter-feed-styles-submenu-page">' . __( 'Follow Button', 'feed-them-social' ) . '</a>.</span><span class="must-copy-twitter-name">' . __( 'You must copy your', 'feed-them-social' ) . ' <a href="https://www.slickremix.com/how-to-get-your-twitter-name/" target="_blank">' . __( 'Twitter Name', 'feed-them-social' ) . '</a> ' . __( 'and paste it in the first input below.', 'feed-them-social' ) . '</span>',
3876
+ 'value' => '',
3877
+
3878
+ // Relative to JS.
3879
+ 'short_attr' => array(
3880
+ 'attr_name' => 'twitter_name',
3881
+ 'var_final_if' => 'no',
3882
+ 'empty_error' => 'yes',
3883
+ 'empty_error_if' => array(
3884
+ 'attribute' => 'select#twitter-messages-selector',
3885
+ 'operator' => '==',
3886
+ 'value' => 'user',
3887
+ ),
3888
+ ),
3889
+ ),
3890
+
3891
+ // Tweet Count
3892
+ array(
3893
+ 'option_type' => 'input',
3894
+ 'label' => __( '# of Tweets (optional)', 'feed-them-social' ) . $limitforpremium,
3895
+ 'type' => 'text',
3896
+ 'id' => 'tweets_count',
3897
+ 'name' => 'tweets_count',
3898
+
3899
+ // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
3900
+ // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
3901
+ 'placeholder' => __( '6 is the default value', 'feed-them-social' ),
3902
+ 'value' => '',
3903
+
3904
+ // Relative to JS.
3905
+ 'short_attr' => array(
3906
+ 'attr_name' => 'tweets_count',
3907
+ 'var_final_if' => 'yes',
3908
+ 'var_final_value' => 'no',
3909
+ 'empty_error' => 'set',
3910
+ 'empty_error_value' => 'tweets_count=6',
3911
+ ),
3912
+ ),
3913
+
3914
+ // Twitter Fixed Height
3915
+ array(
3916
+ 'option_type' => 'input',
3917
+ 'label' => __( 'Twitter Fixed Height', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank for auto height', 'feed-them-social' ) . '</small>',
3918
+ 'type' => 'text',
3919
+ 'id' => 'twitter_height',
3920
+ 'name' => 'twitter_height',
3921
+ 'placeholder' => '450px ' . __( 'for example', 'feed-them-social' ),
3922
+ 'short_attr' => array(
3923
+ 'attr_name' => 'twitter_height',
3924
+ 'var_final_if' => 'yes',
3925
+ 'var_final_value' => '',
3926
+ 'empty_error' => 'set',
3927
+ 'empty_error_value' => '',
3928
+ ),
3929
+ ),
3930
+
3931
+ // Show Cover Photo
3932
+ array(
3933
+ 'option_type' => 'select',
3934
+ 'label' => __( 'Show Cover Photo', 'feed-them-social' ),
3935
+ 'type' => 'text',
3936
+ 'id' => 'twitter-cover-photo',
3937
+ 'name' => 'twitter-cover-photo',
3938
+ 'options' => array(
3939
+ array(
3940
+ 'label' => __( 'No', 'feed-them-social' ),
3941
+ 'value' => 'no',
3942
+ ),
3943
+ array(
3944
+ 'label' => __( 'Yes', 'feed-them-social' ),
3945
+ 'value' => 'yes',
3946
+ ),
3947
+ ),
3948
+ 'short_attr' => array(
3949
+ 'attr_name' => 'cover_photo',
3950
+ ),
3951
+ ),
3952
+
3953
+ // Show Stats Bar
3954
+ array(
3955
+ 'option_type' => 'select',
3956
+ 'label' => __( 'Stats Bar', 'feed-them-social' ),
3957
+ 'type' => 'text',
3958
+ 'id' => 'twitter-stats-bar',
3959
+ 'name' => 'twitter-stats-bar',
3960
+ 'options' => array(
3961
+ array(
3962
+ 'label' => __( 'No', 'feed-them-social' ),
3963
+ 'value' => 'no',
3964
+ ),
3965
+ array(
3966
+ 'label' => __( 'Yes', 'feed-them-social' ),
3967
+ 'value' => 'yes',
3968
+ ),
3969
+ ),
3970
+ 'short_attr' => array(
3971
+ 'attr_name' => 'stats_bar',
3972
+ ),
3973
+ ),
3974
+
3975
+ // Show Retweets
3976
+ array(
3977
+ 'option_type' => 'select',
3978
+ 'label' => __( 'Show Retweets', 'feed-them-social' ),
3979
+ 'type' => 'text',
3980
+ 'id' => 'twitter-show-retweets',
3981
+ 'name' => 'twitter-show-retweets',
3982
+ 'options' => array(
3983
+ array(
3984
+ 'label' => __( 'No', 'feed-them-social' ),
3985
+ 'value' => 'no',
3986
+ ),
3987
+ array(
3988
+ 'label' => __( 'Yes', 'feed-them-social' ),
3989
+ 'value' => 'yes',
3990
+ ),
3991
+ ),
3992
+ 'short_attr' => array(
3993
+ 'attr_name' => 'show_retweets',
3994
+ ),
3995
+ ),
3996
+
3997
+ // Show Replies
3998
+ array(
3999
+ 'option_type' => 'select',
4000
+ 'label' => __( 'Show Replies', 'feed-them-social' ),
4001
+ 'type' => 'text',
4002
+ 'id' => 'twitter-show-replies',
4003
+ 'name' => 'twitter-show-replies',
4004
+ 'options' => array(
4005
+ array(
4006
+ 'label' => __( 'No', 'feed-them-social' ),
4007
+ 'value' => 'no',
4008
+ ),
4009
+ array(
4010
+ 'label' => __( 'Yes', 'feed-them-social' ),
4011
+ 'value' => 'yes',
4012
+ ),
4013
+ ),
4014
+ 'short_attr' => array(
4015
+ 'attr_name' => 'show_replies',
4016
+ ),
4017
+ ),
4018
+
4019
+ // Pop Up Option
4020
+ array(
4021
+ 'grouped_options_title' => __( 'Popup', 'feed-them-social' ),
4022
+ 'option_type' => 'select',
4023
+ 'label' => __( 'Display Photos & Videos in Popup', 'feed-them-social' ),
4024
+ 'type' => 'text',
4025
+ 'id' => 'twitter-popup-option',
4026
+ 'name' => 'twitter-popup-option',
4027
+
4028
+ // Premium Required - yes/no/more (more allows for us to limit things by numbers, also allows for special message above option.)
4029
+ 'prem_req' => 'yes',
4030
+ 'options' => array(
4031
+ array(
4032
+ 'label' => __( 'No', 'feed-them-social' ),
4033
+ 'value' => 'no',
4034
+ ),
4035
+ array(
4036
+ 'label' => __( 'Yes', 'feed-them-social' ),
4037
+ 'value' => 'yes',
4038
+ ),
4039
+ ),
4040
+ 'req_plugin' => 'fts_premium',
4041
+ 'short_attr' => array(
4042
+ 'attr_name' => 'popup',
4043
+ 'ifs' => 'twitter_popup',
4044
+ ),
4045
+ ),
4046
+
4047
+ // ******************************************
4048
+ // Facebook Load More Options
4049
+ // ******************************************
4050
+ // Twitter Load More Button
4051
+ array(
4052
+ 'grouped_options_title' => __( 'Load More', 'feed-them-social' ),
4053
+ 'option_type' => 'select',
4054
+ 'label' => __( 'Load More Button', 'feed-them-social' ),
4055
+ 'type' => 'text',
4056
+ 'id' => 'twitter_load_more_option',
4057
+ 'name' => 'twitter_load_more_option',
4058
+ 'options' => array(
4059
+ array(
4060
+ 'label' => __( 'No', 'feed-them-social' ),
4061
+ 'value' => 'no',
4062
+ ),
4063
+ array(
4064
+ 'label' => __( 'Yes', 'feed-them-social' ),
4065
+ 'value' => 'yes',
4066
+ ),
4067
+ ),
4068
+ 'prem_req' => 'yes',
4069
+ 'req_plugin' => 'fts_premium',
4070
+ 'short_attr' => array(
4071
+ 'attr_name' => '',
4072
+ 'empty_error_value' => '',
4073
+ 'no_attribute' => 'yes',
4074
+ ),
4075
+ 'sub_options' => array(
4076
+ 'sub_options_wrap_class' => 'twitter-loadmore-wrap',
4077
+ ),
4078
+ ),
4079
+
4080
+ // Twitter Load More Style
4081
+ array(
4082
+ 'option_type' => 'select',
4083
+ 'label' => __( 'Load More Style', 'feed-them-social' ),
4084
+ 'type' => 'text',
4085
+ 'id' => 'twitter_load_more_style',
4086
+ 'name' => 'twitter_load_more_style',
4087
+ 'instructional-text' => '<strong>' . __( 'NOTE:', 'feed-them-social' ) . '</strong> ' . __( 'The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social' ),
4088
+ 'options' => array(
4089
+ array(
4090
+ 'label' => __( 'Button', 'feed-them-social' ),
4091
+ 'value' => 'button',
4092
+ ),
4093
+ array(
4094
+ 'label' => __( 'AutoScroll', 'feed-them-social' ),
4095
+ 'value' => 'autoscroll',
4096
+ ),
4097
+ ),
4098
+ 'prem_req' => 'yes',
4099
+ 'req_plugin' => 'fts_premium',
4100
+ 'short_attr' => array(
4101
+ 'attr_name' => 'loadmore',
4102
+ 'ifs' => 'load_more',
4103
+ ),
4104
+
4105
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4106
+ 'sub_options' => array(
4107
+ 'sub_options_wrap_class' => 'fts-twitter-load-more-options-wrap',
4108
+ ),
4109
+ 'sub_options_end' => true,
4110
+ ),
4111
+
4112
+ // Twitter Page Load more Amount
4113
+ array(
4114
+ 'option_type' => 'input',
4115
+ 'label' => __( 'Load more Amount', 'feed-them-social' ) . '<br/><small>' . __( 'How many more posts will load at a time.', 'feed-them-social' ) . '</small>',
4116
+ 'type' => 'text',
4117
+ 'id' => 'twitter_loadmore_count',
4118
+ 'name' => 'twitter_loadmore_count',
4119
+ 'placeholder' => __( '5 is the default number', 'feed-them-social' ),
4120
+ 'value' => '',
4121
+ 'req_plugin' => 'fts_premium',
4122
+
4123
+ // Relative to JS.
4124
+ 'short_attr' => array(
4125
+ 'attr_name' => 'loadmore_count',
4126
+ 'empty_error' => 'set',
4127
+ 'empty_error_value' => 'loadmore_count=5',
4128
+ 'ifs' => 'load_more',
4129
+ ),
4130
+
4131
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4132
+ 'sub_options' => array(
4133
+ 'sub_options_wrap_class' => 'fts-twitter-load-more-options2-wrap',
4134
+ ),
4135
+ ),
4136
+
4137
+ // Twitter Load more Button Width
4138
+ array(
4139
+ 'option_type' => 'input',
4140
+ 'label' => __( 'Load more Button Width', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank for auto width', 'feed-them-social' ) . '</small>',
4141
+ 'type' => 'text',
4142
+ 'id' => 'twitter_loadmore_button_width',
4143
+ 'name' => 'twitter_loadmore_button_width',
4144
+ 'placeholder' => '300px ' . __( 'for example', 'feed-them-social' ),
4145
+ 'value' => '',
4146
+ 'prem_req' => 'yes',
4147
+ 'req_plugin' => 'fts_premium',
4148
+ 'or_req_plugin' => 'facebook_reviews',
4149
+
4150
+ // Relative to JS.
4151
+ 'short_attr' => array(
4152
+ 'attr_name' => 'loadmore_btn_maxwidth',
4153
+ 'empty_error' => 'set',
4154
+ 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
4155
+ 'ifs' => 'load_more',
4156
+ ),
4157
+ ),
4158
+
4159
+ // Twitter Load more Button Margin
4160
+ array(
4161
+ 'option_type' => 'input',
4162
+ 'label' => __( 'Load more Button Margin', 'feed-them-social' ),
4163
+ 'type' => 'text',
4164
+ 'id' => 'twitter_loadmore_button_margin',
4165
+ 'name' => 'twitter_loadmore_button_margin',
4166
+ 'placeholder' => '10px ' . __( 'for example', 'feed-them-social' ),
4167
+ 'value' => '',
4168
+ 'req_plugin' => 'fts_premium',
4169
+
4170
+ // Relative to JS.
4171
+ 'short_attr' => array(
4172
+ 'attr_name' => 'loadmore_btn_margin',
4173
+ 'empty_error' => 'set',
4174
+ 'empty_error_value' => 'loadmore_btn_margin=10px',
4175
+ 'ifs' => 'load_more',
4176
+ ),
4177
+ 'sub_options_end' => 2,
4178
+ ),
4179
+
4180
+ // ******************************************
4181
+ // Twitter Grid Options
4182
+ // ******************************************
4183
+ // Twitter Display Posts in Grid
4184
+ array(
4185
+ 'grouped_options_title' => __( 'Grid', 'feed-them-social' ),
4186
+ 'input_wrap_class' => 'twitter-posts-in-grid-option-wrap',
4187
+ 'option_type' => 'select',
4188
+ 'label' => __( 'Display Posts in Grid', 'feed-them-social' ),
4189
+ 'type' => 'text',
4190
+ 'id' => 'twitter-grid-option',
4191
+ 'name' => 'twitter-grid-option',
4192
+ 'options' => array(
4193
+ 1 => array(
4194
+ 'label' => __( 'No', 'feed-them-social' ),
4195
+ 'value' => 'no',
4196
+ ),
4197
+ 2 => array(
4198
+ 'label' => __( 'Yes', 'feed-them-social' ),
4199
+ 'value' => 'yes',
4200
+ ),
4201
+ ),
4202
+ 'req_plugin' => 'fts_premium',
4203
+ 'or_req_plugin' => 'combine_streams',
4204
+ 'short_attr' => array(
4205
+ 'attr_name' => 'grid',
4206
+ 'empty_error' => 'set',
4207
+ 'set_operator' => '==',
4208
+ 'set_equals' => 'yes',
4209
+ 'empty_error_value' => '',
4210
+ ),
4211
+
4212
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4213
+ 'sub_options' => array(
4214
+ 'sub_options_wrap_class' => 'main-grid-options-wrap',
4215
+ ),
4216
+ ),
4217
+
4218
+ // Grid Column Width
4219
+ array(
4220
+ 'option_type' => 'input',
4221
+ 'label' => __( 'Grid Column Width', 'feed-them-social' ),
4222
+ 'type' => 'text',
4223
+ 'id' => 'twitter_grid_column_width',
4224
+ 'name' => 'twitter_grid_column_width',
4225
+ 'instructional-text' => '<strong> ' . __( 'NOTE:', 'feed-them-social' ) . '</strong> ' . sprintf( __( 'Define the Width of each post and the Space between each post below. You must add px after any number. Learn how to make the %1$sgrid responsive%2$s.', 'feed-them-social' ), '<a href="https://www.slickremix.com/docs/responsive-grid-css/" target="_blank">', '</a>' ),
4226
+ 'placeholder' => '310px ' . __( 'for example', 'feed-them-social' ),
4227
+ 'value' => '',
4228
+ 'req_plugin' => 'fts_premium',
4229
+ 'or_req_plugin' => 'combine_streams',
4230
+ 'or_req_plugin_three' => 'facebook_reviews',
4231
+
4232
+ // Relative to JS.
4233
+ 'short_attr' => array(
4234
+ 'attr_name' => 'colmn_width',
4235
+ 'empty_error' => 'set',
4236
+ 'empty_error_value' => 'colmn_width=310px',
4237
+ 'ifs' => 'grid',
4238
+ ),
4239
+
4240
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4241
+ 'sub_options' => array(
4242
+ 'sub_options_wrap_class' => 'fts-twitter-grid-options-wrap',
4243
+
4244
+ // 'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
4245
+ ),
4246
+ ),
4247
+
4248
+ // Grid Spaces Between Posts
4249
+ array(
4250
+ 'option_type' => 'input',
4251
+ 'label' => __( 'Grid Spaces Between Posts', 'feed-them-social' ),
4252
+ 'type' => 'text',
4253
+ 'id' => 'twitter_grid_space_between_posts',
4254
+ 'name' => 'twitter_grid_space_between_posts',
4255
+ 'placeholder' => '10px ' . __( 'for example', 'feed-them-social' ),
4256
+ 'value' => '',
4257
+ 'req_plugin' => 'fts_premium',
4258
+ 'or_req_plugin' => 'combine_streams',
4259
+ 'or_req_plugin_three' => 'facebook_reviews',
4260
+
4261
+ // Relative to JS.
4262
+ 'short_attr' => array(
4263
+ 'attr_name' => 'space_between_posts',
4264
+ 'empty_error' => 'set',
4265
+ 'empty_error_value' => 'space_between_posts=10px',
4266
+ 'ifs' => 'grid',
4267
+ ),
4268
+ 'sub_options_end' => 2,
4269
+ ),
4270
+ ),
4271
+
4272
+ // Final Shortcode ifs
4273
+ 'shortcode_ifs' => array(
4274
+ 'twitter_popup' => array(
4275
+ 'if' => array(
4276
+ 'class' => 'select#twitter-popup-option',
4277
+ 'operator' => '==',
4278
+ 'value' => 'yes',
4279
+ ),
4280
+ ),
4281
+ 'twitter_search' => array(
4282
+ 'if' => array(
4283
+ 'class' => 'select#twitter-messages-selector',
4284
+ 'operator' => '==',
4285
+ 'value' => 'hashtag',
4286
+ ),
4287
+ ),
4288
+ 'load_more' => array(
4289
+ 'if' => array(
4290
+ 'class' => 'select#twitter_load_more_option',
4291
+ 'operator' => '==',
4292
+ 'value' => 'yes',
4293
+ ),
4294
+ ),
4295
+ 'grid' => array(
4296
+ 'if' => array(
4297
+ 'class' => 'select#twitter-grid-option',
4298
+ 'operator' => '==',
4299
+ 'value' => 'yes',
4300
+ ),
4301
+ ),
4302
+ ),
4303
+
4304
+ // Generator Info
4305
+ 'generator_title' => __( 'Twitter Feed Shortcode', 'feed-them-social' ),
4306
+ 'generator_class' => 'twitter-final-shortcode',
4307
+ ), // End Twitter Feed
4308
+
4309
+ // ******************************************
4310
+ // Instagram
4311
+ // ******************************************
4312
+ 'instagram' => array(
4313
+ 'section_attr_key' => 'instagram_',
4314
+ 'section_title' => __( 'Instagram Shortcode Generator', 'feed-them-social' ),
4315
+ 'section_wrap_class' => 'fts-instagram-shortcode-form',
4316
+
4317
+ // Form Info
4318
+ 'form_wrap_classes' => 'instagram-shortcode-form',
4319
+ 'form_wrap_id' => 'fts-instagram-form',
4320
+
4321
+ // Token Check
4322
+ 'token_check' => array(
4323
+ array(
4324
+ 'option_name' => 'fts_instagram_custom_api_token',
4325
+ 'no_token_msg' => __( '<strong>STEP 1:</strong> Please get your Access Token on the <a href="admin.php?page=fts-instagram-feed-styles-submenu-page">Instagram Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social' ),
4326
+ ),
4327
+ ),
4328
+
4329
+ // Feed Type Selection
4330
+ 'feed_type_select' => array(
4331
+ 'label' => __( 'Feed Type', 'feed-them-social' ),
4332
+ 'select_wrap_classes' => 'instagram-gen-selection',
4333
+ 'select_classes' => '',
4334
+ 'select_name' => 'instagram-messages-selector',
4335
+ 'select_id' => 'instagram-messages-selector',
4336
+ ),
4337
+
4338
+ // Feed Types and their options
4339
+ 'feeds_types' => array(
4340
+
4341
+ // User Feed
4342
+ array(
4343
+ 'value' => 'user',
4344
+ 'title' => __( 'User Feed', 'feed-them-social' ),
4345
+ ),
4346
+
4347
+ // hastag Feed
4348
+ array(
4349
+ 'value' => 'hashtag',
4350
+ 'title' => __( 'Hashtag Feed', 'feed-them-social' ),
4351
+ ),
4352
+
4353
+ // location Feed
4354
+ array(
4355
+ 'value' => 'location',
4356
+ 'title' => __( 'Location Feed', 'feed-them-social' ),
4357
+ ),
4358
+ ),
4359
+
4360
+ // Feed Type Selection
4361
+ // 'conversion_input' => array(
4362
+ // 'main_wrap_class' => 'instagram-id-option-wrap',
4363
+ // 'conv_section_title' => __('Convert Instagram Name to ID', 'feed-them-social'),
4364
+ // 'instructional-text' => 'You must copy your <a href="https://www.slickremix.com/how-to-get-your-instagram-name-and-convert-to-id/" target="_blank">Instagram Name</a> and paste it in the first input below',
4365
+ // 'input_wrap_class' => 'instagram_name',
4366
+ // 'label' => __('Instagram Name (required)', 'feed-them-social'),
4367
+ // 'id' => 'convert_instagram_username',
4368
+ // 'name' => 'convert_instagram_username',
4369
+ // Button
4370
+ // 'btn-value' => __('Convert Instagram Username', 'feed-them-social'),
4371
+ // 'onclick' => 'converter_instagram_username();',
4372
+ // ),
4373
+ // 'short_attr_final' => 'yes',
4374
+ // Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
4375
+ 'main_options' => array(
4376
+
4377
+ // Instagram ID
4378
+ array(
4379
+ 'option_type' => 'input',
4380
+ 'input_wrap_class' => 'instagram_name',
4381
+ 'label' => array(
4382
+ 1 => array(
4383
+ 'text' => __( 'Instagram ID # (required)', 'feed-them-social' ),
4384
+ 'class' => 'instagram-user-option-text',
4385
+ ),
4386
+ 2 => array(
4387
+ 'text' => __( 'Hashtag (required)', 'feed-them-social' ),
4388
+ 'class' => 'instagram-hashtag-option-text',
4389
+ ),
4390
+ 3 => array(
4391
+ 'text' => __( 'Location ID (required)', 'feed-them-social' ),
4392
+ 'class' => 'instagram-location-option-text',
4393
+ ),
4394
+ ),
4395
+ 'type' => 'text',
4396
+ 'id' => 'instagram_id',
4397
+ 'name' => 'instagram_id',
4398
+ 'required' => 'yes',
4399
+ 'instructional-text' => array(
4400
+ 1 => array(
4401
+ 'text' => __( '<div class="fts-insta-info-plus-wrapper">If your Access Token is set on the Instagram Options page of our plugin your ID should appear below.<br/><strong>To create an additional feed</strong> go back the ', 'feed-them-social' ) . ' <a href="admin.php?page=fts-instagram-feed-styles-submenu-page" target="">' . __( 'Instagram Options', 'feed-them-social' ) . '</a>' . __( ' and make sure you are logged into that specific Instagram account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.</div>', 'feed-them-social' ),
4402
+ 'class' => 'instagram-user-option-text',
4403
+ ),
4404
+ 2 => array(
4405
+ 'text' => __( 'Add your Hashtag below. <strong>DO NOT</strong> add the #, just the name.', 'feed-them-social' ),
4406
+ 'class' => 'instagram-hashtag-option-text',
4407
+ ),
4408
+ 3 => array(
4409
+ 'text' => __( '<strong>NOTE:</strong> The post count may not count proper in some location instances because private instagram photos are in the mix. We cannot pull private accounts photos in any location feed. Add your Location ID below.', 'feed-them-social' ),
4410
+ 'class' => 'instagram-location-option-text',
4411
+ ),
4412
+ ),
4413
+
4414
+ // Relative to JS.
4415
+ 'short_attr' => array(
4416
+ 'attr_name' => 'instagram_id',
4417
+ 'var_final_if' => 'no',
4418
+ 'empty_error' => 'yes',
4419
+ ),
4420
+ ),
4421
+
4422
+ // Access Token
4423
+ array(
4424
+ 'option_type' => 'input',
4425
+ 'label' => __( 'Access Token (required) ', 'feed-them-social' ) . '<br/><small>' . __( '', 'feed-them-gallery' ) . '</small>',
4426
+ 'type' => 'text',
4427
+ 'id' => 'insta_access_token',
4428
+ 'name' => 'insta_access_token',
4429
+
4430
+ // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
4431
+ // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
4432
+ 'placeholder' => __( '', 'feed-them-social' ),
4433
+
4434
+ // Relative to JS.
4435
+ 'short_attr' => array(
4436
+ 'attr_name' => 'access_token',
4437
+ 'var_final_if' => 'yes',
4438
+ 'empty_error' => 'set',
4439
+ 'empty_error_value' => '',
4440
+ ),
4441
+ ),
4442
+
4443
+ // Pic Count
4444
+ array(
4445
+ 'option_type' => 'input',
4446
+ 'label' => __( '# of Pics (optional)', 'feed-them-social' ) . $limitforpremium,
4447
+ 'type' => 'text',
4448
+ 'id' => 'pics_count',
4449
+ 'name' => 'pics_count',
4450
+
4451
+ // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
4452
+ // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
4453
+ 'placeholder' => __( '6 is the default value', 'feed-them-social' ),
4454
+
4455
+ // Relative to JS.
4456
+ 'short_attr' => array(
4457
+ 'attr_name' => 'pics_count',
4458
+ 'var_final_if' => 'yes',
4459
+ 'empty_error' => 'set',
4460
+ 'empty_error_value' => 'pics_count=6',
4461
+ ),
4462
+ ),
4463
+
4464
+ // Feed Type
4465
+ array(
4466
+ 'option_type' => 'select',
4467
+ 'id' => 'instagram-messages-selector',
4468
+ 'no_html' => 'yes',
4469
+
4470
+ // Relative to JS.
4471
+ 'short_attr' => array(
4472
+ 'attr_name' => 'type',
4473
+ ),
4474
+ ),
4475
+
4476
+ // Instagram Width
4477
+ array(
4478
+ 'input_wrap_class' => 'instagram_width_option',
4479
+ 'option_type' => 'input',
4480
+ 'label' => __( 'Gallery Width', 'feed-them-social' ),
4481
+ 'label_note' => __( 'Leave blank for auto height', 'feed-them-social' ),
4482
+ 'type' => 'text',
4483
+ 'id' => 'instagram_page_width',
4484
+ 'name' => 'instagram_page_width',
4485
+ 'placeholder' => '50% or 450px ' . __( 'for example', 'feed-them-social' ),
4486
+
4487
+ // Relative to JS.
4488
+ 'short_attr' => array(
4489
+ 'attr_name' => 'width',
4490
+ 'var_final_if' => 'yes',
4491
+ 'empty_error' => 'set',
4492
+
4493
+ // Special case: need no attribute if empty
4494
+ 'empty_error_value' => '',
4495
+ ),
4496
+ ),
4497
+
4498
+ // Instagram Fixed Height
4499
+ array(
4500
+ 'input_wrap_class' => 'instagram_fixed_height_option',
4501
+ 'option_type' => 'input',
4502
+ 'label' => __( 'Gallery Fixed Height', 'feed-them-social' ) . '<br/><small>' . __( 'Use this option to create a scrolling feed.', 'feed-them-gallery' ) . '</small>',
4503
+ 'label_note' => __( 'Leave blank for auto height', 'feed-them-social' ),
4504
+ 'type' => 'text',
4505
+ 'id' => 'instagram_page_height',
4506
+ 'name' => 'instagram_page_height',
4507
+ 'placeholder' => '450px ' . __( 'for example', 'feed-them-social' ),
4508
+
4509
+ // Relative to JS.
4510
+ 'short_attr' => array(
4511
+ 'attr_name' => 'height',
4512
+ 'var_final_if' => 'yes',
4513
+ 'empty_error' => 'set',
4514
+
4515
+ // Special case: need no attribute if empty
4516
+ 'empty_error_value' => '',
4517
+ ),
4518
+ ),
4519
+
4520
+ // ******************************************
4521
+ // Profile Wrap
4522
+ // ******************************************
4523
+ array(
4524
+ 'grouped_options_title' => __( 'Profile', 'feed-them-social' ),
4525
+ 'option_type' => 'select',
4526
+ 'label' => __( 'Show Profile Info', 'feed-them-social' ),
4527
+ 'type' => 'text',
4528
+ 'id' => 'instagram-profile-wrap',
4529
+ 'name' => 'instagram-profile-wrap',
4530
+ 'options' => array(
4531
+ 1 => array(
4532
+ 'label' => __( 'No', 'feed-them-social' ),
4533
+ 'value' => 'no',
4534
+ ),
4535
+ 2 => array(
4536
+ 'label' => __( 'Yes', 'feed-them-social' ),
4537
+ 'value' => 'yes',
4538
+ ),
4539
+ ),
4540
+ 'short_attr' => array(
4541
+ 'attr_name' => 'profile_wrap',
4542
+ ),
4543
+ 'sub_options' => array(
4544
+ 'sub_options_wrap_class' => 'main-instagram-profile-options-wrap',
4545
+ ),
4546
+ ),
4547
+ array(
4548
+ 'option_type' => 'select',
4549
+ 'label' => __( 'Show Profile Photo', 'feed-them-social' ),
4550
+ 'type' => 'text',
4551
+ 'id' => 'instagram-profile-photo',
4552
+ 'name' => 'instagram-profile-photo',
4553
+ 'options' => array(
4554
+ 1 => array(
4555
+ 'label' => __( 'No', 'feed-them-social' ),
4556
+ 'value' => 'no',
4557
+ ),
4558
+ 2 => array(
4559
+ 'label' => __( 'Yes', 'feed-them-social' ),
4560
+ 'value' => 'yes',
4561
+ ),
4562
+ ),
4563
+ 'short_attr' => array(
4564
+ 'attr_name' => 'profile_photo',
4565
+ 'ifs' => 'profile_wrap',
4566
+ ),
4567
+ 'sub_options' => array(
4568
+ 'sub_options_wrap_class' => 'instagram-profile-options-wrap',
4569
+ ),
4570
+ ),
4571
+ array(
4572
+ 'option_type' => 'select',
4573
+ 'label' => __( 'Show Profile Stats', 'feed-them-social' ),
4574
+ 'type' => 'text',
4575
+ 'id' => 'instagram-profile-stats',
4576
+ 'name' => 'instagram-profile-stats',
4577
+ 'options' => array(
4578
+ 1 => array(
4579
+ 'label' => __( 'No', 'feed-them-social' ),
4580
+ 'value' => 'no',
4581
+ ),
4582
+ 2 => array(
4583
+ 'label' => __( 'Yes', 'feed-them-social' ),
4584
+ 'value' => 'yes',
4585
+ ),
4586
+ ),
4587
+ 'short_attr' => array(
4588
+ 'attr_name' => 'profile_stats',
4589
+ 'ifs' => 'profile_wrap',
4590
+ ),
4591
+ ),
4592
+ array(
4593
+ 'option_type' => 'select',
4594
+ 'label' => __( 'Show Profile Name', 'feed-them-social' ),
4595
+ 'type' => 'text',
4596
+ 'id' => 'instagram-profile-name',
4597
+ 'name' => 'instagram-profile-name',
4598
+ 'options' => array(
4599
+ 1 => array(
4600
+ 'label' => __( 'No', 'feed-them-social' ),
4601
+ 'value' => 'no',
4602
+ ),
4603
+ 2 => array(
4604
+ 'label' => __( 'Yes', 'feed-them-social' ),
4605
+ 'value' => 'yes',
4606
+ ),
4607
+ ),
4608
+ 'short_attr' => array(
4609
+ 'attr_name' => 'profile_name',
4610
+ 'ifs' => 'profile_wrap',
4611
+ ),
4612
+ ),
4613
+ array(
4614
+ 'option_type' => 'select',
4615
+ 'label' => __( 'Show Profile Description', 'feed-them-social' ),
4616
+ 'type' => 'text',
4617
+ 'id' => 'instagram-profile-description',
4618
+ 'name' => 'instagram-profile-description',
4619
+ 'options' => array(
4620
+ 1 => array(
4621
+ 'label' => __( 'No', 'feed-them-social' ),
4622
+ 'value' => 'no',
4623
+ ),
4624
+ 2 => array(
4625
+ 'label' => __( 'Yes', 'feed-them-social' ),
4626
+ 'value' => 'yes',
4627
+ ),
4628
+ ),
4629
+ 'short_attr' => array(
4630
+ 'attr_name' => 'profile_description',
4631
+ 'ifs' => 'profile_wrap',
4632
+ ),
4633
+ 'sub_options_end' => 2,
4634
+ ),
4635
+
4636
+ // ******************************************
4637
+ // Super Gallery
4638
+ // ******************************************
4639
+ array(
4640
+ 'grouped_options_title' => __( 'Gallery Options', 'feed-them-social' ),
4641
+ 'option_type' => 'select',
4642
+ 'label' => __( 'Gallery Style', 'feed-them-social' ),
4643
+ 'type' => 'text',
4644
+ 'id' => 'instagram-custom-gallery',
4645
+ 'name' => 'instagram-custom-gallery',
4646
+ 'options' => array(
4647
+ 1 => array(
4648
+ 'label' => __( 'New Gallery Style', 'feed-them-social' ),
4649
+ 'value' => 'yes',
4650
+ ),
4651
+ 2 => array(
4652
+ 'label' => __( 'Classic Gallery Style', 'feed-them-social' ),
4653
+ 'value' => 'no',
4654
+ ),
4655
+ ),
4656
+ 'short_attr' => array(
4657
+ 'attr_name' => 'super_gallery',
4658
+ 'ifs' => 'super_gallery',
4659
+ ),
4660
+ ),
4661
+ array(
4662
+ 'input_wrap_class' => 'fb-page-columns-option-hide',
4663
+ 'option_type' => 'select',
4664
+ 'label' => __( 'Number of Columns', 'feed-them-gallery' ),
4665
+ 'type' => 'text',
4666
+ 'instructional-text' => '<strong>' . __( 'NOTE:', 'feed-them-social' ) . '</strong>' . __( 'Using the Columns option will make this gallery fully responsive and it will adapt in size to your containers width. Choose the Number of Columns and Space between each image below. Please add px after any number.', 'feed-them-gallery' ) . ' <a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __( 'View demo', 'feed-them-social' ) . '</a>',
4667
+ 'id' => 'fts_instagram_columns',
4668
+ 'name' => 'fts_instagram_columns',
4669
+ 'default_value' => '3',
4670
+ 'options' => array(
4671
+ array(
4672
+ 'label' => __( '1', 'feed-them-social' ),
4673
+ 'value' => '1',
4674
+ ),
4675
+ array(
4676
+ 'label' => __( '2', 'feed-them-social' ),
4677
+ 'value' => '2',
4678
+ ),
4679
+ array(
4680
+ 'label' => __( '3', 'feed-them-social' ),
4681
+ 'value' => '3',
4682
+ ),
4683
+ array(
4684
+ 'label' => __( '4', 'feed-them-social' ),
4685
+ 'value' => '4',
4686
+ ),
4687
+ array(
4688
+ 'label' => __( '5', 'feed-them-social' ),
4689
+ 'value' => '5',
4690
+ ),
4691
+ array(
4692
+ 'label' => __( '6', 'feed-them-social' ),
4693
+ 'value' => '6',
4694
+ ),
4695
+ array(
4696
+ 'label' => __( '7', 'feed-them-social' ),
4697
+ 'value' => '7',
4698
+ ),
4699
+ array(
4700
+ 'label' => __( '8', 'feed-them-social' ),
4701
+ 'value' => '8',
4702
+ ),
4703
+ ),
4704
+ 'short_attr' => array(
4705
+ 'attr_name' => 'columns',
4706
+ 'ifs' => 'super_gallery',
4707
+ ),
4708
+
4709
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4710
+ 'sub_options' => array(
4711
+ 'sub_options_wrap_class' => 'fts-super-instagram-options-wrap',
4712
+ ),
4713
+ ),
4714
+ array(
4715
+ 'input_wrap_class' => 'fb-page-columns-option-hide',
4716
+ 'option_type' => 'select',
4717
+ 'label' => __( 'Force Columns', 'feed-them-gallery' ) . '<br/><small>' . __( 'No, will allow the images to be responsive for smaller devices. Yes, will force columns.', 'feed-them-social' ) . '</small>',
4718
+ 'type' => 'text',
4719
+ 'id' => 'fts_instagram_force_columns',
4720
+ 'name' => 'fts_instagram_force_columns',
4721
+ 'default_value' => 'no',
4722
+ 'options' => array(
4723
+ array(
4724
+ 'label' => __( 'No', 'feed-them-gallery' ),
4725
+ 'value' => 'no',
4726
+ ),
4727
+ array(
4728
+ 'label' => __( 'Yes', 'feed-them-gallery' ),
4729
+ 'value' => 'yes',
4730
+ ),
4731
+ ),
4732
+ 'short_attr' => array(
4733
+ 'attr_name' => 'force_columns',
4734
+ 'ifs' => 'super_gallery',
4735
+ ),
4736
+ ),
4737
+
4738
+ // Space between Photos
4739
+ array(
4740
+ 'option_type' => 'input',
4741
+ 'label' => __( 'The space between photos', 'feed-them-social' ),
4742
+ 'type' => 'text',
4743
+ 'id' => 'fts-slicker-instagram-container-margin',
4744
+ 'name' => 'fts-slicker-instagram-container-margin',
4745
+ 'placeholder' => '1px',
4746
+ 'value' => '',
4747
+ 'short_attr' => array(
4748
+ 'attr_name' => 'space_between_photos',
4749
+ 'var_final_if' => 'yes',
4750
+ 'empty_error' => 'set',
4751
+ 'empty_error_value' => 'space_between_photos=1px',
4752
+ 'ifs' => 'super_gallery',
4753
+ ),
4754
+ ),
4755
+
4756
+ // Icon Size
4757
+ array(
4758
+ 'option_type' => 'input',
4759
+ 'label' => __( 'Size of the Instagram Icon', 'feed-them-social' ),
4760
+ 'label_note' => __( 'Visible when you hover over photo', 'feed-them-social' ),
4761
+ 'type' => 'text',
4762
+ 'id' => 'fts-slicker-instagram-icon-center',
4763
+ 'name' => 'fts-slicker-instagram-icon-center',
4764
+ 'placeholder' => '65px',
4765
+ 'short_attr' => array(
4766
+ 'attr_name' => 'icon_size',
4767
+ 'var_final_if' => 'yes',
4768
+ 'empty_error' => 'set',
4769
+ 'empty_error_value' => 'icon_size=65px',
4770
+ 'ifs' => 'super_gallery',
4771
+ ),
4772
+ ),
4773
+
4774
+ // Hide Date, Likes and Comments
4775
+ array(
4776
+ 'option_type' => 'select',
4777
+ 'label' => __( 'Date, Heart & Comment icon', 'feed-them-social' ),
4778
+ 'label_note' => __( 'Good for image sizes under 120px', 'feed-them-social' ),
4779
+ 'type' => 'text',
4780
+ 'id' => 'fts-slicker-instagram-container-hide-date-likes-comments',
4781
+ 'name' => 'fts-slicker-instagram-container-hide-date-likes-comments',
4782
+ 'options' => array(
4783
+ 1 => array(
4784
+ 'label' => __( 'Show', 'feed-them-social' ),
4785
+ 'value' => 'no',
4786
+ ),
4787
+ 2 => array(
4788
+ 'label' => __( 'Hide', 'feed-them-social' ),
4789
+ 'value' => 'yes',
4790
+ ),
4791
+ ),
4792
+ 'short_attr' => array(
4793
+ 'attr_name' => 'hide_date_likes_comments',
4794
+ 'ifs' => 'super_gallery',
4795
+ ),
4796
+ 'sub_options_end' => true,
4797
+ ),
4798
+
4799
+ // ******************************************
4800
+ // Load More
4801
+ // ******************************************
4802
+ array(
4803
+ 'grouped_options_title' => __( 'Load More', 'feed-them-social' ),
4804
+ 'option_type' => 'select',
4805
+ 'label' => __( 'Load more posts', 'feed-them-social' ),
4806
+ 'type' => 'text',
4807
+ 'id' => 'instagram_load_more_option',
4808
+ 'name' => 'instagram_load_more_option',
4809
+
4810
+ // Premium Required - yes/no/more (more allows for us to limit things by numbers, also allows for special message above option.)
4811
+ 'prem_req' => 'yes',
4812
+ 'options' => array(
4813
+ 1 => array(
4814
+ 'label' => __( 'No', 'feed-them-social' ),
4815
+ 'value' => 'no',
4816
+ ),
4817
+ 2 => array(
4818
+ 'label' => __( 'Yes', 'feed-them-social' ),
4819
+ 'value' => 'yes',
4820
+ ),
4821
+ ),
4822
+ 'req_plugin' => 'fts_premium',
4823
+
4824
+ // Relative to JS.
4825
+ 'short_attr' => array(
4826
+ 'attr_name' => 'load_more',
4827
+ 'var_final_if' => 'no',
4828
+ 'no_attribute' => 'yes',
4829
+ ),
4830
+ ),
4831
+
4832
+ // Load More Option Type
4833
+ array(
4834
+ 'option_type' => 'select',
4835
+ 'label' => __( 'Load more style', 'feed-them-social' ),
4836
+ 'type' => 'text',
4837
+ 'id' => 'instagram_load_more_style',
4838
+ 'name' => 'instagram_load_more_style',
4839
+ 'instructional-text' => '<strong>' . __( 'NOTE:', 'feed-them-social' ) . '</strong> ' . __( 'The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social' ),
4840
+ 'options' => array(
4841
+ 1 => array(
4842
+ 'label' => __( 'Button', 'feed-them-social' ),
4843
+ 'value' => 'button',
4844
+ ),
4845
+ 2 => array(
4846
+ 'label' => __( 'AutoScroll', 'feed-them-social' ),
4847
+ 'value' => 'autoscroll',
4848
+ ),
4849
+ ),
4850
+ 'req_plugin' => 'fts_premium',
4851
+ 'short_attr' => array(
4852
+ 'attr_name' => 'loadmore',
4853
+ 'var_final_if' => 'no',
4854
+ 'var_final_value' => '',
4855
+ 'ifs' => 'load_more',
4856
+ ),
4857
+
4858
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4859
+ 'sub_options' => array(
4860
+ 'sub_options_wrap_class' => 'fts-instagram-load-more-options-wrap',
4861
+ ),
4862
+ ),
4863
+
4864
+ // Instagram Page Load more Amount
4865
+ array(
4866
+ 'option_type' => 'input',
4867
+ 'label' => __( 'Load more Amount', 'feed-them-social' ) . '<br/><small>' . __( 'How many more posts will load at a time.', 'feed-them-social' ) . '</small>',
4868
+ 'type' => 'text',
4869
+ 'id' => 'instagram_loadmore_count',
4870
+ 'name' => 'instagram_loadmore_count',
4871
+ 'placeholder' => __( '5 is the default number', 'feed-them-social' ),
4872
+ 'value' => '',
4873
+ 'req_plugin' => 'fts_premium',
4874
+
4875
+ // Relative to JS.
4876
+ 'short_attr' => array(
4877
+ 'attr_name' => 'loadmore_count',
4878
+ 'empty_error' => 'set',
4879
+ 'empty_error_value' => 'loadmore_count=5',
4880
+ 'ifs' => 'load_more',
4881
+ ),
4882
+
4883
+ // This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4884
+ 'sub_options' => array(
4885
+ 'sub_options_wrap_class' => 'fts-instagram-load-more-options2-wrap',
4886
+
4887
+ // 'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
4888
+ ),
4889
+ ),
4890
+
4891
+ // Instagram Page Load more Button Width
4892
+ array(
4893
+ 'option_type' => 'input',
4894
+ 'label' => __( 'Load more Button Width', 'feed-them-social' ) . '<br/><small>' . __( 'Leave blank for auto width', 'feed-them-social' ) . '</small>',
4895
+ 'type' => 'text',
4896
+ 'id' => 'instagram_loadmore_button_width',
4897
+ 'name' => 'instagram_loadmore_button_width',
4898
+ 'placeholder' => '300px ' . __( 'for example', 'feed-them-social' ),
4899
+ 'value' => '',
4900
+ 'req_plugin' => 'fts_premium',
4901
+
4902
+ // Relative to JS.
4903
+ 'short_attr' => array(
4904
+ 'attr_name' => 'loadmore_btn_maxwidth',
4905
+ 'empty_error' => 'set',
4906
+ 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
4907
+ 'ifs' => 'load_more',
4908
+ ),
4909
+ ),
4910
+
4911
+ // Facebook Page Load more Button Margin
4912
+ array(
4913
+ 'option_type' => 'input',
4914
+ 'label' => __( 'Load more Button Margin', 'feed-them-social' ),
4915
+ 'type' => 'text',
4916
+ 'id' => 'instagram_loadmore_button_margin',
4917
+ 'name' => 'instagram_loadmore_button_margin',
4918
+ 'placeholder' => '10px ' . __( 'for example', 'feed-them-social' ),
4919
+ 'value' => '',
4920
+ 'req_plugin' => 'fts_premium',
4921
+
4922
+ // Relative to JS.
4923
+ 'short_attr' => array(
4924
+ 'attr_name' => 'loadmore_btn_margin',
4925
+ 'empty_error' => 'set',
4926
+ 'empty_error_value' => 'loadmore_btn_margin=10px',
4927
+ 'ifs' => 'load_more',
4928
+ ),
4929
+ 'sub_options_end' => 2,
4930
+ ),
4931
+
4932
+ // Pop Up Option
4933
+ array(
4934
+ 'grouped_options_title' => __( 'Popup', 'feed-them-social' ),
4935
+ 'option_type' => 'select',
4936
+ 'label' => __( 'Display Photos & Videos in Popup', 'feed-them-social' ),
4937
+ 'type' => 'text',
4938
+ 'id' => 'instagram_popup_option',
4939
+ 'name' => 'instagram_popup_option',
4940
+ 'options' => array(
4941
+ 1 => array(
4942
+ 'label' => __( 'No', 'feed-them-social' ),
4943
+ 'value' => 'no',
4944
+ ),
4945
+ 2 => array(
4946
+ 'label' => __( 'Yes', 'feed-them-social' ),
4947
+ 'value' => 'yes',
4948
+ ),
4949
+ ),
4950
+ 'req_plugin' => 'fts_premium',
4951
+ 'short_attr' => array(
4952
+ 'attr_name' => 'popup',
4953
+ ),
4954
+ ),
4955
+ ),
4956
+
4957
+ // Final Shortcode ifs
4958
+ 'shortcode_ifs' => array(
4959
+ 'profile_wrap' => array(
4960
+ 'if' => array(
4961
+ 'class' => 'select#instagram-profile-wrap',
4962
+ 'operator' => '==',
4963
+ 'value' => 'yes',
4964
+ ),
4965
+ ),
4966
+ 'super_gallery' => array(
4967
+ 'if' => array(
4968
+ 'class' => 'select#instagram-custom-gallery',
4969
+ 'operator' => '==',
4970
+ 'value' => 'yes',
4971
+ ),
4972
+ ),
4973
+ 'load_more' => array(
4974
+ 'if' => array(
4975
+ 'class' => 'select#instagram_load_more_option',
4976
+ 'operator' => '==',
4977
+ 'value' => 'yes',
4978
+ ),
4979
+ ),
4980
+ ),
4981
+
4982
+ // Generator Info
4983
+ 'generator_title' => __( 'Instagram Feed Shortcode', 'feed-them-social' ),
4984
+ 'generator_class' => 'instagram-final-shortcode',
4985
+ ), // End Instagram Feed
4986
+ );
4987
+
4988
+ return $feed_settings_array;
4989
+ }
4990
+ }
admin/class-fts-settings-page.php ADDED
@@ -0,0 +1,1988 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - Settings Page
4
+ *
5
+ * This page is used to Set Global options and Creates Shortcode Generator
6
+ *
7
+ * @package feedthemsocial
8
+ * @copyright Copyright (c) 2012-2018, SlickRemix
9
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+ * @since 1.0.0
11
+ */
12
+
13
+ namespace feedthemsocial;
14
+
15
+ /**
16
+ * Class FTS Settings Page
17
+ *
18
+ * @package feedthemsocial
19
+ * @since 1.9.6
20
+ */
21
+ class FTS_Settings_Page {
22
+
23
+ /**
24
+ * Construct
25
+ *
26
+ * FTS_settings_page constructor.
27
+ *
28
+ * @since 1.9.6
29
+ */
30
+ public function __construct() {
31
+ }
32
+
33
+ /**
34
+ * Feed Them Settings Page
35
+ *
36
+ * Main Settings Page.
37
+ *
38
+ * @since 1.9.6
39
+ */
40
+ public function feed_them_settings_page() {
41
+ $fts_functions = new feed_them_social_functions();
42
+
43
+ if ( ! function_exists( 'curl_init' ) ) {
44
+ print '<div class="error"><p>' . esc_html( 'Warning: cURL is not installed on this server. It is required to use this plugin. Please contact your host provider to install this.', 'feed-them-social' ) . '</p></div>';
45
+ }
46
+
47
+ $fts_fb_options_nonce = wp_create_nonce( 'fts-settings-page-nonce' );
48
+
49
+ if ( wp_verify_nonce( $fts_fb_options_nonce, 'fts-settings-page-nonce' ) ) {
50
+ ?>
51
+
52
+ <div class="feed-them-social-admin-wrap">
53
+ <div class="fts-backg"></div>
54
+ <div class="fts-content">
55
+ <h1 class="fts-logo-header"><?php echo esc_html( 'Feed Them Social', 'feed-them-social' ); ?></h1>
56
+
57
+ <div class="feed-them-icon-wrap">
58
+ <a href="javascript:" class="youtube-icon"></a>
59
+ <a href="javascript:" class="twitter-icon"></a>
60
+ <a href="javascript:" class="facebook-icon"></a>
61
+ <a href="javascript:" class="instagram-icon"></a>
62
+ <a href="javascript:" class="pinterest-icon"></a>
63
+
64
+ <div id="discount-for-review">
65
+ <a href="admin.php?page=fts-license-page"><?php echo esc_html( 'View Extensions & Demos', 'feed-them-social' ); ?></a>
66
+ </div>
67
+ </div>
68
+
69
+ <div class="fts-tabs" id="fts-tabs">
70
+
71
+ <label for="fts-tab1" class="fts-tab1 fts-tabbed <?php echo isset( $_GET['tab'] ) && 'general_options' === $_GET['tab'] || ! isset( $_GET['tab'] ) ? 'tab-active' : ''; ?>" id="general_options">
72
+ <span><?php echo esc_html( 'Create Shortcode', 'sidebar-support' ); ?></span>
73
+ </label>
74
+
75
+ <label for="fts-tab2" class="fts-tab2 fts-tabbed <?php echo isset( $_GET['tab'] ) && 'global_options' === $_GET['tab'] ? 'tab-active' : ''; ?>" id="global_options">
76
+ <span><?php echo esc_html( 'Global Options', 'sidebar-support' ); ?></span>
77
+ </label>
78
+
79
+ <div id="fts-tab-content1" class="fts-tab-content fts-hide-me <?php echo isset( $_GET['tab'] ) && 'general_options' === $_GET['tab'] || ! isset( $_GET['tab'] ) ? 'pane-active' : ''; ?>">
80
+ <section>
81
+
82
+ <h2 class="fts-logo-subheader"><?php echo esc_html( 'Create Shortcode for Social Network', 'feed-them-social' ); ?></h2>
83
+ <div class="use-of-plugin"><?php echo esc_html( 'Please select what type of feed you would like using the select option below. After setting your options click the green Generate Shortcode button, then copy and paste the shortcode to a page, post or widget.', 'feed-them-social' ); ?></div>
84
+
85
+ <form class="feed-them-social-admin-form" id="feed-selector-form">
86
+ <select id="shortcode-form-selector">
87
+ <option value=""><?php echo esc_html( 'Select a Social Network', 'feed-them-social' ); ?> </option>
88
+ <option value="fts-fb-page-shortcode-form"><?php echo esc_html( 'Facebook Feed', 'feed-them-social' ); ?></option>
89
+ <option value="combine-steams-shortcode-form"><?php echo esc_html( 'Combine Streams Feed', 'feed-them-social' ); ?></option>
90
+ <option value="twitter-shortcode-form"><?php echo esc_html( 'Twitter Feed', 'feed-them-social' ); ?></option>
91
+ <option value="instagram-shortcode-form"><?php echo esc_html( 'Instagram Feed', 'feed-them-social' ); ?></option>
92
+ <option value="youtube-shortcode-form"><?php echo esc_html( 'YouTube Feed' ); ?></option>
93
+ <option value="pinterest-shortcode-form"><?php echo esc_html( 'Pinterest Feed', 'feed-them-social' ); ?></option>
94
+ </select>
95
+ </form><!--/feed-them-social-admin-form-->
96
+
97
+ <?php
98
+
99
+ $step2_custom_message = __( '<br/><strong>STEP 2:</strong> Generate your custom shortcode using the options below, then click generate shortcode and paste that to a Page, Post or widget.', 'feed-them-social' );
100
+
101
+ $limitforpremium = ! is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ? '<small class="fts-required-more-posts"><br/>' . __( 'More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social' ) . '</small>' : '';
102
+
103
+ if ( is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) {
104
+ $facebook_reviews_token_check = array(
105
+ 1 => array(
106
+ 'option_name' => 'fts_facebook_custom_api_token',
107
+ 'no_token_msg' => sprintf(
108
+ __( '%1$sSTEP 1:%2$s Please get your API Token on our %3$sFacebook Options%4$s page before getting started.%5$s', 'feed-them-gallery' ),
109
+ '<strong>',
110
+ '</strong>',
111
+ '<a href="admin.php?page=fts-facebook-feed-styles-submenu-page">',
112
+ '</a>',
113
+ $step2_custom_message
114
+ ),
115
+ ),
116
+ 2 => array(
117
+ 'option_name' => 'fts_facebook_custom_api_token_biz',
118
+ 'no_token_msg' => sprintf(
119
+ __( '%1$sSTEP 1:%2$s Please add a Facebook Page Reviews API Token to our %3$sFacebook Options%4$s page before getting started.%5$s', 'feed-them-gallery' ),
120
+ '<strong>',
121
+ '</strong>',
122
+ '<a href="admin.php?page=fts-facebook-feed-styles-submenu-page">',
123
+ '</a>',
124
+ $step2_custom_message
125
+ ),
126
+ 'req_plugin' => 'facebook_reviews',
127
+ ),
128
+ );
129
+
130
+ } else {
131
+ $facebook_reviews_token_check = array(
132
+ 1 => array(
133
+ 'option_name' => 'fts_facebook_custom_api_token',
134
+ 'no_token_msg' => sprintf(
135
+ __( '%1$sSTEP 1:%2$s Please get your API Token on our %3$sFacebook Options%4$s page before getting started.%5$s', 'feed-them-gallery' ),
136
+ '<strong>',
137
+ '</strong>',
138
+ '<a href="admin.php?page=fts-facebook-feed-styles-submenu-page">',
139
+ '</a>',
140
+ $step2_custom_message
141
+ ),
142
+ ),
143
+ );
144
+ }
145
+ $required_plugins = array(
146
+ 'fts_premium' => array(
147
+ // Name will go into Non-Premium field so make sure it says "extension" Example: Must have {Plugin Name} to edit.
148
+ 'name' => '<h3>Feed Them Premium extension</h3>',
149
+ // Slick URL should Take them to plugin on Slickremix.com because they need for required fields!
150
+ 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-social-premium-extension/',
151
+ // Plugin URL for checking if plugin is active!
152
+ 'plugin_url' => 'feed-them-premium/feed-them-premium.php',
153
+ 'no_active_msg' => 'Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> to edit.',
154
+ ),
155
+ 'facebook_reviews' => array(
156
+ 'name' => '<h3>Facebook Reviews extension</h3>',
157
+ 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-social-facebook-reviews/',
158
+ 'plugin_url' => 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php',
159
+ 'no_active_msg' => 'Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> and <a href="https://www.slickremix.com/downloads/feed-them-carousel-premium/">carousel</a> to edit.',
160
+ ),
161
+ 'fts_carousel' => array(
162
+ 'name' => '<h3>Feed Them Carousel extension</h3>',
163
+ 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-carousel-premium/',
164
+ 'plugin_url' => 'feed-them-carousel-premium/feed-them-carousel-premium.php',
165
+ 'no_active_msg' => 'Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> and <a href="https://www.slickremix.com/downloads/feed-them-carousel-premium/">carousel</a> to edit.',
166
+ ),
167
+ 'combine_streams' => array(
168
+ 'name' => '<h3>Feed Them Social Combined Streams extension</h3>',
169
+ 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-social-combined-streams/',
170
+ 'plugin_url' => 'feed-them-social-combined-streams/feed-them-social-combined-streams.php',
171
+ 'no_active_msg' => 'Must have <a href="https://www.slickremix.com/downloads/feed-them-social-combined-streams/">combined streams extenstion</a> to edit.',
172
+ ),
173
+ );
174
+
175
+ $settings_options_array = new FTS_Settings_Page_Options();
176
+ $feed_settings_array = $settings_options_array->settings_page_options( $facebook_reviews_token_check, $limitforpremium, $step2_custom_message );
177
+
178
+ echo $fts_functions->fts_settings_html_form( false, $feed_settings_array, $required_plugins );
179
+ ?>
180
+ </section>
181
+ </div> <!-- #fts-tab-content1 -->
182
+
183
+ <div id="fts-tab-content2" class="fts-tab-content fts-hide-me <?php echo isset( $_GET['tab'] ) && 'global_options' === $_GET['tab'] ? 'pane-active' : ''; ?>
184
+ ">
185
+ <section>
186
+ <div class="feed-them-clear-cache">
187
+ <h2><?php echo esc_html( 'Clear All Cache Options', 'feed-them-social' ); ?></h2>
188
+ <div class="use-of-plugin"><?php echo esc_html( 'Please Clear Cache if you have changed a Feed Them Social Shortcode. This will Allow you to see the changes right away.', 'feed-them-social' ); ?></div>
189
+ <?php
190
+ if ( isset( $_GET['cache'] ) && 'clearcache' === $_GET['cache'] ) {
191
+ echo '<div class="feed-them-clear-cache-text">' . esc_html( $fts_functions->feed_them_clear_cache() ) . '</div>';
192
+ }
193
+
194
+ $fts_dev_mode_cache = null !== get_option( 'fts_clear_cache_developer_mode' ) ? get_option( 'fts_clear_cache_developer_mode' ) : '900';
195
+ $fts_admin_bar_menu = get_option( 'fts_admin_bar_menu' );
196
+ ?>
197
+
198
+ <form method="post" action="?page=feed-them-settings-page&cache=clearcache&tab=global_options">
199
+ <input class="feed-them-social-admin-submit-btn" type="submit" value="<?php echo esc_html( 'Clear All FTS Feeds Cache', 'feed-them-social' ); ?>"/>
200
+ </form>
201
+ </div><!--/feed-them-clear-cache-->
202
+ <!-- custom option for padding -->
203
+ <form method="post" class="fts-color-settings-admin-form" action="options.php">
204
+ <p>
205
+ <label><?php echo esc_html( 'Cache Time', 'feed-them-social' ); ?></label>
206
+ <select id="fts_clear_cache_developer_mode" name="fts_clear_cache_developer_mode">
207
+ <option value=""><?php echo esc_html( 'Please choose an option', 'feed-them-social' ); ?></option>
208
+ <option value="86400" <?php echo '86400' === $fts_dev_mode_cache ? 'selected="selected"' : ''; ?>><?php echo esc_html( '1 Day (Suggested Default)', 'feed-them-social' ); ?></option>
209
+ <option value="172800" <?php echo '172800' === $fts_dev_mode_cache ? 'selected="selected"' : ''; ?>><?php echo esc_html( '2 Days', 'feed-them-social' ); ?></option>
210
+ <option value="259200" <?php echo '259200' === $fts_dev_mode_cache ? 'selected="selected"' : ''; ?>><?php echo esc_html( '3 Days', 'feed-them-social' ); ?></option>
211
+ <option value="604800" <?php echo '604800' === $fts_dev_mode_cache ? 'selected="selected"' : ''; ?>><?php echo esc_html( '1 Week', 'feed-them-social' ); ?></option>
212
+ <option value="1209600" <?php echo '1209600' === $fts_dev_mode_cache ? 'selected="selected"' : ''; ?>><?php echo esc_html( '2 Weeks', 'feed-them-social' ); ?></option>
213
+ <option value="1" <?php echo 1 === $fts_dev_mode_cache ? 'selected="selected"' : ''; ?>><?php echo esc_html( '(Developers Only) Clear cache on every page load', 'feed-them-social' ); ?></option>
214
+ </select>
215
+ </p>
216
+ <label><?php echo esc_html( 'Admin Bar', 'feed-them-social' ); ?></label>
217
+ <select id="fts_admin_bar_menu" name="fts_admin_bar_menu">
218
+ <option value="<?php echo esc_attr( 'show-admin-bar-menu' ); ?>" <?php echo 'show-admin-bar-menu' === $fts_admin_bar_menu ? 'selected="selected"' : ''; ?>>
219
+ <?php echo esc_html( 'Show Admin Bar Menu', 'feed-them-social' ); ?>
220
+ </option>
221
+ <option value="<?php echo esc_attr( 'hide-admin-bar-menu' ); ?>" <?php echo 'hide-admin-bar-menu' === $fts_admin_bar_menu ? 'selected="selected"' : ''; ?>>
222
+ <?php echo esc_html( 'Hide Admin Bar Menu', 'feed-them-social' ); ?>
223
+ </option>
224
+ </select>
225
+ <div class="feed-them-custom-css">
226
+ <?php
227
+ // get our registered settings from the fts functions!
228
+ settings_fields( 'feed-them-social-settings' );
229
+ ?>
230
+ <?php
231
+ $fts_date_time_format = get_option( 'fts-date-and-time-format' );
232
+ $fts_timezone = get_option( 'fts-timezone' );
233
+ $fts_custom_date = get_option( 'date_format' );
234
+ $fts_custom_time = get_option( 'time_format' );
235
+ $fts_custom_timezone = get_option( 'fts-timezone' ) ? get_option( 'fts-timezone' ) : 'America/Los_Angeles';
236
+ date_default_timezone_set( $fts_custom_timezone );
237
+
238
+ ?>
239
+ <div style="float:left; max-width:400px; margin-right:30px;">
240
+ <h2><?php echo esc_html( 'FaceBook & Twitter Date Format', 'feed-them-social' ); ?></h2>
241
+
242
+ <fieldset>
243
+ <select id="fts-date-and-time-format" name="fts-date-and-time-format">
244
+ <option value="<?php echo esc_attr( 'l, F jS, Y \a\t g:ia' ); ?>" <?php echo 'l, F jS, Y \a\t g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
245
+ <?php echo esc_html( date( 'l, F jS, Y \a\t g:ia' ) ); ?>
246
+ </option>
247
+ <option value="<?php echo esc_attr( 'F j, Y \a\t g:ia' ); ?>" <?php echo 'F j, Y \a\t g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
248
+ <?php echo esc_html( date( 'F j, Y \a\t g:ia' ) ); ?>
249
+ </option>
250
+ <option value="<?php echo esc_attr( 'F j, Y g:ia' ); ?>" <?php echo 'F j, Y g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
251
+ <?php echo esc_html( date( 'F j, Y g:ia' ) ); ?>
252
+ </option>
253
+ <option value="<?php echo esc_attr( 'F, Y \a\t g:ia' ); ?>" <?php echo 'F, Y \a\t g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
254
+ <?php echo esc_html( date( 'F, Y \a\t g:ia' ) ); ?>
255
+ </option>
256
+ <option value="<?php echo esc_attr( 'M j, Y @ g:ia' ); ?>" <?php echo 'M j, Y @ g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
257
+ <?php echo esc_html( date( 'M j, Y @ g:ia' ) ); ?>
258
+ </option>
259
+ <option value="<?php echo esc_attr( 'M j, Y @ G:i' ); ?>" <?php echo 'M j, Y @ G:i' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
260
+ <?php echo esc_html( date( 'M j, Y @ G:i' ) ); ?>
261
+ </option>
262
+ <option value="<?php echo esc_attr( 'm/d/Y \a\t g:ia' ); ?>" <?php echo 'm/d/Y \a\t g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
263
+ <?php echo esc_html( date( 'm/d/Y \a\t g:ia' ) ); ?>
264
+ </option>
265
+ <option value="<?php echo esc_attr( 'm/d/Y @ G:i' ); ?>" <?php echo 'm/d/Y @ G:i' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
266
+ <?php echo esc_html( date( 'm/d/Y @ G:i' ) ); ?>
267
+ </option>
268
+ <option value="<?php echo esc_attr( 'd/m/Y \a\t g:ia' ); ?>" <?php echo 'd/m/Y \a\t g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
269
+ <?php echo esc_html( date( 'd/m/Y \a\t g:ia' ) ); ?>
270
+ </option>
271
+ <option value="<?php echo esc_attr( 'd/m/Y @ G:i' ); ?>" <?php echo 'd/m/Y @ G:i' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
272
+ <?php echo esc_html( date( 'd/m/Y @ G:i' ) ); ?>
273
+ </option>
274
+ <option value="<?php echo esc_attr( 'Y/m/d \a\t g:ia' ); ?>" <?php echo 'Y/m/d \a\t g:ia' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
275
+ <?php echo esc_html( date( 'Y/m/d \a\t g:ia' ) ); ?>
276
+ </option>
277
+ <option value="<?php echo esc_attr( 'Y/m/d @ G:i' ); ?>" <?php echo 'Y/m/d @ G:i' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
278
+ <?php echo esc_html( date( 'Y/m/d @ G:i' ) ); ?>
279
+ </option>
280
+ <option value="<?php echo esc_attr( 'one-day-ago' ); ?>" <?php echo 'one-day-ago' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
281
+ <?php echo esc_html( 'One Day Ago' ); ?>
282
+ </option>
283
+ <option value="<?php echo esc_attr( 'fts-custom-date' ); ?>" <?php echo 'fts-custom-date' === $fts_date_time_format ? 'selected="selected"' : ''; ?>>
284
+ <?php echo esc_html( 'Use Custom Date and Time Option Below', 'feed-them-social' ); ?>
285
+ </option>
286
+ </select>
287
+ </fieldset>
288
+
289
+ <?php
290
+ // Date translate!
291
+ $fts_language_second = get_option( 'fts_language_second', 'second' );
292
+ $fts_language_seconds = get_option( 'fts_language_seconds', 'seconds' );
293
+ $fts_language_minute = get_option( 'fts_language_minute', 'minute' );
294
+ $fts_language_minutes = get_option( 'fts_language_minutes', 'minutes' );
295
+ $fts_language_hour = get_option( 'fts_language_hour', 'hour' );
296
+ $fts_language_hours = get_option( 'fts_language_hours', 'hours' );
297
+ $fts_language_day = get_option( 'fts_language_day', 'day' );
298
+ $fts_language_days = get_option( 'fts_language_days', 'days' );
299
+ $fts_language_week = get_option( 'fts_language_week', 'week' );
300
+ $fts_language_weeks = get_option( 'fts_language_weeks', 'weeks' );
301
+ $fts_language_month = get_option( 'fts_language_month', 'month' );
302
+ $fts_language_months = get_option( 'fts_language_months', 'months' );
303
+ $fts_language_year = get_option( 'fts_language_year', 'year' );
304
+ $fts_language_years = get_option( 'fts_language_years', 'years' );
305
+ $fts_language_ago = get_option( 'fts_language_ago', 'ago' );
306
+ ?>
307
+
308
+ <div class="custom_time_ago_wrap" style="display:none;">
309
+ <h2><?php echo esc_html( 'Translate words for 1 day ago option.', 'feed-them-social' ); ?></h2>
310
+ <label for="fts_language_second"><?php echo esc_html( 'second' ); ?></label>
311
+ <input name="fts_language_second" type="text" value="<?php echo esc_attr( $fts_language_second ); ?>" size="25"/>
312
+ <br/>
313
+ <label for="fts_language_seconds"><?php echo esc_html( 'seconds' ); ?></label>
314
+ <input name="fts_language_seconds" type="text" value="<?php echo esc_attr( $fts_language_seconds ); ?>" size="25"/>
315
+ <br/>
316
+ <label for="fts_language_minute"><?php echo esc_html( 'minute' ); ?></label>
317
+ <input name="fts_language_minute" type="text" value="<?php echo esc_attr( $fts_language_minute ); ?>" size="25"/>
318
+ <br/>
319
+ <label for="fts_language_minutes"><?php echo esc_html( 'minutes' ); ?></label>
320
+ <input name="fts_language_minutes" type="text" value="<?php echo esc_attr( $fts_language_minutes ); ?>" size="25"/>
321
+ <br/>
322
+ <label for="fts_language_hour"><?php echo esc_html( 'hour' ); ?></label>
323
+ <input name="fts_language_hour" type="text" value="<?php echo esc_attr( $fts_language_hour ); ?>" size="25"/>
324
+ <br/>
325
+ <label for="fts_language_hours"><?php echo esc_html( 'hours' ); ?></label>
326
+ <input name="fts_language_hours" type="text" value="<?php echo esc_attr( $fts_language_hours ); ?>" size="25"/>
327
+ <br/>
328
+ <label for="fts_language_day"><?php echo esc_html( 'day' ); ?></label>
329
+ <input name="fts_language_day" type="text" value="<?php echo esc_attr( $fts_language_day ); ?>" size="25"/>
330
+ <br/>
331
+ <label for="fts_language_days"><?php echo esc_html( 'days' ); ?></label>
332
+ <input name="fts_language_days" type="text" value="<?php echo esc_attr( $fts_language_days ); ?>" size="25"/>
333
+ <br/>
334
+ <label for="fts_language_week"><?php echo esc_html( 'week' ); ?></label>
335
+ <input name="fts_language_week" type="text" value="<?php echo esc_attr( $fts_language_week ); ?>" size="25"/>
336
+ <br/>
337
+ <label for="fts_language_weeks"><?php echo esc_html( 'weeks' ); ?></label>
338
+ <input name="fts_language_weeks" type="text" value="<?php echo esc_attr( $fts_language_weeks ); ?>" size="25"/>
339
+ <br/>
340
+ <label for="fts_language_month"><?php echo esc_html( 'month' ); ?></label>
341
+ <input name="fts_language_month" type="text" value="<?php echo esc_attr( $fts_language_month ); ?>" size="25"/>
342
+ <br/>
343
+ <label for="fts_language_months"><?php echo esc_html( 'months' ); ?></label>
344
+ <input name="fts_language_months" type="text" value="<?php echo esc_attr( $fts_language_months ); ?>" size="25"/>
345
+ <br/>
346
+ <label for="fts_language_year"><?php echo esc_html( 'year' ); ?></label>
347
+ <input name="fts_language_year" type="text" value="<?php echo esc_attr( $fts_language_year ); ?>" size="25"/>
348
+ <br/>
349
+ <label for="fts_language_years"><?php echo esc_html( 'years' ); ?></label>
350
+ <input name="fts_language_years" type="text" value="<?php echo esc_attr( $fts_language_years ); ?>" size="25"/>
351
+ <br/>
352
+ <label for="fts_language_ago"><?php echo esc_html( 'ago' ); ?></label>
353
+ <input name="fts_language_ago" type="text" value="<?php echo esc_attr( $fts_language_ago ); ?>" size="25"/>
354
+
355
+ </div>
356
+ <script>
357
+ // change the feed type 'how to' message when a feed type is selected
358
+
359
+ <?php if ( 'one-day-ago' === $fts_date_time_format ) { ?>
360
+ jQuery('.custom_time_ago_wrap').show();
361
+ <?php } ?>
362
+ jQuery('#fts-date-and-time-format').change(function () {
363
+
364
+ var ftsTimeAgo = jQuery("select#fts-date-and-time-format").val();
365
+ if ( 'one-day-ago' === ftsTimeAgo ) {
366
+ jQuery('.custom_time_ago_wrap').show();
367
+ }
368
+ else {
369
+ jQuery('.custom_time_ago_wrap').hide();
370
+ }
371
+
372
+ });
373
+
374
+ </script>
375
+ <h2 style="border-top:0px; margin-bottom:4px !important;"><?php echo esc_html( 'Custom Date and Time', 'feed-them-social' ); ?></h2>
376
+ <div>
377
+ <?php echo ! empty( $fts_custom_date ) || ! empty( $fts_custom_time ) ? esc_html( date( get_option( 'fts-custom-date' ) . ' ' . get_option( 'fts-custom-time' ) ) ) : ''; ?>
378
+ </div>
379
+ <p style="margin:12px 0 !important;">
380
+ <input name="fts-custom-date" style="max-width:105px;" class="fts-color-settings-admin-input" id="fts-custom-date" placeholder="<?php esc_attr( 'Date', 'feed-them-social' ); ?>" value="<?php echo esc_attr( get_option( 'fts-custom-date' ) ); ?>"/>
381
+ <input name="fts-custom-time" style="max-width:75px;" class="fts-color-settings-admin-input" id="fts-custom-time" placeholder="<?php esc_attr( 'Time', 'feed-them-social' ); ?>" value="<?php echo esc_attr( get_option( 'fts-custom-time' ) ); ?>"/>
382
+ </p>
383
+ <div><?php echo esc_html( 'This will override the date and time format above.', 'feed-them-social' ); ?>
384
+ <br/><a href="https://codex.wordpress.org/Formatting_Date_and_Time" target="_blank"><?php echo esc_html( 'Options for custom date and time formatting.', 'feed-them-social' ); ?></a>
385
+ </div>
386
+ </div>
387
+ <div style="float:left; max-width:330px; margin-right: 30px;">
388
+ <h2><?php echo esc_html( 'TimeZone', 'feed-them-social' ); ?></h2>
389
+ <fieldset>
390
+ <select id="fts-timezone" name="fts-timezone">
391
+ <option value="Pacific/Midway" <?php echo 'Pacific/Midway' === $fts_timezone ? 'selected="selected"' : ''; ?>>
392
+ <?php echo esc_html( '(GMT-11:00) Midway Island, Samoa', 'feed-them-social' ); ?>
393
+ </option>
394
+ <option value="America/Adak" <?php echo 'America/Adak' === $fts_timezone ? 'selected="selected"' : ''; ?>>
395
+ <?php echo esc_html( '(GMT-10:00) Hawaii-Aleutian', 'feed-them-social' ); ?>
396
+ </option>
397
+ <option value="Etc/GMT+10" <?php echo 'Etc/GMT+10' === $fts_timezone ? 'selected="selected"' : ''; ?>>
398
+ <?php echo esc_html( '(GMT-10:00) Hawaii', 'feed-them-social' ); ?>
399
+ </option>
400
+ <option value="Pacific/Marquesas" <?php echo 'Pacific/Marquesas' === $fts_timezone ? 'selected="selected"' : ''; ?>>
401
+ <?php echo esc_html( '(GMT-09:30) Marquesas Islands', 'feed-them-social' ); ?>
402
+ </option>
403
+ <option value="Pacific/Gambier" <?php echo 'Pacific/Gambier' === $fts_timezone ? 'selected="selected"' : ''; ?>>
404
+ <?php echo esc_html( '(GMT-09:00) Gambier Islands', 'feed-them-social' ); ?>
405
+ </option>
406
+ <option value="America/Anchorage" <?php echo 'America/Anchorage' === $fts_timezone ? 'selected="selected"' : ''; ?>>
407
+ <?php echo esc_html( '(GMT-09:00) Alaska', 'feed-them-social' ); ?>
408
+ </option>
409
+ <option value="America/Anchorage" <?php echo 'America/Anchorage' === $fts_timezone ? 'selected="selected"' : ''; ?>>
410
+ <?php echo esc_html( '(GMT-09:00) Gambier Islands', 'feed-them-social' ); ?>
411
+ </option>
412
+ <option value="America/Ensenada" <?php echo 'America/Ensenada' === $fts_timezone ? 'selected="selected"' : ''; ?>>
413
+ <?php echo esc_html( '(GMT-08:00) Tijuana, Baja California', 'feed-them-social' ); ?>
414
+ </option>
415
+ <option value="Etc/GMT+8" <?php echo 'Etc/GMT+8' === $fts_timezone ? 'selected="selected"' : ''; ?>>
416
+ <?php echo esc_html( '(GMT-08:00) Pitcairn Islands', 'feed-them-social' ); ?>
417
+ </option>
418
+ <option value="America/Los_Angeles" <?php echo 'America/Los_Angeles' === $fts_timezone ? 'selected="selected"' : ''; ?>>
419
+ <?php echo esc_html( '(GMT-08:00) Pacific Time (US & Canada)', 'feed-them-social' ); ?>
420
+ </option>
421
+ <option value="America/Denver" <?php echo 'America/Denver' === $fts_timezone ? 'selected="selected"' : ''; ?>>
422
+ <?php echo esc_html( '(GMT-07:00) Mountain Time (US & Canada)', 'feed-them-social' ); ?>
423
+ </option>
424
+ <option value="America/Chihuahua" <?php echo 'America/Chihuahua' === $fts_timezone ? 'selected="selected"' : ''; ?>>
425
+ <?php echo esc_html( '(GMT-07:00) Chihuahua, La Paz, Mazatlan', 'feed-them-social' ); ?>
426
+ </option>
427
+ <option value="America/Dawson_Creek" <?php echo 'America/Dawson_Creek' === $fts_timezone ? 'selected="selected"' : ''; ?>>
428
+ <?php echo esc_html( '(GMT-07:00) Arizona', 'feed-them-social' ); ?>
429
+ </option>
430
+ <option value="America/Belize" <?php echo 'America/Belize' === $fts_timezone ? 'selected="selected"' : ''; ?>>
431
+ <?php echo esc_html( '(GMT-06:00) Saskatchewan, Central America', 'feed-them-social' ); ?>
432
+ </option>
433
+ <option value="America/Cancun" <?php echo 'America/Cancun' === $fts_timezone ? 'selected="selected"' : ''; ?>>
434
+ <?php echo esc_html( '(GMT-06:00) Guadalajara, Mexico City, Monterrey', 'feed-them-social' ); ?>
435
+ </option>
436
+ <option value="Chile/EasterIsland" <?php echo 'Chile/EasterIsland' === $fts_timezone ? 'selected="selected"' : ''; ?>>
437
+ <?php echo esc_html( '(GMT-06:00) Easter Island', 'feed-them-social' ); ?>
438
+ </option>
439
+ <option value="America/Chicago" <?php echo 'America/Chicago' === $fts_timezone ? 'selected="selected"' : ''; ?>>
440
+ <?php echo esc_html( '(GMT-06:00) Central Time (US & Canada)', 'feed-them-social' ); ?>
441
+ </option>
442
+ <option value="America/New_York" <?php echo 'America/New_York' === $fts_timezone ? 'selected="selected"' : ''; ?>>
443
+ <?php echo esc_html( '(GMT-05:00) Eastern Time (US & Canada)', 'feed-them-social' ); ?>
444
+ </option>
445
+ <option value="America/Havana" <?php echo 'America/Havana' === $fts_timezone ? 'selected="selected"' : ''; ?>>
446
+ <?php echo esc_html( '(GMT-05:00) Cuba', 'feed-them-social' ); ?>
447
+ </option>
448
+ <option value="America/Bogota" <?php echo 'America/Bogota' === $fts_timezone ? 'selected="selected"' : ''; ?>>
449
+ <?php echo esc_html( '(GMT-05:00) Bogota, Lima, Quito, Rio Branco', 'feed-them-social' ); ?>
450
+ </option>
451
+ <option value="America/Caracas" <?php echo 'America/Caracas' === $fts_timezone ? 'selected="selected"' : ''; ?>>
452
+ <?php echo esc_html( '(GMT-04:30) Caracas', 'feed-them-social' ); ?>
453
+ </option>
454
+ <option value="America/Santiago" <?php echo 'America/Santiago' === $fts_timezone ? 'selected="selected"' : ''; ?>>
455
+ <?php echo esc_html( '(GMT-04:00) Santiago', 'feed-them-social' ); ?>
456
+ </option>
457
+ <option value="America/La_Paz" <?php echo 'America/La_Paz' === $fts_timezone ? 'selected="selected"' : ''; ?>>
458
+ <?php echo esc_html( '(GMT-04:00) La Paz', 'feed-them-social' ); ?>
459
+ </option>
460
+ <option value="Atlantic/Stanley" <?php echo 'Atlantic/Stanley' === $fts_timezone ? 'selected="selected"' : ''; ?>>
461
+ <?php echo esc_html( '(GMT-04:00) Faukland Islands', 'feed-them-social' ); ?>
462
+ </option>
463
+ <option value="America/Campo_Grande" <?php echo 'America/Campo_Grande' === $fts_timezone ? 'selected="selected"' : ''; ?>>
464
+ <?php echo esc_html( '(GMT-04:00) Brazil', 'feed-them-social' ); ?>
465
+ </option>
466
+ <option value="America/Goose_Bay" <?php echo 'America/Goose_Bay' === $fts_timezone ? 'selected="selected"' : ''; ?>>
467
+ <?php echo esc_html( '(GMT-04:00) Atlantic Time (Goose Bay)', 'feed-them-social' ); ?>
468
+ </option>
469
+ <option value="America/Glace_Bay" <?php echo 'America/Glace_Bay' === $fts_timezone ? 'selected="selected"' : ''; ?>>
470
+ <?php echo esc_html( '(GMT-04:00) Atlantic Time (Canada)', 'feed-them-social' ); ?>
471
+ </option>
472
+ <option value="America/St_Johns" <?php echo 'America/St_Johns' === $fts_timezone ? 'selected="selected"' : ''; ?>>
473
+ <?php echo esc_html( '(GMT-03:30) Newfoundland', 'feed-them-social' ); ?>
474
+ </option>
475
+ <option value="America/Araguaina" <?php echo 'America/Araguaina' === $fts_timezone ? 'selected="selected"' : ''; ?>>
476
+ <?php echo esc_html( '(GMT-03:00) UTC-3', 'feed-them-social' ); ?>
477
+ </option>
478
+ <option value="America/Montevideo" <?php echo 'America/Montevideo' === $fts_timezone ? 'selected="selected"' : ''; ?>>
479
+ <?php echo esc_html( '(GMT-03:00) Montevideo', 'feed-them-social' ); ?>
480
+ </option>
481
+ <option value="America/Miquelon" <?php echo 'America/Miquelon' === $fts_timezone ? 'selected="selected"' : ''; ?>>
482
+ <?php echo esc_html( '(GMT-03:00) Miquelon, St. Pierre', 'feed-them-social' ); ?>
483
+ </option>
484
+ <option value="America/Godthab" <?php echo 'America/Godthab' === $fts_timezone ? 'selected="selected"' : ''; ?>>
485
+ <?php echo esc_html( '(GMT-03:00) Greenland', 'feed-them-social' ); ?>
486
+ </option>
487
+ <option value="America/Argentina/Buenos_Aires" <?php echo 'America/Argentina/Buenos_Aires' === $fts_timezone ? 'selected="selected"' : ''; ?>>
488
+ <?php echo esc_html( '(GMT-03:00) Buenos Aires', 'feed-them-social' ); ?>
489
+ </option>
490
+ <option value="America/Sao_Paulo" <?php echo 'America/Sao_Paulo' === $fts_timezone ? 'selected="selected"' : ''; ?>>
491
+ <?php echo esc_html( '(GMT-03:00) Brasilia', 'feed-them-social' ); ?>
492
+ </option>
493
+ <option value="America/Noronha" <?php echo 'America/Noronha' === $fts_timezone ? 'selected="selected"' : ''; ?>>
494
+ <?php echo esc_html( '(GMT-02:00) Mid-Atlantic', 'feed-them-social' ); ?>
495
+ </option>
496
+ <option value="Atlantic/Cape_Verde" <?php echo 'Atlantic/Cape_Verde' === $fts_timezone ? 'selected="selected"' : ''; ?>>
497
+ <?php echo esc_html( '(GMT-01:00) Cape Verde Is.', 'feed-them-social' ); ?>
498
+ </option>
499
+ <option value="Atlantic/Azores" <?php echo 'Atlantic/Azores' === $fts_timezone ? 'selected="selected"' : ''; ?>>
500
+ <?php echo esc_html( '(GMT-01:00) Azores', 'feed-them-social' ); ?>
501
+ </option>
502
+ <option value="Europe/Belfast" <?php echo 'Europe/Belfast' === $fts_timezone ? 'selected="selected"' : ''; ?>>
503
+ <?php echo esc_html( '(GMT) Greenwich Mean Time : Belfast', 'feed-them-social' ); ?>
504
+ </option>
505
+ <option value="Europe/Dublin" <?php echo 'Europe/Dublin' === $fts_timezone ? 'selected="selected"' : ''; ?>>
506
+ <?php echo esc_html( '(GMT) Greenwich Mean Time : Dublin', 'feed-them-social' ); ?>
507
+ </option>
508
+ <option value="Europe/Lisbon" <?php echo 'Europe/Lisbon' === $fts_timezone ? 'selected="selected"' : ''; ?>>
509
+ <?php echo esc_html( '(GMT) Greenwich Mean Time : Lisbon', 'feed-them-social' ); ?>
510
+ </option>
511
+ <option value="Europe/London" <?php echo 'Europe/London' === $fts_timezone ? 'selected="selected"' : ''; ?>>
512
+ <?php echo esc_html( '(GMT) Greenwich Mean Time : London', 'feed-them-social' ); ?>
513
+ </option>
514
+ <option value="Africa/Abidjan" <?php echo 'Africa/Abidjan' === $fts_timezone ? 'selected="selected"' : ''; ?>>
515
+ <?php echo esc_html( '(GMT) Monrovia, Reykjavik', 'feed-them-social' ); ?>
516
+ </option>
517
+ <option value="Europe/Amsterdam" <?php echo 'Europe/Amsterdam' === $fts_timezone ? 'selected="selected"' : ''; ?>>
518
+ <?php echo esc_html( '(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', 'feed-them-social' ); ?>
519
+ </option>
520
+ <option value="Europe/Belgrade" <?php echo 'Europe/Belgrade' === $fts_timezone ? 'selected="selected"' : ''; ?>>
521
+ <?php echo esc_html( '(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'feed-them-social' ); ?>
522
+ </option>
523
+ <option value="Africa/Algiers" <?php echo 'Africa/Algiers' === $fts_timezone ? 'selected="selected"' : ''; ?>>
524
+ <?php echo esc_html( '(GMT+01:00) West Central Africa', 'feed-them-social' ); ?>
525
+ </option>
526
+ <option value="Africa/Windhoek" <?php echo 'Africa/Windhoek' === $fts_timezone ? 'selected="selected"' : ''; ?>>
527
+ <?php echo esc_html( '(GMT+01:00) Windhoek', 'feed-them-social' ); ?>
528
+ </option>
529
+ <option value="Asia/Beirut" <?php echo 'Asia/Beirut' === $fts_timezone ? 'selected="selected"' : ''; ?>>
530
+ <?php echo esc_html( '(GMT+02:00) Beirut', 'feed-them-social' ); ?>
531
+ </option>
532
+ <option value="Africa/Cairo" <?php echo 'Africa/Cairo' === $fts_timezone ? 'selected="selected"' : ''; ?>>
533
+ <?php echo esc_html( '(GMT+02:00) Cairo', 'feed-them-social' ); ?>
534
+ </option>
535
+ <option value="Asia/Gaza" <?php echo 'Asia/Gaza' === $fts_timezone ? 'selected="selected"' : ''; ?>>
536
+ <?php echo esc_html( '(GMT+02:00) Gaza', 'feed-them-social' ); ?>
537
+ </option>
538
+ <option value="Africa/Blantyre" <?php echo 'Africa/Blantyre' === $fts_timezone ? 'selected="selected"' : ''; ?>>
539
+ <?php echo esc_html( '(GMT+02:00) Harare, Pretoria', 'feed-them-social' ); ?>
540
+ </option>
541
+ <option value="Asia/Jerusalem" <?php echo 'Asia/Jerusalem' === $fts_timezone ? 'selected="selected"' : ''; ?>>
542
+ <?php echo esc_html( '(GMT+02:00) Jerusalem', 'feed-them-social' ); ?>
543
+ </option>
544
+ <option value="Europe/Minsk" <?php echo 'Europe/Minsk' === $fts_timezone ? 'selected="selected"' : ''; ?>>
545
+ <?php echo esc_html( '(GMT+02:00) Minsk', 'feed-them-social' ); ?>
546
+ </option>
547
+ <option value="Asia/Damascus" <?php echo 'Asia/Damascus' === $fts_timezone ? 'selected="selected"' : ''; ?>>
548
+ <?php echo esc_html( '(GMT+02:00) Syria', 'feed-them-social' ); ?>
549
+ </option>
550
+ <option value="Europe/Moscow" <?php echo 'Europe/Moscow' === $fts_timezone ? 'selected="selected"' : ''; ?>>
551
+ <?php echo esc_html( '(GMT+03:00) Moscow, St. Petersburg, Volgograd', 'feed-them-social' ); ?>
552
+ </option>
553
+ <option value="Africa/Addis_Ababa" <?php echo 'Africa/Addis_Ababa' === $fts_timezone ? 'selected="selected"' : ''; ?>>
554
+ <?php echo esc_html( '(GMT+03:00) Nairobi', 'feed-them-social' ); ?>
555
+ </option>
556
+ <option value="Asia/Tehran" <?php echo 'Asia/Tehran' === $fts_timezone ? 'selected="selected"' : ''; ?>>
557
+ <?php echo esc_html( '(GMT+03:30) Tehran', 'feed-them-social' ); ?>
558
+ </option>
559
+ <option value="Asia/Dubai" <?php echo 'Asia/Dubai' === $fts_timezone ? 'selected="selected"' : ''; ?>>
560
+ <?php echo esc_html( '(GMT+04:00) Abu Dhabi, Muscat', 'feed-them-social' ); ?>
561
+ </option>
562
+ <option value="Asia/Yerevan" <?php echo 'Asia/Yerevan' === $fts_timezone ? 'selected="selected"' : ''; ?>>
563
+ <?php echo esc_html( '(GMT+04:00) Yerevan', 'feed-them-social' ); ?>
564
+ </option>
565
+ <option value="Asia/Kabul" <?php echo 'Asia/Kabul' === $fts_timezone ? 'selected="selected"' : ''; ?>>
566
+ <?php echo esc_html( '(GMT+04:30) Kabul', 'feed-them-social' ); ?>
567
+ </option>
568
+ <option value="Asia/Yekaterinburg" <?php echo 'Asia/Yekaterinburg' === $fts_timezone ? 'selected="selected"' : ''; ?>>
569
+ <?php echo esc_html( '(GMT+05:00) Ekaterinburg', 'feed-them-social' ); ?>
570
+ </option>
571
+ <option value="Asia/Tashkent" <?php echo 'Asia/Tashkent' === $fts_timezone ? 'selected="selected"' : ''; ?>>
572
+ <?php echo esc_html( '(GMT+05:00) Tashkent', 'feed-them-social' ); ?>
573
+ </option>
574
+ <option value="Asia/Kolkata" <?php echo 'Asia/Kolkata' === $fts_timezone ? 'selected="selected"' : ''; ?>>
575
+ <?php echo esc_html( '(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', 'feed-them-social' ); ?>
576
+ </option>
577
+ <option value="Asia/Katmandu" <?php echo 'Asia/Katmandu' === $fts_timezone ? 'selected="selected"' : ''; ?>>
578
+ <?php echo esc_html( '(GMT+05:45) Kathmandu', 'feed-them-social' ); ?>
579
+ </option>
580
+ <option value="Asia/Dhaka" <?php echo 'Asia/Dhaka' === $fts_timezone ? 'selected="selected"' : ''; ?>>
581
+ <?php echo esc_html( '(GMT+06:00) Astana, Dhaka', 'feed-them-social' ); ?>
582
+ </option>
583
+ <option value="Asia/Novosibirsk" <?php echo 'Asia/Novosibirsk' === $fts_timezone ? 'selected="selected"' : ''; ?>>
584
+ <?php echo esc_html( '(GMT+06:00) Novosibirsk', 'feed-them-social' ); ?>
585
+ </option>
586
+ <option value="Asia/Rangoon" <?php echo 'Asia/Rangoon' === $fts_timezone ? 'selected="selected"' : ''; ?>>
587
+ <?php echo esc_html( '(GMT+06:30) Yangon (Rangoon)', 'feed-them-social' ); ?>
588
+ </option>
589
+ <option value="Asia/Bangkok" <?php echo 'Asia/Bangkok' === $fts_timezone ? 'selected="selected"' : ''; ?>>
590
+ <?php echo esc_html( '(GMT+07:00) Bangkok, Hanoi, Jakarta', 'feed-them-social' ); ?>
591
+ </option>
592
+ <option value="Asia/Krasnoyarsk" <?php echo 'Asia/Krasnoyarsk' === $fts_timezone ? 'selected="selected"' : ''; ?>>
593
+ <?php echo esc_html( '(GMT+07:00) Krasnoyarsk', 'feed-them-social' ); ?>
594
+ </option>
595
+ <option value="Asia/Hong_Kong" <?php echo 'Asia/Hong_Kong' === $fts_timezone ? 'selected="selected"' : ''; ?>>
596
+ <?php echo esc_html( '(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', 'feed-them-social' ); ?>
597
+ </option>
598
+ <option value="Asia/Irkutsk" <?php echo 'Asia/Irkutsk' === $fts_timezone ? 'selected="selected"' : ''; ?>>
599
+ <?php echo esc_html( '(GMT+08:00) Irkutsk, Ulaan Bataar', 'feed-them-social' ); ?>
600
+ </option>
601
+ <option value="Australia/Perth" <?php echo 'Australia/Perth' === $fts_timezone ? 'selected="selected"' : ''; ?>>
602
+ <?php echo esc_html( '(GMT+08:00) Perth', 'feed-them-social' ); ?>
603
+ </option>
604
+ <option value="Australia/Eucla" <?php echo 'Australia/Eucla' === $fts_timezone ? 'selected="selected"' : ''; ?>>
605
+ <?php echo esc_html( '(GMT+08:45) Eucla', 'feed-them-social' ); ?>
606
+ </option>
607
+ <option value="Asia/Tokyo" <?php echo 'Asia/Tokyo' === $fts_timezone ? 'selected="selected"' : ''; ?>>
608
+ <?php echo esc_html( '(GMT+09:00) Osaka, Sapporo, Tokyo', 'feed-them-social' ); ?>
609
+ </option>
610
+ <option value="Asia/Seoul" <?php echo 'Asia/Seoul' === $fts_timezone ? 'selected="selected"' : ''; ?>>
611
+ <?php echo esc_html( '(GMT+09:00) Seoul', 'feed-them-social' ); ?>
612
+ </option>
613
+ <option value="Asia/Yakutsk" <?php echo 'Asia/Yakutsk' === $fts_timezone ? 'selected="selected"' : ''; ?>>
614
+ <?php echo esc_html( '(GMT+09:00) Yakutsk', 'feed-them-social' ); ?>
615
+ </option>
616
+ <option value="Australia/Adelaide" <?php echo 'Australia/Adelaide' === $fts_timezone ? 'selected="selected"' : ''; ?>>
617
+ <?php echo esc_html( '(GMT+09:30) Adelaide', 'feed-them-social' ); ?>
618
+ </option>
619
+ <option value="Australia/Darwin" <?php echo 'Australia/Darwin' === $fts_timezone ? 'selected="selected"' : ''; ?>>
620
+ <?php echo esc_html( '(GMT+09:30) Darwin', 'feed-them-social' ); ?>
621
+ </option>
622
+ <option value="Australia/Brisbane" <?php echo 'Australia/Brisbane' === $fts_timezone ? 'selected="selected"' : ''; ?>>
623
+ <?php echo esc_html( '(GMT+10:00) Brisbane', 'feed-them-social' ); ?>
624
+ </option>
625
+ <option value="Australia/Hobart" <?php echo 'Australia/Hobart' === $fts_timezone ? 'selected="selected"' : ''; ?>>
626
+ <?php echo esc_html( '(GMT+10:00) Sydney', 'feed-them-social' ); ?>
627
+ </option>
628
+ <option value="Asia/Vladivostok" <?php echo 'Asia/Vladivostok' === $fts_timezone ? 'selected="selected"' : ''; ?>>
629
+ <?php echo esc_html( '(GMT+10:00) Vladivostok', 'feed-them-social' ); ?>
630
+ </option>
631
+ <option value="Australia/Lord_Howe" <?php echo 'Australia/Lord_Howe' === $fts_timezone ? 'selected="selected"' : ''; ?>>
632
+ <?php echo esc_html( '(GMT+10:30) Lord Howe Island', 'feed-them-social' ); ?>
633
+ </option>
634
+ <option value="Etc/GMT-11" <?php echo 'Etc/GMT-11' === $fts_timezone ? 'selected="selected"' : ''; ?>>
635
+ <?php echo esc_html( '(GMT+11:00) Solomon Is., New Caledonia', 'feed-them-social' ); ?>
636
+ </option>
637
+ <option value="Asia/Magadan" <?php echo 'Asia/Magadan' === $fts_timezone ? 'selected="selected"' : ''; ?>>
638
+ <?php echo esc_html( '(GMT+11:00) Magadan', 'feed-them-social' ); ?>
639
+ </option>
640
+ <option value="Pacific/Norfolk" <?php echo 'Pacific/Norfolk' === $fts_timezone ? 'selected="selected"' : ''; ?>>
641
+ <?php echo esc_html( '(GMT+11:30) Norfolk Island', 'feed-them-social' ); ?>
642
+ </option>
643
+ <option value="Asia/Anadyr" <?php echo 'Asia/Anadyr' === $fts_timezone ? 'selected="selected"' : ''; ?>>
644
+ <?php echo esc_html( '(GMT+12:00) Anadyr, Kamchatka', 'feed-them-social' ); ?>
645
+ </option>
646
+ <option value="Pacific/Auckland" <?php echo 'Pacific/Auckland' === $fts_timezone ? 'selected="selected"' : ''; ?>>
647
+ <?php echo esc_html( '(GMT+12:00) Auckland, Wellington', 'feed-them-social' ); ?>
648
+ </option>
649
+ <option value="Etc/GMT-12" <?php echo 'Etc/GMT-12' === $fts_timezone ? 'selected="selected"' : ''; ?>>
650
+ <?php echo esc_html( '(GMT+12:00) Fiji, Kamchatka, Marshall Is.', 'feed-them-social' ); ?>
651
+ </option>
652
+ <option value="Pacific/Chatham" <?php echo 'Pacific/Chatham' === $fts_timezone ? 'selected="selected"' : ''; ?>>
653
+ <?php echo esc_html( '(GMT+12:45) Chatham Islands', 'feed-them-social' ); ?>
654
+ </option>
655
+ <option value="Pacific/Tongatapu" <?php echo 'Pacific/Tongatapu' === $fts_timezone ? 'selected="selected"' : ''; ?>>
656
+ <?php echo esc_html( '(GMT+13:00) Nuku\'alofa', 'feed-them-social' ); ?>
657
+ </option>
658
+ <option value="Pacific/Kiritimati" <?php echo 'Pacific/Kiritimati' === $fts_timezone ? 'selected="selected"' : ''; ?>>
659
+ <?php echo esc_html( '(GMT+14:00) Kiritimati', 'feed-them-social' ); ?>
660
+ </option>
661
+ </select>
662
+ </fieldset>
663
+ </div>
664
+ <div class="clear"></div>
665
+
666
+ <br/>
667
+ <h2><?php echo esc_html( 'Custom CSS Option', 'feed-them-social' ); ?></h2>
668
+ <p>
669
+ <input name="fts-color-options-settings-custom-css" class="fts-color-settings-admin-input" type="checkbox" id="fts-color-options-settings-custom-css" value="1" <?php echo checked( '1', get_option( 'fts-color-options-settings-custom-css' ) ); ?>/>
670
+ <?php
671
+ if ( '1' === get_option( 'fts-color-options-settings-custom-css' ) ) {
672
+ ?>
673
+ <strong><?php echo esc_html( 'Checked:', 'feed-them-social' ); ?></strong> <?php echo esc_html( 'Custom CSS option is being used now.', 'feed-them-social' ); ?>
674
+ <?php
675
+ } else {
676
+ ?>
677
+ <strong><?php echo esc_html( 'Not Checked:', 'feed-them-social' ); ?></strong> <?php echo esc_html( 'You are using the default CSS.', 'feed-them-social' ); ?>
678
+ <?php
679
+ }
680
+ ?>
681
+ </p>
682
+ <label class="toggle-custom-textarea-show"><span><?php echo esc_html( 'Show', 'feed-them-social' ); ?></span><span class="toggle-custom-textarea-hide"><?php echo esc_html( 'Hide', 'feed-them-social' ); ?></span> <?php echo esc_html( 'custom CSS', 'feed-them-social' ); ?>
683
+ </label>
684
+ <div class="clear"></div>
685
+ <div class="fts-custom-css-text"><?php echo esc_html( 'Thanks for using our plugin :) Add your custom CSS additions or overrides below.', 'feed-them-social' ); ?></div>
686
+ <textarea name="fts-color-options-main-wrapper-css-input" class="fts-color-settings-admin-input" id="fts-color-options-main-wrapper-css-input"><?php echo esc_textarea( get_option( 'fts-color-options-main-wrapper-css-input' ) ); ?></textarea>
687
+ </div><!--/feed-them-custom-css-->
688
+
689
+ <div class="feed-them-custom-logo-css">
690
+ <h2><?php echo esc_html( 'Disable Share Option', 'feed-them-social' ); ?></h2>
691
+ <p>
692
+ <input name="fts_disable_share_button" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_disable_share_button" value="1" <?php echo checked( '1', get_option( 'fts_disable_share_button' ) ); ?>/> <?php echo esc_html( 'Check this if you want to disable the Share Icon on all feeds', 'feed-them-social' ); ?>
693
+ </p>
694
+ <br/>
695
+ <div class="feed-them-social-admin-input-wrap">
696
+ <div class="feed-them-social-admin-input-label fts-social-icons-color-label">
697
+ <?php echo esc_html( 'Social Icons Color', 'feed-them-social' ); ?>
698
+ </div>
699
+ <input type="text" name="fts_social_icons_color" class="feed-them-social-admin-input fts-social-icons-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fts-border-bottom-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fts_social_icons_color' ) ); ?>"/>
700
+ <div class="clear"></div>
701
+ </div>
702
+ <!--/fts-facebook-feed-styles-input-wrap-->
703
+
704
+ <div class="feed-them-social-admin-input-wrap">
705
+ <div class="feed-them-social-admin-input-label fts-social-icons-color-label">
706
+ <?php echo esc_html( 'Social Icons Hover Color', 'feed-them-social' ); ?>
707
+ </div>
708
+ <input type="text" name="fts_social_icons_hover_color" class="feed-them-social-admin-input fts-social-icons-hover-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fts-border-bottom-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fts_social_icons_hover_color' ) ); ?>"/>
709
+ <div class="clear"></div>
710
+ </div>
711
+ <!--/fts-facebook-feed-styles-input-wrap-->
712
+
713
+ <div class="feed-them-social-admin-input-wrap">
714
+ <div class="feed-them-social-admin-input-label fts-social-icons-color-back-label">
715
+ <?php echo esc_html( 'Icons wrap background Color', 'feed-them-social' ); ?>
716
+ </div>
717
+ <input type="text" name="fts_social_icons_back_color" class="feed-them-social-admin-input fts-social-icons-back-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fts-border-bottom-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'fts_social_icons_back_color' ) ); ?>"/>
718
+ <div class="clear"></div>
719
+ </div>
720
+ <!--/fts-facebook-feed-styles-input-wrap-->
721
+
722
+ <br/>
723
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
724
+ <h2><?php echo esc_html( 'Disable Magnific Popup CSS', 'feed-them-social' ); ?></h2>
725
+ <p>
726
+ <input name="fts_fix_magnific" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_fix_magnific" value="1" <?php echo checked( '1', get_option( 'fts_fix_magnific' ) ); ?>/> <?php echo esc_html( 'Check this if you are experiencing problems with your theme(s) or other plugin(s) popups.', 'feed-them-social' ); ?>
727
+ </p>
728
+ <br/>
729
+ <?php } ?>
730
+
731
+ <h2><?php echo esc_html( 'Fix Twitter Time', 'feed-them-social' ); ?></h2>
732
+ <p>
733
+ <input name="fts_twitter_time_offset" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_twitter_time_offset" value="1" <?php echo checked( '1', get_option( 'fts_twitter_time_offset' ) ); ?>/> <?php echo esc_html( 'Check this if the Twitter time is still off by 3 hours after setting the TimeZone above.', 'feed-them-social' ); ?>
734
+ </p>
735
+ <br/>
736
+
737
+ <h2><?php echo esc_html( 'Fix Internal Server Error', 'feed-them-social' ); ?></h2>
738
+ <p>
739
+ <input name="fts_curl_option" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_curl_option" value="1" <?php echo checked( '1', get_option( 'fts_curl_option' ) ); ?>/> <?php echo esc_html( 'Check this option if you are getting a 500 Internal Server Error when trying to load a page with our feed on it.', 'feed-them-social' ); ?>
740
+ </p>
741
+ <br/>
742
+
743
+ <h2><?php echo esc_html( 'Powered by Text', 'feed-them-social' ); ?></h2>
744
+ <p>
745
+ <input name="fts-powered-text-options-settings" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts-powered-text-options-settings" value="1" <?php echo checked( '1', get_option( 'fts-powered-text-options-settings' ) ); ?>/>
746
+ <?php
747
+ if ( '1' === get_option( 'fts-powered-text-options-settings' ) ) {
748
+ ?>
749
+ <strong><?php echo esc_html( 'Checked:', 'feed-them-social' ); ?></strong> <?php echo esc_html( 'You are not showing the Powered by Logo.', 'feed-them-social' ); ?>
750
+ <?php
751
+ } else {
752
+ ?>
753
+ <strong><?php echo esc_html( 'Not Checked:', 'feed-them-social' ); ?></strong><?php echo esc_html( 'The Powered by text will appear in the site. Awesome! Thanks so much for sharing.', 'feed-them-social' ); ?>
754
+ <?php
755
+ }
756
+ ?>
757
+ </p>
758
+ <br/>
759
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php echo esc_html( 'Save All Changes', 'feed-them-social' ); ?>"/>
760
+ <div class="clear"></div>
761
+ </div><!--/feed-them-custom-logo-css-->
762
+ </form>
763
+ </div><!--/font-content-->
764
+
765
+ </section>
766
+ </div>
767
+ </div>
768
+
769
+ </div><!--/feed-them-social-admin-wrap-->
770
+
771
+ <script>
772
+ jQuery(document).ready(function ($) {
773
+
774
+ //create hash tag in url for fts-tabs
775
+ jQuery('.feed-them-social-admin-wrap #fts-tabs').on('click', "label.fts-tabbed", function () {
776
+ var myURL = document.location;
777
+ document.location = myURL + "&tab=" + jQuery(this).attr('id');
778
+
779
+ })
780
+
781
+ });
782
+ </script>
783
+
784
+ <h1 class="plugin-author-note"><?php echo esc_html( 'Plugin Authors Note', 'feed-them-social' ); ?></h1>
785
+ <div class="fts-plugin-reviews">
786
+ <div class="fts-plugin-reviews-rate"><?php echo esc_html( ' Feed Them Social was created by 2 Brothers, Spencer and Justin Labadie. That’s it, 2 people! We spend all our time creating and supporting this plugin. Show us some love if you like our plugin and leave a quick review for us, it will make our day!', 'feed-them-social' ); ?>
787
+ <a href="https://wordpress.org/support/view/plugin-reviews/feed-them-social" target="_blank"><?php echo esc_html( 'Leave us a Review', 'feed-them-social' ); ?>
788
+ ★★★★★</a>
789
+ </div>
790
+ <div class="fts-plugin-reviews-support">
791
+ <?php
792
+ // Free Support Message!
793
+ echo sprintf(
794
+ esc_html( 'If you\'re using the Free plugin and are having troubles getting setup please contact us on the %1$sFree WordPress Support Forum%2$s. We will respond within 24hrs during weekdays.', 'feed-them-gallery' ),
795
+ '<a href="' . esc_url( 'https://wordpress.org/support/plugin/feed-them-social' ) . '" target="_blank">',
796
+ '</a>'
797
+ );
798
+ // Paid Support Message!
799
+ echo sprintf(
800
+ esc_html( 'If you have a paid extensions from us please use our %1$sPaid Extension Support Ticket System%2$s', 'feed-them-gallery' ),
801
+ '<a href="' . esc_url( 'https://www.slickremix.com/my-account/#tab-support' ) . '" target="_blank">',
802
+ '</a>'
803
+ );
804
+ ?>
805
+
806
+ <div class="fts-text-align-center">
807
+ <a class="feed-them-social-admin-slick-logo" href="https://www.slickremix.com" target="_blank"></a>
808
+ </div>
809
+ </div>
810
+ </div>
811
+
812
+ <script>
813
+
814
+ jQuery(document).ready(function () {
815
+
816
+ // Master feed selector
817
+ jQuery('#shortcode-form-selector').change(function () {
818
+ jQuery('.shortcode-generator-form').hide();
819
+ jQuery('.' + jQuery(this).val()).fadeIn('fast');
820
+
821
+ <?php if ( get_option( 'youtube_custom_access_token' ) && get_option( 'youtube_custom_access_token' ) !== '' && get_option( 'youtube_custom_access_token' ) !== '' ) { ?>
822
+ if (jQuery('select#shortcode-form-selector').val() == 'youtube-shortcode-form') {
823
+ jQuery(".shortcode-generator-form.youtube-shortcode-form .fts-required-token-message").hide();
824
+ }<?php } ?>
825
+
826
+ if (jQuery('select#shortcode-form-selector').val() == 'fts-fb-page-shortcode-form') {
827
+ jQuery("#facebook-messages-selector").change();
828
+ jQuery("html, .facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media").show();
829
+ }
830
+
831
+ if (jQuery("select#shortcode-form-selector").val() == "vine-shortcode-form") {
832
+ jQuery("form#feed-selector-form").append('<div class="feed-them-social-admin-input-wrap fts-premium-options-message" id="bye-vine"><a class="not-active-title" href="https://medium.com/@vine/important-news-about-vine-909c5f4ae7a7#.lcz07v6ws" target="_blank">Vine Depreciated</a><?php esc_js( 'A notice to all users of Feed Them Social that use the Vine feed in our plugin... It appears they will be closing the doors at some point soon. No specific date, but well keep you posted before it gets fully phased out. <a href="https://medium.com/@vine/important-news-about-vine-909c5f4ae7a7#.lcz07v6ws">https://medium.com/@vine/important-news-about-vine-909c5f4ae7a7#.lcz07v6ws</a><br><br>You can see the shortcode options and shortcode examples here, we will no longer be creating a shortcode generator for this feed. <a href="https://www.slickremix.com/docs/shortcode-options-table/#vine">https://www.slickremix.com/docs/shortcode-options-table/#vine</a> ', 'feed-them-social' ); ?></div>');
833
+ jQuery("#bye-vine").show();
834
+ }
835
+ else {
836
+ jQuery("form#feed-selector-form").remove("#bye-vine");
837
+ }
838
+
839
+ //Combined Feed
840
+ <?php if ( ! is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) { ?>
841
+ if (jQuery("select#shortcode-form-selector").val() == "combine-steams-shortcode-form") {
842
+ jQuery('.combine-steams-shortcode-form, .fts-required-more-posts').hide();
843
+ jQuery('#not_active_main_select, .fts-required-more-posts').show();
844
+ }
845
+ <?php } ?>
846
+
847
+ jQuery('select#combine-steams-selector').val('all');
848
+ //Remove Controller Class so everything reappears for Facebook Feed
849
+ if (jQuery('.fts-facebook_page-shortcode-form').hasClass('multiple_facebook')) {
850
+ jQuery('.fts-facebook_page-shortcode-form').removeClass('multiple_facebook');
851
+ jQuery('.fts-required-more-posts').hide();
852
+ }
853
+ else {
854
+ jQuery('.fts-required-more-posts').show();
855
+ }
856
+ jQuery('select#facebook-messages-selector option[value="events"]').show();
857
+
858
+ });
859
+
860
+ jQuery('select#fb_hide_like_box_button').bind('change', function (e) {
861
+ if (jQuery('select#fb_hide_like_box_button').val() == 'no') {
862
+ jQuery('.like-box-wrap').show();
863
+ }
864
+ else {
865
+ jQuery('.like-box-wrap').hide();
866
+ }
867
+ });
868
+
869
+ jQuery('#facebook_show_video_button').change(function () {
870
+ jQuery('.fb-video-play-btn-options-content').toggle();
871
+ });
872
+
873
+ //Combine Feed Type Selector
874
+ jQuery('select#combine-steams-selector').bind('change', function (e) {
875
+ if (jQuery('select#combine-steams-selector').val() == 'multiple_facebook') {
876
+ jQuery('.facebook_options_wrap,#fts-fb-page-form, .facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ').show();
877
+ jQuery('.combine_streams_options_wrap, .fts-required-more-posts').hide();
878
+ jQuery('.fts-facebook_page-shortcode-form').addClass('multiple_facebook');
879
+
880
+ jQuery('.multiple_facebook select#facebook-messages-selector option[value="events"]').hide();
881
+ }
882
+ else {
883
+
884
+ jQuery('.facebook_options_wrap,#fts-fb-page-form, .facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ').hide();
885
+ jQuery('.combine_streams_options_wrap, .fts-required-more-posts').show();
886
+
887
+ //Remove Controller Class so everything reappears for Facebook Feed
888
+ if (jQuery('.fts-facebook_page-shortcode-form').hasClass('multiple_facebook')) {
889
+ jQuery('.fts-facebook_page-shortcode-form').removeClass('multiple_facebook');
890
+ }
891
+ }
892
+ });
893
+
894
+ // change the feed type 'how to' message when a feed type is selected
895
+ jQuery('#facebook-messages-selector').change(function () {
896
+ jQuery('.facebook-message-generator').hide();
897
+ jQuery('.' + jQuery(this).val()).fadeIn('fast');
898
+ // if the facebook type select is changed we hide the shortcode code so not to confuse people
899
+ jQuery('.final-shortcode-textarea').hide();
900
+ // only show the Super Gallery Options if the facebook ablum or album covers feed type is selected
901
+ var facebooktype = jQuery("select#facebook-messages-selector").val();
902
+
903
+
904
+ if (facebooktype == 'albums' || facebooktype == 'album_photos' || facebooktype == 'album_videos') {
905
+ jQuery('.fts-super-facebook-options-wrap,.align-images-wrap').show();
906
+ jQuery('.fixed_height_option,.main-grid-options-wrap').hide();
907
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( 'Display Posts in Grid', 'feed-them-social' ); ?>')").parent('div').hide();
908
+ }
909
+ else {
910
+ jQuery('.fts-super-facebook-options-wrap,.align-images-wrap ').hide();
911
+ jQuery('.fixed_height_option,.main-grid-options-wrap').show();
912
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( 'Display Posts in Grid', 'feed-them-social' ); ?>')").parent('div').show();
913
+ }
914
+
915
+ if (facebooktype == 'page' || facebooktype == 'event' || facebooktype == 'group') {
916
+ jQuery(".facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ").show();
917
+ }
918
+ else {
919
+ jQuery(".facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ").hide();
920
+ }
921
+
922
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
923
+
924
+ // This is to show all option when prem active if you selected the Facebook Page reviews if not active. Otherwise all other fb-options-wraps are hidden when selecting another fb feed from settings page drop down.
925
+ jQuery('.fb-options-wrap').show();
926
+ jQuery('body .fb_album_photos_id, .fts-required-more-posts').hide();
927
+
928
+ if (facebooktype == 'album_videos') {
929
+ jQuery('.fts-photos-popup, #facebook_super_gallery_container, #facebook_super_gallery_animate').hide();
930
+ jQuery('.video, .fb-video-play-btn-options-wrap').show();
931
+ jQuery(".feed-them-social-admin-input-label:contains('# of Posts')").html("<?php echo esc_js( '# of Videos', 'feed-them-social' ); ?>");
932
+ }
933
+ else {
934
+ jQuery('.video, .fb-video-play-btn-options-wrap').hide();
935
+ jQuery('.fts-photos-popup, #facebook_super_gallery_container, #facebook_super_gallery_animate').show();
936
+ jQuery(".feed-them-social-admin-input-label:contains('# of Videos')").html("<?php echo esc_js( '# of Posts', 'feed-them-social' ); ?>");
937
+ }
938
+ <?php
939
+ } else {
940
+ ?>
941
+
942
+ jQuery('.video, .fb-video-play-btn-options-wrap').hide();
943
+ jQuery('body .fb_album_photos_id, .fts-required-more-posts').hide();
944
+
945
+ <?php } ?>
946
+
947
+ if (facebooktype == 'page') {
948
+ jQuery('.inst-text-facebook-page').show();
949
+ }
950
+ else {
951
+ jQuery('.inst-text-facebook-page').hide();
952
+ }
953
+
954
+ if (facebooktype == 'events') {
955
+ jQuery('.inst-text-facebook-event-list').show();
956
+ jQuery('.facebook-loadmore-wrap').hide();
957
+
958
+ }
959
+ else {
960
+ jQuery('.inst-text-facebook-event-list').hide();
961
+ jQuery('.facebook-loadmore-wrap').show();
962
+ }
963
+
964
+ <?php if ( is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) { ?>
965
+ if (facebooktype == 'reviews') {
966
+ jQuery('.facebook-reviews-wrap, .inst-text-facebook-reviews').show();
967
+ jQuery('.align-images-wrap,.facebook-title-options-wrap, .facebook-popup-wrap, .fts-required-more-posts, .fts-required-more-posts').hide();
968
+ } else {
969
+ jQuery('.facebook-reviews-wrap, .inst-text-facebook-reviews').hide();
970
+ jQuery('.facebook-title-options-wrap, .facebook-popup-wrap, .fts-required-more-posts, .fts-required-more-posts').show();
971
+ }
972
+ <?php } ?>
973
+
974
+ // only show the post type visible if the facebook page feed type is selected
975
+ jQuery('.facebook-post-type-visible').hide();
976
+ if (facebooktype == 'page') {
977
+ jQuery('.facebook-post-type-visible').show();
978
+ }
979
+ var fb_feed_type_option = jQuery("select#facebook-messages-selector").val();
980
+ if (fb_feed_type_option == 'album_photos') {
981
+ jQuery('.fb_album_photos_id').show();
982
+ }
983
+ else {
984
+ jQuery('.fb_album_photos_id').hide();
985
+ }
986
+ });
987
+ //Instagram Profile wrap
988
+ jQuery('select#instagram-profile-wrap').bind('change', function (e) {
989
+ if (jQuery('#instagram-profile-wrap').val() == 'yes') {
990
+ jQuery('.instagram-profile-options-wrap').show();
991
+ }
992
+ else {
993
+ jQuery('.instagram-profile-options-wrap').hide();
994
+ }
995
+ });
996
+ // Instagram Super Gallery option
997
+ jQuery('#instagram-custom-gallery').bind('change', function (e) {
998
+ if (jQuery('#instagram-custom-gallery').val() == 'no') {
999
+ jQuery('.fts-super-instagram-options-wrap').hide();
1000
+ }
1001
+ else {
1002
+ jQuery('.fts-super-instagram-options-wrap').show();
1003
+ }
1004
+ });
1005
+
1006
+
1007
+ jQuery('#instagram-messages-selector').bind('change', function (e) {
1008
+ if (jQuery('#instagram-messages-selector').val() == 'hashtag') {
1009
+ jQuery(".instagram-id-option-wrap,.instagram-user-option-text,.instagram-location-option-text,.main-instagram-profile-options-wrap").hide();
1010
+ jQuery(".instagram-hashtag-option-text").show();
1011
+ }
1012
+ else if (jQuery('#instagram-messages-selector').val() == 'location') {
1013
+ jQuery(".instagram-id-option-wrap,.instagram-user-option-text,.instagram-hashtag-option-text,.main-instagram-profile-options-wrap").hide();
1014
+ jQuery(".instagram-location-option-text").show();
1015
+ }
1016
+ else {
1017
+ jQuery(".instagram-id-option-wrap,.instagram-user-option-text,.main-instagram-profile-options-wrap").show();
1018
+ jQuery(".instagram-hashtag-option-text,.instagram-location-option-text").hide();
1019
+ }
1020
+ });
1021
+
1022
+ jQuery('#combine_instagram_type').bind('change', function (e) {
1023
+ if (jQuery('#combine_instagram_type').val() == 'hashtag') {
1024
+ jQuery(".combine-instagram-id-option-wrap,.combine-instagram-user-option-text,.combine-instagram-location-option-text").hide();
1025
+ jQuery(".combine-instagram-hashtag-option-text").show();
1026
+ }
1027
+ else if (jQuery('#combine_instagram_type').val() == 'location') {
1028
+ jQuery(".combine-instagram-id-option-wrap,.combine-instagram-user-option-text,.combine-instagram-hashtag-option-text").hide();
1029
+ jQuery(".combine-instagram-location-option-text").show();
1030
+ }
1031
+ else {
1032
+ jQuery(".combine-instagram-id-option-wrap,.combine-instagram-user-option-text").show();
1033
+ jQuery(".combine-instagram-hashtag-option-text,.combine-instagram-location-option-text").hide();
1034
+ }
1035
+ });
1036
+
1037
+ /* Instagram */
1038
+ function getQueryString(Param) {
1039
+ return decodeURI(
1040
+ (RegExp('[#|&]' + Param + '=' + '(.+?)(&|$)').exec(location.hash) || [, null])[1]
1041
+ );
1042
+ }
1043
+
1044
+ if (window.location.hash && getQueryString('feed_type') == 'instagram') {
1045
+ jQuery('#feed-selector-form').find('option[value=instagram-shortcode-form]').attr('selected', 'selected');
1046
+ jQuery('.shortcode-generator-form.instagram-shortcode-form').show();
1047
+ jQuery('#instagram_id').val(jQuery('#instagram_id').val() + '<?php echo esc_js( get_option( 'fts_instagram_custom_id' ) ); ?>');
1048
+ jQuery('#insta_access_token').val(jQuery('#insta_access_token').val() + '<?php echo esc_js( get_option( 'fts_instagram_custom_api_token' ) ); ?>');
1049
+ }
1050
+
1051
+ jQuery('#shortcode-form-selector, #instagram-messages-selector').bind('change', function (e) {
1052
+ if (jQuery('#instagram-messages-selector').val() == 'user') {
1053
+ jQuery('#instagram_id, #insta_access_token').val('');
1054
+ jQuery('#instagram_id').val(jQuery('#instagram_id').val() + '<?php echo esc_js( get_option( 'fts_instagram_custom_id' ) ); ?>');
1055
+ jQuery('#insta_access_token').val(jQuery('#insta_access_token').val() + '<?php echo esc_js( get_option( 'fts_instagram_custom_api_token' ) ); ?>');
1056
+ }
1057
+ else {
1058
+ jQuery('#instagram_id').val('');
1059
+ }
1060
+
1061
+ });
1062
+ /* FB Pages, Ablums, Photos etc */
1063
+ if (window.location.hash && getQueryString('feed_type') == 'facebook') {
1064
+ jQuery('#feed-selector-form').find('option[value=fts-fb-page-shortcode-form]').attr('selected', 'selected');
1065
+ jQuery('#fts-tab-content1 .fts-fb-page-shortcode-form').show();
1066
+ jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token_user_id' ) ); ?>');
1067
+ jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token' ) ); ?>');
1068
+ }
1069
+
1070
+ jQuery('#shortcode-form-selector, #facebook-messages-selector').bind('change', function (e) {
1071
+ if (jQuery('#facebook-messages-selector').val() == 'page' || jQuery('#facebook-messages-selector').val() == 'album_photos' || jQuery('#facebook-messages-selector').val() == 'albums' || jQuery('#facebook-messages-selector').val() == 'album_videos') {
1072
+ jQuery('#fb_page_id, #fb_access_token').val('');
1073
+ jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token_user_id' ) ); ?>');
1074
+ jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token' ) ); ?>');
1075
+ }
1076
+ else {
1077
+
1078
+ }
1079
+
1080
+ });
1081
+
1082
+ /* FB Pages, Ablums, Photos etc */
1083
+ if (window.location.hash && getQueryString('feed_type') == 'facebook_reviews') {
1084
+ jQuery('#feed-selector-form').find('option[value=fts-fb-page-shortcode-form]').attr('selected', 'selected');
1085
+ jQuery('#fts-tab-content1 .fts-fb-page-shortcode-form').show();
1086
+
1087
+ jQuery('#facebook-messages-selector').find('option[value=reviews]').attr('selected', 'selected');
1088
+ jQuery('.facebook-reviews-wrap, .inst-text-facebook-reviews').show();
1089
+ jQuery('.align-images-wrap,.facebook-title-options-wrap, .facebook-popup-wrap, .fts-required-more-posts, .fts-required-more-posts, .inst-text-facebook-page').hide();
1090
+
1091
+ jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token_user_id_biz' ) ); ?>');
1092
+ jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token_biz' ) ); ?>');
1093
+ }
1094
+
1095
+ jQuery('#shortcode-form-selector, #facebook-messages-selector').bind('change', function (e) {
1096
+ if (jQuery('#facebook-messages-selector').val() == 'reviews') {
1097
+ jQuery('#fb_page_id, #fb_access_token').val('');
1098
+ jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token_user_id_biz' ) ); ?>');
1099
+ jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token_biz' ) ); ?>');
1100
+ }
1101
+ else {
1102
+
1103
+ }
1104
+
1105
+ });
1106
+
1107
+ jQuery('#combine_facebook').bind('change', function (e) {
1108
+ jQuery('#combine_facebook_name').val('');
1109
+ jQuery('#combine_facebook_name').val(jQuery('#combine_facebook_name').val() + '<?php echo esc_js( get_option( 'fts_facebook_custom_api_token_user_id' ) ); ?>');
1110
+ });
1111
+
1112
+ jQuery('#combine_instagram, #combine_instagram_type').bind('change', function (e) {
1113
+ jQuery('#combine_instagram_name').val('');
1114
+ if (jQuery('#combine_instagram_type').val() == 'user') {
1115
+ jQuery('#combine_instagram_name').val(jQuery('#combine_instagram_name').val() + '<?php echo esc_js( get_option( 'fts_instagram_custom_id' ) ); ?>');
1116
+ }
1117
+ else {
1118
+ jQuery('#combine_instagram_name').val('');
1119
+ }
1120
+
1121
+ });
1122
+
1123
+ <?php if ( ! is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
1124
+ jQuery('#instagram-messages-selector').bind('change', function (e) {
1125
+ if (jQuery('#instagram-messages-selector').val() == 'location') {
1126
+ jQuery("#instagram_id").hide();
1127
+ jQuery('<div class="feed-them-social-admin-input-default fts-custom-premium-required">Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> to edit.</div>').insertAfter('.feed-them-social-admin-input-label.instagram-location-option-text');
1128
+ jQuery(".feed-them-social-admin-submit-btn").hide();
1129
+ }
1130
+ else {
1131
+ jQuery("#instagram_id").show();
1132
+ jQuery(".fts-custom-premium-required").hide();
1133
+ jQuery(".feed-them-social-admin-submit-btn").show();
1134
+ }
1135
+
1136
+ });
1137
+ <?php } ?>
1138
+
1139
+ jQuery('#twitter-messages-selector').bind('change', function (e) {
1140
+ if (jQuery('#twitter-messages-selector').val() == 'hashtag') {
1141
+ jQuery(".hashtag-option-small-text,.twitter-hashtag-etc-wrap").show();
1142
+ jQuery(".hashtag-option-not-required, .must-copy-twitter-name").hide();
1143
+ }
1144
+ else {
1145
+ jQuery(".hashtag-option-not-required, .must-copy-twitter-name").show();
1146
+ jQuery(".twitter-hashtag-etc-wrap,.hashtag-option-small-text").hide();
1147
+ }
1148
+ });
1149
+
1150
+ jQuery('#combine-twitter-messages-selector').bind('change', function (e) {
1151
+ if (jQuery('#combine-twitter-messages-selector').val() == 'hashtag') {
1152
+ jQuery(".combine-twitter-hashtag-etc-wrap").show();
1153
+ jQuery(".combine_twitter_name").hide();
1154
+ }
1155
+ else {
1156
+ jQuery(".combine_twitter_name").show();
1157
+ jQuery(".combine-twitter-hashtag-etc-wrap").hide();
1158
+ }
1159
+ });
1160
+
1161
+ //Twitter Grid option
1162
+ jQuery('#twitter-grid-option').bind('change', function (e) {
1163
+ if (jQuery('#twitter-grid-option').val() == 'yes') {
1164
+ jQuery('.fts-twitter-grid-options-wrap').show();
1165
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( 'Center Facebook Container?', 'feed-them-social' ); ?>')").parent('div').show();
1166
+ }
1167
+ else {
1168
+ jQuery('.fts-twitter-grid-options-wrap').hide();
1169
+ }
1170
+ });
1171
+
1172
+ //Twitter show load more options
1173
+ jQuery('#twitter_load_more_option').bind('change', function (e) {
1174
+ if (jQuery('#twitter_load_more_option').val() == 'yes') {
1175
+ jQuery('.fts-twitter-load-more-options-wrap').show();
1176
+ jQuery('.fts-twitter-load-more-options2-wrap').show();
1177
+ }
1178
+
1179
+ else {
1180
+ jQuery('.fts-twitter-load-more-options-wrap, .fts-twitter-load-more-options2-wrap').hide();
1181
+ }
1182
+ });
1183
+
1184
+ //youtube show load more options
1185
+ jQuery('#youtube_load_more_option').bind('change', function (e) {
1186
+ if (jQuery('#youtube_load_more_option').val() == 'yes') {
1187
+ jQuery('.fts-youtube-load-more-options-wrap').show();
1188
+ jQuery('.fts-youtube-load-more-options2-wrap').show();
1189
+ }
1190
+
1191
+ else {
1192
+ jQuery('.fts-youtube-load-more-options-wrap, .fts-youtube-load-more-options2-wrap').hide();
1193
+ }
1194
+ });
1195
+
1196
+ // facebook show grid options
1197
+ jQuery('#fb-grid-option').bind('change', function (e) {
1198
+ if (jQuery('#fb-grid-option').val() == 'yes') {
1199
+ jQuery('.fts-facebook-grid-options-wrap').show();
1200
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( 'Center Facebook Container?', 'feed-them-social' ); ?>')").parent('div').show();
1201
+ }
1202
+ else {
1203
+ jQuery('.fts-facebook-grid-options-wrap').hide();
1204
+ }
1205
+ });
1206
+
1207
+ // facebook Super Gallery option
1208
+ jQuery('#facebook-custom-gallery').bind('change', function (e) {
1209
+ if (jQuery('#facebook-custom-gallery').val() == 'yes') {
1210
+ jQuery('.fts-super-facebook-options-wrap').show();
1211
+ }
1212
+ else {
1213
+ jQuery('.fts-super-facebook-options-wrap').hide();
1214
+ }
1215
+ });
1216
+
1217
+ //Facebook Display Popup option
1218
+ jQuery('#facebook_popup').bind('change', function (e) {
1219
+ if (jQuery('#facebook_popup').val() == 'yes') {
1220
+ jQuery('.display-comments-wrap').show();
1221
+ }
1222
+ else {
1223
+ jQuery('.display-comments-wrap').hide();
1224
+ }
1225
+ });
1226
+
1227
+ // facebook show load more options
1228
+ jQuery('#fb_load_more_option').bind('change', function (e) {
1229
+ if (jQuery('#fb_load_more_option').val() == 'yes') {
1230
+
1231
+ if (jQuery('#facebook-messages-selector').val() !== 'album_videos') {
1232
+ jQuery('.fts-facebook-load-more-options-wrap').show();
1233
+ }
1234
+ jQuery('.fts-facebook-load-more-options2-wrap').show();
1235
+ }
1236
+
1237
+ else {
1238
+ jQuery('.fts-facebook-load-more-options-wrap, .fts-facebook-load-more-options2-wrap').hide();
1239
+ }
1240
+ });
1241
+ // Instagram show load more options
1242
+ jQuery('#instagram_load_more_option').bind('change', function (e) {
1243
+ if (jQuery('#instagram_load_more_option').val() == 'yes') {
1244
+ jQuery('.fts-instagram-load-more-options-wrap').show();
1245
+ }
1246
+ else {
1247
+ jQuery('.fts-instagram-load-more-options-wrap').hide();
1248
+ }
1249
+ });
1250
+
1251
+
1252
+ //Combine Grid Options
1253
+ jQuery('#combine_grid_option').bind('change', function (e) {
1254
+ if (jQuery('#combine_grid_option').val() == 'yes') {
1255
+ jQuery('.combine-grid-options-wrap ').show();
1256
+ }
1257
+ else {
1258
+ jQuery('.combine-grid-options-wrap ').hide();
1259
+ }
1260
+ });
1261
+
1262
+ //Combine Facebook
1263
+ jQuery('select#combine_facebook').bind('change', function (e) {
1264
+ if (jQuery('select#combine_facebook').val() == 'yes') {
1265
+ jQuery('.combine-facebook-wrap').show();
1266
+ }
1267
+ else {
1268
+ jQuery('.combine-facebook-wrap').hide();
1269
+ }
1270
+ });
1271
+ //Combine Twitter
1272
+ jQuery('#combine_twitter').bind('change', function (e) {
1273
+ if (jQuery('#combine_twitter').val() == 'yes') {
1274
+ jQuery('.combine-twitter-wrap').show();
1275
+ }
1276
+ else {
1277
+ jQuery('.combine-twitter-wrap').hide();
1278
+ }
1279
+ });
1280
+ //Combine Instagram
1281
+ jQuery('#combine_instagram').bind('change', function (e) {
1282
+ if (jQuery('#combine_instagram').val() == 'yes') {
1283
+ jQuery('.combine-instagram-wrap').show();
1284
+ }
1285
+ else {
1286
+ jQuery('.combine-instagram-wrap').hide();
1287
+ }
1288
+ });
1289
+ //Combine Pinterest
1290
+ jQuery('#combine_pinterest').bind('change', function (e) {
1291
+ if (jQuery('#combine_pinterest').val() == 'yes') {
1292
+ jQuery('.combine-pinterest-wrap').show();
1293
+ }
1294
+ else {
1295
+ jQuery('.combine-pinterest-wrap').hide();
1296
+ }
1297
+ });
1298
+ //Combine Pinterest Type Options
1299
+ jQuery('#combine_pinterest_type').bind('change', function (e) {
1300
+ if (jQuery('#combine_pinterest_type').val() == 'pins_from_user') {
1301
+ jQuery('.combine_board_id').hide();
1302
+ }
1303
+ if (jQuery('#combine_pinterest_type').val() == 'single_board_pins') {
1304
+ jQuery('.combine_board_id').show();
1305
+ }
1306
+ });
1307
+ //Combine Youtube
1308
+ jQuery('#combine_youtube').bind('change', function (e) {
1309
+ if (jQuery('#combine_youtube').val() == 'yes') {
1310
+ jQuery('.combine-youtube-wrap').show();
1311
+ }
1312
+ else {
1313
+ jQuery('.combine-youtube-wrap').hide();
1314
+ }
1315
+ });
1316
+ //Youtube Options
1317
+ jQuery('select#combine_youtube_type').bind('change', function (e) {
1318
+ if (jQuery('#combine_youtube_type').val() == 'channelID') {
1319
+ jQuery('.combine_youtube_name, .combine_playlist_id').hide();
1320
+ jQuery('.combine_channel_id').show();
1321
+ }
1322
+ else if (jQuery('#combine_youtube_type').val() == 'userPlaylist') {
1323
+ jQuery('.combine_channel_id').hide();
1324
+ jQuery('.combine_playlist_id, .combine_youtube_name').show();
1325
+ }
1326
+ else if (jQuery('#combine_youtube_type').val() == 'playlistID') {
1327
+ jQuery('.combine_youtube_name').hide();
1328
+ jQuery('.combine_playlist_id, .combine_channel_id').show();
1329
+ }
1330
+ else {
1331
+ jQuery('.combine_youtube_name').show();
1332
+ jQuery('.combine_playlist_id, .combine_channel_id').hide();
1333
+ }
1334
+ });
1335
+
1336
+
1337
+ // Pinterest options
1338
+ // hide this div till needed for free version
1339
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( '# of Pins', 'feed-them-social' ); ?>')").parent('div').hide();
1340
+ jQuery('#pinterest-messages-selector').bind('change', function (e) {
1341
+ if (jQuery('#pinterest-messages-selector').val() == 'boards_list') {
1342
+ jQuery('.number-of-boards, .pinterest-name-text').show();
1343
+ jQuery('.board-name, .show-pins-amount, .pinterest-board-and-name-text').hide();
1344
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( '# of Boards', 'feed-them-social' ); ?>')").parent('div').show();
1345
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( '# of Pins', 'feed-them-social' ); ?>')").parent('div').hide();
1346
+ }
1347
+ });
1348
+ // Pinterest options
1349
+ jQuery('#pinterest-messages-selector').bind('change', function (e) {
1350
+ if (jQuery('#pinterest-messages-selector').val() == 'single_board_pins') {
1351
+ jQuery('.board-name, .show-pins-amount, .pinterest-board-and-name-text').show();
1352
+ jQuery('.number-of-boards, .pinterest-name-text').hide();
1353
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( '# of Boards', 'feed-them-social' ); ?>')").parent('div').hide();
1354
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( '# of Pins', 'feed-them-social' ); ?>')").parent('div').show();
1355
+ }
1356
+ });
1357
+ // Pinterest options
1358
+ jQuery('#pinterest-messages-selector').bind('change', function (e) {
1359
+ if (jQuery('#pinterest-messages-selector').val() == 'pins_from_user') {
1360
+ jQuery('.show-pins-amount, .pinterest-name-text').show();
1361
+ jQuery('.number-of-boards, .board-name, .pinterest-board-and-name-text').hide();
1362
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( '# of Boards', 'feed-them-social' ); ?>')").parent('div').hide();
1363
+ jQuery(".feed-them-social-admin-input-label:contains('<?php echo esc_js( '# of Pins', 'feed-them-social' ); ?>')").parent('div').show();
1364
+ }
1365
+ });
1366
+
1367
+
1368
+ });
1369
+ <?php
1370
+ $output = '';
1371
+ // If shortcode Generator Changes!
1372
+ echo 'jQuery("#shortcode-form-selector").change(function () {';
1373
+ // Hide Premium Msg Boxes if showing!
1374
+ echo 'jQuery("div.fts-premium-options-message").hide();';
1375
+ echo '});';
1376
+ foreach ( $feed_settings_array as $section => $section_info ) {
1377
+
1378
+ // Premium Message Boxes JS!
1379
+ if ( isset( $section_info['premium_msg_boxes'] ) ) {
1380
+ echo 'jQuery("#' . esc_js( $section_info['feed_type_select']['select_id'] ) . '").change(function () {';
1381
+ echo 'jQuery("form.' . esc_js( $section ) . '_options_wrap").show();';
1382
+ foreach ( $section_info['premium_msg_boxes'] as $key => $premium_msg ) {
1383
+ if ( ! is_plugin_active( $required_plugins[ $premium_msg['req_plugin'] ]['plugin_url'] ) ) {
1384
+ $premium_if_class = $section_info['shortcode_ifs'][ $key ]['if']['class'];
1385
+ $premium_if_operator = $section_info['shortcode_ifs'][ $key ]['if']['operator'];
1386
+ $premium_if_value = $section_info['shortcode_ifs'][ $key ]['if']['value'];
1387
+ echo 'if (jQuery("' . esc_js( $premium_if_class ) . '").val() ' . esc_js( $premium_if_operator ) . ' "' . esc_js( $premium_if_value ) . '") { jQuery("form.' . esc_js( $section ) . '_options_wrap").hide(); jQuery("div#not_active_' . esc_js( $key ) . '").show(); }';
1388
+ echo 'else{jQuery("div#not_active_' . esc_js( $key ) . '").hide(); }';
1389
+ }
1390
+ }
1391
+ echo '});';
1392
+ }
1393
+
1394
+ // Main JS Function for each Feed.
1395
+ echo 'function updateTextArea_' . esc_js( $section ) . '() { ' . "\n";
1396
+
1397
+ $final_shortcode_var = array();
1398
+ foreach ( $section_info['main_options'] as $option ) {
1399
+ $no_attribute = ! isset( $option['short_attr']['no_attribute'] ) || isset( $option['short_attr']['no_attribute'] ) && 'yes' !== $option['short_attr']['no_attribute'] ? false : true;
1400
+ if ( false === $no_attribute ) {
1401
+ if ( ! empty( $option['short_attr'] ) || ! isset( $option['short_attr']['no_html'] ) ) {
1402
+ $option_id = isset( $option['id'] ) ? $option['id'] : '';
1403
+ $input_wrap_class = isset( $option['input_wrap_class'] ) ? $option['input_wrap_class'] : '';
1404
+ $section_attr_key = isset( $section_info['section_attr_key'] ) ? $section_info['section_attr_key'] : '';
1405
+ $attr_name = isset( $option['short_attr']['attr_name'] ) ? $option['short_attr']['attr_name'] : '';
1406
+ $empty_error = isset( $option['short_attr']['empty_error'] ) ? $option['short_attr']['empty_error'] : '';
1407
+ $empty_error_value = isset( $option['short_attr']['empty_error_value'] ) ? $option['short_attr']['empty_error_value'] : '';
1408
+ $var_final_check = isset( $option['short_attr']['var_final_if'] ) && ( 'yes' === $option['short_attr']['var_final_if'] || 'set' === $option['short_attr']['var_final_if'] ) ? '_final' : '';
1409
+
1410
+ $set_operator = isset( $option['short_attr']['set_operator'] ) ? $option['short_attr']['set_operator'] : '';
1411
+ $set_equals = isset( $option['short_attr']['set_equals'] ) ? $option['short_attr']['set_equals'] : '';
1412
+
1413
+ // Is this field Hidden!
1414
+ echo 'if (jQuery(\'#' . esc_js( $option_id ) . '\').is(":visible") || jQuery(\'#' . esc_js( $option_id ) . '\').hasClass( "non-visible")){';
1415
+ switch ( $option['option_type'] ) {
1416
+ case 'input':
1417
+ echo 'var ' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . ' = ' . ( empty( $empty_error ) || 'set' !== $empty_error ? '\' ' . esc_js( $attr_name ) . '=\' + ' : '' ) . 'jQuery("input#' . esc_js( $option_id ) . '").val();' . "\n";
1418
+ break;
1419
+ case 'select':
1420
+ echo 'var ' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . ' = \' ' . esc_js( $attr_name ) . '=\' + jQuery("select#' . esc_js( $option_id ) . '").val();' . "\n";
1421
+ break;
1422
+ }
1423
+ // If Field Empty throw error (only if field can't be empty)!
1424
+ if ( ! empty( $empty_error ) && 'yes' === $empty_error || ! empty( $empty_error ) && 'set' === $empty_error ) {
1425
+ // Show Empty Error and Highlight input!
1426
+ if ( 'yes' === $empty_error ) {
1427
+
1428
+ echo isset( $option['short_attr']['empty_error_if'] ) ? 'var ' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . '_error = jQuery("' . esc_js( $option['short_attr']['empty_error_if']['attribute'] ) . '").val(); if (' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . '_error ' . esc_js( $option['short_attr']['empty_error_if']['operator'] ) . ' "' . esc_js( $option['short_attr']['empty_error_if']['value'] ) . '") {' : '';
1429
+
1430
+ echo 'if (' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . ' == " ' . esc_js( $attr_name ) . '=") {
1431
+ jQuery(".' . esc_js( $input_wrap_class ) . '").addClass(\'fts-empty-error\');
1432
+ jQuery("input#' . esc_js( $option_id ) . '").focus();
1433
+ return false;
1434
+ }
1435
+ if (' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . ' != " ' . esc_js( $attr_name ) . '=") {
1436
+ jQuery(".' . esc_js( $input_wrap_class ) . '").removeClass(\'fts-empty-error\');
1437
+ }' . "\n";
1438
+
1439
+ $empty_error_value = ! empty( $empty_error_value ) ? ' ' . $empty_error_value : '';
1440
+ echo isset( $option['short_attr']['empty_error_if'] ) ? '}
1441
+ if (' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . ' != " ' . esc_js( $attr_name ) . '=") {
1442
+ var ' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name . $var_final_check ) . ' = \' ' . esc_js( $attr_name ) . '=\' + jQuery("input#' . esc_js( $option_id ) . '").val();
1443
+ }
1444
+ else {
1445
+ var ' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name . $var_final_check ) . ' = \'' . esc_js( $empty_error_value ) . '\';
1446
+ }
1447
+ ' : '';
1448
+ }
1449
+ // Don't Show Empty Error but Automatically set value if not set.
1450
+ if ( 'set' === $empty_error ) {
1451
+ $empty_error_value = ! empty( $empty_error_value ) ? ' ' . $empty_error_value : '';
1452
+ echo 'if (' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name ) . ( $set_operator && $set_equals ? esc_js( $set_operator ) . ' \' ' . esc_js( $attr_name ) . '=' . esc_js( $set_equals ) . '\'' : '' ) . ') {
1453
+ var ' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name . $var_final_check ) . ' = \' ' . esc_js( $attr_name ) . '=\' + jQuery("' . esc_js( $option['option_type'] ) . '#' . esc_js( $option_id ) . '").val();
1454
+ }
1455
+ else {
1456
+ var ' . ( isset( $section_attr_key ) ? esc_js( $section_attr_key ) : '' ) . esc_js( $attr_name . $var_final_check ) . ' = \'' . esc_js( $empty_error_value ) . '\';
1457
+ }' . "\n";
1458
+ }
1459
+ }
1460
+ // Is this field Hidden!
1461
+ echo '}';
1462
+ } else {
1463
+ $output .= 'Please add "short_attr" to array.';
1464
+ }
1465
+
1466
+ // Premium Required? if so Check if active!
1467
+ if ( ! isset( $option['req_plugin'] ) || ( isset( $option['req_plugin'] ) && is_plugin_active( $required_plugins[ $option['req_plugin'] ]['plugin_url'] ) || isset( $option['or_req_plugin'] ) && is_plugin_active( $required_plugins[ $option['or_req_plugin'] ]['plugin_url'] ) ) || isset( $option['or_req_plugin_three'] ) && is_plugin_active( $required_plugins[ $option['or_req_plugin_three'] ]['plugin_url'] ) ) {
1468
+ // Check "IF"s if they exist!
1469
+ if ( isset( $option['short_attr']['ifs'] ) ) {
1470
+ $if_array = $option['short_attr']['ifs'];
1471
+ $if_array = explode( ',', $if_array );
1472
+ foreach ( $if_array as $key => $if_group ) {
1473
+ $and_if_array = isset( $option['short_attr']['and_ifs'] ) ? $option['short_attr']['and_ifs'] : '';
1474
+ if ( $and_if_array ) {
1475
+ // Unset to Shift to end if key exists already!
1476
+ if ( isset( $final_shortcode_var[ $if_group ]['and_ifs'] ) ) {
1477
+ $inital_and_if = $final_shortcode_var[ $if_group ]['and_ifs'];
1478
+ unset( $final_shortcode_var[ $if_group ]['and_ifs'] );
1479
+ $final_shortcode_var[ $if_group ]['and_ifs'] = $inital_and_if;
1480
+ }
1481
+ $final_shortcode_var[ $if_group ]['and_ifs'][ $option['short_attr']['and_ifs'] ][ $attr_name ] = ( isset( $section_attr_key ) ? $section_attr_key : '' ) . $attr_name . $var_final_check;
1482
+ } else {
1483
+ $final_shortcode_var[ $if_group ][ $attr_name ] = ( isset( $section_attr_key ) ? $section_attr_key : '' ) . $attr_name . $var_final_check;
1484
+ }
1485
+ }
1486
+ } else {
1487
+ // no IF.
1488
+ $final_shortcode_var['general_options'][] = ( isset( $section_attr_key ) ? $section_attr_key : '' ) . $attr_name . $var_final_check;
1489
+ }
1490
+ }
1491
+
1492
+ ?>
1493
+ // Extra Options to show px if user does not enter it.
1494
+ // Facebook
1495
+ var isPXpresent = jQuery('#facebook_page_height').val();
1496
+ // This is in place to auto add the px if a specific input is missing it.
1497
+ if (jQuery('#facebook_page_height').val().indexOf('px') <= 0 && isPXpresent !== "") {
1498
+ jQuery('#facebook_page_height').val(jQuery('#facebook_page_height').val() + 'px');
1499
+ }
1500
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) || is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) { ?>
1501
+ var isPXpresent2 = jQuery('#facebook_grid_column_width').val();
1502
+ if (jQuery('#facebook_grid_column_width').val().indexOf('px') <= 0 && isPXpresent2 !== "") {
1503
+ jQuery('#facebook_grid_column_width').val(jQuery('#facebook_grid_column_width').val() + 'px');
1504
+ }
1505
+ var isPXpresent3 = jQuery('#facebook_grid_space_between_posts').val();
1506
+ if (jQuery('#facebook_grid_space_between_posts').val().indexOf('px') <= 0 && isPXpresent3 !== "") {
1507
+ jQuery('#facebook_grid_space_between_posts').val(jQuery('#facebook_grid_space_between_posts').val() + 'px');
1508
+ }
1509
+ var isPXpresent4 = jQuery('#loadmore_button_width').val();
1510
+ if (jQuery('#loadmore_button_width').val().indexOf('px') <= 0 && isPXpresent4 !== "") {
1511
+ jQuery('#loadmore_button_width').val(jQuery('#loadmore_button_width').val() + 'px');
1512
+ }
1513
+ var isPXpresent5 = jQuery('#loadmore_button_margin').val();
1514
+ if (jQuery('#loadmore_button_margin').val().indexOf('px') <= 0 && isPXpresent5 !== "") {
1515
+ jQuery('#loadmore_button_margin').val(jQuery('#loadmore_button_margin').val() + 'px');
1516
+ }
1517
+ var isPXpresent12 = jQuery('#like_box_width').val();
1518
+ if (jQuery('#like_box_width').val().indexOf('px') <= 0 && isPXpresent12 !== "") {
1519
+ jQuery('#like_box_width').val(jQuery('#like_box_width').val() + 'px');
1520
+ }
1521
+ <?php } ?>
1522
+
1523
+ // Twitter
1524
+ var isPXpresent6 = jQuery('#twitter_height').val();
1525
+ if (jQuery('#twitter_height').val().indexOf('px') <= 0 && isPXpresent6 !== "") {
1526
+ jQuery('#twitter_height').val(jQuery('#twitter_height').val() + 'px');
1527
+ }
1528
+ // Instagram
1529
+ var isPXpresent11 = jQuery('#instagram_page_height').val();
1530
+ if (jQuery('#instagram_page_height').val().indexOf('px') <= 0 && isPXpresent11 !== "") {
1531
+ jQuery('#instagram_page_height').val(jQuery('#instagram_page_height').val() + 'px');
1532
+ }
1533
+ // Instagram
1534
+ var isPXpresent13 = jQuery('#fts-slicker-youtube-container-margin').val();
1535
+ if (jQuery('#fts-slicker-youtube-container-margin').val().indexOf('px') <= 0 && isPXpresent13 !== "") {
1536
+ jQuery('#fts-slicker-youtube-container-margin').val(jQuery('#fts-slicker-youtube-container-margin').val() + 'px');
1537
+ }
1538
+
1539
+ <?php if ( is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) { ?>
1540
+ var isPXpresent = jQuery('#combine_grid_column_width').val();
1541
+ // This is in place to auto add the px if a specific input is missing it.
1542
+ if (jQuery('#combine_grid_column_width').val().indexOf('px') <= 0 && isPXpresent !== "") {
1543
+ jQuery('#combine_grid_column_width').val(jQuery('#combine_grid_column_width').val() + 'px');
1544
+ }
1545
+ var isPXpresent = jQuery('#combine_grid_space_between_posts').val();
1546
+ // This is in place to auto add the px if a specific input is missing it.
1547
+ if (jQuery('#combine_grid_space_between_posts').val().indexOf('px') <= 0 && isPXpresent !== "") {
1548
+ jQuery('#combine_grid_space_between_posts').val(jQuery('#combine_grid_space_between_posts').val() + 'px');
1549
+ }
1550
+ var isPXpresent = jQuery('#combine_height').val();
1551
+ // This is in place to auto add the px if a specific input is missing it.
1552
+ if (jQuery('#combine_height').val().indexOf('px') <= 0 && isPXpresent !== "") {
1553
+ jQuery('#combine_height').val(jQuery('#combine_height').val() + 'px');
1554
+ }
1555
+ <?php } ?>
1556
+
1557
+ <?php
1558
+
1559
+ }
1560
+ }
1561
+ // End JS Loop
1562
+ // Start Final Shortcode!
1563
+ echo 'var final_' . esc_js( $section ) . '_shorcode_start = \'[fts_' . ( isset( $section_info['shorcode_label'] ) ? esc_js( $section_info['shorcode_label'] ) : esc_js( $section ) ) . '\';' . "\n";
1564
+
1565
+ $shortcode_general_options = '';
1566
+ echo 'var final_' . esc_js( $section ) . '_shorcode_attributes =\'\';' . "\n";
1567
+
1568
+ if ( isset( $final_shortcode_var['general_options'] ) ) {
1569
+ foreach ( $final_shortcode_var['general_options'] as $final_attribute ) {
1570
+ // Add Attributes to shortcode!
1571
+ echo 'if (' . esc_js( $final_attribute ) . '){final_' . esc_js( $section ) . '_shorcode_attributes +=' . esc_js( $final_attribute ) . ';}' . "\n";
1572
+ }
1573
+ }
1574
+ // End of shorcode!
1575
+ echo 'var final_' . esc_js( $section ) . '_shorcode_end = \']\';' . "\n";
1576
+
1577
+ // Special Options!
1578
+ foreach ( $final_shortcode_var as $special_option_group => $special_options ) {
1579
+ if ( ( 'general_options' !== $special_option_group ) && isset( $section_info['shortcode_ifs'][ $special_option_group ] ) ) {
1580
+ $if_class = $section_info['shortcode_ifs'][ $special_option_group ]['if']['class'];
1581
+ $if_operator = $section_info['shortcode_ifs'][ $special_option_group ]['if']['operator'];
1582
+ $if_value = $section_info['shortcode_ifs'][ $special_option_group ]['if']['value'];
1583
+
1584
+ if ( isset( $final_shortcode_var[ $special_option_group ]['and_ifs'] ) ) {
1585
+ $and_ifs_array = $final_shortcode_var[ $special_option_group ]['and_ifs'];
1586
+
1587
+ foreach ( $and_ifs_array as $key => $and_ifs_attribute_array ) {
1588
+ $and_if_class = $section_info['shortcode_ifs'][ $key ]['if']['class'];
1589
+ $and_if_operator = $section_info['shortcode_ifs'][ $key ]['if']['operator'];
1590
+ $and_if_value = $section_info['shortcode_ifs'][ $key ]['if']['value'];
1591
+
1592
+ echo 'if (jQuery("' . esc_js( $if_class ) . '").val() ' . esc_js( $if_operator ) . ' "' . esc_js( $if_value ) . '" && jQuery("' . esc_js( $and_if_class ) . '").val() ' . esc_js( $and_if_operator ) . ' "' . esc_js( $and_if_value ) . '") {' . "\n";
1593
+ foreach ( $and_ifs_attribute_array as $and_if_key => $and_if_attribute ) {
1594
+ // Add Attributes to shortcode!
1595
+ echo 'if (' . esc_js( $and_if_attribute ) . '){ final_' . esc_js( $section ) . '_shorcode_attributes +=' . esc_js( $and_if_attribute ) . ';}';
1596
+ }
1597
+ echo "\n" . '}' . "\n";
1598
+ }
1599
+ }
1600
+ unset( $final_shortcode_var[ $special_option_group ]['and_ifs'] );
1601
+
1602
+ $i = 0;
1603
+ echo 'if (jQuery("' . esc_js( $if_class ) . '").val() ' . esc_js( $if_operator ) . ' "' . esc_js( $if_value ) . '") {' . "\n";
1604
+ foreach ( $final_shortcode_var[ $special_option_group ] as $key => $final_special_attribute ) {
1605
+ // Add Attributes to shortcode!
1606
+ echo 'if (' . esc_js( $final_special_attribute ) . '){ final_' . esc_js( $section ) . '_shorcode_attributes +=' . esc_js( $final_special_attribute ) . ';}';
1607
+ }
1608
+ echo "\n" . '}' . "\n";
1609
+ }
1610
+ }
1611
+ // Put the shortcode together!
1612
+ echo 'var final_' . esc_js( $section ) . '_shorcode = final_' . esc_js( $section ) . '_shorcode_start + final_' . esc_js( $section ) . '_shorcode_attributes + final_' . esc_js( $section ) . '_shorcode_end;' . "\n";
1613
+
1614
+ // Create Final Shortcode and show it!
1615
+ echo 'jQuery(\'.' . esc_js( $section_info['generator_class'] ) . '\').val(final_' . esc_js( $section ) . '_shorcode);' . "\n";
1616
+ echo 'jQuery(\'.' . esc_js( $section_info['form_wrap_classes'] ) . ' .final-shortcode-textarea\').slideDown();';
1617
+
1618
+ echo '}';
1619
+ }
1620
+ ?>
1621
+
1622
+ //END Instagram//
1623
+
1624
+
1625
+ //START convert Instagram name to id for regular isntagram and combined feeds instagram option //
1626
+ function converter_instagram_username() {
1627
+
1628
+ var convert_instagram_username = jQuery("input#convert_instagram_username").val();
1629
+
1630
+ var convert_instagram_username_combined = jQuery("input#combine_convert_instagram_username").val();
1631
+
1632
+ // Regular Instagram Converter
1633
+ if (jQuery("#fts-instagram-form").is(':visible') && convert_instagram_username == "") {
1634
+ jQuery("#convert_instagram_username").addClass('fts-empty-error');
1635
+ jQuery("input#convert_instagram_username").focus();
1636
+ return false;
1637
+ }
1638
+ else if (jQuery("#fts-instagram-form").is(':visible') && convert_instagram_username !== "") {
1639
+ jQuery(".convert_instagram_username").removeClass('fts-empty-error');
1640
+ var username_id = "#convert_instagram_username";
1641
+ var picker_wrap = "#fts-instagram-username-picker-wrap";
1642
+ var username = convert_instagram_username;
1643
+ }
1644
+
1645
+
1646
+ // Combined Feeds Converter
1647
+ if (jQuery("#fts-combine-steams-form").is(':visible') && convert_instagram_username_combined == "") {
1648
+ // alert('wtf');
1649
+ jQuery("#combine_convert_instagram_username").addClass('fts-empty-error');
1650
+ jQuery("input#combine_convert_instagram_username").focus();
1651
+ return false;
1652
+ }
1653
+ else if (jQuery("#fts-combine-steams-form").is(':visible') && convert_instagram_username_combined !== "") {
1654
+
1655
+ jQuery(".convert_instagram_username").removeClass('fts-empty-error');
1656
+ var username_id = "#combine_convert_instagram_username";
1657
+ var picker_wrap = "#fts-instagram-username-picker-wrap-combined";
1658
+ var username = convert_instagram_username_combined;
1659
+ }
1660
+
1661
+ console.log(username);
1662
+
1663
+ <?php
1664
+ $fts_instagram_tokens_array = array( '9844495a8c4c4c51a7c519d0e7e8f293', '9844495a8c4c4c51a7c519d0e7e8f293' );
1665
+ $fts_instagram_access_token = $fts_instagram_tokens_array[ array_rand( $fts_instagram_tokens_array, 1 ) ];
1666
+ ?>
1667
+ jQuery.getJSON("https://api.instagram.com/v1/users/search?q=" + username + "&client_id=<?php echo esc_attr( $fts_instagram_access_token ); ?>&access_token=258559306.da06fb6.c222db6f1a794dccb7a674fec3f0941f&callback=?",
1668
+
1669
+ {
1670
+ format: "json"
1671
+ },
1672
+ function (data) {
1673
+
1674
+ console.log(data);
1675
+
1676
+ var convert_instagram_username = jQuery("input#convert_instagram_username").val();
1677
+
1678
+ var convert_instagram_username_combined = jQuery("input#combine_convert_instagram_username").val();
1679
+ jQuery('.fts-instagram-username-picker-wrap').html('');
1680
+ jQuery('.fts-instagram-username-picker-wrap').closest('.instructional-text').css("border", "none");
1681
+
1682
+
1683
+ jQuery.each(data.data, function (key, val) {
1684
+ console.log(data.data[key].full_name);
1685
+ console.log(data.data[key].profile_picture);
1686
+ console.log(data.data[key].username);
1687
+ console.log(data.data[key].id);
1688
+
1689
+ if (jQuery(username_id).val() === data.data[key].username) {
1690
+
1691
+ jQuery(username_id).prepend(data.data[key].username);
1692
+
1693
+ jQuery(picker_wrap).prepend('<li class="fts-insta-username-' + data.data[key].username + '"><div class="fts-insta-profile-picture-div"><img src="' + data.data[key].profile_picture + '"/><div class="fts-insta-fullname-div"><strong>Full Name:</strong> ' + data.data[key].full_name + '</div><div class="fts-insta-username-div"><strong>Username:</strong> ' + data.data[key].username + '</div><div class="fts-insta-id-div"><strong>ID:</strong> <span class="fts-insta-id-final">' + data.data[key].id + '</span></span></div></li>');
1694
+
1695
+
1696
+ if (jQuery("#fts-instagram-form").is(':visible') && convert_instagram_username !== "") {
1697
+ jQuery('.fts-insta-username-' + data.data[key].username + '').addClass('fts-insta-id-active');
1698
+ jQuery('#instagram_id').val(data.data[key].id);
1699
+ console.log('Success');
1700
+ console.log('.fts-insta-username-' + data.data[key].username + '');
1701
+ }
1702
+
1703
+ if (jQuery("#fts-combine-steams-form").is(':visible') && convert_instagram_username_combined !== "") {
1704
+ jQuery('.fts-insta-username-' + data.data[key].username + '').addClass('fts-insta-id-active');
1705
+ jQuery('#combine_instagram_name').val(data.data[key].id);
1706
+
1707
+
1708
+ console.log('Success');
1709
+ console.log('.fts-insta-username-' + data.data[key].username + '');
1710
+
1711
+ }
1712
+
1713
+ }
1714
+ else {
1715
+ jQuery(picker_wrap).append('<li class="fts-insta-username-' + data.data[key].username + '"><div class="fts-insta-profile-picture-div"><img src="' + data.data[key].profile_picture + '"/><div class="fts-insta-fullname-div"><strong>Full Name:</strong> ' + data.data[key].full_name + '</div><div class="fts-insta-username-div"><strong>Username:</strong> ' + data.data[key].username + '</div><div class="fts-insta-id-div"><strong>ID:</strong> <span class="fts-insta-id-final">' + data.data[key].id + '</span></span></div></li>');
1716
+
1717
+ }
1718
+
1719
+ });
1720
+
1721
+ });
1722
+ }
1723
+
1724
+ //Append button to instagram converter input
1725
+ // jQuery('.combine-instagram-id-option-wrap').append('<input type="button" class="feed-them-social-admin-submit-btn" value="Convert Instagram Username" onclick="converter_instagram_username();" tabindex="4" style="margin-right:1em;" />');
1726
+
1727
+ jQuery(document).ready(function () {
1728
+
1729
+ // Use this to force form to be open for easier development access to shortcode options( comment out when not in use ) .fts-instagram-form
1730
+ // jQuery('.shortcode-generator-form').hide();
1731
+ // jQuery('.combine-steams-shortcode-form').fadeIn('fast');
1732
+
1733
+ // This is for when you click on the returned instagram id,name list it will make that li active and append the value to the instagram ID input.
1734
+ jQuery('.fts-instagram-username-picker-wrap').on('click', 'li', function () {
1735
+ var convert_instagram_username = jQuery("input#convert_instagram_username").val();
1736
+ var convert_instagram_username_combined = jQuery("input#combine_convert_instagram_username").val();
1737
+ var insta_page_id = jQuery(this).find('.fts-insta-id-final').html();
1738
+ console.log(insta_page_id);
1739
+
1740
+ if (convert_instagram_username !== "") {
1741
+ jQuery("#instagram_id").val(insta_page_id);
1742
+ }
1743
+ if (convert_instagram_username_combined !== "") {
1744
+ jQuery("#combine_instagram_name").val(insta_page_id);
1745
+ }
1746
+
1747
+ jQuery('.fts-instagram-username-picker-wrap li').not(this).removeClass('fts-insta-id-active');
1748
+ jQuery(this).addClass('fts-insta-id-active');
1749
+
1750
+ });
1751
+
1752
+ jQuery(".toggle-custom-textarea-show").click(function () {
1753
+ jQuery('textarea#fts-color-options-main-wrapper-css-input').slideToggle();
1754
+ jQuery('.toggle-custom-textarea-show span').toggle();
1755
+ jQuery('.fts-custom-css-text').toggle();
1756
+ });
1757
+
1758
+ // START: Fix issues when people enter the full url instead of just the ID or Name. We'll truncate this at a later date.
1759
+ jQuery("#fb_page_id").change(function () {
1760
+ var feedID = jQuery("input#fb_page_id").val();
1761
+ if (feedID.indexOf('facebook.com') != -1 || feedID.indexOf('facebook.com') != -1) {
1762
+ feedID = feedID.replace(/\/$/, '');
1763
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1764
+ var newfeedID = feedID;
1765
+ jQuery('#fb_page_id').val(newfeedID);
1766
+
1767
+ }
1768
+ });
1769
+
1770
+ jQuery("#twitter_name").change(function () {
1771
+ var feedID = jQuery("input#twitter_name").val();
1772
+ if (feedID.indexOf('twitter.com') != -1) {
1773
+ feedID = feedID.replace(/\/$/, '');
1774
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1775
+ var newfeedID = feedID;
1776
+ jQuery('#twitter_name').val(newfeedID);
1777
+
1778
+ }
1779
+ });
1780
+
1781
+ jQuery("#convert_instagram_username").change(function () {
1782
+ var feedID = jQuery("input#convert_instagram_username").val();
1783
+ if (feedID.indexOf('instagram.com') != -1) {
1784
+ feedID = feedID.replace(/\/$/, '');
1785
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1786
+ var newfeedID = feedID;
1787
+ jQuery('#convert_instagram_username').val(newfeedID);
1788
+
1789
+ }
1790
+ });
1791
+
1792
+ jQuery("#pinterest_board_name").change(function () {
1793
+ var feedID = jQuery("input#pinterest_board_name").val();
1794
+ if (feedID.indexOf('pinterest.com') != -1) {
1795
+ feedID = feedID.replace(/\/$/, '');
1796
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1797
+ var newfeedID = feedID;
1798
+ jQuery('#pinterest_board_name').val(newfeedID);
1799
+
1800
+ }
1801
+ });
1802
+
1803
+ jQuery("#pinterest_name").change(function () {
1804
+ var feedID = jQuery("input#pinterest_name").val();
1805
+ if (feedID.indexOf('pinterest.com') != -1) {
1806
+ feedID = feedID.replace(/\/$/, '');
1807
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1808
+ var newfeedID = feedID;
1809
+ jQuery('#pinterest_name').val(newfeedID);
1810
+
1811
+ }
1812
+ });
1813
+
1814
+ <?php
1815
+ // show the js for the discount option under social icons on the settings page
1816
+ // if(!is_plugin_active('feed-them-premium/feed-them-premium.php')) {
1817
+ // jQuery("#discount-for-review").click(function () {
1818
+ // jQuery('.discount-review-text').slideToggle();
1819
+ // });!
1820
+ ?>
1821
+
1822
+ //START youtube//
1823
+ //Youtube Options
1824
+ jQuery('select#youtube-messages-selector').bind('change', function (e) {
1825
+ if (jQuery('#youtube-messages-selector').val() == 'channelID') {
1826
+ jQuery('.youtube_name, .youtube_playlistID, .youtube_channelID2, .youtube_playlistID2, .youtube_name2, .youtube_align_comments_wrap, .youtube_singleVideoID, .youtube_video_single_info_display').hide();
1827
+ jQuery('.youtube_channelID, .youtube_hide_option, .youtube_video_thumbs_display, .youtube_vid_count, h3.sectioned-options-title').show();
1828
+ }
1829
+ else if (jQuery('#youtube-messages-selector').val() == 'userPlaylist') {
1830
+ jQuery('.youtube_name, .youtube_channelID, .youtube_playlistID, .youtube_channelID, .youtube_channelID2, .youtube_align_comments_wrap, .youtube_singleVideoID, .youtube_video_single_info_display').hide();
1831
+ jQuery('.youtube_playlistID2, .youtube_name2, .youtube_hide_option, .youtube_video_thumbs_display, h3.sectioned-options-title').show();
1832
+ }
1833
+ else if (jQuery('#youtube-messages-selector').val() == 'playlistID') {
1834
+ jQuery('.youtube_name, .youtube_channelID, .youtube_playlistID2, .youtube_name2, .youtube_align_comments_wrap, .youtube_singleVideoID, .youtube_video_single_info_display').hide();
1835
+ jQuery('.youtube_playlistID, .youtube_channelID2, .youtube_hide_option, .youtube_video_thumbs_display, .youtube_vid_count, h3.sectioned-options-title').show();
1836
+ }
1837
+ else if (jQuery('#youtube-messages-selector').val() == 'singleID') {
1838
+ jQuery('.youtube_name,.youtube_playlistID, .youtube_channelID, .youtube_channelID2, .youtube_playlistID2, .youtube_name2, .youtube_vid_count, .youtube_hide_option, .youtube_video_thumbs_display, h3.sectioned-options-title').hide();
1839
+ jQuery('.youtube_singleVideoID, .youtube_align_comments_wrap, .youtube_video_single_info_display').show();
1840
+ }
1841
+ else if (jQuery('#youtube-messages-selector').val() == 'username') {
1842
+ jQuery('.youtube_playlistID, .youtube_channelID, .youtube_channelID2, .youtube_playlistID2, .youtube_name2, .youtube_align_comments_wrap, .youtube_singleVideoID, .youtube_video_single_info_display').hide();
1843
+ jQuery('.youtube_name, .youtube_hide_option, .youtube_video_thumbs_display, .youtube_vid_count, h3.sectioned-options-title').show();
1844
+ }
1845
+ });
1846
+
1847
+
1848
+ jQuery('.youtube_first_video').hide();
1849
+
1850
+ jQuery('select#youtube_columns').change(function () {
1851
+ var youtube_columns_count = jQuery(this).val();
1852
+
1853
+ if (youtube_columns_count == '1') {
1854
+ jQuery('.youtube_first_video').hide();
1855
+ }
1856
+ else {
1857
+ jQuery('.youtube_first_video').show();
1858
+ }
1859
+ });
1860
+
1861
+
1862
+ jQuery("#youtube_name").change(function () {
1863
+ var feedID = jQuery("input#youtube_name").val();
1864
+ if (feedID.indexOf('youtube.com/user') != -1) {
1865
+ feedID = feedID.replace(/\/$/, '');
1866
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1867
+ var newfeedID = feedID;
1868
+ jQuery('#youtube_name').val(newfeedID);
1869
+
1870
+ }
1871
+ });
1872
+
1873
+ jQuery("#youtube_name2").change(function () {
1874
+ var feedID = jQuery("input#youtube_name2").val();
1875
+ if (feedID.indexOf('youtube.com/user') != -1) {
1876
+ feedID = feedID.replace(/\/$/, '');
1877
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1878
+ var newfeedID = feedID;
1879
+ jQuery('#youtube_name2').val(newfeedID);
1880
+
1881
+ }
1882
+ });
1883
+
1884
+ jQuery("#youtube_channelID").change(function () {
1885
+ var feedID = jQuery("input#youtube_channelID").val();
1886
+ if (feedID.indexOf('youtube.com/channel') != -1) {
1887
+ feedID = feedID.replace(/\/$/, '');
1888
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1889
+ var newfeedID = feedID;
1890
+ jQuery('#youtube_channelID').val(newfeedID);
1891
+
1892
+ }
1893
+ });
1894
+
1895
+ jQuery("#youtube_channelID2").change(function () {
1896
+ var feedID = jQuery("input#youtube_channelID2").val();
1897
+ if (feedID.indexOf('youtube.com/channel') != -1) {
1898
+ feedID = feedID.replace(/\/$/, '');
1899
+ feedID = feedID.substr(feedID.lastIndexOf('/') + 1);
1900
+ var newfeedID = feedID;
1901
+ jQuery('#youtube_channelID2').val(newfeedID);
1902
+
1903
+ }
1904
+ });
1905
+
1906
+ jQuery("#youtube_playlistID").change(function () {
1907
+ var feedID = jQuery("input#youtube_playlistID").val();
1908
+ if (feedID.indexOf('&list=') != -1) {
1909
+ feedID = feedID.replace(/\/$/, '');
1910
+ feedID = feedID.substr(feedID.lastIndexOf('=') + 1);
1911
+ var newfeedID = feedID;
1912
+ jQuery('#youtube_playlistID').val(newfeedID);
1913
+
1914
+ }
1915
+ });
1916
+
1917
+ jQuery("#youtube_playlistID2").change(function () {
1918
+ var feedID = jQuery("input#youtube_playlistID2").val();
1919
+ if (feedID.indexOf('&list=') != -1) {
1920
+ feedID = feedID.replace(/\/$/, '');
1921
+ feedID = feedID.substr(feedID.lastIndexOf('=') + 1);
1922
+ var newfeedID = feedID;
1923
+ jQuery('#youtube_playlistID2').val(newfeedID);
1924
+
1925
+ }
1926
+ });
1927
+
1928
+ jQuery("#youtube_singleVideoID").change(function () {
1929
+ var feedID = jQuery("input#youtube_singleVideoID").val();
1930
+ if (feedID.indexOf('watch?v=') != -1) {
1931
+ feedID = feedID.replace(/\/$/, '');
1932
+ feedID = feedID.substr(feedID.lastIndexOf('=') + 1);
1933
+ var newfeedID = feedID;
1934
+ jQuery('#youtube_singleVideoID').val(newfeedID);
1935
+
1936
+ }
1937
+ });
1938
+
1939
+
1940
+ // END: Fix issues when people enter the full url instead of just the ID or Name. We'll truncate this at a later date.
1941
+
1942
+
1943
+ jQuery(".copyme").focus(function () {
1944
+
1945
+ var jQuerythis = jQuery(this);
1946
+ jQuerythis.select();
1947
+ // Work around Chrome's little problem
1948
+ jQuerythis.mouseup(function () {
1949
+ // Prevent further mouseup intervention
1950
+ jQuerythis.unbind("mouseup");
1951
+ return false;
1952
+ });
1953
+ });
1954
+
1955
+ }); //end document ready
1956
+
1957
+ // Like box/button Options Premium Content
1958
+ jQuery('#facebook-messages-selector').change(function () {
1959
+ if (jQuery("select#facebook-messages-selector").val() == "group" || jQuery("select#facebook-messages-selector").val() == "event" || jQuery("select#facebook-messages-selector").val() == "events") {
1960
+ jQuery('.main-like-box-wrap').hide();
1961
+ // alert(jQuery("select#facebook-messages-selector").val());
1962
+ }
1963
+ else {
1964
+ jQuery('.main-like-box-wrap').show();
1965
+ }
1966
+ });
1967
+
1968
+ // Carousel and Slideshow Premium Content
1969
+ jQuery('#facebook-messages-selector').change(function () {
1970
+ if (jQuery("select#facebook-messages-selector").val() == "album_photos" || jQuery("select#facebook-messages-selector").val() == "album_videos") {
1971
+ jQuery('.slideshow-wrap').show();
1972
+ }
1973
+ else {
1974
+ jQuery('.slideshow-wrap').hide();
1975
+ }
1976
+ });
1977
+ jQuery('#scrollhorz_or_carousel').change(function () {
1978
+ jQuery('.slider_carousel_wrap').toggle();
1979
+ });
1980
+ jQuery('#fts-slider').change(function () {
1981
+ jQuery('.slider_options_wrap').toggle();
1982
+ });
1983
+
1984
+ </script>
1985
+ <?php
1986
+ }
1987
+ }
1988
+ }//end class
admin/class-fts-system-info-page.php ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - System Info Page
4
+ *
5
+ * This page is used to get the details of WordPress install, Server Info and settings and Feed Them Social Settings.
6
+ *
7
+ * @package feedthemsocial
8
+ * @copyright Copyright (c) 2012-2018, SlickRemix
9
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+ * @since 1.0.0
11
+ */
12
+
13
+ namespace feedthemsocial;
14
+
15
+ /**
16
+ * Class FTS System Info Page
17
+ *
18
+ * @package feedthemsocial
19
+ * @since 1.9.6
20
+ */
21
+ class FTS_System_Info_Page extends feed_them_social_functions {
22
+
23
+ /**
24
+ * Construct
25
+ *
26
+ * Facebook Them System constructor.
27
+ *
28
+ * @since 1.9.6
29
+ */
30
+ public function __construct() {
31
+ }
32
+
33
+ /**
34
+ * Feed Them Sstem Info Page
35
+ *
36
+ * @since 1.9.6
37
+ */
38
+ public function feed_them_system_info_page() {
39
+ ?>
40
+ <div class="fts-help-admin-wrap"> <a class="buy-extensions-btn" href="https://www.slickremix.com/downloads/category/feed-them-social/" target="_blank">
41
+ <?php esc_html_e( 'Get Extensions Here!', 'feed-them-social' ); ?>
42
+ </a>
43
+ <h2>
44
+ <?php esc_html_e( 'System Info', 'feed-them-social' ); ?>
45
+ </h2>
46
+ <p>
47
+ <?php esc_html_e( 'Please click the box below and copy the report. You will need to paste this information along with your question in our', 'feed-them-social' ); ?>
48
+ <a href="https://www.slickremix.com/support/" target="_blank">
49
+ <?php esc_html_e( 'Support Forum', 'feed-them-social' ); ?>
50
+ </a>.
51
+ <?php esc_html_e( 'Ask your question then paste the copied text below it. To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'feed-them-social' ); ?>
52
+ </p>
53
+ <form action="<?php echo esc_url( admin_url( 'admin.php?page=fts-system-info-submenu-page' ) ); ?>" method="post" dir="ltr" >
54
+ <textarea readonly="readonly" onclick="this.focus();this.select()" id="system-info-textarea" name="fts-sysinfo" title="<?php esc_html_e( 'To copy the system info, click here then press Ctrl + C (PC) or Cmd + C (Mac).', 'feed-them-social' ); ?>">
55
+ ### Begin System Info ###
56
+ <?php
57
+ $theme_data = wp_get_theme();
58
+ $theme = $theme_data->Name . ' ' . $theme_data->Version;
59
+ ?>SITE_URL: <?php echo esc_html( site_url() ) . "\n"; ?>
60
+ Feed Them Social Version: <?php echo esc_html( FEED_THEM_SOCIAL_VERSION ) . "\n"; ?>
61
+
62
+ -- WordPress Configuration:
63
+ WordPress Version: <?php echo esc_html( get_bloginfo( 'version' ) ) . "\n"; ?>
64
+ Multisite: <?php echo is_multisite() ? 'Yes' . "\n" : 'No' . "\n"; ?>
65
+ Permalink Structure: <?php echo esc_html( get_option( 'permalink_structure' ) ) . "\n"; ?>
66
+ Active Theme: <?php echo esc_html( $theme ) . "\n"; ?>
67
+ PHP Memory Limit: <?php echo esc_html( ini_get( 'memory_limit' ) ) . "\n"; ?>
68
+ WP_DEBUG: <?php echo defined( 'WP_DEBUG' ) ? esc_html( WP_DEBUG ) ? 'Enabled' . "\n" : 'Disabled' . "\n" : 'Not set' . "\n"; ?>
69
+
70
+ -- Webserver Configuration:
71
+ PHP Version: <?php echo PHP_VERSION . "\n"; ?>
72
+ <?php $server_software = sanitize_key( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) ); ?>
73
+ Web Server Info: <?php echo esc_html( $server_software ) . "\n"; ?>
74
+
75
+ -- PHP Configuration:
76
+ Safe Mode: <?php echo ini_get( 'safe_mode' ) ? 'Yes' : "No\n"; ?>
77
+ Upload Max Size: <?php echo esc_html( ini_get( 'upload_max_filesize' ) ) . "\n"; ?>
78
+ Post Max Size: <?php echo esc_html( ini_get( 'post_max_size' ) ) . "\n"; ?>
79
+ Upload Max Filesize: <?php echo esc_html( ini_get( 'upload_max_filesize' ) ) . "\n"; ?>
80
+ Time Limit: <?php echo esc_html( ini_get( 'max_execution_time' ) ) . "\n"; ?>
81
+ Max Input Vars: <?php echo esc_html( ini_get( 'max_input_vars' ) ) . "\n"; ?>
82
+ Allow URL File Open: <?php echo ( ini_get( 'allow_url_fopen' ) ) ? esc_html( 'On (' . ini_get( 'display_errors' ) . ')' ) : 'N/A'; ?><?php echo "\n"; ?>
83
+ Display Erros: <?php echo ( ini_get( 'display_errors' ) ) ? esc_html( 'On (' . ini_get( 'display_errors' ) . ')' ) : 'N/A'; ?><?php echo "\n"; ?>
84
+
85
+ -- PHP Extensions:
86
+ FSOCKOPEN: <?php echo ( function_exists( 'fsockopen' ) ) ? 'Your server supports fsockopen.' : 'Your server does not support fsockopen.'; ?><?php echo "\n"; ?>
87
+ cURL: <?php echo ( function_exists( 'curl_init' ) ) ? 'Your server supports cURL.' : 'Your server does not support cURL.'; ?><?php echo "\n"; ?>
88
+
89
+ -- FTS Settings->Global Options: <?php $fts_cachetime = get_option( 'fts_clear_cache_developer_mode' ) ? get_option( 'fts_clear_cache_developer_mode' ) : '86400'; ?>
90
+
91
+ Cache time: <?php echo esc_html( $this->fts_cachetime_amount( $fts_cachetime ) ) . "\n"; ?>
92
+
93
+ -- Active Plugins:
94
+ <?php
95
+ $plugins = \get_plugins();
96
+ $active_plugins = get_option( 'active_plugins', array() );
97
+ foreach ( $plugins as $plugin_path => $plugin ) {
98
+ // If the plugin isn't active, don't show it.
99
+ if ( ! in_array( $plugin_path, $active_plugins, true ) ) {
100
+ continue;
101
+ }
102
+ echo esc_html( $plugin['Name'] ) . ': ' . esc_html( $plugin['Version'] ) . "\n";
103
+ }
104
+ if ( is_multisite() ) :
105
+ ?>
106
+
107
+ -- Network Active Plugins:
108
+
109
+ <?php
110
+ $plugins = \wp_get_active_network_plugins();
111
+ $active_plugins = get_site_option( 'active_sitewide_plugins', array() );
112
+
113
+ foreach ( $plugins as $plugin_path ) {
114
+ $plugin_base = plugin_basename( $plugin_path );
115
+
116
+ // If the plugin isn't active, don't show it.
117
+ if ( ! array_key_exists( $plugin_base, $active_plugins ) ) {
118
+ continue;
119
+ }
120
+
121
+ $plugin = get_plugin_data( $plugin_path );
122
+
123
+ echo esc_html( $plugin['Name'] ) . ' :' . esc_html( $plugin['Version'] ) . "\n";
124
+ }
125
+
126
+ endif;
127
+
128
+ $facebook_options = get_option( 'fts_facebook_custom_api_token' ) ? 'Yes' : 'No';
129
+ $twitter_options1 = get_option( 'fts_twitter_custom_consumer_key' ) ? 'Yes' : 'No';
130
+ $twitter_options2 = get_option( 'fts_twitter_custom_consumer_secret' ) ? 'Yes' : 'No';
131
+ $twitter_options3 = get_option( 'fts_twitter_custom_access_token' ) ? 'Yes' : 'No';
132
+ $twitter_options4 = get_option( 'fts_twitter_custom_access_token_secret' ) ? 'Yes' : 'No';
133
+ $instagram_options = get_option( 'fts_instagram_custom_api_token' ) ? 'Yes' : 'No';
134
+ $pinterest_token = get_option( 'fts_pinterest_custom_api_token' ) ? 'Yes' : 'No';
135
+
136
+ $fts_date_time_format = get_option( 'fts-date-and-time-format' ) ? get_option( 'fts-date-and-time-format' ) : 'No';
137
+ $fts_timezone = get_option( 'fts-timezone' ) ? get_option( 'fts-timezone' ) : 'No';
138
+
139
+ $fts_offset_post_limit = get_option( 'fb_count_offset' ) ? get_option( 'fb_count_offset' ) : 'None';
140
+ $fts_hide_offset_post_limit_notice = get_option( 'fb_hide_no_posts_message' ) ? 'No' : 'Yes';
141
+ $fts_fix_time_out = get_option( 'fts_curl_option' ) ? get_option( 'fts_curl_option' ) : 'No';
142
+
143
+ $fts_fix_twitter_time = get_option( 'fts_twitter_time_offset' ) ? get_option( 'fts_twitter_time_offset' ) : '';
144
+ $fts_disable_magnific_css = get_option( 'fts_fix_magnific' ) ? get_option( 'fts_fix_magnific' ) : '';
145
+
146
+ ?>
147
+
148
+ -- Custom Token or Keys added to Options Pages
149
+ -- You must have a custom token to use the feeds
150
+
151
+ <?php
152
+ if ( is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) {
153
+ $fb_reviews_token = get_option( 'fts_facebook_custom_api_token_biz' ) ? 'Yes' : 'No';
154
+ ?>
155
+ Facebook Reviews App Token: <?php echo esc_html( $fb_reviews_token ) . "\n"; } ?>
156
+ Facebook App Token: <?php echo esc_html( $facebook_options ) . "\n"; ?>
157
+ Twitter Consumer Key: <?php echo esc_html( $twitter_options1 ) . "\n"; ?>
158
+ Twitter Secret: <?php echo esc_html( $twitter_options2 ) . "\n"; ?>
159
+ Twitter Token: <?php echo esc_html( $twitter_options3 ) . "\n"; ?>
160
+ Twitter Token Secret: <?php echo esc_html( $twitter_options4 ) . "\n"; ?>
161
+ Pinterest Token: <?php echo esc_html( $pinterest_token ) . "\n"; ?>
162
+ Instagram: <?php echo esc_html( $instagram_options ) . "\n";
163
+ $youtube_options = get_option( 'youtube_custom_api_token' ) || get_option( 'youtube_custom_access_token' ) && get_option( 'youtube_custom_refresh_token' ) && get_option( 'youtube_custom_token_exp_time' ) ? 'Yes' : 'No';
164
+ $fts_fix_loadmore = get_option( 'fts_fix_loadmore' ) ? get_option( 'fts_fix_loadmore' ) : 'No';
165
+ $feed_them_social_premium_license_key = get_option( 'feed_them_social_premium_license_key' );
166
+ $fts_bar_license_key = get_option( 'fts_bar_license_key' );
167
+ $feed_them_carousel_premium_license_key = get_option( 'feed_them_carousel_premium_license_key' );
168
+ $feed_them_social_combined_streams_license_key = get_option( 'feed_them_social_combined_streams_license_key' );
169
+ $fb_hide_error_handler_message = get_option( 'fb_hide_error_handler_message' );
170
+ $fb_hide_images_in_posts = get_option( 'fb_hide_images_in_posts' );
171
+ ?>
172
+ YouTube: <?php echo esc_html( $youtube_options ) . "\n"; ?>
173
+
174
+ -- FaceBook & Twitter Date Format and Timezone
175
+
176
+ Date Format: <?php echo esc_html( $fts_date_time_format ) . "\n"; ?>
177
+ Timezone: <?php echo esc_html( $fts_timezone ) . "\n"; ?>
178
+
179
+ -- Hide Facebook Images in Posts:
180
+
181
+ Hide: <?php echo isset( $fb_hide_images_in_posts ) && 'yes' === $fb_hide_images_in_posts ? 'Yes' . "\n" : 'No' . "\n"; ?>
182
+
183
+ -- Hide Facebook Error Handler:
184
+
185
+ Hide: <?php echo isset( $fb_hide_error_handler_message ) && 'yes' === $fb_hide_error_handler_message ? 'Yes' . "\n" : 'No' . "\n"; ?>
186
+
187
+ -- Fix Twitter Time:
188
+
189
+ Fix: <?php echo isset( $fts_fix_twitter_time ) && 1 === $fts_fix_twitter_time ? 'Yes' . "\n" : 'No' . "\n"; ?>
190
+
191
+ -- Disable Magnific CSS:
192
+
193
+ Fix: <?php echo isset( $fts_disable_magnific_css ) && 1 === $fts_disable_magnific_css ? 'Yes' . "\n" : 'No' . "\n"; ?>
194
+
195
+ -- Fix Internal Server Error:
196
+ <?php if ( is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) || is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) || is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) || is_plugin_active( 'fts-bar/fts-bar.php' ) || is_plugin_active( 'feed-them-carousel-premium/feed-them-carousel-premium.php' ) ) { ?>
197
+
198
+ Fix: <?php echo isset( $fts_fix_time_out ) && 1 === $fts_fix_time_out ? 'Yes' . "\n" : 'No' . "\n"; ?>
199
+
200
+ -- Load More Options:
201
+
202
+ Override: <?php echo isset( $fts_fix_loadmore ) && 1 === $fts_fix_loadmore ? 'Yes' . "\n" : 'No' . "\n"; ?>
203
+
204
+ -- Premium Extensions:
205
+
206
+ <?php if ( is_plugin_active( 'feed-them-social-combined-streams/feed-them-social-combined-streams.php' ) ) { ?>
207
+ FTS Combined Streams: <?php echo isset( $feed_them_social_combined_streams_license_key ) && '' !== $feed_them_social_combined_streams_license_key ? 'Yes' . "\n" : 'No' . "\n"; } if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
208
+ Premium Active: <?php echo isset( $feed_them_social_premium_license_key ) && '' !== $feed_them_social_premium_license_key ? 'Yes' . "\n" : 'No' . "\n"; }if ( is_plugin_active( 'fts-bar/fts-bar.php' ) ) { ?>
209
+ FTS Bar Active: <?php echo isset( $fts_bar_license_key ) && '' !== $fts_bar_license_key ? 'Yes' . "\n" : 'No' . "\n"; }if ( is_plugin_active( 'feed-them-carousel-premium/feed-them-carousel-premium.php' ) ) { ?>
210
+ FTS Carousel Premium: <?php echo isset( $feed_them_carousel_premium_license_key ) && '' !== $feed_them_carousel_premium_license_key ? 'Yes' . "\n" : 'No' . "\n"; }if ( is_plugin_active( 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php' ) ) { ?>
211
+ Facebook Reviews Active: <?php echo isset( $fb_reviews_token ) && '' !== $fb_reviews_token ? 'Yes' . "\n" : 'No' . "\n"; }
212
+ }
213
+ ?>
214
+ ### End System Info ###</textarea>
215
+ <?php
216
+ // -- Pages or Posts with Shortcode(s).
217
+ // -- If you are using our shortcode in a widget you'll need to paste your shortcode in our support forum.
218
+ // COMMENTING OUT FOR NOW BECAUSE TO MUCH INFO FROM PEOPLES SITES ARE BEING ADDED TO OUR SUPPORT FORUMS.
219
+ // echo do_shortcode("[shortcodefinderSlick find='[fts']");
220
+ ?>
221
+ </form>
222
+ <a class="fts-settings-admin-slick-logo" href="https://www.slickremix.com/support/" target="_blank"></a> </div>
223
+ <?php
224
+ }
225
+
226
+ }//end class
admin/class-fts-twitter-options-page.php ADDED
@@ -0,0 +1,580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - Twitter Options Page
4
+ *
5
+ * This page is used to create the general options for Twitter Feeds
6
+ * including setting access tokens.
7
+ *
8
+ * @package feedthemsocial
9
+ * @copyright Copyright (c) 2012-2018, SlickRemix
10
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
+ * @since 1.0.0
12
+ */
13
+
14
+ namespace feedthemsocial;
15
+
16
+ /**
17
+ * Class FTS Twitter Options Page
18
+ *
19
+ * @package feedthemsocial
20
+ * @since 1.9.6
21
+ */
22
+ class FTS_Twitter_Options_Page {
23
+
24
+
25
+ /**
26
+ * Construct
27
+ *
28
+ * Twitter Style Options Page constructor.
29
+ *
30
+ * @since 1.9.6
31
+ */
32
+ public function __construct() {
33
+ }
34
+
35
+ /**
36
+ * Feed Them Twitter Options Page
37
+ *
38
+ * @since 1.9.6
39
+ */
40
+ public function feed_them_twitter_options_page() {
41
+ ?>
42
+ <div class="feed-them-social-admin-wrap">
43
+ <h1>
44
+ <?php echo esc_html( 'Twitter Feed Options', 'feed-them-social' ); ?>
45
+ </h1>
46
+ <div class="use-of-plugin">
47
+ <?php echo esc_html( 'Change the color of your twitter feed and more using the options below.', 'feed-them-social' ); ?>
48
+ </div>
49
+ <!-- custom option for padding -->
50
+ <form method="post" class="fts-twitter-feed-options-form" action="options.php">
51
+ <?php
52
+ $fts_fb_options_nonce = wp_create_nonce( 'fts-twitter-options-page-nonce' );
53
+
54
+ if ( wp_verify_nonce( $fts_fb_options_nonce, 'fts-twitter-options-page-nonce' ) ) {
55
+
56
+ // get our registered settings from the fts functions!
57
+ settings_fields( 'fts-twitter-feed-style-options' );
58
+
59
+ $twitter_full_width = get_option( 'twitter_full_width' );
60
+ $twitter_allow_videos = get_option( 'twitter_allow_videos' );
61
+ $twitter_allow_shortlink_conversion = get_option( 'twitter_allow_shortlink_conversion' );
62
+ $twitter_show_follow_btn = get_option( 'twitter_show_follow_btn' );
63
+ $twitter_show_follow_count = get_option( 'twitter_show_follow_count' );
64
+ $twitter_show_follow_btn_where = get_option( 'twitter_show_follow_btn_where' );
65
+ $fts_twitter_hide_images_in_posts = get_option( 'fts_twitter_hide_images_in_posts' );
66
+
67
+ $fts_twitter_custom_consumer_key = get_option( 'fts_twitter_custom_consumer_key' );
68
+ $fts_twitter_custom_consumer_secret = get_option( 'fts_twitter_custom_consumer_secret' );
69
+
70
+ $test_fts_twitter_custom_consumer_key = '35mom6axGlf60ppHJYz1dsShc';
71
+ $test_fts_twitter_custom_consumer_secret = '7c2TJvUT7lS2EkCULpK6RGHrgXN1BA4oUi396pQEdRj3OEq5QQ';
72
+
73
+ $fts_twitter_custom_consumer_key = isset( $fts_twitter_custom_consumer_key ) && '' !== $fts_twitter_custom_consumer_key ? $fts_twitter_custom_consumer_key : $test_fts_twitter_custom_consumer_key;
74
+ $fts_twitter_custom_consumer_secret = isset( $fts_twitter_custom_consumer_secret ) && '' !== $fts_twitter_custom_consumer_secret ? $fts_twitter_custom_consumer_secret : $test_fts_twitter_custom_consumer_secret;
75
+
76
+ $fts_twitter_custom_access_token = get_option( 'fts_twitter_custom_access_token' );
77
+ $fts_twitter_custom_access_token_secret = get_option( 'fts_twitter_custom_access_token_secret' );
78
+
79
+ if ( isset( $_GET['page'] ) && 'fts-twitter-feed-styles-submenu-page' === $_GET['page'] ) {
80
+
81
+ include WP_CONTENT_DIR . '/plugins/feed-them-social/feeds/twitter/twitteroauth/twitteroauth.php';
82
+
83
+ $test_connection = new TwitterOAuthFTS(
84
+ // Consumer Key!
85
+ $fts_twitter_custom_consumer_key,
86
+ // Consumer Secret!
87
+ $fts_twitter_custom_consumer_secret,
88
+ // Access Token!
89
+ $fts_twitter_custom_access_token,
90
+ // Access Token Secret!
91
+ $fts_twitter_custom_access_token_secret
92
+ );
93
+
94
+ $fetched_tweets = $test_connection->get(
95
+ 'statuses/user_timeline',
96
+ array(
97
+ 'screen_name' => 'twitter',
98
+ 'count' => '1',
99
+ )
100
+ );
101
+
102
+ // TESTING AREA!
103
+ // $fetched_tweets = $test_connection->get(
104
+ // 'statuses/user_timeline',
105
+ // array(
106
+ // 'tweet_mode' => 'extended',
107
+ // 'screen_name' => 'slickremix',
108
+ // 'count' => '1',
109
+ // )
110
+ // );
111
+ // echo '<pre>';
112
+ // print_r($fetched_tweets);
113
+ // echo '</pre>';
114
+ // END TESTING!
115
+ }
116
+ ?>
117
+ <div class="feed-them-social-admin-input-wrap" style="padding-top: 0px">
118
+ <div class="fts-title-description-settings-page">
119
+ <h3>
120
+ <?php echo esc_html( 'Twitter API Token', 'feed-them-social' ); ?>
121
+ </h3>
122
+ <p>
123
+ <?php echo esc_html( 'This is required to make the feed work. Simply click the button below and it will connect to your Twitter account to get an access token and access token secret, and it will return it in the input below. Then just click the save button and you will now be able to generate your Twitter feed.', 'feed-them-social' ); ?>
124
+ </p>
125
+ <p>
126
+ <?php
127
+ echo sprintf(
128
+ esc_html( '%1$sLogin and get my Access Tokens%2$s', 'feed-them-gallery' ),
129
+ '<a href="' . esc_url( 'https://www.slickremix.com/get-twitter-token/?redirect_url=' . admin_url( 'admin.php?page=fts-twitter-feed-styles-submenu-page' ) . '&scope=manage_pages' ) . '" class="fts-twitter-get-access-token">',
130
+ '</a>'
131
+ );
132
+ ?>
133
+ </p>
134
+ </div>
135
+ <a href="<?php echo esc_url( 'mailto:support@slickremix.com' ); ?>" target="_blank" class="fts-admin-button-no-work"><?php echo esc_html( 'Button not working?', 'feed-them-social' ); ?></a>
136
+ </div>
137
+ <div class="fts-clear"></div>
138
+ <div class="feed-them-social-admin-input-wrap">
139
+ <?php
140
+ $fts_twitter_custom_consumer_key = get_option( 'fts_twitter_custom_consumer_key' );
141
+ $fts_twitter_custom_consumer_secret = get_option( 'fts_twitter_custom_consumer_secret' );
142
+ $extra_keys = empty( $fts_twitter_custom_consumer_key ) && empty( $fts_twitter_custom_consumer_secret ) ? 'display:none' : '';
143
+ ?>
144
+
145
+ <div class="fts-twitter-add-all-keys-click-option">
146
+ <label for="fts-custom-tokens-twitter">
147
+ <input type="checkbox" id="fts-custom-tokens-twitter" name="fts_twitter_custom_tokens" value="1" <?php echo checked( '1', empty( trim( $extra_keys ) ) ); ?>> <?php echo esc_html( 'Add your own tokens?', 'feed-them-social' ); ?>
148
+ </label>
149
+ </div>
150
+
151
+ <div class="twitter-extra-keys" style="<?php echo esc_attr( $extra_keys ); ?>" >
152
+ <div class="twitter-extra-keys-text">
153
+ <?php
154
+ echo sprintf(
155
+ esc_html( 'Learn how to manually create the Consumer Key/Secret and the Access Token/Secret %1$shere%2$s.', 'feed-them-gallery' ),
156
+ '<a href="' . esc_url( 'https://www.slickremix.com/docs/how-to-get-api-keys-and-tokens-for-twitter/' ) . '" target="_blank">',
157
+ '</a>'
158
+ );
159
+ ?>
160
+ </div>
161
+ <div class="feed-them-social-admin-input-wrap">
162
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
163
+ <?php echo esc_html( 'Consumer Key (API Key)', 'feed-them-social' ); ?>
164
+ </div>
165
+ <input type="text" name="fts_twitter_custom_consumer_key" class="feed-them-social-admin-input" id="fts_twitter_custom_consumer_key" value="<?php echo esc_attr( get_option( 'fts_twitter_custom_consumer_key' ) ); ?>"/>
166
+ <div class="fts-clear"></div>
167
+ </div>
168
+ <div class="feed-them-social-admin-input-wrap">
169
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
170
+ <?php echo esc_html( 'Consumer Secret (API Secret)', 'feed-them-social' ); ?>
171
+ </div>
172
+ <input type="text" name="fts_twitter_custom_consumer_secret" class="feed-them-social-admin-input" id="fts_twitter_custom_consumer_secret" value="<?php echo esc_attr( get_option( 'fts_twitter_custom_consumer_secret' ) ); ?>"/>
173
+ <div class="fts-clear"></div>
174
+ </div>
175
+ </div>
176
+
177
+ <script>
178
+ jQuery(document).ready(function ($) {
179
+ jQuery('#fts-custom-tokens-twitter').click(function () {
180
+ jQuery(".twitter-extra-keys").toggle();
181
+ });
182
+ });
183
+ </script>
184
+ <?php
185
+ $oath_token = isset( $_GET['oauth_token'] ) && ! empty( $_GET['oauth_token'] ) ? sanitize_text_field( wp_unslash( $_GET['oauth_token'] ) ) : get_option( 'fts_twitter_custom_access_token' );
186
+ $oauth_token_secret = isset( $_GET['oauth_token_secret'] ) && ! empty( $_GET['oauth_token_secret'] ) ? sanitize_text_field( wp_unslash( $_GET['oauth_token_secret'] ) ) : get_option( 'fts_twitter_custom_access_token_secret' );
187
+ ?>
188
+ <div class="feed-them-social-admin-input-wrap">
189
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
190
+ <?php echo esc_html( 'Access Token', 'feed-them-social' ); ?>
191
+ </div>
192
+ <input type="text" name="fts_twitter_custom_access_token" class="feed-them-social-admin-input" id="fts_twitter_custom_access_token" value="<?php echo esc_attr( $oath_token ); ?>"/>
193
+ <div class="fts-clear"></div>
194
+ </div>
195
+
196
+ <div class="feed-them-social-admin-input-wrap">
197
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
198
+ <?php echo esc_html( 'Access Token Secret', 'feed-them-social' ); ?>
199
+ </div>
200
+ <input type="text" name="fts_twitter_custom_access_token_secret" class="feed-them-social-admin-input" id="fts_twitter_custom_access_token_secret" value="<?php echo esc_attr( $oauth_token_secret ); ?>"/>
201
+ <div class="fts-clear"></div>
202
+ </div>
203
+
204
+ <div class="feed-them-social-admin-input-wrap">
205
+ <?php
206
+ // && !empty($test_fts_twitter_custom_access_token) && !empty($test_fts_twitter_custom_access_token_secret)!
207
+ if ( ! empty( $fts_twitter_custom_access_token_secret ) && ! empty( $fts_twitter_custom_access_token_secret ) ) {
208
+ if ( 200 !== $test_connection->http_code || isset( $fetched_tweets->errors ) ) {
209
+ echo sprintf(
210
+ esc_html( '%1$sOh No, something\'s wrong. ', 'feed-them-gallery' ),
211
+ '<div class="fts-failed-api-token">'
212
+ );
213
+ foreach ( $fetched_tweets->errors as $error ) {
214
+ echo sprintf(
215
+ esc_html( '%1$s%2$s%3$s You may have entered in the Access information incorrectly please re-enter and try again.%4$s', 'feed-them-gallery' ),
216
+ '<strong>',
217
+ esc_html( $error->message ),
218
+ '</strong>',
219
+ '</div>'
220
+ );
221
+ }
222
+ } else {
223
+ echo sprintf(
224
+ esc_html( '%1$sYou are using our Default Access tokens for testing purposes. Generate your shortcode on the %2$sSettings Page%3$s to test your feed, but remember to add your own tokens after testing as the default tokens will not always work.%4$s', 'feed-them-gallery' ),
225
+ '<div class="fts-successful-api-token">',
226
+ '<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' ) . '">',
227
+ '</a>',
228
+ '</div>'
229
+ );
230
+ }
231
+ } else {
232
+ echo sprintf(
233
+ esc_html( '%1$sYou are using our Default Access tokens for testing purposes. Generate your shortcode on the %2$sSettings Page%3$s to test your feed, but remember to add your own tokens after testing as the default tokens will not always work.%4$s', 'feed-them-gallery' ),
234
+ '<div class="fts-successful-api-token">',
235
+ '<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' ) . '">',
236
+ '</a>',
237
+ '</div>'
238
+ );
239
+ }
240
+ ?>
241
+ </div>
242
+
243
+ <div class="fts-clear"></div>
244
+ </div>
245
+
246
+
247
+ <div class="feed-them-social-admin-input-wrap">
248
+ <div class="fts-title-description-settings-page">
249
+ <h3>
250
+ <?php echo esc_html( 'Follow Button Options', 'feed-them-social' ); ?>
251
+ </h3>
252
+ <?php echo esc_html( 'This will only show on regular feeds not combined feeds.', 'feed-them-social' ); ?>
253
+ </div>
254
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
255
+ <?php echo esc_html( 'Show Follow Count', 'feed-them-social' ); ?>
256
+ </div>
257
+ <select name="twitter_show_follow_count" id="twitter-show-follow-count" class="feed-them-social-admin-input">
258
+ <option <?php echo selected( $twitter_show_follow_count, 'no', false ); ?> value=" <?php echo esc_attr( 'no' ); ?>">
259
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
260
+ </option>
261
+ <option <?php echo selected( $twitter_show_follow_count, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
262
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
263
+ </option>
264
+ </select>
265
+ <div class="fts-clear"></div>
266
+ </div>
267
+ <!--/fts-twitter-feed-styles-input-wrap-->
268
+
269
+ <div class="feed-them-social-admin-input-wrap">
270
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
271
+ <?php echo esc_html( 'Show Follow Button', 'feed-them-social' ); ?>
272
+ </div>
273
+ <select name="twitter_show_follow_btn" id="twitter-show-follow-btn" class="feed-them-social-admin-input">
274
+ <option <?php echo selected( $twitter_show_follow_btn, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
275
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
276
+ </option>
277
+ <option <?php echo selected( $twitter_show_follow_btn, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
278
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
279
+ </option>
280
+ </select>
281
+ <div class="fts-clear"></div>
282
+ </div>
283
+ <!--/fts-twitter-feed-styles-input-wrap-->
284
+
285
+ <div class="feed-them-social-admin-input-wrap">
286
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
287
+ <?php echo esc_html( 'Placement of Follow Button', 'feed-them-social' ); ?>
288
+ </div>
289
+ <select name="twitter_show_follow_btn_where" id="twitter-show-follow-btn-where" class="feed-them-social-admin-input">
290
+ <option>
291
+ <?php echo esc_html( 'Please Select Option', 'feed-them-social' ); ?>
292
+ </option>
293
+ <option <?php echo selected( $twitter_show_follow_btn_where, 'twitter-follow-above', false ); ?> value="<?php echo esc_attr( 'twitter-follow-above' ); ?>">
294
+ <?php echo esc_html( 'Show Above Feed', 'feed-them-social' ); ?>
295
+ </option>
296
+ <option <?php echo selected( $twitter_show_follow_btn_where, 'twitter-follow-below', false ); ?> value="<?php echo esc_attr( 'twitter-follow-below' ); ?>">
297
+ <?php echo esc_html( 'Show Below Feed', 'feed-them-social' ); ?>
298
+ </option>
299
+ </select>
300
+ <div class="fts-clear"></div>
301
+ </div>
302
+ <!--/fts-twitter-feed-styles-input-wrap-->
303
+
304
+ <div class="feed-them-social-admin-input-wrap">
305
+ <div class="fts-title-description-settings-page">
306
+ <h3>
307
+ <?php echo esc_html( 'Video Player Options', 'feed-them-social' ); ?>
308
+ </h3>
309
+ </div>
310
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
311
+ <?php echo esc_html( 'Show videos', 'feed-them-social' ); ?>
312
+ </div>
313
+ <select name="twitter_allow_videos" id="twitter-allow-videos" class="feed-them-social-admin-input">
314
+ <option <?php echo selected( $twitter_allow_videos, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
315
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
316
+ </option>
317
+ <option <?php echo selected( $twitter_allow_videos, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
318
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
319
+ </option>
320
+ </select>
321
+ <div class="fts-clear"></div>
322
+ </div>
323
+ <!--/fts-twitter-feed-styles-input-wrap-->
324
+
325
+ <div class="feed-them-social-admin-input-wrap" style="display: none">
326
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
327
+ <?php
328
+ echo sprintf(
329
+ esc_html( 'Convert shortlinks for video%1$sLike bitly etc. May slow load time slightly%2$s.', 'feed-them-gallery' ),
330
+ '<br/><small>',
331
+ '</small>'
332
+ );
333
+ ?>
334
+ </div>
335
+ <select name="twitter_allow_shortlink_conversion" id="twitter-allow-shortlink-conversion" class="feed-them-social-admin-input">
336
+ <option
337
+ <?php echo selected( $twitter_allow_shortlink_conversion, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
338
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
339
+ </option>
340
+ <option <?php echo selected( $twitter_allow_shortlink_conversion, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
341
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
342
+ </option>
343
+ </select>
344
+ <div class="fts-clear"></div>
345
+ </div>
346
+ <!--/fts-twitter-feed-styles-input-wrap-->
347
+
348
+ <div class="feed-them-social-admin-input-wrap">
349
+ <div class="fts-title-description-settings-page">
350
+ <h3>
351
+ <?php echo esc_html( 'Profile Photo Option', 'feed-them-social' ); ?>
352
+ </h3>
353
+ </div>
354
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
355
+ <?php echo esc_html( 'Hide Profile Photo', 'feed-them-social' ); ?>
356
+ </div>
357
+ <select name="twitter_full_width" id="twitter-full-width" class="feed-them-social-admin-input">
358
+ <option
359
+ <?php echo selected( $twitter_full_width, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
360
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
361
+ </option>
362
+ <option <?php echo selected( $twitter_full_width, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
363
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
364
+ </option>
365
+ </select>
366
+ <div class="fts-clear"></div>
367
+ </div>
368
+ <!--/fts-twitter-feed-styles-input-wrap-->
369
+
370
+ <div class="feed-them-social-admin-input-wrap">
371
+ <div class="fts-title-description-settings-page">
372
+ <h3>
373
+ <?php echo esc_html( 'Style Options', 'feed-them-social' ); ?>
374
+ </h3>
375
+ </div>
376
+
377
+ <div class="feed-them-social-admin-input-wrap">
378
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
379
+ <?php echo esc_html( 'Hide Images in Posts', 'feed-them-social' ); ?>
380
+ </div>
381
+ <select name="fts_twitter_hide_images_in_posts" id="fts_twitter_hide_images_in_posts" class="feed-them-social-admin-input">
382
+ <option value="">
383
+ <?php echo esc_html( 'Please Select Option', 'feed-them-social' ); ?>
384
+ </option>
385
+ <option <?php echo selected( $fts_twitter_hide_images_in_posts, 'no', false ); ?> value="<?php echo esc_attr( 'no' ); ?>">
386
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
387
+ </option>
388
+ <option <?php echo selected( $fts_twitter_hide_images_in_posts, 'yes', false ); ?> value="<?php echo esc_attr( 'yes' ); ?>">
389
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
390
+ </option>
391
+ </select>
392
+ <div class="fts-clear"></div>
393
+ </div>
394
+ <!--/fts-twitter-feed-styles-input-wrap-->
395
+
396
+ <div class="feed-them-social-admin-input-wrap">
397
+ <div class="feed-them-social-admin-input-label">
398
+ <?php echo esc_html( 'Max-width for Feed Images', 'feed-them-social' ); ?>
399
+ </div>
400
+ <input type="text" name="twitter_max_image_width" class="feed-them-social-admin-input" placeholder="500px" value="<?php echo esc_attr( get_option( 'twitter_max_image_width' ) ); ?>"/>
401
+ <div class="fts-clear"></div>
402
+ </div>
403
+ <!--/fts-twitter-feed-styles-input-wrap-->
404
+
405
+ <div class="feed-them-social-admin-input-wrap">
406
+ <div class="feed-them-social-admin-input-label fts-twitter-text-size-label">
407
+ <?php echo esc_html( 'Feed Description Text Size', 'feed-them-social' ); ?>
408
+ </div>
409
+ <input type="text" name="twitter_text_size" class="feed-them-social-admin-input twitter-text-size-input" id="twitter-text-size-input" placeholder="12px" value="<?php echo esc_attr( get_option( 'twitter_text_size' ) ); ?>"/>
410
+ <div class="fts-clear"></div>
411
+ </div>
412
+ <!--/fts-twitter-feed-styles-input-wrap-->
413
+
414
+ <div class="feed-them-social-admin-input-wrap">
415
+ <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
416
+ <?php echo esc_html( 'Feed Text Color', 'feed-them-social' ); ?>
417
+ </div>
418
+ <input type="text" name="twitter_text_color" class="feed-them-social-admin-input twitter-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-text-color-input" placeholder="#222" value="<?php echo esc_attr( get_option( 'twitter_text_color' ) ); ?>"/>
419
+ <div class="fts-clear"></div>
420
+ </div>
421
+ <!--/fts-twitter-feed-styles-input-wrap-->
422
+
423
+ <div class="feed-them-social-admin-input-wrap">
424
+ <div class="feed-them-social-admin-input-label fts-twitter-link-color-label">
425
+ <?php echo esc_html( 'Feed Link Color', 'feed-them-social' ); ?>
426
+ </div>
427
+ <input type="text" name="twitter_link_color" class="feed-them-social-admin-input twitter-link-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-link-color-input" placeholder="#222" value="<?php echo esc_attr( get_option( 'twitter_link_color' ) ); ?>"/>
428
+ <div class="fts-clear"></div>
429
+ </div>
430
+ <!--/fts-twitter-feed-styles-input-wrap-->
431
+
432
+ <div class="feed-them-social-admin-input-wrap">
433
+ <div class="feed-them-social-admin-input-label fts-twitter-link-color-hover-label">
434
+ <?php echo esc_html( 'Feed Link Color Hover', 'feed-them-social' ); ?>
435
+ </div>
436
+ <input type="text" name="twitter_link_color_hover" class="feed-them-social-admin-input twitter-link-color-hover-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-link-color-hover-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'twitter_link_color_hover' ) ); ?>"/>
437
+ <div class="fts-clear"></div>
438
+ </div>
439
+ <!--/fts-twitter-feed-styles-input-wrap-->
440
+
441
+ <div class="feed-them-social-admin-input-wrap">
442
+ <div class="feed-them-social-admin-input-label fts-twitter-feed-width-label">
443
+ <?php echo esc_html( 'Feed Width', 'feed-them-social' ); ?>
444
+ </div>
445
+ <input type="text" name="twitter_feed_width" class="feed-them-social-admin-input twitter-feed-width-input" id="twitter-feed-width-input" placeholder="500px" value="<?php echo esc_attr( get_option( 'twitter_feed_width' ) ); ?>"/>
446
+ <div class="fts-clear"></div>
447
+ </div>
448
+ <!--/fts-twitter-feed-styles-input-wrap-->
449
+
450
+ <div class="feed-them-social-admin-input-wrap">
451
+ <div class="feed-them-social-admin-input-label fts-twitter-feed-margin-label">
452
+ <?php
453
+ echo sprintf(
454
+ esc_html( 'Feed Margin %1$sTo center feed type auto%2$s', 'feed-them-gallery' ),
455
+ '<br/><small>',
456
+ '</small>'
457
+ );
458
+ ?>
459
+ </div>
460
+ <input type="text" name="twitter_feed_margin" class="feed-them-social-admin-input twitter-feed-margin-input" id="twitter-feed-margin-input" placeholder="10px" value="<?php echo esc_attr( get_option( 'twitter_feed_margin' ) ); ?>"/>
461
+ <div class="fts-clear"></div>
462
+ </div>
463
+ <!--/fts-twitter-feed-styles-input-wrap-->
464
+
465
+ <div class="feed-them-social-admin-input-wrap">
466
+ <div class="feed-them-social-admin-input-label fts-twitter-feed-padding-label">
467
+ <?php echo esc_html( 'Feed Padding', 'feed-them-social' ); ?>
468
+ </div>
469
+ <input type="text" name="twitter_feed_padding" class="feed-them-social-admin-input twitter-feed-padding-input" id="twitter-feed-padding-input" placeholder="10px" value="<?php echo esc_attr( get_option( 'twitter_feed_padding' ) ); ?>"/>
470
+ <div class="fts-clear"></div>
471
+ </div>
472
+ <!--/fts-twitter-feed-styles-input-wrap-->
473
+
474
+ <div class="feed-them-social-admin-input-wrap">
475
+ <div class="feed-them-social-admin-input-label fts-twitter-feed-background-color-label">
476
+ <?php echo esc_html( 'Feed Background Color', 'feed-them-social' ); ?>
477
+ </div>
478
+ <input type="text" name="twitter_feed_background_color" class="feed-them-social-admin-input twitter-feed-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-feed-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'twitter_feed_background_color' ) ); ?>"/>
479
+ <div class="fts-clear"></div>
480
+ </div>
481
+ <!--/fts-twitter-feed-styles-input-wrap-->
482
+
483
+ <div class="feed-them-social-admin-input-wrap">
484
+ <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
485
+ <?php echo esc_html( 'Feed Border Bottom Color', 'feed-them-social' ); ?>
486
+ </div>
487
+ <input type="text" name="twitter_border_bottom_color" class="feed-them-social-admin-input twitter-border-bottom-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-border-bottom-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'twitter_border_bottom_color' ) ); ?>"/>
488
+ <div class="fts-clear"></div>
489
+ </div>
490
+ <!--/fts-twitter-feed-styles-input-wrap-->
491
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
492
+
493
+ <div class="feed-them-social-admin-input-wrap">
494
+ <div class="fts-title-description-settings-page">
495
+ <h3>
496
+ <?php echo esc_html( 'Grid Styles', 'feed-them-social' ); ?>
497
+ </h3>
498
+ </div>
499
+ <div class="feed-them-social-admin-input-label fts-fb-grid-posts-background-color-label">
500
+ <?php echo esc_html( 'Posts Background Color', 'feed-them-social' ); ?>
501
+ </div>
502
+ <input type="text" name="twitter_grid_posts_background_color" class="feed-them-social-admin-input fb-grid-posts-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-grid-posts-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'twitter_grid_posts_background_color' ) ); ?>"/>
503
+ <div class="fts-clear"></div>
504
+ </div>
505
+ <!--/fts-twitter-feed-styles-input-wrap-->
506
+
507
+ <div class="feed-them-social-admin-input-wrap">
508
+ <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
509
+ <?php echo esc_html( 'Border Bottom Color', 'feed-them-social' ); ?>
510
+ </div>
511
+ <input type="text" name="twitter_grid_border_bottom_color" class="feed-them-social-admin-input fb-border-bottom-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-border-bottom-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'twitter_grid_border_bottom_color' ) ); ?>"/>
512
+ <div class="fts-clear"></div>
513
+ </div>
514
+ <!--/fts-twitter-feed-styles-input-wrap-->
515
+
516
+ <div class="feed-them-social-admin-input-wrap">
517
+ <div class="fts-title-description-settings-page">
518
+ <h3>
519
+ <?php echo esc_html( 'Load More Button Styles & Options', 'feed-them-social' ); ?>
520
+ </h3>
521
+ </div>
522
+ <div class="feed-them-social-admin-input-wrap">
523
+ <div class="feed-them-social-admin-input-label fts-fb-loadmore-background-color-label">
524
+ <?php echo esc_html( 'Button Color', 'feed-them-social' ); ?>
525
+ </div>
526
+ <input type="text" name="twitter_loadmore_background_color" class="feed-them-social-admin-input fb-loadmore-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-loadmore-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'twitter_loadmore_background_color' ) ); ?>"/>
527
+ <div class="fts-clear"></div>
528
+ </div>
529
+ <!--/fts-twitter-feed-styles-input-wrap-->
530
+
531
+ <div class="feed-them-social-admin-input-wrap">
532
+ <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
533
+ <?php echo esc_html( 'Text Color', 'feed-them-social' ); ?>
534
+ </div>
535
+ <input type="text" name="twitter_loadmore_text_color" class="feed-them-social-admin-input fb-loadmore-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="twitter-loadmore-text-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'twitter_loadmore_text_color' ) ); ?>"/>
536
+ <div class="fts-clear"></div>
537
+ </div>
538
+ <!--/fts-twitter-feed-styles-input-wrap-->
539
+
540
+ <div class="feed-them-social-admin-input-wrap">
541
+ <div class="feed-them-social-admin-input-label">
542
+ <?php echo esc_html( '"Load More" Text', 'feed-them-social' ); ?>
543
+ </div>
544
+ <input type="text" name="twitter_load_more_text" class="feed-them-social-admin-input" id="twitter_load_more_text" placeholder="Load More" value="<?php echo esc_attr( get_option( 'twitter_load_more_text' ) ); ?>"/>
545
+ <div class="clear"></div>
546
+ </div>
547
+ <!--/fts-twitter-feed-styles-input-wrap-->
548
+
549
+ <div class="feed-them-social-admin-input-wrap">
550
+ <div class="feed-them-social-admin-input-label">
551
+ <?php echo esc_html( '"No More Tweets" Text', 'feed-them-social' ); ?>
552
+ </div>
553
+ <input type="text" name="twitter_no_more_tweets_text" class="feed-them-social-admin-input" id="twitter_no_more_tweets_text" placeholder="No More Photos" value="<?php echo esc_attr( get_option( 'twitter_no_more_tweets_text' ) ); ?>"/>
554
+ <div class="clear"></div>
555
+ </div>
556
+ <!--/fts-twitter-feed-styles-input-wrap-->
557
+
558
+ <div class="feed-them-social-admin-input-wrap" style="display: none;">
559
+ <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
560
+ <?php
561
+ echo sprintf(
562
+ esc_html( 'Fix Post Count %1$sType 2 or 3 if your feed is skipping posts when using the loadmore option.%2$s', 'feed-them-gallery' ),
563
+ '<br/><small>',
564
+ '</small>'
565
+ );
566
+ ?>
567
+ </div>
568
+ <input type="text" name="twitter_replies_offset" class="feed-them-social-admin-input" id="twitter-replies-offset" placeholder="1" value="<?php echo esc_attr( get_option( 'twitter_replies_offset' ) ); ?>"/>
569
+ <div class="fts-clear"></div>
570
+ </div>
571
+ <!--/fts-twitter-feed-styles-input-wrap-->
572
+ <?php } ?>
573
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php echo esc_html( 'Save All Changes' ); ?>"/>
574
+ <?php } ?>
575
+ </form>
576
+ </div>
577
+ <!--/feed-them-social-admin-wrap-->
578
+ <?php
579
+ }
580
+ }//end class
admin/class-fts-youtube-options-page.php ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Feed Them Social - Youtube Options Page
4
+ *
5
+ * This page is used to create the general options for Youtube Feeds
6
+ * including setting access tokens.
7
+ *
8
+ * @package feedthemsocial
9
+ * @copyright Copyright (c) 2012-2018, SlickRemix
10
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
+ * @since 1.0.0
12
+ */
13
+
14
+ namespace feedthemsocial;
15
+
16
+ /**
17
+ * Class FTS Youtube Options Page
18
+ *
19
+ * @package feedthemsocial
20
+ */
21
+ class FTS_Youtube_Options_Page {
22
+
23
+
24
+ /**
25
+ * Construct
26
+ *
27
+ * Youtube Style Options Page constructor.
28
+ *
29
+ * @since 1.9.6
30
+ */
31
+ public function __construct() { }
32
+
33
+ /**
34
+ * Feed Them Youtube Option Page
35
+ *
36
+ * @since 1.9.6
37
+ */
38
+ public function feed_them_youtube_options_page() {
39
+ $fts_functions = new feed_them_social_functions();
40
+ $fts_youtube_show_follow_btn = get_option( 'youtube_show_follow_btn' );
41
+ $fts_youtube_show_follow_btn_where = get_option( 'youtube_show_follow_btn_where' );
42
+
43
+ ?>
44
+ <div class="feed-them-social-admin-wrap">
45
+ <h1>
46
+ <?php echo esc_html( 'Feed Options', 'feed-them-social' ); ?>
47
+ </h1>
48
+ <div class="use-of-plugin">
49
+ <?php echo esc_html( 'Add a follow button and position it using the options below. This option will not work for combined feeds.', 'feed-them-social' ); ?>
50
+ </div>
51
+
52
+ <!-- custom option for padding -->
53
+ <form method="post" class="fts-youtube-feed-options-form" action="options.php">
54
+ <?php
55
+ $fts_fb_options_nonce = wp_create_nonce( 'fts-youtube-options-page-nonce' );
56
+
57
+ if ( wp_verify_nonce( $fts_fb_options_nonce, 'fts-youtube-options-page-nonce' ) ) {
58
+
59
+ settings_fields( 'fts-youtube-feed-style-options' );
60
+ $youtube_api_key = get_option( 'youtube_custom_api_token' );
61
+ $youtube_access_token = get_option( 'youtube_custom_access_token' );
62
+ if ( isset( $youtube_api_key ) && ! empty( $youtube_api_key ) ) {
63
+ $youtube_api_key_or_token = 'key=' . $youtube_api_key . '';
64
+ } elseif ( isset( $youtube_api_key ) && empty( $youtube_api_key ) && isset( $youtube_access_token ) && ! empty( $youtube_access_token ) ) {
65
+ $youtube_api_key_or_token = 'access_token=' . $youtube_access_token . '';
66
+ } else {
67
+ $youtube_api_key_or_token = '';
68
+ }
69
+
70
+ $youtube_user_id_data = esc_url_raw( 'https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=slickremix&' . $youtube_api_key_or_token );
71
+ // Get Data for Youtube!
72
+ $response = wp_remote_fopen( $youtube_user_id_data );
73
+ // Error Check!
74
+ $test_app_token_response = json_decode( $response );
75
+
76
+ ?>
77
+
78
+ <div class="feed-them-social-admin-input-wrap" style="padding-top: 0">
79
+ <div class="fts-title-description-settings-page">
80
+ <h3>
81
+ <?php echo esc_html( 'YouTube API Key', 'feed-them-social' ); ?>
82
+ </h3>
83
+ <p><?php echo esc_html( 'This is required to make the feed work. Simply click the button below and it will connect to your YouTube account to get an access token and access token secret, and it will return it in the input below. Then just click the save button and you will now be able to generate your YouTube feed.', 'feed-them-social' ); ?>
84
+ </p>
85
+ <p>
86
+ <?php
87
+ echo sprintf(
88
+ esc_html( '%1$sLogin and get my Access Token (API key)%2$s', 'feed-them-social' ),
89
+ '<a href="' . esc_url( 'https://www.slickremix.com/youtube-token/?redirect_url=' . admin_url( 'admin.php?page=fts-youtube-feed-styles-submenu-page' ) ) . '" class="fts-youtube-get-access-token">',
90
+ '</a>'
91
+ );
92
+ ?>
93
+ </p>
94
+
95
+ </div>
96
+
97
+ <a href="https://www.slickremix.com/docs/get-api-key-for-youtube/" target="_blank" class="fts-admin-button-no-work">Button not working?</a>
98
+ </div>
99
+
100
+
101
+ <div class="fts-clear"></div>
102
+ <div class="feed-them-social-admin-input-wrap" style="margin-bottom:0;">
103
+
104
+ <?php
105
+ $extra_keys = empty( get_option( 'youtube_custom_api_token' ) ) ? 'display:none' : '';
106
+ $extra_keys_no = get_option( 'youtube_custom_api_token' );
107
+ if ( ! empty( $extra_keys_no ) ) {
108
+ $extra_keys_no = 'display:none';
109
+ }
110
+ ?>
111
+ <div class="fts-youtube-add-all-keys-click-option"><label for="fts-custom-tokens-youtube"><input type="checkbox" id="fts-custom-tokens-youtube" name="fts_youtube_custom_tokens" value="1" <?php echo checked( '1', '' === $extra_keys ); ?>> Add your own API
112
+ Key?</label></div>
113
+
114
+ <div class="fts-clear"></div>
115
+
116
+ <div class="youtube-extra-keys" style="<?php echo esc_attr( $extra_keys ); ?>">
117
+ <div class="youtube-extra-keys-text" style="<?php echo esc_attr( $extra_keys_no ); ?>"><?php echo esc_html( 'Learn how to manually create your own YouTube API Key', 'feed-them-social' ); ?>
118
+ <a href="<?php echo esc_url( 'https://www.slickremix.com/docs/get-api-key-for-youtube/' ); ?>" target="_blank"><?php echo esc_html( 'here', 'feed-them-social' ); ?></a>.
119
+ </div>
120
+
121
+ <div class="feed-them-social-admin-input-label fts-youtube-border-bottom-color-label">
122
+ <?php echo esc_html( 'API Key Required', 'feed-them-social' ); ?>
123
+ </div>
124
+
125
+ <input type="text" name="youtube_custom_api_token" class="feed-them-social-admin-input" id="youtube_custom_api_token" value="<?php echo esc_attr( get_option( 'youtube_custom_api_token' ) ); ?>"/>
126
+ <div class="fts-clear"></div>
127
+ </div>
128
+ </div>
129
+
130
+ <div class="hide-button-tokens-options" style="<?php echo esc_attr( $extra_keys_no ); ?>">
131
+ <div class="feed-them-social-admin-input-wrap">
132
+ <div class="feed-them-social-admin-input-label">
133
+ <?php echo esc_html( 'Refresh Token', 'feed-them-social' ); ?>
134
+ </div>
135
+ <input type="text" name="youtube_custom_refresh_token" class="feed-them-social-admin-input" id="youtube_custom_refresh_token" value="<?php echo esc_attr( get_option( 'youtube_custom_refresh_token' ) ); ?>"/>
136
+ <div class="fts-clear"></div>
137
+ </div>
138
+ <div class="feed-them-social-admin-input-wrap" style="margin-bottom:0;">
139
+ <div class="feed-them-social-admin-input-label">
140
+ <?php echo esc_html( 'Access Token', 'feed-them-social' ); ?>
141
+ </div>
142
+ <input type="text" name="youtube_custom_access_token" class="feed-them-social-admin-input" id="youtube_custom_access_token" value="<?php echo esc_attr( get_option( 'youtube_custom_access_token' ) ); ?>"/>
143
+ <div class="fts-clear"></div>
144
+ </div>
145
+ <?php
146
+ // Add yes to show the expiration time and js that runs it below!
147
+ $dev_mode = 'no';
148
+ ?>
149
+ <div class="feed-them-social-admin-input-wrap fts-exp-time-wrapper" style="margin-top:10px;
150
+ <?php
151
+ if ( 'yes' !== $dev_mode ) {
152
+ ?>
153
+ display:none<?php } ?>">
154
+ <div class="feed-them-social-admin-input-label">
155
+ <?php echo esc_html( 'Expiration Time for Access Token', 'feed-them-social' ); ?>
156
+ </div>
157
+ <input type="text" name="youtube_custom_tokenecho esc_htmlxp_time" class="feed-them-social-admin-input" id="youtube_custom_tokenecho esc_htmlxp_time" value="<?php echo esc_attr( get_option( 'youtube_custom_tokenecho esc_htmlxp_time' ) ); ?>"/>
158
+ <div class="fts-clear"></div>
159
+ </div>
160
+ </div>
161
+
162
+ <div class="feed-them-social-admin-input-wrap fts-youtube-last-row" style="margin-top:0;">
163
+ <script>
164
+ jQuery(document).ready(function ($) {
165
+ jQuery('#fts-custom-tokens-youtube').click(function () {
166
+ jQuery(".youtube-extra-keys, .hide-button-tokens-options").toggle();
167
+ });
168
+ });
169
+ </script>
170
+ <?php
171
+ if ( isset( $_GET['refresh_token'] ) && isset( $_GET['access_token'] ) && isset( $_GET['expires_in'] ) ) {
172
+ // START AJAX TO SAVE TOKEN TO DB RIGHT AWAY SO WE CAN DO OUR NEXT SET OF CHECKS
173
+ // new token action!
174
+ $fts_functions->feed_them_youtube_refresh_token();
175
+ }
176
+
177
+ $expiration_time = get_option( 'youtube_custom_tokenecho esc_htmlxp_time' );
178
+ // Give the access token a 5 minute buffer (300 seconds) before getting a new one.
179
+ $expiration_time = $expiration_time - 300;
180
+ // Test Liner!
181
+ if ( time() < $expiration_time && empty( $youtube_api_key ) && 'yes' === $dev_mode ) {
182
+ ?>
183
+ <script>
184
+ // Set the time * 1000 because js uses milliseconds not seconds and that is what youtube gives us is a 3600 seconds of time
185
+ var countDownDate = new Date(<?php echo esc_js( $expiration_time ); ?> * 1000;
186
+ )
187
+
188
+ // Update the count down every 1 second
189
+ var x = setInterval(function () {
190
+
191
+ // Get todays date and time
192
+ var now = new Date().getTime();
193
+
194
+ // Find the distance between now an the count down date
195
+ var distance = countDownDate - now;
196
+
197
+ // Time calculations for days, hours, minutes and seconds
198
+ var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
199
+ var seconds = Math.floor((distance % (1000 * 60)) / 1000);
200
+
201
+ // Display the result in the element with id="demo"
202
+ jQuery('<span id="fts-timer"></span>').insertBefore('.hide-button-tokens-options .fts-exp-time-wrapper .fts-clear');
203
+ document.getElementById("fts-timer").innerHTML = minutes + "m " + seconds + "s ";
204
+
205
+ // If the count down is finished, write some text
206
+ if (distance < 0) {
207
+ clearInterval(x);
208
+ jQuery('.fts-success').fadeIn();
209
+ document.getElementById("fts-timer").innerHTML = "Expired, refresh page to get new token (developer use only)";
210
+ }
211
+ }, 1000);
212
+ </script>
213
+ <?php
214
+ } elseif ( empty( $youtube_api_key ) && ! empty( $youtube_access_token ) && time() > $expiration_time ) {
215
+ // refresh token action!
216
+ $fts_functions->feed_them_youtube_refresh_token();
217
+ }
218
+
219
+ foreach ( $test_app_token_response as $user_id ) {
220
+ if ( ! isset( $user_id->error->errors[0]->reason ) && ! empty( $youtube_api_key ) ) {
221
+ $type_of_key = __( 'API key', 'feed-them-social' );
222
+ } elseif ( ! isset( $user_id->error->errors[0]->reason ) && ! empty( $youtube_access_token ) ) {
223
+ $type_of_key = __( 'Access Token', 'feed-them-social' );
224
+ }
225
+
226
+ // Error Check!
227
+ if ( ! isset( $test_app_token_response->error->errors[0]->reason ) && ! empty( $youtube_api_key ) || ! isset( $test_app_token_response->error->errors[0]->reason ) && ! empty( $youtube_access_token ) && empty( $youtube_api_key ) ) {
228
+ echo sprintf(
229
+ esc_html( '%1$s Your %2$s is working! Generate your shortcode on the %3$ ssettings page. %4$s %5$s', 'feed-them-social' ),
230
+ '<div class="fts-successful-api-token">',
231
+ esc_html( $type_of_key ),
232
+ '<a href="' . esc_url( 'admin.php?page=feed-them-settings-page' ) . '">',
233
+ '</a>',
234
+ '</div>'
235
+ );
236
+ } elseif ( isset( $user_id->error->errors[0]->reason ) && ! empty( $youtube_api_key ) || ! isset( $user_id->error->errors[0]->reason ) && ! empty( $youtube_access_token ) ) {
237
+ echo sprintf(
238
+ esc_html( '%1$s This %2$s does not appear to be valid. YouTube responded with: %3$s %4$s ', 'feed-them-social' ),
239
+ '<div class="fts-failed-api-token">',
240
+ esc_html( $type_of_key ),
241
+ esc_html( $user_id->errors[0]->reason ),
242
+ '</div>'
243
+ );
244
+ }
245
+ if ( empty( $youtube_api_key ) && empty( $youtube_access_token ) ) {
246
+ echo sprintf(
247
+ esc_html( '%1$s You must click the button above or register for an API token to use the YouTube feed.%2$s', 'feed-them-social' ),
248
+ '<div class="fts-failed-api-token">',
249
+ '</div>'
250
+ );
251
+ }
252
+ break;
253
+ }
254
+ ?>
255
+
256
+
257
+ <div class="fts-clear"></div>
258
+ </div>
259
+
260
+ <div class="feed-them-social-admin-input-wrap">
261
+ <div class="fts-title-description-settings-page">
262
+ <h3><?php echo esc_html( 'Follow Button Options', 'feed-them-social' ); ?></h3>
263
+ </div>
264
+ <div class="feed-them-social-admin-input-label fts-youtube-text-color-label"><?php echo esc_html( 'Show Follow Button', 'feed-them-social' ); ?></div>
265
+
266
+ <select name="youtube_show_follow_btn" id="youtube-show-follow-btn"
267
+ class="feed-them-social-admin-input">
268
+ <option
269
+ <?php echo selected( $fts_youtube_show_follow_btn, 'no', false ); ?>
270
+ value="<?php echo esc_attr( 'yes' ); ?>">
271
+ <?php echo esc_html( 'No', 'feed-them-social' ); ?>
272
+ </option>
273
+ <option <?php echo selected( $fts_youtube_show_follow_btn, 'yes', false ); ?>
274
+ value="<?php echo esc_attr( 'no' ); ?>">
275
+ <?php echo esc_html( 'Yes', 'feed-them-social' ); ?>
276
+ </option>
277
+ </select>
278
+
279
+ <div class="fts-clear"></div>
280
+ </div><!--/fts-youtube-feed-styles-input-wrap-->
281
+
282
+ <div class="feed-them-social-admin-input-wrap">
283
+ <div class="feed-them-social-admin-input-label fts-youtube-text-color-label"><?php echo esc_html( 'Placement of the Buttons', 'feed-them-social' ); ?></div>
284
+
285
+ <select name="youtube_show_follow_btn_where" id="youtube-show-follow-btn-where"
286
+ class="feed-them-social-admin-input">
287
+ <option><?php echo esc_html( 'Please Select Option', 'feed-them-social' ); ?></option>
288
+ <option
289
+ <?php echo selected( $fts_youtube_show_follow_btn_where, 'youtube-follow-above', false ); ?>
290
+ value="<?php echo esc_attr( 'youtube-follow-above' ); ?>">
291
+ <?php echo esc_html( 'Show Above Feed', 'feed-them-social' ); ?>
292
+ </option>
293
+ <option
294
+ <?php echo selected( $fts_youtube_show_follow_btn_where, 'youtube-follow-below', false ); ?>
295
+ value="<?php echo esc_attr( 'youtube-follow-below' ); ?>">
296
+ <?php echo esc_html( 'Show Below Feed', 'feed-them-social' ); ?>
297
+ </option>
298
+ </select>
299
+
300
+ <div class="fts-clear"></div>
301
+ </div><!--/fts-youtube-feed-styles-input-wrap-->
302
+
303
+
304
+ <?php if ( is_plugin_active( 'feed-them-premium/feed-them-premium.php' ) ) { ?>
305
+
306
+ <div class="feed-them-social-admin-input-wrap">
307
+ <div class="fts-title-description-settings-page">
308
+ <h3>
309
+ <?php echo esc_html( 'Load More Button Styles & Options', 'feed-them-social' ); ?>
310
+ </h3>
311
+ </div>
312
+ <div class="feed-them-social-admin-input-wrap">
313
+ <div class="feed-them-social-admin-input-label fts-fb-loadmore-background-color-label">
314
+ <?php echo esc_html( 'Button Color', 'feed-them-social' ); ?>
315
+ </div>
316
+ <input type="text" name="youtube_loadmore_background_color" class="feed-them-social-admin-input fb-loadmore-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="youtube-loadmore-background-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'youtube_loadmore_background_color' ) ); ?>"/>
317
+ <div class="fts-clear"></div>
318
+ </div>
319
+ <!--/fts-youtube-feed-styles-input-wrap-->
320
+
321
+ <div class="feed-them-social-admin-input-wrap">
322
+ <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
323
+ <?php echo esc_html( 'Text Color', 'feed-them-social' ); ?>
324
+ </div>
325
+ <input type="text" name="youtube_loadmore_text_color" class="feed-them-social-admin-input fb-loadmore-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="youtube-loadmore-text-color-input" placeholder="#ddd" value="<?php echo esc_attr( get_option( 'youtube_loadmore_text_color' ) ); ?>"/>
326
+ <div class="fts-clear"></div>
327
+ </div>
328
+ <!--/fts-youtube-feed-styles-input-wrap-->
329
+
330
+ <div class="feed-them-social-admin-input-wrap">
331
+ <div class="feed-them-social-admin-input-label">
332
+ <?php echo esc_html( '"Load More" Text', 'feed-them-social' ); ?>
333
+ </div>
334
+ <input type="text" name="youtube_load_more_text" class="feed-them-social-admin-input" id="youtube_load_more_text" placeholder="Load More" value="<?php echo esc_attr( get_option( 'youtube_load_more_text' ) ); ?>"/>
335
+ <div class="clear"></div>
336
+ </div>
337
+ <!--/fts-youtube-feed-styles-input-wrap-->
338
+
339
+ <div class="feed-them-social-admin-input-wrap">
340
+ <div class="feed-them-social-admin-input-label">
341
+ <?php echo esc_html( '"No More Videos" Text', 'feed-them-social' ); ?>
342
+ </div>
343
+ <input type="text" name="youtube_no_more_videos_text" class="feed-them-social-admin-input" id="youtube_no_more_videos_text" placeholder="No More Videos" value="<?php echo esc_attr( get_option( 'youtube_no_more_videos_text' ) ); ?>"/>
344
+ <div class="clear"></div>
345
+ </div>
346
+ <!--/fts-youtube-feed-styles-input-wrap-->
347
+
348
+ <?php } // END premium ?>
349
+ <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php echo esc_html( 'Save All Changes' ); ?>"/>
350
+ <?php } ?>
351
+ </form>
352
+ </div>
353
+ <!--/feed-them-social-admin-wrap-->
354
+ <?php
355
+ }
356
+ }//end class
admin/css/admin-settings.css CHANGED
@@ -1 +1 @@
1
- .fts-clear,.clear,.im-done{clear:both}.buy-extensions-btn,.fts-settings-admin-submit-btn,.fts-settings-admin-wrap .upload_image_button,.im-done{text-shadow:1px 1px 3px #000;filter:dropshadow(color=#000000, offx=1, offy=1)}.buy-extensions-btn,.fts-settings-admin-submit-btn,.fts-settings-admin-wrap h2,.fts-settings-admin-wrap h3,.im-done{text-shadow:1px 1px 3px #000}.buy-extensions-btn{margin-top:23px;padding:9px 25px 11px;background-color:#CE1212!important;border:none!important;color:#fff!important;font-weight:700;cursor:pointer!important;position:absolute;right:21px;top:0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.buy-extensions-btn,.fts-settings-admin-input-label a{text-decoration:none;-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.display{display:block!important}.use-of-plugin{color:#fff;font-weight:400;font-size:14px;padding-bottom:8px}.subtext-of-title{color:#c7c4c4;font-weight:700;margin-bottom:10px}.fts-settings-admin-wrap{width:900px;background:url(../images/vinyl-backg.jpeg) no-repeat #1A1830;padding:15px 25px 0;-webkit-box-shadow:2px 3px 7px 1px #333;box-shadow:2px 3px 7px 1px #333;-webkit-border-radius:6px;border-radius:5px;position:relative;margin-top:50px}.fts-settings-admin-wrap h2{color:#CD1723;font-size:28px;margin:17px 0 15px -2px}.fts-settings-admin-wrap h3{color:#FFF;padding-top:12px;margin-bottom:6px;font-size:18px}.fts-settings-admin-wrap h4{color:#000;font-size:14px;margin-bottom:5px;margin-top:10px}.fts-settings-admin-form{width:100%;padding:0 0 20px}.fts-settings-admin-input-wrap{background-color:#f3f3f3;padding:10px 20px;margin-bottom:10px;border:1px solid #CFCACA;border-radius:4px;-webkit-border-radius:6px}.fts-settings-admin-input-label{margin-right:10px;font-size:13px;font-weight:700;text-transform:uppercase;padding-bottom:4px}.fts-settings-admin-input-label a{cursor:pointer;font-size:13px;color:red;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-settings-admin-input-label a:hover{color:grey}.company-info-style{background-color:rgba(240,243,245,.78)!important;color:#000}.fts-settings-admin-wrap .upload_image_button{margin-top:5px;padding:9px 20px;background-color:#CD1723;border:none;color:#fff!important;font-weight:700;float:left;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-settings-admin-input-example a,.fts-settings-admin-wrap .upload_image_button,.fts-video-admin-wrap a{cursor:pointer;-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.upload-logo-size{float:left;width:350px;margin-left:15px;margin-top:2px}.fts-settings-admin-input-example{font-weight:400;padding-top:4px;font-size:12px;color:#797979}.company-info-style .fts-settings-admin-input-example{color:#434343}.fts-settings-admin-input-example a,.fts-video-admin-wrap a{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-settings-admin-input:focus{background-color:#f0f0f0;color:#000;outline:0}.fts-settings-admin-input{width:100%;padding:10px;font-size:13px;-webkit-transition-duration:400ms;-webkit-transition-property:width,background;-webkit-transition-timing-function:ease;-moz-transition-duration:400ms;-moz-transition-property:width,background;-moz-transition-timing-function:ease;-o-transition-duration:400ms;-o-transition-property:width,background;-o-transition-timing-function:ease}.fts-settings-admin-submit-btn{background-color:#CD1723!important;border:none!important;color:#fff!important;font-weight:700;cursor:pointer!important}.fts-settings-admin-slick-logo{background:url(../images/footer-logo.png) left no-repeat;width:108px;height:20px;padding:8px 2px;display:block;position:absolute;bottom:20px;right:18px;-webkit-border-radius:3px;border-radius:3px}.fts-video-admin-wrap .fts-settings-admin-slick-logo{bottom:7px;right:3px;-webkit-border-radius:3px;border-radius:3px}.fts-settings-admin-slick-logo:hover{opacity:.9}.fts-settings-facebook-btn{width:250px;position:absolute;bottom:19px;right:269px}.fts-settings-paypal-btn{width:200px;position:absolute;bottom:12px;right:146px}.fts-settings-id-answer{padding:15px 0 0;display:none;margin-top:10px;font-weight:700;border-top:1px solid #ccc}.fts-settings-id-answer h4{padding:0;margin:5px 0 -6px}.fts-settings-id-answer span{display:block;color:#999;font-size:13px;margin:15px 0 0}.fts-settings-id-answer img{margin:10px 0 14px}.fts-settings-id-answer ul{padding:8px 0 0;clear:both;margin:0}.fts-settings-id-answer ul li{margin:0 0 4px}.fts-settings-id-answer a{cursor:pointer!important}.im-done{margin-top:0;padding:7px 38px;background-color:#CD1723;border:none;color:#fff;font-size:12px;font-weight:700;-webkit-border-radius:3px;border-radius:5px;cursor:pointer;float:left;display:block;-webkit-transition:background 2s;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.buy-extensions-btn:hover,.fts-settings-admin-submit-btn:hover,.upload_image_button:hover,a.im-done:hover{background:#919191!important;-webkit-transition:background 2s;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;color:#f1f1f1}.fts-settings-admin-submit-btn{padding:10px 40px;margin-top:30px;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-help-admin-wrap a,.fts-settings-admin-submit-btn{-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.fts-admin-help-wrap{padding:0 20px 10px 0}.fts-help-admin-wrap{width:auto;background:0 0;padding:10px 20px 45px 0;position:relative;margin-top:5px;margin-right:0;min-width:673px}.fts-help-admin-wrap .use-of-plugin{color:#888;font-weight:400;font-size:12px;text-align:justify;background:#FFF;line-height:18px;margin:10px 0 25px;padding:15px 20px 15px 17px;border:1px solid #DFDFDF}.fts-help-admin-wrap li{margin-top:-10px;line-height:23px}.fts-help-admin-wrap h2{color:#CC0303;font-size:27px;margin:0 25px 15px 0;letter-spacing:-1px;height:30px;text-shadow:0 0 0 #222;padding:15px 0 5px 68px;background:url(../images/fts-help-icon.png) 0 9px no-repeat;border-bottom:1px solid #DBDBDB}.fts-help-admin-wrap h3{padding:0;margin-bottom:10px;font-size:18px;color:#555}.fts-help-admin-wrap a{text-decoration:none;cursor:pointer!important;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-help-admin-wrap ol li{margin:5px 0 0;line-height:17px}#fts-debug-report{font-family:monospace;display:none;width:100%;margin-bottom:20px;height:200px}a.fts-debug-report{padding:1px 7px 2px;background:#E6E6E6}.fts-admin-help-faqs-wrap{line-height:21px}.fts-admin-help-faqs-wrap ol{margin:12px 17px 31px 27px}@keyframes fade{from,to{opacity:1}50%{opacity:.5}}@-webkit-keyframes fade{from,to{opacity:1}50%{opacity:.5}}#system-info-textarea{min-height:450px;width:100%;font-family:Menlo,Monaco,monospace;background:0 0;white-space:pre;overflow:auto;margin-bottom:7px;display:block}.feed-them_page_fts-system-info-submenu-page .error{margin:20px 20px 0px 0 !important; }
1
+ .fts-clear,.clear,.im-done{clear:both}.buy-extensions-btn,.fts-settings-admin-submit-btn,.fts-settings-admin-wrap .upload_image_button,.im-done{text-shadow:1px 1px 3px #000;filter:dropshadow(color=#000000, offx=1, offy=1)}.buy-extensions-btn,.fts-settings-admin-submit-btn,.fts-settings-admin-wrap h2,.fts-settings-admin-wrap h3,.im-done{text-shadow:1px 1px 3px #000}.buy-extensions-btn{margin-top:23px;padding:9px 25px 11px;background-color:#CE1212!important;border:none!important;color:#fff!important;font-weight:700;cursor:pointer!important;position:absolute;right:21px;top:0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.buy-extensions-btn,.fts-settings-admin-input-label a{text-decoration:none;-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.display{display:block!important}.use-of-plugin{color:#fff;font-weight:400;font-size:14px;padding-bottom:8px}.subtext-of-title{color:#c7c4c4;font-weight:700;margin-bottom:10px}.fts-settings-admin-wrap{width:900px;background:url(../images/vinyl-backg.jpeg) no-repeat #1A1830;padding:15px 25px 0;-webkit-box-shadow:2px 3px 7px 1px #333;box-shadow:2px 3px 7px 1px #333;-webkit-border-radius:6px;border-radius:5px;position:relative;margin-top:50px}.fts-settings-admin-wrap h2{color:#CD1723;font-size:28px;margin:17px 0 15px -2px}.fts-settings-admin-wrap h3{color:#FFF;padding-top:12px;margin-bottom:6px;font-size:18px}.fts-settings-admin-wrap h4{color:#000;font-size:14px;margin-bottom:5px;margin-top:10px}.fts-settings-admin-form{width:100%;padding:0 0 20px}.fts-settings-admin-input-wrap{background-color:#f3f3f3;padding:10px 20px;margin-bottom:10px;border:1px solid #CFCACA;border-radius:4px;-webkit-border-radius:6px}.fts-settings-admin-input-label{margin-right:10px;font-size:13px;font-weight:700;text-transform:uppercase;padding-bottom:4px}.fts-settings-admin-input-label a{cursor:pointer;font-size:13px;color:red;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-settings-admin-input-label a:hover{color:grey}.company-info-style{background-color:rgba(240,243,245,.78)!important;color:#000}.fts-settings-admin-wrap .upload_image_button{margin-top:5px;padding:9px 20px;background-color:#CD1723;border:none;color:#fff!important;font-weight:700;float:left;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-settings-admin-input-example a,.fts-settings-admin-wrap .upload_image_button,.fts-video-admin-wrap a{cursor:pointer;-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.upload-logo-size{float:left;width:350px;margin-left:15px;margin-top:2px}.fts-settings-admin-input-example{font-weight:400;padding-top:4px;font-size:12px;color:#797979}.company-info-style .fts-settings-admin-input-example{color:#434343}.fts-settings-admin-input-example a,.fts-video-admin-wrap a{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-settings-admin-input:focus{background-color:#f0f0f0;color:#000;outline:0}.fts-settings-admin-input{width:100%;padding:10px;font-size:13px;-webkit-transition-duration:400ms;-webkit-transition-property:width,background;-webkit-transition-timing-function:ease;-moz-transition-duration:400ms;-moz-transition-property:width,background;-moz-transition-timing-function:ease;-o-transition-duration:400ms;-o-transition-property:width,background;-o-transition-timing-function:ease}.fts-settings-admin-submit-btn{background-color:#CD1723!important;border:none!important;color:#fff!important;font-weight:700;cursor:pointer!important}.fts-settings-admin-slick-logo{background:url(../images/footer-logo.png) left no-repeat;width:108px;height:20px;padding:8px 2px;display:block;position:absolute;bottom: 15px;right:18px;-webkit-border-radius:3px;border-radius:3px;}.fts-video-admin-wrap .fts-settings-admin-slick-logo{bottom:7px;right:3px;-webkit-border-radius:3px;border-radius:3px}.fts-settings-admin-slick-logo:hover{opacity:.9}.fts-settings-facebook-btn{width:250px;position:absolute;bottom:19px;right:269px}.fts-settings-paypal-btn{width:200px;position:absolute;bottom:12px;right:146px}.fts-settings-id-answer{padding:15px 0 0;display:none;margin-top:10px;font-weight:700;border-top:1px solid #ccc}.fts-settings-id-answer h4{padding:0;margin:5px 0 -6px}.fts-settings-id-answer span{display:block;color:#999;font-size:13px;margin:15px 0 0}.fts-settings-id-answer img{margin:10px 0 14px}.fts-settings-id-answer ul{padding:8px 0 0;clear:both;margin:0}.fts-settings-id-answer ul li{margin:0 0 4px}.fts-settings-id-answer a{cursor:pointer!important}.im-done{margin-top:0;padding:7px 38px;background-color:#CD1723;border:none;color:#fff;font-size:12px;font-weight:700;-webkit-border-radius:3px;border-radius:5px;cursor:pointer;float:left;display:block;-webkit-transition:background 2s;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.buy-extensions-btn:hover,.fts-settings-admin-submit-btn:hover,.upload_image_button:hover,a.im-done:hover{background:#919191!important;-webkit-transition:background 2s;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;color:#f1f1f1}.fts-settings-admin-submit-btn{padding:10px 40px;margin-top:30px;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-help-admin-wrap a,.fts-settings-admin-submit-btn{-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.fts-admin-help-wrap{padding:0 20px 10px 0}.fts-help-admin-wrap{width:auto;background:0 0;padding:10px 20px 45px 0;position:relative;margin-top:5px;margin-right:0;min-width:673px}.fts-help-admin-wrap .use-of-plugin{color:#888;font-weight:400;font-size:12px;text-align:justify;background:#FFF;line-height:18px;margin:10px 0 25px;padding:15px 20px 15px 17px;border:1px solid #DFDFDF}.fts-help-admin-wrap li{margin-top:-10px;line-height:23px}.fts-help-admin-wrap h2{color:#CC0303;font-size:27px;margin:0 25px 15px 0;letter-spacing:-1px;height:30px;text-shadow:0 0 0 #222;padding:15px 0 5px 68px;background:url(../images/fts-help-icon.png) 0 9px no-repeat;border-bottom:1px solid #DBDBDB}.fts-help-admin-wrap h3{padding:0;margin-bottom:10px;font-size:18px;color:#555}.fts-help-admin-wrap a{text-decoration:none;cursor:pointer!important;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.fts-help-admin-wrap ol li{margin:5px 0 0;line-height:17px}#fts-debug-report{font-family:monospace;display:none;width:100%;margin-bottom:20px;height:200px}a.fts-debug-report{padding:1px 7px 2px;background:#E6E6E6}.fts-admin-help-faqs-wrap{line-height:21px}.fts-admin-help-faqs-wrap ol{margin:12px 17px 31px 27px}@keyframes fade{from,to{opacity:1}50%{opacity:.5}}@-webkit-keyframes fade{from,to{opacity:1}50%{opacity:.5}}#system-info-textarea{min-height:450px;width:100%;font-family:Menlo,Monaco,monospace;background:0 0;white-space:pre;overflow:auto;margin-bottom:7px;display:block}.feed-them_page_fts-system-info-submenu-page .error{margin:20px 20px 0px 0 !important; }
admin/css/settings-page.css CHANGED
@@ -1 +1 @@
1
- .clear,.fts-clear{clear:both}.display{display:block!important}.facebook-message-generator,.final-instagram-user-id-textarea,.final-shortcode-textarea,.fts-facebook_group-shortcode-form .twitter_name,.fts-fb-event-option-wrap .twitter_name,.shortcode-generator-form,instagram-shortcode-form{display:none}.feed-them_page_fts-facebook-feed-styles-submenu-page .use-of-plugin{font-size:13px;font-weight:400;line-height:20px;max-width:740px;border-bottom:1px solid #ccc}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-facebook-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-instagram-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-pinterest-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-pinterest-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-twitter-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-youtube-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-youtube-feed-styles-submenu-page .use-of-plugin{color:#333}.instagram-id-option-wrap{margin-top:25px}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap h2{margin-top:45px}.fts-super-instagram-options-wrap{padding-top:0}.fts-empty-error input{background-color:#FDFDD3!important}.toplevel_page_feed-them-settings-page h1{font-size:32px}.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.fts-youtube-feed-styles-submenu-page .feed-them-social-admin-wrap h2{margin-top:45px;color:#333}.feed-them-social-admin-wrap h1{color:#FFF;margin:0 0 5px;line-height:30px;font-weight:700}.feed-them-social-admin-wrap h4{font-size:12px;font-weight:400;color:#000;margin:1px 0 8px}.feed-them-social-admin-wrap input[type=button],.feed-them-social-admin-wrap input[type=submit]{-webkit-appearance:none}.feed-them-social-admin-wrap input[type=text]{line-height:19px;max-width:100%;font-weight:400}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-pinterest-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-youtube-feed-styles-submenu-page .feed-them-social-admin-wrap{max-width:100%;width:100%;min-height:auto;background:0 0;padding:0;-webkit-box-shadow:none;box-shadow:none;border-radius:1px;position:relative;margin:20px 20px 0 0;-webkit-text-size-adjust:none}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-input-wrap,.feed-them_page_fts-pinterest-feed-styles-submenu-page .feed-them-social-admin-input-wrap,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-input-wrap,.feed-them_page_fts-youtube-feed-styles-submenu-page .feed-them-social-admin-input-wrap{background:0 0}.feed-them-social-admin-wrap{max-width:806px;min-height:379px;padding:19px;margin:20px 10px 0 0;background-size:cover;-webkit-text-size-adjust:none;overflow:hidden;border-radius:2px}.feed-them_page_fts-youtube-feed-styles-submenu-page h2{color:#333!important;margin-top:45px!important}.feed-them-social-admin-form .feed-them-social-admin-wrap h2{color:#000;font-size:20px;font-weight:400;line-height:23px;margin:15px 0}.feed-them-social-admin-form{padding:5px 0 0}.fts-facebook_group-shortcode-form:hover a{background-position:top right!important;background-size:34px!important;height:34px!important;width:34px!important}.feed-them-social-admin-input-wrap{padding:5px 0 10px;margin-bottom:10px;border-radius:2px;-webkit-border-radius:2px}.pinterest-gen-selection{margin-bottom:25px}.final-shortcode-textarea .feed-them-social-admin-input-label{color:#0361B8;width:auto;font-size:14px}.instagram-shortcode-form .final-shortcode-textarea .feed-them-social-admin-input-label{color:#0361B8}.final-shortcode-textarea{margin-top:25px}.final-shortcode-textarea input{width:100%;margin-top:2px}.feed-them-social-admin-input-label{float:left;width:230px;margin-right:10px;font-size:13px;padding-top:6px;font-weight:700}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-input-label,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-input-label,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-input-label{float:left;width:230px;margin-right:10px;font-size:13px;text-transform:none;padding-top:6px}.feed-them-social-admin-input-label a{text-decoration:underline!important;cursor:pointer}.feed_them_social_id-answer a,.im-done{cursor:pointer!important}.feed-them-social-admin-input-example{float:left;font-weight:700;margin-left:10px;padding-top:4px}.feed-them-social-admin-input{float:left;width:305px;max-width:100%;font-weight:400}.feed-them-social-admin-input-default{float:left;width:290px;padding:4px 7px;border:1px solid #DFDFDF;background-color:#FFF;font-size:12px}.fts-color-settings-admin-form .feed-them-social-admin-submit-btn{float:left;margin:0;padding:0 20px;height:37px;line-height:35px}.feed-them-social-admin-submit-btn{padding:10px 15px;border-radius:1px;background-color:#31AC45!important;color:#fff!important;font-weight:400;cursor:pointer!important;transition:all .3s ease-in-out;border:none;letter-spacing:1px;outline:0;font-size:12px}.feed-them-social-admin-submit-btn,.feed-them-social-admin-submit-btn:hover{-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.feed-them-social-admin-submit-btn:hover{background-color:#2BBE43!important;color:#FFF!important;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;outline:0}.toplevel_page_feed-them-settings-page .feed-them-social-admin-slick-logo{right:5px;-webkit-border-radius:3px;border-radius:3px}.feed_them_social_id-answer{padding:15px 0;display:none;font-weight:700}.feed_them_social_id-answer div{padding-bottom:10px}.im-done{padding:10px;background-color:#CD1723!important;border:none!important;color:#fff!important;font-weight:700;text-shadow:1px 1px 3px #000;filter:dropshadow(color=#000000, offx=1, offy=1);-webkit-border-radius:3px;border-radius:3px}#shortcode-form-selector{margin-bottom:10px;padding:15px;height:40px;min-width:290px}.feed-them-icon-wrap{position:absolute;right:27px;top:25px;width:234px;height:50px}.feed-them-social-admin-wrap,.fts-content,.fts-plugin-reviews{position:relative}.fts-facebook_group-shortcode-form:hover .feed-them-icon-wrap a.facebook-icon{background-position:top right!important;background-size:34px!important;height:34px!important;width:34px!important;display:none}.feed-them-icon-wrap a{opacity:1;float:right;margin-left:1px;margin-bottom:1px;display:block;height:38px;width:38px;cursor:default;outline:0;border:none;box-shadow:0 1px 1px #222;border-radius:0;transition:all .3s ease-in-out}.feed-them-icon-wrap a,.feed-them-icon-wrap a:hover{-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.feed-them-icon-wrap a:hover{opacity:.85;transition:all .3s ease-in-out}.feed-them-icon-wrap a.facebook-icon{background:url(../images/facebook-icon.png) no-repeat}.feed-them-icon-wrap a.twitter-icon{background:url(../images/twitter-icon.png) top right no-repeat}.feed-them-icon-wrap a.instagram-icon{background:url(../images/instagram-icon.png) top right no-repeat}.feed-them-icon-wrap a.vine-icon{background:url(../images/vine-icon.png) top right no-repeat}.feed-them-icon-wrap a.youtube-icon{background:url(../images/youtube-icon.png) top right no-repeat}.feed-them-icon-wrap a.pinterest-icon{background:url(../images/pinterest-icon.png) top right no-repeat}a.icon-animate-small{background-position:top right!important;background-size:34px!important;height:34px!important;width:34px!important}.instructional-text{font-size:13px;line-height:19px;margin:0 0 15px;border-bottom:1px dotted #9C9C9C;color:#212121;padding:0 0 5px}.instructional-text a{color:#0073aa;text-decoration:none}.instructional-text a,.instructional-text a:hover{-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.instructional-text a:hover{transition:all .3s ease-in-out}.feed-them-custom-css{padding-top:25px;padding-left:0}.feed-them-clear-cache input{background-color:#F11E2E!important;margin-bottom:10px}.feed-them-clear-cache input:hover{background-color:#F15D2E!important}.feed-them-clear-cache-text{color:#F11E2E!important;font-weight:700;background-color:rgba(255,255,255,.88);padding:10px 16px;margin-top:10px;margin-bottom:10px;border-radius:2px;-webkit-border-radius:2px;opacity:.9}.fts-get-premium-version{margin-right:1em;margin-top:15px;display:block;max-width:210px;text-align:center;text-decoration:none!important}textarea#fts-color-options-main-wrapper-css-input{max-width:100%;min-height:350px;clear:both;background:#F9F9F9;font-family:Consolas,Monaco,monospace;font-size:12px;width:100%;height:300px;outline:0}.fts-custom-css-text{margin-bottom:5px}label.toggle-custom-textarea-show:hover{background:#999}label.toggle-custom-textarea-show{max-width:435px;display:block;height:37px;line-height:35px;float:left;text-align:center;padding:0 15px;background:#818181;border-radius:1px;font-size:12px;clear:both;letter-spacing:1px;margin:5px 5px 10px 0;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}#fts-color-options-main-wrapper-css-input,.fts-custom-css-text,.toggle-custom-textarea-hide{display:none}.fts-admin-wrap p input[type=checkbox],.fts-wp-header-custom input[type=checkbox]{margin:-1px 7px 0 2px!important}.fts-color-settings-admin-form p,.fts-powered-by-settings-admin-form p{color:#000;font-size:12px;-webkit-text-size-adjust:none}.fts-powered-by-settings-admin-form p{margin-bottom:0}.feed-them-custom-logo-css{margin-top:25px}#discount-for-review{clear:both;margin-bottom:1px;text-align:center;font-weight:700;color:#000;background:rgba(255,255,255,.53);float:right;width:195px;line-height:40px;cursor:pointer}.discount-review-text{clear:both;color:#333;background:rgba(255,255,255,.9);width:165px;float:right;padding:20px 15px;text-align:center;display:none}#discount-for-review a{display:inline-block;width:auto;height:auto;margin:0;padding:0;border:none;box-shadow:none;float:none;cursor:pointer;text-decoration:none;font-size:12px;font-weight:700;color:#0073aa}.fts-color-settings-admin-form label,.fts-color-settings-admin-form span{color:#060606}.fts-color-settings-admin-form p.example{color:#FFF;padding-bottom:35px!important}.fts-color-settings-admin-form fieldset label{color:#FFF;line-height:30px}.fts-color-settings-admin-form fieldset a{color:#FFF;text-decoration:none}@media (max-width:800px){.toplevel_page_feed-them-settings-page .feed-them-social-admin-wrap h1{text-shadow:#fff!important;height:32px!important;width:280px!important;background-size:280px!important}.feed-them-icon-wrap{position:relative;margin:-20px 0 70px;left:0!important;height:auto;clear:both;text-align:left}.feed-them-social-admin-slick-logo{display:none}#fts-date-and-time-format{width:100%}}.fts-failed-api-token,.fts-successful-api-token{clear:both;float:left;padding:7px 14px 7px 10px;border:1px solid rgba(255,255,255,.45);color:#000;margin:10px 20px 0 0;max-width:715px;width:100%}.fts-failed-api-token{background:rgba(245,207,206,.78)}.fts-successful-api-token{background:rgba(220,253,205,.78)}.feed-them_page_fts-facebook-feed-styles-submenu-page .fts-failed-api-token,.feed-them_page_fts-facebook-feed-styles-submenu-page .fts-successful-api-token{margin-top:0!important;padding:10px 15px;max-width:708px}.fts-special-working-wrap{padding:8px!important;max-width:722px!important}#fts_facebook_custom_api_token,#fts_facebook_custom_api_token_biz{margin-bottom:20px!important}.fts-facebook-custom-api-token-label{display:block;margin:0 40px 4px 0}.fts-facebook-custom-api-token-label a{font-weight:700;color:#DF1818}.twitter-api-wrap{margin:20px 0 0}.twitter-api-wrap .feed-them-social-admin-input-wrap{margin:0}.fts-facebook-custom-api-token-label,.fts-instagram-custom-api-token-label{max-width:700px;line-height:21px;font-size:13px}.fts-facebook-get-access-token,.fts-facebook-get-access-token:focus,.fts-instagram-get-access-token,.fts-instagram-get-access-token:focus,.fts-pinterest-get-access-token,.fts-pinterest-get-access-token:focus,.fts-twitter-get-access-token,.fts-twitter-get-access-token:focus,.fts-youtube-get-access-token,.fts-youtube-get-access-token:focus{border-radius:5px;box-shadow:0 1px 1px #999;display:block;clear:both;float:left;font-size:14px;margin-bottom:25px;margin-top:5px;text-decoration:none;font-weight:600}.fts-instagram-get-access-token,.fts-instagram-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/instagram-logo-admin.png) 13px 12px no-repeat #FFF;color:#252525}.fts-pinterest-get-access-token,.fts-pinterest-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/pinterest-logo-admin.jpg) 13px 12px no-repeat #FFF;color:#252525}.fts-facebook-get-access-token:hover,.fts-instagram-get-access-token:hover,.fts-pinterest-get-access-token:hover{color:#666}.fts-facebook-get-access-token,.fts-facebook-get-access-token:focus{padding:18px 16px 19px 182px;background:url(../images/facebook-logo-admin.jpg) 14px 12px no-repeat #FFF;color:#252525}@font-face{margin:0 0 9px;font-size:19px}.fts-title-description-settings-page{padding:25px 0 15px;max-width:740px;border-top:1px solid #ccc}.fts-premium-options-message,.fts-premium-options-message2{font-size:13px;padding:20px 25px 25px;line-height:19px;background-color:#FFF;margin:0}.fts-premium-options-message a:first-child,.fts-premium-options-message2 a:first-child{font-size:16px;display:inline-block;padding:0;margin:0 0 5px;text-decoration:none}.fts-plugin-reviews{max-width:789px;padding:25px 28px 31px;box-shadow:0 0 1px #d1d1d1;border-radius:1px;background:rgba(255,255,255,1);-webkit-text-size-adjust:none;font-size:13px;line-height:21px;margin-right:10px}.fts-plugin-reviews a{text-decoration:none}.fts-plugin-reviews-rate{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #eee}h1.plugin-author-note{margin:50px 0 15px!important;font-size:22px;color:#222;z-index:1;position:relative}.toplevel_page_feed-them-settings-page .error{margin:20px 20px 20px 0;max-width:818px}.feed-them_page_fts-facebook-feed-styles-submenu-page .error,.feed-them_page_fts-instagram-feed-styles-submenu-page .error,.feed-them_page_fts-pinterest-feed-styles-submenu-page .error,.feed-them_page_fts-system-info-submenu-page .error,.feed-them_page_fts-system-info-submenu-page .notice,.feed-them_page_fts-twitter-feed-styles-submenu-page .error,.feed-them_page_fts-youtube-feed-styles-submenu-page .error{margin:20px 20px 20px 0!important}.feed-them_page_fts-bar-settings-page .error{margin:20px 20px 20px 5px!important;max-width:1005px}.hashtag-option-small-text,.twitter-hashtag-etc-wrap{display:none}.twitter-hashtag-etc-wrap{margin:15px 0 35px}.fts-content{background-color:rgba(241,241,241,.65);padding:30px;z-index:1;display:nonee;border-radius:2px;box-shadow:0 2px 10px rgba(41,41,41,.51);min-height:315px}.shortcode-generator-form{border-radius:3px;margin-top:15px}.instructional-text a:hover{color:#EA1616;text-decoration:underline;opacity:.8}.final-shortcode-textarea h4{border-bottom:1px solid #FFF;padding:0 0 10px;font-size:13px;margin-bottom:15px}.toplevel_page_feed-them-settings-page .fts-content h1{color:#fbfbfb;margin:0 0 12px;line-height:30px;text-shadow:1px 1px 1px rgba(51,51,51,.06);font-weight:600;background:url(../images/feed-them-social-logo.png) no-repeat;height:40px;width:377px;font-size:0}.fb-options-wrap .feed-them-social-admin-submit-btn{margin-top:5px}#fts-social-selector,.twitter-gen-selection{margin-bottom:25px}.fts-text-align-center{text-align:center}.toplevel_page_feed-them-settings-page .feed-them-social-admin-slick-logo{background:url(../images/footer-logo.png) center no-repeat;width:110px;height:20px;padding:0;margin:20px 0 -20px;display:inline-block;position:relative;bottom:0;:0;opacity:1}.fb-image,.fts-backg{width:100%;height:100%}.feed-them-social-admin-wrap h3{color:#000;font-size:20px;font-weight:400;line-height:23px;margin:0 0 5px}.feed-them-social-admin-wrap .feed-them-social-admin-form h2{color:#000;font-size:23px;font-weight:400;line-height:23px;margin:15px 0 20px;padding:0}.instagram-id-option-wrap .feed-them-social-admin-submit-btn,.toplevel_page_feed-them-settings-page .feed-them-social-admin-submit-btn{margin-top:0;margin-left:0!important}.toplevel_page_feed-them-settings-page .instagram-id-option-wrap .feed-them-social-admin-submit-btn{margin-top:5px!important;margin-left:0!important}.feed-them-clear-cache .use-of-plugin{margin:0}.feed-them-clear-cache h2,.feed-them-custom-css h2,.feed-them-custom-logo-css h2{margin-bottom:10px;margin-top:5px;font-size:17px;padding-top:20px;border-top:1px dotted rgba(177,177,177,.88);color:#060606}.feed-them-clear-cache h2{border:none;margin-top:17px;padding-top:0}.feed-them-custom-css p,.feed-them-custom-logo-css p{margin:0 0 5px}#fts-date-and-time-format{margin-bottom:10px}.feed-them-social-admin-submit-btn{margin-top:15px!important}#fts_admin_bar_menu{margin-bottom:0;margin-left:31px}.fts-backg{position:absolute;top:0;right:0;z-index:0;opacity:1;-webkit-animation:ftsettings 5s;animation:ftsettings 5s;background:rgba(255,255,255,.8)}@-webkit-keyframes ftsettings{from{opacity:0}to{opacity:1}}@keyframes ftsettings{from{opacity:0}to{opacity:1}}.fb-reviews,.reviews-options{display:none}.fts-required-token-message{padding:15px;background:#fcfcfc;margin:12px 0 20px;border-left:4px solid #FB3939}.custom_time_ago_wrap{padding-top:10px}.custom_time_ago_wrap h2{margin-bottom:20px}.custom_time_ago_wrap label{color:#000;display:inline-block;min-width:75px;margin:0 10px 12px;font-size:13px}.slideshow-wrap{margin-top:18px}.fb-page-list{margin:0;display:block;max-width:740px}.fb-page-list li{background:#FFF;padding:8px 10px 10px;margin:0;border-left:15px solid #3b5999;border-bottom:1px solid #e9ebee;cursor:pointer}.fb-page-list li .feed-them-social-admin-submit-btn{display:none;margin-top:9px!important;position:absolute;right:15px;top:7px}.fb-page-list li:hover{background:rgba(255,255,255,.57)}.fb-image{margin:0 15px 0 0;float:left;line-height:50px;text-align:center!important;max-width:50px;min-width:50px;vertical-align:baseline;min-height:50px}.fb-image img{display:inline-block;vertical-align:middle;border-radius:50px}.fb-name{margin:0;display:inline-block;line-height:15px;letter-spacing:1px;color:#4c4c4c;font-weight:500;padding-top:10px}.board-name,.combine-instagram-hashtag-option-text,.combine-instagram-location-option-text,.fb-video-play-btn-options-content,.fb-video-play-btn-options-wrap,.fb_album_photos_id,.fts-facebook-grid-options-wrap,.fts-facebook-load-more-options-wrap,.fts-facebook-load-more-options2-wrap,.fts-fb-id,.fts-instagram-load-more-options-wrap,.fts-super-facebook-options-wrap,.fts-youtube-load-more-options-wrap,.fts-youtube-load-more-options2-wrap,.instagram-hashtag-option-text,.instagram-location-option-text,.page-token,.pinterest-board-and-name-text,.slider_options_wrap,.slideshow-wrap,.youtube_align_comments_wrap,.youtube_channelID2,.youtube_name,.youtube_name2,.youtube_playlistID,.youtube_playlistID2,.youtube_singleVideoID{display:none}.fts-pages-info{background:#3b5999;max-width:710px;padding:10px 15px 12px;color:#FFF;margin-top:1px;letter-spacing:.5px}.fts-fb-page-thumb{float:left;margin-right:10px;border-radius:50px}.fts-successful-api-token h3{margin-bottom:0;margin-top:4px;font-weight:700}.use-of-plugin{color:#000;font-size:13px;font-weight:400;line-height:20px;max-width:60%;padding-bottom:12px;margin-bottom:0}.fts-admin-button-no-work{margin:0 0 0 25px;line-height:41px}.twitter_hashtag_etc_name{padding-top:0}.page.inst-text-facebook-page{display:block}.slider_options_wrap.not-active-premium-fields,.slideshow-wrap .feed-them-social-admin-input-default{display:block!important}.fts-premium-options-message a.not-active-title:first-child{font-size:16px!important;display:block!important;padding:0!important;margin:0 0 5px!important;text-decoration:none!important}.combine-facebook-wrap,.combine-grid-options-wrap,.combine-instagram-wrap,.combine-pinterest-wrap,.combine-twitter-wrap,.combine-youtube-wrap,.combine_board_id,.combine_playlist_id,.combine_youtube_name,.display-comments-wrap,.facebook-reviews-wrap,.fts-premium-options-message,.fts-twitter-grid-options-wrap,.fts-twitter-load-more-options-wrap,.fts-twitter-load-more-options2-wrap,.inst-text-facebook-reviews,.instagram-profile-options-wrap,.like-box-wrap{display:none}.sectioned-options-title{margin-top:15px!important;margin-bottom:15px!important;border-bottom:1px solid #f1f1f1;padding:10px 10px 10px 30px;font-size:18px!important;color:#060606!important;background:#FFF;margin-left:-30px!important;box-shadow:0 1px 1px rgba(153,153,153,.59)}.facebook-image-animation-option-wrap,.multiple_facebook .facebook-loadmore-wrap,.multiple_facebook .facebook-title-options-wrap,.multiple_facebook .like-box-wrap,.multiple_facebook h2{display:none!important}.fts-fb-load-more,.fts-fb-spinner{text-align:center}.fts-fb-spinner>div{width:10px;height:10px;background-color:#999;border-radius:100%;display:inline-block;-webkit-animation:fts-fb-bouncedelay 1.4s infinite ease-in-out;animation:fts-fb-bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.fts-hide-me,.popup-gallery-fb .fts-fb-caption{display:none}.fb-social-btn-below-description,.fb-social-btn-bottom,.fb-social-btn-top{width:100%!important;overflow:hidden}.fts-fb-spinner .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.fts-fb-spinner .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes fts-fb-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes fts-fb-bouncedelay{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.fts-fluid-videoWrapper-html5 video{object-fit:inherit;margin-bottom:0!important}.fts-fb-album-view-link a{color:#FFF}.fts-fb-album-view-link a:hover{color:#eee}.fts-fb-load-more{border-radius:1px;padding:0;line-height:37px!important;width:100%;min-height:37px!important;font-size:13px!important;background:#fff!important;cursor:pointer;color:#787a7b;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;max-width:740px!important;font-weight:700}.toggle-custom-textarea-show span,label.toggle-custom-textarea-show{color:#fffefe}.fts-logo-header{margin-bottom:20px!important}.fts-logo-subheader{margin-bottom:10px!important}.fts-color-settings-admin-form label{font-weight:700;min-width:100px}#fts_clear_cache_developer_mode{margin-left:28px}.toplevel_page_feed-them-settings-page .pane-active{display:block}.toplevel_page_feed-them-settings-page .fts-tabbed{display:block;float:left;color:#545454;font-weight:700;text-decoration:none;line-height:1.9;text-align:center;cursor:pointer;border-bottom:1px solid #ccc;padding:10px 38px!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:115px;background:#FFF;margin-right:1px!important;font-size:13px;width:auto!important}.toplevel_page_feed-them-settings-page label.tab-active{background:#0073AA!important;color:#FFF!important}.toplevel_page_feed-them-settings-page .fts-tab-content{clear:both;padding-top:15px}.feed-them-social-admin-input-label small{font-weight:400}.not-active-title:hover h3{color:#028fd2}.not-active-title h3{color:#0073aa}@media (max-width:797px){.toplevel_page_feed-them-settings-page #fts-tabs{margin-top:140px!important}}@media (max-width:450px){#shortcode-form-selector{min-width:270px!important}}@media (max-width:500px){.toplevel_page_feed-them-settings-page #fts-tab-content1 .use-of-plugin{max-width:100%!important}}#fts-timezone{max-width:300px}.fts-instagram-username-picker-wrap li{clear:both;background:#e6e6e6;padding:10px;margin-bottom:1px;display:block;width:100%;line-height:16px;float:left}.combine-twitter-hashtag-etc-wrap,.facebook_hide_date,.facebook_hide_name,.facebook_hide_thumbnail,.facebook_show_media,.fts-success,.youtube_video_single_info_display{display:none}.fts-instagram-username-picker-wrap li.fts-insta-id-active,.fts-instagram-username-picker-wrap li:hover{background:#0073aa;color:#FFF}.ft-instagram-username-picker{clear:both;margin:0 0 1px;height:65px}.fts-insta-profile-picture-div img{float:left;max-width:65px;margin-right:15px;border-radius:100px}.fts-insta-fullname-div{padding:5px 0 2px}.fts-insta-id-div{font-style:italic;padding:5px 0 0}.fts-instagram-username-picker-wrap{padding-right:20px;max-height:310px;overflow:auto;margin:0}.fts-instagram-username-picker-wrap li:first-child{margin-top:10px}.fts-instagram-username-picker-wrap li:last-child{margin-bottom:10px}.fts-empty-error input,input.fts-empty-error{background:#ffffd8!important}.fts-instagram-username-picker-wrap li{color:#222}.fts-highlight{background:#0073aa;border-radius:20px;color:#FFF;padding:0 5px}.fts-youtube-get-access-token,.fts-youtube-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/youtube-logo-admin.jpg) 13px 12px no-repeat #FFF;color:#252525}.fts-twitter-get-access-token,.fts-twitter-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/twitter-logo-admin.jpg) 13px 12px no-repeat #FFF;color:#252525}.fts-twitter-add-all-keys-click-option{margin:-10px 0 15px}.twitter-extra-keys-text{max-width:550px;margin-bottom:15px}.feed-them_page_fts-twitter-feed-styles-submenu-page .fts-successful-api-token{margin-top:0;margin-bottom:-10px}#fts-timer{padding:6px 0 0 1px;float:left}@font-face{font-family:FontAwesomeSlick;src:url(../../feeds/css/font/fontawesome-webfont.eot?v=3.2.1);src:url(../../feeds/css/font/fontawesome-webfont.eot?#iefix&v=3.2.1) format("embedded-opentype"),url(../../feeds/css/font/fontawesome-webfont.woff?v=3.2.1) format("woff"),url(../../feeds/css/font/fontawesome-webfont.ttf?v=3.2.1) format("truetype"),url(../../feeds/css/font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1) format("svg")}.fts-success:before{font-family:FontAwesomeSlick!important;content:"\f00c"!important;font-size:14px;position:relative;line-height:19px}.fts-success{margin:3px 6px 0;padding:2px 4px;color:#fff;background:#01a701;border-radius:20px;float:left;font-size:10px!important;width:auto;height:18px}#discount-for-review a:hover{color:#0073aa}.fb-sublist{border:none!important;overflow:auto;height:200px;background:#f7f7f7}.fb-sublist li{border: 1px solid #f7f7f7!important;border-bottom:0;border-right:0;}.fts-token-save{border-radius:100px}.fb-sublist .fb-name{letter-spacing:0!important;font-size:13px}.fts-fb-location-text-wrap{padding:8px;text-align:center;color:#f7f7f7;font-weight:700;background:#00a400;margin:10px 0 0}.fb-name small{display:block;line-height:0;letter-spacing:0;color:#969696}.fts-successful-api-token small{font-size:12px}.fb-page-list li{position:relative}.fts-successful-api-token h3 a{text-decoration:none!important;color:#262627;text-shadow:1px 1px 1px #fff;font-size:18px}.fts-successful-api-token h3 a:hover,.fts-successful-api-token img:hover{opacity:.8}.fb-page-list .fts-fb-load-more{color:#00a400}
1
+ .clear,.fts-clear{clear:both}.display{display:block!important}.facebook-message-generator,.final-instagram-user-id-textarea,.final-shortcode-textarea,.fts-facebook_group-shortcode-form .twitter_name,.fts-fb-event-option-wrap .twitter_name,.shortcode-generator-form,instagram-shortcode-form{display:none}.feed-them_page_fts-facebook-feed-styles-submenu-page .use-of-plugin{font-size:13px;font-weight:400;line-height:20px;max-width:740px;border-bottom:1px solid #ccc}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-facebook-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-instagram-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-pinterest-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-pinterest-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-twitter-feed-styles-submenu-page .use-of-plugin,.feed-them_page_fts-youtube-feed-styles-submenu-page .feed-them-social-admin-wrap h1,.feed-them_page_fts-youtube-feed-styles-submenu-page .use-of-plugin{color:#333}.instagram-id-option-wrap{margin-top:25px}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap h2{margin-top:45px}.fts-super-instagram-options-wrap{padding-top:0}.fts-empty-error input{background-color:#FDFDD3!important}.toplevel_page_feed-them-settings-page h1{font-size:32px}.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap h2,.fts-youtube-feed-styles-submenu-page .feed-them-social-admin-wrap h2{margin-top:45px;color:#333}.feed-them-social-admin-wrap h1{color:#FFF;margin:0 0 5px;line-height:30px;font-weight:700}.feed-them-social-admin-wrap h4{font-size:12px;font-weight:400;color:#000;margin:1px 0 8px}.feed-them-social-admin-wrap input[type=button],.feed-them-social-admin-wrap input[type=submit]{-webkit-appearance:none}.feed-them-social-admin-wrap input[type=text]{line-height:19px;max-width:100%;font-weight:400}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-pinterest-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-wrap,.feed-them_page_fts-youtube-feed-styles-submenu-page .feed-them-social-admin-wrap{max-width:100%;width:100%;min-height:auto;background:0 0;padding:0;-webkit-box-shadow:none;box-shadow:none;border-radius:1px;position:relative;margin:20px 20px 0 0;-webkit-text-size-adjust:none}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-input-wrap,.feed-them_page_fts-pinterest-feed-styles-submenu-page .feed-them-social-admin-input-wrap,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-input-wrap,.feed-them_page_fts-youtube-feed-styles-submenu-page .feed-them-social-admin-input-wrap{background:0 0}.feed-them-social-admin-wrap{max-width:806px;min-height:379px;padding:19px;margin:20px 10px 0 0;background-size:cover;-webkit-text-size-adjust:none;overflow:hidden;border-radius:2px}.feed-them_page_fts-youtube-feed-styles-submenu-page h2{color:#333!important;margin-top:45px!important}.feed-them-social-admin-form .feed-them-social-admin-wrap h2{color:#000;font-size:20px;font-weight:400;line-height:23px;margin:15px 0}.feed-them-social-admin-form{padding:5px 0 0}.fts-facebook_group-shortcode-form:hover a{background-position:top right!important;background-size:34px!important;height:34px!important;width:34px!important}.feed-them-social-admin-input-wrap{padding:5px 0 10px;margin-bottom:10px;border-radius:2px;-webkit-border-radius:2px}.pinterest-gen-selection{margin-bottom:25px}.final-shortcode-textarea .feed-them-social-admin-input-label{color:#0361B8;width:auto;font-size:14px}.instagram-shortcode-form .final-shortcode-textarea .feed-them-social-admin-input-label{color:#0361B8}.final-shortcode-textarea{margin-top:25px}.final-shortcode-textarea input{width:100%;margin-top:2px}.feed-them-social-admin-input-label{float:left;width:230px;margin-right:10px;font-size:13px;padding-top:6px;font-weight:700}.feed-them_page_fts-facebook-feed-styles-submenu-page .feed-them-social-admin-input-label,.feed-them_page_fts-instagram-feed-styles-submenu-page .feed-them-social-admin-input-label,.feed-them_page_fts-twitter-feed-styles-submenu-page .feed-them-social-admin-input-label{float:left;width:230px;margin-right:10px;font-size:13px;text-transform:none;padding-top:6px}.feed-them-social-admin-input-label a{text-decoration:underline!important;cursor:pointer}.feed_them_social_id-answer a,.im-done{cursor:pointer!important}.feed-them-social-admin-input-example{float:left;font-weight:700;margin-left:10px;padding-top:4px}.feed-them-social-admin-input{float:left;width:305px;max-width:100%;font-weight:400}.feed-them-social-admin-input-default{float:left;width:290px;padding:4px 7px;border:1px solid #DFDFDF;background-color:#FFF;font-size:12px}.fts-color-settings-admin-form .feed-them-social-admin-submit-btn{float:left;margin:0;padding:0 20px;height:37px;line-height:35px}.feed-them-social-admin-submit-btn{padding:10px 15px;border-radius:1px;background-color:#31AC45!important;color:#fff!important;font-weight:400;cursor:pointer!important;transition:all .3s ease-in-out;border:none;letter-spacing:1px;outline:0;font-size:12px}.feed-them-social-admin-submit-btn,.feed-them-social-admin-submit-btn:hover{-webkit-transition:background 2s;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.feed-them-social-admin-submit-btn:hover{background-color:#2BBE43!important;color:#FFF!important;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;outline:0}.toplevel_page_feed-them-settings-page .feed-them-social-admin-slick-logo{right:5px;-webkit-border-radius:3px;border-radius:3px}.feed_them_social_id-answer{padding:15px 0;display:none;font-weight:700}.feed_them_social_id-answer div{padding-bottom:10px}.im-done{padding:10px;background-color:#CD1723!important;border:none!important;color:#fff!important;font-weight:700;text-shadow:1px 1px 3px #000;filter:dropshadow(color=#000000, offx=1, offy=1);-webkit-border-radius:3px;border-radius:3px}#shortcode-form-selector{margin-bottom:10px;padding:15px;height:40px;min-width:290px}.feed-them-icon-wrap{position:absolute;right:27px;top:25px;width:234px;height:50px}.feed-them-social-admin-wrap,.fts-content,.fts-plugin-reviews{position:relative}.fts-facebook_group-shortcode-form:hover .feed-them-icon-wrap a.facebook-icon{background-position:top right!important;background-size:34px!important;height:34px!important;width:34px!important;display:none}.feed-them-icon-wrap a{opacity:1;float:right;margin-left:1px;margin-bottom:1px;display:block;height:38px;width:38px;cursor:default;outline:0;border:none;box-shadow:0 1px 1px #222;border-radius:0;transition:all .3s ease-in-out}.feed-them-icon-wrap a,.feed-them-icon-wrap a:hover{-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.feed-them-icon-wrap a:hover{opacity:.85;transition:all .3s ease-in-out}.feed-them-icon-wrap a.facebook-icon{background:url(../images/facebook-icon.png) no-repeat}.feed-them-icon-wrap a.twitter-icon{background:url(../images/twitter-icon.png) top right no-repeat}.feed-them-icon-wrap a.instagram-icon{background:url(../images/instagram-icon.png) top right no-repeat}.feed-them-icon-wrap .feed-them-icon-wrap a.youtube-icon{background:url(../images/youtube-icon.png) top right no-repeat}.feed-them-icon-wrap a.pinterest-icon{background:url(../images/pinterest-icon.png) top right no-repeat}a.icon-animate-small{background-position:top right!important;background-size:34px!important;height:34px!important;width:34px!important}.instructional-text{font-size:13px;line-height:19px;margin:0 0 15px;border-bottom:1px dotted #9C9C9C;color:#212121;padding:0 0 5px}.instructional-text a{color:#0073aa;text-decoration:none}.instructional-text a,.instructional-text a:hover{-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out}.instructional-text a:hover{transition:all .3s ease-in-out}.feed-them-custom-css{padding-top:25px;padding-left:0}.feed-them-clear-cache input{background-color:#F11E2E!important;margin-bottom:10px}.feed-them-clear-cache input:hover{background-color:#F15D2E!important}.feed-them-clear-cache-text{color:#F11E2E!important;font-weight:700;background-color:rgba(255,255,255,.88);padding:10px 16px;margin-top:10px;margin-bottom:10px;border-radius:2px;-webkit-border-radius:2px;opacity:.9}.fts-get-premium-version{margin-right:1em;margin-top:15px;display:block;max-width:210px;text-align:center;text-decoration:none!important}textarea#fts-color-options-main-wrapper-css-input{max-width:100%;min-height:350px;clear:both;background:#F9F9F9;font-family:Consolas,Monaco,monospace;font-size:12px;width:100%;height:300px;outline:0}.fts-custom-css-text{margin-bottom:5px}label.toggle-custom-textarea-show:hover{background:#999}label.toggle-custom-textarea-show{max-width:435px;display:block;height:37px;line-height:35px;float:left;text-align:center;padding:0 15px;background:#818181;border-radius:1px;font-size:12px;clear:both;letter-spacing:1px;margin:5px 5px 10px 0;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}#fts-color-options-main-wrapper-css-input,.fts-custom-css-text,.toggle-custom-textarea-hide{display:none}.fts-admin-wrap p input[type=checkbox],.fts-wp-header-custom input[type=checkbox]{margin:-1px 7px 0 2px!important}.fts-color-settings-admin-form p,.fts-powered-by-settings-admin-form p{color:#000;font-size:12px;-webkit-text-size-adjust:none}.fts-powered-by-settings-admin-form p{margin-bottom:0}.feed-them-custom-logo-css{margin-top:25px}#discount-for-review{clear:both;margin-bottom:1px;text-align:center;font-weight:700;color:#000;background:rgba(255,255,255,.53);float:right;width:195px;line-height:40px;cursor:pointer}.discount-review-text{clear:both;color:#333;background:rgba(255,255,255,.9);width:165px;float:right;padding:20px 15px;text-align:center;display:none}#discount-for-review a{display:inline-block;width:auto;height:auto;margin:0;padding:0;border:none;box-shadow:none;float:none;cursor:pointer;text-decoration:none;font-size:12px;font-weight:700;color:#0073aa}.fts-color-settings-admin-form label,.fts-color-settings-admin-form span{color:#060606}.fts-color-settings-admin-form p.example{color:#FFF;padding-bottom:35px!important}.fts-color-settings-admin-form fieldset label{color:#FFF;line-height:30px}.fts-color-settings-admin-form fieldset a{color:#FFF;text-decoration:none}@media (max-width:800px){.toplevel_page_feed-them-settings-page .feed-them-social-admin-wrap h1{text-shadow:#fff!important;height:32px!important;width:280px!important;background-size:280px!important}.feed-them-icon-wrap{position:relative;margin:-20px 0 70px;left:0!important;height:auto;clear:both;text-align:left}.feed-them-social-admin-slick-logo{display:none}#fts-date-and-time-format{width:100%}}.fts-failed-api-token,.fts-successful-api-token{clear:both;float:left;padding:7px 14px 7px 10px;border:1px solid rgba(255,255,255,.45);color:#000;margin:10px 20px 0 0;max-width:715px;width:100%}.fts-failed-api-token{background:rgba(245,207,206,.78)}.fts-successful-api-token{background:rgba(220,253,205,.78)}.feed-them_page_fts-facebook-feed-styles-submenu-page .fts-failed-api-token,.feed-them_page_fts-facebook-feed-styles-submenu-page .fts-successful-api-token{margin-top:0!important;padding:10px 15px;max-width:708px}.fts-special-working-wrap{padding:8px!important;max-width:722px!important}#fts_facebook_custom_api_token,#fts_facebook_custom_api_token_biz{margin-bottom:20px!important}.fts-facebook-custom-api-token-label{display:block;margin:0 40px 4px 0}.fts-facebook-custom-api-token-label a{font-weight:700;color:#DF1818}.twitter-api-wrap{margin:20px 0 0}.twitter-api-wrap .feed-them-social-admin-input-wrap{margin:0}.fts-facebook-custom-api-token-label,.fts-instagram-custom-api-token-label{max-width:700px;line-height:21px;font-size:13px}.fts-facebook-get-access-token,.fts-facebook-get-access-token:focus,.fts-instagram-get-access-token,.fts-instagram-get-access-token:focus,.fts-pinterest-get-access-token,.fts-pinterest-get-access-token:focus,.fts-twitter-get-access-token,.fts-twitter-get-access-token:focus,.fts-youtube-get-access-token,.fts-youtube-get-access-token:focus{border-radius:5px;box-shadow:0 1px 1px #999;display:block;clear:both;float:left;font-size:14px;margin-bottom:25px;margin-top:5px;text-decoration:none;font-weight:600}.fts-instagram-get-access-token,.fts-instagram-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/instagram-logo-admin.png) 13px 12px no-repeat #FFF;color:#252525}.fts-pinterest-get-access-token,.fts-pinterest-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/pinterest-logo-admin.jpg) 13px 12px no-repeat #FFF;color:#252525}.fts-facebook-get-access-token:hover,.fts-instagram-get-access-token:hover,.fts-pinterest-get-access-token:hover{color:#666}.fts-facebook-get-access-token,.fts-facebook-get-access-token:focus{padding:18px 16px 19px 182px;background:url(../images/facebook-logo-admin.jpg) 14px 12px no-repeat #FFF;color:#252525}@font-face{margin:0 0 9px;font-size:19px}.fts-title-description-settings-page{padding:25px 0 15px;max-width:740px;border-top:1px solid #ccc}.fts-premium-options-message,.fts-premium-options-message2{font-size:13px;padding:20px 25px 25px;line-height:19px;background-color:#FFF;margin:0}.fts-premium-options-message a:first-child,.fts-premium-options-message2 a:first-child{font-size:16px;display:inline-block;padding:0;margin:0 0 5px;text-decoration:none}.fts-plugin-reviews{max-width:789px;padding:25px 28px 31px;box-shadow:0 0 1px #d1d1d1;border-radius:1px;background:rgba(255,255,255,1);-webkit-text-size-adjust:none;font-size:13px;line-height:21px;margin-right:10px}.fts-plugin-reviews a{text-decoration:none}.fts-plugin-reviews-rate{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #eee}h1.plugin-author-note{margin:50px 0 15px!important;font-size:22px;color:#222;z-index:1;position:relative}.toplevel_page_feed-them-settings-page .error{margin:20px 20px 20px 0;max-width:818px}.feed-them_page_fts-facebook-feed-styles-submenu-page .error,.feed-them_page_fts-instagram-feed-styles-submenu-page .error,.feed-them_page_fts-pinterest-feed-styles-submenu-page .error,.feed-them_page_fts-system-info-submenu-page .error,.feed-them_page_fts-system-info-submenu-page .notice,.feed-them_page_fts-twitter-feed-styles-submenu-page .error,.feed-them_page_fts-youtube-feed-styles-submenu-page .error{margin:20px 20px 20px 0!important}.feed-them_page_fts-bar-settings-page .error{margin:20px 20px 20px 5px!important;max-width:1005px}.hashtag-option-small-text,.twitter-hashtag-etc-wrap{display:none}.twitter-hashtag-etc-wrap{margin:15px 0 35px}.fts-content{background-color:rgba(241,241,241,.65);padding:30px;z-index:1;display:nonee;border-radius:2px;box-shadow:0 2px 10px rgba(41,41,41,.51);min-height:315px}.shortcode-generator-form{border-radius:3px;margin-top:15px}.instructional-text a:hover{color:#EA1616;text-decoration:underline;opacity:.8}.final-shortcode-textarea h4{border-bottom:1px solid #FFF;padding:0 0 10px;font-size:13px;margin-bottom:15px}.toplevel_page_feed-them-settings-page .fts-content h1{color:#fbfbfb;margin:0 0 12px;line-height:30px;text-shadow:1px 1px 1px rgba(51,51,51,.06);font-weight:600;background:url(../images/feed-them-social-logo.png) no-repeat;height:40px;width:377px;font-size:0}.fb-options-wrap .feed-them-social-admin-submit-btn{margin-top:5px}#fts-social-selector,.twitter-gen-selection{margin-bottom:25px}.fts-text-align-center{text-align:center}.toplevel_page_feed-them-settings-page .feed-them-social-admin-slick-logo{background:url(../images/footer-logo.png) center no-repeat;width:110px;height:20px;padding:0;margin:20px 0 -20px;display:inline-block;position:relative;bottom:0;:0;opacity:1}.fb-image,.fts-backg{width:100%;height:100%}.feed-them-social-admin-wrap h3{color:#000;font-size:20px;font-weight:400;line-height:23px;margin:0 0 5px}.feed-them-social-admin-wrap .feed-them-social-admin-form h2{color:#000;font-size:23px;font-weight:400;line-height:23px;margin:15px 0 20px;padding:0}.instagram-id-option-wrap .feed-them-social-admin-submit-btn,.toplevel_page_feed-them-settings-page .feed-them-social-admin-submit-btn{margin-top:0;margin-left:0!important}.toplevel_page_feed-them-settings-page .instagram-id-option-wrap .feed-them-social-admin-submit-btn{margin-top:5px!important;margin-left:0!important}.feed-them-clear-cache .use-of-plugin{margin:0}.feed-them-clear-cache h2,.feed-them-custom-css h2,.feed-them-custom-logo-css h2{margin-bottom:10px;margin-top:5px;font-size:17px;padding-top:20px;border-top:1px dotted rgba(177,177,177,.88);color:#060606}.feed-them-clear-cache h2{border:none;margin-top:17px;padding-top:0}.feed-them-custom-css p,.feed-them-custom-logo-css p{margin:0 0 5px}#fts-date-and-time-format{margin-bottom:10px}.feed-them-social-admin-submit-btn{margin-top:15px!important}#fts_admin_bar_menu{margin-bottom:0;margin-left:31px}.fts-backg{position:absolute;top:0;right:0;z-index:0;opacity:1;-webkit-animation:ftsettings 5s;animation:ftsettings 5s;background:rgba(255,255,255,.8)}@-webkit-keyframes ftsettings{from{opacity:0}to{opacity:1}}@keyframes ftsettings{from{opacity:0}to{opacity:1}}.fb-reviews,.reviews-options{display:none}.fts-required-token-message{padding:15px;background:#fcfcfc;margin:12px 0 20px;border-left:4px solid #FB3939}.custom_time_ago_wrap{padding-top:10px}.custom_time_ago_wrap h2{margin-bottom:20px}.custom_time_ago_wrap label{color:#000;display:inline-block;min-width:75px;margin:0 10px 12px;font-size:13px}.slideshow-wrap{margin-top:18px}.fb-page-list{margin:0;display:block;max-width:740px}.fb-page-list li{background:#FFF;padding:8px 10px 10px;margin:0;border-left:15px solid #3b5999;border-bottom:1px solid #e9ebee;cursor:pointer}.fb-page-list li .feed-them-social-admin-submit-btn{display:none;margin-top:9px!important;position:absolute;right:15px;top:7px}.fb-page-list li:hover{background:rgba(255,255,255,.57)}.fb-image{margin:0 15px 0 0;float:left;line-height:50px;text-align:center!important;max-width:50px;min-width:50px;vertical-align:baseline;min-height:50px}.fb-image img{display:inline-block;vertical-align:middle;border-radius:50px}.fb-name{margin:0;display:inline-block;line-height:15px;letter-spacing:1px;color:#4c4c4c;font-weight:500;padding-top:10px}.board-name,.combine-instagram-hashtag-option-text,.combine-instagram-location-option-text,.fb-video-play-btn-options-content,.fb-video-play-btn-options-wrap,.fb_album_photos_id,.fts-facebook-grid-options-wrap,.fts-facebook-load-more-options-wrap,.fts-facebook-load-more-options2-wrap,.fts-fb-id,.fts-instagram-load-more-options-wrap,.fts-super-facebook-options-wrap,.fts-youtube-load-more-options-wrap,.fts-youtube-load-more-options2-wrap,.instagram-hashtag-option-text,.instagram-location-option-text,.page-token,.pinterest-board-and-name-text,.slider_options_wrap,.slideshow-wrap,.youtube_align_comments_wrap,.youtube_channelID2,.youtube_name,.youtube_name2,.youtube_playlistID,.youtube_playlistID2,.youtube_singleVideoID{display:none}.fts-pages-info{background:#3b5999;max-width:710px;padding:10px 15px 12px;color:#FFF;margin-top:1px;letter-spacing:.5px}.fts-fb-page-thumb{float:left;margin-right:10px;border-radius:50px}.fts-successful-api-token h3{margin-bottom:0;margin-top:4px;font-weight:700}.use-of-plugin{color:#000;font-size:13px;font-weight:400;line-height:20px;max-width:60%;padding-bottom:12px;margin-bottom:0}.fts-admin-button-no-work{margin:0 0 0 25px;line-height:41px}.twitter_hashtag_etc_name{padding-top:0}.page.inst-text-facebook-page{display:block}.slider_options_wrap.not-active-premium-fields,.slideshow-wrap .feed-them-social-admin-input-default{display:block!important}.fts-premium-options-message a.not-active-title:first-child{font-size:16px!important;display:block!important;padding:0!important;margin:0 0 5px!important;text-decoration:none!important}.combine-facebook-wrap,.combine-grid-options-wrap,.combine-instagram-wrap,.combine-pinterest-wrap,.combine-twitter-wrap,.combine-youtube-wrap,.combine_board_id,.combine_playlist_id,.combine_youtube_name,.display-comments-wrap,.facebook-reviews-wrap,.fts-premium-options-message,.fts-twitter-grid-options-wrap,.fts-twitter-load-more-options-wrap,.fts-twitter-load-more-options2-wrap,.inst-text-facebook-reviews,.instagram-profile-options-wrap,.like-box-wrap{display:none}.sectioned-options-title{margin-top:15px!important;margin-bottom:15px!important;border-bottom:1px solid #f1f1f1;padding:10px 10px 10px 30px;font-size:18px!important;color:#060606!important;background:#FFF;margin-left:-30px!important;box-shadow:0 1px 1px rgba(153,153,153,.59)}.facebook-image-animation-option-wrap,.multiple_facebook .facebook-loadmore-wrap,.multiple_facebook .facebook-title-options-wrap,.multiple_facebook .like-box-wrap,.multiple_facebook h2{display:none!important}.fts-fb-load-more,.fts-fb-spinner{text-align:center}.fts-fb-spinner>div{width:10px;height:10px;background-color:#999;border-radius:100%;display:inline-block;-webkit-animation:fts-fb-bouncedelay 1.4s infinite ease-in-out;animation:fts-fb-bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.fts-hide-me,.popup-gallery-fb .fts-fb-caption{display:none}.fb-social-btn-below-description,.fb-social-btn-bottom,.fb-social-btn-top{width:100%!important;overflow:hidden}.fts-fb-spinner .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.fts-fb-spinner .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes fts-fb-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes fts-fb-bouncedelay{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.fts-fluid-videoWrapper-html5 video{object-fit:inherit;margin-bottom:0!important}.fts-fb-album-view-link a{color:#FFF}.fts-fb-album-view-link a:hover{color:#eee}.fts-fb-load-more{border-radius:1px;padding:0;line-height:37px!important;width:100%;min-height:37px!important;font-size:13px!important;background:#fff!important;cursor:pointer;color:#787a7b;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;max-width:740px!important;font-weight:700}.toggle-custom-textarea-show span,label.toggle-custom-textarea-show{color:#fffefe}.fts-logo-header{margin-bottom:20px!important}.fts-logo-subheader{margin-bottom:10px!important}.fts-color-settings-admin-form label{font-weight:700;min-width:100px}#fts_clear_cache_developer_mode{margin-left:28px}.toplevel_page_feed-them-settings-page .pane-active{display:block}.toplevel_page_feed-them-settings-page .fts-tabbed{display:block;float:left;color:#545454;font-weight:700;text-decoration:none;line-height:1.9;text-align:center;cursor:pointer;border-bottom:1px solid #ccc;padding:10px 38px!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:115px;background:#FFF;margin-right:1px!important;font-size:13px;width:auto!important}.toplevel_page_feed-them-settings-page label.tab-active{background:#0073AA!important;color:#FFF!important}.toplevel_page_feed-them-settings-page .fts-tab-content{clear:both;padding-top:15px}.feed-them-social-admin-input-label small{font-weight:400}.not-active-title:hover h3{color:#028fd2}.not-active-title h3{color:#0073aa}@media (max-width:797px){.toplevel_page_feed-them-settings-page #fts-tabs{margin-top:140px!important}}@media (max-width:450px){#shortcode-form-selector{min-width:270px!important}}@media (max-width:500px){.toplevel_page_feed-them-settings-page #fts-tab-content1 .use-of-plugin{max-width:100%!important}}#fts-timezone{max-width:300px}.fts-instagram-username-picker-wrap li{clear:both;background:#e6e6e6;padding:10px;margin-bottom:1px;display:block;width:100%;line-height:16px;float:left}.combine-twitter-hashtag-etc-wrap,.facebook_hide_date,.facebook_hide_name,.facebook_hide_thumbnail,.facebook_show_media,.fts-success,.youtube_video_single_info_display{display:none}.fts-instagram-username-picker-wrap li.fts-insta-id-active,.fts-instagram-username-picker-wrap li:hover{background:#0073aa;color:#FFF}.ft-instagram-username-picker{clear:both;margin:0 0 1px;height:65px}.fts-insta-profile-picture-div img{float:left;max-width:65px;margin-right:15px;border-radius:100px}.fts-insta-fullname-div{padding:5px 0 2px}.fts-insta-id-div{font-style:italic;padding:5px 0 0}.fts-instagram-username-picker-wrap{padding-right:20px;max-height:310px;overflow:auto;margin:0}.fts-instagram-username-picker-wrap li:first-child{margin-top:10px}.fts-instagram-username-picker-wrap li:last-child{margin-bottom:10px}.fts-empty-error input,input.fts-empty-error{background:#ffffd8!important}.fts-instagram-username-picker-wrap li{color:#222}.fts-highlight{background:#0073aa;border-radius:20px;color:#FFF;padding:0 5px}.fts-youtube-get-access-token,.fts-youtube-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/youtube-logo-admin.jpg) 13px 12px no-repeat #FFF;color:#252525}.fts-twitter-get-access-token,.fts-twitter-get-access-token:focus{padding:18px 16px 19px 188px;background:url(../images/twitter-logo-admin.jpg) 13px 12px no-repeat #FFF;color:#252525}.fts-twitter-add-all-keys-click-option, .fts-youtube-add-all-keys-click-option{margin:-10px 0 15px}.twitter-extra-keys-text, .youtube-extra-keys-text{max-width:550px;margin-bottom:15px}.feed-them_page_fts-twitter-feed-styles-submenu-page .fts-successful-api-token{margin-top:0;margin-bottom:-10px}#fts-timer{padding:6px 0 0 1px;float:left}@font-face{font-family:FontAwesomeSlick;src:url(../../feeds/css/font/fontawesome-webfont.eot?v=3.2.1);src:url(../../feeds/css/font/fontawesome-webfont.eot?#iefix&v=3.2.1) format("embedded-opentype"),url(../../feeds/css/font/fontawesome-webfont.woff?v=3.2.1) format("woff"),url(../../feeds/css/font/fontawesome-webfont.ttf?v=3.2.1) format("truetype"),url(../../feeds/css/font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1) format("svg")}.fts-success:before{font-family:FontAwesomeSlick!important;content:"\f00c"!important;font-size:14px;position:relative;line-height:19px}.fts-success{margin:3px 6px 0;padding:2px 4px;color:#fff;background:#01a701;border-radius:20px;float:left;font-size:10px!important;width:auto;height:18px}#discount-for-review a:hover{color:#0073aa}.fb-sublist{border:none!important;overflow:auto;height:200px;background:#f7f7f7}.fb-sublist li{border: 1px solid #f7f7f7!important;border-bottom:0;border-right:0;}.fts-token-save{border-radius:100px}.fb-sublist .fb-name{letter-spacing:0!important;font-size:13px}.fts-fb-location-text-wrap{padding:8px;text-align:center;color:#f7f7f7;font-weight:700;background:#00a400;margin:10px 0 0}.fb-name small{display:block;line-height:0;letter-spacing:0;color:#969696}.fts-successful-api-token small{font-size:12px}.fb-page-list li{position:relative}.fts-successful-api-token h3 a{text-decoration:none!important;color:#262627;text-shadow:1px 1px 1px #fff;font-size:18px}.fts-successful-api-token h3 a:hover,.fts-successful-api-token img:hover{opacity:.8}.fb-page-list .fts-fb-load-more{color:#00a400}.feed-them-icon-wrap a.youtube-icon {background: url(../images/youtube-icon.png) top right no-repeat;}
admin/feed-them-facebook-style-options-page.php DELETED
@@ -1,884 +0,0 @@
1
- <?php
2
- namespace feedthemsocial;
3
- /**
4
- * Class FTS Facebook Options Page
5
- *
6
- * @package feedthemsocial
7
- */
8
- class FTS_facebook_options_page
9
- {
10
-
11
- /**
12
- * Construct
13
- *
14
- * Facebook Style Options Page constructor.
15
- *
16
- * @since 1.9.6
17
- */
18
- function __construct() {
19
-
20
- }
21
-
22
- /**
23
- * Feed Them Facebook Options Page
24
- *
25
- * @since 1.9.6
26
- */
27
- function feed_them_facebook_options_page() {
28
- $fts_functions = new feed_them_social_functions();
29
- ?>
30
-
31
- <div class="feed-them-social-admin-wrap">
32
- <h1>
33
- <?php _e('Facebook Feed Options', 'feed-them-social'); ?>
34
- </h1>
35
- <div class="use-of-plugin">
36
- <?php _e('Change the language, color and more for your facebook feed using the options below.', 'feed-them-social'); ?>
37
- </div>
38
- <!-- custom option for padding -->
39
- <form method="post" class="fts-facebook-feed-options-form" action="options.php" id="fts-facebook-feed-options-form">
40
- <br/>
41
- <?php // get our registered settings from the fts functions
42
- settings_fields('fts-facebook-feed-style-options');
43
- //Language select
44
- $fb_language = get_option('fb_language', 'en_US');
45
- //share button
46
- $fb_show_follow_btn = get_option('fb_show_follow_btn');
47
- $fb_show_follow_btn_where = get_option('fb_show_follow_btn_where');
48
- $fb_show_follow_btn_profile_pic = get_option('fb_show_follow_btn_profile_pic');
49
- $fb_like_btn_color = get_option('fb_like_btn_color', 'light');
50
- $fb_hide_shared_by_etc_text = get_option('fb_hide_shared_by_etc_text');
51
- $fb_hide_images_in_posts = get_option('fb_hide_images_in_posts');
52
- $fb_hide_error_handler_message = get_option('fb_hide_error_handler_message');
53
- $fb_hide_no_posts_message = get_option('fb_hide_no_posts_message');
54
- $fb_reviews_remove_see_reviews_link = get_option('fb_reviews_remove_see_reviews_link');
55
- $fb_loadmore_background_color = get_option('fb_loadmore_background_color');
56
- $fb_loadmore_text_color = get_option('fb_loadmore_text_color');
57
-
58
- $fb_reviews_overall_rating_background_border_hide = get_option('fb_reviews_overall_rating_background_border_hide');
59
-
60
- $lang_options_array = json_decode($fts_functions->xml_json_parse('https://raw.githubusercontent.com/pennersr/django-allauth/master/allauth/socialaccount/providers/facebook/data/FacebookLocales.xml'));
61
- //echo'<pre>';
62
- // print_r($lang_options_array);
63
- //echo'</pre>';
64
-
65
- ?>
66
- <div id="fb-token-master-wrap" class="feed-them-social-admin-input-wrap" style="padding-bottom:0px;">
67
- <div class="fts-title-description-settings-page" style="padding-top:0; border:none; margin-bottom:0px;">
68
- <h3>
69
- <?php _e('Facebook API Token', 'feed-them-social'); ?>
70
- </h3>
71
- <?php _e('This Facebook Access Token is for Business Pages, Photos and Videos only and is simply used to display the feed. You must be an admin of the business page to get your token. This will NOT work for personal profiles or groups. ', 'feed-them-social'); ?>
72
- <p>
73
- <a href="https://www.facebook.com/dialog/oauth?client_id=1123168491105924&redirect_uri=https://www.slickremix.com/facebook-token/&state=<?php echo admin_url('admin.php?page=fts-facebook-feed-styles-submenu-page'); ?>&scope=manage_pages" class="fts-facebook-get-access-token">Login
74
- and get my Access Token</a></p>
75
-
76
- </div>
77
- <a href="mailto:support@slickremix.com" target="_blank" class="fts-admin-button-no-work"><?php _e('Button not working?', 'feed-them-social'); ?></a>
78
- <?php
79
- $test_app_token_id = get_option('fts_facebook_custom_api_token');
80
- $test_app_token_id_biz = get_option('fts_facebook_custom_api_token_biz');
81
- if (!empty($test_app_token_id) || !empty($test_app_token_id_biz)) {
82
- $fts_fb_access_token = '226916994002335|ks3AFvyAOckiTA1u_aDoI4HYuuw';
83
- $test_app_token_URL = array(
84
- 'app_token_id' => 'https://graph.facebook.com/debug_token?input_token=' . $test_app_token_id . '&access_token=' . $test_app_token_id
85
- // 'app_token_id' => 'https://graph.facebook.com/oauth/access_token?client_id=705020102908771&client_secret=70166128c6a7b5424856282a5358f47b&grant_type=fb_exchange_token&fb_exchange_token=CAAKBNkjLG2MBAK5jVUp1ZBCYCiLB8ZAdALWTEI4CesM8h3DeI4Jotngv4TKUsQZBwnbw9jiZCgyg0eEmlpiVauTsReKJWBgHe31xWCsbug1Tv3JhXZBEZBOdOIaz8iSZC6JVs4uc9RVjmyUq5H52w7IJVnxzcMuZBx4PThN3CfgKC5E4acJ9RnblrbKB37TBa1yumiPXDt72yiISKci7sqds0WFR3XsnkwQZD'
86
- );
87
- $test_app_token_URL_biz = array(
88
- 'app_token_id_biz' => 'https://graph.facebook.com/debug_token?input_token=' . $test_app_token_id_biz . '&access_token=' . $test_app_token_id_biz . '&'
89
- // 'app_token_id' => 'https://graph.facebook.com/oauth/access_token?client_id=705020102908771&client_secret=70166128c6a7b5424856282a5358f47b&grant_type=fb_exchange_token&fb_exchange_token=CAAKBNkjLG2MBAK5jVUp1ZBCYCiLB8ZAdALWTEI4CesM8h3DeI4Jotngv4TKUsQZBwnbw9jiZCgyg0eEmlpiVauTsReKJWBgHe31xWCsbug1Tv3JhXZBEZBOdOIaz8iSZC6JVs4uc9RVjmyUq5H52w7IJVnxzcMuZBx4PThN3CfgKC5E4acJ9RnblrbKB37TBa1yumiPXDt72yiISKci7sqds0WFR3XsnkwQZD'
90
- );
91
- //Test App ID
92
- // Leave these for reference:
93
- // App token for FTS APP2: 358962200939086|lyXQ5-zqXjvYSIgEf8mEhE9gZ_M
94
- // App token for FTS APP3: 705020102908771|rdaGxW9NK2caHCtFrulCZwJNPyY
95
- $test_app_token_response = $fts_functions->fts_get_feed_json($test_app_token_URL);
96
- $test_app_token_response = json_decode($test_app_token_response['app_token_id']);
97
- $test_app_token_response_biz = $fts_functions->fts_get_feed_json($test_app_token_URL_biz);
98
- $test_app_token_response_biz = json_decode($test_app_token_response_biz['app_token_id_biz']);
99
- // echo'<pre>';
100
- // print_r($test_app_token_response);
101
- // echo'</pre>';
102
- }
103
- ?>
104
- <div class="clear"></div>
105
- <div class="feed-them-social-admin-input-wrap fts-fb-token-wrap" id="fts-fb-token-wrap" style="margin-bottom:0px;">
106
- <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
107
- <?php _e('Page ID', 'feed-them-social'); ?>
108
- </div>
109
- <input type="text" name="fts_facebook_custom_api_token_user_id" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_id" value="<?php echo get_option('fts_facebook_custom_api_token_user_id'); ?>"/>
110
- <div class="clear" style="margin-bottom:10px;"></div>
111
- <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
112
- <?php _e('Access Token Required', 'feed-them-social'); ?>
113
- </div>
114
-
115
- <input type="text" name="fts_facebook_custom_api_token" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token" value="<?php echo get_option('fts_facebook_custom_api_token'); ?>"/>
116
- <div class="clear"></div>
117
-
118
- <input type="text" hidden name="fts_facebook_custom_api_token_user_name" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_name" value="<?php echo get_option('fts_facebook_custom_api_token_user_name'); ?>"/>
119
- <div class="clear"></div>
120
- <?php if (!empty($test_app_token_response) && !empty($test_app_token_id)) {
121
- if (isset($test_app_token_response->data->is_valid) || $test_app_token_response->error->message == "(#100) You must provide an app access token or a user access token that is an owner or developer of the app") {
122
- $fb_id = get_option('fts_facebook_custom_api_token_user_id');
123
- $fb_name = get_option('fts_facebook_custom_api_token_user_name');
124
- echo '<div class="fts-successful-api-token fts-special-working-wrap">';
125
-
126
- if (!empty($fb_id) && !empty($fb_name) && !empty($test_app_token_id)) {
127
- echo '<a href="https://www.facebook.com/'. get_option('fts_facebook_custom_api_token_user_id').'" target="_blank"><img border="0" height="50" width="50" class="fts-fb-page-thumb" src="https://graph.facebook.com/' . $fb_id . '/picture"/></a><h3><a href="https://www.facebook.com/'. get_option('fts_facebook_custom_api_token_user_id').'" target="_blank">' . $fb_name . '</a></h3>';
128
- }
129
- echo __('Your Access Token is now working! Generate your shortcode on the <a href="admin.php?page=feed-them-settings-page#feed_type=facebook">settings page</a>.', 'feed-them-social') . '</div>';
130
-
131
- }
132
- if (isset($test_app_token_response->data->error->message) && !empty($test_app_token_id) || isset($test_app_token_response->error->message) && !empty($test_app_token_id) && $test_app_token_response->error->message !== "(#100) You must provide an app access token or a user access token that is an owner or developer of the app") {
133
- if (isset($test_app_token_response->data->error->message)) {
134
- echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $test_app_token_response->data->error->message . ' ' . __('. Please click the button above to retrieve a new Access Token.', 'feed-them-social') . '</div>';
135
- }
136
- if (isset($test_app_token_response->error->message)) {
137
- echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $test_app_token_response->error->message . ' ' . __('. Please click the button above to retrieve a new Access Token.', 'feed-them-social') . '</div>';
138
- }
139
-
140
- if (isset($test_app_token_response->data->error->message) && empty($test_app_token_id) || isset($test_app_token_response->error->message) && empty($test_app_token_id)) {
141
-
142
- echo '<div class="fts-failed-api-token">' . __('To get started, please click the button above to retrieve your Access Token.', 'feed-them-social') . '</div>';
143
-
144
-
145
- }
146
- }
147
-
148
- } else {
149
- if (!isset($_GET['return_long_lived_token']) || isset($_GET['reviews_token'])) {
150
- echo '<div class="fts-failed-api-token">' . __('To get started, please click the button above to retrieve your Access Token.', 'feed-them-social') . '</div>';
151
- }
152
- }
153
- ?>
154
- <div class="clear"></div>
155
-
156
- <?php
157
-
158
-
159
- if (isset($_GET['return_long_lived_token']) && !isset($_GET['reviews_token'])) {
160
- // Echo our shortcode for the page token list with loadmore button
161
- // These functions are on feed-them-functions.php
162
- echo do_shortcode('[fts_fb_page_token]');
163
-
164
- } ?>
165
- </div>
166
-
167
- <div class="clear"></div>
168
- </div>
169
- <!--/fts-facebook-feed-styles-input-wrap-->
170
-
171
- <?php if (is_plugin_active('feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php')) { ?>
172
- <!-- style="padding-top:0; border:none; margin-bottom:0px; -->
173
- <div id="fts-fb-reviews-wrap" class="feed-them-social-admin-input-wrap">
174
- <div class="fts-title-description-settings-page" style="margin-bottom:0px;">
175
- <h3>
176
- <?php _e('Facebook Page Reviews Access Token', 'feed-them-social'); ?>
177
- </h3>
178
- <?php _e('This Facebook Access Token works for the Reviews feed only and is simply used to display the feed. You must be an admin of the page to get your token.', 'feed-them-social'); ?>
179
- <p>
180
- <a href="https://www.facebook.com/dialog/oauth?client_id=1123168491105924&redirect_uri=https://www.slickremix.com/facebook-token/&state=<?php echo admin_url('admin.php?page=fts-facebook-feed-styles-submenu-page'); ?>%26reviews_token=yes&scope=manage_pages" class="fts-facebook-get-access-token">Login
181
- and get my Reviews Access Token</a></p>
182
-
183
- </div>
184
-
185
- <a href="mailto:support@slickremix.com" target="_blank" class="fts-admin-button-no-work"><?php _e('Button not working?', 'feed-them-social'); ?></a>
186
-
187
- <div class="clear"></div>
188
- <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
189
- <?php _e('Page Reviews ID', 'feed-them-social'); ?>
190
- </div>
191
- <input type="text" name="fts_facebook_custom_api_token_user_id_biz" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_id_biz" value="<?php echo get_option('fts_facebook_custom_api_token_user_id_biz'); ?>"/>
192
-
193
- <div class="clear" style="margin-bottom:10px;"></div>
194
- <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
195
- <?php _e('Page Reviews Access Token', 'feed-them-social'); ?>
196
- </div>
197
- <input type="text" name="fts_facebook_custom_api_token_biz" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_biz" value="<?php echo get_option('fts_facebook_custom_api_token_biz'); ?>"/>
198
- <input type="text" hidden name="fts_facebook_custom_api_token_user_name_biz" class="feed-them-social-admin-input" id="fts_facebook_custom_api_token_user_name_biz" value="<?php echo get_option('fts_facebook_custom_api_token_user_name_biz'); ?>"/>
199
- <div class="clear"></div>
200
-
201
- <?php
202
- if (!empty($test_app_token_response_biz) && !empty($test_app_token_id_biz)) {
203
- $fb_name_biz = get_option('fts_facebook_custom_api_token_user_name_biz');
204
- $fb_id_biz = get_option('fts_facebook_custom_api_token_user_id_biz');
205
- if (isset($test_app_token_response_biz->data->is_valid) || $test_app_token_response_biz->error->message == "(#100) You must provide an app access token or a user access token that is an owner or developer of the app") {
206
- echo '<div class="fts-successful-api-token fts-special-working-wrap">';
207
-
208
-
209
- if (!empty($fb_id_biz) && !empty($fb_name_biz) && !empty($test_app_token_id_biz)) {
210
- echo '<img border="0" height="50" width="50" class="fts-fb-page-thumb" src="https://graph.facebook.com/' . $fb_id_biz . '/picture"/><h3><a href="https://facebook.com/'.$test_app_token_id_biz.'" target="_blank">' . $fb_name_biz . '</a></h3>';
211
- }
212
- echo __('Your Page Reviews Access Token is now working! Generate your shortcode on the <a href="admin.php?page=feed-them-settings-page#feed_type=facebook_reviews">settings page</a>.', 'feed-them-social') . '</div>';
213
-
214
- }
215
-
216
- if (isset($test_app_token_response_biz->data->error->message) && !empty($test_app_token_id_biz) || isset($test_app_token_response_biz->error->message) && !empty($test_app_token_id) && $test_app_token_response_biz->error->message !== "(#100) You must provide an app access token or a user access token that is an owner or developer of the app") {
217
- if (isset($test_app_token_response_biz->data->error->message)) {
218
- echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $test_app_token_response_biz->data->error->message . ' ' . __('Please click the button above to retreive a new Access Token.', 'feed-them-social') . '</div>';
219
- }
220
- if (isset($test_app_token_response_biz->error->message) && !empty($test_app_token_id_biz) && !isset($_GET["return_long_lived_token"])) {
221
- echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $test_app_token_response_biz->error->message . ' ' . __('Please click the button above to retreive a new Access Token.', 'feed-them-social') . '</div>';
222
- }
223
- }
224
-
225
- }
226
- if (!isset($_GET['reviews_token']) && empty($test_app_token_id_biz)) {
227
- echo '<div class="fts-failed-api-token get-started-message">' . __('To get started, please click the button above to retrieve your Page Reviews Access Token.', 'feed-them-social') . '</div>';
228
- }
229
-
230
-
231
- if (isset($_GET['return_long_lived_token']) && isset($_GET['reviews_token'])) {
232
- // Echo our shortcode for the page token list with loadmore button
233
- // These functions are on feed-them-functions.php
234
- echo do_shortcode('[fts_fb_page_token]');
235
-
236
- } ?>
237
-
238
- <div class="clear"></div>
239
- </div>
240
- <!--/fts-facebook-feed-styles-input-wrap-->
241
-
242
- <div class="feed-them-social-admin-input-wrap">
243
- <div class="fts-title-description-settings-page">
244
- <h3>
245
- <?php _e('Reviews: Style and Text Options', 'feed-them-social'); ?>
246
- </h3>
247
- <?php _e('The styles above still apply, these are just some extra options for the Reviews List feed.', 'feed-them-social'); ?>
248
- </div>
249
- <div class="feed-them-social-admin-input-label fb-events-title-color-label">
250
- <?php _e('Stars Background Color<br/><small>Applies to Overall Rating too.</small>', 'feed-them-social'); ?>
251
- </div>
252
- <input type="text" name="fb_reviews_backg_color" class="feed-them-social-admin-input fb-reviews-backg-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-reviews-backg-color" placeholder="#4791ff" value="<?php echo get_option('fb_reviews_backg_color'); ?>"/>
253
- <div class="clear"></div>
254
- </div>
255
- <!--/fts-facebook-feed-styles-input-wrap-->
256
-
257
- <div class="feed-them-social-admin-input-wrap">
258
- <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
259
- <?php _e('Stars & Text Color<br/><small>Applies to Overall Rating too.</small>', 'feed-them-social'); ?>
260
- </div>
261
- <input type="text" name="fb_reviews_text_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-reviews-text-color" placeholder="#fff" value="<?php echo get_option('fb_reviews_text_color'); ?>"/>
262
- <div class="clear"></div>
263
- </div>
264
- <!--/fts-facebook-feed-styles-input-wrap-->
265
-
266
- <div class="feed-them-social-admin-input-wrap">
267
- <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
268
- <?php _e('Text for the word "star"', 'feed-them-social'); ?>
269
- </div>
270
- <input type="text" name="fb_reviews_star_language" class="feed-them-social-admin-input" id="fb_reviews_star_language" placeholder="star" value="<?php echo get_option('fb_reviews_star_language'); ?>"/>
271
- <div class="clear"></div>
272
- </div>
273
- <!--/fts-facebook-feed-styles-input-wrap-->
274
-
275
- <div class="feed-them-social-admin-input-wrap">
276
- <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
277
- <?php _e('Text for the word "Recommended"', 'feed-them-social'); ?>
278
- </div>
279
- <input type="text" name="fb_reviews_recommended_language" class="feed-them-social-admin-input" id="fb_reviews_recommended_language" placeholder="Recommeded" value="<?php echo get_option('fb_reviews_recommended_language'); ?>"/>
280
- <div class="clear"></div>
281
- </div>
282
- <!--/fts-facebook-feed-styles-input-wrap-->
283
-
284
- <div class="feed-them-social-admin-input-wrap">
285
- <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
286
- <?php _e('Text for "See More Reviews"', 'feed-them-social'); ?>
287
- </div>
288
- <input type="text" name="fb_reviews_see_more_reviews_language" class="feed-them-social-admin-input" id="fb_reviews_see_more_reviews_language" placeholder="See More Reviews" value="<?php echo get_option('fb_reviews_see_more_reviews_language'); ?>"/>
289
- <div class="clear"></div>
290
- </div>
291
- <!--/fts-facebook-feed-styles-input-wrap-->
292
-
293
- <div class="feed-them-social-admin-input-wrap">
294
- <div class="feed-them-social-admin-input-label">
295
- <?php _e('Remove "See More Reviews" link', 'feed-them-social'); ?>
296
- </div>
297
- <select name="fb_reviews_remove_see_reviews_link" id="fb_reviews_remove_see_reviews_link" class="feed-them-social-admin-input">
298
- <option value="">
299
- <?php _e('Please Select Option', 'feed-them-social'); ?>
300
- </option>
301
- <option <?php echo selected($fb_reviews_remove_see_reviews_link, 'yes', false) ?> value="yes">
302
- <?php _e('Yes', 'feed-them-social'); ?>
303
- </option>
304
- <option <?php echo selected($fb_reviews_remove_see_reviews_link, 'no', false) ?> value="no">
305
- <?php _e('No', 'feed-them-social'); ?>
306
- </option>
307
- </select>
308
- <div class="clear"></div>
309
- </div>
310
- <!--/fts-facebook-feed-styles-input-wrap-->
311
-
312
- <div class="fts-title-description-settings-page" id="overall-rating-options">
313
- <h3>
314
- <?php _e('Reviews: Overall Rating Style Options', 'feed-them-social'); ?>
315
- </h3>
316
- <?php _e('These styles are for the overall rating that appear above your feed.', 'feed-them-social'); ?>
317
- </div>
318
- <div class="feed-them-social-admin-input-wrap">
319
- <div class="feed-them-social-admin-input-label">
320
- <?php _e('Hide Overall Rating Background & Border', 'feed-them-social'); ?>
321
- </div>
322
- <select name="fb_reviews_overall_rating_background_border_hide" id="fb_reviews_overall_rating_background_border_hide" class="feed-them-social-admin-input">
323
- <option value="">
324
- <?php _e('Please Select Option', 'feed-them-social'); ?>
325
- </option>
326
- <option <?php echo selected($fb_reviews_overall_rating_background_border_hide, 'yes', false) ?> value="yes">
327
- <?php _e('Yes', 'feed-them-social'); ?>
328
- </option>
329
- <option <?php echo selected($fb_reviews_overall_rating_background_border_hide, 'no', false) ?> value="no">
330
- <?php _e('No', 'feed-them-social'); ?>
331
- </option>
332
- </select>
333
- <div class="clear"></div>
334
- </div>
335
- <!--/fts-facebook-feed-styles-input-wrap-->
336
-
337
- <div class="feed-them-social-admin-input-wrap">
338
- <div class="feed-them-social-admin-input-label">
339
- <?php _e('Overall Rating Background Color', 'feed-them-social'); ?>
340
- </div>
341
- <input type="text" name="fb_reviews_overall_rating_background_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb_reviews_overall_rating_background_color" placeholder="#fff" value="<?php echo get_option('fb_reviews_overall_rating_background_color'); ?>"/>
342
- <div class="clear"></div>
343
- </div>
344
- <!--/fts-facebook-feed-styles-input-wrap-->
345
-
346
-
347
- <div class="feed-them-social-admin-input-wrap">
348
- <div class="feed-them-social-admin-input-label">
349
- <?php _e('Overall Rating Text Color', 'feed-them-social'); ?>
350
- </div>
351
- <input type="text" name="fb_reviews_overall_rating_text_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb_reviews_overall_rating_text_color" placeholder="#fff" value="<?php echo get_option('fb_reviews_overall_rating_text_color'); ?>"/>
352
- <div class="clear"></div>
353
- </div>
354
- <!--/fts-facebook-feed-styles-input-wrap-->
355
-
356
- <div class="feed-them-social-admin-input-wrap">
357
- <div class="feed-them-social-admin-input-label">
358
- <?php _e('Overall Rating Border Color', 'feed-them-social'); ?>
359
- </div>
360
- <input type="text" name="fb_reviews_overall_rating_border_color" class="feed-them-social-admin-input fb-reviews-text-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb_reviews_overall_rating_border_color" placeholder="#ddd" value="<?php echo get_option('fb_reviews_overall_rating_border_color'); ?>"/>
361
- <div class="clear"></div>
362
- </div>
363
- <!--/fts-facebook-feed-styles-input-wrap-->
364
-
365
- <div class="feed-them-social-admin-input-wrap">
366
- <div class="feed-them-social-admin-input-label">
367
- <?php _e('Overall Rating Background Padding', 'feed-them-social'); ?>
368
- </div>
369
- <input type="text" name="fb_reviews_overall_rating_background_padding" class="feed-them-social-admin-input" id="fb_reviews_overall_rating_background_padding" placeholder="10px 10px 15px 10px" value="<?php echo get_option('fb_reviews_overall_rating_background_padding'); ?>"/>
370
- <div class="clear"></div>
371
- </div>
372
- <!--/fts-facebook-feed-styles-input-wrap-->
373
-
374
-
375
- <div class="feed-them-social-admin-input-wrap">
376
- <div class="feed-them-social-admin-input-label">
377
- <?php _e('Overall Rating "of 5 stars" text', 'feed-them-social'); ?>
378
- </div>
379
- <input type="text" name="fb_reviews_overall_rating_of_5_stars_text" class="feed-them-social-admin-input" id="fb_reviews_overall_rating_of_5_stars_text" placeholder="of 5 stars" value="<?php echo get_option('fb_reviews_overall_rating_of_5_stars_text'); ?>"/>
380
- <div class="clear"></div>
381
- </div>
382
- <!--/fts-facebook-feed-styles-input-wrap-->
383
-
384
- <div class="feed-them-social-admin-input-wrap">
385
- <div class="feed-them-social-admin-input-label">
386
- <?php _e('Overall Rating "reviews" text', 'feed-them-social'); ?>
387
- </div>
388
- <input type="text" name="fb_reviews_overall_rating_reviews_text" class="feed-them-social-admin-input" id="fb_reviews_overall_rating_reviews_text" placeholder="reviews" value="<?php echo get_option('fb_reviews_overall_rating_reviews_text'); ?>"/>
389
- <div class="clear"></div>
390
- </div>
391
- <!--/fts-facebook-feed-styles-input-wrap-->
392
-
393
- <?php } // end if reviewsp plugin active
394
- ?>
395
-
396
- <div class="feed-them-social-admin-input-wrap">
397
- <div class="fts-title-description-settings-page">
398
- <h3>
399
- <?php _e('Language Options', 'feed-them-social'); ?>
400
- </h3>
401
- <?php _e('You must have your Facebook Access Token saved above before this feature will work. This option will translate the FB Titles and Like Button or Box Text. It will not translate your actual post. To translate the Feed Them Social parts of this plugin just set your language on the <a href="options-general.php" target="_blank">wordpress settings</a> page. If would like to help translate please', 'feed-them-social'); ?>
402
- <a href="http://translate.slickremix.com/glotpress/projects/feed-them-social/" target="_blank">go here</a>.
403
- </div>
404
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
405
- <?php _e('Language For Facebook Feeds', 'feed-them-social'); ?>
406
- </div>
407
- <select name="fb_language" id="fb-lang-btn" class="feed-them-social-admin-input">
408
- <option value="en_US">
409
- <?php _e('Please Select Option', 'feed-them-social'); ?>
410
- </option>
411
- <?php
412
- foreach ($lang_options_array->locale as $language) {
413
- echo '<option ' . selected($fb_language, $language->codes->code->standard->representation, true) . ' value="' . $language->codes->code->standard->representation . '">' . $language->englishName . '</option>';
414
- }
415
- ?>
416
- </select>
417
- <div class="clear"></div>
418
- </div>
419
- <!--/fts-twitter-feed-styles-input-wrap-->
420
-
421
- <div class="feed-them-social-admin-input-wrap" style="display: none;">
422
- <div class="fts-title-description-settings-page">
423
- <h3>
424
- <?php _e('Offset Limit', 'feed-them-social'); ?>
425
- </h3>
426
- <?php _e('<strong style="color:red">WARNING, PLEASE READ CAREFULLY!</strong> DO NOT use this field to set your facebook posts. If you are getting the message "Please go to the Facebook Options page of our plugin and look for the "Change Limit" option and add the number 7 or more." then adjust the number below so posts will show in your feed. Generally adding at least <strong>7</strong> is a good idea if you are getting that notice. This is only for Pages and Groups. We filter certain posts that do not have a story or message or if the shared content is not available via the API.', 'feed-them-social'); ?>
427
- </div>
428
- <div class="feed-them-social-admin-input-label">
429
- <?php _e('Offset Quantity', 'feed-them-social'); ?>
430
- </div>
431
- <input type="text" name="fb_count_offset" class="feed-them-social-admin-input" id="fb_count_offset" value="<?php echo get_option('fb_count_offset'); ?>" />
432
- <div class="clear"></div>
433
- </div>
434
- <!--/fts-twitter-feed-styles-input-wrap-->
435
-
436
- <div class="feed-them-social-admin-input-wrap">
437
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
438
- <?php _e('Hide Notice on Front End', 'feed-them-social'); ?>
439
- </div>
440
- <select name="fb_hide_no_posts_message" id="fb_hide_no_posts_message" class="feed-them-social-admin-input">
441
- <option value="">
442
- <?php _e('Please Select Option', 'feed-them-social'); ?>
443
- </option>
444
- <option <?php echo selected($fb_hide_no_posts_message, 'yes', false) ?> value="yes">
445
- <?php _e('Yes', 'feed-them-social'); ?>
446
- </option>
447
- <option <?php echo selected($fb_hide_no_posts_message, 'no', false) ?> value="no">
448
- <?php _e('No', 'feed-them-social'); ?>
449
- </option>
450
- </select>
451
- <div class="clear"></div>
452
- </div>
453
- <!--/fts-twitter-feed-styles-input-wrap-->
454
-
455
- <div class="feed-them-social-admin-input-wrap">
456
- <div class="fts-title-description-settings-page">
457
- <h3>
458
- <?php _e('Like Button or Box Options', 'feed-them-social'); ?>
459
- </h3>
460
- <?php _e('This will only show on regular feeds not combined feeds.', 'feed-them-social'); ?>
461
- </div>
462
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
463
- <?php _e('Show Follow Button', 'feed-them-social'); ?>
464
-
465
- </div>
466
- <select name="fb_show_follow_btn" id="fb-show-follow-btn" class="feed-them-social-admin-input">
467
- <option>
468
- <?php _e('Please Select Option', 'feed-them-social'); ?>
469
- </option>
470
- <option <?php echo selected($fb_show_follow_btn, 'dont-display', false) ?> value="dont-display">
471
- <?php _e('Don\'t Display a Button', 'feed-them-social'); ?>
472
- </option>
473
- <optgroup label="Like Box">
474
- <option <?php echo selected($fb_show_follow_btn, 'like-box', false) ?> value="like-box">
475
- <?php _e('Like Box', 'feed-them-social'); ?>
476
- </option>
477
- <option <?php echo selected($fb_show_follow_btn, 'like-box-faces', false) ?> value="like-box-faces">
478
- <?php _e('Like Box with Faces', 'feed-them-social'); ?>
479
- </option>
480
- </optgroup>
481
- <optgroup label="Like Button">
482
- <option <?php echo selected($fb_show_follow_btn, 'like-button', false) ?> value="like-button">
483
- <?php _e('Like Button', 'feed-them-social'); ?>
484
- </option>
485
- <option <?php echo selected($fb_show_follow_btn, 'like-button-share', false) ?> value="like-button-share">
486
- <?php _e('Like Button and Share Button', 'feed-them-social'); ?>
487
- </option>
488
- <option <?php echo selected($fb_show_follow_btn, 'like-button-faces', false) ?> value="like-button-faces">
489
- <?php _e('Like Button with Faces', 'feed-them-social'); ?>
490
- </option>
491
- <option <?php echo selected($fb_show_follow_btn, 'like-button-share-faces', false) ?> value="like-button-share-faces">
492
- <?php _e('Like Button and Share Button with Faces', 'feed-them-social'); ?>
493
- </option>
494
- </optgroup>
495
- </select>
496
- <div class="clear"></div>
497
- </div>
498
- <!--/fts-twitter-feed-styles-input-wrap-->
499
-
500
- <div class="feed-them-social-admin-input-wrap" style="display:none">
501
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
502
- <?php _e('Show Profile Icon next to social option above', 'feed-them-social'); ?>
503
- </div>
504
- <select name="fb_show_follow_like_box_cover" id="fb-show-follow-like-box-cover" class="feed-them-social-admin-input">
505
- <option>
506
- <?php _e('Please Select Option', 'feed-them-social'); ?>
507
- </option>
508
- <option <?php echo selected($fb_show_follow_btn_profile_pic, 'fb_like_box_cover-yes', false) ?> value="fb_like_box_cover-yes">
509
- <?php _e('Display Cover Photo in Like Box', 'feed-them-social'); ?>
510
- </option>
511
- <option <?php echo selected($fb_show_follow_btn_profile_pic, 'fb_like_box_cover-no', false) ?> value="fb_like_box_cover-no">
512
- <?php _e('Hide Cover Photo in Like Box', 'feed-them-social'); ?>
513
- </option>
514
- </select>
515
- <div class="clear"></div>
516
- </div>
517
- <!--/fts-twitter-feed-styles-input-wrap-->
518
-
519
- <div class="feed-them-social-admin-input-wrap">
520
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
521
- <?php _e('Like Button Color', 'feed-them-social'); ?>
522
- </div>
523
- <select name="fb_like_btn_color" id="fb-like-btn-color" class="feed-them-social-admin-input">
524
- <option value="light">
525
- <?php _e('Please Select Option', 'feed-them-social'); ?>
526
- </option>
527
- <option <?php echo selected($fb_like_btn_color, 'light', false) ?> value="light">
528
- <?php _e('Light', 'feed-them-social'); ?>
529
- </option>
530
- <option <?php echo selected($fb_like_btn_color, 'dark', false) ?> value="dark">
531
- <?php _e('Dark', 'feed-them-social'); ?>
532
- </option>
533
- </select>
534
- <div class="clear"></div>
535
- </div>
536
- <!--/fts-twitter-feed-styles-input-wrap-->
537
-
538
- <div class="feed-them-social-admin-input-wrap">
539
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
540
- <?php _e('Placement of the Button(s)', 'feed-them-social'); ?>
541
- </div>
542
- <select name="fb_show_follow_btn_where" id="fb-show-follow-btn-where" class="feed-them-social-admin-input">
543
- <option value="">
544
- <?php _e('Please Select Option', 'feed-them-social'); ?>
545
- </option>
546
- <option <?php echo selected($fb_show_follow_btn_where, 'fb-like-top-above-title', false) ?> value="fb-like-top-above-title">
547
- <?php _e('Show Top of Feed Above Title', 'feed-them-social'); ?>
548
- </option>
549
- <option <?php echo selected($fb_show_follow_btn_where, 'fb-like-top-below-title', false) ?> value="fb-like-top-below-title">
550
- <?php _e('Show Top of Feed Below Title', 'feed-them-social'); ?>
551
- </option>
552
- <option <?php echo selected($fb_show_follow_btn_where, 'fb-like-below', false) ?> value="fb-like-below">
553
- <?php _e('Show Botton of Feed', 'feed-them-social'); ?>
554
- </option>
555
- </select>
556
- <div class="clear"></div>
557
- </div>
558
- <!--/fts-twitter-feed-styles-input-wrap-->
559
-
560
- <div class="feed-them-social-admin-input-wrap" style="display: none">
561
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
562
- <?php _e('Facebook APP ID<br/><small>Not required if you used the "Login and get my Access Token" button, otherwise View Step 3 to <a href="http://www.slickremix.com/docs/create-facebook-app-id-or-user-token" target="_blank">get APP ID</a>.</small>', 'feed-them-social'); ?>
563
- </div>
564
- <input type="text" name="fb_app_ID" class="feed-them-social-admin-input" id="fb-app-ID" value="<?php // echo get_option('fb_app_ID'); ?>" placeholder="Not Required for New Users"/>
565
- <div class="clear"></div>
566
- </div>
567
- <div class="feed-them-social-admin-input-wrap">
568
- <div class="fts-title-description-settings-page" style="margin-top:0;">
569
- <h3>
570
- <?php _e('Global Facebook Style Options', 'feed-them-social'); ?>
571
- </h3>
572
- </div>
573
-
574
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
575
- <?php _e('Text after your FB name <br/><small>ie* Shared by or New Photo Added etc.</small>', 'feed-them-social'); ?>
576
- </div>
577
- <select name="fb_hide_shared_by_etc_text" id="fb_hide_shared_by_etc_text" class="feed-them-social-admin-input">
578
- <option value="">
579
- <?php _e('Please Select Option', 'feed-them-social'); ?>
580
- </option>
581
- <option <?php echo selected($fb_hide_shared_by_etc_text, 'no', false) ?> value="no">
582
- <?php _e('No', 'feed-them-social'); ?>
583
- </option>
584
- <option <?php echo selected($fb_hide_shared_by_etc_text, 'yes', false) ?> value="yes">
585
- <?php _e('Yes', 'feed-them-social'); ?>
586
- </option>
587
- </select>
588
- <div class="clear"></div>
589
- </div>
590
- <!--/fts-twitter-feed-styles-input-wrap-->
591
-
592
- <div class="feed-them-social-admin-input-wrap">
593
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label">
594
- <?php _e('Hide Images in Posts', 'feed-them-social'); ?>
595
- </div>
596
- <select name="fb_hide_images_in_posts" id="fb_hide_images_in_posts" class="feed-them-social-admin-input">
597
- <option value="">
598
- <?php _e('Please Select Option', 'feed-them-social'); ?>
599
- </option>
600
- <option <?php echo selected($fb_hide_images_in_posts, 'no', false) ?> value="no">
601
- <?php _e('No', 'feed-them-social'); ?>
602
- </option>
603
- <option <?php echo selected($fb_hide_images_in_posts, 'yes', false) ?> value="yes">
604
- <?php _e('Yes', 'feed-them-social'); ?>
605
- </option>
606
- </select>
607
- <div class="clear"></div>
608
- </div>
609
- <!--/fts-twitter-feed-styles-input-wrap-->
610
-
611
- <div class="feed-them-social-admin-input-wrap">
612
- <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
613
- <?php _e('Max-width for Images & Videos', 'feed-them-social'); ?>
614
- </div>
615
- <input type="text" name="fb_max_image_width" class="feed-them-social-admin-input" placeholder="500px" value="<?php echo get_option('fb_max_image_width'); ?>"/>
616
- <div class="clear"></div>
617
- </div>
618
- <!--/fts-facebook-feed-styles-input-wrap-->
619
-
620
- <div class="feed-them-social-admin-input-wrap">
621
- <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
622
- <?php _e('Feed Header Extra Text Color', 'feed-them-social'); ?>
623
- </div>
624
- <input type="text" name="fb_header_extra_text_color" class="feed-them-social-admin-input fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-text-color-input" placeholder="#222" value="<?php echo get_option('fb_header_extra_text_color'); ?>"/>
625
- <div class="clear"></div>
626
- </div>
627
- <!--/fts-facebook-feed-styles-input-wrap-->
628
-
629
- <div class="feed-them-social-admin-input-wrap">
630
- <div class="feed-them-social-admin-input-label fts-fb-text-size-label">
631
- <?php _e('Feed Description Text Size', 'feed-them-social'); ?>
632
- </div>
633
- <input type="text" name="fb_text_size" class="feed-them-social-admin-input fb-text-size-input" id="fb-text-size-input" placeholder="12px" value="<?php echo get_option('fb_text_size'); ?>"/>
634
- <div class="clear"></div>
635
- </div>
636
- <!--/fts-facebook-feed-styles-input-wrap-->
637
-
638
- <div class="feed-them-social-admin-input-wrap">
639
- <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
640
- <?php _e('Feed Text Color', 'feed-them-social'); ?>
641
- </div>
642
- <input type="text" name="fb_text_color" class="feed-them-social-admin-input fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-text-color-input" placeholder="#222" value="<?php echo get_option('fb_text_color'); ?>"/>
643
- <div class="clear"></div>
644
- </div>
645
- <!--/fts-facebook-feed-styles-input-wrap-->
646
-
647
- <div class="feed-them-social-admin-input-wrap">
648
- <div class="feed-them-social-admin-input-label fts-fb-link-color-label">
649
- <?php _e('Feed Link Color', 'feed-them-social'); ?>
650
- </div>
651
- <input type="text" name="fb_link_color" class="feed-them-social-admin-input fb-link-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-link-color-input" placeholder="#222" value="<?php echo get_option('fb_link_color'); ?>"/>
652
- <div class="clear"></div>
653
- </div>
654
- <!--/fts-facebook-feed-styles-input-wrap-->
655
-
656
- <div class="feed-them-social-admin-input-wrap">
657
- <div class="feed-them-social-admin-input-label fts-fb-link-color-hover-label">
658
- <?php _e('Feed Link Color Hover', 'feed-them-social'); ?>
659
- </div>
660
- <input type="text" name="fb_link_color_hover" class="feed-them-social-admin-input fb-link-color-hover-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-link-color-hover-input" placeholder="#ddd" value="<?php echo get_option('fb_link_color_hover'); ?>"/>
661
- <div class="clear"></div>
662
- </div>
663
- <!--/fts-facebook-feed-styles-input-wrap-->
664
-
665
- <div class="feed-them-social-admin-input-wrap">
666
- <div class="feed-them-social-admin-input-label fts-fb-feed-width-label">
667
- <?php _e('Feed Width', 'feed-them-social'); ?>
668
- </div>
669
- <input type="text" name="fb_feed_width" class="feed-them-social-admin-input fb-feed-width-input" id="fb-feed-width-input" placeholder="500px" value="<?php echo get_option('fb_feed_width'); ?>"/>
670
- <div class="clear"></div>
671
- </div>
672
- <!--/fts-facebook-feed-styles-input-wrap-->
673
-
674
- <div class="feed-them-social-admin-input-wrap">
675
- <div class="feed-them-social-admin-input-label fts-fb-feed-margin-label">
676
- <?php _e('Feed Margin <br/><small>To center feed type auto</small>', 'feed-them-social'); ?>
677
- </div>
678
- <input type="text" name="fb_feed_margin" class="feed-them-social-admin-input fb-feed-margin-input" id="fb-feed-margin-input" placeholder="10px" value="<?php echo get_option('fb_feed_margin'); ?>"/>
679
- <div class="clear"></div>
680
- </div>
681
- <!--/fts-facebook-feed-styles-input-wrap-->
682
-
683
- <div class="feed-them-social-admin-input-wrap">
684
- <div class="feed-them-social-admin-input-label fts-fb-feed-padding-label">
685
- <?php _e('Feed Padding', 'feed-them-social'); ?>
686
- </div>
687
- <input type="text" name="fb_feed_padding" class="feed-them-social-admin-input fb-feed-padding-input" id="fb-feed-padding-input" placeholder="10px" value="<?php echo get_option('fb_feed_padding'); ?>"/>
688
- <div class="clear"></div>
689
- </div>
690
- <!--/fts-facebook-feed-styles-input-wrap-->
691
-
692
- <?php if (is_plugin_active('feed-them-premium/feed-them-premium.php') || is_plugin_active('feed-them-social-combined-streams/feed-them-social-combined-streams.php')) { ?>
693
- <div class="feed-them-social-admin-input-wrap">
694
- <div class="feed-them-social-admin-input-label fts-fb-post-background-color-label">
695
- <?php _e('Post Background Color<br/><small>Only works with show_media=top</small>', 'feed-them-social'); ?>
696
- </div>
697
- <input type="text" name="fb_post_background_color" class="feed-them-social-admin-input fb-post-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-feed-background-color-input" placeholder="#ddd" value="<?php echo get_option('fb_post_background_color'); ?>"/>
698
- <div class="clear"></div>
699
- </div>
700
- <!--/fts-facebook-feed-styles-input-wrap-->
701
- <?php } ?>
702
-
703
- <div class="feed-them-social-admin-input-wrap">
704
- <div class="feed-them-social-admin-input-label fts-fb-feed-background-color-label">
705
- <?php _e('Feed Background Color', 'feed-them-social'); ?>
706
- </div>
707
- <input type="text" name="fb_feed_background_color" class="feed-them-social-admin-input fb-feed-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-feed-background-color-input" placeholder="#ddd" value="<?php echo get_option('fb_feed_background_color'); ?>"/>
708
- <div class="clear"></div>
709
- </div>
710
- <!--/fts-facebook-feed-styles-input-wrap-->
711
-
712
- <div class="feed-them-social-admin-input-wrap">
713
- <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
714
- <?php _e('Border Bottom Color', 'feed-them-social'); ?>
715
- </div>
716
- <input type="text" name="fb_border_bottom_color" class="feed-them-social-admin-input fb-border-bottom-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-border-bottom-color-input" placeholder="#ddd" value="<?php echo get_option('fb_border_bottom_color'); ?>"/>
717
- <div class="clear"></div>
718
- </div>
719
- <!--/fts-facebook-feed-styles-input-wrap-->
720
-
721
- <?php if (is_plugin_active('feed-them-premium/feed-them-premium.php') || is_plugin_active('feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php')) { ?>
722
- <div class="feed-them-social-admin-input-wrap">
723
- <div class="fts-title-description-settings-page">
724
- <h3>
725
- <?php _e('Grid Styles', 'feed-them-social'); ?>
726
- </h3>
727
- </div>
728
- <div class="feed-them-social-admin-input-label fts-fb-grid-posts-background-color-label">
729
- <?php _e('Posts Background Color', 'feed-them-social'); ?>
730
- </div>
731
- <input type="text" name="fb_grid_posts_background_color" class="feed-them-social-admin-input fb-grid-posts-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-grid-posts-background-color-input" placeholder="#ddd" value="<?php echo get_option('fb_grid_posts_background_color'); ?>"/>
732
- <div class="clear"></div>
733
- </div>
734
- <!--/fts-facebook-feed-styles-input-wrap-->
735
-
736
- <div class="feed-them-social-admin-input-wrap">
737
- <div class="feed-them-social-admin-input-label fts-fb-grid-border-bottom-color-label">
738
- <?php _e('Border Bottom Color', 'feed-them-social'); ?>
739
- </div>
740
- <input type="text" name="fb_grid_border_bottom_color" class="feed-them-social-admin-input fb-grid-border-bottom-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-border-bottom-color-input" placeholder="#ddd" value="<?php echo get_option('fb_grid_border_bottom_color'); ?>"/>
741
- <div class="clear"></div>
742
- </div>
743
- <!--/fts-facebook-feed-styles-input-wrap-->
744
-
745
- <div class="feed-them-social-admin-input-wrap">
746
- <div class="fts-title-description-settings-page">
747
- <h3>
748
- <?php _e('Load More Button Styles & Options', 'feed-them-social'); ?>
749
- </h3>
750
- </div>
751
- <div class="feed-them-social-admin-input-label fts-fb-loadmore-background-color-label">
752
- <?php _e('Button Color', 'feed-them-social'); ?>
753
- </div>
754
- <input type="text" name="fb_loadmore_background_color" class="feed-them-social-admin-input fb-loadmore-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-loadmore-background-color-input" placeholder="#ddd" value="<?php echo get_option('fb_loadmore_background_color'); ?>"/>
755
- <div class="clear"></div>
756
- </div>
757
- <!--/fts-fb-feed-styles-input-wrap-->
758
-
759
- <div class="feed-them-social-admin-input-wrap">
760
- <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
761
- <?php _e('Text Color', 'feed-them-social'); ?>
762
- </div>
763
- <input type="text" name="fb_loadmore_text_color" class="feed-them-social-admin-input fb-loadmore-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-loadmore-text-color-input" placeholder="#ddd" value="<?php echo get_option('fb_loadmore_text_color'); ?>"/>
764
- <div class="clear"></div>
765
- </div>
766
- <!--/fts-fb-feed-styles-input-wrap-->
767
-
768
- <div class="feed-them-social-admin-input-wrap">
769
- <div class="feed-them-social-admin-input-label">
770
- <?php _e('"Load More" Text', 'feed-them-social'); ?>
771
- </div>
772
- <input type="text" name="fb_load_more_text" class="feed-them-social-admin-input" id="fb_load_more_text" placeholder="Load More" value="<?php echo get_option('fb_load_more_text'); ?>"/>
773
- <div class="clear"></div>
774
- </div>
775
- <!--/fts-facebook-feed-styles-input-wrap-->
776
-
777
- <div class="feed-them-social-admin-input-wrap">
778
- <div class="feed-them-social-admin-input-label">
779
- <?php _e('"No More Posts" Text', 'feed-them-social'); ?>
780
- </div>
781
- <input type="text" name="fb_no_more_posts_text" class="feed-them-social-admin-input" id="fb_no_more_posts_text" placeholder="No More Posts" value="<?php echo get_option('fb_no_more_posts_text'); ?>"/>
782
- <div class="clear"></div>
783
- </div>
784
- <!--/fts-facebook-feed-styles-input-wrap-->
785
-
786
- <div class="feed-them-social-admin-input-wrap">
787
- <div class="feed-them-social-admin-input-label">
788
- <?php _e('"No More Photos" Text', 'feed-them-social'); ?>
789
- </div>
790
- <input type="text" name="fb_no_more_photos_text" class="feed-them-social-admin-input" id="fb_no_more_photos_text" placeholder="No More Photos" value="<?php echo get_option('fb_no_more_photos_text'); ?>"/>
791
- <div class="clear"></div>
792
- </div>
793
- <!--/fts-facebook-feed-styles-input-wrap-->
794
-
795
- <div class="feed-them-social-admin-input-wrap">
796
- <div class="feed-them-social-admin-input-label">
797
- <?php _e('"No More Videos" Text', 'feed-them-social'); ?>
798
- </div>
799
- <input type="text" name="fb_no_more_videos_text" class="feed-them-social-admin-input" id="fb_no_more_videos_text" placeholder="No More Videos" value="<?php echo get_option('fb_no_more_videos_text'); ?>"/>
800
- <div class="clear"></div>
801
- </div>
802
- <!--/fts-facebook-feed-styles-input-wrap-->
803
-
804
- <?php } ?>
805
-
806
- <?php if (is_plugin_active('feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php')) { ?>
807
-
808
- <div class="feed-them-social-admin-input-wrap">
809
- <div class="feed-them-social-admin-input-label">
810
- <?php _e('"No More Reviews" Text', 'feed-them-social'); ?>
811
- </div>
812
- <input type="text" name="fb_no_more_reviews_text" class="feed-them-social-admin-input" id="fb_no_more_reviews_text" placeholder="No More Reviews" value="<?php echo get_option('fb_no_more_reviews_text'); ?>"/>
813
- <div class="clear"></div>
814
- </div>
815
- <!--/fts-facebook-feed-styles-input-wrap-->
816
- <?php } ?>
817
-
818
- <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
819
- <div class="fts-title-description-settings-page">
820
- <h3>
821
- <?php _e('Event Style Options', 'feed-them-social'); ?>
822
- </h3>
823
- <?php _e('The styles above still apply, these are just some extra options for the Event List feed.', 'feed-them-social'); ?>
824
- </div>
825
- <div class="feed-them-social-admin-input-label fb-events-title-color-label">
826
- <?php _e('Events Feed: Title Color', 'feed-them-social'); ?>
827
- </div>
828
- <input type="text" name="fb_events_title_color" class="feed-them-social-admin-input fb-events-title-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-events-title-color-input" placeholder="#ddd" value="<?php echo get_option('fb_events_title_color'); ?>"/>
829
- <div class="clear"></div>
830
- </div>
831
- <!--/fts-facebook-feed-styles-input-wrap-->
832
-
833
- <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
834
- <div class="feed-them-social-admin-input-label fb-events-title-size-label">
835
- <?php _e('Events Feed: Title Size', 'feed-them-social'); ?>
836
- </div>
837
- <input type="text" name="fb_events_title_size" class="feed-them-social-admin-input fb-events-title-size" id="fb-events-title-color-input" placeholder="20px" value="<?php echo get_option('fb_events_title_size'); ?>"/>
838
- <div class="clear"></div>
839
- </div>
840
- <!--/fts-facebook-feed-styles-input-wrap-->
841
-
842
- <div class="feed-them-social-admin-input-wrap" style="display: none !important;">
843
- <div class="feed-them-social-admin-input-label fb-events-map-link-color-label">
844
- <?php _e('Events Feed: Map Link Color', 'feed-them-social'); ?>
845
- </div>
846
- <input type="text" name="fb_events_map_link_color" class="feed-them-social-admin-input fb-events-map-link-color color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fb-events-map-link-color-input" placeholder="#ddd" value="<?php echo get_option('fb_events_map_link_color'); ?>"/>
847
- <div class="clear"></div>
848
- </div>
849
- <!--/fts-facebook-feed-styles-input-wrap-->
850
-
851
-
852
- <div class="feed-them-social-admin-input-wrap">
853
- <div class="fts-title-description-settings-page">
854
- <h3>
855
- <?php _e('Facebook Error Message', 'feed-them-social'); ?>
856
- </h3>
857
- <?php _e('If your feed is displaying a notice or error message at times you can utilize this option to hide them from displaying. Make sure and delete the <a href="admin.php?page=feed-them-settings-page&tab=global_options">Cache</a> to see the change. <p><small>NOTE: This does not hide any php warnings that may come up. To remove those go to the wp-config.php file on root of your WordPress install and set the wp_debug option to FALSE. Having that option set to TRUE is really only necessary when developing.</small></p>', 'feed-them-social'); ?>
858
- </div>
859
- <div class="feed-them-social-admin-input-label fb-error-handler-label">
860
- <?php _e('Hide Error Handler Message', 'feed-them-social'); ?>
861
- </div>
862
- <select name="fb_hide_error_handler_message" id="fb_hide_error_handler_message" class="feed-them-social-admin-input">
863
- <option value="">
864
- <?php _e('Please Select Option', 'feed-them-social'); ?>
865
- </option>
866
- <option <?php echo selected($fb_hide_error_handler_message, 'no', false) ?> value="no">
867
- <?php _e('No', 'feed-them-social'); ?>
868
- </option>
869
- <option <?php echo selected($fb_hide_error_handler_message, 'yes', false) ?> value="yes">
870
- <?php _e('Yes', 'feed-them-social'); ?>
871
- </option>
872
- </select>
873
- <div class="clear"></div>
874
- </div>
875
- <!--/fts-facebook-feed-styles-input-wrap-->
876
-
877
- <div class="clear"></div>
878
- <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
879
- </form>
880
- <div class="clear"></div>
881
- <a class="feed-them-social-admin-slick-logo" href="http://www.slickremix.com" target="_blank"></a></div>
882
- <!--/feed-them-social-admin-wrap-->
883
- <?php }
884
- }//END Class
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/feed-them-instagram-style-options-page.php DELETED
@@ -1,236 +0,0 @@
1
- <?php
2
-
3
- namespace feedthemsocial;
4
- /**
5
- * Class FTS Instagram Options Page
6
- *
7
- * @package feedthemsocial
8
- */
9
- class FTS_instagram_options_page
10
- {
11
-
12
- /**
13
- * Construct
14
- *
15
- * Instagram Style Options Page constructor.
16
- *
17
- * @since 1.9.6
18
- */
19
- function __construct() {
20
- }
21
-
22
- /**
23
- * Feed Them Instagram Options Page
24
- *
25
- * @since 1.9.6
26
- */
27
- function feed_them_instagram_options_page() {
28
- $fts_functions = new feed_them_social_functions();
29
- $fts_instagram_access_token = get_option('fts_instagram_custom_api_token');
30
- $fts_instagram_custom_id = get_option('fts_instagram_custom_id');
31
- $fts_instagram_show_follow_btn = get_option('instagram_show_follow_btn');
32
- $fts_instagram_show_follow_btn_where = get_option('instagram_show_follow_btn_where');
33
-
34
- ?>
35
- <div class="feed-them-social-admin-wrap">
36
- <h1>
37
- <?php _e('Instagram Feed Options', 'feed-them-social'); ?>
38
- </h1>
39
- <div class="use-of-plugin">
40
- <?php _e('Get your Access Token and add a follow button and position it using the options below.', 'feed-them-social'); ?>
41
- </div>
42
- <!-- custom option for padding -->
43
- <form method="post" class="fts-facebook-feed-options-form" action="options.php">
44
-
45
-
46
- <div class="feed-them-social-admin-input-wrap" style="padding-top:0px; ">
47
- <div class="fts-title-description-settings-page">
48
- <?php // get our registered settings from the fts functions
49
- settings_fields('fts-instagram-feed-style-options'); ?>
50
- <h3>
51
- <?php _e('Instagram API Token', 'feed-them-social'); ?>
52
- </h3>
53
- <?php
54
-
55
- $insta_url = 'https://api.instagram.com/v1/tags/slickremix/media/recent/?access_token=' . $fts_instagram_access_token;
56
- //Get Data for Instagram
57
- $response = wp_remote_fopen($insta_url);
58
- //Error Check
59
- $test_app_token_response = json_decode($response);
60
-
61
- // echo '<pre>';
62
- // print_r(json_decode($response));
63
- // echo '</pre>';
64
- ?>
65
- <p>
66
- <?php _e('This is required to make the feed work. Just click the button below and it will connect to your instagram to get an access token, then it will return it in the input below. Then just click the save button and you will now be able to generate your Instagram feed. If the button is not working for you and can always manually create an Access Token <a href="http://www.slickremix.com/docs/how-to-create-instagram-access-token/" target="_blank">here</a>.', 'feed-them-social'); ?>
67
- </p>
68
- <p>
69
- <a href="https://instagram.com/oauth/authorize/?client_id=da06fb6699f1497bb0d5d4234a50da75&redirect_uri=http://www.slickremix.com/instagram-token-plugin/?return_uri=<?php echo admin_url('admin.php?page=fts-instagram-feed-styles-submenu-page'); ?>&response_type=token&scope=public_content" class="fts-instagram-get-access-token">
70
- <?php _e('Log in and get my Access Token'); ?>
71
- </a></p>
72
- </div>
73
-
74
- <div class="fts-clear"></div>
75
-
76
-
77
- <div class="feed-them-social-admin-input-wrap" style="margin-bottom: 0px">
78
- <div class="feed-them-social-admin-input-label fts-instagram-border-bottom-color-label">
79
- <?php _e('Instagram ID', 'feed-them-social'); ?>
80
- </div>
81
- <input type="text" name="fts_instagram_custom_id" class="feed-them-social-admin-input" id="fts_instagram_custom_id" value="<?php echo $fts_instagram_custom_id ?>"/>
82
- <div class="fts-clear"></div>
83
- </div>
84
-
85
-
86
- <div class="feed-them-social-admin-input-wrap">
87
- <div class="feed-them-social-admin-input-label fts-instagram-border-bottom-color-label">
88
- <?php _e('Access Token Required', 'feed-them-social'); ?>
89
- </div>
90
- <script>
91
- jQuery(document).ready(function ($) {
92
- function getQueryString(Param) {
93
- return decodeURI(
94
- (RegExp('[#|&]' + Param + '=' + '(.+?)(&|$)').exec(location.hash) || [, null])[1]
95
- );
96
- }
97
-
98
- if (window.location.hash) {
99
-
100
- $('select').find('option[value=5]').attr('selected','selected');
101
-
102
- $('#fts_instagram_custom_api_token').val('');
103
- $('#fts_instagram_custom_api_token').val($('#fts_instagram_custom_api_token').val() + getQueryString('access_token'));
104
-
105
-
106
- $('#fts_instagram_custom_id').val('');
107
- var str = getQueryString('access_token');
108
- $('#fts_instagram_custom_id').val($('#fts_instagram_custom_id').val() + str.split('.', 1));
109
-
110
- }
111
- });
112
- </script>
113
- <input type="text" name="fts_instagram_custom_api_token" class="feed-them-social-admin-input" id="fts_instagram_custom_api_token" value="<?php echo $fts_instagram_access_token ?>"/>
114
- <div class="fts-clear"></div>
115
- </div>
116
- <?php
117
- // Error Check
118
- // if the combined streams plugin is active we won't allow the settings page link to open up the Instagram Feed, instead we'll remove the #feed_type=instagram and just let the user manually select the combined streams or single instagram feed.
119
- if (is_plugin_active('feed-them-social-combined-streams/feed-them-social-combined-streams.php')) {
120
- $custom_instagram_link_hash = '';
121
- }
122
- else {
123
- $custom_instagram_link_hash = '#feed_type=instagram';
124
- }
125
- if (!isset($test_app_token_response->meta->error_message) && !isset($test_app_token_response->error_message) && !empty($fts_instagram_access_token) || isset($test_app_token_response->meta->error_message) && $test_app_token_response->meta->error_message == 'This client has not been approved to access this resource.') {
126
- echo '<div class="fts-successful-api-token">' . __('Your access token is working! Generate your shortcode on the <a href="admin.php?page=feed-them-settings-page'.$custom_instagram_link_hash .'">settings page</a>.', 'feed-them-social') . '</div>';
127
- } elseif (isset($test_app_token_response->meta->error_message) && !empty($fts_instagram_access_token) || isset($test_app_token_response->error_message) && !empty($fts_instagram_access_token)) {
128
- $text = isset($test_app_token_response->meta->error_message) ? $test_app_token_response->meta->error_message : $test_app_token_response->error_message;
129
- echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $text . '</div>';
130
- }
131
- if (empty($fts_instagram_access_token)) {
132
- echo '<div class="fts-failed-api-token">' . __('You are required to get an access token to view your photos. Click Save all Changes after getting your Access Token.', 'feed-them-social') . '</div>';
133
- }
134
- ?>
135
- <div class="fts-clear"></div>
136
- </div>
137
-
138
-
139
-
140
-
141
-
142
- <div class="feed-them-social-admin-input-wrap">
143
- <div class="fts-title-description-settings-page" >
144
- <h3>
145
- <?php _e('Follow Button Options', 'feed-them-social'); ?>
146
- </h3>
147
- <?php _e('This will only show on regular feeds not combined feeds.', 'feed-them-social'); ?>
148
- </div>
149
- <div class="feed-them-social-admin-input-label fts-instagram-text-color-label">
150
- <?php _e('Show Follow Button', 'feed-them-social'); ?>
151
- </div>
152
- <select name="instagram_show_follow_btn" id="instagram-show-follow-btn" class="feed-them-social-admin-input">
153
- <option <?php echo selected($fts_instagram_show_follow_btn, 'no', false) ?> value="no">
154
- <?php _e('No', 'feed-them-social'); ?>
155
- </option>
156
- <option <?php echo selected($fts_instagram_show_follow_btn, 'yes', false) ?> value="yes">
157
- <?php _e('Yes', 'feed-them-social'); ?>
158
- </option>
159
- </select>
160
- <div class="fts-clear"></div>
161
- </div>
162
- <!--/fts-instagram-feed-styles-input-wrap-->
163
-
164
- <div class="feed-them-social-admin-input-wrap">
165
- <div class="feed-them-social-admin-input-label fts-instagram-text-color-label">
166
- <?php _e('Placement of the Buttons', 'feed-them-social'); ?>
167
- </div>
168
- <select name="instagram_show_follow_btn_where" id="instagram-show-follow-btn-where" class="feed-them-social-admin-input">
169
- <option>
170
- <?php _e('Please Select Option', 'feed-them-social'); ?>
171
- </option>
172
- <option
173
- '<?php echo selected($fts_instagram_show_follow_btn_where, 'instagram-follow-above', false) ?>'
174
- value="instagram-follow-above">
175
- <?php _e('Show Above Feed', 'feed-them-social'); ?>
176
- </option>
177
- <option
178
- '<?php echo selected($fts_instagram_show_follow_btn_where, 'instagram-follow-below', false) ?>'
179
- value="instagram-follow-below">
180
- <?php _e('Show Below Feed', 'feed-them-social'); ?>
181
- </option>
182
- </select>
183
- <div class="fts-clear"></div>
184
- </div>
185
- <!--/fts-instagram-feed-styles-input-wrap-->
186
- <?php if (is_plugin_active('feed-them-premium/feed-them-premium.php')) { ?>
187
-
188
- <div class="feed-them-social-admin-input-wrap">
189
- <div class="fts-title-description-settings-page">
190
- <h3>
191
- <?php _e('Load More Button Styles & Options', 'feed-them-social'); ?>
192
- </h3>
193
- </div>
194
- <div class="feed-them-social-admin-input-wrap">
195
- <div class="feed-them-social-admin-input-label fts-fb-loadmore-background-color-label">
196
- <?php _e('Load More Button Color', 'feed-them-social'); ?>
197
- </div>
198
- <input type="text" name="instagram_loadmore_background_color" class="feed-them-social-admin-input fb-loadmore-background-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="instagram-loadmore-background-color-input" placeholder="#ddd" value="<?php echo get_option('instagram_loadmore_background_color'); ?>"/>
199
- <div class="fts-clear"></div>
200
- </div>
201
- <!--/fts-instagram-feed-styles-input-wrap-->
202
-
203
- <div class="feed-them-social-admin-input-wrap">
204
- <div class="feed-them-social-admin-input-label fts-fb-border-bottom-color-label">
205
- <?php _e('Load More Button Text Color', 'feed-them-social'); ?>
206
- </div>
207
- <input type="text" name="instagram_loadmore_text_color" class="feed-them-social-admin-input fb-loadmore-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="instagram-loadmore-text-color-input" placeholder="#ddd" value="<?php echo get_option('instagram_loadmore_text_color'); ?>"/>
208
- <div class="fts-clear"></div>
209
- </div>
210
- <!--/fts-instagram-feed-styles-input-wrap-->
211
-
212
- <div class="feed-them-social-admin-input-wrap">
213
- <div class="feed-them-social-admin-input-label">
214
- <?php _e('"Load More" Text', 'feed-them-social'); ?>
215
- </div>
216
- <input type="text" name="instagram_load_more_text" class="feed-them-social-admin-input" id="instagram_load_more_text" placeholder="Load More" value="<?php echo get_option('instagram_load_more_text'); ?>"/>
217
- <div class="clear"></div>
218
- </div>
219
- <!--/fts-instagram-feed-styles-input-wrap-->
220
-
221
- <div class="feed-them-social-admin-input-wrap">
222
- <div class="feed-them-social-admin-input-label">
223
- <?php _e('"No More Photos" Text', 'feed-them-social'); ?>
224
- </div>
225
- <input type="text" name="instagram_no_more_photos_text" class="feed-them-social-admin-input" id="instagram_no_more_photos_text" placeholder="No More Photos" value="<?php echo get_option('instagram_no_more_photos_text'); ?>"/>
226
- <div class="clear"></div>
227
- </div>
228
- <!--/fts-instagram-feed-styles-input-wrap-->
229
- <?php } ?>
230
- <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>"/>
231
- </form>
232
- </div>
233
- <!--/feed-them-social-admin-wrap-->
234
-
235
- <?php }
236
- }//END Class
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/feed-them-pinterest-style-options-page.php DELETED
@@ -1,189 +0,0 @@
1
- <?php
2
- namespace feedthemsocial;
3
- /**
4
- * Class FTS Pinterest Options Page
5
- *
6
- * @package feedthemsocial
7
- * @since 1.9.6
8
- */
9
- class FTS_pinterest_options_page {
10
- /**
11
- * FTS_pinterest_options_page constructor.
12
- */
13
- function __construct() {
14
- }
15
-
16
- /**
17
- * Feed Them Pinterest Options Page
18
- *
19
- * @since 1.9.6
20
- */
21
- function feed_them_pinterest_options_page() {
22
- $fts_functions = new feed_them_social_functions();
23
- $fts_pinterest_access_token = get_option('fts_pinterest_custom_api_token');
24
- $fts_pinterest_show_follow_btn = get_option('pinterest_show_follow_btn');
25
- $fts_pinterest_show_follow_btn_where = get_option('pinterest_show_follow_btn_where');
26
-
27
- ?>
28
- <div class="feed-them-social-admin-wrap">
29
- <h1>
30
- <?php _e('Pinterest Feed Options', 'feed-them-social'); ?>
31
- </h1>
32
- <div class="use-of-plugin">
33
- <?php _e('Add a follow button and position it using the options below. This option will not work for combined feeds.', 'feed-them-social'); ?>
34
- <?php _e('', 'feed-them-social'); ?>
35
- </div>
36
-
37
-
38
- <!-- custom option for padding -->
39
- <form method="post" class="fts-pinterest-feed-options-form" action="options.php">
40
-
41
- <?php settings_fields('fts-pinterest-feed-style-options'); ?>
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
- <div class="feed-them-social-admin-input-wrap" style="padding-top: 0px"><div class="fts-title-description-settings-page" >
51
- <h3>
52
- <?php _e('Pinterest Access Token', 'feed-them-social'); ?>
53
- </h3><p>
54
- <?php _e('This is required to make the feed work. Just click the button below and it will connect to your Pinterest account to get an access token, and it will return it in the input below. Then just click the save button and you will now be able to generate your Pinterest feed. If you are having troubles with the button you can also get your Access Token <a href="http://www.slickremix.com/docs/how-to-create-a-pinterest-access-token/" target="_blank">here.</a> ', 'feed-them-social'); ?>
55
- </p>
56
- <p><a href="https://api.pinterest.com/oauth/?response_type=token&redirect_uri=https://www.slickremix.com/pinterest-token-plugin/&client_id=4852080225414031681&scope=read_public&state=<?php echo admin_url('admin.php?page=fts-pinterest-feed-styles-submenu-page');?>" class="fts-pinterest-get-access-token">
57
- <?php _e('Log in and get my Access Token'); ?>
58
- </a></p>
59
- </div>
60
-
61
-
62
-
63
-
64
-
65
- <div class="fts-clear"></div>
66
-
67
- <div class="feed-them-social-admin-input-wrap" style="margin-bottom:0px;">
68
- <div class="feed-them-social-admin-input-label fts-twitter-border-bottom-color-label">
69
- <?php _e('Access Token Required', 'feed-them-social'); ?>
70
- </div>
71
- <script>
72
- jQuery(document).ready(function ($) {
73
- function getQueryString(Param) {
74
- return decodeURI(
75
- (RegExp('[#|&]' + Param + '=' + '(.+?)(&|$)').exec(location.hash) || [, null])[1]
76
- );
77
- }
78
-
79
- if (window.location.hash) {
80
- $('#fts_pinterest_custom_api_token').val('');
81
- $('#fts_pinterest_custom_api_token').val($('#fts_pinterest_custom_api_token').val() + getQueryString('access_token'));
82
- }
83
- });
84
- </script>
85
- <input type="text" name="fts_pinterest_custom_api_token" class="feed-them-social-admin-input" id="fts_pinterest_custom_api_token" value="<?php echo get_option('fts_pinterest_custom_api_token'); ?>"/>
86
- <div class="fts-clear"></div>
87
- </div>
88
-
89
-
90
-
91
- <?php
92
-
93
-
94
- //Get Data for Instagram
95
- $response = wp_remote_fopen('https://api.pinterest.com/v1/me/?access_token='.$fts_pinterest_access_token.'&id');
96
- //Error Check
97
- $test_app_token_response = json_decode($response);
98
-
99
- // echo'<pre>';
100
- // print_r($test_app_token_response);
101
- // echo'</pre>';
102
-
103
- // Error Check
104
- if (!isset($test_app_token_response->status) && !empty($fts_pinterest_access_token) ) {
105
- echo '<div class="fts-successful-api-token">' . __('Your access token is working! Generate your shortcode on the <a href="admin.php?page=feed-them-settings-page">settings page</a>.', 'feed-them-social') . '</div>';
106
- } elseif (isset($test_app_token_response->status) && !empty($fts_pinterest_access_token)) {
107
- echo '<div class="fts-failed-api-token">' . __('Oh No something\'s wrong.', 'feed-them-social') . ' ' . $test_app_token_response->message . __('Please try again, if you are still having troulbes please contact us on our Support Forum. Make sure to include screenshots of the browser page that may come up with any errors. <a href="http://www.slickremix.com/support-forum/forum/feed-them-social-2/">http://www.slickremix.com/support-forum/forum/feed-them-social-2/</a>', 'feed-them-social') .'</div>';
108
- }
109
- if(empty($fts_pinterest_access_token)){
110
- echo'<div class="fts-failed-api-token">'. __('You are required to get an access token to view your any of the Pinterest Feeds. Click Save all Changes after getting your Access Token.', 'feed-them-social').'</div>';
111
- }
112
- ?>
113
-
114
- <div class="fts-clear"></div>
115
- </div>
116
- <!--/fts-pinterest-feed-styles-input-wrap-->
117
-
118
-
119
-
120
- <div class="feed-them-social-admin-input-wrap">
121
- <div class="fts-title-description-settings-page" >
122
- <h3>
123
- <?php _e('Follow Button Options', 'feed-them-social'); ?>
124
- </h3>
125
- <?php _e('This will only show on regular feeds not combined feeds.', 'feed-them-social'); ?>
126
- </div>
127
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label"><?php _e('Show Follow Button', 'feed-them-social'); ?></div>
128
-
129
- <select name="pinterest_show_follow_btn" id="pinterest-show-follow-btn" class="feed-them-social-admin-input">
130
- <option '<?php echo selected($fts_pinterest_show_follow_btn, 'no', false ) ?>' value="no"><?php _e('No', 'feed-them-social'); ?></option>
131
- <option '<?php echo selected($fts_pinterest_show_follow_btn, 'yes', false ) ?>' value="yes"><?php _e('Yes', 'feed-them-social'); ?></option>
132
- </select>
133
-
134
- <div class="fts-clear"></div>
135
- </div><!--/fts-twitter-feed-styles-input-wrap-->
136
-
137
-
138
- <div class="feed-them-social-admin-input-wrap">
139
- <div class="feed-them-social-admin-input-label fts-twitter-text-color-label"><?php _e('Placement of the Buttons', 'feed-them-social'); ?></div>
140
-
141
- <select name="pinterest_show_follow_btn_where" id="pinterest-show-follow-btn-where" class="feed-them-social-admin-input">
142
- <option ><?php _e('Please Select Option', 'feed-them-social'); ?></option>
143
- <option '<?php echo selected($fts_pinterest_show_follow_btn_where, 'pinterest-follow-above', false ) ?>' value="pinterest-follow-above"><?php _e('Show Above Feed', 'feed-them-social'); ?></option>
144
- <option '<?php echo selected($fts_pinterest_show_follow_btn_where, 'pinterest-follow-below', false ) ?>' value="pinterest-follow-below"><?php _e('Show Below Feed', 'feed-them-social'); ?></option>
145
- </select>
146
-
147
- <div class="fts-clear"></div>
148
- </div><!--/fts-twitter-feed-styles-input-wrap-->
149
-
150
-
151
- <div class="feed-them-social-admin-input-wrap">
152
- <div class="fts-title-description-settings-page">
153
- <h3>
154
- <?php _e('Boards List Style Options', 'feed-them-social'); ?>
155
- </h3>
156
- <?php _e('These styles are for the list of Boards type feed, <a href="http://feedthemsocial.com/pinterest/">as seen here</a>.', 'feed-them-social'); ?>
157
- </div>
158
- <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
159
- <?php _e('Board Title Color', 'feed-them-social'); ?>
160
- </div>
161
- <input type="text" name="pinterest_board_title_color" class="feed-them-social-admin-input fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="pinterest_board_title_color" placeholder="#555555" value="<?php echo get_option('pinterest_board_title_color'); ?>"/>
162
- <div class="fts-clear"></div>
163
- </div>
164
- <!--/fts-facebook-feed-styles-input-wrap-->
165
- <div class="feed-them-social-admin-input-wrap">
166
- <div class="feed-them-social-admin-input-label fts-fb-text-color-label">
167
- <?php _e('Board Title Size', 'feed-them-social'); ?>
168
- </div>
169
- <input type="text" name="pinterest_board_title_size" class="feed-them-social-admin-input" placeholder="16px" value="<?php echo get_option('pinterest_board_title_size'); ?>"/>
170
- <div class="fts-clear"></div>
171
- </div>
172
- <!--/fts-facebook-feed-styles-input-wrap-->
173
- <div class="feed-them-social-admin-input-wrap">
174
- <div class="feed-them-social-admin-input-label fts-fb-link-color-label">
175
- <?php _e('Background on Hover', 'feed-them-social'); ?>
176
- </div>
177
- <input type="text" name="pinterest_board_backg_hover_color" class="feed-them-social-admin-input fb-link-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="pinterest_board_backg_hover_color" placeholder="#FFF" value="<?php echo get_option('pinterest_board_backg_hover_color'); ?>"/>
178
- <div class="fts-clear"></div>
179
- </div>
180
- <!--/fts-facebook-feed-styles-input-wrap-->
181
-
182
- <div class="fts-clear"></div>
183
- <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes') ?>" />
184
- </form>
185
- </div>
186
- <!--/feed-them-social-admin-wrap-->
187
-
188
- <?php }
189
- }//END Class
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/feed-them-settings-page.php DELETED
@@ -1,6527 +0,0 @@
1
- <?php
2
-
3
- namespace feedthemsocial;
4
- /**
5
- * Class FTS Settings Page
6
- *
7
- * @package feedthemsocial
8
- * @since 1.9.6
9
- */
10
-
11
- class FTS_settings_page
12
- {
13
- /**
14
- * Construct
15
- *
16
- * FTS_settings_page constructor.
17
- *
18
- * @since 1.9.6
19
- */
20
- function __construct() {
21
- }
22
-
23
- /**
24
- * Feed Them Settings Page
25
- *
26
- * Main Settings Page.
27
- *
28
- * @since 1.9.6
29
- */
30
- function feed_them_settings_page() {
31
- $fts_functions = new feed_them_social_functions();
32
-
33
- if (!function_exists('curl_init')) {
34
- print '<div class="error"><p>' . __('Warning: cURL is not installed on this server. It is required to use this plugin. Please contact your host provider to install this.', 'feed-them-social') . '</p></div>';
35
- } ?>
36
-
37
- <div class="feed-them-social-admin-wrap">
38
- <div class="fts-backg"></div>
39
- <div class="fts-content">
40
- <h1 class="fts-logo-header"><?php _e('Feed Them Social', 'feed-them-social'); ?></h1>
41
-
42
- <div class="feed-them-icon-wrap">
43
- <a href="javascript:;" class="youtube-icon"></a>
44
- <a href="javascript:;" class="twitter-icon"></a>
45
- <a href="javascript:;" class="facebook-icon"></a>
46
- <a href="javascript:;" class="instagram-icon"></a>
47
- <a href="javascript:;" class="pinterest-icon"></a>
48
-
49
- <div id="discount-for-review"><a href="admin.php?page=fts-license-page"><?php _e('View Extensions & Demos', 'feed-them-social'); ?></a></div>
50
- </div>
51
-
52
- <div class="fts-tabs" id="fts-tabs">
53
-
54
- <label for="fts-tab1"
55
- class="fts-tab1 fts-tabbed <?php if (isset($_GET['tab']) && $_GET['tab'] == 'general_options') {
56
- echo 'tab-active';
57
- } elseif (!isset($_GET['tab'])) {
58
- echo 'tab-active';
59
- } ?>" id="general_options">
60
- <span><?php _e('Create Shortcode', 'sidebar-support') ?></span>
61
- </label>
62
-
63
- <label for="fts-tab2"
64
- class="fts-tab2 fts-tabbed <?php if (isset($_GET['tab']) && $_GET['tab'] == 'global_options') {
65
- echo ' tab-active';
66
- } ?>" id="global_options">
67
- <span><?php _e('Global Options', 'sidebar-support') ?></span>
68
- </label>
69
-
70
- <div id="fts-tab-content1"
71
- class="fts-tab-content fts-hide-me <?php if (isset($_GET['tab']) && $_GET['tab'] == 'general_options' || !isset($_GET['tab'])) {
72
- echo ' pane-active';
73
- } ?>">
74
- <section>
75
-
76
- <h2 class="fts-logo-subheader"><?php _e('Create Shortcode for Social Network', 'feed-them-social'); ?></h2>
77
- <div class="use-of-plugin"><?php _e('Please select what type of feed you would like using the select option below. After setting your options click the green Generate Shortcode button, then copy and paste the shortcode to a page, post or widget.', 'feed-them-social'); ?></div>
78
-
79
- <form class="feed-them-social-admin-form" id="feed-selector-form">
80
- <select id="shortcode-form-selector">
81
- <option value=""><?php _e('Select a Social Network', 'feed-them-social'); ?> </option>
82
- <option value="fts-fb-page-shortcode-form"><?php _e('Facebook Feed', 'feed-them-social'); ?></option>
83
- <option value="combine-steams-shortcode-form"><?php _e('Combine Streams Feed', 'feed-them-social'); ?></option>
84
- <option value="twitter-shortcode-form"><?php _e('Twitter Feed', 'feed-them-social'); ?></option>
85
- <option value="vine-shortcode-form" style="display: none"><?php _e('Vine Feed', 'feed-them-social'); ?></option>
86
- <option value="instagram-shortcode-form"><?php _e('Instagram Feed', 'feed-them-social'); ?></option>
87
- <option value="youtube-shortcode-form"><?php _e('YouTube Feed'); ?></option>
88
- <option value="pinterest-shortcode-form"><?php _e('Pinterest Feed', 'feed-them-social'); ?></option>
89
- </select>
90
- </form><!--/feed-them-social-admin-form-->
91
-
92
- <?php
93
-
94
- $step2_custom_message = __('<br/><strong>STEP 2:</strong> Generate your custom shortcode using the options below, then click generate shortcode and paste that to a Page, Post or widget.', 'feed-them-social');
95
-
96
- $limitforpremium = !is_plugin_active('feed-them-premium/feed-them-premium.php') ? '<small class="fts-required-more-posts"><br/>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>' : '';
97
-
98
- if (is_plugin_active('feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php')) {
99
- $facebookReviewsTokenCheck = array(
100
- 1 => array(
101
- 'option_name' => 'fts_facebook_custom_api_token',
102
- 'no_token_msg' => __('<strong>STEP 1:</strong> Please get your API Token on our <a href="admin.php?page=fts-facebook-feed-styles-submenu-page">Facebook Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social'),
103
- ),
104
- 2 => array(
105
- 'option_name' => 'fts_facebook_custom_api_token_biz',
106
- 'no_token_msg' => __('<strong>STEP 1:</strong> Please add a Facebook Page Reviews API Token to our <a href="admin.php?page=fts-facebook-feed-styles-submenu-page">Facebook Options</a> page. ' . $step2_custom_message . '', 'feed-them-social'),
107
- 'req_plugin' => 'facebook_reviews',
108
- )
109
- );
110
-
111
- } else {
112
- $facebookReviewsTokenCheck = array(
113
- 1 => array(
114
- 'option_name' => 'fts_facebook_custom_api_token',
115
- 'no_token_msg' => __('<strong>STEP 1:</strong> Please get your API Token on our <a href="admin.php?page=fts-facebook-feed-styles-submenu-page">Facebook Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social'),
116
- ),
117
- );
118
- }
119
- $required_plugins = array(
120
- 'fts_premium' => array(
121
- //Name will go into Non-Premium field so make sure it says "extension" Example: Must have {Plugin Name} to edit.
122
- 'name' => '<h3>Feed Them Premium extension</h3>',
123
- //Slick URL should Take them to plugin on Slickremix.com because they need for required fields
124
- 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-social-premium-extension/',
125
- //Plugin URL for checking if plugin is active
126
- 'plugin_url' => 'feed-them-premium/feed-them-premium.php',
127
- 'no_active_msg' => 'Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> to edit.',
128
- ),
129
- 'facebook_reviews' => array(
130
- 'name' => '<h3>Facebook Reviews extension</h3>',
131
- 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-social-facebook-reviews/',
132
- 'plugin_url' => 'feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php',
133
- 'no_active_msg' => 'Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> and <a href="https://www.slickremix.com/downloads/feed-them-carousel-premium/">carousel</a> to edit.',
134
- ),
135
- 'fts_carousel' => array(
136
- 'name' => '<h3>Feed Them Carousel extension</h3>',
137
- 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-carousel-premium/',
138
- 'plugin_url' => 'feed-them-carousel-premium/feed-them-carousel-premium.php',
139
- 'no_active_msg' => 'Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> and <a href="https://www.slickremix.com/downloads/feed-them-carousel-premium/">carousel</a> to edit.',
140
- ),
141
- 'combine_streams' => array(
142
- 'name' => '<h3>Feed Them Social Combined Streams extension</h3>',
143
- 'slick_url' => 'https://www.slickremix.com/downloads/feed-them-social-combined-streams/',
144
- 'plugin_url' => 'feed-them-social-combined-streams/feed-them-social-combined-streams.php',
145
- 'no_active_msg' => 'Must have <a href="https://www.slickremix.com/downloads/feed-them-social-combined-streams/">combined streams extenstion</a> to edit.',
146
- ),
147
- );
148
- $feed_settings_array = array(
149
- //******************************************
150
- // Combine Streams Feed
151
- //******************************************
152
- 'combine_streams' => array(
153
- 'shorcode_label' => 'mashup',
154
- 'section_attr_key' => 'combine_',
155
- 'section_title' => __('Combine Streams Shortcode Generator', 'feed-them-social'),
156
- 'section_wrap_class' => 'fts-combine-steams-shortcode-form',
157
- //Form Info
158
- 'form_wrap_classes' => 'combine-steams-shortcode-form',
159
- 'form_wrap_id' => 'fts-combine-steams-form',
160
- //Token Check
161
- /* 'token_check' => array(
162
- 1 => array(
163
- 'option_name' => 'fts_facebook_custom_api_token',
164
- 'no_token_msg' => 'You can view this feed without adding an API token but we suggest you add one if you are getting errors. You can add a token here if you like on our <a href="admin.php?page=fts-facebook-feed-styles-submenu-page">Facebook Options</a> page.',
165
- ),
166
- 2 => array(
167
- 'option_name' => 'fts_facebook_custom_api_token_biz',
168
- 'no_token_msg' => 'Please add a Facebook Page Reviews API Token to our <a href="admin.php?page=fts-facebook-feed-styles-submenu-page">Facebook Options</a> page before trying to view your Facebook Reviews feed.',
169
- 'req_plugin' => 'facebook_reviews',
170
- ),
171
- ),*/
172
- //Feed Type Selection
173
- 'feed_type_select' => array(
174
- 'label' => __('Feeds To Combine', 'feed-them-social'),
175
- 'select_wrap_classes' => 'fts-combine-steams-selector',
176
- 'select_classes' => '',
177
- 'select_name' => 'combine-steams-selector',
178
- 'select_id' => 'combine-steams-selector',
179
- ),
180
- //Feed Types and their options
181
- 'feeds_types' => array(
182
- //All Feeds (1 of each for now)
183
- 1 => array(
184
- 'value' => 'all',
185
- 'title' => __('All Feeds', 'feed-them-social'),
186
- ),
187
- //All Feeds (1 of each for now)
188
- 2 => array(
189
- 'value' => 'multiple_facebook',
190
- 'title' => __('Multiple Facebook Feeds', 'feed-them-social'),
191
- ),
192
- ),
193
- 'premium_msg_boxes' => array(
194
- 'main_select' => array(
195
- 'req_plugin' => 'combine_streams',
196
- 'msg' => 'With this extension you can mix a Facebook, Instagram, Twitter, Youtube and Pinterest posts all in one feed. The other feature this exentsion gives you is the abillity to mix multiple Facebook accounts into one feed!
197
- <a href="http://feedthemsocial.com/feed-them-social-combined-streams/" target="_blank">View Combined Streams Demo</a> . <a href="http://feedthemsocial.com/feed-them-social-combined-streams/#combined-fb-streams" target="_blank">View Combined Facebook Streams Demo</a>',
198
- ),
199
- ),
200
- 'short_attr_final' => 'yes',
201
- //Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
202
-
203
- 'main_options' => array(
204
- //Combined Total # of Posts
205
- array(
206
- 'grouped_options_title' => __('Combined Stream', 'feed-them-social'),
207
- 'option_type' => 'input',
208
- 'label' => __('Combined Total # of Posts', 'feed-them-social'),
209
- 'type' => 'text',
210
- 'id' => 'combine_post_count',
211
- 'name' => 'combine_post_count',
212
- 'value' => '',
213
- 'placeholder' => __('6 is the default number', 'feed-them-social'),
214
- 'req_plugin' => 'combine_streams',
215
- //Relative to JS.
216
- 'short_attr' => array(
217
- 'attr_name' => 'posts',
218
- 'var_final_if' => 'yes',
219
- 'empty_error' => 'set',
220
- 'empty_error_value' => 'posts=6',
221
- ),
222
- ),
223
- //# of Posts per Social Network
224
- array(
225
- 'option_type' => 'input',
226
- 'input_wrap_class' => 'combine_social_network_post_count',
227
- 'label' => __('# of Posts per Social Network', 'feed-them-social'). '<br/><small>' . __('NOT the combined total', 'feed-them-social') . '</small>',
228
- 'type' => 'text',
229
- //'instructional-text' => __('', 'feed-them-social'),
230
- 'id' => 'combine_social_network_post_count',
231
- 'name' => 'combine_social_network_post_count',
232
- 'value' => '',
233
- 'placeholder' => __('1 is the default number', 'feed-them-social'),
234
- 'req_plugin' => 'combine_streams',
235
- //Relative to JS.
236
- 'short_attr' => array(
237
- 'attr_name' => 'social_network_posts',
238
- 'var_final_if' => 'yes',
239
- 'empty_error' => 'set',
240
- 'empty_error_value' => 'social_network_posts=1',
241
- ),
242
- ),
243
- //Facebook Amount of words
244
- array(
245
- 'option_type' => 'input',
246
- 'label' => __('Amount of words per post', 'feed-them-social') . '<br/><small>' . __('Type 0 to remove the posts description', 'feed-them-social') . '</small>',
247
- 'type' => 'text',
248
- 'id' => 'combine_word_count_option',
249
- 'name' => 'combine_word_count_option',
250
- 'placeholder' => '45 ' . __('is the default number', 'feed-them-social'),
251
- 'value' => '',
252
- 'req_plugin' => 'combine_streams',
253
- //Relative to JS.
254
- 'short_attr' => array(
255
- 'attr_name' => 'words',
256
- 'empty_error' => 'set',
257
- 'empty_error_value' => 'words=45',
258
- ),
259
- ),
260
- //Center Container
261
- array(
262
- 'option_type' => 'select',
263
- 'label' => __('Center Feed Container', 'feed-them-social'),
264
- 'type' => 'text',
265
- 'id' => 'combine_container_position',
266
- 'name' => 'combine_container_position',
267
- 'options' => array(
268
- 1 => array(
269
- 'label' => __('Yes', 'feed-them-social'),
270
- 'value' => 'yes',
271
- ),
272
- 2 => array(
273
- 'label' => __('No', 'feed-them-social'),
274
- 'value' => 'no',
275
- ),
276
- ),
277
- 'req_plugin' => 'combine_streams',
278
- 'short_attr' => array(
279
- 'attr_name' => 'center_container',
280
- ),
281
- ),
282
- //Page Fixed Height
283
- array(
284
- 'input_wrap_class' => 'combine_height',
285
- 'option_type' => 'input',
286
- 'label' => __('Feed Fixed Height', 'feed-them-social') . '<br/><small>' . __('Leave blank for auto height', 'feed-them-social') . '</small>',
287
- 'type' => 'text',
288
- 'id' => 'combine_height',
289
- 'name' => 'combine_height',
290
- 'value' => '',
291
- 'req_plugin' => 'combine_streams',
292
- 'placeholder' => '450px ' . __('for example', 'feed-them-social'),
293
- //Relative to JS.
294
- 'short_attr' => array(
295
- 'attr_name' => 'height',
296
- 'var_final_if' => 'yes',
297
- 'empty_error' => 'set',
298
- 'empty_error_value' => '',
299
- ),
300
- ),
301
- //Background Color
302
- array(
303
- 'option_type' => 'input',
304
- 'color_picker' => 'yes',
305
- 'input_wrap_class' => 'combine_background_color',
306
- 'label' => __('Background Color', 'feed-them-social'),
307
- 'type' => 'text',
308
- 'id' => 'combine_background_color',
309
- 'name' => 'combine_background_color', //Relative to JS.
310
- 'req_plugin' => 'combine_streams',
311
- 'short_attr' => array(
312
- 'attr_name' => 'background_color',
313
- 'var_final_if' => 'yes',
314
- 'empty_error' => 'set',
315
- 'empty_error_value' => '',
316
- ),
317
- ),
318
- //Social Icon
319
- array(
320
- 'input_wrap_class' => 'combine_show_social_icon',
321
- 'option_type' => 'select',
322
- 'label' => __('Show Social Icon', 'feed-them-social'). '<br/><small>' . __('Right, Left or No', 'feed-them-social') . '</small>',
323
- 'type' => 'text',
324
- 'id' => 'combine_show_social_icon',
325
- 'name' => 'combine_show_social_icon',
326
- 'req_plugin' => 'combine_streams',
327
- 'options' => array(
328
- array(
329
- 'label' => __('Right', 'feed-them-social'),
330
- 'value' => 'right',
331
- ),
332
- array(
333
- 'label' => __('Left', 'feed-them-social'),
334
- 'value' => 'left',
335
- ),
336
- array(
337
- 'label' => __('No', 'feed-them-social'),
338
- 'value' => 'no',
339
- ),
340
- ),
341
- 'short_attr' => array(
342
- 'attr_name' => 'show_social_icon',
343
- ),
344
- ),
345
- //Show Description below image or video Name
346
- array(
347
- 'input_wrap_class' => 'combine_show_media',
348
- 'option_type' => 'select',
349
- 'label' => __('Show Image/Video', 'feed-them-social') . '<br/><small>' . __('Bottom (default) or Top of Post', 'feed-them-social') . '</small>',
350
- 'type' => 'text',
351
- 'id' => 'combine_show_media',
352
- 'name' => 'combine_show_media',
353
- 'req_plugin' => 'combine_streams',
354
- 'options' => array(
355
- array(
356
- 'label' => __('Below Username, Date & Description', 'feed-them-social'),
357
- 'value' => 'bottom',
358
- ),
359
- array(
360
- 'label' => __('Above Username, Date & Description', 'feed-them-social'),
361
- 'value' => 'top',
362
- ),
363
- ),
364
- 'short_attr' => array(
365
- 'attr_name' => 'show_media',
366
- ),
367
- ), //Show Username
368
- array(
369
- 'input_wrap_class' => 'combine_hide_date',
370
- 'option_type' => 'select',
371
- 'label' => __('Show Username', 'feed-them-social') . '<br/><small>' . __('Yes or No', 'feed-them-social') . '</small>',
372
- 'type' => 'text',
373
- 'id' => 'combine_hide_date',
374
- 'name' => 'combine_hide_date',
375
- 'req_plugin' => 'combine_streams',
376
- 'options' => array(
377
- array(
378
- 'label' => __('Yes', 'feed-them-social'),
379
- 'value' => 'yes',
380
- ),
381
- array(
382
- 'label' => __('No', 'feed-them-social'),
383
- 'value' => 'no',
384
- ),
385
- ),
386
- 'short_attr' => array(
387
- 'attr_name' => 'show_date',
388
- ),
389
- ),
390
- //Show Date
391
- array(
392
- 'input_wrap_class' => 'combine_hide_name',
393
- 'option_type' => 'select',
394
- 'label' => __('Show Date', 'feed-them-social') . '<br/><small>' . __('Yes or No', 'feed-them-social') . '</small>',
395
- 'type' => 'text',
396
- 'id' => 'combine_hide_name',
397
- 'name' => 'combine_hide_name',
398
- 'req_plugin' => 'combine_streams',
399
- 'options' => array(
400
- array(
401
- 'label' => __('Yes', 'feed-them-social'),
402
- 'value' => 'yes',
403
- ),
404
- array(
405
- 'label' => __('No', 'feed-them-social'),
406
- 'value' => 'no',
407
- ),
408
- ),
409
- 'short_attr' => array(
410
- 'attr_name' => 'show_name',
411
- ),
412
- ),
413
- //Padding
414
- array(
415
- 'option_type' => 'input',
416
- 'input_wrap_class' => 'combine_padding',
417
- 'label' => __('Padding', 'feed-them-social'),
418
- 'type' => 'text',
419
- 'id' => 'combine_padding',
420
- 'name' => 'combine_padding',
421
- 'req_plugin' => 'combine_streams',
422
- //Relative to JS.
423
- 'short_attr' => array(
424
- 'attr_name' => 'padding',
425
- 'var_final_if' => 'yes',
426
- 'empty_error' => 'set',
427
- 'empty_error_value' => '',
428
- ),
429
- ),
430
- //Combine Facebook
431
- array(
432
- 'grouped_options_title' => __('Facebook', 'feed-them-social'),
433
- 'option_type' => 'select',
434
- 'label' => __('Combine Facebook', 'feed-them-social'),
435
- 'type' => 'text',
436
- 'id' => 'combine_facebook',
437
- 'name' => 'combine_facebook',
438
- 'options' => array(
439
- array(
440
- 'label' => __('No', 'feed-them-social'),
441
- 'value' => 'no',
442
- ),
443
- array(
444
- 'label' => __('Yes', 'feed-them-social'),
445
- 'value' => 'yes',
446
- ),
447
- ),
448
- 'req_plugin' => 'combine_streams',
449
- 'short_attr' => array(
450
- 'attr_name' => '',
451
- 'empty_error_value' => '',
452
- 'no_attribute' => 'yes',
453
- 'ifs' => 'combine_facebook',
454
- ),
455
- 'sub_options' => array(
456
- 'sub_options_wrap_class' => 'main-combine-facebook-wrap',
457
- ),
458
- ),
459
- //Combine Facebook ID
460
- array(
461
- 'option_type' => 'input',
462
- 'input_wrap_class' => 'combine_facebook_name',
463
- 'label' => __('Facebook ID or Name', 'feed-them-social'),
464
- 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">Facebook Options</a> page. If that is in place your page ID should appear in the input below.',
465
- 'type' => 'text',
466
- 'id' => 'combine_facebook_name',
467
- 'name' => 'combine_facebook_name',
468
- 'req_plugin' => 'combine_streams',
469
- //Relative to JS.
470
- 'short_attr' => array(
471
- 'attr_name' => 'facebook_name',
472
- 'var_final_if' => 'yes',
473
- 'empty_error' => 'set',
474
- 'empty_error_value' => '',
475
- ),
476
- 'sub_options' => array(
477
- 'sub_options_wrap_class' => 'combine-facebook-wrap',
478
- ),
479
- 'sub_options_end' => true,
480
- ),
481
-
482
-
483
- //Combine Twitter
484
- array(
485
- 'grouped_options_title' => __('Twitter', 'feed-them-social'),
486
- 'option_type' => 'select',
487
- 'label' => __('Combine Twitter', 'feed-them-social'),
488
- 'type' => 'text',
489
- 'id' => 'combine_twitter',
490
- 'name' => 'combine_twitter',
491
- 'req_plugin' => 'combine_streams',
492
- 'options' => array(
493
- array(
494
- 'label' => __('No', 'feed-them-social'),
495
- 'value' => 'no',
496
- ),
497
- array(
498
- 'label' => __('Yes', 'feed-them-social'),
499
- 'value' => 'yes',
500
- ),
501
- ),
502
- 'short_attr' => array(
503
- 'attr_name' => '',
504
- 'empty_error_value' => '',
505
- 'no_attribute' => 'yes',
506
- ),
507
- 'sub_options' => array(
508
- 'sub_options_wrap_class' => 'main-combine-twitter-wrap',
509
- ),
510
- ),
511
-
512
-
513
- //Feed Type Selection
514
- array(
515
- 'option_type' => 'select',
516
- 'label' => __('Feed Type', 'feed-them-social'),
517
- 'select_wrap_classes' => 'combine-twitter-gen-selection',
518
- 'select_classes' => '',
519
- 'name' => 'combine-twitter-messages-selector',
520
- 'id' => 'combine-twitter-messages-selector',
521
- 'req_plugin' => 'combine_streams',
522
- //Feed Types and their options
523
- 'options' => array(
524
- //User Feed
525
- array(
526
- 'value' => 'user',
527
- 'label' => __('User Feed', 'feed-them-social'),
528
- ),
529
- //hastag Feed
530
- array(
531
- 'value' => 'hashtag',
532
- 'label' => __('Hashtag, Search and more Feed', 'feed-them-social'),
533
- ),
534
- ),
535
- 'short_attr' => array(
536
- 'attr_name' => '',
537
- 'empty_error_value' => '',
538
- 'no_attribute' => 'yes',
539
- ),
540
- 'sub_options' => array(
541
- 'sub_options_wrap_class' => 'combine-twitter-wrap',
542
- ),
543
- ),
544
-
545
- // 'short_attr_final' => 'yes',
546
- //Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
547
-
548
-
549
- //Twitter Search Name
550
- array(
551
- 'option_type' => 'input',
552
- 'input_wrap_class' => 'combine_twitter_hashtag_etc_name',
553
- 'label' => __('Twitter Search Name (required)', 'feed-them-social'),
554
- 'type' => 'text',
555
- 'id' => 'combine_twitter_hashtag_etc_name',
556
- 'name' => 'combine_twitter_hashtag_etc_name',
557
- 'value' => '',
558
- 'instructional-text' => __('You can use #hashtag, @person, or single words. For example, weather or weather-channel.<br/><br/>If you want to filter a specific users hashtag copy this example into the first input below and replace the user_name and YourHashtag name. DO NOT remove the from: or %# characters. NOTE: Only displays last 7 days worth of Tweets. <strong style="color:#225DE2;">from:user_name%#YourHashtag</strong>', 'feed-them-social'),
559
- //Relative to JS.
560
- 'short_attr' => array(
561
-
562
-
563
- 'attr_name' => 'search',
564
- 'var_final_if' => 'yes',
565
- 'empty_error' => 'set',
566
- 'empty_error_value' => '',
567
- 'empty_error_if' => array(
568
- 'attribute' => 'select#combine-twitter-messages-selector',
569
- 'operator' => '==',
570
- 'value' => 'hashtag',
571
- ),
572
-
573
-
574
- ),
575
- 'req_plugin' => 'combine_streams',
576
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
577
- 'sub_options' => array(
578
- 'sub_options_wrap_class' => 'combine-twitter-hashtag-etc-wrap',
579
- 'sub_options_title' => __('Twitter Search', 'feed-them-social'),
580
- ),
581
- 'sub_options_end' => true,
582
-
583
- ),
584
- //Twitter Name
585
- array(
586
- 'option_type' => 'input',
587
- 'input_wrap_class' => 'combine_twitter_name',
588
- 'label' => __('Twitter Name', 'feed-them-social'),
589
- 'type' => 'text',
590
- 'id' => 'combine_twitter_name',
591
- 'name' => 'combine_twitter_name',
592
- 'instructional-text' => '<span class="must-copy-twitter-name">' . __('You must copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/how-to-get-your-twitter-name/" target="_blank">' . __('Twitter Name', 'feed-them-social') . '</a> ' . __('and paste it in the first input below.', 'feed-them-social') . '</span>',
593
- 'value' => '',
594
- //Relative to JS.
595
- 'short_attr' => array(
596
- 'attr_name' => 'twitter_name',
597
- 'var_final_if' => 'yes',
598
- 'empty_error' => 'set',
599
- 'empty_error_value' => '',
600
- 'empty_error_if' => array(
601
- 'attribute' => 'select#combine-twitter-messages-selector',
602
- 'operator' => '==',
603
- 'value' => 'user',
604
- ),
605
- ),
606
- 'req_plugin' => 'combine_streams',
607
- 'sub_options_end' => 2,
608
- ),
609
-
610
-
611
- //Combine Instagram
612
- array(
613
- 'grouped_options_title' => __('Instagram', 'feed-them-social'),
614
- 'option_type' => 'select',
615
- 'label' => __('Combine Instagram', 'feed-them-social'),
616
- 'type' => 'text',
617
- 'id' => 'combine_instagram',
618
- 'name' => 'combine_instagram',
619
- 'options' => array(
620
- 1 => array(
621
- 'label' => __('No', 'feed-them-social'),
622
- 'value' => 'no',
623
- ),
624
- 2 => array(
625
- 'label' => __('Yes', 'feed-them-social'),
626
- 'value' => 'yes',
627
- ),
628
- ),
629
- 'req_plugin' => 'combine_streams',
630
- 'short_attr' => array(
631
- 'attr_name' => '',
632
- 'empty_error_value' => '',
633
- 'no_attribute' => 'yes',
634
- ),
635
- 'sub_options' => array(
636
- 'sub_options_wrap_class' => 'main-combine-instagram-wrap',
637
- ),
638
- ),
639
-
640
-
641
- //Instagram Type
642
- array(
643
- 'input_wrap_class' => 'combine_instagram_type',
644
- 'option_type' => 'select',
645
- 'label' => __('Instagram Type', 'feed-them-social'),
646
- 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-instagram-feed-styles-submenu-page" target="_blank">Instagram Options</a>.',
647
- 'type' => 'text',
648
- 'id' => 'combine_instagram_type',
649
- 'name' => 'combine_instagram_type',
650
- 'options' => array(
651
- //User Feed
652
- array(
653
- 'value' => 'user',
654
- 'label' => __('User Feed', 'feed-them-social'),
655
- ),
656
- //hastag Feed
657
- array(
658
- 'value' => 'hashtag',
659
- 'label' => __('Hashtag Feed', 'feed-them-social'),
660
- ),
661
- //location Feed
662
- array(
663
- 'value' => 'location',
664
- 'label' => __('Location Feed', 'feed-them-social'),
665
- ),
666
- ),
667
- 'req_plugin' => 'combine_streams',
668
- 'short_attr' => array(
669
- 'attr_name' => 'instagram_type',
670
- 'ifs' => 'combine_instagram',
671
- ),
672
- 'sub_options' => array(
673
- 'sub_options_wrap_class' => 'combine-instagram-wrap',
674
- ),
675
- ),
676
-
677
-
678
- //Combine Convert Instagram Name
679
- // array(
680
- // 'option_type' => 'input',
681
- // 'input_wrap_class' => 'combine-instagram-id-option-wrap',
682
- // 'label' => __('Convert Instagram Name to ID', 'feed-them-social'),
683
- // 'type' => 'text',
684
- // 'id' => 'combine_convert_instagram_username',
685
- // 'name' => 'combine_convert_instagram_username',
686
- // 'instructional-text' => __('You must copy your <a href="https://www.slickremix.com/how-to-get-your-instagram-name-and-convert-to-id/" target="_blank">Instagram Name</a> and paste it in the first input below', 'feed-them-social'),
687
- // 'req_plugin' => 'combine_streams',
688
- // //Relative to JS.
689
- // 'short_attr' => array(
690
- // 'attr_name' => '',
691
- // 'ifs' => 'combine_instagram',
692
- // 'no_attribute' => 'yes'
693
- // ),
694
- // ),
695
-
696
- //Instagram ID
697
- array(
698
- 'option_type' => 'input',
699
- // 'input_wrap_class' => 'combine_instagram_name',
700
- 'label' => array(
701
- 1 => array(
702
- 'text' => __('Instagram ID # (required)', 'feed-them-social'),
703
- 'class' => 'combine-instagram-user-option-text',
704
- ),
705
- 2 => array(
706
- 'text' => __('Hashtag (required)', 'feed-them-social'),
707
- 'class' => 'combine-instagram-hashtag-option-text',
708
- ),
709
- 3 => array(
710
- 'text' => __('Location ID (required)', 'feed-them-social'),
711
- 'class' => 'combine-instagram-location-option-text',
712
- ),
713
- ),
714
- 'type' => 'text',
715
- 'id' => 'combine_instagram_name',
716
- 'name' => 'combine_instagram_name',
717
- 'required' => 'combine_streams',
718
- 'instructional-text' => array(
719
- 1 => array(
720
- 'text' => __('<div class="fts-insta-info-plus-wrapper">If your Access Token is set on the Instagram Options page of our plugin your ID should appear below.</div>', 'feed-them-social') ,
721
- 'class' => 'combine-instagram-user-option-text',
722
- ),
723
- 2 => array(
724
- 'text' => __('Add your Hashtag below. Do not add the #, just the name.', 'feed-them-social'),
725
- 'class' => 'combine-instagram-hashtag-option-text',
726
- ),
727
- 3 => array(
728
- 'text' => __('<strong>NOTE:</strong> The post count may not count proper in some location instances because private instagram photos are in the mix. We cannot pull private accounts photos in any location feed. Add your Location ID below.', 'feed-them-social'),
729
- 'class' => 'combine-instagram-location-option-text',
730
- ),
731
- ),
732
- //Relative to JS.
733
- 'short_attr' => array(
734
- 'attr_name' => 'instagram_name',
735
- 'ifs' => 'combine_instagram',
736
- 'var_final_if' => 'no',
737
- 'empty_error' => 'set',
738
- 'empty_error_value' => '',
739
- ),
740
- 'sub_options_end' => 2,
741
- ),
742
-
743
-
744
- //Combine Pinterest
745
- array(
746
- 'grouped_options_title' => __('Pinterest', 'feed-them-social'),
747
- 'option_type' => 'select',
748
- 'label' => __('Combine Pinterest', 'feed-them-social'),
749
- 'type' => 'text',
750
- 'id' => 'combine_pinterest',
751
- 'name' => 'combine_pinterest',
752
- 'options' => array(
753
- array(
754
- 'label' => __('No', 'feed-them-social'),
755
- 'value' => 'no',
756
- ),
757
- array(
758
- 'label' => __('Yes', 'feed-them-social'),
759
- 'value' => 'yes',
760
- ),
761
- ),
762
- 'req_plugin' => 'combine_streams',
763
- 'short_attr' => array(
764
- 'attr_name' => '',
765
- 'empty_error_value' => '',
766
- 'no_attribute' => 'yes',
767
- ),
768
- 'sub_options' => array(
769
- 'sub_options_wrap_class' => 'main-combine-pinterest-wrap',
770
- ),
771
- ),
772
- //Pinterest Type
773
- array(
774
- 'input_wrap_class' => 'combine_pinterest_type',
775
- 'option_type' => 'select',
776
- 'label' => __('Pinterest Type', 'feed-them-social'),
777
- 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-pinterest-feed-styles-submenu-page" target="_blank">Pinterest Options</a> page then copy your <a href="https://www.slickremix.com/how-to-get-your-pinterest-name/" target="_blank">Pinterest and or Board Name</a> and paste them below based on your selection. A users board list is not available in this feed.',
778
- 'type' => 'text',
779
- 'id' => 'combine_pinterest_type',
780
- 'name' => 'combine_pinterest_type',
781
- 'options' => array(
782
- //Single Board Pins
783
- array(
784
- 'label' => __('Latest Pins from a User', 'feed-them-social'),
785
- 'value' => 'pins_from_user',
786
- ),
787
- //Single Board Pins
788
- array(
789
- 'label' => __('Pins From a Specific Board', 'feed-them-social'),
790
- 'value' => 'single_board_pins',
791
- ),
792
- ),
793
- 'req_plugin' => 'combine_streams',
794
- 'short_attr' => array(
795
- 'attr_name' => 'pinterest_type',
796
- 'ifs' => 'combine_pinterest',
797
- ),
798
- 'sub_options' => array(
799
- 'sub_options_wrap_class' => 'combine-pinterest-wrap',
800
- ),
801
- ),
802
- //Pinterest Name
803
- array(
804
- 'option_type' => 'input',
805
- 'input_wrap_class' => 'combine_pinterest_name',
806
- 'label' => __('Pinterest Name', 'feed-them-social'),
807
- 'type' => 'text',
808
- 'id' => 'combine_pinterest_name',
809
- 'name' => 'combine_pinterest_name',
810
- 'req_plugin' => 'combine_streams',
811
- //Relative to JS.
812
- 'short_attr' => array(
813
- 'attr_name' => 'pinterest_name',
814
- 'ifs' => 'combine_pinterest',
815
- 'var_final_if' => 'yes',
816
- 'empty_error' => 'set',
817
- 'empty_error_value' => '',
818
- ),
819
- ),
820
- //Pinterest Board ID
821
- array(
822
- 'option_type' => 'input',
823
- 'input_wrap_class' => 'combine_board_id',
824
- 'label' => __('Pinterest Board ID', 'feed-them-social'),
825
- 'type' => 'text',
826
- 'id' => 'combine_board_id',
827
- 'name' => 'combine_board_id',
828
- 'req_plugin' => 'combine_streams',
829
- //Relative to JS.
830
- 'short_attr' => array(
831
- 'attr_name' => 'board_id',
832
- 'ifs' => 'pinterest_single_board_pins',
833
- ),
834
- 'sub_options_end' => 2,
835
- ),
836
- //Combine Youtube
837
- array(
838
- 'grouped_options_title' => __('Youtube', 'feed-them-social'),
839
- 'option_type' => 'select',
840
- 'label' => __('Combine Youtube', 'feed-them-social'),
841
- 'type' => 'text',
842
- 'id' => 'combine_youtube',
843
- 'name' => 'combine_youtube',
844
- 'options' => array(
845
- array(
846
- 'label' => __('No', 'feed-them-social'),
847
- 'value' => 'no',
848
- ),
849
- array(
850
- 'label' => __('Yes', 'feed-them-social'),
851
- 'value' => 'yes',
852
- ),
853
- ),
854
- 'req_plugin' => 'combine_streams',
855
- 'short_attr' => array(
856
- 'attr_name' => '',
857
- 'empty_error_value' => '',
858
- 'no_attribute' => 'yes',
859
- ),
860
- 'sub_options' => array(
861
- 'sub_options_wrap_class' => 'main-combine-youtube-wrap',
862
- ),
863
- ),
864
- //Youtube Type
865
- array(
866
- 'input_wrap_class' => 'combine_youtube_type',
867
- 'option_type' => 'select',
868
- 'label' => __('Youtube Type', 'feed-them-social'),
869
- 'type' => 'text',
870
- 'id' => 'combine_youtube_type',
871
- 'name' => 'combine_youtube_type',
872
- 'options' => array( //Channel Feed
873
- array(
874
- 'label' => __('Channel Feed', 'feed-them-social'),
875
- 'value' => 'channelID',
876
- ), //Channel Playlist Feed
877
- array(
878
- 'label' => __('Channel\'s Specific Playlist', 'feed-them-social'),
879
- 'value' => 'playlistID',
880
- ),
881
- //User's Most Recent Videos
882
- array(
883
- 'label' => __('User\'s Most Recent Videos', 'feed-them-social'),
884
- 'value' => 'username',
885
- ),
886
- //User's Playlist
887
- array(
888
- 'label' => __('User\'s Specific Playlist', 'feed-them-social'),
889
- 'value' => 'userPlaylist',
890
- ),
891
-
892
-
893
- ),
894
- 'req_plugin' => 'combine_streams',
895
- 'short_attr' => array(
896
- 'attr_name' => '',
897
- 'no_attribute' => 'yes',
898
- 'ifs' => 'combine_youtube',
899
- ),
900
- 'sub_options' => array(
901
- 'sub_options_wrap_class' => 'combine-youtube-wrap',
902
- ),
903
- ),
904
- //Youtube Name
905
- array(
906
- 'option_type' => 'input',
907
- 'input_wrap_class' => 'combine_youtube_name',
908
- 'label' => __('YouTube Username', 'feed-them-social'),
909
- 'type' => 'text',
910
- 'id' => 'combine_youtube_name',
911
- 'name' => 'combine_youtube_name',
912
- 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>API Key</strong> or <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-youtube-feed-styles-submenu-page" target="_blank">Youtube Options</a> page then copy your YouTube <a href="https://www.slickremix.com/how-to-get-your-youtube-name/" target="_blank">Username</a> and paste it below.',
913
- 'req_plugin' => 'combine_streams',
914
- //Relative to JS.
915
- 'short_attr' => array(
916
- 'attr_name' => 'youtube_name',
917
- 'ifs' => 'combine_youtube',
918
- 'var_final_if' => 'yes',
919
- 'empty_error' => 'set',
920
- 'empty_error_value' => '',
921
- ),
922
- ),
923
- //YouTube Playlist ID
924
- array(
925
- 'option_type' => 'input',
926
- 'input_wrap_class' => 'combine_playlist_id',
927
- 'label' => __('YouTube Playlist ID', 'feed-them-social'),
928
- 'type' => 'text',
929
- 'id' => 'combine_playlist_id',
930
- 'name' => 'combine_playlist_id',
931
- 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>API Key</strong> or <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-youtube-feed-styles-submenu-page" target="_blank">Youtube Options</a> page then copy your YouTube <a href="https://www.slickremix.com/how-to-get-your-youtube-name/" target="_blank">Playlist ID</a> and paste them below.',
932
- 'req_plugin' => 'combine_streams',
933
- //Relative to JS.
934
- 'short_attr' => array(
935
- 'attr_name' => 'playlist_id',
936
- 'ifs' => 'combine_youtube',
937
- ),
938
- ),
939
- //YouTube Channel ID
940
- array(
941
- 'option_type' => 'input',
942
- 'input_wrap_class' => 'combine_channel_id',
943
- 'label' => __('YouTube Channel ID', 'feed-them-social'),
944
- 'type' => 'text',
945
- 'id' => 'combine_channel_id',
946
- 'name' => 'combine_channel_id',
947
- 'instructional-text' => '<strong>REQUIRED:</strong> Make sure you have an <strong>API Key</strong> or <strong>Access Token</strong> in place on the <a class="not-active-title" href="admin.php?page=fts-youtube-feed-styles-submenu-page" target="_blank">Youtube Options</a> page then copy your YouTube <a href="https://www.slickremix.com/how-to-get-your-youtube-name/" target="_blank">Channel ID</a> and paste it below.',
948
- 'req_plugin' => 'combine_streams',
949
- //Relative to JS.
950
- 'short_attr' => array(
951
- 'attr_name' => 'channel_id',
952
- 'ifs' => 'combine_youtube',
953
- ),
954
- 'sub_options_end' => 2,
955
- ),
956
- //******************************************
957
- // Combine Streams Grid Options
958
- //******************************************
959
- //Facebook Page Display Posts in Grid
960
- array(
961
- 'grouped_options_title' => __('Grid', 'feed-them-social'),
962
- 'input_wrap_class' => 'combine_grid_option',
963
- 'option_type' => 'select',
964
- 'label' => __('Display Posts in Grid', 'feed-them-social'),
965
- 'type' => 'text',
966
- 'id' => 'combine_grid_option',
967
- 'name' => 'combine_grid_option',
968
- 'options' => array(
969
- 1 => array(
970
- 'label' => __('No', 'feed-them-social'),
971
- 'value' => 'no',
972
- ),
973
- 2 => array(
974
- 'label' => __('Yes', 'feed-them-social'),
975
- 'value' => 'yes',
976
- ),
977
- ),
978
- 'req_plugin' => 'combine_streams',
979
- 'short_attr' => array(
980
- 'attr_name' => 'grid',
981
- 'empty_error' => 'set',
982
- 'set_operator' => '==',
983
- 'set_equals' => 'yes',
984
- 'empty_error_value' => '',
985
- ),
986
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
987
- 'sub_options' => array(
988
- 'sub_options_wrap_class' => 'combine-main-grid-options-wrap',
989
- ),
990
- ),
991
- //Grid Column Width
992
- array(
993
- 'option_type' => 'input',
994
- 'label' => __('Grid Column Width', 'feed-them-social'),
995
- 'type' => 'text',
996
- 'id' => 'combine_grid_column_width',
997
- 'name' => 'combine_grid_column_width',
998
- 'instructional-text' => '<strong> ' . __('NOTE:', 'feed-them-social') . '</strong> ' . sprintf(__('Define the Width of each post and the Space between each post below. You must add px after any number. Learn how to make the %1$sgrid responsive%2$s.', 'feed-them-social'),
999
- '<a href="https://www.slickremix.com/docs/responsive-grid-css/" target="_blank">',
1000
- '</a>'
1001
- ),
1002
- 'placeholder' => '310px ' . __('for example', 'feed-them-social'),
1003
- 'req_plugin' => 'combine_streams',
1004
- //Relative to JS.
1005
- 'short_attr' => array(
1006
- 'attr_name' => 'column_width',
1007
- 'empty_error' => 'set',
1008
- 'empty_error_value' => 'column_width=310px',
1009
- 'ifs' => 'combine_grid',
1010
- ),
1011
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
1012
- 'sub_options' => array(
1013
- 'sub_options_wrap_class' => 'combine-grid-options-wrap',
1014
- ),
1015
- ),
1016
- //Grid Spaces Between Posts
1017
- array(
1018
- 'option_type' => 'input',
1019
- 'label' => __('Grid Spaces Between Posts', 'feed-them-social'),
1020
- 'type' => 'text',
1021
- 'id' => 'combine_grid_space_between_posts',
1022
- 'name' => 'combine_grid_space_between_posts',
1023
- 'placeholder' => '10px ' . __('for example', 'feed-them-social'),
1024
- 'req_plugin' => 'combine_streams',
1025
- //Relative to JS.
1026
- 'short_attr' => array(
1027
- 'attr_name' => 'space_between_posts',
1028
- 'empty_error' => 'set',
1029
- 'empty_error_value' => 'space_between_posts=10px',
1030
- 'ifs' => 'combine_grid',
1031
- ),
1032
- 'sub_options_end' => 2,
1033
- ),
1034
- ),
1035
- //Final Shortcode ifs
1036
- 'shortcode_ifs' => array(
1037
- 'main_select' => array(
1038
- 'if' => array(
1039
- 'class' => 'select#shortcode-form-selector',
1040
- 'operator' => '==',
1041
- 'value' => 'combine-steams-shortcode-form',
1042
- ),
1043
- ),
1044
- 'combine_facebook' => array(
1045
- 'if' => array(
1046
- 'class' => 'select#combine_facebook',
1047
- 'operator' => '==',
1048
- 'value' => 'yes',
1049
- ),
1050
- ),
1051
- // 'combine_twitter' => array(
1052
- // 'if' => array(
1053
- // 'class' => 'select#combine-twitter-messages-selector',
1054
- // 'operator' => '==',
1055
- // 'value' => '',
1056
- // ),
1057
- // ),
1058
- // 'combine_twitter_search' => array(
1059
- // 'if' => array(
1060
- // 'class' => 'select#combine-twitter-messages-selector',
1061
- // 'operator' => '==',
1062
- // 'value' => '',
1063
- // ),
1064
- // ),
1065
- 'combine_instagram' => array(
1066
- 'if' => array(
1067
- 'class' => 'select#combine_instagram',
1068
- 'operator' => '==',
1069
- 'value' => 'yes',
1070
- ),
1071
- ),
1072
- 'combine_pinterest' => array(
1073
- 'if' => array(
1074
- 'class' => 'select#combine_pinterest',
1075
- 'operator' => '==',
1076
- 'value' => 'yes',
1077
- ),
1078
- ),
1079
- 'combine_youtube' => array(
1080
- 'if' => array(
1081
- 'class' => 'select#combine_youtube',
1082
- 'operator' => '==',
1083
- 'value' => 'yes',
1084
- ),
1085
- ),
1086
- 'combine_load_more' => array(
1087
- 'if' => array(
1088
- 'class' => 'select#fb_load_more_option',
1089
- 'operator' => '==',
1090
- 'value' => 'yes',
1091
- ),
1092
- ),
1093
- 'combine_grid' => array(
1094
- 'if' => array(
1095
- 'class' => 'select#combine_grid_option',
1096
- 'operator' => '==',
1097
- 'value' => 'yes',
1098
- ),
1099
- ),
1100
- 'yt_username' => array(
1101
- 'if' => array(
1102
- 'class' => 'select#combine_youtube_type',
1103
- 'operator' => '==',
1104
- 'value' => 'username',
1105
- ),
1106
- ),
1107
- 'yt_userPlaylist' => array(
1108
- 'if' => array(
1109
- 'class' => 'select#combine_youtube_type',
1110
- 'operator' => '==',
1111
- 'value' => 'userPlaylist',
1112
- ),
1113
- ),
1114
- 'yt_channelID' => array(
1115
- 'if' => array(
1116
- 'class' => 'select#combine_youtube_type',
1117
- 'operator' => '==',
1118
- 'value' => 'channelID',
1119
- ),
1120
- ),
1121
- 'yt_playlistID' => array(
1122
- 'if' => array(
1123
- 'class' => 'select#combine_youtube_type',
1124
- 'operator' => '==',
1125
- 'value' => 'playlistID',
1126
- ),
1127
- ),
1128
- 'pinterest_single_board_pins' => array(
1129
- 'if' => array(
1130
- 'class' => 'select#combine_pinterest_type',
1131
- 'operator' => '==',
1132
- 'value' => 'single_board_pins',
1133
- ),
1134
- ),
1135
- ),
1136
- //Generator Info
1137
- 'generator_title' => __('Combine Streams Shortcode', 'feed-them-social'),
1138
- 'generator_class' => 'combine-streams-final-shortcode',
1139
- ),//End Combine Streams
1140
- //******************************************
1141
- // Facebook Page Feed
1142
- //******************************************
1143
- 'facebook' => array(
1144
- 'section_attr_key' => 'facebook_',
1145
- 'section_title' => __('Facebook Page Shortcode Generator', 'feed-them-social'),
1146
- 'section_wrap_class' => 'fts-facebook_page-shortcode-form',
1147
- //Form Info
1148
- 'form_wrap_classes' => 'fts-fb-page-shortcode-form',
1149
- 'form_wrap_id' => 'fts-fb-page-form',
1150
- //Token Check
1151
- 'token_check' => $facebookReviewsTokenCheck,
1152
- //Feed Type Selection
1153
- 'feed_type_select' => array(
1154
- 'label' => __('Feed Type', 'feed-them-social'),
1155
- 'select_wrap_classes' => 'fts-social-selector',
1156
- 'select_classes' => '',
1157
- 'select_name' => 'facebook-messages-selector',
1158
- 'select_id' => 'facebook-messages-selector',
1159
- ),
1160
- //Feed Types and their options
1161
- 'feeds_types' => array(
1162
- //Facebook Page
1163
- array(
1164
- 'value' => 'page',
1165
- 'title' => __('Facebook Page', 'feed-them-social'),
1166
- ),
1167
- //Facebook Page List of Events
1168
- // array(
1169
- // 'value' => 'events',
1170
- // 'title' => __('Facebook Page List of Events', 'feed-them-social'),
1171
- // ),
1172
- // //Facebook Page Single Event Posts
1173
- // array(
1174
- // 'value' => 'event',
1175
- // 'title' => __('Facebook Page Single Event Posts', 'feed-them-social'),
1176
- // ),
1177
- // //Facebook Group
1178
- // array(
1179
- // 'value' => 'group',
1180
- // 'title' => __('Facebook Group', 'feed-them-social'),
1181
- // ),
1182
- //Facebook Album Photos
1183
- array(
1184
- 'value' => 'album_photos',
1185
- 'title' => __('Facebook Album Photos', 'feed-them-social'),
1186
- ),
1187
- //Facebook Album Covers
1188
- array(
1189
- 'value' => 'albums',
1190
- 'title' => __('Facebook Album Covers', 'feed-them-social'),
1191
- ),
1192
- //Facebook Videos
1193
- array(
1194
- 'value' => 'album_videos',
1195
- 'title' => __('Facebook Videos', 'feed-them-social'),
1196
- ),
1197
- //Facebook Page Reviews
1198
- array(
1199
- 'value' => 'reviews',
1200
- 'title' => __('Facebook Page Reviews', 'feed-them-social'),
1201
- ),
1202
- ),
1203
- 'premium_msg_boxes' => array(
1204
- 'album_videos' => array(
1205
- 'req_plugin' => 'fts_premium',
1206
- 'msg' => 'The Facebook video feed allows you to view your uploaded videos from facebook. See these great examples and options of all the different ways you can bring new life to your wordpress site! <a href="http://feedthemsocial.com/facebook-videos-demo/" target="_blank">View Demo</a><br><br>Additionally if you purchase the Carousel Plugin you can showcase your videos in a slideshow or carousel. Works with your Facebook Photos too! <a href="http://feedthemsocial.com/facebook-carousels/" target="_blank">View Carousel Demo</a>',
1207
- ),
1208
- 'reviews' => array(
1209
- 'req_plugin' => 'facebook_reviews',
1210
- 'msg' => 'The Facebook Reviews feed allows you to view all of the reviews people have made on your Facebook Page. See these great examples and options of all the different ways you can display your Facebook Page Reviews on your website. <a href="http://feedthemsocial.com/facebook-page-reviews-demo/" target="_blank">View Demo</a>',
1211
- ),
1212
- ),
1213
- 'short_attr_final' => 'yes',
1214
-
1215
- 'main_options' => array(
1216
- //Feed Type
1217
- array(
1218
- 'option_type' => 'select',
1219
- 'id' => 'facebook-messages-selector',
1220
- 'name' => 'facebook-messages-selector',
1221
- //DONT SHOW HTML
1222
- 'no_html' => 'yes',
1223
- //Relative to JS.
1224
- 'short_attr' => array(
1225
- 'attr_name' => 'type',
1226
- ),
1227
- ),
1228
- //Facebook ID
1229
- array(
1230
- 'option_type' => 'input',
1231
- 'input_wrap_class' => 'fb_page_id',
1232
- 'label' => __('Facebook ID (required)', 'feed-them-social'),
1233
- 'instructional-text' => array(
1234
- array(
1235
- 'text' => __('If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the') . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __('Facebook Options', 'feed-them-social') . '</a> ' . __('page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social').'',
1236
- 'class' => 'facebook-message-generator page inst-text-facebook-page',
1237
- ),
1238
- array(
1239
- 'text' => __('Copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/how-to-get-your-facebook-group-id/" target="_blank">' . __('Facebook Group ID', 'feed-them-social') . '</a> ' . __('and paste it in the first input below.', 'feed-them-social'),
1240
- 'class' => 'facebook-message-generator group inst-text-facebook-group',
1241
- ),
1242
- array(
1243
- 'text' => __('Copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/how-to-get-your-facebook-page-vanity-url/" target="_blank">' . __('Facebook Page ID', 'feed-them-social') . '</a> ' . __('and paste it in the first input below. PLEASE NOTE: This will only work with Facebook Page Events and you cannot have more than 25 events on Facebook.', 'feed-them-social'),
1244
- 'class' => 'facebook-message-generator event-list inst-text-facebook-event-list',
1245
- ),
1246
- array(
1247
- 'text' => __('Copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/how-to-get-your-facebook-event-id/" target="_blank">' . __('Facebook Event ID', 'feed-them-social') . '</a> ' . __('and paste it in the first input below.', 'feed-them-social'),
1248
- 'class' => 'facebook-message-generator event inst-text-facebook-event',
1249
- ),
1250
- array(
1251
- 'text' => __('To show a specific Album copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/docs/how-to-get-your-facebook-photo-gallery-id/" target="_blank">' . __('Facebook Album ID', 'feed-them-social') . '</a> ' . __('and paste it in the third input below. If you want to show all your uploaded photos leave the Album ID input blank.', 'feed-them-social'),
1252
- 'class' => 'facebook-message-generator album_photos inst-text-facebook-album-photos',
1253
- ),
1254
- array(
1255
- 'text' => __('If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the') . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __('Facebook Options', 'feed-them-social') . '</a> ' . __('page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social').'',
1256
- 'class' => 'facebook-message-generator albums inst-text-facebook-albums',
1257
- ),
1258
- array(
1259
- 'text' => __('If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the') . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __('Facebook Options', 'feed-them-social') . '</a> ' . __('page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social').'',
1260
- 'class' => 'facebook-message-generator video inst-text-facebook-video',
1261
- ),
1262
- array(
1263
- 'text' => __('If your Access Token is set on the Facebook Options page of our plugin your ID should appear below. To create an additional feed go back the') . ' <a href="admin.php?page=fts-facebook-feed-styles-submenu-page" target="_blank">' . __('Facebook Options', 'feed-them-social') . '</a> ' . __('page and make sure you are logged into that specific Facebook account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.', 'feed-them-social').'',
1264
- 'class' => 'facebook-message-generator reviews inst-text-facebook-reviews',
1265
- ),
1266
- ),
1267
- 'type' => 'text',
1268
- 'id' => 'fb_page_id',
1269
- 'name' => 'fb_page_id',
1270
- 'value' => '',
1271
- //Relative to JS.
1272
- 'short_attr' => array(
1273
- 'attr_name' => 'id',
1274
- 'var_final_if' => 'no',
1275
- 'empty_error' => 'yes',
1276
- ),
1277
- ),
1278
- //Access Token
1279
- array(
1280
- 'option_type' => 'input',
1281
- 'label' => __('Access Token (required) ', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-gallery') . '</small>',
1282
- 'type' => 'text',
1283
- 'id' => 'fb_access_token',
1284
- 'name' => 'fb_access_token',
1285
- // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
1286
- // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
1287
- 'placeholder' => __('', 'feed-them-social'),
1288
- //Relative to JS.
1289
- 'short_attr' => array(
1290
- 'attr_name' => 'access_token',
1291
- 'var_final_if' => 'yes',
1292
- 'empty_error' => 'set',
1293
- 'empty_error_value' => '',
1294
- ),
1295
- ),
1296
- //Facebook Album ID
1297
- array(
1298
- 'option_type' => 'input',
1299
- 'input_wrap_class' => 'fb_album_photos_id',
1300
- 'label' => __('Album ID ', 'feed-them-social') . '<br/><small>' . __('Leave blank to show all uploaded photos', 'feed-them-social') . '</small>',
1301
- 'type' => 'text',
1302
- 'id' => 'fb_album_id',
1303
- 'name' => 'fb_album_id',
1304
- 'value' => '',
1305
- //Relative to JS.
1306
- 'short_attr' => array(
1307
- 'attr_name' => 'album_id',
1308
- 'var_final_if' => 'yes',
1309
- 'empty_error' => 'set',
1310
- 'empty_error_value' => 'album_id=photo_stream',
1311
- 'empty_error_if' => array(
1312
- 'attribute' => 'select#facebook-messages-selector',
1313
- 'operator' => '==',
1314
- 'value' => 'album_photos',
1315
- ),
1316
- 'ifs' => 'album_photos',
1317
- ),
1318
- ),
1319
- //Facebook Page Post Type Visible
1320
- array(
1321
- 'input_wrap_class' => 'facebook-post-type-visible',
1322
- 'option_type' => 'select',
1323
- 'label' => __('Post Type Visible', 'feed-them-social'),
1324
- 'type' => 'text',
1325
- 'id' => 'fb_page_posts_displayed',
1326
- 'name' => 'fb_page_posts_displayed',
1327
- 'options' => array(
1328
- array(
1329
- 'label' => __('Display Posts made by Page only', 'feed-them-social'),
1330
- 'value' => 'page_only',
1331
- ),
1332
- array(
1333
- 'label' => __('Display Posts made by Page and Others', 'feed-them-social'),
1334
- 'value' => 'page_and_others',
1335
- ),
1336
- ),
1337
- 'short_attr' => array(
1338
- 'attr_name' => 'posts_displayed',
1339
- 'ifs' => 'page',
1340
- ),
1341
- ),
1342
- //Facebook page # of Posts
1343
- array(
1344
- 'option_type' => 'input',
1345
- 'label' => __('# of Posts', 'feed-them-social') . $limitforpremium,
1346
- 'type' => 'text',
1347
- 'id' => 'fb_page_post_count',
1348
- 'name' => 'fb_page_post_count',
1349
- 'value' => '',
1350
- 'placeholder' => __('6 is the default number', 'feed-them-social'),
1351
- //Relative to JS.
1352
- 'short_attr' => array(
1353
- 'attr_name' => 'posts',
1354
- 'var_final_if' => 'yes',
1355
- 'empty_error' => 'set',
1356
- 'empty_error_value' => 'posts=6',
1357
- ),
1358
- ),
1359
- //Facebook Page Facebook Fixed Height
1360
- array(
1361
- 'input_wrap_class' => 'fixed_height_option',
1362
- 'option_type' => 'input',
1363
- 'label' => __('Facebook Fixed Height', 'feed-them-social') . '<br/><small>' . __('Leave blank for auto height', 'feed-them-social') . '</small>',
1364
- 'type' => 'text',
1365
- 'id' => 'facebook_page_height',
1366
- 'name' => 'facebook_page_height',
1367
- 'value' => '',
1368
- 'placeholder' => '450px ' . __('for example', 'feed-them-social'),
1369
- //Relative to JS.
1370
- 'short_attr' => array(
1371
- 'attr_name' => 'height',
1372
- 'var_final_if' => 'yes',
1373
- 'empty_error' => 'set',
1374
- 'empty_error_value' => '',
1375
- ),
1376
- ),
1377
- //Facebook Page Show Page Title (Premium)
1378
- array(
1379
- 'input_wrap_class' => 'fb-page-title-option-hide',
1380
- 'option_type' => 'select',
1381
- 'label' => __('Show Page Title', 'feed-them-social') . '<br/><small>' . __('Yes or No', 'feed-them-social') . '</small>',
1382
- 'type' => 'text',
1383
- 'id' => 'fb_page_title_option',
1384
- 'name' => 'fb_page_title_option',
1385
- 'options' => array(
1386
- array(
1387
- 'label' => __('Yes', 'feed-them-social'),
1388
- 'value' => 'yes',
1389
- ),
1390
- array(
1391
- 'label' => __('No', 'feed-them-social'),
1392
- 'value' => 'no',
1393
- ),
1394
- ),
1395
- 'req_plugin' => 'fts_premium',
1396
- 'short_attr' => array(
1397
- 'attr_name' => 'title',
1398
- ),
1399
- 'sub_options' => array(
1400
- 'sub_options_wrap_class' => 'facebook-title-options-wrap',
1401
- ),
1402
- ),
1403
- //Facebook Page Align Title (Premium)
1404
- array(
1405
- 'input_wrap_class' => 'fb-page-title-align',
1406
- 'option_type' => 'select',
1407
- 'label' => __('Align Title', 'feed-them-social'). '<br/><small>' . __('Left, Center or Right', 'feed-them-social') . '</small>',
1408
- 'type' => 'text',
1409
- 'id' => 'fb_page_title_align',
1410
- 'name' => 'fb_page_title_align',
1411
- 'options' => array(
1412
- 1 => array(
1413
- 'label' => __('Left', 'feed-them-social'),
1414
- 'value' => 'left',
1415
- ),
1416
- 2 => array(
1417
- 'label' => __('Center', 'feed-them-social'),
1418
- 'value' => 'center',
1419
- ),
1420
- 3 => array(
1421
- 'label' => __('Right', 'feed-them-social'),
1422
- 'value' => 'right',
1423
- ),
1424
- ),
1425
- 'req_plugin' => 'fts_premium',
1426
- 'short_attr' => array(
1427
- 'attr_name' => 'title_align',
1428
- ),
1429
- ),
1430
- //Facebook Page Show Page Description (Premium)
1431
- array(
1432
- 'input_wrap_class' => 'fb-page-description-option-hide',
1433
- 'option_type' => 'select',
1434
- 'label' => __('Show Page Description', 'feed-them-social') . '<br/><small>' . __('Yes or No', 'feed-them-social') . '</small>',
1435
- 'type' => 'text',
1436
- 'id' => 'fb_page_description_option',
1437
- 'name' => 'fb_page_description_option',
1438
- 'options' => array(
1439
- 1 => array(
1440
- 'label' => __('Yes', 'feed-them-social'),
1441
- 'value' => 'yes',
1442
- ),
1443
- 2 => array(
1444
- 'label' => __('No', 'feed-them-social'),
1445
- 'value' => 'no',
1446
- ),
1447
- ),
1448
- 'short_attr' => array(
1449
- 'attr_name' => 'description',
1450
- ),
1451
- 'sub_options_end' => true,
1452
- ),
1453
-
1454
-
1455
-
1456
-
1457
-
1458
-
1459
-
1460
-
1461
-
1462
-
1463
-
1464
- //Show Description below image or video Name
1465
- array(
1466
- 'input_wrap_class' => 'facebook_show_media',
1467
- 'option_type' => 'select',
1468
- 'label' => __('Show Image/Video', 'feed-them-social') . '<br/><small>' . __('Bottom or Top of Post', 'feed-them-social') . '</small>',
1469
- 'type' => 'text',
1470
- 'id' => 'facebook_show_media',
1471
- 'name' => 'facebook_show_media',
1472
- 'req_plugin' => 'fts_premium',
1473
- 'or_req_plugin' => 'combine_streams',
1474
- 'options' => array(
1475
- array(
1476
- 'label' => __('Below Username, Date & Description', 'feed-them-social'),
1477
- 'value' => 'bottom',
1478
- ),
1479
- array(
1480
- 'label' => __('Above Username, Date & Description', 'feed-them-social'),
1481
- 'value' => 'top',
1482
- ),
1483
- ),
1484
- 'short_attr' => array(
1485
- 'attr_name' => 'show_media',
1486
- ),
1487
- ),
1488
- //Show Thumbnail
1489
- array(
1490
- 'input_wrap_class' => 'facebook_hide_thumbnail',
1491
- 'option_type' => 'select',
1492
- 'label' => __('Show User Thumbnail', 'feed-them-social') . '<br/><small>' . __('Yes or No', 'feed-them-social') . '</small>',
1493
- 'type' => 'text',
1494
- 'id' => 'facebook_hide_thumbnail',
1495
- 'name' => 'facebook_hide_thumbnail',
1496
- 'req_plugin' => 'fts_premium',
1497
- 'or_req_plugin' => 'combine_streams',
1498
- 'options' => array(
1499
- array(
1500
- 'label' => __('Yes', 'feed-them-social'),
1501
- 'value' => 'yes',
1502
- ),
1503
- array(
1504
- 'label' => __('No', 'feed-them-social'),
1505
- 'value' => 'no',
1506
- ),
1507
- ),
1508
- 'short_attr' => array(
1509
- 'attr_name' => 'show_thumbnail',
1510
- ),
1511
- ),
1512
- //Show Username
1513
- array(
1514
- 'input_wrap_class' => 'facebook_hide_date',
1515
- 'option_type' => 'select',
1516
- 'label' => __('Show Username', 'feed-them-social') . '<br/><small>' . __('Yes or No', 'feed-them-social') . '</small>',
1517
- 'type' => 'text',
1518
- 'id' => 'facebook_hide_date',
1519
- 'name' => 'facebook_hide_date',
1520
- 'req_plugin' => 'fts_premium',
1521
- 'or_req_plugin' => 'combine_streams',
1522
- 'options' => array(
1523
- array(
1524
- 'label' => __('Yes', 'feed-them-social'),
1525
- 'value' => 'yes',
1526
- ),
1527
- array(
1528
- 'label' => __('No', 'feed-them-social'),
1529
- 'value' => 'no',
1530
- ),
1531
- ),
1532
- 'short_attr' => array(
1533
- 'attr_name' => 'show_date',
1534
- ),
1535
- ),
1536
- //Show Date
1537
- array(
1538
- 'input_wrap_class' => 'facebook_hide_name',
1539
- 'option_type' => 'select',
1540
- 'label' => __('Show Date', 'feed-them-social') . '<br/><small>' . __('Yes or No', 'feed-them-social') . '</small>',
1541
- 'type' => 'text',
1542
- 'id' => 'facebook_hide_name',
1543
- 'name' => 'facebook_hide_name',
1544
- 'req_plugin' => 'fts_premium',
1545
- 'or_req_plugin' => 'combine_streams',
1546
- 'options' => array(
1547
- array(
1548
- 'label' => __('Yes', 'feed-them-social'),
1549
- 'value' => 'yes',
1550
- ),
1551
- array(
1552
- 'label' => __('No', 'feed-them-social'),
1553
- 'value' => 'no',
1554
- ),
1555
- ),
1556
- 'short_attr' => array(
1557
- 'attr_name' => 'show_name',
1558
- ),
1559
- ),
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
- //Facebook Amount of words
1571
- array(
1572
- 'option_type' => 'input',
1573
- 'label' => __('Amount of words per post', 'feed-them-social') . '<br/><small>' . __('Type 0 to remove the posts description', 'feed-them-social') . '</small>',
1574
- 'type' => 'text',
1575
- 'id' => 'fb_page_word_count_option',
1576
- 'name' => 'fb_page_word_count_option',
1577
- 'placeholder' => '45 ' . __('is the default number', 'feed-them-social'),
1578
- 'value' => '',
1579
- 'req_plugin' => 'fts_premium',
1580
- 'or_req_plugin' => 'combine_streams',
1581
- 'or_req_plugin_three' => 'facebook_reviews',
1582
- //Relative to JS.
1583
- 'short_attr' => array(
1584
- 'attr_name' => 'words',
1585
- 'empty_error' => 'set',
1586
- 'empty_error_value' => 'words=45',
1587
- ),
1588
- ),
1589
- //Facebook Image Width
1590
- array(
1591
- 'option_type' => 'input',
1592
- 'label' => __('Facebook Image Width', 'feed-them-social') . '<br/><small>' . __('Max width is 640px', 'feed-them-social') . '</small>',
1593
- 'type' => 'text',
1594
- 'id' => 'fts-slicker-facebook-container-image-width',
1595
- 'name' => 'fts-slicker-facebook-container-image-width',
1596
- 'placeholder' => '250px',
1597
- //Relative to JS.
1598
- 'short_attr' => array(
1599
- 'attr_name' => 'image_width',
1600
- 'empty_error' => 'set',
1601
- 'empty_error_value' => 'image_width=250px',
1602
- 'ifs' => 'album_photos,albums,album_videos',
1603
- ),
1604
- 'sub_options' => array(
1605
- 'sub_options_wrap_class' => 'fts-super-facebook-options-wrap',
1606
- ),
1607
- ),
1608
- //Facebook Image Height
1609
- array(
1610
- 'option_type' => 'input',
1611
- 'label' => __('Facebook Image Height', 'feed-them-social') . '<br/><small>' . __('Max width is 640px', 'feed-them-social') . '</small>',
1612
- 'type' => 'text',
1613
- 'id' => 'fts-slicker-facebook-container-image-height',
1614
- 'name' => 'fts-slicker-facebook-container-image-height',
1615
- 'placeholder' => '250px',
1616
- //Relative to JS.
1617
- 'short_attr' => array(
1618
- 'attr_name' => 'image_height',
1619
- 'empty_error' => 'set',
1620
- 'empty_error_value' => 'image_height=250px',
1621
- 'ifs' => 'album_photos,albums,album_videos',
1622
- ),
1623
- ),
1624
- //Facebook The space between photos
1625
- array(
1626
- 'option_type' => 'input',
1627
- 'label' => __('The space between photos', 'feed-them-social'),
1628
- 'type' => 'text',
1629
- 'id' => 'fts-slicker-facebook-container-margin',
1630
- 'name' => 'fts-slicker-facebook-container-margin',
1631
- 'placeholder' => '1px',
1632
- //Relative to JS.
1633
- 'short_attr' => array(
1634
- 'attr_name' => 'space_between_photos',
1635
- 'empty_error' => 'set',
1636
- 'empty_error_value' => 'space_between_photos=1px',
1637
- 'ifs' => 'album_photos,albums,album_videos',
1638
- ),
1639
- ),
1640
- //Hide Date, Likes and Comments
1641
- array(
1642
- 'option_type' => 'select',
1643
- 'label' => __('Hide Date, Likes and Comments', 'feed-them-social'),
1644
- 'label_note' => __('Good for image sizes under 120px', 'feed-them-social'),
1645
- 'type' => 'text',
1646
- 'id' => 'fts-slicker-facebook-container-hide-date-likes-comments',
1647
- 'name' => 'fts-slicker-facebook-container-hide-date-likes-comments',
1648
- 'options' => array(
1649
- 1 => array(
1650
- 'label' => __('No', 'feed-them-social'),
1651
- 'value' => 'no',
1652
- ),
1653
- 2 => array(
1654
- 'label' => __('Yes', 'feed-them-social'),
1655
- 'value' => 'yes',
1656
- ),
1657
- ),
1658
- 'short_attr' => array(
1659
- 'attr_name' => 'hide_date_likes_comments',
1660
- 'ifs' => 'album_photos,albums,album_videos',
1661
- ),
1662
- ),
1663
- //Center Facebook Container
1664
- array(
1665
- 'option_type' => 'select',
1666
- 'label' => __('Center Facebook Container', 'feed-them-social'),
1667
- 'type' => 'text',
1668
- 'id' => 'fts-slicker-facebook-container-position',
1669
- 'name' => 'fts-slicker-facebook-container-position',
1670
- 'options' => array(
1671
- 1 => array(
1672
- 'label' => __('Yes', 'feed-them-social'),
1673
- 'value' => 'yes',
1674
- ),
1675
- 2 => array(
1676
- 'label' => __('No', 'feed-them-social'),
1677
- 'value' => 'no',
1678
- ),
1679
- ),
1680
- 'short_attr' => array(
1681
- 'attr_name' => 'center_container',
1682
- 'ifs' => 'album_photos,albums,album_videos',
1683
- ),
1684
- 'sub_options_end' => true,
1685
- ),
1686
- //Image Stacking Animation NOT USING THIS ANYMORE
1687
- array(
1688
- 'option_type' => 'input',
1689
- 'label' => __('Image Stacking Animation On', 'feed-them-social'),
1690
- 'label_note' => __('This happens when resizing browser', 'feed-them-social'),
1691
- 'type' => 'hidden',
1692
- //used to trick is Visible in JS
1693
- 'class' => 'non-visible',
1694
- 'id' => 'fts-slicker-facebook-container-animation',
1695
- 'name' => 'fts-slicker-facebook-container-animation',
1696
- 'value' => 'no',
1697
- 'short_attr' => array(
1698
- 'attr_name' => 'image_stack_animation',
1699
- 'empty_error' => 'set',
1700
- 'empty_error_value' => 'image_stack_animation=no',
1701
- 'ifs' => 'grid',
1702
- ),
1703
- 'sub_options' => array(
1704
- 'sub_options_wrap_class' => 'facebook-image-animation-option-wrap',
1705
- ),
1706
- 'sub_options_end' => true,
1707
- ),
1708
- //Align Images non-grid
1709
- array(
1710
- 'input_wrap_id' => 'facebook_align_images_wrapper',
1711
- 'option_type' => 'select',
1712
- 'label' => __('Align Images', 'feed-them-social'),
1713
- 'type' => 'text',
1714
- 'id' => 'facebook_align_images',
1715
- 'name' => 'facebook_align_images',
1716
- 'options' => array(
1717
- 1 => array(
1718
- 'label' => __('Left', 'feed-them-social'),
1719
- 'value' => 'left',
1720
- ),
1721
- 2 => array(
1722
- 'label' => __('Center', 'feed-them-social'),
1723
- 'value' => 'center',
1724
- ),
1725
- 3 => array(
1726
- 'label' => __('Right', 'feed-them-social'),
1727
- 'value' => 'right',
1728
- ),
1729
- ),
1730
- 'short_attr' => array(
1731
- 'attr_name' => 'images_align',
1732
- 'ifs' => 'page',
1733
- ),
1734
- 'sub_options' => array(
1735
- 'sub_options_wrap_class' => 'align-images-wrap',
1736
- ),
1737
- 'sub_options_end' => true,
1738
- ),
1739
- //******************************************
1740
- // Facebook Review Options
1741
- //******************************************
1742
- //Reviews to Show
1743
- array(
1744
- 'grouped_options_title' => __('Reviews', 'feed-them-social'),
1745
- 'option_type' => 'select',
1746
- 'label' => __('Reviews to Show', 'feed-them-social'),
1747
- 'type' => 'text',
1748
- 'id' => 'reviews_type_to_show',
1749
- 'name' => 'reviews_type_to_show',
1750
- 'options' => array(
1751
- 1 => array(
1752
- 'label' => __('Show all Reviews', 'feed-them-social'),
1753
- 'value' => '1',
1754
- ),
1755
- 2 => array(
1756
- 'label' => __('5 Star Reviews only', 'feed-them-social'),
1757
- 'value' => '5',
1758
- ),
1759
- 3 => array(
1760
- 'label' => __('4 and 5 Stars Reviews only', 'feed-them-social'),
1761
- 'value' => '4',
1762
- ),
1763
- 4 => array(
1764
- 'label' => __('3, 4 and 5 Star Reviews only', 'feed-them-social'),
1765
- 'value' => '3',
1766
- ),
1767
- 5 => array(
1768
- 'label' => __('2, 3, 4, and 5 Star Reviews only', 'feed-them-social'),
1769
- 'value' => '2',
1770
- ),
1771
- ),
1772
- 'req_plugin' => 'facebook_reviews',
1773
- 'short_attr' => array(
1774
- 'attr_name' => 'reviews_type_to_show',
1775
- 'ifs' => 'reviews',
1776
- ),
1777
- 'sub_options' => array(
1778
- 'sub_options_wrap_class' => 'facebook-reviews-wrap',
1779
- ),
1780
- ),
1781
- //Rating Format
1782
- array(
1783
- 'option_type' => 'select',
1784
- 'label' => __('Rating Format', 'feed-them-social').'<br/><small>'.__('8/17/2018: Facebook has moved to what are called "recommendations" so for some people this option may not be necessary.', 'feed-them-premium') . '</small>',
1785
- 'type' => 'text',
1786
- 'id' => 'reviews_rating_format',
1787
- 'name' => 'reviews_rating_format',
1788
- 'options' => array(
1789
- 1 => array(
1790
- 'label' => __('5 star - &#9733;&#9733;&#9733;&#9733;&#9733;', 'feed-them-social'),
1791
- 'value' => '1',
1792
- ),
1793
- 2 => array(
1794
- 'label' => __('5 star &#9733;', 'feed-them-social'),
1795
- 'value' => '2',
1796
- ),
1797
- 3 => array(
1798
- 'label' => __('5 star', 'feed-them-social'),
1799
- 'value' => '3',
1800
- ),
1801
- 4 => array(
1802
- 'label' => __('5 &#9733;', 'feed-them-social'),
1803
- 'value' => '4',
1804
- ),
1805
- 5 => array(
1806
- 'label' => __('&#9733;&#9733;&#9733;&#9733;&#9733;', 'feed-them-social'),
1807
- 'value' => '5',
1808
- ),
1809
- ),
1810
- 'req_plugin' => 'facebook_reviews',
1811
- 'short_attr' => array(
1812
- 'attr_name' => 'reviews_rating_format',
1813
- 'ifs' => 'reviews',
1814
- )
1815
- ),
1816
- //Overall Rating
1817
- array(
1818
- 'option_type' => 'select',
1819
- 'label' => __('Overall Rating above Feed', 'feed-them-social') . '<br/><small>' . __('More settings: <a href="admin.php?page=fts-facebook-feed-styles-submenu-page#overall-rating-options">Facebook Options</a> page.', 'feed-them-social') . '</small>',
1820
- 'type' => 'text',
1821
- 'id' => 'reviews_overall_rating_show',
1822
- 'name' => 'reviews_overall_rating_show',
1823
- 'options' => array(
1824
- 1 => array(
1825
- 'label' => __('Yes', 'feed-them-social'),
1826
- 'value' => 'yes',
1827
- ),
1828
- 2 => array(
1829
- 'label' => __('No', 'feed-them-social'),
1830
- 'value' => 'no',
1831
- )
1832
- ),
1833
- 'req_plugin' => 'facebook_reviews',
1834
- 'short_attr' => array(
1835
- 'attr_name' => 'overall_rating',
1836
- 'ifs' => 'reviews',
1837
- )
1838
- ),
1839
- //Hide Reviews with no Text
1840
- array(
1841
- 'option_type' => 'select',
1842
- 'label' => __('Hide Reviews with no description', 'feed-them-social'),
1843
- 'type' => 'text',
1844
- 'id' => 'reviews_with_no_text',
1845
- 'name' => 'reviews_with_no_text',
1846
- 'options' => array(
1847
- 1 => array(
1848
- 'label' => __('Yes', 'feed-them-social'),
1849
- 'value' => 'no',
1850
- ),
1851
- 2 => array(
1852
- 'label' => __('No', 'feed-them-social'),
1853
- 'value' => 'yes',
1854
- )
1855
- ),
1856
- 'req_plugin' => 'facebook_reviews',
1857
- 'short_attr' => array(
1858
- 'attr_name' => 'remove_reviews_no_description',
1859
- 'ifs' => 'reviews',
1860
- ),
1861
- ),
1862
- //Hide Reviews the text link, "See More Reviews"
1863
- array(
1864
- 'option_type' => 'select',
1865
- 'label' => __('Hide the text "See More Reviews"', 'feed-them-social'),
1866
- 'type' => 'text',
1867
- 'id' => 'hide_see_more_reviews_link',
1868
- 'name' => 'hide_see_more_reviews_link',
1869
- 'options' => array(
1870
-
1871
- 1 => array(
1872
- 'label' => __('No', 'feed-them-social'),
1873
- 'value' => 'no',
1874
- ),
1875
- 2 => array(
1876
- 'label' => __('Yes', 'feed-them-social'),
1877
- 'value' => 'yes',
1878
- )
1879
- ),
1880
- 'req_plugin' => 'facebook_reviews',
1881
- 'short_attr' => array(
1882
- 'attr_name' => 'hide_see_more_reviews_link',
1883
- 'ifs' => 'reviews',
1884
- ),
1885
- 'sub_options_end' => true,
1886
- ),
1887
- //******************************************
1888
- // Like Box Options
1889
- //******************************************
1890
- //Facebook Hide Like Box or Button (Premium)
1891
- array(
1892
- 'grouped_options_title' => __('Like Box', 'feed-them-social'),
1893
- 'option_type' => 'select',
1894
- 'label' => __('Hide Like Box or Button', 'feed-them-social') . '<br/><small>' . __('Turn on from <a href="admin.php?page=fts-facebook-feed-styles-submenu-page">Facebook Options</a> page', 'feed-them-social') . '</small>',
1895
- 'type' => 'text',
1896
- 'id' => 'fb_hide_like_box_button',
1897
- 'name' => 'fb_hide_like_box_button',
1898
- 'options' => array(
1899
- 1 => array(
1900
- 'label' => __('Yes', 'feed-them-social'),
1901
- 'value' => 'yes',
1902
- ),
1903
- 2 => array(
1904
- 'label' => __('No', 'feed-them-social'),
1905
- 'value' => 'no',
1906
- ),
1907
-
1908
- ),
1909
- 'req_plugin' => 'fts_premium',
1910
- 'or_req_plugin' => 'combine_streams',
1911
- 'or_req_plugin_three' => 'facebook_reviews',
1912
- 'short_attr' => array(
1913
- 'attr_name' => 'hide_like_option',
1914
- 'ifs' => 'not_group',
1915
- 'empty_error' => 'set',
1916
- 'set_operator' => '==',
1917
- 'set_equals' => 'no',
1918
- 'empty_error_value' => '',
1919
- ),
1920
- 'sub_options' => array(
1921
- 'sub_options_wrap_class' => 'main-like-box-wrap',
1922
- ),
1923
- ),
1924
- //Position of Like Box or Button (Premium)
1925
- array(
1926
- 'option_type' => 'select',
1927
- 'label' => __('Position of Like Box or Button', 'feed-them-social'),
1928
- 'type' => 'text',
1929
- 'id' => 'fb_position_likebox',
1930
- 'name' => 'fb_position_likebox',
1931
- 'options' => array(
1932
- 1 => array(
1933
- 'label' => __('Above Title', 'feed-them-social'),
1934
- 'value' => 'above_title',
1935
- ),
1936
- 2 => array(
1937
- 'label' => __('Below Title', 'feed-them-social'),
1938
- 'value' => 'below_title',
1939
- ),
1940
- 3 => array(
1941
- 'label' => __('Bottom of Feed', 'feed-them-social'),
1942
- 'value' => 'bottom',
1943
- ),
1944
- ),
1945
- 'req_plugin' => 'fts_premium',
1946
- 'or_req_plugin' => 'combine_streams',
1947
- 'or_req_plugin_three' => 'facebook_reviews',
1948
- 'short_attr' => array(
1949
- 'attr_name' => 'show_follow_btn_where',
1950
- 'ifs' => 'not_group',
1951
- 'and_ifs' => 'like_box',
1952
-
1953
- ),
1954
- 'sub_options' => array(
1955
- 'sub_options_wrap_class' => 'like-box-wrap',
1956
- ),
1957
- ),
1958
- //Facebook Page Align Like Box or Button (Premium)
1959
- array(
1960
- 'option_type' => 'select',
1961
- 'label' => __('Align Like Box or Button', 'feed-them-social'),
1962
- 'type' => 'text',
1963
- 'id' => 'fb_align_likebox',
1964
- 'name' => 'fb_align_likebox',
1965
- 'options' => array(
1966
- 1 => array(
1967
- 'label' => __('Left', 'feed-them-social'),
1968
- 'value' => 'left',
1969
- ),
1970
- 2 => array(
1971
- 'label' => __('Center', 'feed-them-social'),
1972
- 'value' => 'center',
1973
- ),
1974
- 3 => array(
1975
- 'label' => __('Right', 'feed-them-social'),
1976
- 'value' => 'right',
1977
- ),
1978
- ),
1979
- 'req_plugin' => 'fts_premium',
1980
- 'or_req_plugin' => 'combine_streams',
1981
- 'or_req_plugin_three' => 'facebook_reviews',
1982
- 'short_attr' => array(
1983
- 'attr_name' => 'like_option_align',
1984
- 'ifs' => 'not_group',
1985
- 'and_ifs' => 'like_box',
1986
- ),
1987
- ),
1988
- //Facebook Page Width of Like Box
1989
- array(
1990
- 'option_type' => 'input',
1991
- 'label' => __('Width of Like Box', 'feed-them-social') . '<br/><small>' . __('This only works for the Like Box', 'feed-them-social') . '</small>',
1992
- 'type' => 'text',
1993
- 'id' => 'like_box_width',
1994
- 'name' => 'like_box_width',
1995
- 'placeholder' => __('500px max', 'feed-them-social'),
1996
- 'req_plugin' => 'fts_premium',
1997
- 'or_req_plugin' => 'combine_streams',
1998
- 'or_req_plugin_three' => 'facebook_reviews',
1999
- //Relative to JS.
2000
- 'short_attr' => array(
2001
- 'attr_name' => 'like_box_width',
2002
- 'empty_error' => 'set',
2003
- 'empty_error_value' => 'like_box_width=500px',
2004
- 'ifs' => 'not_group',
2005
- 'and_ifs' => 'like_box',
2006
- ),
2007
- 'sub_options_end' => 2,
2008
- ),
2009
- //******************************************
2010
- // Popup
2011
- //******************************************
2012
- //Facebook Page Display Photos in Popup
2013
- array(
2014
- 'grouped_options_title' => __('Popup', 'feed-them-social'),
2015
- 'option_type' => 'select',
2016
- 'label' => __('Display Photos in Popup', 'feed-them-social'),
2017
- 'type' => 'text',
2018
- 'id' => 'facebook_popup',
2019
- 'name' => 'facebook_popup',
2020
- 'options' => array(
2021
- 1 => array(
2022
- 'label' => __('No', 'feed-them-social'),
2023
- 'value' => 'no',
2024
- ),
2025
- 2 => array(
2026
- 'label' => __('Yes', 'feed-them-social'),
2027
- 'value' => 'yes',
2028
- ),
2029
- ),
2030
- 'req_plugin' => 'fts_premium',
2031
- 'or_req_plugin' => 'combine_streams',
2032
- 'short_attr' => array(
2033
- 'attr_name' => 'popup',
2034
- ),
2035
- 'sub_options' => array(
2036
- 'sub_options_wrap_class' => 'facebook-popup-wrap',
2037
- ),
2038
- 'sub_options_end' => true,
2039
- ),
2040
- //Facebook Comments in Popup
2041
- array(
2042
- 'option_type' => 'select',
2043
- 'label' => __('Hide Comments in Popup', 'feed-them-social'),
2044
- 'type' => 'text',
2045
- 'id' => 'facebook_popup_comments',
2046
- 'name' => 'facebook_popup_comments',
2047
- 'options' => array(
2048
- 1 => array(
2049
- 'label' => __('No', 'feed-them-social'),
2050
- 'value' => 'no',
2051
- ),
2052
- 2 => array(
2053
- 'label' => __('Yes', 'feed-them-social'),
2054
- 'value' => 'yes',
2055
- ),
2056
- ),
2057
- 'req_plugin' => 'fts_premium',
2058
- 'or_req_plugin' => 'combine_streams',
2059
- 'short_attr' => array(
2060
- 'attr_name' => 'hide_comments_popup',
2061
- 'ifs' => 'popup',
2062
- ),
2063
- 'sub_options' => array(
2064
- 'sub_options_wrap_class' => 'display-comments-wrap',
2065
- ),
2066
- 'sub_options_end' => true,
2067
- ),
2068
- //******************************************
2069
- // Facebook Load More Options
2070
- //******************************************
2071
- //Facebook Page Load More Button
2072
- array(
2073
- 'grouped_options_title' => __('Load More', 'feed-them-social'),
2074
- 'option_type' => 'select',
2075
- 'label' => __('Load More Button', 'feed-them-social'),
2076
- 'type' => 'text',
2077
- 'id' => 'fb_load_more_option',
2078
- 'name' => 'fb_load_more_option',
2079
- 'options' => array(
2080
- 1 => array(
2081
- 'label' => __('No', 'feed-them-social'),
2082
- 'value' => 'no',
2083
- ),
2084
- 2 => array(
2085
- 'label' => __('Yes', 'feed-them-social'),
2086
- 'value' => 'yes',
2087
- ),
2088
- ),
2089
- 'req_plugin' => 'fts_premium',
2090
- 'or_req_plugin' => 'facebook_reviews',
2091
- 'short_attr' => array(
2092
- 'attr_name' => '',
2093
- 'empty_error_value' => '',
2094
- 'no_attribute' => 'yes',
2095
- 'ifs' => 'not_events',
2096
- ),
2097
- 'sub_options' => array(
2098
- 'sub_options_wrap_class' => 'facebook-loadmore-wrap',
2099
- //'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2100
- ),
2101
- ),
2102
- //Facebook Page Load More Style
2103
- array(
2104
- 'option_type' => 'select',
2105
- 'label' => __('Load More Style', 'feed-them-social'),
2106
- 'type' => 'text',
2107
- 'id' => 'fb_load_more_style',
2108
- 'name' => 'fb_load_more_style',
2109
- 'instructional-text' => '<strong>' . __('NOTE:', 'feed-them-social') . '</strong> ' . __('The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social'),
2110
- 'options' => array(
2111
- 1 => array(
2112
- 'label' => __('Button', 'feed-them-social'),
2113
- 'value' => 'button',
2114
- ),
2115
- 2 => array(
2116
- 'label' => __('AutoScroll', 'feed-them-social'),
2117
- 'value' => 'autoscroll',
2118
- ),
2119
- ),
2120
- 'req_plugin' => 'fts_premium',
2121
- 'or_req_plugin' => 'facebook_reviews',
2122
- 'short_attr' => array(
2123
- 'attr_name' => 'loadmore',
2124
- 'ifs' => 'load_more',
2125
- ),
2126
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2127
- 'sub_options' => array(
2128
- 'sub_options_wrap_class' => 'fts-facebook-load-more-options-wrap',
2129
- //'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2130
- ),
2131
- 'sub_options_end' => true,
2132
- ),
2133
- //Facebook Page Load more Button Width
2134
- array(
2135
- 'option_type' => 'input',
2136
- 'label' => __('Load more Button Width', 'feed-them-social') . '<br/><small>' . __('Leave blank for auto width', 'feed-them-social') . '</small>',
2137
- 'type' => 'text',
2138
- 'id' => 'loadmore_button_width',
2139
- 'name' => 'loadmore_button_width',
2140
- 'placeholder' => '300px ' . __('for example', 'feed-them-social'),
2141
- 'value' => '',
2142
- 'req_plugin' => 'fts_premium',
2143
- 'or_req_plugin' => 'facebook_reviews',
2144
- //Relative to JS.
2145
- 'short_attr' => array(
2146
- 'attr_name' => 'loadmore_btn_maxwidth',
2147
- 'empty_error' => 'set',
2148
- 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
2149
- 'ifs' => 'load_more',
2150
- ),
2151
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2152
- 'sub_options' => array(
2153
- 'sub_options_wrap_class' => 'fts-facebook-load-more-options2-wrap',
2154
- //'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2155
- ),
2156
- ),
2157
- //Facebook Page Load more Button Margin
2158
- array(
2159
- 'option_type' => 'input',
2160
- 'label' => __('Load more Button Margin', 'feed-them-social'),
2161
- 'type' => 'text',
2162
- 'id' => 'loadmore_button_margin',
2163
- 'name' => 'loadmore_button_margin',
2164
- 'placeholder' => '10px ' . __('for example', 'feed-them-social'),
2165
- 'value' => '',
2166
- 'req_plugin' => 'fts_premium',
2167
- 'or_req_plugin' => 'facebook_reviews',
2168
- //Relative to JS.
2169
- 'short_attr' => array(
2170
- 'attr_name' => 'loadmore_btn_margin',
2171
- 'empty_error' => 'set',
2172
- 'empty_error_value' => 'loadmore_btn_margin=10px',
2173
- 'ifs' => 'load_more',
2174
- ),
2175
- 'sub_options_end' => 2,
2176
- ),
2177
- //******************************************
2178
- // Facebook Grid Options
2179
- //******************************************
2180
- //Facebook Page Display Posts in Grid
2181
- array(
2182
- 'grouped_options_title' => __('Grid', 'feed-them-social'),
2183
- 'input_wrap_class' => 'fb-posts-in-grid-option-wrap',
2184
- 'option_type' => 'select',
2185
- 'label' => __('Display Posts in Grid', 'feed-them-social'),
2186
- 'type' => 'text',
2187
- 'id' => 'fb-grid-option',
2188
- 'name' => 'fb-grid-option',
2189
- 'options' => array(
2190
- 1 => array(
2191
- 'label' => __('No', 'feed-them-social'),
2192
- 'value' => 'no',
2193
- ),
2194
- 2 => array(
2195
- 'label' => __('Yes', 'feed-them-social'),
2196
- 'value' => 'yes',
2197
- ),
2198
- ),
2199
- 'req_plugin' => 'fts_premium',
2200
- 'or_req_plugin' => 'combine_streams',
2201
- 'or_req_plugin_three' => 'facebook_reviews',
2202
- 'short_attr' => array(
2203
- 'attr_name' => 'grid',
2204
- 'empty_error' => 'set',
2205
- 'set_operator' => '==',
2206
- 'set_equals' => 'yes',
2207
- 'empty_error_value' => '',
2208
- ),
2209
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2210
- 'sub_options' => array(
2211
- 'sub_options_wrap_class' => 'main-grid-options-wrap',
2212
- ),
2213
- ),
2214
- //Grid Column Width
2215
- array(
2216
- 'option_type' => 'input',
2217
- 'label' => __('Grid Column Width', 'feed-them-social'),
2218
- 'type' => 'text',
2219
- 'id' => 'facebook_grid_column_width',
2220
- 'name' => 'facebook_grid_column_width',
2221
- 'instructional-text' => '<strong> ' . __('NOTE:', 'feed-them-social') . '</strong> ' . sprintf(__('Define the Width of each post and the Space between each post below. You must add px after any number. Learn how to make the %1$sgrid responsive%2$s.', 'feed-them-social'),
2222
- '<a href="https://www.slickremix.com/docs/responsive-grid-css/" target="_blank">',
2223
- '</a>'
2224
- ),'placeholder' => '310px ' . __('for example', 'feed-them-social'),
2225
- 'value' => '',
2226
- 'req_plugin' => 'fts_premium',
2227
- 'or_req_plugin' => 'combine_streams',
2228
- 'or_req_plugin_three' => 'facebook_reviews',
2229
-
2230
- //Relative to JS.
2231
- 'short_attr' => array(
2232
- 'attr_name' => 'colmn_width',
2233
- 'empty_error' => 'set',
2234
- 'empty_error_value' => 'colmn_width=310px',
2235
- 'ifs' => 'grid',
2236
- ),
2237
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2238
- 'sub_options' => array(
2239
- 'sub_options_wrap_class' => 'fts-facebook-grid-options-wrap',
2240
- //'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
2241
- ),
2242
- ),
2243
- //Grid Spaces Between Posts
2244
- array(
2245
- 'option_type' => 'input',
2246
- 'label' => __('Grid Spaces Between Posts', 'feed-them-social'),
2247
- 'type' => 'text',
2248
- 'id' => 'facebook_grid_space_between_posts',
2249
- 'name' => 'facebook_grid_space_between_posts',
2250
- 'placeholder' => '10px ' . __('for example', 'feed-them-social'),
2251
- 'value' => '',
2252
- 'req_plugin' => 'fts_premium',
2253
- 'or_req_plugin' => 'combine_streams',
2254
- 'or_req_plugin_three' => 'facebook_reviews',
2255
- //Relative to JS.
2256
- 'short_attr' => array(
2257
- 'attr_name' => 'space_between_posts',
2258
- 'empty_error' => 'set',
2259
- 'empty_error_value' => 'space_between_posts=10px',
2260
- 'ifs' => 'grid',
2261
- ),
2262
- 'sub_options_end' => 2,
2263
- ),
2264
- //******************************************
2265
- // Facebook Video Options
2266
- //******************************************
2267
- //Video Play Button
2268
- array(
2269
- 'grouped_options_title' => __('Video Button Options', 'feed-them-social'),
2270
- 'option_type' => 'select',
2271
- 'label' => __('Video Play Button', 'feed-them-social') . '<br/><small>' . __('Displays over Video Thumbnail', 'feed-them-social') . '</small>',
2272
- 'type' => 'text',
2273
- 'id' => 'facebook_show_video_button',
2274
- 'name' => 'facebook_show_video_button',
2275
- 'options' => array(
2276
- 1 => array(
2277
- 'label' => __('No', 'feed-them-social'),
2278
- 'value' => 'no',
2279
- ),
2280
- 2 => array(
2281
- 'label' => __('Yes', 'feed-them-social'),
2282
- 'value' => 'yes',
2283
- ),
2284
- ),
2285
- 'req_plugin' => 'fts_premium',
2286
- 'short_attr' => array(
2287
- 'attr_name' => 'play_btn',
2288
- 'empty_error' => 'set',
2289
- 'set_operator' => '==',
2290
- 'set_equals' => 'yes',
2291
- 'ifs' => 'album_videos',
2292
- ),
2293
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2294
- 'sub_options' => array(
2295
- 'sub_options_wrap_class' => 'fb-video-play-btn-options-wrap',
2296
- ),
2297
- ),
2298
- //Size of the Play Button
2299
- array(
2300
- 'option_type' => 'input',
2301
- 'label' => __('Size of the Play Button', 'feed-them-social'),
2302
- 'type' => 'text',
2303
- 'id' => 'facebook_size_video_play_btn',
2304
- 'name' => 'facebook_size_video_play_btn',
2305
- 'placeholder' => '40px ' . __('for example', 'feed-them-social'),
2306
- 'req_plugin' => 'fts_premium',
2307
- //Relative to JS.
2308
- 'short_attr' => array(
2309
- 'attr_name' => 'play_btn_size',
2310
- 'empty_error' => 'set',
2311
- 'empty_error_value' => 'play_btn_size=40px',
2312
- 'ifs' => 'album_videos',
2313
- 'and_ifs' => 'video',
2314
- ),
2315
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2316
- 'sub_options' => array(
2317
- 'sub_options_wrap_class' => 'fb-video-play-btn-options-content',
2318
- ),
2319
- ),
2320
- //Show Play Button in Front
2321
- array(
2322
- 'option_type' => 'select',
2323
- 'label' => __('Show Play Button in Front', 'feed-them-social') . '<br/><small>' . __('Displays before hovering over thumbnail', 'feed-them-social') . '</small>',
2324
- 'type' => 'text',
2325
- 'id' => 'facebook_show_video_button_in_front',
2326
- 'name' => 'facebook_show_video_button_in_front',
2327
- 'options' => array(
2328
- 1 => array(
2329
- 'label' => __('No', 'feed-them-social'),
2330
- 'value' => 'no',
2331
- ),
2332
- 2 => array(
2333
- 'label' => __('Yes', 'feed-them-social'),
2334
- 'value' => 'yes',
2335
- ),
2336
- ),
2337
- 'req_plugin' => 'fts_premium',
2338
- 'short_attr' => array(
2339
- 'attr_name' => 'play_btn_visible',
2340
- 'ifs' => 'album_videos',
2341
- 'and_ifs' => 'video',
2342
- ),
2343
- 'sub_options_end' => 2,
2344
- ),
2345
- //******************************************
2346
- // Facebook Carousel
2347
- //******************************************
2348
- //Carousel/Slideshow
2349
- array(
2350
- 'grouped_options_title' => __('Carousel/Slider', 'feed-them-social'),
2351
- 'input_wrap_id' => 'facebook_slider',
2352
- 'instructional-text' => __('Create a Carousel or Slideshow with these options.', 'feed-them-social') . ' <a href="http://feedthemsocial.com/facebook-carousels-or-sliders/" target="_blank">' . __('View Demos', 'feed-them-social') . '</a> ' . __('and copy easy to use shortcode examples.', 'feed-them-social'),
2353
- 'option_type' => 'select',
2354
- 'label' => __('Carousel/Slideshow', 'feed-them-social'),
2355
- 'type' => 'text',
2356
- 'id' => 'fts-slider',
2357
- 'name' => 'fts-slider',
2358
- 'options' => array(
2359
- 1 => array(
2360
- 'label' => __('Off', 'feed-them-social'),
2361
- 'value' => 'no',
2362
- ),
2363
- 2 => array(
2364
- 'label' => __('On', 'feed-them-social'),
2365
- 'value' => 'yes',
2366
- ),
2367
- ),
2368
- 'req_plugin' => 'fts_carousel',
2369
- 'short_attr' => array(
2370
- 'attr_name' => 'slider',
2371
- 'empty_error' => 'set',
2372
- 'set_operator' => '==',
2373
- 'set_equals' => 'yes',
2374
- 'ifs' => 'album_photos,album_videos',
2375
- ),
2376
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2377
- 'sub_options' => array(
2378
- 'sub_options_wrap_class' => 'slideshow-wrap',
2379
- ),
2380
- ),
2381
- //Carousel/Slideshow Type
2382
- array(
2383
- 'input_wrap_id' => 'facebook_scrollhorz_or_carousel',
2384
- 'option_type' => 'select',
2385
- 'label' => __('Type', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-social') . '</small>',
2386
- 'type' => 'text',
2387
- 'id' => 'scrollhorz_or_carousel',
2388
- 'name' => 'scrollhorz_or_carousel',
2389
- 'options' => array(
2390
- 1 => array(
2391
- 'label' => __('Slideshow', 'feed-them-social'),
2392
- 'value' => 'scrollhorz',
2393
- ),
2394
- 2 => array(
2395
- 'label' => __('Carousel', 'feed-them-social'),
2396
- 'value' => 'carousel',
2397
- ),
2398
- ),
2399
- 'req_plugin' => 'fts_carousel',
2400
- 'short_attr' => array(
2401
- 'attr_name' => 'scrollhorz_or_carousel',
2402
- 'ifs' => 'album_photos,album_videos',
2403
- 'and_ifs' => 'carousel',
2404
- ),
2405
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2406
- 'sub_options' => array(
2407
- 'sub_options_wrap_class' => 'slider_options_wrap',
2408
- ),
2409
- ),
2410
- //Carousel Slides Visible
2411
- array(
2412
- 'input_wrap_id' => 'facebook_slides_visible',
2413
- 'option_type' => 'input',
2414
- 'label' => __('Carousel Slides Visible', 'feed-them-social') . '<br/><small>' . __('Not for Slideshow. Example: 1-500', 'feed-them-social') . '</small>',
2415
- 'type' => 'text',
2416
- 'id' => 'slides_visible',
2417
- 'name' => 'slides_visible',
2418
- 'placeholder' => __('3 is the default number', 'feed-them-social'),
2419
- 'req_plugin' => 'fts_carousel',
2420
- //Relative to JS.
2421
- 'short_attr' => array(
2422
- 'attr_name' => 'slides_visible',
2423
- 'empty_error' => 'set',
2424
- 'empty_error_value' => 'slides_visible=3',
2425
- 'ifs' => 'album_photos,album_videos',
2426
- 'and_ifs' => 'carousel',
2427
- ),
2428
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2429
- 'sub_options' => array(
2430
- 'sub_options_wrap_class' => 'slider_carousel_wrap',
2431
- ),
2432
- ),
2433
- //Carousel Spacing in between Slides
2434
- array(
2435
- 'input_wrap_id' => 'facebook_slider_spacing',
2436
- 'option_type' => 'input',
2437
- 'label' => __('Spacing in between Slides', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-social') . '</small>',
2438
- 'type' => 'text',
2439
- 'id' => 'slider_spacing',
2440
- 'name' => 'slider_spacing',
2441
- 'value' => '',
2442
- 'placeholder' => __('2px', 'feed-them-social'),
2443
- 'req_plugin' => 'fts_carousel',
2444
- //Relative to JS.
2445
- 'short_attr' => array(
2446
- 'attr_name' => 'slider_spacing',
2447
- 'empty_error' => 'set',
2448
- 'empty_error_value' => 'slider_spacing=2px',
2449
- 'ifs' => 'album_photos,album_videos',
2450
- 'and_ifs' => 'carousel',
2451
- ),
2452
- 'sub_options_end' => true,
2453
- ),
2454
- //Carousel/Slideshow Margin
2455
- array(
2456
- 'input_wrap_id' => 'facebook_slider_margin',
2457
- 'option_type' => 'input',
2458
- 'label' => __('Carousel/Slideshow Margin', 'feed-them-social') . '<br/><small>' . __('Center feed. Add space above/below.', 'feed-them-social') . '</small>',
2459
- 'type' => 'text',
2460
- 'id' => 'slider_margin',
2461
- 'name' => 'slider_margin',
2462
- 'value' => '',
2463
- 'placeholder' => __('-6px auto 1px auto', 'feed-them-social'),
2464
- 'req_plugin' => 'fts_carousel',
2465
- //Relative to JS.
2466
- 'short_attr' => array(
2467
- 'attr_name' => 'slider_margin',
2468
- 'empty_error' => 'set',
2469
- 'empty_error_value' => 'slider_margin="-6px auto 1px auto"',
2470
- 'ifs' => 'album_photos,album_videos',
2471
- 'and_ifs' => 'carousel',
2472
- ),
2473
- ),
2474
- //Carousel/Slideshow Slider Speed
2475
- array(
2476
- 'input_wrap_id' => 'facebook_slider_speed',
2477
- 'option_type' => 'input',
2478
- 'label' => __('Slider Speed', 'feed-them-social') . '<br/><small>' . __('How fast the slider changes', 'feed-them-social') . '</small>',
2479
- 'type' => 'text',
2480
- 'id' => 'slider_speed',
2481
- 'name' => 'slider_speed',
2482
- 'value' => '',
2483
- 'placeholder' => __('0-10000', 'feed-them-social'),
2484
- 'req_plugin' => 'fts_carousel',
2485
- //Relative to JS.
2486
- 'short_attr' => array(
2487
- 'attr_name' => 'slider_speed',
2488
- 'empty_error' => 'set',
2489
- 'empty_error_value' => 'slider_speed=1000',
2490
- 'ifs' => 'album_photos,album_videos',
2491
- 'and_ifs' => 'carousel',
2492
- ),
2493
- ),
2494
- //Carousel/Slideshow Slider Timeout
2495
- array(
2496
- 'input_wrap_id' => 'facebook_slider_timeout',
2497
- 'option_type' => 'input',
2498
- 'label' => __('Slider Timeout', 'feed-them-social') . '<br/><small>' . __('Amount of Time before the next slide.', 'feed-them-social') . '</small>',
2499
- 'type' => 'text',
2500
- 'id' => 'slider_timeout',
2501
- 'name' => 'slider_timeout',
2502
- 'value' => '',
2503
- 'placeholder' => __('0-10000', 'feed-them-social'),
2504
- 'req_plugin' => 'fts_carousel',
2505
- //Relative to JS.
2506
- 'short_attr' => array(
2507
- 'attr_name' => 'slider_timeout',
2508
- 'empty_error' => 'set',
2509
- 'empty_error_value' => 'slider_timeout=1000',
2510
- 'ifs' => 'album_photos,album_videos',
2511
- 'and_ifs' => 'carousel',
2512
- ),
2513
- ),
2514
- //Carousel/Slideshow
2515
- array(
2516
- 'input_wrap_id' => 'facebook_slider_controls',
2517
- 'option_type' => 'select',
2518
- 'label' => __('Slider Controls', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-social') . '</small>',
2519
- 'type' => 'text',
2520
- 'id' => 'slider_controls',
2521
- 'name' => 'slider_controls',
2522
- 'options' => array(
2523
- 1 => array(
2524
- 'label' => __('Dots above Feed', 'feed-them-social'),
2525
- 'value' => 'dots_above_feed',
2526
- ),
2527
- 2 => array(
2528
- 'label' => __('Dots and Arrows above Feed', 'feed-them-social'),
2529
- 'value' => 'dots_and_arrows_above_feed',
2530
- ),
2531
- 3 => array(
2532
- 'label' => __('Dots and Numbers above Feed', 'feed-them-social'),
2533
- 'value' => 'dots_and_numbers_above_feed',
2534
- ),
2535
- 4 => array(
2536
- 'label' => __('Dots, Arrows and Numbers above Feed', 'feed-them-social'),
2537
- 'value' => 'dots_arrows_and_numbers_above_feed',
2538
- ),
2539
- 5 => array(
2540
- 'label' => __('Arrows and Numbers above feed', 'feed-them-social'),
2541
- 'value' => 'arrows_and_numbers_above_feed',
2542
- ),
2543
- 6 => array(
2544
- 'label' => __('Arrows above Feed', 'feed-them-social'),
2545
- 'value' => 'arrows_above_feed',
2546
- ),
2547
- 7 => array(
2548
- 'label' => __('Numbers above Feed', 'feed-them-social'),
2549
- 'value' => 'numbers_above_feed',
2550
- ),
2551
- 8 => array(
2552
- 'label' => __('Dots below Feed', 'feed-them-social'),
2553
- 'value' => 'dots_below_feed',
2554
- ),
2555
- array(
2556
- 'label' => __('Dots and Arrows below Feed', 'feed-them-social'),
2557
- 'value' => 'dots_and_arrows_below_feed',
2558
- ),
2559
- array(
2560
- 'label' => __('Dots and Numbers below Feed', 'feed-them-social'),
2561
- 'value' => 'dots_and_numbers_below_feed',
2562
- ),
2563
- array(
2564
- 'label' => __('Dots, Arrows and Numbers below Feed', 'feed-them-social'),
2565
- 'value' => 'dots_arrows_and_numbers_below_feed',
2566
- ),
2567
- array(
2568
- 'label' => __('Arrows below Feed', 'feed-them-social'),
2569
- 'value' => 'arrows_below_feed',
2570
- ),
2571
- array(
2572
- 'label' => __('Numbers Below Feed', 'feed-them-social'),
2573
- 'value' => 'numbers_below_feed',
2574
- ),
2575
- ),
2576
- 'req_plugin' => 'fts_carousel',
2577
- //Relative to JS.
2578
- 'short_attr' => array(
2579
- 'attr_name' => 'slider_controls',
2580
- 'ifs' => 'album_photos,album_videos',
2581
- 'and_ifs' => 'carousel',
2582
- ),
2583
- ),
2584
- //Carousel/Slideshow Slider Controls Text Color
2585
- array(
2586
- 'input_wrap_id' => 'facebook_slider_controls_text_color',
2587
- 'option_type' => 'input',
2588
- 'label' => __('Slider Controls Text Color', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-social') . '</small>',
2589
- 'type' => 'text',
2590
- 'id' => 'slider_controls_text_color',
2591
- 'name' => 'slider_controls_text_color',
2592
- 'class' => 'fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:\'#eee\',pickerFace:3,pickerBorder:0,pickerInsetColor:\'white\'}',
2593
- 'value' => '',
2594
- 'placeholder' => '#FFF',
2595
- 'req_plugin' => 'fts_carousel',
2596
- //Relative to JS.
2597
- 'short_attr' => array(
2598
- 'attr_name' => 'slider_controls_text_color',
2599
- 'empty_error' => 'set',
2600
- 'empty_error_value' => 'slider_controls_text_color=#FFF',
2601
- 'ifs' => 'album_photos,album_videos',
2602
- 'and_ifs' => 'carousel',
2603
- ),
2604
- ),
2605
- //Carousel/Slideshow Slider Controls Bar Color
2606
- array(
2607
- 'input_wrap_id' => 'facebook_slider_controls_bar_color',
2608
- 'option_type' => 'input',
2609
- 'label' => __('Slider Controls Bar Color', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-social') . '</small>',
2610
- 'type' => 'text',
2611
- 'id' => 'slider_controls_bar_color',
2612
- 'name' => 'slider_controls_bar_color',
2613
- 'class' => 'fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:\'#eee\',pickerFace:3,pickerBorder:0,pickerInsetColor:\'white\'}',
2614
- 'value' => '',
2615
- 'placeholder' => '#000',
2616
- 'req_plugin' => 'fts_carousel',
2617
- //Relative to JS.
2618
- 'short_attr' => array(
2619
- 'attr_name' => 'slider_controls_bar_color',
2620
- 'empty_error' => 'set',
2621
- 'empty_error_value' => 'slider_controls_bar_color=320px',
2622
- 'ifs' => 'album_photos,album_videos',
2623
- 'and_ifs' => 'carousel',
2624
- ),
2625
- ),
2626
- //Carousel/Slideshow Slider Controls Bar Color
2627
- array(
2628
- 'input_wrap_id' => 'facebook_slider_controls_width',
2629
- 'option_type' => 'input',
2630
- 'label' => __('Slider Controls Max Width', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-social') . '</small>',
2631
- 'type' => 'text',
2632
- 'id' => 'slider_controls_width',
2633
- 'name' => 'slider_controls_width',
2634
- 'class' => 'fb-text-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:\'#eee\',pickerFace:3,pickerBorder:0,pickerInsetColor:\'white\'}',
2635
- 'value' => '',
2636
- 'placeholder' => '320px',
2637
- 'req_plugin' => 'fts_carousel',
2638
- //Relative to JS.
2639
- 'short_attr' => array(
2640
- 'attr_name' => 'slider_controls_width',
2641
- 'empty_error' => 'set',
2642
- 'empty_error_value' => 'slider_controls_width=320px',
2643
- 'ifs' => 'album_photos,album_videos',
2644
- 'and_ifs' => 'carousel',
2645
- ),
2646
- 'sub_options_end' => 2,
2647
- ),
2648
- ),
2649
- //Final Shortcode ifs
2650
- 'shortcode_ifs' => array(
2651
- 'page' => array(
2652
- 'if' => array(
2653
- 'class' => 'select#facebook-messages-selector',
2654
- 'operator' => '==',
2655
- 'value' => 'page',
2656
- ),
2657
- ),
2658
- 'events' => array(
2659
- 'if' => array(
2660
- 'class' => 'select#facebook-messages-selector',
2661
- 'operator' => '==',
2662
- 'value' => 'events',
2663
- ),
2664
- ),
2665
- 'not_events' => array(
2666
- 'if' => array(
2667
- 'class' => 'select#facebook-messages-selector',
2668
- 'operator' => '!==',
2669
- 'value' => 'events',
2670
- ),
2671
- ),
2672
- 'event' => array(
2673
- 'if' => array(
2674
- 'class' => 'select#facebook-messages-selector',
2675
- 'operator' => '==',
2676
- 'value' => 'event',
2677
- ),
2678
- ),
2679
- 'group' => array(
2680
- 'if' => array(
2681
- 'class' => 'select#facebook-messages-selector',
2682
- 'operator' => '==',
2683
- 'value' => 'group',
2684
- ),
2685
- ),
2686
- 'not_group' => array(
2687
- 'if' => array(
2688
- 'class' => 'select#facebook-messages-selector',
2689
- 'operator' => '!==',
2690
- 'value' => 'group',
2691
- ),
2692
- ),
2693
- 'album_photos' => array(
2694
- 'if' => array(
2695
- 'class' => 'select#facebook-messages-selector',
2696
- 'operator' => '==',
2697
- 'value' => 'album_photos',
2698
- ),
2699
- ),
2700
- 'albums' => array(
2701
- 'if' => array(
2702
- 'class' => 'select#facebook-messages-selector',
2703
- 'operator' => '==',
2704
- 'value' => 'albums',
2705
- ),
2706
- ),
2707
- 'album_videos' => array(
2708
- 'if' => array(
2709
- 'class' => 'select#facebook-messages-selector',
2710
- 'operator' => '==',
2711
- 'value' => 'album_videos',
2712
- ),
2713
- ),
2714
- 'reviews' => array(
2715
- 'if' => array(
2716
- 'class' => 'select#facebook-messages-selector',
2717
- 'operator' => '==',
2718
- 'value' => 'reviews',
2719
- ),
2720
- ),
2721
- 'like_box' => array(
2722
- 'if' => array(
2723
- 'class' => 'select#fb_hide_like_box_button',
2724
- 'operator' => '==',
2725
- 'value' => 'no',
2726
- ),
2727
- ),
2728
- 'popup' => array(
2729
- 'if' => array(
2730
- 'class' => 'select#facebook_popup',
2731
- 'operator' => '==',
2732
- 'value' => 'yes',
2733
- ),
2734
- ),
2735
- 'load_more' => array(
2736
- 'if' => array(
2737
- 'class' => 'select#fb_load_more_option',
2738
- 'operator' => '==',
2739
- 'value' => 'yes',
2740
- ),
2741
- ),
2742
- 'video' => array(
2743
- 'if' => array(
2744
- 'class' => 'select#facebook_show_video_button',
2745
- 'operator' => '==',
2746
- 'value' => 'yes',
2747
- ),
2748
- ),
2749
- 'grid' => array(
2750
- 'if' => array(
2751
- 'class' => 'select#fb-grid-option',
2752
- 'operator' => '==',
2753
- 'value' => 'yes',
2754
- ),
2755
- ),
2756
- 'carousel' => array(
2757
- 'if' => array(
2758
- 'class' => 'select#fts-slider',
2759
- 'operator' => '==',
2760
- 'value' => 'yes',
2761
- ),
2762
- ),
2763
- ),
2764
- //Generator Info
2765
- 'generator_title' => __('Facebook Page Feed Shortcode', 'feed-them-social'),
2766
- 'generator_class' => 'facebook-page-final-shortcode',
2767
- ),//End Facebook Page Feed
2768
- //******************************************
2769
- // Youtube Feed
2770
- //******************************************
2771
- 'youtube' => array(
2772
- 'section_attr_key' => 'youtube_',
2773
- 'section_title' => __('Youtube Shortcode Generator', 'feed-them-social'),
2774
- 'section_wrap_class' => 'fts-youtube-shortcode-form',
2775
- //Form Info
2776
- 'form_wrap_classes' => 'youtube-shortcode-form',
2777
- 'form_wrap_id' => 'fts-youtube-form',
2778
- //Feed Type Selection
2779
- 'feed_type_select' => array(
2780
- 'label' => __('Feed Type', 'feed-them-social') . '<br/><small><a href="http://feedthemsocial.com/youtube-demo-1-large-with-4-video-per-row/" target="_blank">' . __('See Example Demos', 'feed-them-social') . '</a></small>',
2781
- 'select_wrap_classes' => 'youtube-gen-selection',
2782
- 'select_classes' => '',
2783
- 'select_name' => 'youtube-messages-selector',
2784
- 'select_id' => 'youtube-messages-selector',
2785
- ),
2786
- //Token Check
2787
- 'token_check' => array(
2788
- array(
2789
- 'option_name' => 'youtube_custom_api_token',
2790
- 'no_token_msg' => __('<strong>STEP 1:</strong> Please add your API Token or Access Token to our <a href="admin.php?page=fts-youtube-feed-styles-submenu-page">Youtube Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social'),
2791
- ),
2792
- ),
2793
- //Feed Types and their options
2794
- 'feeds_types' => array(
2795
- //Channel Feed
2796
- array(
2797
- 'value' => 'channelID',
2798
- 'title' => __('Channel Feed', 'feed-them-social'),
2799
- ),
2800
- //Channel Playlist Feed
2801
- array(
2802
- 'value' => 'playlistID',
2803
- 'title' => __('Channel\'s Specific Playlist', 'feed-them-social'),
2804
- ),
2805
- //User's Most Recent Videos
2806
- array(
2807
- 'value' => 'username',
2808
- 'title' => __('User\'s Most Recent Videos', 'feed-them-social'),
2809
- ),
2810
- //User's Playlist
2811
- array(
2812
- 'value' => 'userPlaylist',
2813
- 'title' => __('User\'s Specific Playlist', 'feed-them-social'),
2814
- ),
2815
- //Single Video with description
2816
- array(
2817
- 'value' => 'singleID',
2818
- 'title' => __('Single Video with title, date & description', 'feed-them-social'),
2819
- ),
2820
- ),
2821
- 'short_attr_final' => 'yes',
2822
- //Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
2823
-
2824
- //'empty_error'=> 'set',
2825
- //'empty_error_value'=> 'auto',
2826
-
2827
- 'main_options' => array(
2828
- //Youtube Name
2829
- array(
2830
- 'option_type' => 'input',
2831
- 'input_wrap_class' => 'youtube_name',
2832
- 'label' => __('Youtube Username (required)', 'feed-them-social'),
2833
- 'instructional-text' => __('You must copy your YouTube <strong>Username</strong> url and paste it below. Your url should look similar to our Example url.<br/><strong>Example:</strong>', 'feed-them-social') . ' <a href="https://www.youtube.com/channel/" target="_blank">https://www.youtube.com/user/nationalgeographic</a>',
2834
- 'type' => 'text',
2835
- 'id' => 'youtube_name',
2836
- 'name' => 'youtube_name',
2837
- //Relative to JS.
2838
- 'short_attr' => array(
2839
- 'attr_name' => 'username',
2840
- 'empty_error' => 'yes',
2841
- 'ifs' => 'username',
2842
- 'empty_error_if' => array(
2843
- 'attribute' => 'select#youtube-messages-selector',
2844
- 'operator' => '==',
2845
- 'value' => 'username',
2846
- ),
2847
- ),
2848
- ),
2849
- //Youtube Playlist ID
2850
- array(
2851
- 'option_type' => 'input',
2852
- 'input_wrap_class' => 'youtube_playlistID',
2853
- 'label' => __('Youtube Playlist ID (required)', 'feed-them-social'),
2854
- 'instructional-text' => __('You must copy your YouTube <strong>Playlist</strong> and <strong>Channel</strong> url link and paste them below. Your urls should look similar to our Example urls below. <br/><br/><strong>Playlist ID:</strong>', 'feed-them-social') . ' <a href="https://www.youtube.com/watch?v=_-sySjjthB0&list=PL7V-xVyJYY3cI-A9ZHkl6A3r31yiVz0XN" target="_blank">https://www.youtube.com/watch?v=_-sySjjthB0&list=PL7V-xVyJYY3cI-A9ZHkl6A3r31yiVz0XN</a><br/><strong>' . __('Channel ID:', 'feed-them-social') .'</strong> <a href="https://www.youtube.com/channel/UCt16NSYjauKclK67LCXvQyA" target="_blank">https://www.youtube.com/channel/UCt16NSYjauKclK67LCXvQyA</a>',
2855
- 'type' => 'text',
2856
- 'id' => 'youtube_playlistID',
2857
- 'name' => 'youtube_playlistID',
2858
- 'value' => '',
2859
- //Relative to JS.
2860
- 'short_attr' => array(
2861
- 'attr_name' => 'playlist_id',
2862
- 'empty_error' => 'yes',
2863
- 'ifs' => 'playlistID',
2864
- 'empty_error_if' => array(
2865
- 'attribute' => 'select#youtube-messages-selector',
2866
- 'operator' => '==',
2867
- 'value' => 'playlistID',
2868
- ),
2869
- ),
2870
- ),
2871
- //Youtube Playlist ID2
2872
- array(
2873
- 'option_type' => 'input',
2874
- 'input_wrap_class' => 'youtube_playlistID2',
2875
- 'label' => __('Youtube Playlist ID (required)', 'feed-them-social'),
2876
- 'instructional-text' => __('You must copy your YouTube <strong>Playlist</strong> and <strong>Username</strong> url and paste them below. Your urls should look similar to our Example urls below.<br/><br/><strong>Playlist ID:</strong>', 'feed-them-social') . ' <a href="https://www.youtube.com/watch?v=cxrLRbkOwKs&index=10&list=PLivjPDlt6ApS90YoAu-T8VIj6awyflIym" target="_blank">https://www.youtube.com/watch?v=cxrLRbkOwKs&index=10&list=PLivjPDlt6ApS90YoAu-T8VIj6awyflIym</a><br/><strong>' . __('Username:', 'feed-them-social') .'</strong> <a href="https://www.youtube.com/user/nationalgeographic" target="_blank">https://www.youtube.com/user/nationalgeographic</a>',
2877
- 'type' => 'text',
2878
- 'id' => 'youtube_playlistID2',
2879
- 'name' => 'youtube_playlistID2',
2880
- 'value' => '',
2881
- //Relative to JS.
2882
- 'short_attr' => array(
2883
- 'attr_name' => 'playlist_id',
2884
- 'empty_error' => 'yes',
2885
- 'ifs' => 'userPlaylist',
2886
- 'empty_error_if' => array(
2887
- 'attribute' => 'select#youtube-messages-selector',
2888
- 'operator' => '==',
2889
- 'value' => 'userPlaylist',
2890
- ),
2891
- ),
2892
- ),
2893
- //Youtube Name 2
2894
- array(
2895
- 'option_type' => 'input',
2896
- 'input_wrap_class' => 'youtube_name2',
2897
- 'label' => __('Youtube Username<br/><small>Required if showing <a href="admin.php?page=fts-youtube-feed-styles-submenu-page">Subscribe button</a></small>', 'feed-them-social'),
2898
- 'type' => 'text',
2899
- 'id' => 'youtube_name2',
2900
- 'name' => 'youtube_name2',
2901
- //Relative to JS.
2902
- 'short_attr' => array(
2903
- 'attr_name' => 'username_subscribe_btn',
2904
- 'ifs' => 'userPlaylist',
2905
- 'empty_error_if' => array(
2906
- 'attribute' => 'select#youtube-messages-selector',
2907
- 'operator' => '==',
2908
- 'value' => 'userPlaylist',
2909
- ),
2910
- ),
2911
- ),
2912
- //Youtube Channel ID
2913
- array(
2914
- 'option_type' => 'input',
2915
- 'input_wrap_class' => 'youtube_channelID',
2916
- 'label' => __('Youtube Channel ID (required)', 'feed-them-social'),
2917
- 'instructional-text' => __('You must copy your YouTube <strong>Channel</strong> url and paste it below. Your url should look similar to our Example url.<br/><strong>Example:</strong>', 'feed-them-social') . ' <a href="https://www.youtube.com/channel/UCqhnX4jA0A5paNd1v-zEysw" target="_blank">https://www.youtube.com/channel/UCqhnX4jA0A5paNd1v-zEysw</a>',
2918
- 'type' => 'text',
2919
- 'id' => 'youtube_channelID',
2920
- 'name' => 'youtube_channelID',
2921
- //Relative to JS.
2922
- 'short_attr' => array(
2923
- 'attr_name' => 'channel_id',
2924
- 'ifs' => 'channelID',
2925
- 'empty_error' => 'yes',
2926
- 'empty_error_if' => array(
2927
- 'attribute' => 'select#youtube-messages-selector',
2928
- 'operator' => '==',
2929
- 'value' => 'channelID',
2930
- ),
2931
- ),
2932
- ),
2933
- //Youtube Channel ID 2
2934
- array(
2935
- 'option_type' => 'input',
2936
- 'input_wrap_class' => 'youtube_channelID2',
2937
- 'label' => __('Youtube Channel ID<br/><small>Required if showing <a href="admin.php?page=fts-youtube-feed-styles-submenu-page">Subscribe button</a></small>', 'feed-them-social'),
2938
- 'type' => 'text',
2939
- 'id' => 'youtube_channelID2',
2940
- 'name' => 'youtube_channelID2',
2941
- //Relative to JS.
2942
- 'short_attr' => array(
2943
- 'attr_name' => 'channel_id',
2944
- 'ifs' => 'playlistID',
2945
- 'empty_error_if' => array(
2946
- 'attribute' => 'select#youtube-messages-selector',
2947
- 'operator' => '==',
2948
- 'value' => 'playlistID',
2949
- ),
2950
- ),
2951
- ),
2952
-
2953
- //Youtube Single Video ID
2954
- array(
2955
- 'option_type' => 'input',
2956
- 'input_wrap_class' => 'youtube_singleVideoID',
2957
- 'label' => __('Single Youtube Video ID (required)', 'feed-them-social'),
2958
- 'instructional-text' => __('You must copy your <strong>YouTube Video</strong> url link and paste it below. Your url should look similar to our Example url below. <br/><strong>Video URL:</strong>', 'feed-them-social') . ' <a href="https://www.youtube.com/watch?v=_-sySjjthB0" target="_blank">https://www.youtube.com/watch?v=_-sySjjthB0</a>',
2959
- 'type' => 'text',
2960
- 'id' => 'youtube_singleVideoID',
2961
- 'name' => 'youtube_singleVideoID',
2962
- //Relative to JS.
2963
- 'short_attr' => array(
2964
- 'attr_name' => 'video_id_or_link',
2965
- 'ifs' => 'singleID',
2966
- 'empty_error' => 'yes',
2967
- 'empty_error_if' => array(
2968
- 'attribute' => 'select#youtube-messages-selector',
2969
- 'operator' => '==',
2970
- 'value' => 'singleID',
2971
- ),
2972
- ),
2973
- ),
2974
-
2975
- //# of videos
2976
- array(
2977
- 'option_type' => 'input',
2978
- 'input_wrap_class' => 'youtube_vid_count',
2979
- 'label' => __('# of videos', 'feed-them-social') . $limitforpremium,
2980
- 'type' => 'text',
2981
- 'id' => 'youtube_vid_count',
2982
- 'name' => 'youtube_vid_count',
2983
- 'placeholder' => __('4 is the default value', 'feed-them-social'),
2984
- //Relative to JS.
2985
- 'short_attr' => array(
2986
- 'attr_name' => 'vid_count',
2987
- 'empty_error' => 'set',
2988
- 'empty_error_value' => 'vid_count=4',
2989
- ),
2990
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
2991
- 'sub_options' => array(
2992
- 'sub_options_wrap_class' => 'fts-youtube-first-video-wrap',
2993
- )
2994
- ),
2995
- //Display First video full size
2996
- array(
2997
- 'grouped_options_title' => __('First Video Display', 'feed-them-social'),
2998
- 'input_wrap_class' => 'youtube_hide_option',
2999
- 'option_type' => 'select',
3000
- 'label' => __('Display First video full size', 'feed-them-social'),
3001
- 'type' => 'text',
3002
- 'id' => 'youtube_first_video',
3003
- 'name' => 'youtube_first_video',
3004
- 'options' => array(
3005
- array(
3006
- 'label' => __('Yes', 'feed-them-social'),
3007
- 'value' => 'yes',
3008
- ),
3009
- array(
3010
- 'label' => __('No', 'feed-them-social'),
3011
- 'value' => 'no',
3012
- ),
3013
- ),
3014
- 'short_attr' => array(
3015
- 'attr_name' => 'large_vid',
3016
- ),
3017
- 'sub_options_end' => true,
3018
- ),
3019
- //Display Large Video Title
3020
- array(
3021
- 'option_type' => 'select',
3022
- 'input_wrap_class' => 'youtube_hide_option',
3023
- 'label' => __('Show the Large Video Title', 'feed-them-social'),
3024
- 'type' => 'text',
3025
- 'id' => 'youtube_large_vid_title',
3026
- 'name' => 'youtube_large_vid_title',
3027
- 'options' => array(
3028
- array(
3029
- 'label' => __('No', 'feed-them-social'),
3030
- 'value' => 'no',
3031
- ),
3032
- array(
3033
- 'label' => __('Yes', 'feed-them-social'),
3034
- 'value' => 'yes',
3035
- ),
3036
- ),
3037
- 'short_attr' => array(
3038
- 'attr_name' => 'large_vid_title',
3039
- ),
3040
- ),
3041
- //Display Large Video Description
3042
- array(
3043
- 'option_type' => 'select',
3044
- 'input_wrap_class' => 'youtube_hide_option',
3045
- 'label' => __('Show the Large Video Description', 'feed-them-social'),
3046
- 'type' => 'text',
3047
- 'id' => 'youtube_large_vid_description',
3048
- 'name' => 'youtube_large_vid_description',
3049
- 'options' => array(
3050
- array(
3051
- 'label' => __('No', 'feed-them-social'),
3052
- 'value' => 'no',
3053
- ),
3054
- array(
3055
- 'label' => __('Yes', 'feed-them-social'),
3056
- 'value' => 'yes',
3057
- ),
3058
- ),
3059
- 'short_attr' => array(
3060
- 'attr_name' => 'large_vid_description',
3061
- ),
3062
- ),
3063
-
3064
-
3065
- //Play thumbs in large video container
3066
- array(
3067
- 'grouped_options_title' => __('Video Thumbnails', 'feed-them-social'),
3068
- 'input_wrap_class' => 'youtube_hide_option',
3069
- 'option_type' => 'select',
3070
- 'label' => __('Click thumb to play Video', 'feed-them-social'),
3071
- 'type' => 'text',
3072
- 'id' => 'youtube_play_thumbs',
3073
- 'name' => 'youtube_play_thumbs',
3074
- 'options' => array(
3075
- array(
3076
- 'label' => __('Play on Page', 'feed-them-social'),
3077
- 'value' => 'yes',
3078
- ),
3079
- array(
3080
- 'label' => __('Open in YouTube', 'feed-them-social'),
3081
- 'value' => 'no',
3082
- ),
3083
- array(
3084
- 'label' => __('Open in Popup (Premium Version Required)', 'feed-them-social'),
3085
- 'value' => 'popup',
3086
- ),
3087
- ),
3088
- 'short_attr' => array(
3089
- 'attr_name' => 'thumbs_play_in_iframe',
3090
- ),
3091
- ),
3092
-
3093
- //# of videos in each row
3094
- array(
3095
-
3096
- 'input_wrap_class' => 'youtube_hide_option',
3097
- 'option_type' => 'select',
3098
- 'label' => __('# of videos in each row', 'feed-them-social'),
3099
- 'type' => 'text',
3100
- 'id' => 'youtube_columns',
3101
- 'name' => 'youtube_columns',
3102
- 'default_value' => '4',
3103
- 'options' => array(
3104
- array(
3105
- 'label' => __('1', 'feed-them-social'),
3106
- 'value' => '1',
3107
- ),
3108
- array(
3109
- 'label' => __('2', 'feed-them-social'),
3110
- 'value' => '2',
3111
- ),
3112
- array(
3113
- 'label' => __('3', 'feed-them-social'),
3114
- 'value' => '3',
3115
- ),
3116
- array(
3117
- 'label' => __('4', 'feed-them-social'),
3118
- 'value' => '4',
3119
- ),
3120
- array(
3121
- 'label' => __('5', 'feed-them-social'),
3122
- 'value' => '5',
3123
- ),
3124
- array(
3125
- 'label' => __('6', 'feed-them-social'),
3126
- 'value' => '6',
3127
- ),
3128
- ),
3129
- 'short_attr' => array(
3130
- 'attr_name' => 'vids_in_row',
3131
- ),
3132
- ),
3133
- //omit first video thumbnail
3134
- array(
3135
-
3136
- 'input_wrap_class' => 'youtube_hide_option',
3137
- 'option_type' => 'select',
3138
- 'label' => __('Hide the first thumbnail', 'feed-them-social') . '<br/><small>' . __('Useful if playing videos on the page.', 'feed-them-social') . '</small>',
3139
- 'type' => 'text',
3140
- 'id' => 'youtube_omit_first_thumbnail',
3141
- 'name' => 'youtube_omit_first_thumbnail',
3142
- 'default_value' => 'no',
3143
- 'options' => array(
3144
- array(
3145
- 'label' => __('No', 'feed-them-social'),
3146
- 'value' => 'no',
3147
- ),
3148
- array(
3149
- 'label' => __('Yes', 'feed-them-social'),
3150
- 'value' => 'yes',
3151
- )
3152
- ),
3153
- 'short_attr' => array(
3154
- 'attr_name' => 'omit_first_thumbnail',
3155
- ),
3156
- ),
3157
- //Space between Vids
3158
- array(
3159
- 'input_wrap_class' => 'youtube_hide_option',
3160
- 'option_type' => 'input',
3161
- 'label' => __('Space between video thumbnails', 'feed-them-social'),
3162
- 'type' => 'text',
3163
- 'id' => 'fts-slicker-youtube-container-margin',
3164
- 'name' => 'fts-slicker-youtube-container-margin',
3165
- 'placeholder' => '1px is the default value',
3166
- 'value' => '',
3167
- 'short_attr' => array(
3168
- 'attr_name' => 'space_between_videos',
3169
- 'var_final_if' => 'yes',
3170
- 'empty_error' => 'set',
3171
- 'empty_error_value' => 'space_between_videos=1px',
3172
- ),
3173
- ),
3174
-
3175
-
3176
- // Force Video Rows
3177
- array(
3178
- 'input_wrap_class' => 'youtube_hide_option',
3179
- 'option_type' => 'select',
3180
- 'label' => __('Force thumbnails rows', 'feed-them-gallery') . '<br/><small>' . __('No, will allow the video images to be responsive for smaller devices. Yes, will force the selected rows.', 'feed-them-social') . '</small>',
3181
- 'type' => 'text',
3182
- 'id' => 'fts_youtube_force_columns',
3183
- 'name' => 'fts_youtube_force_columns',
3184
- 'default_value' => 'no',
3185
- 'options' => array(
3186
- array(
3187
- 'label' => __('No', 'feed-them-gallery'),
3188
- 'value' => 'no',
3189
- ),
3190
- array(
3191
- 'label' => __('Yes', 'feed-them-gallery'),
3192
- 'value' => 'yes',
3193
- ),
3194
- ),
3195
- 'short_attr' => array(
3196
- 'attr_name' => 'force_columns',
3197
- ),
3198
- ),
3199
- //Display Max Res Images for thumbs
3200
- array(
3201
- 'input_wrap_class' => 'youtube_hide_option',
3202
- 'option_type' => 'select',
3203
- 'label' => __('High quality thumbnail images', 'feed-them-social'),
3204
- 'type' => 'text',
3205
- 'id' => 'youtube_maxres_thumbnail_images',
3206
- 'name' => 'youtube_maxres_thumbnail_images',
3207
- 'options' => array(
3208
- array(
3209
- 'label' => __('Yes', 'feed-them-social'),
3210
- 'value' => 'yes',
3211
- ),
3212
- array(
3213
- 'label' => __('No', 'feed-them-social'),
3214
- 'value' => 'no',
3215
- ),
3216
- ),
3217
- 'short_attr' => array(
3218
- 'attr_name' => 'maxres_thumbnail_images',
3219
- ),
3220
- ),
3221
- //Background color for thumbs container
3222
- array(
3223
- 'input_wrap_class' => 'youtube_hide_option',
3224
- 'option_type' => 'input',
3225
- 'color_picker' => 'yes',
3226
- 'label' => __('Container Background color ', 'feed-them-social'),
3227
- 'type' => 'text',
3228
- 'id' => 'youtube_thumbs_wrap_color',
3229
- 'name' => 'youtube_thumbs_wrap_color',
3230
- 'default' => '#000',
3231
- 'placeholder' => '#000',
3232
- //Relative to JS.
3233
- 'short_attr' => array(
3234
- 'attr_name' => 'thumbs_wrap_color',
3235
- 'empty_error' => 'set',
3236
- 'empty_error_value' => 'thumbs_wrap_color=#000',
3237
- ),
3238
-
3239
- ),
3240
- //Align container right or left of video
3241
- array(
3242
- 'input_wrap_class' => 'youtube_hide_option',
3243
- 'option_type' => 'select',
3244
- 'label' => __('Align Thumbs', 'feed-them-social') . '<br/><small>' . __('Bottom (default), Right, or left of Videoo', 'feed-them-social') . '</small>',
3245
- 'type' => 'text',
3246
- 'id' => 'youtube_thumbs_wrap',
3247
- 'name' => 'youtube_thumbs_wrap',
3248
- 'options' => array(
3249
- array(
3250
- 'label' => __('Below Video', 'feed-them-social'),
3251
- 'value' => 'none',
3252
- ),
3253
- array(
3254
- 'label' => __('Right', 'feed-them-social'),
3255
- 'value' => 'right',
3256
- ),
3257
- array(
3258
- 'label' => __('Left', 'feed-them-social'),
3259
- 'value' => 'left',
3260
- ),
3261
- ),
3262
- //Relative to JS.
3263
- 'short_attr' => array(
3264
- 'attr_name' => 'wrap',
3265
- ),
3266
- 'prem_req' => 'yes',
3267
- 'req_plugin' => 'fts_premium',
3268
-
3269
- ),
3270
- //Align container right or left of video
3271
- array(
3272
- 'input_wrap_class' => 'youtube_align_comments_wrap',
3273
- 'option_type' => 'select',
3274
- 'label' => __('Align Title, Description etc.', 'feed-them-social') . '<br/><small>' . __('Bottom (default), Right, or left of Video', 'feed-them-social') . '</small>',
3275
- 'type' => 'text',
3276
- 'id' => 'youtube_comments_wrap',
3277
- 'name' => 'youtube_comments_wrap',
3278
- 'options' => array(
3279
- array(
3280
- 'label' => __('Below Video', 'feed-them-social'),
3281
- 'value' => 'none',
3282
- ),
3283
- array(
3284
- 'label' => __('Right', 'feed-them-social'),
3285
- 'value' => 'right',
3286
- ),
3287
- array(
3288
- 'label' => __('Left', 'feed-them-social'),
3289
- 'value' => 'left',
3290
- ),
3291
- ),
3292
- //Relative to JS.
3293
- 'short_attr' => array(
3294
- 'attr_name' => 'wrap_single',
3295
- ),
3296
- 'prem_req' => 'yes',
3297
- 'req_plugin' => 'fts_premium',
3298
-
3299
- ),
3300
- //Align container right or left of video
3301
- array(
3302
- 'input_wrap_class' => 'youtube_video_thumbs_display',
3303
- 'option_type' => 'select',
3304
- 'label' => __('Video/Thumbs width options', 'feed-them-social') . '<br/><small>' . __('Sizes: 80/20, 60/40 or 50/50', 'feed-them-social') . '</small>',
3305
- 'type' => 'text',
3306
- 'id' => 'youtube_video_thumbs_display',
3307
- 'name' => 'youtube_video_thumbs_display',
3308
- 'options' => array(
3309
- array(
3310
- 'label' => __('None', 'feed-them-social'),
3311
- 'value' => 'none',
3312
- ),
3313
- array(
3314
- 'label' => __('Option 1 (Video 80%, Thumbs Container 20%)', 'feed-them-social'),
3315
- 'value' => '1',
3316
- ),
3317
- array(
3318
- 'label' => __('Option 1 (Video 60%, Thumbs Container 40%)', 'feed-them-social'),
3319
- 'value' => '2',
3320
- ),
3321
- array(
3322
- 'label' => __('Option 1 (Video 50%, Thumbs Container 50%)', 'feed-them-social'),
3323
- 'value' => '3',
3324
- ),
3325
- ),
3326
- //Relative to JS.
3327
- 'short_attr' => array(
3328
- 'attr_name' => 'video_wrap_display',
3329
- ),
3330
- 'prem_req' => 'yes',
3331
- 'req_plugin' => 'fts_premium',
3332
-
3333
- ),
3334
- //Align container right or left of video
3335
- array(
3336
- 'input_wrap_class' => 'youtube_video_single_info_display',
3337
- 'option_type' => 'select',
3338
- 'label' => __('Video/Info width options', 'feed-them-social') . '<br/><small>' . __('Sizes: 80/20, 60/40 or 50/50', 'feed-them-social') . '</small>',
3339
- 'type' => 'text',
3340
- 'id' => 'youtube_video_comments_display',
3341
- 'name' => 'youtube_video_comments_display',
3342
- 'options' => array(
3343
- array(
3344
- 'label' => __('None', 'feed-them-social'),
3345
- 'value' => 'none',
3346
- ),
3347
- array(
3348
- 'label' => __('Option 1 (Video 80%, Info Container 20%)', 'feed-them-social'),
3349
- 'value' => '1',
3350
- ),
3351
- array(
3352
- 'label' => __('Option 1 (Video 60%, Info Container 40%)', 'feed-them-social'),
3353
- 'value' => '2',
3354
- ),
3355
- array(
3356
- 'label' => __('Option 1 (Video 50%, Info Container 50%)', 'feed-them-social'),
3357
- 'value' => '3',
3358
- ),
3359
- ),
3360
- //Relative to JS.
3361
- 'short_attr' => array(
3362
- 'attr_name' => 'video_wrap_display_single',
3363
- ),
3364
- 'prem_req' => 'yes',
3365
- 'req_plugin' => 'fts_premium',
3366
-
3367
- ),
3368
- //Youtube Load More Button
3369
- array(
3370
- 'input_wrap_class' => 'youtube_hide_option',
3371
- 'grouped_options_title' => __('Load More', 'feed-them-social'),
3372
- 'option_type' => 'select',
3373
- 'label' => __('Load More Button', 'feed-them-social'),
3374
- 'type' => 'text',
3375
- 'id' => 'youtube_load_more_option',
3376
- 'name' => 'youtube_load_more_option',
3377
- 'options' => array(
3378
- array(
3379
- 'label' => __('No', 'feed-them-social'),
3380
- 'value' => 'no',
3381
- ),
3382
- array(
3383
- 'label' => __('Yes', 'feed-them-social'),
3384
- 'value' => 'yes',
3385
- ),
3386
- ),
3387
- 'prem_req' => 'yes',
3388
- 'req_plugin' => 'fts_premium',
3389
- 'short_attr' => array(
3390
- 'attr_name' => '',
3391
- 'empty_error_value' => '',
3392
- 'no_attribute' => 'yes',
3393
-
3394
- ),
3395
- 'sub_options' => array(
3396
- 'sub_options_wrap_class' => 'youtube-loadmore-wrap',
3397
- ),
3398
- ),
3399
- //Youtube Load More Style
3400
- array(
3401
- 'option_type' => 'select',
3402
- 'label' => __('Load More Style', 'feed-them-social'),
3403
- 'type' => 'text',
3404
- 'id' => 'youtube_load_more_style',
3405
- 'name' => 'youtube_load_more_style',
3406
- 'instructional-text' => '<strong>' . __('NOTE:', 'feed-them-social') . '</strong> ' . __('The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social'),
3407
- 'options' => array(
3408
- array(
3409
- 'label' => __('Button', 'feed-them-social'),
3410
- 'value' => 'button',
3411
- ),
3412
- array(
3413
- 'label' => __('AutoScroll', 'feed-them-social'),
3414
- 'value' => 'autoscroll',
3415
- ),
3416
- ),
3417
- 'prem_req' => 'yes',
3418
- 'req_plugin' => 'fts_premium',
3419
- 'short_attr' => array(
3420
- 'attr_name' => 'loadmore',
3421
- 'ifs' => 'load_more',
3422
- ),
3423
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
3424
- 'sub_options' => array(
3425
- 'sub_options_wrap_class' => 'fts-youtube-load-more-options-wrap',
3426
- ),
3427
- 'sub_options_end' => true,
3428
- ),
3429
- //youtube Page Load more Amount
3430
- array(
3431
- 'option_type' => 'input',
3432
- 'label' => __('Load more Amount', 'feed-them-social') . '<br/><small>' . __('How many more videos will load at a time.', 'feed-them-social') . '</small>',
3433
- 'type' => 'text',
3434
- 'id' => 'youtube_loadmore_count',
3435
- 'name' => 'youtube_loadmore_count',
3436
- 'placeholder' => __('5 is the default number', 'feed-them-social'),
3437
- 'value' => '',
3438
- 'req_plugin' => 'fts_premium',
3439
- //Relative to JS.
3440
- 'short_attr' => array(
3441
- 'attr_name' => 'loadmore_count',
3442
- 'empty_error' => 'set',
3443
- 'empty_error_value' => 'loadmore_count=5',
3444
- 'ifs' => 'load_more',
3445
- ),
3446
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
3447
- 'sub_options' => array(
3448
- 'sub_options_wrap_class' => 'fts-youtube-load-more-options2-wrap',
3449
- ),
3450
- ),
3451
- //youtube Load more Button Width
3452
- array(
3453
- 'option_type' => 'input',
3454
- 'label' => __('Load more Button Width', 'feed-them-social') . '<br/><small>' . __('Leave blank for auto width', 'feed-them-social') . '</small>',
3455
- 'type' => 'text',
3456
- 'id' => 'youtube_loadmore_button_width',
3457
- 'name' => 'youtube_loadmore_button_width',
3458
- 'placeholder' => '300px ' . __('for example', 'feed-them-social'),
3459
- 'value' => '',
3460
- 'prem_req' => 'yes',
3461
- 'req_plugin' => 'fts_premium',
3462
- //Relative to JS.
3463
- 'short_attr' => array(
3464
- 'attr_name' => 'loadmore_btn_maxwidth',
3465
- 'empty_error' => 'set',
3466
- 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
3467
- 'ifs' => 'load_more',
3468
- ),
3469
- ),
3470
- //youtube Load more Button Margin
3471
- array(
3472
- 'option_type' => 'input',
3473
- 'label' => __('Load more Button Margin', 'feed-them-social'),
3474
- 'type' => 'text',
3475
- 'id' => 'youtube_loadmore_button_margin',
3476
- 'name' => 'youtube_loadmore_button_margin',
3477
- 'placeholder' => '10px ' . __('for example', 'feed-them-social'),
3478
- 'value' => '',
3479
- 'req_plugin' => 'fts_premium',
3480
- //Relative to JS.
3481
- 'short_attr' => array(
3482
- 'attr_name' => 'loadmore_btn_margin',
3483
- 'empty_error' => 'set',
3484
- 'empty_error_value' => 'loadmore_btn_margin=10px',
3485
- 'ifs' => 'load_more',
3486
- ),
3487
- 'sub_options_end' => 2,
3488
- ),
3489
- //Display Comments
3490
- array(
3491
- 'grouped_options_title' => __('Comments', 'feed-them-social'),
3492
- 'option_type' => 'input',
3493
- 'label' => __('# of Comments', 'feed-them-social') . '<br/><small>' . __('Maximum amount is 50', 'feed-them-social') . '</small>',
3494
- 'type' => 'text',
3495
- 'id' => 'youtube_comments_count',
3496
- 'name' => 'youtube_comments_count',
3497
- 'placeholder' => '',
3498
- 'value' => '',
3499
- 'short_attr' => array(
3500
- 'attr_name' => 'comments_count',
3501
- 'empty_error' => 'set',
3502
- 'empty_error_value' => 'comments_count=0',
3503
- ),
3504
- 'req_plugin' => 'fts_premium',
3505
- ),
3506
- ),
3507
- //Final Shortcode ifs
3508
- 'shortcode_ifs' => array(
3509
- 'load_more' => array(
3510
- 'if' => array(
3511
- 'class' => 'select#youtube_load_more_option',
3512
- 'operator' => '==',
3513
- 'value' => 'yes',
3514
- ),
3515
- ),
3516
- 'username' => array(
3517
- 'if' => array(
3518
- 'class' => 'select#youtube-messages-selector',
3519
- 'operator' => '==',
3520
- 'value' => 'username',
3521
- ),
3522
- ),
3523
- 'userPlaylist' => array(
3524
- 'if' => array(
3525
- 'class' => 'select#youtube-messages-selector',
3526
- 'operator' => '==',
3527
- 'value' => 'userPlaylist',
3528
- ),
3529
- ),
3530
- 'channelID' => array(
3531
- 'if' => array(
3532
- 'class' => 'select#youtube-messages-selector',
3533
- 'operator' => '==',
3534
- 'value' => 'channelID',
3535
- ),
3536
- ),
3537
- 'playlistID' => array(
3538
- 'if' => array(
3539
- 'class' => 'select#youtube-messages-selector',
3540
- 'operator' => '==',
3541
- 'value' => 'playlistID',
3542
- ),
3543
- ),
3544
- 'singleID' => array(
3545
- 'if' => array(
3546
- 'class' => 'select#youtube-messages-selector',
3547
- 'operator' => '==',
3548
- 'value' => 'singleID',
3549
- ),
3550
- ),
3551
- ),
3552
- //Generator Info
3553
- 'generator_title' => __('YouTube Feed Shortcode', 'feed-them-social'),
3554
- 'generator_class' => 'youtube-final-shortcode',
3555
- ),//End Youtube Feed
3556
- //******************************************
3557
- // Pinterest
3558
- //******************************************
3559
- 'pinterest' => array(
3560
- 'section_attr_key' => 'pinterest_',
3561
- 'section_title' => __('Pinterest Shortcode Generator', 'feed-them-social'),
3562
- 'section_wrap_class' => 'pinterest-shortcode-form',
3563
- //Form Info
3564
- 'form_wrap_classes' => 'pinterest-shortcode-form',
3565
- 'form_wrap_id' => 'fts-pinterest-form',
3566
- //Feed Type Selection
3567
- 'feed_type_select' => array(
3568
- 'label' => __('Feed Type', 'feed-them-social'),
3569
- 'select_wrap_classes' => 'pinterest-gen-selection',
3570
- 'select_classes' => '',
3571
- 'select_name' => 'pinterest-messages-selector',
3572
- 'select_id' => 'pinterest-messages-selector',
3573
- ),
3574
- //Token Check
3575
- 'token_check' => array(
3576
- array(
3577
- 'option_name' => 'fts_pinterest_custom_api_token',
3578
- 'no_token_msg' => __('<strong>STEP 1:</strong> Please add a Pinterest API Token to our <a href="admin.php?page=fts-pinterest-feed-styles-submenu-page">Pinterest Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social'),
3579
- ),
3580
- ),
3581
- //Feed Types and their options
3582
- 'feeds_types' => array(
3583
- //Board List
3584
- array(
3585
- 'value' => 'boards_list',
3586
- 'title' => __('Board List', 'feed-them-social'),
3587
- ),
3588
- //Single Board Pins
3589
- array(
3590
- 'value' => 'single_board_pins',
3591
- 'title' => __('Pins From a Specific Board', 'feed-them-social'),
3592
- ),
3593
- //Single Board Pins
3594
- array(
3595
- 'value' => 'pins_from_user',
3596
- 'title' => __('Latest Pins from a User', 'feed-them-social'),
3597
- ),
3598
- ),
3599
- 'short_attr_final' => 'yes',
3600
- //Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
3601
-
3602
- //'empty_error'=> 'set',
3603
- //'empty_error_value'=> 'auto',
3604
-
3605
- 'main_options' => array(
3606
- //Feed Type
3607
- array(
3608
- 'option_type' => 'select',
3609
- 'id' => 'pinterest-messages-selector',
3610
- 'name' => 'pinterest-messages-selector',
3611
- //DONT SHOW HTML
3612
- 'no_html' => 'yes',
3613
- //Relative to JS.
3614
- 'short_attr' => array(
3615
- 'attr_name' => 'type',
3616
- ),
3617
- ),
3618
- //Pinterest Board Name
3619
- array(
3620
- 'option_type' => 'input',
3621
- 'input_wrap_class' => 'board-name',
3622
- 'label' => __('Pinterest Board Name (required)', 'feed-them-social'),
3623
- 'type' => 'text',
3624
- 'id' => 'pinterest_board_name',
3625
- 'name' => 'pinterest_board_name',
3626
- 'value' => '',
3627
- 'instructional-text' => __('Copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/how-to-get-your-pinterest-name/" target="_blank">' . __('Pinterest and Board Name', 'feed-them-social') . '</a> ' . __('and paste them below.', 'feed-them-social'),
3628
- 'instructional-class' => 'pinterest-board-and-name-text',
3629
- //Relative to JS.
3630
- 'short_attr' => array(
3631
- 'attr_name' => 'board_id',
3632
- 'var_final_if' => 'no',
3633
- 'empty_error' => 'yes',
3634
- 'empty_error_if' => array(
3635
- 'attribute' => 'select#pinterest-messages-selector',
3636
- 'operator' => '==',
3637
- 'value' => 'single_board_pins',
3638
- ),
3639
- 'ifs' => 'single_board_pins',
3640
- ),
3641
- ),
3642
- //Pinterest Name
3643
- array(
3644
- 'option_type' => 'input',
3645
- 'input_wrap_class' => 'pinterest_name',
3646
- 'label' => __('Pinterest Username (required)', 'feed-them-social'),
3647
- 'type' => 'text',
3648
- 'id' => 'pinterest_name',
3649
- 'name' => 'pinterest_name',
3650
- 'value' => '',
3651
- 'instructional-text' => __('Copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/how-to-get-your-pinterest-name/" target="_blank">' . __('Pinterest Name', 'feed-them-social') . '</a> ' . __('and paste it in the first input below.', 'feed-them-social'),
3652
- 'instructional-class' => 'pinterest-name-text',
3653
- //Relative to JS.
3654
- 'short_attr' => array(
3655
- 'attr_name' => 'pinterest_name',
3656
- 'empty_error' => 'yes',
3657
- 'var_final_if' => 'no',
3658
- ),
3659
- ),
3660
- //Board Count
3661
- array(
3662
- 'option_type' => 'input',
3663
- 'input_wrap_class' => 'number-of-boards',
3664
- 'label' => __('# of Boards', 'feed-them-social') . $limitforpremium,
3665
- 'type' => 'text',
3666
- 'id' => 'boards_count',
3667
- 'name' => 'boards_count',
3668
- // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
3669
- //'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
3670
- 'placeholder' => __('6 is the default value', 'feed-them-social'),
3671
- 'value' => '',
3672
- //Relative to JS.
3673
- 'short_attr' => array(
3674
- 'attr_name' => 'boards_count',
3675
- 'var_final_if' => 'yes',
3676
- 'empty_error' => 'set',
3677
- 'empty_error_value' => 'boards_count=6',
3678
- 'ifs' => 'boards',
3679
- ),
3680
- ),
3681
- //Pins Count
3682
- array(
3683
- 'option_type' => 'input',
3684
- 'input_wrap_class' => 'show-pins-amount',
3685
- 'label' => __('# of Pins', 'feed-them-social') . $limitforpremium,
3686
- 'type' => 'text',
3687
- 'id' => 'pins_count',
3688
- 'name' => 'pins_count',
3689
- // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
3690
- // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
3691
- 'placeholder' => __('6 is the default value', 'feed-them-social'),
3692
- 'value' => '',
3693
- //Relative to JS.
3694
- 'short_attr' => array(
3695
- 'attr_name' => 'pins_count',
3696
- 'var_final_if' => 'yes',
3697
- 'empty_error' => 'set',
3698
- 'empty_error_value' => 'pins_count=6',
3699
- 'ifs' => 'single_board_pins,pins_from_user',
3700
- ),
3701
- ),
3702
- ),
3703
- //Final Shortcode ifs
3704
- 'shortcode_ifs' => array(
3705
- 'single_board_pins' => array(
3706
- 'if' => array(
3707
- 'class' => 'select#pinterest-messages-selector',
3708
- 'operator' => '==',
3709
- 'value' => 'single_board_pins',
3710
- ),
3711
- ),
3712
- 'pins_from_user' => array(
3713
- 'if' => array(
3714
- 'class' => 'select#pinterest-messages-selector',
3715
- 'operator' => '==',
3716
- 'value' => 'pins_from_user',
3717
- ),
3718
- ),
3719
- 'boards' => array(
3720
- 'if' => array(
3721
- 'class' => 'select#pinterest-messages-selector',
3722
- 'operator' => '==',
3723
- 'value' => 'boards_list',
3724
- ),
3725
- ),
3726
- ),
3727
- //Generator Info
3728
- 'generator_title' => __('Pinterest Feed Shortcode', 'feed-them-social'),
3729
- 'generator_class' => 'pinterest-final-shortcode',
3730
-
3731
- ),//End Pinterest Feed
3732
- //******************************************
3733
- // Twitter
3734
- //******************************************
3735
- 'twitter' => array(
3736
- 'section_attr_key' => 'twitter_',
3737
- 'section_title' => __('Twitter Shortcode Generator', 'feed-them-social'),
3738
- 'section_wrap_class' => 'fts-twitter-shortcode-form',
3739
- //Form Info
3740
- 'form_wrap_classes' => 'twitter-shortcode-form',
3741
- 'form_wrap_id' => 'fts-twitter-form',
3742
- //Token Check
3743
- 'token_check' => array(
3744
- array(
3745
- 'option_name' => 'fts_twitter_custom_access_token_secret',
3746
- 'no_token_msg' => __('<strong>STEP 1:</strong> Please add Twitter API Tokens to our <a href="admin.php?page=fts-twitter-feed-styles-submenu-page">Twitter Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social'),
3747
- ),
3748
- ),
3749
- //Feed Type Selection
3750
- 'feed_type_select' => array(
3751
- 'label' => __('Feed Type', 'feed-them-social'),
3752
- 'select_wrap_classes' => 'twitter-gen-selection',
3753
- 'select_classes' => '',
3754
- 'select_name' => 'twitter-messages-selector',
3755
- 'select_id' => 'twitter-messages-selector',
3756
- ),
3757
- //Feed Types and their options
3758
- 'feeds_types' => array(
3759
- //User Feed
3760
- array(
3761
- 'value' => 'user',
3762
- 'title' => __('User Feed', 'feed-them-social'),
3763
- ),
3764
- //hastag Feed
3765
- array(
3766
- 'value' => 'hashtag',
3767
- 'title' => __('Hashtag, Search and more Feed', 'feed-them-social'),
3768
- ),
3769
- ),
3770
- 'short_attr_final' => 'yes',
3771
- //Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
3772
-
3773
- 'main_options' => array(
3774
- //Twitter Search Name
3775
- array(
3776
- 'option_type' => 'input',
3777
- 'input_wrap_class' => 'twitter_hashtag_etc_name',
3778
- 'label' => __('Twitter Search Name (required)', 'feed-them-social'),
3779
- 'type' => 'text',
3780
- 'id' => 'twitter_hashtag_etc_name',
3781
- 'name' => 'twitter_hashtag_etc_name',
3782
- 'value' => '',
3783
- 'instructional-text' => __('You can use #hashtag, @person, or single words. For example, weather or weather-channel.<br/><br/>If you want to filter a specific users hashtag copy this example into the first input below and replace the user_name and YourHashtag name. DO NOT remove the from: or %# characters. NOTE: Only displays last 7 days worth of Tweets. <strong style="color:#225DE2;">from:user_name%#YourHashtag</strong>', 'feed-them-social'),
3784
- //Relative to JS.
3785
- 'short_attr' => array(
3786
- 'attr_name' => 'search',
3787
- 'var_final_if' => 'no',
3788
- 'empty_error' => 'yes',
3789
- 'ifs' => 'twitter_search',
3790
- 'empty_error_if' => array(
3791
- 'attribute' => 'select#twitter-messages-selector',
3792
- 'operator' => '==',
3793
- 'value' => 'hashtag',
3794
- ),
3795
- ),
3796
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
3797
- 'sub_options' => array(
3798
- 'sub_options_wrap_class' => 'twitter-hashtag-etc-wrap',
3799
- 'sub_options_title' => __('Twitter Search', 'feed-them-social'),
3800
- ),
3801
- 'sub_options_end' => true,
3802
-
3803
- ),
3804
- //Twitter Name
3805
- array(
3806
- 'option_type' => 'input',
3807
- 'input_wrap_class' => 'twitter_name',
3808
- 'label' => __('Twitter Name', 'feed-them-social'),
3809
- 'type' => 'text',
3810
- 'id' => 'twitter_name',
3811
- 'name' => 'twitter_name',
3812
- 'instructional-text' => '<span class="hashtag-option-small-text">' . __('Twitter Name is only required if you want to show a', 'feed-them-social') . ' <a href="admin.php?page=fts-twitter-feed-styles-submenu-page">' . __('Follow Button', 'feed-them-social') . '</a>.</span><span class="must-copy-twitter-name">' . __('You must copy your', 'feed-them-social') . ' <a href="https://www.slickremix.com/how-to-get-your-twitter-name/" target="_blank">' . __('Twitter Name', 'feed-them-social') . '</a> ' . __('and paste it in the first input below.', 'feed-them-social') . '</span>',
3813
- 'value' => '',
3814
- //Relative to JS.
3815
- 'short_attr' => array(
3816
- 'attr_name' => 'twitter_name',
3817
- 'var_final_if' => 'no',
3818
- 'empty_error' => 'yes',
3819
- 'empty_error_if' => array(
3820
- 'attribute' => 'select#twitter-messages-selector',
3821
- 'operator' => '==',
3822
- 'value' => 'user',
3823
- ),
3824
- ),
3825
- ),
3826
- //Tweet Count
3827
- array(
3828
- 'option_type' => 'input',
3829
- 'label' => __('# of Tweets (optional)', 'feed-them-social') . $limitforpremium,
3830
- 'type' => 'text',
3831
- 'id' => 'tweets_count',
3832
- 'name' => 'tweets_count',
3833
- // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
3834
- // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
3835
- 'placeholder' => __('6 is the default value', 'feed-them-social'),
3836
- 'value' => '',
3837
- //Relative to JS.
3838
- 'short_attr' => array(
3839
- 'attr_name' => 'tweets_count',
3840
- 'var_final_if' => 'yes',
3841
- 'var_final_value' => 'no',
3842
- 'empty_error' => 'set',
3843
- 'empty_error_value' => 'tweets_count=6',
3844
- ),
3845
- ),
3846
- //Twitter Fixed Height
3847
- array(
3848
- 'option_type' => 'input',
3849
- 'label' => __('Twitter Fixed Height', 'feed-them-social') . '<br/><small>' . __('Leave blank for auto height', 'feed-them-social') . '</small>',
3850
- 'type' => 'text',
3851
- 'id' => 'twitter_height',
3852
- 'name' => 'twitter_height',
3853
- 'placeholder' => '450px ' . __('for example', 'feed-them-social'),
3854
- 'short_attr' => array(
3855
- 'attr_name' => 'twitter_height',
3856
- 'var_final_if' => 'yes',
3857
- 'var_final_value' => '',
3858
- 'empty_error' => 'set',
3859
- 'empty_error_value' => '',
3860
- ),
3861
- ),
3862
- //Show Cover Photo
3863
- array(
3864
- 'option_type' => 'select',
3865
- 'label' => __('Show Cover Photo', 'feed-them-social'),
3866
- 'type' => 'text',
3867
- 'id' => 'twitter-cover-photo',
3868
- 'name' => 'twitter-cover-photo',
3869
- 'options' => array(
3870
- array(
3871
- 'label' => __('No', 'feed-them-social'),
3872
- 'value' => 'no',
3873
- ),
3874
- array(
3875
- 'label' => __('Yes', 'feed-them-social'),
3876
- 'value' => 'yes',
3877
- ),
3878
- ),
3879
- 'short_attr' => array(
3880
- 'attr_name' => 'cover_photo',
3881
- ),
3882
- ),
3883
- //Show Stats Bar
3884
- array(
3885
- 'option_type' => 'select',
3886
- 'label' => __('Stats Bar', 'feed-them-social'),
3887
- 'type' => 'text',
3888
- 'id' => 'twitter-stats-bar',
3889
- 'name' => 'twitter-stats-bar',
3890
- 'options' => array(
3891
- array(
3892
- 'label' => __('No', 'feed-them-social'),
3893
- 'value' => 'no',
3894
- ),
3895
- array(
3896
- 'label' => __('Yes', 'feed-them-social'),
3897
- 'value' => 'yes',
3898
- ),
3899
- ),
3900
- 'short_attr' => array(
3901
- 'attr_name' => 'stats_bar',
3902
- ),
3903
- ),
3904
- //Show Retweets
3905
- array(
3906
- 'option_type' => 'select',
3907
- 'label' => __('Show Retweets', 'feed-them-social'),
3908
- 'type' => 'text',
3909
- 'id' => 'twitter-show-retweets',
3910
- 'name' => 'twitter-show-retweets',
3911
- 'options' => array(
3912
- array(
3913
- 'label' => __('No', 'feed-them-social'),
3914
- 'value' => 'no',
3915
- ),
3916
- array(
3917
- 'label' => __('Yes', 'feed-them-social'),
3918
- 'value' => 'yes',
3919
- ),
3920
- ),
3921
- 'short_attr' => array(
3922
- 'attr_name' => 'show_retweets',
3923
- ),
3924
- ),
3925
- //Show Replies
3926
- array(
3927
- 'option_type' => 'select',
3928
- 'label' => __('Show Replies', 'feed-them-social'),
3929
- 'type' => 'text',
3930
- 'id' => 'twitter-show-replies',
3931
- 'name' => 'twitter-show-replies',
3932
- 'options' => array(
3933
- array(
3934
- 'label' => __('No', 'feed-them-social'),
3935
- 'value' => 'no',
3936
- ),
3937
- array(
3938
- 'label' => __('Yes', 'feed-them-social'),
3939
- 'value' => 'yes',
3940
- ),
3941
- ),
3942
- 'short_attr' => array(
3943
- 'attr_name' => 'show_replies',
3944
- ),
3945
- ),
3946
- //Pop Up Option
3947
- array(
3948
- 'grouped_options_title' => __('Popup', 'feed-them-social'),
3949
- 'option_type' => 'select',
3950
- 'label' => __('Display Photos & Videos in Popup', 'feed-them-social'),
3951
- 'type' => 'text',
3952
- 'id' => 'twitter-popup-option',
3953
- 'name' => 'twitter-popup-option',
3954
- // Premium Required - yes/no/more (more allows for us to limit things by numbers, also allows for special message above option.)
3955
- 'prem_req' => 'yes',
3956
- 'options' => array(
3957
- array(
3958
- 'label' => __('No', 'feed-them-social'),
3959
- 'value' => 'no',
3960
- ),
3961
- array(
3962
- 'label' => __('Yes', 'feed-them-social'),
3963
- 'value' => 'yes',
3964
- ),
3965
- ),
3966
- 'req_plugin' => 'fts_premium',
3967
- 'short_attr' => array(
3968
- 'attr_name' => 'popup',
3969
- 'ifs' => 'twitter_popup',
3970
- ),
3971
- ),
3972
- //******************************************
3973
- // Facebook Load More Options
3974
- //******************************************
3975
- //Twitter Load More Button
3976
- array(
3977
- 'grouped_options_title' => __('Load More', 'feed-them-social'),
3978
- 'option_type' => 'select',
3979
- 'label' => __('Load More Button', 'feed-them-social'),
3980
- 'type' => 'text',
3981
- 'id' => 'twitter_load_more_option',
3982
- 'name' => 'twitter_load_more_option',
3983
- 'options' => array(
3984
- array(
3985
- 'label' => __('No', 'feed-them-social'),
3986
- 'value' => 'no',
3987
- ),
3988
- array(
3989
- 'label' => __('Yes', 'feed-them-social'),
3990
- 'value' => 'yes',
3991
- ),
3992
- ),
3993
- 'prem_req' => 'yes',
3994
- 'req_plugin' => 'fts_premium',
3995
- 'short_attr' => array(
3996
- 'attr_name' => '',
3997
- 'empty_error_value' => '',
3998
- 'no_attribute' => 'yes',
3999
-
4000
- ),
4001
- 'sub_options' => array(
4002
- 'sub_options_wrap_class' => 'twitter-loadmore-wrap',
4003
- ),
4004
- ),
4005
- //Twitter Load More Style
4006
- array(
4007
- 'option_type' => 'select',
4008
- 'label' => __('Load More Style', 'feed-them-social'),
4009
- 'type' => 'text',
4010
- 'id' => 'twitter_load_more_style',
4011
- 'name' => 'twitter_load_more_style',
4012
- 'instructional-text' => '<strong>' . __('NOTE:', 'feed-them-social') . '</strong> ' . __('The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social'),
4013
- 'options' => array(
4014
- array(
4015
- 'label' => __('Button', 'feed-them-social'),
4016
- 'value' => 'button',
4017
- ),
4018
- array(
4019
- 'label' => __('AutoScroll', 'feed-them-social'),
4020
- 'value' => 'autoscroll',
4021
- ),
4022
- ),
4023
- 'prem_req' => 'yes',
4024
- 'req_plugin' => 'fts_premium',
4025
- 'short_attr' => array(
4026
- 'attr_name' => 'loadmore',
4027
- 'ifs' => 'load_more',
4028
- ),
4029
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4030
- 'sub_options' => array(
4031
- 'sub_options_wrap_class' => 'fts-twitter-load-more-options-wrap',
4032
- ),
4033
- 'sub_options_end' => true,
4034
- ),
4035
- //Twitter Page Load more Amount
4036
- array(
4037
- 'option_type' => 'input',
4038
- 'label' => __('Load more Amount', 'feed-them-social') . '<br/><small>' . __('How many more posts will load at a time.', 'feed-them-social') . '</small>',
4039
- 'type' => 'text',
4040
- 'id' => 'twitter_loadmore_count',
4041
- 'name' => 'twitter_loadmore_count',
4042
- 'placeholder' => __('5 is the default number', 'feed-them-social'),
4043
- 'value' => '',
4044
- 'req_plugin' => 'fts_premium',
4045
- //Relative to JS.
4046
- 'short_attr' => array(
4047
- 'attr_name' => 'loadmore_count',
4048
- 'empty_error' => 'set',
4049
- 'empty_error_value' => 'loadmore_count=5',
4050
- 'ifs' => 'load_more',
4051
- ),
4052
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4053
- 'sub_options' => array(
4054
- 'sub_options_wrap_class' => 'fts-twitter-load-more-options2-wrap',
4055
- ),
4056
- ),
4057
- //Twitter Load more Button Width
4058
- array(
4059
- 'option_type' => 'input',
4060
- 'label' => __('Load more Button Width', 'feed-them-social') . '<br/><small>' . __('Leave blank for auto width', 'feed-them-social') . '</small>',
4061
- 'type' => 'text',
4062
- 'id' => 'twitter_loadmore_button_width',
4063
- 'name' => 'twitter_loadmore_button_width',
4064
- 'placeholder' => '300px ' . __('for example', 'feed-them-social'),
4065
- 'value' => '',
4066
- 'prem_req' => 'yes',
4067
- 'req_plugin' => 'fts_premium',
4068
- 'or_req_plugin' => 'facebook_reviews',
4069
- //Relative to JS.
4070
- 'short_attr' => array(
4071
- 'attr_name' => 'loadmore_btn_maxwidth',
4072
- 'empty_error' => 'set',
4073
- 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
4074
- 'ifs' => 'load_more',
4075
- ),
4076
- ),
4077
- //Twitter Load more Button Margin
4078
- array(
4079
- 'option_type' => 'input',
4080
- 'label' => __('Load more Button Margin', 'feed-them-social'),
4081
- 'type' => 'text',
4082
- 'id' => 'twitter_loadmore_button_margin',
4083
- 'name' => 'twitter_loadmore_button_margin',
4084
- 'placeholder' => '10px ' . __('for example', 'feed-them-social'),
4085
- 'value' => '',
4086
- 'req_plugin' => 'fts_premium',
4087
- //Relative to JS.
4088
- 'short_attr' => array(
4089
- 'attr_name' => 'loadmore_btn_margin',
4090
- 'empty_error' => 'set',
4091
- 'empty_error_value' => 'loadmore_btn_margin=10px',
4092
- 'ifs' => 'load_more',
4093
- ),
4094
- 'sub_options_end' => 2,
4095
- ),
4096
- //******************************************
4097
- // Twitter Grid Options
4098
- //******************************************
4099
- // Twitter Display Posts in Grid
4100
- array(
4101
- 'grouped_options_title' => __('Grid', 'feed-them-social'),
4102
- 'input_wrap_class' => 'twitter-posts-in-grid-option-wrap',
4103
- 'option_type' => 'select',
4104
- 'label' => __('Display Posts in Grid', 'feed-them-social'),
4105
- 'type' => 'text',
4106
- 'id' => 'twitter-grid-option',
4107
- 'name' => 'twitter-grid-option',
4108
- 'options' => array(
4109
- 1 => array(
4110
- 'label' => __('No', 'feed-them-social'),
4111
- 'value' => 'no',
4112
- ),
4113
- 2 => array(
4114
- 'label' => __('Yes', 'feed-them-social'),
4115
- 'value' => 'yes',
4116
- ),
4117
- ),
4118
- 'req_plugin' => 'fts_premium',
4119
- 'or_req_plugin' => 'combine_streams',
4120
- 'short_attr' => array(
4121
- 'attr_name' => 'grid',
4122
- 'empty_error' => 'set',
4123
- 'set_operator' => '==',
4124
- 'set_equals' => 'yes',
4125
- 'empty_error_value' => '',
4126
- ),
4127
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4128
- 'sub_options' => array(
4129
- 'sub_options_wrap_class' => 'main-grid-options-wrap',
4130
- ),
4131
- ),
4132
- //Grid Column Width
4133
- array(
4134
- 'option_type' => 'input',
4135
- 'label' => __('Grid Column Width', 'feed-them-social'),
4136
- 'type' => 'text',
4137
- 'id' => 'twitter_grid_column_width',
4138
- 'name' => 'twitter_grid_column_width',
4139
- 'instructional-text' => '<strong> ' . __('NOTE:', 'feed-them-social') . '</strong> ' . sprintf(__('Define the Width of each post and the Space between each post below. You must add px after any number. Learn how to make the %1$sgrid responsive%2$s.', 'feed-them-social'),
4140
- '<a href="https://www.slickremix.com/docs/responsive-grid-css/" target="_blank">',
4141
- '</a>'
4142
- ),
4143
- 'placeholder' => '310px ' . __('for example', 'feed-them-social'),
4144
- 'value' => '',
4145
- 'req_plugin' => 'fts_premium',
4146
- 'or_req_plugin' => 'combine_streams',
4147
- 'or_req_plugin_three' => 'facebook_reviews',
4148
-
4149
- //Relative to JS.
4150
- 'short_attr' => array(
4151
- 'attr_name' => 'colmn_width',
4152
- 'empty_error' => 'set',
4153
- 'empty_error_value' => 'colmn_width=310px',
4154
- 'ifs' => 'grid',
4155
- ),
4156
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4157
- 'sub_options' => array(
4158
- 'sub_options_wrap_class' => 'fts-twitter-grid-options-wrap',
4159
- //'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
4160
- ),
4161
- ),
4162
- //Grid Spaces Between Posts
4163
- array(
4164
- 'option_type' => 'input',
4165
- 'label' => __('Grid Spaces Between Posts', 'feed-them-social'),
4166
- 'type' => 'text',
4167
- 'id' => 'twitter_grid_space_between_posts',
4168
- 'name' => 'twitter_grid_space_between_posts',
4169
- 'placeholder' => '10px ' . __('for example', 'feed-them-social'),
4170
- 'value' => '',
4171
- 'req_plugin' => 'fts_premium',
4172
- 'or_req_plugin' => 'combine_streams',
4173
- 'or_req_plugin_three' => 'facebook_reviews',
4174
- //Relative to JS.
4175
- 'short_attr' => array(
4176
- 'attr_name' => 'space_between_posts',
4177
- 'empty_error' => 'set',
4178
- 'empty_error_value' => 'space_between_posts=10px',
4179
- 'ifs' => 'grid',
4180
- ),
4181
- 'sub_options_end' => 2,
4182
- ),
4183
- ),
4184
- //Final Shortcode ifs
4185
- 'shortcode_ifs' => array(
4186
- 'twitter_popup' => array(
4187
- 'if' => array(
4188
- 'class' => 'select#twitter-popup-option',
4189
- 'operator' => '==',
4190
- 'value' => 'yes',
4191
- ),
4192
- ),
4193
- 'twitter_search' => array(
4194
- 'if' => array(
4195
- 'class' => 'select#twitter-messages-selector',
4196
- 'operator' => '==',
4197
- 'value' => 'hashtag',
4198
- ),
4199
- ),
4200
- 'load_more' => array(
4201
- 'if' => array(
4202
- 'class' => 'select#twitter_load_more_option',
4203
- 'operator' => '==',
4204
- 'value' => 'yes',
4205
- ),
4206
- ),
4207
- 'grid' => array(
4208
- 'if' => array(
4209
- 'class' => 'select#twitter-grid-option',
4210
- 'operator' => '==',
4211
- 'value' => 'yes',
4212
- ),
4213
- ),
4214
- ),
4215
- //Generator Info
4216
- 'generator_title' => __('Twitter Feed Shortcode', 'feed-them-social'),
4217
- 'generator_class' => 'twitter-final-shortcode',
4218
-
4219
- ),//End Twitter Feed
4220
- //******************************************
4221
- // Instagram
4222
- //******************************************
4223
- 'instagram' => array(
4224
- 'section_attr_key' => 'instagram_',
4225
- 'section_title' => __('Instagram Shortcode Generator', 'feed-them-social'),
4226
- 'section_wrap_class' => 'fts-instagram-shortcode-form',
4227
- //Form Info
4228
- 'form_wrap_classes' => 'instagram-shortcode-form',
4229
- 'form_wrap_id' => 'fts-instagram-form',
4230
- //Token Check
4231
- 'token_check' => array(
4232
- array(
4233
- 'option_name' => 'fts_instagram_custom_api_token',
4234
- 'no_token_msg' => __('<strong>STEP 1:</strong> Please get your Access Token on the <a href="admin.php?page=fts-instagram-feed-styles-submenu-page">Instagram Options</a> page before getting started. ' . $step2_custom_message . '', 'feed-them-social'),
4235
- ),
4236
- ),
4237
- //Feed Type Selection
4238
- 'feed_type_select' => array(
4239
- 'label' => __('Feed Type', 'feed-them-social'),
4240
- 'select_wrap_classes' => 'instagram-gen-selection',
4241
- 'select_classes' => '',
4242
- 'select_name' => 'instagram-messages-selector',
4243
- 'select_id' => 'instagram-messages-selector',
4244
- ),
4245
- //Feed Types and their options
4246
- 'feeds_types' => array(
4247
- //User Feed
4248
- array(
4249
- 'value' => 'user',
4250
- 'title' => __('User Feed', 'feed-them-social'),
4251
- ),
4252
- //hastag Feed
4253
- array(
4254
- 'value' => 'hashtag',
4255
- 'title' => __('Hashtag Feed', 'feed-them-social'),
4256
- ),
4257
- //location Feed
4258
- array(
4259
- 'value' => 'location',
4260
- 'title' => __('Location Feed', 'feed-them-social'),
4261
- ),
4262
- ),
4263
- //Feed Type Selection
4264
- // 'conversion_input' => array(
4265
- // 'main_wrap_class' => 'instagram-id-option-wrap',
4266
- // 'conv_section_title' => __('Convert Instagram Name to ID', 'feed-them-social'),
4267
- // 'instructional-text' => 'You must copy your <a href="https://www.slickremix.com/how-to-get-your-instagram-name-and-convert-to-id/" target="_blank">Instagram Name</a> and paste it in the first input below',
4268
- // 'input_wrap_class' => 'instagram_name',
4269
- // 'label' => __('Instagram Name (required)', 'feed-them-social'),
4270
- // 'id' => 'convert_instagram_username',
4271
- // 'name' => 'convert_instagram_username',
4272
- // //Button
4273
- // 'btn-value' => __('Convert Instagram Username', 'feed-them-social'),
4274
- // 'onclick' => 'converter_instagram_username();',
4275
- // ),
4276
- // 'short_attr_final' => 'yes',
4277
- //Inputs relative to all Feed_types of this feed. (Eliminates Duplication)[Excluded from loop when creating select]
4278
- 'main_options' => array(
4279
- //Instagram ID
4280
- array(
4281
- 'option_type' => 'input',
4282
- 'input_wrap_class' => 'instagram_name',
4283
- 'label' => array(
4284
- 1 => array(
4285
- 'text' => __('Instagram ID # (required)', 'feed-them-social'),
4286
- 'class' => 'instagram-user-option-text',
4287
- ),
4288
- 2 => array(
4289
- 'text' => __('Hashtag (required)', 'feed-them-social'),
4290
- 'class' => 'instagram-hashtag-option-text',
4291
- ),
4292
- 3 => array(
4293
- 'text' => __('Location ID (required)', 'feed-them-social'),
4294
- 'class' => 'instagram-location-option-text',
4295
- ),
4296
- ),
4297
- 'type' => 'text',
4298
- 'id' => 'instagram_id',
4299
- 'name' => 'instagram_id',
4300
- 'required' => 'yes',
4301
- 'instructional-text' => array(
4302
- 1 => array(
4303
- 'text' => __('<div class="fts-insta-info-plus-wrapper">If your Access Token is set on the Instagram Options page of our plugin your ID should appear below.<br/><strong>To create an additional feed</strong> go back the ', 'feed-them-social') . ' <a href="admin.php?page=fts-instagram-feed-styles-submenu-page" target="">' . __('Instagram Options', 'feed-them-social') . '</a>' . __(' and make sure you are logged into that specific Instagram account then click the button again to get a new Access Token/ID. Remember to click Save all Changes and return here.</div>', 'feed-them-social') ,
4304
- 'class' => 'instagram-user-option-text',
4305
- ),
4306
- 2 => array(
4307
- 'text' => __('Add your Hashtag below. <strong>DO NOT</strong> add the #, just the name.', 'feed-them-social'),
4308
- 'class' => 'instagram-hashtag-option-text',
4309
- ),
4310
- 3 => array(
4311
- 'text' => __('<strong>NOTE:</strong> The post count may not count proper in some location instances because private instagram photos are in the mix. We cannot pull private accounts photos in any location feed. Add your Location ID below.', 'feed-them-social'),
4312
- 'class' => 'instagram-location-option-text',
4313
- ),
4314
- ),
4315
- //Relative to JS.
4316
- 'short_attr' => array(
4317
- 'attr_name' => 'instagram_id',
4318
- 'var_final_if' => 'no',
4319
- 'empty_error' => 'yes',
4320
- ),
4321
- ),
4322
- //Access Token
4323
- array(
4324
- 'option_type' => 'input',
4325
- 'label' => __('Access Token (required) ', 'feed-them-social') . '<br/><small>' . __('', 'feed-them-gallery') . '</small>',
4326
- 'type' => 'text',
4327
- 'id' => 'insta_access_token',
4328
- 'name' => 'insta_access_token',
4329
- // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
4330
- // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
4331
- 'placeholder' => __('', 'feed-them-social'),
4332
- //Relative to JS.
4333
- 'short_attr' => array(
4334
- 'attr_name' => 'access_token',
4335
- 'var_final_if' => 'yes',
4336
- 'empty_error' => 'set',
4337
- 'empty_error_value' => '',
4338
- ),
4339
- ),
4340
- //Pic Count
4341
- array(
4342
- 'option_type' => 'input',
4343
- 'label' => __('# of Pics (optional)', 'feed-them-social') . $limitforpremium,
4344
- 'type' => 'text',
4345
- 'id' => 'pics_count',
4346
- 'name' => 'pics_count',
4347
- // Only needed if Prem_Req = More otherwise remove (must have array key req_plugin)
4348
- // 'prem_req_more_msg' => '<br/><small>' . __('More than 6 Requires <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">Premium version</a>', 'feed-them-social') . '</small>',
4349
- 'placeholder' => __('6 is the default value', 'feed-them-social'),
4350
- //Relative to JS.
4351
- 'short_attr' => array(
4352
- 'attr_name' => 'pics_count',
4353
- 'var_final_if' => 'yes',
4354
- 'empty_error' => 'set',
4355
- 'empty_error_value' => 'pics_count=6',
4356
- ),
4357
- ),
4358
- //Feed Type
4359
- array(
4360
- 'option_type' => 'select',
4361
- 'id' => 'instagram-messages-selector',
4362
- 'no_html' => 'yes',
4363
- //Relative to JS.
4364
- 'short_attr' => array(
4365
- 'attr_name' => 'type',
4366
- ),
4367
- ),
4368
- //Instagram Width
4369
- array(
4370
- 'input_wrap_class' => 'instagram_width_option',
4371
- 'option_type' => 'input',
4372
- 'label' => __('Gallery Width', 'feed-them-social'),
4373
- 'label_note' => __('Leave blank for auto height', 'feed-them-social'),
4374
- 'type' => 'text',
4375
- 'id' => 'instagram_page_width',
4376
- 'name' => 'instagram_page_width',
4377
- 'placeholder' => '50% or 450px ' . __('for example', 'feed-them-social'),
4378
- //Relative to JS.
4379
- 'short_attr' => array(
4380
- 'attr_name' => 'width',
4381
- 'var_final_if' => 'yes',
4382
- 'empty_error' => 'set',
4383
- //Special case: need no attribute if empty
4384
- 'empty_error_value' => '',
4385
- ),
4386
- ),
4387
- //Instagram Fixed Height
4388
- array(
4389
- 'input_wrap_class' => 'instagram_fixed_height_option',
4390
- 'option_type' => 'input',
4391
- 'label' => __('Gallery Fixed Height', 'feed-them-social') . '<br/><small>' . __('Use this option to create a scrolling feed.', 'feed-them-gallery') . '</small>',
4392
- 'label_note' => __('Leave blank for auto height', 'feed-them-social'),
4393
- 'type' => 'text',
4394
- 'id' => 'instagram_page_height',
4395
- 'name' => 'instagram_page_height',
4396
- 'placeholder' => '450px ' . __('for example', 'feed-them-social'),
4397
- //Relative to JS.
4398
- 'short_attr' => array(
4399
- 'attr_name' => 'height',
4400
- 'var_final_if' => 'yes',
4401
- 'empty_error' => 'set',
4402
- //Special case: need no attribute if empty
4403
- 'empty_error_value' => '',
4404
- ),
4405
- ),
4406
- //******************************************
4407
- // Profile Wrap
4408
- //******************************************
4409
- array(
4410
- 'grouped_options_title' => __('Profile', 'feed-them-social'),
4411
- 'option_type' => 'select',
4412
- 'label' => __('Show Profile Info', 'feed-them-social'),
4413
- 'type' => 'text',
4414
- 'id' => 'instagram-profile-wrap',
4415
- 'name' => 'instagram-profile-wrap',
4416
- 'options' => array(
4417
- 1 => array(
4418
- 'label' => __('No', 'feed-them-social'),
4419
- 'value' => 'no',
4420
- ),
4421
- 2 => array(
4422
- 'label' => __('Yes', 'feed-them-social'),
4423
- 'value' => 'yes',
4424
- ),
4425
- ),
4426
- 'short_attr' => array(
4427
- 'attr_name' => 'profile_wrap',
4428
- ),
4429
- 'sub_options' => array(
4430
- 'sub_options_wrap_class' => 'main-instagram-profile-options-wrap',
4431
- ),
4432
- ),
4433
- array(
4434
- 'option_type' => 'select',
4435
- 'label' => __('Show Profile Photo', 'feed-them-social'),
4436
- 'type' => 'text',
4437
- 'id' => 'instagram-profile-photo',
4438
- 'name' => 'instagram-profile-photo',
4439
- 'options' => array(
4440
- 1 => array(
4441
- 'label' => __('No', 'feed-them-social'),
4442
- 'value' => 'no',
4443
- ),
4444
- 2 => array(
4445
- 'label' => __('Yes', 'feed-them-social'),
4446
- 'value' => 'yes',
4447
- ),
4448
- ),
4449
- 'short_attr' => array(
4450
- 'attr_name' => 'profile_photo',
4451
- 'ifs' => 'profile_wrap',
4452
- ),
4453
- 'sub_options' => array(
4454
- 'sub_options_wrap_class' => 'instagram-profile-options-wrap',
4455
- ),
4456
- ),
4457
- array(
4458
- 'option_type' => 'select',
4459
- 'label' => __('Show Profile Stats', 'feed-them-social'),
4460
- 'type' => 'text',
4461
- 'id' => 'instagram-profile-stats',
4462
- 'name' => 'instagram-profile-stats',
4463
- 'options' => array(
4464
- 1 => array(
4465
- 'label' => __('No', 'feed-them-social'),
4466
- 'value' => 'no',
4467
- ),
4468
- 2 => array(
4469
- 'label' => __('Yes', 'feed-them-social'),
4470
- 'value' => 'yes',
4471
- ),
4472
- ),
4473
- 'short_attr' => array(
4474
- 'attr_name' => 'profile_stats',
4475
- 'ifs' => 'profile_wrap',
4476
- ),
4477
- ),
4478
- array(
4479
- 'option_type' => 'select',
4480
- 'label' => __('Show Profile Name', 'feed-them-social'),
4481
- 'type' => 'text',
4482
- 'id' => 'instagram-profile-name',
4483
- 'name' => 'instagram-profile-name',
4484
- 'options' => array(
4485
- 1 => array(
4486
- 'label' => __('No', 'feed-them-social'),
4487
- 'value' => 'no',
4488
- ),
4489
- 2 => array(
4490
- 'label' => __('Yes', 'feed-them-social'),
4491
- 'value' => 'yes',
4492
- ),
4493
- ),
4494
- 'short_attr' => array(
4495
- 'attr_name' => 'profile_name',
4496
- 'ifs' => 'profile_wrap',
4497
- ),
4498
- ),
4499
- array(
4500
- 'option_type' => 'select',
4501
- 'label' => __('Show Profile Description', 'feed-them-social'),
4502
- 'type' => 'text',
4503
- 'id' => 'instagram-profile-description',
4504
- 'name' => 'instagram-profile-description',
4505
- 'options' => array(
4506
- 1 => array(
4507
- 'label' => __('No', 'feed-them-social'),
4508
- 'value' => 'no',
4509
- ),
4510
- 2 => array(
4511
- 'label' => __('Yes', 'feed-them-social'),
4512
- 'value' => 'yes',
4513
- ),
4514
- ),
4515
- 'short_attr' => array(
4516
- 'attr_name' => 'profile_description',
4517
- 'ifs' => 'profile_wrap',
4518
- ),
4519
- 'sub_options_end' => 2,
4520
- ),
4521
- //******************************************
4522
- // Super Gallery
4523
- //******************************************
4524
- array(
4525
- 'grouped_options_title' => __('Gallery Options', 'feed-them-social'),
4526
- 'option_type' => 'select',
4527
- 'label' => __('Gallery Style', 'feed-them-social'),
4528
- 'type' => 'text',
4529
- 'id' => 'instagram-custom-gallery',
4530
- 'name' => 'instagram-custom-gallery',
4531
- 'options' => array(
4532
- 1 => array(
4533
- 'label' => __('New Gallery Style', 'feed-them-social'),
4534
- 'value' => 'yes',
4535
- ),
4536
- 2 => array(
4537
- 'label' => __('Classic Gallery Style', 'feed-them-social'),
4538
- 'value' => 'no',
4539
- ),
4540
- ),
4541
- 'short_attr' => array(
4542
- 'attr_name' => 'super_gallery',
4543
- 'ifs' => 'super_gallery',
4544
- ),
4545
- ),
4546
- array(
4547
- 'input_wrap_class' => 'fb-page-columns-option-hide',
4548
- 'option_type' => 'select',
4549
- 'label' => __('Number of Columns', 'feed-them-gallery'),
4550
- 'type' => 'text',
4551
- 'instructional-text' => '<strong>' . __('NOTE:', 'feed-them-social') . '</strong>' . __('Using the Columns option will make this gallery fully responsive and it will adapt in size to your containers width. Choose the Number of Columns and Space between each image below. Please add px after any number.', 'feed-them-gallery') . ' <a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a>',
4552
- 'id' => 'fts_instagram_columns',
4553
- 'name' => 'fts_instagram_columns',
4554
- 'default_value' => '3',
4555
- 'options' => array(
4556
- array(
4557
- 'label' => __('1', 'feed-them-social'),
4558
- 'value' => '1',
4559
- ),
4560
- array(
4561
- 'label' => __('2', 'feed-them-social'),
4562
- 'value' => '2',
4563
- ),
4564
- array(
4565
- 'label' => __('3', 'feed-them-social'),
4566
- 'value' => '3',
4567
- ),
4568
- array(
4569
- 'label' => __('4', 'feed-them-social'),
4570
- 'value' => '4',
4571
- ),
4572
- array(
4573
- 'label' => __('5', 'feed-them-social'),
4574
- 'value' => '5',
4575
- ),
4576
- array(
4577
- 'label' => __('6', 'feed-them-social'),
4578
- 'value' => '6',
4579
- ),
4580
- array(
4581
- 'label' => __('7', 'feed-them-social'),
4582
- 'value' => '7',
4583
- ),
4584
- array(
4585
- 'label' => __('8', 'feed-them-social'),
4586
- 'value' => '8',
4587
- )
4588
- ),
4589
- 'short_attr' => array(
4590
- 'attr_name' => 'columns',
4591
- 'ifs' => 'super_gallery',
4592
- ),
4593
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4594
- 'sub_options' => array(
4595
- 'sub_options_wrap_class' => 'fts-super-instagram-options-wrap',
4596
- ),
4597
-
4598
- ),
4599
- array(
4600
- 'input_wrap_class' => 'fb-page-columns-option-hide',
4601
- 'option_type' => 'select',
4602
- 'label' => __('Force Columns', 'feed-them-gallery') . '<br/><small>' . __('No, will allow the images to be responsive for smaller devices. Yes, will force columns.', 'feed-them-social') . '</small>',
4603
- 'type' => 'text',
4604
- 'id' => 'fts_instagram_force_columns',
4605
- 'name' => 'fts_instagram_force_columns',
4606
- 'default_value' => 'no',
4607
- 'options' => array(
4608
- array(
4609
- 'label' => __('No', 'feed-them-gallery'),
4610
- 'value' => 'no',
4611
- ),
4612
- array(
4613
- 'label' => __('Yes', 'feed-them-gallery'),
4614
- 'value' => 'yes',
4615
- ),
4616
- ),
4617
- 'short_attr' => array(
4618
- 'attr_name' => 'force_columns',
4619
- 'ifs' => 'super_gallery',
4620
- ),
4621
- ),
4622
-
4623
- //Space between Photos
4624
- array(
4625
- 'option_type' => 'input',
4626
- 'label' => __('The space between photos', 'feed-them-social'),
4627
- 'type' => 'text',
4628
- 'id' => 'fts-slicker-instagram-container-margin',
4629
- 'name' => 'fts-slicker-instagram-container-margin',
4630
- 'placeholder' => '1px',
4631
- 'value' => '',
4632
- 'short_attr' => array(
4633
- 'attr_name' => 'space_between_photos',
4634
- 'var_final_if' => 'yes',
4635
- 'empty_error' => 'set',
4636
- 'empty_error_value' => 'space_between_photos=1px',
4637
- 'ifs' => 'super_gallery',
4638
- ),
4639
- ),
4640
- //Icon Size
4641
- array(
4642
- 'option_type' => 'input',
4643
- 'label' => __('Size of the Instagram Icon', 'feed-them-social'),
4644
- 'label_note' => __('Visible when you hover over photo', 'feed-them-social'),
4645
- 'type' => 'text',
4646
- 'id' => 'fts-slicker-instagram-icon-center',
4647
- 'name' => 'fts-slicker-instagram-icon-center',
4648
- 'placeholder' => '65px',
4649
- 'short_attr' => array(
4650
- 'attr_name' => 'icon_size',
4651
- 'var_final_if' => 'yes',
4652
- 'empty_error' => 'set',
4653
- 'empty_error_value' => 'icon_size=65px',
4654
- 'ifs' => 'super_gallery',
4655
- ),
4656
- ),
4657
- //Hide Date, Likes and Comments
4658
- array(
4659
- 'option_type' => 'select',
4660
- 'label' => __('Date, Heart & Comment icon', 'feed-them-social'),
4661
- 'label_note' => __('Good for image sizes under 120px', 'feed-them-social'),
4662
- 'type' => 'text',
4663
- 'id' => 'fts-slicker-instagram-container-hide-date-likes-comments',
4664
- 'name' => 'fts-slicker-instagram-container-hide-date-likes-comments',
4665
- 'options' => array(
4666
- 1 => array(
4667
- 'label' => __('Show', 'feed-them-social'),
4668
- 'value' => 'no',
4669
- ),
4670
- 2 => array(
4671
- 'label' => __('Hide', 'feed-them-social'),
4672
- 'value' => 'yes',
4673
- ),
4674
- ),
4675
- 'short_attr' => array(
4676
- 'attr_name' => 'hide_date_likes_comments',
4677
- 'ifs' => 'super_gallery',
4678
- ),
4679
- 'sub_options_end' => true,
4680
- ),
4681
- //******************************************
4682
- // Load More
4683
- //******************************************
4684
- array(
4685
- 'grouped_options_title' => __('Load More', 'feed-them-social'),
4686
- 'option_type' => 'select',
4687
- 'label' => __('Load more posts', 'feed-them-social'),
4688
- 'type' => 'text',
4689
- 'id' => 'instagram_load_more_option',
4690
- 'name' => 'instagram_load_more_option',
4691
- // Premium Required - yes/no/more (more allows for us to limit things by numbers, also allows for special message above option.)
4692
- 'prem_req' => 'yes',
4693
- 'options' => array(
4694
- 1 => array(
4695
- 'label' => __('No', 'feed-them-social'),
4696
- 'value' => 'no',
4697
- ),
4698
- 2 => array(
4699
- 'label' => __('Yes', 'feed-them-social'),
4700
- 'value' => 'yes',
4701
- ),
4702
- ),
4703
- 'req_plugin' => 'fts_premium',
4704
- //Relative to JS.
4705
- 'short_attr' => array(
4706
- 'attr_name' => 'load_more',
4707
- 'var_final_if' => 'no',
4708
- 'no_attribute' => 'yes',
4709
- ),
4710
- ),
4711
- //Load More Option Type
4712
- array(
4713
- 'option_type' => 'select',
4714
- 'label' => __('Load more style', 'feed-them-social'),
4715
- 'type' => 'text',
4716
- 'id' => 'instagram_load_more_style',
4717
- 'name' => 'instagram_load_more_style',
4718
- 'instructional-text' => '<strong>' . __('NOTE:', 'feed-them-social') . '</strong> ' . __('The Button option will show a "Load More Posts" button under your feed. The AutoScroll option will load more posts when you reach the bottom of the feed. AutoScroll ONLY works if you\'ve filled in a Fixed Height for your feed.', 'feed-them-social'),
4719
- 'options' => array(
4720
- 1 => array(
4721
- 'label' => __('Button', 'feed-them-social'),
4722
- 'value' => 'button',
4723
- ),
4724
- 2 => array(
4725
- 'label' => __('AutoScroll', 'feed-them-social'),
4726
- 'value' => 'autoscroll',
4727
- ),
4728
- ),
4729
- 'req_plugin' => 'fts_premium',
4730
- 'short_attr' => array(
4731
- 'attr_name' => 'loadmore',
4732
- 'var_final_if' => 'no',
4733
- 'var_final_value' => '',
4734
- 'ifs' => 'load_more',
4735
- ),
4736
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4737
- 'sub_options' => array(
4738
- 'sub_options_wrap_class' => 'fts-instagram-load-more-options-wrap',
4739
- ),
4740
- ),
4741
- //Instagram Page Load more Amount
4742
- array(
4743
- 'option_type' => 'input',
4744
- 'label' => __('Load more Amount', 'feed-them-social') . '<br/><small>' . __('How many more posts will load at a time.', 'feed-them-social') . '</small>',
4745
- 'type' => 'text',
4746
- 'id' => 'instagram_loadmore_count',
4747
- 'name' => 'instagram_loadmore_count',
4748
- 'placeholder' => __('5 is the default number', 'feed-them-social'),
4749
- 'value' => '',
4750
- 'req_plugin' => 'fts_premium',
4751
- //Relative to JS.
4752
- 'short_attr' => array(
4753
- 'attr_name' => 'loadmore_count',
4754
- 'empty_error' => 'set',
4755
- 'empty_error_value' => 'loadmore_count=5',
4756
- 'ifs' => 'load_more',
4757
- ),
4758
- //This should be placed in the STARTING field of sub options that way wrap and instruction text is above this div (end will be in final options for div output)
4759
- 'sub_options' => array(
4760
- 'sub_options_wrap_class' => 'fts-instagram-load-more-options2-wrap',
4761
- //'sub_options_instructional_txt' => '<a href="http://feedthemsocial.com/instagram-feed-demo/" target="_blank">' . __('View demo', 'feed-them-social') . '</a> ' . __('of the Super Instagram gallery.', 'feed-them-social'),
4762
- ),
4763
- ),
4764
-
4765
- //Instagram Page Load more Button Width
4766
- array(
4767
- 'option_type' => 'input',
4768
- 'label' => __('Load more Button Width', 'feed-them-social') . '<br/><small>' . __('Leave blank for auto width', 'feed-them-social') . '</small>',
4769
- 'type' => 'text',
4770
- 'id' => 'instagram_loadmore_button_width',
4771
- 'name' => 'instagram_loadmore_button_width',
4772
- 'placeholder' => '300px ' . __('for example', 'feed-them-social'),
4773
- 'value' => '',
4774
- 'req_plugin' => 'fts_premium',
4775
- //Relative to JS.
4776
- 'short_attr' => array(
4777
- 'attr_name' => 'loadmore_btn_maxwidth',
4778
- 'empty_error' => 'set',
4779
- 'empty_error_value' => 'loadmore_btn_maxwidth=300px',
4780
- 'ifs' => 'load_more',
4781
- ),
4782
- ),
4783
- //Facebook Page Load more Button Margin
4784
- array(
4785
- 'option_type' => 'input',
4786
- 'label' => __('Load more Button Margin', 'feed-them-social'),
4787
- 'type' => 'text',
4788
- 'id' => 'instagram_loadmore_button_margin',
4789
- 'name' => 'instagram_loadmore_button_margin',
4790
- 'placeholder' => '10px ' . __('for example', 'feed-them-social'),
4791
- 'value' => '',
4792
- 'req_plugin' => 'fts_premium',
4793
- //Relative to JS.
4794
- 'short_attr' => array(
4795
- 'attr_name' => 'loadmore_btn_margin',
4796
- 'empty_error' => 'set',
4797
- 'empty_error_value' => 'loadmore_btn_margin=10px',
4798
- 'ifs' => 'load_more',
4799
- ),
4800
- 'sub_options_end' => 2,
4801
- ),
4802
- //Pop Up Option
4803
- array(
4804
- 'grouped_options_title' => __('Popup', 'feed-them-social'),
4805
- 'option_type' => 'select',
4806
- 'label' => __('Display Photos & Videos in Popup', 'feed-them-social'),
4807
- 'type' => 'text',
4808
- 'id' => 'instagram_popup_option',
4809
- 'name' => 'instagram_popup_option',
4810
- 'options' => array(
4811
- 1 => array(
4812
- 'label' => __('No', 'feed-them-social'),
4813
- 'value' => 'no',
4814
- ),
4815
- 2 => array(
4816
- 'label' => __('Yes', 'feed-them-social'),
4817
- 'value' => 'yes',
4818
- ),
4819
- ),
4820
- 'req_plugin' => 'fts_premium',
4821
- 'short_attr' => array(
4822
- 'attr_name' => 'popup',
4823
- ),
4824
- ),
4825
- ),
4826
- //Final Shortcode ifs
4827
- 'shortcode_ifs' => array(
4828
- 'profile_wrap' => array(
4829
- 'if' => array(
4830
- 'class' => 'select#instagram-profile-wrap',
4831
- 'operator' => '==',
4832
- 'value' => 'yes',
4833
- ),
4834
- ),
4835
- 'super_gallery' => array(
4836
- 'if' => array(
4837
- 'class' => 'select#instagram-custom-gallery',
4838
- 'operator' => '==',
4839
- 'value' => 'yes',
4840
- ),
4841
- ),
4842
- 'load_more' => array(
4843
- 'if' => array(
4844
- 'class' => 'select#instagram_load_more_option',
4845
- 'operator' => '==',
4846
- 'value' => 'yes',
4847
- ),
4848
- ),
4849
- ),
4850
- //Generator Info
4851
- 'generator_title' => __('Instagram Feed Shortcode', 'feed-them-social'),
4852
- 'generator_class' => 'instagram-final-shortcode',
4853
- ),//End Instagram Feed
4854
- );
4855
-
4856
- echo $fts_functions->fts_settings_html_form(false, $feed_settings_array, $required_plugins);
4857
- ?>
4858
-
4859
- </section>
4860
- </div> <!-- #fts-tab-content1 -->
4861
-
4862
- <div id="fts-tab-content2"
4863
- class="fts-tab-content fts-hide-me <?php if (isset($_GET['tab']) && $_GET['tab'] == 'global_options') {
4864
- echo ' pane-active';
4865
- } ?>">
4866
- <section>
4867
- <div class="feed-them-clear-cache">
4868
- <h2><?php _e('Clear All Cache Options', 'feed-them-social'); ?></h2>
4869
- <div class="use-of-plugin"><?php _e('Please Clear Cache if you have changed a Feed Them Social Shortcode. This will Allow you to see the changes right away.', 'feed-them-social'); ?></div>
4870
- <?php if (isset($_GET['cache']) && $_GET['cache'] == 'clearcache') {
4871
- echo '<div class="feed-them-clear-cache-text">' . $fts_functions->feed_them_clear_cache() . '</div>';
4872
- }
4873
- isset($ftsDevModeCache) ? $ftsDevModeCache : "";
4874
- isset($ftsAdminBarMenu) ? $ftsAdminBarMenu : "";
4875
- $ftsDevModeCache = get_option('fts_clear_cache_developer_mode') == TRUE ? get_option('fts_clear_cache_developer_mode') : '900';
4876
- $ftsAdminBarMenu = get_option('fts_admin_bar_menu');
4877
- ?>
4878
-
4879
- <form method="post" action="?page=feed-them-settings-page&cache=clearcache&tab=global_options">
4880
- <input class="feed-them-social-admin-submit-btn" type="submit" value="<?php _e('Clear All FTS Feeds Cache', 'feed-them-social'); ?>"/>
4881
- </form>
4882
- </div><!--/feed-them-clear-cache-->
4883
- <!-- custom option for padding -->
4884
- <form method="post" class="fts-color-settings-admin-form" action="options.php">
4885
- <p>
4886
- <label><?php _e('Cache Time', 'feed-them-social'); ?></label>
4887
- <select id="fts_clear_cache_developer_mode" name="fts_clear_cache_developer_mode">
4888
- <option value="" ><?php _e('Please choose an option', 'feed-them-social'); ?></option>
4889
- <option value="86400" <?php if ($ftsDevModeCache == '86400') echo 'selected="selected"'; ?>><?php _e('1 Day (Suggested Default)', 'feed-them-social'); ?></option>
4890
- <option value="172800" <?php if ($ftsDevModeCache == '172800') echo 'selected="selected"'; ?>><?php _e('2 Days', 'feed-them-social'); ?></option>
4891
- <option value="259200" <?php if ($ftsDevModeCache == '259200') echo 'selected="selected"'; ?>><?php _e('3 Days', 'feed-them-social'); ?></option>
4892
- <option value="604800" <?php if ($ftsDevModeCache == '604800') echo 'selected="selected"'; ?>><?php _e('1 Week', 'feed-them-social'); ?></option>
4893
- <option value="1209600" <?php if ($ftsDevModeCache == '1209600') echo 'selected="selected"'; ?>><?php _e('2 Weeks', 'feed-them-social'); ?></option>
4894
- <option value="1" <?php if ($ftsDevModeCache == '1') echo 'selected="selected"'; ?>><?php _e('(Developers Only) Clear cache on every page load', 'feed-them-social'); ?></option>
4895
- </select>
4896
- </p>
4897
- <label><?php _e('Admin Bar', 'feed-them-social'); ?></label>
4898
- <select id="fts_admin_bar_menu" name="fts_admin_bar_menu">
4899
- <option value="show-admin-bar-menu" <?php if ($ftsAdminBarMenu == 'show-admin-bar-menu') echo 'selected="selected"'; ?>><?php _e('Show Admin Bar Menu', 'feed-them-social'); ?></option>
4900
- <option value="hide-admin-bar-menu" <?php if ($ftsAdminBarMenu == 'hide-admin-bar-menu') echo 'selected="selected"'; ?>><?php _e('Hide Admin Bar Menu', 'feed-them-social'); ?></option>
4901
- </select>
4902
- <div class="feed-them-custom-css">
4903
- <?php // get our registered settings from the fts functions
4904
- settings_fields('feed-them-social-settings'); ?>
4905
- <?php
4906
- isset($ftsDateTimeFormat) ? $ftsDateTimeFormat : "";
4907
- isset($ftsTimezone) ? $ftsTimezone : "";
4908
- isset($ftsCustomDate) ? $ftsCustomDate : "";
4909
- isset($ftsCustomTime) ? $ftsCustomTime : "";
4910
- $ftsDateTimeFormat = get_option('fts-date-and-time-format');
4911
- $ftsTimezone = get_option('fts-timezone');
4912
- $ftsCustomDate = get_option('date_format');
4913
- $ftsCustomTime = get_option('time_format');
4914
- $ftsCustomTimezone = get_option('fts-timezone') ? get_option('fts-timezone') : "America/Los_Angeles";
4915
- date_default_timezone_set($ftsCustomTimezone);
4916
-
4917
- ?>
4918
- <div style="float:left; max-width:400px; margin-right:30px;">
4919
- <h2><?php _e('FaceBook & Twitter Date Format', 'feed-them-social'); ?></h2>
4920
-
4921
- <fieldset>
4922
- <select id="fts-date-and-time-format" name="fts-date-and-time-format">
4923
- <option value="l, F jS, Y \a\t g:ia" <?php if ($ftsDateTimeFormat == 'l, F jS, Y \a\t g:ia') echo 'selected="selected"'; ?>><?php echo date('l, F jS, Y \a\t g:ia'); ?></option>
4924
- <option value="F j, Y \a\t g:ia" <?php if ($ftsDateTimeFormat == 'F j, Y \a\t g:ia') echo 'selected="selected"'; ?>><?php echo date('F j, Y \a\t g:ia'); ?></option>
4925
- <option value="F j, Y g:ia" <?php if ($ftsDateTimeFormat == 'F j, Y g:ia') echo 'selected="selected"'; ?>><?php echo date('F j, Y g:ia'); ?></option>
4926
- <option value="F, Y \a\t g:ia" <?php if ($ftsDateTimeFormat == 'F, Y \a\t g:ia') echo 'selected="selected"'; ?>><?php echo date('F, Y \a\t g:ia'); ?></option>
4927
- <option value="M j, Y @ g:ia" <?php if ($ftsDateTimeFormat == 'M j, Y @ g:ia') echo 'selected="selected"'; ?>><?php echo date('M j, Y @ g:ia'); ?></option>
4928
- <option value="M j, Y @ G:i" <?php if ($ftsDateTimeFormat == 'M j, Y @ G:i') echo 'selected="selected"'; ?>><?php echo date('M j, Y @ G:i'); ?></option>
4929
- <option value="m/d/Y \a\t g:ia" <?php if ($ftsDateTimeFormat == 'm/d/Y \a\t g:ia') echo 'selected="selected"'; ?>><?php echo date('m/d/Y \a\t g:ia'); ?></option>
4930
- <option value="m/d/Y @ G:i" <?php if ($ftsDateTimeFormat == 'm/d/Y @ G:i') echo 'selected="selected"'; ?>><?php echo date('m/d/Y @ G:i'); ?></option>
4931
- <option value="d/m/Y \a\t g:ia" <?php if ($ftsDateTimeFormat == 'd/m/Y \a\t g:ia') echo 'selected="selected"'; ?>><?php echo date('d/m/Y \a\t g:ia'); ?></option>
4932
- <option value="d/m/Y @ G:i" <?php if ($ftsDateTimeFormat == 'd/m/Y @ G:i') echo 'selected="selected"'; ?>><?php echo date('d/m/Y @ G:i'); ?></option>
4933
- <option value="Y/m/d \a\t g:ia" <?php if ($ftsDateTimeFormat == 'Y/m/d \a\t g:ia') echo 'selected="selected"'; ?>><?php echo date('Y/m/d \a\t g:ia'); ?></option>
4934
- <option value="Y/m/d @ G:i" <?php if ($ftsDateTimeFormat == 'Y/m/d @ G:i') echo 'selected="selected"'; ?>><?php echo date('Y/m/d @ G:i'); ?></option>
4935
- <option value="one-day-ago" <?php if ($ftsDateTimeFormat == 'one-day-ago') echo 'selected="selected"'; ?>><?php _e('1 day ago', 'feed-them-social'); ?></option>
4936
- <option value="fts-custom-date" <?php if ($ftsDateTimeFormat == 'fts-custom-date') echo 'selected="selected"'; ?>><?php _e('Use Custom Date and Time Option Below', 'feed-them-social'); ?></option>
4937
- </select>
4938
- </fieldset>
4939
-
4940
- <?php
4941
- //Date translate
4942
- $fts_language_second = get_option('fts_language_second', 'second');
4943
- $fts_language_seconds = get_option('fts_language_seconds', 'seconds');
4944
- $fts_language_minute = get_option('fts_language_minute', 'minute');
4945
- $fts_language_minutes = get_option('fts_language_minutes', 'minutes');
4946
- $fts_language_hour = get_option('fts_language_hour', 'hour');
4947
- $fts_language_hours = get_option('fts_language_hours', 'hours');
4948
- $fts_language_day = get_option('fts_language_day', 'day');
4949
- $fts_language_days = get_option('fts_language_days', 'days');
4950
- $fts_language_week = get_option('fts_language_week', 'week');
4951
- $fts_language_weeks = get_option('fts_language_weeks', 'weeks');
4952
- $fts_language_month = get_option('fts_language_month', 'month');
4953
- $fts_language_months = get_option('fts_language_months', 'months');
4954
- $fts_language_year = get_option('fts_language_year', 'year');
4955
- $fts_language_years = get_option('fts_language_years', 'years');
4956
- $fts_language_ago = get_option('fts_language_ago', 'ago');
4957
- ?>
4958
-
4959
- <div class="custom_time_ago_wrap" style="display:none;">
4960
- <h2><?php _e('Translate words for 1 day ago option.', 'feed-them-social'); ?></h2>
4961
- <label for="fts_language_second"><?php _e("second"); ?></label>
4962
- <input name="fts_language_second" type="text" value="<?php echo stripslashes(esc_attr($fts_language_second)); ?>" size="25"/>
4963
- <br/>
4964
- <label for="fts_language_seconds"><?php _e("seconds"); ?></label>
4965
- <input name="fts_language_seconds" type="text" value="<?php echo stripslashes(esc_attr($fts_language_seconds)); ?>" size="25"/>
4966
- <br/>
4967
- <label for="fts_language_minute"><?php _e("minute"); ?></label>
4968
- <input name="fts_language_minute" type="text" value="<?php echo stripslashes(esc_attr($fts_language_minute)); ?>" size="25"/>
4969
- <br/>
4970
- <label for="fts_language_minutes"><?php _e("minutes"); ?></label>
4971
- <input name="fts_language_minutes" type="text" value="<?php echo stripslashes(esc_attr($fts_language_minutes)); ?>" size="25"/>
4972
- <br/>
4973
- <label for="fts_language_hour"><?php _e("hour"); ?></label>
4974
- <input name="fts_language_hour" type="text" value="<?php echo stripslashes(esc_attr($fts_language_hour)); ?>" size="25"/>
4975
- <br/>
4976
- <label for="fts_language_hours"><?php _e("hours"); ?></label>
4977
- <input name="fts_language_hours" type="text" value="<?php echo stripslashes(esc_attr($fts_language_hours)); ?>" size="25"/>
4978
- <br/>
4979
- <label for="fts_language_day"><?php _e("day"); ?></label>
4980
- <input name="fts_language_day" type="text" value="<?php echo stripslashes(esc_attr($fts_language_day)); ?>" size="25"/>
4981
- <br/>
4982
- <label for="fts_language_days"><?php _e("days"); ?></label>
4983
- <input name="fts_language_days" type="text" value="<?php echo stripslashes(esc_attr($fts_language_days)); ?>" size="25"/>
4984
- <br/>
4985
- <label for="fts_language_week"><?php _e("week"); ?></label>
4986
- <input name="fts_language_week" type="text" value="<?php echo stripslashes(esc_attr($fts_language_week)); ?>" size="25"/>
4987
- <br/>
4988
- <label for="fts_language_weeks"><?php _e("weeks"); ?></label>
4989
- <input name="fts_language_weeks" type="text" value="<?php echo stripslashes(esc_attr($fts_language_weeks)); ?>" size="25"/>
4990
- <br/>
4991
- <label for="fts_language_month"><?php _e("month"); ?></label>
4992
- <input name="fts_language_month" type="text" value="<?php echo stripslashes(esc_attr($fts_language_month)); ?>" size="25"/>
4993
- <br/>
4994
- <label for="fts_language_months"><?php _e("months"); ?></label>
4995
- <input name="fts_language_months" type="text" value="<?php echo stripslashes(esc_attr($fts_language_months)); ?>" size="25"/>
4996
- <br/>
4997
- <label for="fts_language_year"><?php _e("year"); ?></label>
4998
- <input name="fts_language_year" type="text" value="<?php echo stripslashes(esc_attr($fts_language_year)); ?>" size="25"/>
4999
- <br/>
5000
- <label for="fts_language_years"><?php _e("years"); ?></label>
5001
- <input name="fts_language_years" type="text" value="<?php echo stripslashes(esc_attr($fts_language_years)); ?>" size="25"/>
5002
- <br/>
5003
- <label for="fts_language_ago"><?php _e("ago"); ?></label>
5004
- <input name="fts_language_ago" type="text" value="<?php echo stripslashes(esc_attr($fts_language_ago)); ?>" size="25"/>
5005
-
5006
- </div>
5007
- <script>
5008
- // change the feed type 'how to' message when a feed type is selected
5009
-
5010
- <?php if ($ftsDateTimeFormat == 'one-day-ago'){ ?>
5011
- jQuery('.custom_time_ago_wrap').show();
5012
- <?php } ?>
5013
- jQuery('#fts-date-and-time-format').change(function () {
5014
-
5015
- var ftsTimeAgo = jQuery("select#fts-date-and-time-format").val();
5016
- if (ftsTimeAgo == 'one-day-ago') {
5017
- jQuery('.custom_time_ago_wrap').show();
5018
- }
5019
- else {
5020
- jQuery('.custom_time_ago_wrap').hide();
5021
- }
5022
-
5023
- });
5024
-
5025
- </script>
5026
- <h2 style="border-top:0px; margin-bottom:4px !important;"><?php _e('Custom Date and Time', 'feed-them-social'); ?></h2>
5027
- <div><?php if ($ftsCustomDate !== '' || $ftsCustomTime !== '') {
5028
- echo date(get_option('fts-custom-date') . ' ' . get_option('fts-custom-time'));
5029
- } ?></div>
5030
- <p style="margin:12px 0 !important;">
5031
- <input name="fts-custom-date" style="max-width:105px;" class="fts-color-settings-admin-input" id="fts-custom-date" placeholder="<?php _e('Date', 'feed-them-social'); ?>" value="<?php echo get_option('fts-custom-date'); ?>"/>
5032
- <input name="fts-custom-time" style="max-width:75px;" class="fts-color-settings-admin-input" id="fts-custom-time" placeholder="<?php _e('Time', 'feed-them-social'); ?>" value="<?php echo get_option('fts-custom-time'); ?>"/>
5033
- </p>
5034
- <div><?php _e('This will override the date and time format above.', 'feed-them-social'); ?>
5035
- <br/><a href="https://codex.wordpress.org/Formatting_Date_and_Time" target="_blank"><?php _e('Options for custom date and time formatting.', 'feed-them-social'); ?></a>
5036
- </div>
5037
- </div>
5038
- <div style="float:left; max-width:330px; margin-right: 30px;">
5039
- <h2><?php _e('TimeZone', 'feed-them-social'); ?></h2>
5040
- <fieldset>
5041
- <select id="fts-timezone" name="fts-timezone">
5042
- <option value="Pacific/Midway" <?php if ($ftsTimezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa', 'feed-them-social'); ?></option>
5043
-
5044
- <option value="America/Adak" <?php if ($ftsTimezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian', 'feed-them-social'); ?></option>
5045
-
5046
- <option value="Etc/GMT+10" <?php if ($ftsTimezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii', 'feed-them-social'); ?></option>
5047
-
5048
- <option value="Pacific/Marquesas" <?php if ($ftsTimezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands', 'feed-them-social'); ?></option>
5049
-
5050
- <option value="Pacific/Gambier" <?php if ($ftsTimezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands', 'feed-them-social'); ?></option>
5051
-
5052
- <option value="America/Anchorage" <?php if ($ftsTimezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska', 'feed-them-social'); ?></option>
5053
-
5054
- <option value="America/Ensenada" <?php if ($ftsTimezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California', 'feed-them-social'); ?></option>
5055
-
5056
- <option value="Etc/GMT+8" <?php if ($ftsTimezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands', 'feed-them-social'); ?></option>
5057
-
5058
- <option value="America/Los_Angeles" <?php if ($ftsTimezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)', 'feed-them-social'); ?></option>
5059
-
5060
- <option value="America/Denver" <?php if ($ftsTimezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)', 'feed-them-social'); ?></option>
5061
-
5062
- <option value="America/Chihuahua" <?php if ($ftsTimezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan', 'feed-them-social'); ?></option>
5063
-
5064
- <option value="America/Dawson_Creek" <?php if ($ftsTimezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona', 'feed-them-social'); ?></option>
5065
-
5066
- <option value="America/Belize" <?php if ($ftsTimezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America', 'feed-them-social'); ?></option>
5067
-
5068
- <option value="America/Cancun" <?php if ($ftsTimezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey', 'feed-them-social'); ?></option>
5069
-
5070
- <option value="Chile/EasterIsland" <?php if ($ftsTimezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island', 'feed-them-social'); ?></option>
5071
-
5072
- <option value="America/Chicago" <?php if ($ftsTimezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)', 'feed-them-social'); ?></option>
5073
-
5074
- <option value="America/New_York" <?php if ($ftsTimezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)', 'feed-them-social'); ?></option>
5075
-
5076
- <option value="America/Havana" <?php if ($ftsTimezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba', 'feed-them-social'); ?></option>
5077
-
5078
- <option value="America/Bogota" <?php if ($ftsTimezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco', 'feed-them-social'); ?></option>
5079
-
5080
- <option value="America/Caracas" <?php if ($ftsTimezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas', 'feed-them-social'); ?></option>
5081
-
5082
- <option value="America/Santiago" <?php if ($ftsTimezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago', 'feed-them-social'); ?></option>
5083
-
5084
- <option value="America/La_Paz" <?php if ($ftsTimezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz', 'feed-them-social'); ?></option>
5085
-
5086
- <option value="Atlantic/Stanley" <?php if ($ftsTimezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands', 'feed-them-social'); ?></option>
5087
-
5088
- <option value="America/Campo_Grande" <?php if ($ftsTimezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil', 'feed-them-social'); ?></option>
5089
-
5090
- <option value="America/Goose_Bay" <?php if ($ftsTimezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)', 'feed-them-social'); ?></option>
5091
-
5092
- <option value="America/Glace_Bay" <?php if ($ftsTimezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)', 'feed-them-social'); ?></option>
5093
-
5094
- <option value="America/St_Johns" <?php if ($ftsTimezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland', 'feed-them-social'); ?></option>
5095
-
5096
- <option value="America/Araguaina" <?php if ($ftsTimezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3', 'feed-them-social'); ?></option>
5097
-
5098
- <option value="America/Montevideo" <?php if ($ftsTimezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo', 'feed-them-social'); ?></option>
5099
-
5100
- <option value="America/Miquelon" <?php if ($ftsTimezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre', 'feed-them-social'); ?></option>
5101
-
5102
- <option value="America/Godthab" <?php if ($ftsTimezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland', 'feed-them-social'); ?></option>
5103
-
5104
- <option value="America/Argentina/Buenos_Aires" <?php if ($ftsTimezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires', 'feed-them-social'); ?></option>
5105
-
5106
- <option value="America/Sao_Paulo" <?php if ($ftsTimezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia', 'feed-them-social'); ?></option>
5107
-
5108
- <option value="America/Noronha" <?php if ($ftsTimezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic', 'feed-them-social'); ?></option>
5109
-
5110
- <option value="Atlantic/Cape_Verde" <?php if ($ftsTimezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.', 'feed-them-social'); ?></option>
5111
-
5112
- <option value="Atlantic/Azores" <?php if ($ftsTimezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores', 'feed-them-social'); ?></option>
5113
-
5114
- <option value="Europe/Belfast" <?php if ($ftsTimezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast', 'feed-them-social'); ?></option>
5115
-
5116
- <option value="Europe/Dublin" <?php if ($ftsTimezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin', 'feed-them-social'); ?></option>
5117
-
5118
- <option value="Europe/Lisbon" <?php if ($ftsTimezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon', 'feed-them-social'); ?></option>
5119
-
5120
- <option value="Europe/London" <?php if ($ftsTimezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London', 'feed-them-social'); ?></option>
5121
-
5122
- <option value="Africa/Abidjan" <?php if ($ftsTimezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik', 'feed-them-social'); ?></option>
5123
-
5124
- <option value="Europe/Amsterdam" <?php if ($ftsTimezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', 'feed-them-social'); ?></option>
5125
-
5126
- <option value="Europe/Belgrade" <?php if ($ftsTimezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'feed-them-social'); ?></option>
5127
-
5128
- <option value="Europe/Brussels" <?php if ($ftsTimezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris', 'feed-them-social'); ?></option>
5129
-
5130
- <option value="Africa/Algiers" <?php if ($ftsTimezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa', 'feed-them-social'); ?></option>
5131
-
5132
- <option value="Africa/Windhoek" <?php if ($ftsTimezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek', 'feed-them-social'); ?></option>
5133
-
5134
- <option value="Asia/Beirut" <?php if ($ftsTimezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut', 'feed-them-social'); ?></option>
5135
-
5136
- <option value="Africa/Cairo" <?php if ($ftsTimezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo', 'feed-them-social'); ?></option>
5137
-
5138
- <option value="Asia/Gaza" <?php if ($ftsTimezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza', 'feed-them-social'); ?></option>
5139
-
5140
- <option value="Africa/Blantyre" <?php if ($ftsTimezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria', 'feed-them-social'); ?></option>
5141
-
5142
- <option value="Asia/Jerusalem" <?php if ($ftsTimezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem', 'feed-them-social'); ?></option>
5143
-
5144
- <option value="Europe/Minsk" <?php if ($ftsTimezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk', 'feed-them-social'); ?></option>
5145
-
5146
- <option value="Asia/Damascus" <?php if ($ftsTimezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria', 'feed-them-social'); ?></option>
5147
-
5148
- <option value="Europe/Moscow" <?php if ($ftsTimezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd', 'feed-them-social'); ?></option>
5149
-
5150
- <option value="Africa/Addis_Ababa" <?php if ($ftsTimezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi', 'feed-them-social'); ?></option>
5151
-
5152
- <option value="Asia/Tehran" <?php if ($ftsTimezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran', 'feed-them-social'); ?></option>
5153
-
5154
- <option value="Asia/Dubai" <?php if ($ftsTimezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat', 'feed-them-social'); ?></option>
5155
-
5156
- <option value="Asia/Yerevan" <?php if ($ftsTimezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan', 'feed-them-social'); ?></option>
5157
-
5158
- <option value="Asia/Kabul" <?php if ($ftsTimezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul', 'feed-them-social'); ?></option>
5159
-
5160
- <option value="Asia/Yekaterinburg" <?php if ($ftsTimezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg', 'feed-them-social'); ?></option>
5161
-
5162
- <option value="Asia/Tashkent" <?php if ($ftsTimezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent', 'feed-them-social'); ?></option>
5163
-
5164
- <option value="Asia/Kolkata" <?php if ($ftsTimezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', 'feed-them-social'); ?></option>
5165
-
5166
- <option value="Asia/Katmandu" <?php if ($ftsTimezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu', 'feed-them-social'); ?></option>
5167
-
5168
- <option value="Asia/Dhaka" <?php if ($ftsTimezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka', 'feed-them-social'); ?></option>
5169
-
5170
- <option value="Asia/Novosibirsk" <?php if ($ftsTimezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk', 'feed-them-social'); ?></option>
5171
-
5172
- <option value="Asia/Rangoon" <?php if ($ftsTimezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)', 'feed-them-social'); ?></option>
5173
-
5174
- <option value="Asia/Bangkok" <?php if ($ftsTimezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta', 'feed-them-social'); ?></option>
5175
-
5176
- <option value="Asia/Krasnoyarsk" <?php if ($ftsTimezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk', 'feed-them-social'); ?></option>
5177
-
5178
- <option value="Asia/Hong_Kong" <?php if ($ftsTimezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', 'feed-them-social'); ?></option>
5179
-
5180
- <option value="Asia/Irkutsk" <?php if ($ftsTimezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar', 'feed-them-social'); ?></option>
5181
-
5182
- <option value="Australia/Perth" <?php if ($ftsTimezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth', 'feed-them-social'); ?></option>
5183
-
5184
- <option value="Australia/Eucla" <?php if ($ftsTimezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla', 'feed-them-social'); ?></option>
5185
-
5186
- <option value="Asia/Tokyo" <?php if ($ftsTimezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo', 'feed-them-social'); ?></option>
5187
-
5188
- <option value="Asia/Seoul" <?php if ($ftsTimezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul', 'feed-them-social'); ?></option>
5189
-
5190
- <option value="Asia/Yakutsk" <?php if ($ftsTimezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk', 'feed-them-social'); ?></option>
5191
-
5192
- <option value="Australia/Adelaide" <?php if ($ftsTimezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide', 'feed-them-social'); ?></option>
5193
-
5194
- <option value="Australia/Darwin" <?php if ($ftsTimezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin', 'feed-them-social'); ?></option>
5195
-
5196
- <option value="Australia/Brisbane" <?php if ($ftsTimezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane', 'feed-them-social'); ?></option>
5197
-
5198
- <option value="Australia/Hobart" <?php if ($ftsTimezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Sydney', 'feed-them-social'); ?></option>
5199
-
5200
- <option value="Asia/Vladivostok" <?php if ($ftsTimezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok', 'feed-them-social'); ?></option>
5201
-
5202
- <option value="Australia/Lord_Howe" <?php if ($ftsTimezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island', 'feed-them-social'); ?></option>
5203
-
5204
- <option value="Etc/GMT-11" <?php if ($ftsTimezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia', 'feed-them-social'); ?></option>
5205
-
5206
- <option value="Asia/Magadan" <?php if ($ftsTimezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan', 'feed-them-social'); ?></option>
5207
-
5208
- <option value="Pacific/Norfolk" <?php if ($ftsTimezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island', 'feed-them-social'); ?></option>
5209
-
5210
- <option value="Asia/Anadyr" <?php if ($ftsTimezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka', 'feed-them-social'); ?></option>
5211
-
5212
- <option value="Pacific/Auckland" <?php if ($ftsTimezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington', 'feed-them-social'); ?></option>
5213
-
5214
- <option value="Etc/GMT-12" <?php if ($ftsTimezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.', 'feed-them-social'); ?></option>
5215
-
5216
- <option value="Pacific/Chatham" <?php if ($ftsTimezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands', 'feed-them-social'); ?></option>
5217
-
5218
- <option value="Pacific/Tongatapu" <?php if ($ftsTimezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa', 'feed-them-social'); ?></option>
5219
-
5220
- <option value="Pacific/Kiritimati" <?php if ($ftsTimezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati', 'feed-them-social'); ?></option>
5221
- </select>
5222
- </fieldset>
5223
- </div>
5224
- <div class="clear"></div>
5225
-
5226
- <br/>
5227
- <h2><?php _e('Custom CSS Option', 'feed-them-social'); ?></h2>
5228
- <p>
5229
- <input name="fts-color-options-settings-custom-css" class="fts-color-settings-admin-input" type="checkbox" id="fts-color-options-settings-custom-css" value="1" <?php echo checked('1', get_option('fts-color-options-settings-custom-css')); ?>/>
5230
- <?php
5231
- if (get_option('fts-color-options-settings-custom-css') == '1') { ?>
5232
- <strong><?php _e('Checked:', 'feed-them-social'); ?></strong> <?php _e('Custom CSS option is being used now.', 'feed-them-social'); ?><?php
5233
- } else { ?>
5234
- <strong><?php _e('Not Checked:', 'feed-them-social'); ?></strong> <?php _e('You are using the default CSS.', 'feed-them-social'); ?><?php
5235
- }
5236
- ?>
5237
- </p>
5238
- <label class="toggle-custom-textarea-show"><span><?php _e('Show', 'feed-them-social'); ?></span><span class="toggle-custom-textarea-hide"><?php _e('Hide', 'feed-them-social'); ?></span> <?php _e('custom CSS', 'feed-them-social'); ?>
5239
- </label>
5240
- <div class="clear"></div>
5241
- <div class="fts-custom-css-text"><?php _e('Thanks for using our plugin :) Add your custom CSS additions or overrides below.', 'feed-them-social'); ?></div>
5242
- <textarea name="fts-color-options-main-wrapper-css-input" class="fts-color-settings-admin-input" id="fts-color-options-main-wrapper-css-input"><?php echo get_option('fts-color-options-main-wrapper-css-input'); ?></textarea>
5243
- </div><!--/feed-them-custom-css-->
5244
-
5245
- <div class="feed-them-custom-logo-css">
5246
- <h2><?php _e('Disable Share Option', 'feed-them-social'); ?></h2>
5247
- <p>
5248
- <input name="fts_disable_share_button" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_disable_share_button" value="1" <?php echo checked('1', get_option('fts_disable_share_button')); ?>/> <?php _e('Check this if you want to disable the Share Icon on all feeds', 'feed-them-social'); ?>
5249
- </p>
5250
- <br/>
5251
- <div class="feed-them-social-admin-input-wrap">
5252
- <div class="feed-them-social-admin-input-label fts-social-icons-color-label">
5253
- <?php _e('Social Icons Color', 'feed-them-social'); ?>
5254
- </div>
5255
- <input type="text" name="fts_social_icons_color" class="feed-them-social-admin-input fts-social-icons-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fts-border-bottom-color-input" placeholder="#ddd" value="<?php echo get_option('fts_social_icons_color'); ?>"/>
5256
- <div class="clear"></div>
5257
- </div>
5258
- <!--/fts-facebook-feed-styles-input-wrap-->
5259
-
5260
- <div class="feed-them-social-admin-input-wrap">
5261
- <div class="feed-them-social-admin-input-label fts-social-icons-color-label">
5262
- <?php _e('Social Icons Hover Color', 'feed-them-social'); ?>
5263
- </div>
5264
- <input type="text" name="fts_social_icons_hover_color" class="feed-them-social-admin-input fts-social-icons-hover-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fts-border-bottom-color-input" placeholder="#ddd" value="<?php echo get_option('fts_social_icons_hover_color'); ?>"/>
5265
- <div class="clear"></div>
5266
- </div>
5267
- <!--/fts-facebook-feed-styles-input-wrap-->
5268
-
5269
- <div class="feed-them-social-admin-input-wrap">
5270
- <div class="feed-them-social-admin-input-label fts-social-icons-color-back-label">
5271
- <?php _e('Icons wrap background Color', 'feed-them-social'); ?>
5272
- </div>
5273
- <input type="text" name="fts_social_icons_back_color" class="feed-them-social-admin-input fts-social-icons-back-color-input color {hash:true,caps:false,required:false,adjust:false,pickerFaceColor:'#eee',pickerFace:3,pickerBorder:0,pickerInsetColor:'white'}" id="fts-border-bottom-color-input" placeholder="#ddd" value="<?php echo get_option('fts_social_icons_back_color'); ?>"/>
5274
- <div class="clear"></div>
5275
- </div>
5276
- <!--/fts-facebook-feed-styles-input-wrap-->
5277
-
5278
- <br/>
5279
- <?php if (is_plugin_active('feed-them-premium/feed-them-premium.php')) { ?>
5280
- <h2><?php _e('Disable Magnific Popup CSS', 'feed-them-social'); ?></h2>
5281
- <p>
5282
- <input name="fts_fix_magnific" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_fix_magnific" value="1" <?php echo checked('1', get_option('fts_fix_magnific')); ?>/> <?php _e('Check this if you are experiencing problems with your theme(s) or other plugin(s) popups.', 'feed-them-social'); ?>
5283
- </p>
5284
- <br/>
5285
- <?php } ?>
5286
-
5287
- <h2><?php _e('Fix Twitter Time', 'feed-them-social'); ?></h2>
5288
- <p>
5289
- <input name="fts_twitter_time_offset" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_twitter_time_offset" value="1" <?php echo checked('1', get_option('fts_twitter_time_offset')); ?>/> <?php _e('Check this if the Twitter time is still off by 3 hours after setting the TimeZone above.', 'feed-them-social'); ?>
5290
- </p>
5291
- <br/>
5292
-
5293
- <h2><?php _e('Fix Internal Server Error', 'feed-them-social'); ?></h2>
5294
- <p>
5295
- <input name="fts_curl_option" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts_curl_option" value="1" <?php echo checked('1', get_option('fts_curl_option')); ?>/> <?php _e('Check this option if you are getting a 500 Internal Server Error when trying to load a page with our feed on it.', 'feed-them-social'); ?>
5296
- </p>
5297
- <br/>
5298
-
5299
- <h2><?php _e('Powered by Text', 'feed-them-social'); ?></h2>
5300
- <p>
5301
- <input name="fts-powered-text-options-settings" class="fts-powered-by-settings-admin-input" type="checkbox" id="fts-powered-text-options-settings" value="1" <?php echo checked('1', get_option('fts-powered-text-options-settings')); ?>/>
5302
- <?php
5303
- if (get_option('fts-powered-text-options-settings') == '1') { ?>
5304
- <strong><?php _e('Checked:', 'feed-them-social'); ?></strong> <?php _e('You are not showing the Powered by Logo.', 'feed-them-social'); ?><?php
5305
- } else { ?>
5306
- <strong><?php _e('Not Checked:', 'feed-them-social'); ?></strong><?php _e('The Powered by text will appear in the site. Awesome! Thanks so much for sharing.', 'feed-them-social'); ?><?php
5307
- }
5308
- ?>
5309
- </p>
5310
- <br/>
5311
- <input type="submit" class="feed-them-social-admin-submit-btn" value="<?php _e('Save All Changes', 'feed-them-social') ?>"/>
5312
- <div class="clear"></div>
5313
- </div><!--/feed-them-custom-logo-css-->
5314
- </form>
5315
- </div><!--/font-content-->
5316
-
5317
- </section>
5318
- </div>
5319
- </div>
5320
-
5321
- </div><!--/feed-them-social-admin-wrap-->
5322
-
5323
- <script>
5324
- jQuery(document).ready(function ($) {
5325
-
5326
- //create hash tag in url for fts-tabs
5327
- jQuery('.feed-them-social-admin-wrap #fts-tabs').on('click', "label.fts-tabbed", function () {
5328
- var myURL = document.location;
5329
- document.location = myURL + "&tab=" + jQuery(this).attr('id');
5330
-
5331
- })
5332
-
5333
- });
5334
- </script>
5335
-
5336
- <h1 class="plugin-author-note"><?php _e('Plugin Authors Note', 'feed-them-social'); ?></h1>
5337
- <div class="fts-plugin-reviews">
5338
- <div class="fts-plugin-reviews-rate"><?php _e(' Feed Them Social was created by 2 Brothers, Spencer and Justin Labadie. That’s it, 2 people! We spend all our time creating and supporting this plugin. Show us some love if you like our plugin and leave a quick review for us, it will make our day!', 'feed-them-social'); ?>
5339
- <a href="https://wordpress.org/support/view/plugin-reviews/feed-them-social" target="_blank"><?php _e('Leave us a Review', 'feed-them-social'); ?>
5340
- ★★★★★</a>
5341
- </div>
5342
- <div class="fts-plugin-reviews-support"><?php _e('If you\'re using the Free plugin and are having troubles getting setup please contact us on the <a href="https://wordpress.org/support/plugin/feed-them-social" target="_blank">Free Wordpress Support Forum</a>. We will respond within 24hrs during weekdays.', 'feed-them-social'); ?>
5343
- <?php _e('If you have a paid extensions from us please use our <a href="https://www.slickremix.com/my-account/#tab-support" target="_blank">Paid Extension Support Ticket System</a>.', 'feed-them-social'); ?>
5344
-
5345
- <div class="fts-text-align-center">
5346
- <a class="feed-them-social-admin-slick-logo" href="https://www.slickremix.com" target="_blank"></a>
5347
- </div>
5348
- </div>
5349
- </div>
5350
-
5351
- <script>
5352
-
5353
- jQuery(document).ready(function () {
5354
-
5355
- // Master feed selector
5356
- jQuery('#shortcode-form-selector').change(function () {
5357
- jQuery('.shortcode-generator-form').hide();
5358
- jQuery('.' + jQuery(this).val()).fadeIn('fast');
5359
-
5360
- <?php if (get_option('youtube_custom_access_token') && get_option('youtube_custom_access_token') !== '' && get_option('youtube_custom_access_token') !== '') { ?>
5361
- if (jQuery('select#shortcode-form-selector').val() == 'youtube-shortcode-form') {
5362
- jQuery(".shortcode-generator-form.youtube-shortcode-form .fts-required-token-message").hide();
5363
- }<?php } ?>
5364
-
5365
- if (jQuery('select#shortcode-form-selector').val() == 'fts-fb-page-shortcode-form') {
5366
- jQuery("#facebook-messages-selector").change();
5367
- jQuery("html, .facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media").show();
5368
- }
5369
-
5370
- if (jQuery("select#shortcode-form-selector").val() == "vine-shortcode-form") {
5371
- jQuery("form#feed-selector-form").append('<div class="feed-them-social-admin-input-wrap fts-premium-options-message" id="bye-vine"><a class="not-active-title" href="https://medium.com/@vine/important-news-about-vine-909c5f4ae7a7#.lcz07v6ws" target="_blank">Vine Depreciated</a><?php _e('A notice to all users of Feed Them Social that use the Vine feed in our plugin... It appears they will be closing the doors at some point soon. No specific date, but well keep you posted before it gets fully phased out. <a href="https://medium.com/@vine/important-news-about-vine-909c5f4ae7a7#.lcz07v6ws">https://medium.com/@vine/important-news-about-vine-909c5f4ae7a7#.lcz07v6ws</a><br><br>You can see the shortcode options and shortcode examples here, we will no longer be creating a shortcode generator for this feed. <a href="https://www.slickremix.com/docs/shortcode-options-table/#vine">https://www.slickremix.com/docs/shortcode-options-table/#vine</a> ', 'feed-them-social') ?></div>')
5372
- jQuery("#bye-vine").show();
5373
- }
5374
- else {
5375
- jQuery("form#feed-selector-form").remove("#bye-vine");
5376
- }
5377
-
5378
- //Combined Feed
5379
- <?php if (!is_plugin_active('feed-them-social-combined-streams/feed-them-social-combined-streams.php')) { ?>
5380
- if (jQuery("select#shortcode-form-selector").val() == "combine-steams-shortcode-form") {
5381
- jQuery('.combine-steams-shortcode-form, .fts-required-more-posts').hide();
5382
- jQuery('#not_active_main_select, .fts-required-more-posts').show();
5383
- }
5384
- <?php } ?>
5385
-
5386
- jQuery('select#combine-steams-selector').val('all')
5387
- //Remove Controller Class so everything reappears for Facebook Feed
5388
- if (jQuery('.fts-facebook_page-shortcode-form').hasClass('multiple_facebook')) {
5389
- jQuery('.fts-facebook_page-shortcode-form').removeClass('multiple_facebook');
5390
- jQuery('.fts-required-more-posts').hide();
5391
- }
5392
- else {
5393
- jQuery('.fts-required-more-posts').show();
5394
- }
5395
- jQuery('select#facebook-messages-selector option[value="events"]').show();
5396
-
5397
- });
5398
-
5399
- jQuery('select#fb_hide_like_box_button').bind('change', function (e) {
5400
- if (jQuery('select#fb_hide_like_box_button').val() == 'no') {
5401
- jQuery('.like-box-wrap').show();
5402
- }
5403
- else {
5404
- jQuery('.like-box-wrap').hide();
5405
- }
5406
- });
5407
-
5408
- jQuery('#facebook_show_video_button').change(function () {
5409
- jQuery('.fb-video-play-btn-options-content').toggle();
5410
- });
5411
-
5412
- //Combine Feed Type Selector
5413
- jQuery('select#combine-steams-selector').bind('change', function (e) {
5414
- if (jQuery('select#combine-steams-selector').val() == 'multiple_facebook') {
5415
- jQuery('.facebook_options_wrap,#fts-fb-page-form, .facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ').show();
5416
- jQuery('.combine_streams_options_wrap, .fts-required-more-posts').hide();
5417
- jQuery('.fts-facebook_page-shortcode-form').addClass('multiple_facebook');
5418
-
5419
- jQuery('.multiple_facebook select#facebook-messages-selector option[value="events"]').hide();
5420
- }
5421
- else {
5422
-
5423
- jQuery('.facebook_options_wrap,#fts-fb-page-form, .facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ').hide();
5424
- jQuery('.combine_streams_options_wrap, .fts-required-more-posts').show();
5425
-
5426
- //Remove Controller Class so everything reappears for Facebook Feed
5427
- if (jQuery('.fts-facebook_page-shortcode-form').hasClass('multiple_facebook')) {
5428
- jQuery('.fts-facebook_page-shortcode-form').removeClass('multiple_facebook');
5429
- }
5430
- }
5431
- });
5432
-
5433
- // change the feed type 'how to' message when a feed type is selected
5434
- jQuery('#facebook-messages-selector').change(function () {
5435
- jQuery('.facebook-message-generator').hide();
5436
- jQuery('.' + jQuery(this).val()).fadeIn('fast');
5437
- // if the facebook type select is changed we hide the shortcode code so not to confuse people
5438
- jQuery('.final-shortcode-textarea').hide();
5439
- // only show the Super Gallery Options if the facebook ablum or album covers feed type is selected
5440
- var facebooktype = jQuery("select#facebook-messages-selector").val();
5441
-
5442
-
5443
- if (facebooktype == 'albums' || facebooktype == 'album_photos' || facebooktype == 'album_videos') {
5444
- jQuery('.fts-super-facebook-options-wrap,.align-images-wrap').show();
5445
- jQuery('.fixed_height_option,.main-grid-options-wrap').hide();
5446
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('Display Posts in Grid', 'feed-them-social'); ?>')").parent('div').hide();
5447
- }
5448
- else {
5449
- jQuery('.fts-super-facebook-options-wrap,.align-images-wrap ').hide();
5450
- jQuery('.fixed_height_option,.main-grid-options-wrap').show();
5451
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('Display Posts in Grid', 'feed-them-social'); ?>')").parent('div').show();
5452
- }
5453
-
5454
- if (facebooktype == 'page' || facebooktype == 'event' || facebooktype == 'group') {
5455
- jQuery(".facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ").show();
5456
- }
5457
- else {
5458
- jQuery(".facebook_hide_thumbnail, .facebook_hide_date, .facebook_hide_name, .facebook_show_media ").hide();
5459
- }
5460
-
5461
- <?php if (is_plugin_active('feed-them-premium/feed-them-premium.php')) { ?>
5462
-
5463
- // This is to show all option when prem active if you selected the Facebook Page reviews if not active. Otherwise all other fb-options-wraps are hidden when selecting another fb feed from settings page drop down.
5464
- jQuery('.fb-options-wrap').show();
5465
- jQuery('body .fb_album_photos_id, .fts-required-more-posts').hide();
5466
-
5467
- if (facebooktype == 'album_videos') {
5468
- jQuery('.fts-photos-popup, #facebook_super_gallery_container, #facebook_super_gallery_animate').hide();
5469
- jQuery('.video, .fb-video-play-btn-options-wrap').show();
5470
- jQuery(".feed-them-social-admin-input-label:contains('# of Posts')").html("<?php _e('# of Videos', 'feed-them-social') ?>");
5471
- }
5472
- else {
5473
- jQuery('.video, .fb-video-play-btn-options-wrap').hide();
5474
- jQuery('.fts-photos-popup, #facebook_super_gallery_container, #facebook_super_gallery_animate').show();
5475
- jQuery(".feed-them-social-admin-input-label:contains('# of Videos')").html("<?php _e('# of Posts', 'feed-them-social') ?>");
5476
- }
5477
- <?php }
5478
- else{ ?>
5479
-
5480
- jQuery('.video, .fb-video-play-btn-options-wrap').hide();
5481
- jQuery('body .fb_album_photos_id, .fts-required-more-posts').hide();
5482
-
5483
- <?php } ?>
5484
-
5485
- if (facebooktype == 'page') {
5486
- jQuery('.inst-text-facebook-page').show();
5487
- }
5488
- else {
5489
- jQuery('.inst-text-facebook-page').hide();
5490
- }
5491
-
5492
- if (facebooktype == 'events') {
5493
- jQuery('.inst-text-facebook-event-list').show();
5494
- jQuery('.facebook-loadmore-wrap').hide();
5495
-
5496
- }
5497
- else {
5498
- jQuery('.inst-text-facebook-event-list').hide();
5499
- jQuery('.facebook-loadmore-wrap').show();
5500
- }
5501
-
5502
- <?php if (is_plugin_active('feed-them-social-facebook-reviews/feed-them-social-facebook-reviews.php')) { ?>
5503
- if (facebooktype == 'reviews') {
5504
- jQuery('.facebook-reviews-wrap, .inst-text-facebook-reviews').show();
5505
- jQuery('.align-images-wrap,.facebook-title-options-wrap, .facebook-popup-wrap, .fts-required-more-posts, .fts-required-more-posts').hide();
5506
- } else {
5507
- jQuery('.facebook-reviews-wrap, .inst-text-facebook-reviews').hide();
5508
- jQuery('.facebook-title-options-wrap, .facebook-popup-wrap, .fts-required-more-posts, .fts-required-more-posts').show();
5509
- }
5510
- <?php } ?>
5511
-
5512
- // only show the post type visible if the facebook page feed type is selected
5513
- jQuery('.facebook-post-type-visible').hide();
5514
- if (facebooktype == 'page') {
5515
- jQuery('.facebook-post-type-visible').show();
5516
- }
5517
- var fb_feed_type_option = jQuery("select#facebook-messages-selector").val();
5518
- if (fb_feed_type_option == 'album_photos') {
5519
- jQuery('.fb_album_photos_id').show();
5520
- }
5521
- else {
5522
- jQuery('.fb_album_photos_id').hide();
5523
- }
5524
- });
5525
- //Instagram Profile wrap
5526
- jQuery('select#instagram-profile-wrap').bind('change', function (e) {
5527
- if (jQuery('#instagram-profile-wrap').val() == 'yes') {
5528
- jQuery('.instagram-profile-options-wrap').show();
5529
- }
5530
- else {
5531
- jQuery('.instagram-profile-options-wrap').hide();
5532
- }
5533
- });
5534
- // Instagram Super Gallery option
5535
- jQuery('#instagram-custom-gallery').bind('change', function (e) {
5536
- if (jQuery('#instagram-custom-gallery').val() == 'no') {
5537
- jQuery('.fts-super-instagram-options-wrap').hide();
5538
- }
5539
- else {
5540
- jQuery('.fts-super-instagram-options-wrap').show();
5541
- }
5542
- });
5543
-
5544
-
5545
- jQuery('#instagram-messages-selector').bind('change', function (e) {
5546
- if (jQuery('#instagram-messages-selector').val() == 'hashtag') {
5547
- jQuery(".instagram-id-option-wrap,.instagram-user-option-text,.instagram-location-option-text,.main-instagram-profile-options-wrap").hide();
5548
- jQuery(".instagram-hashtag-option-text").show();
5549
- }
5550
- else if (jQuery('#instagram-messages-selector').val() == 'location') {
5551
- jQuery(".instagram-id-option-wrap,.instagram-user-option-text,.instagram-hashtag-option-text,.main-instagram-profile-options-wrap").hide();
5552
- jQuery(".instagram-location-option-text").show();
5553
- }
5554
- else {
5555
- jQuery(".instagram-id-option-wrap,.instagram-user-option-text,.main-instagram-profile-options-wrap").show();
5556
- jQuery(".instagram-hashtag-option-text,.instagram-location-option-text").hide();
5557
- }
5558
- });
5559
-
5560
- jQuery('#combine_instagram_type').bind('change', function (e) {
5561
- if (jQuery('#combine_instagram_type').val() == 'hashtag') {
5562
- jQuery(".combine-instagram-id-option-wrap,.combine-instagram-user-option-text,.combine-instagram-location-option-text").hide();
5563
- jQuery(".combine-instagram-hashtag-option-text").show();
5564
- }
5565
- else if (jQuery('#combine_instagram_type').val() == 'location') {
5566
- jQuery(".combine-instagram-id-option-wrap,.combine-instagram-user-option-text,.combine-instagram-hashtag-option-text").hide();
5567
- jQuery(".combine-instagram-location-option-text").show();
5568
- }
5569
- else {
5570
- jQuery(".combine-instagram-id-option-wrap,.combine-instagram-user-option-text").show();
5571
- jQuery(".combine-instagram-hashtag-option-text,.combine-instagram-location-option-text").hide();
5572
- }
5573
- });
5574
-
5575
- /* Instagram */
5576
- function getQueryString(Param) {
5577
- return decodeURI(
5578
- (RegExp('[#|&]' + Param + '=' + '(.+?)(&|$)').exec(location.hash) || [, null])[1]
5579
- );
5580
- }
5581
-
5582
- if (window.location.hash && getQueryString('feed_type') == 'instagram') {
5583
- jQuery('#feed-selector-form').find('option[value=instagram-shortcode-form]').attr('selected','selected');
5584
- jQuery('.shortcode-generator-form.instagram-shortcode-form').show();
5585
- jQuery('#instagram_id').val(jQuery('#instagram_id').val() + '<?php echo get_option('fts_instagram_custom_id') ?>');
5586
- jQuery('#insta_access_token').val(jQuery('#insta_access_token').val() + '<?php echo get_option('fts_instagram_custom_api_token') ?>');
5587
- }
5588
-
5589
- jQuery('#shortcode-form-selector, #instagram-messages-selector').bind('change', function (e) {
5590
- if (jQuery('#instagram-messages-selector').val() == 'user') {
5591
- jQuery('#instagram_id, #insta_access_token').val('');
5592
- jQuery('#instagram_id').val(jQuery('#instagram_id').val() + '<?php echo get_option('fts_instagram_custom_id') ?>');
5593
- jQuery('#insta_access_token').val(jQuery('#insta_access_token').val() + '<?php echo get_option('fts_instagram_custom_api_token') ?>');
5594
- }
5595
- else {
5596
- jQuery('#instagram_id').val('');
5597
- }
5598
-
5599
- });
5600
- /* FB Pages, Ablums, Photos etc */
5601
- if (window.location.hash && getQueryString('feed_type') == 'facebook') {
5602
- jQuery('#feed-selector-form').find('option[value=fts-fb-page-shortcode-form]').attr('selected','selected');
5603
- jQuery('#fts-tab-content1 .fts-fb-page-shortcode-form').show();
5604
- jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo get_option('fts_facebook_custom_api_token_user_id') ?>');
5605
- jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo get_option('fts_facebook_custom_api_token') ?>');
5606
- }
5607
-
5608
- jQuery('#shortcode-form-selector, #facebook-messages-selector').bind('change', function (e) {
5609
- if (jQuery('#facebook-messages-selector').val() == 'page' || jQuery('#facebook-messages-selector').val() == 'album_photos' || jQuery('#facebook-messages-selector').val() == 'albums' || jQuery('#facebook-messages-selector').val() == 'album_videos') {
5610
- jQuery('#fb_page_id, #fb_access_token').val('');
5611
- jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo get_option('fts_facebook_custom_api_token_user_id') ?>');
5612
- jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo get_option('fts_facebook_custom_api_token') ?>');
5613
- }
5614
- else {
5615
-
5616
- }
5617
-
5618
- });
5619
-
5620
- /* FB Pages, Ablums, Photos etc */
5621
- if (window.location.hash && getQueryString('feed_type') == 'facebook_reviews') {
5622
- jQuery('#feed-selector-form').find('option[value=fts-fb-page-shortcode-form]').attr('selected','selected');
5623
- jQuery('#fts-tab-content1 .fts-fb-page-shortcode-form').show();
5624
-
5625
- jQuery('#facebook-messages-selector').find('option[value=reviews]').attr('selected','selected');
5626
- jQuery('.facebook-reviews-wrap, .inst-text-facebook-reviews').show();
5627
- jQuery('.align-images-wrap,.facebook-title-options-wrap, .facebook-popup-wrap, .fts-required-more-posts, .fts-required-more-posts, .inst-text-facebook-page').hide();
5628
-
5629
- jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo get_option('fts_facebook_custom_api_token_user_id_biz') ?>');
5630
- jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo get_option('fts_facebook_custom_api_token_biz') ?>');
5631
- }
5632
-
5633
- jQuery('#shortcode-form-selector, #facebook-messages-selector').bind('change', function (e) {
5634
- if (jQuery('#facebook-messages-selector').val() == 'reviews') {
5635
- jQuery('#fb_page_id, #fb_access_token').val('');
5636
- jQuery('#fb_page_id').val(jQuery('#fb_page_id').val() + '<?php echo get_option('fts_facebook_custom_api_token_user_id_biz') ?>');
5637
- jQuery('#fb_access_token').val(jQuery('#fb_access_token').val() + '<?php echo get_option('fts_facebook_custom_api_token_biz') ?>');
5638
- }
5639
- else {
5640
-
5641
- }
5642
-
5643
- });
5644
-
5645
- jQuery('#combine_facebook').bind('change', function (e) {
5646
- jQuery('#combine_facebook_name').val('');
5647
- jQuery('#combine_facebook_name').val(jQuery('#combine_facebook_name').val() + '<?php echo get_option('fts_facebook_custom_api_token_user_id') ?>');
5648
- });
5649
-
5650
- jQuery('#combine_instagram, #combine_instagram_type').bind('change', function (e) {
5651
- jQuery('#combine_instagram_name').val('');
5652
- if (jQuery('#combine_instagram_type').val() == 'user') {
5653
- jQuery('#combine_instagram_name').val(jQuery('#combine_instagram_name').val() + '<?php echo get_option('fts_instagram_custom_id') ?>');
5654
- }
5655
- else {
5656
- jQuery('#combine_instagram_name').val('');
5657
- }
5658
-
5659
- });
5660
-
5661
- <?php if (!is_plugin_active('feed-them-premium/feed-them-premium.php')) { ?>
5662
- jQuery('#instagram-messages-selector').bind('change', function (e) {
5663
- if (jQuery('#instagram-messages-selector').val() == 'location') {
5664
- jQuery("#instagram_id").hide();
5665
- jQuery('<div class="feed-them-social-admin-input-default fts-custom-premium-required">Must have <a target="_blank" href="https://www.slickremix.com/downloads/feed-them-social-premium-extension/">premium</a> to edit.</div>').insertAfter('.feed-them-social-admin-input-label.instagram-location-option-text')
5666
- jQuery(".feed-them-social-admin-submit-btn").hide();
5667
- }
5668
- else {
5669
- jQuery("#instagram_id").show();
5670
- jQuery(".fts-custom-premium-required").hide();
5671
- jQuery(".feed-them-social-admin-submit-btn").show();
5672
- }
5673
-
5674
- });
5675
- <?php } ?>
5676
-
5677
- jQuery('#twitter-messages-selector').bind('change', function (e) {
5678
- if (jQuery('#twitter-messages-selector').val() == 'hashtag') {
5679
- jQuery(".hashtag-option-small-text,.twitter-hashtag-etc-wrap").show();
5680
- jQuery(".hashtag-option-not-required, .must-copy-twitter-name").hide();
5681
- }
5682
- else {
5683
- jQuery(".hashtag-option-not-required, .must-copy-twitter-name").show();
5684
- jQuery(".twitter-hashtag-etc-wrap,.hashtag-option-small-text").hide();
5685
- }
5686
- });
5687
-
5688
- jQuery('#combine-twitter-messages-selector').bind('change', function (e) {
5689
- if (jQuery('#combine-twitter-messages-selector').val() == 'hashtag') {
5690
- jQuery(".combine-twitter-hashtag-etc-wrap").show();
5691
- jQuery(".combine_twitter_name").hide();
5692
- }
5693
- else {
5694
- jQuery(".combine_twitter_name").show();
5695
- jQuery(".combine-twitter-hashtag-etc-wrap").hide();
5696
- }
5697
- });
5698
-
5699
- //Twitter Grid option
5700
- jQuery('#twitter-grid-option').bind('change', function (e) {
5701
- if (jQuery('#twitter-grid-option').val() == 'yes') {
5702
- jQuery('.fts-twitter-grid-options-wrap').show();
5703
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('Center Facebook Container?', 'feed-them-social'); ?>')").parent('div').show();
5704
- }
5705
- else {
5706
- jQuery('.fts-twitter-grid-options-wrap').hide();
5707
- }
5708
- });
5709
-
5710
- //Twitter show load more options
5711
- jQuery('#twitter_load_more_option').bind('change', function (e) {
5712
- if (jQuery('#twitter_load_more_option').val() == 'yes') {
5713
- jQuery('.fts-twitter-load-more-options-wrap').show();
5714
- jQuery('.fts-twitter-load-more-options2-wrap').show();
5715
- }
5716
-
5717
- else {
5718
- jQuery('.fts-twitter-load-more-options-wrap, .fts-twitter-load-more-options2-wrap').hide();
5719
- }
5720
- });
5721
-
5722
- //youtube show load more options
5723
- jQuery('#youtube_load_more_option').bind('change', function (e) {
5724
- if (jQuery('#youtube_load_more_option').val() == 'yes') {
5725
- jQuery('.fts-youtube-load-more-options-wrap').show();
5726
- jQuery('.fts-youtube-load-more-options2-wrap').show();
5727
- }
5728
-
5729
- else {
5730
- jQuery('.fts-youtube-load-more-options-wrap, .fts-youtube-load-more-options2-wrap').hide();
5731
- }
5732
- });
5733
-
5734
- // facebook show grid options
5735
- jQuery('#fb-grid-option').bind('change', function (e) {
5736
- if (jQuery('#fb-grid-option').val() == 'yes') {
5737
- jQuery('.fts-facebook-grid-options-wrap').show();
5738
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('Center Facebook Container?', 'feed-them-social'); ?>')").parent('div').show();
5739
- }
5740
- else {
5741
- jQuery('.fts-facebook-grid-options-wrap').hide();
5742
- }
5743
- });
5744
-
5745
- // facebook Super Gallery option
5746
- jQuery('#facebook-custom-gallery').bind('change', function (e) {
5747
- if (jQuery('#facebook-custom-gallery').val() == 'yes') {
5748
- jQuery('.fts-super-facebook-options-wrap').show();
5749
- }
5750
- else {
5751
- jQuery('.fts-super-facebook-options-wrap').hide();
5752
- }
5753
- });
5754
-
5755
- //Facebook Display Popup option
5756
- jQuery('#facebook_popup').bind('change', function (e) {
5757
- if (jQuery('#facebook_popup').val() == 'yes') {
5758
- jQuery('.display-comments-wrap').show();
5759
- }
5760
- else {
5761
- jQuery('.display-comments-wrap').hide();
5762
- }
5763
- });
5764
-
5765
- // facebook show load more options
5766
- jQuery('#fb_load_more_option').bind('change', function (e) {
5767
- if (jQuery('#fb_load_more_option').val() == 'yes') {
5768
-
5769
- if (jQuery('#facebook-messages-selector').val() !== 'album_videos') {
5770
- jQuery('.fts-facebook-load-more-options-wrap').show();
5771
- }
5772
- jQuery('.fts-facebook-load-more-options2-wrap').show();
5773
- }
5774
-
5775
- else {
5776
- jQuery('.fts-facebook-load-more-options-wrap, .fts-facebook-load-more-options2-wrap').hide();
5777
- }
5778
- });
5779
- // Instagram show load more options
5780
- jQuery('#instagram_load_more_option').bind('change', function (e) {
5781
- if (jQuery('#instagram_load_more_option').val() == 'yes') {
5782
- jQuery('.fts-instagram-load-more-options-wrap').show();
5783
- }
5784
- else {
5785
- jQuery('.fts-instagram-load-more-options-wrap').hide();
5786
- }
5787
- });
5788
-
5789
-
5790
- //Combine Grid Options
5791
- jQuery('#combine_grid_option').bind('change', function (e) {
5792
- if (jQuery('#combine_grid_option').val() == 'yes') {
5793
- jQuery('.combine-grid-options-wrap ').show();
5794
- }
5795
- else {
5796
- jQuery('.combine-grid-options-wrap ').hide();
5797
- }
5798
- });
5799
-
5800
- //Combine Facebook
5801
- jQuery('select#combine_facebook').bind('change', function (e) {
5802
- if (jQuery('select#combine_facebook').val() == 'yes') {
5803
- jQuery('.combine-facebook-wrap').show();
5804
- }
5805
- else {
5806
- jQuery('.combine-facebook-wrap').hide();
5807
- }
5808
- });
5809
- //Combine Twitter
5810
- jQuery('#combine_twitter').bind('change', function (e) {
5811
- if (jQuery('#combine_twitter').val() == 'yes') {
5812
- jQuery('.combine-twitter-wrap').show();
5813
- }
5814
- else {
5815
- jQuery('.combine-twitter-wrap').hide();
5816
- }
5817
- });
5818
- //Combine Instagram
5819
- jQuery('#combine_instagram').bind('change', function (e) {
5820
- if (jQuery('#combine_instagram').val() == 'yes') {
5821
- jQuery('.combine-instagram-wrap').show();
5822
- }
5823
- else {
5824
- jQuery('.combine-instagram-wrap').hide();
5825
- }
5826
- });
5827
- //Combine Pinterest
5828
- jQuery('#combine_pinterest').bind('change', function (e) {
5829
- if (jQuery('#combine_pinterest').val() == 'yes') {
5830
- jQuery('.combine-pinterest-wrap').show();
5831
- }
5832
- else {
5833
- jQuery('.combine-pinterest-wrap').hide();
5834
- }
5835
- });
5836
- //Combine Pinterest Type Options
5837
- jQuery('#combine_pinterest_type').bind('change', function (e) {
5838
- if (jQuery('#combine_pinterest_type').val() == 'pins_from_user') {
5839
- jQuery('.combine_board_id').hide();
5840
- }
5841
- if (jQuery('#combine_pinterest_type').val() == 'single_board_pins') {
5842
- jQuery('.combine_board_id').show();
5843
- }
5844
- })
5845
- //Combine Youtube
5846
- jQuery('#combine_youtube').bind('change', function (e) {
5847
- if (jQuery('#combine_youtube').val() == 'yes') {
5848
- jQuery('.combine-youtube-wrap').show();
5849
- }
5850
- else {
5851
- jQuery('.combine-youtube-wrap').hide();
5852
- }
5853
- });
5854
- //Youtube Options
5855
- jQuery('select#combine_youtube_type').bind('change', function (e) {
5856
- if (jQuery('#combine_youtube_type').val() == 'channelID') {
5857
- jQuery('.combine_youtube_name, .combine_playlist_id').hide();
5858
- jQuery('.combine_channel_id').show();
5859
- }
5860
- else if (jQuery('#combine_youtube_type').val() == 'userPlaylist') {
5861
- jQuery('.combine_channel_id').hide();
5862
- jQuery('.combine_playlist_id, .combine_youtube_name').show();
5863
- }
5864
- else if (jQuery('#combine_youtube_type').val() == 'playlistID') {
5865
- jQuery('.combine_youtube_name').hide();
5866
- jQuery('.combine_playlist_id, .combine_channel_id').show();
5867
- }
5868
- else {
5869
- jQuery('.combine_youtube_name').show();
5870
- jQuery('.combine_playlist_id, .combine_channel_id').hide();
5871
- }
5872
- });
5873
-
5874
-
5875
- // Pinterest options
5876
- // hide this div till needed for free version
5877
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('# of Pins', 'feed-them-social'); ?>')").parent('div').hide();
5878
- jQuery('#pinterest-messages-selector').bind('change', function (e) {
5879
- if (jQuery('#pinterest-messages-selector').val() == 'boards_list') {
5880
- jQuery('.number-of-boards, .pinterest-name-text').show();
5881
- jQuery('.board-name, .show-pins-amount, .pinterest-board-and-name-text').hide();
5882
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('# of Boards', 'feed-them-social'); ?>')").parent('div').show();
5883
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('# of Pins', 'feed-them-social'); ?>')").parent('div').hide();
5884
- }
5885
- });
5886
- // Pinterest options
5887
- jQuery('#pinterest-messages-selector').bind('change', function (e) {
5888
- if (jQuery('#pinterest-messages-selector').val() == 'single_board_pins') {
5889
- jQuery('.board-name, .show-pins-amount, .pinterest-board-and-name-text').show();
5890
- jQuery('.number-of-boards, .pinterest-name-text').hide();
5891
- jQuery(".feed-them-social-admin-input-label:contains('<?php _e('# of Boards', 'feed-them-social'); ?>')").parent('div').hid