# share-button/1.16/classes/network/twitter.php

Social Share Buttons, version 1.16. 29 lines.

- Page: https://pluginprobe.com/plugins/share-button/1.16/code/classes/network/twitter.php
- Raw: https://pluginprobe.com/plugins/share-button/1.16/raw/classes/network/twitter.php
- Modified: 2021-04-15T10:53:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/share-button/1.16/code/classes/network/twitter.php#L10-L20`.

```php
<?php
namespace MBSocial;

use MaxButtons\maxField as maxField;
use MaxButtons\maxBlocks as maxBlocks;

class twitterNetwork extends mbNetwork
{
	protected $network = 'twitter';
	protected $icon = 'fa-twitter';
	protected $color = '#00aced';


	public function __construct()
	{
		// https://dev.twitter.com/web/tweet-button/web-intent
		$this->label = __('Tweet','mbsocial');
	 $this->share_url = 'https://twitter.com/intent/tweet/?url={url}&text={title}&via={twitter_handle}&hashtags={twitter_hashtags}';
		$this->profile_url = 'https://twitter.com/{profile}';

		$this->popup_dimensions = array(550, 320);

		parent::__construct();

	}


}

```
