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