| 1 |
<?php |
| 2 |
namespace Elementor; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* @deprecated will be removed in version 3.24 |
| 10 |
*/ |
| 11 |
class Widget_Share_Buttons extends Widget_Base { |
| 12 |
|
| 13 |
private static $supported_networks = [ |
| 14 |
'facebook', |
| 15 |
'x-twitter', |
| 16 |
'twitter', |
| 17 |
'linkedin', |
| 18 |
'pinterest', |
| 19 |
'threads', |
| 20 |
'reddit', |
| 21 |
'vk', |
| 22 |
'odnoklassniki', |
| 23 |
'tumblr', |
| 24 |
'digg', |
| 25 |
'skype', |
| 26 |
'stumbleupon', |
| 27 |
'mix', |
| 28 |
'telegram', |
| 29 |
'pocket', |
| 30 |
'xing', |
| 31 |
'whatsapp', |
| 32 |
'email', |
| 33 |
'print', |
| 34 |
]; |
| 35 |
|
| 36 |
/** |
| 37 |
* @deprecated will be removed in version 3.24 |
| 38 |
*/ |
| 39 |
public function get_name() { |
| 40 |
return 'share-buttons-dummy'; |
| 41 |
} |
| 42 |
|
| 43 |
/** |
| 44 |
* @deprecated will be removed in version 3.24 |
| 45 |
*/ |
| 46 |
public function get_title() { |
| 47 |
return 'share-buttons-dummy'; |
| 48 |
} |
| 49 |
|
| 50 |
/** |
| 51 |
* @deprecated will be removed in version 3.24 |
| 52 |
*/ |
| 53 |
public function show_in_panel(): bool { |
| 54 |
return false; |
| 55 |
} |
| 56 |
|
| 57 |
/** |
| 58 |
* @deprecated will be removed in version 3.24 |
| 59 |
*/ |
| 60 |
public static function get_supported_networks(): array { |
| 61 |
return self::$supported_networks; |
| 62 |
} |
| 63 |
} |
| 64 |
|