PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 2.3.1
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v2.3.1
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 11 years ago fonts 11 years ago img 11 years ago js 11 years ago README.txt 11 years ago custom-facebook-feed-admin.php 11 years ago custom-facebook-feed.php 11 years ago gpl-2.0.txt 13 years ago
custom-facebook-feed-admin.php
2850 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 $show_access_token_val = $_POST[ $show_access_token ];
71 $access_token_val = $_POST[ $access_token ];
72 $page_id_val = $_POST[ $page_id ];
73 $cff_page_type_val = $_POST[ $cff_page_type ];
74 $num_show_val = $_POST[ $num_show ];
75 $cff_post_limit_val = $_POST[ $cff_post_limit ];
76 $cff_show_others_val = $_POST[ $cff_show_others ];
77 $cff_cache_time_val = $_POST[ $cff_cache_time ];
78 $cff_cache_time_unit_val = $_POST[ $cff_cache_time_unit ];
79 $cff_locale_val = $_POST[ $cff_locale ];
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 the transient for the main page ID
98 delete_transient( 'cff_posts_json_' .$page_id_val );
99 delete_transient( 'cff_feed_json_' .$page_id_val );
100 delete_transient( 'cff_events_json_' . $page_id_val );
101 //Delete ALL transients
102 global $wpdb;
103 $table_name = $wpdb->prefix . "options";
104 $wpdb->query( "
105 DELETE
106 FROM $table_name
107 WHERE `option_name` LIKE ('%cff\_posts\_json\_%')
108 " );
109 $wpdb->query( "
110 DELETE
111 FROM $table_name
112 WHERE `option_name` LIKE ('%cff\_feed\_json\_%')
113 " );
114 $wpdb->query( "
115 DELETE
116 FROM $table_name
117 WHERE `option_name` LIKE ('%cff\_events\_json\_%')
118 " );
119 // Put an settings updated message on the screen
120 ?>
121 <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
122 <?php } ?>
123
124 <div id="cff-admin" class="wrap">
125 <div id="header">
126 <h2><?php _e('Custom Facebook Feed Settings'); ?></h2>
127 </div>
128
129 <?php
130 $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'configuration';
131 ?>
132 <h2 class="nav-tab-wrapper">
133 <a href="?page=cff-top&amp;tab=configuration" class="nav-tab <?php echo $active_tab == 'configuration' ? 'nav-tab-active' : ''; ?>"><?php _e('Configuration'); ?></a>
134 <a href="?page=cff-style" class="nav-tab <?php echo $active_tab == 'customize' ? 'nav-tab-active' : ''; ?>"><?php _e('Customize'); ?></a>
135 <a href="?page=cff-top&amp;tab=support" class="nav-tab <?php echo $active_tab == 'support' ? 'nav-tab-active' : ''; ?>"><?php _e('Support'); ?></a>
136 </h2>
137
138 <?php if( $active_tab == 'configuration' ) { //Start Extensions tab ?>
139
140 <form name="form1" method="post" action="">
141 <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
142 <br />
143 <h3><?php _e('Configuration'); ?></h3>
144 <table class="form-table">
145 <tbody>
146 <tr valign="top">
147 <th scope="row"><?php _e('Facebook Page ID<br /><i style="font-weight: normal; font-size: 12px;">ID of your Facebook Page or Group</i>'); ?></th>
148 <td>
149 <input name="cff_page_id" id="cff_page_id" type="text" value="<?php esc_attr_e( $page_id_val ); ?>" size="45" />
150 &nbsp;<a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What\'s my Page ID?'); ?></a>
151 <br /><i style="color: #666; font-size: 11px;">Eg. 1234567890123 or smashballoon</i>
152 <div class="cff-tooltip cff-more-info">
153 <ul>
154 <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>'); ?>
155 <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.'); ?></li>
156 <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.'); ?></li>
157 </ul>
158 </div>
159 </td>
160 </tr>
161
162 <tr valign="top">
163 <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>'); ?></th>
164 <td>
165 <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?"); ?></a>
166 <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>"); ?>.</p>
167 </td>
168 </tr>
169
170 <tr valign="top" class="cff-access-token-hidden">
171 <th scope="row" style="padding-bottom: 10px;"><?php _e('Facebook Access Token'); ?></th>
172 <td>
173 <input name="cff_access_token" id="cff_access_token" type="text" value="<?php esc_attr_e( $access_token_val ); ?>" size="45" />
174
175 <div class="cff-notice cff-profile-error cff-access-token">
176 <?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>"); ?>
177 </div>
178 </td>
179 </tr>
180 </tbody>
181 </table>
182 <hr />
183 <table class="form-table">
184 <tbody>
185 <h3><?php _e('Settings'); ?></h3>
186 <tr valign="top" class="cff-page-type">
187 <th scope="row"><?php _e('Is this a page, group or profile?'); ?></th>
188 <td>
189 <select name="cff_page_type">
190 <option value="page" <?php if($cff_page_type_val == "page") echo 'selected="selected"' ?> ><?php _e('Page'); ?></option>
191 <option value="group" <?php if($cff_page_type_val == "group") echo 'selected="selected"' ?> ><?php _e('Group'); ?></option>
192 <option value="profile" <?php if($cff_page_type_val == "profile") echo 'selected="selected"' ?> ><?php _e('Profile'); ?></option>
193 </select>
194 <div class="cff-notice cff-profile-error cff-page-type">
195 <?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>"); ?>
196 </div>
197 </td>
198 </tr>
199
200 <tr valign="top" class="cff-page-options">
201 <th scope="row"><?php _e('Show posts on my page by:'); ?></th>
202 <td>
203 <select name="cff_show_others" id="cff_show_others" style="width: 250px;">
204 <option value="me" <?php if($cff_show_others_val == 'me') echo 'selected="selected"' ?> ><?php _e('Only the page owner (me)'); ?></option>
205 <option value="others" <?php if($cff_show_others_val == 'others' || $cff_show_others_val == 'on') echo 'selected="selected"' ?> ><?php _e('Page owner + other people'); ?></option>
206 <option value="onlyothers" <?php if($cff_show_others_val == 'onlyothers') echo 'selected="selected"' ?> ><?php _e('Only other people'); ?></option>
207 </select>
208
209 <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>
210
211 </td>
212 </tr>
213
214 <tr valign="top">
215 <th scope="row"><?php _e('Number of posts to display'); ?></th>
216 <td>
217 <input name="cff_num_show" type="text" value="<?php esc_attr_e( $num_show_val ); ?>" 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"><?php _e('Change the post limit'); ?></th>
223 <td>
224 <input name="cff_post_limit" type="text" value="<?php esc_attr_e( $cff_post_limit_val ); ?>" size="4" />
225 <i style="color: #666; font-size: 11px;">Eg. 50</i> <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?'); ?></a>
226 <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."); ?></p>
227 </td>
228 </tr>
229 <tr valign="top">
230 <th scope="row"><?php _e('Check for new Facebook posts every'); ?></th>
231 <td>
232 <input name="cff_cache_time" type="text" value="<?php esc_attr_e( $cff_cache_time_val ); ?>" size="4" />
233 <select name="cff_cache_time_unit">
234 <option value="minutes" <?php if($cff_cache_time_unit_val == "minutes") echo 'selected="selected"' ?> ><?php _e('Minutes'); ?></option>
235 <option value="hours" <?php if($cff_cache_time_unit_val == "hours") echo 'selected="selected"' ?> ><?php _e('Hours'); ?></option>
236 <option value="days" <?php if($cff_cache_time_unit_val == "days") echo 'selected="selected"' ?> ><?php _e('Days'); ?></option>
237 </select>
238 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?'); ?></a>
239 <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.'); ?></p>
240 </td>
241 </tr>
242
243 <tr valign="top">
244 <th scope="row"><?php _e('Localization'); ?></th>
245 <td>
246 <select name="cff_locale">
247 <option value="af_ZA" <?php if($cff_locale_val == "af_ZA") echo 'selected="selected"' ?> ><?php _e('Afrikaans'); ?></option>
248 <option value="ar_AR" <?php if($cff_locale_val == "ar_AR") echo 'selected="selected"' ?> ><?php _e('Arabic'); ?></option>
249 <option value="az_AZ" <?php if($cff_locale_val == "az_AZ") echo 'selected="selected"' ?> ><?php _e('Azerbaijani'); ?></option>
250 <option value="be_BY" <?php if($cff_locale_val == "be_BY") echo 'selected="selected"' ?> ><?php _e('Belarusian'); ?></option>
251 <option value="bg_BG" <?php if($cff_locale_val == "bg_BG") echo 'selected="selected"' ?> ><?php _e('Bulgarian'); ?></option>
252 <option value="bn_IN" <?php if($cff_locale_val == "bn_IN") echo 'selected="selected"' ?> ><?php _e('Bengali'); ?></option>
253 <option value="bs_BA" <?php if($cff_locale_val == "bs_BA") echo 'selected="selected"' ?> ><?php _e('Bosnian'); ?></option>
254 <option value="ca_ES" <?php if($cff_locale_val == "ca_ES") echo 'selected="selected"' ?> ><?php _e('Catalan'); ?></option>
255 <option value="cs_CZ" <?php if($cff_locale_val == "cs_CZ") echo 'selected="selected"' ?> ><?php _e('Czech'); ?></option>
256 <option value="cy_GB" <?php if($cff_locale_val == "cy_GB") echo 'selected="selected"' ?> ><?php _e('Welsh'); ?></option>
257 <option value="da_DK" <?php if($cff_locale_val == "da_DK") echo 'selected="selected"' ?> ><?php _e('Danish'); ?></option>
258 <option value="de_DE" <?php if($cff_locale_val == "de_DE") echo 'selected="selected"' ?> ><?php _e('German'); ?></option>
259 <option value="el_GR" <?php if($cff_locale_val == "el_GR") echo 'selected="selected"' ?> ><?php _e('Greek'); ?></option>
260 <option value="en_GB" <?php if($cff_locale_val == "en_GB") echo 'selected="selected"' ?> ><?php _e('English (UK)'); ?></option>
261 <option value="en_PI" <?php if($cff_locale_val == "en_PI") echo 'selected="selected"' ?> ><?php _e('English (Pirate)'); ?></option>
262 <option value="en_UD" <?php if($cff_locale_val == "en_UD") echo 'selected="selected"' ?> ><?php _e('English (Upside Down)'); ?></option>
263 <option value="en_US" <?php if($cff_locale_val == "en_US") echo 'selected="selected"' ?> ><?php _e('English (US)'); ?></option>
264 <option value="eo_EO" <?php if($cff_locale_val == "eo_EO") echo 'selected="selected"' ?> ><?php _e('Esperanto'); ?></option>
265 <option value="es_ES" <?php if($cff_locale_val == "es_ES") echo 'selected="selected"' ?> ><?php _e('Spanish (Spain)'); ?></option>
266 <option value="es_LA" <?php if($cff_locale_val == "es_LA") echo 'selected="selected"' ?> ><?php _e('Spanish'); ?></option>
267 <option value="et_EE" <?php if($cff_locale_val == "et_EE") echo 'selected="selected"' ?> ><?php _e('Estonian'); ?></option>
268 <option value="eu_ES" <?php if($cff_locale_val == "eu_ES") echo 'selected="selected"' ?> ><?php _e('Basque'); ?></option>
269 <option value="fa_IR" <?php if($cff_locale_val == "fa_IR") echo 'selected="selected"' ?> ><?php _e('Persian'); ?></option>
270 <option value="fb_LT" <?php if($cff_locale_val == "fb_LT") echo 'selected="selected"' ?> ><?php _e('Leet Speak'); ?></option>
271 <option value="fi_FI" <?php if($cff_locale_val == "fi_FI") echo 'selected="selected"' ?> ><?php _e('Finnish'); ?></option>
272 <option value="fo_FO" <?php if($cff_locale_val == "fo_FO") echo 'selected="selected"' ?> ><?php _e('Faroese'); ?></option>
273 <option value="fr_CA" <?php if($cff_locale_val == "fr_CA") echo 'selected="selected"' ?> ><?php _e('French (Canada)'); ?></option>
274 <option value="fr_FR" <?php if($cff_locale_val == "fr_FR") echo 'selected="selected"' ?> ><?php _e('French (France)'); ?></option>
275 <option value="fy_NL" <?php if($cff_locale_val == "fy_NL") echo 'selected="selected"' ?> ><?php _e('Frisian'); ?></option>
276 <option value="ga_IE" <?php if($cff_locale_val == "ga_IE") echo 'selected="selected"' ?> ><?php _e('Irish'); ?></option>
277 <option value="gl_ES" <?php if($cff_locale_val == "gl_ES") echo 'selected="selected"' ?> ><?php _e('Galician'); ?></option>
278 <option value="he_IL" <?php if($cff_locale_val == "he_IL") echo 'selected="selected"' ?> ><?php _e('Hebrew'); ?></option>
279 <option value="hi_IN" <?php if($cff_locale_val == "hi_IN") echo 'selected="selected"' ?> ><?php _e('Hindi'); ?></option>
280 <option value="hr_HR" <?php if($cff_locale_val == "hr_HR") echo 'selected="selected"' ?> ><?php _e('Croatian'); ?></option>
281 <option value="hu_HU" <?php if($cff_locale_val == "hu_HU") echo 'selected="selected"' ?> ><?php _e('Hungarian'); ?></option>
282 <option value="hy_AM" <?php if($cff_locale_val == "hy_AM") echo 'selected="selected"' ?> ><?php _e('Armenian'); ?></option>
283 <option value="id_ID" <?php if($cff_locale_val == "id_ID") echo 'selected="selected"' ?> ><?php _e('Indonesian'); ?></option>
284 <option value="is_IS" <?php if($cff_locale_val == "is_IS") echo 'selected="selected"' ?> ><?php _e('Icelandic'); ?></option>
285 <option value="it_IT" <?php if($cff_locale_val == "it_IT") echo 'selected="selected"' ?> ><?php _e('Italian'); ?></option>
286 <option value="ja_JP" <?php if($cff_locale_val == "ja_JP") echo 'selected="selected"' ?> ><?php _e('Japanese'); ?></option>
287 <option value="ka_GE" <?php if($cff_locale_val == "ka_GE") echo 'selected="selected"' ?> ><?php _e('Georgian'); ?></option>
288 <option value="km_KH" <?php if($cff_locale_val == "km_KH") echo 'selected="selected"' ?> ><?php _e('Khmer'); ?></option>
289 <option value="ko_KR" <?php if($cff_locale_val == "ko_KR") echo 'selected="selected"' ?> ><?php _e('Korean'); ?></option>
290 <option value="ku_TR" <?php if($cff_locale_val == "ku_TR") echo 'selected="selected"' ?> ><?php _e('Kurdish'); ?></option>
291 <option value="la_VA" <?php if($cff_locale_val == "la_VA") echo 'selected="selected"' ?> ><?php _e('Latin'); ?></option>
292 <option value="lt_LT" <?php if($cff_locale_val == "lt_LT") echo 'selected="selected"' ?> ><?php _e('Lithuanian'); ?></option>
293 <option value="lv_LV" <?php if($cff_locale_val == "lv_LV") echo 'selected="selected"' ?> ><?php _e('Latvian'); ?></option>
294 <option value="mk_MK" <?php if($cff_locale_val == "mk_MK") echo 'selected="selected"' ?> ><?php _e('Macedonian'); ?></option>
295 <option value="ml_IN" <?php if($cff_locale_val == "ml_IN") echo 'selected="selected"' ?> ><?php _e('Malayalam'); ?></option>
296 <option value="ms_MY" <?php if($cff_locale_val == "ms_MY") echo 'selected="selected"' ?> ><?php _e('Malay'); ?></option>
297 <option value="nb_NO" <?php if($cff_locale_val == "nb_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (bokmal)'); ?></option>
298 <option value="ne_NP" <?php if($cff_locale_val == "ne_NP") echo 'selected="selected"' ?> ><?php _e('Nepali'); ?></option>
299 <option value="nl_NL" <?php if($cff_locale_val == "nl_NL") echo 'selected="selected"' ?> ><?php _e('Dutch'); ?></option>
300 <option value="nn_NO" <?php if($cff_locale_val == "nn_NO") echo 'selected="selected"' ?> ><?php _e('Norwegian (nynorsk)'); ?></option>
301 <option value="pa_IN" <?php if($cff_locale_val == "pa_IN") echo 'selected="selected"' ?> ><?php _e('Punjabi'); ?></option>
302 <option value="pl_PL" <?php if($cff_locale_val == "pl_PL") echo 'selected="selected"' ?> ><?php _e('Polish'); ?></option>
303 <option value="ps_AF" <?php if($cff_locale_val == "ps_AF") echo 'selected="selected"' ?> ><?php _e('Pashto'); ?></option>
304 <option value="pt_BR" <?php if($cff_locale_val == "pt_BR") echo 'selected="selected"' ?> ><?php _e('Portuguese (Brazil)'); ?></option>
305 <option value="pt_PT" <?php if($cff_locale_val == "pt_PT") echo 'selected="selected"' ?> ><?php _e('Portuguese (Portugal)'); ?></option>
306 <option value="ro_RO" <?php if($cff_locale_val == "ro_RO") echo 'selected="selected"' ?> ><?php _e('Romanian'); ?></option>
307 <option value="ru_RU" <?php if($cff_locale_val == "ru_RU") echo 'selected="selected"' ?> ><?php _e('Russian'); ?></option>
308 <option value="sk_SK" <?php if($cff_locale_val == "sk_SK") echo 'selected="selected"' ?> ><?php _e('Slovak'); ?></option>
309 <option value="sl_SI" <?php if($cff_locale_val == "sl_SI") echo 'selected="selected"' ?> ><?php _e('Slovenian'); ?></option>
310 <option value="sq_AL" <?php if($cff_locale_val == "sq_AL") echo 'selected="selected"' ?> ><?php _e('Albanian'); ?></option>
311 <option value="sr_RS" <?php if($cff_locale_val == "sr_RS") echo 'selected="selected"' ?> ><?php _e('Serbian'); ?></option>
312 <option value="sv_SE" <?php if($cff_locale_val == "sv_SE") echo 'selected="selected"' ?> ><?php _e('Swedish'); ?></option>
313 <option value="sw_KE" <?php if($cff_locale_val == "sw_KE") echo 'selected="selected"' ?> ><?php _e('Swahili'); ?></option>
314 <option value="ta_IN" <?php if($cff_locale_val == "ta_IN") echo 'selected="selected"' ?> ><?php _e('Tamil'); ?></option>
315 <option value="te_IN" <?php if($cff_locale_val == "te_IN") echo 'selected="selected"' ?> ><?php _e('Telugu'); ?></option>
316 <option value="th_TH" <?php if($cff_locale_val == "th_TH") echo 'selected="selected"' ?> ><?php _e('Thai'); ?></option>
317 <option value="tl_PH" <?php if($cff_locale_val == "tl_PH") echo 'selected="selected"' ?> ><?php _e('Filipino'); ?></option>
318 <option value="tr_TR" <?php if($cff_locale_val == "tr_TR") echo 'selected="selected"' ?> ><?php _e('Turkish'); ?></option>
319 <option value="uk_UA" <?php if($cff_locale_val == "uk_UA") echo 'selected="selected"' ?> ><?php _e('Ukrainian'); ?></option>
320 <option value="vi_VN" <?php if($cff_locale_val == "vi_VN") echo 'selected="selected"' ?> ><?php _e('Vietnamese'); ?></option>
321 <option value="zh_CN" <?php if($cff_locale_val == "zh_CN") echo 'selected="selected"' ?> ><?php _e('Simplified Chinese (China)'); ?></option>
322 <option value="zh_HK" <?php if($cff_locale_val == "zh_HK") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Hong Kong)'); ?></option>
323 <option value="zh_TW" <?php if($cff_locale_val == "zh_TW") echo 'selected="selected"' ?> ><?php _e('Traditional Chinese (Taiwan)'); ?></option>
324 </select>
325 <i style="color: #666; font-size: 11px;"><?php _e('Select a language'); ?></i>
326 </td>
327 </tr>
328
329 <tr>
330 <th><label for="cff_timezone" class="bump-left"><?php _e('Timezone'); ?></label></th>
331 <td>
332 <select name="cff_timezone" style="width: 300px;">
333 <option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa'); ?></option>
334 <option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian'); ?></option>
335 <option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii'); ?></option>
336 <option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands'); ?></option>
337 <option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands'); ?></option>
338 <option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska'); ?></option>
339 <option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California'); ?></option>
340 <option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands'); ?></option>
341 <option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)'); ?></option>
342 <option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)'); ?></option>
343 <option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan'); ?></option>
344 <option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona'); ?></option>
345 <option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America'); ?></option>
346 <option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey'); ?></option>
347 <option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island'); ?></option>
348 <option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)'); ?></option>
349 <option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)'); ?></option>
350 <option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba'); ?></option>
351 <option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco'); ?></option>
352 <option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas'); ?></option>
353 <option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago'); ?></option>
354 <option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz'); ?></option>
355 <option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands'); ?></option>
356 <option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil'); ?></option>
357 <option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)'); ?></option>
358 <option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)'); ?></option>
359 <option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland'); ?></option>
360 <option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3'); ?></option>
361 <option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo'); ?></option>
362 <option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre'); ?></option>
363 <option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland'); ?></option>
364 <option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires'); ?></option>
365 <option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia'); ?></option>
366 <option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic'); ?></option>
367 <option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.'); ?></option>
368 <option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores'); ?></option>
369 <option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast'); ?></option>
370 <option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin'); ?></option>
371 <option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon'); ?></option>
372 <option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London'); ?></option>
373 <option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik'); ?></option>
374 <option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'); ?></option>
375 <option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'); ?></option>
376 <option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris'); ?></option>
377 <option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa'); ?></option>
378 <option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek'); ?></option>
379 <option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut'); ?></option>
380 <option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo'); ?></option>
381 <option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza'); ?></option>
382 <option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria'); ?></option>
383 <option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem'); ?></option>
384 <option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk'); ?></option>
385 <option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria'); ?></option>
386 <option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd'); ?></option>
387 <option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi'); ?></option>
388 <option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran'); ?></option>
389 <option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat'); ?></option>
390 <option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan'); ?></option>
391 <option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul'); ?></option>
392 <option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg'); ?></option>
393 <option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent'); ?></option>
394 <option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi'); ?></option>
395 <option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu'); ?></option>
396 <option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka'); ?></option>
397 <option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk'); ?></option>
398 <option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)'); ?></option>
399 <option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta'); ?></option>
400 <option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk'); ?></option>
401 <option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi'); ?></option>
402 <option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar'); ?></option>
403 <option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth'); ?></option>
404 <option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla'); ?></option>
405 <option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo'); ?></option>
406 <option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul'); ?></option>
407 <option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk'); ?></option>
408 <option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide'); ?></option>
409 <option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin'); ?></option>
410 <option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane'); ?></option>
411 <option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Hobart'); ?></option>
412 <option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok'); ?></option>
413 <option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island'); ?></option>
414 <option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia'); ?></option>
415 <option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan'); ?></option>
416 <option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island'); ?></option>
417 <option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka'); ?></option>
418 <option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington'); ?></option>
419 <option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.'); ?></option>
420 <option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands'); ?></option>
421 <option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa'); ?></option>
422 <option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati'); ?></option>
423 </select>
424 </td>
425 </tr>
426
427 </tbody>
428 </table>
429 <?php submit_button(); ?>
430 <p>Having trouble using the plugin? Check out the <a href='admin.php?page=cff-top&amp;tab=support'>Support</a> tab.</p>
431 </form>
432 <hr />
433 <h3><?php _e('Displaying your Feed'); ?></h3>
434 <p><?php _e("Copy and paste this shortcode directly into the page, post or widget where you'd like the feed to show up:"); ?></p>
435 <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).'); ?>" />
436 <hr />
437 <h3><?php _e('Customizing your Feed'); ?></h3>
438 <p><?php _e("Use the <a href='admin.php?page=cff-style'>Customize</a> page to customize your feed. If you're displaying multiple feeds then you can override your settings and customizations by using options directly in the shortcode, like so:"); ?></p>
439 <p>[custom-facebook-feed id=some-other-page-id num=3 height=500px]</p>
440 <p><a href="https://smashballoon.com/custom-facebook-feed/docs/shortcodes/" target="_blank"><?php _e('See a full list of shortcode options'); ?></a></p>
441
442 <br />
443 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
444
445 <hr />
446 <h3><?php _e('Like the plugin? Help spread the word!'); ?></h3>
447
448 <!-- TWITTER -->
449 <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>
450 <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>
451 <style type="text/css">
452 #twitter-widget-0{ float: left; width: 100px !important; }
453 .IN-widget{ margin-right: 20px; }
454 </style>
455
456 <!-- FACEBOOK -->
457 <div id="fb-root" style="display: none;"></div>
458 <script>(function(d, s, id) {
459 var js, fjs = d.getElementsByTagName(s)[0];
460 if (d.getElementById(id)) return;
461 js = d.createElement(s); js.id = id;
462 js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=640861236031365&version=v2.0";
463 fjs.parentNode.insertBefore(js, fjs);
464 }(document, 'script', 'facebook-jssdk'));</script>
465 <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>
466
467 <!-- LINKEDIN -->
468 <script src="//platform.linkedin.com/in.js" type="text/javascript">
469 lang: en_US
470 </script>
471 <script type="IN/Share" data-url="https://wordpress.org/plugins/custom-facebook-feed/"></script>
472
473 <!-- GOOGLE + -->
474 <script src="https://apis.google.com/js/platform.js" async defer></script>
475 <div class="g-plusone" data-size="medium" data-href="https://wordpress.org/plugins/custom-facebook-feed/"></div>
476
477 <?php } //End config tab ?>
478
479
480 <?php if( $active_tab == 'support' ) { //Start Support tab ?>
481
482 <br />
483 <h3><?php _e('FAQs and Troubleshooting'); ?></h3>
484 <p>Having trouble getting the plugin to work? Try the links below:</p>
485 <ul>
486 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/faq/general/" target="_blank">General Questions</a>'); ?></li>
487 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/faq/setup/" target="_blank">Setting Up &amp; Displaying your Feed</a>'); ?></li>
488 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/faq/troubleshooting/" target="_blank">Troubleshooting &amp; Common Support Questions</a>'); ?></li>
489 </ul>
490 <br />
491 <h3>Documentation</h3>
492 <p>Need help setting up, configuring or customizing the plugin? Check out the links below:</p>
493 <ul>
494 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/wordpress/" target="_blank">Installation and Configuration</a>'); ?></li>
495 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/shortcodes/" target="_blank">Shortcode Reference</a>'); ?></li>
496 <li>- <?php _e('<a href="https://smashballoon.com/custom-facebook-feed/docs/snippets/" target="_blank">Custom CSS and JavaScript Snippets</a>'); ?></li>
497 </ul>
498
499 <br />
500 <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.'); ?></p>
501
502 <br />
503 <h3><?php _e('System Info &nbsp; <i style="color: #666; font-size: 11px; font-weight: normal;">Click the text below to select all</i>'); ?></h3>
504
505 <?php
506 $access_token = get_option( $access_token );
507 if ( $access_token == '' || empty($access_token) ) $access_token = '611606915581035|RdRHbHtrHseQw4C7SDUBFWIrJLA';
508 ?>
509 <?php $posts_json = cff_fetchUrl("https://graph.facebook.com/".get_option( trim($page_id) )."/feed?access_token=". trim($access_token) ."&limit=1"); ?>
510
511
512 <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;">
513 ## SITE/SERVER INFO: ##
514 Site URL: <?php echo site_url() . "\n"; ?>
515 Home URL: <?php echo home_url() . "\n"; ?>
516 WordPress Version: <?php echo get_bloginfo( 'version' ) . "\n"; ?>
517 PHP Version: <?php echo PHP_VERSION . "\n"; ?>
518 Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
519 PHP allow_url_fopen: <?php echo ini_get( 'allow_url_fopen' ) ? "Yes" . "\n" : "No" . "\n"; ?>
520 PHP cURL: <?php echo is_callable('curl_init') ? "Yes" . "\n" : "No" . "\n"; ?>
521 JSON: <?php echo function_exists("json_decode") ? "Yes" . "\n" : "No" . "\n" ?>
522 SSL Stream: <?php echo in_array('https', stream_get_wrappers()) ? "Yes" . "\n" : "No" . "\n" ?>
523
524 ## ACTIVE PLUGINS: ##
525 <?php
526 $plugins = get_plugins();
527 $active_plugins = get_option( 'active_plugins', array() );
528
529 foreach ( $plugins as $plugin_path => $plugin ) {
530 // If the plugin isn't active, don't show it.
531 if ( ! in_array( $plugin_path, $active_plugins ) )
532 continue;
533
534 echo $plugin['Name'] . ': ' . $plugin['Version'] ."\n";
535 }
536 ?>
537
538 ## PLUGIN SETTINGS: ##
539 Use own Access Token: <?php echo get_option( 'cff_show_access_token' ) ."\n"; ?>
540 Access Token: <?php echo get_option( 'cff_access_token' ) ."\n"; ?>
541 Page ID: <?php echo get_option( 'cff_page_id' ) ."\n"; ?>
542 Page Type: <?php echo get_option( 'cff_page_type' ) ."\n"; ?>
543 Number of Posts: <?php echo get_option( 'cff_num_show' ) ."\n"; ?>
544 Post Limit: <?php echo get_option( 'cff_post_limit' ) ."\n"; ?>
545 Show Posts by: <?php echo get_option( 'cff_show_others' ) ."\n"; ?>
546 Cache Time: <?php echo get_option( 'cff_cache_time' ) ."\n"; ?>
547 Cache Unit: <?php echo get_option( 'cff_cache_time_unit' ) ."\n"; ?>
548 Locale: <?php echo get_option( 'cff_locale' ) ."\n"; ?>
549 Timezone: <?php $options = get_option( 'cff_style_settings', array() );
550 echo $options[ 'cff_timezone' ] ."\n"; ?>
551
552
553 ## CUSTOMIZE: ##
554 cff_ajax => <?php echo get_option('cff_ajax') ."\n"; ?>
555 cff_preserve_settings => <?php echo get_option('cff_preserve_settings') ."\n"; ?>
556 cff_title_length => <?php echo get_option('cff_title_length') ."\n"; ?>
557 cff_body_length => <?php echo get_option('cff_body_length') ."\n"; ?>
558 <?php
559 while (list($key, $val) = each($options)) {
560 echo "$key => $val\n";
561 }
562 ?>
563
564 ## FACEBOOK API RESPONSE: ##
565 <?php echo $posts_json; ?>
566 </textarea>
567
568 <?php } ?>
569
570
571 <?php
572 } //End Settings_Page
573 //Create Style page
574 function cff_style_page() {
575 //Declare variables for fields
576 $style_hidden_field_name = 'cff_style_submit_hidden';
577 $style_general_hidden_field_name = 'cff_style_general_submit_hidden';
578 $style_post_layout_hidden_field_name = 'cff_style_post_layout_submit_hidden';
579 $style_typography_hidden_field_name = 'cff_style_typography_submit_hidden';
580 $style_misc_hidden_field_name = 'cff_style_misc_submit_hidden';
581 $style_custom_text_hidden_field_name = 'cff_style_custom_text_submit_hidden';
582
583 //Defaults need to be here on the Settings page so that they're saved when the initial settings are saved
584 $defaults = array(
585 //Post types
586 'cff_show_links_type' => true,
587 'cff_show_event_type' => true,
588 'cff_show_video_type' => true,
589 'cff_show_photos_type' => true,
590 'cff_show_status_type' => true,
591 //Layout
592 'cff_preset_layout' => 'thumb',
593 //Include
594 'cff_show_text' => true,
595 'cff_show_desc' => true,
596 'cff_show_shared_links' => true,
597 'cff_show_date' => true,
598 'cff_show_media' => true,
599 'cff_show_event_title' => true,
600 'cff_show_event_details' => true,
601 'cff_show_meta' => true,
602 'cff_show_link' => true,
603 'cff_show_like_box' => true,
604 //Post Styple
605 'cff_post_bg_color' => '',
606 'cff_post_rounded' => '0',
607
608 //Typography
609 'cff_title_format' => 'p',
610 'cff_title_size' => 'inherit',
611 'cff_title_weight' => 'inherit',
612 'cff_title_color' => '',
613 'cff_posttext_link_color' => '',
614 'cff_body_size' => '12',
615 'cff_body_weight' => 'inherit',
616 'cff_body_color' => '',
617 'cff_link_title_format' => 'p',
618 'cff_link_title_size' => 'inherit',
619 'cff_link_title_color' => '',
620 'cff_link_url_color' => '',
621 'cff_link_bg_color' => '',
622 'cff_link_border_color' => '',
623 'cff_disable_link_box' => '',
624 //Event title
625 'cff_event_title_format' => 'p',
626 'cff_event_title_size' => 'inherit',
627 'cff_event_title_weight' => 'inherit',
628 'cff_event_title_color' => '',
629 //Event date
630 'cff_event_date_size' => 'inherit',
631 'cff_event_date_weight' => 'inherit',
632 'cff_event_date_color' => '',
633 'cff_event_date_position' => 'below',
634 'cff_event_date_formatting' => '1',
635 'cff_event_date_custom' => '',
636 //Event details
637 'cff_event_details_size' => 'inherit',
638 'cff_event_details_weight' => 'inherit',
639 'cff_event_details_color' => '',
640 'cff_event_link_color' => '',
641 //Date
642 'cff_date_position' => 'author',
643 'cff_date_size' => 'inherit',
644 'cff_date_weight' => 'inherit',
645 'cff_date_color' => '',
646 'cff_date_formatting' => '1',
647 'cff_date_custom' => '',
648 'cff_date_before' => '',
649 'cff_date_after' => '',
650 'cff_timezone' => 'America/Chicago',
651
652 //Link to Facebook
653 'cff_link_size' => 'inherit',
654 'cff_link_weight' => 'inherit',
655 'cff_link_color' => '',
656 'cff_facebook_link_text' => 'View on Facebook',
657 'cff_view_link_text' => 'View Link',
658 'cff_link_to_timeline' => false,
659 //Meta
660 'cff_icon_style' => 'light',
661 'cff_meta_text_color' => '',
662 'cff_meta_bg_color' => '',
663 'cff_nocomments_text' => 'No comments yet',
664 'cff_hide_comments' => '',
665 //Misc
666 'cff_feed_width' => '',
667 'cff_feed_height' => '',
668 'cff_feed_padding' => '',
669 'cff_like_box_position' => 'bottom',
670 'cff_like_box_outside' => false,
671 'cff_likebox_width' => '',
672 'cff_likebox_height' => '',
673 'cff_like_box_faces' => false,
674 'cff_like_box_border' => false,
675
676 'cff_bg_color' => '',
677 'cff_likebox_bg_color' => '',
678 'cff_like_box_text_color' => 'blue',
679 'cff_video_height' => '',
680 'cff_show_author' => true,
681 'cff_class' => '',
682 'cff_open_links' => true,
683 //New
684 'cff_custom_css' => '',
685 'cff_custom_js' => '',
686 'cff_title_link' => false,
687 'cff_post_tags' => true,
688 'cff_link_hashtags' => true,
689 'cff_event_title_link' => false,
690 'cff_video_action' => 'post',
691 'cff_app_id' => '',
692 'cff_show_credit' => '',
693 'cff_font_source' => '',
694 'cff_sep_color' => '',
695 'cff_sep_size' => '1',
696
697 //Feed Header
698 'cff_show_header' => '',
699 'cff_header_outside' => false,
700 'cff_header_text' => 'Facebook Posts',
701 'cff_header_bg_color' => '',
702 'cff_header_padding' => '',
703 'cff_header_text_size' => '',
704 'cff_header_text_weight' => '',
705 'cff_header_text_color' => '',
706 'cff_header_icon' => '',
707 'cff_header_icon_color' => '',
708 'cff_header_icon_size' => '28',
709
710 //Author
711 'cff_author_size' => 'inherit',
712 'cff_author_color' => '',
713
714 //Translate - general
715 'cff_see_more_text' => 'See More',
716 'cff_see_less_text' => 'See Less',
717 'cff_facebook_link_text' => 'View on Facebook',
718 'cff_facebook_share_text' => 'Share',
719 'cff_show_facebook_link' => true,
720 'cff_show_facebook_share' => true,
721
722 'cff_translate_photos_text' => 'photos',
723
724 //Translate - date
725 'cff_translate_second' => 'second',
726 'cff_translate_seconds' => 'seconds',
727 'cff_translate_minute' => 'minute',
728 'cff_translate_minutes' => 'minutes',
729 'cff_translate_hour' => 'hour',
730 'cff_translate_hours' => 'hours',
731 'cff_translate_day' => 'day',
732 'cff_translate_days' => 'days',
733 'cff_translate_week' => 'week',
734 'cff_translate_weeks' => 'weeks',
735 'cff_translate_month' => 'month',
736 'cff_translate_months' => 'months',
737 'cff_translate_year' => 'year',
738 'cff_translate_years' => 'years',
739 'cff_translate_ago' => 'ago'
740 );
741 //Save layout option in an array
742 $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
743 add_option( 'cff_style_settings', $options );
744
745 //Set the page variables
746 //Post types
747 $cff_show_links_type = $options[ 'cff_show_links_type' ];
748 $cff_show_event_type = $options[ 'cff_show_event_type' ];
749 $cff_show_video_type = $options[ 'cff_show_video_type' ];
750 $cff_show_photos_type = $options[ 'cff_show_photos_type' ];
751 $cff_show_status_type = $options[ 'cff_show_status_type' ];
752 //Layout
753 $cff_preset_layout = $options[ 'cff_preset_layout' ];
754 //Include
755 $cff_show_text = $options[ 'cff_show_text' ];
756 $cff_show_desc = $options[ 'cff_show_desc' ];
757 $cff_show_shared_links = $options[ 'cff_show_shared_links' ];
758 $cff_show_date = $options[ 'cff_show_date' ];
759 $cff_show_media = $options[ 'cff_show_media' ];
760 $cff_show_event_title = $options[ 'cff_show_event_title' ];
761 $cff_show_event_details = $options[ 'cff_show_event_details' ];
762 $cff_show_meta = $options[ 'cff_show_meta' ];
763 $cff_show_link = $options[ 'cff_show_link' ];
764 $cff_show_like_box = $options[ 'cff_show_like_box' ];
765 //Post Style
766 $cff_post_bg_color = $options[ 'cff_post_bg_color' ];
767 $cff_post_rounded = $options[ 'cff_post_rounded' ];
768
769 //Typography
770 $cff_see_more_text = $options[ 'cff_see_more_text' ];
771 $cff_see_less_text = $options[ 'cff_see_less_text' ];
772 $cff_title_format = $options[ 'cff_title_format' ];
773 $cff_title_size = $options[ 'cff_title_size' ];
774 $cff_title_weight = $options[ 'cff_title_weight' ];
775 $cff_title_color = $options[ 'cff_title_color' ];
776 $cff_posttext_link_color = $options[ 'cff_posttext_link_color' ];
777 $cff_body_size = $options[ 'cff_body_size' ];
778 $cff_body_weight = $options[ 'cff_body_weight' ];
779 $cff_body_color = $options[ 'cff_body_color' ];
780 $cff_link_title_format = $options[ 'cff_link_title_format' ];
781 $cff_link_title_size = $options[ 'cff_link_title_size' ];
782 $cff_link_title_color = $options[ 'cff_link_title_color' ];
783 $cff_link_url_color = $options[ 'cff_link_url_color' ];
784 $cff_link_bg_color = $options[ 'cff_link_bg_color' ];
785 $cff_link_border_color = $options[ 'cff_link_border_color' ];
786 $cff_disable_link_box = $options[ 'cff_disable_link_box' ];
787
788 //Event title
789 $cff_event_title_format = $options[ 'cff_event_title_format' ];
790 $cff_event_title_size = $options[ 'cff_event_title_size' ];
791 $cff_event_title_weight = $options[ 'cff_event_title_weight' ];
792 $cff_event_title_color = $options[ 'cff_event_title_color' ];
793 //Event date
794 $cff_event_date_size = $options[ 'cff_event_date_size' ];
795 $cff_event_date_weight = $options[ 'cff_event_date_weight' ];
796 $cff_event_date_color = $options[ 'cff_event_date_color' ];
797 $cff_event_date_position = $options[ 'cff_event_date_position' ];
798 $cff_event_date_formatting = $options[ 'cff_event_date_formatting' ];
799 $cff_event_date_custom = $options[ 'cff_event_date_custom' ];
800 //Event details
801 $cff_event_details_size = $options[ 'cff_event_details_size' ];
802 $cff_event_details_weight = $options[ 'cff_event_details_weight' ];
803 $cff_event_details_color = $options[ 'cff_event_details_color' ];
804 $cff_event_link_color = $options[ 'cff_event_link_color' ];
805 //Date
806 $cff_date_position = $options[ 'cff_date_position' ];
807 $cff_date_size = $options[ 'cff_date_size' ];
808 $cff_date_weight = $options[ 'cff_date_weight' ];
809 $cff_date_color = $options[ 'cff_date_color' ];
810 $cff_date_formatting = $options[ 'cff_date_formatting' ];
811 $cff_date_custom = $options[ 'cff_date_custom' ];
812 $cff_date_before = $options[ 'cff_date_before' ];
813 $cff_date_after = $options[ 'cff_date_after' ];
814 $cff_timezone = $options[ 'cff_timezone' ];
815
816 //Date translate
817 $cff_translate_second = $options[ 'cff_translate_second' ];
818 $cff_translate_seconds = $options[ 'cff_translate_seconds' ];
819 $cff_translate_minute = $options[ 'cff_translate_minute' ];
820 $cff_translate_minutes = $options[ 'cff_translate_minutes' ];
821 $cff_translate_hour = $options[ 'cff_translate_hour' ];
822 $cff_translate_hours = $options[ 'cff_translate_hours' ];
823 $cff_translate_day = $options[ 'cff_translate_day' ];
824 $cff_translate_days = $options[ 'cff_translate_days' ];
825 $cff_translate_week = $options[ 'cff_translate_week' ];
826 $cff_translate_weeks = $options[ 'cff_translate_weeks' ];
827 $cff_translate_month = $options[ 'cff_translate_month' ];
828 $cff_translate_months = $options[ 'cff_translate_months' ];
829 $cff_translate_year = $options[ 'cff_translate_year' ];
830 $cff_translate_years = $options[ 'cff_translate_years' ];
831 $cff_translate_ago = $options[ 'cff_translate_ago' ];
832 //Photos translate
833 $cff_translate_photos_text = $options[ 'cff_translate_photos_text' ];
834
835 //View on Facebook link
836 $cff_link_size = $options[ 'cff_link_size' ];
837 $cff_link_weight = $options[ 'cff_link_weight' ];
838 $cff_link_color = $options[ 'cff_link_color' ];
839 $cff_facebook_link_text = $options[ 'cff_facebook_link_text' ];
840 $cff_view_link_text = $options[ 'cff_view_link_text' ];
841 $cff_link_to_timeline = $options[ 'cff_link_to_timeline' ];
842 $cff_facebook_share_text = $options[ 'cff_facebook_share_text' ];
843 $cff_show_facebook_link = $options[ 'cff_show_facebook_link' ];
844 $cff_show_facebook_share = $options[ 'cff_show_facebook_share' ];
845 //Meta
846 $cff_icon_style = $options[ 'cff_icon_style' ];
847 $cff_meta_text_color = $options[ 'cff_meta_text_color' ];
848 $cff_meta_bg_color = $options[ 'cff_meta_bg_color' ];
849 $cff_nocomments_text = $options[ 'cff_nocomments_text' ];
850 $cff_hide_comments = $options[ 'cff_hide_comments' ];
851 //Misc
852 $cff_feed_width = $options[ 'cff_feed_width' ];
853 $cff_feed_height = $options[ 'cff_feed_height' ];
854 $cff_feed_padding = $options[ 'cff_feed_padding' ];
855 $cff_like_box_position = $options[ 'cff_like_box_position' ];
856 $cff_like_box_outside = $options[ 'cff_like_box_outside' ];
857 $cff_likebox_width = $options[ 'cff_likebox_width' ];
858 $cff_likebox_height = $options[ 'cff_likebox_height' ];
859 $cff_like_box_faces = $options[ 'cff_like_box_faces' ];
860 $cff_like_box_border = $options[ 'cff_like_box_border' ];
861
862 $cff_show_media = $options[ 'cff_show_media' ];
863 $cff_bg_color = $options[ 'cff_bg_color' ];
864 $cff_likebox_bg_color = $options[ 'cff_likebox_bg_color' ];
865 $cff_like_box_text_color = $options[ 'cff_like_box_text_color' ];
866 $cff_video_height = $options[ 'cff_video_height' ];
867 $cff_show_author = $options[ 'cff_show_author' ];
868 $cff_class = $options[ 'cff_class' ];
869 $cff_open_links = $options[ 'cff_open_links' ];
870 $cff_app_id = $options[ 'cff_app_id' ];
871 $cff_show_credit = $options[ 'cff_show_credit' ];
872 $cff_font_source = $options[ 'cff_font_source' ];
873 $cff_preserve_settings = 'cff_preserve_settings';
874 $cff_preserve_settings_val = get_option( $cff_preserve_settings );
875
876 //Page Header
877 $cff_show_header = $options[ 'cff_show_header' ];
878 $cff_header_outside = $options[ 'cff_header_outside' ];
879 $cff_header_text = $options[ 'cff_header_text' ];
880 $cff_header_bg_color = $options[ 'cff_header_bg_color' ];
881 $cff_header_padding = $options[ 'cff_header_padding' ];
882 $cff_header_text_size = $options[ 'cff_header_text_size' ];
883 $cff_header_text_weight = $options[ 'cff_header_text_weight' ];
884 $cff_header_text_color = $options[ 'cff_header_text_color' ];
885 $cff_header_icon = $options[ 'cff_header_icon' ];
886 $cff_header_icon_color = $options[ 'cff_header_icon_color' ];
887 $cff_header_icon_size = $options[ 'cff_header_icon_size' ];
888
889 //Author
890 $cff_author_size = $options[ 'cff_author_size' ];
891 $cff_author_color = $options[ 'cff_author_color' ];
892
893 //New
894 $cff_custom_css = $options[ 'cff_custom_css' ];
895 $cff_custom_js = $options[ 'cff_custom_js' ];
896 $cff_title_link = $options[ 'cff_title_link' ];
897 $cff_post_tags = $options[ 'cff_post_tags' ];
898 $cff_link_hashtags = $options[ 'cff_link_hashtags' ];
899 $cff_event_title_link = $options[ 'cff_event_title_link' ];
900 $cff_video_action = $options[ 'cff_video_action' ];
901 $cff_sep_color = $options[ 'cff_sep_color' ];
902 $cff_sep_size = $options[ 'cff_sep_size' ];
903
904 // Texts lengths
905 $cff_title_length = 'cff_title_length';
906 $cff_body_length = 'cff_body_length';
907 // Read in existing option value from database
908 $cff_title_length_val = get_option( $cff_title_length, '400' );
909 $cff_body_length_val = get_option( $cff_body_length, '200' );
910
911 //Ajax
912 $cff_ajax = 'cff_ajax';
913 $cff_ajax_val = get_option( $cff_ajax );
914
915 // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
916 if( isset($_POST[ $style_hidden_field_name ]) && $_POST[ $style_hidden_field_name ] == 'Y' ) {
917 //Update the General options
918 if( isset($_POST[ $style_general_hidden_field_name ]) && $_POST[ $style_general_hidden_field_name ] == 'Y' ) {
919 //General
920 if (isset($_POST[ 'cff_feed_width' ]) ) $cff_feed_width = $_POST[ 'cff_feed_width' ];
921 if (isset($_POST[ 'cff_feed_height' ]) ) $cff_feed_height = $_POST[ 'cff_feed_height' ];
922 if (isset($_POST[ 'cff_feed_padding' ]) ) $cff_feed_padding = $_POST[ 'cff_feed_padding' ];
923 if (isset($_POST[ 'cff_bg_color' ]) ) $cff_bg_color = $_POST[ 'cff_bg_color' ];
924 if (isset($_POST[ 'cff_class' ]) ) $cff_class = $_POST[ 'cff_class' ];
925 //Post types
926 if (isset($_POST[ 'cff_show_links_type' ]) ) $cff_show_links_type = $_POST[ 'cff_show_links_type' ];
927 if (isset($_POST[ 'cff_show_event_type' ]) ) $cff_show_event_type = $_POST[ 'cff_show_event_type' ];
928 if (isset($_POST[ 'cff_show_video_type' ]) ) $cff_show_video_type = $_POST[ 'cff_show_video_type' ];
929 if (isset($_POST[ 'cff_show_photos_type' ]) ) $cff_show_photos_type = $_POST[ 'cff_show_photos_type' ];
930 if (isset($_POST[ 'cff_show_status_type' ]) ) $cff_show_status_type = $_POST[ 'cff_show_status_type' ];
931 //General
932 $options[ 'cff_feed_width' ] = $cff_feed_width;
933 $options[ 'cff_feed_height' ] = $cff_feed_height;
934 $options[ 'cff_feed_padding' ] = $cff_feed_padding;
935 $options[ 'cff_bg_color' ] = $cff_bg_color;
936 $options[ 'cff_class' ] = $cff_class;
937 //Post types
938 $options[ 'cff_show_links_type' ] = $cff_show_links_type;
939 $options[ 'cff_show_event_type' ] = $cff_show_event_type;
940 $options[ 'cff_show_video_type' ] = $cff_show_video_type;
941 $options[ 'cff_show_photos_type' ] = $cff_show_photos_type;
942 $options[ 'cff_show_status_type' ] = $cff_show_status_type;
943 }
944 //Update the Post Layout options
945 if( isset($_POST[ $style_post_layout_hidden_field_name ]) && $_POST[ $style_post_layout_hidden_field_name ] == 'Y' ) {
946 //Layout
947 if (isset($_POST[ 'cff_preset_layout' ]) ) $cff_preset_layout = $_POST[ 'cff_preset_layout' ];
948 //Include
949 (isset($_POST[ 'cff_show_author' ]) ) ? $cff_show_author = $_POST[ 'cff_show_author' ] : $cff_show_author = '';
950 (isset($_POST[ 'cff_show_text' ]) ) ? $cff_show_text = $_POST[ 'cff_show_text' ] : $cff_show_text = '';
951 (isset($_POST[ 'cff_show_desc' ]) ) ? $cff_show_desc = $_POST[ 'cff_show_desc' ] : $cff_show_desc = '';
952 (isset($_POST[ 'cff_show_shared_links' ]) ) ? $cff_show_shared_links = $_POST[ 'cff_show_shared_links' ] : $cff_show_shared_links = '';
953 (isset($_POST[ 'cff_show_date' ]) ) ? $cff_show_date = $_POST[ 'cff_show_date' ] : $cff_show_date = '';
954 (isset($_POST[ 'cff_show_media' ]) ) ? $cff_show_media = $_POST[ 'cff_show_media' ] : $cff_show_media = '';
955 (isset($_POST[ 'cff_show_event_title' ]) ) ? $cff_show_event_title = $_POST[ 'cff_show_event_title' ] : $cff_show_event_title = '';
956 (isset($_POST[ 'cff_show_event_details' ]) ) ? $cff_show_event_details = $_POST[ 'cff_show_event_details' ] : $cff_show_event_details = '';
957 (isset($_POST[ 'cff_show_meta' ]) ) ? $cff_show_meta = $_POST[ 'cff_show_meta' ] : $cff_show_meta = '';
958 (isset($_POST[ 'cff_show_link' ]) ) ? $cff_show_link = $_POST[ 'cff_show_link' ] : $cff_show_link = '';
959 //Post Style
960 (isset($_POST[ 'cff_post_bg_color' ]) ) ? $cff_post_bg_color = $_POST[ 'cff_post_bg_color' ] : $cff_post_bg_color = '';
961 (isset($_POST[ 'cff_post_rounded' ]) ) ? $cff_post_rounded = $_POST[ 'cff_post_rounded' ] : $cff_post_rounded = '';
962 if (isset($_POST[ 'cff_sep_color' ])) $cff_sep_color = $_POST[ 'cff_sep_color' ];
963 if (isset($_POST[ 'cff_sep_size' ])) $cff_sep_size = $_POST[ 'cff_sep_size' ];
964
965 //Layout
966 $options[ 'cff_preset_layout' ] = $cff_preset_layout;
967 //Include
968 $options[ 'cff_show_author' ] = $cff_show_author;
969 $options[ 'cff_show_text' ] = $cff_show_text;
970 $options[ 'cff_show_desc' ] = $cff_show_desc;
971 $options[ 'cff_show_shared_links' ] = $cff_show_shared_links;
972 $options[ 'cff_show_date' ] = $cff_show_date;
973 $options[ 'cff_show_media' ] = $cff_show_media;
974 $options[ 'cff_show_event_title' ] = $cff_show_event_title;
975 $options[ 'cff_show_event_details' ] = $cff_show_event_details;
976 $options[ 'cff_show_meta' ] = $cff_show_meta;
977 $options[ 'cff_show_link' ] = $cff_show_link;
978 //Post Style
979 $options[ 'cff_post_bg_color' ] = $cff_post_bg_color;
980 $options[ 'cff_post_rounded' ] = $cff_post_rounded;
981 $options[ 'cff_sep_color' ] = $cff_sep_color;
982 $options[ 'cff_sep_size' ] = $cff_sep_size;
983
984 }
985 //Update the Typography options
986 if( isset($_POST[ $style_typography_hidden_field_name ]) && $_POST[ $style_typography_hidden_field_name ] == 'Y' ) {
987 //Character limits
988 if (isset($_POST[ 'cff_title_length' ]) ) $cff_title_length_val = $_POST[ $cff_title_length ];
989 if (isset($_POST[ 'cff_body_length' ]) ) $cff_body_length_val = $_POST[ $cff_body_length ];
990
991 //Page Header
992 (isset($_POST[ 'cff_show_header' ])) ? $cff_show_header = $_POST[ 'cff_show_header' ] : $cff_show_header = '';
993 (isset($_POST[ 'cff_header_outside' ])) ? $cff_header_outside = $_POST[ 'cff_header_outside' ] : $cff_header_outside = '';
994 if (isset($_POST[ 'cff_header_text' ])) $cff_header_text = $_POST[ 'cff_header_text' ];
995 if (isset($_POST[ 'cff_header_bg_color' ])) $cff_header_bg_color = $_POST[ 'cff_header_bg_color' ];
996 if (isset($_POST[ 'cff_header_padding' ])) $cff_header_padding = $_POST[ 'cff_header_padding' ];
997 if (isset($_POST[ 'cff_header_text_size' ])) $cff_header_text_size = $_POST[ 'cff_header_text_size' ];
998 if (isset($_POST[ 'cff_header_text_weight' ])) $cff_header_text_weight = $_POST[ 'cff_header_text_weight' ];
999 if (isset($_POST[ 'cff_header_text_color' ])) $cff_header_text_color = $_POST[ 'cff_header_text_color' ];
1000 if (isset($_POST[ 'cff_header_icon' ])) $cff_header_icon = $_POST[ 'cff_header_icon' ];
1001 if (isset($_POST[ 'cff_header_icon_color' ])) $cff_header_icon_color = $_POST[ 'cff_header_icon_color' ];
1002 if (isset($_POST[ 'cff_header_icon_size' ])) $cff_header_icon_size = $_POST[ 'cff_header_icon_size' ];
1003
1004 //Author
1005 if (isset($_POST[ 'cff_author_size' ])) $cff_author_size = $_POST[ 'cff_author_size' ];
1006 if (isset($_POST[ 'cff_author_color' ])) $cff_author_color = $_POST[ 'cff_author_color' ];
1007
1008 //Typography
1009 if (isset($_POST[ 'cff_title_format' ]) ) $cff_title_format = $_POST[ 'cff_title_format' ];
1010 if (isset($_POST[ 'cff_title_size' ]) ) $cff_title_size = $_POST[ 'cff_title_size' ];
1011 if (isset($_POST[ 'cff_title_weight' ]) ) $cff_title_weight = $_POST[ 'cff_title_weight' ];
1012 if (isset($_POST[ 'cff_title_color' ]) ) $cff_title_color = $_POST[ 'cff_title_color' ];
1013 if (isset($_POST[ 'cff_posttext_link_color' ]) ) $cff_posttext_link_color = $_POST[ 'cff_posttext_link_color' ];
1014
1015 (isset($_POST[ 'cff_title_link' ]) ) ? $cff_title_link = $_POST[ 'cff_title_link' ] : $cff_title_link = '';
1016 (isset($_POST[ 'cff_post_tags' ]) ) ? $cff_post_tags = $_POST[ 'cff_post_tags' ] : $cff_post_tags = '';
1017 (isset($_POST[ 'cff_link_hashtags' ]) ) ? $cff_link_hashtags = $_POST[ 'cff_link_hashtags' ] : $cff_link_hashtags = '';
1018
1019 $cff_body_size = $_POST[ 'cff_body_size' ];
1020 if (isset($_POST[ 'cff_body_weight' ]) ) $cff_body_weight = $_POST[ 'cff_body_weight' ];
1021 if (isset($_POST[ 'cff_body_color' ]) ) $cff_body_color = $_POST[ 'cff_body_color' ];
1022 if (isset($_POST[ 'cff_link_title_format' ]) ) $cff_link_title_format = $_POST[ 'cff_link_title_format' ];
1023 if (isset($_POST[ 'cff_link_title_size' ]) ) $cff_link_title_size = $_POST[ 'cff_link_title_size' ];
1024 if (isset($_POST[ 'cff_link_title_color' ]) ) $cff_link_title_color = $_POST[ 'cff_link_title_color' ];
1025 if (isset($_POST[ 'cff_link_url_color' ]) ) $cff_link_url_color = $_POST[ 'cff_link_url_color' ];
1026 if (isset($_POST[ 'cff_link_bg_color' ]) ) $cff_link_bg_color = $_POST[ 'cff_link_bg_color' ];
1027 if (isset($_POST[ 'cff_link_border_color' ]) ) $cff_link_border_color = $_POST[ 'cff_link_border_color' ];
1028 (isset($_POST[ 'cff_disable_link_box' ]) ) ? $cff_disable_link_box = $_POST[ 'cff_disable_link_box' ] : $cff_disable_link_box = '';
1029
1030
1031 //Event title
1032 if (isset($_POST[ 'cff_event_title_format' ]) ) $cff_event_title_format = $_POST[ 'cff_event_title_format' ];
1033 if (isset($_POST[ 'cff_event_title_size' ]) ) $cff_event_title_size = $_POST[ 'cff_event_title_size' ];
1034 if (isset($_POST[ 'cff_event_title_weight' ]) ) $cff_event_title_weight = $_POST[ 'cff_event_title_weight' ];
1035 if (isset($_POST[ 'cff_event_title_color' ]) ) $cff_event_title_color = $_POST[ 'cff_event_title_color' ];
1036 (isset($_POST[ 'cff_event_title_link' ]) ) ? $cff_event_title_link = $_POST[ 'cff_event_title_link' ] : $cff_event_title_link = '';
1037 //Event date
1038 if (isset($_POST[ 'cff_event_date_size' ]) ) $cff_event_date_size = $_POST[ 'cff_event_date_size' ];
1039 if (isset($_POST[ 'cff_event_date_weight' ]) ) $cff_event_date_weight = $_POST[ 'cff_event_date_weight' ];
1040 if (isset($_POST[ 'cff_event_date_color' ]) ) $cff_event_date_color = $_POST[ 'cff_event_date_color' ];
1041 if (isset($_POST[ 'cff_event_date_position' ]) ) $cff_event_date_position = $_POST[ 'cff_event_date_position' ];
1042 if (isset($_POST[ 'cff_event_date_formatting' ]) ) $cff_event_date_formatting = $_POST[ 'cff_event_date_formatting' ];
1043 if (isset($_POST[ 'cff_event_date_custom' ]) ) $cff_event_date_custom = $_POST[ 'cff_event_date_custom' ];
1044 //Event details
1045 if (isset($_POST[ 'cff_event_details_size' ]) ) $cff_event_details_size = $_POST[ 'cff_event_details_size' ];
1046 if (isset($_POST[ 'cff_event_details_weight' ]) ) $cff_event_details_weight = $_POST[ 'cff_event_details_weight' ];
1047 if (isset($_POST[ 'cff_event_details_color' ]) ) $cff_event_details_color = $_POST[ 'cff_event_details_color' ];
1048 if (isset($_POST[ 'cff_event_link_color' ]) ) $cff_event_link_color = $_POST[ 'cff_event_link_color' ];
1049 //Date
1050 if (isset($_POST[ 'cff_date_position' ]) ) $cff_date_position = $_POST[ 'cff_date_position' ];
1051 if (isset($_POST[ 'cff_date_size' ]) ) $cff_date_size = $_POST[ 'cff_date_size' ];
1052 if (isset($_POST[ 'cff_date_weight' ]) ) $cff_date_weight = $_POST[ 'cff_date_weight' ];
1053 if (isset($_POST[ 'cff_date_color' ]) ) $cff_date_color = $_POST[ 'cff_date_color' ];
1054 if (isset($_POST[ 'cff_date_formatting' ]) ) $cff_date_formatting = $_POST[ 'cff_date_formatting' ];
1055 if (isset($_POST[ 'cff_date_custom' ]) ) $cff_date_custom = $_POST[ 'cff_date_custom' ];
1056 if (isset($_POST[ 'cff_date_before' ]) ) $cff_date_before = $_POST[ 'cff_date_before' ];
1057 if (isset($_POST[ 'cff_date_after' ]) ) $cff_date_after = $_POST[ 'cff_date_after' ];
1058 if (isset($_POST[ 'cff_timezone' ]) ) $cff_timezone = $_POST[ 'cff_timezone' ];
1059
1060 //Date translate
1061 if (isset($_POST[ 'cff_translate_second' ]) ) $cff_translate_second = $_POST[ 'cff_translate_second' ];
1062 if (isset($_POST[ 'cff_translate_seconds' ]) ) $cff_translate_seconds = $_POST[ 'cff_translate_seconds' ];
1063 if (isset($_POST[ 'cff_translate_minute' ]) ) $cff_translate_minute = $_POST[ 'cff_translate_minute' ];
1064 if (isset($_POST[ 'cff_translate_minutes' ]) ) $cff_translate_minutes = $_POST[ 'cff_translate_minutes' ];
1065 if (isset($_POST[ 'cff_translate_hour' ]) ) $cff_translate_hour = $_POST[ 'cff_translate_hour' ];
1066 if (isset($_POST[ 'cff_translate_hours' ]) ) $cff_translate_hours = $_POST[ 'cff_translate_hours' ];
1067 if (isset($_POST[ 'cff_translate_day' ]) ) $cff_translate_day = $_POST[ 'cff_translate_day' ];
1068 if (isset($_POST[ 'cff_translate_days' ]) ) $cff_translate_days = $_POST[ 'cff_translate_days' ];
1069 if (isset($_POST[ 'cff_translate_week' ]) ) $cff_translate_week = $_POST[ 'cff_translate_week' ];
1070 if (isset($_POST[ 'cff_translate_weeks' ]) ) $cff_translate_weeks = $_POST[ 'cff_translate_weeks' ];
1071 if (isset($_POST[ 'cff_translate_month' ]) ) $cff_translate_month = $_POST[ 'cff_translate_month' ];
1072 if (isset($_POST[ 'cff_translate_months' ]) ) $cff_translate_months = $_POST[ 'cff_translate_months' ];
1073 if (isset($_POST[ 'cff_translate_year' ]) ) $cff_translate_year = $_POST[ 'cff_translate_year' ];
1074 if (isset($_POST[ 'cff_translate_years' ]) ) $cff_translate_years = $_POST[ 'cff_translate_years' ];
1075 if (isset($_POST[ 'cff_translate_ago' ]) ) $cff_translate_ago = $_POST[ 'cff_translate_ago' ];
1076
1077 //View on Facebook link
1078 if (isset($_POST[ 'cff_link_size' ]) ) $cff_link_size = $_POST[ 'cff_link_size' ];
1079 if (isset($_POST[ 'cff_link_weight' ]) ) $cff_link_weight = $_POST[ 'cff_link_weight' ];
1080 if (isset($_POST[ 'cff_link_color' ]) ) $cff_link_color = $_POST[ 'cff_link_color' ];
1081 if (isset($_POST[ 'cff_facebook_link_text' ]) ) $cff_facebook_link_text = $_POST[ 'cff_facebook_link_text' ];
1082 if (isset($_POST[ 'cff_facebook_share_text' ]) ) $cff_facebook_share_text = $_POST[ 'cff_facebook_share_text' ];
1083 (isset($_POST[ 'cff_show_facebook_link' ]) ) ? $cff_show_facebook_link = $_POST[ 'cff_show_facebook_link' ] : $cff_show_facebook_link = '';
1084 (isset($_POST[ 'cff_show_facebook_share' ]) ) ? $cff_show_facebook_share = $_POST[ 'cff_show_facebook_share' ] : $cff_show_facebook_share = '';
1085 if (isset($_POST[ 'cff_view_link_text' ]) ) $cff_view_link_text = $_POST[ 'cff_view_link_text' ];
1086 if (isset($_POST[ 'cff_link_to_timeline' ]) ) $cff_link_to_timeline = $_POST[ 'cff_link_to_timeline' ];
1087
1088 //Character limits
1089 update_option( $cff_title_length, $cff_title_length_val );
1090 update_option( $cff_body_length, $cff_body_length_val );
1091 //Page Header
1092 $options[ 'cff_show_header' ] = $cff_show_header;
1093 $options[ 'cff_header_outside' ] = $cff_header_outside;
1094 $options[ 'cff_header_text' ] = $cff_header_text;
1095 $options[ 'cff_header_bg_color' ] = $cff_header_bg_color;
1096 $options[ 'cff_header_padding' ] = $cff_header_padding;
1097 $options[ 'cff_header_text_size' ] = $cff_header_text_size;
1098 $options[ 'cff_header_text_weight' ] = $cff_header_text_weight;
1099 $options[ 'cff_header_text_color' ] = $cff_header_text_color;
1100 $options[ 'cff_header_icon' ] = $cff_header_icon;
1101 $options[ 'cff_header_icon_color' ] = $cff_header_icon_color;
1102 $options[ 'cff_header_icon_size' ] = $cff_header_icon_size;
1103 //Author
1104 $options[ 'cff_author_size' ] = $cff_author_size;
1105 $options[ 'cff_author_color' ] = $cff_author_color;
1106 //Typography
1107 $options[ 'cff_title_format' ] = $cff_title_format;
1108 $options[ 'cff_title_size' ] = $cff_title_size;
1109 $options[ 'cff_title_weight' ] = $cff_title_weight;
1110 $options[ 'cff_title_color' ] = $cff_title_color;
1111 $options[ 'cff_posttext_link_color' ] = $cff_posttext_link_color;
1112 $options[ 'cff_title_link' ] = $cff_title_link;
1113 $options[ 'cff_post_tags' ] = $cff_post_tags;
1114 $options[ 'cff_link_hashtags' ] = $cff_link_hashtags;
1115 $options[ 'cff_body_size' ] = $cff_body_size;
1116 $options[ 'cff_body_weight' ] = $cff_body_weight;
1117 $options[ 'cff_body_color' ] = $cff_body_color;
1118 $options[ 'cff_link_title_format' ] = $cff_link_title_format;
1119 $options[ 'cff_link_title_size' ] = $cff_link_title_size;
1120 $options[ 'cff_link_title_color' ] = $cff_link_title_color;
1121 $options[ 'cff_link_url_color' ] = $cff_link_url_color;
1122 $options[ 'cff_link_bg_color' ] = $cff_link_bg_color;
1123 $options[ 'cff_link_border_color' ] = $cff_link_border_color;
1124 $options[ 'cff_disable_link_box' ] = $cff_disable_link_box;
1125
1126 //Event title
1127 $options[ 'cff_event_title_format' ] = $cff_event_title_format;
1128 $options[ 'cff_event_title_size' ] = $cff_event_title_size;
1129 $options[ 'cff_event_title_weight' ] = $cff_event_title_weight;
1130 $options[ 'cff_event_title_color' ] = $cff_event_title_color;
1131 $options[ 'cff_event_title_link' ] = $cff_event_title_link;
1132 //Event date
1133 $options[ 'cff_event_date_size' ] = $cff_event_date_size;
1134 $options[ 'cff_event_date_weight' ] = $cff_event_date_weight;
1135 $options[ 'cff_event_date_color' ] = $cff_event_date_color;
1136 $options[ 'cff_event_date_position' ] = $cff_event_date_position;
1137 $options[ 'cff_event_date_formatting' ] = $cff_event_date_formatting;
1138 $options[ 'cff_event_date_custom' ] = $cff_event_date_custom;
1139 //Event details
1140 $options[ 'cff_event_details_size' ] = $cff_event_details_size;
1141 $options[ 'cff_event_details_weight' ] = $cff_event_details_weight;
1142 $options[ 'cff_event_details_color' ] = $cff_event_details_color;
1143 $options[ 'cff_event_link_color' ] = $cff_event_link_color;
1144 //Date
1145 $options[ 'cff_date_position' ] = $cff_date_position;
1146 $options[ 'cff_date_size' ] = $cff_date_size;
1147 $options[ 'cff_date_weight' ] = $cff_date_weight;
1148 $options[ 'cff_date_color' ] = $cff_date_color;
1149 $options[ 'cff_date_formatting' ] = $cff_date_formatting;
1150 $options[ 'cff_date_custom' ] = $cff_date_custom;
1151 $options[ 'cff_date_before' ] = $cff_date_before;
1152 $options[ 'cff_date_after' ] = $cff_date_after;
1153 $options[ 'cff_timezone' ] = $cff_timezone;
1154
1155 //Date translate
1156 $options[ 'cff_translate_second' ] = $cff_translate_second;
1157 $options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
1158 $options[ 'cff_translate_minute' ] = $cff_translate_minute;
1159 $options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
1160 $options[ 'cff_translate_hour' ] = $cff_translate_hour;
1161 $options[ 'cff_translate_hours' ] = $cff_translate_hours;
1162 $options[ 'cff_translate_day' ] = $cff_translate_day;
1163 $options[ 'cff_translate_days' ] = $cff_translate_days;
1164 $options[ 'cff_translate_week' ] = $cff_translate_week;
1165 $options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
1166 $options[ 'cff_translate_month' ] = $cff_translate_month;
1167 $options[ 'cff_translate_months' ] = $cff_translate_months;
1168 $options[ 'cff_translate_year' ] = $cff_translate_year;
1169 $options[ 'cff_translate_years' ] = $cff_translate_years;
1170 $options[ 'cff_translate_ago' ] = $cff_translate_ago;
1171
1172 //View on Facebook link
1173 $options[ 'cff_link_size' ] = $cff_link_size;
1174 $options[ 'cff_link_weight' ] = $cff_link_weight;
1175 $options[ 'cff_link_color' ] = $cff_link_color;
1176 $options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
1177 $options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
1178 $options[ 'cff_show_facebook_link' ] = $cff_show_facebook_link;
1179 $options[ 'cff_show_facebook_share' ] = $cff_show_facebook_share;
1180 $options[ 'cff_view_link_text' ] = $cff_view_link_text;
1181 $options[ 'cff_link_to_timeline' ] = $cff_link_to_timeline;
1182 }
1183 //Update the Misc options
1184 if( isset($_POST[ $style_misc_hidden_field_name ]) && $_POST[ $style_misc_hidden_field_name ] == 'Y' ) {
1185 //Meta
1186 if (isset($_POST[ 'cff_icon_style' ])) $cff_icon_style = $_POST[ 'cff_icon_style' ];
1187 if (isset($_POST[ 'cff_meta_text_color' ])) $cff_meta_text_color = $_POST[ 'cff_meta_text_color' ];
1188 if (isset($_POST[ 'cff_meta_bg_color' ])) $cff_meta_bg_color = $_POST[ 'cff_meta_bg_color' ];
1189 if (isset($_POST[ 'cff_nocomments_text' ])) $cff_nocomments_text = $_POST[ 'cff_nocomments_text' ];
1190 if (isset($_POST[ 'cff_hide_comments' ])) $cff_hide_comments = $_POST[ 'cff_hide_comments' ];
1191 //Custom CSS
1192 if (isset($_POST[ 'cff_custom_css' ])) $cff_custom_css = $_POST[ 'cff_custom_css' ];
1193 if (isset($_POST[ 'cff_custom_js' ])) $cff_custom_js = $_POST[ 'cff_custom_js' ];
1194 //Misc
1195 (isset($_POST[ 'cff_show_like_box' ])) ? $cff_show_like_box = $_POST[ 'cff_show_like_box' ] : $cff_show_like_box = '';
1196 if (isset($_POST[ 'cff_like_box_position' ])) $cff_like_box_position = $_POST[ 'cff_like_box_position' ];
1197 (isset($_POST[ 'cff_like_box_outside' ])) ? $cff_like_box_outside = $_POST[ 'cff_like_box_outside' ] : $cff_like_box_outside = '';
1198 if (isset($_POST[ 'cff_likebox_bg_color' ])) $cff_likebox_bg_color = $_POST[ 'cff_likebox_bg_color' ];
1199 if (isset($_POST[ 'cff_like_box_text_color' ])) $cff_like_box_text_color = $_POST[ 'cff_like_box_text_color' ];
1200
1201 if (isset($_POST[ 'cff_likebox_width' ])) $cff_likebox_width = $_POST[ 'cff_likebox_width' ];
1202 if (isset($_POST[ 'cff_likebox_height' ])) $cff_likebox_height = $_POST[ 'cff_likebox_height' ];
1203 (isset($_POST[ 'cff_like_box_faces' ])) ? $cff_like_box_faces = $_POST[ 'cff_like_box_faces' ] : $cff_like_box_faces = '';
1204 (isset($_POST[ 'cff_like_box_border' ])) ? $cff_like_box_border = $_POST[ 'cff_like_box_border' ] : $cff_like_box_border = '';
1205
1206 if (isset($_POST[ 'cff_video_height' ])) $cff_video_height = $_POST[ 'cff_video_height' ];
1207 if (isset($_POST[ 'cff_video_action' ])) $cff_video_action = $_POST[ 'cff_video_action' ];
1208 if (isset($_POST[ 'cff_open_links' ])) $cff_open_links = $_POST[ 'cff_open_links' ];
1209
1210 (isset($_POST[ $cff_ajax ])) ? $cff_ajax_val = $_POST[ 'cff_ajax' ] : $cff_ajax_val = '';
1211 if (isset($_POST[ 'cff_app_id' ])) $cff_app_id = $_POST[ 'cff_app_id' ];
1212 (isset($_POST[ 'cff_show_credit' ])) ? $cff_show_credit = $_POST[ 'cff_show_credit' ] : $cff_show_credit = '';
1213 (isset($_POST[ 'cff_font_source' ])) ? $cff_font_source = $_POST[ 'cff_font_source' ] : $cff_font_source = '';
1214 $cff_preserve_settings_val = $_POST[ $cff_preserve_settings ];
1215
1216 //Meta
1217 $options[ 'cff_icon_style' ] = $cff_icon_style;
1218 $options[ 'cff_meta_text_color' ] = $cff_meta_text_color;
1219 $options[ 'cff_meta_bg_color' ] = $cff_meta_bg_color;
1220 $options[ 'cff_nocomments_text' ] = $cff_nocomments_text;
1221 $options[ 'cff_hide_comments' ] = $cff_hide_comments;
1222 //Custom CSS
1223 $options[ 'cff_custom_css' ] = $cff_custom_css;
1224 $options[ 'cff_custom_js' ] = $cff_custom_js;
1225 //Misc
1226 $options[ 'cff_show_like_box' ] = $cff_show_like_box;
1227 $options[ 'cff_like_box_position' ] = $cff_like_box_position;
1228 $options[ 'cff_like_box_outside' ] = $cff_like_box_outside;
1229 $options[ 'cff_likebox_bg_color' ] = $cff_likebox_bg_color;
1230 $options[ 'cff_like_box_text_color' ] = $cff_like_box_text_color;
1231
1232 $options[ 'cff_likebox_width' ] = $cff_likebox_width;
1233 $options[ 'cff_likebox_height' ] = $cff_likebox_height;
1234 $options[ 'cff_like_box_faces' ] = $cff_like_box_faces;
1235 $options[ 'cff_like_box_border' ] = $cff_like_box_border;
1236
1237 $options[ 'cff_video_height' ] = $cff_video_height;
1238 $options[ 'cff_video_action' ] = $cff_video_action;
1239 $options[ 'cff_open_links' ] = $cff_open_links;
1240
1241 update_option( $cff_ajax, $cff_ajax_val );
1242 $options[ 'cff_app_id' ] = $cff_app_id;
1243 $options[ 'cff_show_credit' ] = $cff_show_credit;
1244 $options[ 'cff_font_source' ] = $cff_font_source;
1245 update_option( $cff_preserve_settings, $cff_preserve_settings_val );
1246 }
1247 //Update the Custom Text / Translate options
1248 if( isset($_POST[ $style_custom_text_hidden_field_name ]) && $_POST[ $style_custom_text_hidden_field_name ] == 'Y' ) {
1249
1250 //Translate
1251 if (isset($_POST[ 'cff_see_more_text' ])) $cff_see_more_text = $_POST[ 'cff_see_more_text' ];
1252 if (isset($_POST[ 'cff_see_less_text' ])) $cff_see_less_text = $_POST[ 'cff_see_less_text' ];
1253 if (isset($_POST[ 'cff_facebook_link_text' ])) $cff_facebook_link_text = $_POST[ 'cff_facebook_link_text' ];
1254 if (isset($_POST[ 'cff_facebook_share_text' ])) $cff_facebook_share_text = $_POST[ 'cff_facebook_share_text' ];
1255
1256 //Social translate
1257 if (isset($_POST[ 'cff_translate_photos_text' ])) $cff_translate_photos_text = $_POST[ 'cff_translate_photos_text' ];
1258
1259 //Date translate
1260 if (isset($_POST[ 'cff_translate_second' ])) $cff_translate_second = $_POST[ 'cff_translate_second' ];
1261 if (isset($_POST[ 'cff_translate_seconds' ])) $cff_translate_seconds = $_POST[ 'cff_translate_seconds' ];
1262 if (isset($_POST[ 'cff_translate_minute' ])) $cff_translate_minute = $_POST[ 'cff_translate_minute' ];
1263 if (isset($_POST[ 'cff_translate_minutes' ])) $cff_translate_minutes = $_POST[ 'cff_translate_minutes' ];
1264 if (isset($_POST[ 'cff_translate_hour' ])) $cff_translate_hour = $_POST[ 'cff_translate_hour' ];
1265 if (isset($_POST[ 'cff_translate_hours' ])) $cff_translate_hours = $_POST[ 'cff_translate_hours' ];
1266 if (isset($_POST[ 'cff_translate_day' ])) $cff_translate_day = $_POST[ 'cff_translate_day' ];
1267 if (isset($_POST[ 'cff_translate_days' ])) $cff_translate_days = $_POST[ 'cff_translate_days' ];
1268 if (isset($_POST[ 'cff_translate_week' ])) $cff_translate_week = $_POST[ 'cff_translate_week' ];
1269 if (isset($_POST[ 'cff_translate_weeks' ])) $cff_translate_weeks = $_POST[ 'cff_translate_weeks' ];
1270 if (isset($_POST[ 'cff_translate_month' ])) $cff_translate_month = $_POST[ 'cff_translate_month' ];
1271 if (isset($_POST[ 'cff_translate_months' ])) $cff_translate_months = $_POST[ 'cff_translate_months' ];
1272 if (isset($_POST[ 'cff_translate_year' ])) $cff_translate_year = $_POST[ 'cff_translate_year' ];
1273 if (isset($_POST[ 'cff_translate_years' ])) $cff_translate_years = $_POST[ 'cff_translate_years' ];
1274 if (isset($_POST[ 'cff_translate_ago' ])) $cff_translate_ago = $_POST[ 'cff_translate_ago' ];
1275
1276 //Translate
1277 $options[ 'cff_see_more_text' ] = $cff_see_more_text;
1278 $options[ 'cff_see_less_text' ] = $cff_see_less_text;
1279 $options[ 'cff_facebook_link_text' ] = $cff_facebook_link_text;
1280 $options[ 'cff_facebook_share_text' ] = $cff_facebook_share_text;
1281
1282 //Social translate
1283 $options[ 'cff_translate_photos_text' ] = $cff_translate_photos_text;
1284
1285 //Date translate
1286 $options[ 'cff_translate_second' ] = $cff_translate_second;
1287 $options[ 'cff_translate_seconds' ] = $cff_translate_seconds;
1288 $options[ 'cff_translate_minute' ] = $cff_translate_minute;
1289 $options[ 'cff_translate_minutes' ] = $cff_translate_minutes;
1290 $options[ 'cff_translate_hour' ] = $cff_translate_hour;
1291 $options[ 'cff_translate_hours' ] = $cff_translate_hours;
1292 $options[ 'cff_translate_day' ] = $cff_translate_day;
1293 $options[ 'cff_translate_days' ] = $cff_translate_days;
1294 $options[ 'cff_translate_week' ] = $cff_translate_week;
1295 $options[ 'cff_translate_weeks' ] = $cff_translate_weeks;
1296 $options[ 'cff_translate_month' ] = $cff_translate_month;
1297 $options[ 'cff_translate_months' ] = $cff_translate_months;
1298 $options[ 'cff_translate_year' ] = $cff_translate_year;
1299 $options[ 'cff_translate_years' ] = $cff_translate_years;
1300 $options[ 'cff_translate_ago' ] = $cff_translate_ago;
1301
1302 }
1303 //Update the array
1304 update_option( 'cff_style_settings', $options );
1305 // Put an settings updated message on the screen
1306 ?>
1307 <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
1308 <?php } ?>
1309
1310 <div id="cff-admin" class="wrap">
1311 <div id="header">
1312 <h2><?php _e('Customize'); ?></h2>
1313 </div>
1314 <form name="form1" method="post" action="">
1315 <input type="hidden" name="<?php echo $style_hidden_field_name; ?>" value="Y">
1316 <?php
1317 $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
1318 ?>
1319 <h2 class="nav-tab-wrapper">
1320 <a href="?page=cff-style&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General'); ?></a>
1321 <a href="?page=cff-style&tab=post_layout" class="nav-tab <?php echo $active_tab == 'post_layout' ? 'nav-tab-active' : ''; ?>"><?php _e('Post Layout'); ?></a>
1322 <a href="?page=cff-style&tab=typography" class="nav-tab <?php echo $active_tab == 'typography' ? 'nav-tab-active' : ''; ?>"><?php _e('Typography'); ?></a>
1323 <a href="?page=cff-style&tab=misc" class="nav-tab <?php echo $active_tab == 'misc' ? 'nav-tab-active' : ''; ?>"><?php _e('Misc'); ?></a>
1324 <a href="?page=cff-style&tab=custom_text" class="nav-tab <?php echo $active_tab == 'custom_text' ? 'nav-tab-active' : ''; ?>"><?php _e('Custom Text / Translate'); ?></a>
1325 </h2>
1326 <?php if( $active_tab == 'general' ) { //Start General tab ?>
1327 <input type="hidden" name="<?php echo $style_general_hidden_field_name; ?>" value="Y">
1328 <br />
1329 <table class="form-table">
1330 <tbody>
1331 <h3><?php _e('General'); ?></h3>
1332 <tr valign="top">
1333 <th class="bump-left" scope="row"><label><?php _e('Feed Width'); ?></label></th>
1334 <td>
1335 <input name="cff_feed_width" type="text" value="<?php esc_attr_e( $cff_feed_width ); ?>" size="6" />
1336 <span>Eg. 500px, 50%, 10em. <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Default is 100%'); ?></i></span>
1337 </td>
1338 </tr>
1339 <tr valign="top">
1340 <th class="bump-left" scope="row"><label><?php _e('Feed Height'); ?></label></th>
1341 <td>
1342 <input name="cff_feed_height" type="text" value="<?php esc_attr_e( $cff_feed_height ); ?>" size="6" />
1343 <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.'); ?></i></span>
1344 </td>
1345 </tr>
1346 <th class="bump-left" scope="row"><label><?php _e('Feed Padding'); ?></label></th>
1347 <td>
1348 <input name="cff_feed_padding" type="text" value="<?php esc_attr_e( $cff_feed_padding ); ?>" size="6" />
1349 <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.'); ?></i></span>
1350 </td>
1351 </tr>
1352 <tr valign="top">
1353 <th class="bump-left" scope="row"><label><?php _e('Feed Background Color'); ?></label></th>
1354 <td>
1355 <input name="cff_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_bg_color) ); ?>" class="cff-colorpicker" />
1356 </td>
1357 </tr>
1358 <tr valign="top">
1359 <th class="bump-left" scope="row"><label><?php _e('Add CSS class to feed'); ?></label></th>
1360 <td>
1361 <input name="cff_class" type="text" value="<?php esc_attr_e( $cff_class ); ?>" size="25" />
1362 <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'); ?></i>
1363 </td>
1364 </tr>
1365 </tbody>
1366 </table>
1367
1368 <hr />
1369 <table class="form-table">
1370 <tbody>
1371 <h3><?php _e('Post Types'); ?></h3>
1372 <tr valign="top">
1373 <th scope="row"><?php _e('Only show these types of posts:'); ?><br />
1374 <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'); ?></a></i></th>
1375 <td>
1376 <div>
1377 <input name="cff_show_status_type" type="checkbox" id="cff_show_status_type" disabled checked />
1378 <label for="cff_show_status_type"><?php _e('Statuses'); ?></label>
1379 </div>
1380 <div>
1381 <input type="checkbox" name="cff_show_event_type" id="cff_show_event_type" disabled checked />
1382 <label for="cff_show_event_type"><?php _e('Events'); ?></label>
1383 </div>
1384 <div>
1385 <input type="checkbox" name="cff_show_photos_type" id="cff_show_photos_type" disabled checked />
1386 <label for="cff_show_photos_type"><?php _e('Photos'); ?></label>
1387 </div>
1388 <div>
1389 <input type="checkbox" name="cff_show_video_type" id="cff_show_video_type" disabled checked />
1390 <label for="cff_show_video_type"><?php _e('Videos'); ?></label>
1391 </div>
1392 <div>
1393 <input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
1394 <label for="cff_show_links_type"><?php _e('Links'); ?></label>
1395 </div>
1396 <div>
1397 <input type="checkbox" name="cff_show_links_type" id="cff_show_links_type" disabled checked />
1398 <label for="cff_show_links_type"><?php _e('Albums'); ?></label>
1399 </div>
1400 </td>
1401 </tr>
1402 </tbody>
1403 </table>
1404 <?php submit_button(); ?>
1405
1406 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
1407 <?php } //End General tab ?>
1408 <?php if( $active_tab == 'post_layout' ) { //Start Post Layout tab ?>
1409 <input type="hidden" name="<?php echo $style_post_layout_hidden_field_name; ?>" value="Y">
1410 <br />
1411 <h3><?php _e('Post Layout'); ?></h3>
1412 <table class="form-table">
1413
1414 <tbody>
1415 <tr>
1416 <td>
1417 <p><?php _e("Choose a layout from the 3 below."); ?>
1418 <i style="color: #666; font-size: 11px; margin-left: 5px;"><a href="https://smashballoon.com/custom-facebook-feed/" target="_blank"><?php _e('Upgrade to Pro to enable post layouts'); ?></a></i>
1419 </p>
1420 </td>
1421 </tr>
1422 </tbody>
1423 </table>
1424
1425 <div class="cff-layouts cff-disabled">
1426 <div class="cff-layout">
1427 <h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="thumb" />&nbsp;<?php _e('Thumbnail'); ?></h3>
1428 <img src="<?php echo plugins_url( 'img/layout-thumb.png' , __FILE__ ) ?>" alt="Thumbnail Layout" />
1429
1430 </div>
1431 <div class="cff-layout">
1432 <h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="half" />&nbsp;<?php _e('Half-width'); ?></h3>
1433 <img src="<?php echo plugins_url( 'img/layout-half.png' , __FILE__ ) ?>" alt="Half Width Layout" />
1434
1435 </div>
1436 <div class="cff-layout">
1437 <h3><input type="radio" name="cff_preset_layout" id="cff_preset_layout" value="full" />&nbsp;<?php _e('Full-width'); ?></h3>
1438 <img src="<?php echo plugins_url( 'img/layout-full.png' , __FILE__ ) ?>" alt="Full Width Layout" />
1439
1440 </div>
1441 </div>
1442
1443 <table class="form-table cff-disabled">
1444 <tbody>
1445 <tr class="cff-media-position">
1446 <th><label class="bump-left"><?php _e('Photo/Video Position'); ?></label></th>
1447 <td>
1448 <select name="cff_media_position" disabled>
1449 <option>Below Text</option>
1450 <option>Above Text</option>
1451 </select>
1452 <i style="color: #666; font-size: 11px; margin-left: 5px;">Only applies to Full-width layout</i>
1453 </td>
1454 </tr>
1455 <tr>
1456 <th><label class="bump-left"><?php _e('Always use the Full-width layout when feed is narrow?'); ?></label></th>
1457 <td>
1458 <input type="checkbox" id="cff_enable_narrow" disabled />
1459 <label for="cff_enable_narrow"><?php _e('Yes'); ?></label>
1460 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?'); ?></a>
1461 <p class="cff-tooltip cff-more-info"><?php _e("When displaying posts in either a narrow column or on a mobile device the plugin will automatically default to using the 'Full-width' layout as it's better suited to narrow sizes."); ?></p>
1462 </td>
1463 </tr>
1464 </tbody>
1465 </table>
1466
1467 <hr />
1468 <h3><?php _e('Show/Hide'); ?></h3>
1469 <table class="form-table">
1470 <tbody>
1471 <tr valign="top">
1472 <th scope="row"><?php _e('Include the following in posts: <i style="font-size: 11px;">(when applicable)</i>'); ?>
1473 <br /><i style="color: #666; font-size: 11px;"><a href="https://smashballoon.com/custom-facebook-feed/" target="_blank"><?php _e('Upgrade to Pro to enable all of these options'); ?></a></i></th>
1474 <td>
1475 <div>
1476 <input name="cff_show_author" type="checkbox" id="cff_show_author" <?php if($cff_show_author == true) echo "checked"; ?> />
1477 <label for="cff_show_author"><?php _e('Author name and avatar'); ?></label>
1478 </div>
1479 <div>
1480 <input name="cff_show_text" type="checkbox" id="cff_show_text" <?php if($cff_show_text == true) echo "checked"; ?> />
1481 <label for="cff_show_text"><?php _e('Post text'); ?></label>
1482 </div>
1483 <div>
1484 <input type="checkbox" name="cff_show_date" id="cff_show_date" <?php if($cff_show_date == true) echo 'checked="checked"' ?> />
1485 <label for="cff_show_date"><?php _e('Date'); ?></label>
1486 </div>
1487 <div>
1488 <input type="checkbox" id="cff_show_media" disabled />
1489 <label for="cff_show_media"><?php _e('Photos/videos'); ?></label>
1490 </div>
1491 <div>
1492 <input type="checkbox" name="cff_show_shared_links" id="cff_show_shared_links" <?php if($cff_show_shared_links == true) echo 'checked="checked"' ?> />
1493 <label for="cff_show_shared_links"><?php _e('Shared links'); ?></label>
1494 </div>
1495 <div>
1496 <input type="checkbox" name="cff_show_desc" id="cff_show_desc" <?php if($cff_show_desc == true) echo 'checked="checked"' ?> />
1497 <label for="cff_show_desc"><?php _e('Link, photo and video descriptions'); ?></label>
1498 </div>
1499 <div>
1500 <input type="checkbox" name="cff_show_event_title" id="cff_show_event_title" <?php if($cff_show_event_title == true) echo 'checked="checked"' ?> />
1501 <label for="cff_show_event_title"><?php _e('Event title'); ?></label>
1502 </div>
1503 <div>
1504 <input type="checkbox" name="cff_show_event_details" id="cff_show_event_details" <?php if($cff_show_event_details == true) echo 'checked="checked"' ?> />
1505 <label for="cff_show_event_details"><?php _e('Event details'); ?></label>
1506 </div>
1507 <div>
1508 <input type="checkbox" id="cff_show_meta" disabled />
1509 <label for="cff_show_meta"><?php _e('Like/shares/comments'); ?></label>
1510 </div>
1511 <div>
1512 <input type="checkbox" name="cff_show_link" id="cff_show_link" <?php if($cff_show_link == true) echo 'checked="checked"' ?> />
1513 <label for="cff_show_link"><?php _e('View on Facebook'); ?></label>
1514 </div>
1515 </td>
1516 </tr>
1517 </tbody>
1518 </table>
1519
1520 <hr />
1521 <h3><?php _e('Post Style'); ?></h3>
1522 <table class="form-table">
1523 <tbody>
1524 <tr valign="top">
1525 <th class="bump-left" scope="row"><?php _e('Background Color'); ?></th>
1526 <td>
1527 <input name="cff_post_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_post_bg_color) ); ?>" class="cff-colorpicker" />
1528 </td>
1529 </tr>
1530 <tr valign="top">
1531 <th class="bump-left" scope="row"><?php _e('Rounded Corner Size'); ?></th>
1532 <td>
1533 <input name="cff_post_rounded" type="text" value="<?php esc_attr_e( $cff_post_rounded ); ?>" size="3" />px <span><i style="color: #666; font-size: 11px; margin-left: 5px;">Eg. 5</i></span>
1534 </td>
1535 </tr>
1536 <tr valign="top">
1537 <th class="bump-left" scope="row"><label><?php _e('Separating Line Color'); ?></label></th>
1538 <td>
1539 <input name="cff_sep_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_sep_color) ); ?>" 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"); ?></i>
1540 </td>
1541 </tr>
1542 <tr valign="top">
1543 <th class="bump-left" scope="row"><label><?php _e('Separating Line Thickness'); ?></label></th>
1544 <td>
1545 <input name="cff_sep_size" type="text" value="<?php esc_attr_e( $cff_sep_size ); ?>" size="1" /><span>px</span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to hide'); ?></i>
1546 </td>
1547 </tr>
1548 </tbody>
1549 </table>
1550
1551 <?php submit_button(); ?>
1552 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
1553 <?php } //End Post Layout tab ?>
1554 <?php if( $active_tab == 'typography' ) { //Start Typography tab ?>
1555 <input type="hidden" name="<?php echo $style_typography_hidden_field_name; ?>" value="Y">
1556 <br />
1557 <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.'); ?></i></p>
1558
1559 <div id="poststuff" class="metabox-holder">
1560 <div class="meta-box-sortables ui-sortable">
1561
1562
1563 <div id="adminform" class="postbox" style="display: block;">
1564 <div class="handlediv" title="Click to toggle"><br></div>
1565 <h3 class="hndle"><span><?php _e('Feed Header'); ?></span></h3>
1566 <div class="inside">
1567 <table class="form-table">
1568 <tbody>
1569 <tr valign="top">
1570 <th class="bump-left" scope="row"><label><?php _e('Show Feed Header'); ?></label></th>
1571 <td>
1572 <input type="checkbox" name="cff_show_header" id="cff_show_header" <?php if($cff_show_header == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes'); ?>
1573 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('This will show a header at the top of your feed'); ?></i>
1574 </td>
1575 </tr>
1576 <tr valign="top">
1577 <th class="bump-left" scope="row"><label><?php _e('Display outside the scrollable area'); ?></label></th>
1578 <td>
1579 <input type="checkbox" name="cff_header_outside" id="cff_header_outside" <?php if($cff_header_outside == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes'); ?>
1580 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Only applicable if you have set a height on the feed'); ?></i>
1581 </td>
1582 </tr>
1583 </tr>
1584 <th class="bump-left" scope="row"><label><?php _e('Text'); ?></label></th>
1585 <td>
1586 <input name="cff_header_text" type="text" value="<?php esc_attr_e( $cff_header_text ); ?>" size="30" />
1587 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('The text to display in the feed header'); ?></i>
1588 </td>
1589 </tr>
1590 <tr valign="top">
1591 <th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label></th>
1592 <td>
1593 <input name="cff_header_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_bg_color) ); ?>" class="cff-colorpicker" />
1594 </td>
1595 </tr>
1596 </tr>
1597 <th class="bump-left" scope="row"><label><?php _e('Padding'); ?></label></th>
1598 <td>
1599 <input name="cff_header_padding" type="text" value="<?php esc_attr_e( $cff_header_padding ); ?>" size="6" />
1600 <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.'); ?></i></span>
1601 </td>
1602 </tr>
1603 <tr>
1604 <th class="bump-left" scope="row"><label><?php _e('Text Size'); ?></label></th>
1605 <td>
1606 <select name="cff_header_text_size">
1607 <option value="inherit" <?php if($cff_header_text_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1608 <option value="10" <?php if($cff_header_text_size == "10") echo 'selected="selected"' ?> >10px</option>
1609 <option value="11" <?php if($cff_header_text_size == "11") echo 'selected="selected"' ?> >11px</option>
1610 <option value="12" <?php if($cff_header_text_size == "12") echo 'selected="selected"' ?> >12px</option>
1611 <option value="13" <?php if($cff_header_text_size == "13") echo 'selected="selected"' ?> >13px</option>
1612 <option value="14" <?php if($cff_header_text_size == "14") echo 'selected="selected"' ?> >14px</option>
1613 <option value="16" <?php if($cff_header_text_size == "16") echo 'selected="selected"' ?> >16px</option>
1614 <option value="18" <?php if($cff_header_text_size == "18") echo 'selected="selected"' ?> >18px</option>
1615 <option value="20" <?php if($cff_header_text_size == "20") echo 'selected="selected"' ?> >20px</option>
1616 <option value="24" <?php if($cff_header_text_size == "24") echo 'selected="selected"' ?> >24px</option>
1617 <option value="28" <?php if($cff_header_text_size == "28") echo 'selected="selected"' ?> >28px</option>
1618 <option value="32" <?php if($cff_header_text_size == "32") echo 'selected="selected"' ?> >32px</option>
1619 <option value="36" <?php if($cff_header_text_size == "36") echo 'selected="selected"' ?> >36px</option>
1620 <option value="42" <?php if($cff_header_text_size == "42") echo 'selected="selected"' ?> >42px</option>
1621 <option value="48" <?php if($cff_header_text_size == "48") echo 'selected="selected"' ?> >48px</option>
1622 <option value="54" <?php if($cff_header_text_size == "54") echo 'selected="selected"' ?> >54px</option>
1623 <option value="60" <?php if($cff_header_text_size == "60") echo 'selected="selected"' ?> >60px</option>
1624 </select>
1625 </td>
1626 </tr>
1627 <tr>
1628 <th class="bump-left" scope="row"><label><?php _e('Text Weight'); ?></label></th>
1629 <td>
1630 <select name="cff_header_text_weight">
1631 <option value="inherit" <?php if($cff_header_text_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1632 <option value="normal" <?php if($cff_header_text_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1633 <option value="bold" <?php if($cff_header_text_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1634 </select>
1635 </td>
1636 </tr>
1637 <tr>
1638 <th class="bump-left" scope="row"><label><?php _e('Text Color'); ?></label></th>
1639 <td>
1640 <input name="cff_header_text_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_text_color) ); ?>" class="cff-colorpicker" />
1641 </td>
1642 </tr>
1643 <tr>
1644 <th class="bump-left" scope="row"><label><?php _e('Icon Type'); ?></label></th>
1645 <td>
1646 <select name="cff_header_icon" id="cff-header-icon">
1647 <option value="facebook-square" <?php if($cff_header_icon == "facebook-square") echo 'selected="selected"' ?> >Facebook 1</option>
1648 <option value="facebook" <?php if($cff_header_icon == "facebook") echo 'selected="selected"' ?> >Facebook 2</option>
1649 <option value="calendar" <?php if($cff_header_icon == "calendar") echo 'selected="selected"' ?> >Events 1</option>
1650 <option value="calendar-o" <?php if($cff_header_icon == "calendar-o") echo 'selected="selected"' ?> >Events 2</option>
1651 <option value="picture-o" <?php if($cff_header_icon == "picture-o") echo 'selected="selected"' ?> >Photos</option>
1652 <option value="users" <?php if($cff_header_icon == "users") echo 'selected="selected"' ?> >People</option>
1653 <option value="thumbs-o-up" <?php if($cff_header_icon == "thumbs-o-up") echo 'selected="selected"' ?> >Thumbs Up 1</option>
1654 <option value="thumbs-up" <?php if($cff_header_icon == "thumbs-up") echo 'selected="selected"' ?> >Thumbs Up 2</option>
1655 <option value="comment-o" <?php if($cff_header_icon == "comment-o") echo 'selected="selected"' ?> >Speech Bubble 1</option>
1656 <option value="comment" <?php if($cff_header_icon == "comment") echo 'selected="selected"' ?> >Speech Bubble 2</option>
1657 <option value="ticket" <?php if($cff_header_icon == "ticket") echo 'selected="selected"' ?> >Ticket</option>
1658 <option value="list-alt" <?php if($cff_header_icon == "list-alt") echo 'selected="selected"' ?> >News List</option>
1659 <option value="file" <?php if($cff_header_icon == "file") echo 'selected="selected"' ?> >File 1</option>
1660 <option value="file-o" <?php if($cff_header_icon == "file-o") echo 'selected="selected"' ?> >File 2</option>
1661 <option value="file-text" <?php if($cff_header_icon == "file-text") echo 'selected="selected"' ?> >File 3</option>
1662 <option value="file-text-o" <?php if($cff_header_icon == "file-text-o") echo 'selected="selected"' ?> >File 4</option>
1663 <option value="youtube-play" <?php if($cff_header_icon == "youtube-play") echo 'selected="selected"' ?> >Video</option>
1664 <option value="youtube" <?php if($cff_header_icon == "youtube") echo 'selected="selected"' ?> >YouTube</option>
1665 <option value="vimeo-square" <?php if($cff_header_icon == "vimeo-square") echo 'selected="selected"' ?> >Vimeo</option>
1666 </select>
1667
1668 <i id="cff-header-icon-example" class="fa fa-facebook-square"></i>
1669 </td>
1670 </tr>
1671 <tr>
1672 <th class="bump-left" scope="row"><label><?php _e('Icon Color'); ?></label></th>
1673 <td>
1674 <input name="cff_header_icon_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_header_icon_color) ); ?>" class="cff-colorpicker" />
1675 </td>
1676 </tr>
1677 <tr>
1678 <th class="bump-left" scope="row"><label><?php _e('Icon Size'); ?></label></th>
1679 <td>
1680 <select name="cff_header_icon_size" id="cff-header-icon-size">
1681 <option value="10" <?php if($cff_header_icon_size == "10") echo 'selected="selected"' ?> >10px</option>
1682 <option value="11" <?php if($cff_header_icon_size == "11") echo 'selected="selected"' ?> >11px</option>
1683 <option value="12" <?php if($cff_header_icon_size == "12") echo 'selected="selected"' ?> >12px</option>
1684 <option value="13" <?php if($cff_header_icon_size == "13") echo 'selected="selected"' ?> >13px</option>
1685 <option value="14" <?php if($cff_header_icon_size == "14") echo 'selected="selected"' ?> >14px</option>
1686 <option value="16" <?php if($cff_header_icon_size == "16") echo 'selected="selected"' ?> >16px</option>
1687 <option value="18" <?php if($cff_header_icon_size == "18") echo 'selected="selected"' ?> >18px</option>
1688 <option value="20" <?php if($cff_header_icon_size == "20") echo 'selected="selected"' ?> >20px</option>
1689 <option value="24" <?php if($cff_header_icon_size == "24") echo 'selected="selected"' ?> >24px</option>
1690 <option value="28" <?php if($cff_header_icon_size == "28") echo 'selected="selected"' ?> >28px</option>
1691 <option value="32" <?php if($cff_header_icon_size == "32") echo 'selected="selected"' ?> >32px</option>
1692 <option value="36" <?php if($cff_header_icon_size == "36") echo 'selected="selected"' ?> >36px</option>
1693 <option value="42" <?php if($cff_header_icon_size == "42") echo 'selected="selected"' ?> >42px</option>
1694 <option value="48" <?php if($cff_header_icon_size == "48") echo 'selected="selected"' ?> >48px</option>
1695 <option value="54" <?php if($cff_header_icon_size == "54") echo 'selected="selected"' ?> >54px</option>
1696 <option value="60" <?php if($cff_header_icon_size == "60") echo 'selected="selected"' ?> >60px</option>
1697 </select>
1698 </td>
1699 </tr>
1700
1701 </tbody>
1702 </table>
1703 </div>
1704 </div>
1705
1706 <div id="adminform" class="postbox" style="display: block;">
1707 <div class="handlediv" title="Click to toggle"><br></div>
1708 <h3 class="hndle"><span><?php _e('Post Author'); ?></span></h3>
1709 <div class="inside">
1710 <table class="form-table">
1711 <tbody>
1712 <tr>
1713 <th><label for="cff_author_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
1714 <td>
1715 <select name="cff_author_size">
1716 <option value="inherit" <?php if($cff_author_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1717 <option value="10" <?php if($cff_author_size == "10") echo 'selected="selected"' ?> >10px</option>
1718 <option value="11" <?php if($cff_author_size == "11") echo 'selected="selected"' ?> >11px</option>
1719 <option value="12" <?php if($cff_author_size == "12") echo 'selected="selected"' ?> >12px</option>
1720 <option value="13" <?php if($cff_author_size == "13") echo 'selected="selected"' ?> >13px</option>
1721 <option value="14" <?php if($cff_author_size == "14") echo 'selected="selected"' ?> >14px</option>
1722 <option value="16" <?php if($cff_author_size == "16") echo 'selected="selected"' ?> >16px</option>
1723 <option value="18" <?php if($cff_author_size == "18") echo 'selected="selected"' ?> >18px</option>
1724 <option value="20" <?php if($cff_author_size == "20") echo 'selected="selected"' ?> >20px</option>
1725 <option value="24" <?php if($cff_author_size == "24") echo 'selected="selected"' ?> >24px</option>
1726 <option value="28" <?php if($cff_author_size == "28") echo 'selected="selected"' ?> >28px</option>
1727 <option value="32" <?php if($cff_author_size == "32") echo 'selected="selected"' ?> >32px</option>
1728 <option value="36" <?php if($cff_author_size == "36") echo 'selected="selected"' ?> >36px</option>
1729 <option value="42" <?php if($cff_author_size == "42") echo 'selected="selected"' ?> >42px</option>
1730 <option value="48" <?php if($cff_author_size == "48") echo 'selected="selected"' ?> >48px</option>
1731 <option value="54" <?php if($cff_author_size == "54") echo 'selected="selected"' ?> >54px</option>
1732 <option value="60" <?php if($cff_author_size == "60") echo 'selected="selected"' ?> >60px</option>
1733 </select>
1734 </td>
1735 </tr>
1736 <tr>
1737 <th><label for="cff_author_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
1738 <td>
1739 <input name="cff_author_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_author_color) ); ?>" class="cff-colorpicker" />
1740 </td>
1741 </tr>
1742 </tbody>
1743 </table>
1744 </div>
1745 </div>
1746
1747 <div style="margin-top: -15px;">
1748 <?php submit_button(); ?>
1749 </div>
1750 <div id="adminform" class="postbox" style="display: block;">
1751 <div class="handlediv" title="Click to toggle"><br></div>
1752 <h3 class="hndle"><span><?php _e('Post Text'); ?></span></h3>
1753 <div class="inside">
1754 <table class="form-table">
1755 <tbody>
1756 <tr valign="top">
1757 <th scope="row"><label class="bump-left"><?php _e('Maximum Post Text Length'); ?></label></th>
1758 <td>
1759 <input name="cff_title_length" type="text" value="<?php esc_attr_e( $cff_title_length_val ); ?>" size="4" /> <span><?php _e('Characters.'); ?></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.'); ?></i>
1760 </td>
1761 </tr>
1762 <tr>
1763 <th><label for="cff_title_format" class="bump-left"><?php _e('Format'); ?></label></th>
1764 <td>
1765 <select name="cff_title_format">
1766 <option value="p" <?php if($cff_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
1767 <option value="h3" <?php if($cff_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
1768 <option value="h4" <?php if($cff_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
1769 <option value="h5" <?php if($cff_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
1770 <option value="h6" <?php if($cff_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
1771 </select>
1772 </td>
1773 </tr>
1774 <tr>
1775 <th><label for="cff_title_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
1776 <td>
1777 <select name="cff_title_size">
1778 <option value="inherit" <?php if($cff_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1779 <option value="10" <?php if($cff_title_size == "10") echo 'selected="selected"' ?> >10px</option>
1780 <option value="11" <?php if($cff_title_size == "11") echo 'selected="selected"' ?> >11px</option>
1781 <option value="12" <?php if($cff_title_size == "12") echo 'selected="selected"' ?> >12px</option>
1782 <option value="13" <?php if($cff_title_size == "13") echo 'selected="selected"' ?> >13px</option>
1783 <option value="14" <?php if($cff_title_size == "14") echo 'selected="selected"' ?> >14px</option>
1784 <option value="16" <?php if($cff_title_size == "16") echo 'selected="selected"' ?> >16px</option>
1785 <option value="18" <?php if($cff_title_size == "18") echo 'selected="selected"' ?> >18px</option>
1786 <option value="20" <?php if($cff_title_size == "20") echo 'selected="selected"' ?> >20px</option>
1787 <option value="24" <?php if($cff_title_size == "24") echo 'selected="selected"' ?> >24px</option>
1788 <option value="28" <?php if($cff_title_size == "28") echo 'selected="selected"' ?> >28px</option>
1789 <option value="32" <?php if($cff_title_size == "32") echo 'selected="selected"' ?> >32px</option>
1790 <option value="36" <?php if($cff_title_size == "36") echo 'selected="selected"' ?> >36px</option>
1791 <option value="42" <?php if($cff_title_size == "42") echo 'selected="selected"' ?> >42px</option>
1792 <option value="48" <?php if($cff_title_size == "48") echo 'selected="selected"' ?> >48px</option>
1793 <option value="54" <?php if($cff_title_size == "54") echo 'selected="selected"' ?> >54px</option>
1794 <option value="60" <?php if($cff_title_size == "60") echo 'selected="selected"' ?> >60px</option>
1795 </select>
1796 </td>
1797 </tr>
1798 <tr>
1799 <th><label for="cff_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label></th>
1800 <td>
1801 <select name="cff_title_weight">
1802 <option value="inherit" <?php if($cff_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1803 <option value="normal" <?php if($cff_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1804 <option value="bold" <?php if($cff_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1805 </select>
1806 </td>
1807 </tr>
1808 <tr>
1809 <th><label for="cff_title_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
1810 <td>
1811 <input name="cff_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_title_color) ); ?>" class="cff-colorpicker" />
1812 </td>
1813 </tr>
1814 <tr>
1815 <th><label for="cff_posttext_link_color" class="bump-left"><?php _e('Link Color'); ?></label></th>
1816 <td>
1817 <input name="cff_posttext_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_posttext_link_color) ); ?>" class="cff-colorpicker" />
1818 </td>
1819 </tr>
1820 <tr>
1821 <th><label for="cff_title_link" class="bump-left"><?php _e('Link Text to Facebook Post?'); ?></label></th>
1822 <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'); ?></td>
1823 </tr>
1824
1825 <tr>
1826 <th><label for="cff_post_tags" class="bump-left"><?php _e('Link Post Tags?'); ?></label></th>
1827 <td>
1828 <input type="checkbox" name="cff_post_tags" id="cff_post_tags" <?php if($cff_post_tags == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes'); ?>
1829 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What are Post Tags?'); ?></a>
1830 <p class="cff-tooltip cff-more-info"><?php _e("When you tag another Facebook page or user in your post using the @ symbol it creates a post tag, which is a link to either that Facebook page or user profile."); ?></p>
1831 </td>
1832 </tr>
1833
1834 <tr>
1835 <th><label for="cff_link_hashtags" class="bump-left"><?php _e('Link Hashtags?'); ?></label></th>
1836 <td>
1837 <input type="checkbox" name="cff_link_hashtags" id="cff_link_hashtags" <?php if($cff_link_hashtags == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes'); ?>
1838 </td>
1839 </tr>
1840
1841 </tbody>
1842 </table>
1843 </div>
1844 </div>
1845
1846
1847 <div id="adminform" class="postbox" style="display: block;">
1848 <div class="handlediv" title="Click to toggle"><br></div>
1849 <h3 class="hndle"><span><?php _e('Link, Photo and Video Description'); ?></span></h3>
1850 <div class="inside">
1851 <table class="form-table">
1852 <tbody>
1853 <tr valign="top">
1854 <th scope="row"><label class="bump-left"><?php _e('Maximum Description Length'); ?></label></th>
1855 <td>
1856 <input name="cff_body_length" type="text" value="<?php esc_attr_e( $cff_body_length_val ); ?>" size="4" /> <span><?php _e('Characters. Eg. 200'); ?></span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Leave empty to set no maximum length'); ?></i>
1857 </td>
1858 </tr>
1859 <tr>
1860 <th><label for="cff_body_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
1861 <td>
1862 <select name="cff_body_size">
1863 <option value="inherit" <?php if($cff_body_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1864 <option value="10" <?php if($cff_body_size == "10") echo 'selected="selected"' ?> >10px</option>
1865 <option value="11" <?php if($cff_body_size == "11") echo 'selected="selected"' ?> >11px</option>
1866 <option value="12" <?php if($cff_body_size == "12") echo 'selected="selected"' ?> >12px</option>
1867 <option value="13" <?php if($cff_body_size == "13") echo 'selected="selected"' ?> >13px</option>
1868 <option value="14" <?php if($cff_body_size == "14") echo 'selected="selected"' ?> >14px</option>
1869 <option value="16" <?php if($cff_body_size == "16") echo 'selected="selected"' ?> >16px</option>
1870 <option value="18" <?php if($cff_body_size == "18") echo 'selected="selected"' ?> >18px</option>
1871 <option value="20" <?php if($cff_body_size == "20") echo 'selected="selected"' ?> >20px</option>
1872 <option value="24" <?php if($cff_body_size == "24") echo 'selected="selected"' ?> >24px</option>
1873 <option value="28" <?php if($cff_body_size == "28") echo 'selected="selected"' ?> >28px</option>
1874 <option value="32" <?php if($cff_body_size == "32") echo 'selected="selected"' ?> >32px</option>
1875 <option value="36" <?php if($cff_body_size == "36") echo 'selected="selected"' ?> >36px</option>
1876 <option value="42" <?php if($cff_body_size == "42") echo 'selected="selected"' ?> >42px</option>
1877 <option value="48" <?php if($cff_body_size == "48") echo 'selected="selected"' ?> >48px</option>
1878 <option value="54" <?php if($cff_body_size == "54") echo 'selected="selected"' ?> >54px</option>
1879 <option value="60" <?php if($cff_body_size == "60") echo 'selected="selected"' ?> >60px</option>
1880 </select>
1881 </td>
1882 </tr>
1883 <tr>
1884 <th><label for="cff_body_weight" class="bump-left"><?php _e('Text Weight'); ?></label></th>
1885 <td>
1886 <select name="cff_body_weight">
1887 <option value="inherit" <?php if($cff_body_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1888 <option value="normal" <?php if($cff_body_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1889 <option value="bold" <?php if($cff_body_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1890 </select>
1891 </td>
1892 </tr>
1893 <tr>
1894 <th><label for="cff_body_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
1895
1896 <td>
1897 <input name="cff_body_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_body_color) ); ?>" class="cff-colorpicker" />
1898 </td>
1899 </tr>
1900 </tbody>
1901 </table>
1902 </div>
1903 </div>
1904
1905 <div style="margin-top: -15px;">
1906 <?php submit_button(); ?>
1907 </div>
1908
1909 <div id="adminform" class="postbox" style="display: block;">
1910 <div class="handlediv" title="Click to toggle"><br></div>
1911 <h3 class="hndle"><span><?php _e('Post Date'); ?></span></h3>
1912 <div class="inside">
1913 <table class="form-table">
1914 <tbody>
1915 <tr>
1916 <th><label for="cff_date_position" class="bump-left"><?php _e('Position'); ?></label></th>
1917 <td>
1918 <select name="cff_date_position" style="width: 280px;">
1919 <option value="author" <?php if($cff_date_position == "author") echo 'selected="selected"' ?> >Immediately under the post author</option>
1920 <option value="above" <?php if($cff_date_position == "above") echo 'selected="selected"' ?> >At the top of the post</option>
1921 <option value="below" <?php if($cff_date_position == "below") echo 'selected="selected"' ?> >At the bottom of the post</option>
1922 </select>
1923 </td>
1924 </tr>
1925 <tr>
1926 <th><label for="cff_date_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
1927 <td>
1928 <select name="cff_date_size">
1929 <option value="inherit" <?php if($cff_date_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1930 <option value="10" <?php if($cff_date_size == "10") echo 'selected="selected"' ?> >10px</option>
1931 <option value="11" <?php if($cff_date_size == "11") echo 'selected="selected"' ?> >11px</option>
1932 <option value="12" <?php if($cff_date_size == "12") echo 'selected="selected"' ?> >12px</option>
1933 <option value="13" <?php if($cff_date_size == "13") echo 'selected="selected"' ?> >13px</option>
1934 <option value="14" <?php if($cff_date_size == "14") echo 'selected="selected"' ?> >14px</option>
1935 <option value="16" <?php if($cff_date_size == "16") echo 'selected="selected"' ?> >16px</option>
1936 <option value="18" <?php if($cff_date_size == "18") echo 'selected="selected"' ?> >18px</option>
1937 <option value="20" <?php if($cff_date_size == "20") echo 'selected="selected"' ?> >20px</option>
1938 <option value="24" <?php if($cff_date_size == "24") echo 'selected="selected"' ?> >24px</option>
1939 <option value="28" <?php if($cff_date_size == "28") echo 'selected="selected"' ?> >28px</option>
1940 <option value="32" <?php if($cff_date_size == "32") echo 'selected="selected"' ?> >32px</option>
1941 <option value="36" <?php if($cff_date_size == "36") echo 'selected="selected"' ?> >36px</option>
1942 <option value="42" <?php if($cff_date_size == "42") echo 'selected="selected"' ?> >42px</option>
1943 <option value="48" <?php if($cff_date_size == "48") echo 'selected="selected"' ?> >48px</option>
1944 <option value="54" <?php if($cff_date_size == "54") echo 'selected="selected"' ?> >54px</option>
1945 <option value="60" <?php if($cff_date_size == "60") echo 'selected="selected"' ?> >60px</option>
1946 </select>
1947 </td>
1948 </tr>
1949 <tr>
1950 <th><label for="cff_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label></th>
1951 <td>
1952 <select name="cff_date_weight">
1953 <option value="inherit" <?php if($cff_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
1954 <option value="normal" <?php if($cff_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
1955 <option value="bold" <?php if($cff_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
1956 </select>
1957 </td>
1958 </tr>
1959 <tr>
1960 <th><label for="cff_date_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
1961 <td>
1962 <input name="cff_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_date_color) ); ?>" class="cff-colorpicker" />
1963 </td>
1964 </tr>
1965
1966 <tr>
1967 <th><label for="cff_date_formatting" class="bump-left"><?php _e('Date formatting'); ?></label></th>
1968 <td>
1969 <select name="cff_date_formatting">
1970 <?php $original = strtotime('2013-07-25T17:30:00+0000'); ?>
1971 <option value="1" <?php if($cff_date_formatting == "1") echo 'selected="selected"' ?> ><?php _e('2 days ago'); ?></option>
1972 <option value="2" <?php if($cff_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:i a', $original); ?></option>
1973 <option value="3" <?php if($cff_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('F jS', $original); ?></option>
1974 <option value="4" <?php if($cff_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('D F jS', $original); ?></option>
1975 <option value="5" <?php if($cff_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS', $original); ?></option>
1976 <option value="6" <?php if($cff_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y', $original); ?></option>
1977 <option value="7" <?php if($cff_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y', $original); ?></option>
1978 <option value="8" <?php if($cff_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:i a', $original); ?></option>
1979 <option value="9" <?php if($cff_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
1980 <option value="10" <?php if($cff_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y', $original); ?></option>
1981 <option value="11" <?php if($cff_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y', $original); ?></option>
1982 <option value="12" <?php if($cff_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y', $original); ?></option>
1983 <option value="13" <?php if($cff_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y', $original); ?></option>
1984 </select>
1985 </tr>
1986
1987 <tr>
1988 <th><label for="cff_timezone" class="bump-left"><?php _e('Timezone'); ?></label></th>
1989 <td>
1990 <select name="cff_timezone" style="width: 300px;">
1991 <option value="Pacific/Midway" <?php if($cff_timezone == "Pacific/Midway") echo 'selected="selected"' ?> ><?php _e('(GMT-11:00) Midway Island, Samoa'); ?></option>
1992 <option value="America/Adak" <?php if($cff_timezone == "America/Adak") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii-Aleutian'); ?></option>
1993 <option value="Etc/GMT+10" <?php if($cff_timezone == "Etc/GMT+10") echo 'selected="selected"' ?> ><?php _e('(GMT-10:00) Hawaii'); ?></option>
1994 <option value="Pacific/Marquesas" <?php if($cff_timezone == "Pacific/Marquesas") echo 'selected="selected"' ?> ><?php _e('(GMT-09:30) Marquesas Islands'); ?></option>
1995 <option value="Pacific/Gambier" <?php if($cff_timezone == "Pacific/Gambier") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Gambier Islands'); ?></option>
1996 <option value="America/Anchorage" <?php if($cff_timezone == "America/Anchorage") echo 'selected="selected"' ?> ><?php _e('(GMT-09:00) Alaska'); ?></option>
1997 <option value="America/Ensenada" <?php if($cff_timezone == "America/Ensenada") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Tijuana, Baja California'); ?></option>
1998 <option value="Etc/GMT+8" <?php if($cff_timezone == "Etc/GMT+8") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pitcairn Islands'); ?></option>
1999 <option value="America/Los_Angeles" <?php if($cff_timezone == "America/Los_Angeles") echo 'selected="selected"' ?> ><?php _e('(GMT-08:00) Pacific Time (US & Canada)'); ?></option>
2000 <option value="America/Denver" <?php if($cff_timezone == "America/Denver") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Mountain Time (US & Canada)'); ?></option>
2001 <option value="America/Chihuahua" <?php if($cff_timezone == "America/Chihuahua") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Chihuahua, La Paz, Mazatlan'); ?></option>
2002 <option value="America/Dawson_Creek" <?php if($cff_timezone == "America/Dawson_Creek") echo 'selected="selected"' ?> ><?php _e('(GMT-07:00) Arizona'); ?></option>
2003 <option value="America/Belize" <?php if($cff_timezone == "America/Belize") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Saskatchewan, Central America'); ?></option>
2004 <option value="America/Cancun" <?php if($cff_timezone == "America/Cancun") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Guadalajara, Mexico City, Monterrey'); ?></option>
2005 <option value="Chile/EasterIsland" <?php if($cff_timezone == "Chile/EasterIsland") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Easter Island'); ?></option>
2006 <option value="America/Chicago" <?php if($cff_timezone == "America/Chicago") echo 'selected="selected"' ?> ><?php _e('(GMT-06:00) Central Time (US & Canada)'); ?></option>
2007 <option value="America/New_York" <?php if($cff_timezone == "America/New_York") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Eastern Time (US & Canada)'); ?></option>
2008 <option value="America/Havana" <?php if($cff_timezone == "America/Havana") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Cuba'); ?></option>
2009 <option value="America/Bogota" <?php if($cff_timezone == "America/Bogota") echo 'selected="selected"' ?> ><?php _e('(GMT-05:00) Bogota, Lima, Quito, Rio Branco'); ?></option>
2010 <option value="America/Caracas" <?php if($cff_timezone == "America/Caracas") echo 'selected="selected"' ?> ><?php _e('(GMT-04:30) Caracas'); ?></option>
2011 <option value="America/Santiago" <?php if($cff_timezone == "America/Santiago") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Santiago'); ?></option>
2012 <option value="America/La_Paz" <?php if($cff_timezone == "America/La_Paz") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) La Paz'); ?></option>
2013 <option value="Atlantic/Stanley" <?php if($cff_timezone == "Atlantic/Stanley") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Faukland Islands'); ?></option>
2014 <option value="America/Campo_Grande" <?php if($cff_timezone == "America/Campo_Grande") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Brazil'); ?></option>
2015 <option value="America/Goose_Bay" <?php if($cff_timezone == "America/Goose_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Goose Bay)'); ?></option>
2016 <option value="America/Glace_Bay" <?php if($cff_timezone == "America/Glace_Bay") echo 'selected="selected"' ?> ><?php _e('(GMT-04:00) Atlantic Time (Canada)'); ?></option>
2017 <option value="America/St_Johns" <?php if($cff_timezone == "America/St_Johns") echo 'selected="selected"' ?> ><?php _e('(GMT-03:30) Newfoundland'); ?></option>
2018 <option value="America/Araguaina" <?php if($cff_timezone == "America/Araguaina") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) UTC-3'); ?></option>
2019 <option value="America/Montevideo" <?php if($cff_timezone == "America/Montevideo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Montevideo'); ?></option>
2020 <option value="America/Miquelon" <?php if($cff_timezone == "America/Miquelon") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Miquelon, St. Pierre'); ?></option>
2021 <option value="America/Godthab" <?php if($cff_timezone == "America/Godthab") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Greenland'); ?></option>
2022 <option value="America/Argentina/Buenos_Aires" <?php if($cff_timezone == "America/Argentina/Buenos_Aires") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Buenos Aires'); ?></option>
2023 <option value="America/Sao_Paulo" <?php if($cff_timezone == "America/Sao_Paulo") echo 'selected="selected"' ?> ><?php _e('(GMT-03:00) Brasilia'); ?></option>
2024 <option value="America/Noronha" <?php if($cff_timezone == "America/Noronha") echo 'selected="selected"' ?> ><?php _e('(GMT-02:00) Mid-Atlantic'); ?></option>
2025 <option value="Atlantic/Cape_Verde" <?php if($cff_timezone == "Atlantic/Cape_Verde") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Cape Verde Is.'); ?></option>
2026 <option value="Atlantic/Azores" <?php if($cff_timezone == "Atlantic/Azores") echo 'selected="selected"' ?> ><?php _e('(GMT-01:00) Azores'); ?></option>
2027 <option value="Europe/Belfast" <?php if($cff_timezone == "Europe/Belfast") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Belfast'); ?></option>
2028 <option value="Europe/Dublin" <?php if($cff_timezone == "Europe/Dublin") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Dublin'); ?></option>
2029 <option value="Europe/Lisbon" <?php if($cff_timezone == "Europe/Lisbon") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : Lisbon'); ?></option>
2030 <option value="Europe/London" <?php if($cff_timezone == "Europe/London") echo 'selected="selected"' ?> ><?php _e('(GMT) Greenwich Mean Time : London'); ?></option>
2031 <option value="Africa/Abidjan" <?php if($cff_timezone == "Africa/Abidjan") echo 'selected="selected"' ?> ><?php _e('(GMT) Monrovia, Reykjavik'); ?></option>
2032 <option value="Europe/Amsterdam" <?php if($cff_timezone == "Europe/Amsterdam") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'); ?></option>
2033 <option value="Europe/Belgrade" <?php if($cff_timezone == "Europe/Belgrade") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'); ?></option>
2034 <option value="Europe/Brussels" <?php if($cff_timezone == "Europe/Brussels") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Brussels, Copenhagen, Madrid, Paris'); ?></option>
2035 <option value="Africa/Algiers" <?php if($cff_timezone == "Africa/Algiers") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) West Central Africa'); ?></option>
2036 <option value="Africa/Windhoek" <?php if($cff_timezone == "Africa/Windhoek") echo 'selected="selected"' ?> ><?php _e('(GMT+01:00) Windhoek'); ?></option>
2037 <option value="Asia/Beirut" <?php if($cff_timezone == "Asia/Beirut") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Beirut'); ?></option>
2038 <option value="Africa/Cairo" <?php if($cff_timezone == "Africa/Cairo") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Cairo'); ?></option>
2039 <option value="Asia/Gaza" <?php if($cff_timezone == "Asia/Gaza") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Gaza'); ?></option>
2040 <option value="Africa/Blantyre" <?php if($cff_timezone == "Africa/Blantyre") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Harare, Pretoria'); ?></option>
2041 <option value="Asia/Jerusalem" <?php if($cff_timezone == "Asia/Jerusalem") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Jerusalem'); ?></option>
2042 <option value="Europe/Minsk" <?php if($cff_timezone == "Europe/Minsk") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Minsk'); ?></option>
2043 <option value="Asia/Damascus" <?php if($cff_timezone == "Asia/Damascus") echo 'selected="selected"' ?> ><?php _e('(GMT+02:00) Syria'); ?></option>
2044 <option value="Europe/Moscow" <?php if($cff_timezone == "Europe/Moscow") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Moscow, St. Petersburg, Volgograd'); ?></option>
2045 <option value="Africa/Addis_Ababa" <?php if($cff_timezone == "Africa/Addis_Ababa") echo 'selected="selected"' ?> ><?php _e('(GMT+03:00) Nairobi'); ?></option>
2046 <option value="Asia/Tehran" <?php if($cff_timezone == "Asia/Tehran") echo 'selected="selected"' ?> ><?php _e('(GMT+03:30) Tehran'); ?></option>
2047 <option value="Asia/Dubai" <?php if($cff_timezone == "Asia/Dubai") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Abu Dhabi, Muscat'); ?></option>
2048 <option value="Asia/Yerevan" <?php if($cff_timezone == "Asia/Yerevan") echo 'selected="selected"' ?> ><?php _e('(GMT+04:00) Yerevan'); ?></option>
2049 <option value="Asia/Kabul" <?php if($cff_timezone == "Asia/Kabul") echo 'selected="selected"' ?> ><?php _e('(GMT+04:30) Kabul'); ?></option>
2050 <option value="Asia/Yekaterinburg" <?php if($cff_timezone == "Asia/Yekaterinburg") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Ekaterinburg'); ?></option>
2051 <option value="Asia/Tashkent" <?php if($cff_timezone == "Asia/Tashkent") echo 'selected="selected"' ?> ><?php _e('(GMT+05:00) Tashkent'); ?></option>
2052 <option value="Asia/Kolkata" <?php if($cff_timezone == "Asia/Kolkata") echo 'selected="selected"' ?> ><?php _e('(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi'); ?></option>
2053 <option value="Asia/Katmandu" <?php if($cff_timezone == "Asia/Katmandu") echo 'selected="selected"' ?> ><?php _e('(GMT+05:45) Kathmandu'); ?></option>
2054 <option value="Asia/Dhaka" <?php if($cff_timezone == "Asia/Dhaka") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Astana, Dhaka'); ?></option>
2055 <option value="Asia/Novosibirsk" <?php if($cff_timezone == "Asia/Novosibirsk") echo 'selected="selected"' ?> ><?php _e('(GMT+06:00) Novosibirsk'); ?></option>
2056 <option value="Asia/Rangoon" <?php if($cff_timezone == "Asia/Rangoon") echo 'selected="selected"' ?> ><?php _e('(GMT+06:30) Yangon (Rangoon)'); ?></option>
2057 <option value="Asia/Bangkok" <?php if($cff_timezone == "Asia/Bangkok") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Bangkok, Hanoi, Jakarta'); ?></option>
2058 <option value="Asia/Krasnoyarsk" <?php if($cff_timezone == "Asia/Krasnoyarsk") echo 'selected="selected"' ?> ><?php _e('(GMT+07:00) Krasnoyarsk'); ?></option>
2059 <option value="Asia/Hong_Kong" <?php if($cff_timezone == "Asia/Hong_Kong") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi'); ?></option>
2060 <option value="Asia/Irkutsk" <?php if($cff_timezone == "Asia/Irkutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Irkutsk, Ulaan Bataar'); ?></option>
2061 <option value="Australia/Perth" <?php if($cff_timezone == "Australia/Perth") echo 'selected="selected"' ?> ><?php _e('(GMT+08:00) Perth'); ?></option>
2062 <option value="Australia/Eucla" <?php if($cff_timezone == "Australia/Eucla") echo 'selected="selected"' ?> ><?php _e('(GMT+08:45) Eucla'); ?></option>
2063 <option value="Asia/Tokyo" <?php if($cff_timezone == "Asia/Tokyo") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Osaka, Sapporo, Tokyo'); ?></option>
2064 <option value="Asia/Seoul" <?php if($cff_timezone == "Asia/Seoul") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Seoul'); ?></option>
2065 <option value="Asia/Yakutsk" <?php if($cff_timezone == "Asia/Yakutsk") echo 'selected="selected"' ?> ><?php _e('(GMT+09:00) Yakutsk'); ?></option>
2066 <option value="Australia/Adelaide" <?php if($cff_timezone == "Australia/Adelaide") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Adelaide'); ?></option>
2067 <option value="Australia/Darwin" <?php if($cff_timezone == "Australia/Darwin") echo 'selected="selected"' ?> ><?php _e('(GMT+09:30) Darwin'); ?></option>
2068 <option value="Australia/Brisbane" <?php if($cff_timezone == "Australia/Brisbane") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Brisbane'); ?></option>
2069 <option value="Australia/Hobart" <?php if($cff_timezone == "Australia/Hobart") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Hobart'); ?></option>
2070 <option value="Asia/Vladivostok" <?php if($cff_timezone == "Asia/Vladivostok") echo 'selected="selected"' ?> ><?php _e('(GMT+10:00) Vladivostok'); ?></option>
2071 <option value="Australia/Lord_Howe" <?php if($cff_timezone == "Australia/Lord_Howe") echo 'selected="selected"' ?> ><?php _e('(GMT+10:30) Lord Howe Island'); ?></option>
2072 <option value="Etc/GMT-11" <?php if($cff_timezone == "Etc/GMT-11") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Solomon Is., New Caledonia'); ?></option>
2073 <option value="Asia/Magadan" <?php if($cff_timezone == "Asia/Magadan") echo 'selected="selected"' ?> ><?php _e('(GMT+11:00) Magadan'); ?></option>
2074 <option value="Pacific/Norfolk" <?php if($cff_timezone == "Pacific/Norfolk") echo 'selected="selected"' ?> ><?php _e('(GMT+11:30) Norfolk Island'); ?></option>
2075 <option value="Asia/Anadyr" <?php if($cff_timezone == "Asia/Anadyr") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Anadyr, Kamchatka'); ?></option>
2076 <option value="Pacific/Auckland" <?php if($cff_timezone == "Pacific/Auckland") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Auckland, Wellington'); ?></option>
2077 <option value="Etc/GMT-12" <?php if($cff_timezone == "Etc/GMT-12") echo 'selected="selected"' ?> ><?php _e('(GMT+12:00) Fiji, Kamchatka, Marshall Is.'); ?></option>
2078 <option value="Pacific/Chatham" <?php if($cff_timezone == "Pacific/Chatham") echo 'selected="selected"' ?> ><?php _e('(GMT+12:45) Chatham Islands'); ?></option>
2079 <option value="Pacific/Tongatapu" <?php if($cff_timezone == "Pacific/Tongatapu") echo 'selected="selected"' ?> ><?php _e('(GMT+13:00) Nuku\'alofa'); ?></option>
2080 <option value="Pacific/Kiritimati" <?php if($cff_timezone == "Pacific/Kiritimati") echo 'selected="selected"' ?> ><?php _e('(GMT+14:00) Kiritimati'); ?></option>
2081 </select>
2082 </td>
2083 </tr>
2084
2085 <tr>
2086 <th><label for="cff_date_custom" class="bump-left"><?php _e('Custom format'); ?></label></th>
2087 <td>
2088 <input name="cff_date_custom" type="text" value="<?php esc_attr_e( $cff_date_custom ); ?>" size="10" placeholder="Eg. F j, Y" />
2089 <a href="https://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
2090 </td>
2091 </tr>
2092 <tr>
2093 <th><label for="cff_date_before" class="bump-left"><?php _e('Text before date'); ?></label></th>
2094 <td><input name="cff_date_before" type="text" value="<?php esc_attr_e( $cff_date_before ); ?>" size="20" placeholder="Eg. Posted" /></td>
2095 </tr>
2096 <tr>
2097 <th><label for="cff_date_after" class="bump-left"><?php _e('Text after date'); ?></label></th>
2098 <td><input name="cff_date_after" type="text" value="<?php esc_attr_e( $cff_date_after ); ?>" size="20" placeholder="Eg. by ___" /></td>
2099 </tr>
2100 </tbody>
2101 </table>
2102 </div>
2103 </div>
2104
2105
2106 <div id="adminform" class="postbox" style="display: block;">
2107 <div class="handlediv" title="Click to toggle"><br></div>
2108 <h3 class="hndle"><span><?php _e('Shared Links'); ?></span></h3>
2109 <div class="inside">
2110 <table class="form-table">
2111 <tbody>
2112
2113 <tr>
2114 <th><label for="cff_link_title_format" class="bump-left"><?php _e('Link Title Format'); ?></label></th>
2115 <td>
2116 <select name="cff_link_title_format">
2117 <option value="p" <?php if($cff_link_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
2118 <option value="h3" <?php if($cff_link_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
2119 <option value="h4" <?php if($cff_link_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
2120 <option value="h5" <?php if($cff_link_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
2121 <option value="h6" <?php if($cff_link_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
2122 </select>
2123 </td>
2124 </tr>
2125 <tr>
2126 <th><label for="cff_link_title_size" class="bump-left"><?php _e('Link Title Size'); ?></label></th>
2127 <td>
2128 <select name="cff_link_title_size">
2129 <option value="inherit" <?php if($cff_link_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2130 <option value="10" <?php if($cff_link_title_size == "10") echo 'selected="selected"' ?> >10px</option>
2131 <option value="11" <?php if($cff_link_title_size == "11") echo 'selected="selected"' ?> >11px</option>
2132 <option value="12" <?php if($cff_link_title_size == "12") echo 'selected="selected"' ?> >12px</option>
2133 <option value="13" <?php if($cff_link_title_size == "13") echo 'selected="selected"' ?> >13px</option>
2134 <option value="14" <?php if($cff_link_title_size == "14") echo 'selected="selected"' ?> >14px</option>
2135 <option value="16" <?php if($cff_link_title_size == "16") echo 'selected="selected"' ?> >16px</option>
2136 <option value="18" <?php if($cff_link_title_size == "18") echo 'selected="selected"' ?> >18px</option>
2137 <option value="20" <?php if($cff_link_title_size == "20") echo 'selected="selected"' ?> >20px</option>
2138 <option value="24" <?php if($cff_link_title_size == "24") echo 'selected="selected"' ?> >24px</option>
2139 <option value="28" <?php if($cff_link_title_size == "28") echo 'selected="selected"' ?> >28px</option>
2140 <option value="32" <?php if($cff_link_title_size == "32") echo 'selected="selected"' ?> >32px</option>
2141 <option value="36" <?php if($cff_link_title_size == "36") echo 'selected="selected"' ?> >36px</option>
2142 <option value="42" <?php if($cff_link_title_size == "42") echo 'selected="selected"' ?> >42px</option>
2143 <option value="48" <?php if($cff_link_title_size == "48") echo 'selected="selected"' ?> >48px</option>
2144 <option value="54" <?php if($cff_link_title_size == "54") echo 'selected="selected"' ?> >54px</option>
2145 <option value="60" <?php if($cff_link_title_size == "60") echo 'selected="selected"' ?> >60px</option>
2146 </select>
2147 </td>
2148 </tr>
2149 <tr>
2150 <th><label for="cff_link_title_color" class="bump-left"><?php _e('Link Title Color'); ?></label></th>
2151 <td>
2152 <input name="cff_link_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_title_color) ); ?>" class="cff-colorpicker" />
2153 </td>
2154 </tr>
2155 <tr>
2156 <th><label for="cff_link_url_color" class="bump-left"><?php _e('Link URL Color'); ?></label></th>
2157 <td>
2158 <input name="cff_link_url_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_url_color) ); ?>" class="cff-colorpicker" />
2159 </td>
2160 </tr>
2161
2162 <tr>
2163 <th><label for="cff_link_bg_color" class="bump-left"><?php _e('Link Box Background Color'); ?></label></th>
2164 <td>
2165 <input name="cff_link_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_bg_color) ); ?>" class="cff-colorpicker" />
2166 </td>
2167 </tr>
2168
2169 <tr>
2170 <th><label for="cff_link_border_color" class="bump-left"><?php _e('Link Box Border Color'); ?></label></th>
2171 <td>
2172 <input name="cff_link_border_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_border_color) ); ?>" class="cff-colorpicker" />
2173 </td>
2174 </tr>
2175
2176 <tr>
2177 <th><label for="cff_disable_link_box" class="bump-left"><?php _e('Remove Background/Border'); ?></label></th>
2178 <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'); ?></td>
2179 </tr>
2180
2181 </tbody>
2182 </table>
2183 </div>
2184 </div>
2185
2186 <div style="margin-top: -15px;">
2187 <?php submit_button(); ?>
2188 </div>
2189
2190 <div id="adminform" class="postbox" style="display: block;">
2191 <div class="handlediv" title="Click to toggle"><br></div>
2192 <h3 class="hndle"><span><?php _e('Event Title'); ?></span></h3>
2193 <div class="inside">
2194 <table class="form-table">
2195 <tbody>
2196
2197 <tr>
2198 <th><label for="cff_event_title_format" class="bump-left"><?php _e('Format'); ?></label></th>
2199 <td>
2200 <select name="cff_event_title_format">
2201 <option value="p" <?php if($cff_event_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
2202 <option value="h3" <?php if($cff_event_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
2203 <option value="h4" <?php if($cff_event_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
2204 <option value="h5" <?php if($cff_event_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
2205 <option value="h6" <?php if($cff_event_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
2206 </select>
2207 </td>
2208 </tr>
2209
2210 <tr>
2211 <th><label for="cff_event_title_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
2212 <td>
2213 <select name="cff_event_title_size">
2214 <option value="inherit" <?php if($cff_event_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2215 <option value="10" <?php if($cff_event_title_size == "10") echo 'selected="selected"' ?> >10px</option>
2216 <option value="11" <?php if($cff_event_title_size == "11") echo 'selected="selected"' ?> >11px</option>
2217 <option value="12" <?php if($cff_event_title_size == "12") echo 'selected="selected"' ?> >12px</option>
2218 <option value="13" <?php if($cff_event_title_size == "13") echo 'selected="selected"' ?> >13px</option>
2219 <option value="14" <?php if($cff_event_title_size == "14") echo 'selected="selected"' ?> >14px</option>
2220 <option value="16" <?php if($cff_event_title_size == "16") echo 'selected="selected"' ?> >16px</option>
2221 <option value="18" <?php if($cff_event_title_size == "18") echo 'selected="selected"' ?> >18px</option>
2222 <option value="20" <?php if($cff_event_title_size == "20") echo 'selected="selected"' ?> >20px</option>
2223 <option value="24" <?php if($cff_event_title_size == "24") echo 'selected="selected"' ?> >24px</option>
2224 <option value="28" <?php if($cff_event_title_size == "28") echo 'selected="selected"' ?> >28px</option>
2225 <option value="32" <?php if($cff_event_title_size == "32") echo 'selected="selected"' ?> >32px</option>
2226 <option value="36" <?php if($cff_event_title_size == "36") echo 'selected="selected"' ?> >36px</option>
2227 <option value="42" <?php if($cff_event_title_size == "42") echo 'selected="selected"' ?> >42px</option>
2228 <option value="48" <?php if($cff_event_title_size == "48") echo 'selected="selected"' ?> >48px</option>
2229 <option value="54" <?php if($cff_event_title_size == "54") echo 'selected="selected"' ?> >54px</option>
2230 <option value="60" <?php if($cff_event_title_size == "60") echo 'selected="selected"' ?> >60px</option>
2231 </select>
2232 </td>
2233 </tr>
2234 <tr>
2235 <th><label for="cff_event_title_weight" class="bump-left"><?php _e('Text Weight'); ?></label></th>
2236 <td>
2237 <select name="cff_event_title_weight">
2238 <option value="inherit" <?php if($cff_event_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2239 <option value="normal" <?php if($cff_event_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2240 <option value="bold" <?php if($cff_event_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2241 </select>
2242 </td>
2243 </tr>
2244 <tr>
2245 <th><label for="cff_event_title_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
2246 <td>
2247 <input name="cff_event_title_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_title_color) ); ?>" class="cff-colorpicker" />
2248 </td>
2249 </tr>
2250 <tr>
2251 <th><label for="cff_event_title_link" class="bump-left"><?php _e('Link title to Facebook event page?'); ?></label></th>
2252 <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'); ?></td>
2253 </tr>
2254 </tbody>
2255 </table>
2256 </div>
2257 </div>
2258
2259 <div id="adminform" class="postbox" style="display: block;">
2260 <div class="handlediv" title="Click to toggle"><br></div>
2261 <h3 class="hndle"><span><?php _e('Event Date'); ?></span></h3>
2262 <div class="inside">
2263 <table class="form-table">
2264 <tbody>
2265
2266 <tr>
2267 <th><label for="cff_event_date_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
2268 <td>
2269 <select name="cff_event_date_size">
2270 <option value="inherit" <?php if($cff_event_date_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2271 <option value="10" <?php if($cff_event_date_size == "10") echo 'selected="selected"' ?> >10px</option>
2272 <option value="11" <?php if($cff_event_date_size == "11") echo 'selected="selected"' ?> >11px</option>
2273 <option value="12" <?php if($cff_event_date_size == "12") echo 'selected="selected"' ?> >12px</option>
2274 <option value="13" <?php if($cff_event_date_size == "13") echo 'selected="selected"' ?> >13px</option>
2275 <option value="14" <?php if($cff_event_date_size == "14") echo 'selected="selected"' ?> >14px</option>
2276 <option value="16" <?php if($cff_event_date_size == "16") echo 'selected="selected"' ?> >16px</option>
2277 <option value="18" <?php if($cff_event_date_size == "18") echo 'selected="selected"' ?> >18px</option>
2278 <option value="20" <?php if($cff_event_date_size == "20") echo 'selected="selected"' ?> >20px</option>
2279 <option value="24" <?php if($cff_event_date_size == "24") echo 'selected="selected"' ?> >24px</option>
2280 <option value="28" <?php if($cff_event_date_size == "28") echo 'selected="selected"' ?> >28px</option>
2281 <option value="32" <?php if($cff_event_date_size == "32") echo 'selected="selected"' ?> >32px</option>
2282 <option value="36" <?php if($cff_event_date_size == "36") echo 'selected="selected"' ?> >36px</option>
2283 <option value="42" <?php if($cff_event_date_size == "42") echo 'selected="selected"' ?> >42px</option>
2284 <option value="48" <?php if($cff_event_date_size == "48") echo 'selected="selected"' ?> >48px</option>
2285 <option value="54" <?php if($cff_event_date_size == "54") echo 'selected="selected"' ?> >54px</option>
2286 <option value="60" <?php if($cff_event_date_size == "60") echo 'selected="selected"' ?> >60px</option>
2287 </select>
2288 </td>
2289 </tr>
2290 <tr>
2291 <th><label for="cff_event_date_weight" class="bump-left"><?php _e('Text Weight'); ?></label></th>
2292 <td>
2293 <select name="cff_event_date_weight">
2294 <option value="inherit" <?php if($cff_event_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2295 <option value="normal" <?php if($cff_event_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2296 <option value="bold" <?php if($cff_event_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2297 </select>
2298 </td>
2299 </tr>
2300 <tr>
2301 <th><label for="cff_event_date_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
2302 <td>
2303 <input name="cff_event_date_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_date_color) ); ?>" class="cff-colorpicker" />
2304 </td>
2305 </tr>
2306 <tr valign="top">
2307 <th scope="row"><label class="bump-left"><?php _e('Date Position'); ?></label></th>
2308 <td>
2309 <select name="cff_event_date_position">
2310 <option value="below" <?php if($cff_event_date_position == "below") echo 'selected="selected"' ?> ><?php _e('Below event title'); ?></option>
2311 <option value="above" <?php if($cff_event_date_position == "above") echo 'selected="selected"' ?> ><?php _e('Above event title'); ?></option>
2312 </select>
2313 </td>
2314 </tr>
2315 <tr>
2316 <th><label for="cff_event_date_formatting" class="bump-left"><?php _e('Event date formatting'); ?></label></th>
2317 <td>
2318 <select name="cff_event_date_formatting">
2319 <?php $original = strtotime('2013-07-25T17:30:00+0000'); ?>
2320 <option value="1" <?php if($cff_event_date_formatting == "1") echo 'selected="selected"' ?> ><?php echo date('F j, Y, g:ia', $original); ?></option>
2321 <option value="2" <?php if($cff_event_date_formatting == "2") echo 'selected="selected"' ?> ><?php echo date('F jS, g:ia', $original); ?></option>
2322 <option value="3" <?php if($cff_event_date_formatting == "3") echo 'selected="selected"' ?> ><?php echo date('g:ia - F jS', $original); ?></option>
2323 <option value="4" <?php if($cff_event_date_formatting == "4") echo 'selected="selected"' ?> ><?php echo date('g:ia, F jS', $original); ?></option>
2324 <option value="5" <?php if($cff_event_date_formatting == "5") echo 'selected="selected"' ?> ><?php echo date('l F jS - g:ia', $original); ?></option>
2325 <option value="6" <?php if($cff_event_date_formatting == "6") echo 'selected="selected"' ?> ><?php echo date('D M jS, Y, g:iA', $original); ?></option>
2326 <option value="7" <?php if($cff_event_date_formatting == "7") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y, g:iA', $original); ?></option>
2327 <option value="8" <?php if($cff_event_date_formatting == "8") echo 'selected="selected"' ?> ><?php echo date('l F jS, Y - g:ia', $original); ?></option>
2328 <option value="9" <?php if($cff_event_date_formatting == "9") echo 'selected="selected"' ?> ><?php echo date("l M jS, 'y", $original); ?></option>
2329 <option value="10" <?php if($cff_event_date_formatting == "10") echo 'selected="selected"' ?> ><?php echo date('m.d.y - g:iA', $original); ?></option>
2330 <option value="11" <?php if($cff_event_date_formatting == "11") echo 'selected="selected"' ?> ><?php echo date('m/d/y, g:ia', $original); ?></option>
2331 <option value="12" <?php if($cff_event_date_formatting == "12") echo 'selected="selected"' ?> ><?php echo date('d.m.y - g:iA', $original); ?></option>
2332 <option value="13" <?php if($cff_event_date_formatting == "13") echo 'selected="selected"' ?> ><?php echo date('d/m/y, g:ia', $original); ?></option>
2333 </select>
2334 </td>
2335 </tr>
2336 <tr>
2337 <th><label for="cff_event_date_custom" class="bump-left"><?php _e('Custom event date format'); ?></label></th>
2338 <td>
2339 <input name="cff_event_date_custom" type="text" value="<?php esc_attr_e( $cff_event_date_custom ); ?>" size="10" placeholder="Eg. F j, Y - g:ia" />
2340 <a href="https://smashballoon.com/custom-facebook-feed/docs/date/" class="cff-external-link" target="_blank"><?php _e('Examples'); ?></a>
2341 </td>
2342 </tr>
2343 </tbody>
2344 </table>
2345 </div>
2346 </div>
2347 <div id="adminform" class="postbox" style="display: block;">
2348 <div class="handlediv" title="Click to toggle"><br></div>
2349 <h3 class="hndle"><span><?php _e('Event Details'); ?></span></h3>
2350 <div class="inside">
2351 <table class="form-table">
2352 <tbody>
2353
2354 <tr>
2355 <th><label for="cff_event_details_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
2356 <td>
2357 <select name="cff_event_details_size">
2358 <option value="inherit" <?php if($cff_event_details_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2359 <option value="10" <?php if($cff_event_details_size == "10") echo 'selected="selected"' ?> >10px</option>
2360 <option value="11" <?php if($cff_event_details_size == "11") echo 'selected="selected"' ?> >11px</option>
2361 <option value="12" <?php if($cff_event_details_size == "12") echo 'selected="selected"' ?> >12px</option>
2362 <option value="13" <?php if($cff_event_details_size == "13") echo 'selected="selected"' ?> >13px</option>
2363 <option value="14" <?php if($cff_event_details_size == "14") echo 'selected="selected"' ?> >14px</option>
2364 <option value="16" <?php if($cff_event_details_size == "16") echo 'selected="selected"' ?> >16px</option>
2365 <option value="18" <?php if($cff_event_details_size == "18") echo 'selected="selected"' ?> >18px</option>
2366 <option value="20" <?php if($cff_event_details_size == "20") echo 'selected="selected"' ?> >20px</option>
2367 <option value="24" <?php if($cff_event_details_size == "24") echo 'selected="selected"' ?> >24px</option>
2368 <option value="28" <?php if($cff_event_details_size == "28") echo 'selected="selected"' ?> >28px</option>
2369 <option value="32" <?php if($cff_event_details_size == "32") echo 'selected="selected"' ?> >32px</option>
2370 <option value="36" <?php if($cff_event_details_size == "36") echo 'selected="selected"' ?> >36px</option>
2371 <option value="42" <?php if($cff_event_details_size == "42") echo 'selected="selected"' ?> >42px</option>
2372 <option value="48" <?php if($cff_event_details_size == "48") echo 'selected="selected"' ?> >48px</option>
2373 <option value="54" <?php if($cff_event_details_size == "54") echo 'selected="selected"' ?> >54px</option>
2374 <option value="60" <?php if($cff_event_details_size == "60") echo 'selected="selected"' ?> >60px</option>
2375 </select>
2376 </td>
2377 </tr>
2378 <tr>
2379 <th><label for="cff_event_details_weight" class="bump-left"><?php _e('Text Weight'); ?></label></th>
2380 <td>
2381 <select name="cff_event_details_weight">
2382 <option value="inherit" <?php if($cff_event_details_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2383 <option value="normal" <?php if($cff_event_details_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2384 <option value="bold" <?php if($cff_event_details_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2385 </select>
2386 </td>
2387 </tr>
2388 <tr>
2389 <th><label for="cff_event_details_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
2390 <td>
2391 <input name="cff_event_details_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_details_color) ); ?>" class="cff-colorpicker" />
2392 </td>
2393 </tr>
2394 <tr>
2395 <th><label for="cff_event_link_color" class="bump-left"><?php _e('Link Color'); ?></label></th>
2396 <td>
2397 <input name="cff_event_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_event_link_color) ); ?>" class="cff-colorpicker" />
2398 </td>
2399 </tr>
2400
2401 </tbody>
2402 </table>
2403 </div>
2404 </div>
2405 <div id="adminform" class="postbox" style="display: block;">
2406 <div class="handlediv" title="Click to toggle"><br></div>
2407 <h3 class="hndle"><span><?php _e('Link to Facebook'); ?></span></h3>
2408 <div class="inside">
2409 <table class="form-table">
2410 <tbody>
2411
2412 <tr>
2413 <th><label for="cff_link_size" class="bump-left"><?php _e('Text Size'); ?></label></th>
2414 <td>
2415 <select name="cff_link_size">
2416 <option value="inherit" <?php if($cff_link_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2417 <option value="10" <?php if($cff_link_size == "10") echo 'selected="selected"' ?> >10px</option>
2418 <option value="11" <?php if($cff_link_size == "11") echo 'selected="selected"' ?> >11px</option>
2419 <option value="12" <?php if($cff_link_size == "12") echo 'selected="selected"' ?> >12px</option>
2420 <option value="13" <?php if($cff_link_size == "13") echo 'selected="selected"' ?> >13px</option>
2421 <option value="14" <?php if($cff_link_size == "14") echo 'selected="selected"' ?> >14px</option>
2422 <option value="16" <?php if($cff_link_size == "16") echo 'selected="selected"' ?> >16px</option>
2423 <option value="18" <?php if($cff_link_size == "18") echo 'selected="selected"' ?> >18px</option>
2424 <option value="20" <?php if($cff_link_size == "20") echo 'selected="selected"' ?> >20px</option>
2425 <option value="24" <?php if($cff_link_size == "24") echo 'selected="selected"' ?> >24px</option>
2426 <option value="28" <?php if($cff_link_size == "28") echo 'selected="selected"' ?> >28px</option>
2427 <option value="32" <?php if($cff_link_size == "32") echo 'selected="selected"' ?> >32px</option>
2428 <option value="36" <?php if($cff_link_size == "36") echo 'selected="selected"' ?> >36px</option>
2429 <option value="42" <?php if($cff_link_size == "42") echo 'selected="selected"' ?> >42px</option>
2430 <option value="48" <?php if($cff_link_size == "48") echo 'selected="selected"' ?> >48px</option>
2431 <option value="54" <?php if($cff_link_size == "54") echo 'selected="selected"' ?> >54px</option>
2432 <option value="60" <?php if($cff_link_size == "60") echo 'selected="selected"' ?> >60px</option>
2433 </select>
2434 </td>
2435 </tr>
2436 <tr>
2437 <th><label for="cff_link_weight" class="bump-left"><?php _e('Text Weight'); ?></label></th>
2438 <td>
2439 <select name="cff_link_weight">
2440 <option value="inherit" <?php if($cff_link_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
2441 <option value="normal" <?php if($cff_link_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
2442 <option value="bold" <?php if($cff_link_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
2443 </select>
2444 </td>
2445 </tr>
2446 <tr>
2447 <th><label for="cff_link_color" class="bump-left"><?php _e('Text Color'); ?></label></th>
2448 <td>
2449 <input name="cff_link_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_link_color) ); ?>" class="cff-colorpicker" />
2450 </td>
2451 </tr>
2452 <tr>
2453 <th><label for="cff_facebook_link_text" class="bump-left"><?php _e('Text'); ?></label></th>
2454 <td>
2455 <input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" size="25" />
2456 </td>
2457 </tr>
2458
2459 <tr>
2460 <th><label for="cff_facebook_share_text" class="bump-left"><?php _e('"Share" Text'); ?></label></th>
2461 <td>
2462 <input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" size="25" />
2463 </td>
2464 </tr>
2465
2466 <tr>
2467 <th><label for="cff_show_facebook_link" class="bump-left"><?php _e('Show "View on Facebook" link'); ?></label></th>
2468 <td>
2469 <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'); ?>
2470 </td>
2471 </tr>
2472
2473 <tr>
2474 <th><label for="cff_show_facebook_share" class="bump-left"><?php _e('Show "Share" link'); ?></label></th>
2475 <td>
2476 <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'); ?>
2477 </td>
2478 </tr>
2479
2480 </tbody>
2481 </table>
2482 </div>
2483 </div>
2484 </div>
2485 </div>
2486 <div style="margin-top: -15px;">
2487 <?php submit_button(); ?>
2488 </div>
2489
2490 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
2491
2492 <?php } //End Typography tab ?>
2493 <?php if( $active_tab == 'misc' ) { //Start Misc tab ?>
2494 <input type="hidden" name="<?php echo $style_misc_hidden_field_name; ?>" value="Y">
2495 <br />
2496 <h3><?php _e('Likes, Shares and Comments'); ?></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'); ?></a></i>
2497
2498 <hr />
2499 <h3><?php _e('Like Box'); ?></h3>
2500 <table class="form-table">
2501 <tbody>
2502 <tr valign="top">
2503 <th class="bump-left" scope="row"><label><?php _e('Show the Like Box'); ?></label></th>
2504 <td>
2505 <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'); ?>
2506 <i style="margin-left: 5px; font-size: 11px;"><a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e("Why isn't the Like Box showing up?"); ?></a></i>
2507 <p class="cff-tooltip cff-more-info"><?php _e("The most common reason is that you may have an extension installed in your web browser which is blocking the plugin from loading the Like Box from Facebook."); ?></p>
2508 </td>
2509 </tr>
2510 <tr valign="top">
2511 <th class="bump-left" scope="row"><label><?php _e('Position'); ?></label></th>
2512 <td>
2513 <select name="cff_like_box_position">
2514 <option value="bottom" <?php if($cff_like_box_position == "bottom") echo 'selected="selected"' ?> ><?php _e('Below posts'); ?></option>
2515 <option value="top" <?php if($cff_like_box_position == "top") echo 'selected="selected"' ?> ><?php _e('Above posts'); ?></option>
2516 </select>
2517 </td>
2518 </tr>
2519 <tr valign="top">
2520 <th class="bump-left" scope="row"><label><?php _e('Display outside the scrollable area'); ?></label></th>
2521 <td>
2522 <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'); ?>
2523 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('(Only applicable if you have set a height on the feed)'); ?></i>
2524 </td>
2525 </tr>
2526 <tr valign="top">
2527 <th class="bump-left" scope="row"><label><?php _e('Background Color'); ?></label></th>
2528 <td>
2529 <input name="cff_likebox_bg_color" value="#<?php esc_attr_e( str_replace('#', '', $cff_likebox_bg_color) ); ?>" class="cff-colorpicker" />
2530 </td>
2531 </tr>
2532 <tr valign="top">
2533 <th class="bump-left" scope="row"><label><?php _e('Color of page name'); ?></label></th>
2534 <td>
2535 <select name="cff_like_box_text_color">
2536 <option value="blue" <?php if($cff_like_box_text_color == "blue") echo 'selected="selected"' ?> ><?php _e('Blue'); ?></option>
2537 <option value="white" <?php if($cff_like_box_text_color == "white") echo 'selected="selected"' ?> ><?php _e('White'); ?></option>
2538 </select>
2539 <i style="margin-left: 5px; font-size: 11px;"><a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('Why only these 2 colors?'); ?></a></i>
2540 <p class="cff-tooltip cff-more-info"><?php _e("The styling of the Facebook Like box widget is restricted by Facebook. This means that the only two text colors available are blue and white, intended for either a light of dark color scheme respectively."); ?></p>
2541 </td>
2542 </tr>
2543 <tr valign="top">
2544 <th class="bump-left" scope="row"><label for="cff_likebox_width"><?php _e('Custom Like Box Width'); ?></label></th>
2545 <td>
2546 <input name="cff_likebox_width" type="text" value="<?php esc_attr_e( $cff_likebox_width ); ?>" size="6" />
2547 <span><span>Eg. 50%, 300px</span> <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Default is 100%'); ?></i></span>
2548 </td>
2549 </tr>
2550 <tr valign="top">
2551 <th class="bump-left" for="cff_likebox_height" scope="row"><label><?php _e('Custom Like Box Height'); ?></label></th>
2552 <td>
2553 <input name="cff_likebox_height" type="text" value="<?php esc_attr_e( $cff_likebox_height ); ?>" size="3" />
2554 <span>px</span>
2555 </td>
2556 </tr>
2557 <tr valign="top">
2558 <th class="bump-left" scope="row"><label><?php _e('Show faces of fans'); ?></label></th>
2559 <td>
2560 <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'); ?>
2561 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Show thumbnail photos of fans who like your page'); ?></i>
2562 </td>
2563 </tr>
2564 <tr valign="top">
2565 <th class="bump-left" scope="row"><label><?php _e('Show the Like Box border'); ?></label></th>
2566 <td>
2567 <input type="checkbox" name="cff_like_box_border" id="cff_like_box_outside" <?php if($cff_like_box_border == true) echo 'checked="checked"' ?> />&nbsp;<?php _e('Yes'); ?>
2568 <i style="color: #666; font-size: 11px; margin-left: 5px;"><?php _e('Only applicable if you are showing faces of fans'); ?></i>
2569 </td>
2570 </tr>
2571 </tbody>
2572 </table>
2573
2574 <?php submit_button(); ?>
2575
2576 <hr />
2577 <h3><?php _e('Custom CSS'); ?></h3>
2578 <table class="form-table">
2579 <tbody>
2580 <tr valign="top">
2581 <td>
2582 <?php _e('Enter your own custom CSS in the box below'); ?>
2583 <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'); ?></a></i>
2584 </td>
2585 </tr>
2586 <tr valign="top">
2587 <td>
2588 <textarea name="cff_custom_css" id="cff_custom_css" style="width: 70%;" rows="7"><?php esc_attr_e( $cff_custom_css ); ?></textarea>
2589 </td>
2590 </tr>
2591 </tbody>
2592 </table>
2593 <h3><?php _e('Custom JavaScript'); ?></h3>
2594 <table class="form-table">
2595 <tbody>
2596 <tr valign="top">
2597 <td>
2598 <?php _e('Enter your own custom JavaScript/jQuery in the box below'); ?>
2599 <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'); ?></a></i>
2600 </td>
2601 </tr>
2602 <tr valign="top">
2603 <td>
2604 <textarea name="cff_custom_js" id="cff_custom_js" style="width: 70%;" rows="7"><?php esc_attr_e( stripslashes($cff_custom_js) ); ?></textarea>
2605 </td>
2606 </tr>
2607 </tbody>
2608 </table>
2609
2610
2611 <hr />
2612 <h3><?php _e('Misc Settings'); ?></h3>
2613 <table class="form-table">
2614 <tbody>
2615 <tr>
2616 <th class="bump-left"><label for="cff_ajax" class="bump-left"><?php _e('Is your theme loading the Facebook feed via Ajax?'); ?></label></th>
2617 <td>
2618 <input name="cff_ajax" type="checkbox" id="cff_ajax" <?php if($cff_ajax_val == true) echo "checked"; ?> />
2619 <label for="cff_ajax"><?php _e('Yes'); ?></label>
2620 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?'); ?></a>
2621 <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.'); ?></p>
2622 </td>
2623 </tr>
2624 <tr>
2625 <th class="bump-left"><label for="cff_app_id" class="bump-left"><?php _e('Facebook App ID'); ?></label></th>
2626 <td>
2627 <input name="cff_app_id" type="text" value="<?php esc_attr_e( $cff_app_id ); ?>" size="18" />
2628 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What is this?'); ?></a>
2629 <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."); ?></p>
2630 </td>
2631 </tr>
2632 <tr>
2633 <th class="bump-left"><label for="cff_preserve_settings" class="bump-left"><?php _e("Preserve settings when plugin is removed"); ?></label></th>
2634 <td>
2635 <input name="cff_preserve_settings" type="checkbox" id="cff_preserve_settings" <?php if($cff_preserve_settings_val == true) echo "checked"; ?> />
2636 <label for="cff_preserve_settings"><?php _e('Yes'); ?></label>
2637 <a class="cff-tooltip-link" href="JavaScript:void(0);"><?php _e('What does this mean?'); ?></a>
2638 <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.'); ?></p>
2639 </td>
2640 </tr>
2641 <tr>
2642 <th class="bump-left"><label for="cff_show_credit" class="bump-left"><?php _e("Display credit link"); ?></label></th>
2643 <td>
2644 <input name="cff_show_credit" type="checkbox" id="cff_show_credit" <?php if($cff_show_credit == true) echo "checked"; ?> />
2645 <label for="cff_show_credit"><?php _e('Yes'); ?></label>
2646 <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'); ?></i>
2647 </td>
2648 </tr>
2649
2650 <tr>
2651 <th class="bump-left"><label for="cff_font_source" class="bump-left"><?php _e("Icon font source"); ?></label></th>
2652 <td>
2653 <select name="cff_font_source">
2654 <option value="cdn" <?php if($cff_font_source == "cdn") echo 'selected="selected"' ?> ><?php _e('CDN'); ?></option>
2655 <option value="local" <?php if($cff_font_source == "local") echo 'selected="selected"' ?> ><?php _e('Local copy'); ?></option>
2656 </select>
2657 </td>
2658 </tr>
2659 </tbody>
2660 </table>
2661
2662 <?php submit_button(); ?>
2663 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
2664 <?php } //End Misc tab ?>
2665
2666
2667 <?php if( $active_tab == 'custom_text' ) { //Start Custom Text tab ?>
2668 <input type="hidden" name="<?php echo $style_custom_text_hidden_field_name; ?>" value="Y">
2669 <br />
2670 <h3><?php _e('Custom Text / Translate'); ?></h3>
2671 <p><?php _e('Enter custom text for the words below, or translate it into the language you would like to use.'); ?></p>
2672 <table class="form-table cff-translate-table" style="width: 100%; max-width: 940px;">
2673 <tbody>
2674
2675 <thead>
2676 <tr>
2677 <th><?php _e('Original Text'); ?></th>
2678 <th><?php _e('Custom Text / Translation'); ?></th>
2679 <th><?php _e('Context'); ?></th>
2680 </tr>
2681 </thead>
2682
2683 <tr class="cff-table-header"><th colspan="3"><?php _e('Post Text'); ?></th></tr>
2684 <tr>
2685 <td><label for="cff_see_more_text" class="bump-left"><?php _e('See More'); ?></label></td>
2686 <td><input name="cff_see_more_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_more_text ) ); ?>" /></td>
2687 <td class="cff-context"><?php _e('Used when truncating the post text'); ?></td>
2688 </tr>
2689
2690 <tr>
2691 <td><label for="cff_see_less_text" class="bump-left"><?php _e('See Less'); ?></label></td>
2692 <td><input name="cff_see_less_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_see_less_text ) ); ?>" /></td>
2693 <td class="cff-context"><?php _e('Used when truncating the post text'); ?></td>
2694 </tr>
2695
2696 <tr class="cff-table-header"><th colspan="3"><?php _e('Post Action Links'); ?></th></tr>
2697 <tr>
2698 <td><label for="cff_facebook_link_text" class="bump-left"><?php _e('View on Facebook'); ?></label></td>
2699 <td><input name="cff_facebook_link_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_link_text ) ); ?>" /></td>
2700 <td class="cff-context"><?php _e('Used for the link to the post on Facebook'); ?></td>
2701 </tr>
2702 <tr>
2703 <td><label for="cff_facebook_share_text" class="bump-left"><?php _e('Share'); ?></label></td>
2704 <td><input name="cff_facebook_share_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_facebook_share_text ) ); ?>" /></td>
2705 <td class="cff-context"><?php _e('Used for sharing the Facebook post via Social Media'); ?></td>
2706 </tr>
2707
2708 <tr>
2709 <td><label for="cff_translate_photos_text" class="bump-left"><?php _e('photos'); ?></label></td>
2710 <td><input name="cff_translate_photos_text" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_photos_text ) ); ?>" /></td>
2711 <td class="cff-context"><?php _e('Added to the end of an album name. Eg. (6 photos)'); ?></td>
2712 </tr>
2713
2714 <tr class="cff-table-header"><th colspan="3"><?php _e('Date'); ?></th></tr>
2715 <tr>
2716 <td><label for="cff_photos_text" class="bump-left"><?php _e('"Posted _ hours ago" text'); ?></label></td>
2717 <td class="cff-translate-date">
2718
2719 <label for="cff_translate_second"><?php _e("second"); ?></label>
2720 <input name="cff_translate_second" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_second ) ); ?>" size="20" />
2721 <br />
2722 <label for="cff_translate_seconds"><?php _e("seconds"); ?></label>
2723 <input name="cff_translate_seconds" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_seconds ) ); ?>" size="20" />
2724 <br />
2725 <label for="cff_translate_minute"><?php _e("minute"); ?></label>
2726 <input name="cff_translate_minute" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minute ) ); ?>" size="20" />
2727 <br />
2728 <label for="cff_translate_minutes"><?php _e("minutes"); ?></label>
2729 <input name="cff_translate_minutes" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_minutes ) ); ?>" size="20" />
2730 <br />
2731 <label for="cff_translate_hour"><?php _e("hour"); ?></label>
2732 <input name="cff_translate_hour" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hour ) ); ?>" size="20" />
2733 <br />
2734 <label for="cff_translate_hours"><?php _e("hours"); ?></label>
2735 <input name="cff_translate_hours" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_hours ) ); ?>" size="20" />
2736 <br />
2737 <label for="cff_translate_day"><?php _e("day"); ?></label>
2738 <input name="cff_translate_day" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_day ) ); ?>" size="20" />
2739 <br />
2740 <label for="cff_translate_days"><?php _e("days"); ?></label>
2741 <input name="cff_translate_days" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_days ) ); ?>" size="20" />
2742 <br />
2743 <label for="cff_translate_week"><?php _e("week"); ?></label>
2744 <input name="cff_translate_week" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_week ) ); ?>" size="20" />
2745 <br />
2746 <label for="cff_translate_weeks"><?php _e("weeks"); ?></label>
2747 <input name="cff_translate_weeks" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_weeks ) ); ?>" size="20" />
2748 <br />
2749 <label for="cff_translate_month"><?php _e("month"); ?></label>
2750 <input name="cff_translate_month" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_month ) ); ?>" size="20" />
2751 <br />
2752 <label for="cff_translate_months"><?php _e("months"); ?></label>
2753 <input name="cff_translate_months" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_months ) ); ?>" size="20" />
2754 <br />
2755 <label for="cff_translate_year"><?php _e("year"); ?></label>
2756 <input name="cff_translate_year" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_year ) ); ?>" size="20" />
2757 <br />
2758 <label for="cff_translate_years"><?php _e("years"); ?></label>
2759 <input name="cff_translate_years" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_years ) ); ?>" size="20" />
2760 <br />
2761 <label for="cff_translate_ago"><?php _e("ago"); ?></label>
2762 <input name="cff_translate_ago" type="text" value="<?php echo stripslashes( esc_attr( $cff_translate_ago ) ); ?>" size="20" />
2763 </td>
2764 <td class="cff-context"><?php _e('Used to translate the "Posted _ days ago" date text'); ?></td>
2765 </tr>
2766
2767 </tbody>
2768 </table>
2769
2770 <?php submit_button(); ?>
2771 <a href="https://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.png' , __FILE__ ) ?>" /></a>
2772 <?php } //End Custom Text tab ?>
2773
2774 </form>
2775
2776 <hr />
2777 <h3><?php _e('Like the plugin? Help spread the word!'); ?></h3>
2778
2779 <!-- TWITTER -->
2780 <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>
2781 <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>
2782 <style type="text/css">
2783 #twitter-widget-0{ float: left; width: 100px !important; }
2784 .IN-widget{ margin-right: 20px; }
2785 </style>
2786
2787 <!-- FACEBOOK -->
2788 <div id="fb-root" style="display: none;"></div>
2789 <script>(function(d, s, id) {
2790 var js, fjs = d.getElementsByTagName(s)[0];
2791 if (d.getElementById(id)) return;
2792 js = d.createElement(s); js.id = id;
2793 js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=640861236031365&version=v2.0";
2794 fjs.parentNode.insertBefore(js, fjs);
2795 }(document, 'script', 'facebook-jssdk'));</script>
2796 <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>
2797
2798 <!-- LINKEDIN -->
2799 <script src="//platform.linkedin.com/in.js" type="text/javascript">
2800 lang: en_US
2801 </script>
2802 <script type="IN/Share" data-url="https://wordpress.org/plugins/custom-facebook-feed/"></script>
2803
2804 <!-- GOOGLE + -->
2805 <script src="https://apis.google.com/js/platform.js" async defer></script>
2806 <div class="g-plusone" data-size="medium" data-href="https://wordpress.org/plugins/custom-facebook-feed/"></div>
2807
2808 <?php
2809 } //End Style_Page
2810 //Enqueue admin styles
2811 function cff_admin_style() {
2812 wp_register_style( 'custom_wp_admin_css', plugin_dir_url( __FILE__ ) . 'css/cff-admin-style.css?7', false, '1.0.0' );
2813 wp_enqueue_style( 'custom_wp_admin_css' );
2814 wp_enqueue_style( 'cff-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '4.0.3' );
2815 wp_enqueue_style( 'wp-color-picker' );
2816 }
2817 add_action( 'admin_enqueue_scripts', 'cff_admin_style' );
2818 //Enqueue admin scripts
2819 function cff_admin_scripts() {
2820 wp_enqueue_script( 'cff_admin_script', plugin_dir_url( __FILE__ ) . 'js/cff-admin-scripts.js?7' );
2821 if( !wp_script_is('jquery-ui-draggable') ) {
2822 wp_enqueue_script(
2823 array(
2824 'jquery',
2825 'jquery-ui-core',
2826 'jquery-ui-draggable'
2827 )
2828 );
2829 }
2830 wp_enqueue_script(
2831 array(
2832 'hoverIntent',
2833 'wp-color-picker'
2834 )
2835 );
2836 }
2837 add_action( 'admin_enqueue_scripts', 'cff_admin_scripts' );
2838
2839 // Add a Settings link to the plugin on the Plugins page
2840 $cff_plugin_file = 'custom-facebook-feed/custom-facebook-feed.php';
2841 add_filter( "plugin_action_links_{$cff_plugin_file}", 'cff_add_settings_link', 10, 2 );
2842
2843 //modify the link by unshifting the array
2844 function cff_add_settings_link( $links, $file ) {
2845 $cff_settings_link = '<a href="' . admin_url( 'admin.php?page=cff-top' ) . '">' . __( 'Settings', 'cff-top' ) . '</a>';
2846 array_unshift( $links, $cff_settings_link );
2847
2848 return $links;
2849 }
2850 ?>