Twitter_Settings::output()

Creates the output of the settings page


Source Source

File: src/integrations/twitter/settings/settings-twitter.php

	public function output() {

		// Get the Twitter username
		$twitter_username = ! empty( $this->client['screen_name'] ) ? $this->client['screen_name'] : '';

		// Get the Twitter ID
		$twitter_id = ! empty( $this->client['user_id'] ) ? $this->client['user_id'] : '';

		// Get the link to connect Twitter
		$connect_twitter_url = $this->helpers->get_connect_url();

		// Get the link to disconnect Twitter
		$disconnect_twitter_url = $this->helpers->get_disconnect_url();

		// Check if the user JUST connected the workspace and returned
		// from the Slack connection page
		$user_just_connected_site = automator_filter_input( 'connect' ) === '1';

		// Load view
		include_once 'view-twitter.php';
	}