| @@ -1,28 +1,28 @@ | ||
| 1 | -<?php | |
| 2 | -namespace MBSocial; | |
| 1 | +<?php | |
| 2 | +namespace MBSocial; | |
| 3 | 3 | |
| 4 | -use MaxButtons\maxField as maxField; | |
| 4 | +use MaxButtons\maxField as maxField; | |
| 5 | 5 | use MaxButtons\maxBlocks as maxBlocks; |
| 6 | 6 | |
| 7 | 7 | class twitterNetwork extends mbNetwork |
| 8 | -{ | |
| 9 | - protected $network = 'twitter'; | |
| 10 | - protected $icon = 'fa-twitter'; | |
| 11 | - | |
| 12 | - | |
| 13 | - public function __construct() | |
| 8 | +{ | |
| 9 | + protected $network = 'twitter'; | |
| 10 | + protected $icon = 'fa-twitter'; | |
| 11 | + protected $color = '#00aced'; | |
| 12 | + | |
| 13 | + | |
| 14 | + public function __construct() | |
| 14 | 15 | { |
| 15 | - // https://dev.twitter.com/web/tweet-button/web-intent | |
| 16 | + // https://dev.twitter.com/web/tweet-button/web-intent | |
| 16 | 17 | $this->label = __('Tweet','mbsocial'); |
| 17 | - $this->share_url = 'https://twitter.com/intent/tweet/'; | |
| 18 | - $this->countable = false; | |
| 19 | - $this->popup_dimension = array(550, 420); | |
| 20 | - | |
| 21 | - /* Twitter Follow */ | |
| 22 | - /* $network_data["share_url"] = 'https://twitter.com/{user}'; | |
| 23 | - $network_data['count_api'] = ''; | |
| 24 | - $network_data['json_return_var'] = 'count'; | |
| 25 | - */ | |
| 18 | + $this->share_url = 'https://twitter.com/intent/tweet/?url={url}&text={title}&via={twitter_handle}&hashtags={twitter_hashtags}'; | |
| 19 | + $this->profile_url = 'https://twitter.com/{profile}'; | |
| 20 | + | |
| 21 | + $this->popup_dimensions = array(550, 320); | |
| 22 | + | |
| 23 | + parent::__construct(); | |
| 24 | + | |
| 26 | 25 | } |
| 27 | - | |
| 26 | + | |
| 27 | + | |
| 28 | 28 | } |