share-buttons.php in Elementor Website Builder – more than just a page builder 3.21.4, at includes/widgets/share-buttons.php
| 1 | <?php |
| 2 | namespace Elementor; |
| 3 | |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | exit; // Exit if accessed directly. |
| 6 | } |
| 7 | |
| 8 | class Widget_Share_Buttons extends Widget_Base { |
| 9 | |
| 10 | private static $supported_networks = [ |
| 11 | 'facebook', |
| 12 | 'x-twitter', |
| 13 | 'twitter', |
| 14 | 'linkedin', |
| 15 | 'pinterest', |
| 16 | 'threads', |
| 17 | 'reddit', |
| 18 | 'vk', |
| 19 | 'odnoklassniki', |
| 20 | 'tumblr', |
| 21 | 'digg', |
| 22 | 'skype', |
| 23 | 'stumbleupon', |
| 24 | 'mix', |
| 25 | 'telegram', |
| 26 | 'pocket', |
| 27 | 'xing', |
| 28 | 'whatsapp', |
| 29 | 'email', |
| 30 | 'print', |
| 31 | ]; |
| 32 | |
| 33 | public function get_name() { |
| 34 | return 'share-buttons'; |
| 35 | } |
| 36 | |
| 37 | public static function get_supported_networks() { |
| 38 | return self::$supported_networks; |
| 39 | } |
| 40 | } |
| 41 |