| @@ -39,22 +39,15 @@ | ||
| 39 | 39 | protected $icon = 'fa-envelope'; |
| 40 | 40 | protected $icon_type = 'fas'; |
| 41 | 41 | protected $color = '#5e5e5e'; |
| 42 | 42 | protected $forcesamewindow = true; |
| 43 | - protected $is_popup = false; | |
| 44 | 43 | |
| 45 | 44 | public function __construct() |
| 46 | 45 | { |
| 46 | + parent::__construct(); | |
| 47 | 47 | $this->label = __('Email', 'mbsocial'); |
| 48 | - if (Install::isPro() ) | |
| 49 | - $this->share_url = 'mailto:?subject={email_subject}&body={email_content}'; | |
| 50 | - else { | |
| 51 | - $this->share_url = 'mailto:?subject={title}&body={url}'; | |
| 52 | - } | |
| 48 | + $this->share_url = 'mailto:?subject={title}&body={url}'; | |
| 53 | 49 | $this->popup = false; |
| 54 | - | |
| 55 | - parent::__construct(); | |
| 56 | - | |
| 57 | 50 | } |
| 58 | 51 | } |
| 59 | 52 | |
| 60 | 53 | class facebookNetwork extends mbNetwork |
| @@ -65,8 +58,10 @@ | ||
| 65 | 58 | protected $color = '#3b5998'; |
| 66 | 59 | |
| 67 | 60 | public function __construct() |
| 68 | 61 | { |
| 62 | + parent::__construct(); | |
| 63 | + | |
| 69 | 64 | $this->label = __('Share', 'mbsocial'); |
| 70 | 65 | $this->share_url = 'https://www.facebook.com/sharer.php?u={url}'; |
| 71 | 66 | $this->profile_url = 'https://www.facebook.com/{profile}'; |
| 72 | 67 | $this->countable = true; |
| @@ -73,9 +68,8 @@ | ||
| 73 | 68 | $this->count_api = 'https://graph.facebook.com/{url}'; |
| 74 | 69 | $this->return_var = 'share|share_count'; |
| 75 | 70 | $this->popup_dimensions = array(550,320); |
| 76 | 71 | |
| 77 | - parent::__construct(); | |
| 78 | 72 | } |
| 79 | 73 | |
| 80 | 74 | } |
| 81 | 75 | |
| @@ -83,12 +77,12 @@ | ||
| 83 | 77 | { |
| 84 | 78 | protected $network = 'linkedin'; |
| 85 | 79 | protected $icon = 'fa-linkedin-in'; |
| 86 | 80 | protected $color = '#007bb6'; |
| 87 | - protected $priority = 'unselected'; | |
| 88 | 81 | |
| 89 | 82 | public function __construct() |
| 90 | 83 | { |
| 84 | + parent::__construct(); | |
| 91 | 85 | $this->label = __('Share','mbsocial'); |
| 92 | 86 | $this->share_url = 'https://www.linkedin.com/shareArticle?mini=true&url={url}'; |
| 93 | 87 | $this->profile_url = 'https://www.linkedin.com/in/{profile}'; |
| 94 | 88 | // Linkedin counts where killed |
| @@ -96,11 +90,8 @@ | ||
| 96 | 90 | //$this->countable = true; |
| 97 | 91 | //$this->return_var = 'count'; |
| 98 | 92 | |
| 99 | 93 | $this->popup_dimensions = array(700,500); |
| 100 | - | |
| 101 | - parent::__construct(); | |
| 102 | - | |
| 103 | 94 | } |
| 104 | 95 | |
| 105 | 96 | } |
| 106 | 97 | |
| @@ -111,18 +102,15 @@ | ||
| 111 | 102 | protected $icon = 'fa-print'; |
| 112 | 103 | protected $icon_type = 'fas'; |
| 113 | 104 | protected $color = '#5e5e5e'; |
| 114 | 105 | protected $forcesamewindow = true; |
| 115 | - protected $is_popup = false; | |
| 116 | 106 | |
| 117 | 107 | public function __construct() |
| 118 | 108 | { |
| 109 | + parent::__construct(); | |
| 119 | 110 | $this->label = __('Print', 'mbsocial'); |
| 120 | 111 | $this->share_url = 'javascript:window.print()'; |
| 121 | 112 | $this->popup = false; |
| 122 | - | |
| 123 | - parent::__construct(); | |
| 124 | - | |
| 125 | 113 | } |
| 126 | 114 | } |
| 127 | 115 | |
| 128 | 116 | |
| @@ -134,8 +122,9 @@ | ||
| 134 | 122 | protected $color = '#eb4924'; |
| 135 | 123 | |
| 136 | 124 | public function __construct() |
| 137 | 125 | { |
| 126 | + parent::__construct(); | |
| 138 | 127 | $this->label = __('Share','mbsocial'); |
| 139 | 128 | $this->share_url = 'https://www.stumbleupon.com/submit?url={url}&title={title}'; |
| 140 | 129 | $this->count_api = 'https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}'; |
| 141 | 130 | $this->countable = true; |
| @@ -140,9 +129,9 @@ | ||
| 140 | 129 | $this->count_api = 'https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}'; |
| 141 | 130 | $this->countable = true; |
| 142 | 131 | $this->return_var = 'result|views'; |
| 143 | 132 | |
| 144 | - parent::__construct(); | |
| 133 | + | |
| 145 | 134 | } |
| 146 | 135 | } |
| 147 | 136 | |
| 148 | 137 | class redditNetwork extends mbNetwork |
| @@ -154,8 +143,9 @@ | ||
| 154 | 143 | |
| 155 | 144 | |
| 156 | 145 | public function __construct() |
| 157 | 146 | { |
| 147 | + parent::__construct(); | |
| 158 | 148 | $this->label = __('Share', 'mbsocial'); |
| 159 | 149 | $this->share_url = 'https://reddit.com/submit?url={url}&title={title}'; |
| 160 | 150 | $this->count_api = 'https://buttons.reddit.com/button_info.json?url={url}'; |
| 161 | 151 | $this->countable = true; |
| @@ -162,9 +152,8 @@ | ||
| 162 | 152 | $this->profile_url = 'https://www.reddit.com/user/{profile}'; |
| 163 | 153 | $this->return_var = 'data|children|0|data|score'; |
| 164 | 154 | $this->popup_dimensions = array(800,500); |
| 165 | 155 | |
| 166 | - parent::__construct(); | |
| 167 | 156 | |
| 168 | 157 | } |
| 169 | 158 | |
| 170 | 159 | } |
| @@ -180,13 +169,12 @@ | ||
| 180 | 169 | protected $displayDesktop = false; |
| 181 | 170 | |
| 182 | 171 | public function __construct() |
| 183 | 172 | { |
| 173 | + parent::__construct(); | |
| 184 | 174 | $this->label = __('Send', 'mbsocial'); |
| 185 | 175 | $this->share_url = 'whatsapp://send?text={url} {title}'; |
| 186 | 176 | |
| 187 | - parent::__construct(); | |
| 188 | - | |
| 189 | 177 | } |
| 190 | 178 | |
| 191 | 179 | } |
| 192 | 180 | |
| @@ -198,15 +186,14 @@ | ||
| 198 | 186 | protected $color = '#517fa4'; |
| 199 | 187 | |
| 200 | 188 | public function __construct() |
| 201 | 189 | { |
| 190 | + parent::__construct(); | |
| 202 | 191 | $this->popup = false; |
| 203 | 192 | |
| 204 | 193 | $this->label = __('Follow', 'mbsocial'); |
| 205 | 194 | $this->profile_url = 'https://instagram.com/{profile}'; |
| 206 | 195 | |
| 207 | - parent::__construct(); | |
| 208 | - | |
| 209 | 196 | } |
| 210 | 197 | |
| 211 | 198 | } |
| 212 | 199 | |
| @@ -219,14 +206,15 @@ | ||
| 219 | 206 | protected $color = '#bb0000'; |
| 220 | 207 | |
| 221 | 208 | public function __construct() |
| 222 | 209 | { |
| 210 | + parent::__construct(); | |
| 211 | + | |
| 223 | 212 | $this->popup = false; |
| 224 | 213 | |
| 225 | 214 | $this->label = __('View', 'mbsocial'); |
| 226 | 215 | $this->profile_url = 'https://youtube.com/{profile}'; |
| 227 | 216 | |
| 228 | - parent::__construct(); | |
| 229 | 217 | } |
| 230 | 218 | } |
| 231 | 219 | |
| 232 | 220 | class snapchatNetwork extends mbNetwork |
| @@ -235,18 +223,16 @@ | ||
| 235 | 223 | protected $priority = 'readmore'; |
| 236 | 224 | protected $icon = 'fa-snapchat'; |
| 237 | 225 | // protected $color = '#fffc00'; |
| 238 | 226 | protected $color = '#000'; |
| 239 | - protected $displayDesktop = false; | |
| 240 | 227 | |
| 241 | 228 | public function __construct() |
| 242 | 229 | { |
| 230 | + parent::__construct(); | |
| 243 | 231 | $this->popup = false; |
| 244 | 232 | $this->label = __('Follow', 'mbsocial'); |
| 245 | 233 | $this->profile_url = 'https://snapchat.com/{profile}'; |
| 246 | 234 | |
| 247 | - parent::__construct(); | |
| 248 | - | |
| 249 | 235 | } |
| 250 | 236 | |
| 251 | 237 | } |
| 252 | 238 | |
| @@ -262,15 +248,15 @@ | ||
| 262 | 248 | // protected $profile_placeholder = ''; |
| 263 | 249 | |
| 264 | 250 | public function __construct() |
| 265 | 251 | { |
| 252 | + parent::__construct(); | |
| 253 | + | |
| 266 | 254 | $this->nice_name = __('RSS', 'mbsocial'); |
| 267 | 255 | $this->profile_placeholder = __('Feed URL', 'mbsocial'); |
| 268 | 256 | $this->popup = false; |
| 269 | 257 | $this->label = __('Follow', 'mbsocial'); |
| 270 | 258 | $this->profile_url = '{profile}'; |
| 271 | - parent::__construct(); | |
| 272 | - | |
| 273 | 259 | } |
| 274 | 260 | /* |
| 275 | 261 | public function get_url() |
| 276 | 262 | { |
| @@ -283,8 +269,9 @@ | ||
| 283 | 269 | } */ |
| 284 | 270 | |
| 285 | 271 | } |
| 286 | 272 | |
| 273 | + | |
| 287 | 274 | class vimeoNetwork extends mbNetwork |
| 288 | 275 | { |
| 289 | 276 | protected $network = 'vimeo'; |
| 290 | 277 | protected $priority = 'readmore'; |
| @@ -292,33 +279,13 @@ | ||
| 292 | 279 | protected $color = '#1ab7ea'; |
| 293 | 280 | |
| 294 | 281 | public function __construct() |
| 295 | 282 | { |
| 283 | + parent::__construct(); | |
| 284 | + | |
| 296 | 285 | $this->popup = false; |
| 297 | 286 | $this->label = __('View', 'mbsocial'); |
| 298 | 287 | $this->profile_url = 'https://vimeo.com/{profile}'; |
| 299 | 288 | |
| 300 | - parent::__construct(); | |
| 301 | - | |
| 302 | - } | |
| 303 | -} | |
| 304 | - | |
| 305 | -class tiktokNetwork extends mbNetwork | |
| 306 | -{ | |
| 307 | - | |
| 308 | - protected $network = 'tiktok'; | |
| 309 | - protected $priority = 'readmore'; | |
| 310 | - protected $icon = 'fa-tiktok'; | |
| 311 | - protected $icon_type = 'fab'; | |
| 312 | - protected $color = '#010101'; | |
| 313 | - | |
| 314 | - public function __construct() | |
| 315 | - { | |
| 316 | - $this->popup = false; | |
| 317 | - $this->nice_name = __('TikTok', 'mbsocial'); | |
| 318 | - $this->label = __('Follow', 'mbsocial'); | |
| 319 | - $this->profile_url = 'https://tiktok.com/{profile}'; | |
| 320 | - | |
| 321 | - parent::__construct(); | |
| 322 | 289 | |
| 323 | 290 | } |
| 324 | 291 | } |