Twitter_Helpers::get_user_name()

Displays the twitter handle of the user in settings description.


Description Description

.


Top ↑

Return Return

(string) The twitter handle html.


Source Source

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

	public function get_user_name() {

		$twitter_client = $this->get_client();
		ob_start();
		?>
		<?php if ( false !== $twitter_client ) : ?>
			<div class="uo-twitter-user-info">
				<div class="uo-twitter-user-info__avatar">
					<span class="dashicons dashicons-twitter"></span>
				</div>
				<?php if ( isset( $twitter_client['screen_name'] ) ) : ?>
				<div class="uo-twitter-user-info__handle">
					<?php echo esc_html( '@' . $twitter_client['screen_name'] ); ?>
				</div>
				<?php endif; ?>
			</div>
		<?php endif; ?>
		<?php
		return ob_get_clean();

	}