\Publicize_UI

Only user facing pieces of Publicize are found here.

Summary

Methods
Properties
Constants
__construct()
sharing_menu()
management_page()
load_assets()
connected_notice()
denied_notice()
admin_page()
global_checkbox()
broken_connection()
options_page_other()
post_page_metabox_assets()
post_page_metabox()
$publicize
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$publicize

$publicize

Contains an instance of class 'publicize' which loads Keyring, sets up services, etc.

Methods

__construct()

__construct()

Hooks into WordPress to display the various pieces of UI and load our assets

sharing_menu()

sharing_menu()

If the ShareDaddy plugin is not active we need to add the sharing settings page to the menu still

management_page()

management_page()

Management page to load if Sharedaddy is not active so the 'pre_admin_screen_sharing' action exists.

load_assets()

load_assets()

styling for the sharing screen and popups JS for the options and switching

connected_notice()

connected_notice( $service_name)

Parameters

$service_name

denied_notice()

denied_notice()

admin_page()

admin_page()

Lists the current user's publicized accounts for the blog looks exactly like Publicize v1 for now, UI and functionality updates will come after the move to keyring

global_checkbox()

global_checkbox( $service_name,  $id)

Parameters

$service_name
$id

broken_connection()

broken_connection( $service_name,  $id)

Parameters

$service_name
$id

options_page_other()

options_page_other( $service_name)

Parameters

$service_name

post_page_metabox_assets()

post_page_metabox_assets()

CSS for styling the publicize message box and counter that displays on the post page.

There is also some Javascript for length counting and some basic display effects.

post_page_metabox()

post_page_metabox()

Controls the metabox that is displayed on the post page Allows the user to customize the message that will be sent out to the social network, as well as pick which networks to publish to. Also displays the character counter and some other information.