PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 1.4.1
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v1.4.1
4.8.1 trunk 1.0 1.1 1.12.1 1.2.3 1.2.4 1.2.5 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.5.1 1.5.2 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.4.1 1.6.5 1.6.5.1 1.6.6 1.6.6.1 1.6.6.2 1.6.6.3 1.6.7 1.6.7.1 1.6.8 1.6.8.1 1.6.8.2 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.9.0 1.9.1 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.8.1 1.9.9 1.9.9.1 1.9.9.2 1.9.9.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.10 2.11 2.11.1 2.12 2.12.1 2.12.2 2.12.3 2.12.4 2.13 2.14 2.14.1 2.15 2.15.1 2.16 2.16.1 2.17 2.17.1 2.18 2.18.1 2.18.2 2.18.3 2.19 2.19.1 2.19.2 2.19.3 2.2 2.2.1 2.3 2.3.1 2.3.10 2.3.2 2.3.3 2.3.4 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.1.1 2.4.1.2 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.5 2.5.1 2.5.2 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.7.5 4.7.6 4.7.7
custom-facebook-feed / custom-facebook-feed-admin.php
custom-facebook-feed Last commit date
css 12 years ago img 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
731 lines
1 <?php
2 function cff_menu() {
3 add_menu_page(
4 '',
5 'Facebook Feed',
6 'manage_options',
7 'cff-top',
8 'cff_settings_page'
9 );
10 add_submenu_page(
11 'cff-top',
12 'Settings',
13 'Settings',
14 'manage_options',
15 'cff-top',
16 'cff_settings_page'
17 );
18 }
19 add_action('admin_menu', 'cff_menu');
20 //Add styling page
21 function cff_styling_menu() {
22 add_submenu_page(
23 'cff-top',
24 'Layout & Style',
25 'Layout & Style',
26 'manage_options',
27 'cff-style',
28 'cff_style_page'
29 );
30 }
31 add_action('admin_menu', 'cff_styling_menu');
32
33
34 function cff_register_option() {
35 // creates our settings in the options table
36 register_setting('cff_license', 'cff_license_key', 'cff_sanitize_license' );
37 }
38 add_action('admin_init', 'cff_register_option');
39
40
41
42 //Create Settings page
43 function cff_settings_page() {
44 //Declare variables for fields
45 $hidden_field_name = 'cff_submit_hidden';
46 $access_token = 'cff_access_token';
47 $page_id = 'cff_page_id';
48 $num_show = 'cff_num_show';
49
50 // Read in existing option value from database
51 $access_token_val = get_option( $access_token );
52 $page_id_val = get_option( $page_id );
53 $num_show_val = get_option( $num_show );
54
55 // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
56 if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {
57 // Read their posted value
58 $access_token_val = $_POST[ $access_token ];
59 $page_id_val = $_POST[ $page_id ];
60 $num_show_val = $_POST[ $num_show ];
61 // Save the posted value in the database
62 update_option( $access_token, $access_token_val );
63 update_option( $page_id, $page_id_val );
64 update_option( $num_show, $num_show_val );
65 // Put an settings updated message on the screen
66 ?>
67 <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
68 <?php } ?>
69
70
71 <div class="wrap">
72 <h2><?php _e('Custom Facebook Feed Settings'); ?></h2>
73 <form name="form1" method="post" action="">
74 <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
75 <h3><?php _e('Configuration'); ?></h3>
76 <table class="form-table">
77 <tbody>
78 <tr valign="top">
79 <th scope="row"><?php _e('Access Token'); ?></th>
80 <td>
81 <input name="cff_access_token" type="text" value="<?php esc_attr_e( $access_token_val ); ?>" size="60" />
82 <a href="http://smashballoon.com/custom-facebook-feed/access-token/" target="_blank">How to get an Access Token</a>
83 </td>
84 </tr>
85 <tr valign="top">
86 <th scope="row"><?php _e('Page ID'); ?></th>
87 <td>
88 <input name="cff_page_id" type="text" value="<?php esc_attr_e( $page_id_val ); ?>" size="60" />
89 <a href="http://smashballoon.com/custom-facebook-feed/faq/" target="_blank">What's my Page ID?</a>
90 </td>
91 </tr>
92 <tr valign="top">
93 <th scope="row"><?php _e('Number of posts to display'); ?></th>
94 <td>
95 <input name="cff_num_show" type="text" value="<?php esc_attr_e( $num_show_val ); ?>" size="4" />
96 </td>
97 </tr>
98 </tbody>
99 </table>
100 <?php submit_button(); ?>
101 </form>
102 <hr />
103 <h4>Displaying your Feed</h4>
104 <p>Copy and paste this shortcode directly into the page, post or widget where you'd like the feed to show up:</p>
105 <input type="text" value="[custom-facebook-feed]" size="23" />
106 <p>You can override the settings above directly in the shortcode like so:</p>
107 <p>[custom-facebook-feed <b>id=Your_Page_ID show=3 titlelength=100 bodylength=150</b>]</p>
108 <br />
109 <hr />
110 <br />
111 <p>Please note that the free version of the plugin only displays text updates. For <b>photos, videos, comments and more</b> please upgrade to the <a href="http://smashballoon.com/custom-facebook-feed/wordpress-plugin/" target="_blank">Pro version</a> of the plugin.</p>
112
113 <p><a href="http://smashballoon.com/custom-facebook-feed/" target="_blank">Plugin Support</a> - Smash Balloon is committed to making this plugin better. Please let us know if you have had any issues when using this plugin so that we can continue to make it better!</p>
114 <br /><br /><br /><br />
115 <a href="http://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.jpg' , __FILE__ ) ?>" /></a>
116
117
118 <?php
119 } //End Settings_Page
120 //Create Style page
121 function cff_style_page() {
122
123 //Declare variables for fields
124 $style_hidden_field_name = 'cff_style_submit_hidden';
125 $defaults = array(
126 //Include
127 'cff_show_text' => true,
128 'cff_show_desc' => true,
129 'cff_show_date' => true,
130 'cff_show_event_title' => true,
131 'cff_show_event_details' => true,
132 'cff_show_link' => true,
133 'cff_show_like_box' => true,
134 //Typography
135 'cff_title_format' => 'p',
136 'cff_title_size' => 'inherit',
137 'cff_title_weight' => 'inherit',
138 'cff_title_color' => '',
139 'cff_body_size' => 'inherit',
140 'cff_body_weight' => 'inherit',
141 'cff_body_color' => '',
142 'cff_event_title_format' => 'p',
143 'cff_event_title_size' => 'inherit',
144 'cff_event_title_weight' => 'inherit',
145 'cff_event_title_color' => '',
146 'cff_event_details_size' => 'inherit',
147 'cff_event_details_weight' => 'inherit',
148 'cff_event_details_color' => '',
149 'cff_date_size' => 'inherit',
150 'cff_date_weight' => 'inherit',
151 'cff_date_color' => '',
152 'cff_link_size' => 'inherit',
153 'cff_link_weight' => 'inherit',
154 'cff_link_color' => '',
155 //Misc
156 'cff_feed_width' => '',
157 'cff_feed_height' => '',
158 'cff_feed_padding' => '',
159 'cff_like_box_position' => 'bottom',
160 'cff_bg_color' => '',
161 'cff_likebox_bg_color' => ''
162 );
163
164 //Save layout options in an array
165 add_option( 'cff_style_settings', $options );
166 $options = wp_parse_args(get_option('cff_style_settings'), $defaults);
167 //Set the page variables
168
169 //Include
170 $cff_show_text = $options[ 'cff_show_text' ];
171 $cff_show_desc = $options[ 'cff_show_desc' ];
172 $cff_show_date = $options[ 'cff_show_date' ];
173 $cff_show_event_title = $options[ 'cff_show_event_title' ];
174 $cff_show_event_details = $options[ 'cff_show_event_details' ];
175 $cff_show_link = $options[ 'cff_show_link' ];
176 $cff_show_like_box = $options[ 'cff_show_like_box' ];
177 //Typography
178 $cff_title_format = $options[ 'cff_title_format' ];
179 $cff_title_size = $options[ 'cff_title_size' ];
180 $cff_title_weight = $options[ 'cff_title_weight' ];
181 $cff_title_color = $options[ 'cff_title_color' ];
182 $cff_body_size = $options[ 'cff_body_size' ];
183 $cff_body_weight = $options[ 'cff_body_weight' ];
184 $cff_body_color = $options[ 'cff_body_color' ];
185 $cff_event_title_format = $options[ 'cff_event_title_format' ];
186 $cff_event_title_size = $options[ 'cff_event_title_size' ];
187 $cff_event_title_weight = $options[ 'cff_event_title_weight' ];
188 $cff_event_title_color = $options[ 'cff_event_title_color' ];
189 $cff_event_details_size = $options[ 'cff_event_details_size' ];
190 $cff_event_details_weight = $options[ 'cff_event_details_weight' ];
191 $cff_event_details_color = $options[ 'cff_event_details_color' ];
192 $cff_date_size = $options[ 'cff_date_size' ];
193 $cff_date_weight = $options[ 'cff_date_weight' ];
194 $cff_date_color = $options[ 'cff_date_color' ];
195 $cff_link_size = $options[ 'cff_link_size' ];
196 $cff_link_weight = $options[ 'cff_link_weight' ];
197 $cff_link_color = $options[ 'cff_link_color' ];
198 //Misc
199 $cff_feed_width = $options[ 'cff_feed_width' ];
200 $cff_feed_height = $options[ 'cff_feed_height' ];
201 $cff_feed_padding = $options[ 'cff_feed_padding' ];
202 $cff_like_box_position = $options[ 'cff_like_box_position' ];
203 $cff_open_links = $options[ 'cff_open_links' ];
204 $cff_bg_color = $options[ 'cff_bg_color' ];
205 $cff_likebox_bg_color = $options[ 'cff_likebox_bg_color' ];
206
207 // Texts lengths
208 $cff_title_length = 'cff_title_length';
209 $cff_body_length = 'cff_body_length';
210
211 // Read in existing option value from database
212 $cff_title_length_val = get_option( $cff_title_length );
213 $cff_body_length_val = get_option( $cff_body_length );
214
215 // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
216 if( isset($_POST[ $style_hidden_field_name ]) && $_POST[ $style_hidden_field_name ] == 'Y' ) {
217
218 // Read their posted value
219 $cff_title_length_val = $_POST[ $cff_title_length ];
220 $cff_body_length_val = $_POST[ $cff_body_length ];
221 // Save the posted value in the database
222 update_option( $cff_title_length, $cff_title_length_val );
223 update_option( $cff_body_length, $cff_body_length_val );
224
225 //Update the page variable
226 //Include
227 $cff_show_text = $_POST[ 'cff_show_text' ];
228 $cff_show_desc = $_POST[ 'cff_show_desc' ];
229 $cff_show_date = $_POST[ 'cff_show_date' ];
230 $cff_show_event_title = $_POST[ 'cff_show_event_title' ];
231 $cff_show_event_details = $_POST[ 'cff_show_event_details' ];
232 $cff_show_link = $_POST[ 'cff_show_link' ];
233 $cff_show_like_box = $_POST[ 'cff_show_like_box' ];
234 //Typography
235 $cff_title_format = $_POST[ 'cff_title_format' ];
236 $cff_title_size = $_POST[ 'cff_title_size' ];
237 $cff_title_weight = $_POST[ 'cff_title_weight' ];
238 $cff_title_color = $_POST[ 'cff_title_color' ];
239 $cff_body_size = $_POST[ 'cff_body_size' ];
240 $cff_body_weight = $_POST[ 'cff_body_weight' ];
241 $cff_body_color = $_POST[ 'cff_body_color' ];
242 $cff_event_title_format = $_POST[ 'cff_event_title_format' ];
243 $cff_event_title_size = $_POST[ 'cff_event_title_size' ];
244 $cff_event_title_weight = $_POST[ 'cff_event_title_weight' ];
245 $cff_event_title_color = $_POST[ 'cff_event_title_color' ];
246 $cff_event_details_size = $_POST[ 'cff_event_details_size' ];
247 $cff_event_details_weight = $_POST[ 'cff_event_details_weight' ];
248 $cff_event_details_color = $_POST[ 'cff_event_details_color' ];
249 $cff_date_size = $_POST[ 'cff_date_size' ];
250 $cff_date_weight = $_POST[ 'cff_date_weight' ];
251 $cff_date_color = $_POST[ 'cff_date_color' ];
252 $cff_link_size = $_POST[ 'cff_link_size' ];
253 $cff_link_weight = $_POST[ 'cff_link_weight' ];
254 $cff_link_color = $_POST[ 'cff_link_color' ];
255 //Misc
256 $cff_feed_width = $_POST[ 'cff_feed_width' ];
257 $cff_feed_height = $_POST[ 'cff_feed_height' ];
258 $cff_feed_padding = $_POST[ 'cff_feed_padding' ];
259 $cff_like_box_position = $_POST[ 'cff_like_box_position' ];
260 $cff_open_links = $_POST[ 'cff_open_links' ];
261 $cff_bg_color = $_POST[ 'cff_bg_color' ];
262 $cff_likebox_bg_color = $_POST[ 'cff_likebox_bg_color' ];
263
264 //Update the options in the array in the database
265 //Include
266 $options[ 'cff_show_text' ] = $cff_show_text;
267 $options[ 'cff_show_desc' ] = $cff_show_desc;
268 $options[ 'cff_show_date' ] = $cff_show_date;
269 $options[ 'cff_show_event_title' ] = $cff_show_event_title;
270 $options[ 'cff_show_event_details' ] = $cff_show_event_details;
271 $options[ 'cff_show_link' ] = $cff_show_link;
272 $options[ 'cff_show_like_box' ] = $cff_show_like_box;
273 //Typography
274 $options[ 'cff_title_format' ] = $cff_title_format;
275 $options[ 'cff_title_size' ] = $cff_title_size;
276 $options[ 'cff_title_weight' ] = $cff_title_weight;
277 $options[ 'cff_title_color' ] = $cff_title_color;
278 $options[ 'cff_body_size' ] = $cff_body_size;
279 $options[ 'cff_body_weight' ] = $cff_body_weight;
280 $options[ 'cff_body_color' ] = $cff_body_color;
281 $options[ 'cff_event_title_format' ] = $cff_event_title_format;
282 $options[ 'cff_event_title_size' ] = $cff_event_title_size;
283 $options[ 'cff_event_title_weight' ] = $cff_event_title_weight;
284 $options[ 'cff_event_title_color' ] = $cff_event_title_color;
285 $options[ 'cff_event_details_size' ] = $cff_event_details_size;
286 $options[ 'cff_event_details_weight' ] = $cff_event_details_weight;
287 $options[ 'cff_event_details_color' ] = $cff_event_details_color;
288 $options[ 'cff_date_size' ] = $cff_date_size;
289 $options[ 'cff_date_weight' ] = $cff_date_weight;
290 $options[ 'cff_date_color' ] = $cff_date_color;
291 $options[ 'cff_link_size' ] = $cff_link_size;
292 $options[ 'cff_link_weight' ] = $cff_link_weight;
293 $options[ 'cff_link_color' ] = $cff_link_color;
294 //Misc
295 $options[ 'cff_feed_width' ] = $cff_feed_width;
296 $options[ 'cff_feed_height' ] = $cff_feed_height;
297 $options[ 'cff_feed_padding' ] = $cff_feed_padding;
298 $options[ 'cff_like_box_position' ] = $cff_like_box_position;
299 $options[ 'cff_open_links' ] = $cff_open_links;
300 $options[ 'cff_bg_color' ] = $cff_bg_color;
301 $options[ 'cff_likebox_bg_color' ] = $cff_likebox_bg_color;
302
303 //Update the array
304 update_option( 'cff_style_settings', $options );
305 // Put an settings updated message on the screen
306 ?>
307 <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
308 <?php } ?>
309
310
311 <div class="wrap">
312 <h2><?php _e('Custom Facebook Feed - Layout and Style'); ?></h2>
313 <form name="form1" method="post" action="">
314 <input type="hidden" name="<?php echo $style_hidden_field_name; ?>" value="Y">
315 <br />
316 <hr />
317 <table class="form-table">
318 <tbody>
319 <h3><?php _e('General'); ?></h3>
320 <tr valign="top">
321 <th scope="row"><?php _e('Feed Width'); ?></th>
322 <td>
323 <input name="cff_feed_width" type="text" value="<?php esc_attr_e( $cff_feed_width ); ?>" size="6" />
324 <span>Eg. 500px, 50%, 10em. <i style="color: #666; font-size: 11px; margin-left: 5px;">Default is 100%</i></span>
325 </td>
326 </tr>
327 <tr valign="top">
328 <th scope="row"><?php _e('Feed Height'); ?></th>
329 <td>
330 <input name="cff_feed_height" type="text" value="<?php esc_attr_e( $cff_feed_height ); ?>" size="6" />
331 <span>Eg. 500px, 50em. <i style="color: #666; font-size: 11px; margin-left: 5px;">Leave empty to set no maximum height. If the feed exceeds this height then a scroll bar will be used.</i></span>
332 </td>
333 </tr>
334 <th scope="row"><?php _e('Feed Padding'); ?></th>
335 <td>
336 <input name="cff_feed_padding" type="text" value="<?php esc_attr_e( $cff_feed_padding ); ?>" size="6" />
337 <span>Eg. 20px, 5%. <i style="color: #666; font-size: 11px; margin-left: 5px;">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>
338 </td>
339 </tr>
340 <tr valign="top">
341 <th scope="row"><?php _e('Feed Background Color'); ?></th>
342 <td>
343 <label for="cff_bg_color">#</label>
344 <input name="cff_bg_color" type="text" value="<?php esc_attr_e( $cff_bg_color ); ?>" size="10" />
345 <span>Eg. ED9A00 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a></span>
346 </td>
347 </tr>
348 </tbody>
349 </table>
350 <?php submit_button(); ?>
351 <hr />
352 <h3><?php _e('Post Layout'); ?></h3>
353 <table class="form-table">
354 <tbody>
355 <tr>
356 <td><p>Choose a post layout:</p></td>
357
358 <td>
359 <select name="cff_preset_layout" disabled>
360 <option>Thumbnail</option>
361 <option>Half-width</option>
362 <option>Full-width</option>
363 </select>
364
365 <i style="color: #666; font-size: 11px; margin-left: 5px;"><a href="http://smashballoon.com/custom-facebook-feed/" target="_blank">Upgrade to Pro</a></i>
366 </td>
367 </tr>
368
369 <tr valign="top">
370 <th scope="row"><?php _e('Include the following in posts (when applicable):'); ?></th>
371 <td>
372 <div>
373 <input name="cff_show_text" type="checkbox" id="cff_show_text" <?php if($cff_show_text == true) echo "checked"; ?> />
374 <label for="cff_show_text">Post text</label>
375 </div>
376 <div>
377 <input type="checkbox" name="cff_show_desc" id="cff_show_desc" <?php if($cff_show_desc == true) echo 'checked="checked"' ?> />
378 <label for="cff_show_desc">Video/link description</label>
379 </div>
380 <div>
381 <input type="checkbox" name="cff_show_date" id="cff_show_date" <?php if($cff_show_date == true) echo 'checked="checked"' ?> />
382 <label for="cff_show_date">Date</label>
383 </div>
384 <div>
385 <input type="checkbox" disabled />
386 <label style="color: #999;">Photos/videos</label><i style="color: #666; font-size: 11px; margin-left: 5px;"><a href="http://smashballoon.com/custom-facebook-feed/" target="_blank">Upgrade to Pro</a></i>
387 </div>
388
389 <div>
390 <input type="checkbox" name="cff_show_event_title" id="cff_show_event_title" <?php if($cff_show_event_title == true) echo 'checked="checked"' ?> />
391 <label for="cff_show_event_title">Event title</label>
392 </div>
393 <div>
394 <input type="checkbox" name="cff_show_event_details" id="cff_show_event_details" <?php if($cff_show_event_details == true) echo 'checked="checked"' ?> />
395 <label for="cff_show_event_details">Event details</label>
396 </div>
397 <div>
398 <input type="checkbox" disabled />
399 <label style="color: #999;">Like/shares/comments</label><i style="color: #666; font-size: 11px; margin-left: 5px;"><a href="http://smashballoon.com/custom-facebook-feed/" target="_blank">Upgrade to Pro</a></i>
400 </div>
401 <div>
402 <input type="checkbox" name="cff_show_link" id="cff_show_link" <?php if($cff_show_link == true) echo 'checked="checked"' ?> />
403 <label for="cff_show_link">View on Facebook/View Link</label>
404 </div>
405 </td>
406 </tr>
407 </tbody>
408 </table>
409 <?php submit_button(); ?>
410 <hr />
411
412
413 <h3><?php _e('Typography'); ?></h3>
414 <table class="form-table">
415 <tbody>
416 <tr valign="top">
417 <th scope="row"><?php _e('Post Text'); ?></th>
418
419 <!-- <p>What does inherit mean?</p> -->
420 <td>
421 <label for="cff_title_format">Format</label>
422 <select name="cff_title_format">
423 <option value="p" <?php if($cff_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
424 <option value="h3" <?php if($cff_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
425 <option value="h4" <?php if($cff_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
426 <option value="h5" <?php if($cff_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
427 <option value="h6" <?php if($cff_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
428 </select>
429 &nbsp;&nbsp;
430 <label for="cff_title_size">Font Size</label>
431 <select name="cff_title_size">
432 <option value="inherit" <?php if($cff_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
433 <option value="10" <?php if($cff_title_size == "10") echo 'selected="selected"' ?> >10px</option>
434 <option value="11" <?php if($cff_title_size == "11") echo 'selected="selected"' ?> >11px</option>
435 <option value="12" <?php if($cff_title_size == "12") echo 'selected="selected"' ?> >12px</option>
436 <option value="14" <?php if($cff_title_size == "14") echo 'selected="selected"' ?> >14px</option>
437 <option value="16" <?php if($cff_title_size == "16") echo 'selected="selected"' ?> >16px</option>
438 <option value="18" <?php if($cff_title_size == "18") echo 'selected="selected"' ?> >18px</option>
439 <option value="20" <?php if($cff_title_size == "20") echo 'selected="selected"' ?> >20px</option>
440 <option value="24" <?php if($cff_title_size == "24") echo 'selected="selected"' ?> >24px</option>
441 <option value="28" <?php if($cff_title_size == "28") echo 'selected="selected"' ?> >28px</option>
442 <option value="32" <?php if($cff_title_size == "32") echo 'selected="selected"' ?> >32px</option>
443 <option value="36" <?php if($cff_title_size == "36") echo 'selected="selected"' ?> >36px</option>
444 <option value="42" <?php if($cff_title_size == "42") echo 'selected="selected"' ?> >42px</option>
445 <option value="48" <?php if($cff_title_size == "48") echo 'selected="selected"' ?> >48px</option>
446 <option value="60" <?php if($cff_title_size == "54") echo 'selected="selected"' ?> >54px</option>
447 <option value="60" <?php if($cff_title_size == "60") echo 'selected="selected"' ?> >60px</option>
448 </select>
449 &nbsp;&nbsp;
450 <label for="cff_title_weight">Font Weight</label>
451 <select name="cff_title_weight">
452 <option value="inherit" <?php if($cff_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
453 <option value="normal" <?php if($cff_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
454 <option value="bold" <?php if($cff_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
455 </select>
456 &nbsp;&nbsp;
457 <label for="cff_title_color">Font Color&nbsp;&nbsp;#</label>
458 <input name="cff_title_color" type="text" value="<?php esc_attr_e( $cff_title_color ); ?>" size="10" />
459 <span>Eg. ED9A00 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a></span>
460 </td>
461 </tr>
462 <tr valign="top">
463 <th scope="row"><?php _e('Link Description'); ?></th>
464
465 <td>
466 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
467 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
468 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
469 <label for="cff_body_size">Font Size</label>
470 <select name="cff_body_size">
471 <option value="inherit" <?php if($cff_body_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
472 <option value="10" <?php if($cff_body_size == "10") echo 'selected="selected"' ?> >10px</option>
473 <option value="11" <?php if($cff_body_size == "11") echo 'selected="selected"' ?> >11px</option>
474 <option value="12" <?php if($cff_body_size == "12") echo 'selected="selected"' ?> >12px</option>
475 <option value="14" <?php if($cff_body_size == "14") echo 'selected="selected"' ?> >14px</option>
476 <option value="16" <?php if($cff_body_size == "16") echo 'selected="selected"' ?> >16px</option>
477 <option value="18" <?php if($cff_body_size == "18") echo 'selected="selected"' ?> >18px</option>
478 <option value="20" <?php if($cff_body_size == "20") echo 'selected="selected"' ?> >20px</option>
479 <option value="24" <?php if($cff_body_size == "24") echo 'selected="selected"' ?> >24px</option>
480 <option value="28" <?php if($cff_body_size == "28") echo 'selected="selected"' ?> >28px</option>
481 <option value="32" <?php if($cff_body_size == "32") echo 'selected="selected"' ?> >32px</option>
482 <option value="36" <?php if($cff_body_size == "36") echo 'selected="selected"' ?> >36px</option>
483 <option value="42" <?php if($cff_body_size == "42") echo 'selected="selected"' ?> >42px</option>
484 <option value="48" <?php if($cff_body_size == "48") echo 'selected="selected"' ?> >48px</option>
485 <option value="60" <?php if($cff_body_size == "54") echo 'selected="selected"' ?> >54px</option>
486 <option value="60" <?php if($cff_body_size == "60") echo 'selected="selected"' ?> >60px</option>
487 </select>
488 &nbsp;&nbsp;
489 <label for="cff_body_weight">Font Weight</label>
490 <select name="cff_body_weight">
491 <option value="inherit" <?php if($cff_body_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
492 <option value="normal" <?php if($cff_body_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
493 <option value="bold" <?php if($cff_body_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
494 </select>
495 &nbsp;&nbsp;
496 <label for="cff_body_color">Font Color&nbsp;&nbsp;#</label>
497 <input name="cff_body_color" type="text" value="<?php esc_attr_e( $cff_body_color ); ?>" size="10" />
498 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a>
499 </td>
500 </tr>
501 <tr valign="top">
502 <th scope="row"><?php _e('Event Title'); ?></th>
503
504 <td>
505 <label for="cff_event_title_format">Format</label>
506 <select name="cff_event_title_format">
507 <option value="p" <?php if($cff_event_title_format == "p") echo 'selected="selected"' ?> >Paragraph</option>
508 <option value="h3" <?php if($cff_event_title_format == "h3") echo 'selected="selected"' ?> >Heading 3</option>
509 <option value="h4" <?php if($cff_event_title_format == "h4") echo 'selected="selected"' ?> >Heading 4</option>
510 <option value="h5" <?php if($cff_event_title_format == "h5") echo 'selected="selected"' ?> >Heading 5</option>
511 <option value="h6" <?php if($cff_event_title_format == "h6") echo 'selected="selected"' ?> >Heading 6</option>
512 </select>
513 &nbsp;&nbsp;
514 <label for="cff_event_title_size">Font Size</label>
515 <select name="cff_event_title_size">
516 <option value="inherit" <?php if($cff_event_title_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
517 <option value="10" <?php if($cff_event_title_size == "10") echo 'selected="selected"' ?> >10px</option>
518 <option value="11" <?php if($cff_event_title_size == "11") echo 'selected="selected"' ?> >11px</option>
519 <option value="12" <?php if($cff_event_title_size == "12") echo 'selected="selected"' ?> >12px</option>
520 <option value="14" <?php if($cff_event_title_size == "14") echo 'selected="selected"' ?> >14px</option>
521 <option value="16" <?php if($cff_event_title_size == "16") echo 'selected="selected"' ?> >16px</option>
522 <option value="18" <?php if($cff_event_title_size == "18") echo 'selected="selected"' ?> >18px</option>
523 <option value="20" <?php if($cff_event_title_size == "20") echo 'selected="selected"' ?> >20px</option>
524 <option value="24" <?php if($cff_event_title_size == "24") echo 'selected="selected"' ?> >24px</option>
525 <option value="28" <?php if($cff_event_title_size == "28") echo 'selected="selected"' ?> >28px</option>
526 <option value="32" <?php if($cff_event_title_size == "32") echo 'selected="selected"' ?> >32px</option>
527 <option value="36" <?php if($cff_event_title_size == "36") echo 'selected="selected"' ?> >36px</option>
528 <option value="42" <?php if($cff_event_title_size == "42") echo 'selected="selected"' ?> >42px</option>
529 <option value="48" <?php if($cff_event_title_size == "48") echo 'selected="selected"' ?> >48px</option>
530 <option value="60" <?php if($cff_event_title_size == "54") echo 'selected="selected"' ?> >54px</option>
531 <option value="60" <?php if($cff_event_title_size == "60") echo 'selected="selected"' ?> >60px</option>
532 </select>
533 &nbsp;&nbsp;
534 <label for="cff_event_title_weight">Font Weight</label>
535 <select name="cff_event_title_weight">
536 <option value="inherit" <?php if($cff_event_title_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
537 <option value="normal" <?php if($cff_event_title_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
538 <option value="bold" <?php if($cff_event_title_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
539 </select>
540 &nbsp;&nbsp;
541 <label for="cff_event_title_color">Font Color&nbsp;&nbsp;#</label>
542 <input name="cff_event_title_color" type="text" value="<?php esc_attr_e( $cff_event_title_color ); ?>" size="10" />
543 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a>
544 </td>
545 </tr>
546 <tr valign="top">
547 <th scope="row"><?php _e('Event Details'); ?></th>
548
549 <td>
550 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
551 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
552 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
553 <label for="cff_event_details_size">Font Size</label>
554 <select name="cff_event_details_size">
555 <option value="inherit" <?php if($cff_event_details_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
556 <option value="10" <?php if($cff_event_details_size == "10") echo 'selected="selected"' ?> >10px</option>
557 <option value="11" <?php if($cff_event_details_size == "11") echo 'selected="selected"' ?> >11px</option>
558 <option value="12" <?php if($cff_event_details_size == "12") echo 'selected="selected"' ?> >12px</option>
559 <option value="14" <?php if($cff_event_details_size == "14") echo 'selected="selected"' ?> >14px</option>
560 <option value="16" <?php if($cff_event_details_size == "16") echo 'selected="selected"' ?> >16px</option>
561 <option value="18" <?php if($cff_event_details_size == "18") echo 'selected="selected"' ?> >18px</option>
562 <option value="20" <?php if($cff_event_details_size == "20") echo 'selected="selected"' ?> >20px</option>
563 <option value="24" <?php if($cff_event_details_size == "24") echo 'selected="selected"' ?> >24px</option>
564 <option value="28" <?php if($cff_event_details_size == "28") echo 'selected="selected"' ?> >28px</option>
565 <option value="32" <?php if($cff_event_details_size == "32") echo 'selected="selected"' ?> >32px</option>
566 <option value="36" <?php if($cff_event_details_size == "36") echo 'selected="selected"' ?> >36px</option>
567 <option value="42" <?php if($cff_event_details_size == "42") echo 'selected="selected"' ?> >42px</option>
568 <option value="48" <?php if($cff_event_details_size == "48") echo 'selected="selected"' ?> >48px</option>
569 <option value="60" <?php if($cff_event_details_size == "54") echo 'selected="selected"' ?> >54px</option>
570 <option value="60" <?php if($cff_event_details_size == "60") echo 'selected="selected"' ?> >60px</option>
571 </select>
572 &nbsp;&nbsp;
573 <label for="cff_event_details_weight">Font Weight</label>
574 <select name="cff_event_details_weight">
575 <option value="inherit" <?php if($cff_event_details_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
576 <option value="normal" <?php if($cff_event_details_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
577 <option value="bold" <?php if($cff_event_details_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
578 </select>
579 &nbsp;&nbsp;
580 <label for="cff_event_details_color">Font Color&nbsp;&nbsp;#</label>
581 <input name="cff_event_details_color" type="text" value="<?php esc_attr_e( $cff_event_details_color ); ?>" size="10" />
582 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a>
583 </td>
584 </tr>
585 <tr valign="top">
586 <th scope="row"><?php _e('Date'); ?></th>
587
588 <td>
589 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
590 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
591 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
592 <label for="cff_date_size">Font Size</label>
593 <select name="cff_date_size">
594 <option value="inherit" <?php if($cff_date_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
595 <option value="10" <?php if($cff_date_size == "10") echo 'selected="selected"' ?> >10px</option>
596 <option value="11" <?php if($cff_date_size == "11") echo 'selected="selected"' ?> >11px</option>
597 <option value="12" <?php if($cff_date_size == "12") echo 'selected="selected"' ?> >12px</option>
598 <option value="14" <?php if($cff_date_size == "14") echo 'selected="selected"' ?> >14px</option>
599 <option value="16" <?php if($cff_date_size == "16") echo 'selected="selected"' ?> >16px</option>
600 <option value="18" <?php if($cff_date_size == "18") echo 'selected="selected"' ?> >18px</option>
601 <option value="20" <?php if($cff_date_size == "20") echo 'selected="selected"' ?> >20px</option>
602 <option value="24" <?php if($cff_date_size == "24") echo 'selected="selected"' ?> >24px</option>
603 <option value="28" <?php if($cff_date_size == "28") echo 'selected="selected"' ?> >28px</option>
604 <option value="32" <?php if($cff_date_size == "32") echo 'selected="selected"' ?> >32px</option>
605 <option value="36" <?php if($cff_date_size == "36") echo 'selected="selected"' ?> >36px</option>
606 <option value="42" <?php if($cff_date_size == "42") echo 'selected="selected"' ?> >42px</option>
607 <option value="48" <?php if($cff_date_size == "48") echo 'selected="selected"' ?> >48px</option>
608 <option value="60" <?php if($cff_date_size == "54") echo 'selected="selected"' ?> >54px</option>
609 <option value="60" <?php if($cff_date_size == "60") echo 'selected="selected"' ?> >60px</option>
610 </select>
611 &nbsp;&nbsp;
612 <label for="cff_date_weight">Font Weight</label>
613 <select name="cff_date_weight">
614 <option value="inherit" <?php if($cff_date_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
615 <option value="normal" <?php if($cff_date_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
616 <option value="bold" <?php if($cff_date_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
617 </select>
618 &nbsp;&nbsp;
619 <label for="cff_date_color">Font Color&nbsp;&nbsp;#</label>
620 <input name="cff_date_color" type="text" value="<?php esc_attr_e( $cff_date_color ); ?>" size="10" />
621 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a>
622 </td>
623 </tr>
624 <tr valign="top">
625 <th scope="row"><?php _e('Link to Facebook'); ?></th>
626
627 <!-- <p>What does inherit mean?</p> -->
628
629 <td>
630 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
631 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
632 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
633 <label for="cff_link_size">Font Size</label>
634 <select name="cff_link_size">
635 <option value="inherit" <?php if($cff_link_size == "inherit") echo 'selected="selected"' ?> >Inherit</option>
636 <option value="10" <?php if($cff_link_size == "10") echo 'selected="selected"' ?> >10px</option>
637 <option value="11" <?php if($cff_link_size == "11") echo 'selected="selected"' ?> >11px</option>
638 <option value="12" <?php if($cff_link_size == "12") echo 'selected="selected"' ?> >12px</option>
639 <option value="14" <?php if($cff_link_size == "14") echo 'selected="selected"' ?> >14px</option>
640 <option value="16" <?php if($cff_link_size == "16") echo 'selected="selected"' ?> >16px</option>
641 <option value="18" <?php if($cff_link_size == "18") echo 'selected="selected"' ?> >18px</option>
642 <option value="20" <?php if($cff_link_size == "20") echo 'selected="selected"' ?> >20px</option>
643 <option value="24" <?php if($cff_link_size == "24") echo 'selected="selected"' ?> >24px</option>
644 <option value="28" <?php if($cff_link_size == "28") echo 'selected="selected"' ?> >28px</option>
645 <option value="32" <?php if($cff_link_size == "32") echo 'selected="selected"' ?> >32px</option>
646 <option value="36" <?php if($cff_link_size == "36") echo 'selected="selected"' ?> >36px</option>
647 <option value="42" <?php if($cff_link_size == "42") echo 'selected="selected"' ?> >42px</option>
648 <option value="48" <?php if($cff_link_size == "48") echo 'selected="selected"' ?> >48px</option>
649 <option value="60" <?php if($cff_link_size == "54") echo 'selected="selected"' ?> >54px</option>
650 <option value="60" <?php if($cff_link_size == "60") echo 'selected="selected"' ?> >60px</option>
651 </select>
652 &nbsp;&nbsp;
653 <label for="cff_link_weight">Font Weight</label>
654 <select name="cff_link_weight">
655 <option value="inherit" <?php if($cff_link_weight == "inherit") echo 'selected="selected"' ?> >Inherit</option>
656 <option value="normal" <?php if($cff_link_weight == "normal") echo 'selected="selected"' ?> >Normal</option>
657 <option value="bold" <?php if($cff_link_weight == "bold") echo 'selected="selected"' ?> >Bold</option>
658 </select>
659 &nbsp;&nbsp;
660 <label for="cff_link_color">Font Color&nbsp;&nbsp;#</label>
661 <input name="cff_link_color" type="text" value="<?php esc_attr_e( $cff_link_color ); ?>" size="10" />
662 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a>
663 </td>
664 </tr>
665 <tr><i style="color: #666; font-size: 11px; margin-left: 5px;">'Inherit' means that the text will inherit the styles from your theme.</i></tr>
666 </tbody>
667 </table>
668 <br />
669 <hr />
670
671
672 <h3><?php _e('Likes, Shares and Comments'); ?></h3>
673 <p style="color: #666; font-size: 11px; font-style: italic; margin-left: 5px;"><a href="http://smashballoon.com/custom-facebook-feed/" target="_blank">Upgrade to Pro</a></p>
674
675 <br />
676 <hr />
677 <h3><?php _e('Misc'); ?></h3>
678 <table class="form-table">
679 <tbody>
680 <tr valign="top">
681 <th scope="row"><?php _e('Maximum Post Text Length'); ?></th>
682 <td>
683 <input name="cff_title_length" type="text" value="<?php esc_attr_e( $cff_title_length_val ); ?>" size="4" /> <span>Characters.</span> <i style="color: #666; font-size: 11px; margin-left: 5px;">(Leave empty to set no maximum length)</i>
684 </td>
685 </tr>
686 <tr valign="top">
687 <th scope="row"><?php _e('Maximum Link/Event Description Length'); ?></th>
688 <td>
689 <input name="cff_body_length" type="text" value="<?php esc_attr_e( $cff_body_length_val ); ?>" size="4" /> <span>Characters.</span> <i style="color: #666; font-size: 11px; margin-left: 5px;">(Leave empty to set no maximum length)</i>
690 </td>
691 </tr>
692 <tr valign="top">
693 <th scope="row"><?php _e('Show the Like Box'); ?></th>
694 <td>
695 <input type="checkbox" name="cff_show_like_box" id="cff_show_like_box" <?php if($cff_show_like_box == true) echo 'checked="checked"' ?> />
696 </td>
697 </tr>
698 <tr valign="top">
699 <th scope="row"><?php _e('Like Box Position'); ?></th>
700 <td>
701 <select name="cff_like_box_position">
702 <option value="bottom" <?php if($cff_like_box_position == "bottom") echo 'selected="selected"' ?> >Bottom</option>
703 <option value="top" <?php if($cff_like_box_position == "top") echo 'selected="selected"' ?> >Top</option>
704 </select>
705 </td>
706 </tr>
707 <tr valign="top">
708 <th scope="row"><?php _e('Like Box Background Color'); ?></th>
709 <td>
710 <label for="cff_likebox_bg_color">#</label>
711 <input name="cff_likebox_bg_color" type="text" value="<?php esc_attr_e( $cff_likebox_bg_color ); ?>" size="10" />
712 <a href="http://www.colorpicker.com/" target="_blank">Color Picker</a>
713 </td>
714 </tr>
715 </tbody>
716 </table>
717 <?php submit_button(); ?>
718 </form>
719
720 <hr />
721 <br />
722 <p>Please note that the free version of the plugin only displays text updates. For <b>photos, videos, comments and more</b> please upgrade to the <a href="http://smashballoon.com/custom-facebook-feed/wordpress-plugin/" target="_blank">Pro version</a> of the plugin.</p>
723
724 <p><a href="http://smashballoon.com/custom-facebook-feed/" target="_blank">Plugin Support</a> - Smash Balloon is committed to making this plugin better. Please let us know if you have had any issues when using this plugin so that we can continue to make it better!</p>
725 <br /><br /><br /><br />
726 <a href="http://smashballoon.com/custom-facebook-feed/demo" target="_blank"><img src="<?php echo plugins_url( 'img/pro.jpg' , __FILE__ ) ?>" /></a>
727
728
729 <?php
730 } //End Style_Page
731 ?>