Google_Calendar_Settings::set_properties()

Sets up the properties of the settings page


Source Source

File: src/integrations/google-calendar/settings/settings-google-calendar.php

	protected function set_properties() {

		$this->set_id( 'google-calendar' );

		$this->set_icon( 'google-calendar' );

		$this->set_name( 'Google Calendar' );

		$is_user_connected = false;

		if ( false !== $this->get_helper()->get_client() ) {
			$is_user_connected = true;
		}

		$this->set_status( $is_user_connected ? 'success' : '' );

		if ( $is_user_connected ) {
			$this->set_js( '/google-calendar/settings/assets/script.js' );
			$this->set_css( '/google-calendar/settings/assets/style.css' );
		}

	}