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