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

Social Share Buttons, version 0.9. 29 lines.

- Page: https://pluginprobe.com/plugins/share-button/0.9/code/classes/network/twitter.php
- Raw: https://pluginprobe.com/plugins/share-button/0.9/raw/classes/network/twitter.php
- Modified: 2017-11-22T15:53:42+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/0.9/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'; 
	
	
	public function __construct() 
	{
		// https://dev.twitter.com/web/tweet-button/web-intent 
		$this->label = __('Tweet','mbsocial');
		$this->share_url = 'https://twitter.com/intent/tweet/'; 
		$this->countable = false;
		$this->popup_dimension = array(550, 420); 
	
		/* Twitter Follow */ 
		/*	$network_data["share_url"] = 'https://twitter.com/{user}';
 			$network_data['count_api'] = ''; 
 			$network_data['json_return_var'] = 'count'; 
 		*/
	}
 
}

```
