PluginProbe ʕ •ᴥ•ʔ
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress / 1.0
Smash Balloon Social Post Feed – Simple Social Feeds for WordPress v1.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 13 years ago img 13 years ago README.txt 13 years ago custom-facebook-feed-admin.php 13 years ago custom-facebook-feed.php 13 years ago gpl-2.0.txt 13 years ago
custom-facebook-feed-admin.php
123 lines
1 <?php
2 function cff_menu() {
3 add_menu_page('Settings', 'Custom Facebook Feed', 'manage_options', 'cff-top', 'cff_settings_page');
4 }
5 add_action('admin_menu', 'cff_menu');
6
7 //Create Settings page
8 function cff_settings_page() {
9
10 //Declare variables for fields
11 $hidden_field_name = 'cff_submit_hidden';
12 $access_token = 'cff_access_token';
13 $page_id = 'cff_page_id';
14 $num_show = 'cff_num_show';
15
16 // Read in existing option value from database
17 $access_token_val = get_option( $access_token );
18 $page_id_val = get_option( $page_id );
19 $num_show_val = get_option( $num_show );
20
21 // See if the user has posted us some information. If they did, this hidden field will be set to 'Y'.
22 if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {
23 // Read their posted value
24 $access_token_val = $_POST[ $access_token ];
25 $page_id_val = $_POST[ $page_id ];
26 $num_show_val = $_POST[ $num_show ];
27
28 // Save the posted value in the database
29 update_option( $access_token, $access_token_val );
30 update_option( $page_id, $page_id_val );
31 update_option( $num_show, $num_show_val );
32
33 // Put an settings updated message on the screen
34 ?>
35 <div class="updated"><p><strong><?php _e('Settings saved.', 'custom-facebook-feed' ); ?></strong></p></div>
36
37 <?php } ?>
38
39 <div class="wrap">
40
41 <h2><?php _e('Custom Facebook Feed'); ?></h2>
42
43 <form name="form1" method="post" action="">
44
45 <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
46
47
48 <h3><?php _e('Feed Settings'); ?></h3>
49
50
51 <table class="form-table">
52
53 <tbody>
54
55 <tr valign="top">
56
57 <th scope="row"><?php _e('Access Token'); ?></th>
58
59 <td>
60
61 <input name="cff_access_token" type="text" value="<?php esc_attr_e( $access_token_val ); ?>" size="60" />
62
63 <a href="http://smashballoon.com/custom-facebook-feed/access-token/" target="_blank">How to get an Access Token</a>
64
65 </td>
66
67 </tr>
68
69 <tr valign="top">
70
71 <th scope="row"><?php _e('Page ID'); ?></th>
72
73 <td>
74
75 <input name="cff_page_id" type="text" value="<?php esc_attr_e( $page_id_val ); ?>" size="60" />
76
77 <a href="http://smashballoon.com/custom-facebook-feed/faq/" target="_blank">What's my Page ID?</a>
78
79 </td>
80
81 </tr>
82
83 <tr valign="top">
84
85 <th scope="row"><?php _e('Number of posts to display'); ?></th>
86
87 <td>
88
89 <input name="cff_num_show" type="text" value="<?php esc_attr_e( $num_show_val ); ?>" size="4" />
90
91 </td>
92
93 </tr>
94
95 </tbody>
96
97 </table>
98
99 <?php submit_button(); ?>
100
101
102 </form>
103
104 <hr />
105
106 <h4>How to use</h4>
107
108 <p>Copy and paste this shortcode directly into the page, post or widget where you'd like the feed to show up:</p>
109
110 <input type="text" value="[custom-facebook-feed]" size="23" />
111
112 <p>You can override the Page ID and the number of posts directly in the shortcode like so:</p>
113
114 <p>[custom-facebook-feed <b>id=Your_Page_ID show=3</b>]</p>
115
116 <br /><br /><a href="http://smashballoon.com/custom-facebook-feed/" target="_blank">Plugin Support</a>
117
118 <br /><br /><br />
119 <a href="http://smashballoon.com/custom-facebook-feed/" target="_blank"><img src="<?php echo plugins_url( 'img/pro.jpg' , __FILE__ ) ?>" /></a>
120
121 <?php
122 } //End Settings_Page
123 ?>