Slack_Settings::output()
Creates the output of the settings page
Source
File: src/integrations/slack/settings/settings-slack.php
public function output() { $slack_user_data = isset( $this->client->team ) ? $this->client->team : (object) array(); // Get the Slack channel $slack_workspace = ! empty( $slack_user_data->name ) ? $slack_user_data->name : ''; // Get the Slack ID $slack_id = ! empty( $slack_user_data->id ) ? $slack_user_data->id : ''; // Get the link to connect Slack $connect_slack_url = $this->helpers->get_connect_url(); // Get the link to disconnect Slack $disconnect_slack_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'; // Get the current bot name $bot_name = get_option( 'uap_automator_slack_api_bot_name', '' ); // Get the current bot icon $bot_icon = get_option( 'uap_automator_alck_api_bot_icon', '' ); // Load view include_once 'view-slack.php'; }
Expand full source code Collapse full source code View on Github