PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / trunk
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets vtrunk
4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 All 146 releases
ultimate-post-kit / modules / social-share / module.php

module.php in Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets trunk, at modules/social-share/module.php

144 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace UltimatePostKit\Modules\SocialShare;
3
4 use UltimatePostKit\Base\Ultimate_Post_Kit_Module_Base;
5
6 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
7
8 class Module extends Ultimate_Post_Kit_Module_Base {
9
10
11 private static $medias = [
12 'baidu' => [
13 'title' => 'Baidu',
14 ],
15 'blogger' => [
16 'title' => 'Blogger',
17 ],
18 'buffer' => [
19 'title' => 'Buffer',
20 'has_counter' => true,
21 ],
22 'delicious' => [
23 'title' => 'Delicious',
24 ],
25 'digg' => [
26 'title' => 'Digg',
27 ],
28 'evernote' => [
29 'title' => 'Evernote',
30 ],
31 'facebook' => [
32 'title' => 'Facebook',
33 'has_counter' => true,
34 ],
35 'flipboard' => [
36 'title' => 'Flipboard',
37 ],
38 'instapaper' => [
39 'title' => 'Instapaper',
40 ],
41 'linkedin' => [
42 'title' => 'Linkedin',
43 'has_counter' => true,
44 ],
45 // 'liveinternet' => [
46 // 'title' => 'LiveInternet',
47 // ],
48 'livejournal' => [
49 'title' => 'LiveJournal',
50 ],
51 'mix' => [
52 'title' => 'Mix',
53 ],
54 'moimir' => [
55 'title' => 'Mail.Ru',
56 'has_counter' => true,
57 ],
58 'meneame' => [
59 'title' => 'meneame',
60 ],
61 'odnoklassniki' => [
62 'title' => 'OK',
63 'has_counter' => true,
64 ],
65 'pocket' => [
66 'title' => 'Pocket',
67 'has_counter' => true,
68 ],
69 'pinterest' => [
70 'title' => 'Pinterest',
71 'has_counter' => true,
72 ],
73 'reddit' => [
74 'title' => 'Reddit',
75 ],
76 'renren' => [
77 'title' => 'Renren',
78 ],
79 'tumblr' => [
80 'title' => 'Tumblr',
81 'has_counter' => true,
82 ],
83 'surfingbird' => [
84 'title' => 'Surfingbird',
85 ],
86 'twitter' => [
87 'title' => 'Twitter',
88 ],
89 'vkontakte' => [
90 'title' => 'Vkontakte',
91 'has_counter' => true,
92 ],
93 'weibo' => [
94 'title' => 'Weibo',
95 ],
96 'wordpress' => [
97 'title' => 'Wordpress',
98 ],
99 'xing' => [
100 'title' => 'Xing',
101 ],
102 // Mobile Device Sharing
103 'line' => [
104 'title' => 'LINE',
105 ],
106 'skype' => [
107 'title' => 'Skype',
108 ],
109 'telegram' => [
110 'title' => 'Telegram',
111 ],
112 'viber' => [
113 'title' => 'Viber',
114 ],
115 'wechat' => [
116 'title' => 'WeChat',
117 ],
118 'whatsapp' => [
119 'title' => 'WhatsApp',
120 ],
121 ];
122
123 public static function get_social_media( ?string $media_name = null ) {
124 if ( $media_name ) {
125 return isset( self::$medias[ $media_name ] ) ? self::$medias[ $media_name ] : null;
126 }
127
128 return self::$medias;
129 }
130
131 public function get_name() {
132 return 'social';
133 }
134
135 public function get_widgets() {
136
137 $widgets = [
138 'Social_Share',
139 ];
140
141 return $widgets;
142 }
143 }
144