PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 2.4.2
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v2.4.2
4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.5.1 1.5.2 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.4.1 1.6.5 1.6.5.1 1.6.6 1.6.6.1 1.6.6.2 1.6.6.3 1.6.7 1.6.7.1 1.6.8 1.6.8.1 1.6.8.2 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.9.0 1.9.1 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.8.1 1.9.9 1.9.9.1 1.9.9.2 1.9.9.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.10 2.11 2.11.1 2.12 2.12.1 2.12.2 2.12.3 2.12.4 2.13 2.14 2.14.1 2.15 2.15.1 2.16 2.16.1 2.17 2.17.1 2.18 2.18.1 2.18.2 2.18.3 2.19 2.19.1 2.19.2 2.19.3 2.2 2.2.1 2.3 2.3.1 2.3.10 2.3.2 2.3.3 2.3.4 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.1.1 2.4.1.2 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 2.5.1 2.5.2 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.7.5 4.7.6 4.7.7
custom-facebook-feed / custom-facebook-feed-admin.php
custom-facebook-feed Last commit date
css 9 years ago fonts 11 years ago img 9 years ago js 10 years ago README.txt 9 years ago custom-facebook-feed-admin.php 9 years ago custom-facebook-feed.php 9 years ago gpl-2.0.txt 13 years ago
custom-facebook-feed-admin.php
3155 lines
1 <?php
2
3 function cff_menu() {
4 add_menu_page(
5 '',
6 'Facebook Feed',
7 'manage_options',
8 'cff-top',
9 'cff_settings_page'
10 );
11 add_submenu_page(
12 'cff-top',
13 'Settings',
14 'Settings',
15 'manage_options',
16 'cff-top',
17 'cff_settings_page'
18 );
19 }
20 add_action('admin_menu', 'cff_menu');
21 //Add styling page
22 function cff_styling_menu() {
23 add_submenu_page(
24 'cff-top',
25 'Customize',
26 'Customize',
27 'manage_options',
28 'cff-style',
29 'cff_style_page'
30 );
31 }
32 add_action('admin_menu', 'cff_styling_menu');
33
34 //Create Settings page
35 function cff_settings_page() {
36 //Declare variables for fields
37 $hidden_field_name = 'cff_submit_hidden';
38 $show_access_token = 'cff_show_access_token';
39 $access_token = 'cff_access_token';
40 $page_id = 'cff_page_id';
41 $cff_page_type = 'cff_page_type';
42 $num_show = 'cff_num_show';
43 $cff_post_limit = 'cff_post_limit';
44 $cff_show_others = 'cff_show_others';
45 $cff_cache_time = 'cff_cache_time';
46 $cff_cache_time_unit = 'cff_cache_time_unit';
47 $cff_locale = 'cff_locale';
48 // Read in existing option value from database
49 $show_access_token_val = get_option( $show_access_token );
50 $access_token_val = get_option( $access_token );
51 $page_id_val = get_option( $page_id );
52 $cff_page_type_val = get_option( $cff_page_type, 'page' );
53 $num_show_val = get_option( $num_show, '5' );
54 $cff_post_limit_val = get_option( $cff_post_limit );
55 $cff_show_others_val = get_option( $cff_show_others );
56 $cff_cache_time_val = get_option( $cff_cache_time, '1' );
57 $cff_cache_time_unit_val = get_option( $cff_cache_time_unit, 'hours' );
58 $cff_locale_val = get_option( $cff_locale, 'en_US' );
59
60 //Timezone
61 $defaults = array(
62 'cff_timezone' => 'America/Chicago'
63 );
64 $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
65 $cff_timezone = $options[ 'cff_timezone' ];
66
67 // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
68 if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {
69 // Read their posted value
70 isset( $_POST[ $show_access_token ] ) ? $show_access_token_val = $_POST[ $show_access_token ] : $show_access_token_val = '';
71 isset( $_POST[ $access_token ] ) ? $access_token_val = $_POST[ $access_token ] : $access_token_val = '';
72 isset( $_POST[ $page_id ] ) ? $page_id_val = $_POST[ $page_id ] : $page_id_val = '';
73 isset( $_POST[ $cff_page_type ] ) ? $cff_page_type_val = $_POST[ $cff_page_type ] : $cff_page_type_val = '';
74 isset( $_POST[ $num_show ] ) ? $num_show_val = $_POST[ $num_show ] : $num_show_val = '';
75 isset( $_POST[ $cff_post_limit ] ) ? $cff_post_limit_val = $_POST[ $cff_post_limit ] : $cff_post_limit_val = '';
76 isset( $_POST[ $cff_show_others ] ) ? $cff_show_others_val = $_POST[ $cff_show_others ] : $cff_show_others_val = '';
77 isset( $_POST[ $cff_cache_time ] ) ? $cff_cache_time_val = $_POST[ $cff_cache_time ] : $cff_cache_time_val = '';
78 isset( $_POST[ $cff_cache_time_unit ] ) ? $cff_cache_time_unit_val = $_POST[ $cff_cache_time_unit ] : $cff_cache_time_unit_val = '';
79 isset( $_POST[ $cff_locale ] ) ? $cff_locale_val = $_POST[ $cff_locale ] : $cff_locale_val = '';
80 if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = $_POST[ 'cff_timezone' ];
81
82 // Save the posted value in the database
83 update_option( $show_access_token, $show_access_token_val );
84 update_option( $access_token, $access_token_val );
85 update_option( $page_id, $page_id_val );
86 update_option( $cff_page_type, $cff_page_type_val );
87 update_option( $num_show, $num_show_val );
88 update_option( $cff_post_limit, $cff_post_limit_val );
89 update_option( $cff_show_others, $cff_show_others_val );
90 update_option( $cff_cache_time, $cff_cache_time_val );
91 update_option( $cff_cache_time_unit, $cff_cache_time_unit_val );
92 update_option( $cff_locale, $cff_locale_val );
93
94 $options[ 'cff_timezone' ] = $cff_timezone;
95 update_option( 'cff_style_settings', $options );
96
97 //Delete ALL transients
98 global $wpdb;
99 $table_name = $wpdb->prefix . "options";
100 $wpdb->query( "
101 DELETE
102 FROM $table_name
103 WHERE `option_name` LIKE ('%\_transient\_cff\_%')
104 " );
105 $wpdb->query( "
106 DELETE
107 FROM $table_name
108 WHERE `option_name` LIKE ('%\_transient\_cff\_tle\_%')
109 " );
110 $wpdb->query( "
111 DELETE
112 FROM $table_name
113 WHERE `option_name` LIKE ('%\_transient\_timeout\_cff\_%')
114 " );
115 // Put an settings updated message on the screen
116 ?>
117 <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
118 <?php } ?>
119
120 <div id="cff-admin" class="wrap">
121 <div id="header">
122 <h2><?php _e('Custom Facebook Feed Settings', 'custom-facebook-feed'); ?></h2>
123 </div>
124
125 <?php
126 $cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'configuration';
127 ?>
128 <h2 class="nav-tab-wrapper">
129 <a href="?page=cff-top&amp;tab=configuration" class="nav-tab <?php echo $cff_active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration', 'custom-facebook-feed'); ?></a>
130 <a href="?page=cff-style" class="nav-tab <?php echo $cff_active_tab == 'customize' ? 'nav-tab-active' : ''; ?>"><?php _e('Customize', 'custom-facebook-feed'); ?></a>
131 <a href="?page=cff-top&amp;tab=support" class="nav-tab <?php echo $cff_active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support', 'custom-facebook-feed'); ?></a>
132 </h2>
133
134 <?php if( $cff_active_tab == 'configuration' ) { //Start Extensions tab ?>
135
136 <form name="form1" method="post" action="">
137 <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
138 <br />
139 <h3><?php _e('Configuration', 'custom-facebook-feed'); ?></h3>
140 <table class="form-table">
141 <tbody>
142 <tr valign="top">
143 <th scope="row"><label><?php _e('Facebook Page ID<br /><i style="font-weight: normal; font-size: 12px;">ID of your Facebook Page or Group</i>', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> id
144 Eg: id="YOUR_PAGE_ID"</code></th>
145 <td>
146 <input name="cff_page_id" id="cff_page_id" type="text" value="<?php esc_attr_e( $page_id_val, 'custom-facebook-feed' ); ?>" size="45" />
147 &nbsp;<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What\'s my Page ID?', 'custom-facebook-feed'); ?></a>
148 <br /><i style="color: #666; font-size: 11px;">Eg. 1234567890123 or smashballoon</i>
149 <div class="cff-tooltip cff-more-info">
150 <ul>
151 <li><?php _e('If you have a Facebook <b>page</b> with a URL like this: <code>https://www.facebook.com/your_page_name</code> then the Page ID is just <b>your_page_name</b>. If your page URL is structured like this: <code>https://www.facebook.com/pages/your_page_name/123654123654123</code> then the Page ID is actually the number at the end, so in this case <b>123654123654123</b>.</li>', 'custom-facebook-feed'); ?>
152 <li><?php _e('If you have a Facebook <b>group</b> then use <a href="http://lookup-id.com/" target="_blank" title="Find my ID">this tool</a> to find your ID.', 'custom-facebook-feed'); ?></li>
153 <li><?php _e('You can copy and paste your ID into the <a href="https://smashballoon.com/custom-facebook-feed/demo/" target="_blank">demo</a> to test it.', 'custom-facebook-feed'); ?></li>
154 </ul>
155 </div>
156 </td>
157 </tr>
158
159 <tr valign="top">
160 <th scope="row" style="padding-bottom: 10px;"><?php _e('Enter my own Access Token <i style="font-weight: normal; font-size: 12px;">This is Recommended</i>', 'custom-facebook-feed'); ?></th>
161 <td>
162 <input name="cff_show_access_token" type="checkbox" id="cff_show_access_token" <?php if($show_access_token_val == true) echo "checked"; ?> />&nbsp;<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e("What is this?", 'custom-facebook-feed'); ?></a>
163 <p class="cff-tooltip cff-more-info"><?php _e("A Facebook Access Token is not required to use this plugin, but we recommend it so that you're not reliant on the token built into the plugin. If you have your own token then you can check this box and enter it here. To get your own Access Token you can follow these <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>step-by-step instructions</a>", 'custom-facebook-feed'); ?>.</p>
164 </td>
165 </tr>
166
167 <tr valign="top" class="cff-access-token-hidden">
168 <th scope="row" style="padding-bottom: 10px;"><?php _e('Facebook Access Token', 'custom-facebook-feed'); ?></th>
169 <td>
170 <input name="cff_access_token" id="cff_access_token" type="text" value="<?php esc_attr_e( $access_token_val, 'custom-facebook-feed' ); ?>" size="45" />
171
172 <div class="cff-notice cff-profile-error cff-access-token">
173 <?php _e("<p>This doesn't appear to be an Access Token. Please be sure that you didn't enter your App Secret instead of your Access Token.<br />Your App ID and App Secret are used to obtain your Access Token; simply paste them into the fields in the last step of the <a href='https://smashballoon.com/custom-facebook-feed/access-token/' target='_blank'>Access Token instructions</a> and click '<b>Get my Access Token</b>'.</p>", 'custom-facebook-feed'); ?>
174 </div>
175 </td>
176 </tr>
177 </tbody>
178 </table>
179 <hr />
180 <table class="form-table">
181 <tbody>
182 <h3><?php _e('Settings', 'custom-facebook-feed'); ?></h3>
183 <tr valign="top" class="cff-page-type">
184 <th scope="row"><label><?php _e('Is this a page, group or profile?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> pagetype
185 Eg: pagetype=group</code></th>
186 <td>
187 <select name="cff_page_type">
188 <option value="page" <?php if($cff_page_type_val == "page") echo 'selected="selected"' ?> ><?php _e('Page', 'custom-facebook-feed'); ?></option>
189 <option value="group" <?php if($cff_page_type_val == "group") echo 'selected="selected"' ?> ><?php _e('Group', 'custom-facebook-feed'); ?></option>
190 <option value="profile" <?php if($cff_page_type_val == "profile") echo 'selected="selected"' ?> ><?php _e('Profile', 'custom-facebook-feed'); ?></option>
191 </select>
192 <div class="cff-notice cff-profile-error cff-page-type">
193 <?php _e("<p>Due to Facebook's privacy policy you're not able to display posts from a personal profile, only from a public page or group.</p><p>If you're using a profile to represent a business, organization, product, public figure or the like, then Facebook recommends <a href='http://www.facebook.com/help/175644189234902/' target='_blank'>converting your profile to a page</a>. There are many advantages to using pages over profiles, and once you've converted then the plugin will be able to successfully retrieve and display all of your posts.</p>", 'custom-facebook-feed'); ?>
194 </div>
195 </td>
196 </tr>
197
198 <tr valign="top" class="cff-page-options">
199 <th scope="row"><label><?php _e('Show posts on my page by:', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showpostsby
200 Eg: showpostsby=others</code></th>
201 <td>
202 <select name="cff_show_others" id="cff_show_others" style="width: 250px;">
203 <option value="me" <?php if($cff_show_others_val == 'me') echo 'selected="selected"' ?> ><?php _e('Only the page owner (me)', 'custom-facebook-feed'); ?></option>
204 <option value="others" <?php if($cff_show_others_val == 'others' || $cff_show_others_val == 'on') echo 'selected="selected"' ?> ><?php _e('Page owner + other people', 'custom-facebook-feed'); ?></option>
205 <option value="onlyothers" <?php if($cff_show_others_val == 'onlyothers') echo 'selected="selected"' ?> ><?php _e('Only other people', 'custom-facebook-feed'); ?></option>
206 </select>
207
208 <p id="cff-others-only" style="font-size: 12px;"><b>Note:</b> Only displaying posts by other people works by retrieving your posts from Facebook and then filtering out the posts by the page owner. If this option doesn't display many posts then you can retrieve more by setting the post limit option (below) to a higher number (a number 15-20 greater than the number of posts you want to display).</p>
209
210 </td>
211 </tr>
212
213 <tr valign="top">
214 <th scope="row"><label><?php _e('Number of posts to display', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> num
215 Eg: num=5</code></th>
216 <td>
217 <input name="cff_num_show" type="text" value="<?php esc_attr_e( $num_show_val, 'custom-facebook-feed' ); ?>" size="4" />
218 <i style="color: #666; font-size: 11px;">Eg. 5</i>
219 </td>
220 </tr>
221 <tr valign="top">
222 <th scope="row"><label><?php _e('Change the post limit', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> limit
223 Eg: limit=10</code></th>
224 <td>
225 <input name="cff_post_limit" type="text" value="<?php esc_attr_e( $cff_post_limit_val, 'custom-facebook-feed' ); ?>" size="4" />
226 <i style="color: #666; font-size: 11px;">Eg. 20</i> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
227 <p class="cff-tooltip cff-more-info"><?php _e("Most users don't need to change the post lmit. The 'limit' is the number of posts retrieved from the Facebook API. By default the plugin retrieves 7 posts more from the Facebook API than you specify in the 'Number of posts to display' field above, as some posts are filtered out. You can alter how many posts are retrieved by manually setting this value. If you choose to retrieve a high number of posts then it will take longer for Facebook to return the posts when the plugin checks for new ones.", 'custom-facebook-feed'); ?></p>
228 </td>
229 </tr>
230 <tr valign="top">
231 <th scope="row"><?php _e('Check for new Facebook posts every', 'custom-facebook-feed'); ?></th>
232 <td>
233 <input name="cff_cache_time" type="text" value="<?php esc_attr_e( $cff_cache_time_val, 'custom-facebook-feed' ); ?>" size="4" />
234 <select name="cff_cache_time_unit">
235 <option value="minutes" <?php if($cff_cache_time_unit_val == "minutes") echo 'selected="selected"' ?> ><?php _e('Minutes', 'custom-facebook-feed'); ?></option>
236 <option value="hours" <?php if($cff_cache_time_unit_val == "hours") echo 'selected="selected"' ?> ><?php _e('Hours', 'custom-facebook-feed'); ?></option>
237 <option value="days" <?php if($cff_cache_time_unit_val == "days") echo 'selected="selected"' ?> ><?php _e('Days', 'custom-facebook-feed'); ?></option>
238 </select>
239 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
240 <p class="cff-tooltip cff-more-info"><?php _e('Your Facebook posts and comments data is temporarily cached by the plugin in your WordPress database. You can choose how long this data should be cached for. If you set the time to 60 minutes then the plugin will clear the cached data after that length of time, and the next time the page is viewed it will check for new data.', 'custom-facebook-feed'); ?></p>
241 </td>
242 </tr>
243
244 <tr valign="top">
245 <th scope="row"><label><?php _e('Localization', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> locale
246 Eg: locale=es_ES</code></th>
247 <td>
248 <select name="cff_locale">
249 <option value="af_ZA" <?php if($cff_locale_val == "af_ZA") echo 'selected="selected"' ?> ><?php _e('Afrikaans', 'custom-facebook-feed'); ?></option>
250 <option value="ar_AR" <?php if($cff_locale_val == "ar_AR") echo 'selected="selected"' ?> ><?php _e('Arabic', 'custom-facebook-feed'); ?></option>
251 <option value="az_AZ" <?php if($cff_locale_val == "az_AZ") echo 'selected="selected"' ?> ><?php _e('Azerbaijani', 'custom-facebook-feed'); ?></option>
252 <option value="be_BY" <?php if($cff_locale_val == "be_BY") echo 'selected="selected"' ?> ><?php _e('Belarusian', 'custom-facebook-feed'); ?></option>
253 <option value="bg_BG" <?php if($cff_locale_val == "bg_BG") echo 'selected="selected"' ?> ><?php _e('Bulgarian', 'custom-facebook-feed'); ?></option>
254 <option value="bn_IN" <?php if($cff_locale_val == "bn_IN") echo 'selected="selected"' ?> ><?php _e('Bengali', 'custom-facebook-feed'); ?></option>
255 <option value="bs_BA" <?php if($cff_locale_val == "bs_BA") echo 'selected="selected"' ?> ><?php _e('Bosnian', 'custom-facebook-feed'); ?></option>
256 <option value="ca_ES" <?php if($cff_locale_val == "ca_ES") echo 'selected="selected"' ?> ><?php _e('Catalan', 'custom-facebook-feed'); ?></option>
257 <option value="cs_CZ" <?php if($cff_locale_val == "cs_CZ") echo 'selected="selected"' ?> ><?php _e('Czech', 'custom-facebook-feed'); ?></option>
258 <option value="cy_GB" <?php if($cff_locale_val == "cy_GB") echo 'selected="selected"' ?> ><?php _e('Welsh', 'custom-facebook-feed'); ?></option>
259 <option value="da_DK" <?php if($cff_locale_val == "da_DK") echo 'selected="selected"' ?> ><?php _e('Danish', 'custom-facebook-feed'); ?></option>
260 <option value="de_DE" <?php if($cff_locale_val == "de_DE") echo 'selected="selected"' ?> ><?php _e('German', 'custom-facebook-feed'); ?></option>
261 <option value="el_GR" <?php if($cff_locale_val == "el_GR") echo 'selected="selected"' ?> ><?php _e('Greek', 'custom-facebook-feed'); ?></option>
262 <option value="en_GB" <?php if($cff_locale_val == "en_GB") echo 'selected="selected"' ?> ><?php _e('English (UK)', 'custom-facebook-feed'); ?></option>
263 <option value="en_PI" <?php if($cff_locale_val == "en_PI") echo 'selected="selected"' ?> ><?php _e('English (Pirate)', 'custom-facebook-feed'); ?></option>
264 <option value="en_UD" <?php if($cff_locale_val == "en_UD") echo 'selected="selected"' ?> ><?php _e('English (Upside Down)', 'custom-facebook-feed'); ?></option>
265 <option value="en_US" <?php if($cff_locale_val == "en_US") echo 'selected="selected"' ?> ><?php _e('English (US)', 'custom-facebook-feed'); ?></option>
266 <option value="eo_EO" <?php if($cff_locale_val == "eo_EO") echo 'selected="selected"' ?> ><?php _e('Esperanto', 'custom-facebook-feed'); ?></option>
267 <option value="es_ES" <?php if($cff_locale_val == "es_ES") echo 'selected="selected"' ?> ><?php _e('Spanish (Spain)', 'custom-facebook-feed'); ?></option>
268 <option value="es_LA" <?php if($cff_locale_val == "es_LA") echo 'selected="selected"' ?> ><?php _e('Spanish', 'custom-facebook-feed'); ?></option>
269 <option value="et_EE" <?php if($cff_locale_val == "et_EE") echo 'selected="selected"' ?> ><?php _e('Estonian', 'custom-facebook-feed'); ?></option>
270 <option value="eu_ES" <?php if($cff_locale_val == "eu_ES") echo 'selected="selected"' ?> ><?php _e('Basque', 'custom-facebook-feed'); ?></option>
271 <option value="fa_IR" <?php if($cff_locale_val == "fa_IR") echo 'selected="selected"' ?> ><?php _e('Persian', 'custom-facebook-feed'); ?></option>
272 <option value="fb_LT" <?php if($cff_locale_val == "fb_LT") echo 'selected="selected"' ?> ><?php _e('Leet Speak', 'custom-facebook-feed'); ?></option>
273 <option value="fi_FI" <?php if($cff_locale_val == "fi_FI") echo 'selected="selected"' ?> ><?php _e('Finnish', 'custom-facebook-feed'); ?></option>
274 <option value="fo_FO" <?php if($cff_locale_val == "fo_FO") echo 'selected="selected"' ?> ><?php _e('Faroese', 'custom-facebook-feed'); ?></option>
275 <option value="fr_CA" <?php if($cff_locale_val == "fr_CA") echo 'selected="selected"' ?> ><?php _e('French (Canada)', 'custom-facebook-feed'); ?></option>
276 <option value="fr_FR" <?php if($cff_locale_val == "fr_FR") echo 'selected="selected"' ?> ><?php _e('French (France)', 'custom-facebook-feed'); ?></option>
277 <option value="fy_NL" <?php if($cff_locale_val == "fy_NL") echo 'selected="selected"' ?> ><?php _e('Frisian', 'custom-facebook-feed'); ?></option>
278 <option value="ga_IE" <?php if($cff_locale_val == "ga_IE") echo 'selected="selected"' ?> ><?php _e('Irish', 'custom-facebook-feed'); ?></option>
279 <option value="gl_ES" <?php if($cff_locale_val == "gl_ES") echo 'selected="selected"' ?> ><?php _e('Galician', 'custom-facebook-feed'); ?></option>
280 <option value="he_IL" <?php if($cff_locale_val == "he_IL") echo 'selected="selected"' ?> ><?php _e('Hebrew', 'custom-facebook-feed'); ?></option>
281 <option value="hi_IN" <?php if($cff_locale_val == "hi_IN") echo 'selected="selected"' ?> ><?php _e('Hindi', 'custom-facebook-feed'); ?></option>
282 <option value="hr_HR" <?php if($cff_locale_val == "hr_HR") echo 'selected="selected"' ?> ><?php _e('Croatian', 'custom-facebook-feed'); ?></option>
283 <option value="hu_HU" <?php if($cff_locale_val == "hu_HU") echo 'selected="selected"' ?> ><?php _e('Hungarian', 'custom-facebook-feed'); ?></option>
284 <option value="hy_AM" <?php if($cff_locale_val == "hy_AM") echo 'selected="selected"' ?> ><?php _e('Armenian', 'custom-facebook-feed'); ?></option>
285 <option value="id_ID" <?php if($cff_locale_val == "id_ID") echo 'selected="selected"' ?> ><?php _e('Indonesian', 'custom-facebook-feed'); ?></option>
286 <option value="is_IS" <?php if($cff_locale_val == "is_IS") echo 'selected="selected"' ?> ><?php _e('Icelandic', 'custom-facebook-feed'); ?></option>
287 <option value="it_IT" <?php if($cff_locale_val == "it_IT") echo 'selected="selected"' ?> ><?php _e('Italian', 'custom-facebook-feed'); ?></option>
288 <option value="ja_JP" <?php if($cff_locale_val == "ja_JP") echo 'selected="selected"' ?> ><?php _e('Japanese', 'custom-facebook-feed'); ?></option>
289 <option value="ka_GE" <?php if($cff_locale_val == "ka_GE") echo 'selected="selected"' ?> ><?php _e('Georgian', 'custom-facebook-feed'); ?></option>
290 <option value="km_KH" <?php if($cff_locale_val == "km_KH") echo 'selected="selected"' ?> ><?php _e('Khmer', 'custom-facebook-feed'); ?></option>
291 <option value="ko_KR" <?php if($cff_locale_val == "ko_KR") echo 'selected="selected"' ?> ><?php _e('Korean', 'custom-facebook-feed'); ?></option>
292 <option value="ku_TR" <?php if($cff_locale_val == "ku_TR") echo 'selected="selected"' ?> ><?php _e('Kurdish', 'custom-facebook-feed'); ?></option>
293 <option value="la_VA" <?php if($cff_locale_val == "la_VA") echo 'selected="selected"' ?> ><?php _e('Latin', 'custom-facebook-feed'); ?></option>
294 <option value="lt_LT" <?php if($cff_locale_val == "lt_LT") echo 'selected="selected"' ?> ><?php _e('Lithuanian', 'custom-facebook-feed'); ?></option>
295 <option value="lv_LV" <?php if($cff_locale_val == "lv_LV") echo 'selected="selected"' ?> ><?php _e('Latvian', 'custom-facebook-feed'); ?></option>
296 <option value="mk_MK" <?php if($cff_locale_val == "mk_MK") echo 'selected="selected"' ?> ><?php _e('Macedonian', 'custom-facebook-feed'); ?></option>
297 <option value="ml_IN" <?php if($cff_locale_val == "ml_IN") echo 'selected="selected"' ?> ><?php _e('Malayalam', 'custom-facebook-feed'); ?></option>
298 <option value="ms_MY" <?php if($cff_locale_val == "ms_MY") echo 'selected="selected"' ?> ><?php _e('Malay', 'custom-facebook-feed'); ?></option>
299 <option value="nb_NO" <?php if($cff_locale_val == "nb_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (bokmal)', 'custom-facebook-feed'); ?></option>
300 <option value="ne_NP" <?php if($cff_locale_val == "ne_NP") echo 'selected="selected"' ?> ><?php _e('Nepali', 'custom-facebook-feed'); ?></option>
301 <option value="nl_NL" <?php if($cff_locale_val == "nl_NL") echo 'selected="selected"' ?> ><?php _e('Dutch', 'custom-facebook-feed'); ?></option>
302 <option value="nn_NO" <?php if($cff_locale_val == "nn_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (nynorsk)', 'custom-facebook-feed'); ?></option>
303 <option value="pa_IN" <?php if($cff_locale_val == "pa_IN") echo 'selected="selected"' ?> ><?php _e('Punjabi', 'custom-facebook-feed'); ?></option>
304 <option value="pl_PL" <?php if($cff_locale_val == "pl_PL") echo 'selected="selected"' ?> ><?php _e('Polish', 'custom-facebook-feed'); ?></option>
305 <option value="ps_AF" <?php if($cff_locale_val == "ps_AF") echo 'selected="selected"' ?> ><?php _e('Pashto', 'custom-facebook-feed'); ?></option>
306 <option value="pt_BR" <?php if($cff_locale_val == "pt_BR") echo 'selected="selected"' ?> ><?php _e('Portuguese (Brazil)', 'custom-facebook-feed'); ?></option>
307 <option value="pt_PT" <?php if($cff_locale_val == "pt_PT") echo 'selected="selected"' ?> ><?php _e('Portuguese (Portugal)', 'custom-facebook-feed'); ?></option>
308 <option value="ro_RO" <?php if($cff_locale_val == "ro_RO") echo 'selected="selected"' ?> ><?php _e('Romanian', 'custom-facebook-feed'); ?></option>
309 <option value="ru_RU" <?php if($cff_locale_val == "ru_RU") echo 'selected="selected"' ?> ><?php _e('Russian', 'custom-facebook-feed'); ?></option>
310 <option value="sk_SK" <?php if($cff_locale_val == "sk_SK") echo 'selected="selected"' ?> ><?php _e('Slovak', 'custom-facebook-feed'); ?></option>
311 <option value="sl_SI" <?php if($cff_locale_val == "sl_SI") echo 'selected="selected"' ?> ><?php _e('Slovenian', 'custom-facebook-feed'); ?></option>
312 <option value="sq_AL" <?php if($cff_locale_val == "sq_AL") echo 'selected="selected"' ?> ><?php _e('Albanian', 'custom-facebook-feed'); ?></option>
313 <option value="sr_RS" <?php if($cff_locale_val == "sr_RS") echo 'selected="selected"' ?> ><?php _e('Serbian', 'custom-facebook-feed'); ?></option>
314 <option value="sv_SE" <?php if($cff_locale_val == "sv_SE") echo 'selected="selected"' ?> ><?php _e('Swedish', 'custom-facebook-feed'); ?></option>
315 <option value="sw_KE" <?php if($cff_locale_val == "sw_KE") echo 'selected="selected"' ?> ><?php _e('Swahili', 'custom-facebook-feed'); ?></option>
316 <option value="ta_IN" <?php if($cff_locale_val == "ta_IN") echo 'selected="selected"' ?> ><?php _e('Tamil', 'custom-facebook-feed'); ?></option>
317 <option value="te_IN" <?php if($cff_locale_val == "te_IN") echo 'selected="selected"' ?> ><?php _e('Telugu', 'custom-facebook-feed'); ?></option>
318 <option value="th_TH" <?php if($cff_locale_val == "th_TH") echo 'selected="selected"' ?> ><?php _e('Thai', 'custom-facebook-feed'); ?></option>
319 <option value="tl_PH" <?php if($cff_locale_val == "tl_PH") echo 'selected="selected"' ?> ><?php _e('Filipino', 'custom-facebook-feed'); ?></option>
320 <option value="tr_TR" <?php if($cff_locale_val == "tr_TR") echo 'selected="selected"' ?> ><?php _e('Turkish', 'custom-facebook-feed'); ?></option>
321 <option value="uk_UA" <?php if($cff_locale_val == "uk_UA") echo 'selected="selected"' ?> ><?php _e('Ukrainian', 'custom-facebook-feed'); ?></option>
322 <option value="vi_VN" <?php if($cff_locale_val == "vi_VN") echo 'selected="selected"' ?> ><?php _e('Vietnamese', 'custom-facebook-feed'); ?></option>
323 <option value="zh_CN" <?php if($cff_locale_val == "zh_CN") echo 'selected="selected"' ?> ><?php _e('Simplified Chinese (China)', 'custom-facebook-feed'); ?></option>
324 <option value="zh_HK" <?php if($cff_locale_val == "zh_HK") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Hong Kong)', 'custom-facebook-feed'); ?></option>
325 <option value="zh_TW" <?php if($cff_locale_val == "zh_TW") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Taiwan)', 'custom-facebook-feed'); ?></option>
326 </select>
327 <i style="color: #666; font-size: 11px;"><?php _e('Select a language', 'custom-facebook-feed'); ?></i>
328 </td>
329 </tr>
330
331 <tr>
332 <th><label for="cff_timezone" class="bump-left"><?php _e('Timezone', 'custom-facebook-feed'); ?></label></th>
333 <td>
334 <select name="cff_timezone" style="width: 300px;">
335 <option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa', 'custom-facebook-feed'); ?></option>
336 <option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian', 'custom-facebook-feed'); ?></option>
337 <option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii', 'custom-facebook-feed'); ?></option>
338 <option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands', 'custom-facebook-feed'); ?></option>
339 <option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands', 'custom-facebook-feed'); ?></option>
340 <option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska', 'custom-facebook-feed'); ?></option>
341 <option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California', 'custom-facebook-feed'); ?></option>
342 <option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands', 'custom-facebook-feed'); ?></option>
343 <option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)', 'custom-facebook-feed'); ?></option>
344 <option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)', 'custom-facebook-feed'); ?></option>
345 <option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan', 'custom-facebook-feed'); ?></option>
346 <option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona', 'custom-facebook-feed'); ?></option>
347 <option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America', 'custom-facebook-feed'); ?></option>
348 <option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey', 'custom-facebook-feed'); ?></option>
349 <option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island', 'custom-facebook-feed'); ?></option>
350 <option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)', 'custom-facebook-feed'); ?></option>
351 <option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)', 'custom-facebook-feed'); ?></option>
352 <option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba', 'custom-facebook-feed'); ?></option>
353 <option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco', 'custom-facebook-feed'); ?></option>
354 <option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas', 'custom-facebook-feed'); ?></option>
355 <option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago', 'custom-facebook-feed'); ?></option>
356 <option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz', 'custom-facebook-feed'); ?></option>
357 <option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands', 'custom-facebook-feed'); ?></option>
358 <option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil', 'custom-facebook-feed'); ?></option>
359 <option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)', 'custom-facebook-feed'); ?></option>
360 <option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)', 'custom-facebook-feed'); ?></option>
361 <option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland', 'custom-facebook-feed'); ?></option>
362 <option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3', 'custom-facebook-feed'); ?></option>
363 <option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo', 'custom-facebook-feed'); ?></option>
364 <option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre', 'custom-facebook-feed'); ?></option>
365 <option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland', 'custom-facebook-feed'); ?></option>
366 <option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires', 'custom-facebook-feed'); ?></option>
367 <option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia', 'custom-facebook-feed'); ?></option>
368 <option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic', 'custom-facebook-feed'); ?></option>
369 <option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.', 'custom-facebook-feed'); ?></option>
370 <option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores', 'custom-facebook-feed'); ?></option>
371 <option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast', 'custom-facebook-feed'); ?></option>
372 <option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin', 'custom-facebook-feed'); ?></option>
373 <option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon', 'custom-facebook-feed'); ?></option>
374 <option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London', 'custom-facebook-feed'); ?></option>
375 <option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik', 'custom-facebook-feed'); ?></option>
376 <option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', 'custom-facebook-feed'); ?></option>
377 <option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'custom-facebook-feed'); ?></option>
378 <option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris', 'custom-facebook-feed'); ?></option>
379 <option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa', 'custom-facebook-feed'); ?></option>
380 <option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek', 'custom-facebook-feed'); ?></option>
381 <option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut', 'custom-facebook-feed'); ?></option>
382 <option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo', 'custom-facebook-feed'); ?></option>
383 <option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza', 'custom-facebook-feed'); ?></option>
384 <option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria', 'custom-facebook-feed'); ?></option>
385 <option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem', 'custom-facebook-feed'); ?></option>
386 <option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk', 'custom-facebook-feed'); ?></option>
387 <option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria', 'custom-facebook-feed'); ?></option>
388 <option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd', 'custom-facebook-feed'); ?></option>
389 <option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi', 'custom-facebook-feed'); ?></option>
390 <option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran', 'custom-facebook-feed'); ?></option>
391 <option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat', 'custom-facebook-feed'); ?></option>
392 <option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan', 'custom-facebook-feed'); ?></option>
393 <option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul', 'custom-facebook-feed'); ?></option>
394 <option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg', 'custom-facebook-feed'); ?></option>
395 <option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent', 'custom-facebook-feed'); ?></option>
396 <option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', 'custom-facebook-feed'); ?></option>
397 <option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu', 'custom-facebook-feed'); ?></option>
398 <option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka', 'custom-facebook-feed'); ?></option>
399 <option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk', 'custom-facebook-feed'); ?></option>
400 <option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)', 'custom-facebook-feed'); ?></option>
401 <option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta', 'custom-facebook-feed'); ?></option>
402 <option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk', 'custom-facebook-feed'); ?></option>
403 <option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', 'custom-facebook-feed'); ?></option>
404 <option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar', 'custom-facebook-feed'); ?></option>
405 <option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth', 'custom-facebook-feed'); ?></option>
406 <option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla', 'custom-facebook-feed'); ?></option>
407 <option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo', 'custom-facebook-feed'); ?></option>
408 <option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul', 'custom-facebook-feed'); ?></option>
409 <option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk', 'custom-facebook-feed'); ?></option>
410 <option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide', 'custom-facebook-feed'); ?></option>
411 <option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin', 'custom-facebook-feed'); ?></option>
412 <option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane', 'custom-facebook-feed'); ?></option>
413 <option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Sydney', 'custom-facebook-feed'); ?></option>
414 <option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok', 'custom-facebook-feed'); ?></option>
415 <option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island', 'custom-facebook-feed'); ?></option>
416 <option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia', 'custom-facebook-feed'); ?></option>
417 <option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan', 'custom-facebook-feed'); ?></option>
418 <option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island', 'custom-facebook-feed'); ?></option>
419 <option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka', 'custom-facebook-feed'); ?></option>
420 <option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington', 'custom-facebook-feed'); ?></option>
421 <option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.', 'custom-facebook-feed'); ?></option>
422 <option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands', 'custom-facebook-feed'); ?></option>
423 <option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa', 'custom-facebook-feed'); ?></option>
424 <option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati', 'custom-facebook-feed'); ?></option>
425 </select>
426 </td>
427 </tr>
428
429 </tbody>
430 </table>
431 <?php submit_button(); ?>
432 <p>Having trouble using the plugin? Check out the <a href='admin.php?page=cff-top&amp;tab=support'>Support</a> tab.</p>
433 </form>
434 <hr />
435 <h3><?php _e('Displaying your Feed', 'custom-facebook-feed'); ?></h3>
436 <p><?php _e("Copy and paste this shortcode directly into the page, post or widget where you'd like the feed to show up:", 'custom-facebook-feed'); ?></p>
437 <input type="text" value="[custom-facebook-feed]" size="22" readonly="readonly" onclick="this.focus();this.select()" title="<?php _e('To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac).', 'custom-facebook-feed'); ?>" />
438 <hr />
439 <h3><?php _e('Customizing your Feed', 'custom-facebook-feed'); ?></h3>
440 <p><?php _e("Use the <a href='admin.php?page=cff-style'>Customize</a> page to customize your feed. If you're displaying <b>multiple feeds</b> then you can override your settings and customizations by using options directly in the shortcode, like so:", 'custom-facebook-feed'); ?></p>
441 <p>[custom-facebook-feed id=some-other-page-id num=3 height=500px]</p>
442 <p><a href="https://smashballoon.com/custom-facebook-feed/docs/shortcodes/" target="_blank"><?php _e('See a full list of shortcode options', 'custom-facebook-feed'); ?></a></p>
443
444 <br />
445 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
446
447 <hr />
448 <h3><?php _e('Like the plugin? Help spread the word!', 'custom-facebook-feed'); ?></h3>
449
450 <!-- TWITTER -->
451 <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://wordpress.org/plugins/custom-facebook-feed/" data-text="Display your Facebook posts on your site your way using the Custom Facebook Feed WordPress plugin!" data-via="smashballoon" data-dnt="true">Tweet</a>
452 <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
453 <style type="text/css">
454 #twitter-widget-0{ float: left; width: 100px !important; }
455 .IN-widget{ margin-right: 20px; }
456 </style>
457
458 <!-- FACEBOOK -->
459 <div id="fb-root" style="display: none;"></div>
460 <script>(function(d, s, id) {
461 var js, fjs = d.getElementsByTagName(s)[0];
462 if (d.getElementById(id)) return;
463 js = d.createElement(s); js.id = id;
464 js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=640861236031365&version=v2.0";
465 fjs.parentNode.insertBefore(js, fjs);
466 }(document, 'script', 'facebook-jssdk'));</script>
467 <div class="fb-like" data-href="https://wordpress.org/plugins/custom-facebook-feed/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true" style="display: block; float: left; margin-right: 20px;"></div>
468
469 <!-- LINKEDIN -->
470 <script src="//platform.linkedin.com/in.js" type="text/javascript">
471 lang: en_US
472 </script>
473 <script type="IN/Share" data-url="https://wordpress.org/plugins/custom-facebook-feed/"></script>
474
475 <!-- GOOGLE + -->
476 <script src="https://apis.google.com/js/platform.js" async defer></script>
477 <div class="g-plusone" data-size="medium" data-href="https://wordpress.org/plugins/custom-facebook-feed/"></div>
478
479 <?php } //End config tab ?>
480
481
482 <?php if( $cff_active_tab == 'support' ) { //Start Support tab ?>
483
484 <br />
485 <h3>Documentation</h3>
486 <p>Need help setting up, configuring or customizing the plugin? Check out the links below:</p>
487 <ul>
488 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/free/" target="_blank">Installation and Configuration</a>', 'custom-facebook-feed'); ?></li>
489 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/shortcodes/" target="_blank">Shortcode Reference</a>', 'custom-facebook-feed'); ?></li>
490 <li>- <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/customizations/snippets/?cat=18" target="_blank">Custom CSS and JavaScript Snippets</a>', 'custom-facebook-feed'); ?></li>
491 </ul>
492 <br />
493 <h3><?php _e('FAQs and Troubleshooting', 'custom-facebook-feed'); ?></h3>
494 <p>Having trouble getting the plugin to work? Try the links below:</p>
495 <ul>
496 <li>- <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/faq/?cat=18" target="_blank">General Questions</a>', 'custom-facebook-feed'); ?></li>
497 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/faq/setup/" target="_blank">Setting Up &amp; Displaying your Feed</a>', 'custom-facebook-feed'); ?></li>
498 <li>- <?php _e('<a href="https://smashballoon.com/category/custom-facebook-feed/troubleshooting/?cat=18" target="_blank">Troubleshooting &amp; Common Support Questions</a>', 'custom-facebook-feed'); ?></li>
499 </ul>
500
501 <br />
502 <p><?php _e('Still need help? <a href="http://smashballoon.com/custom-facebook-feed/support/" target="_blank">Request support</a>. Please include your <b>System Info</b> below with all support requests.', 'custom-facebook-feed'); ?></p>
503
504 <br />
505 <h3><?php _e('System Info &nbsp; <i style="color: #666; font-size: 11px; font-weight: normal;">Click the text below to select all</i>', 'custom-facebook-feed'); ?></h3>
506
507 <?php
508 $access_token = get_option( $access_token );
509 if ( $access_token == '' || empty($access_token) ) $access_token = '611606915581035|RdRHbHtrHseQw4C7SDUBFWIrJLA';
510 ?>
511 <?php $posts_json = cff_fetchUrl("https://graph.facebook.com/".get_option( trim($page_id) )."/feed?access_token=". trim($access_token) ."&limit=1"); ?>
512
513
514 <textarea readonly="readonly" onclick="this.focus();this.select()" title="To copy, click the field then press Ctrl + C (PC) or Cmd + C (Mac)." style="width: 70%; height: 500px; white-space: pre; font-family: Menlo,Monaco,monospace;">
515 ## SITE/SERVER INFO: ##
516 Site URL: <?php echo site_url() . "\n"; ?>
517 Home URL: <?php echo home_url() . "\n"; ?>
518 WordPress Version: <?php echo get_bloginfo( 'version' ) . "\n"; ?>
519 PHP Version: <?php echo PHP_VERSION . "\n"; ?>
520 Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
521 PHP allow_url_fopen: <?php echo ini_get( 'allow_url_fopen' ) ? "Yes" . "\n" : "No" . "\n"; ?>
522 PHP cURL: <?php echo is_callable('curl_init') ? "Yes" . "\n" : "No" . "\n"; ?>
523 JSON: <?php echo function_exists("json_decode") ? "Yes" . "\n" : "No" . "\n" ?>
524 SSL Stream: <?php echo in_array('https', stream_get_wrappers()) ? "Yes" . "\n" : "No" . "\n" ?>
525
526 ## ACTIVE PLUGINS: ##
527 <?php
528 $plugins = get_plugins();
529 $active_plugins = get_option( 'active_plugins', array() );
530
531 foreach ( $plugins as $plugin_path => $plugin ) {
532 // If the plugin isn't active, don't show it.
533 if ( ! in_array( $plugin_path, $active_plugins ) )
534 continue;
535
536 echo $plugin['Name'] . ': ' . $plugin['Version'] ."\n";
537 }
538 ?>
539
540 ## PLUGIN SETTINGS: ##
541 Use own Access Token: <?php echo get_option( 'cff_show_access_token' ) ."\n"; ?>
542 Access Token: <?php echo get_option( 'cff_access_token' ) ."\n"; ?>
543 Page ID: <?php echo get_option( 'cff_page_id' ) ."\n"; ?>
544 Page Type: <?php echo get_option( 'cff_page_type' ) ."\n"; ?>
545 Number of Posts: <?php echo get_option( 'cff_num_show' ) ."\n"; ?>
546 Post Limit: <?php echo get_option( 'cff_post_limit' ) ."\n"; ?>
547 Show Posts by: <?php echo get_option( 'cff_show_others' ) ."\n"; ?>
548 Cache Time: <?php echo get_option( 'cff_cache_time' ) ."\n"; ?>
549 Cache Unit: <?php echo get_option( 'cff_cache_time_unit' ) ."\n"; ?>
550 Locale: <?php echo get_option( 'cff_locale' ) ."\n"; ?>
551 Timezone: <?php $options = get_option( 'cff_style_settings', array() );
552 echo $options[ 'cff_timezone' ] ."\n"; ?>
553
554
555 ## CUSTOMIZE: ##
556 cff_ajax => <?php echo get_option('cff_ajax') ."\n"; ?>
557 cff_preserve_settings => <?php echo get_option('cff_preserve_settings') ."\n"; ?>
558 cff_title_length => <?php echo get_option('cff_title_length') ."\n"; ?>
559 cff_body_length => <?php echo get_option('cff_body_length') ."\n"; ?>
560 <?php
561 while (list($key, $val) = each($options)) {
562 echo "$key => $val\n";
563 }
564 ?>
565
566 ## FACEBOOK API RESPONSE: ##
567 <?php echo $posts_json; ?>
568 </textarea>
569
570 <?php } ?>
571
572
573 <?php
574 } //End Settings_Page
575 //Create Style page
576 function cff_style_page() {
577 //Declare variables for fields
578 $style_hidden_field_name = 'cff_style_submit_hidden';
579 $style_general_hidden_field_name = 'cff_style_general_submit_hidden';
580 $style_post_layout_hidden_field_name = 'cff_style_post_layout_submit_hidden';
581 $style_typography_hidden_field_name = 'cff_style_typography_submit_hidden';
582 $style_misc_hidden_field_name = 'cff_style_misc_submit_hidden';
583 $style_custom_text_hidden_field_name = 'cff_style_custom_text_submit_hidden';
584
585 //Defaults need to be here on the Settings page so that they're saved when the initial settings are saved
586 $defaults = array(
587 //Post types
588 'cff_show_links_type' => true,
589 'cff_show_event_type' => true,
590 'cff_show_video_type' => true,
591 'cff_show_photos_type' => true,
592 'cff_show_status_type' => true,
593 //Layout
594 'cff_preset_layout' => 'thumb',
595 //Include
596 'cff_show_text' => true,
597 'cff_show_desc' => true,
598 'cff_show_shared_links' => true,
599 'cff_show_date' => true,
600 'cff_show_media' => true,
601 'cff_show_media_link' => true,
602 'cff_show_event_title' => true,
603 'cff_show_event_details' => true,
604 'cff_show_meta' => true,
605 'cff_show_link' => true,
606 'cff_show_like_box' => true,
607 //Post Styple
608 'cff_post_bg_color' => '',
609 'cff_post_rounded' => '0',
610
611 //Typography
612 'cff_title_format' => 'p',
613 'cff_title_size' => 'inherit',
614 'cff_title_weight' => 'inherit',
615 'cff_title_color' => '',
616 'cff_posttext_link_color' => '',
617 'cff_body_size' => '12',
618 'cff_body_weight' => 'inherit',
619 'cff_body_color' => '',
620 'cff_link_title_format' => 'p',
621 'cff_link_title_size' => 'inherit',
622 'cff_link_title_color' => '',
623 'cff_link_url_color' => '',
624 'cff_link_bg_color' => '',
625 'cff_link_border_color' => '',
626 'cff_disable_link_box' => '',
627 //Event title
628 'cff_event_title_format' => 'p',
629 'cff_event_title_size' => 'inherit',
630 'cff_event_title_weight' => 'inherit',
631 'cff_event_title_color' => '',
632 //Event date
633 'cff_event_date_size' => 'inherit',
634 'cff_event_date_weight' => 'inherit',
635 'cff_event_date_color' => '',
636 'cff_event_date_position' => 'below',
637 'cff_event_date_formatting' => '1',
638 'cff_event_date_custom' => '',
639 //Event details
640 'cff_event_details_size' => 'inherit',
641 'cff_event_details_weight' => 'inherit',
642 'cff_event_details_color' => '',
643 'cff_event_link_color' => '',
644 //Date
645 'cff_date_position' => 'author',
646 'cff_date_size' => 'inherit',
647 'cff_date_weight' => 'inherit',
648 'cff_date_color' => '',
649 'cff_date_formatting' => '1',
650 'cff_date_custom' => '',
651 'cff_date_before' => '',
652 'cff_date_after' => '',
653 'cff_timezone' => 'America/Chicago',
654
655 //Link to Facebook
656 'cff_link_size' => 'inherit',
657 'cff_link_weight' => 'inherit',
658 'cff_link_color' => '',
659 'cff_facebook_link_text' => 'View on Facebook',
660 'cff_view_link_text' => 'View Link',
661 'cff_link_to_timeline' => false,
662 //Meta
663 'cff_icon_style' => 'light',
664 'cff_meta_text_color' => '',
665 'cff_meta_bg_color' => '',
666 'cff_nocomments_text' => 'No comments yet',
667 'cff_hide_comments' => '',
668 //Misc
669 'cff_feed_width' => '',
670 'cff_feed_width_resp' => false,
671 'cff_feed_height' => '',
672 'cff_feed_padding' => '',
673 'cff_like_box_position' => 'bottom',
674 'cff_like_box_outside' => false,
675 'cff_likebox_width' => '',
676 'cff_likebox_height' => '',
677 'cff_like_box_faces' => false,
678 'cff_like_box_border' => false,
679 'cff_like_box_cover' => true,
680 'cff_like_box_small_header' => false,
681 'cff_like_box_hide_cta' => false,
682
683 'cff_bg_color' => '',
684 'cff_likebox_bg_color' => '',
685 'cff_like_box_text_color' => 'blue',
686 'cff_video_height' => '',
687 'cff_show_author' => true,
688 'cff_class' => '',
689 'cff_open_links' => true,
690 'cff_cron' => 'unset',
691 'cff_request_method' => 'auto',
692 'cff_disable_styles' => false,
693
694 //New
695 'cff_custom_css' => '',
696 'cff_custom_js' => '',
697 'cff_title_link' => false,
698 'cff_post_tags' => true,
699 'cff_link_hashtags' => true,
700 'cff_event_title_link' => true,
701 'cff_video_action' => 'post',
702 'cff_app_id' => '',
703 'cff_show_credit' => '',
704 'cff_font_source' => '',
705 'cff_sep_color' => '',
706 'cff_sep_size' => '1',
707
708 //Feed Header
709 'cff_show_header' => '',
710 'cff_header_outside' => false,
711 'cff_header_text' => 'Facebook Posts',
712 'cff_header_bg_color' => '',
713 'cff_header_padding' => '',
714 'cff_header_text_size' => '',
715 'cff_header_text_weight' => '',
716 'cff_header_text_color' => '',
717 'cff_header_icon' => '',
718 'cff_header_icon_color' => '',
719 'cff_header_icon_size' => '28',
720
721 //Author
722 'cff_author_size' => 'inherit',
723 'cff_author_color' => '',
724
725 //Translate - general
726 'cff_see_more_text' => 'See More',
727 'cff_see_less_text' => 'See Less',
728 'cff_facebook_link_text' => 'View on Facebook',
729 'cff_facebook_share_text' => 'Share',
730 'cff_show_facebook_link' => true,
731 'cff_show_facebook_share' => true,
732
733 'cff_translate_photos_text' => 'photos',
734 'cff_translate_photo_text' => 'Photo',
735 'cff_translate_video_text' => 'Video',
736
737 //Translate - date
738 'cff_translate_second' => 'second',
739 'cff_translate_seconds' => 'seconds',
740 'cff_translate_minute' => 'minute',
741 'cff_translate_minutes' => 'minutes',
742 'cff_translate_hour' => 'hour',
743 'cff_translate_hours' => 'hours',
744 'cff_translate_day' => 'day',
745 'cff_translate_days' => 'days',
746 'cff_translate_week' => 'week',
747 'cff_translate_weeks' => 'weeks',
748 'cff_translate_month' => 'month',
749 'cff_translate_months' => 'months',
750 'cff_translate_year' => 'year',
751 'cff_translate_years' => 'years',
752 'cff_translate_ago' => 'ago'
753 );
754 //Save layout option in an array
755 $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
756 add_option( 'cff_style_settings', $options );
757
758 //Set the page variables
759 //Post types
760 $cff_show_links_type = $options[ 'cff_show_links_type' ];
761 $cff_show_event_type = $options[ 'cff_show_event_type' ];
762 $cff_show_video_type = $options[ 'cff_show_video_type' ];
763 $cff_show_photos_type = $options[ 'cff_show_photos_type' ];
764 $cff_show_status_type = $options[ 'cff_show_status_type' ];
765 //Layout
766 $cff_preset_layout = $options[ 'cff_preset_layout' ];
767 //Include
768 $cff_show_text = $options[ 'cff_show_text' ];
769 $cff_show_desc = $options[ 'cff_show_desc' ];
770 $cff_show_shared_links = $options[ 'cff_show_shared_links' ];
771 $cff_show_date = $options[ 'cff_show_date' ];
772 $cff_show_media = $options[ 'cff_show_media' ];
773 $cff_show_media_link = $options[ 'cff_show_media_link' ];
774 $cff_show_event_title = $options[ 'cff_show_event_title' ];
775 $cff_show_event_details = $options[ 'cff_show_event_details' ];
776 $cff_show_meta = $options[ 'cff_show_meta' ];
777 $cff_show_link = $options[ 'cff_show_link' ];
778 $cff_show_like_box = $options[ 'cff_show_like_box' ];
779 //Post Style
780 $cff_post_bg_color = $options[ 'cff_post_bg_color' ];
781 $cff_post_rounded = $options[ 'cff_post_rounded' ];
782
783 //Typography
784 $cff_see_more_text = $options[ 'cff_see_more_text' ];
785 $cff_see_less_text = $options[ 'cff_see_less_text' ];
786 $cff_title_format = $options[ 'cff_title_format' ];
787 $cff_title_size = $options[ 'cff_title_size' ];
788 $cff_title_weight = $options[ 'cff_title_weight' ];
789 $cff_title_color = $options[ 'cff_title_color' ];
790 $cff_posttext_link_color = $options[ 'cff_posttext_link_color' ];
791 $cff_body_size = $options[ 'cff_body_size' ];
792 $cff_body_weight = $options[ 'cff_body_weight' ];
793 $cff_body_color = $options[ 'cff_body_color' ];
794 $cff_link_title_format = $options[ 'cff_link_title_format' ];
795 $cff_link_title_size = $options[ 'cff_link_title_size' ];
796 $cff_link_title_color = $options[ 'cff_link_title_color' ];
797 $cff_link_url_color = $options[ 'cff_link_url_color' ];
798 $cff_link_bg_color = $options[ 'cff_link_bg_color' ];
799 $cff_link_border_color = $options[ 'cff_link_border_color' ];
800 $cff_disable_link_box = $options[ 'cff_disable_link_box' ];
801
802 //Event title
803 $cff_event_title_format = $options[ 'cff_event_title_format' ];
804 $cff_event_title_size = $options[ 'cff_event_title_size' ];
805 $cff_event_title_weight = $options[ 'cff_event_title_weight' ];
806 $cff_event_title_color = $options[ 'cff_event_title_color' ];
807 //Event date
808 $cff_event_date_size = $options[ 'cff_event_date_size' ];
809 $cff_event_date_weight = $options[ 'cff_event_date_weight' ];
810 $cff_event_date_color = $options[ 'cff_event_date_color' ];
811 $cff_event_date_position = $options[ 'cff_event_date_position' ];
812 $cff_event_date_formatting = $options[ 'cff_event_date_formatting' ];
813 $cff_event_date_custom = $options[ 'cff_event_date_custom' ];
814 //Event details
815 $cff_event_details_size = $options[ 'cff_event_details_size' ];
816 $cff_event_details_weight = $options[ 'cff_event_details_weight' ];
817 $cff_event_details_color = $options[ 'cff_event_details_color' ];
818 $cff_event_link_color = $options[ 'cff_event_link_color' ];
819 //Date
820 $cff_date_position = $options[ 'cff_date_position' ];
821 $cff_date_size = $options[ 'cff_date_size' ];
822 $cff_date_weight = $options[ 'cff_date_weight' ];
823 $cff_date_color = $options[ 'cff_date_color' ];
824 $cff_date_formatting = $options[ 'cff_date_formatting' ];
825 $cff_date_custom = $options[ 'cff_date_custom' ];
826 $cff_date_before = $options[ 'cff_date_before' ];
827 $cff_date_after = $options[ 'cff_date_after' ];
828 $cff_timezone = $options[ 'cff_timezone' ];
829
830 //Date translate
831 $cff_translate_second = $options[ 'cff_translate_second' ];
832 $cff_translate_seconds = $options[ 'cff_translate_seconds' ];
833 $cff_translate_minute = $options[ 'cff_translate_minute' ];
834 $cff_translate_minutes = $options[ 'cff_translate_minutes' ];
835 $cff_translate_hour = $options[ 'cff_translate_hour' ];
836 $cff_translate_hours = $options[ 'cff_translate_hours' ];
837 $cff_translate_day = $options[ 'cff_translate_day' ];
838 $cff_translate_days = $options[ 'cff_translate_days' ];
839 $cff_translate_week = $options[ 'cff_translate_week' ];
840 $cff_translate_weeks = $options[ 'cff_translate_weeks' ];
841 $cff_translate_month = $options[ 'cff_translate_month' ];
842 $cff_translate_months = $options[ 'cff_translate_months' ];
843 $cff_translate_year = $options[ 'cff_translate_year' ];
844 $cff_translate_years = $options[ 'cff_translate_years' ];
845 $cff_translate_ago = $options[ 'cff_translate_ago' ];
846 //Photos translate
847 $cff_translate_photos_text = $options[ 'cff_translate_photos_text' ];
848 $cff_translate_photo_text = $options[ 'cff_translate_photo_text' ];
849 $cff_translate_video_text = $options[ 'cff_translate_video_text' ];
850
851 //View on Facebook link
852 $cff_link_size = $options[ 'cff_link_size' ];
853 $cff_link_weight = $options[ 'cff_link_weight' ];
854 $cff_link_color = $options[ 'cff_link_color' ];
855 $cff_facebook_link_text = $options[ 'cff_facebook_link_text' ];
856 $cff_view_link_text = $options[ 'cff_view_link_text' ];
857 $cff_link_to_timeline = $options[ 'cff_link_to_timeline' ];
858 $cff_facebook_share_text = $options[ 'cff_facebook_share_text' ];
859 $cff_show_facebook_link = $options[ 'cff_show_facebook_link' ];
860 $cff_show_facebook_share = $options[ 'cff_show_facebook_share' ];
861 //Meta
862 $cff_icon_style = $options[ 'cff_icon_style' ];
863 $cff_meta_text_color = $options[ 'cff_meta_text_color' ];
864 $cff_meta_bg_color = $options[ 'cff_meta_bg_color' ];
865 $cff_nocomments_text = $options[ 'cff_nocomments_text' ];
866 $cff_hide_comments = $options[ 'cff_hide_comments' ];
867 //Misc
868 $cff_feed_width = $options[ 'cff_feed_width' ];
869 $cff_feed_width_resp = $options[ 'cff_feed_width_resp' ];
870 $cff_feed_height = $options[ 'cff_feed_height' ];
871 $cff_feed_padding = $options[ 'cff_feed_padding' ];
872 $cff_like_box_position = $options[ 'cff_like_box_position' ];
873 $cff_like_box_outside = $options[ 'cff_like_box_outside' ];
874 $cff_likebox_width = $options[ 'cff_likebox_width' ];
875 $cff_likebox_height = $options[ 'cff_likebox_height' ];
876 $cff_like_box_faces = $options[ 'cff_like_box_faces' ];
877 $cff_like_box_border = $options[ 'cff_like_box_border' ];
878 $cff_like_box_cover = $options[ 'cff_like_box_cover' ];
879 $cff_like_box_small_header = $options[ 'cff_like_box_small_header' ];
880 $cff_like_box_hide_cta = $options[ 'cff_like_box_hide_cta' ];
881
882
883 $cff_show_media = $options[ 'cff_show_media' ];
884 $cff_bg_color = $options[ 'cff_bg_color' ];
885 $cff_likebox_bg_color = $options[ 'cff_likebox_bg_color' ];
886 $cff_like_box_text_color = $options[ 'cff_like_box_text_color' ];
887 $cff_video_height = $options[ 'cff_video_height' ];
888 $cff_show_author = $options[ 'cff_show_author' ];
889 $cff_class = $options[ 'cff_class' ];
890 $cff_open_links = $options[ 'cff_open_links' ];
891 $cff_app_id = $options[ 'cff_app_id' ];
892 $cff_show_credit = $options[ 'cff_show_credit' ];
893 $cff_font_source = $options[ 'cff_font_source' ];
894 $cff_preserve_settings = 'cff_preserve_settings';
895 $cff_preserve_settings_val = get_option( $cff_preserve_settings );
896 $cff_cron = $options[ 'cff_cron' ];
897 $cff_request_method = $options[ 'cff_request_method' ];
898 $cff_disable_styles = $options[ 'cff_disable_styles' ];
899
900 //Page Header
901 $cff_show_header = $options[ 'cff_show_header' ];
902 $cff_header_outside = $options[ 'cff_header_outside' ];
903 $cff_header_text = $options[ 'cff_header_text' ];
904 $cff_header_bg_color = $options[ 'cff_header_bg_color' ];
905 $cff_header_padding = $options[ 'cff_header_padding' ];
906 $cff_header_text_size = $options[ 'cff_header_text_size' ];
907 $cff_header_text_weight = $options[ 'cff_header_text_weight' ];
908 $cff_header_text_color = $options[ 'cff_header_text_color' ];
909 $cff_header_icon = $options[ 'cff_header_icon' ];
910 $cff_header_icon_color = $options[ 'cff_header_icon_color' ];
911 $cff_header_icon_size = $options[ 'cff_header_icon_size' ];
912
913 //Author
914 $cff_author_size = $options[ 'cff_author_size' ];
915 $cff_author_color = $options[ 'cff_author_color' ];
916
917 //New
918 $cff_custom_css = $options[ 'cff_custom_css' ];
919 $cff_custom_js = $options[ 'cff_custom_js' ];
920 $cff_title_link = $options[ 'cff_title_link' ];
921 $cff_post_tags = $options[ 'cff_post_tags' ];
922 $cff_link_hashtags = $options[ 'cff_link_hashtags' ];
923 $cff_event_title_link = $options[ 'cff_event_title_link' ];
924 $cff_video_action = $options[ 'cff_video_action' ];
925 $cff_sep_color = $options[ 'cff_sep_color' ];
926 $cff_sep_size = $options[ 'cff_sep_size' ];
927
928 // Texts lengths
929 $cff_title_length = 'cff_title_length';
930 $cff_body_length = 'cff_body_length';
931 // Read in existing option value from database
932 $cff_title_length_val = get_option( $cff_title_length, '400' );
933 $cff_body_length_val = get_option( $cff_body_length, '200' );
934
935 //Ajax
936 $cff_ajax = 'cff_ajax';
937 $cff_ajax_val = get_option( $cff_ajax );
938
939 // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
940 if( isset($_POST[ $style_hidden_field_name ]) && $_POST[ $style_hidden_field_name ] == 'Y' ) {
941 //Update the General options
942 if( isset($_POST[ $style_general_hidden_field_name ]) && $_POST[ $style_general_hidden_field_name ] == 'Y' ) {
943 //General
944 if (isset($_POST[ 'cff_feed_width' ]) ) $cff_feed_width = $_POST[ 'cff_feed_width' ];
945 (isset($_POST[ 'cff_feed_width_resp' ]) ) ? $cff_feed_width_resp = $_POST[ 'cff_feed_width_resp' ] : $cff_feed_width_resp = '';
946 if (isset($_POST[ 'cff_feed_height' ]) ) $cff_feed_height = $_POST[ 'cff_feed_height' ];
947 if (isset($_POST[ 'cff_feed_padding' ]) ) $cff_feed_padding = $_POST[ 'cff_feed_padding' ];
948 if (isset($_POST[ 'cff_bg_color' ]) ) $cff_bg_color = $_POST[ 'cff_bg_color' ];
949 if (isset($_POST[ 'cff_class' ]) ) $cff_class = $_POST[ 'cff_class' ];
950 (isset($_POST[ 'cff_show_header' ])) ? $cff_show_header = $_POST[ 'cff_show_header' ] : $cff_show_header = '';
951
952 //Post types
953 if (isset($_POST[ 'cff_show_links_type' ]) ) $cff_show_links_type = $_POST[ 'cff_show_links_type' ];
954 if (isset($_POST[ 'cff_show_event_type' ]) ) $cff_show_event_type = $_POST[ 'cff_show_event_type' ];
955 if (isset($_POST[ 'cff_show_video_type' ]) ) $cff_show_video_type = $_POST[ 'cff_show_video_type' ];
956 if (isset($_POST[ 'cff_show_photos_type' ]) ) $cff_show_photos_type = $_POST[ 'cff_show_photos_type' ];
957 if (isset($_POST[ 'cff_show_status_type' ]) ) $cff_show_status_type = $_POST[ 'cff_show_status_type' ];
958 //General
959 $options[ 'cff_feed_width' ] = $cff_feed_width;
960 $options[ 'cff_feed_width_resp' ] = $cff_feed_width_resp;
961 $options[ 'cff_feed_height' ] = $cff_feed_height;
962 $options[ 'cff_feed_padding' ] = $cff_feed_padding;
963 $options[ 'cff_bg_color' ] = $cff_bg_color;
964 $options[ 'cff_class' ] = $cff_class;
965 $options[ 'cff_show_header' ] = $cff_show_header;
966
967 //Post types
968 $options[ 'cff_show_links_type' ] = $cff_show_links_type;
969 $options[ 'cff_show_event_type' ] = $cff_show_event_type;
970 $options[ 'cff_show_video_type' ] = $cff_show_video_type;
971 $options[ 'cff_show_photos_type' ] = $cff_show_photos_type;
972 $options[ 'cff_show_status_type' ] = $cff_show_status_type;
973 }
974 //Update the Post Layout options
975 if( isset($_POST[ $style_post_layout_hidden_field_name ]) && $_POST[ $style_post_layout_hidden_field_name ] == 'Y' ) {
976 //Layout
977 if (isset($_POST[ 'cff_preset_layout' ]) ) $cff_preset_layout = $_POST[ 'cff_preset_layout' ];
978 //Include
979 (isset($_POST[ 'cff_show_author' ]) ) ? $cff_show_author = $_POST[ 'cff_show_author' ] : $cff_show_author = '';
980 (isset($_POST[ 'cff_show_text' ]) ) ? $cff_show_text = $_POST[ 'cff_show_text' ] : $cff_show_text = '';
981 (isset($_POST[ 'cff_show_desc' ]) ) ? $cff_show_desc = $_POST[ 'cff_show_desc' ] : $cff_show_desc = '';
982 (isset($_POST[ 'cff_show_shared_links' ]) ) ? $cff_show_shared_links = $_POST[ 'cff_show_shared_links' ] : $cff_show_shared_links = '';
983 (isset($_POST[ 'cff_show_date' ]) ) ? $cff_show_date = $_POST[ 'cff_show_date' ] : $cff_show_date = '';
984 (isset($_POST[ 'cff_show_media' ]) ) ? $cff_show_media = $_POST[ 'cff_show_media' ] : $cff_show_media = '';
985 (isset($_POST[ 'cff_show_media_link' ]) ) ? $cff_show_media_link = $_POST[ 'cff_show_media_link' ] : $cff_show_media_link = '';
986 (isset($_POST[ 'cff_show_event_title' ]) ) ? $cff_show_event_title = $_POST[ 'cff_show_event_title' ] : $cff_show_event_title = '';
987 (isset($_POST[ 'cff_show_event_details' ]) ) ? $cff_show_event_details = $_POST[ 'cff_show_event_details' ] : $cff_show_event_details = '';
988 (isset($_POST[ 'cff_show_meta' ]) ) ? $cff_show_meta = $_POST[ 'cff_show_meta' ] : $cff_show_meta = '';
989 (isset($_POST[ 'cff_show_link' ]) ) ? $cff_show_link = $_POST[ 'cff_show_link' ] : $cff_show_link = '';
990 //Post Style
991 (isset($_POST[ 'cff_post_bg_color' ]) ) ? $cff_post_bg_color = $_POST[ 'cff_post_bg_color' ] : $cff_post_bg_color = '';
992 (isset($_POST[ 'cff_post_rounded' ]) ) ? $cff_post_rounded = $_POST[ 'cff_post_rounded' ] : $cff_post_rounded = '';
993 if (isset($_POST[ 'cff_sep_color' ])) $cff_sep_color = $_POST[ 'cff_sep_color' ];
994 if (isset($_POST[ 'cff_sep_size' ])) $cff_sep_size = $_POST[ 'cff_sep_size' ];
995
996 //Layout
997 $options[ 'cff_preset_layout' ] = $cff_preset_layout;
998 //Include
999 $options[ 'cff_show_author' ] = $cff_show_author;
1000 $options[ 'cff_show_text' ] = $cff_show_text;
1001 $options[ 'cff_show_desc' ] = $cff_show_desc;
1002 $options[ 'cff_show_shared_links' ] = $cff_show_shared_links;
1003 $options[ 'cff_show_date' ] = $cff_show_date;
1004 $options[ 'cff_show_media' ] = $cff_show_media;
1005 $options[ 'cff_show_media_link' ] = $cff_show_media_link;
1006 $options[ 'cff_show_event_title' ] = $cff_show_event_title;
1007 $options[ 'cff_show_event_details' ] = $cff_show_event_details;
1008 $options[ 'cff_show_meta' ] = $cff_show_meta;
1009 $options[ 'cff_show_link' ] = $cff_show_link;
1010 //Post Style
1011 $options[ 'cff_post_bg_color' ] = $cff_post_bg_color;
1012 $options[ 'cff_post_rounded' ] = $cff_post_rounded;
1013 $options[ 'cff_sep_color' ] = $cff_sep_color;
1014 $options[ 'cff_sep_size' ] = $cff_sep_size;
1015
1016 }
1017 //Update the Typography options
1018 if( isset($_POST[ $style_typography_hidden_field_name ]) && $_POST[ $style_typography_hidden_field_name ] == 'Y' ) {
1019 //Character limits
1020 if (isset($_POST[ 'cff_title_length' ]) ) $cff_title_length_val = $_POST[ $cff_title_length ];
1021 if (isset($_POST[ 'cff_body_length' ]) ) $cff_body_length_val = $_POST[ $cff_body_length ];
1022
1023 //Page Header
1024 (isset($_POST[ 'cff_header_outside' ])) ? $cff_header_outside = $_POST[ 'cff_header_outside' ] : $cff_header_outside = '';
1025 if (isset($_POST[ 'cff_header_text' ])) $cff_header_text = $_POST[ 'cff_header_text' ];
1026 if (isset($_POST[ 'cff_header_bg_color' ])) $cff_header_bg_color = $_POST[ 'cff_header_bg_color' ];
1027 if (isset($_POST[ 'cff_header_padding' ])) $cff_header_padding = $_POST[ 'cff_header_padding' ];
1028 if (isset($_POST[ 'cff_header_text_size' ])) $cff_header_text_size = $_POST[ 'cff_header_text_size' ];
1029 if (isset($_POST[ 'cff_header_text_weight' ])) $cff_header_text_weight = $_POST[ 'cff_header_text_weight' ];
1030 if (isset($_POST[ 'cff_header_text_color' ])) $cff_header_text_color = $_POST[ 'cff_header_text_color' ];
1031 if (isset($_POST[ 'cff_header_icon' ])) $cff_header_icon = $_POST[ 'cff_header_icon' ];
1032 if (isset($_POST[ 'cff_header_icon_color' ])) $cff_header_icon_color = $_POST[ 'cff_header_icon_color' ];
1033 if (isset($_POST[ 'cff_header_icon_size' ])) $cff_header_icon_size = $_POST[ 'cff_header_icon_size' ];
1034
1035 //Author
1036 if (isset($_POST[ 'cff_author_size' ])) $cff_author_size = $_POST[ 'cff_author_size' ];
1037 if (isset($_POST[ 'cff_author_color' ])) $cff_author_color = $_POST[ 'cff_author_color' ];
1038
1039 //Typography
1040 if (isset($_POST[ 'cff_title_format' ]) ) $cff_title_format = $_POST[ 'cff_title_format' ];
1041 if (isset($_POST[ 'cff_title_size' ]) ) $cff_title_size = $_POST[ 'cff_title_size' ];
1042 if (isset($_POST[ 'cff_title_weight' ]) ) $cff_title_weight = $_POST[ 'cff_title_weight' ];
1043 if (isset($_POST[ 'cff_title_color' ]) ) $cff_title_color = $_POST[ 'cff_title_color' ];
1044 if (isset($_POST[ 'cff_posttext_link_color' ]) ) $cff_posttext_link_color = $_POST[ 'cff_posttext_link_color' ];
1045
1046 (isset($_POST[ 'cff_title_link' ]) ) ? $cff_title_link = $_POST[ 'cff_title_link' ] : $cff_title_link = '';
1047 (isset($_POST[ 'cff_post_tags' ]) ) ? $cff_post_tags = $_POST[ 'cff_post_tags' ] : $cff_post_tags = '';
1048 (isset($_POST[ 'cff_link_hashtags' ]) ) ? $cff_link_hashtags = $_POST[ 'cff_link_hashtags' ] : $cff_link_hashtags = '';
1049
1050 $cff_body_size = $_POST[ 'cff_body_size' ];
1051 if (isset($_POST[ 'cff_body_weight' ]) ) $cff_body_weight = $_POST[ 'cff_body_weight' ];
1052 if (isset($_POST[ 'cff_body_color' ]) ) $cff_body_color = $_POST[ 'cff_body_color' ];
1053 if (isset($_POST[ 'cff_link_title_format' ]) ) $cff_link_title_format = $_POST[ 'cff_link_title_format' ];
1054 if (isset($_POST[ 'cff_link_title_size' ]) ) $cff_link_title_size = $_POST[ 'cff_link_title_size' ];
1055 if (isset($_POST[ 'cff_link_title_color' ]) ) $cff_link_title_color = $_POST[ 'cff_link_title_color' ];
1056 if (isset($_POST[ 'cff_link_url_color' ]) ) $cff_link_url_color = $_POST[ 'cff_link_url_color' ];
1057 if (isset($_POST[ 'cff_link_bg_color' ]) ) $cff_link_bg_color = $_POST[ 'cff_link_bg_color' ];
1058 if (isset($_POST[ 'cff_link_border_color' ]) ) $cff_link_border_color = $_POST[ 'cff_link_border_color' ];
1059 (isset($_POST[ 'cff_disable_link_box' ]) ) ? $cff_disable_link_box = $_POST[ 'cff_disable_link_box' ] : $cff_disable_link_box = '';
1060
1061
1062 //Event title
1063 if (isset($_POST[ 'cff_event_title_format' ]) ) $cff_event_title_format = $_POST[ 'cff_event_title_format' ];
1064 if (isset($_POST[ 'cff_event_title_size' ]) ) $cff_event_title_size = $_POST[ 'cff_event_title_size' ];
1065 if (isset($_POST[ 'cff_event_title_weight' ]) ) $cff_event_title_weight = $_POST[ 'cff_event_title_weight' ];
1066 if (isset($_POST[ 'cff_event_title_color' ]) ) $cff_event_title_color = $_POST[ 'cff_event_title_color' ];
1067 (isset($_POST[ 'cff_event_title_link' ]) ) ? $cff_event_title_link = $_POST[ 'cff_event_title_link' ] : $cff_event_title_link = '';
1068 //Event date
1069 if (isset($_POST[ 'cff_event_date_size' ]) ) $cff_event_date_size = $_POST[ 'cff_event_date_size' ];
1070 if (isset($_POST[ 'cff_event_date_weight' ]) ) $cff_event_date_weight = $_POST[ 'cff_event_date_weight' ];
1071 if (isset($_POST[ 'cff_event_date_color' ]) ) $cff_event_date_color = $_POST[ 'cff_event_date_color' ];
1072 if (isset($_POST[ 'cff_event_date_position' ]) ) $cff_event_date_position = $_POST[ 'cff_event_date_position' ];
1073 if (isset($_POST[ 'cff_event_date_formatting' ]) ) $cff_event_date_formatting = $_POST[ 'cff_event_date_formatting' ];
1074 if (isset($_POST[ 'cff_event_date_custom' ]) ) $cff_event_date_custom = $_POST[ 'cff_event_date_custom' ];
1075 //Event details
1076 if (isset($_POST[ 'cff_event_details_size' ]) ) $cff_event_details_size = $_POST[ 'cff_event_details_size' ];
1077 if (isset($_POST[ 'cff_event_details_weight' ]) ) $cff_event_details_weight = $_POST[ 'cff_event_details_weight' ];
1078 if (isset($_POST[ 'cff_event_details_color' ]) ) $cff_event_details_color = $_POST[ 'cff_event_details_color' ];
1079 if (isset($_POST[ 'cff_event_link_color' ]) ) $cff_event_link_color = $_POST[ 'cff_event_link_color' ];
1080 //Date
1081 if (isset($_POST[ 'cff_date_position' ]) ) $cff_date_position = $_POST[ 'cff_date_position' ];
1082 if (isset($_POST[ 'cff_date_size' ]) ) $cff_date_size = $_POST[ 'cff_date_size' ];
1083 if (isset($_POST[ 'cff_date_weight' ]) ) $cff_date_weight = $_POST[ 'cff_date_weight' ];
1084 if (isset($_POST[ 'cff_date_color' ]) ) $cff_date_color = $_POST[ 'cff_date_color' ];
1085 if (isset($_POST[ 'cff_date_formatting' ]) ) $cff_date_formatting = $_POST[ 'cff_date_formatting' ];
1086 if (isset($_POST[ 'cff_date_custom' ]) ) $cff_date_custom = $_POST[ 'cff_date_custom' ];
1087 if (isset($_POST[ 'cff_date_before' ]) ) $cff_date_before = $_POST[ 'cff_date_before' ];
1088 if (isset($_POST[ 'cff_date_after' ]) ) $cff_date_after = $_POST[ 'cff_date_after' ];
1089 if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = $_POST[ 'cff_timezone' ];
1090
1091 //Date translate
1092 if (isset($_POST[ 'cff_translate_second' ]) ) $cff_translate_second = $_POST[ 'cff_translate_second' ];
1093 if (isset($_POST[ 'cff_translate_seconds' ]) ) $cff_translate_seconds = $_POST[ 'cff_translate_seconds' ];
1094 if (isset($_POST[ 'cff_translate_minute' ]) ) $cff_translate_minute = $_POST[ 'cff_translate_minute' ];
1095 if (isset($_POST[ 'cff_translate_minutes' ]) ) $cff_translate_minutes = $_POST[ 'cff_translate_minutes' ];
1096 if (isset($_POST[ 'cff_translate_hour' ]) ) $cff_translate_hour = $_POST[ 'cff_translate_hour' ];
1097 if (isset($_POST[ 'cff_translate_hours' ]) ) $cff_translate_hours = $_POST[ 'cff_translate_hours' ];
1098 if (isset($_POST[ 'cff_translate_day' ]) ) $cff_translate_day = $_POST[ 'cff_translate_day' ];
1099 if (isset($_POST[ 'cff_translate_days' ]) ) $cff_translate_days = $_POST[ 'cff_translate_days' ];
1100 if (isset($_POST[ 'cff_translate_week' ]) ) $cff_translate_week = $_POST[ 'cff_translate_week' ];
1101 if (isset($_POST[ 'cff_translate_weeks' ]) ) $cff_translate_weeks = $_POST[ 'cff_translate_weeks' ];
1102 if (isset($_POST[ 'cff_translate_month' ]) ) $cff_translate_month = $_POST[ 'cff_translate_month' ];
1103 if (isset($_POST[ 'cff_translate_months' ]) ) $cff_translate_months = $_POST[ 'cff_translate_months' ];
1104 if (isset($_POST[ 'cff_translate_year' ]) ) $cff_translate_year = $_POST[ 'cff_translate_year' ];
1105 if (isset($_POST[ 'cff_translate_years' ]) ) $cff_translate_years = $_POST[ 'cff_translate_years' ];
1106 if (isset($_POST[ 'cff_translate_ago' ]) ) $cff_translate_ago = $_POST[ 'cff_translate_ago' ];
1107
1108 //View on Facebook link
1109 if (isset($_POST[ 'cff_link_size' ]) ) $cff_link_size = $_POST[ 'cff_link_size' ];
1110 if (isset($_POST[ 'cff_link_weight' ]) ) $cff_link_weight = $_POST[ 'cff_link_weight' ];
1111 if (isset($_POST[ 'cff_link_color' ]) ) $cff_link_color = $_POST[ 'cff_link_color' ];
1112 if (isset($_POST[ 'cff_facebook_link_text' ]) ) $cff_facebook_link_text = $_POST[ 'cff_facebook_link_text' ];
1113 if (isset($_POST[ 'cff_facebook_share_text' ]) ) $cff_facebook_share_text = $_POST[ 'cff_facebook_share_text' ];
1114 (isset($_POST[ 'cff_show_facebook_link' ]) ) ? $cff_show_facebook_link = $_POST[ 'cff_show_facebook_link' ] : $cff_show_facebook_link = '';
1115 (isset($_POST[ 'cff_show_facebook_share' ]) ) ? $cff_show_facebook_share = $_POST[ 'cff_show_facebook_share' ] : $cff_show_facebook_share = '';
1116 if (isset($_POST[ 'cff_view_link_text' ]) ) $cff_view_link_text = $_POST[ 'cff_view_link_text' ];
1117 if (isset($_POST[ 'cff_link_to_timeline' ]) ) $cff_link_to_timeline = $_POST[ 'cff_link_to_timeline' ];
1118
1119 //Character limits
1120 update_option( $cff_title_length, $cff_title_length_val );
1121 update_option( $cff_body_length, $cff_body_length_val );
1122 //Page Header
1123 $options[ 'cff_header_outside' ] = $cff_header_outside;
1124 $options[ 'cff_header_text' ] = $cff_header_text;
1125 $options[ 'cff_header_bg_color' ] = $cff_header_bg_color;
1126 $options[ 'cff_header_padding' ] = $cff_header_padding;
1127 $options[ 'cff_header_text_size' ] = $cff_header_text_size;
1128 $options[ 'cff_header_text_weight' ] = $cff_header_text_weight;
1129 $options[ 'cff_header_text_color' ] = $cff_header_text_color;
1130 $options[ 'cff_header_icon' ] = $cff_header_icon;
1131 $options[ 'cff_header_icon_color' ] = $cff_header_icon_color;
1132 $options[ 'cff_header_icon_size' ] = $cff_header_icon_size;
1133 //Author
1134 $options[ 'cff_author_size' ] = $cff_author_size;
1135 $options[ 'cff_author_color' ] = $cff_author_color;
1136 //Typography
1137 $options[ 'cff_title_format' ] = $cff_title_format;
1138 $options[ 'cff_title_size' ] = $cff_title_size;
1139 $options[ 'cff_title_weight' ] = $cff_title_weight;
1140 $options[ 'cff_title_color' ] = $cff_title_color;
1141 $options[ 'cff_posttext_link_color' ] = $cff_posttext_link_color;
1142 $options[ 'cff_title_link' ] = $cff_title_link;
1143 $options[ 'cff_post_tags' ] = $cff_post_tags;
1144 $options[ 'cff_link_hashtags' ] = $cff_link_hashtags;
1145 $options[ 'cff_body_size' ] = $cff_body_size;
1146 $options[ 'cff_body_weight' ] = $cff_body_weight;
1147 $options[ 'cff_body_color' ] = $cff_body_color;
1148 $options[ 'cff_link_title_format' ] = $cff_link_title_format;
1149 $options[ 'cff_link_title_size' ] = $cff_link_title_size;
1150 $options[ 'cff_link_title_color' ] = $cff_link_title_color;
1151 $options[ 'cff_link_url_color' ] = $cff_link_url_color;
1152 $options[ 'cff_link_bg_color' ] = $cff_link_bg_color;
1153 $options[ 'cff_link_border_color' ] = $cff_link_border_color;
1154 $options[ 'cff_disable_link_box' ] = $cff_disable_link_box;
1155
1156 //Event title
1157 $options[ 'cff_event_title_format' ] = $cff_event_title_format;
1158 $options[ 'cff_event_title_size' ] = $cff_event_title_size;
1159 $options[ 'cff_event_title_weight' ] = $cff_event_title_weight;
1160 $options[ 'cff_event_title_color' ] = $cff_event_title_color;
1161 $options[ 'cff_event_title_link' ] = $cff_event_title_link;
1162 //Event date
1163 $options[ 'cff_event_date_size' ] = $cff_event_date_size;
1164 $options[ 'cff_event_date_weight' ] = $cff_event_date_weight;
1165 $options[ 'cff_event_date_color' ] = $cff_event_date_color;
1166 $options[ 'cff_event_date_position' ] = $cff_event_date_position;
1167 $options[ 'cff_event_date_formatting' ] = $cff_event_date_formatting;
1168 $options[ 'cff_event_date_custom' ] = $cff_event_date_custom;
1169 //Event details
1170 $options[ 'cff_event_details_size' ] = $cff_event_details_size;
1171 $options[ 'cff_event_details_weight' ] = $cff_event_details_weight;
1172 $options[ 'cff_event_details_color' ] = $cff_event_details_color;
1173 $options[ 'cff_event_link_color' ] = $cff_event_link_color;
1174 //Date
1175 $options[ 'cff_date_position' ] = $cff_date_position;
1176 $options[ 'cff_date_size' ] = $cff_date_size;
1177 $options[ 'cff_date_weight' ] = $cff_date_weight;
1178 $options[ 'cff_date_color' ] = $cff_date_color;
1179 $options[ 'cff_date_formatting' ] = $cff_date_formatting;
1180 $options[ 'cff_date_custom' ] = $cff_date_custom;
1181 $options[ 'cff_date_before' ] = $cff_date_before;
1182 $options[ 'cff_date_after' ] = $cff_date_after;
1183 $options[ 'cff_timezone' ] = $cff_timezone;
1184
1185 //Date translate
1186 $options[ 'cff_translate_second' ] = $cff_translate_second;
1187 $options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
1188 $options[ 'cff_translate_minute' ] = $cff_translate_minute;
1189 $options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
1190 $options[ 'cff_translate_hour' ] = $cff_translate_hour;
1191 $options[ 'cff_translate_hours' ] = $cff_translate_hours;
1192 $options[ 'cff_translate_day' ] = $cff_translate_day;
1193 $options[ 'cff_translate_days' ] = $cff_translate_days;
1194 $options[ 'cff_translate_week' ] = $cff_translate_week;
1195 $options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
1196 $options[ 'cff_translate_month' ] = $cff_translate_month;
1197 $options[ 'cff_translate_months' ] = $cff_translate_months;
1198 $options[ 'cff_translate_year' ] = $cff_translate_year;
1199 $options[ 'cff_translate_years' ] = $cff_translate_years;
1200 $options[ 'cff_translate_ago' ] = $cff_translate_ago;
1201
1202 //View on Facebook link
1203 $options[ 'cff_link_size' ] = $cff_link_size;
1204 $options[ 'cff_link_weight' ] = $cff_link_weight;
1205 $options[ 'cff_link_color' ] = $cff_link_color;
1206 $options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
1207 $options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
1208 $options[ 'cff_show_facebook_link' ] = $cff_show_facebook_link;
1209 $options[ 'cff_show_facebook_share' ] = $cff_show_facebook_share;
1210 $options[ 'cff_view_link_text' ] = $cff_view_link_text;
1211 $options[ 'cff_link_to_timeline' ] = $cff_link_to_timeline;
1212 }
1213 //Update the Misc options
1214 if( isset($_POST[ $style_misc_hidden_field_name ]) && $_POST[ $style_misc_hidden_field_name ] == 'Y' ) {
1215 //Meta
1216 if (isset($_POST[ 'cff_icon_style' ])) $cff_icon_style = $_POST[ 'cff_icon_style' ];
1217 if (isset($_POST[ 'cff_meta_text_color' ])) $cff_meta_text_color = $_POST[ 'cff_meta_text_color' ];
1218 if (isset($_POST[ 'cff_meta_bg_color' ])) $cff_meta_bg_color = $_POST[ 'cff_meta_bg_color' ];
1219 if (isset($_POST[ 'cff_nocomments_text' ])) $cff_nocomments_text = $_POST[ 'cff_nocomments_text' ];
1220 if (isset($_POST[ 'cff_hide_comments' ])) $cff_hide_comments = $_POST[ 'cff_hide_comments' ];
1221 //Custom CSS
1222 if (isset($_POST[ 'cff_custom_css' ])) $cff_custom_css = $_POST[ 'cff_custom_css' ];
1223 if (isset($_POST[ 'cff_custom_js' ])) $cff_custom_js = $_POST[ 'cff_custom_js' ];
1224 //Misc
1225 (isset($_POST[ 'cff_show_like_box' ])) ? $cff_show_like_box = $_POST[ 'cff_show_like_box' ] : $cff_show_like_box = '';
1226 if (isset($_POST[ 'cff_like_box_position' ])) $cff_like_box_position = $_POST[ 'cff_like_box_position' ];
1227 (isset($_POST[ 'cff_like_box_outside' ])) ? $cff_like_box_outside = $_POST[ 'cff_like_box_outside' ] : $cff_like_box_outside = '';
1228 if (isset($_POST[ 'cff_likebox_bg_color' ])) $cff_likebox_bg_color = $_POST[ 'cff_likebox_bg_color' ];
1229 if (isset($_POST[ 'cff_like_box_text_color' ])) $cff_like_box_text_color = $_POST[ 'cff_like_box_text_color' ];
1230
1231 if (isset($_POST[ 'cff_likebox_width' ])) $cff_likebox_width = $_POST[ 'cff_likebox_width' ];
1232 if (isset($_POST[ 'cff_likebox_height' ])) $cff_likebox_height = $_POST[ 'cff_likebox_height' ];
1233 (isset($_POST[ 'cff_like_box_faces' ])) ? $cff_like_box_faces = $_POST[ 'cff_like_box_faces' ] : $cff_like_box_faces = '';
1234 (isset($_POST[ 'cff_like_box_border' ])) ? $cff_like_box_border = $_POST[ 'cff_like_box_border' ] : $cff_like_box_border = '';
1235 (isset($_POST[ 'cff_like_box_cover' ])) ? $cff_like_box_cover = $_POST[ 'cff_like_box_cover' ] : $cff_like_box_cover = '';
1236 (isset($_POST[ 'cff_like_box_small_header' ])) ? $cff_like_box_small_header = $_POST[ 'cff_like_box_small_header' ] : $cff_like_box_small_header = '';
1237 (isset($_POST[ 'cff_like_box_hide_cta' ])) ? $cff_like_box_hide_cta = $_POST[ 'cff_like_box_hide_cta' ] : $cff_like_box_hide_cta = '';
1238
1239
1240 if (isset($_POST[ 'cff_video_height' ])) $cff_video_height = $_POST[ 'cff_video_height' ];
1241 if (isset($_POST[ 'cff_video_action' ])) $cff_video_action = $_POST[ 'cff_video_action' ];
1242 if (isset($_POST[ 'cff_open_links' ])) $cff_open_links = $_POST[ 'cff_open_links' ];
1243
1244 (isset($_POST[ $cff_ajax ])) ? $cff_ajax_val = $_POST[ 'cff_ajax' ] : $cff_ajax_val = '';
1245 if (isset($_POST[ 'cff_app_id' ])) $cff_app_id = $_POST[ 'cff_app_id' ];
1246 (isset($_POST[ 'cff_show_credit' ])) ? $cff_show_credit = $_POST[ 'cff_show_credit' ] : $cff_show_credit = '';
1247 (isset($_POST[ 'cff_font_source' ])) ? $cff_font_source = $_POST[ 'cff_font_source' ] : $cff_font_source = '';
1248 (isset($_POST[ $cff_preserve_settings ])) ? $cff_preserve_settings_val = $_POST[ 'cff_preserve_settings' ] : $cff_preserve_settings_val = '';
1249 if (isset($_POST[ 'cff_cron' ])) $cff_cron = $_POST[ 'cff_cron' ];
1250 if (isset($_POST[ 'cff_request_method' ])) $cff_request_method = $_POST[ 'cff_request_method' ];
1251 (isset($_POST[ 'cff_disable_styles' ])) ? $cff_disable_styles = $_POST[ 'cff_disable_styles' ] : $cff_disable_styles = '';
1252
1253 //Meta
1254 $options[ 'cff_icon_style' ] = $cff_icon_style;
1255 $options[ 'cff_meta_text_color' ] = $cff_meta_text_color;
1256 $options[ 'cff_meta_bg_color' ] = $cff_meta_bg_color;
1257 $options[ 'cff_nocomments_text' ] = $cff_nocomments_text;
1258 $options[ 'cff_hide_comments' ] = $cff_hide_comments;
1259 //Custom CSS
1260 $options[ 'cff_custom_css' ] = $cff_custom_css;
1261 $options[ 'cff_custom_js' ] = $cff_custom_js;
1262 //Misc
1263 $options[ 'cff_show_like_box' ] = $cff_show_like_box;
1264 $options[ 'cff_like_box_position' ] = $cff_like_box_position;
1265 $options[ 'cff_like_box_outside' ] = $cff_like_box_outside;
1266 $options[ 'cff_likebox_bg_color' ] = $cff_likebox_bg_color;
1267 $options[ 'cff_like_box_text_color' ] = $cff_like_box_text_color;
1268
1269 $options[ 'cff_likebox_width' ] = $cff_likebox_width;
1270 $options[ 'cff_likebox_height' ] = $cff_likebox_height;
1271 $options[ 'cff_like_box_faces' ] = $cff_like_box_faces;
1272 $options[ 'cff_like_box_border' ] = $cff_like_box_border;
1273 $options[ 'cff_like_box_cover' ] = $cff_like_box_cover;
1274 $options[ 'cff_like_box_small_header' ] = $cff_like_box_small_header;
1275 $options[ 'cff_like_box_hide_cta' ] = $cff_like_box_hide_cta;
1276
1277
1278 $options[ 'cff_video_height' ] = $cff_video_height;
1279 $options[ 'cff_video_action' ] = $cff_video_action;
1280 $options[ 'cff_open_links' ] = $cff_open_links;
1281
1282 update_option( $cff_ajax, $cff_ajax_val );
1283 $options[ 'cff_app_id' ] = $cff_app_id;
1284 $options[ 'cff_show_credit' ] = $cff_show_credit;
1285 $options[ 'cff_font_source' ] = $cff_font_source;
1286 update_option( $cff_preserve_settings, $cff_preserve_settings_val );
1287
1288 $options[ 'cff_cron' ] = $cff_cron;
1289 $options[ 'cff_request_method' ] = $cff_request_method;
1290 $options[ 'cff_disable_styles' ] = $cff_disable_styles;
1291
1292 if( $cff_cron == 'no' ) wp_clear_scheduled_hook('cff_cron_job');
1293
1294 //Run cron when Misc settings are saved
1295 if( $cff_cron == 'yes' ){
1296 //Clear the existing cron event
1297 wp_clear_scheduled_hook('cff_cron_job');
1298
1299 $cff_cache_time = get_option( 'cff_cache_time' );
1300 $cff_cache_time_unit = get_option( 'cff_cache_time_unit' );
1301
1302 //Set the event schedule based on what the caching time is set to
1303 $cff_cron_schedule = 'hourly';
1304 if( $cff_cache_time_unit == 'hours' && $cff_cache_time > 5 ) $cff_cron_schedule = 'twicedaily';
1305 if( $cff_cache_time_unit == 'days' ) $cff_cron_schedule = 'daily';
1306
1307 wp_schedule_event(time(), $cff_cron_schedule, 'cff_cron_job');
1308 }
1309
1310 }
1311 //Update the Custom Text / Translate options
1312 if( isset($_POST[ $style_custom_text_hidden_field_name ]) && $_POST[ $style_custom_text_hidden_field_name ] == 'Y' ) {
1313
1314 //Translate
1315 if (isset($_POST[ 'cff_see_more_text' ])) $cff_see_more_text = $_POST[ 'cff_see_more_text' ];
1316 if (isset($_POST[ 'cff_see_less_text' ])) $cff_see_less_text = $_POST[ 'cff_see_less_text' ];
1317 if (isset($_POST[ 'cff_facebook_link_text' ])) $cff_facebook_link_text = $_POST[ 'cff_facebook_link_text' ];
1318 if (isset($_POST[ 'cff_facebook_share_text' ])) $cff_facebook_share_text = $_POST[ 'cff_facebook_share_text' ];
1319
1320 //Social translate
1321 if (isset($_POST[ 'cff_translate_photos_text' ])) $cff_translate_photos_text = $_POST[ 'cff_translate_photos_text' ];
1322 if (isset($_POST[ 'cff_translate_photo_text' ])) $cff_translate_photo_text = $_POST[ 'cff_translate_photo_text' ];
1323 if (isset($_POST[ 'cff_translate_video_text' ])) $cff_translate_video_text = $_POST[ 'cff_translate_video_text' ];
1324
1325 //Date translate
1326 if (isset($_POST[ 'cff_translate_second' ])) $cff_translate_second = $_POST[ 'cff_translate_second' ];
1327 if (isset($_POST[ 'cff_translate_seconds' ])) $cff_translate_seconds = $_POST[ 'cff_translate_seconds' ];
1328 if (isset($_POST[ 'cff_translate_minute' ])) $cff_translate_minute = $_POST[ 'cff_translate_minute' ];
1329 if (isset($_POST[ 'cff_translate_minutes' ])) $cff_translate_minutes = $_POST[ 'cff_translate_minutes' ];
1330 if (isset($_POST[ 'cff_translate_hour' ])) $cff_translate_hour = $_POST[ 'cff_translate_hour' ];
1331 if (isset($_POST[ 'cff_translate_hours' ])) $cff_translate_hours = $_POST[ 'cff_translate_hours' ];
1332 if (isset($_POST[ 'cff_translate_day' ])) $cff_translate_day = $_POST[ 'cff_translate_day' ];
1333 if (isset($_POST[ 'cff_translate_days' ])) $cff_translate_days = $_POST[ 'cff_translate_days' ];
1334 if (isset($_POST[ 'cff_translate_week' ])) $cff_translate_week = $_POST[ 'cff_translate_week' ];
1335 if (isset($_POST[ 'cff_translate_weeks' ])) $cff_translate_weeks = $_POST[ 'cff_translate_weeks' ];
1336 if (isset($_POST[ 'cff_translate_month' ])) $cff_translate_month = $_POST[ 'cff_translate_month' ];
1337 if (isset($_POST[ 'cff_translate_months' ])) $cff_translate_months = $_POST[ 'cff_translate_months' ];
1338 if (isset($_POST[ 'cff_translate_year' ])) $cff_translate_year = $_POST[ 'cff_translate_year' ];
1339 if (isset($_POST[ 'cff_translate_years' ])) $cff_translate_years = $_POST[ 'cff_translate_years' ];
1340 if (isset($_POST[ 'cff_translate_ago' ])) $cff_translate_ago = $_POST[ 'cff_translate_ago' ];
1341
1342 //Translate
1343 $options[ 'cff_see_more_text' ] = $cff_see_more_text;
1344 $options[ 'cff_see_less_text' ] = $cff_see_less_text;
1345 $options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
1346 $options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
1347
1348 //Social translate
1349 $options[ 'cff_translate_photos_text' ] = $cff_translate_photos_text;
1350 $options[ 'cff_translate_photo_text' ] = $cff_translate_photo_text;
1351 $options[ 'cff_translate_video_text' ] = $cff_translate_video_text;
1352
1353 //Date translate
1354 $options[ 'cff_translate_second' ] = $cff_translate_second;
1355 $options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
1356 $options[ 'cff_translate_minute' ] = $cff_translate_minute;
1357 $options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
1358 $options[ 'cff_translate_hour' ] = $cff_translate_hour;
1359 $options[ 'cff_translate_hours' ] = $cff_translate_hours;
1360 $options[ 'cff_translate_day' ] = $cff_translate_day;
1361 $options[ 'cff_translate_days' ] = $cff_translate_days;
1362 $options[ 'cff_translate_week' ] = $cff_translate_week;
1363 $options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
1364 $options[ 'cff_translate_month' ] = $cff_translate_month;
1365 $options[ 'cff_translate_months' ] = $cff_translate_months;
1366 $options[ 'cff_translate_year' ] = $cff_translate_year;
1367 $options[ 'cff_translate_years' ] = $cff_translate_years;
1368 $options[ 'cff_translate_ago' ] = $cff_translate_ago;
1369
1370 }
1371 //Update the array
1372 update_option( 'cff_style_settings', $options );
1373 // Put an settings updated message on the screen
1374 ?>
1375 <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
1376 <?php } ?>
1377
1378 <div id="cff-admin" class="wrap">
1379 <div id="header">
1380 <h2><?php _e('Customize', 'custom-facebook-feed'); ?></h2>
1381 </div>
1382 <form name="form1" method="post" action="">
1383 <input type="hidden" name="<?php echo $style_hidden_field_name; ?>" value="Y">
1384 <?php
1385 $cff_active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
1386 ?>
1387 <h2 class="nav-tab-wrapper">
1388 <a href="?page=cff-style&tab=general" class="nav-tab <?php echo $cff_active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General', 'custom-facebook-feed'); ?></a>
1389 <a href="?page=cff-style&tab=post_layout" class="nav-tab <?php echo $cff_active_tab == 'post_layout' ? 'nav-tab-active' : ''; ?>"><?php _e('Post Layout', 'custom-facebook-feed'); ?></a>
1390 <a href="?page=cff-style&tab=typography" class="nav-tab <?php echo $cff_active_tab == 'typography' ? 'nav-tab-active' : ''; ?>"><?php _e('Typography', 'custom-facebook-feed'); ?></a>
1391 <a href="?page=cff-style&tab=misc" class="nav-tab <?php echo $cff_active_tab == 'misc' ? 'nav-tab-active' : ''; ?>"><?php _e('Misc', 'custom-facebook-feed'); ?></a>
1392 <a href="?page=cff-style&tab=custom_text" class="nav-tab <?php echo $cff_active_tab == 'custom_text' ? 'nav-tab-active' : ''; ?>"><?php _e('Custom Text / Translate', 'custom-facebook-feed'); ?></a>
1393 </h2>
1394 <?php if( $cff_active_tab == 'general' ) { //Start General tab ?>
1395
1396 <p class="cff_contents_links" id="general">
1397 <span>Quick links: </span>
1398 <a href="#general">General</a>
1399 <a href="#types">Post Types</a>
1400 </p>
1401
1402 <input type="hidden" name="<?php echo $style_general_hidden_field_name; ?>" value="Y">
1403 <br />
1404 <table class="form-table">
1405 <tbody>
1406 <h3><?php _e('General', 'custom-facebook-feed'); ?></h3>
1407 <tr valign="top">
1408 <th class="bump-left" scope="row"><label><?php _e('Feed Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> width
1409 Eg: width=500px</code></th>
1410 <td>
1411 <input name="cff_feed_width" id="cff_feed_width" type="text" value="<?php esc_attr_e( $cff_feed_width, 'custom-facebook-feed' ); ?>" size="6" />
1412 <span>Eg. 500px, 50%, 10em. <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Default is 100%', 'custom-facebook-feed'); ?></i></span>
1413 <div id="cff_width_options">
1414 <input name="cff_feed_width_resp" type="checkbox" id="cff_feed_width_resp" <?php if($cff_feed_width_resp == true) echo "checked"; ?> /><label for="cff_feed_width_resp"><?php _e('Set to be 100% width on mobile?', 'custom-facebook-feed'); ?></label>
1415 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
1416 <p class="cff-tooltip cff-more-info"><?php _e("If you set a width on the feed then this will be used on mobile as well as desktop. Check this setting to set the feed width to be 100% on mobile so that it is responsive.", 'custom-facebook-feed'); ?></p>
1417 </div>
1418 </td>
1419 </tr>
1420 <tr valign="top">
1421 <th class="bump-left" scope="row"><label><?php _e('Feed Height', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> height
1422 Eg: height=500px</code></th>
1423 <td>
1424 <input name="cff_feed_height" type="text" value="<?php esc_attr_e( $cff_feed_height, 'custom-facebook-feed' ); ?>" size="6" />
1425 <span>Eg. 500px, 50em. <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to set no maximum height. If the feed exceeds this height then a scroll bar will be used.', 'custom-facebook-feed'); ?></i></span>
1426 </td>
1427 </tr>
1428 <th class="bump-left" scope="row"><label><?php _e('Feed Padding', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> padding
1429 Eg: padding=20px</code></th>
1430 <td>
1431 <input name="cff_feed_padding" type="text" value="<?php esc_attr_e( $cff_feed_padding, 'custom-facebook-feed' ); ?>" size="6" />
1432 <span>Eg. 20px, 5%. <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('This is the amount of padding/spacing that goes around the feed. This is particularly useful if you intend to set a background color on the feed.', 'custom-facebook-feed'); ?></i></span>
1433 </td>
1434 </tr>
1435 <tr valign="top">
1436 <th class="bump-left" scope="row"><label><?php _e('Feed Background Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> bgcolor
1437 Eg: bgcolor=FF0000</code></th>
1438 <td>
1439 <input name="cff_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_bg_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1440 </td>
1441 </tr>
1442 <tr valign="top">
1443 <th class="bump-left" scope="row"><label><?php _e('Add CSS class to feed', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> class
1444 Eg: class=myfeed</code></th>
1445 <td>
1446 <input name="cff_class" type="text" value="<?php esc_attr_e( $cff_class, 'custom-facebook-feed' ); ?>" size="25" />
1447 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('To add multiple classes separate each with a space, Eg. classone classtwo classthree', 'custom-facebook-feed'); ?></i>
1448 </td>
1449 </tr>
1450 <tr valign="top">
1451 <th class="bump-left" scope="row"><label><?php _e('Show Feed Header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showheader
1452 Eg: showheader=true</code></th>
1453 <td>
1454 <input type="checkbox" name="cff_show_header" id="cff_show_header" <?php if($cff_show_header == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
1455 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Display a header at the top of your feed. You can customize the header <a href="?page=cff-style&tab=typography">here</a>.', 'custom-facebook-feed'); ?></i>
1456 </td>
1457 </tr>
1458 </tbody>
1459 </table>
1460
1461 <hr id="types" />
1462 <table class="form-table">
1463 <tbody>
1464 <h3><?php _e('Post Types', 'custom-facebook-feed'); ?></h3>
1465 <tr valign="top">
1466 <th scope="row"><?php _e('Only show these types of posts:', 'custom-facebook-feed'); ?><br />
1467 <i style="color: #666; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/" target="_blank"><?php _e('Upgrade to Pro to enable post types, photos, videos and more', 'custom-facebook-feed'); ?></a></i></th>
1468 <td>
1469 <div>
1470 <input name="cff_show_status_type" type="checkbox" id="cff_show_status_type" disabled checked />
1471 <label for="cff_show_status_type"><?php _e('Statuses', 'custom-facebook-feed'); ?></label>
1472 </div>
1473 <div>
1474 <input type="checkbox" name="cff_show_event_type" id="cff_show_event_type" disabled checked />
1475 <label for="cff_show_event_type"><?php _e('Events', 'custom-facebook-feed'); ?></label>
1476 </div>
1477 <div>
1478 <input type="checkbox" name="cff_show_photos_type" id="cff_show_photos_type" disabled checked />
1479 <label for="cff_show_photos_type"><?php _e('Photos', 'custom-facebook-feed'); ?></label>
1480 </div>
1481 <div>
1482 <input type="checkbox" name="cff_show_video_type" id="cff_show_video_type" disabled checked />
1483 <label for="cff_show_video_type"><?php _e('Videos', 'custom-facebook-feed'); ?></label>
1484 </div>
1485 <div>
1486 <input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
1487 <label for="cff_show_links_type"><?php _e('Links', 'custom-facebook-feed'); ?></label>
1488 </div>
1489 <div>
1490 <input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
1491 <label for="cff_show_links_type"><?php _e('Albums', 'custom-facebook-feed'); ?></label>
1492 </div>
1493 </td>
1494 </tr>
1495 </tbody>
1496 </table>
1497 <?php submit_button(); ?>
1498
1499 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
1500 <?php } //End General tab ?>
1501 <?php if( $cff_active_tab == 'post_layout' ) { //Start Post Layout tab ?>
1502
1503 <p class="cff_contents_links" id="layout">
1504 <span>Quick links: </span>
1505 <a href="#layout">Post Layout</a>
1506 <a href="#showhide">Show/Hide</a>
1507 <a href="#poststyle">Post Style</a>
1508 </p>
1509
1510 <input type="hidden" name="<?php echo $style_post_layout_hidden_field_name; ?>" value="Y">
1511 <br />
1512 <h3><?php _e('Post Layouts', 'custom-facebook-feed'); ?></h3>
1513 <p><i style="color: #666; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/" target="_blank"><?php _e('Upgrade to Pro to enable post layouts', 'custom-facebook-feed'); ?></a></i></p>
1514
1515 <table class="form-table">
1516
1517 <hr />
1518 <h3><?php _e('Show/Hide', 'custom-facebook-feed'); ?></h3>
1519 <table class="form-table">
1520 <tbody>
1521 <tr valign="top">
1522 <th scope="row"><label><?php _e('Include the following in posts: <i style="font-size: 11px;">(when applicable)</i>', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
1523 Eg: include=text,date,likebox
1524 Eg: exclude=likebox
1525
1526 Options: author, text, desc, sharedlinks, date, eventtitle, eventdetails, link, likebox</code>
1527 </th>
1528 <td>
1529 <div>
1530 <input name="cff_show_author" type="checkbox" id="cff_show_author" <?php if($cff_show_author == true) echo "checked"; ?> />
1531 <label for="cff_show_author"><?php _e('Author name and avatar', 'custom-facebook-feed'); ?></label>
1532 </div>
1533 <div>
1534 <input name="cff_show_text" type="checkbox" id="cff_show_text" <?php if($cff_show_text == true) echo "checked"; ?> />
1535 <label for="cff_show_text"><?php _e('Post text', 'custom-facebook-feed'); ?></label>
1536 </div>
1537 <div>
1538 <input type="checkbox" name="cff_show_date" id="cff_show_date" <?php if($cff_show_date == true) echo 'checked="checked"' ?> />
1539 <label for="cff_show_date"><?php _e('Date', 'custom-facebook-feed'); ?></label>
1540 </div>
1541 <div class="cff-disabled">
1542 <input type="checkbox" id="cff_show_media" disabled />
1543 <label for="cff_show_media"><?php _e('Photos/videos', 'custom-facebook-feed'); ?></label>
1544 </div>
1545 <div>
1546 <input type="checkbox" name="cff_show_media_link" id="cff_show_media_link" <?php if($cff_show_media_link == true) echo 'checked="checked"' ?> />
1547 <label for="cff_show_media_link"><?php _e('Media link', 'custom-facebook-feed'); ?></label><a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is this?'); ?></a>
1548 <p class="cff-tooltip cff-more-info"><?php _e('Display an icon and link to Facebook if the post contains either a photo or video'); ?></p>
1549 </div>
1550 <div>
1551 <input type="checkbox" name="cff_show_shared_links" id="cff_show_shared_links" <?php if($cff_show_shared_links == true) echo 'checked="checked"' ?> />
1552 <label for="cff_show_shared_links"><?php _e('Shared links', 'custom-facebook-feed'); ?></label>
1553 </div>
1554 <div>
1555 <input type="checkbox" name="cff_show_desc" id="cff_show_desc" <?php if($cff_show_desc == true) echo 'checked="checked"' ?> />
1556 <label for="cff_show_desc"><?php _e('Link, photo and video descriptions', 'custom-facebook-feed'); ?></label>
1557 </div>
1558 <div>
1559 <input type="checkbox" name="cff_show_event_title" id="cff_show_event_title" <?php if($cff_show_event_title == true) echo 'checked="checked"' ?> />
1560 <label for="cff_show_event_title"><?php _e('Event title', 'custom-facebook-feed'); ?></label>
1561 </div>
1562 <div>
1563 <input type="checkbox" name="cff_show_event_details" id="cff_show_event_details" <?php if($cff_show_event_details == true) echo 'checked="checked"' ?> />
1564 <label for="cff_show_event_details"><?php _e('Event details', 'custom-facebook-feed'); ?></label>
1565 </div>
1566 <div class="cff-disabled">
1567 <input type="checkbox" id="cff_show_meta" disabled />
1568 <label for="cff_show_meta"><?php _e('Like/shares/comments', 'custom-facebook-feed'); ?></label>
1569 </div>
1570 <div>
1571 <input type="checkbox" name="cff_show_link" id="cff_show_link" <?php if($cff_show_link == true) echo 'checked="checked"' ?> />
1572 <label for="cff_show_link"><?php _e('View on Facebook', 'custom-facebook-feed'); ?></label>
1573 </div>
1574 </td>
1575 </tr>
1576 <tr id="poststyle"><!-- Quick link --></tr>
1577 </tbody>
1578 </table>
1579
1580 <hr />
1581 <h3><?php _e('Post Style', 'custom-facebook-feed'); ?></h3>
1582 <table class="form-table">
1583 <tbody>
1584 <tr valign="top">
1585 <th class="bump-left" scope="row"><label><?php _e('Background Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> postbgcolor
1586 Eg: postbgcolor=ff0000</code></th>
1587 <td>
1588 <input name="cff_post_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_post_bg_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1589 </td>
1590 </tr>
1591 <tr valign="top">
1592 <th class="bump-left" scope="row"><label><?php _e('Rounded Corner Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> postcorners
1593 Eg: postcorners=10</code></th>
1594 <td>
1595 <input name="cff_post_rounded" type="text" value="<?php esc_attr_e( $cff_post_rounded, 'custom-facebook-feed' ); ?>" size="3" />px <span><i style="color: #666; font-size: 11px; margin-left: 5px;">Eg. 5</i></span>
1596 </td>
1597 </tr>
1598 <tr valign="top">
1599 <th class="bump-left" scope="row"><label><?php _e('Separating Line Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> sepcolor
1600 Eg: sepcolor=CFCFCF</code></th>
1601 <td>
1602 <input name="cff_sep_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_sep_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" /><i style="color: #666; font-size: 11px; margin-left: 5px; position: relative; top: -10px;"><?php _e("Doesn't apply if you have a background color applied to your posts", 'custom-facebook-feed'); ?></i>
1603 </td>
1604 </tr>
1605 <tr valign="top">
1606 <th class="bump-left" scope="row"><label><?php _e('Separating Line Thickness', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> sepsize
1607 Eg: sepsize=3</code></th>
1608 <td>
1609 <input name="cff_sep_size" type="text" value="<?php esc_attr_e( $cff_sep_size, 'custom-facebook-feed' ); ?>" size="1" /><span>px</span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to hide', 'custom-facebook-feed'); ?></i>
1610 </td>
1611 </tr>
1612 </tbody>
1613 </table>
1614
1615 <?php submit_button(); ?>
1616 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
1617 <?php } //End Post Layout tab ?>
1618 <?php if( $cff_active_tab == 'typography' ) { //Start Typography tab ?>
1619
1620 <p class="cff_contents_links" id="header">
1621 <span>Quick links: </span>
1622 <a href="#header">Feed Header</a>
1623 <a href="#author">Post Author</a>
1624 <a href="#text">Post Text</a>
1625 <a href="#description">Link, Photo and Video Description</a>
1626 <a href="#date">Post Date</a>
1627 <a href="#links">Shared Links</a>
1628 <a href="#eventtitle">Event Title</a>
1629 <a href="#eventdate">Event Date</a>
1630 <a href="#eventdetails">Event Details</a>
1631 <a href="#action">View on Facebook</a>
1632 </p>
1633
1634 <input type="hidden" name="<?php echo $style_typography_hidden_field_name; ?>" value="Y">
1635 <br />
1636 <p><i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('"Inherit" means that the text will inherit the styles from your theme.', 'custom-facebook-feed'); ?></i></p>
1637
1638 <div id="poststuff" class="metabox-holder">
1639 <div class="meta-box-sortables ui-sortable">
1640
1641
1642 <div id="adminform" class="postbox" style="display: block;">
1643 <div class="handlediv" title="Click to toggle"><br></div>
1644 <h3 class="hndle"><span><?php _e('Feed Header', 'custom-facebook-feed'); ?></span></h3>
1645 <div class="inside">
1646 <table class="form-table">
1647 <tbody>
1648 <tr valign="top">
1649 <th class="bump-left" scope="row"><label><?php _e('Display outside the scrollable area', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headeroutside
1650 Eg: headeroutside=true</code></th>
1651 <td>
1652 <input type="checkbox" name="cff_header_outside" id="cff_header_outside" <?php if($cff_header_outside == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
1653 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Only applicable if you have set a height on the feed', 'custom-facebook-feed'); ?></i>
1654 </td>
1655 </tr>
1656 </tr>
1657 <th class="bump-left" scope="row"><label><?php _e('Header Text', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headertext
1658 Eg: headertext='Facebook Feed'</code></th>
1659 <td>
1660 <input name="cff_header_text" type="text" value="<?php esc_attr_e( $cff_header_text, 'custom-facebook-feed' ); ?>" size="30" />
1661 <span>Eg. Facebook Feed, Events, News..</span>
1662 </td>
1663 </tr>
1664 <tr valign="top">
1665 <th class="bump-left" scope="row"><label><?php _e('Background Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headerbg
1666 Eg: headerbg=DDD</code></th>
1667 <td>
1668 <input name="cff_header_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_bg_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1669 </td>
1670 </tr>
1671 </tr>
1672 <th class="bump-left" scope="row"><label><?php _e('Padding', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headerpadding
1673 Eg: headerpadding=20px</code></th>
1674 <td>
1675 <input name="cff_header_padding" type="text" value="<?php esc_attr_e( $cff_header_padding, 'custom-facebook-feed' ); ?>" size="6" />
1676 <span>Eg. 20px, 5%. <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('This is the amount of padding/spacing that goes around the header.', 'custom-facebook-feed'); ?></i></span>
1677 </td>
1678 </tr>
1679 <tr>
1680 <th class="bump-left" scope="row"><label><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headertextsize
1681 Eg: headertextsize=28</code></th>
1682 <td>
1683 <select name="cff_header_text_size">
1684 <option value="inherit" <?php if($cff_header_text_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1685 <option value="10" <?php if($cff_header_text_size == "10") echo 'selected="selected"' ?> >10px</option>
1686 <option value="11" <?php if($cff_header_text_size == "11") echo 'selected="selected"' ?> >11px</option>
1687 <option value="12" <?php if($cff_header_text_size == "12") echo 'selected="selected"' ?> >12px</option>
1688 <option value="13" <?php if($cff_header_text_size == "13") echo 'selected="selected"' ?> >13px</option>
1689 <option value="14" <?php if($cff_header_text_size == "14") echo 'selected="selected"' ?> >14px</option>
1690 <option value="16" <?php if($cff_header_text_size == "16") echo 'selected="selected"' ?> >16px</option>
1691 <option value="18" <?php if($cff_header_text_size == "18") echo 'selected="selected"' ?> >18px</option>
1692 <option value="20" <?php if($cff_header_text_size == "20") echo 'selected="selected"' ?> >20px</option>
1693 <option value="24" <?php if($cff_header_text_size == "24") echo 'selected="selected"' ?> >24px</option>
1694 <option value="28" <?php if($cff_header_text_size == "28") echo 'selected="selected"' ?> >28px</option>
1695 <option value="32" <?php if($cff_header_text_size == "32") echo 'selected="selected"' ?> >32px</option>
1696 <option value="36" <?php if($cff_header_text_size == "36") echo 'selected="selected"' ?> >36px</option>
1697 <option value="42" <?php if($cff_header_text_size == "42") echo 'selected="selected"' ?> >42px</option>
1698 <option value="48" <?php if($cff_header_text_size == "48") echo 'selected="selected"' ?> >48px</option>
1699 <option value="54" <?php if($cff_header_text_size == "54") echo 'selected="selected"' ?> >54px</option>
1700 <option value="60" <?php if($cff_header_text_size == "60") echo 'selected="selected"' ?> >60px</option>
1701 </select>
1702 </td>
1703 </tr>
1704 <tr>
1705 <th class="bump-left" scope="row"><label><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headertextweight
1706 Eg: headertextweight=bold</code></th>
1707 <td>
1708 <select name="cff_header_text_weight">
1709 <option value="inherit" <?php if($cff_header_text_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1710 <option value="normal" <?php if($cff_header_text_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1711 <option value="bold" <?php if($cff_header_text_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1712 </select>
1713 </td>
1714 </tr>
1715 <tr>
1716 <th class="bump-left" scope="row"><label><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headertextcolor
1717 Eg: headertextcolor=333</code></th>
1718 <td>
1719 <input name="cff_header_text_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_text_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1720 </td>
1721 </tr>
1722 <tr>
1723 <th class="bump-left" scope="row"><label><?php _e('Icon Type', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headericon
1724 Eg: headericon=facebook</code></th>
1725 <td>
1726 <select name="cff_header_icon" id="cff-header-icon">
1727 <option value="facebook-square" <?php if($cff_header_icon == "facebook-square") echo 'selected="selected"' ?> >Facebook 1</option>
1728 <option value="facebook" <?php if($cff_header_icon == "facebook") echo 'selected="selected"' ?> >Facebook 2</option>
1729 <option value="calendar" <?php if($cff_header_icon == "calendar") echo 'selected="selected"' ?> >Events 1</option>
1730 <option value="calendar-o" <?php if($cff_header_icon == "calendar-o") echo 'selected="selected"' ?> >Events 2</option>
1731 <option value="picture-o" <?php if($cff_header_icon == "picture-o") echo 'selected="selected"' ?> >Photos</option>
1732 <option value="users" <?php if($cff_header_icon == "users") echo 'selected="selected"' ?> >People</option>
1733 <option value="thumbs-o-up" <?php if($cff_header_icon == "thumbs-o-up") echo 'selected="selected"' ?> >Thumbs Up 1</option>
1734 <option value="thumbs-up" <?php if($cff_header_icon == "thumbs-up") echo 'selected="selected"' ?> >Thumbs Up 2</option>
1735 <option value="comment-o" <?php if($cff_header_icon == "comment-o") echo 'selected="selected"' ?> >Speech Bubble 1</option>
1736 <option value="comment" <?php if($cff_header_icon == "comment") echo 'selected="selected"' ?> >Speech Bubble 2</option>
1737 <option value="ticket" <?php if($cff_header_icon == "ticket") echo 'selected="selected"' ?> >Ticket</option>
1738 <option value="list-alt" <?php if($cff_header_icon == "list-alt") echo 'selected="selected"' ?> >News List</option>
1739 <option value="file" <?php if($cff_header_icon == "file") echo 'selected="selected"' ?> >File 1</option>
1740 <option value="file-o" <?php if($cff_header_icon == "file-o") echo 'selected="selected"' ?> >File 2</option>
1741 <option value="file-text" <?php if($cff_header_icon == "file-text") echo 'selected="selected"' ?> >File 3</option>
1742 <option value="file-text-o" <?php if($cff_header_icon == "file-text-o") echo 'selected="selected"' ?> >File 4</option>
1743 <option value="youtube-play" <?php if($cff_header_icon == "youtube-play") echo 'selected="selected"' ?> >Video</option>
1744 <option value="youtube" <?php if($cff_header_icon == "youtube") echo 'selected="selected"' ?> >YouTube</option>
1745 <option value="vimeo-square" <?php if($cff_header_icon == "vimeo-square") echo 'selected="selected"' ?> >Vimeo</option>
1746 </select>
1747
1748 <i id="cff-header-icon-example" class="fa fa-facebook-square"></i>
1749 </td>
1750 </tr>
1751 <tr>
1752 <th class="bump-left" scope="row"><label><?php _e('Icon Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headericoncolor
1753 Eg: headericoncolor=FFF</code></th>
1754 <td>
1755 <input name="cff_header_icon_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_icon_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1756 </td>
1757 </tr>
1758 <tr>
1759 <th class="bump-left" scope="row"><label><?php _e('Icon Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> headericonsize
1760 Eg: headericonsize=28</code></th>
1761 <td>
1762 <select name="cff_header_icon_size" id="cff-header-icon-size">
1763 <option value="10" <?php if($cff_header_icon_size == "10") echo 'selected="selected"' ?> >10px</option>
1764 <option value="11" <?php if($cff_header_icon_size == "11") echo 'selected="selected"' ?> >11px</option>
1765 <option value="12" <?php if($cff_header_icon_size == "12") echo 'selected="selected"' ?> >12px</option>
1766 <option value="13" <?php if($cff_header_icon_size == "13") echo 'selected="selected"' ?> >13px</option>
1767 <option value="14" <?php if($cff_header_icon_size == "14") echo 'selected="selected"' ?> >14px</option>
1768 <option value="16" <?php if($cff_header_icon_size == "16") echo 'selected="selected"' ?> >16px</option>
1769 <option value="18" <?php if($cff_header_icon_size == "18") echo 'selected="selected"' ?> >18px</option>
1770 <option value="20" <?php if($cff_header_icon_size == "20") echo 'selected="selected"' ?> >20px</option>
1771 <option value="24" <?php if($cff_header_icon_size == "24") echo 'selected="selected"' ?> >24px</option>
1772 <option value="28" <?php if($cff_header_icon_size == "28") echo 'selected="selected"' ?> >28px</option>
1773 <option value="32" <?php if($cff_header_icon_size == "32") echo 'selected="selected"' ?> >32px</option>
1774 <option value="36" <?php if($cff_header_icon_size == "36") echo 'selected="selected"' ?> >36px</option>
1775 <option value="42" <?php if($cff_header_icon_size == "42") echo 'selected="selected"' ?> >42px</option>
1776 <option value="48" <?php if($cff_header_icon_size == "48") echo 'selected="selected"' ?> >48px</option>
1777 <option value="54" <?php if($cff_header_icon_size == "54") echo 'selected="selected"' ?> >54px</option>
1778 <option value="60" <?php if($cff_header_icon_size == "60") echo 'selected="selected"' ?> >60px</option>
1779 </select>
1780 </td>
1781 </tr>
1782 <tr id="author"><!-- Quick link --></tr>
1783 </tbody>
1784 </table>
1785 </div>
1786 </div>
1787
1788 <div id="adminform" class="postbox" style="display: block;">
1789 <div class="handlediv"><br></div>
1790 <h3 class="hndle"><span><?php _e('Post Author', 'custom-facebook-feed'); ?></span></h3>
1791 <div class="inside">
1792 <table class="form-table">
1793 <tbody>
1794 <tr>
1795 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> authorsize
1796 Eg: authorsize=20</code></th>
1797 <td>
1798 <select name="cff_author_size">
1799 <option value="inherit" <?php if($cff_author_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1800 <option value="10" <?php if($cff_author_size == "10") echo 'selected="selected"' ?> >10px</option>
1801 <option value="11" <?php if($cff_author_size == "11") echo 'selected="selected"' ?> >11px</option>
1802 <option value="12" <?php if($cff_author_size == "12") echo 'selected="selected"' ?> >12px</option>
1803 <option value="13" <?php if($cff_author_size == "13") echo 'selected="selected"' ?> >13px</option>
1804 <option value="14" <?php if($cff_author_size == "14") echo 'selected="selected"' ?> >14px</option>
1805 <option value="16" <?php if($cff_author_size == "16") echo 'selected="selected"' ?> >16px</option>
1806 <option value="18" <?php if($cff_author_size == "18") echo 'selected="selected"' ?> >18px</option>
1807 <option value="20" <?php if($cff_author_size == "20") echo 'selected="selected"' ?> >20px</option>
1808 <option value="24" <?php if($cff_author_size == "24") echo 'selected="selected"' ?> >24px</option>
1809 <option value="28" <?php if($cff_author_size == "28") echo 'selected="selected"' ?> >28px</option>
1810 <option value="32" <?php if($cff_author_size == "32") echo 'selected="selected"' ?> >32px</option>
1811 <option value="36" <?php if($cff_author_size == "36") echo 'selected="selected"' ?> >36px</option>
1812 <option value="42" <?php if($cff_author_size == "42") echo 'selected="selected"' ?> >42px</option>
1813 <option value="48" <?php if($cff_author_size == "48") echo 'selected="selected"' ?> >48px</option>
1814 <option value="54" <?php if($cff_author_size == "54") echo 'selected="selected"' ?> >54px</option>
1815 <option value="60" <?php if($cff_author_size == "60") echo 'selected="selected"' ?> >60px</option>
1816 </select>
1817 </td>
1818 </tr>
1819 <tr>
1820 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> authorcolor
1821 Eg: authorcolor=ff0000</code></th>
1822 <td>
1823 <input name="cff_author_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_author_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1824 </td>
1825 </tr>
1826 <tr id="text"><!-- Quick link --></tr>
1827 </tbody>
1828 </table>
1829 </div>
1830 </div>
1831
1832 <div style="margin-top: -15px;">
1833 <?php submit_button(); ?>
1834 </div>
1835 <div id="adminform" class="postbox" style="display: block;">
1836 <div class="handlediv" title="Click to toggle"><br></div>
1837 <h3 class="hndle"><span><?php _e('Post Text', 'custom-facebook-feed'); ?></span></h3>
1838 <div class="inside">
1839 <table class="form-table">
1840 <tbody>
1841 <tr valign="top">
1842 <th scope="row"><label class="bump-left"><?php _e('Maximum Post Text Length', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> textlength
1843 Eg: textlength=200</code></th>
1844 <td>
1845 <input name="cff_title_length" type="text" value="<?php esc_attr_e( $cff_title_length_val, 'custom-facebook-feed' ); ?>" size="4" /> <span><?php _e('Characters.', 'custom-facebook-feed'); ?></span> <span>Eg. 200</span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('If the post text exceeds this length then a "See More" button will be added. Leave empty to set no maximum length.', 'custom-facebook-feed'); ?></i>
1846 </td>
1847 </tr>
1848 <tr>
1849 <th><label class="bump-left"><?php _e('Format', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> textformat
1850 Eg: textformat=h4</code></th>
1851 <td>
1852 <select name="cff_title_format">
1853 <option value="p" <?php if($cff_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
1854 <option value="h3" <?php if($cff_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
1855 <option value="h4" <?php if($cff_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
1856 <option value="h5" <?php if($cff_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
1857 <option value="h6" <?php if($cff_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
1858 </select>
1859 </td>
1860 </tr>
1861 <tr>
1862 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> textsize
1863 Eg: textsize=12</code></th>
1864 <td>
1865 <select name="cff_title_size">
1866 <option value="inherit" <?php if($cff_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1867 <option value="10" <?php if($cff_title_size == "10") echo 'selected="selected"' ?> >10px</option>
1868 <option value="11" <?php if($cff_title_size == "11") echo 'selected="selected"' ?> >11px</option>
1869 <option value="12" <?php if($cff_title_size == "12") echo 'selected="selected"' ?> >12px</option>
1870 <option value="13" <?php if($cff_title_size == "13") echo 'selected="selected"' ?> >13px</option>
1871 <option value="14" <?php if($cff_title_size == "14") echo 'selected="selected"' ?> >14px</option>
1872 <option value="16" <?php if($cff_title_size == "16") echo 'selected="selected"' ?> >16px</option>
1873 <option value="18" <?php if($cff_title_size == "18") echo 'selected="selected"' ?> >18px</option>
1874 <option value="20" <?php if($cff_title_size == "20") echo 'selected="selected"' ?> >20px</option>
1875 <option value="24" <?php if($cff_title_size == "24") echo 'selected="selected"' ?> >24px</option>
1876 <option value="28" <?php if($cff_title_size == "28") echo 'selected="selected"' ?> >28px</option>
1877 <option value="32" <?php if($cff_title_size == "32") echo 'selected="selected"' ?> >32px</option>
1878 <option value="36" <?php if($cff_title_size == "36") echo 'selected="selected"' ?> >36px</option>
1879 <option value="42" <?php if($cff_title_size == "42") echo 'selected="selected"' ?> >42px</option>
1880 <option value="48" <?php if($cff_title_size == "48") echo 'selected="selected"' ?> >48px</option>
1881 <option value="54" <?php if($cff_title_size == "54") echo 'selected="selected"' ?> >54px</option>
1882 <option value="60" <?php if($cff_title_size == "60") echo 'selected="selected"' ?> >60px</option>
1883 </select>
1884 </td>
1885 </tr>
1886 <tr>
1887 <th><label class="bump-left"><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> textweight
1888 Eg: textweight=bold</code></th>
1889 <td>
1890 <select name="cff_title_weight">
1891 <option value="inherit" <?php if($cff_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1892 <option value="normal" <?php if($cff_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1893 <option value="bold" <?php if($cff_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1894 </select>
1895 </td>
1896 </tr>
1897 <tr>
1898 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> textcolor
1899 Eg: textcolor=333</code></th>
1900 <td>
1901 <input name="cff_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_title_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1902 </td>
1903 </tr>
1904 <tr>
1905 <th><label class="bump-left"><?php _e('Link Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> textlinkcolor
1906 Eg: textlinkcolor=E69100</code></th>
1907 <td>
1908 <input name="cff_posttext_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_posttext_link_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1909 </td>
1910 </tr>
1911 <tr>
1912 <th><label class="bump-left"><?php _e('Link Text to Facebook Post?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> textlink
1913 Eg: textlink=true</code></th>
1914 <td><input type="checkbox" name="cff_title_link" id="cff_title_link" <?php if($cff_title_link == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?></td>
1915 </tr>
1916
1917 <tr>
1918 <th><label class="bump-left"><?php _e('Link Post Tags?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> posttags
1919 Eg: posttags=false</code></th>
1920 <td>
1921 <input type="checkbox" name="cff_post_tags" id="cff_post_tags" <?php if($cff_post_tags == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
1922 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What are Post Tags?', 'custom-facebook-feed'); ?></a>
1923 <p class="cff-tooltip cff-more-info"><?php _e("When you tag another Facebook page or user in your post using the @ symbol it creates a post tag, which is a link to either that Facebook page or user profile.", 'custom-facebook-feed'); ?></p>
1924 </td>
1925 </tr>
1926
1927 <tr>
1928 <th><label class="bump-left"><?php _e('Link Hashtags?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linkhashtags
1929 Eg: linkhashtags=false</code></th>
1930 <td>
1931 <input type="checkbox" name="cff_link_hashtags" id="cff_link_hashtags" <?php if($cff_link_hashtags == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
1932 </td>
1933 </tr>
1934 <tr id="description"><!-- Quick link --></tr>
1935 </tbody>
1936 </table>
1937 </div>
1938 </div>
1939 <div id="adminform" class="postbox" style="display: block;">
1940 <div class="handlediv" title="Click to toggle"><br></div>
1941 <h3 class="hndle"><span><?php _e('Link, Photo and Video Description', 'custom-facebook-feed'); ?></span></h3>
1942 <div class="inside">
1943 <table class="form-table">
1944 <tbody>
1945 <tr valign="top">
1946 <th scope="row"><label class="bump-left"><?php _e('Maximum Description Length', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> desclength
1947 Eg: desclength=150</code></th>
1948 <td>
1949 <input name="cff_body_length" type="text" value="<?php esc_attr_e( $cff_body_length_val, 'custom-facebook-feed' ); ?>" size="4" /> <span><?php _e('Characters. Eg. 200', 'custom-facebook-feed'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to set no maximum length', 'custom-facebook-feed'); ?></i>
1950 </td>
1951 </tr>
1952 <tr>
1953 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> descsize
1954 Eg: descsize=11</code></th>
1955 <td>
1956 <select name="cff_body_size">
1957 <option value="inherit" <?php if($cff_body_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1958 <option value="10" <?php if($cff_body_size == "10") echo 'selected="selected"' ?> >10px</option>
1959 <option value="11" <?php if($cff_body_size == "11") echo 'selected="selected"' ?> >11px</option>
1960 <option value="12" <?php if($cff_body_size == "12") echo 'selected="selected"' ?> >12px</option>
1961 <option value="13" <?php if($cff_body_size == "13") echo 'selected="selected"' ?> >13px</option>
1962 <option value="14" <?php if($cff_body_size == "14") echo 'selected="selected"' ?> >14px</option>
1963 <option value="16" <?php if($cff_body_size == "16") echo 'selected="selected"' ?> >16px</option>
1964 <option value="18" <?php if($cff_body_size == "18") echo 'selected="selected"' ?> >18px</option>
1965 <option value="20" <?php if($cff_body_size == "20") echo 'selected="selected"' ?> >20px</option>
1966 <option value="24" <?php if($cff_body_size == "24") echo 'selected="selected"' ?> >24px</option>
1967 <option value="28" <?php if($cff_body_size == "28") echo 'selected="selected"' ?> >28px</option>
1968 <option value="32" <?php if($cff_body_size == "32") echo 'selected="selected"' ?> >32px</option>
1969 <option value="36" <?php if($cff_body_size == "36") echo 'selected="selected"' ?> >36px</option>
1970 <option value="42" <?php if($cff_body_size == "42") echo 'selected="selected"' ?> >42px</option>
1971 <option value="48" <?php if($cff_body_size == "48") echo 'selected="selected"' ?> >48px</option>
1972 <option value="54" <?php if($cff_body_size == "54") echo 'selected="selected"' ?> >54px</option>
1973 <option value="60" <?php if($cff_body_size == "60") echo 'selected="selected"' ?> >60px</option>
1974 </select>
1975 </td>
1976 </tr>
1977 <tr>
1978 <th><label class="bump-left"><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> descweight
1979 Eg: descweight=bold</code></th>
1980 <td>
1981 <select name="cff_body_weight">
1982 <option value="inherit" <?php if($cff_body_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1983 <option value="normal" <?php if($cff_body_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1984 <option value="bold" <?php if($cff_body_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1985 </select>
1986 </td>
1987 </tr>
1988 <tr>
1989 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> desccolor
1990 Eg: desccolor=9F9F9F</code></th>
1991
1992 <td>
1993 <input name="cff_body_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_body_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
1994 </td>
1995 </tr>
1996 <tr id="date"><!-- Quick link --></tr>
1997 </tbody>
1998 </table>
1999 </div>
2000 </div>
2001
2002 <div style="margin-top: -15px;">
2003 <?php submit_button(); ?>
2004 </div>
2005 <div id="adminform" class="postbox" style="display: block;">
2006 <div class="handlediv" title="Click to toggle"><br></div>
2007 <h3 class="hndle"><span><?php _e('Post Date', 'custom-facebook-feed'); ?></span></h3>
2008 <div class="inside">
2009 <table class="form-table">
2010 <tbody>
2011 <tr>
2012 <th><label class="bump-left"><?php _e('Position', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> datepos
2013 Eg: datepos=below</code></th>
2014 <td>
2015 <select name="cff_date_position" style="width: 280px;">
2016 <option value="author" <?php if($cff_date_position == "author") echo 'selected="selected"' ?> >Immediately under the post author</option>
2017 <option value="above" <?php if($cff_date_position == "above") echo 'selected="selected"' ?> >At the top of the post</option>
2018 <option value="below" <?php if($cff_date_position == "below") echo 'selected="selected"' ?> >At the bottom of the post</option>
2019 </select>
2020 </td>
2021 </tr>
2022 <tr>
2023 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> datesize
2024 Eg: datesize=14</code></th>
2025 <td>
2026 <select name="cff_date_size">
2027 <option value="inherit" <?php if($cff_date_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2028 <option value="10" <?php if($cff_date_size == "10") echo 'selected="selected"' ?> >10px</option>
2029 <option value="11" <?php if($cff_date_size == "11") echo 'selected="selected"' ?> >11px</option>
2030 <option value="12" <?php if($cff_date_size == "12") echo 'selected="selected"' ?> >12px</option>
2031 <option value="13" <?php if($cff_date_size == "13") echo 'selected="selected"' ?> >13px</option>
2032 <option value="14" <?php if($cff_date_size == "14") echo 'selected="selected"' ?> >14px</option>
2033 <option value="16" <?php if($cff_date_size == "16") echo 'selected="selected"' ?> >16px</option>
2034 <option value="18" <?php if($cff_date_size == "18") echo 'selected="selected"' ?> >18px</option>
2035 <option value="20" <?php if($cff_date_size == "20") echo 'selected="selected"' ?> >20px</option>
2036 <option value="24" <?php if($cff_date_size == "24") echo 'selected="selected"' ?> >24px</option>
2037 <option value="28" <?php if($cff_date_size == "28") echo 'selected="selected"' ?> >28px</option>
2038 <option value="32" <?php if($cff_date_size == "32") echo 'selected="selected"' ?> >32px</option>
2039 <option value="36" <?php if($cff_date_size == "36") echo 'selected="selected"' ?> >36px</option>
2040 <option value="42" <?php if($cff_date_size == "42") echo 'selected="selected"' ?> >42px</option>
2041 <option value="48" <?php if($cff_date_size == "48") echo 'selected="selected"' ?> >48px</option>
2042 <option value="54" <?php if($cff_date_size == "54") echo 'selected="selected"' ?> >54px</option>
2043 <option value="60" <?php if($cff_date_size == "60") echo 'selected="selected"' ?> >60px</option>
2044 </select>
2045 </td>
2046 </tr>
2047 <tr>
2048 <th><label class="bump-left"><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> dateweight
2049 Eg: dateweight=normal</code></th>
2050 <td>
2051 <select name="cff_date_weight">
2052 <option value="inherit" <?php if($cff_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2053 <option value="normal" <?php if($cff_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2054 <option value="bold" <?php if($cff_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2055 </select>
2056 </td>
2057 </tr>
2058 <tr>
2059 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> datecolor
2060 Eg: datecolor=EAD114</code></th>
2061 <td>
2062 <input name="cff_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_date_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2063 </td>
2064 </tr>
2065
2066 <tr>
2067 <th><label class="bump-left"><?php _e('Date formatting', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> dateformat
2068 Eg: dateformat=3</code></th>
2069 <td>
2070 <select name="cff_date_formatting">
2071 <?php $original = strtotime('2013-07-25T17:30:00+0000'); ?>
2072 <option value="1" <?php if($cff_date_formatting == "1") echo 'selected="selected"' ?> ><?php _e('2 days ago', 'custom-facebook-feed'); ?></option>
2073 <option value="2" <?php if($cff_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:i a', $original); ?></option>
2074 <option value="3" <?php if($cff_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('F jS', $original); ?></option>
2075 <option value="4" <?php if($cff_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('D F jS', $original); ?></option>
2076 <option value="5" <?php if($cff_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS', $original); ?></option>
2077 <option value="6" <?php if($cff_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y', $original); ?></option>
2078 <option value="7" <?php if($cff_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y', $original); ?></option>
2079 <option value="8" <?php if($cff_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:i a', $original); ?></option>
2080 <option value="9" <?php if($cff_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
2081 <option value="10" <?php if($cff_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y', $original); ?></option>
2082 <option value="11" <?php if($cff_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y', $original); ?></option>
2083 <option value="12" <?php if($cff_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y', $original); ?></option>
2084 <option value="13" <?php if($cff_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y', $original); ?></option>
2085 </select>
2086 </tr>
2087
2088 <tr>
2089 <th><label class="bump-left"><?php _e('Timezone', 'custom-facebook-feed'); ?></label></th>
2090 <td>
2091 <select name="cff_timezone" style="width: 300px;">
2092 <option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa', 'custom-facebook-feed'); ?></option>
2093 <option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian', 'custom-facebook-feed'); ?></option>
2094 <option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii', 'custom-facebook-feed'); ?></option>
2095 <option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands', 'custom-facebook-feed'); ?></option>
2096 <option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands', 'custom-facebook-feed'); ?></option>
2097 <option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska', 'custom-facebook-feed'); ?></option>
2098 <option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California', 'custom-facebook-feed'); ?></option>
2099 <option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands', 'custom-facebook-feed'); ?></option>
2100 <option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)', 'custom-facebook-feed'); ?></option>
2101 <option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)', 'custom-facebook-feed'); ?></option>
2102 <option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan', 'custom-facebook-feed'); ?></option>
2103 <option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona', 'custom-facebook-feed'); ?></option>
2104 <option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America', 'custom-facebook-feed'); ?></option>
2105 <option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey', 'custom-facebook-feed'); ?></option>
2106 <option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island', 'custom-facebook-feed'); ?></option>
2107 <option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)', 'custom-facebook-feed'); ?></option>
2108 <option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)', 'custom-facebook-feed'); ?></option>
2109 <option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba', 'custom-facebook-feed'); ?></option>
2110 <option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco', 'custom-facebook-feed'); ?></option>
2111 <option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas', 'custom-facebook-feed'); ?></option>
2112 <option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago', 'custom-facebook-feed'); ?></option>
2113 <option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz', 'custom-facebook-feed'); ?></option>
2114 <option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands', 'custom-facebook-feed'); ?></option>
2115 <option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil', 'custom-facebook-feed'); ?></option>
2116 <option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)', 'custom-facebook-feed'); ?></option>
2117 <option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)', 'custom-facebook-feed'); ?></option>
2118 <option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland', 'custom-facebook-feed'); ?></option>
2119 <option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3', 'custom-facebook-feed'); ?></option>
2120 <option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo', 'custom-facebook-feed'); ?></option>
2121 <option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre', 'custom-facebook-feed'); ?></option>
2122 <option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland', 'custom-facebook-feed'); ?></option>
2123 <option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires', 'custom-facebook-feed'); ?></option>
2124 <option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia', 'custom-facebook-feed'); ?></option>
2125 <option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic', 'custom-facebook-feed'); ?></option>
2126 <option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.', 'custom-facebook-feed'); ?></option>
2127 <option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores', 'custom-facebook-feed'); ?></option>
2128 <option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast', 'custom-facebook-feed'); ?></option>
2129 <option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin', 'custom-facebook-feed'); ?></option>
2130 <option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon', 'custom-facebook-feed'); ?></option>
2131 <option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London', 'custom-facebook-feed'); ?></option>
2132 <option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik', 'custom-facebook-feed'); ?></option>
2133 <option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna', 'custom-facebook-feed'); ?></option>
2134 <option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'custom-facebook-feed'); ?></option>
2135 <option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris', 'custom-facebook-feed'); ?></option>
2136 <option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa', 'custom-facebook-feed'); ?></option>
2137 <option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek', 'custom-facebook-feed'); ?></option>
2138 <option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut', 'custom-facebook-feed'); ?></option>
2139 <option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo', 'custom-facebook-feed'); ?></option>
2140 <option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza', 'custom-facebook-feed'); ?></option>
2141 <option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria', 'custom-facebook-feed'); ?></option>
2142 <option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem', 'custom-facebook-feed'); ?></option>
2143 <option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk', 'custom-facebook-feed'); ?></option>
2144 <option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria', 'custom-facebook-feed'); ?></option>
2145 <option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd', 'custom-facebook-feed'); ?></option>
2146 <option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi', 'custom-facebook-feed'); ?></option>
2147 <option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran', 'custom-facebook-feed'); ?></option>
2148 <option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat', 'custom-facebook-feed'); ?></option>
2149 <option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan', 'custom-facebook-feed'); ?></option>
2150 <option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul', 'custom-facebook-feed'); ?></option>
2151 <option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg', 'custom-facebook-feed'); ?></option>
2152 <option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent', 'custom-facebook-feed'); ?></option>
2153 <option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi', 'custom-facebook-feed'); ?></option>
2154 <option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu', 'custom-facebook-feed'); ?></option>
2155 <option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka', 'custom-facebook-feed'); ?></option>
2156 <option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk', 'custom-facebook-feed'); ?></option>
2157 <option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)', 'custom-facebook-feed'); ?></option>
2158 <option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta', 'custom-facebook-feed'); ?></option>
2159 <option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk', 'custom-facebook-feed'); ?></option>
2160 <option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi', 'custom-facebook-feed'); ?></option>
2161 <option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar', 'custom-facebook-feed'); ?></option>
2162 <option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth', 'custom-facebook-feed'); ?></option>
2163 <option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla', 'custom-facebook-feed'); ?></option>
2164 <option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo', 'custom-facebook-feed'); ?></option>
2165 <option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul', 'custom-facebook-feed'); ?></option>
2166 <option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk', 'custom-facebook-feed'); ?></option>
2167 <option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide', 'custom-facebook-feed'); ?></option>
2168 <option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin', 'custom-facebook-feed'); ?></option>
2169 <option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane', 'custom-facebook-feed'); ?></option>
2170 <option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Hobart', 'custom-facebook-feed'); ?></option>
2171 <option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok', 'custom-facebook-feed'); ?></option>
2172 <option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island', 'custom-facebook-feed'); ?></option>
2173 <option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia', 'custom-facebook-feed'); ?></option>
2174 <option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan', 'custom-facebook-feed'); ?></option>
2175 <option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island', 'custom-facebook-feed'); ?></option>
2176 <option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka', 'custom-facebook-feed'); ?></option>
2177 <option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington', 'custom-facebook-feed'); ?></option>
2178 <option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.', 'custom-facebook-feed'); ?></option>
2179 <option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands', 'custom-facebook-feed'); ?></option>
2180 <option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa', 'custom-facebook-feed'); ?></option>
2181 <option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati', 'custom-facebook-feed'); ?></option>
2182 </select>
2183 </td>
2184 </tr>
2185
2186 <tr>
2187 <th><label class="bump-left"><?php _e('Custom format', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> datecustom
2188 Eg: datecustom='D M jS, Y'</code></th>
2189 <td>
2190 <input name="cff_date_custom" type="text" value="<?php esc_attr_e( $cff_date_custom, 'custom-facebook-feed' ); ?>" size="10" placeholder="Eg. F j, Y" />
2191 <a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples', 'custom-facebook-feed'); ?></a>
2192 </td>
2193 </tr>
2194 <tr>
2195 <th><label class="bump-left"><?php _e('Text before date', 'custom-facebook-feed'); ?></label></th>
2196 <td><input name="cff_date_before" type="text" value="<?php esc_attr_e( $cff_date_before, 'custom-facebook-feed' ); ?>" size="20" placeholder="Eg. Posted" /></td>
2197 </tr>
2198 <tr>
2199 <th><label class="bump-left"><?php _e('Text after date', 'custom-facebook-feed'); ?></label></th>
2200 <td><input name="cff_date_after" type="text" value="<?php esc_attr_e( $cff_date_after, 'custom-facebook-feed' ); ?>" size="20" placeholder="Eg. by ___" /></td>
2201 </tr>
2202 <tr id="links"><!-- Quick link --></tr>
2203 </tbody>
2204 </table>
2205 </div>
2206 </div>
2207
2208
2209 <div id="adminform" class="postbox" style="display: block;">
2210 <div class="handlediv" title="Click to toggle"><br></div>
2211 <h3 class="hndle"><span><?php _e('Shared Links', 'custom-facebook-feed'); ?></span></h3>
2212 <div class="inside">
2213 <table class="form-table">
2214 <tbody>
2215 <tr>
2216 <th><label class="bump-left"><?php _e('Link Title Format', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linktitleformat
2217 Eg: linktitleformat='h3'</code></th>
2218 <td>
2219 <select name="cff_link_title_format">
2220 <option value="p" <?php if($cff_link_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
2221 <option value="h3" <?php if($cff_link_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
2222 <option value="h4" <?php if($cff_link_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
2223 <option value="h5" <?php if($cff_link_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
2224 <option value="h6" <?php if($cff_link_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
2225 </select>
2226 </td>
2227 </tr>
2228 <tr>
2229 <th><label class="bump-left"><?php _e('Link Title Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linktitlesize
2230 Eg: linktitlesize='18'</code></th>
2231 <td>
2232 <select name="cff_link_title_size">
2233 <option value="inherit" <?php if($cff_link_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2234 <option value="10" <?php if($cff_link_title_size == "10") echo 'selected="selected"' ?> >10px</option>
2235 <option value="11" <?php if($cff_link_title_size == "11") echo 'selected="selected"' ?> >11px</option>
2236 <option value="12" <?php if($cff_link_title_size == "12") echo 'selected="selected"' ?> >12px</option>
2237 <option value="13" <?php if($cff_link_title_size == "13") echo 'selected="selected"' ?> >13px</option>
2238 <option value="14" <?php if($cff_link_title_size == "14") echo 'selected="selected"' ?> >14px</option>
2239 <option value="16" <?php if($cff_link_title_size == "16") echo 'selected="selected"' ?> >16px</option>
2240 <option value="18" <?php if($cff_link_title_size == "18") echo 'selected="selected"' ?> >18px</option>
2241 <option value="20" <?php if($cff_link_title_size == "20") echo 'selected="selected"' ?> >20px</option>
2242 <option value="24" <?php if($cff_link_title_size == "24") echo 'selected="selected"' ?> >24px</option>
2243 <option value="28" <?php if($cff_link_title_size == "28") echo 'selected="selected"' ?> >28px</option>
2244 <option value="32" <?php if($cff_link_title_size == "32") echo 'selected="selected"' ?> >32px</option>
2245 <option value="36" <?php if($cff_link_title_size == "36") echo 'selected="selected"' ?> >36px</option>
2246 <option value="42" <?php if($cff_link_title_size == "42") echo 'selected="selected"' ?> >42px</option>
2247 <option value="48" <?php if($cff_link_title_size == "48") echo 'selected="selected"' ?> >48px</option>
2248 <option value="54" <?php if($cff_link_title_size == "54") echo 'selected="selected"' ?> >54px</option>
2249 <option value="60" <?php if($cff_link_title_size == "60") echo 'selected="selected"' ?> >60px</option>
2250 </select>
2251 </td>
2252 </tr>
2253 <tr>
2254 <th><label class="bump-left"><?php _e('Link Title Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linktitlecolor
2255 Eg: linktitlecolor='ff0000'</code></th>
2256 <td>
2257 <input name="cff_link_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_title_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2258 </td>
2259 </tr>
2260 <tr>
2261 <th><label class="bump-left"><?php _e('Link URL Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linkurlcolor
2262 Eg: linkurlcolor='999999'</code></th>
2263 <td>
2264 <input name="cff_link_url_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_url_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2265 </td>
2266 </tr>
2267
2268 <tr>
2269 <th><label class="bump-left"><?php _e('Link Box Background Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linkbgcolor
2270 Eg: linkbgcolor='EEE'</code></th>
2271 <td>
2272 <input name="cff_link_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_bg_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2273 </td>
2274 </tr>
2275
2276 <tr>
2277 <th><label class="bump-left"><?php _e('Link Box Border Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linkbordercolor
2278 Eg: linkbordercolor='CCC'</code></th>
2279 <td>
2280 <input name="cff_link_border_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_border_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2281 </td>
2282 </tr>
2283
2284 <tr>
2285 <th><label class="bump-left"><?php _e('Remove Background/Border', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> disablelinkbox
2286 Eg: disablelinkbox=true</code></th>
2287 <td><input type="checkbox" name="cff_disable_link_box" id="cff_disable_link_box" <?php if($cff_disable_link_box == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?></td>
2288 </tr>
2289 <tr id="eventtitle"><!-- Quick link --></tr>
2290 </tbody>
2291 </table>
2292 </div>
2293 </div>
2294
2295 <div style="margin-top: -15px;">
2296 <?php submit_button(); ?>
2297 </div>
2298
2299 <div id="adminform" class="postbox" style="display: block;">
2300 <div class="handlediv" title="Click to toggle"><br></div>
2301 <h3 class="hndle"><span><?php _e('Event Title', 'custom-facebook-feed'); ?></span></h3>
2302 <div class="inside">
2303 <table class="form-table">
2304 <tbody>
2305
2306 <tr>
2307 <th><label class="bump-left"><?php _e('Format', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventtitleformat
2308 Eg: eventtitleformat=h5</code></th>
2309 <td>
2310 <select name="cff_event_title_format">
2311 <option value="p" <?php if($cff_event_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
2312 <option value="h3" <?php if($cff_event_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
2313 <option value="h4" <?php if($cff_event_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
2314 <option value="h5" <?php if($cff_event_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
2315 <option value="h6" <?php if($cff_event_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
2316 </select>
2317 </td>
2318 </tr>
2319
2320 <tr>
2321 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventtitlesize
2322 Eg: eventtitlesize=12</code></th>
2323 <td>
2324 <select name="cff_event_title_size">
2325 <option value="inherit" <?php if($cff_event_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2326 <option value="10" <?php if($cff_event_title_size == "10") echo 'selected="selected"' ?> >10px</option>
2327 <option value="11" <?php if($cff_event_title_size == "11") echo 'selected="selected"' ?> >11px</option>
2328 <option value="12" <?php if($cff_event_title_size == "12") echo 'selected="selected"' ?> >12px</option>
2329 <option value="13" <?php if($cff_event_title_size == "13") echo 'selected="selected"' ?> >13px</option>
2330 <option value="14" <?php if($cff_event_title_size == "14") echo 'selected="selected"' ?> >14px</option>
2331 <option value="16" <?php if($cff_event_title_size == "16") echo 'selected="selected"' ?> >16px</option>
2332 <option value="18" <?php if($cff_event_title_size == "18") echo 'selected="selected"' ?> >18px</option>
2333 <option value="20" <?php if($cff_event_title_size == "20") echo 'selected="selected"' ?> >20px</option>
2334 <option value="24" <?php if($cff_event_title_size == "24") echo 'selected="selected"' ?> >24px</option>
2335 <option value="28" <?php if($cff_event_title_size == "28") echo 'selected="selected"' ?> >28px</option>
2336 <option value="32" <?php if($cff_event_title_size == "32") echo 'selected="selected"' ?> >32px</option>
2337 <option value="36" <?php if($cff_event_title_size == "36") echo 'selected="selected"' ?> >36px</option>
2338 <option value="42" <?php if($cff_event_title_size == "42") echo 'selected="selected"' ?> >42px</option>
2339 <option value="48" <?php if($cff_event_title_size == "48") echo 'selected="selected"' ?> >48px</option>
2340 <option value="54" <?php if($cff_event_title_size == "54") echo 'selected="selected"' ?> >54px</option>
2341 <option value="60" <?php if($cff_event_title_size == "60") echo 'selected="selected"' ?> >60px</option>
2342 </select>
2343 </td>
2344 </tr>
2345 <tr>
2346 <th><label class="bump-left"><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventtitleweight
2347 Eg: eventtitleweight=bold</code></th>
2348 <td>
2349 <select name="cff_event_title_weight">
2350 <option value="inherit" <?php if($cff_event_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2351 <option value="normal" <?php if($cff_event_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2352 <option value="bold" <?php if($cff_event_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2353 </select>
2354 </td>
2355 </tr>
2356 <tr>
2357 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventtitlecolor
2358 Eg: eventtitlecolor=666</code></th>
2359 <td>
2360 <input name="cff_event_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_title_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2361 </td>
2362 </tr>
2363 <tr>
2364 <th><label class="bump-left"><?php _e('Link title to Facebook event page?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventtitlelink
2365 Eg: eventtitlelink=true</code></th>
2366 <td><input type="checkbox" name="cff_event_title_link" id="cff_event_title_link" <?php if($cff_event_title_link == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?></td>
2367 </tr>
2368 <tr id="eventdate"><!-- Quick link --></tr>
2369 </tbody>
2370 </table>
2371 </div>
2372 </div>
2373
2374 <div id="adminform" class="postbox" style="display: block;">
2375 <div class="handlediv" title="Click to toggle"><br></div>
2376 <h3 class="hndle"><span><?php _e('Event Date', 'custom-facebook-feed'); ?></span></h3>
2377 <div class="inside">
2378 <table class="form-table">
2379 <tbody>
2380
2381 <tr>
2382 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdatesize
2383 Eg: eventdatesize=18</code></th>
2384 <td>
2385 <select name="cff_event_date_size">
2386 <option value="inherit" <?php if($cff_event_date_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2387 <option value="10" <?php if($cff_event_date_size == "10") echo 'selected="selected"' ?> >10px</option>
2388 <option value="11" <?php if($cff_event_date_size == "11") echo 'selected="selected"' ?> >11px</option>
2389 <option value="12" <?php if($cff_event_date_size == "12") echo 'selected="selected"' ?> >12px</option>
2390 <option value="13" <?php if($cff_event_date_size == "13") echo 'selected="selected"' ?> >13px</option>
2391 <option value="14" <?php if($cff_event_date_size == "14") echo 'selected="selected"' ?> >14px</option>
2392 <option value="16" <?php if($cff_event_date_size == "16") echo 'selected="selected"' ?> >16px</option>
2393 <option value="18" <?php if($cff_event_date_size == "18") echo 'selected="selected"' ?> >18px</option>
2394 <option value="20" <?php if($cff_event_date_size == "20") echo 'selected="selected"' ?> >20px</option>
2395 <option value="24" <?php if($cff_event_date_size == "24") echo 'selected="selected"' ?> >24px</option>
2396 <option value="28" <?php if($cff_event_date_size == "28") echo 'selected="selected"' ?> >28px</option>
2397 <option value="32" <?php if($cff_event_date_size == "32") echo 'selected="selected"' ?> >32px</option>
2398 <option value="36" <?php if($cff_event_date_size == "36") echo 'selected="selected"' ?> >36px</option>
2399 <option value="42" <?php if($cff_event_date_size == "42") echo 'selected="selected"' ?> >42px</option>
2400 <option value="48" <?php if($cff_event_date_size == "48") echo 'selected="selected"' ?> >48px</option>
2401 <option value="54" <?php if($cff_event_date_size == "54") echo 'selected="selected"' ?> >54px</option>
2402 <option value="60" <?php if($cff_event_date_size == "60") echo 'selected="selected"' ?> >60px</option>
2403 </select>
2404 </td>
2405 </tr>
2406 <tr>
2407 <th><label class="bump-left"><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdateweight
2408 Eg: eventdateweight=bold</code></th>
2409 <td>
2410 <select name="cff_event_date_weight">
2411 <option value="inherit" <?php if($cff_event_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2412 <option value="normal" <?php if($cff_event_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2413 <option value="bold" <?php if($cff_event_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2414 </select>
2415 </td>
2416 </tr>
2417 <tr>
2418 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdatecolor
2419 Eg: eventdatecolor=EB6A00</code></th>
2420 <td>
2421 <input name="cff_event_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_date_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2422 </td>
2423 </tr>
2424 <tr valign="top">
2425 <th scope="row"><label class="bump-left"><?php _e('Date Position', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdatepos
2426 Eg: eventdatepos=below</code></th>
2427 <td>
2428 <select name="cff_event_date_position">
2429 <option value="below" <?php if($cff_event_date_position == "below") echo 'selected="selected"' ?> ><?php _e('Below event title', 'custom-facebook-feed'); ?></option>
2430 <option value="above" <?php if($cff_event_date_position == "above") echo 'selected="selected"' ?> ><?php _e('Above event title', 'custom-facebook-feed'); ?></option>
2431 </select>
2432 </td>
2433 </tr>
2434 <tr>
2435 <th><label class="bump-left"><?php _e('Event date formatting', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdateformat
2436 Eg: eventdateformat=12</code></th>
2437 <td>
2438 <select name="cff_event_date_formatting">
2439 <?php $original = strtotime('2013-07-25T17:30:00+0000'); ?>
2440 <option value="14" <?php if($cff_event_date_formatting == "14") echo 'selected="selected"' ?> ><?php echo date('M j, g:ia', $original); ?></option>
2441 <option value="15" <?php if($cff_event_date_formatting == "15") echo 'selected="selected"' ?> ><?php echo date('M j, G:i', $original); ?></option>
2442 <option value="1" <?php if($cff_event_date_formatting == "1") echo 'selected="selected"' ?> ><?php echo date('F j, Y, g:ia', $original); ?></option>
2443 <option value="2" <?php if($cff_event_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:ia', $original); ?></option>
2444 <option value="3" <?php if($cff_event_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('g:ia - F jS', $original); ?></option>
2445 <option value="4" <?php if($cff_event_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('g:ia, F jS', $original); ?></option>
2446 <option value="5" <?php if($cff_event_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS - g:ia', $original); ?></option>
2447 <option value="6" <?php if($cff_event_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y, g:iA', $original); ?></option>
2448 <option value="7" <?php if($cff_event_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y, g:iA', $original); ?></option>
2449 <option value="8" <?php if($cff_event_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:ia', $original); ?></option>
2450 <option value="9" <?php if($cff_event_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
2451 <option value="10" <?php if($cff_event_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y - g:iA', $original); ?></option>
2452 <option value="11" <?php if($cff_event_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y, g:ia', $original); ?></option>
2453 <option value="12" <?php if($cff_event_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y - g:iA', $original); ?></option>
2454 <option value="13" <?php if($cff_event_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y, g:ia', $original); ?></option>
2455 </select>
2456 </td>
2457 </tr>
2458 <tr>
2459 <th><label class="bump-left"><?php _e('Custom event date format', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdatecustom
2460 Eg: eventdatecustom='D M jS, Y'</code></th>
2461 <td>
2462 <input name="cff_event_date_custom" type="text" value="<?php esc_attr_e( $cff_event_date_custom, 'custom-facebook-feed' ); ?>" size="10" placeholder="Eg. F j, Y - g:ia" />
2463 <a href="http://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples', 'custom-facebook-feed'); ?></a>
2464 </td>
2465 </tr>
2466 <tr id="eventdetails"><!-- Quick link --></tr>
2467 </tbody>
2468 </table>
2469 </div>
2470 </div>
2471 <div id="adminform" class="postbox" style="display: block;">
2472 <div class="handlediv" title="Click to toggle"><br></div>
2473 <h3 class="hndle"><span><?php _e('Event Details', 'custom-facebook-feed'); ?></span></h3>
2474 <div class="inside">
2475 <table class="form-table">
2476 <tbody>
2477
2478 <tr>
2479 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdetailssize
2480 Eg: eventdetailssize=13</code></th>
2481 <td>
2482 <select name="cff_event_details_size">
2483 <option value="inherit" <?php if($cff_event_details_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2484 <option value="10" <?php if($cff_event_details_size == "10") echo 'selected="selected"' ?> >10px</option>
2485 <option value="11" <?php if($cff_event_details_size == "11") echo 'selected="selected"' ?> >11px</option>
2486 <option value="12" <?php if($cff_event_details_size == "12") echo 'selected="selected"' ?> >12px</option>
2487 <option value="13" <?php if($cff_event_details_size == "13") echo 'selected="selected"' ?> >13px</option>
2488 <option value="14" <?php if($cff_event_details_size == "14") echo 'selected="selected"' ?> >14px</option>
2489 <option value="16" <?php if($cff_event_details_size == "16") echo 'selected="selected"' ?> >16px</option>
2490 <option value="18" <?php if($cff_event_details_size == "18") echo 'selected="selected"' ?> >18px</option>
2491 <option value="20" <?php if($cff_event_details_size == "20") echo 'selected="selected"' ?> >20px</option>
2492 <option value="24" <?php if($cff_event_details_size == "24") echo 'selected="selected"' ?> >24px</option>
2493 <option value="28" <?php if($cff_event_details_size == "28") echo 'selected="selected"' ?> >28px</option>
2494 <option value="32" <?php if($cff_event_details_size == "32") echo 'selected="selected"' ?> >32px</option>
2495 <option value="36" <?php if($cff_event_details_size == "36") echo 'selected="selected"' ?> >36px</option>
2496 <option value="42" <?php if($cff_event_details_size == "42") echo 'selected="selected"' ?> >42px</option>
2497 <option value="48" <?php if($cff_event_details_size == "48") echo 'selected="selected"' ?> >48px</option>
2498 <option value="54" <?php if($cff_event_details_size == "54") echo 'selected="selected"' ?> >54px</option>
2499 <option value="60" <?php if($cff_event_details_size == "60") echo 'selected="selected"' ?> >60px</option>
2500 </select>
2501 </td>
2502 </tr>
2503 <tr>
2504 <th><label class="bump-left"><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdetailsweight
2505 Eg: eventdetailsweight=bold</code></th>
2506 <td>
2507 <select name="cff_event_details_weight">
2508 <option value="inherit" <?php if($cff_event_details_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2509 <option value="normal" <?php if($cff_event_details_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2510 <option value="bold" <?php if($cff_event_details_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2511 </select>
2512 </td>
2513 </tr>
2514 <tr>
2515 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventdetailscolor
2516 Eg: eventdetailscolor=FFF000</code></th>
2517 <td>
2518 <input name="cff_event_details_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_details_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2519 </td>
2520 </tr>
2521 <tr>
2522 <th><label class="bump-left"><?php _e('Link Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> eventlinkcolor
2523 Eg: eventlinkcolor=333</code></th>
2524 <td>
2525 <input name="cff_event_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_link_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2526 </td>
2527 </tr>
2528 <tr id="action"><!-- Quick link --></tr>
2529 </tbody>
2530 </table>
2531 </div>
2532 </div>
2533 <div id="adminform" class="postbox" style="display: block;">
2534 <div class="handlediv" title="Click to toggle"><br></div>
2535 <h3 class="hndle"><span><?php _e('Link to Facebook', 'custom-facebook-feed'); ?></span></h3>
2536 <div class="inside">
2537 <table class="form-table">
2538 <tbody>
2539
2540 <tr>
2541 <th><label class="bump-left"><?php _e('Text Size', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linksize
2542 Eg: linksize=13</code></th>
2543 <td>
2544 <select name="cff_link_size">
2545 <option value="inherit" <?php if($cff_link_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2546 <option value="10" <?php if($cff_link_size == "10") echo 'selected="selected"' ?> >10px</option>
2547 <option value="11" <?php if($cff_link_size == "11") echo 'selected="selected"' ?> >11px</option>
2548 <option value="12" <?php if($cff_link_size == "12") echo 'selected="selected"' ?> >12px</option>
2549 <option value="13" <?php if($cff_link_size == "13") echo 'selected="selected"' ?> >13px</option>
2550 <option value="14" <?php if($cff_link_size == "14") echo 'selected="selected"' ?> >14px</option>
2551 <option value="16" <?php if($cff_link_size == "16") echo 'selected="selected"' ?> >16px</option>
2552 <option value="18" <?php if($cff_link_size == "18") echo 'selected="selected"' ?> >18px</option>
2553 <option value="20" <?php if($cff_link_size == "20") echo 'selected="selected"' ?> >20px</option>
2554 <option value="24" <?php if($cff_link_size == "24") echo 'selected="selected"' ?> >24px</option>
2555 <option value="28" <?php if($cff_link_size == "28") echo 'selected="selected"' ?> >28px</option>
2556 <option value="32" <?php if($cff_link_size == "32") echo 'selected="selected"' ?> >32px</option>
2557 <option value="36" <?php if($cff_link_size == "36") echo 'selected="selected"' ?> >36px</option>
2558 <option value="42" <?php if($cff_link_size == "42") echo 'selected="selected"' ?> >42px</option>
2559 <option value="48" <?php if($cff_link_size == "48") echo 'selected="selected"' ?> >48px</option>
2560 <option value="54" <?php if($cff_link_size == "54") echo 'selected="selected"' ?> >54px</option>
2561 <option value="60" <?php if($cff_link_size == "60") echo 'selected="selected"' ?> >60px</option>
2562 </select>
2563 </td>
2564 </tr>
2565 <tr>
2566 <th><label class="bump-left"><?php _e('Text Weight', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linkweight
2567 Eg: linkweight=bold</code></th>
2568 <td>
2569 <select name="cff_link_weight">
2570 <option value="inherit" <?php if($cff_link_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2571 <option value="normal" <?php if($cff_link_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2572 <option value="bold" <?php if($cff_link_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2573 </select>
2574 </td>
2575 </tr>
2576 <tr>
2577 <th><label class="bump-left"><?php _e('Text Color', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> linkcolor
2578 Eg: linkcolor=E01B5D</code></th>
2579 <td>
2580 <input name="cff_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_color), 'custom-facebook-feed' ); ?>" class="cff-colorpicker" />
2581 </td>
2582 </tr>
2583 <tr>
2584 <th><label class="bump-left"><?php _e('"View on Facebook" Text', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> facebooklinktext
2585 Eg: facebooklinktext='Read more...'</code></th>
2586 <td>
2587 <input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" size="25" />
2588 </td>
2589 </tr>
2590
2591 <tr>
2592 <th><label class="bump-left"><?php _e('"Share" Text', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> sharelinktext
2593 Eg: sharelinktext='Share this post'</code></th>
2594 <td>
2595 <input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" size="25" />
2596 </td>
2597 </tr>
2598
2599 <tr>
2600 <th><label class="bump-left"><?php _e('Show "View on Facebook" link', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showfacebooklink
2601 Eg: showfacebooklink=true</code></th>
2602 <td>
2603 <input type="checkbox" name="cff_show_facebook_link" id="cff_show_facebook_link" <?php if($cff_show_facebook_link == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2604 </td>
2605 </tr>
2606
2607 <tr>
2608 <th><label class="bump-left"><?php _e('Show "Share" link', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> showsharelink
2609 Eg: showsharelink=true</code></th>
2610 <td>
2611 <input type="checkbox" name="cff_show_facebook_share" id="cff_show_facebook_share" <?php if($cff_show_facebook_share == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2612 </td>
2613 </tr>
2614
2615 </tbody>
2616 </table>
2617 </div>
2618 </div>
2619 </div>
2620 </div>
2621 <div style="margin-top: -15px;">
2622 <?php submit_button(); ?>
2623 </div>
2624
2625 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
2626
2627 <?php } //End Typography tab ?>
2628 <?php if( $cff_active_tab == 'misc' ) { //Start Misc tab ?>
2629
2630 <p class="cff_contents_links" id="comments">
2631 <span>Quick links: </span>
2632 <a href="#comments">Likes, Shares and Comments</a>
2633 <a href="#likebox">Like Box / Page Plugin</a>
2634 <a href="#css">Custom CSS</a>
2635 <a href="#js">Custom JavaScript</a>
2636 <a href="#misc">Misc Settings</a>
2637 </p>
2638
2639 <input type="hidden" name="<?php echo $style_misc_hidden_field_name; ?>" value="Y">
2640 <br />
2641 <h3><?php _e('Likes, Shares and Comments', 'custom-facebook-feed'); ?></h3><i style="color: #666; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/" target="_blank"><?php _e('Upgrade to Pro to enable likes, shares and comments', 'custom-facebook-feed'); ?></a></i>
2642
2643 <hr id="likebox" /><!-- Quick link -->
2644 <h3><?php _e('Like Box / Page Plugin', 'custom-facebook-feed'); ?></h3>
2645 <table class="form-table">
2646 <tbody>
2647 <tr valign="top">
2648 <th class="bump-left" scope="row"><label><?php _e('Show the Like Box', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> include exclude
2649 Eg: include/exclude=likebox</code></th>
2650 <td>
2651 <input type="checkbox" name="cff_show_like_box" id="cff_show_like_box" <?php if($cff_show_like_box == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2652 </td>
2653 </tr>
2654 <tr valign="top">
2655 <th class="bump-left" scope="row"><label><?php _e('Position', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxpos
2656 Eg: likeboxpos=top</code></th>
2657 <td>
2658 <select name="cff_like_box_position">
2659 <option value="bottom" <?php if($cff_like_box_position == "bottom") echo 'selected="selected"' ?> ><?php _e('Bottom', 'custom-facebook-feed'); ?></option>
2660 <option value="top" <?php if($cff_like_box_position == "top") echo 'selected="selected"' ?> ><?php _e('Top', 'custom-facebook-feed'); ?></option>
2661 </select>
2662 </td>
2663 </tr>
2664 <tr valign="top">
2665 <th class="bump-left" scope="row"><label><?php _e('Display outside the scrollable area', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxoutside
2666 Eg: likeboxoutside=true</code></th>
2667 <td>
2668 <input type="checkbox" name="cff_like_box_outside" id="cff_like_box_outside" <?php if($cff_like_box_outside == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2669 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Only applicable if you have set a height on the feed', 'custom-facebook-feed'); ?></i>
2670 </td>
2671 </tr>
2672
2673 <tr valign="top">
2674 <th class="bump-left" scope="row"><label><?php _e('Show faces of fans', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxfaces
2675 Eg: likeboxfaces=true</code></th>
2676 <td>
2677 <input type="checkbox" name="cff_like_box_faces" id="cff_like_box_faces" <?php if($cff_like_box_faces == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2678 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Show thumbnail photos of fans who like your page', 'custom-facebook-feed'); ?></i>
2679 </td>
2680 </tr>
2681 <tr valign="top">
2682 <th class="bump-left" scope="row"><label><?php _e('Include the Cover Photo', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxcover
2683 Eg: likeboxcover=true</code></th>
2684 <td>
2685 <input type="checkbox" name="cff_like_box_cover" id="cff_like_box_cover" <?php if($cff_like_box_cover == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2686 </td>
2687 </tr>
2688 <tr valign="top">
2689 <th class="bump-left" scope="row"><label><?php _e('Use a small header', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxsmallheader
2690 Eg: likeboxsmallheader=true</code></th>
2691 <td>
2692 <input type="checkbox" name="cff_like_box_small_header" id="cff_like_box_small_header" <?php if($cff_like_box_small_header == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2693 </td>
2694 </tr>
2695 <tr valign="top">
2696 <th class="bump-left" scope="row"><label><?php _e('Hide the call to action button (if available)', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxhidebtn
2697 Eg: likeboxhidebtn=true</code></th>
2698 <td>
2699 <input type="checkbox" name="cff_like_box_hide_cta" id="cff_like_box_hide_cta" <?php if($cff_like_box_hide_cta == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes', 'custom-facebook-feed'); ?>
2700 </td>
2701 </tr>
2702 <tr valign="top">
2703 <th class="bump-left" for="cff_likebox_width" scope="row"><label><?php _e('Custom Like Box Width', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> likeboxwidth
2704 Eg: likeboxwidth=500</code></th>
2705 <td>
2706 <input name="cff_likebox_width" type="text" value="<?php esc_attr_e( $cff_likebox_width, 'custom-facebook-feed' ); ?>" size="3" />
2707 <span>px <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Default: 340, Min: 280, Max: 500', 'custom-facebook-feed'); ?></i></span>
2708 </td>
2709 </tr>
2710 </tbody>
2711 </table>
2712
2713 <?php submit_button(); ?>
2714 <span id="css"><!-- Quick link --></span>
2715 <hr />
2716 <h3><?php _e('Custom CSS', 'custom-facebook-feed'); ?></h3>
2717 <table class="form-table">
2718 <tbody>
2719 <tr valign="top">
2720 <td>
2721 <?php _e('Enter your own custom CSS in the box below', 'custom-facebook-feed'); ?>
2722 <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/docs/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i>
2723 </td>
2724 </tr>
2725 <tr valign="top" id="js"><!-- Quick link -->
2726 <td>
2727 <textarea name="cff_custom_css" id="cff_custom_css" style="width: 70%;" rows="7"><?php esc_attr_e( $cff_custom_css, 'custom-facebook-feed' ); ?></textarea>
2728 </td>
2729 </tr>
2730 </tbody>
2731 </table>
2732 <h3><?php _e('Custom JavaScript', 'custom-facebook-feed'); ?></h3>
2733 <table class="form-table">
2734 <tbody>
2735 <tr valign="top">
2736 <td>
2737 <?php _e('Enter your own custom JavaScript/jQuery in the box below', 'custom-facebook-feed'); ?>
2738 <i style="margin-left: 5px; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/docs/snippets/" target="_blank"><?php _e('See some examples', 'custom-facebook-feed'); ?></a></i>
2739 </td>
2740 </tr>
2741 <tr valign="top">
2742 <td>
2743 <textarea name="cff_custom_js" id="cff_custom_js" style="width: 70%;" rows="7"><?php esc_attr_e( stripslashes($cff_custom_js), 'custom-facebook-feed' ); ?></textarea>
2744 </td>
2745 </tr>
2746 <tr id="misc"><!-- Quick link --></tr>
2747 </tbody>
2748 </table>
2749
2750
2751 <hr />
2752 <h3><?php _e('Misc Settings', 'custom-facebook-feed'); ?></h3>
2753 <table class="form-table">
2754 <tbody>
2755 <tr>
2756 <th class="bump-left"><label class="bump-left"><?php _e('Is your theme loading the feed via Ajax?', 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> ajax
2757 Eg: ajax=true</code></th>
2758 <td>
2759 <input name="cff_ajax" type="checkbox" id="cff_ajax" <?php if($cff_ajax_val == true) echo "checked"; ?> />
2760 <label for="cff_ajax"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
2761 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
2762 <p class="cff-tooltip cff-more-info"><?php _e('Some modern WordPress themes use Ajax to load content into the page after it has loaded. If your theme uses Ajax to load the Custom Facebook Feed content into the page then check this box. If you are not sure then please check with the theme author.', 'custom-facebook-feed'); ?></p>
2763 </td>
2764 </tr>
2765 <tr>
2766 <th class="bump-left"><label class="bump-left"><?php _e('Facebook App ID', 'custom-facebook-feed'); ?></label></th>
2767 <td>
2768 <input name="cff_app_id" type="text" value="<?php esc_attr_e( $cff_app_id, 'custom-facebook-feed' ); ?>" size="18" />
2769 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is this?', 'custom-facebook-feed'); ?></a>
2770 <p class="cff-tooltip cff-more-info"><?php _e("If you've registered as a Facebook developer and have an App ID then you can enter it here. You can add your website to your Facebook App by going to your App Settings, clicking 'Add Platform' and then entering your website URL.", 'custom-facebook-feed'); ?></p>
2771 </td>
2772 </tr>
2773 <tr>
2774 <th class="bump-left"><label class="bump-left"><?php _e("Preserve settings when plugin is removed", 'custom-facebook-feed'); ?></label></th>
2775 <td>
2776 <input name="cff_preserve_settings" type="checkbox" id="cff_preserve_settings" <?php if($cff_preserve_settings_val == true) echo "checked"; ?> />
2777 <label for="cff_preserve_settings"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
2778 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
2779 <p class="cff-tooltip cff-more-info"><?php _e('When removing the plugin your settings are automatically deleted from your database. Checking this box will prevent any settings from being deleted. This means that you can uninstall and reinstall the plugin without losing your settings.', 'custom-facebook-feed'); ?></p>
2780 </td>
2781 </tr>
2782 <tr>
2783 <th class="bump-left"><label class="bump-left"><?php _e("Display credit link", 'custom-facebook-feed'); ?></label><code class="cff_shortcode"> credit
2784 Eg: credit=true</code></th>
2785 <td>
2786 <input name="cff_show_credit" type="checkbox" id="cff_show_credit" <?php if($cff_show_credit == true) echo "checked"; ?> />
2787 <label for="cff_show_credit"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
2788 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Display a link at the bottom of the feed to help promote the plugin', 'custom-facebook-feed'); ?></i>
2789 </td>
2790 </tr>
2791
2792 <tr>
2793 <th class="bump-left"><label class="bump-left"><?php _e("Icon font source", 'custom-facebook-feed'); ?></label></th>
2794 <td>
2795 <select name="cff_font_source">
2796 <option value="cdn" <?php if($cff_font_source == "cdn") echo 'selected="selected"' ?> ><?php _e('CDN', 'custom-facebook-feed'); ?></option>
2797 <option value="local" <?php if($cff_font_source == "local") echo 'selected="selected"' ?> ><?php _e('Local copy', 'custom-facebook-feed'); ?></option>
2798 <option value="none" <?php if($cff_font_source == "none") echo 'selected="selected"' ?> ><?php _e("Don't load", 'custom-facebook-feed'); ?></option>
2799 </select>
2800 </td>
2801 </tr>
2802
2803 <tr>
2804 <th class="bump-left">
2805 <label class="bump-left"><?php _e("Force cache to clear on interval", 'custom-facebook-feed'); ?></label>
2806 </th>
2807 <td>
2808 <select name="cff_cron">
2809 <option value="unset" <?php if($cff_cron == "unset") echo 'selected="selected"' ?> ><?php _e(' - ', 'custom-facebook-feed'); ?></option>
2810 <option value="yes" <?php if($cff_cron == "yes") echo 'selected="selected"' ?> ><?php _e('Yes', 'custom-facebook-feed'); ?></option>
2811 <option value="no" <?php if($cff_cron == "no") echo 'selected="selected"' ?> ><?php _e('No', 'custom-facebook-feed'); ?></option>
2812 </select>
2813
2814 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?', 'custom-facebook-feed'); ?></a>
2815 <p class="cff-tooltip cff-more-info"><?php _e("If you're experiencing an issue with the plugin not auto-updating then you can set this to 'Yes' to run a scheduled event behind the scenes which forces the plugin cache to clear on a regular basis and retrieve new data from Facebook.", 'custom-facebook-feed'); ?></p>
2816 </td>
2817 </tr>
2818
2819 <tr>
2820 <th class="bump-left"><label class="bump-left"><?php _e("Request method", 'custom-facebook-feed'); ?></label></th>
2821 <td>
2822 <select name="cff_request_method">
2823 <option value="auto" <?php if($cff_request_method == "auto") echo 'selected="selected"' ?> ><?php _e('Auto', 'custom-facebook-feed'); ?></option>
2824 <option value="1" <?php if($cff_request_method == "1") echo 'selected="selected"' ?> ><?php _e('cURL', 'custom-facebook-feed'); ?></option>
2825 <option value="2" <?php if($cff_request_method == "2") echo 'selected="selected"' ?> ><?php _e('file_get_contents', 'custom-facebook-feed'); ?></option>
2826 <option value="3" <?php if($cff_request_method == "3") echo 'selected="selected"' ?> ><?php _e("WP_Http", 'custom-facebook-feed'); ?></option>
2827 </select>
2828 </td>
2829 </tr>
2830
2831 <tr>
2832 <th class="bump-left"><label for="cff_disable_styles" class="bump-left"><?php _e("Disable default styles", 'custom-facebook-feed'); ?></label></th>
2833 <td>
2834 <input name="cff_disable_styles" type="checkbox" id="cff_disable_styles" <?php if($cff_disable_styles == true) echo "checked"; ?> />
2835 <label for="cff_disable_styles"><?php _e('Yes', 'custom-facebook-feed'); ?></label>
2836 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this do?', 'custom-facebook-feed'); ?></a>
2837 <p class="cff-tooltip cff-more-info"><?php _e("The plugin includes some basic text and link styles which can be disabled by enabling this setting. Note that the styles used for the layout of the posts will still be applied.", 'custom-facebook-feed'); ?></p>
2838 </td>
2839 </tr>
2840
2841 </tbody>
2842 </table>
2843
2844 <?php submit_button(); ?>
2845 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
2846 <?php } //End Misc tab ?>
2847
2848
2849 <?php if( $cff_active_tab == 'custom_text' ) { //Start Custom Text tab ?>
2850
2851 <p class="cff_contents_links">
2852 <span>Quick links: </span>
2853 <a href="#text">Post Text</a>
2854 <a href="#action">Post Action Links</a>
2855 <a href="#medialink">Media Links</a>
2856 <a href="#date">Date</a>
2857 </p>
2858
2859 <input type="hidden" name="<?php echo $style_custom_text_hidden_field_name; ?>" value="Y">
2860 <br />
2861 <h3><?php _e('Custom Text / Translate', 'custom-facebook-feed'); ?></h3>
2862 <p><?php _e('Enter custom text for the words below, or translate it into the language you would like to use.', 'custom-facebook-feed'); ?></p>
2863 <table class="form-table cff-translate-table" style="width: 100%; max-width: 940px;">
2864 <tbody>
2865
2866 <thead id="text">
2867 <tr>
2868 <th><?php _e('Original Text', 'custom-facebook-feed'); ?></th>
2869 <th><?php _e('Custom Text / Translation', 'custom-facebook-feed'); ?></th>
2870 <th><?php _e('Context', 'custom-facebook-feed'); ?></th>
2871 </tr>
2872 </thead>
2873
2874 <tr class="cff-table-header"><th colspan="3"><?php _e('Post Text', 'custom-facebook-feed'); ?></th></tr>
2875 <tr>
2876 <td><label for="cff_see_more_text" class="bump-left"><?php _e('See More', 'custom-facebook-feed'); ?></label></td>
2877 <td><input name="cff_see_more_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_more_text ) ); ?>" /></td>
2878 <td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
2879 </tr>
2880
2881 <tr id="action"><!-- Quick link -->
2882 <td><label for="cff_see_less_text" class="bump-left"><?php _e('See Less', 'custom-facebook-feed'); ?></label></td>
2883 <td><input name="cff_see_less_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_less_text ) ); ?>" /></td>
2884 <td class="cff-context"><?php _e('Used when truncating the post text', 'custom-facebook-feed'); ?></td>
2885 </tr>
2886
2887 <tr class="cff-table-header"><th colspan="3"><?php _e('Post Action Links', 'custom-facebook-feed'); ?></th></tr>
2888 <tr>
2889 <td><label for="cff_facebook_link_text" class="bump-left"><?php _e('View on Facebook', 'custom-facebook-feed'); ?></label></td>
2890 <td><input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" /></td>
2891 <td class="cff-context"><?php _e('Used for the link to the post on Facebook', 'custom-facebook-feed'); ?></td>
2892 </tr>
2893 <tr>
2894 <td><label for="cff_facebook_share_text" class="bump-left"><?php _e('Share', 'custom-facebook-feed'); ?></label></td>
2895 <td><input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" /></td>
2896 <td class="cff-context"><?php _e('Used for sharing the Facebook post via Social Media', 'custom-facebook-feed'); ?></td>
2897 </tr>
2898
2899 <tr id="medialink"><!-- Quick link -->
2900 <td><label for="cff_translate_photos_text" class="bump-left"><?php _e('photos', 'custom-facebook-feed'); ?></label></td>
2901 <td><input name="cff_translate_photos_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photos_text ) ); ?>" /></td>
2902 <td class="cff-context"><?php _e('Added to the end of an album name. Eg. (6 photos)', 'custom-facebook-feed'); ?></td>
2903 </tr>
2904
2905 <tr class="cff-table-header"><th colspan="3"><?php _e('Media Links', 'custom-facebook-feed'); ?></th></tr>
2906 <tr>
2907 <td><label for="cff_translate_photo_text" class="bump-left"><?php _e('Photo', 'custom-facebook-feed'); ?></label></td>
2908 <td><input name="cff_translate_photo_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photo_text ) ); ?>" /></td>
2909 <td class="cff-context"><?php _e('Used to link to photos on Facebook', 'custom-facebook-feed'); ?></td>
2910 </tr>
2911 <tr id="date"><!-- Quick link -->
2912 <td><label for="cff_translate_video_text" class="bump-left"><?php _e('Video', 'custom-facebook-feed'); ?></label></td>
2913 <td><input name="cff_translate_video_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_video_text ) ); ?>" /></td>
2914 <td class="cff-context"><?php _e('Used to link to videos on Facebook', 'custom-facebook-feed'); ?></td>
2915 </tr>
2916
2917 <tr class="cff-table-header"><th colspan="3"><?php _e('Date', 'custom-facebook-feed'); ?></th></tr>
2918 <tr>
2919 <td><label for="cff_photos_text" class="bump-left"><?php _e('"Posted _ hours ago" text', 'custom-facebook-feed'); ?></label></td>
2920 <td class="cff-translate-date">
2921
2922 <label for="cff_translate_second"><?php _e("second", 'custom-facebook-feed'); ?></label>
2923 <input name="cff_translate_second" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_second ) ); ?>" size="20" />
2924 <br />
2925 <label for="cff_translate_seconds"><?php _e("seconds", 'custom-facebook-feed'); ?></label>
2926 <input name="cff_translate_seconds" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_seconds ) ); ?>" size="20" />
2927 <br />
2928 <label for="cff_translate_minute"><?php _e("minute", 'custom-facebook-feed'); ?></label>
2929 <input name="cff_translate_minute" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minute ) ); ?>" size="20" />
2930 <br />
2931 <label for="cff_translate_minutes"><?php _e("minutes", 'custom-facebook-feed'); ?></label>
2932 <input name="cff_translate_minutes" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minutes ) ); ?>" size="20" />
2933 <br />
2934 <label for="cff_translate_hour"><?php _e("hour", 'custom-facebook-feed'); ?></label>
2935 <input name="cff_translate_hour" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hour ) ); ?>" size="20" />
2936 <br />
2937 <label for="cff_translate_hours"><?php _e("hours", 'custom-facebook-feed'); ?></label>
2938 <input name="cff_translate_hours" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hours ) ); ?>" size="20" />
2939 <br />
2940 <label for="cff_translate_day"><?php _e("day", 'custom-facebook-feed'); ?></label>
2941 <input name="cff_translate_day" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_day ) ); ?>" size="20" />
2942 <br />
2943 <label for="cff_translate_days"><?php _e("days", 'custom-facebook-feed'); ?></label>
2944 <input name="cff_translate_days" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_days ) ); ?>" size="20" />
2945 <br />
2946 <label for="cff_translate_week"><?php _e("week", 'custom-facebook-feed'); ?></label>
2947 <input name="cff_translate_week" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_week ) ); ?>" size="20" />
2948 <br />
2949 <label for="cff_translate_weeks"><?php _e("weeks", 'custom-facebook-feed'); ?></label>
2950 <input name="cff_translate_weeks" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_weeks ) ); ?>" size="20" />
2951 <br />
2952 <label for="cff_translate_month"><?php _e("month", 'custom-facebook-feed'); ?></label>
2953 <input name="cff_translate_month" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_month ) ); ?>" size="20" />
2954 <br />
2955 <label for="cff_translate_months"><?php _e("months", 'custom-facebook-feed'); ?></label>
2956 <input name="cff_translate_months" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_months ) ); ?>" size="20" />
2957 <br />
2958 <label for="cff_translate_year"><?php _e("year", 'custom-facebook-feed'); ?></label>
2959 <input name="cff_translate_year" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_year ) ); ?>" size="20" />
2960 <br />
2961 <label for="cff_translate_years"><?php _e("years", 'custom-facebook-feed'); ?></label>
2962 <input name="cff_translate_years" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_years ) ); ?>" size="20" />
2963 <br />
2964 <label for="cff_translate_ago"><?php _e("ago", 'custom-facebook-feed'); ?></label>
2965 <input name="cff_translate_ago" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_ago ) ); ?>" size="20" />
2966 </td>
2967 <td class="cff-context"><?php _e('Used to translate the "Posted _ days ago" date text', 'custom-facebook-feed'); ?></td>
2968 </tr>
2969
2970 </tbody>
2971 </table>
2972
2973 <?php submit_button(); ?>
2974 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
2975 <?php } //End Custom Text tab ?>
2976
2977 </form>
2978
2979 <hr />
2980 <h3><?php _e('Like the plugin? Help spread the word!', 'custom-facebook-feed'); ?></h3>
2981
2982 <!-- TWITTER -->
2983 <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://wordpress.org/plugins/custom-facebook-feed/" data-text="Display your Facebook posts on your site your way using the Custom Facebook Feed WordPress plugin!" data-via="smashballoon" data-dnt="true">Tweet</a>
2984 <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
2985 <style type="text/css">
2986 #twitter-widget-0{ float: left; width: 100px !important; }
2987 .IN-widget{ margin-right: 20px; }
2988 </style>
2989
2990 <!-- FACEBOOK -->
2991 <div id="fb-root" style="display: none;"></div>
2992 <script>(function(d, s, id) {
2993 var js, fjs = d.getElementsByTagName(s)[0];
2994 if (d.getElementById(id)) return;
2995 js = d.createElement(s); js.id = id;
2996 js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=640861236031365&version=v2.0";
2997 fjs.parentNode.insertBefore(js, fjs);
2998 }(document, 'script', 'facebook-jssdk'));</script>
2999 <div class="fb-like" data-href="https://wordpress.org/plugins/custom-facebook-feed/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true" style="display: block; float: left; margin-right: 20px;"></div>
3000
3001 <!-- LINKEDIN -->
3002 <script src="//platform.linkedin.com/in.js" type="text/javascript">
3003 lang: en_US
3004 </script>
3005 <script type="IN/Share" data-url="https://wordpress.org/plugins/custom-facebook-feed/"></script>
3006
3007 <!-- GOOGLE + -->
3008 <script src="https://apis.google.com/js/platform.js" async defer></script>
3009 <div class="g-plusone" data-size="medium" data-href="https://wordpress.org/plugins/custom-facebook-feed/"></div>
3010
3011 <?php
3012 } //End Style_Page
3013 //Enqueue admin styles
3014 function cff_admin_style() {
3015 wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/cff-admin-style.css', false, CFFVER );
3016 wp_enqueue_style( 'custom_wp_admin_css' );
3017 wp_enqueue_style( 'cff-font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), '4.5.0' );
3018 wp_enqueue_style( 'wp-color-picker' );
3019 }
3020 add_action( 'admin_enqueue_scripts', 'cff_admin_style' );
3021 //Enqueue admin scripts
3022 function cff_admin_scripts() {
3023 wp_enqueue_script( 'cff_admin_script', plugin_dir_url( __FILE__ ) . 'js/cff-admin-scripts.js', false, CFFVER );
3024 if( !wp_script_is('jquery-ui-draggable') ) {
3025 wp_enqueue_script(
3026 array(
3027 'jquery',
3028 'jquery-ui-core',
3029 'jquery-ui-draggable'
3030 )
3031 );
3032 }
3033 wp_enqueue_script(
3034 array(
3035 'hoverIntent',
3036 'wp-color-picker'
3037 )
3038 );
3039 }
3040 add_action( 'admin_enqueue_scripts', 'cff_admin_scripts' );
3041
3042 // Add a Settings link to the plugin on the Plugins page
3043 $cff_plugin_file = 'custom-facebook-feed/custom-facebook-feed.php';
3044 add_filter( "plugin_action_links_{$cff_plugin_file}", 'cff_add_settings_link', 10, 2 );
3045
3046 //modify the link by unshifting the array
3047 function cff_add_settings_link( $links, $file ) {
3048 $cff_settings_link = '<a href="' . admin_url( 'admin.php?page=cff-top' ) . '">' . __( 'Settings', 'cff-top', 'custom-facebook-feed' ) . '</a>';
3049 array_unshift( $links, $cff_settings_link );
3050
3051 return $links;
3052 }
3053
3054
3055 //Cron job to clear transients
3056 add_action('cff_cron_job', 'cff_cron_clear_cache');
3057 function cff_cron_clear_cache() {
3058 //Delete all transients
3059 global $wpdb;
3060 $table_name = $wpdb->prefix . "options";
3061 $wpdb->query( "
3062 DELETE
3063 FROM $table_name
3064 WHERE `option_name` LIKE ('%\_transient\_cff\_%')
3065 " );
3066 $wpdb->query( "
3067 DELETE
3068 FROM $table_name
3069 WHERE `option_name` LIKE ('%\_transient\_cff\_tle\_%')
3070 " );
3071 $wpdb->query( "
3072 DELETE
3073 FROM $table_name
3074 WHERE `option_name` LIKE ('%\_transient\_timeout\_cff\_%')
3075 " );
3076 }
3077
3078
3079
3080 //REVIEW REQUEST NOTICE
3081
3082 // checks $_GET to see if the nag variable is set and what it's value is
3083 function cff_check_nag_get( $get, $nag, $option, $transient ) {
3084 if ( isset( $_GET[$nag] ) && $get[$nag] == 1 ) {
3085 update_option( $option, 'dismissed' );
3086 } elseif ( isset( $_GET[$nag] ) && $get[$nag] == 'later' ) {
3087 $time = 4 * WEEK_IN_SECONDS;
3088 set_transient( $transient, 'waiting', $time );
3089 update_option( $option, 'pending' );
3090 }
3091 }
3092
3093 // will set a transient if the notice hasn't been dismissed or hasn't been set yet
3094 function cff_maybe_set_transient( $transient, $option ) {
3095 $cff_rating_notice_waiting = get_transient( $transient );
3096 $notice_status = get_option( $option, false );
3097
3098 if ( ! $cff_rating_notice_waiting && !( $notice_status === 'dismissed' || $notice_status === 'pending' ) ) {
3099 $time = 4 * WEEK_IN_SECONDS;
3100 set_transient( $transient, 'waiting', $time );
3101 update_option( $option, 'pending' );
3102 }
3103 }
3104
3105 // generates the html for the admin notice
3106 function cff_rating_notice_html() {
3107
3108 //Only show to admins
3109 if ( current_user_can( 'manage_options' ) ){
3110
3111 global $current_user;
3112 $user_id = $current_user->ID;
3113
3114 /* Check that the user hasn't already clicked to ignore the message */
3115 if ( ! get_user_meta( $user_id, 'cff_ignore_rating_notice') ) {
3116
3117 _e("
3118 <div class='cff_notice cff_review_notice'>
3119 <img src='". plugins_url( 'custom-facebook-feed/img/cff-icon.png' ) ."' alt='Custom Facebook Feed'>
3120 <div class='cff-notice-text'>
3121 <p>It's great to see that you've been using the <strong>Custom Facebook Feed</strong> plugin for a while now. Hopefully you're happy with it!&nbsp; If so, would you consider leaving a positive review? It really helps to support the plugin and helps others to discover it too!</p>
3122 <p class='cff-links'>
3123 <a class='cff_notice_dismiss' href='https://wordpress.org/support/view/plugin-reviews/custom-facebook-feed' target='_blank'>Sure, I'd love to!</a>
3124 &middot;
3125 <a class='cff_notice_dismiss' href='" .esc_url( add_query_arg( 'cff_ignore_rating_notice_nag', '1' ) ). "'>No thanks</a>
3126 &middot;
3127 <a class='cff_notice_dismiss' href='" .esc_url( add_query_arg( 'cff_ignore_rating_notice_nag', '1' ) ). "'>I've already given a review</a>
3128 &middot;
3129 <a class='cff_notice_dismiss' href='" .esc_url( add_query_arg( 'cff_ignore_rating_notice_nag', 'later' ) ). "'>Ask Me Later</a>
3130 </p>
3131 </div>
3132 <a class='cff_notice_close' href='" .esc_url( add_query_arg( 'cff_ignore_rating_notice_nag', '1' ) ). "'><i class='fa fa-close'></i></a>
3133 </div>
3134 ");
3135
3136 }
3137
3138 }
3139 }
3140
3141 // variables to define certain terms
3142 $transient = 'custom_facebook_rating_notice_waiting';
3143 $option = 'cff_rating_notice';
3144 $nag = 'cff_ignore_rating_notice_nag';
3145
3146 cff_check_nag_get( $_GET, $nag, $option, $transient );
3147 cff_maybe_set_transient( $transient, $option );
3148 $notice_status = get_option( $option, false );
3149
3150 // only display the notice if the time offset has passed and the user hasn't already dismissed it
3151 if ( get_transient( $transient ) !== 'waiting' && $notice_status !== 'dismissed' ) {
3152 add_action( 'admin_notices', 'cff_rating_notice_html' );
3153 }
3154
3155 ?>