Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
added in basic comment functionality. need to add feed posting and fb…
Browse files Browse the repository at this point in the history
… specific fields to wp comments
  • Loading branch information
root committed Jul 30, 2012
1 parent 2ae255c commit 721c079
Show file tree
Hide file tree
Showing 4 changed files with 489 additions and 361 deletions.
29 changes: 29 additions & 0 deletions fb-admin-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,33 @@ function fb_admin_menu_settings() {
add_action( 'admin_print_scripts', 'fb_admin_scripts' );
}


/**
* Adds options area for managing old posts
*/
function fb_retroactive_post_options() {
$parent = array(
'name' => 'retroactive_posts',
'type' => 'checkbox',
'label' => __('Manage Old Posts', 'facebook'),
'description' => __('These options decide what to do with posts published before the Facebook plugin was activated.', 'facebook'),
'image' => plugins_url( 'images/settings_social_publisher.png', __FILE__)
);

$children = array(
array(
'name' => 'override_old_posts',
'label' => "Preserve WP comments on pages published before the Facebook plugin was added.",
'type' => 'checkbox',
'default' => true,
'help_text' => __( 'Publish new posts to the author\'s Facebook Timeline and allow mentioning friends. You must setup Open Graph in your App Settings. Enable the feature to learn how.', 'facebook' ),
'help_link' => 'http://developers.facebook.com/wordpress#author-og-setup',
)
);

fb_construct_fields('settings', $children, $parent);
}

/**
* The settings page
*
Expand Down Expand Up @@ -349,6 +376,7 @@ function fb_settings_page() {
echo '<p>' . sprintf( esc_html( __( 'These settings affect Pages and Posts only. Additional Social Plugins are also available in the %sWidgets settings%s.', 'facebook' ) ), '<a href="widgets.php">', '</a>' );

fb_notify_user_of_plugin_conflicts();
fb_retroactive_post_options();
fb_get_social_publisher_fields();
fb_get_like_fields();
fb_get_subscribe_fields();
Expand Down Expand Up @@ -629,3 +657,4 @@ function fb_options_validate_plugin($array, $label_prefix, $sanitize=true) {
}

?>

Loading

0 comments on commit 721c079

Please sign in to comment.