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