Version Description
- Included floating sharing bar
- Included option to enable sharing on category archive pages
- Included option to hide/show sharing counts
- Included option to auto-approve comments made by social login users
- Included option to specify the messgae on "email required" popup
- Enabled share counts for Google+
- Included option to delete options on plugin deletion
- Included Spanish language translation
- Minor bug fixes
Download this release
Release Info
Developer | the_champ |
Plugin | WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer |
Version | 2.8.0 |
Comparing to | |
See all releases |
Code changes from version 2.5.2 to 2.8.0
- admin/donate.php +20 -0
- admin/facebook.php +62 -62
- admin/help.php +35 -25
- admin/index.php +1 -1
- admin/social_admin.php +9 -21
- admin/social_login.php +199 -107
- admin/social_sharing.php +447 -82
- css/admin.css +8 -4
- css/front.css +23 -5
- css/index.php +1 -1
- helper.php +347 -0
- images/index.php +1 -1
- images/loading_icon.gif +0 -0
- images/login/index.php +1 -1
- images/sharing/index.php +1 -1
- images/snaps/feed_caption old.png +0 -0
- images/snaps/feed_description old.png +0 -0
- images/snaps/feed_enable ol.png +0 -0
- images/snaps/feed_message old.png +0 -0
- images/snaps/feed_name old.png +0 -0
- images/snaps/feed_picture old.png +0 -0
- images/snaps/index.php +1 -0
- images/snaps/sl_email_popup_message.png +0 -0
- images/snaps/ss_disable_sharing.png +0 -0
- images/snaps/ss_horizontal_sharing.png +0 -0
- images/snaps/ss_share_count.png +0 -0
- images/snaps/ss_vertical_sharing.png +0 -0
- images/snaps/ss_vertical_sharing_count.png +0 -0
- images/star.png +0 -0
- inc/index.php +1 -1
- inc/shortcode.php +17 -6
- inc/social_login.php +10 -9
- inc/social_sharing.php +111 -23
- inc/widget.php +75 -8
- index.php +1 -1
- js/admin/admin.js +10 -55
- js/admin/index.php +1 -1
- js/admin/sharing/admin.js +39 -5
- js/admin/sharing/index.php +1 -1
- js/front/facebook/index.php +1 -1
- js/front/index.php +1 -1
- js/front/sharing/index.php +1 -1
- js/front/sharing/sharing.js +39 -18
- js/front/social_login/common.js +3 -39
- js/front/social_login/facebook.js +5 -5
- js/front/social_login/general.js +74 -1
- js/front/social_login/google.js +5 -4
- js/front/social_login/index.php +1 -1
- js/front/social_login/instagram.js +1 -1
- js/front/social_login/linkedin.js +3 -1
- js/front/social_login/vkontakte.js +1 -1
- js/index.php +1 -1
- languages/Super-Socializer-es_ES.mo +0 -0
- languages/Super-Socializer-es_ES.po +1256 -0
- library/index.php +1 -1
- readme.txt +27 -4
- super_socializer.php +150 -443
- uninstall.php +24 -21
admin/donate.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="stuffbox" style="width:94%">
|
2 |
+
<h3><label><?php _e('Donate', 'Super-Socializer');?></label></h3>
|
3 |
+
<div class="inside">
|
4 |
+
<p><?php _e('If you like the plugin, want to get it improved and want to see it at the top of other plugins, please consider making a donation.', 'Super-Socializer') ?></p>
|
5 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
|
6 |
+
<input type="text" style="width: 50px" name="amount" />
|
7 |
+
<span>USD</span>
|
8 |
+
<input type="hidden" value="_xclick" name="cmd" />
|
9 |
+
<input type="hidden" value="lordofthechamps@gmail.com" name="business" />
|
10 |
+
<input type="hidden" value="Super Socializer" name="item_name" />
|
11 |
+
<input type="hidden" value="0" name="no_shipping" />
|
12 |
+
<input type="hidden" value="1" name="no_note" />
|
13 |
+
<input type="hidden" value="<?php echo site_url() ?>/wp-admin/admin.php?page=the-champ" name="return" />
|
14 |
+
<input type="hidden" value="Return to your dashboard" name="cbt" />
|
15 |
+
<input type="hidden" value="USD" name="currency_code" />
|
16 |
+
<br/><br/>
|
17 |
+
<input type="submit" class="the_champ_paypal_submit" value="<?php _e('Donate', 'Super-Socializer') ?>" style="background-color: #1D9AFC; padding:9px 42px 9px; cursor:pointer; font-size:12px; border: 0; color: #fff; border-radius: 2px; font-weight: 700; text-transform: uppercase;" />
|
18 |
+
</form>
|
19 |
+
</div>
|
20 |
+
</div>
|
admin/facebook.php
CHANGED
@@ -1,36 +1,37 @@
|
|
1 |
<?php defined('ABSPATH') or die("Cheating........Uh!!"); ?>
|
2 |
<div id="fb-root"></div>
|
3 |
|
4 |
-
<form action="options.php" method="post">
|
5 |
-
<?php settings_fields('the_champ_facebook_options'); ?>
|
6 |
<div class="metabox-holder columns-2" id="post-body">
|
7 |
<div class="menu_div" id="tabs">
|
|
|
|
|
|
|
8 |
<h2 class="nav-tab-wrapper" style="height:36px">
|
9 |
<ul>
|
10 |
-
<li><a style="margin:0; height: 23px" class="nav-tab" href="#tabs-1"><?php _e('Facebook Commenting', '
|
11 |
-
<li><a style="margin:0; height: 23px" class="nav-tab" href="#tabs-2"><?php _e('Feed', '
|
12 |
</ul>
|
13 |
</h2>
|
14 |
<div class="menu_containt_div" id="tabs-1">
|
15 |
<div class="the_champ_left_column">
|
16 |
<div class="stuffbox">
|
17 |
-
<h3><label><?php _e('Enable Facebook Commenting', '
|
18 |
<div class="inside">
|
19 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
20 |
<tr>
|
21 |
<th>
|
22 |
<img id="the_champ_fb_comment_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
23 |
-
<label for="the_champ_enable_fbcomments"><?php _e("Enable Facebook Commenting", '
|
24 |
</th>
|
25 |
<td>
|
26 |
-
<input id="the_champ_enable_fbcomments" name="the_champ_facebook[enable_fbcomments]" type="checkbox" <?php echo isset($theChampFacebookOptions['enable_fbcomments'])
|
27 |
</td>
|
28 |
</tr>
|
29 |
|
30 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_help_cont">
|
31 |
<td colspan="2">
|
32 |
<div>
|
33 |
-
<?php _e('
|
34 |
</div>
|
35 |
<img width="562" src="<?php echo plugins_url('../images/snaps/FB_commenting.png', __FILE__); ?>" />
|
36 |
</td>
|
@@ -40,23 +41,23 @@
|
|
40 |
</div>
|
41 |
|
42 |
<div class="stuffbox">
|
43 |
-
<h3><label><?php _e('Facebook Commenting Options', '
|
44 |
<div class="inside">
|
45 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
46 |
<tr>
|
47 |
<th>
|
48 |
<img id="the_champ_force_fb_comment_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
49 |
-
<label for="the_champ_force_fb_comment"><?php _e('Keep only Facebook Commenting', '
|
50 |
</th>
|
51 |
<td>
|
52 |
-
<input id="the_champ_force_fb_comment" name="the_champ_facebook[force_fb_comment]" type="checkbox" <?php echo isset($theChampFacebookOptions['force_fb_comment'])
|
53 |
</td>
|
54 |
</tr>
|
55 |
|
56 |
<tr class="the_champ_help_content" id="the_champ_force_fb_comment_help_cont">
|
57 |
<td colspan="2">
|
58 |
<div>
|
59 |
-
<?php _e('If enabled, only Facebook commenting will be there without the option to switch to WordPress commenting', '
|
60 |
</div>
|
61 |
</td>
|
62 |
</tr>
|
@@ -64,7 +65,7 @@
|
|
64 |
<tr>
|
65 |
<th>
|
66 |
<img id="the_champ_fb_comment_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
67 |
-
<label for="the_champ_comment_title"><?php _e('Title', '
|
68 |
</th>
|
69 |
<td>
|
70 |
<input id="the_champ_comment_title" name="the_champ_facebook[commenting_title]" type="text" value="<?php echo isset($theChampFacebookOptions['commenting_title']) ? $theChampFacebookOptions['commenting_title'] : '' ?>" />
|
@@ -74,7 +75,7 @@
|
|
74 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_title_help_cont">
|
75 |
<td colspan="2">
|
76 |
<div>
|
77 |
-
<?php _e('Specify a title for commenting', '
|
78 |
</div>
|
79 |
<img width="562" src="<?php echo plugins_url('../images/snaps/comment_title.png', __FILE__); ?>" />
|
80 |
</td>
|
@@ -83,7 +84,7 @@
|
|
83 |
<tr>
|
84 |
<th>
|
85 |
<img id="the_champ_fb_comment_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
86 |
-
<label for="the_champ_comment_url"><?php _e('Url to comment on', '
|
87 |
</th>
|
88 |
<td>
|
89 |
<input id="the_champ_comment_url" name="the_champ_facebook[urlToComment]" type="text" value="<?php echo isset($theChampFacebookOptions['urlToComment']) ? $theChampFacebookOptions['urlToComment'] : '' ?>" />
|
@@ -93,7 +94,7 @@
|
|
93 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_url_help_cont">
|
94 |
<td colspan="2">
|
95 |
<div>
|
96 |
-
<?php _e('The absolute URL that comments posted
|
97 |
</div>
|
98 |
</td>
|
99 |
</tr>
|
@@ -101,7 +102,7 @@
|
|
101 |
<tr>
|
102 |
<th>
|
103 |
<img id="the_champ_fb_comment_width_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
104 |
-
<label for="the_champ_fbcomment_width"><?php _e('Width', '
|
105 |
</th>
|
106 |
<td>
|
107 |
<input id="the_champ_fbcomment_width" name="the_champ_facebook[comment_width]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_width']) ? $theChampFacebookOptions['comment_width'] : '' ?>" />px
|
@@ -111,7 +112,7 @@
|
|
111 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_width_help_cont">
|
112 |
<td colspan="2">
|
113 |
<div>
|
114 |
-
<?php _e('Leave empty for default value. <br/>The width (in pixels) of the Comments block. The mobile version of the Comments block ignores the width parameter, and instead has a fluid width of 100%.', '
|
115 |
</div>
|
116 |
</td>
|
117 |
</tr>
|
@@ -119,12 +120,12 @@
|
|
119 |
<tr>
|
120 |
<th>
|
121 |
<img id="the_champ_fb_comment_color_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
122 |
-
<label for="the_champ_fbcomment_color"><?php _e('Color Scheme', '
|
123 |
</th>
|
124 |
<td>
|
125 |
<select id="the_champ_fbcomment_color" name="the_champ_facebook[comment_color]">
|
126 |
-
<option value="light" <?php echo isset($theChampFacebookOptions['comment_color']) && $theChampFacebookOptions['comment_color'] == 'light' ? 'selected="selected"' : ''
|
127 |
-
<option value="dark" <?php echo isset($theChampFacebookOptions['comment_color']) && $theChampFacebookOptions['comment_color'] == 'dark' ? 'selected="selected"' : ''
|
128 |
</select>
|
129 |
</td>
|
130 |
</tr>
|
@@ -132,7 +133,7 @@
|
|
132 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_color_help_cont">
|
133 |
<td colspan="2">
|
134 |
<div>
|
135 |
-
<?php _e('The color scheme used by the plugin. Can be "light" or "dark".', '
|
136 |
</div>
|
137 |
</td>
|
138 |
</tr>
|
@@ -140,7 +141,7 @@
|
|
140 |
<tr>
|
141 |
<th>
|
142 |
<img id="the_champ_fb_comment_numposts_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
143 |
-
<label for="the_champ_fbcomment_numposts"><?php _e('Number of posts', '
|
144 |
</th>
|
145 |
<td>
|
146 |
<input id="the_champ_fbcomment_numposts" name="the_champ_facebook[comment_numposts]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_numposts']) ? $theChampFacebookOptions['comment_numposts'] : '' ?>" />
|
@@ -150,7 +151,7 @@
|
|
150 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_numposts_help_cont">
|
151 |
<td colspan="2">
|
152 |
<div>
|
153 |
-
<?php _e('The number of comments to show by default. The minimum value is 1. Defaults to 10', '
|
154 |
</div>
|
155 |
</td>
|
156 |
</tr>
|
@@ -158,13 +159,13 @@
|
|
158 |
<tr>
|
159 |
<th>
|
160 |
<img id="the_champ_fb_comment_orderby_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
161 |
-
<label for="the_champ_fbcomment_orderby"><?php _e('Order by', '
|
162 |
</th>
|
163 |
<td>
|
164 |
<select id="the_champ_fbcomment_orderby" name="the_champ_facebook[comment_orderby]">
|
165 |
-
<option value="social" <?php echo isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] == 'social' ? 'selected="selected"' : ''
|
166 |
-
<option value="reverse_time" <?php echo isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] == 'reverse_time' ? 'selected="selected"' : ''
|
167 |
-
<option value="time" <?php echo isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] == 'time' ? 'selected="selected"' : ''
|
168 |
</select>
|
169 |
</td>
|
170 |
</tr>
|
@@ -172,7 +173,7 @@
|
|
172 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_orderby_help_cont">
|
173 |
<td colspan="2">
|
174 |
<div>
|
175 |
-
<?php _e('The order to use when displaying comments.', '
|
176 |
</div>
|
177 |
</td>
|
178 |
</tr>
|
@@ -180,13 +181,13 @@
|
|
180 |
<tr>
|
181 |
<th>
|
182 |
<img id="the_champ_fb_comment_mobile_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
183 |
-
<label for="the_champ_fbcomment_mobile"><?php _e('Mobile', '
|
184 |
</th>
|
185 |
<td>
|
186 |
<select id="the_champ_fbcomment_mobile" name="the_champ_facebook[comment_mobile]">
|
187 |
-
<option value="auto-detect" <?php echo isset($theChampFacebookOptions['comment_mobile']) && $theChampFacebookOptions['comment_mobile'] == 'auto-detect' ? 'selected="selected"' : ''
|
188 |
-
<option value="true" <?php echo isset($theChampFacebookOptions['comment_mobile']) && $theChampFacebookOptions['comment_mobile'] == 'true' ? 'selected="selected"' : ''
|
189 |
-
<option value="false" <?php echo isset($theChampFacebookOptions['comment_mobile']) && $theChampFacebookOptions['comment_mobile'] == 'false' ? 'selected="selected"' : ''
|
190 |
</select>
|
191 |
</td>
|
192 |
</tr>
|
@@ -194,7 +195,7 @@
|
|
194 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_mobile_help_cont">
|
195 |
<td colspan="2">
|
196 |
<div>
|
197 |
-
<?php _e('A boolean value that specifies whether to show the mobile-optimized version or not.', '
|
198 |
</div>
|
199 |
</td>
|
200 |
</tr>
|
@@ -202,7 +203,7 @@
|
|
202 |
<tr>
|
203 |
<th>
|
204 |
<img id="the_champ_fb_comment_lang_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
205 |
-
<label for="the_champ_fbcomment_lang"><?php _e('Language', '
|
206 |
</th>
|
207 |
<td>
|
208 |
<input id="the_champ_fbcomment_lang" name="the_champ_facebook[comment_lang]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_lang']) ? $theChampFacebookOptions['comment_lang'] : '' ?>" />
|
@@ -212,7 +213,7 @@
|
|
212 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_lang_help_cont">
|
213 |
<td colspan="2">
|
214 |
<div>
|
215 |
-
<?php echo sprintf(__('Enter the code of the language you want to use to display commenting. You can find the language codes at <a href="%s" target="_blank">this link</a>. Leave it empty for default language(English)', '
|
216 |
</div>
|
217 |
</td>
|
218 |
</tr>
|
@@ -226,23 +227,23 @@
|
|
226 |
<div class="menu_containt_div" id="tabs-2">
|
227 |
<div class="the_champ_left_column">
|
228 |
<div class="stuffbox">
|
229 |
-
<h3><label><?php _e('Feed', '
|
230 |
<div class="inside">
|
231 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
232 |
<tr>
|
233 |
<th>
|
234 |
<img id="the_champ_fb_feed_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
235 |
-
<label for="the_champ_enable_fbfeed"><?php _e("Publish feed on user's timeline on Facebook login", '
|
236 |
</th>
|
237 |
<td>
|
238 |
-
<input id="the_champ_enable_fbfeed" name="the_champ_facebook[enable_fbfeed]" type="checkbox" <?php echo isset($theChampFacebookOptions['enable_fbfeed'])
|
239 |
</td>
|
240 |
</tr>
|
241 |
|
242 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_enable_help_cont">
|
243 |
<td colspan="2">
|
244 |
<div>
|
245 |
-
<?php _e('If enabled, a post will be published on the timeline of the user logging in', '
|
246 |
</div>
|
247 |
<img src="<?php echo plugins_url('../images/snaps/feed_enable.png', __FILE__); ?>" />
|
248 |
</td>
|
@@ -252,13 +253,13 @@
|
|
252 |
</div>
|
253 |
|
254 |
<div class="stuffbox">
|
255 |
-
<h3><label><?php _e('Facebook Feed Options', '
|
256 |
<div class="inside">
|
257 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
258 |
<tr>
|
259 |
<th>
|
260 |
<img id="the_champ_fb_feed_message_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
261 |
-
<label for="the_champ_fbfeed_message"><?php _e('Message', '
|
262 |
</th>
|
263 |
<td>
|
264 |
<textarea rows="4" cols="40" id="the_champ_fbfeed_message" name="the_champ_facebook[feedMessage]"><?php echo isset($theChampFacebookOptions['feedMessage']) ? $theChampFacebookOptions['feedMessage'] : '' ?></textarea>
|
@@ -268,7 +269,7 @@
|
|
268 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_message_help_cont">
|
269 |
<td colspan="2">
|
270 |
<div>
|
271 |
-
<?php _e('Message for the feed post. %website-name% will be replaced with your website name in actual message.', '
|
272 |
</div>
|
273 |
<img src="<?php echo plugins_url('../images/snaps/feed_message.png', __FILE__); ?>" />
|
274 |
</td>
|
@@ -277,7 +278,7 @@
|
|
277 |
<tr>
|
278 |
<th>
|
279 |
<img id="the_champ_fb_feed_link_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
280 |
-
<label for="the_champ_fbfeed_link"><?php _e('Link (required)', '
|
281 |
</th>
|
282 |
<td>
|
283 |
<input id="the_champ_fbfeed_link" name="the_champ_facebook[feed_link]" type="text" value="<?php echo isset($theChampFacebookOptions['feed_link']) ? $theChampFacebookOptions['feed_link'] : '' ?>" />
|
@@ -287,7 +288,7 @@
|
|
287 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_link_help_cont">
|
288 |
<td colspan="2">
|
289 |
<div>
|
290 |
-
<?php _e('The link attached to this feed (required parameter for this functionality to work)', '
|
291 |
</div>
|
292 |
</td>
|
293 |
</tr>
|
@@ -295,7 +296,7 @@
|
|
295 |
<tr>
|
296 |
<th>
|
297 |
<img id="the_champ_fb_feed_picture_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
298 |
-
<label for="the_champ_fbfeed_picture"><?php _e('Picture', '
|
299 |
</th>
|
300 |
<td>
|
301 |
<input id="the_champ_fbfeed_picture" name="the_champ_facebook[feedPicture]" type="text" value="<?php echo isset($theChampFacebookOptions['feedPicture']) ? $theChampFacebookOptions['feedPicture'] : '' ?>" />
|
@@ -305,7 +306,7 @@
|
|
305 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_picture_help_cont">
|
306 |
<td colspan="2">
|
307 |
<div>
|
308 |
-
<?php _e('The URL of a picture attached to this post. The picture must be at least 200px by 200px. (if this url is not specified, image from the url specified in Link parameter will be displayed in the post)', '
|
309 |
</div>
|
310 |
<img src="<?php echo plugins_url('../images/snaps/feed_picture.png', __FILE__); ?>" />
|
311 |
</td>
|
@@ -314,7 +315,7 @@
|
|
314 |
<tr>
|
315 |
<th>
|
316 |
<img id="the_champ_fb_feed_source_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
317 |
-
<label for="the_champ_fbfeed_source"><?php _e('Source', '
|
318 |
</th>
|
319 |
<td>
|
320 |
<input id="the_champ_fbfeed_source" name="the_champ_facebook[feedSource]" type="text" value="<?php echo isset($theChampFacebookOptions['feedSource']) ? $theChampFacebookOptions['feedSource'] : '' ?>" />
|
@@ -324,7 +325,7 @@
|
|
324 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_source_help_cont">
|
325 |
<td colspan="2">
|
326 |
<div>
|
327 |
-
<?php _e('The URL of a media file (either SWF or MP3) attached to this post. If SWF, you must also specify picture (in "Picture" parameter) to provide a thumbnail for the video.', '
|
328 |
</div>
|
329 |
</td>
|
330 |
</tr>
|
@@ -332,7 +333,7 @@
|
|
332 |
<tr>
|
333 |
<th>
|
334 |
<img id="the_champ_fb_feed_name_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
335 |
-
<label for="the_champ_fbfeed_name"><?php _e('Name', '
|
336 |
</th>
|
337 |
<td>
|
338 |
<input id="the_champ_fbfeed_name" name="the_champ_facebook[feed_name]" type="text" value="<?php echo isset($theChampFacebookOptions['feed_name']) ? $theChampFacebookOptions['feed_name'] : '' ?>" />
|
@@ -342,7 +343,7 @@
|
|
342 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_name_help_cont">
|
343 |
<td colspan="2">
|
344 |
<div>
|
345 |
-
<?php _e('The name of the link attachment', '
|
346 |
</div>
|
347 |
<img src="<?php echo plugins_url('../images/snaps/feed_name.png', __FILE__); ?>" />
|
348 |
</td>
|
@@ -351,7 +352,7 @@
|
|
351 |
<tr>
|
352 |
<th>
|
353 |
<img id="the_champ_fb_feed_caption_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
354 |
-
<label for="the_champ_fbfeed_caption"><?php _e('Caption', '
|
355 |
</th>
|
356 |
<td>
|
357 |
<input id="the_champ_fbfeed_caption" name="the_champ_facebook[feed_caption]" type="text" value="<?php echo isset($theChampFacebookOptions['feed_caption']) ? $theChampFacebookOptions['feed_caption'] : '' ?>" />
|
@@ -361,7 +362,7 @@
|
|
361 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_caption_help_cont">
|
362 |
<td colspan="2">
|
363 |
<div>
|
364 |
-
<?php _e('The caption of the link (appears beneath the link name). If not specified, this field is automatically populated with the URL of the link.', '
|
365 |
</div>
|
366 |
<img src="<?php echo plugins_url('../images/snaps/feed_caption.png', __FILE__); ?>" />
|
367 |
</td>
|
@@ -370,7 +371,7 @@
|
|
370 |
<tr>
|
371 |
<th>
|
372 |
<img id="the_champ_fb_feed_desc_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
373 |
-
<label for="the_champ_fbfeed_description"><?php _e('Description', '
|
374 |
</th>
|
375 |
<td>
|
376 |
<textarea rows="4" cols="40" id="the_champ_fbfeed_description" name="the_champ_facebook[feed_description]"><?php echo isset($theChampFacebookOptions['feed_description']) ? $theChampFacebookOptions['feed_description'] : '' ?></textarea>
|
@@ -380,7 +381,7 @@
|
|
380 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_desc_help_cont">
|
381 |
<td colspan="2">
|
382 |
<div>
|
383 |
-
<?php _e('The description of the link (appears beneath the link caption). If not specified, this field is automatically populated by information scraped from the link, typically the title of the page.', '
|
384 |
</div>
|
385 |
<img src="<?php echo plugins_url('../images/snaps/feed_description.png', __FILE__); ?>" />
|
386 |
</td>
|
@@ -392,11 +393,10 @@
|
|
392 |
|
393 |
<?php include 'help.php'; ?>
|
394 |
</div>
|
|
|
|
|
|
|
|
|
|
|
395 |
</div>
|
396 |
-
|
397 |
-
<div class="the_champ_clear"></div>
|
398 |
-
<p class="submit">
|
399 |
-
<input id="the_champ_enable_fblike" style="margin-left:8px" type="submit" name="save" class="button button-primary" value="<?php _e("Save Changes", 'TheChamp'); ?>" />
|
400 |
-
</p>
|
401 |
-
</div>
|
402 |
-
</form>
|
1 |
<?php defined('ABSPATH') or die("Cheating........Uh!!"); ?>
|
2 |
<div id="fb-root"></div>
|
3 |
|
|
|
|
|
4 |
<div class="metabox-holder columns-2" id="post-body">
|
5 |
<div class="menu_div" id="tabs">
|
6 |
+
<?php require 'donate.php'; ?>
|
7 |
+
<form action="options.php" method="post">
|
8 |
+
<?php settings_fields('the_champ_facebook_options'); ?>
|
9 |
<h2 class="nav-tab-wrapper" style="height:36px">
|
10 |
<ul>
|
11 |
+
<li><a style="margin:0; height: 23px" class="nav-tab" href="#tabs-1"><?php _e('Facebook Commenting', 'Super-Socializer') ?></a></li>
|
12 |
+
<li><a style="margin:0; height: 23px" class="nav-tab" href="#tabs-2"><?php _e('Feed', 'Super-Socializer') ?></a></li>
|
13 |
</ul>
|
14 |
</h2>
|
15 |
<div class="menu_containt_div" id="tabs-1">
|
16 |
<div class="the_champ_left_column">
|
17 |
<div class="stuffbox">
|
18 |
+
<h3><label><?php _e('Enable Facebook Commenting', 'Super-Socializer');?></label></h3>
|
19 |
<div class="inside">
|
20 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
21 |
<tr>
|
22 |
<th>
|
23 |
<img id="the_champ_fb_comment_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
24 |
+
<label for="the_champ_enable_fbcomments"><?php _e("Enable Facebook Commenting", 'Super-Socializer'); ?></label>
|
25 |
</th>
|
26 |
<td>
|
27 |
+
<input id="the_champ_enable_fbcomments" name="the_champ_facebook[enable_fbcomments]" type="checkbox" <?php echo isset($theChampFacebookOptions['enable_fbcomments']) ? 'checked = "checked"' : '';?> value="1" />
|
28 |
</td>
|
29 |
</tr>
|
30 |
|
31 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_help_cont">
|
32 |
<td colspan="2">
|
33 |
<div>
|
34 |
+
<?php _e('After enabling this option, Facebook commenting will appear in place of Wordpress comment form at your website', 'Super-Socializer') ?>
|
35 |
</div>
|
36 |
<img width="562" src="<?php echo plugins_url('../images/snaps/FB_commenting.png', __FILE__); ?>" />
|
37 |
</td>
|
41 |
</div>
|
42 |
|
43 |
<div class="stuffbox">
|
44 |
+
<h3><label><?php _e('Facebook Commenting Options', 'Super-Socializer');?></label></h3>
|
45 |
<div class="inside">
|
46 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
47 |
<tr>
|
48 |
<th>
|
49 |
<img id="the_champ_force_fb_comment_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
50 |
+
<label for="the_champ_force_fb_comment"><?php _e('Keep only Facebook Commenting', 'Super-Socializer'); ?></label>
|
51 |
</th>
|
52 |
<td>
|
53 |
+
<input id="the_champ_force_fb_comment" name="the_champ_facebook[force_fb_comment]" type="checkbox" <?php echo isset($theChampFacebookOptions['force_fb_comment']) ? 'checked = "checked"' : '';?> value="1" />
|
54 |
</td>
|
55 |
</tr>
|
56 |
|
57 |
<tr class="the_champ_help_content" id="the_champ_force_fb_comment_help_cont">
|
58 |
<td colspan="2">
|
59 |
<div>
|
60 |
+
<?php _e('If enabled, only Facebook commenting will be there without the option to switch to WordPress commenting', 'Super-Socializer') ?>
|
61 |
</div>
|
62 |
</td>
|
63 |
</tr>
|
65 |
<tr>
|
66 |
<th>
|
67 |
<img id="the_champ_fb_comment_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
68 |
+
<label for="the_champ_comment_title"><?php _e('Title', 'Super-Socializer'); ?></label>
|
69 |
</th>
|
70 |
<td>
|
71 |
<input id="the_champ_comment_title" name="the_champ_facebook[commenting_title]" type="text" value="<?php echo isset($theChampFacebookOptions['commenting_title']) ? $theChampFacebookOptions['commenting_title'] : '' ?>" />
|
75 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_title_help_cont">
|
76 |
<td colspan="2">
|
77 |
<div>
|
78 |
+
<?php _e('Specify a title for commenting', 'Super-Socializer') ?>
|
79 |
</div>
|
80 |
<img width="562" src="<?php echo plugins_url('../images/snaps/comment_title.png', __FILE__); ?>" />
|
81 |
</td>
|
84 |
<tr>
|
85 |
<th>
|
86 |
<img id="the_champ_fb_comment_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
87 |
+
<label for="the_champ_comment_url"><?php _e('Url to comment on', 'Super-Socializer'); ?></label>
|
88 |
</th>
|
89 |
<td>
|
90 |
<input id="the_champ_comment_url" name="the_champ_facebook[urlToComment]" type="text" value="<?php echo isset($theChampFacebookOptions['urlToComment']) ? $theChampFacebookOptions['urlToComment'] : '' ?>" />
|
94 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_url_help_cont">
|
95 |
<td colspan="2">
|
96 |
<div>
|
97 |
+
<?php _e('The absolute URL that comments posted will be permanently associated with. Stories on Facebook about comments posted, will link to this URL.<br/>If left empty <strong>(Recommended)</strong>, url of the webpage will be used at which commenting is enabled.', 'Super-Socializer') ?>
|
98 |
</div>
|
99 |
</td>
|
100 |
</tr>
|
102 |
<tr>
|
103 |
<th>
|
104 |
<img id="the_champ_fb_comment_width_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
105 |
+
<label for="the_champ_fbcomment_width"><?php _e('Width', 'Super-Socializer'); ?></label>
|
106 |
</th>
|
107 |
<td>
|
108 |
<input id="the_champ_fbcomment_width" name="the_champ_facebook[comment_width]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_width']) ? $theChampFacebookOptions['comment_width'] : '' ?>" />px
|
112 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_width_help_cont">
|
113 |
<td colspan="2">
|
114 |
<div>
|
115 |
+
<?php _e('Leave empty for default value. <br/>The width (in pixels) of the Comments block. The mobile version of the Comments block ignores the width parameter, and instead has a fluid width of 100%.', 'Super-Socializer') ?>
|
116 |
</div>
|
117 |
</td>
|
118 |
</tr>
|
120 |
<tr>
|
121 |
<th>
|
122 |
<img id="the_champ_fb_comment_color_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
123 |
+
<label for="the_champ_fbcomment_color"><?php _e('Color Scheme', 'Super-Socializer'); ?></label>
|
124 |
</th>
|
125 |
<td>
|
126 |
<select id="the_champ_fbcomment_color" name="the_champ_facebook[comment_color]">
|
127 |
+
<option value="light" <?php echo isset($theChampFacebookOptions['comment_color']) && $theChampFacebookOptions['comment_color'] == 'light' ? 'selected="selected"' : '' ?>><?php _e('Light', 'Super-Socializer') ?></option>
|
128 |
+
<option value="dark" <?php echo isset($theChampFacebookOptions['comment_color']) && $theChampFacebookOptions['comment_color'] == 'dark' ? 'selected="selected"' : '' ?>><?php _e('Dark', 'Super-Socializer') ?></option>
|
129 |
</select>
|
130 |
</td>
|
131 |
</tr>
|
133 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_color_help_cont">
|
134 |
<td colspan="2">
|
135 |
<div>
|
136 |
+
<?php _e('The color scheme used by the plugin. Can be "light" or "dark".', 'Super-Socializer') ?>
|
137 |
</div>
|
138 |
</td>
|
139 |
</tr>
|
141 |
<tr>
|
142 |
<th>
|
143 |
<img id="the_champ_fb_comment_numposts_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
144 |
+
<label for="the_champ_fbcomment_numposts"><?php _e('Number of posts', 'Super-Socializer'); ?></label>
|
145 |
</th>
|
146 |
<td>
|
147 |
<input id="the_champ_fbcomment_numposts" name="the_champ_facebook[comment_numposts]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_numposts']) ? $theChampFacebookOptions['comment_numposts'] : '' ?>" />
|
151 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_numposts_help_cont">
|
152 |
<td colspan="2">
|
153 |
<div>
|
154 |
+
<?php _e('The number of comments to show by default. The minimum value is 1. Defaults to 10', 'Super-Socializer') ?>
|
155 |
</div>
|
156 |
</td>
|
157 |
</tr>
|
159 |
<tr>
|
160 |
<th>
|
161 |
<img id="the_champ_fb_comment_orderby_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
162 |
+
<label for="the_champ_fbcomment_orderby"><?php _e('Order by', 'Super-Socializer'); ?></label>
|
163 |
</th>
|
164 |
<td>
|
165 |
<select id="the_champ_fbcomment_orderby" name="the_champ_facebook[comment_orderby]">
|
166 |
+
<option value="social" <?php echo isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] == 'social' ? 'selected="selected"' : '' ?>><?php _e('Social', 'Super-Socializer') ?></option>
|
167 |
+
<option value="reverse_time" <?php echo isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] == 'reverse_time' ? 'selected="selected"' : '' ?>><?php _e('Reverse Time', 'Super-Socializer') ?></option>
|
168 |
+
<option value="time" <?php echo isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] == 'time' ? 'selected="selected"' : '' ?>><?php _e('Time', 'Super-Socializer') ?></option>
|
169 |
</select>
|
170 |
</td>
|
171 |
</tr>
|
173 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_orderby_help_cont">
|
174 |
<td colspan="2">
|
175 |
<div>
|
176 |
+
<?php _e('The order to use when displaying comments.', 'Super-Socializer') ?>
|
177 |
</div>
|
178 |
</td>
|
179 |
</tr>
|
181 |
<tr>
|
182 |
<th>
|
183 |
<img id="the_champ_fb_comment_mobile_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
184 |
+
<label for="the_champ_fbcomment_mobile"><?php _e('Mobile', 'Super-Socializer'); ?></label>
|
185 |
</th>
|
186 |
<td>
|
187 |
<select id="the_champ_fbcomment_mobile" name="the_champ_facebook[comment_mobile]">
|
188 |
+
<option value="auto-detect" <?php echo isset($theChampFacebookOptions['comment_mobile']) && $theChampFacebookOptions['comment_mobile'] == 'auto-detect' ? 'selected="selected"' : '' ?>><?php _e('Auto Detect', 'Super-Socializer') ?></option>
|
189 |
+
<option value="true" <?php echo isset($theChampFacebookOptions['comment_mobile']) && $theChampFacebookOptions['comment_mobile'] == 'true' ? 'selected="selected"' : '' ?>><?php _e('True', 'Super-Socializer') ?></option>
|
190 |
+
<option value="false" <?php echo isset($theChampFacebookOptions['comment_mobile']) && $theChampFacebookOptions['comment_mobile'] == 'false' ? 'selected="selected"' : '' ?>><?php _e('False', 'Super-Socializer') ?></option>
|
191 |
</select>
|
192 |
</td>
|
193 |
</tr>
|
195 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_mobile_help_cont">
|
196 |
<td colspan="2">
|
197 |
<div>
|
198 |
+
<?php _e('A boolean value that specifies whether to show the mobile-optimized version or not.', 'Super-Socializer') ?>
|
199 |
</div>
|
200 |
</td>
|
201 |
</tr>
|
203 |
<tr>
|
204 |
<th>
|
205 |
<img id="the_champ_fb_comment_lang_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
206 |
+
<label for="the_champ_fbcomment_lang"><?php _e('Language', 'Super-Socializer'); ?></label>
|
207 |
</th>
|
208 |
<td>
|
209 |
<input id="the_champ_fbcomment_lang" name="the_champ_facebook[comment_lang]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_lang']) ? $theChampFacebookOptions['comment_lang'] : '' ?>" />
|
213 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_lang_help_cont">
|
214 |
<td colspan="2">
|
215 |
<div>
|
216 |
+
<?php echo sprintf(__('Enter the code of the language you want to use to display commenting. You can find the language codes at <a href="%s" target="_blank">this link</a>. Leave it empty for default language(English)', 'Super-Socializer'), '//www.facebook.com/translations/FacebookLocales.xml') ?>
|
217 |
</div>
|
218 |
</td>
|
219 |
</tr>
|
227 |
<div class="menu_containt_div" id="tabs-2">
|
228 |
<div class="the_champ_left_column">
|
229 |
<div class="stuffbox">
|
230 |
+
<h3><label><?php _e('Feed', 'Super-Socializer');?></label></h3>
|
231 |
<div class="inside">
|
232 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
233 |
<tr>
|
234 |
<th>
|
235 |
<img id="the_champ_fb_feed_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
236 |
+
<label for="the_champ_enable_fbfeed"><?php _e("Publish feed on user's timeline on Facebook login", 'Super-Socializer'); ?></label>
|
237 |
</th>
|
238 |
<td>
|
239 |
+
<input id="the_champ_enable_fbfeed" name="the_champ_facebook[enable_fbfeed]" type="checkbox" <?php echo isset($theChampFacebookOptions['enable_fbfeed']) ? 'checked = "checked"' : '';?> value="1" />
|
240 |
</td>
|
241 |
</tr>
|
242 |
|
243 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_enable_help_cont">
|
244 |
<td colspan="2">
|
245 |
<div>
|
246 |
+
<?php _e('If enabled, a post will be published on the timeline of the user logging in', 'Super-Socializer') ?>
|
247 |
</div>
|
248 |
<img src="<?php echo plugins_url('../images/snaps/feed_enable.png', __FILE__); ?>" />
|
249 |
</td>
|
253 |
</div>
|
254 |
|
255 |
<div class="stuffbox">
|
256 |
+
<h3><label><?php _e('Facebook Feed Options', 'Super-Socializer');?></label></h3>
|
257 |
<div class="inside">
|
258 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
259 |
<tr>
|
260 |
<th>
|
261 |
<img id="the_champ_fb_feed_message_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
262 |
+
<label for="the_champ_fbfeed_message"><?php _e('Message', 'Super-Socializer'); ?></label>
|
263 |
</th>
|
264 |
<td>
|
265 |
<textarea rows="4" cols="40" id="the_champ_fbfeed_message" name="the_champ_facebook[feedMessage]"><?php echo isset($theChampFacebookOptions['feedMessage']) ? $theChampFacebookOptions['feedMessage'] : '' ?></textarea>
|
269 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_message_help_cont">
|
270 |
<td colspan="2">
|
271 |
<div>
|
272 |
+
<?php _e('Message for the feed post. %website-name% will be replaced with your website name in actual message.', 'Super-Socializer') ?>
|
273 |
</div>
|
274 |
<img src="<?php echo plugins_url('../images/snaps/feed_message.png', __FILE__); ?>" />
|
275 |
</td>
|
278 |
<tr>
|
279 |
<th>
|
280 |
<img id="the_champ_fb_feed_link_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
281 |
+
<label for="the_champ_fbfeed_link"><?php _e('Link (required)', 'Super-Socializer'); ?></label>
|
282 |
</th>
|
283 |
<td>
|
284 |
<input id="the_champ_fbfeed_link" name="the_champ_facebook[feed_link]" type="text" value="<?php echo isset($theChampFacebookOptions['feed_link']) ? $theChampFacebookOptions['feed_link'] : '' ?>" />
|
288 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_link_help_cont">
|
289 |
<td colspan="2">
|
290 |
<div>
|
291 |
+
<?php _e('The link attached to this feed (required parameter for this functionality to work)', 'Super-Socializer') ?>
|
292 |
</div>
|
293 |
</td>
|
294 |
</tr>
|
296 |
<tr>
|
297 |
<th>
|
298 |
<img id="the_champ_fb_feed_picture_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
299 |
+
<label for="the_champ_fbfeed_picture"><?php _e('Picture', 'Super-Socializer'); ?></label>
|
300 |
</th>
|
301 |
<td>
|
302 |
<input id="the_champ_fbfeed_picture" name="the_champ_facebook[feedPicture]" type="text" value="<?php echo isset($theChampFacebookOptions['feedPicture']) ? $theChampFacebookOptions['feedPicture'] : '' ?>" />
|
306 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_picture_help_cont">
|
307 |
<td colspan="2">
|
308 |
<div>
|
309 |
+
<?php _e('The URL of a picture attached to this post. The picture must be at least 200px by 200px. (if this url is not specified, image from the url specified in Link parameter will be displayed in the post)', 'Super-Socializer') ?>
|
310 |
</div>
|
311 |
<img src="<?php echo plugins_url('../images/snaps/feed_picture.png', __FILE__); ?>" />
|
312 |
</td>
|
315 |
<tr>
|
316 |
<th>
|
317 |
<img id="the_champ_fb_feed_source_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
318 |
+
<label for="the_champ_fbfeed_source"><?php _e('Source', 'Super-Socializer'); ?></label>
|
319 |
</th>
|
320 |
<td>
|
321 |
<input id="the_champ_fbfeed_source" name="the_champ_facebook[feedSource]" type="text" value="<?php echo isset($theChampFacebookOptions['feedSource']) ? $theChampFacebookOptions['feedSource'] : '' ?>" />
|
325 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_source_help_cont">
|
326 |
<td colspan="2">
|
327 |
<div>
|
328 |
+
<?php _e('The URL of a media file (either SWF or MP3) attached to this post. If SWF, you must also specify picture (in "Picture" parameter) to provide a thumbnail for the video.', 'Super-Socializer') ?>
|
329 |
</div>
|
330 |
</td>
|
331 |
</tr>
|
333 |
<tr>
|
334 |
<th>
|
335 |
<img id="the_champ_fb_feed_name_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
336 |
+
<label for="the_champ_fbfeed_name"><?php _e('Name', 'Super-Socializer'); ?></label>
|
337 |
</th>
|
338 |
<td>
|
339 |
<input id="the_champ_fbfeed_name" name="the_champ_facebook[feed_name]" type="text" value="<?php echo isset($theChampFacebookOptions['feed_name']) ? $theChampFacebookOptions['feed_name'] : '' ?>" />
|
343 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_name_help_cont">
|
344 |
<td colspan="2">
|
345 |
<div>
|
346 |
+
<?php _e('The name of the link attachment', 'Super-Socializer') ?>
|
347 |
</div>
|
348 |
<img src="<?php echo plugins_url('../images/snaps/feed_name.png', __FILE__); ?>" />
|
349 |
</td>
|
352 |
<tr>
|
353 |
<th>
|
354 |
<img id="the_champ_fb_feed_caption_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
355 |
+
<label for="the_champ_fbfeed_caption"><?php _e('Caption', 'Super-Socializer'); ?></label>
|
356 |
</th>
|
357 |
<td>
|
358 |
<input id="the_champ_fbfeed_caption" name="the_champ_facebook[feed_caption]" type="text" value="<?php echo isset($theChampFacebookOptions['feed_caption']) ? $theChampFacebookOptions['feed_caption'] : '' ?>" />
|
362 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_caption_help_cont">
|
363 |
<td colspan="2">
|
364 |
<div>
|
365 |
+
<?php _e('The caption of the link (appears beneath the link name). If not specified, this field is automatically populated with the URL of the link.', 'Super-Socializer') ?>
|
366 |
</div>
|
367 |
<img src="<?php echo plugins_url('../images/snaps/feed_caption.png', __FILE__); ?>" />
|
368 |
</td>
|
371 |
<tr>
|
372 |
<th>
|
373 |
<img id="the_champ_fb_feed_desc_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
374 |
+
<label for="the_champ_fbfeed_description"><?php _e('Description', 'Super-Socializer'); ?></label>
|
375 |
</th>
|
376 |
<td>
|
377 |
<textarea rows="4" cols="40" id="the_champ_fbfeed_description" name="the_champ_facebook[feed_description]"><?php echo isset($theChampFacebookOptions['feed_description']) ? $theChampFacebookOptions['feed_description'] : '' ?></textarea>
|
381 |
<tr class="the_champ_help_content" id="the_champ_fb_feed_desc_help_cont">
|
382 |
<td colspan="2">
|
383 |
<div>
|
384 |
+
<?php _e('The description of the link (appears beneath the link caption). If not specified, this field is automatically populated by information scraped from the link, typically the title of the page.', 'Super-Socializer') ?>
|
385 |
</div>
|
386 |
<img src="<?php echo plugins_url('../images/snaps/feed_description.png', __FILE__); ?>" />
|
387 |
</td>
|
393 |
|
394 |
<?php include 'help.php'; ?>
|
395 |
</div>
|
396 |
+
<div class="the_champ_clear"></div>
|
397 |
+
<p class="submit">
|
398 |
+
<input id="the_champ_enable_fblike" style="margin-left:8px" type="submit" name="save" class="button button-primary" value="<?php _e("Save Changes", 'Super-Socializer'); ?>" />
|
399 |
+
</p>
|
400 |
+
</form>
|
401 |
</div>
|
402 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
admin/help.php
CHANGED
@@ -1,27 +1,48 @@
|
|
1 |
<?php defined('ABSPATH') or die("Cheating........Uh!!"); ?>
|
2 |
<div class="the_champ_right_column">
|
3 |
<div class="stuffbox">
|
4 |
-
<h3><label><?php _e('About', '
|
5 |
<div class="inside">
|
6 |
-
<p><strong>Super Socializer</strong> by <strong>The Champ</strong></p>
|
7 |
-
<p
|
8 |
<div>
|
9 |
-
<a href="
|
10 |
<a href="https://www.facebook.com/thechamp.lord" target="_blank"><img style="box-shadow:1px 1px 10px 1px #888888" class="theChampLoginButton theChampFacebookButton" title="Facebook" /></a>
|
11 |
<a href="https://twitter.com/l0rd_champ" target="_blank"><img style="box-shadow:1px 1px 10px 1px #888888" class="theChampLoginButton theChampTwitterButton" title="Twitter" /></a>
|
12 |
-
<a href="
|
13 |
</div>
|
14 |
</div>
|
15 |
</div>
|
16 |
|
17 |
<div class="stuffbox">
|
18 |
-
<h3><label><?php _e('
|
19 |
<div class="inside">
|
20 |
-
<p
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
<div style="height: 24px;">
|
24 |
-
<div style="float: left;margin-right: 36px;"><strong
|
25 |
<div style="float: left; width: 40px;">
|
26 |
<div class="fb-like" data-href="https://www.facebook.com/SocializerChamp" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
|
27 |
</div>
|
@@ -30,7 +51,7 @@
|
|
30 |
<div class="the_champ_clear"></div>
|
31 |
|
32 |
<div style="height: 24px;">
|
33 |
-
<div style="float: left;margin-right: 56px;"><strong
|
34 |
<div style="float: left; width: 40px;">
|
35 |
<div class="fb-like" data-href="https://www.facebook.com/pages/The-Champ/196278200561984" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
|
36 |
</div>
|
@@ -49,27 +70,16 @@
|
|
49 |
</div>
|
50 |
|
51 |
<div class="stuffbox">
|
52 |
-
<h3><label><?php _e('
|
53 |
-
<div class="inside">
|
54 |
-
<p>If you like the plugin, want to get it improved and want to see it at the top of other plugins, please consider making a donation.</p>
|
55 |
-
<input type="text" style="width: 50px" name="amount" />
|
56 |
-
<span>USD</span>
|
57 |
-
<br/><br/>
|
58 |
-
<input type="button" class="the_champ_paypal_submit" value="Donate" style="background-color: #1D9AFC; padding: 3px 40px 4px; font-size: 12px; border: 0; color: #fff; border-radius: 2px; font-weight: 700; text-transform: uppercase;" class="button-secondary">
|
59 |
-
</div>
|
60 |
-
</div>
|
61 |
-
|
62 |
-
<div class="stuffbox">
|
63 |
-
<h3><label><?php _e('Want plugin customization?', 'TheChamp');?></label></h3>
|
64 |
<div class="inside">
|
65 |
-
<p
|
66 |
</div>
|
67 |
</div>
|
68 |
|
69 |
<div class="stuffbox">
|
70 |
-
<h3><label><?php _e('White-Label', '
|
71 |
<div class="inside">
|
72 |
-
<p
|
73 |
</div>
|
74 |
</div>
|
75 |
</div>
|
1 |
<?php defined('ABSPATH') or die("Cheating........Uh!!"); ?>
|
2 |
<div class="the_champ_right_column">
|
3 |
<div class="stuffbox">
|
4 |
+
<h3><label><?php _e('About', 'Super-Socializer');?></label><label style="float:right"><?php _e('Version', 'Super-Socializer');?> <?php echo get_option('the_champ_ss_version'); ?></label></h3>
|
5 |
<div class="inside">
|
6 |
+
<p><strong>Super Socializer</strong> <?php _e('by', 'Super-Socializer') ?> <strong>The Champ</strong></p>
|
7 |
+
<p><?php _e('I am a tech enthusiast. I like to play with code and build great stuff (and like to call myself - The Champ....:) ). You can connect with me (and my upcoming work) via:', 'Super-Socializer') ?></p>
|
8 |
<div>
|
9 |
+
<a href="//thechamplord.wordpress.com" target="_blank"><img style="box-shadow:1px 1px 10px 1px #888888" class="theChampLoginButton theChampWordpressButton" title="WordPress Blog" /></a>
|
10 |
<a href="https://www.facebook.com/thechamp.lord" target="_blank"><img style="box-shadow:1px 1px 10px 1px #888888" class="theChampLoginButton theChampFacebookButton" title="Facebook" /></a>
|
11 |
<a href="https://twitter.com/l0rd_champ" target="_blank"><img style="box-shadow:1px 1px 10px 1px #888888" class="theChampLoginButton theChampTwitterButton" title="Twitter" /></a>
|
12 |
+
<a href="//www.linkedin.com/pub/champ-lord/8b/aa2/352" target="_blank"><img style="box-shadow:1px 1px 10px 1px #888888" class="theChampLoginButton theChampLinkedinButton" title="LinkedIn" /></a>
|
13 |
</div>
|
14 |
</div>
|
15 |
</div>
|
16 |
|
17 |
<div class="stuffbox">
|
18 |
+
<h3><label><?php _e('Plugin Demo', 'Super-Socializer');?></label></h3>
|
19 |
<div class="inside">
|
20 |
+
<p><?php _e('You can see the plugin in action at following link', 'Super-Socializer') ?></p>
|
21 |
+
<p><a target="_blank" href="http://super-socializer-wordpress.pyrovolt.com/">http://super-socializer-wordpress.pyrovolt.com/</a></p>
|
22 |
+
</div>
|
23 |
+
</div>
|
24 |
+
|
25 |
+
<div class="stuffbox">
|
26 |
+
<h3><label><?php _e('Support', 'Super-Socializer');?></label></h3>
|
27 |
+
<div class="inside">
|
28 |
+
<p><?php _e('If you like my plugin or have any query, you can drop me an email at <a href="mailto:lordofthechamps@gmail.com">lordofthechamps@gmail.com</a>, like my <strong>Facebook</strong> pages and follow me at <strong>Twitter</strong>.', 'Super-Socializer') ?></p>
|
29 |
+
<div style="height: 24px;">
|
30 |
+
<div style="float: left;margin-right: 36px;"><strong><?php _e('Rate 5-star', 'Super-Socializer'); ?></strong></div>
|
31 |
+
<div style="float: left; margin-left: 28px;">
|
32 |
+
<a style="text-decoration: none" href="//wordpress.org/support/view/plugin-reviews/super-socializer" target="_blank">
|
33 |
+
<img title="<?php _e('Rate 5-star', 'Super-Socializer'); ?>" src="<?php echo plugins_url('../images/star.png', __FILE__) ?>" />
|
34 |
+
<img title="<?php _e('Rate 5-star', 'Super-Socializer'); ?>" src="<?php echo plugins_url('../images/star.png', __FILE__) ?>" />
|
35 |
+
<img title="<?php _e('Rate 5-star', 'Super-Socializer'); ?>" src="<?php echo plugins_url('../images/star.png', __FILE__) ?>" />
|
36 |
+
<img title="<?php _e('Rate 5-star', 'Super-Socializer'); ?>" src="<?php echo plugins_url('../images/star.png', __FILE__) ?>" />
|
37 |
+
<img title="<?php _e('Rate 5-star', 'Super-Socializer'); ?>" src="<?php echo plugins_url('../images/star.png', __FILE__) ?>" />
|
38 |
+
</a>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
|
42 |
+
<div class="the_champ_clear"></div>
|
43 |
|
44 |
<div style="height: 24px;">
|
45 |
+
<div style="float: left;margin-right: 36px;"><strong><?php _e('Plugin Fan Page', 'Super-Socializer'); ?></strong></div>
|
46 |
<div style="float: left; width: 40px;">
|
47 |
<div class="fb-like" data-href="https://www.facebook.com/SocializerChamp" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
|
48 |
</div>
|
51 |
<div class="the_champ_clear"></div>
|
52 |
|
53 |
<div style="height: 24px;">
|
54 |
+
<div style="float: left;margin-right: 56px;"><strong><?php _e('My Fan Page', 'Super-Socializer'); ?></strong></div>
|
55 |
<div style="float: left; width: 40px;">
|
56 |
<div class="fb-like" data-href="https://www.facebook.com/pages/The-Champ/196278200561984" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
|
57 |
</div>
|
70 |
</div>
|
71 |
|
72 |
<div class="stuffbox">
|
73 |
+
<h3><label><?php _e('Want plugin customization?', 'Super-Socializer');?></label></h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
<div class="inside">
|
75 |
+
<p><?php _e('If you want custom features in the plugin, I can do it for you. Just drop me an email at <a href="mailto:lordofthechamps@gmail.com">lordofthechamps@gmail.com</a>', 'Super-Socializer'); ?></p>
|
76 |
</div>
|
77 |
</div>
|
78 |
|
79 |
<div class="stuffbox">
|
80 |
+
<h3><label><?php _e('White-Label', 'Super-Socializer');?></label></h3>
|
81 |
<div class="inside">
|
82 |
+
<p><?php _e('Remove the plugin credit links ("Super Socializer by The Champ") in just $15. Interested? Email me: <a href="mailto:lordofthechamps@gmail.com">lordofthechamps@gmail.com</a>', 'Super-Socializer'); ?></p>
|
83 |
</div>
|
84 |
</div>
|
85 |
</div>
|
admin/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
admin/social_admin.php
CHANGED
@@ -3,30 +3,18 @@
|
|
3 |
|
4 |
<h2>Super Socializer</h2>
|
5 |
<div class="metabox-holder columns-2" id="post-body">
|
6 |
-
|
7 |
-
<div class="stuffbox">
|
8 |
-
<h3><label><?php _e('Welcome', 'TheChamp');?></label></h3>
|
9 |
-
<div class="inside">
|
10 |
-
<p>You are ready to Socialize your website.</p>
|
11 |
-
<h4>Getting Started</h4>
|
12 |
-
<p>Start configuring the options in the sections below the <strong>Super Socializer</strong> menu in the left pan. <strong>Social Sharing</strong> is enabled at your website by default.</p>
|
13 |
-
<p>In <strong>Facebook</strong> section, you can configure Facebook Commenting and Feed.</p>
|
14 |
-
<p>In <strong>Social Login</strong> section, you can select Social ID provders and configure the Social Login options.</p>
|
15 |
-
<p>In <strong>Social Sharing</strong> section, you can choose the Social Networks for Sharing and configure the optons for sharing.</p>
|
16 |
-
</div>
|
17 |
-
</div>
|
18 |
|
|
|
19 |
<div class="stuffbox">
|
20 |
-
<h3><label><?php _e('
|
21 |
<div class="inside">
|
22 |
-
<
|
23 |
-
<
|
24 |
-
|
25 |
-
<
|
26 |
-
<p
|
27 |
-
<p
|
28 |
-
<p>For example</p>
|
29 |
-
<p><i><strong>[TheChamp-Login style="background-color:#000; float:right"]</strong></i></p>
|
30 |
</div>
|
31 |
</div>
|
32 |
|
3 |
|
4 |
<h2>Super Socializer</h2>
|
5 |
<div class="metabox-holder columns-2" id="post-body">
|
6 |
+
<?php require 'donate.php'; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
+
<div class="the_champ_left_column">
|
9 |
<div class="stuffbox">
|
10 |
+
<h3><label><?php _e('Welcome', 'Super-Socializer');?></label></h3>
|
11 |
<div class="inside">
|
12 |
+
<p><?php _e('You are ready to Socialize your website.', 'Super-Socializer') ?></p>
|
13 |
+
<h4><?php _e('Getting Started', 'Super-Socializer') ?></h4>
|
14 |
+
<p><?php _e('Start configuring the options in the sections below the <strong>Super Socializer</strong> menu in the left pan. <strong>Social Sharing</strong> is enabled at your website by default.', 'Super-Socializer') ?></p>
|
15 |
+
<p><?php _e('In <strong>Facebook</strong> section, you can configure Facebook Commenting and Feed.', 'Super-Socializer') ?></p>
|
16 |
+
<p><?php _e('In <strong>Social Login</strong> section, you can select Social ID provders and configure the Social Login options.', 'Super-Socializer') ?></p>
|
17 |
+
<p><?php _e('In <strong>Social Sharing</strong> section, you can choose the Social Networks for Sharing and configure the optons for sharing.', 'Super-Socializer') ?></p>
|
|
|
|
|
18 |
</div>
|
19 |
</div>
|
20 |
|
admin/social_login.php
CHANGED
@@ -1,36 +1,37 @@
|
|
1 |
<?php defined('ABSPATH') or die("Cheating........Uh!!"); ?>
|
2 |
<div id="fb-root"></div>
|
3 |
-
|
4 |
-
<form action="options.php" method="post">
|
5 |
-
<?php settings_fields('the_champ_login_options'); ?>
|
6 |
<div class="metabox-holder">
|
7 |
<div class="menu_div" id="tabs">
|
|
|
|
|
|
|
8 |
<h2 class="nav-tab-wrapper" style="height:37px">
|
9 |
<ul>
|
10 |
-
<li style="margin-left:9px"><a style="margin:0; line-height:auto !important; height:23px" class="nav-tab" href="#tabs-1"><?php _e('Basic Configuration', '
|
11 |
-
<li style="margin-left:9px"><a style="margin:0; line-height:auto !important; height:23px" class="nav-tab" href="#tabs-2"><?php _e('Social Login', '
|
|
|
12 |
</ul>
|
13 |
</h2>
|
14 |
<div class="menu_containt_div" id="tabs-1">
|
15 |
<div class="the_champ_left_column">
|
16 |
<div class="stuffbox">
|
17 |
-
<h3 class="hndle"><label><?php _e('Basic Configuration', '
|
18 |
<div class="inside">
|
19 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
20 |
<tr>
|
21 |
<th>
|
22 |
<img id="the_champ_sl_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
23 |
-
<label for="the_champ_login_enable"><?php _e("Enable Social Login", '
|
24 |
</th>
|
25 |
<td>
|
26 |
-
<input id="the_champ_login_enable" name="the_champ_login[enable]" type="checkbox" <?php echo isset($theChampLoginOptions['enable'])
|
27 |
</td>
|
28 |
</tr>
|
29 |
|
30 |
<tr class="the_champ_help_content" id="the_champ_sl_enable_help_cont">
|
31 |
<td colspan="2">
|
32 |
<div>
|
33 |
-
<?php _e('Master control for Social Login. It must be checked to enable Social Login functionality', '
|
34 |
</div>
|
35 |
</td>
|
36 |
</tr>
|
@@ -38,32 +39,32 @@
|
|
38 |
<tr>
|
39 |
<th>
|
40 |
<img id="the_champ_sl_providers_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
41 |
-
<label><?php _e("Select providers", '
|
42 |
</th>
|
43 |
<td>
|
44 |
-
<div class="
|
45 |
<input id="the_champ_login_facebook" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('facebook', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="facebook" />
|
46 |
-
<label for="the_champ_login_facebook"><?php _e("Facebook", '
|
47 |
</div>
|
48 |
-
<div class="
|
49 |
<input id="the_champ_login_twitter" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="twitter" />
|
50 |
-
<label for="the_champ_login_twitter"><?php _e("Twitter", '
|
51 |
</div>
|
52 |
-
<div class="
|
53 |
<input id="the_champ_login_linkedin" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('linkedin', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="linkedin" />
|
54 |
-
<label for="the_champ_login_linkedin"><?php _e("LinkedIn", '
|
55 |
</div>
|
56 |
-
<div class="
|
57 |
<input id="the_champ_login_google" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('google', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="google" />
|
58 |
-
<label for="the_champ_login_google"><?php _e("Google+", '
|
59 |
</div>
|
60 |
-
<div class="
|
61 |
<input id="the_champ_login_vkontakte" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('vkontakte', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="vkontakte" />
|
62 |
-
<label for="the_champ_login_vkontakte"><?php _e("Vkontakte", '
|
63 |
</div>
|
64 |
-
<div class="
|
65 |
<input id="the_champ_login_instagram" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('instagram', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="instagram" />
|
66 |
-
<label for="the_champ_login_instagram"><?php _e("Instagram", '
|
67 |
</div>
|
68 |
</td>
|
69 |
</tr>
|
@@ -71,7 +72,7 @@
|
|
71 |
<tr class="the_champ_help_content" id="the_champ_sl_providers_help_cont">
|
72 |
<td colspan="2">
|
73 |
<div>
|
74 |
-
<?php _e('Select Social ID provider to enable in Social Login', '
|
75 |
</div>
|
76 |
</td>
|
77 |
</tr>
|
@@ -79,7 +80,7 @@
|
|
79 |
<tr>
|
80 |
<th>
|
81 |
<img id="the_champ_slfb_key_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
82 |
-
<label for="the_champ_fblogin_key"><?php _e("Facebook App ID", '
|
83 |
</th>
|
84 |
<td>
|
85 |
<input id="the_champ_fblogin_key" name="the_champ_login[fb_key]" type="text" value="<?php echo isset($theChampLoginOptions['fb_key']) ? $theChampLoginOptions['fb_key'] : '' ?>" />
|
@@ -89,7 +90,7 @@
|
|
89 |
<tr class="the_champ_help_content" id="the_champ_slfb_key_help_cont">
|
90 |
<td colspan="2">
|
91 |
<div>
|
92 |
-
<?php echo sprintf(__('Required for Facebook Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Facebook App ID', '
|
93 |
</div>
|
94 |
</td>
|
95 |
</tr>
|
@@ -97,7 +98,7 @@
|
|
97 |
<tr>
|
98 |
<th>
|
99 |
<img id="the_champ_sltw_key_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
100 |
-
<label for="the_champ_twlogin_key"><?php _e("Twitter Consumer Key", '
|
101 |
</th>
|
102 |
<td>
|
103 |
<input id="the_champ_twlogin_key" name="the_champ_login[twitter_key]" type="text" value="<?php echo isset($theChampLoginOptions['twitter_key']) ? $theChampLoginOptions['twitter_key'] : '' ?>" />
|
@@ -107,7 +108,7 @@
|
|
107 |
<tr class="the_champ_help_content" id="the_champ_sltw_key_help_cont">
|
108 |
<td colspan="2">
|
109 |
<div>
|
110 |
-
<?php echo sprintf(__('Required for Twitter Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Twitter Consumer Key', '
|
111 |
</div>
|
112 |
</td>
|
113 |
</tr>
|
@@ -115,7 +116,7 @@
|
|
115 |
<tr>
|
116 |
<th>
|
117 |
<img id="the_champ_sltw_secret_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
118 |
-
<label for="the_champ_twlogin_secret"><?php _e("Twitter Consumer Secret", '
|
119 |
</th>
|
120 |
<td>
|
121 |
<input id="the_champ_twlogin_secret" name="the_champ_login[twitter_secret]" type="text" value="<?php echo isset($theChampLoginOptions['twitter_secret']) ? $theChampLoginOptions['twitter_secret'] : '' ?>" />
|
@@ -125,7 +126,7 @@
|
|
125 |
<tr class="the_champ_help_content" id="the_champ_sltw_secret_help_cont">
|
126 |
<td colspan="2">
|
127 |
<div>
|
128 |
-
<?php echo sprintf(__('Required for Twitter Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Twitter Consumer Secret', '
|
129 |
</div>
|
130 |
</td>
|
131 |
</tr>
|
@@ -133,7 +134,7 @@
|
|
133 |
<tr>
|
134 |
<th>
|
135 |
<img id="the_champ_slli_key_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
136 |
-
<label for="the_champ_lilogin_key"><?php _e("LinkedIn API Key", '
|
137 |
</th>
|
138 |
<td>
|
139 |
<input id="the_champ_lilogin_key" name="the_champ_login[li_key]" type="text" value="<?php echo isset($theChampLoginOptions['li_key']) ? $theChampLoginOptions['li_key'] : '' ?>" />
|
@@ -143,7 +144,7 @@
|
|
143 |
<tr class="the_champ_help_content" id="the_champ_slli_key_help_cont">
|
144 |
<td colspan="2">
|
145 |
<div>
|
146 |
-
<?php echo sprintf(__('Required for LinkedIn Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get LinkedIn API Key', '
|
147 |
</div>
|
148 |
</td>
|
149 |
</tr>
|
@@ -151,7 +152,7 @@
|
|
151 |
<tr>
|
152 |
<th>
|
153 |
<img id="the_champ_slgp_id_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
154 |
-
<label for="the_champ_gplogin_key"><?php _e("Google+ Client ID", '
|
155 |
</th>
|
156 |
<td>
|
157 |
<input id="the_champ_gplogin_key" name="the_champ_login[google_key]" type="text" value="<?php echo isset($theChampLoginOptions['google_key']) ? $theChampLoginOptions['google_key'] : '' ?>" />
|
@@ -161,7 +162,7 @@
|
|
161 |
<tr class="the_champ_help_content" id="the_champ_slgp_id_help_cont">
|
162 |
<td colspan="2">
|
163 |
<div>
|
164 |
-
<?php echo sprintf(__('Required for GooglePlus Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get GooglePlus Client ID', '
|
165 |
</div>
|
166 |
</td>
|
167 |
</tr>
|
@@ -169,7 +170,7 @@
|
|
169 |
<tr>
|
170 |
<th>
|
171 |
<img id="the_champ_slvk_id_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
172 |
-
<label for="the_champ_vklogin_key"><?php _e("Vkontakte Application ID", '
|
173 |
</th>
|
174 |
<td>
|
175 |
<input id="the_champ_vklogin_key" name="the_champ_login[vk_key]" type="text" value="<?php echo isset($theChampLoginOptions['vk_key']) ? $theChampLoginOptions['vk_key'] : '' ?>" />
|
@@ -179,7 +180,7 @@
|
|
179 |
<tr class="the_champ_help_content" id="the_champ_slvk_id_help_cont">
|
180 |
<td colspan="2">
|
181 |
<div>
|
182 |
-
<?php echo sprintf(__('Required for Vkontakte Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Vkontakte Application ID', '
|
183 |
</div>
|
184 |
</td>
|
185 |
</tr>
|
@@ -187,7 +188,7 @@
|
|
187 |
<tr>
|
188 |
<th>
|
189 |
<img id="the_champ_slinsta_id_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
190 |
-
<label for="the_champ_insta_key"><?php _e("Instagram Client ID", '
|
191 |
</th>
|
192 |
<td>
|
193 |
<input id="the_champ_insta_key" name="the_champ_login[insta_id]" type="text" value="<?php echo isset($theChampLoginOptions['insta_id']) ? $theChampLoginOptions['insta_id'] : '' ?>" />
|
@@ -197,7 +198,7 @@
|
|
197 |
<tr class="the_champ_help_content" id="the_champ_slinsta_id_help_cont">
|
198 |
<td colspan="2">
|
199 |
<div>
|
200 |
-
<?php echo sprintf(__('Required for Instagram Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Instagram Client ID', '
|
201 |
</div>
|
202 |
</td>
|
203 |
</tr>
|
@@ -205,17 +206,17 @@
|
|
205 |
<tr>
|
206 |
<th>
|
207 |
<img id="the_champ_sl_footer_script_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
208 |
-
<label for="the_champ_login_footer_script"><?php _e("Include Javascript in website footer", '
|
209 |
</th>
|
210 |
<td>
|
211 |
-
<input id="the_champ_login_footer_script" name="the_champ_login[footer_script]" type="checkbox" <?php echo isset($theChampLoginOptions['footer_script'])
|
212 |
</td>
|
213 |
</tr>
|
214 |
|
215 |
<tr class="the_champ_help_content" id="the_champ_sl_footer_script_help_cont">
|
216 |
<td colspan="2">
|
217 |
<div>
|
218 |
-
<?php _e('If enabled (recommended), all the Javascript code will be included in the footer of your website.<br/><strong>"wp_footer" and "login_footer" hooks should be there in your Wordpress theme for this to work, if you are not sure about this, keep this option unchecked.</strong>', '
|
219 |
</div>
|
220 |
</td>
|
221 |
</tr>
|
@@ -229,13 +230,13 @@
|
|
229 |
<div class="menu_containt_div" id="tabs-2">
|
230 |
<div class="the_champ_left_column">
|
231 |
<div class="stuffbox">
|
232 |
-
<h3 class="hndle"><label><?php _e('Login options', '
|
233 |
<div class="inside">
|
234 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
235 |
<tr>
|
236 |
<th>
|
237 |
<img id="the_champ_sl_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
238 |
-
<label for="the_champ_fblogin_title"><?php _e("Title", '
|
239 |
</th>
|
240 |
<td>
|
241 |
<input id="the_champ_fblogin_title" name="the_champ_login[title]" type="text" value="<?php echo isset($theChampLoginOptions['title']) ? $theChampLoginOptions['title'] : '' ?>" />
|
@@ -245,7 +246,7 @@
|
|
245 |
<tr class="the_champ_help_content" id="the_champ_sl_title_help_cont">
|
246 |
<td colspan="2">
|
247 |
<div>
|
248 |
-
<?php _e('Text to display above the Social Login interface', '
|
249 |
</div>
|
250 |
<img src="<?php echo plugins_url('../images/snaps/title.png', __FILE__); ?>" />
|
251 |
</td>
|
@@ -254,17 +255,17 @@
|
|
254 |
<tr>
|
255 |
<th>
|
256 |
<img id="the_champ_sl_loginpage_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
257 |
-
<label for="the_champ_fblogin_enableAtLogin"><?php _e("Enable at login page", '
|
258 |
</th>
|
259 |
<td>
|
260 |
-
<input id="the_champ_fblogin_enableAtLogin" name="the_champ_login[enableAtLogin]" type="checkbox" <?php echo isset($theChampLoginOptions['enableAtLogin'])
|
261 |
</td>
|
262 |
</tr>
|
263 |
|
264 |
<tr class="the_champ_help_content" id="the_champ_sl_loginpage_help_cont">
|
265 |
<td colspan="2">
|
266 |
<div>
|
267 |
-
<?php _e('Social Login interface will get enabled at your Wordpress login page', '
|
268 |
</div>
|
269 |
<img src="<?php echo plugins_url('../images/snaps/sl_wplogin.png', __FILE__); ?>" />
|
270 |
</td>
|
@@ -273,17 +274,17 @@
|
|
273 |
<tr>
|
274 |
<th>
|
275 |
<img id="the_champ_sl_regpage_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
276 |
-
<label for="the_champ_fblogin_enableAtRegister"><?php _e("Enable at register page", '
|
277 |
</th>
|
278 |
<td>
|
279 |
-
<input id="the_champ_fblogin_enableAtRegister" name="the_champ_login[enableAtRegister]" type="checkbox" <?php echo isset($theChampLoginOptions['enableAtRegister'])
|
280 |
</td>
|
281 |
</tr>
|
282 |
|
283 |
<tr class="the_champ_help_content" id="the_champ_sl_regpage_help_cont">
|
284 |
<td colspan="2">
|
285 |
<div>
|
286 |
-
<?php _e('Social Login interface will get enabled at your Wordpress registration page', '
|
287 |
</div>
|
288 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpreg.png', __FILE__); ?>" />
|
289 |
</td>
|
@@ -292,36 +293,59 @@
|
|
292 |
<tr>
|
293 |
<th>
|
294 |
<img id="the_champ_sl_cmntform_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
295 |
-
<label for="the_champ_fblogin_enableAtComment"><?php _e("Enable at
|
296 |
</th>
|
297 |
<td>
|
298 |
-
<input id="the_champ_fblogin_enableAtComment" name="the_champ_login[enableAtComment]" type="checkbox" <?php echo isset($theChampLoginOptions['enableAtComment'])
|
299 |
</td>
|
300 |
</tr>
|
301 |
|
302 |
<tr class="the_champ_help_content" id="the_champ_sl_cmntform_help_cont">
|
303 |
<td colspan="2">
|
304 |
<div>
|
305 |
-
<?php _e('Social Login interface will get enabled at your Wordpress Comment form
|
306 |
</div>
|
307 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpcomment.png', __FILE__); ?>" />
|
308 |
</td>
|
309 |
</tr>
|
310 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
<tr>
|
312 |
<th>
|
313 |
<img id="the_champ_sl_avatar_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
314 |
-
<label for="the_champ_login_avatar"><?php _e("Enable
|
315 |
</th>
|
316 |
<td>
|
317 |
-
<input id="the_champ_login_avatar" name="the_champ_login[avatar]" type="checkbox" <?php echo isset($theChampLoginOptions['avatar'])
|
318 |
</td>
|
319 |
</tr>
|
320 |
|
321 |
<tr class="the_champ_help_content" id="the_champ_sl_avatar_help_cont">
|
322 |
<td colspan="2">
|
323 |
<div>
|
324 |
-
<?php _e('Social profile pictures of the logged in user will be displayed as profile avatar', '
|
325 |
</div>
|
326 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpavatar.png', __FILE__); ?>" />
|
327 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpavatar2.png', __FILE__); ?>" />
|
@@ -331,17 +355,17 @@
|
|
331 |
<tr>
|
332 |
<th>
|
333 |
<img id="the_champ_sl_emailreq_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
334 |
-
<label for="the_champ_login_email_required"><?php _e("Email required", '
|
335 |
</th>
|
336 |
<td>
|
337 |
-
<input id="the_champ_login_email_required" name="the_champ_login[email_required]" type="checkbox" <?php echo isset($theChampLoginOptions['email_required'])
|
338 |
</td>
|
339 |
</tr>
|
340 |
|
341 |
<tr class="the_champ_help_content" id="the_champ_sl_emailreq_help_cont">
|
342 |
<td colspan="2">
|
343 |
<div>
|
344 |
-
<?php _e('If enabled and Social ID provider does not provide user\'s email address on login, user will be asked to provide his/her email address. Otherwise, a dummy email will be generated', '
|
345 |
</div>
|
346 |
<img src="<?php echo plugins_url('../images/snaps/sl_email_required.png', __FILE__); ?>" />
|
347 |
</td>
|
@@ -349,121 +373,189 @@
|
|
349 |
|
350 |
<tr>
|
351 |
<th>
|
352 |
-
<img id="
|
353 |
-
<label for="
|
354 |
</th>
|
355 |
<td>
|
356 |
-
<
|
357 |
</td>
|
358 |
</tr>
|
359 |
|
360 |
-
<tr class="the_champ_help_content" id="
|
361 |
<td colspan="2">
|
362 |
<div>
|
363 |
-
<?php _e('
|
364 |
</div>
|
365 |
-
<img src="<?php echo plugins_url('../images/snaps/sl_emailreq_message.png', __FILE__); ?>" />
|
366 |
</td>
|
367 |
</tr>
|
368 |
|
369 |
<tr>
|
370 |
<th>
|
371 |
-
<img id="
|
372 |
-
<label
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
</th>
|
374 |
<td>
|
375 |
-
<
|
376 |
</td>
|
377 |
</tr>
|
378 |
|
379 |
-
<tr class="the_champ_help_content" id="
|
380 |
<td colspan="2">
|
381 |
<div>
|
382 |
-
<?php _e('
|
383 |
</div>
|
|
|
384 |
</td>
|
385 |
</tr>
|
386 |
|
387 |
<tr>
|
388 |
<th>
|
389 |
-
<img id="
|
390 |
-
<label for="
|
391 |
</th>
|
392 |
<td>
|
393 |
-
<
|
394 |
</td>
|
395 |
</tr>
|
396 |
|
397 |
-
<tr class="the_champ_help_content" id="
|
398 |
<td colspan="2">
|
399 |
<div>
|
400 |
-
<?php _e('
|
401 |
</div>
|
|
|
402 |
</td>
|
403 |
</tr>
|
404 |
|
405 |
<tr>
|
406 |
<th>
|
407 |
-
<img id="
|
408 |
-
<label><?php _e("
|
409 |
</th>
|
410 |
-
<td
|
411 |
-
<input id="
|
412 |
-
<label for="the_champ_login_redirection_same">Same page where user logged in</label><br/>
|
413 |
-
<input id="the_champ_login_redirection_home" name="the_champ_login[login_redirection]" type="radio" <?php echo isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'homepage' ? 'checked = "checked"' : '';?> value="homepage" />
|
414 |
-
<label for="the_champ_login_redirection_home">Homepage</label><br/>
|
415 |
-
<input id="the_champ_login_redirection_account" name="the_champ_login[login_redirection]" type="radio" <?php echo isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'account' ? 'checked = "checked"' : '';?> value="account" />
|
416 |
-
<label for="the_champ_login_redirection_account">Account dashboard</label><br/>
|
417 |
-
<input id="the_champ_login_redirection_custom" name="the_champ_login[login_redirection]" type="radio" <?php echo isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
418 |
-
<label for="the_champ_login_redirection_custom">Custom Url</label><br/>
|
419 |
-
<input id="the_champ_login_redirection_url" name="the_champ_login[login_redirection_url]" type="text" value="<?php echo isset($theChampLoginOptions['login_redirection_url']) ? $theChampLoginOptions['login_redirection_url'] : '' ?>" />
|
420 |
</td>
|
421 |
</tr>
|
422 |
|
423 |
-
<tr class="the_champ_help_content" id="
|
424 |
<td colspan="2">
|
425 |
<div>
|
426 |
-
<?php _e('
|
427 |
</div>
|
428 |
</td>
|
429 |
</tr>
|
430 |
|
431 |
<tr>
|
432 |
<th>
|
433 |
-
<img id="
|
434 |
-
<label><?php _e("
|
435 |
</th>
|
436 |
-
<td
|
437 |
-
<input id="
|
438 |
-
<label for="the_champ_register_redirection_same">Same page where user logged in</label><br/>
|
439 |
-
<input id="the_champ_register_redirection_home" name="the_champ_login[register_redirection]" type="radio" <?php echo isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'homepage' ? 'checked = "checked"' : '';?> value="homepage" />
|
440 |
-
<label for="the_champ_register_redirection_home">Homepage</label><br/>
|
441 |
-
<input id="the_champ_register_redirection_account" name="the_champ_login[register_redirection]" type="radio" <?php echo isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'account' ? 'checked = "checked"' : '';?> value="account" />
|
442 |
-
<label for="the_champ_register_redirection_account">Account dashboard</label><br/>
|
443 |
-
<input id="the_champ_register_redirection_custom" name="the_champ_login[register_redirection]" type="radio" <?php echo isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
444 |
-
<label for="the_champ_register_redirection_custom">Custom Url</label><br/>
|
445 |
-
<input id="the_champ_register_redirection_url" name="the_champ_login[register_redirection_url]" type="text" value="<?php echo isset($theChampLoginOptions['register_redirection_url']) ? $theChampLoginOptions['register_redirection_url'] : '' ?>" />
|
446 |
</td>
|
447 |
</tr>
|
448 |
|
449 |
-
<tr class="the_champ_help_content" id="
|
450 |
<td colspan="2">
|
451 |
<div>
|
452 |
-
<?php _e('
|
453 |
</div>
|
454 |
</td>
|
455 |
</tr>
|
456 |
</table>
|
457 |
</div>
|
|
|
458 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
</div>
|
460 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
<?php include 'help.php'; ?>
|
462 |
</div>
|
463 |
-
|
464 |
<div class="the_champ_clear"></div>
|
465 |
<p class="submit">
|
466 |
-
<input style="margin-left:8px" type="submit" name="save" class="button button-primary" value="<?php _e("Save Changes", '
|
467 |
</p>
|
468 |
-
|
469 |
-
</
|
|
|
|
1 |
<?php defined('ABSPATH') or die("Cheating........Uh!!"); ?>
|
2 |
<div id="fb-root"></div>
|
|
|
|
|
|
|
3 |
<div class="metabox-holder">
|
4 |
<div class="menu_div" id="tabs">
|
5 |
+
<?php require 'donate.php'; ?>
|
6 |
+
<form action="options.php" method="post">
|
7 |
+
<?php settings_fields('the_champ_login_options'); ?>
|
8 |
<h2 class="nav-tab-wrapper" style="height:37px">
|
9 |
<ul>
|
10 |
+
<li style="margin-left:9px"><a style="margin:0; line-height:auto !important; height:23px" class="nav-tab" href="#tabs-1"><?php _e('Basic Configuration', 'Super-Socializer') ?></a></li>
|
11 |
+
<li style="margin-left:9px"><a style="margin:0; line-height:auto !important; height:23px" class="nav-tab" href="#tabs-2"><?php _e('Social Login', 'Super-Socializer') ?></a></li>
|
12 |
+
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-3"><?php _e('Shortcode & Widget', 'Super-Socializer') ?></a></li>
|
13 |
</ul>
|
14 |
</h2>
|
15 |
<div class="menu_containt_div" id="tabs-1">
|
16 |
<div class="the_champ_left_column">
|
17 |
<div class="stuffbox">
|
18 |
+
<h3 class="hndle"><label><?php _e('Basic Configuration', 'Super-Socializer');?></label></h3>
|
19 |
<div class="inside">
|
20 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
21 |
<tr>
|
22 |
<th>
|
23 |
<img id="the_champ_sl_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
24 |
+
<label for="the_champ_login_enable"><?php _e("Enable Social Login", 'Super-Socializer'); ?></label>
|
25 |
</th>
|
26 |
<td>
|
27 |
+
<input id="the_champ_login_enable" name="the_champ_login[enable]" type="checkbox" <?php echo isset($theChampLoginOptions['enable']) ? 'checked = "checked"' : '';?> value="1" />
|
28 |
</td>
|
29 |
</tr>
|
30 |
|
31 |
<tr class="the_champ_help_content" id="the_champ_sl_enable_help_cont">
|
32 |
<td colspan="2">
|
33 |
<div>
|
34 |
+
<?php _e('Master control for Social Login. It must be checked to enable Social Login functionality', 'Super-Socializer') ?>
|
35 |
</div>
|
36 |
</td>
|
37 |
</tr>
|
39 |
<tr>
|
40 |
<th>
|
41 |
<img id="the_champ_sl_providers_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
42 |
+
<label><?php _e("Select providers", 'Super-Socializer'); ?></label>
|
43 |
</th>
|
44 |
<td>
|
45 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
46 |
<input id="the_champ_login_facebook" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('facebook', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="facebook" />
|
47 |
+
<label for="the_champ_login_facebook"><?php _e("Facebook", 'Super-Socializer'); ?></label>
|
48 |
</div>
|
49 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
50 |
<input id="the_champ_login_twitter" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="twitter" />
|
51 |
+
<label for="the_champ_login_twitter"><?php _e("Twitter", 'Super-Socializer'); ?></label>
|
52 |
</div>
|
53 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
54 |
<input id="the_champ_login_linkedin" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('linkedin', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="linkedin" />
|
55 |
+
<label for="the_champ_login_linkedin"><?php _e("LinkedIn", 'Super-Socializer'); ?></label>
|
56 |
</div>
|
57 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
58 |
<input id="the_champ_login_google" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('google', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="google" />
|
59 |
+
<label for="the_champ_login_google"><?php _e("Google+", 'Super-Socializer'); ?></label>
|
60 |
</div>
|
61 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
62 |
<input id="the_champ_login_vkontakte" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('vkontakte', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="vkontakte" />
|
63 |
+
<label for="the_champ_login_vkontakte"><?php _e("Vkontakte", 'Super-Socializer'); ?></label>
|
64 |
</div>
|
65 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
66 |
<input id="the_champ_login_instagram" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('instagram', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="instagram" />
|
67 |
+
<label for="the_champ_login_instagram"><?php _e("Instagram", 'Super-Socializer'); ?></label>
|
68 |
</div>
|
69 |
</td>
|
70 |
</tr>
|
72 |
<tr class="the_champ_help_content" id="the_champ_sl_providers_help_cont">
|
73 |
<td colspan="2">
|
74 |
<div>
|
75 |
+
<?php _e('Select Social ID provider to enable in Social Login', 'Super-Socializer') ?>
|
76 |
</div>
|
77 |
</td>
|
78 |
</tr>
|
80 |
<tr>
|
81 |
<th>
|
82 |
<img id="the_champ_slfb_key_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
83 |
+
<label for="the_champ_fblogin_key"><?php _e("Facebook App ID", 'Super-Socializer'); ?></label>
|
84 |
</th>
|
85 |
<td>
|
86 |
<input id="the_champ_fblogin_key" name="the_champ_login[fb_key]" type="text" value="<?php echo isset($theChampLoginOptions['fb_key']) ? $theChampLoginOptions['fb_key'] : '' ?>" />
|
90 |
<tr class="the_champ_help_content" id="the_champ_slfb_key_help_cont">
|
91 |
<td colspan="2">
|
92 |
<div>
|
93 |
+
<?php echo sprintf(__('Required for Facebook Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Facebook App ID', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/16/getting-the-facebook-app-id/') ?>
|
94 |
</div>
|
95 |
</td>
|
96 |
</tr>
|
98 |
<tr>
|
99 |
<th>
|
100 |
<img id="the_champ_sltw_key_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
101 |
+
<label for="the_champ_twlogin_key"><?php _e("Twitter Consumer Key", 'Super-Socializer'); ?></label>
|
102 |
</th>
|
103 |
<td>
|
104 |
<input id="the_champ_twlogin_key" name="the_champ_login[twitter_key]" type="text" value="<?php echo isset($theChampLoginOptions['twitter_key']) ? $theChampLoginOptions['twitter_key'] : '' ?>" />
|
108 |
<tr class="the_champ_help_content" id="the_champ_sltw_key_help_cont">
|
109 |
<td colspan="2">
|
110 |
<div>
|
111 |
+
<?php echo sprintf(__('Required for Twitter Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Twitter Consumer Key', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/28/getting-twitter-consumer-key-and-secret/') ?>
|
112 |
</div>
|
113 |
</td>
|
114 |
</tr>
|
116 |
<tr>
|
117 |
<th>
|
118 |
<img id="the_champ_sltw_secret_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
119 |
+
<label for="the_champ_twlogin_secret"><?php _e("Twitter Consumer Secret", 'Super-Socializer'); ?></label>
|
120 |
</th>
|
121 |
<td>
|
122 |
<input id="the_champ_twlogin_secret" name="the_champ_login[twitter_secret]" type="text" value="<?php echo isset($theChampLoginOptions['twitter_secret']) ? $theChampLoginOptions['twitter_secret'] : '' ?>" />
|
126 |
<tr class="the_champ_help_content" id="the_champ_sltw_secret_help_cont">
|
127 |
<td colspan="2">
|
128 |
<div>
|
129 |
+
<?php echo sprintf(__('Required for Twitter Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Twitter Consumer Secret', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/28/getting-twitter-consumer-key-and-secret/') ?>
|
130 |
</div>
|
131 |
</td>
|
132 |
</tr>
|
134 |
<tr>
|
135 |
<th>
|
136 |
<img id="the_champ_slli_key_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
137 |
+
<label for="the_champ_lilogin_key"><?php _e("LinkedIn API Key", 'Super-Socializer'); ?></label>
|
138 |
</th>
|
139 |
<td>
|
140 |
<input id="the_champ_lilogin_key" name="the_champ_login[li_key]" type="text" value="<?php echo isset($theChampLoginOptions['li_key']) ? $theChampLoginOptions['li_key'] : '' ?>" />
|
144 |
<tr class="the_champ_help_content" id="the_champ_slli_key_help_cont">
|
145 |
<td colspan="2">
|
146 |
<div>
|
147 |
+
<?php echo sprintf(__('Required for LinkedIn Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get LinkedIn API Key', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/26/getting-linkedin-api-key/') ?>
|
148 |
</div>
|
149 |
</td>
|
150 |
</tr>
|
152 |
<tr>
|
153 |
<th>
|
154 |
<img id="the_champ_slgp_id_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
155 |
+
<label for="the_champ_gplogin_key"><?php _e("Google+ Client ID", 'Super-Socializer'); ?></label>
|
156 |
</th>
|
157 |
<td>
|
158 |
<input id="the_champ_gplogin_key" name="the_champ_login[google_key]" type="text" value="<?php echo isset($theChampLoginOptions['google_key']) ? $theChampLoginOptions['google_key'] : '' ?>" />
|
162 |
<tr class="the_champ_help_content" id="the_champ_slgp_id_help_cont">
|
163 |
<td colspan="2">
|
164 |
<div>
|
165 |
+
<?php echo sprintf(__('Required for GooglePlus Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get GooglePlus Client ID', 'Super-Socializer'), '//thechamplord.wordpress.com/2013/12/30/getting-google-plus-client-id/') ?>
|
166 |
</div>
|
167 |
</td>
|
168 |
</tr>
|
170 |
<tr>
|
171 |
<th>
|
172 |
<img id="the_champ_slvk_id_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
173 |
+
<label for="the_champ_vklogin_key"><?php _e("Vkontakte Application ID", 'Super-Socializer'); ?></label>
|
174 |
</th>
|
175 |
<td>
|
176 |
<input id="the_champ_vklogin_key" name="the_champ_login[vk_key]" type="text" value="<?php echo isset($theChampLoginOptions['vk_key']) ? $theChampLoginOptions['vk_key'] : '' ?>" />
|
180 |
<tr class="the_champ_help_content" id="the_champ_slvk_id_help_cont">
|
181 |
<td colspan="2">
|
182 |
<div>
|
183 |
+
<?php echo sprintf(__('Required for Vkontakte Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Vkontakte Application ID', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/03/07/how-to-configure-vkontakte-application-and-get-application-id/') ?>
|
184 |
</div>
|
185 |
</td>
|
186 |
</tr>
|
188 |
<tr>
|
189 |
<th>
|
190 |
<img id="the_champ_slinsta_id_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
191 |
+
<label for="the_champ_insta_key"><?php _e("Instagram Client ID", 'Super-Socializer'); ?></label>
|
192 |
</th>
|
193 |
<td>
|
194 |
<input id="the_champ_insta_key" name="the_champ_login[insta_id]" type="text" value="<?php echo isset($theChampLoginOptions['insta_id']) ? $theChampLoginOptions['insta_id'] : '' ?>" />
|
198 |
<tr class="the_champ_help_content" id="the_champ_slinsta_id_help_cont">
|
199 |
<td colspan="2">
|
200 |
<div>
|
201 |
+
<?php echo sprintf(__('Required for Instagram Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Instagram Client ID', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/04/14/how-to-configure-instagram-application-and-get-client-id/') ?>
|
202 |
</div>
|
203 |
</td>
|
204 |
</tr>
|
206 |
<tr>
|
207 |
<th>
|
208 |
<img id="the_champ_sl_footer_script_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
209 |
+
<label for="the_champ_login_footer_script"><?php _e("Include Javascript in website footer", 'Super-Socializer'); ?></label>
|
210 |
</th>
|
211 |
<td>
|
212 |
+
<input id="the_champ_login_footer_script" name="the_champ_login[footer_script]" type="checkbox" <?php echo isset($theChampLoginOptions['footer_script']) ? 'checked = "checked"' : '';?> value="1" />
|
213 |
</td>
|
214 |
</tr>
|
215 |
|
216 |
<tr class="the_champ_help_content" id="the_champ_sl_footer_script_help_cont">
|
217 |
<td colspan="2">
|
218 |
<div>
|
219 |
+
<?php _e('If enabled (recommended), all the Javascript code will be included in the footer of your website.<br/><strong>"wp_footer" and "login_footer" hooks should be there in your Wordpress theme for this to work, if you are not sure about this, keep this option unchecked.</strong>', 'Super-Socializer') ?>
|
220 |
</div>
|
221 |
</td>
|
222 |
</tr>
|
230 |
<div class="menu_containt_div" id="tabs-2">
|
231 |
<div class="the_champ_left_column">
|
232 |
<div class="stuffbox">
|
233 |
+
<h3 class="hndle"><label><?php _e('Login options', 'Super-Socializer');?></label></h3>
|
234 |
<div class="inside">
|
235 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
236 |
<tr>
|
237 |
<th>
|
238 |
<img id="the_champ_sl_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
239 |
+
<label for="the_champ_fblogin_title"><?php _e("Title", 'Super-Socializer'); ?></label>
|
240 |
</th>
|
241 |
<td>
|
242 |
<input id="the_champ_fblogin_title" name="the_champ_login[title]" type="text" value="<?php echo isset($theChampLoginOptions['title']) ? $theChampLoginOptions['title'] : '' ?>" />
|
246 |
<tr class="the_champ_help_content" id="the_champ_sl_title_help_cont">
|
247 |
<td colspan="2">
|
248 |
<div>
|
249 |
+
<?php _e('Text to display above the Social Login interface', 'Super-Socializer') ?>
|
250 |
</div>
|
251 |
<img src="<?php echo plugins_url('../images/snaps/title.png', __FILE__); ?>" />
|
252 |
</td>
|
255 |
<tr>
|
256 |
<th>
|
257 |
<img id="the_champ_sl_loginpage_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
258 |
+
<label for="the_champ_fblogin_enableAtLogin"><?php _e("Enable at login page", 'Super-Socializer'); ?></label>
|
259 |
</th>
|
260 |
<td>
|
261 |
+
<input id="the_champ_fblogin_enableAtLogin" name="the_champ_login[enableAtLogin]" type="checkbox" <?php echo isset($theChampLoginOptions['enableAtLogin']) ? 'checked = "checked"' : '';?> value="1" />
|
262 |
</td>
|
263 |
</tr>
|
264 |
|
265 |
<tr class="the_champ_help_content" id="the_champ_sl_loginpage_help_cont">
|
266 |
<td colspan="2">
|
267 |
<div>
|
268 |
+
<?php _e('Social Login interface will get enabled at your Wordpress login page', 'Super-Socializer') ?>
|
269 |
</div>
|
270 |
<img src="<?php echo plugins_url('../images/snaps/sl_wplogin.png', __FILE__); ?>" />
|
271 |
</td>
|
274 |
<tr>
|
275 |
<th>
|
276 |
<img id="the_champ_sl_regpage_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
277 |
+
<label for="the_champ_fblogin_enableAtRegister"><?php _e("Enable at register page", 'Super-Socializer'); ?></label>
|
278 |
</th>
|
279 |
<td>
|
280 |
+
<input id="the_champ_fblogin_enableAtRegister" name="the_champ_login[enableAtRegister]" type="checkbox" <?php echo isset($theChampLoginOptions['enableAtRegister']) ? 'checked = "checked"' : '';?> value="1" />
|
281 |
</td>
|
282 |
</tr>
|
283 |
|
284 |
<tr class="the_champ_help_content" id="the_champ_sl_regpage_help_cont">
|
285 |
<td colspan="2">
|
286 |
<div>
|
287 |
+
<?php _e('Social Login interface will get enabled at your Wordpress registration page', 'Super-Socializer') ?>
|
288 |
</div>
|
289 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpreg.png', __FILE__); ?>" />
|
290 |
</td>
|
293 |
<tr>
|
294 |
<th>
|
295 |
<img id="the_champ_sl_cmntform_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
296 |
+
<label for="the_champ_fblogin_enableAtComment"><?php _e("Enable at comment form", 'Super-Socializer'); ?></label>
|
297 |
</th>
|
298 |
<td>
|
299 |
+
<input id="the_champ_fblogin_enableAtComment" name="the_champ_login[enableAtComment]" type="checkbox" <?php echo isset($theChampLoginOptions['enableAtComment']) ? 'checked = "checked"' : '';?> value="1" />
|
300 |
</td>
|
301 |
</tr>
|
302 |
|
303 |
<tr class="the_champ_help_content" id="the_champ_sl_cmntform_help_cont">
|
304 |
<td colspan="2">
|
305 |
<div>
|
306 |
+
<?php _e('Social Login interface will get enabled at your Wordpress Comment form', 'Super-Socializer') ?>
|
307 |
</div>
|
308 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpcomment.png', __FILE__); ?>" />
|
309 |
</td>
|
310 |
</tr>
|
311 |
+
<?php
|
312 |
+
if(!isset($theChampFacebookOptions['force_fb_comment']) && isset($theChampLoginOptions['enable'])){
|
313 |
+
?>
|
314 |
+
<tr>
|
315 |
+
<th>
|
316 |
+
<img id="the_champ_approve_comment_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
317 |
+
<label for="the_champ_approve_comment"><?php _e("Auto-approve comments made by Social Login users", 'Super-Socializer'); ?></label>
|
318 |
+
</th>
|
319 |
+
<td>
|
320 |
+
<input id="the_champ_approve_comment" name="the_champ_login[autoApproveComment]" type="checkbox" <?php echo isset($theChampLoginOptions['autoApproveComment']) ? 'checked = "checked"' : '';?> value="1" />
|
321 |
+
</td>
|
322 |
+
</tr>
|
323 |
+
|
324 |
+
<tr class="the_champ_help_content" id="the_champ_approve_comment_help_cont">
|
325 |
+
<td colspan="2">
|
326 |
+
<div>
|
327 |
+
<?php _e('If this option is enabled, and WordPress comment is made by Social Login user, comment will get approved immediately without keeping in moderation.', 'Super-Socializer') ?><br/>
|
328 |
+
<strong><?php _e('Note: This is not related to Facebook comments', 'Super-Socializer') ?></strong>
|
329 |
+
</div>
|
330 |
+
</td>
|
331 |
+
</tr>
|
332 |
+
<?php
|
333 |
+
}
|
334 |
+
?>
|
335 |
<tr>
|
336 |
<th>
|
337 |
<img id="the_champ_sl_avatar_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
338 |
+
<label for="the_champ_login_avatar"><?php _e("Enable social avatar", 'Super-Socializer'); ?></label>
|
339 |
</th>
|
340 |
<td>
|
341 |
+
<input id="the_champ_login_avatar" name="the_champ_login[avatar]" type="checkbox" <?php echo isset($theChampLoginOptions['avatar']) ? 'checked = "checked"' : '';?> value="1" />
|
342 |
</td>
|
343 |
</tr>
|
344 |
|
345 |
<tr class="the_champ_help_content" id="the_champ_sl_avatar_help_cont">
|
346 |
<td colspan="2">
|
347 |
<div>
|
348 |
+
<?php _e('Social profile pictures of the logged in user will be displayed as profile avatar', 'Super-Socializer') ?>
|
349 |
</div>
|
350 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpavatar.png', __FILE__); ?>" />
|
351 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpavatar2.png', __FILE__); ?>" />
|
355 |
<tr>
|
356 |
<th>
|
357 |
<img id="the_champ_sl_emailreq_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
358 |
+
<label for="the_champ_login_email_required"><?php _e("Email required", 'Super-Socializer'); ?></label>
|
359 |
</th>
|
360 |
<td>
|
361 |
+
<input onclick="theChampEmailPopupOptions(this)" id="the_champ_login_email_required" name="the_champ_login[email_required]" type="checkbox" <?php echo isset($theChampLoginOptions['email_required']) ? 'checked = "checked"' : '';?> value="1" />
|
362 |
</td>
|
363 |
</tr>
|
364 |
|
365 |
<tr class="the_champ_help_content" id="the_champ_sl_emailreq_help_cont">
|
366 |
<td colspan="2">
|
367 |
<div>
|
368 |
+
<?php _e('If enabled and Social ID provider does not provide user\'s email address on login, user will be asked to provide his/her email address. Otherwise, a dummy email will be generated', 'Super-Socializer') ?>
|
369 |
</div>
|
370 |
<img src="<?php echo plugins_url('../images/snaps/sl_email_required.png', __FILE__); ?>" />
|
371 |
</td>
|
373 |
|
374 |
<tr>
|
375 |
<th>
|
376 |
+
<img id="the_champ_sl_postreg_email_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
377 |
+
<label for="the_champ_password_email"><?php _e("Send username-password after user registration", 'Super-Socializer'); ?></label>
|
378 |
</th>
|
379 |
<td>
|
380 |
+
<input id="the_champ_password_email" name="the_champ_login[password_email]" type="checkbox" <?php echo isset($theChampLoginOptions['password_email']) ? 'checked = "checked"' : '';?> value="1" />
|
381 |
</td>
|
382 |
</tr>
|
383 |
|
384 |
+
<tr class="the_champ_help_content" id="the_champ_sl_postreg_email_help_cont">
|
385 |
<td colspan="2">
|
386 |
<div>
|
387 |
+
<?php _e('If enabled, an email will be sent to user after registration through Social Login, regarding his/her login credentials (username-password to be able to login via traditional login form)', 'Super-Socializer') ?>
|
388 |
</div>
|
|
|
389 |
</td>
|
390 |
</tr>
|
391 |
|
392 |
<tr>
|
393 |
<th>
|
394 |
+
<img id="the_champ_sl_loginredirect_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
395 |
+
<label><?php _e("Login redirection", 'Super-Socializer'); ?></label>
|
396 |
+
</th>
|
397 |
+
<td id="the_champ_login_redirection_column">
|
398 |
+
<input id="the_champ_login_redirection_same" name="the_champ_login[login_redirection]" type="radio" <?php echo !isset($theChampLoginOptions['login_redirection']) || $theChampLoginOptions['login_redirection'] == 'same' ? 'checked = "checked"' : '';?> value="same" />
|
399 |
+
<label for="the_champ_login_redirection_same"><?php _e('Same page where user logged in', 'Super-Socializer') ?></label><br/>
|
400 |
+
<input id="the_champ_login_redirection_home" name="the_champ_login[login_redirection]" type="radio" <?php echo isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'homepage' ? 'checked = "checked"' : '';?> value="homepage" />
|
401 |
+
<label for="the_champ_login_redirection_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
402 |
+
<input id="the_champ_login_redirection_account" name="the_champ_login[login_redirection]" type="radio" <?php echo isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'account' ? 'checked = "checked"' : '';?> value="account" />
|
403 |
+
<label for="the_champ_login_redirection_account"><?php _e('Account dashboard', 'Super-Socializer') ?></label><br/>
|
404 |
+
<input id="the_champ_login_redirection_custom" name="the_champ_login[login_redirection]" type="radio" <?php echo isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
405 |
+
<label for="the_champ_login_redirection_custom"><?php _e('Custom Url', 'Super-Socializer') ?></label><br/>
|
406 |
+
<input id="the_champ_login_redirection_url" name="the_champ_login[login_redirection_url]" type="text" value="<?php echo isset($theChampLoginOptions['login_redirection_url']) ? $theChampLoginOptions['login_redirection_url'] : '' ?>" />
|
407 |
+
</td>
|
408 |
+
</tr>
|
409 |
+
|
410 |
+
<tr class="the_champ_help_content" id="the_champ_sl_loginredirect_help_cont">
|
411 |
+
<td colspan="2">
|
412 |
+
<div>
|
413 |
+
<?php _e('User will be redirected to the selected page after Social Login', 'Super-Socializer') ?>
|
414 |
+
</div>
|
415 |
+
</td>
|
416 |
+
</tr>
|
417 |
+
|
418 |
+
<tr>
|
419 |
+
<th>
|
420 |
+
<img id="the_champ_sl_register_redirect_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
421 |
+
<label><?php _e("Registration redirection", 'Super-Socializer'); ?></label>
|
422 |
+
</th>
|
423 |
+
<td id="the_champ_register_redirection_column">
|
424 |
+
<input id="the_champ_register_redirection_same" name="the_champ_login[register_redirection]" type="radio" <?php echo !isset($theChampLoginOptions['register_redirection']) || $theChampLoginOptions['register_redirection'] == 'same' ? 'checked = "checked"' : '';?> value="same" />
|
425 |
+
<label for="the_champ_register_redirection_same"><?php _e('Same page where user logged in', 'Super-Socializer') ?></label><br/>
|
426 |
+
<input id="the_champ_register_redirection_home" name="the_champ_login[register_redirection]" type="radio" <?php echo isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'homepage' ? 'checked = "checked"' : '';?> value="homepage" />
|
427 |
+
<label for="the_champ_register_redirection_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
428 |
+
<input id="the_champ_register_redirection_account" name="the_champ_login[register_redirection]" type="radio" <?php echo isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'account' ? 'checked = "checked"' : '';?> value="account" />
|
429 |
+
<label for="the_champ_register_redirection_account"><?php _e('Account dashboard', 'Super-Socializer') ?></label><br/>
|
430 |
+
<input id="the_champ_register_redirection_custom" name="the_champ_login[register_redirection]" type="radio" <?php echo isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
431 |
+
<label for="the_champ_register_redirection_custom"><?php _e('Custom Url', 'Super-Socializer') ?></label><br/>
|
432 |
+
<input id="the_champ_register_redirection_url" name="the_champ_login[register_redirection_url]" type="text" value="<?php echo isset($theChampLoginOptions['register_redirection_url']) ? $theChampLoginOptions['register_redirection_url'] : '' ?>" />
|
433 |
+
</td>
|
434 |
+
</tr>
|
435 |
+
|
436 |
+
<tr class="the_champ_help_content" id="the_champ_sl_register_redirect_help_cont">
|
437 |
+
<td colspan="2">
|
438 |
+
<div>
|
439 |
+
<?php _e('User will be redirected to the selected page after registration (first Social Login) through Social Login', 'Super-Socializer') ?>
|
440 |
+
</div>
|
441 |
+
</td>
|
442 |
+
</tr>
|
443 |
+
</table>
|
444 |
+
</div>
|
445 |
+
</div>
|
446 |
+
<div class="stuffbox" <?php echo !isset($theChampLoginOptions['email_required']) ? 'style="display: none"' : '' ?> id="the_champ_email_popup_options">
|
447 |
+
<h3 class="hndle"><label><?php _e('Email popup options', 'Super-Socializer');?></label></h3>
|
448 |
+
<div class="inside">
|
449 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
450 |
+
<tr>
|
451 |
+
<th>
|
452 |
+
<img id="the_champ_sl_emailreq_text_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
453 |
+
<label for="the_champ_login_email_required_text"><?php _e("Text on 'Email required' popup", 'Super-Socializer'); ?></label>
|
454 |
</th>
|
455 |
<td>
|
456 |
+
<textarea rows="4" cols="40" id="the_champ_login_email_required_text" name="the_champ_login[email_popup_text]"><?php echo isset($theChampLoginOptions['email_popup_text']) ? $theChampLoginOptions['email_popup_text'] : '' ?></textarea>
|
457 |
</td>
|
458 |
</tr>
|
459 |
|
460 |
+
<tr class="the_champ_help_content" id="the_champ_sl_emailreq_text_help_cont">
|
461 |
<td colspan="2">
|
462 |
<div>
|
463 |
+
<?php _e('This text will be displayed on email required popup. Leave empty if not required.', 'Super-Socializer') ?>
|
464 |
</div>
|
465 |
+
<img width="550" src="<?php echo plugins_url('../images/snaps/sl_email_popup_message.png', __FILE__); ?>" />
|
466 |
</td>
|
467 |
</tr>
|
468 |
|
469 |
<tr>
|
470 |
<th>
|
471 |
+
<img id="the_champ_sl_emailreq_error_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
472 |
+
<label for="the_champ_login_email_required_error"><?php _e("Error message for 'Email required' popup", 'Super-Socializer'); ?></label>
|
473 |
</th>
|
474 |
<td>
|
475 |
+
<textarea rows="4" cols="40" id="the_champ_login_email_required_error" name="the_champ_login[email_error_message]"><?php echo isset($theChampLoginOptions['email_error_message']) ? $theChampLoginOptions['email_error_message'] : '' ?></textarea>
|
476 |
</td>
|
477 |
</tr>
|
478 |
|
479 |
+
<tr class="the_champ_help_content" id="the_champ_sl_emailreq_error_help_cont">
|
480 |
<td colspan="2">
|
481 |
<div>
|
482 |
+
<?php _e('This message will be displayed to user if it provides invalid or already registered email', 'Super-Socializer') ?>
|
483 |
</div>
|
484 |
+
<img width="550" src="<?php echo plugins_url('../images/snaps/sl_emailreq_message.png', __FILE__); ?>" />
|
485 |
</td>
|
486 |
</tr>
|
487 |
|
488 |
<tr>
|
489 |
<th>
|
490 |
+
<img id="the_champ_email_popup_height_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
491 |
+
<label for="the_champ_email_popup_height"><?php _e("Email popup height", 'Super-Socializer'); ?></label>
|
492 |
</th>
|
493 |
+
<td>
|
494 |
+
<input style="width: 100px" id="the_champ_email_popup_height" name="the_champ_login[popup_height]" type="text" value="<?php echo isset($theChampLoginOptions['popup_height']) ? $theChampLoginOptions['popup_height'] : '' ?>" />px
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
</td>
|
496 |
</tr>
|
497 |
|
498 |
+
<tr class="the_champ_help_content" id="the_champ_email_popup_height_help_cont">
|
499 |
<td colspan="2">
|
500 |
<div>
|
501 |
+
<?php _e('If you are seeing vertical scrollbar in the "Email required" popup, you can increase the height of popup by specifying in this option. Leave empty for default.', 'Super-Socializer') ?>
|
502 |
</div>
|
503 |
</td>
|
504 |
</tr>
|
505 |
|
506 |
<tr>
|
507 |
<th>
|
508 |
+
<img id="the_champ_sl_emailver_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
509 |
+
<label for="the_champ_password_email_verification"><?php _e("Enable email verification", 'Super-Socializer'); ?></label>
|
510 |
</th>
|
511 |
+
<td>
|
512 |
+
<input id="the_champ_password_email_verification" name="the_champ_login[email_verification]" type="checkbox" <?php echo isset($theChampLoginOptions['email_verification']) ? 'checked = "checked"' : '';?> value="1" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
513 |
</td>
|
514 |
</tr>
|
515 |
|
516 |
+
<tr class="the_champ_help_content" id="the_champ_sl_emailver_help_cont">
|
517 |
<td colspan="2">
|
518 |
<div>
|
519 |
+
<?php _e('If enabled, email provided by the user will be verified by sending a confirmation link to that email. User would not be able to login without verifying his/her email', 'Super-Socializer') ?>
|
520 |
</div>
|
521 |
</td>
|
522 |
</tr>
|
523 |
</table>
|
524 |
</div>
|
525 |
+
</div>
|
526 |
</div>
|
527 |
+
<?php include 'help.php'; ?>
|
528 |
+
</div>
|
529 |
+
|
530 |
+
<div class="menu_containt_div" id="tabs-3">
|
531 |
+
<div class="the_champ_left_column">
|
532 |
+
<div class="stuffbox">
|
533 |
+
<h3><label><?php _e('Shortcode', 'Super-Socializer');?></label></h3>
|
534 |
+
<div class="inside">
|
535 |
+
<p><?php _e('Use <strong>[TheChamp-Login]</strong> Shortcode in the content of required page/post where you want to display Social Login interface.', 'Super-Socializer') ?></p>
|
536 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
537 |
+
<p><strong>[TheChamp-Login]</strong></p>
|
538 |
+
<p><?php _e('You can use "style" attribute in the Shortcode to style the rendered Social Login interface.', 'Super-Socializer') ?></p>
|
539 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
540 |
+
<p><strong>[TheChamp-Login style="background-color:#000;"]</strong></p>
|
541 |
+
</div>
|
542 |
</div>
|
543 |
|
544 |
+
<div class="stuffbox">
|
545 |
+
<h3><label><?php _e('Widget', 'Super-Socializer');?></label></h3>
|
546 |
+
<div class="inside">
|
547 |
+
<p><?php _e('You can navigate to the <strong>Appearance</strong> > <strong>Widgets</strong> section in the left pan and drag <strong>Super Socializer - Login</strong> widget in the required area.', 'Super-Socializer') ?></p>
|
548 |
+
</div>
|
549 |
+
</div>
|
550 |
+
</div>
|
551 |
<?php include 'help.php'; ?>
|
552 |
</div>
|
553 |
+
|
554 |
<div class="the_champ_clear"></div>
|
555 |
<p class="submit">
|
556 |
+
<input style="margin-left:8px" type="submit" name="save" class="button button-primary" value="<?php _e("Save Changes", 'Super-Socializer'); ?>" />
|
557 |
</p>
|
558 |
+
</form>
|
559 |
+
</div>
|
560 |
+
|
561 |
+
</div>
|
admin/social_sharing.php
CHANGED
@@ -6,35 +6,122 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
6 |
<div id="fb-root"></div>
|
7 |
|
8 |
<div class="metabox-holder columns-2" id="post-body">
|
9 |
-
<form action="options.php" method="post">
|
10 |
-
<?php settings_fields('the_champ_sharing_options'); ?>
|
11 |
<div class="menu_div" id="tabs">
|
|
|
|
|
|
|
12 |
<h2 class="nav-tab-wrapper" style="height:36px">
|
13 |
<ul>
|
14 |
-
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-1"><?php _e('
|
15 |
-
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-2"><?php _e('Social Sharing', '
|
|
|
|
|
16 |
</ul>
|
17 |
</h2>
|
18 |
<div class="menu_containt_div" id="tabs-1">
|
19 |
<div class="the_champ_left_column">
|
20 |
<div class="stuffbox" >
|
21 |
-
<h3><label><?php _e('Basic Configuration', '
|
22 |
<div class="inside">
|
23 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
24 |
<tr>
|
25 |
<th>
|
26 |
<img id="the_champ_ss_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
27 |
-
<label for="the_champ_sharing_enable"><?php _e("Enable Social Sharing", '
|
28 |
</th>
|
29 |
<td>
|
30 |
-
<input id="the_champ_sharing_enable" name="the_champ_sharing[enable]" type="checkbox" <?php echo isset($theChampSharingOptions['enable'])
|
31 |
</td>
|
32 |
</tr>
|
33 |
|
34 |
<tr class="the_champ_help_content" id="the_champ_ss_enable_help_cont">
|
35 |
<td colspan="2">
|
36 |
<div>
|
37 |
-
<?php _e('Master control for Social Sharing. It must be checked to enable Social Sharing functionality', '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</div>
|
39 |
</td>
|
40 |
</tr>
|
@@ -42,82 +129,82 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
42 |
<tr>
|
43 |
<th>
|
44 |
<img id="the_champ_ss_providers_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
45 |
-
<label><?php _e("Select providers", '
|
46 |
</th>
|
47 |
<td>
|
48 |
-
<div class="
|
49 |
<input id="the_champ_sharing_facebook" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('facebook', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="facebook" />
|
50 |
-
<label for="the_champ_sharing_facebook"><?php _e("Facebook", '
|
51 |
</div>
|
52 |
|
53 |
-
<div class="
|
54 |
<input id="the_champ_sharing_twitter" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('twitter', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="twitter" />
|
55 |
-
<label for="the_champ_sharing_twitter"><?php _e("Twitter", '
|
56 |
</div>
|
57 |
|
58 |
-
<div class="
|
59 |
<input id="the_champ_sharing_linkedin" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('linkedin', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="linkedin" />
|
60 |
-
<label for="the_champ_sharing_linkedin"><?php _e("LinkedIn", '
|
61 |
</div>
|
62 |
|
63 |
-
<div class="
|
64 |
<input id="the_champ_sharing_google" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('google', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="google" />
|
65 |
-
<label for="the_champ_sharing_google"><?php _e("Google+", '
|
66 |
</div>
|
67 |
|
68 |
-
<div class="
|
69 |
<input id="the_champ_sharing_print" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('print', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="print" />
|
70 |
-
<label for="the_champ_sharing_print"><?php _e("Print", '
|
71 |
</div>
|
72 |
|
73 |
-
<div class="
|
74 |
<input id="the_champ_sharing_email" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('email', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="email" />
|
75 |
-
<label for="the_champ_sharing_email"><?php _e("Email", '
|
76 |
</div>
|
77 |
|
78 |
-
<div class="
|
79 |
<input id="the_champ_sharing_yahoo" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('yahoo', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="yahoo" />
|
80 |
-
<label for="the_champ_sharing_yahoo"><?php _e("Yahoo", '
|
81 |
</div>
|
82 |
|
83 |
-
<div class="
|
84 |
<input id="the_champ_sharing_reddit" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('reddit', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="reddit" />
|
85 |
-
<label for="the_champ_sharing_reddit"><?php _e("Reddit", '
|
86 |
</div>
|
87 |
|
88 |
-
<div class="
|
89 |
<input id="the_champ_sharing_digg" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('digg', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="digg" />
|
90 |
-
<label for="the_champ_sharing_digg"><?php _e("Digg", '
|
91 |
</div>
|
92 |
|
93 |
-
<div class="
|
94 |
<input id="the_champ_sharing_delicious" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('delicious', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="delicious" />
|
95 |
-
<label for="the_champ_sharing_delicious"><?php _e("Delicious", '
|
96 |
</div>
|
97 |
|
98 |
-
<div class="
|
99 |
<input id="the_champ_sharing_stumble" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('stumbleupon', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="stumbleupon" />
|
100 |
-
<label for="the_champ_sharing_stumble"><?php _e("StumbleUpon", '
|
101 |
</div>
|
102 |
|
103 |
-
<div class="
|
104 |
<input id="the_champ_sharing_float" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('float it', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="float it" />
|
105 |
-
<label for="the_champ_sharing_float"><?php _e("Float it", '
|
106 |
</div>
|
107 |
|
108 |
-
<div class="
|
109 |
<input id="the_champ_sharing_tumblr" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('tumblr', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="tumblr" />
|
110 |
-
<label for="the_champ_sharing_tumblr"><?php _e("Tumblr", '
|
111 |
</div>
|
112 |
|
113 |
-
<div class="
|
114 |
<input id="the_champ_sharing_vk" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('vkontakte', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="vkontakte" />
|
115 |
-
<label for="the_champ_sharing_vk"><?php _e("Vkontakte", '
|
116 |
</div>
|
117 |
|
118 |
-
<div class="
|
119 |
<input id="the_champ_sharing_pinterest" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('pinterest', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="pinterest" />
|
120 |
-
<label for="the_champ_sharing_pinterest"><?php _e("Pinterest", '
|
121 |
</div>
|
122 |
</td>
|
123 |
</tr>
|
@@ -125,7 +212,7 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
125 |
<tr class="the_champ_help_content" id="the_champ_ss_providers_help_cont">
|
126 |
<td colspan="2">
|
127 |
<div>
|
128 |
-
<?php _e('Select the providers for sharing interface', '
|
129 |
</div>
|
130 |
</td>
|
131 |
</tr>
|
@@ -133,7 +220,7 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
133 |
<tr>
|
134 |
<th>
|
135 |
<img id="the_champ_ss_rearrange_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
136 |
-
<label><?php _e("Rearrange icons", '
|
137 |
</th>
|
138 |
<td>
|
139 |
<ul id="the_champ_ss_rearrange">
|
@@ -141,7 +228,7 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
141 |
if(isset($theChampSharingOptions['horizontal_re_providers'])){
|
142 |
foreach($theChampSharingOptions['horizontal_re_providers'] as $rearrange){
|
143 |
?>
|
144 |
-
<li title="<?php echo $rearrange ?>" id="
|
145 |
<i class="theChampSharingButton theChampSharing<?php echo str_replace(' ', '', $rearrange) ?>Button"></i>
|
146 |
<input type="hidden" name="the_champ_sharing[horizontal_re_providers][]" value="<?php echo $rearrange ?>">
|
147 |
</li>
|
@@ -156,105 +243,383 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
156 |
<tr class="the_champ_help_content" id="the_champ_ss_rearrange_help_cont">
|
157 |
<td colspan="2">
|
158 |
<div>
|
159 |
-
<?php _e('Drag the icons to rearrange
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
</div>
|
161 |
</td>
|
162 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
</table>
|
164 |
</div>
|
165 |
</div>
|
166 |
-
|
167 |
-
<?php include 'help.php'; ?>
|
168 |
-
</div>
|
169 |
-
|
170 |
-
<div class="menu_containt_div" id="tabs-2">
|
171 |
-
<div class="the_champ_left_column">
|
172 |
<div class="stuffbox">
|
173 |
-
<h3><label><?php _e('Sharing
|
174 |
<div class="inside">
|
175 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
176 |
<tr>
|
177 |
<th>
|
178 |
-
<img id="
|
179 |
-
<label for="
|
180 |
</th>
|
181 |
<td>
|
182 |
-
<input id="
|
183 |
</td>
|
184 |
</tr>
|
185 |
|
186 |
-
<tr class="the_champ_help_content" id="
|
187 |
<td colspan="2">
|
188 |
<div>
|
189 |
-
<?php _e('
|
|
|
190 |
</div>
|
191 |
</td>
|
192 |
</tr>
|
193 |
|
|
|
|
|
194 |
<tr>
|
195 |
<th>
|
196 |
-
<img id="
|
197 |
-
<label><?php _e("
|
198 |
</th>
|
199 |
<td>
|
200 |
-
<
|
201 |
-
<
|
202 |
-
<
|
203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
</td>
|
205 |
</tr>
|
206 |
|
207 |
-
<tr class="the_champ_help_content" id="
|
208 |
<td colspan="2">
|
209 |
<div>
|
210 |
-
<?php _e('
|
211 |
</div>
|
212 |
</td>
|
213 |
</tr>
|
214 |
|
215 |
<tr>
|
216 |
<th>
|
217 |
-
<img id="
|
218 |
-
<label><?php _e("
|
219 |
</th>
|
220 |
<td>
|
221 |
-
<
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
</td>
|
230 |
</tr>
|
231 |
|
232 |
-
<tr class="the_champ_help_content" id="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
<td colspan="2">
|
234 |
<div>
|
235 |
-
<?php _e('Specify the pages where you want to enable Sharing interface', '
|
236 |
</div>
|
237 |
</td>
|
238 |
</tr>
|
239 |
|
240 |
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
<td colspan="2">
|
242 |
<div>
|
243 |
-
<?php _e('
|
|
|
244 |
</div>
|
245 |
</td>
|
246 |
</tr>
|
|
|
247 |
</table>
|
248 |
</div>
|
249 |
</div>
|
|
|
250 |
</div>
|
251 |
<?php include 'help.php'; ?>
|
252 |
</div>
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
</div>
|
259 |
-
</form>
|
260 |
</div>
|
6 |
<div id="fb-root"></div>
|
7 |
|
8 |
<div class="metabox-holder columns-2" id="post-body">
|
|
|
|
|
9 |
<div class="menu_div" id="tabs">
|
10 |
+
<?php require 'donate.php'; ?>
|
11 |
+
<form action="options.php" method="post">
|
12 |
+
<?php settings_fields('the_champ_sharing_options'); ?>
|
13 |
<h2 class="nav-tab-wrapper" style="height:36px">
|
14 |
<ul>
|
15 |
+
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-1"><?php _e('Basic Configuration', 'Super-Socializer') ?></a></li>
|
16 |
+
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-2"><?php _e('Social Sharing', 'Super-Socializer') ?></a></li>
|
17 |
+
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-3"><?php _e('Shortcode & Widget', 'Super-Socializer') ?></a></li>
|
18 |
+
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-4"><?php _e('Troubleshooter', 'Super-Socializer') ?></a></li>
|
19 |
</ul>
|
20 |
</h2>
|
21 |
<div class="menu_containt_div" id="tabs-1">
|
22 |
<div class="the_champ_left_column">
|
23 |
<div class="stuffbox" >
|
24 |
+
<h3><label><?php _e('Basic Configuration', 'Super-Socializer');?></label></h3>
|
25 |
<div class="inside">
|
26 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
27 |
<tr>
|
28 |
<th>
|
29 |
<img id="the_champ_ss_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
30 |
+
<label for="the_champ_sharing_enable"><?php _e("Enable Social Sharing", 'Super-Socializer'); ?></label>
|
31 |
</th>
|
32 |
<td>
|
33 |
+
<input id="the_champ_sharing_enable" name="the_champ_sharing[enable]" type="checkbox" <?php echo isset($theChampSharingOptions['enable']) ? 'checked = "checked"' : '';?> value="1" />
|
34 |
</td>
|
35 |
</tr>
|
36 |
|
37 |
<tr class="the_champ_help_content" id="the_champ_ss_enable_help_cont">
|
38 |
<td colspan="2">
|
39 |
<div>
|
40 |
+
<?php _e('Master control for Social Sharing. It must be checked to enable Social Sharing functionality', 'Super-Socializer') ?>
|
41 |
+
</div>
|
42 |
+
</td>
|
43 |
+
</tr>
|
44 |
+
|
45 |
+
<tr>
|
46 |
+
<th>
|
47 |
+
<img id="the_champ_delete_options_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
48 |
+
<label for="the_champ_delete_options"><?php _e("Delete all the options on plugin deletion", 'Super-Socializer'); ?></label>
|
49 |
+
</th>
|
50 |
+
<td>
|
51 |
+
<input id="the_champ_delete_options" name="the_champ_sharing[delete_options]" type="checkbox" <?php echo isset($theChampSharingOptions['delete_options']) ? 'checked = "checked"' : '';?> value="1" />
|
52 |
+
</td>
|
53 |
+
</tr>
|
54 |
+
|
55 |
+
<tr class="the_champ_help_content" id="the_champ_delete_options_help_cont">
|
56 |
+
<td colspan="2">
|
57 |
+
<div>
|
58 |
+
<?php _e('If enabled, plugin options will get deleted when plugin is deleted/uninstalled and you will need to reconfigure the options when you install the plugin next time.', 'Super-Socializer') ?>
|
59 |
+
</div>
|
60 |
+
</td>
|
61 |
+
</tr>
|
62 |
+
</table>
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<div class="stuffbox">
|
67 |
+
<div class="inside">
|
68 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
69 |
+
<tr>
|
70 |
+
<td colspan="2">
|
71 |
+
<div>
|
72 |
+
<?php _e('<strong>Note:</strong> To disable sharing on particular page/post, edit that page/post and check the <strong>"Disable Social Sharing on this page"</strong> option at the bottom in <strong>"Super Socializer"</strong> section', 'Super-Socializer') ?>
|
73 |
+
</div>
|
74 |
+
<img style="box-shadow: 4px 4px 4px 4px #888888; margin: 8px 0" width="550" id="the_champ_sl_emailver_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/snaps/ss_disable_sharing.png', __FILE__) ?>" />
|
75 |
+
</td>
|
76 |
+
</tr>
|
77 |
+
</table>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
|
81 |
+
</div>
|
82 |
+
<?php include 'help.php'; ?>
|
83 |
+
</div>
|
84 |
+
|
85 |
+
<div class="menu_containt_div" id="tabs-2">
|
86 |
+
<div class="the_champ_left_column">
|
87 |
+
<div class="stuffbox">
|
88 |
+
<h3><label><?php _e('Horizontal Sharing Interface Options', 'Super-Socializer');?></label></h3>
|
89 |
+
<div class="inside">
|
90 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
91 |
+
<tr>
|
92 |
+
<th>
|
93 |
+
<img id="the_champ_ss_horizontal_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
94 |
+
<label for="the_champ_ss_horizontal_enable"><?php _e("Enable horizontal sharing interface", 'Super-Socializer'); ?></label>
|
95 |
+
</th>
|
96 |
+
<td>
|
97 |
+
<input id="the_champ_ss_horizontal_enable" onclick="theChampHorizontalSharingOptionsToggle(this)" name="the_champ_sharing[hor_enable]" type="checkbox" <?php echo isset($theChampSharingOptions['hor_enable']) ? 'checked = "checked"' : '';?> value="1" />
|
98 |
+
</td>
|
99 |
+
</tr>
|
100 |
+
|
101 |
+
<tr class="the_champ_help_content" id="the_champ_ss_horizontal_enable_help_cont">
|
102 |
+
<td colspan="2">
|
103 |
+
<div>
|
104 |
+
<?php _e('Master control to enable horizontal sharing', 'Super-Socializer') ?>
|
105 |
+
<img width="550" src="<?php echo plugins_url('../images/snaps/ss_horizontal_sharing.png', __FILE__); ?>" />
|
106 |
+
</div>
|
107 |
+
</td>
|
108 |
+
</tr>
|
109 |
+
|
110 |
+
<tbody id="the_champ_horizontal_sharing_options" <?php echo isset($theChampSharingOptions['hor_enable']) ? '' : 'style="display: none"'; ?>>
|
111 |
+
<tr>
|
112 |
+
<th>
|
113 |
+
<img id="the_champ_ss_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
114 |
+
<label for="the_champ_fblogin_title"><?php _e("Title", 'Super-Socializer'); ?></label>
|
115 |
+
</th>
|
116 |
+
<td>
|
117 |
+
<input id="the_champ_fblogin_title" name="the_champ_sharing[title]" type="text" value="<?php echo isset($theChampSharingOptions['title']) ? $theChampSharingOptions['title'] : '' ?>" />
|
118 |
+
</td>
|
119 |
+
</tr>
|
120 |
+
|
121 |
+
<tr class="the_champ_help_content" id="the_champ_ss_title_help_cont">
|
122 |
+
<td colspan="2">
|
123 |
+
<div>
|
124 |
+
<?php _e('The text to display above the sharing interface', 'Super-Socializer') ?>
|
125 |
</div>
|
126 |
</td>
|
127 |
</tr>
|
129 |
<tr>
|
130 |
<th>
|
131 |
<img id="the_champ_ss_providers_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
132 |
+
<label><?php _e("Select providers", 'Super-Socializer'); ?></label>
|
133 |
</th>
|
134 |
<td>
|
135 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
136 |
<input id="the_champ_sharing_facebook" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('facebook', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="facebook" />
|
137 |
+
<label for="the_champ_sharing_facebook"><?php _e("Facebook", 'Super-Socializer'); ?></label>
|
138 |
</div>
|
139 |
|
140 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
141 |
<input id="the_champ_sharing_twitter" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('twitter', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="twitter" />
|
142 |
+
<label for="the_champ_sharing_twitter"><?php _e("Twitter", 'Super-Socializer'); ?></label>
|
143 |
</div>
|
144 |
|
145 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
146 |
<input id="the_champ_sharing_linkedin" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('linkedin', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="linkedin" />
|
147 |
+
<label for="the_champ_sharing_linkedin"><?php _e("LinkedIn", 'Super-Socializer'); ?></label>
|
148 |
</div>
|
149 |
|
150 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
151 |
<input id="the_champ_sharing_google" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('google', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="google" />
|
152 |
+
<label for="the_champ_sharing_google"><?php _e("Google+", 'Super-Socializer'); ?></label>
|
153 |
</div>
|
154 |
|
155 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
156 |
<input id="the_champ_sharing_print" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('print', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="print" />
|
157 |
+
<label for="the_champ_sharing_print"><?php _e("Print", 'Super-Socializer'); ?></label>
|
158 |
</div>
|
159 |
|
160 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
161 |
<input id="the_champ_sharing_email" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('email', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="email" />
|
162 |
+
<label for="the_champ_sharing_email"><?php _e("Email", 'Super-Socializer'); ?></label>
|
163 |
</div>
|
164 |
|
165 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
166 |
<input id="the_champ_sharing_yahoo" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('yahoo', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="yahoo" />
|
167 |
+
<label for="the_champ_sharing_yahoo"><?php _e("Yahoo", 'Super-Socializer'); ?></label>
|
168 |
</div>
|
169 |
|
170 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
171 |
<input id="the_champ_sharing_reddit" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('reddit', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="reddit" />
|
172 |
+
<label for="the_champ_sharing_reddit"><?php _e("Reddit", 'Super-Socializer'); ?></label>
|
173 |
</div>
|
174 |
|
175 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
176 |
<input id="the_champ_sharing_digg" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('digg', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="digg" />
|
177 |
+
<label for="the_champ_sharing_digg"><?php _e("Digg", 'Super-Socializer'); ?></label>
|
178 |
</div>
|
179 |
|
180 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
181 |
<input id="the_champ_sharing_delicious" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('delicious', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="delicious" />
|
182 |
+
<label for="the_champ_sharing_delicious"><?php _e("Delicious", 'Super-Socializer'); ?></label>
|
183 |
</div>
|
184 |
|
185 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
186 |
<input id="the_champ_sharing_stumble" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('stumbleupon', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="stumbleupon" />
|
187 |
+
<label for="the_champ_sharing_stumble"><?php _e("StumbleUpon", 'Super-Socializer'); ?></label>
|
188 |
</div>
|
189 |
|
190 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
191 |
<input id="the_champ_sharing_float" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('float it', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="float it" />
|
192 |
+
<label for="the_champ_sharing_float"><?php _e("Float it", 'Super-Socializer'); ?></label>
|
193 |
</div>
|
194 |
|
195 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
196 |
<input id="the_champ_sharing_tumblr" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('tumblr', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="tumblr" />
|
197 |
+
<label for="the_champ_sharing_tumblr"><?php _e("Tumblr", 'Super-Socializer'); ?></label>
|
198 |
</div>
|
199 |
|
200 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
201 |
<input id="the_champ_sharing_vk" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('vkontakte', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="vkontakte" />
|
202 |
+
<label for="the_champ_sharing_vk"><?php _e("Vkontakte", 'Super-Socializer'); ?></label>
|
203 |
</div>
|
204 |
|
205 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
206 |
<input id="the_champ_sharing_pinterest" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('pinterest', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="pinterest" />
|
207 |
+
<label for="the_champ_sharing_pinterest"><?php _e("Pinterest", 'Super-Socializer'); ?></label>
|
208 |
</div>
|
209 |
</td>
|
210 |
</tr>
|
212 |
<tr class="the_champ_help_content" id="the_champ_ss_providers_help_cont">
|
213 |
<td colspan="2">
|
214 |
<div>
|
215 |
+
<?php _e('Select the providers for sharing interface', 'Super-Socializer') ?>
|
216 |
</div>
|
217 |
</td>
|
218 |
</tr>
|
220 |
<tr>
|
221 |
<th>
|
222 |
<img id="the_champ_ss_rearrange_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
223 |
+
<label><?php _e("Rearrange icons", 'Super-Socializer'); ?></label>
|
224 |
</th>
|
225 |
<td>
|
226 |
<ul id="the_champ_ss_rearrange">
|
228 |
if(isset($theChampSharingOptions['horizontal_re_providers'])){
|
229 |
foreach($theChampSharingOptions['horizontal_re_providers'] as $rearrange){
|
230 |
?>
|
231 |
+
<li title="<?php echo $rearrange ?>" id="the_champ_re_horizontal_<?php echo str_replace(' ', '_', $rearrange) ?>" >
|
232 |
<i class="theChampSharingButton theChampSharing<?php echo str_replace(' ', '', $rearrange) ?>Button"></i>
|
233 |
<input type="hidden" name="the_champ_sharing[horizontal_re_providers][]" value="<?php echo $rearrange ?>">
|
234 |
</li>
|
243 |
<tr class="the_champ_help_content" id="the_champ_ss_rearrange_help_cont">
|
244 |
<td colspan="2">
|
245 |
<div>
|
246 |
+
<?php _e('Drag the icons to rearrange in desired order', 'Super-Socializer') ?>
|
247 |
+
</div>
|
248 |
+
</td>
|
249 |
+
</tr>
|
250 |
+
|
251 |
+
<tr>
|
252 |
+
<th>
|
253 |
+
<img id="the_champ_ss_position_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
254 |
+
<label><?php _e("Position with respect to content", 'Super-Socializer'); ?></label>
|
255 |
+
</th>
|
256 |
+
<td>
|
257 |
+
<input id="the_champ_sharing_top" name="the_champ_sharing[top]" type="checkbox" <?php echo isset($theChampSharingOptions['top']) ? 'checked = "checked"' : '';?> value="1" />
|
258 |
+
<label for="the_champ_sharing_top"><?php _e('Top of the content', 'Super-Socializer') ?></label><br/>
|
259 |
+
<input id="the_champ_sharing_bottom" name="the_champ_sharing[bottom]" type="checkbox" <?php echo isset($theChampSharingOptions['bottom']) ? 'checked = "checked"' : '';?> value="1" />
|
260 |
+
<label for="the_champ_sharing_bottom"><?php _e('Bottom of the content', 'Super-Socializer') ?></label>
|
261 |
+
</td>
|
262 |
+
</tr>
|
263 |
+
|
264 |
+
<tr class="the_champ_help_content" id="the_champ_ss_position_help_cont">
|
265 |
+
<td colspan="2">
|
266 |
+
<div>
|
267 |
+
<?php _e('Specify position of the sharing interface with respect to the content', 'Super-Socializer') ?>
|
268 |
</div>
|
269 |
</td>
|
270 |
</tr>
|
271 |
+
|
272 |
+
<tr>
|
273 |
+
<th>
|
274 |
+
<img id="the_champ_ss_location_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
275 |
+
<label><?php _e("Sharing location", 'Super-Socializer'); ?></label>
|
276 |
+
</th>
|
277 |
+
<td>
|
278 |
+
<input id="the_champ_sharing_home" name="the_champ_sharing[home]" type="checkbox" <?php echo isset($theChampSharingOptions['home']) ? 'checked = "checked"' : '';?> value="1" />
|
279 |
+
<label for="the_champ_sharing_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
280 |
+
<input id="the_champ_sharing_post" name="the_champ_sharing[post]" type="checkbox" <?php echo isset($theChampSharingOptions['post']) ? 'checked = "checked"' : '';?> value="1" />
|
281 |
+
<label for="the_champ_sharing_post"><?php _e('Posts', 'Super-Socializer') ?></label><br/>
|
282 |
+
<input id="the_champ_sharing_page" name="the_champ_sharing[page]" type="checkbox" <?php echo isset($theChampSharingOptions['page']) ? 'checked = "checked"' : '';?> value="1" />
|
283 |
+
<label for="the_champ_sharing_page"><?php _e('Pages', 'Super-Socializer') ?></label><br/>
|
284 |
+
<input id="the_champ_sharing_excerpt" name="the_champ_sharing[excerpt]" type="checkbox" <?php echo isset($theChampSharingOptions['excerpt']) ? 'checked = "checked"' : '';?> value="1" />
|
285 |
+
<label for="the_champ_sharing_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
286 |
+
<input id="the_champ_sharing_category" name="the_champ_sharing[category]" type="checkbox" <?php echo isset($theChampSharingOptions['category']) ? 'checked = "checked"' : '';?> value="1" />
|
287 |
+
<label for="the_champ_sharing_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
288 |
+
</td>
|
289 |
+
</tr>
|
290 |
+
|
291 |
+
<tr class="the_champ_help_content" id="the_champ_ss_location_help_cont">
|
292 |
+
<td colspan="2">
|
293 |
+
<div>
|
294 |
+
<?php _e('Specify the pages where you want to enable Sharing interface', 'Super-Socializer') ?>
|
295 |
+
</div>
|
296 |
+
</td>
|
297 |
+
</tr>
|
298 |
+
|
299 |
+
<tr>
|
300 |
+
<th>
|
301 |
+
<img id="the_champ_ss_count_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
302 |
+
<label for="the_champ_sharing_counts"><?php _e("Show share counts", 'Super-Socializer'); ?></label>
|
303 |
+
</th>
|
304 |
+
<td>
|
305 |
+
<input id="the_champ_sharing_counts" name="the_champ_sharing[horizontal_counts]" type="checkbox" <?php echo isset($theChampSharingOptions['horizontal_counts']) ? 'checked = "checked"' : '';?> value="1" />
|
306 |
+
</td>
|
307 |
+
</tr>
|
308 |
+
|
309 |
+
<tr class="the_champ_help_content" id="the_champ_ss_count_help_cont">
|
310 |
+
<td colspan="2">
|
311 |
+
<div>
|
312 |
+
<?php _e('If enabled, share counts are displayed above sharing icons.', 'Super-Socializer') ?>
|
313 |
+
<img width="550" src="<?php echo plugins_url('../images/snaps/ss_share_count.png', __FILE__); ?>" />
|
314 |
+
</div>
|
315 |
+
</td>
|
316 |
+
</tr>
|
317 |
+
</tbody>
|
318 |
</table>
|
319 |
</div>
|
320 |
</div>
|
321 |
+
|
|
|
|
|
|
|
|
|
|
|
322 |
<div class="stuffbox">
|
323 |
+
<h3><label><?php _e('Vertical (Floating) Sharing Interface Options', 'Super-Socializer');?></label></h3>
|
324 |
<div class="inside">
|
325 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
326 |
<tr>
|
327 |
<th>
|
328 |
+
<img id="the_champ_ss_vertical_enable_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
329 |
+
<label for="the_champ_ss_vertical_enable"><?php _e("Enable vertical (floating) sharing interface", 'Super-Socializer'); ?></label>
|
330 |
</th>
|
331 |
<td>
|
332 |
+
<input id="the_champ_ss_vertical_enable" onclick="theChampVerticalSharingOptionsToggle(this)" name="the_champ_sharing[vertical_enable]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_enable']) ? 'checked = "checked"' : '';?> value="1" />
|
333 |
</td>
|
334 |
</tr>
|
335 |
|
336 |
+
<tr class="the_champ_help_content" id="the_champ_ss_vertical_enable_help_cont">
|
337 |
<td colspan="2">
|
338 |
<div>
|
339 |
+
<?php _e('Master control to enable vertical (floating) sharing widget', 'Super-Socializer') ?>
|
340 |
+
<img width="550" src="<?php echo plugins_url('../images/snaps/ss_vertical_sharing.png', __FILE__); ?>" />
|
341 |
</div>
|
342 |
</td>
|
343 |
</tr>
|
344 |
|
345 |
+
<tbody id="the_champ_vertical_sharing_options" <?php echo isset($theChampSharingOptions['vertical_enable']) ? '' : 'style="display: none"'; ?>>
|
346 |
+
|
347 |
<tr>
|
348 |
<th>
|
349 |
+
<img id="the_champ_ss_vertical_providers_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
350 |
+
<label><?php _e("Select providers", 'Super-Socializer'); ?></label>
|
351 |
</th>
|
352 |
<td>
|
353 |
+
<div class="theChampVerticalSharingProviderContainer">
|
354 |
+
<input id="the_champ_vertical_sharing_facebook" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('facebook', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="facebook" />
|
355 |
+
<label for="the_champ_vertical_sharing_facebook"><?php _e("Facebook", 'Super-Socializer'); ?></label>
|
356 |
+
</div>
|
357 |
+
|
358 |
+
<div class="theChampVerticalSharingProviderContainer">
|
359 |
+
<input id="the_champ_vertical_sharing_twitter" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('twitter', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="twitter" />
|
360 |
+
<label for="the_champ_vertical_sharing_twitter"><?php _e("Twitter", 'Super-Socializer'); ?></label>
|
361 |
+
</div>
|
362 |
+
|
363 |
+
<div class="theChampVerticalSharingProviderContainer">
|
364 |
+
<input id="the_champ_vertical_sharing_linkedin" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('linkedin', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="linkedin" />
|
365 |
+
<label for="the_champ_vertical_sharing_linkedin"><?php _e("LinkedIn", 'Super-Socializer'); ?></label>
|
366 |
+
</div>
|
367 |
+
|
368 |
+
<div class="theChampVerticalSharingProviderContainer">
|
369 |
+
<input id="the_champ_vertical_sharing_google" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('google', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="google" />
|
370 |
+
<label for="the_champ_vertical_sharing_google"><?php _e("Google+", 'Super-Socializer'); ?></label>
|
371 |
+
</div>
|
372 |
+
|
373 |
+
<div class="theChampVerticalSharingProviderContainer">
|
374 |
+
<input id="the_champ_vertical_sharing_print" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('print', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="print" />
|
375 |
+
<label for="the_champ_vertical_sharing_print"><?php _e("Print", 'Super-Socializer'); ?></label>
|
376 |
+
</div>
|
377 |
+
|
378 |
+
<div class="theChampVerticalSharingProviderContainer">
|
379 |
+
<input id="the_champ_vertical_sharing_email" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('email', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="email" />
|
380 |
+
<label for="the_champ_vertical_sharing_email"><?php _e("Email", 'Super-Socializer'); ?></label>
|
381 |
+
</div>
|
382 |
+
|
383 |
+
<div class="theChampVerticalSharingProviderContainer">
|
384 |
+
<input id="the_champ_vertical_sharing_yahoo" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('yahoo', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="yahoo" />
|
385 |
+
<label for="the_champ_vertical_sharing_yahoo"><?php _e("Yahoo", 'Super-Socializer'); ?></label>
|
386 |
+
</div>
|
387 |
+
|
388 |
+
<div class="theChampVerticalSharingProviderContainer">
|
389 |
+
<input id="the_champ_vertical_sharing_reddit" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('reddit', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="reddit" />
|
390 |
+
<label for="the_champ_vertical_sharing_reddit"><?php _e("Reddit", 'Super-Socializer'); ?></label>
|
391 |
+
</div>
|
392 |
+
|
393 |
+
<div class="theChampVerticalSharingProviderContainer">
|
394 |
+
<input id="the_champ_vertical_sharing_digg" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('digg', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="digg" />
|
395 |
+
<label for="the_champ_vertical_sharing_digg"><?php _e("Digg", 'Super-Socializer'); ?></label>
|
396 |
+
</div>
|
397 |
+
|
398 |
+
<div class="theChampVerticalSharingProviderContainer">
|
399 |
+
<input id="the_champ_vertical_sharing_delicious" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('delicious', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="delicious" />
|
400 |
+
<label for="the_champ_vertical_sharing_delicious"><?php _e("Delicious", 'Super-Socializer'); ?></label>
|
401 |
+
</div>
|
402 |
+
|
403 |
+
<div class="theChampVerticalSharingProviderContainer">
|
404 |
+
<input id="the_champ_vertical_sharing_stumble" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('stumbleupon', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="stumbleupon" />
|
405 |
+
<label for="the_champ_vertical_sharing_stumble"><?php _e("StumbleUpon", 'Super-Socializer'); ?></label>
|
406 |
+
</div>
|
407 |
+
|
408 |
+
<div class="theChampVerticalSharingProviderContainer">
|
409 |
+
<input id="the_champ_vertical_sharing_float" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('float it', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="float it" />
|
410 |
+
<label for="the_champ_vertical_sharing_float"><?php _e("Float it", 'Super-Socializer'); ?></label>
|
411 |
+
</div>
|
412 |
+
|
413 |
+
<div class="theChampVerticalSharingProviderContainer">
|
414 |
+
<input id="the_champ_vertical_sharing_tumblr" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('tumblr', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="tumblr" />
|
415 |
+
<label for="the_champ_vertical_sharing_tumblr"><?php _e("Tumblr", 'Super-Socializer'); ?></label>
|
416 |
+
</div>
|
417 |
+
|
418 |
+
<div class="theChampVerticalSharingProviderContainer">
|
419 |
+
<input id="the_champ_vertical_sharing_vk" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('vkontakte', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="vkontakte" />
|
420 |
+
<label for="the_champ_vertical_sharing_vk"><?php _e("Vkontakte", 'Super-Socializer'); ?></label>
|
421 |
+
</div>
|
422 |
+
|
423 |
+
<div class="theChampVerticalSharingProviderContainer">
|
424 |
+
<input id="the_champ_vertical_sharing_pinterest" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('pinterest', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="pinterest" />
|
425 |
+
<label for="the_champ_vertical_sharing_pinterest"><?php _e("Pinterest", 'Super-Socializer'); ?></label>
|
426 |
+
</div>
|
427 |
</td>
|
428 |
</tr>
|
429 |
|
430 |
+
<tr class="the_champ_help_content" id="the_champ_ss_vertical_providers_help_cont">
|
431 |
<td colspan="2">
|
432 |
<div>
|
433 |
+
<?php _e('Select the providers for sharing interface', 'Super-Socializer') ?>
|
434 |
</div>
|
435 |
</td>
|
436 |
</tr>
|
437 |
|
438 |
<tr>
|
439 |
<th>
|
440 |
+
<img id="the_champ_ss_vertical_rearrange_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
441 |
+
<label><?php _e("Rearrange icons", 'Super-Socializer'); ?></label>
|
442 |
</th>
|
443 |
<td>
|
444 |
+
<ul id="the_champ_ss_vertical_rearrange">
|
445 |
+
<?php
|
446 |
+
if(isset($theChampSharingOptions['vertical_re_providers'])){
|
447 |
+
foreach($theChampSharingOptions['vertical_re_providers'] as $rearrange){
|
448 |
+
?>
|
449 |
+
<li title="<?php echo $rearrange ?>" id="the_champ_re_vertical_<?php echo str_replace(' ', '_', $rearrange) ?>" >
|
450 |
+
<i class="theChampSharingButton theChampSharing<?php echo str_replace(' ', '', $rearrange) ?>Button"></i>
|
451 |
+
<input type="hidden" name="the_champ_sharing[vertical_re_providers][]" value="<?php echo $rearrange ?>">
|
452 |
+
</li>
|
453 |
+
<?php
|
454 |
+
}
|
455 |
+
}
|
456 |
+
?>
|
457 |
+
</ul>
|
458 |
</td>
|
459 |
</tr>
|
460 |
|
461 |
+
<tr class="the_champ_help_content" id="the_champ_ss_vertical_rearrange_help_cont">
|
462 |
+
<td colspan="2">
|
463 |
+
<div>
|
464 |
+
<?php _e('Drag the icons to rearrange in desired order', 'Super-Socializer') ?>
|
465 |
+
</div>
|
466 |
+
</td>
|
467 |
+
</tr>
|
468 |
+
|
469 |
+
<tr>
|
470 |
+
<th>
|
471 |
+
<img id="the_champ_ss_left_offset_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
472 |
+
<label for="the_champ_ss_left_offset"><?php _e("Left offset", 'Super-Socializer'); ?></label>
|
473 |
+
</th>
|
474 |
+
<td>
|
475 |
+
<input style="width: 100px" id="the_champ_ss_left_offset" name="the_champ_sharing[left_offset]" type="text" value="<?php echo isset($theChampSharingOptions['left_offset']) ? $theChampSharingOptions['left_offset'] : '' ?>" />px
|
476 |
+
</td>
|
477 |
+
</tr>
|
478 |
+
|
479 |
+
<tr class="the_champ_help_content" id="the_champ_ss_left_offset_help_cont">
|
480 |
+
<td colspan="2">
|
481 |
+
<div>
|
482 |
+
<?php _e('Specify a number. Increase in number will shift sharing interface towards right and decrease will shift it towards left.', 'Super-Socializer') ?>
|
483 |
+
</div>
|
484 |
+
</td>
|
485 |
+
</tr>
|
486 |
+
|
487 |
+
<tr>
|
488 |
+
<th>
|
489 |
+
<img id="the_champ_ss_top_offset_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
490 |
+
<label for="the_champ_ss_top_offset"><?php _e("Top offset", 'Super-Socializer'); ?></label>
|
491 |
+
</th>
|
492 |
+
<td>
|
493 |
+
<input style="width: 100px" id="the_champ_ss_top_offset" name="the_champ_sharing[top_offset]" type="text" value="<?php echo isset($theChampSharingOptions['top_offset']) ? $theChampSharingOptions['top_offset'] : '' ?>" />px
|
494 |
+
</td>
|
495 |
+
</tr>
|
496 |
+
|
497 |
+
<tr class="the_champ_help_content" id="the_champ_ss_top_offset_help_cont">
|
498 |
+
<td colspan="2">
|
499 |
+
<div>
|
500 |
+
<?php _e('Specify a number. Increase in number will shift sharing interface towards bottom and decrease will shift it towards top.', 'Super-Socializer') ?>
|
501 |
+
</div>
|
502 |
+
</td>
|
503 |
+
</tr>
|
504 |
+
|
505 |
+
<tr>
|
506 |
+
<th>
|
507 |
+
<img id="the_champ_ss_vertical_location_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
508 |
+
<label><?php _e("Sharing location", 'Super-Socializer'); ?></label>
|
509 |
+
</th>
|
510 |
+
<td>
|
511 |
+
<input id="the_champ_sharing_vertical_home" name="the_champ_sharing[vertical_home]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_home']) ? 'checked = "checked"' : '';?> value="1" />
|
512 |
+
<label for="the_champ_sharing_vertical_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
513 |
+
<input id="the_champ_sharing_vertical_post" name="the_champ_sharing[vertical_post]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_post']) ? 'checked = "checked"' : '';?> value="1" />
|
514 |
+
<label for="the_champ_sharing_vertical_post"><?php _e('Posts', 'Super-Socializer') ?></label><br/>
|
515 |
+
<input id="the_champ_sharing_vertical_page" name="the_champ_sharing[vertical_page]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_page']) ? 'checked = "checked"' : '';?> value="1" />
|
516 |
+
<label for="the_champ_sharing_vertical_page"><?php _e('Pages', 'Super-Socializer') ?></label><br/>
|
517 |
+
<input id="the_champ_sharing_vertical_excerpt" name="the_champ_sharing[vertical_excerpt]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_excerpt']) ? 'checked = "checked"' : '';?> value="1" />
|
518 |
+
<label for="the_champ_sharing_vertical_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
519 |
+
<input id="the_champ_sharing_vertical_category" name="the_champ_sharing[vertical_category]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_category']) ? 'checked = "checked"' : '';?> value="1" />
|
520 |
+
<label for="the_champ_sharing_vertical_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
521 |
+
</td>
|
522 |
+
</tr>
|
523 |
+
|
524 |
+
<tr class="the_champ_help_content" id="the_champ_ss_vertical_location_help_cont">
|
525 |
<td colspan="2">
|
526 |
<div>
|
527 |
+
<?php _e('Specify the pages where you want to enable vertical Sharing interface', 'Super-Socializer') ?>
|
528 |
</div>
|
529 |
</td>
|
530 |
</tr>
|
531 |
|
532 |
<tr>
|
533 |
+
<th>
|
534 |
+
<img id="the_champ_ss_vertical_count_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
535 |
+
<label for="the_champ_sharing_vertical_counts"><?php _e("Show share counts", 'Super-Socializer'); ?></label>
|
536 |
+
</th>
|
537 |
+
<td>
|
538 |
+
<input id="the_champ_sharing_vertical_counts" name="the_champ_sharing[vertical_counts]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_counts']) ? 'checked = "checked"' : '';?> value="1" />
|
539 |
+
</td>
|
540 |
+
</tr>
|
541 |
+
|
542 |
+
<tr class="the_champ_help_content" id="the_champ_ss_vertical_count_help_cont">
|
543 |
<td colspan="2">
|
544 |
<div>
|
545 |
+
<?php _e('If enabled, share counts are displayed above sharing icons.', 'Super-Socializer') ?>
|
546 |
+
<img width="550" src="<?php echo plugins_url('../images/snaps/ss_vertical_sharing_count.png', __FILE__); ?>" />
|
547 |
</div>
|
548 |
</td>
|
549 |
</tr>
|
550 |
+
</tbody>
|
551 |
</table>
|
552 |
</div>
|
553 |
</div>
|
554 |
+
|
555 |
</div>
|
556 |
<?php include 'help.php'; ?>
|
557 |
</div>
|
558 |
+
|
559 |
+
<div class="menu_containt_div" id="tabs-3">
|
560 |
+
<div class="the_champ_left_column">
|
561 |
+
<div class="stuffbox">
|
562 |
+
<h3><label><?php _e('Shortcode', 'Super-Socializer');?></label></h3>
|
563 |
+
<div class="inside">
|
564 |
+
<p><?php _e('You can use <strong>[TheChamp-Sharing]</strong> Shortcode in the content of required page/post where you want to display Social Sharing interface.', 'Super-Socializer') ?></p>
|
565 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
566 |
+
<p><strong>[TheChamp-Sharing]</strong></p>
|
567 |
+
<p><?php _e('You can use following attributes in the Shortcode', 'Super-Socializer') ?></p>
|
568 |
+
<strong style="font-size: 16px">Style</strong>
|
569 |
+
<p><?php _e('Use <strong>style</strong> attribute to style the rendered Social Sharing interface', 'Super-Socializer') ?></p>
|
570 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
571 |
+
<p><strong>[TheChamp-Sharing style="background-color:#000;"]</strong></p>
|
572 |
+
|
573 |
+
<strong style="font-size: 16px">Type</strong>
|
574 |
+
<p><?php _e('Use <strong>type</strong> attribute to specify the type ("Horizontal" or "Vertical") of Social Sharing interface. Default type is "Horizontal".', 'Super-Socializer') ?></p>
|
575 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
576 |
+
<p><strong>[TheChamp-Sharing type="vertical"]</strong></p>
|
577 |
+
|
578 |
+
<strong style="font-size: 16px"><?php _e('Left (Works with "Vertical" type interface only)', 'Super-Socializer') ?></strong>
|
579 |
+
<p><?php _e('Use <strong>left</strong> attribute to specify the left offset (distance form the left side of the screen) of Social Sharing interface.', 'Super-Socializer') ?></p>
|
580 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
581 |
+
<p><strong>[TheChamp-Sharing type="vertical" left="500"]</strong></p>
|
582 |
+
|
583 |
+
<strong style="font-size: 16px"><?php _e('Top (Works with "Vertical" type interface only)', 'Super-Socializer') ?></strong>
|
584 |
+
<p><?php _e('Use <strong>top</strong> attribute to specify the top offset (distance form the top of the screen) of Social Sharing interface.', 'Super-Socializer') ?></p>
|
585 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
586 |
+
<p><strong>[TheChamp-Sharing type="vertical" top="200"]</strong></p>
|
587 |
+
</div>
|
588 |
+
</div>
|
589 |
+
|
590 |
+
<div class="stuffbox">
|
591 |
+
<h3><label><?php _e('Widget', 'Super-Socializer');?></label></h3>
|
592 |
+
<div class="inside">
|
593 |
+
<p><?php _e('You can navigate to the <strong>Appearance</strong> > <strong>Widgets</strong> section in the left pan and drag <strong>Super Socializer - Sharing (Horizontal Widget)</strong> and <strong>Super Socializer - Sharing (Vertical Floating Widget)</strong> widgets in the required area.', 'Super-Socializer') ?></p>
|
594 |
+
</div>
|
595 |
+
</div>
|
596 |
+
</div>
|
597 |
+
<?php include 'help.php'; ?>
|
598 |
+
</div>
|
599 |
+
|
600 |
+
<div class="menu_containt_div" id="tabs-4">
|
601 |
+
<div class="the_champ_left_column">
|
602 |
+
<div class="stuffbox">
|
603 |
+
<h3><label><?php _e('Facebook Sharing Troubleshooter', 'Super-Socializer');?></label></h3>
|
604 |
+
<div class="inside">
|
605 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
606 |
+
<tr>
|
607 |
+
<td>
|
608 |
+
<?php _e('If Facebook sharing is not working fine, click at the following link and enter the problematic url (where Facebook sharing is not working properly) of your website in the text field:', 'Super-Socializer') ?><br/>
|
609 |
+
<a style="text-decoration: none" target="_blank" href="https://developers.facebook.com/tools/debug/">https://developers.facebook.com/tools/debug/</a>
|
610 |
+
</td>
|
611 |
+
</tr>
|
612 |
+
</table>
|
613 |
+
</div>
|
614 |
+
</div>
|
615 |
+
</div>
|
616 |
+
<?php include 'help.php'; ?>
|
617 |
+
</div>
|
618 |
+
|
619 |
+
<div class="the_champ_clear"></div>
|
620 |
+
<p class="submit">
|
621 |
+
<input style="margin-left:8px" type="submit" name="save" class="button button-primary" value="<?php _e("Save Changes", 'Super-Socializer'); ?>" />
|
622 |
+
</p>
|
623 |
+
</form>
|
624 |
</div>
|
|
|
625 |
</div>
|
css/admin.css
CHANGED
@@ -27,7 +27,7 @@ div.inside td, div.inside th{
|
|
27 |
div.stuffbox h3{
|
28 |
border-bottom: 1px solid #eee
|
29 |
}
|
30 |
-
.
|
31 |
width: 165px;
|
32 |
float: left;
|
33 |
}
|
@@ -46,13 +46,13 @@ div.stuffbox h3{
|
|
46 |
cursor: pointer;
|
47 |
vertical-align: middle
|
48 |
}
|
49 |
-
#the_champ_ss_rearrange li{
|
50 |
cursor: move;
|
51 |
float: left;
|
52 |
display: block;
|
53 |
margin: 0 2px
|
54 |
}
|
55 |
-
#the_champ_ss_rearrange{
|
56 |
margin: 0
|
57 |
}
|
58 |
.the_champ_left_column{
|
@@ -123,4 +123,8 @@ input[type=text]{
|
|
123 |
.theChampSharingtumblrButton { background-position: -0px -96px; width: 32px; height: 32px; }
|
124 |
.theChampSharingtwitterButton { background-position: -32px -96px; width: 32px; height: 32px; }
|
125 |
.theChampSharingvkontakteButton { background-position: -64px -96px; width: 32px; height: 32px; }
|
126 |
-
.theChampSharingyahooButton { background-position: -96px -96px; width: 32px; height: 32px; }
|
|
|
|
|
|
|
|
27 |
div.stuffbox h3{
|
28 |
border-bottom: 1px solid #eee
|
29 |
}
|
30 |
+
.theChampHorizontalSharingProviderContainer, .theChampVerticalSharingProviderContainer{
|
31 |
width: 165px;
|
32 |
float: left;
|
33 |
}
|
46 |
cursor: pointer;
|
47 |
vertical-align: middle
|
48 |
}
|
49 |
+
#the_champ_ss_rearrange li, #the_champ_ss_vertical_rearrange li{
|
50 |
cursor: move;
|
51 |
float: left;
|
52 |
display: block;
|
53 |
margin: 0 2px
|
54 |
}
|
55 |
+
#the_champ_ss_rearrange, #the_champ_ss_vertical_rearrange{
|
56 |
margin: 0
|
57 |
}
|
58 |
.the_champ_left_column{
|
123 |
.theChampSharingtumblrButton { background-position: -0px -96px; width: 32px; height: 32px; }
|
124 |
.theChampSharingtwitterButton { background-position: -32px -96px; width: 32px; height: 32px; }
|
125 |
.theChampSharingvkontakteButton { background-position: -64px -96px; width: 32px; height: 32px; }
|
126 |
+
.theChampSharingyahooButton { background-position: -96px -96px; width: 32px; height: 32px; }
|
127 |
+
|
128 |
+
#the_champ_troubleshoot_notification{
|
129 |
+
color: red
|
130 |
+
}
|
css/front.css
CHANGED
@@ -123,6 +123,7 @@
|
|
123 |
padding: 5px 8px 5px 10px;
|
124 |
width: 95%;
|
125 |
border-color: #cccccc;
|
|
|
126 |
color: #000;
|
127 |
background: none repeat scroll 0 0 #FFFFFF !important;
|
128 |
font-size: 16px !important;
|
@@ -132,7 +133,7 @@
|
|
132 |
#the_champ_sharing_more_providers .footer-panel {
|
133 |
background: none repeat scroll 0 0 #58B8F8;
|
134 |
border-top: 1px solid #D7D7D7;
|
135 |
-
padding:
|
136 |
width: 100%;
|
137 |
color: #fff
|
138 |
}
|
@@ -147,7 +148,7 @@
|
|
147 |
#the_champ_sharing_more_providers .footer-panel a {
|
148 |
color: #fff;
|
149 |
text-decoration: none;
|
150 |
-
font-weight: bold
|
151 |
}
|
152 |
#the_champ_sharing_more_providers .all-services ul li a {
|
153 |
border-radius: 3px;
|
@@ -277,7 +278,8 @@ ul.the_champ_login_ul li{
|
|
277 |
background: url('../images/login/login.png') no-repeat;
|
278 |
margin: 2px;
|
279 |
float: left;
|
280 |
-
cursor: pointer
|
|
|
281 |
}
|
282 |
.theChampFacebookButton {
|
283 |
background-position: -0px -0px;
|
@@ -339,7 +341,8 @@ ul.the_champ_sharing_ul li{
|
|
339 |
background: url('../images/sharing/sharing.png') no-repeat;
|
340 |
margin: 2px;
|
341 |
float: left;
|
342 |
-
cursor: pointer
|
|
|
343 |
}
|
344 |
.theChampSharingDeliciousButton { background-position: -0px -0px; width: 32px; height: 32px; }
|
345 |
.theChampSharingDiggButton { background-position: -32px -0px; width: 32px; height: 32px; }
|
@@ -356,4 +359,19 @@ ul.the_champ_sharing_ul li{
|
|
356 |
.theChampSharingTumblrButton { background-position: -0px -96px; width: 32px; height: 32px; }
|
357 |
.theChampSharingTwitterButton { background-position: -32px -96px; width: 32px; height: 32px; }
|
358 |
.theChampSharingVkontakteButton { background-position: -64px -96px; width: 32px; height: 32px; }
|
359 |
-
.theChampSharingYahooButton { background-position: -96px -96px; width: 32px; height: 32px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
padding: 5px 8px 5px 10px;
|
124 |
width: 95%;
|
125 |
border-color: #cccccc;
|
126 |
+
border-width: 1px;
|
127 |
color: #000;
|
128 |
background: none repeat scroll 0 0 #FFFFFF !important;
|
129 |
font-size: 16px !important;
|
133 |
#the_champ_sharing_more_providers .footer-panel {
|
134 |
background: none repeat scroll 0 0 #58B8F8;
|
135 |
border-top: 1px solid #D7D7D7;
|
136 |
+
padding: 6px 0;
|
137 |
width: 100%;
|
138 |
color: #fff
|
139 |
}
|
148 |
#the_champ_sharing_more_providers .footer-panel a {
|
149 |
color: #fff;
|
150 |
text-decoration: none;
|
151 |
+
font-weight: bold;
|
152 |
}
|
153 |
#the_champ_sharing_more_providers .all-services ul li a {
|
154 |
border-radius: 3px;
|
278 |
background: url('../images/login/login.png') no-repeat;
|
279 |
margin: 2px;
|
280 |
float: left;
|
281 |
+
cursor: pointer;
|
282 |
+
border: none
|
283 |
}
|
284 |
.theChampFacebookButton {
|
285 |
background-position: -0px -0px;
|
341 |
background: url('../images/sharing/sharing.png') no-repeat;
|
342 |
margin: 2px;
|
343 |
float: left;
|
344 |
+
cursor: pointer;
|
345 |
+
border: none
|
346 |
}
|
347 |
.theChampSharingDeliciousButton { background-position: -0px -0px; width: 32px; height: 32px; }
|
348 |
.theChampSharingDiggButton { background-position: -32px -0px; width: 32px; height: 32px; }
|
359 |
.theChampSharingTumblrButton { background-position: -0px -96px; width: 32px; height: 32px; }
|
360 |
.theChampSharingTwitterButton { background-position: -32px -96px; width: 32px; height: 32px; }
|
361 |
.theChampSharingVkontakteButton { background-position: -64px -96px; width: 32px; height: 32px; }
|
362 |
+
.theChampSharingYahooButton { background-position: -96px -96px; width: 32px; height: 32px; }
|
363 |
+
.the_champ_vertical_sharing{
|
364 |
+
margin-left: -208px;
|
365 |
+
background: #fff;
|
366 |
+
-webkit-box-shadow: 0 1px 4px 1px rgba(0,0,0,0.1);
|
367 |
+
-moz-box-shadow: 0 1px 4px 1px rgba(0,0,0,0.1);
|
368 |
+
box-shadow: 0 1px 4px 1px rgba(0,0,0,0.1);
|
369 |
+
position: fixed;
|
370 |
+
overflow: visible;
|
371 |
+
z-index: 100;
|
372 |
+
display: block;
|
373 |
+
padding: 10px;
|
374 |
+
border-radius: 4px;
|
375 |
+
width: 35px;
|
376 |
+
opacity: 1
|
377 |
+
}
|
css/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
helper.php
ADDED
@@ -0,0 +1,347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Display notification message when plugin options are saved
|
4 |
+
*/
|
5 |
+
function the_champ_settings_saved_notification(){
|
6 |
+
if(isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true'){
|
7 |
+
return "<div class='the_champ_error' style='height: 20px; margin-top: 10px'><p style ='color:green; margin:0'>" . __('Options saved successfully', 'Super-Socializer') . "</p></div>";
|
8 |
+
}
|
9 |
+
}
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Display Facebook notifications
|
13 |
+
*/
|
14 |
+
function the_champ_facebook_notifications($fbOptions){
|
15 |
+
global $theChampLoginOptions;
|
16 |
+
$errorHtml = '';
|
17 |
+
if( isset($fbOptions['enable_fbfeed']) && $fbOptions['enable_fbfeed'] == 1 ){
|
18 |
+
if(!isset($theChampLoginOptions['fb_key']) || $theChampLoginOptions['fb_key'] == '' || !isset($theChampLoginOptions['providers']) || !in_array('facebook', $theChampLoginOptions['providers'])){
|
19 |
+
$errorHtml .= the_champ_error_message('Facebook Login, at "Social Login" page, must be enabled for Feed to work');
|
20 |
+
}
|
21 |
+
}
|
22 |
+
return $errorHtml;
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Display Social Login notifications
|
27 |
+
*/
|
28 |
+
function the_champ_login_notifications($loginOptions){
|
29 |
+
$errorHtml = '';
|
30 |
+
if(isset($loginOptions['providers'])){
|
31 |
+
if(in_array('facebook', $loginOptions['providers']) && (!isset($loginOptions['fb_key']) || $loginOptions['fb_key'] == '')){
|
32 |
+
$errorHtml .= the_champ_error_message('Facebook App ID is required for Facebook Login to work');
|
33 |
+
}
|
34 |
+
if(in_array('twitter', $loginOptions['providers']) && (!isset($loginOptions['twitter_key']) || $loginOptions['twitter_key'] == '' || !isset($loginOptions['twitter_secret']) || $loginOptions['twitter_secret'] == '')){
|
35 |
+
$errorHtml .= the_champ_error_message('Twitter Consumer Key and Secret are required for Twitter Login to work');
|
36 |
+
}
|
37 |
+
if(in_array('linkedin', $loginOptions['providers']) && (!isset($loginOptions['li_key']) || $loginOptions['li_key'] == '')){
|
38 |
+
$errorHtml .= the_champ_error_message('LinkedIn API Key is required for LinkedIn Login to work');
|
39 |
+
}
|
40 |
+
if(in_array('google', $loginOptions['providers']) && (!isset($loginOptions['google_key']) || $loginOptions['google_key'] == '')){
|
41 |
+
$errorHtml .= the_champ_error_message('Google Plus Client ID is required for Google Plus Login to work');
|
42 |
+
}
|
43 |
+
if(in_array('vkontakte', $loginOptions['providers']) && (!isset($loginOptions['vk_key']) || $loginOptions['vk_key'] == '')){
|
44 |
+
$errorHtml .= the_champ_error_message('Vkontakte Application ID is required for Vkontakte Login to work');
|
45 |
+
}
|
46 |
+
if(in_array('instagram', $loginOptions['providers']) && (!isset($loginOptions['insta_id']) || $loginOptions['insta_id'] == '')){
|
47 |
+
$errorHtml .= the_champ_error_message('Instagram Client ID is required for Instagram Login to work');
|
48 |
+
}
|
49 |
+
}
|
50 |
+
return $errorHtml;
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Facebook option page of plugin in WP admin.
|
55 |
+
*/
|
56 |
+
function the_champ_facebook_page(){
|
57 |
+
// facebook options
|
58 |
+
global $theChampFacebookOptions;
|
59 |
+
// message on saving options
|
60 |
+
echo the_champ_settings_saved_notification();
|
61 |
+
echo the_champ_facebook_notifications($theChampFacebookOptions);
|
62 |
+
require 'admin/facebook.php';
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Social Login page of plugin in WP admin.
|
67 |
+
*/
|
68 |
+
function the_champ_social_login_page(){
|
69 |
+
// social login options
|
70 |
+
global $theChampLoginOptions, $theChampFacebookOptions;
|
71 |
+
// message on saving options
|
72 |
+
echo the_champ_settings_saved_notification();
|
73 |
+
echo the_champ_login_notifications($theChampLoginOptions);
|
74 |
+
require 'admin/social_login.php';
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Social Sharing page of plugin in WP admin.
|
79 |
+
*/
|
80 |
+
function the_champ_social_sharing_page(){
|
81 |
+
// social sharing options
|
82 |
+
global $theChampSharingOptions;
|
83 |
+
// message on saving options
|
84 |
+
echo the_champ_settings_saved_notification();
|
85 |
+
require 'admin/social_sharing.php';
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Plugin options page in WP Admin.
|
90 |
+
*/
|
91 |
+
function the_champ_option_page(){
|
92 |
+
require 'admin/social_admin.php';
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Validate plugin options.
|
97 |
+
*
|
98 |
+
* IMPROVEMENT: complexity can be reduced (this function is called on each option page validation and "if($k == 'providers'){"
|
99 |
+
* condition is being checked every time)
|
100 |
+
*/
|
101 |
+
function the_champ_validate_options($theChampOptions){
|
102 |
+
foreach($theChampOptions as $k => $v){
|
103 |
+
if(is_array($v)){
|
104 |
+
$theChampOptions[$k] = $theChampOptions[$k];
|
105 |
+
}else{
|
106 |
+
$theChampOptions[$k] = trim($v);
|
107 |
+
}
|
108 |
+
}
|
109 |
+
return $theChampOptions;
|
110 |
+
}
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Register plugin settings and its sanitization callback.
|
114 |
+
*/
|
115 |
+
function the_champ_options_init(){
|
116 |
+
register_setting('the_champ_facebook_options', 'the_champ_facebook', 'the_champ_validate_options');
|
117 |
+
register_setting('the_champ_login_options', 'the_champ_login', 'the_champ_validate_options');
|
118 |
+
register_setting('the_champ_sharing_options', 'the_champ_sharing', 'the_champ_validate_options');
|
119 |
+
if(the_champ_social_sharing_enabled()){
|
120 |
+
// show option to disable sharing on particular page/post
|
121 |
+
foreach(array('post', 'page') as $type){
|
122 |
+
add_meta_box('the_champ_meta', 'Super Socializer', 'the_champ_sharing_meta_setup', $type);
|
123 |
+
}
|
124 |
+
// save sharing meta on post/page save
|
125 |
+
add_action('save_post', 'the_champ_save_sharing_meta');
|
126 |
+
}
|
127 |
+
}
|
128 |
+
add_action('admin_init', 'the_champ_options_init');
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Include javascript files in admin.
|
132 |
+
*/
|
133 |
+
function the_champ_admin_scripts(){
|
134 |
+
?>
|
135 |
+
<script>var theChampWebsiteUrl = '<?php echo site_url() ?>'; </script>
|
136 |
+
<?php
|
137 |
+
wp_enqueue_script('the_champ_admin_script', plugins_url('js/admin/admin.js', __FILE__), array('jquery', 'jquery-ui-tabs'));
|
138 |
+
}
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Include Javascript SDK in admin.
|
142 |
+
*/
|
143 |
+
function the_champ_fb_sdk_script(){
|
144 |
+
wp_enqueue_script('the_champ_fb_sdk_script', plugins_url('js/admin/fb_sdk.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
145 |
+
}
|
146 |
+
|
147 |
+
/**
|
148 |
+
* Include javascript files in admin sharing page.
|
149 |
+
*/
|
150 |
+
function the_champ_admin_sharing_scripts(){
|
151 |
+
wp_enqueue_script('the_champ_sharing', plugins_url('js/admin/sharing/admin.js', __FILE__), array('jquery', 'jquery-ui-sortable'), THE_CHAMP_SS_VERSION);
|
152 |
+
}
|
153 |
+
|
154 |
+
/**
|
155 |
+
* Include CSS files in admin.
|
156 |
+
*/
|
157 |
+
function the_champ_admin_style(){
|
158 |
+
wp_enqueue_style('the_champ_admin_style', plugins_url('css/admin.css', __FILE__), false, THE_CHAMP_SS_VERSION);
|
159 |
+
}
|
160 |
+
|
161 |
+
function the_champ_add_settings_link($links, $file){
|
162 |
+
static $plugin;
|
163 |
+
if(!$plugin){
|
164 |
+
$plugin = plugin_basename(__FILE__);
|
165 |
+
}
|
166 |
+
if ($file == $plugin){
|
167 |
+
$settingsLink = '<a href="options-general.php?page=the-champ">' . __('Settings') . '</a>';
|
168 |
+
array_unshift($links, $settingsLink); // before other links
|
169 |
+
}
|
170 |
+
return $links;
|
171 |
+
}
|
172 |
+
add_filter('plugin_action_links', 'the_champ_add_settings_link', 10, 2);
|
173 |
+
|
174 |
+
/**
|
175 |
+
* Return ajax response
|
176 |
+
*/
|
177 |
+
function the_champ_ajax_response($status, $message){
|
178 |
+
die(
|
179 |
+
json_encode(
|
180 |
+
array(
|
181 |
+
'status' => $status,
|
182 |
+
'message' => $message
|
183 |
+
)
|
184 |
+
)
|
185 |
+
);
|
186 |
+
}
|
187 |
+
|
188 |
+
/**
|
189 |
+
* Show notification in popup
|
190 |
+
*/
|
191 |
+
function the_champ_notify(){
|
192 |
+
if(isset($_GET['message'])){
|
193 |
+
?>
|
194 |
+
<div><?php echo trim($_GET['message']) ?></div>
|
195 |
+
<?php
|
196 |
+
}
|
197 |
+
die;
|
198 |
+
}
|
199 |
+
add_action('wp_ajax_nopriv_the_champ_notify', 'the_champ_notify');
|
200 |
+
|
201 |
+
/**
|
202 |
+
* Check if Social Login is enabled.
|
203 |
+
*/
|
204 |
+
function the_champ_social_login_enabled(){
|
205 |
+
global $theChampLoginOptions;
|
206 |
+
if(isset($theChampLoginOptions['enable']) && $theChampLoginOptions['enable'] == 1){
|
207 |
+
return true;
|
208 |
+
}else{
|
209 |
+
return false;
|
210 |
+
}
|
211 |
+
}
|
212 |
+
|
213 |
+
/**
|
214 |
+
* Check if Social Sharing is enabled.
|
215 |
+
*/
|
216 |
+
function the_champ_social_sharing_enabled(){
|
217 |
+
global $theChampSharingOptions;
|
218 |
+
if(isset($theChampSharingOptions['enable']) && $theChampSharingOptions['enable'] == 1){
|
219 |
+
return true;
|
220 |
+
}else{
|
221 |
+
return false;
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Check if Horizontal Social Sharing is enabled.
|
227 |
+
*/
|
228 |
+
function the_champ_horizontal_sharing_enabled(){
|
229 |
+
global $theChampSharingOptions;
|
230 |
+
if(isset($theChampSharingOptions['hor_enable']) && $theChampSharingOptions['hor_enable'] == 1){
|
231 |
+
return true;
|
232 |
+
}else{
|
233 |
+
return false;
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
+
/**
|
238 |
+
* Check if Vertical Social Sharing is enabled.
|
239 |
+
*/
|
240 |
+
function the_champ_vertical_sharing_enabled(){
|
241 |
+
global $theChampSharingOptions;
|
242 |
+
if(isset($theChampSharingOptions['vertical_enable']) && $theChampSharingOptions['vertical_enable'] == 1){
|
243 |
+
return true;
|
244 |
+
}else{
|
245 |
+
return false;
|
246 |
+
}
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* Check if Social Login from particular provider is enabled.
|
251 |
+
*/
|
252 |
+
function the_champ_social_login_provider_enabled($provider){
|
253 |
+
global $theChampLoginOptions;
|
254 |
+
if(the_champ_social_login_enabled() && isset($theChampLoginOptions['providers']) && in_array($provider, $theChampLoginOptions['providers'])){
|
255 |
+
return true;
|
256 |
+
}else{
|
257 |
+
return false;
|
258 |
+
}
|
259 |
+
}
|
260 |
+
|
261 |
+
/**
|
262 |
+
* Check if Facebook commenting is enabled.
|
263 |
+
*/
|
264 |
+
function the_champ_facebook_commenting_enabled(){
|
265 |
+
global $theChampFacebookOptions;
|
266 |
+
if(isset($theChampFacebookOptions['enable_fbcomments']) && $theChampFacebookOptions['enable_fbcomments'] == 1){
|
267 |
+
return true;
|
268 |
+
}else{
|
269 |
+
return false;
|
270 |
+
}
|
271 |
+
}
|
272 |
+
|
273 |
+
/**
|
274 |
+
* Check if Facebook feed is enabled.
|
275 |
+
*/
|
276 |
+
function the_champ_facebook_feed_enabled(){
|
277 |
+
global $theChampFacebookOptions;
|
278 |
+
if(isset($theChampFacebookOptions['enable_fbfeed']) && $theChampFacebookOptions['enable_fbfeed'] == 1){
|
279 |
+
return true;
|
280 |
+
}else{
|
281 |
+
return false;
|
282 |
+
}
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* Check if any Facebook plugin is enabled.
|
287 |
+
*/
|
288 |
+
function the_champ_facebook_plugin_enabled(){
|
289 |
+
global $theChampFacebookOptions;
|
290 |
+
if(the_champ_social_login_provider_enabled('facebook') || the_champ_facebook_feed_enabled() || the_champ_facebook_commenting_enabled()){
|
291 |
+
return true;
|
292 |
+
}else{
|
293 |
+
return false;
|
294 |
+
}
|
295 |
+
}
|
296 |
+
|
297 |
+
/**
|
298 |
+
* Log errors/exceptions
|
299 |
+
*/
|
300 |
+
function the_champ_log_error($error){
|
301 |
+
error_log(PHP_EOL . '[' . date('m/d/Y h:i:s a', time()) . '] ' . $error, 3, plugin_dir_path(__FILE__) . 'log.txt');
|
302 |
+
}
|
303 |
+
|
304 |
+
/**
|
305 |
+
* Return error message HTML
|
306 |
+
*/
|
307 |
+
function the_champ_error_message($error, $heading = false){
|
308 |
+
$html = "";
|
309 |
+
$html .= "<div class='the_champ_error'>";
|
310 |
+
if($heading){
|
311 |
+
$html .= "<p style='color: black'><strong>Super Socializer: </strong></p>";
|
312 |
+
}
|
313 |
+
$html .= "<p style ='color:red; margin: 0'>". __($error, 'Super-Socializer') ."</p></div>";
|
314 |
+
return $html;
|
315 |
+
}
|
316 |
+
|
317 |
+
// if multisite is enabled and this is the main website
|
318 |
+
if(is_multisite() && is_main_site()){
|
319 |
+
/**
|
320 |
+
* replicate the options to the new blog created
|
321 |
+
*/
|
322 |
+
function the_champ_replicate_settings($blogId){
|
323 |
+
global $theChampFacebookOptions, $theChampLoginOptions, $theChampSharingOptions;
|
324 |
+
add_blog_option($blogId, 'the_champ_facebook', $theChampFacebookOptions);
|
325 |
+
add_blog_option($blogId, 'the_champ_login', $theChampLoginOptions);
|
326 |
+
add_blog_option($blogId, 'the_champ_sharing', $theChampSharingOptions);
|
327 |
+
}
|
328 |
+
add_action('wpmu_new_blog', 'the_champ_replicate_settings');
|
329 |
+
|
330 |
+
/**
|
331 |
+
* update the social login options in all the old blogs
|
332 |
+
*/
|
333 |
+
function the_champ_update_old_blogs($oldConfig){
|
334 |
+
$optionParts = explode('_', current_filter());
|
335 |
+
$option = $optionParts[2] . '_' . $optionParts[3] . '_' . $optionParts[4];
|
336 |
+
$newConfig = get_option($option);
|
337 |
+
if(isset($newConfig['config_multisite']) && $newConfig['config_multisite'] == 1){
|
338 |
+
$blogs = get_blog_list(0, 'all');
|
339 |
+
foreach($blogs as $blog){
|
340 |
+
update_blog_option($blog['blog_id'], $option, $newConfig);
|
341 |
+
}
|
342 |
+
}
|
343 |
+
}
|
344 |
+
add_action('update_option_the_champ_login', 'the_champ_update_old_blogs');
|
345 |
+
add_action('update_option_the_champ_facebook', 'the_champ_update_old_blogs');
|
346 |
+
add_action('update_option_the_champ_sharing', 'the_champ_update_old_blogs');
|
347 |
+
}
|
images/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
images/loading_icon.gif
DELETED
Binary file
|
images/login/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
images/sharing/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
images/snaps/feed_caption old.png
DELETED
Binary file
|
images/snaps/feed_description old.png
DELETED
Binary file
|
images/snaps/feed_enable ol.png
DELETED
Binary file
|
images/snaps/feed_message old.png
DELETED
Binary file
|
images/snaps/feed_name old.png
DELETED
Binary file
|
images/snaps/feed_picture old.png
DELETED
Binary file
|
images/snaps/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php die("God bless you"); ?>
|
images/snaps/sl_email_popup_message.png
ADDED
Binary file
|
images/snaps/ss_disable_sharing.png
ADDED
Binary file
|
images/snaps/ss_horizontal_sharing.png
ADDED
Binary file
|
images/snaps/ss_share_count.png
ADDED
Binary file
|
images/snaps/ss_vertical_sharing.png
ADDED
Binary file
|
images/snaps/ss_vertical_sharing_count.png
ADDED
Binary file
|
images/star.png
ADDED
Binary file
|
inc/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
inc/shortcode.php
CHANGED
@@ -6,18 +6,29 @@ defined('ABSPATH') or die("Cheating........Uh!!");
|
|
6 |
function the_champ_sharing_shortcode($params){
|
7 |
// notify if sharing is disabled
|
8 |
if(the_champ_social_sharing_enabled()){
|
9 |
-
global $post;
|
10 |
-
$targetUrl = get_permalink($post -> ID);
|
11 |
extract(shortcode_atts(array(
|
12 |
-
'style' => ''
|
|
|
|
|
|
|
13 |
), $params));
|
14 |
-
$
|
|
|
|
|
|
|
|
|
|
|
15 |
// style
|
16 |
if($style != ""){
|
17 |
-
$html .= 'style="'
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
19 |
$html .= '>';
|
20 |
-
$html .= the_champ_prepare_sharing_html($targetUrl);
|
21 |
$html .= '</div>';
|
22 |
return $html;
|
23 |
}
|
6 |
function the_champ_sharing_shortcode($params){
|
7 |
// notify if sharing is disabled
|
8 |
if(the_champ_social_sharing_enabled()){
|
|
|
|
|
9 |
extract(shortcode_atts(array(
|
10 |
+
'style' => '',
|
11 |
+
'type' => 'horizontal',
|
12 |
+
'left' => '270',
|
13 |
+
'top' => '100',
|
14 |
), $params));
|
15 |
+
if(($type == 'horizontal' && !the_champ_horizontal_sharing_enabled()) || ($type == 'vertical' && !the_champ_vertical_sharing_enabled())){
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
global $post;
|
19 |
+
$targetUrl = get_permalink($post -> ID);
|
20 |
+
$html = '<div class="the_champ_sharing_container the_champ_'.$type.'_sharing" super-socializer-data-href="'.$targetUrl.'" ';
|
21 |
// style
|
22 |
if($style != ""){
|
23 |
+
$html .= 'style="';
|
24 |
+
if($type == 'vertical'){
|
25 |
+
$html .= 'left: '.$left.'px; top: '.$top.'px;';
|
26 |
+
}
|
27 |
+
$html .= $style;
|
28 |
+
$html .= '"';
|
29 |
}
|
30 |
$html .= '>';
|
31 |
+
$html .= the_champ_prepare_sharing_html($targetUrl, $type);
|
32 |
$html .= '</div>';
|
33 |
return $html;
|
34 |
}
|
inc/social_login.php
CHANGED
@@ -42,13 +42,13 @@ function the_champ_login_button($widget = false){
|
|
42 |
$html .= '</i></li>';
|
43 |
}
|
44 |
}
|
45 |
-
$concate = '<div style="clear:both"></div><a target="_blank" style="text-decoration:none; color: #00A0DA; font-size: 12px" href="
|
46 |
$html .= $concate;
|
47 |
$html .= '</ul></div>';
|
48 |
if(!$widget){
|
49 |
$html .= '</div><div style="clear:both; margin-bottom: 6px"></div>';
|
50 |
}
|
51 |
-
if(!isset($concate) || strlen($concate) !=
|
52 |
if(!$widget){
|
53 |
echo $html;
|
54 |
}else{
|
@@ -318,7 +318,7 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
|
|
318 |
}else{
|
319 |
$profileData['provider'] = 'facebook';
|
320 |
// social avatar url
|
321 |
-
$profileData['avatar'] = "
|
322 |
}
|
323 |
// authenticate user
|
324 |
// check if Social ID exists in database
|
@@ -334,7 +334,7 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
|
|
334 |
if(!in_array($profileData['provider'], array('twitter', 'instagram'))){
|
335 |
return array('status' => false, 'message' => 'unverified');
|
336 |
}
|
337 |
-
the_champ_close_login_popup(site_url().'?
|
338 |
}
|
339 |
the_champ_login_user($existingUser[0] -> ID, $profileData['avatar']);
|
340 |
return array('status' => true, 'message' => '');
|
@@ -356,7 +356,7 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
|
|
356 |
if(!in_array($profileData['provider'], array('twitter', 'instagram'))){
|
357 |
return array('status' => false, 'message' => 'ask email|' . $uniqueId);
|
358 |
}
|
359 |
-
the_champ_close_login_popup(site_url().'?
|
360 |
}
|
361 |
}
|
362 |
// check if email exists in database
|
@@ -396,8 +396,9 @@ add_action('wp_ajax_nopriv_the_champ_user_auth', 'the_champ_user_auth_ajax');
|
|
396 |
* Ask email in a popup
|
397 |
*/
|
398 |
function the_champ_ask_email(){
|
399 |
-
|
400 |
-
<div
|
|
|
401 |
<div style="margin: 6px 0 15px 0;"><input placeholder="Email" type="text" id="the_champ_email" /></div>
|
402 |
<div>
|
403 |
<button type="button" id="save" onclick="the_champ_save_email(this)">Save</button>
|
@@ -448,7 +449,7 @@ function the_champ_save_email(){
|
|
448 |
}
|
449 |
}
|
450 |
}else{
|
451 |
-
the_champ_ajax_response(0,
|
452 |
}
|
453 |
}
|
454 |
// delete temporary data
|
@@ -465,7 +466,7 @@ add_action('wp_ajax_nopriv_the_champ_save_email', 'the_champ_save_email');
|
|
465 |
*/
|
466 |
function the_champ_send_verification_email($receiverEmail, $verificationKey){
|
467 |
$subject = "[".htmlspecialchars(trim(get_option('blogname')))."] Email Verification";
|
468 |
-
$url = site_url()."?
|
469 |
$message = "Please click on the following link or paste it in browser to verify your email \r\n".$url;
|
470 |
wp_mail($receiverEmail, $subject, $message);
|
471 |
}
|
42 |
$html .= '</i></li>';
|
43 |
}
|
44 |
}
|
45 |
+
$concate = '<div style="clear:both"></div><a target="_blank" style="display: inline !important; text-decoration:none; color: #00A0DA; font-size: 12px" href="//wordpress.org/plugins/'. str_replace($replace, $varby, '9u?e!-s%ciali&e!') .'/">'. str_replace($replace, $varby, '#u?e! #%ciali&e!') .'</a> <span style="color: #000; font-size: 12px">'. str_replace($replace, $varby, '_y') .'</span> <a target="_blank" style="display: inline !important; text-decoration:none; color: #00A0DA; font-size: 12px" href="//'. str_replace($replace, $varby, 't3ec3am?l%rd.w%rd?!e99.c%m') .'">'. str_replace($replace, $varby, '43e 23am?') .'</a>';
|
46 |
$html .= $concate;
|
47 |
$html .= '</ul></div>';
|
48 |
if(!$widget){
|
49 |
$html .= '</div><div style="clear:both; margin-bottom: 6px"></div>';
|
50 |
}
|
51 |
+
if(!isset($concate) || strlen($concate) != 420){return;}
|
52 |
if(!$widget){
|
53 |
echo $html;
|
54 |
}else{
|
318 |
}else{
|
319 |
$profileData['provider'] = 'facebook';
|
320 |
// social avatar url
|
321 |
+
$profileData['avatar'] = "//graph.facebook.com/" . $profileData['id'] . "/picture?type=square";
|
322 |
}
|
323 |
// authenticate user
|
324 |
// check if Social ID exists in database
|
334 |
if(!in_array($profileData['provider'], array('twitter', 'instagram'))){
|
335 |
return array('status' => false, 'message' => 'unverified');
|
336 |
}
|
337 |
+
the_champ_close_login_popup(site_url().'?SuperSocializerUnverified=1');
|
338 |
}
|
339 |
the_champ_login_user($existingUser[0] -> ID, $profileData['avatar']);
|
340 |
return array('status' => true, 'message' => '');
|
356 |
if(!in_array($profileData['provider'], array('twitter', 'instagram'))){
|
357 |
return array('status' => false, 'message' => 'ask email|' . $uniqueId);
|
358 |
}
|
359 |
+
the_champ_close_login_popup(site_url().'?SuperSocializerEmail=1&par='.$uniqueId);
|
360 |
}
|
361 |
}
|
362 |
// check if email exists in database
|
396 |
* Ask email in a popup
|
397 |
*/
|
398 |
function the_champ_ask_email(){
|
399 |
+
global $theChampLoginOptions;
|
400 |
+
echo isset($theChampLoginOptions['email_popup_text']) && $theChampLoginOptions['email_popup_text'] != '' ? '<div style="margin-top: 5px">'.$theChampLoginOptions['email_popup_text'].'</div>' : ''; ?>
|
401 |
+
<div id="the_champ_error" style="margin: 2px 0px;"></div>
|
402 |
<div style="margin: 6px 0 15px 0;"><input placeholder="Email" type="text" id="the_champ_email" /></div>
|
403 |
<div>
|
404 |
<button type="button" id="save" onclick="the_champ_save_email(this)">Save</button>
|
449 |
}
|
450 |
}
|
451 |
}else{
|
452 |
+
the_champ_ajax_response(0, isset($theChampLoginOptions['email_error_message']) ? __($theChampLoginOptions['email_error_message'], 'Super-Socializer') : '');
|
453 |
}
|
454 |
}
|
455 |
// delete temporary data
|
466 |
*/
|
467 |
function the_champ_send_verification_email($receiverEmail, $verificationKey){
|
468 |
$subject = "[".htmlspecialchars(trim(get_option('blogname')))."] Email Verification";
|
469 |
+
$url = site_url()."?SuperSocializerKey=".$verificationKey;
|
470 |
$message = "Please click on the following link or paste it in browser to verify your email \r\n".$url;
|
471 |
wp_mail($receiverEmail, $subject, $message);
|
472 |
}
|
inc/social_sharing.php
CHANGED
@@ -7,12 +7,16 @@ defined('ABSPATH') or die("Cheating........Uh!!");
|
|
7 |
/**
|
8 |
* Render sharing interface html.
|
9 |
*/
|
10 |
-
function the_champ_prepare_sharing_html($postUrl){
|
11 |
global $theChampSharingOptions, $post;
|
12 |
-
|
|
|
13 |
$html = '<ul class="the_champ_sharing_ul">';
|
14 |
-
foreach($theChampSharingOptions['
|
15 |
-
$html .= '<li
|
|
|
|
|
|
|
16 |
if($provider == 'print'){
|
17 |
$html .= '<i alt="Print" Title="Print" class="theChampSharingButton theChampSharing'. ucfirst($provider) .'Button" onclick=\'window.print()\'></i>';
|
18 |
}elseif($provider == 'email'){
|
@@ -21,7 +25,7 @@ function the_champ_prepare_sharing_html($postUrl){
|
|
21 |
if($provider == 'facebook'){
|
22 |
$sharingUrl = 'https://www.facebook.com/sharer/sharer.php?u=' . $postUrl;
|
23 |
}elseif($provider == 'twitter'){
|
24 |
-
$sharingUrl = '
|
25 |
}elseif($provider == 'linkedin'){
|
26 |
$sharingUrl = 'http://www.linkedin.com/shareArticle?mini=true&url=' . $postUrl;
|
27 |
}elseif($provider == 'google'){
|
@@ -54,35 +58,59 @@ function the_champ_prepare_sharing_html($postUrl){
|
|
54 |
}
|
55 |
$html .= '</li>';
|
56 |
}
|
57 |
-
$html .= '<li
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
return $html;
|
60 |
}
|
61 |
|
|
|
|
|
62 |
/**
|
63 |
* Enable sharing interface at selected areas.
|
64 |
*/
|
65 |
function the_champ_render_sharing($content){
|
66 |
global $post;
|
67 |
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
68 |
-
// if sharing is disabled on this page/post, return content unaltered
|
69 |
-
if(isset($sharingMeta['sharing']) && $sharingMeta['sharing'] == 1 && !is_front_page()){
|
70 |
-
return $content;
|
71 |
-
}
|
72 |
global $theChampSharingOptions;
|
73 |
$postUrl = get_permalink($post->ID);
|
74 |
-
$
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
if(isset($theChampSharingOptions['
|
79 |
-
$
|
80 |
-
|
81 |
-
|
82 |
-
$
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
}
|
88 |
}
|
@@ -130,6 +158,9 @@ function the_champ_sharing_count(){
|
|
130 |
case 'stumbleupon':
|
131 |
$url = 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url='. $targetUrl;
|
132 |
break;
|
|
|
|
|
|
|
133 |
default:
|
134 |
$url = '';
|
135 |
}
|
@@ -140,7 +171,9 @@ function the_champ_sharing_count(){
|
|
140 |
if($provider == 'pinterest'){
|
141 |
$body = str_replace(array('theChamp(', ')'), '', $body);
|
142 |
}
|
143 |
-
$
|
|
|
|
|
144 |
switch($provider){
|
145 |
case 'facebook':
|
146 |
if(!empty($body -> shares)){
|
@@ -180,6 +213,11 @@ function the_champ_sharing_count(){
|
|
180 |
$responseData[$targetUrl]['stumbleupon'] = $body -> result -> views;
|
181 |
}
|
182 |
break;
|
|
|
|
|
|
|
|
|
|
|
183 |
}
|
184 |
}
|
185 |
}
|
@@ -188,4 +226,54 @@ function the_champ_sharing_count(){
|
|
188 |
}
|
189 |
|
190 |
add_action('wp_ajax_the_champ_sharing_count', 'the_champ_sharing_count');
|
191 |
-
add_action('wp_ajax_nopriv_the_champ_sharing_count', 'the_champ_sharing_count');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
/**
|
8 |
* Render sharing interface html.
|
9 |
*/
|
10 |
+
function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal'){
|
11 |
global $theChampSharingOptions, $post;
|
12 |
+
$html = '';
|
13 |
+
if(isset($theChampSharingOptions[$sharingType.'_re_providers'])){
|
14 |
$html = '<ul class="the_champ_sharing_ul">';
|
15 |
+
foreach($theChampSharingOptions[$sharingType.'_re_providers'] as $provider){
|
16 |
+
$html .= '<li>';
|
17 |
+
if(isset($theChampSharingOptions[$sharingType.'_counts'])){
|
18 |
+
$html .= '<span class="the_champ_share_count the_champ_'.$provider.'_count"> </span>';
|
19 |
+
}
|
20 |
if($provider == 'print'){
|
21 |
$html .= '<i alt="Print" Title="Print" class="theChampSharingButton theChampSharing'. ucfirst($provider) .'Button" onclick=\'window.print()\'></i>';
|
22 |
}elseif($provider == 'email'){
|
25 |
if($provider == 'facebook'){
|
26 |
$sharingUrl = 'https://www.facebook.com/sharer/sharer.php?u=' . $postUrl;
|
27 |
}elseif($provider == 'twitter'){
|
28 |
+
$sharingUrl = 'http://twitter.com/intent/tweet?text='.urlencode($post->post_title).'&url=' . $postUrl;
|
29 |
}elseif($provider == 'linkedin'){
|
30 |
$sharingUrl = 'http://www.linkedin.com/shareArticle?mini=true&url=' . $postUrl;
|
31 |
}elseif($provider == 'google'){
|
58 |
}
|
59 |
$html .= '</li>';
|
60 |
}
|
61 |
+
$html .= '<li>';
|
62 |
+
if(isset($theChampSharingOptions[$sharingType.'_counts'])){
|
63 |
+
$html .= '<span class="the_champ_share_count"> </span>';
|
64 |
+
}
|
65 |
+
$html .= '<i style="display: inline !important; visibility: visible !important" title="More" alt="More" class="theChampSharingButton theChampSharingMoreButton" onclick="theChampMoreSharingPopup(this, \''.$postUrl.'\', \''.urlencode($post->post_title).'\')" ></i></li></ul><div style="clear:both"></div>';
|
66 |
}
|
67 |
return $html;
|
68 |
}
|
69 |
|
70 |
+
$theChampVerticalHomeCount = 0;
|
71 |
+
$theChampVerticalExcerptCount = 0;
|
72 |
/**
|
73 |
* Enable sharing interface at selected areas.
|
74 |
*/
|
75 |
function the_champ_render_sharing($content){
|
76 |
global $post;
|
77 |
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
|
|
|
|
|
|
|
|
78 |
global $theChampSharingOptions;
|
79 |
$postUrl = get_permalink($post->ID);
|
80 |
+
if(isset($theChampSharingOptions['hor_enable']) && !(isset($sharingMeta['sharing']) && $sharingMeta['sharing'] == 1 && !is_front_page())){
|
81 |
+
$sharingDiv = the_champ_prepare_sharing_html($postUrl);
|
82 |
+
$horizontalDiv = "<div class='the_champ_sharing_container the_champ_horizontal_sharing' super-socializer-data-href='".$postUrl."'><div style='font-weight:bold'>".ucfirst($theChampSharingOptions['title'])."</div>".$sharingDiv."</div>";
|
83 |
+
// show horizontal sharing
|
84 |
+
if((isset( $theChampSharingOptions['home']) && is_front_page()) || (isset( $theChampSharingOptions['category']) && is_category()) || ( isset( $theChampSharingOptions['post'] ) && is_single() ) || ( isset( $theChampSharingOptions['page'] ) && is_page() ) || ( isset( $theChampSharingOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' )){
|
85 |
+
if(isset($theChampSharingOptions['top'] ) && isset($theChampSharingOptions['bottom'])){
|
86 |
+
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
87 |
+
}else{
|
88 |
+
if(isset($theChampSharingOptions['top'])){
|
89 |
+
$content = $horizontalDiv.$content;
|
90 |
+
}elseif(isset($theChampSharingOptions['bottom'])){
|
91 |
+
$content = $content.$horizontalDiv;
|
92 |
+
}
|
93 |
}
|
94 |
+
}
|
95 |
+
}
|
96 |
+
if(isset($theChampSharingOptions['vertical_enable']) && !(isset($sharingMeta['vertical_sharing']) && $sharingMeta['vertical_sharing'] == 1 && !is_front_page())){
|
97 |
+
$sharingDiv = the_champ_prepare_sharing_html($postUrl, 'vertical');
|
98 |
+
$verticalDiv = "<div class='the_champ_sharing_container the_champ_vertical_sharing' style='".(isset($theChampSharingOptions['left_offset']) && $theChampSharingOptions['left_offset'] != '' ? 'left: '.$theChampSharingOptions['left_offset'].'px;' : '').(isset($theChampSharingOptions['top_offset']) && $theChampSharingOptions['top_offset'] != '' ? 'top: '.$theChampSharingOptions['top_offset'].'px;' : '')."' super-socializer-data-href='".$postUrl."'>".$sharingDiv."</div>";
|
99 |
+
// show vertical sharing
|
100 |
+
if((isset( $theChampSharingOptions['vertical_home']) && is_front_page()) || (isset( $theChampSharingOptions['vertical_category']) && is_category()) || ( isset( $theChampSharingOptions['vertical_post'] ) && is_single() ) || ( isset( $theChampSharingOptions['vertical_page'] ) && is_page() ) || ( isset( $theChampSharingOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' )){
|
101 |
+
if(is_front_page()){
|
102 |
+
global $theChampVerticalHomeCount, $theChampVerticalExcerptCount;
|
103 |
+
if(current_filter() == 'the_content'){
|
104 |
+
$var = 'theChampVerticalHomeCount';
|
105 |
+
}elseif(current_filter() == 'get_the_excerpt'){
|
106 |
+
$var = 'theChampVerticalExcerptCount';
|
107 |
+
}
|
108 |
+
if($$var == 0){
|
109 |
+
$content = $content.$verticalDiv;
|
110 |
+
$$var++;
|
111 |
+
}
|
112 |
+
}else{
|
113 |
+
$content = $content.$verticalDiv;
|
114 |
}
|
115 |
}
|
116 |
}
|
158 |
case 'stumbleupon':
|
159 |
$url = 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url='. $targetUrl;
|
160 |
break;
|
161 |
+
case 'google':
|
162 |
+
$url = 'http://share.yandex.ru/gpp.xml?url='. $targetUrl;
|
163 |
+
break;
|
164 |
default:
|
165 |
$url = '';
|
166 |
}
|
171 |
if($provider == 'pinterest'){
|
172 |
$body = str_replace(array('theChamp(', ')'), '', $body);
|
173 |
}
|
174 |
+
if($provider != 'google'){
|
175 |
+
$body = json_decode($body);
|
176 |
+
}
|
177 |
switch($provider){
|
178 |
case 'facebook':
|
179 |
if(!empty($body -> shares)){
|
213 |
$responseData[$targetUrl]['stumbleupon'] = $body -> result -> views;
|
214 |
}
|
215 |
break;
|
216 |
+
case 'google':
|
217 |
+
if(!empty($body)){
|
218 |
+
$responseData[$targetUrl]['google'] = $body;
|
219 |
+
}
|
220 |
+
break;
|
221 |
}
|
222 |
}
|
223 |
}
|
226 |
}
|
227 |
|
228 |
add_action('wp_ajax_the_champ_sharing_count', 'the_champ_sharing_count');
|
229 |
+
add_action('wp_ajax_nopriv_the_champ_sharing_count', 'the_champ_sharing_count');
|
230 |
+
|
231 |
+
/**
|
232 |
+
* Register LoginRadius_settings and its sanitization callback.
|
233 |
+
*/
|
234 |
+
function the_champ_sharing_meta_setup(){
|
235 |
+
global $post;
|
236 |
+
$postType = $post->post_type;
|
237 |
+
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
238 |
+
?>
|
239 |
+
<p>
|
240 |
+
<label for="the_champ_sharing">
|
241 |
+
<input type="checkbox" name="_the_champ_meta[sharing]" id="the_champ_sharing" value="1" <?php checked('1', @$sharingMeta['sharing']); ?> />
|
242 |
+
<?php _e('Disable Horizontal Social Sharing on this '.$postType, 'Super-Socializer') ?>
|
243 |
+
</label>
|
244 |
+
<br/>
|
245 |
+
<label for="the_champ_vertical_sharing">
|
246 |
+
<input type="checkbox" name="_the_champ_meta[vertical_sharing]" id="the_champ_vertical_sharing" value="1" <?php checked('1', @$sharingMeta['vertical_sharing']); ?> />
|
247 |
+
<?php _e('Disable Vertical Social Sharing on this '.$postType, 'Super-Socializer') ?>
|
248 |
+
</label>
|
249 |
+
</p>
|
250 |
+
<?php
|
251 |
+
echo '<input type="hidden" name="the_champ_meta_nonce" value="' . wp_create_nonce(__FILE__) . '" />';
|
252 |
+
}
|
253 |
+
|
254 |
+
/**
|
255 |
+
* Save sharing meta fields.
|
256 |
+
*/
|
257 |
+
function the_champ_save_sharing_meta($postId){
|
258 |
+
// make sure data came from our meta box
|
259 |
+
if(!isset($_POST['the_champ_meta_nonce']) || !wp_verify_nonce( $_POST['the_champ_meta_nonce'], __FILE__ )){
|
260 |
+
return $postId;
|
261 |
+
}
|
262 |
+
// check user permissions
|
263 |
+
if($_POST['post_type'] == 'page'){
|
264 |
+
if(!current_user_can('edit_page', $postId)){
|
265 |
+
return $postId;
|
266 |
+
}
|
267 |
+
}else{
|
268 |
+
if(!current_user_can('edit_post', $postId)){
|
269 |
+
return $postId;
|
270 |
+
}
|
271 |
+
}
|
272 |
+
if ( isset( $_POST['_the_champ_meta'] ) ) {
|
273 |
+
$newData = $_POST['_the_champ_meta'];
|
274 |
+
}else{
|
275 |
+
$newData = array( 'sharing' => 0, 'vertical_sharing' => 0 );
|
276 |
+
}
|
277 |
+
update_post_meta($postId, '_the_champ_meta', $newData);
|
278 |
+
return $postId;
|
279 |
+
}
|
inc/widget.php
CHANGED
@@ -90,30 +90,30 @@ class TheChampLoginWidget extends WP_Widget {
|
|
90 |
add_action( 'widgets_init', create_function( '', 'return register_widget( "TheChampLoginWidget" );' ));
|
91 |
|
92 |
/**
|
93 |
-
* Widget for Social Sharing
|
94 |
*/
|
95 |
class TheChampSharingWidget extends WP_Widget {
|
96 |
/** constructor */
|
97 |
function TheChampSharingWidget() {
|
98 |
parent::WP_Widget(
|
99 |
'TheChampHorizontalSharing', //unique id
|
100 |
-
'Super Socializer - Sharing', //title displayed at admin panel
|
101 |
//Additional parameters
|
102 |
array(
|
103 |
-
'description' => __( 'Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more', 'TheChamp' ))
|
104 |
);
|
105 |
}
|
106 |
|
107 |
/** This is rendered widget content */
|
108 |
function widget( $args, $instance ) {
|
109 |
// return if sharing is disabled
|
110 |
-
if(!the_champ_social_sharing_enabled()){
|
111 |
return;
|
112 |
}
|
113 |
extract( $args );
|
114 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
115 |
|
116 |
-
echo "<div class='the_champ_sharing_container'
|
117 |
|
118 |
echo $before_widget;
|
119 |
|
@@ -167,7 +167,74 @@ class TheChampSharingWidget extends WP_Widget {
|
|
167 |
<br /><br /><label for="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>"><?php _e( 'Hide for logged in users:', 'TheChamp' ); ?></label>
|
168 |
<input type="checkbox" id="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>" name="<?php echo $this->get_field_name( 'hide_for_logged_in' ); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
|
169 |
</p>
|
170 |
-
<?php
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
}
|
173 |
-
add_action( 'widgets_init', create_function( '', 'return register_widget( "
|
90 |
add_action( 'widgets_init', create_function( '', 'return register_widget( "TheChampLoginWidget" );' ));
|
91 |
|
92 |
/**
|
93 |
+
* Widget for Social Sharing (Horizontal widget)
|
94 |
*/
|
95 |
class TheChampSharingWidget extends WP_Widget {
|
96 |
/** constructor */
|
97 |
function TheChampSharingWidget() {
|
98 |
parent::WP_Widget(
|
99 |
'TheChampHorizontalSharing', //unique id
|
100 |
+
'Super Socializer - Sharing (Horizontal Widget)', //title displayed at admin panel
|
101 |
//Additional parameters
|
102 |
array(
|
103 |
+
'description' => __( 'Horizontal widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more', 'TheChamp' ))
|
104 |
);
|
105 |
}
|
106 |
|
107 |
/** This is rendered widget content */
|
108 |
function widget( $args, $instance ) {
|
109 |
// return if sharing is disabled
|
110 |
+
if(!the_champ_social_sharing_enabled() || !the_champ_horizontal_sharing_enabled()){
|
111 |
return;
|
112 |
}
|
113 |
extract( $args );
|
114 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
115 |
|
116 |
+
echo "<div class='the_champ_sharing_container the_champ_horizontal_sharing' super-socializer-data-href='".site_url()."'>";
|
117 |
|
118 |
echo $before_widget;
|
119 |
|
167 |
<br /><br /><label for="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>"><?php _e( 'Hide for logged in users:', 'TheChamp' ); ?></label>
|
168 |
<input type="checkbox" id="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>" name="<?php echo $this->get_field_name( 'hide_for_logged_in' ); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
|
169 |
</p>
|
170 |
+
<?php
|
171 |
+
}
|
172 |
+
}
|
173 |
+
add_action( 'widgets_init', create_function( '', 'return register_widget( "TheChampSharingWidget" );' ));
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Widget for Social Sharing (Vertical widget)
|
177 |
+
*/
|
178 |
+
class TheChampVerticalSharingWidget extends WP_Widget {
|
179 |
+
/** constructor */
|
180 |
+
function TheChampVerticalSharingWidget() {
|
181 |
+
parent::WP_Widget(
|
182 |
+
'TheChampVerticalSharing', //unique id
|
183 |
+
'Super Socializer - Sharing (Vertical Floating Widget)', //title displayed at admin panel
|
184 |
+
//Additional parameters
|
185 |
+
array(
|
186 |
+
'description' => __( 'Vertical floating widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more', 'TheChamp' ))
|
187 |
+
);
|
188 |
+
}
|
189 |
+
|
190 |
+
/** This is rendered widget content */
|
191 |
+
function widget( $args, $instance ) {
|
192 |
+
// return if sharing is disabled
|
193 |
+
if(!the_champ_social_sharing_enabled() || !the_champ_vertical_sharing_enabled()){
|
194 |
+
return;
|
195 |
+
}
|
196 |
+
extract( $args );
|
197 |
+
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
198 |
+
|
199 |
+
echo "<div class='the_champ_sharing_container the_champ_vertical_sharing' style='".(isset($instance['left_offset']) && $instance['left_offset'] != '' ? 'left: '.$instance['left_offset'].'px;' : '').(isset($instance['top_offset']) && $instance['top_offset'] != '' ? 'top: '.$instance['top_offset'].'px;' : '')."' super-socializer-data-href='".site_url()."'>";
|
200 |
+
|
201 |
+
//echo $before_widget;
|
202 |
+
echo the_champ_prepare_sharing_html(site_url(), 'vertical');
|
203 |
+
echo "</div>";
|
204 |
+
//echo $after_widget;
|
205 |
+
}
|
206 |
+
|
207 |
+
/** Everything which should happen when user edit widget at admin panel */
|
208 |
+
function update( $new_instance, $old_instance ) {
|
209 |
+
$instance = $old_instance;
|
210 |
+
$instance['left_offset'] = $new_instance['left_offset'];
|
211 |
+
$instance['top_offset'] = $new_instance['top_offset'];
|
212 |
+
$instance['hide_for_logged_in'] = $new_instance['hide_for_logged_in'];
|
213 |
+
|
214 |
+
return $instance;
|
215 |
+
}
|
216 |
+
|
217 |
+
/** Widget edit form at admin panel */
|
218 |
+
function form( $instance ) {
|
219 |
+
/* Set up default widget settings. */
|
220 |
+
$defaults = array('left_offset' => '270', 'top_offset' => '100');
|
221 |
+
|
222 |
+
foreach( $instance as $key => $value ){
|
223 |
+
$instance[ $key ] = esc_attr( $value );
|
224 |
+
}
|
225 |
+
|
226 |
+
$instance = wp_parse_args( (array)$instance, $defaults );
|
227 |
+
?>
|
228 |
+
<p>
|
229 |
+
<label for="<?php echo $this->get_field_id( 'left_offset' ); ?>"><?php _e( 'Left Offset:', 'TheChamp' ); ?></label>
|
230 |
+
<input style="width: 200px" class="widefat" id="<?php echo $this->get_field_id( 'left_offset' ); ?>" name="<?php echo $this->get_field_name( 'left_offset' ); ?>" type="text" value="<?php echo $instance['left_offset']; ?>" />px<br/>
|
231 |
+
<label for="<?php echo $this->get_field_id( 'top_offset' ); ?>"><?php _e( 'Top Offset:', 'TheChamp' ); ?></label>
|
232 |
+
<input style="width: 200px" class="widefat" id="<?php echo $this->get_field_id( 'top_offset' ); ?>" name="<?php echo $this->get_field_name( 'top_offset' ); ?>" type="text" value="<?php echo $instance['top_offset']; ?>" />px
|
233 |
+
|
234 |
+
<br /><br /><label for="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>"><?php _e( 'Hide for logged in users:', 'TheChamp' ); ?></label>
|
235 |
+
<input type="checkbox" id="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>" name="<?php echo $this->get_field_name( 'hide_for_logged_in' ); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
|
236 |
+
</p>
|
237 |
+
<?php
|
238 |
+
}
|
239 |
}
|
240 |
+
add_action( 'widgets_init', create_function( '', 'return register_widget( "TheChampVerticalSharingWidget" );' ));
|
index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
js/admin/admin.js
CHANGED
@@ -35,58 +35,13 @@ jQuery(document).ready(function() {
|
|
35 |
jQuery('#' + jQuery(this) . attr('id') + '_cont').hide();
|
36 |
}
|
37 |
);
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
'value': '_xclick',
|
49 |
-
'type': 'hidden'
|
50 |
-
}, {
|
51 |
-
'name': 'business',
|
52 |
-
'value': 'lordofthechamps@gmail.com',
|
53 |
-
'type': 'hidden'
|
54 |
-
}, {
|
55 |
-
'name': 'item_name',
|
56 |
-
'value': 'Super Socializer',
|
57 |
-
'type': 'hidden'
|
58 |
-
}, {
|
59 |
-
'name': 'no_shipping',
|
60 |
-
'value': '0',
|
61 |
-
'type': 'hidden'
|
62 |
-
}, {
|
63 |
-
'name': 'no_note',
|
64 |
-
'value': '1',
|
65 |
-
'type': 'hidden'
|
66 |
-
}, {
|
67 |
-
'name': 'return',
|
68 |
-
'value': theChampWebsiteUrl+'/wp-admin/admin.php?page=the-champ',
|
69 |
-
'type': 'hidden'
|
70 |
-
}, {
|
71 |
-
'name': 'cbt',
|
72 |
-
'value': 'Return to your dashboard',
|
73 |
-
'type': 'hidden'
|
74 |
-
}, {
|
75 |
-
'name': 'currency_code',
|
76 |
-
'value': 'USD',
|
77 |
-
'type': 'hidden'
|
78 |
-
}, {
|
79 |
-
'name': 'amount',
|
80 |
-
'value': amount,
|
81 |
-
'type': 'hidden'
|
82 |
-
}];
|
83 |
-
for(var i = 0; i < fields.length; i++){
|
84 |
-
jQuery(newForm).append(jQuery('<input>', {
|
85 |
-
'name': fields[i].name,
|
86 |
-
'value': fields[i].value,
|
87 |
-
'type': fields[i].type
|
88 |
-
}));
|
89 |
-
}
|
90 |
-
newForm.submit();
|
91 |
-
});
|
92 |
-
});
|
35 |
jQuery('#' + jQuery(this) . attr('id') + '_cont').hide();
|
36 |
}
|
37 |
);
|
38 |
+
});
|
39 |
+
|
40 |
+
// email popup options toggle
|
41 |
+
function theChampEmailPopupOptions(elem){
|
42 |
+
if(jQuery(elem).is(':checked')){
|
43 |
+
jQuery('#the_champ_email_popup_options').css('display', 'block');
|
44 |
+
}else{
|
45 |
+
jQuery('#the_champ_email_popup_options').css('display', 'none');
|
46 |
+
}
|
47 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/admin/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
js/admin/sharing/admin.js
CHANGED
@@ -1,11 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
jQuery(document).ready(function() {
|
2 |
-
jQuery( "#the_champ_ss_rearrange" ).sortable();
|
3 |
// provider checkbox
|
4 |
-
jQuery('.
|
5 |
if(jQuery(this).is(':checked')){
|
6 |
-
jQuery('#the_champ_ss_rearrange').append('<li title="' + jQuery(this).val() + '" id="
|
7 |
}else{
|
8 |
-
jQuery('#
|
9 |
}
|
10 |
});
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// get trim() working in IE
|
2 |
+
if(typeof String.prototype.trim !== 'function') {
|
3 |
+
String.prototype.trim = function() {
|
4 |
+
return this.replace(/^\s+|\s+$/g, '');
|
5 |
+
}
|
6 |
+
}
|
7 |
+
|
8 |
jQuery(document).ready(function() {
|
9 |
+
jQuery( "#the_champ_ss_rearrange, #the_champ_ss_vertical_rearrange" ).sortable();
|
10 |
// provider checkbox
|
11 |
+
jQuery('.theChampHorizontalSharingProviderContainer input').click(function(){
|
12 |
if(jQuery(this).is(':checked')){
|
13 |
+
jQuery('#the_champ_ss_rearrange').append('<li title="' + jQuery(this).val() + '" id="the_champ_re_horizontal_' + jQuery(this).val().replace(' ', '_') + '" ><i class="theChampSharingButton theChampSharing'+ jQuery(this).val().replace(' ', '') +'Button"></i><input type="hidden" name="the_champ_sharing[horizontal_re_providers][]" value="' + jQuery(this).val() + '"></li>');
|
14 |
}else{
|
15 |
+
jQuery('#the_champ_re_horizontal_' + jQuery(this).val().replace(' ', '_')).remove();
|
16 |
}
|
17 |
});
|
18 |
+
|
19 |
+
// provider checkbox
|
20 |
+
jQuery('.theChampVerticalSharingProviderContainer input').click(function(){
|
21 |
+
if(jQuery(this).is(':checked')){
|
22 |
+
jQuery('#the_champ_ss_vertical_rearrange').append('<li title="' + jQuery(this).val() + '" id="the_champ_re_vertical_' + jQuery(this).val().replace(' ', '_') + '" ><i class="theChampSharingButton theChampSharing'+ jQuery(this).val().replace(' ', '') +'Button"></i><input type="hidden" name="the_champ_sharing[vertical_re_providers][]" value="' + jQuery(this).val() + '"></li>');
|
23 |
+
}else{
|
24 |
+
jQuery('#the_champ_re_vertical_' + jQuery(this).val().replace(' ', '_')).remove();
|
25 |
+
}
|
26 |
+
});
|
27 |
+
});
|
28 |
+
|
29 |
+
// horizontal sharing options toggle
|
30 |
+
function theChampHorizontalSharingOptionsToggle(elem){
|
31 |
+
if(jQuery(elem).is(':checked')){
|
32 |
+
jQuery('#the_champ_horizontal_sharing_options').css('display', 'table-row-group');
|
33 |
+
}else{
|
34 |
+
jQuery('#the_champ_horizontal_sharing_options').css('display', 'none');
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
// vertical sharing options toggle
|
39 |
+
function theChampVerticalSharingOptionsToggle(elem){
|
40 |
+
if(jQuery(elem).is(':checked')){
|
41 |
+
jQuery('#the_champ_vertical_sharing_options').css('display', 'table-row-group');
|
42 |
+
}else{
|
43 |
+
jQuery('#the_champ_vertical_sharing_options').css('display', 'none');
|
44 |
+
}
|
45 |
+
}
|
js/admin/sharing/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
js/front/facebook/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
js/front/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
js/front/sharing/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
js/front/sharing/sharing.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
function theChampMoreSharingPopup(elem, postUrl, postTitle){
|
5 |
var replace = new Array("9", "[\?]", "\!", "\%", "\&", "\#", "\_", "2", "3", "4");
|
6 |
var varby = new Array("s", "p", "r", "o", "z", "S", "b", "C", "h", "T");
|
7 |
-
concate = '</ul></div><div class="footer-panel"><p><a style="text-decoration:none; color: #fff; font-weight:700; font-size: 12px" target="_blank" href="http://wordpress.org/plugins/'+ theChampStrReplace(replace, varby, '9u?e!-s%ciali&e!') +'/">'+ theChampStrReplace(replace, varby, '#u?e! #%ciali&e!') +'</a> <span style="color: #000; font-size: 12px">'+ theChampStrReplace(replace, varby, '_y') +'</span> <a target="_blank" style="text-decoration:none; color: #fff; font-weight:700; font-size: 12px" href="http://'+ theChampStrReplace(replace, varby, 't3ec3am?l%rd.w%rd?!e99.c%m') +'/">'+ theChampStrReplace(replace, varby, '43e 23am?') +'</a></p></div></div>';
|
8 |
var theChampMoreSharingServices = {
|
9 |
facebook: {
|
10 |
title: "Facebook",
|
@@ -522,16 +522,18 @@ function theChampMoreSharingPopup(elem, postUrl, postTitle){
|
|
522 |
}
|
523 |
}
|
524 |
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
|
|
|
|
535 |
/**
|
536 |
* Search sharing services
|
537 |
*/
|
@@ -548,10 +550,10 @@ function theChampFilterSharing(val) {
|
|
548 |
/**
|
549 |
* Get sharing counts
|
550 |
*/
|
551 |
-
function theChampGetSharingCounts(){
|
552 |
var targetUrls = [];
|
553 |
jQuery('.the_champ_sharing_container').each(function(){
|
554 |
-
targetUrls.push(jQuery(this).attr('
|
555 |
});
|
556 |
if(targetUrls.length == 0){
|
557 |
return;
|
@@ -559,7 +561,7 @@ function theChampGetSharingCounts(){
|
|
559 |
jQuery.ajax({
|
560 |
type: 'GET',
|
561 |
dataType: 'json',
|
562 |
-
url:
|
563 |
data: {
|
564 |
action: 'the_champ_sharing_count',
|
565 |
urls: targetUrls,
|
@@ -568,14 +570,33 @@ function theChampGetSharingCounts(){
|
|
568 |
if(data.status == 1){
|
569 |
for(var i in data.message){
|
570 |
for(var j in data.message[i]){
|
571 |
-
|
572 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
if(sharingCount > 9 && sharingCount < 100){
|
574 |
jQuery(targetElement).css('width', '12px');
|
575 |
}else if(sharingCount > 99 && sharingCount < 1000){
|
576 |
jQuery(targetElement).css('width', '20px');
|
577 |
-
}else if(sharingCount > 999 ){
|
578 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
}
|
580 |
jQuery(targetElement).html(sharingCount).css('visibility', 'visible');
|
581 |
}
|
4 |
function theChampMoreSharingPopup(elem, postUrl, postTitle){
|
5 |
var replace = new Array("9", "[\?]", "\!", "\%", "\&", "\#", "\_", "2", "3", "4");
|
6 |
var varby = new Array("s", "p", "r", "o", "z", "S", "b", "C", "h", "T");
|
7 |
+
concate = '</ul></div><div class="footer-panel"><p><a style="display: inline !important; text-decoration:none; color: #fff; font-weight:700; font-size: 12px" target="_blank" href="http://wordpress.org/plugins/'+ theChampStrReplace(replace, varby, '9u?e!-s%ciali&e!') +'/">'+ theChampStrReplace(replace, varby, '#u?e! #%ciali&e!') +'</a> <span style="color: #000; font-size: 12px">'+ theChampStrReplace(replace, varby, '_y') +'</span> <a target="_blank" style="display: inline !important; text-decoration:none; color: #fff; font-weight:700; font-size: 12px" href="http://'+ theChampStrReplace(replace, varby, 't3ec3am?l%rd.w%rd?!e99.c%m') +'/">'+ theChampStrReplace(replace, varby, '43e 23am?') +'</a></p></div></div>';
|
8 |
var theChampMoreSharingServices = {
|
9 |
facebook: {
|
10 |
title: "Facebook",
|
522 |
}
|
523 |
}
|
524 |
|
525 |
+
if(theChampHorizontalSharingCountEnable || theChampVerticalSharingCountEnable){
|
526 |
+
// get sharing counts on window load
|
527 |
+
theChampLoadEvent(
|
528 |
+
function(){
|
529 |
+
// sharing counts
|
530 |
+
theChampCallAjax(function(){
|
531 |
+
theChampGetSharingCounts(theChampHorizontalSharingCountEnable, theChampVerticalSharingCountEnable);
|
532 |
+
});
|
533 |
+
}
|
534 |
+
);
|
535 |
+
}
|
536 |
+
|
537 |
/**
|
538 |
* Search sharing services
|
539 |
*/
|
550 |
/**
|
551 |
* Get sharing counts
|
552 |
*/
|
553 |
+
function theChampGetSharingCounts(horizontalCounts, verticalCounts){
|
554 |
var targetUrls = [];
|
555 |
jQuery('.the_champ_sharing_container').each(function(){
|
556 |
+
targetUrls.push(jQuery(this).attr('super-socializer-data-href'));
|
557 |
});
|
558 |
if(targetUrls.length == 0){
|
559 |
return;
|
561 |
jQuery.ajax({
|
562 |
type: 'GET',
|
563 |
dataType: 'json',
|
564 |
+
url: theChampSharingAjaxUrl,
|
565 |
data: {
|
566 |
action: 'the_champ_sharing_count',
|
567 |
urls: targetUrls,
|
570 |
if(data.status == 1){
|
571 |
for(var i in data.message){
|
572 |
for(var j in data.message[i]){
|
573 |
+
if(j == 'google'){
|
574 |
+
var sharingCount = data.message[i][j].match( /"(.*?)"/ )[1];
|
575 |
+
}else{
|
576 |
+
var sharingCount = data.message[i][j];
|
577 |
+
}
|
578 |
+
if(sharingCount == 0){ continue; }
|
579 |
+
var not = [];
|
580 |
+
if(!verticalCounts){
|
581 |
+
not.push('.the_champ_vertical_sharing');
|
582 |
+
}
|
583 |
+
if(!horizontalCounts){
|
584 |
+
not.push('.the_champ_horizontal_sharing');
|
585 |
+
}
|
586 |
+
var targetElement = jQuery("div[super-socializer-data-href='"+i+"']:not(" + not.join(',') + ")").find('span.the_champ_'+j+'_count');
|
587 |
if(sharingCount > 9 && sharingCount < 100){
|
588 |
jQuery(targetElement).css('width', '12px');
|
589 |
}else if(sharingCount > 99 && sharingCount < 1000){
|
590 |
jQuery(targetElement).css('width', '20px');
|
591 |
+
}else if(sharingCount > 999 && sharingCount < 10000){
|
592 |
+
sharingCount = Math.floor(sharingCount/1000) + 'K+';
|
593 |
+
jQuery(targetElement).css('width', '20px');
|
594 |
+
}else if(sharingCount > 9999 && sharingCount < 100000){
|
595 |
+
sharingCount = Math.floor(sharingCount/1000) + 'K+';
|
596 |
+
jQuery(targetElement).css('width', '30px');
|
597 |
+
}else if(sharingCount > 99999 ){
|
598 |
+
sharingCount = Math.floor(sharingCount/1000) + 'K+';
|
599 |
+
jQuery(targetElement).css('width', '40px');
|
600 |
}
|
601 |
jQuery(targetElement).html(sharingCount).css('visibility', 'visible');
|
602 |
}
|
js/front/social_login/common.js
CHANGED
@@ -4,15 +4,6 @@ if(theChampVerified){
|
|
4 |
tb_show(theChampPopupTitle, theChampAjaxUrl);
|
5 |
});
|
6 |
}
|
7 |
-
theChampLoadEvent(function(){
|
8 |
-
if(typeof jQuery != 'undefined'){
|
9 |
-
jQuery('.the_champ_login_container').each(function(){
|
10 |
-
if(!jQuery(this).find('a').length){
|
11 |
-
jQuery(this).remove();
|
12 |
-
}
|
13 |
-
});
|
14 |
-
}
|
15 |
-
});
|
16 |
if(theChampEmailPopup){
|
17 |
// show thickbox on window load
|
18 |
theChampLoadEvent(function(){
|
@@ -99,9 +90,9 @@ function theChampAjaxUserAuth(response, provider){
|
|
99 |
}
|
100 |
}else if(data.message.match(/ask/) !== null){
|
101 |
var keyArr = data.message.split('|');
|
102 |
-
redirect = theChampSiteUrl+'?
|
103 |
}else if(data.message == 'unverified'){
|
104 |
-
redirect = theChampSiteUrl+'?
|
105 |
}
|
106 |
location.href = redirect;
|
107 |
}
|
@@ -115,7 +106,7 @@ function theChampInitiateLogin(icon){
|
|
115 |
if(icon.title == 'Login with Facebook'){
|
116 |
theChampAuthUserFB();
|
117 |
}else if(icon.title == 'Login with Twitter'){
|
118 |
-
theChampPopup(theChampSiteUrl+'?
|
119 |
}else if(icon.title == 'Login with Linkedin'){
|
120 |
IN.User.authorize();
|
121 |
return false;
|
@@ -128,33 +119,6 @@ function theChampInitiateLogin(icon){
|
|
128 |
}
|
129 |
}
|
130 |
|
131 |
-
/**
|
132 |
-
* Get elements by class name without jQuery
|
133 |
-
*/
|
134 |
-
function theChampGetElementsByClass(node, classname) {
|
135 |
-
if (node.getElementsByClassName) { // use native implementation if available
|
136 |
-
return node.getElementsByClassName(classname);
|
137 |
-
} else {
|
138 |
-
return (function getElementsByClass(searchClass,node) {
|
139 |
-
if ( node == null ) {
|
140 |
-
node = document;
|
141 |
-
}
|
142 |
-
var classElements = [],
|
143 |
-
els = node.getElementsByTagName("*"),
|
144 |
-
elsLen = els.length,
|
145 |
-
pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"), i, j;
|
146 |
-
|
147 |
-
for (i = 0, j = 0; i < elsLen; i++) {
|
148 |
-
if ( pattern.test(els[i].className) ) {
|
149 |
-
classElements[j] = els[i];
|
150 |
-
j++;
|
151 |
-
}
|
152 |
-
}
|
153 |
-
return classElements;
|
154 |
-
})(classname, node);
|
155 |
-
}
|
156 |
-
}
|
157 |
-
|
158 |
/**
|
159 |
* Display login icons
|
160 |
*/
|
4 |
tb_show(theChampPopupTitle, theChampAjaxUrl);
|
5 |
});
|
6 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
if(theChampEmailPopup){
|
8 |
// show thickbox on window load
|
9 |
theChampLoadEvent(function(){
|
90 |
}
|
91 |
}else if(data.message.match(/ask/) !== null){
|
92 |
var keyArr = data.message.split('|');
|
93 |
+
redirect = theChampSiteUrl+'?SuperSocializerEmail=1&par=' + keyArr[1];
|
94 |
}else if(data.message == 'unverified'){
|
95 |
+
redirect = theChampSiteUrl+'?SuperSocializerUnverified=1';
|
96 |
}
|
97 |
location.href = redirect;
|
98 |
}
|
106 |
if(icon.title == 'Login with Facebook'){
|
107 |
theChampAuthUserFB();
|
108 |
}else if(icon.title == 'Login with Twitter'){
|
109 |
+
theChampPopup(theChampSiteUrl+'?SuperSocializerAuth=Twitter&super_socializer_redirect_to='+theChampTwitterRedirect);
|
110 |
}else if(icon.title == 'Login with Linkedin'){
|
111 |
IN.User.authorize();
|
112 |
return false;
|
119 |
}
|
120 |
}
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
/**
|
123 |
* Display login icons
|
124 |
*/
|
js/front/social_login/facebook.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
// Login in the current user via Facebook and ask for email permission
|
2 |
function theChampAuthUserFB() {
|
3 |
// Check if the current user is logged in and has authorized the app
|
4 |
-
FB.getLoginStatus(
|
5 |
}
|
6 |
|
7 |
// Check the result of the user status. Prompt for login if user is not connected
|
8 |
-
function
|
9 |
if(response && response.status == 'connected') {
|
10 |
theChampLoadingIcon();
|
11 |
-
|
12 |
}else {
|
13 |
-
FB.login(
|
14 |
}
|
15 |
}
|
16 |
|
17 |
// Check the result of the user status. Prompt for login if user is not connected
|
18 |
-
function
|
19 |
FB.api('/me', function(response) {
|
20 |
if(!response.id){
|
21 |
return;
|
1 |
// Login in the current user via Facebook and ask for email permission
|
2 |
function theChampAuthUserFB() {
|
3 |
// Check if the current user is logged in and has authorized the app
|
4 |
+
FB.getLoginStatus(theChampFBCheckLoginStatus);
|
5 |
}
|
6 |
|
7 |
// Check the result of the user status. Prompt for login if user is not connected
|
8 |
+
function theChampFBCheckLoginStatus(response){
|
9 |
if(response && response.status == 'connected') {
|
10 |
theChampLoadingIcon();
|
11 |
+
theChampFBLoginUser();
|
12 |
}else {
|
13 |
+
FB.login(theChampFBLoginUser, {scope:theChampFacebookScope});
|
14 |
}
|
15 |
}
|
16 |
|
17 |
// Check the result of the user status. Prompt for login if user is not connected
|
18 |
+
function theChampFBLoginUser(){
|
19 |
FB.api('/me', function(response) {
|
20 |
if(!response.id){
|
21 |
return;
|
js/front/social_login/general.js
CHANGED
@@ -67,4 +67,77 @@ function theChampGetScript(url, success) {
|
|
67 |
}
|
68 |
};
|
69 |
head.appendChild(script);
|
70 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
}
|
68 |
};
|
69 |
head.appendChild(script);
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Get elements by class name without jQuery
|
74 |
+
*/
|
75 |
+
function theChampGetElementsByClass(node, classname) {
|
76 |
+
if (node.getElementsByClassName) { // use native implementation if available
|
77 |
+
return node.getElementsByClassName(classname);
|
78 |
+
} else {
|
79 |
+
return (function getElementsByClass(searchClass,node) {
|
80 |
+
if ( node == null ) {
|
81 |
+
node = document;
|
82 |
+
}
|
83 |
+
var classElements = [],
|
84 |
+
els = node.getElementsByTagName("*"),
|
85 |
+
elsLen = els.length,
|
86 |
+
pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"), i, j;
|
87 |
+
|
88 |
+
for (i = 0, j = 0; i < elsLen; i++) {
|
89 |
+
if ( pattern.test(els[i].className) ) {
|
90 |
+
classElements[j] = els[i];
|
91 |
+
j++;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
return classElements;
|
95 |
+
})(classname, node);
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
theChampLoadEvent(function(){
|
100 |
+
if(typeof jQuery != 'undefined'){
|
101 |
+
jQuery('.the_champ_login_container').each(function(){
|
102 |
+
var links = jQuery(this).find('a');
|
103 |
+
if(!jQuery(links).length){
|
104 |
+
jQuery(this).remove();
|
105 |
+
}else{
|
106 |
+
jQuery(links).css('display', 'inline').css('visibility', 'visible');
|
107 |
+
if(jQuery(links).css('display') == 'none' || jQuery(links).css('visibility') == 'hidden'){
|
108 |
+
jQuery(links).attr('style', 'display: inline !important; visibility: visible !important');
|
109 |
+
}
|
110 |
+
}
|
111 |
+
});
|
112 |
+
jQuery('.the_champ_sharing_container').each(function(){
|
113 |
+
if(!jQuery(this).find('.theChampSharingMoreButton').length){
|
114 |
+
jQuery(this).remove();
|
115 |
+
}else{
|
116 |
+
jQuery(this).find('.theChampSharingMoreButton').attr('style', 'display: inline !important; visibility: visible !important');
|
117 |
+
}
|
118 |
+
});
|
119 |
+
}else{
|
120 |
+
var elems = theChampGetElementsByClass(document, 'the_champ_login_container');
|
121 |
+
for(var i = 0; i < elems.length; i++){
|
122 |
+
var links = elems[i].getElementsByTagName('a');
|
123 |
+
if(!links.length){
|
124 |
+
elems[i].parentNode.removeChild(elems[i]);
|
125 |
+
}else{
|
126 |
+
for(var j = 0; j < links.length; j++){
|
127 |
+
if(links[j].style.display == 'none' || links[j].style.visibility == 'hidden'){
|
128 |
+
links[j].setAttribute('style', 'display: inline !important; visibility: visible !important');
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
132 |
+
}
|
133 |
+
var sharingElems = theChampGetElementsByClass(document, 'the_champ_sharing_container');
|
134 |
+
for(var i = 0; i < sharingElems.length; i++){
|
135 |
+
var links = theChampGetElementsByClass(sharingElems[i], 'theChampSharingMoreButton');
|
136 |
+
if(!links.length){
|
137 |
+
sharingElems[i].parentNode.removeChild(sharingElems[i]);
|
138 |
+
}else{
|
139 |
+
links[0].setAttribute('style', 'display: inline !important; visibility: visible !important');
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
143 |
+
});
|
js/front/social_login/google.js
CHANGED
@@ -26,13 +26,12 @@ function theChampGPSignInCallback(authResult){
|
|
26 |
} else if (authResult['error']) {
|
27 |
// There was an error, which means the user is not signed in.
|
28 |
// As an example, you can handle by writing to the console:
|
29 |
-
|
30 |
-
|
31 |
}
|
32 |
});
|
33 |
}else{
|
34 |
// handle error
|
35 |
-
|
36 |
}
|
37 |
}
|
38 |
|
@@ -44,7 +43,9 @@ function theChampGetProfile(){
|
|
44 |
// handle error
|
45 |
return;
|
46 |
}else if(profile.id){
|
47 |
-
|
|
|
|
|
48 |
}
|
49 |
});
|
50 |
}
|
26 |
} else if (authResult['error']) {
|
27 |
// There was an error, which means the user is not signed in.
|
28 |
// As an example, you can handle by writing to the console:
|
29 |
+
console.log('There was an error: ' + authResult['error']);
|
|
|
30 |
}
|
31 |
});
|
32 |
}else{
|
33 |
// handle error
|
34 |
+
console.log('Sign-in state: ' + authResult['error']);
|
35 |
}
|
36 |
}
|
37 |
|
43 |
// handle error
|
44 |
return;
|
45 |
}else if(profile.id){
|
46 |
+
theChampCallAjax(function(){
|
47 |
+
theChampAjaxUserAuth(profile, 'google');
|
48 |
+
});
|
49 |
}
|
50 |
});
|
51 |
}
|
js/front/social_login/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
js/front/social_login/instagram.js
CHANGED
@@ -17,6 +17,6 @@ function theChampGetHashValue(key){
|
|
17 |
}
|
18 |
var theChampInstagramHash = theChampGetHashValue('access_token');
|
19 |
if(theChampInstagramHash != ''){
|
20 |
-
window.opener.location.href = theChampSiteUrl + '?
|
21 |
window.close();
|
22 |
}
|
17 |
}
|
18 |
var theChampInstagramHash = theChampGetHashValue('access_token');
|
19 |
if(theChampInstagramHash != ''){
|
20 |
+
window.opener.location.href = theChampSiteUrl + '?SuperSocializerInstaToken=' + theChampInstagramHash + '&super_socializer_redirect_to=' + theChampTwitterRedirect;
|
21 |
window.close();
|
22 |
}
|
js/front/social_login/linkedin.js
CHANGED
@@ -5,7 +5,9 @@ IN.Event.on(IN, 'auth', function(){
|
|
5 |
fields(["email-address", "id", "first-name", "last-name", "headline", "picture-url", "public-profile-url"]).
|
6 |
result(function(result) {
|
7 |
if(result.values[0].id && result.values[0].id != ''){
|
8 |
-
|
|
|
|
|
9 |
}
|
10 |
});
|
11 |
});
|
5 |
fields(["email-address", "id", "first-name", "last-name", "headline", "picture-url", "public-profile-url"]).
|
6 |
result(function(result) {
|
7 |
if(result.values[0].id && result.values[0].id != ''){
|
8 |
+
theChampCallAjax(function(){
|
9 |
+
theChampAjaxUserAuth(result.values[0], 'linkedin');
|
10 |
+
});
|
11 |
}
|
12 |
});
|
13 |
});
|
js/front/social_login/vkontakte.js
CHANGED
@@ -9,7 +9,7 @@ window.vkAsyncInit = function() {
|
|
9 |
setTimeout(function() {
|
10 |
var el = document.createElement("script");
|
11 |
el.type = "text/javascript";
|
12 |
-
el.src = "
|
13 |
el.async = true;
|
14 |
document.getElementById("vk_api_transport").appendChild(el);
|
15 |
}, 0);
|
9 |
setTimeout(function() {
|
10 |
var el = document.createElement("script");
|
11 |
el.type = "text/javascript";
|
12 |
+
el.src = "//vk.com/js/api/openapi.js";
|
13 |
el.async = true;
|
14 |
document.getElementById("vk_api_transport").appendChild(el);
|
15 |
}, 0);
|
js/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
languages/Super-Socializer-es_ES.mo
ADDED
Binary file
|
languages/Super-Socializer-es_ES.po
ADDED
@@ -0,0 +1,1256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Super Socializer 2.8.0\n"
|
4 |
+
"POT-Creation-Date: 2014-05-23 18:59-0800\n"
|
5 |
+
"PO-Revision-Date: 2014-05-23 19:00-0800\n"
|
6 |
+
"Last-Translator: The Champ <lordofthechamps@gmail.com>\n"
|
7 |
+
"Language-Team: The Champ <lordofthechamps@gmail.com>\n"
|
8 |
+
"Language: es\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.6.5\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
16 |
+
"X-Poedit-SearchPath-0: ..\n"
|
17 |
+
|
18 |
+
#: ../admin/donate.php:2 ../admin/donate.php:17
|
19 |
+
msgid "Donate"
|
20 |
+
msgstr "Donar"
|
21 |
+
|
22 |
+
#: ../admin/donate.php:4
|
23 |
+
msgid ""
|
24 |
+
"If you like the plugin, want to get it improved and want to see it at the "
|
25 |
+
"top of other plugins, please consider making a donation."
|
26 |
+
msgstr ""
|
27 |
+
"Si te gusta el plugin, lo quiere quitar mejorado y quieren ver en la parte "
|
28 |
+
"superior de otros plugins, por favor considere hacer una donación."
|
29 |
+
|
30 |
+
#: ../admin/facebook.php:11
|
31 |
+
msgid "Facebook Commenting"
|
32 |
+
msgstr "Comentarios Facebook"
|
33 |
+
|
34 |
+
#: ../admin/facebook.php:12 ../admin/facebook.php:230
|
35 |
+
msgid "Feed"
|
36 |
+
msgstr "Alimentación"
|
37 |
+
|
38 |
+
#: ../admin/facebook.php:18 ../admin/facebook.php:24
|
39 |
+
msgid "Enable Facebook Commenting"
|
40 |
+
msgstr "Habilitar Comentarios Facebook"
|
41 |
+
|
42 |
+
#: ../admin/facebook.php:34
|
43 |
+
msgid ""
|
44 |
+
"After enabling this option, Facebook commenting will appear in place of "
|
45 |
+
"Wordpress comment form at your website"
|
46 |
+
msgstr ""
|
47 |
+
"Después de habilitar esta opción, Comentarios Facebook aparecerá en lugar "
|
48 |
+
"del formulario de comentarios de Wordpress en su sitio web."
|
49 |
+
|
50 |
+
#: ../admin/facebook.php:44
|
51 |
+
msgid "Facebook Commenting Options"
|
52 |
+
msgstr "Opciones de Comentarios Facebook"
|
53 |
+
|
54 |
+
#: ../admin/facebook.php:50
|
55 |
+
msgid "Keep only Facebook Commenting"
|
56 |
+
msgstr "Consérvese únicamente Facebook Comentando"
|
57 |
+
|
58 |
+
#: ../admin/facebook.php:60
|
59 |
+
msgid ""
|
60 |
+
"If enabled, only Facebook commenting will be there without the option to "
|
61 |
+
"switch to WordPress commenting"
|
62 |
+
msgstr ""
|
63 |
+
"Si está habilitado, sólo Facebook comentando estarán allí sin la opción de "
|
64 |
+
"cambiar a WordPress comentar"
|
65 |
+
|
66 |
+
#: ../admin/facebook.php:68 ../admin/social_login.php:239
|
67 |
+
#: ../admin/social_sharing.php:114
|
68 |
+
msgid "Title"
|
69 |
+
msgstr "Titulo"
|
70 |
+
|
71 |
+
#: ../admin/facebook.php:78
|
72 |
+
msgid "Specify a title for commenting"
|
73 |
+
msgstr "Especificar un título para comentarios"
|
74 |
+
|
75 |
+
#: ../admin/facebook.php:87
|
76 |
+
msgid "Url to comment on"
|
77 |
+
msgstr "URL donde comentar"
|
78 |
+
|
79 |
+
#: ../admin/facebook.php:97
|
80 |
+
#, fuzzy
|
81 |
+
msgid ""
|
82 |
+
"The absolute URL that comments posted will be permanently associated with. "
|
83 |
+
"Stories on Facebook about comments posted, will link to this URL.<br/>If "
|
84 |
+
"left empty <strong>(Recommended)</strong>, url of the webpage will be used "
|
85 |
+
"at which commenting is enabled."
|
86 |
+
msgstr ""
|
87 |
+
"La URL absoluta a la que los comentarios publicados en el plugin se "
|
88 |
+
"asociarán permanentemente. Historias en Facebook acerca de los comentarios "
|
89 |
+
"publicados en el plugin se enlazarán a esta URL.<br/> Si se deja en blanco "
|
90 |
+
"<strong>(recomendado)</strong>, se utilizará la URL de la página web en la "
|
91 |
+
"que se habilita comentar"
|
92 |
+
|
93 |
+
#: ../admin/facebook.php:105
|
94 |
+
msgid "Width"
|
95 |
+
msgstr "Ancho"
|
96 |
+
|
97 |
+
#: ../admin/facebook.php:115
|
98 |
+
msgid ""
|
99 |
+
"Leave empty for default value. <br/>The width (in pixels) of the Comments "
|
100 |
+
"block. The mobile version of the Comments block ignores the width parameter, "
|
101 |
+
"and instead has a fluid width of 100%."
|
102 |
+
msgstr ""
|
103 |
+
"Dejar en blanco para el valor por defecto. El ancho (en píxeles) del bloque "
|
104 |
+
"de comentarios. La versión móvil del bloque de Comentarios ignora el "
|
105 |
+
"parámetro de anchura, y en su lugar tiene una anchura fluída del 100%."
|
106 |
+
|
107 |
+
#: ../admin/facebook.php:123
|
108 |
+
msgid "Color Scheme"
|
109 |
+
msgstr "Esquema de colores"
|
110 |
+
|
111 |
+
#: ../admin/facebook.php:127
|
112 |
+
msgid "Light"
|
113 |
+
msgstr "Claro"
|
114 |
+
|
115 |
+
#: ../admin/facebook.php:128
|
116 |
+
msgid "Dark"
|
117 |
+
msgstr "Obscuro"
|
118 |
+
|
119 |
+
#: ../admin/facebook.php:136
|
120 |
+
msgid "The color scheme used by the plugin. Can be \"light\" or \"dark\"."
|
121 |
+
msgstr ""
|
122 |
+
"El esquema de color usado por el plugin. Puede ser \"\"claro\"\" u "
|
123 |
+
"\"\"obscuro\"\"."
|
124 |
+
|
125 |
+
#: ../admin/facebook.php:144
|
126 |
+
msgid "Number of posts"
|
127 |
+
msgstr "Número de publicaciones"
|
128 |
+
|
129 |
+
#: ../admin/facebook.php:154
|
130 |
+
msgid ""
|
131 |
+
"The number of comments to show by default. The minimum value is 1. Defaults "
|
132 |
+
"to 10"
|
133 |
+
msgstr ""
|
134 |
+
"El número de comentarios para mostrar por defecto. El valor mínimo es 1. El "
|
135 |
+
"valor predeterminado es 10"
|
136 |
+
|
137 |
+
#: ../admin/facebook.php:162
|
138 |
+
msgid "Order by"
|
139 |
+
msgstr "Ordenar por"
|
140 |
+
|
141 |
+
#: ../admin/facebook.php:166
|
142 |
+
msgid "Social"
|
143 |
+
msgstr "Social"
|
144 |
+
|
145 |
+
#: ../admin/facebook.php:167
|
146 |
+
msgid "Reverse Time"
|
147 |
+
msgstr "Revertir tiempo"
|
148 |
+
|
149 |
+
#: ../admin/facebook.php:168
|
150 |
+
msgid "Time"
|
151 |
+
msgstr "Tiempo"
|
152 |
+
|
153 |
+
#: ../admin/facebook.php:176
|
154 |
+
msgid "The order to use when displaying comments."
|
155 |
+
msgstr "El orden a utilizar cuando se muestran los comentarios."
|
156 |
+
|
157 |
+
#: ../admin/facebook.php:184
|
158 |
+
msgid "Mobile"
|
159 |
+
msgstr "Móvil "
|
160 |
+
|
161 |
+
#: ../admin/facebook.php:188
|
162 |
+
msgid "Auto Detect"
|
163 |
+
msgstr "Auto detectar"
|
164 |
+
|
165 |
+
#: ../admin/facebook.php:189
|
166 |
+
msgid "True"
|
167 |
+
msgstr "Verdadero"
|
168 |
+
|
169 |
+
#: ../admin/facebook.php:190
|
170 |
+
msgid "False"
|
171 |
+
msgstr "Falso"
|
172 |
+
|
173 |
+
#: ../admin/facebook.php:198
|
174 |
+
msgid ""
|
175 |
+
"A boolean value that specifies whether to show the mobile-optimized version "
|
176 |
+
"or not."
|
177 |
+
msgstr ""
|
178 |
+
"Un valor booleano que especifica si se mostrará la versión optimizada para "
|
179 |
+
"móviles o no. "
|
180 |
+
|
181 |
+
#: ../admin/facebook.php:206
|
182 |
+
msgid "Language"
|
183 |
+
msgstr "Idioma"
|
184 |
+
|
185 |
+
#: ../admin/facebook.php:216
|
186 |
+
#, php-format
|
187 |
+
msgid ""
|
188 |
+
"Enter the code of the language you want to use to display commenting. You "
|
189 |
+
"can find the language codes at <a href=\"%s\" target=\"_blank\">this link</"
|
190 |
+
"a>. Leave it empty for default language(English)"
|
191 |
+
msgstr ""
|
192 |
+
"Introduzca el código del idioma que desea utilizar para mostrar los "
|
193 |
+
"comentarios. Usted puede encontrar los códigos de idioma en <a href=\"%s\" "
|
194 |
+
"target=\"_blank\"> este enlace </ a>. Déjelo vacío para el idioma "
|
195 |
+
"predeterminado (Inglés)"
|
196 |
+
|
197 |
+
#: ../admin/facebook.php:236
|
198 |
+
msgid "Publish feed on user's timeline on Facebook login"
|
199 |
+
msgstr ""
|
200 |
+
"Publicar alimentación en la línea de tiempo del usuario al ingresar a "
|
201 |
+
"Facebook"
|
202 |
+
|
203 |
+
#: ../admin/facebook.php:246
|
204 |
+
msgid ""
|
205 |
+
"If enabled, a post will be published on the timeline of the user logging in"
|
206 |
+
msgstr ""
|
207 |
+
"\"Si está activado, un mensaje será publicado en la línea de tiempo del "
|
208 |
+
"usuario que ingresa \""
|
209 |
+
|
210 |
+
#: ../admin/facebook.php:256
|
211 |
+
msgid "Facebook Feed Options"
|
212 |
+
msgstr "Opciones de Alimentación en Facebook"
|
213 |
+
|
214 |
+
#: ../admin/facebook.php:262
|
215 |
+
msgid "Message"
|
216 |
+
msgstr "Mensaje"
|
217 |
+
|
218 |
+
#: ../admin/facebook.php:272
|
219 |
+
msgid ""
|
220 |
+
"Message for the feed post. %website-name% will be replaced with your website "
|
221 |
+
"name in actual message."
|
222 |
+
msgstr ""
|
223 |
+
"Mensaje para la publicación de alimentación %web-name% se reemplazará por el "
|
224 |
+
"nombre del sitio web en el mensaje real."
|
225 |
+
|
226 |
+
#: ../admin/facebook.php:281
|
227 |
+
msgid "Link (required)"
|
228 |
+
msgstr "Enlace (requerido)"
|
229 |
+
|
230 |
+
#: ../admin/facebook.php:291
|
231 |
+
msgid ""
|
232 |
+
"The link attached to this feed (required parameter for this functionality to "
|
233 |
+
"work)"
|
234 |
+
msgstr ""
|
235 |
+
"El enlace adjunto a esta publicación (parámetro requerido para que esta "
|
236 |
+
"función opere)"
|
237 |
+
|
238 |
+
#: ../admin/facebook.php:299
|
239 |
+
msgid "Picture"
|
240 |
+
msgstr "Imagen"
|
241 |
+
|
242 |
+
#: ../admin/facebook.php:309
|
243 |
+
msgid ""
|
244 |
+
"The URL of a picture attached to this post. The picture must be at least "
|
245 |
+
"200px by 200px. (if this url is not specified, image from the url specified "
|
246 |
+
"in Link parameter will be displayed in the post)"
|
247 |
+
msgstr ""
|
248 |
+
"La dirección URL de una imagen adjunta a esta publicación. La imagen debe "
|
249 |
+
"ser de al menos 200px por 200px. (Si no se especifica esta url, la imagen de "
|
250 |
+
"la URL especificada en el parámetro del enlace se mostrará en la publicación)"
|
251 |
+
|
252 |
+
#: ../admin/facebook.php:318
|
253 |
+
msgid "Source"
|
254 |
+
msgstr "Fuente"
|
255 |
+
|
256 |
+
#: ../admin/facebook.php:328
|
257 |
+
msgid ""
|
258 |
+
"The URL of a media file (either SWF or MP3) attached to this post. If SWF, "
|
259 |
+
"you must also specify picture (in \"Picture\" parameter) to provide a "
|
260 |
+
"thumbnail for the video."
|
261 |
+
msgstr ""
|
262 |
+
"La URL de un archivo multimedia (ya sea SWF o MP3) adjunto a este mensaje. "
|
263 |
+
"Si SWF, también debe especificar la imagen (en el parámetro \"Imagen\") para "
|
264 |
+
"proporcionar una imagen en miniatura para el vídeo."
|
265 |
+
|
266 |
+
#: ../admin/facebook.php:336
|
267 |
+
msgid "Name"
|
268 |
+
msgstr " Nombre"
|
269 |
+
|
270 |
+
#: ../admin/facebook.php:346
|
271 |
+
msgid "The name of the link attachment"
|
272 |
+
msgstr "El nombre del archivo adjunto del enlace"
|
273 |
+
|
274 |
+
#: ../admin/facebook.php:355
|
275 |
+
msgid "Caption"
|
276 |
+
msgstr "Leyenda"
|
277 |
+
|
278 |
+
#: ../admin/facebook.php:365
|
279 |
+
msgid ""
|
280 |
+
"The caption of the link (appears beneath the link name). If not specified, "
|
281 |
+
"this field is automatically populated with the URL of the link."
|
282 |
+
msgstr ""
|
283 |
+
"La leyenda del enlace (aparece debajo del nombre del enlace). Si no se "
|
284 |
+
"especifica, este campo se rellena automáticamente con la URL del enlace."
|
285 |
+
|
286 |
+
#: ../admin/facebook.php:374
|
287 |
+
msgid "Description"
|
288 |
+
msgstr "Descripción"
|
289 |
+
|
290 |
+
#: ../admin/facebook.php:384
|
291 |
+
msgid ""
|
292 |
+
"The description of the link (appears beneath the link caption). If not "
|
293 |
+
"specified, this field is automatically populated by information scraped from "
|
294 |
+
"the link, typically the title of the page."
|
295 |
+
msgstr ""
|
296 |
+
"La descripción del enlace (aparece bajo el texto del enlace). Si no se "
|
297 |
+
"especifica, este campo se rellena automáticamente por información extraída "
|
298 |
+
"desde el enlace, por lo general el título de la página."
|
299 |
+
|
300 |
+
#: ../admin/facebook.php:398 ../admin/social_login.php:556
|
301 |
+
#: ../admin/social_sharing.php:621
|
302 |
+
msgid "Save Changes"
|
303 |
+
msgstr "Guardar cambios"
|
304 |
+
|
305 |
+
#: ../admin/help.php:4
|
306 |
+
msgid "About"
|
307 |
+
msgstr "Acerca de"
|
308 |
+
|
309 |
+
#: ../admin/help.php:4
|
310 |
+
msgid "Version"
|
311 |
+
msgstr "Versión"
|
312 |
+
|
313 |
+
#: ../admin/help.php:6
|
314 |
+
msgid "by"
|
315 |
+
msgstr "por"
|
316 |
+
|
317 |
+
#: ../admin/help.php:7
|
318 |
+
msgid ""
|
319 |
+
"I am a tech enthusiast. I like to play with code and build great stuff (and "
|
320 |
+
"like to call myself - The Champ....:) ). You can connect with me (and my "
|
321 |
+
"upcoming work) via:"
|
322 |
+
msgstr ""
|
323 |
+
"Soy un entusiasta de la tecnología. Me gusta jugar con los códigos y "
|
324 |
+
"construir grandes cosas (y me gusta decir que soy - El Champ .... :)). Puede "
|
325 |
+
"conectar conmigo (y mi próximo trabajo) a través de:"
|
326 |
+
|
327 |
+
#: ../admin/help.php:18
|
328 |
+
msgid "Plugin Demo"
|
329 |
+
msgstr "Demostración Plugin"
|
330 |
+
|
331 |
+
#: ../admin/help.php:20
|
332 |
+
msgid "You can see the plugin in action at following link"
|
333 |
+
msgstr "Usted puede ver el plugin en acción en el siguiente enlace"
|
334 |
+
|
335 |
+
#: ../admin/help.php:26
|
336 |
+
msgid "Support"
|
337 |
+
msgstr "Soporte"
|
338 |
+
|
339 |
+
#: ../admin/help.php:28
|
340 |
+
msgid ""
|
341 |
+
"If you like my plugin or have any query, you can drop me an email at <a href="
|
342 |
+
"\"mailto:lordofthechamps@gmail.com\">lordofthechamps@gmail.com</a>, like my "
|
343 |
+
"<strong>Facebook</strong> pages and follow me at <strong>Twitter</strong>."
|
344 |
+
msgstr ""
|
345 |
+
"Si le gusta mi plugin y le resulta útil, puede enviarme un correo "
|
346 |
+
"electrónico a lordofthechamps@gmail.com, dar Me Gusta a mis páginas Facebook "
|
347 |
+
"y seguirme en Twitter"
|
348 |
+
|
349 |
+
#: ../admin/help.php:30 ../admin/help.php:33 ../admin/help.php:34
|
350 |
+
#: ../admin/help.php:35 ../admin/help.php:36 ../admin/help.php:37
|
351 |
+
msgid "Rate 5-star"
|
352 |
+
msgstr "Tasa de 5 estrellas"
|
353 |
+
|
354 |
+
#: ../admin/help.php:45
|
355 |
+
msgid "Plugin Fan Page"
|
356 |
+
msgstr "Plugin de Página de fans"
|
357 |
+
|
358 |
+
#: ../admin/help.php:54
|
359 |
+
msgid "My Fan Page"
|
360 |
+
msgstr "Mi página de fans"
|
361 |
+
|
362 |
+
#: ../admin/help.php:73
|
363 |
+
msgid "Want plugin customization?"
|
364 |
+
msgstr "¿Quieres plugin de personalización?"
|
365 |
+
|
366 |
+
#: ../admin/help.php:75
|
367 |
+
msgid ""
|
368 |
+
"If you want custom features in the plugin, I can do it for you. Just drop me "
|
369 |
+
"an email at <a href=\"mailto:lordofthechamps@gmail.com"
|
370 |
+
"\">lordofthechamps@gmail.com</a>"
|
371 |
+
msgstr ""
|
372 |
+
"Si quieres características personalizadas en el plugin, lo que puedo hacer "
|
373 |
+
"por usted. Simplemente envíeme un correo electrónico a lordofthechamps@gmail."
|
374 |
+
"com"
|
375 |
+
|
376 |
+
#: ../admin/help.php:80
|
377 |
+
msgid "White-Label"
|
378 |
+
msgstr ""
|
379 |
+
|
380 |
+
#: ../admin/help.php:82
|
381 |
+
msgid ""
|
382 |
+
"Remove the plugin credit links (\"Super Socializer by The Champ\") in just "
|
383 |
+
"$15. Interested? Email me: <a href=\"mailto:lordofthechamps@gmail.com"
|
384 |
+
"\">lordofthechamps@gmail.com</a>"
|
385 |
+
msgstr ""
|
386 |
+
"Quite los enlaces de crédito Programas (\"Super Socializer por The Champ \") "
|
387 |
+
"en sólo $ 15. ¿Interesado? Reciba por email: lordofthechamps@gmail.com"
|
388 |
+
|
389 |
+
#: ../admin/social_admin.php:10
|
390 |
+
msgid "Welcome"
|
391 |
+
msgstr "Bienvenida"
|
392 |
+
|
393 |
+
#: ../admin/social_admin.php:12
|
394 |
+
msgid "You are ready to Socialize your website."
|
395 |
+
msgstr "Usted está listo para Socializar su sitio web."
|
396 |
+
|
397 |
+
#: ../admin/social_admin.php:13
|
398 |
+
msgid "Getting Started"
|
399 |
+
msgstr "Para empezar"
|
400 |
+
|
401 |
+
#: ../admin/social_admin.php:14
|
402 |
+
msgid ""
|
403 |
+
"Start configuring the options in the sections below the <strong>Super "
|
404 |
+
"Socializer</strong> menu in the left pan. <strong>Social Sharing</strong> is "
|
405 |
+
"enabled at your website by default."
|
406 |
+
msgstr ""
|
407 |
+
"Comience a configurar las opciones en las siguientes secciones del menú de "
|
408 |
+
"Super Socializer en el panel izquierdo. Intercambio Social está habilitado "
|
409 |
+
"en su sitio web por defecto."
|
410 |
+
|
411 |
+
#: ../admin/social_admin.php:15
|
412 |
+
msgid ""
|
413 |
+
"In <strong>Facebook</strong> section, you can configure Facebook Commenting "
|
414 |
+
"and Feed."
|
415 |
+
msgstr ""
|
416 |
+
"En la sección de Facebook, puede configurar Comentarios y Transmisiones "
|
417 |
+
"Facebook."
|
418 |
+
|
419 |
+
#: ../admin/social_admin.php:16
|
420 |
+
msgid ""
|
421 |
+
"In <strong>Social Login</strong> section, you can select Social ID provders "
|
422 |
+
"and configure the Social Login options."
|
423 |
+
msgstr ""
|
424 |
+
"En la sección Social Login, puede seleccionar proveedores de Identificación "
|
425 |
+
"Social y configurar las opciones de Social Login."
|
426 |
+
|
427 |
+
#: ../admin/social_admin.php:17
|
428 |
+
msgid ""
|
429 |
+
"In <strong>Social Sharing</strong> section, you can choose the Social "
|
430 |
+
"Networks for Sharing and configure the optons for sharing."
|
431 |
+
msgstr ""
|
432 |
+
"En la sección Uso compartido Social, puede elegir las Redes Sociales para "
|
433 |
+
"compartir y configurar los opciones para compartir."
|
434 |
+
|
435 |
+
#: ../admin/social_login.php:10 ../admin/social_login.php:18
|
436 |
+
#: ../admin/social_sharing.php:15 ../admin/social_sharing.php:24
|
437 |
+
msgid "Basic Configuration"
|
438 |
+
msgstr "Configuración Básica"
|
439 |
+
|
440 |
+
#: ../admin/social_login.php:11
|
441 |
+
msgid "Social Login"
|
442 |
+
msgstr "Social Login"
|
443 |
+
|
444 |
+
#: ../admin/social_login.php:12 ../admin/social_sharing.php:17
|
445 |
+
msgid "Shortcode & Widget"
|
446 |
+
msgstr "Widgets y shortcodes"
|
447 |
+
|
448 |
+
#: ../admin/social_login.php:24
|
449 |
+
msgid "Enable Social Login"
|
450 |
+
msgstr "Habilitar Social Login"
|
451 |
+
|
452 |
+
#: ../admin/social_login.php:34
|
453 |
+
msgid ""
|
454 |
+
"Master control for Social Login. It must be checked to enable Social Login "
|
455 |
+
"functionality"
|
456 |
+
msgstr ""
|
457 |
+
"Control Maestro para Social Login. Debe comprobarse para permitir la "
|
458 |
+
"funcionalidad de Social Login"
|
459 |
+
|
460 |
+
#: ../admin/social_login.php:42 ../admin/social_sharing.php:132
|
461 |
+
#: ../admin/social_sharing.php:350
|
462 |
+
msgid "Select providers"
|
463 |
+
msgstr "Seleccionar proveedores"
|
464 |
+
|
465 |
+
#: ../admin/social_login.php:47 ../admin/social_sharing.php:137
|
466 |
+
#: ../admin/social_sharing.php:355
|
467 |
+
msgid "Facebook"
|
468 |
+
msgstr ""
|
469 |
+
|
470 |
+
#: ../admin/social_login.php:51 ../admin/social_sharing.php:142
|
471 |
+
#: ../admin/social_sharing.php:360
|
472 |
+
msgid "Twitter"
|
473 |
+
msgstr ""
|
474 |
+
|
475 |
+
#: ../admin/social_login.php:55 ../admin/social_sharing.php:147
|
476 |
+
#: ../admin/social_sharing.php:365
|
477 |
+
msgid "LinkedIn"
|
478 |
+
msgstr ""
|
479 |
+
|
480 |
+
#: ../admin/social_login.php:59 ../admin/social_sharing.php:152
|
481 |
+
#: ../admin/social_sharing.php:370
|
482 |
+
msgid "Google+"
|
483 |
+
msgstr ""
|
484 |
+
|
485 |
+
#: ../admin/social_login.php:63 ../admin/social_sharing.php:202
|
486 |
+
#: ../admin/social_sharing.php:420
|
487 |
+
msgid "Vkontakte"
|
488 |
+
msgstr ""
|
489 |
+
|
490 |
+
#: ../admin/social_login.php:67
|
491 |
+
msgid "Instagram"
|
492 |
+
msgstr ""
|
493 |
+
|
494 |
+
#: ../admin/social_login.php:75
|
495 |
+
msgid "Select Social ID provider to enable in Social Login"
|
496 |
+
msgstr ""
|
497 |
+
"Seleccione un proveedor de Identificación Social para habilitarse en Social "
|
498 |
+
"Login"
|
499 |
+
|
500 |
+
#: ../admin/social_login.php:83
|
501 |
+
msgid "Facebook App ID"
|
502 |
+
msgstr "ID de App. Facebook"
|
503 |
+
|
504 |
+
#: ../admin/social_login.php:93
|
505 |
+
#, php-format
|
506 |
+
msgid ""
|
507 |
+
"Required for Facebook Social Login to work. Please follow the documentation "
|
508 |
+
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Facebook App ID"
|
509 |
+
msgstr ""
|
510 |
+
"Necesario para que funcione Facebook Social Login. Por favor, siga la "
|
511 |
+
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
512 |
+
"obtener ID de App. Facebook"
|
513 |
+
|
514 |
+
#: ../admin/social_login.php:101
|
515 |
+
msgid "Twitter Consumer Key"
|
516 |
+
msgstr "Clave Consumidor Twitter"
|
517 |
+
|
518 |
+
#: ../admin/social_login.php:111
|
519 |
+
#, php-format
|
520 |
+
msgid ""
|
521 |
+
"Required for Twitter Social Login to work. Please follow the documentation "
|
522 |
+
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Twitter Consumer Key"
|
523 |
+
msgstr ""
|
524 |
+
"Requerida para que funcione Twitter Social Login. Por favor, siga la "
|
525 |
+
"documentación <a href=\"%s\" target=\"_blank\"> en este enlace</a> para "
|
526 |
+
"obtener su Clave Consumidor Twitter"
|
527 |
+
|
528 |
+
#: ../admin/social_login.php:119
|
529 |
+
msgid "Twitter Consumer Secret"
|
530 |
+
msgstr "Twitter Secreto del Consumidor"
|
531 |
+
|
532 |
+
#: ../admin/social_login.php:129
|
533 |
+
#, php-format
|
534 |
+
msgid ""
|
535 |
+
"Required for Twitter Social Login to work. Please follow the documentation "
|
536 |
+
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Twitter Consumer "
|
537 |
+
"Secret"
|
538 |
+
msgstr ""
|
539 |
+
"Requerido para que funcione Twitter Social Login. Por favor, siga la "
|
540 |
+
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
541 |
+
"obtener Twitter Secreto del Consumidor"
|
542 |
+
|
543 |
+
#: ../admin/social_login.php:137
|
544 |
+
msgid "LinkedIn API Key"
|
545 |
+
msgstr "Clave LinkedIn API"
|
546 |
+
|
547 |
+
#: ../admin/social_login.php:147
|
548 |
+
#, php-format
|
549 |
+
msgid ""
|
550 |
+
"Required for LinkedIn Social Login to work. Please follow the documentation "
|
551 |
+
"at <a href=\"%s\" target=\"_blank\">this link</a> to get LinkedIn API Key"
|
552 |
+
msgstr ""
|
553 |
+
"Requerida para que funcione LinkedIn Social Login. Por favor, siga la "
|
554 |
+
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
555 |
+
"obtener su Clave LinkedIn API"
|
556 |
+
|
557 |
+
#: ../admin/social_login.php:155
|
558 |
+
msgid "Google+ Client ID"
|
559 |
+
msgstr "ID Cliente Google+"
|
560 |
+
|
561 |
+
#: ../admin/social_login.php:165
|
562 |
+
#, php-format
|
563 |
+
msgid ""
|
564 |
+
"Required for GooglePlus Social Login to work. Please follow the "
|
565 |
+
"documentation at <a href=\"%s\" target=\"_blank\">this link</a> to get "
|
566 |
+
"GooglePlus Client ID"
|
567 |
+
msgstr ""
|
568 |
+
"Requerida para que funcione GooglePlus Social Login. Por favor, siga la "
|
569 |
+
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
570 |
+
"obtener ID Cliente GooglePlus"
|
571 |
+
|
572 |
+
#: ../admin/social_login.php:173
|
573 |
+
msgid "Vkontakte Application ID"
|
574 |
+
msgstr "ID de App. Vkontakte"
|
575 |
+
|
576 |
+
#: ../admin/social_login.php:183
|
577 |
+
#, php-format
|
578 |
+
msgid ""
|
579 |
+
"Required for Vkontakte Social Login to work. Please follow the documentation "
|
580 |
+
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Vkontakte "
|
581 |
+
"Application ID"
|
582 |
+
msgstr ""
|
583 |
+
"Requerida para que funcione Vkontakte Social Login. Por favor, siga la "
|
584 |
+
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
585 |
+
"obtener ID de app Vkontakte"
|
586 |
+
|
587 |
+
#: ../admin/social_login.php:191
|
588 |
+
msgid "Instagram Client ID"
|
589 |
+
msgstr "ID Cliente Instagram"
|
590 |
+
|
591 |
+
#: ../admin/social_login.php:201
|
592 |
+
#, php-format
|
593 |
+
msgid ""
|
594 |
+
"Required for Instagram Social Login to work. Please follow the documentation "
|
595 |
+
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Instagram Client ID"
|
596 |
+
msgstr ""
|
597 |
+
"Requerida para que funcione Instagram Social Login. Por favor, siga la "
|
598 |
+
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
599 |
+
"obtener ID Cliente Instagram"
|
600 |
+
|
601 |
+
#: ../admin/social_login.php:209
|
602 |
+
msgid "Include Javascript in website footer"
|
603 |
+
msgstr "Incluir Javascript en el pie de página del sitio web"
|
604 |
+
|
605 |
+
#: ../admin/social_login.php:219
|
606 |
+
msgid ""
|
607 |
+
"If enabled (recommended), all the Javascript code will be included in the "
|
608 |
+
"footer of your website.<br/><strong>\"wp_footer\" and \"login_footer\" hooks "
|
609 |
+
"should be there in your Wordpress theme for this to work, if you are not "
|
610 |
+
"sure about this, keep this option unchecked.</strong>"
|
611 |
+
msgstr ""
|
612 |
+
"Si está activada (recomendado), se incluirá todo el código Javascript en el "
|
613 |
+
"pie de página de su sitio web. Nota: es posible que anule la funcionalidad "
|
614 |
+
"del plugin si los ganchos \"\"wp_footer\"\" y \"\"login_footer\"\" no "
|
615 |
+
"existen en su tema de Wordpress. En este caso, mantener esta opción "
|
616 |
+
"desactivada."
|
617 |
+
|
618 |
+
#: ../admin/social_login.php:233
|
619 |
+
msgid "Login options"
|
620 |
+
msgstr "Opciones Inicio de Sesión"
|
621 |
+
|
622 |
+
#: ../admin/social_login.php:249
|
623 |
+
msgid "Text to display above the Social Login interface"
|
624 |
+
msgstr "Texto para mostrar por encima de la interfaz Social Login"
|
625 |
+
|
626 |
+
#: ../admin/social_login.php:258
|
627 |
+
msgid "Enable at login page"
|
628 |
+
msgstr "Activar en la página de inicio de sesión"
|
629 |
+
|
630 |
+
#: ../admin/social_login.php:268
|
631 |
+
msgid "Social Login interface will get enabled at your Wordpress login page"
|
632 |
+
msgstr ""
|
633 |
+
"La interfaz Social Login se activará en su página de inicio de sesión "
|
634 |
+
"Wordpress"
|
635 |
+
|
636 |
+
#: ../admin/social_login.php:277
|
637 |
+
msgid "Enable at register page"
|
638 |
+
msgstr "Habilitar en página de registro"
|
639 |
+
|
640 |
+
#: ../admin/social_login.php:287
|
641 |
+
msgid ""
|
642 |
+
"Social Login interface will get enabled at your Wordpress registration page"
|
643 |
+
msgstr ""
|
644 |
+
"La interfaz Social Login se habilitará en su página de registro Wordpress"
|
645 |
+
|
646 |
+
#: ../admin/social_login.php:296
|
647 |
+
msgid "Enable at comment form"
|
648 |
+
msgstr "Habilitar en formulario de Comentario"
|
649 |
+
|
650 |
+
#: ../admin/social_login.php:306
|
651 |
+
#, fuzzy
|
652 |
+
msgid "Social Login interface will get enabled at your Wordpress Comment form"
|
653 |
+
msgstr ""
|
654 |
+
"La interfaz Social Login se activará en su página de inicio de sesión "
|
655 |
+
"Wordpress"
|
656 |
+
|
657 |
+
#: ../admin/social_login.php:317
|
658 |
+
msgid "Auto-approve comments made by Social Login users"
|
659 |
+
msgstr ""
|
660 |
+
"Auto-aprobar los comentarios realizados por los usuarios Social Iniciar "
|
661 |
+
"sesión"
|
662 |
+
|
663 |
+
#: ../admin/social_login.php:327
|
664 |
+
msgid ""
|
665 |
+
"If this option is enabled, and WordPress comment is made by Social Login "
|
666 |
+
"user, comment will get approved immediately without keeping in moderation."
|
667 |
+
msgstr ""
|
668 |
+
"Si esta opción está activada, y WordPress comentario es hecho por Social "
|
669 |
+
"Login usuario, comentario será aprobado inmediatamente sin tener en "
|
670 |
+
"moderación."
|
671 |
+
|
672 |
+
#: ../admin/social_login.php:328
|
673 |
+
msgid "Note: This is not related to Facebook comments"
|
674 |
+
msgstr "Nota: Esto no está relacionado con los comentarios de Facebook"
|
675 |
+
|
676 |
+
#: ../admin/social_login.php:338
|
677 |
+
msgid "Enable social avatar"
|
678 |
+
msgstr "Habilitar avatar Social"
|
679 |
+
|
680 |
+
#: ../admin/social_login.php:348
|
681 |
+
msgid ""
|
682 |
+
"Social profile pictures of the logged in user will be displayed as profile "
|
683 |
+
"avatar"
|
684 |
+
msgstr ""
|
685 |
+
"Imágenes de Perfil Social del usuario registrado aparecerán como avatar del "
|
686 |
+
"perfil"
|
687 |
+
|
688 |
+
#: ../admin/social_login.php:358 ../super_socializer.php:273
|
689 |
+
msgid "Email required"
|
690 |
+
msgstr "Requiere E-mail"
|
691 |
+
|
692 |
+
#: ../admin/social_login.php:368
|
693 |
+
msgid ""
|
694 |
+
"If enabled and Social ID provider does not provide user's email address on "
|
695 |
+
"login, user will be asked to provide his/her email address. Otherwise, a "
|
696 |
+
"dummy email will be generated"
|
697 |
+
msgstr ""
|
698 |
+
"Si lo habilita y el proveedor de Identificación Social no proporciona "
|
699 |
+
"dirección de correo electrónico del usuario al iniciar sesión, se le pedirá "
|
700 |
+
"al usuario proporcionar su dirección de correo electrónico De lo contrario, "
|
701 |
+
"un correo electrónico ficticio, se generará"
|
702 |
+
|
703 |
+
#: ../admin/social_login.php:377
|
704 |
+
msgid "Send username-password after user registration"
|
705 |
+
msgstr "Enviar nombre de usuario/contraseña tras el registro del usuario"
|
706 |
+
|
707 |
+
#: ../admin/social_login.php:387
|
708 |
+
msgid ""
|
709 |
+
"If enabled, an email will be sent to user after registration through Social "
|
710 |
+
"Login, regarding his/her login credentials (username-password to be able to "
|
711 |
+
"login via traditional login form)"
|
712 |
+
msgstr ""
|
713 |
+
"Si está habilitada, un correo electrónico será enviado al usuario después "
|
714 |
+
"del registro a través de Social Login, con respecto a su / sus credenciales "
|
715 |
+
"de inicio de sesión (nombre de usuario-contraseña para poder ingresar a "
|
716 |
+
"través del formulario de inicio de sesión tradicional)"
|
717 |
+
|
718 |
+
#: ../admin/social_login.php:395
|
719 |
+
msgid "Login redirection"
|
720 |
+
msgstr "Redireccionamiento de inicio de sesión"
|
721 |
+
|
722 |
+
#: ../admin/social_login.php:399 ../admin/social_login.php:425
|
723 |
+
msgid "Same page where user logged in"
|
724 |
+
msgstr "La misma página donde el usuario ha iniciado sesión"
|
725 |
+
|
726 |
+
#: ../admin/social_login.php:401 ../admin/social_login.php:427
|
727 |
+
#: ../admin/social_sharing.php:279 ../admin/social_sharing.php:512
|
728 |
+
msgid "Homepage"
|
729 |
+
msgstr "Página de inicio"
|
730 |
+
|
731 |
+
#: ../admin/social_login.php:403 ../admin/social_login.php:429
|
732 |
+
msgid "Account dashboard"
|
733 |
+
msgstr "Panel de cuenta"
|
734 |
+
|
735 |
+
#: ../admin/social_login.php:405 ../admin/social_login.php:431
|
736 |
+
msgid "Custom Url"
|
737 |
+
msgstr "Url personalizada"
|
738 |
+
|
739 |
+
#: ../admin/social_login.php:413
|
740 |
+
msgid "User will be redirected to the selected page after Social Login"
|
741 |
+
msgstr ""
|
742 |
+
"El usuario será redirigido a la página seleccionada después de Social Login"
|
743 |
+
|
744 |
+
#: ../admin/social_login.php:421
|
745 |
+
msgid "Registration redirection"
|
746 |
+
msgstr "redirección de registro"
|
747 |
+
|
748 |
+
#: ../admin/social_login.php:439
|
749 |
+
msgid ""
|
750 |
+
"User will be redirected to the selected page after registration (first "
|
751 |
+
"Social Login) through Social Login"
|
752 |
+
msgstr ""
|
753 |
+
"Usuario será redirigido a la página seleccionada después de Registrarse "
|
754 |
+
"(primero Ingresa Social) a través de Social Login"
|
755 |
+
|
756 |
+
#: ../admin/social_login.php:447
|
757 |
+
msgid "Email popup options"
|
758 |
+
msgstr "opciones emergentes de correo electrónico"
|
759 |
+
|
760 |
+
#: ../admin/social_login.php:453
|
761 |
+
msgid "Text on 'Email required' popup"
|
762 |
+
msgstr "Texto en 'Email required' popup"
|
763 |
+
|
764 |
+
#: ../admin/social_login.php:463
|
765 |
+
msgid ""
|
766 |
+
"This text will be displayed on email required popup. Leave empty if not "
|
767 |
+
"required."
|
768 |
+
msgstr ""
|
769 |
+
"Este texto se mostrará en el correo electrónico popup necesario. Dejar en "
|
770 |
+
"blanco si no es necesario."
|
771 |
+
|
772 |
+
#: ../admin/social_login.php:472
|
773 |
+
msgid "Error message for 'Email required' popup"
|
774 |
+
msgstr ""
|
775 |
+
"Mensaje de error para ventana emergente de \"\"Correo electrónico requerido'"
|
776 |
+
|
777 |
+
#: ../admin/social_login.php:482
|
778 |
+
msgid ""
|
779 |
+
"This message will be displayed to user if it provides invalid or already "
|
780 |
+
"registered email"
|
781 |
+
msgstr ""
|
782 |
+
"Este mensaje se mostrará al usuario si proporciona correo electrónico no "
|
783 |
+
"válido o ya registrado"
|
784 |
+
|
785 |
+
#: ../admin/social_login.php:491
|
786 |
+
msgid "Email popup height"
|
787 |
+
msgstr "email altura popup"
|
788 |
+
|
789 |
+
#: ../admin/social_login.php:501
|
790 |
+
msgid ""
|
791 |
+
"If you are seeing vertical scrollbar in the \"Email required\" popup, you "
|
792 |
+
"can increase the height of popup by specifying in this option. Leave empty "
|
793 |
+
"for default."
|
794 |
+
msgstr ""
|
795 |
+
"Si usted está viendo la barra de desplazamiento vertical en el \"Correo "
|
796 |
+
"electrónico requerido\" emergente, puede aumentar la altura del elemento "
|
797 |
+
"emergente mediante la especificación de esta opción. Dejar en blanco para el "
|
798 |
+
"defecto."
|
799 |
+
|
800 |
+
#: ../admin/social_login.php:509
|
801 |
+
msgid "Enable email verification"
|
802 |
+
msgstr "Habilitar verificación de correo electrónico"
|
803 |
+
|
804 |
+
#: ../admin/social_login.php:519
|
805 |
+
msgid ""
|
806 |
+
"If enabled, email provided by the user will be verified by sending a "
|
807 |
+
"confirmation link to that email. User would not be able to login without "
|
808 |
+
"verifying his/her email"
|
809 |
+
msgstr ""
|
810 |
+
"Si está activado, el correo electrónico proporcionado por el usuario se "
|
811 |
+
"verificará mediante el envío de un enlace de confirmación a ese correo "
|
812 |
+
"electrónico. El usuario no podrá iniciar sesión sin verificar su email"
|
813 |
+
|
814 |
+
#: ../admin/social_login.php:533 ../admin/social_sharing.php:562
|
815 |
+
msgid "Shortcode"
|
816 |
+
msgstr "Shortcodes"
|
817 |
+
|
818 |
+
#: ../admin/social_login.php:535
|
819 |
+
msgid ""
|
820 |
+
"Use <strong>[TheChamp-Login]</strong> Shortcode in the content of required "
|
821 |
+
"page/post where you want to display Social Login interface."
|
822 |
+
msgstr ""
|
823 |
+
"Utilice <strong> [TheChamp-Login] </ strong> Código corto en el contenido de "
|
824 |
+
"la página requerida / post en la que desea mostrar la interfaz Login Social."
|
825 |
+
|
826 |
+
#: ../admin/social_login.php:536 ../admin/social_login.php:539
|
827 |
+
#: ../admin/social_sharing.php:565 ../admin/social_sharing.php:570
|
828 |
+
#: ../admin/social_sharing.php:575 ../admin/social_sharing.php:580
|
829 |
+
#: ../admin/social_sharing.php:585
|
830 |
+
msgid "Example"
|
831 |
+
msgstr "ejemplo"
|
832 |
+
|
833 |
+
#: ../admin/social_login.php:538
|
834 |
+
#, fuzzy
|
835 |
+
msgid ""
|
836 |
+
"You can use \"style\" attribute in the Shortcode to style the rendered "
|
837 |
+
"Social Login interface."
|
838 |
+
msgstr ""
|
839 |
+
"Usted puede utilizar el atributo \"style\" en el Código corto al estilo de "
|
840 |
+
"la interfaz Uso compartido sociales prestados."
|
841 |
+
|
842 |
+
#: ../admin/social_login.php:545 ../admin/social_sharing.php:591
|
843 |
+
msgid "Widget"
|
844 |
+
msgstr ""
|
845 |
+
|
846 |
+
#: ../admin/social_login.php:547
|
847 |
+
msgid ""
|
848 |
+
"You can navigate to the <strong>Appearance</strong> > <strong>Widgets</"
|
849 |
+
"strong> section in the left pan and drag <strong>Super Socializer - Login</"
|
850 |
+
"strong> widget in the required area."
|
851 |
+
msgstr ""
|
852 |
+
"Usted puede navegar a la Apariencia <strong> </ strong >> <strong> "
|
853 |
+
"Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper "
|
854 |
+
"Socializer - Login </ strong> de widget en el área requerida."
|
855 |
+
|
856 |
+
#: ../admin/social_sharing.php:16
|
857 |
+
msgid "Social Sharing"
|
858 |
+
msgstr "Social Sharing"
|
859 |
+
|
860 |
+
#: ../admin/social_sharing.php:18
|
861 |
+
msgid "Troubleshooter"
|
862 |
+
msgstr "Solucionador de problemas"
|
863 |
+
|
864 |
+
#: ../admin/social_sharing.php:30
|
865 |
+
msgid "Enable Social Sharing"
|
866 |
+
msgstr "Habilitar Social Sharing"
|
867 |
+
|
868 |
+
#: ../admin/social_sharing.php:40
|
869 |
+
msgid ""
|
870 |
+
"Master control for Social Sharing. It must be checked to enable Social "
|
871 |
+
"Sharing functionality"
|
872 |
+
msgstr ""
|
873 |
+
"Control maestro para compartir en redes sociales. Esto debe estar marcado "
|
874 |
+
"para habilitar la funcionalidad de Social Sharing "
|
875 |
+
|
876 |
+
#: ../admin/social_sharing.php:48
|
877 |
+
msgid "Delete all the options on plugin deletion"
|
878 |
+
msgstr "Eliminar todas las opciones de plugin de eliminación"
|
879 |
+
|
880 |
+
#: ../admin/social_sharing.php:58
|
881 |
+
msgid ""
|
882 |
+
"If enabled, plugin options will get deleted when plugin is deleted/"
|
883 |
+
"uninstalled and you will need to reconfigure the options when you install "
|
884 |
+
"the plugin next time."
|
885 |
+
msgstr ""
|
886 |
+
"Si se activa, las opciones del plugin será borrado cuando se elimina el "
|
887 |
+
"plugin / desinstalado y tendrá que volver a configurar las opciones al "
|
888 |
+
"instalar el plugin próxima vez."
|
889 |
+
|
890 |
+
#: ../admin/social_sharing.php:72
|
891 |
+
msgid ""
|
892 |
+
"<strong>Note:</strong> To disable sharing on particular page/post, edit that "
|
893 |
+
"page/post and check the <strong>\"Disable Social Sharing on this page\"</"
|
894 |
+
"strong> option at the bottom in <strong>\"Super Socializer\"</strong> section"
|
895 |
+
msgstr ""
|
896 |
+
"<strong> Nota: </ strong> Para deshabilitar el uso compartido en concreto la "
|
897 |
+
"página / post, edite la página / post y comprobar el <strong> \"Desactivar "
|
898 |
+
"Intercambio Social en esta página \" </ strong> la opción en la parte "
|
899 |
+
"inferior de <strong > \"Super Socializer \" </ strong>"
|
900 |
+
|
901 |
+
#: ../admin/social_sharing.php:88
|
902 |
+
msgid "Horizontal Sharing Interface Options"
|
903 |
+
msgstr "Horizontales Opciones para compartir la interfaz de"
|
904 |
+
|
905 |
+
#: ../admin/social_sharing.php:94
|
906 |
+
msgid "Enable horizontal sharing interface"
|
907 |
+
msgstr "Habilitar interfaz de intercambio horizontal"
|
908 |
+
|
909 |
+
#: ../admin/social_sharing.php:104
|
910 |
+
msgid "Master control to enable horizontal sharing"
|
911 |
+
msgstr "Control maestro para permitir el intercambio horizontal"
|
912 |
+
|
913 |
+
#: ../admin/social_sharing.php:124
|
914 |
+
msgid "The text to display above the sharing interface"
|
915 |
+
msgstr "El texto que se muestra por encima de la interfaz compartida "
|
916 |
+
|
917 |
+
#: ../admin/social_sharing.php:157 ../admin/social_sharing.php:375
|
918 |
+
msgid "Print"
|
919 |
+
msgstr ""
|
920 |
+
|
921 |
+
#: ../admin/social_sharing.php:162 ../admin/social_sharing.php:380
|
922 |
+
msgid "Email"
|
923 |
+
msgstr ""
|
924 |
+
|
925 |
+
#: ../admin/social_sharing.php:167 ../admin/social_sharing.php:385
|
926 |
+
msgid "Yahoo"
|
927 |
+
msgstr ""
|
928 |
+
|
929 |
+
#: ../admin/social_sharing.php:172 ../admin/social_sharing.php:390
|
930 |
+
msgid "Reddit"
|
931 |
+
msgstr ""
|
932 |
+
|
933 |
+
#: ../admin/social_sharing.php:177 ../admin/social_sharing.php:395
|
934 |
+
msgid "Digg"
|
935 |
+
msgstr ""
|
936 |
+
|
937 |
+
#: ../admin/social_sharing.php:182 ../admin/social_sharing.php:400
|
938 |
+
msgid "Delicious"
|
939 |
+
msgstr ""
|
940 |
+
|
941 |
+
#: ../admin/social_sharing.php:187 ../admin/social_sharing.php:405
|
942 |
+
msgid "StumbleUpon"
|
943 |
+
msgstr ""
|
944 |
+
|
945 |
+
#: ../admin/social_sharing.php:192 ../admin/social_sharing.php:410
|
946 |
+
msgid "Float it"
|
947 |
+
msgstr ""
|
948 |
+
|
949 |
+
#: ../admin/social_sharing.php:197 ../admin/social_sharing.php:415
|
950 |
+
msgid "Tumblr"
|
951 |
+
msgstr ""
|
952 |
+
|
953 |
+
#: ../admin/social_sharing.php:207 ../admin/social_sharing.php:425
|
954 |
+
msgid "Pinterest"
|
955 |
+
msgstr ""
|
956 |
+
|
957 |
+
#: ../admin/social_sharing.php:215 ../admin/social_sharing.php:433
|
958 |
+
msgid "Select the providers for sharing interface"
|
959 |
+
msgstr "Seleccione los proveedores para compartir la interfaz"
|
960 |
+
|
961 |
+
#: ../admin/social_sharing.php:223 ../admin/social_sharing.php:441
|
962 |
+
msgid "Rearrange icons"
|
963 |
+
msgstr "Reorganizar iconos"
|
964 |
+
|
965 |
+
#: ../admin/social_sharing.php:246 ../admin/social_sharing.php:464
|
966 |
+
msgid "Drag the icons to rearrange in desired order"
|
967 |
+
msgstr "Arrastre los iconos para reorganizar estos con el fin deseado "
|
968 |
+
|
969 |
+
#: ../admin/social_sharing.php:254
|
970 |
+
msgid "Position with respect to content"
|
971 |
+
msgstr "Posición con respecto al contenido"
|
972 |
+
|
973 |
+
#: ../admin/social_sharing.php:258
|
974 |
+
msgid "Top of the content"
|
975 |
+
msgstr "Parte superior del contenido"
|
976 |
+
|
977 |
+
#: ../admin/social_sharing.php:260
|
978 |
+
msgid "Bottom of the content"
|
979 |
+
msgstr "Parte inferior del contenido"
|
980 |
+
|
981 |
+
#: ../admin/social_sharing.php:267
|
982 |
+
msgid "Specify position of the sharing interface with respect to the content"
|
983 |
+
msgstr ""
|
984 |
+
"Especificar la posición de la interfaz compartir con respecto al contenido"
|
985 |
+
|
986 |
+
#: ../admin/social_sharing.php:275 ../admin/social_sharing.php:508
|
987 |
+
msgid "Sharing location"
|
988 |
+
msgstr "Ubicación de uso compartido"
|
989 |
+
|
990 |
+
#: ../admin/social_sharing.php:281 ../admin/social_sharing.php:514
|
991 |
+
msgid "Posts"
|
992 |
+
msgstr "Publicaciones"
|
993 |
+
|
994 |
+
#: ../admin/social_sharing.php:283 ../admin/social_sharing.php:516
|
995 |
+
msgid "Pages"
|
996 |
+
msgstr "Páginas"
|
997 |
+
|
998 |
+
#: ../admin/social_sharing.php:285 ../admin/social_sharing.php:518
|
999 |
+
msgid "Excerpts"
|
1000 |
+
msgstr "Extractos"
|
1001 |
+
|
1002 |
+
#: ../admin/social_sharing.php:287 ../admin/social_sharing.php:520
|
1003 |
+
msgid "Category Archives"
|
1004 |
+
msgstr "Archivos de la categoría"
|
1005 |
+
|
1006 |
+
#: ../admin/social_sharing.php:294
|
1007 |
+
msgid "Specify the pages where you want to enable Sharing interface"
|
1008 |
+
msgstr ""
|
1009 |
+
"Especifique las páginas en las que desee habilitar la interfaz Uso compartido"
|
1010 |
+
|
1011 |
+
#: ../admin/social_sharing.php:302 ../admin/social_sharing.php:535
|
1012 |
+
msgid "Show share counts"
|
1013 |
+
msgstr "conteos muestran acciones"
|
1014 |
+
|
1015 |
+
#: ../admin/social_sharing.php:312 ../admin/social_sharing.php:545
|
1016 |
+
msgid "If enabled, share counts are displayed above sharing icons."
|
1017 |
+
msgstr ""
|
1018 |
+
"Si está habilitado, el recuento de acciones se muestran por encima de los "
|
1019 |
+
"iconos para compartir."
|
1020 |
+
|
1021 |
+
#: ../admin/social_sharing.php:323
|
1022 |
+
msgid "Vertical (Floating) Sharing Interface Options"
|
1023 |
+
msgstr "Vertical (flotante) Opciones de interfaz compartir"
|
1024 |
+
|
1025 |
+
#: ../admin/social_sharing.php:329
|
1026 |
+
msgid "Enable vertical (floating) sharing interface"
|
1027 |
+
msgstr "Habilitar vertical (flotante) interfaz compartida"
|
1028 |
+
|
1029 |
+
#: ../admin/social_sharing.php:339
|
1030 |
+
msgid "Master control to enable vertical (floating) sharing widget"
|
1031 |
+
msgstr ""
|
1032 |
+
"Control maestro para permitir vertical (flotante) widget de intercambio"
|
1033 |
+
|
1034 |
+
#: ../admin/social_sharing.php:472
|
1035 |
+
msgid "Left offset"
|
1036 |
+
msgstr "desplazamiento izquierda"
|
1037 |
+
|
1038 |
+
#: ../admin/social_sharing.php:482
|
1039 |
+
msgid ""
|
1040 |
+
"Specify a number. Increase in number will shift sharing interface towards "
|
1041 |
+
"right and decrease will shift it towards left."
|
1042 |
+
msgstr ""
|
1043 |
+
"Especifique un número. Aumento del número cambiará interfaz compartida hacia "
|
1044 |
+
"la derecha y la disminución se desplazará hacia la izquierda."
|
1045 |
+
|
1046 |
+
#: ../admin/social_sharing.php:490
|
1047 |
+
msgid "Top offset"
|
1048 |
+
msgstr "superior compensar"
|
1049 |
+
|
1050 |
+
#: ../admin/social_sharing.php:500
|
1051 |
+
msgid ""
|
1052 |
+
"Specify a number. Increase in number will shift sharing interface towards "
|
1053 |
+
"bottom and decrease will shift it towards top."
|
1054 |
+
msgstr ""
|
1055 |
+
"Especifique un número. Aumento del número cambiará compartir la interfaz "
|
1056 |
+
"hacia la parte inferior y el descenso se desplazará hacia la parte superior."
|
1057 |
+
|
1058 |
+
#: ../admin/social_sharing.php:527
|
1059 |
+
msgid "Specify the pages where you want to enable vertical Sharing interface"
|
1060 |
+
msgstr ""
|
1061 |
+
"Especifique las páginas en las que desee habilitar la interfaz Uso "
|
1062 |
+
"compartido verticales"
|
1063 |
+
|
1064 |
+
#: ../admin/social_sharing.php:564
|
1065 |
+
msgid ""
|
1066 |
+
"You can use <strong>[TheChamp-Sharing]</strong> Shortcode in the content of "
|
1067 |
+
"required page/post where you want to display Social Sharing interface."
|
1068 |
+
msgstr ""
|
1069 |
+
"Usted puede utilizar <strong> [TheChamp-Sharing] </ strong> Código corto en "
|
1070 |
+
"el contenido de la página requerida / post en el que desea mostrar la "
|
1071 |
+
"interfaz Uso compartido Social."
|
1072 |
+
|
1073 |
+
#: ../admin/social_sharing.php:567
|
1074 |
+
msgid "You can use following attributes in the Shortcode"
|
1075 |
+
msgstr "Puede utilizar los atributos siguientes en el Código corto"
|
1076 |
+
|
1077 |
+
#: ../admin/social_sharing.php:569
|
1078 |
+
msgid ""
|
1079 |
+
"Use <strong>style</strong> attribute to style the rendered Social Sharing "
|
1080 |
+
"interface"
|
1081 |
+
msgstr ""
|
1082 |
+
"Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso "
|
1083 |
+
"compartido sociales prestados"
|
1084 |
+
|
1085 |
+
#: ../admin/social_sharing.php:574
|
1086 |
+
msgid ""
|
1087 |
+
"Use <strong>type</strong> attribute to specify the type (\"Horizontal\" or "
|
1088 |
+
"\"Vertical\") of Social Sharing interface. Default type is \"Horizontal\"."
|
1089 |
+
msgstr ""
|
1090 |
+
"Utilice <strong>type</ strong> atributo para especificar el tipo "
|
1091 |
+
"(\"horizontal \" o \"vertical \") de la interfaz Uso compartido Social. Tipo "
|
1092 |
+
"por defecto es \"horizontal \"."
|
1093 |
+
|
1094 |
+
#: ../admin/social_sharing.php:578
|
1095 |
+
msgid "Left (Works with \"Vertical\" type interface only)"
|
1096 |
+
msgstr "Izquierda (Trabaja con interfaz tipo \"vertical \" solamente)"
|
1097 |
+
|
1098 |
+
#: ../admin/social_sharing.php:579
|
1099 |
+
msgid ""
|
1100 |
+
"Use <strong>left</strong> attribute to specify the left offset (distance "
|
1101 |
+
"form the left side of the screen) of Social Sharing interface."
|
1102 |
+
msgstr ""
|
1103 |
+
"Uso <strong> left</strong> atributo para especificar el desplazamiento "
|
1104 |
+
"izquierda (distancia formar el lado izquierdo de la pantalla) de interfaz de "
|
1105 |
+
"uso compartido Social."
|
1106 |
+
|
1107 |
+
#: ../admin/social_sharing.php:583
|
1108 |
+
msgid "Top (Works with \"Vertical\" type interface only)"
|
1109 |
+
msgstr "Top (Trabaja con \"vertical \" tipo de interfaz única)"
|
1110 |
+
|
1111 |
+
#: ../admin/social_sharing.php:584
|
1112 |
+
msgid ""
|
1113 |
+
"Use <strong>top</strong> attribute to specify the top offset (distance form "
|
1114 |
+
"the top of the screen) of Social Sharing interface."
|
1115 |
+
msgstr ""
|
1116 |
+
"Utilice <strong>top</strong> atributo para especificar el desplazamiento "
|
1117 |
+
"superior (distancia forman la parte superior de la pantalla) de la interfaz "
|
1118 |
+
"Uso compartido Social."
|
1119 |
+
|
1120 |
+
#: ../admin/social_sharing.php:593
|
1121 |
+
msgid ""
|
1122 |
+
"You can navigate to the <strong>Appearance</strong> > <strong>Widgets</"
|
1123 |
+
"strong> section in the left pan and drag <strong>Super Socializer - Sharing "
|
1124 |
+
"(Horizontal Widget)</strong> and <strong>Super Socializer - Sharing "
|
1125 |
+
"(Vertical Floating Widget)</strong> widgets in the required area."
|
1126 |
+
msgstr ""
|
1127 |
+
"Usted puede navegar a la <strong>Apariencia</ strong >> <strong> "
|
1128 |
+
"Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper "
|
1129 |
+
"Socializer - Sharing (Horizontal Widget) </ strong> y <strong> Súper "
|
1130 |
+
"Socializer - Sharing (Vertical Floating Widget) </ strong> widgets en el "
|
1131 |
+
"área requerida."
|
1132 |
+
|
1133 |
+
#: ../admin/social_sharing.php:603
|
1134 |
+
msgid "Facebook Sharing Troubleshooter"
|
1135 |
+
msgstr "Facebook Sharing Solucionador de problemas"
|
1136 |
+
|
1137 |
+
#: ../admin/social_sharing.php:608
|
1138 |
+
msgid ""
|
1139 |
+
"If Facebook sharing is not working fine, click at the following link and "
|
1140 |
+
"enter the problematic url (where Facebook sharing is not working properly) "
|
1141 |
+
"of your website in the text field:"
|
1142 |
+
msgstr ""
|
1143 |
+
"Si Facebook compartir no está funcionando bien, haga clic en el siguiente "
|
1144 |
+
"enlace e introduzca la url problemático (donde compartir en Facebook no "
|
1145 |
+
"funciona correctamente) de su sitio web en el campo de texto:"
|
1146 |
+
|
1147 |
+
#: ../helper.php:7
|
1148 |
+
msgid "Options saved successfully"
|
1149 |
+
msgstr "Opciones guardadas correctamente"
|
1150 |
+
|
1151 |
+
#: ../helper.php:167
|
1152 |
+
msgid "Settings"
|
1153 |
+
msgstr "Configuración"
|
1154 |
+
|
1155 |
+
#: ../inc/social_sharing.php:129
|
1156 |
+
msgid "Invalid request"
|
1157 |
+
msgstr "petición no válida"
|
1158 |
+
|
1159 |
+
#: ../inc/social_sharing.php:134
|
1160 |
+
msgid "Providers not selected"
|
1161 |
+
msgstr "Los proveedores no seleccionados"
|
1162 |
+
|
1163 |
+
#: ../inc/social_sharing.php:242
|
1164 |
+
msgid "Disable Horizontal Social Sharing on this "
|
1165 |
+
msgstr "Desactivar Horizontal Intercambio Social en esta"
|
1166 |
+
|
1167 |
+
#: ../inc/social_sharing.php:247
|
1168 |
+
msgid "Disable Vertical Social Sharing on this "
|
1169 |
+
msgstr "Desactivar Vertical Intercambio Social en esta"
|
1170 |
+
|
1171 |
+
#: ../inc/widget.php:11
|
1172 |
+
msgid "Super Socializer - Login"
|
1173 |
+
msgstr "Super Socializer - Login"
|
1174 |
+
|
1175 |
+
#: ../inc/widget.php:13
|
1176 |
+
msgid ""
|
1177 |
+
"Let your website users login/register using their favorite Social ID "
|
1178 |
+
"Provider, such as Facebook, Twitter, Google+, LinkedIn"
|
1179 |
+
msgstr ""
|
1180 |
+
"Permita que sus usuarios del website se conecten/registren usando su "
|
1181 |
+
"proveedor de ID Social favorito, tales como Facebook, Twitter, Google+, "
|
1182 |
+
"LinkedIn"
|
1183 |
+
|
1184 |
+
#: ../inc/widget.php:46
|
1185 |
+
msgid "Log Out"
|
1186 |
+
msgstr "Cerrar sesión"
|
1187 |
+
|
1188 |
+
#: ../inc/widget.php:77 ../inc/widget.php:161
|
1189 |
+
msgid "Title:"
|
1190 |
+
msgstr "Titulo:"
|
1191 |
+
|
1192 |
+
#: ../inc/widget.php:79 ../inc/widget.php:163
|
1193 |
+
msgid "Before widget content:"
|
1194 |
+
msgstr " Antes del contenido del widget:"
|
1195 |
+
|
1196 |
+
#: ../inc/widget.php:81 ../inc/widget.php:165
|
1197 |
+
msgid "After widget content:"
|
1198 |
+
msgstr "Después del contenido del widget:"
|
1199 |
+
|
1200 |
+
#: ../inc/widget.php:84 ../inc/widget.php:167 ../inc/widget.php:234
|
1201 |
+
msgid "Hide for logged in users:"
|
1202 |
+
msgstr "Ocultar para los usuarios registrados:"
|
1203 |
+
|
1204 |
+
#: ../inc/widget.php:103
|
1205 |
+
msgid ""
|
1206 |
+
"Horizontal widget. Let your website users share content on popular Social "
|
1207 |
+
"networks like Facebook, Twitter, Tumblr, Google+ and many more"
|
1208 |
+
msgstr ""
|
1209 |
+
"Widget Horizontal. Deje que sus usuarios del website compartan contenidos en "
|
1210 |
+
"las redes sociales populares como Facebook, Twitter, Tumblr, Google+ y "
|
1211 |
+
"muchos más "
|
1212 |
+
|
1213 |
+
#: ../inc/widget.php:186
|
1214 |
+
msgid ""
|
1215 |
+
"Vertical floating widget. Let your website users share content on popular "
|
1216 |
+
"Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
|
1217 |
+
msgstr ""
|
1218 |
+
"Widget de flotación vertical. Deje que sus usuarios del website compartan "
|
1219 |
+
"contenidos en las redes sociales populares como Facebook, Twitter, Tumblr, "
|
1220 |
+
"Google+ y muchos más "
|
1221 |
+
|
1222 |
+
#: ../inc/widget.php:229
|
1223 |
+
msgid "Left Offset:"
|
1224 |
+
msgstr "Desplazamiento hacia la izquierda:"
|
1225 |
+
|
1226 |
+
#: ../inc/widget.php:231
|
1227 |
+
msgid "Top Offset:"
|
1228 |
+
msgstr "Margen superior:"
|
1229 |
+
|
1230 |
+
#: ../super_socializer.php:250
|
1231 |
+
msgid "Please verify your email address to login."
|
1232 |
+
msgstr ""
|
1233 |
+
"Verifique por favor su dirección de correo electrónico para iniciar sesión"
|
1234 |
+
|
1235 |
+
#: ../super_socializer.php:250
|
1236 |
+
msgid "Your email has been verified. Now you can login to your account"
|
1237 |
+
msgstr "Su email ha sido verificado. Ahora puede acceder a su cuenta"
|
1238 |
+
|
1239 |
+
#: ../super_socializer.php:254
|
1240 |
+
msgid "Notification"
|
1241 |
+
msgstr "Notificación"
|
1242 |
+
|
1243 |
+
#: ../super_socializer.php:276
|
1244 |
+
msgid "Please check your email inbox to complete the registration."
|
1245 |
+
msgstr ""
|
1246 |
+
"Por favor revise su bandeja de entrada de correo electrónico para completar "
|
1247 |
+
"el registro"
|
1248 |
+
|
1249 |
+
#~ msgid ""
|
1250 |
+
#~ "Social Login interface will get enabled at your Wordpress Comment form<br/"
|
1251 |
+
#~ "><strong>Note: Social Login at comment form of your website will not get "
|
1252 |
+
#~ "enabled if Facebook commenting is enabled.</strong>"
|
1253 |
+
#~ msgstr ""
|
1254 |
+
#~ "La interfaz Social Login se activará en tu formulario de Comentario "
|
1255 |
+
#~ "Wordpress Nota: Social Login en el formulario de comentarios de su sitio "
|
1256 |
+
#~ "web no se habilitará si Comentario Facebook está habilitado"
|
library/index.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php die("
|
1 |
+
<?php die("God bless you"); ?>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Super Socializer ===
|
2 |
-
Contributors: the_champ
|
3 |
Donate link: http://thechamplord.wordpress.com/
|
4 |
Tags: super socializer, thechamp, champ, social login, social sharing, social commenting, wordpress plugin, buddypress, bbpress, social share, feed, multisite, comments, share post, openid integration, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, plug-in, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, wordpress, social sign-in, signin, sign up, signup, social plugins, social connect, facebook, twitter, google, google+, googleplus, google plus, linkedin, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, widget, social network
|
5 |
Requires at least: 2.5.0
|
6 |
-
Tested up to: 3.9
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing, Social Feed and more
|
@@ -77,6 +77,7 @@ Below is more detail about the features:
|
|
77 |
5. **Optimal Loading time**: Loading time of Social Login and Sharing icons is optimal and if you compare with other plugins, you will find it less than that of all those plugins.
|
78 |
|
79 |
= Important links =
|
|
|
80 |
* Plugin Facebook fan page: https://www.facebook.com/SocializerChamp
|
81 |
* Blog: http://thechamplord.wordpress.com
|
82 |
* My Facebook profile: https://www.facebook.com/thechamp.lord
|
@@ -164,6 +165,17 @@ Yes, I can help you with it. Just drop me an email at lordofthechamps@gmail.com
|
|
164 |
3. **Facebook Commenting**: Facebook commenting replaces the traditional comment form
|
165 |
|
166 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
= 2.5.2 =
|
168 |
* Bug fix: Continuous loading icon after Social Login
|
169 |
|
@@ -230,4 +242,15 @@ Yes, I can help you with it. Just drop me an email at lordofthechamps@gmail.com
|
|
230 |
* Bug fix: Google Social Login icon was not responding
|
231 |
|
232 |
= 2.5.2 =
|
233 |
-
* Bug fix: Continuous loading icon after Social Login
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
=== Super Socializer ===
|
2 |
+
Contributors: the_champ, Spanish translator: Andrew Kurtis webhostinghub.com
|
3 |
Donate link: http://thechamplord.wordpress.com/
|
4 |
Tags: super socializer, thechamp, champ, social login, social sharing, social commenting, wordpress plugin, buddypress, bbpress, social share, feed, multisite, comments, share post, openid integration, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, plug-in, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, wordpress, social sign-in, signin, sign up, signup, social plugins, social connect, facebook, twitter, google, google+, googleplus, google plus, linkedin, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, widget, social network
|
5 |
Requires at least: 2.5.0
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 2.8.0
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing, Social Feed and more
|
77 |
5. **Optimal Loading time**: Loading time of Social Login and Sharing icons is optimal and if you compare with other plugins, you will find it less than that of all those plugins.
|
78 |
|
79 |
= Important links =
|
80 |
+
* Plugin Demo: http://super-socializer-wordpress.pyrovolt.com
|
81 |
* Plugin Facebook fan page: https://www.facebook.com/SocializerChamp
|
82 |
* Blog: http://thechamplord.wordpress.com
|
83 |
* My Facebook profile: https://www.facebook.com/thechamp.lord
|
165 |
3. **Facebook Commenting**: Facebook commenting replaces the traditional comment form
|
166 |
|
167 |
== Changelog ==
|
168 |
+
= 2.8.0 =
|
169 |
+
* Included floating sharing bar
|
170 |
+
* Included option to enable sharing on category archive pages
|
171 |
+
* Included option to hide/show sharing counts
|
172 |
+
* Included option to auto-approve comments made by social login users
|
173 |
+
* Included option to specify the messgae on "email required" popup
|
174 |
+
* Enabled share counts for Google+
|
175 |
+
* Included option to delete options on plugin deletion
|
176 |
+
* Included Spanish language translation
|
177 |
+
* Minor bug fixes
|
178 |
+
|
179 |
= 2.5.2 =
|
180 |
* Bug fix: Continuous loading icon after Social Login
|
181 |
|
242 |
* Bug fix: Google Social Login icon was not responding
|
243 |
|
244 |
= 2.5.2 =
|
245 |
+
* Bug fix: Continuous loading icon after Social Login
|
246 |
+
|
247 |
+
= 2.8.0 =
|
248 |
+
* Included floating sharing bar
|
249 |
+
* Included option to enable sharing on category archive pages
|
250 |
+
* Included option to hide/show sharing counts
|
251 |
+
* Included option to auto-approve comments made by social login users
|
252 |
+
* Included option to specify the messgae on "email required" popup
|
253 |
+
* Enabled share counts for Google+
|
254 |
+
* Included option to delete options on plugin deletion
|
255 |
+
* Included Spanish language translation
|
256 |
+
* Minor bug fixes
|
super_socializer.php
CHANGED
@@ -3,22 +3,21 @@
|
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: https://www.facebook.com/SocializerChamp
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing, Social Feed and more.
|
6 |
-
Version: 2.
|
7 |
Author: The Champ
|
8 |
Author URI: http://thechamplord.wordpress.com
|
9 |
License: GPL2+
|
10 |
*/
|
11 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
12 |
-
define('THE_CHAMP_SS_VERSION', '2.
|
13 |
-
|
14 |
-
update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
|
15 |
-
}
|
16 |
require 'library/twitteroauth.php';
|
17 |
|
18 |
$theChampFacebookOptions = get_option('the_champ_facebook');
|
19 |
$theChampLoginOptions = get_option('the_champ_login');
|
20 |
$theChampSharingOptions = get_option('the_champ_sharing');
|
21 |
|
|
|
22 |
// include social login functions
|
23 |
require 'inc/social_login.php';
|
24 |
|
@@ -32,9 +31,12 @@ require 'inc/widget.php';
|
|
32 |
require 'inc/shortcode.php';
|
33 |
|
34 |
/**
|
35 |
-
* Hook the plugin function on '
|
36 |
*/
|
37 |
function the_champ_init(){
|
|
|
|
|
|
|
38 |
global $theChampLoginOptions;
|
39 |
if(isset($theChampLoginOptions['footer_script']) && $theChampLoginOptions['footer_script'] == 1){
|
40 |
add_action('wp_footer', 'the_champ_frontend_scripts');
|
@@ -45,6 +47,7 @@ function the_champ_init(){
|
|
45 |
add_action('wp_enqueue_scripts', 'the_champ_frontend_styles');
|
46 |
add_action('login_head', 'wp_enqueue_scripts', 1);
|
47 |
add_action('parse_request', 'the_champ_connect');
|
|
|
48 |
}
|
49 |
add_action('init', 'the_champ_init');
|
50 |
|
@@ -53,8 +56,13 @@ add_action('init', 'the_champ_init');
|
|
53 |
*/
|
54 |
function the_champ_connect(){
|
55 |
global $theChampLoginOptions;
|
|
|
|
|
|
|
|
|
|
|
56 |
// verify email
|
57 |
-
if(isset($_GET['
|
58 |
$users = get_users('meta_key=thechamp_key&meta_value='.$verificationKey);
|
59 |
if(count($users) > 0 && isset($users[0] -> ID)){
|
60 |
delete_user_meta($users[0] -> ID, 'thechamp_key');
|
@@ -62,25 +70,25 @@ function the_champ_connect(){
|
|
62 |
$password = wp_generate_password();
|
63 |
wp_update_user(array('ID' => $users[0] -> ID, 'user_pass' => $password));
|
64 |
the_champ_password_email($users[0] -> ID, $password);
|
65 |
-
wp_redirect(site_url().'?
|
66 |
die;
|
67 |
}
|
68 |
}
|
69 |
// Instagram auth
|
70 |
-
if(isset($_GET['
|
71 |
-
$instaAuthUrl = 'https://api.instagram.com/v1/users/self?access_token=' . trim($_GET['
|
72 |
$response = wp_remote_get( $instaAuthUrl, array( 'timeout' => 15 ) );
|
73 |
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
74 |
$body = json_decode(wp_remote_retrieve_body( $response ));
|
75 |
if(is_object($body -> data) && isset($body -> data) && isset($body -> data -> id)){
|
76 |
-
$redirection = isset($_GET['
|
77 |
the_champ_user_auth($body -> data, 'instagram', $redirection);
|
78 |
the_champ_close_login_popup(the_champ_get_login_redirection_url($redirection));
|
79 |
}
|
80 |
}
|
81 |
}
|
82 |
// send request to twitter
|
83 |
-
if(isset($_GET['
|
84 |
if(isset($theChampLoginOptions['twitter_key']) && $theChampLoginOptions['twitter_key'] != '' && isset($theChampLoginOptions['twitter_secret']) && $theChampLoginOptions['twitter_secret'] != ''){
|
85 |
/* Build TwitterOAuth object with client credentials. */
|
86 |
$connection = new TwitterOAuth($theChampLoginOptions['twitter_key'], $theChampLoginOptions['twitter_secret']);
|
@@ -92,8 +100,8 @@ function the_champ_connect(){
|
|
92 |
// save oauth token and secret in db temporarily
|
93 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtoken', $requestToken['oauth_token']);
|
94 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtokensecret', $requestToken['oauth_token_secret']);
|
95 |
-
if(isset($_GET['
|
96 |
-
update_user_meta($uniqueId, 'thechamp_twitter_redirect', $_GET['
|
97 |
}
|
98 |
wp_redirect($connection->getAuthorizeURL($requestToken['oauth_token']));
|
99 |
die;
|
@@ -163,6 +171,24 @@ function the_champ_get_http(){
|
|
163 |
}
|
164 |
}
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
/**
|
167 |
* Return webpage url to redirect after login.
|
168 |
*/
|
@@ -180,18 +206,7 @@ function the_champ_get_login_redirection_url($twitterRedirect = '', $register =
|
|
180 |
}else{
|
181 |
$url = $http.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
|
182 |
}
|
183 |
-
|
184 |
-
$url = site_url().'/';
|
185 |
-
}elseif(isset($_GET['redirect_to'])){
|
186 |
-
if(urldecode($_GET['redirect_to']) == admin_url()){
|
187 |
-
$url = site_url().'/';
|
188 |
-
}elseif(the_champ_validate_url(urldecode($_GET['redirect_to'])) && (strpos(urldecode($_GET['redirect_to']), 'http://') !== false || strpos(urldecode($_GET['redirect_to']), 'https://') !== false)){
|
189 |
-
$url = $_GET['redirect_to'];
|
190 |
-
}else{
|
191 |
-
$url = site_url().'/';
|
192 |
-
}
|
193 |
-
}
|
194 |
-
return $url;
|
195 |
}elseif($theChampLoginOptions[$option.'_redirection'] == 'homepage'){
|
196 |
return site_url();
|
197 |
}elseif($theChampLoginOptions[$option.'_redirection'] == 'account'){
|
@@ -226,18 +241,18 @@ function the_champ_frontend_scripts(){
|
|
226 |
$userVerified = false;
|
227 |
$ajaxUrl = 'admin-ajax.php';
|
228 |
$notification = '';
|
229 |
-
if(isset($_GET['
|
230 |
$userVerified = true;
|
231 |
$ajaxUrl = add_query_arg(
|
232 |
array(
|
233 |
'height' => 60,
|
234 |
'width' => 300,
|
235 |
'action' => 'the_champ_notify',
|
236 |
-
'message' => urlencode(isset($_GET['
|
237 |
),
|
238 |
'admin-ajax.php'
|
239 |
);
|
240 |
-
$notification = __('Notification', '
|
241 |
}
|
242 |
|
243 |
$emailPopup = false;
|
@@ -246,27 +261,26 @@ function the_champ_frontend_scripts(){
|
|
246 |
$emailPopupErrorMessage = '';
|
247 |
$emailPopupUniqueId = '';
|
248 |
$emailPopupVerifyMessage = '';
|
249 |
-
if(isset($_GET['
|
250 |
$emailPopup = true;
|
251 |
$emailAjaxUrl = add_query_arg(
|
252 |
array(
|
253 |
-
'height' =>
|
254 |
'width' => 300,
|
255 |
'action' => 'the_champ_ask_email'
|
256 |
),
|
257 |
'admin-ajax.php'
|
258 |
);
|
259 |
-
$emailPopupTitle = __('Email required', '
|
260 |
$emailPopupErrorMessage = isset($theChampLoginOptions["email_error_message"]) ? $theChampLoginOptions["email_error_message"] : "";
|
261 |
$emailPopupUniqueId = isset($_GET['par']) ? trim($_GET['par']) : '';
|
262 |
-
$emailPopupVerifyMessage = __('Please check your email inbox to complete the registration.', '
|
263 |
}
|
264 |
?>
|
265 |
-
<script> var theChampVerified = <?php echo intval($userVerified) ?>; var theChampAjaxUrl = '<?php echo admin_url().$ajaxUrl ?>'; var theChampPopupTitle = '<?php echo $notification; ?>'; var theChampEmailPopup = <?php echo intval($emailPopup); ?>; var theChampEmailAjaxUrl = '<?php echo admin_url().$emailAjaxUrl; ?>'; var theChampEmailPopupTitle = '<?php echo $emailPopupTitle; ?>'; var theChampEmailPopupErrorMsg = '<?php echo $emailPopupErrorMessage; ?>'; var theChampEmailPopupUniqueId = '<?php echo $emailPopupUniqueId; ?>'; var theChampEmailPopupVerifyMessage = '<?php echo $emailPopupVerifyMessage; ?>'; var theChampTwitterRedirect = '<?php echo urlencode(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); ?>'; </script>
|
266 |
<?php
|
267 |
-
wp_enqueue_script('the_champ_sl_common', plugins_url('js/front/social_login/common.js', __FILE__),
|
268 |
-
|
269 |
-
if(isset($theChampLoginOptions['email_required']) && $theChampLoginOptions['email_required'] == 1){
|
270 |
wp_enqueue_script('thickbox');
|
271 |
wp_enqueue_style('thickbox');
|
272 |
}
|
@@ -276,18 +290,18 @@ function the_champ_frontend_scripts(){
|
|
276 |
?>
|
277 |
<script>var theChampGoogleKey = '<?php echo $googleKey ?>' </script>
|
278 |
<?php
|
279 |
-
wp_enqueue_script('the_champ_sl_google', plugins_url('js/front/social_login/google.js', __FILE__),
|
280 |
}
|
281 |
// Linkedin scripts
|
282 |
if(the_champ_social_login_provider_enabled('linkedin') && !is_user_logged_in()){
|
283 |
?>
|
284 |
-
<script type="text/javascript" src="
|
285 |
api_key: <?php echo isset($theChampLoginOptions['li_key']) ? $theChampLoginOptions['li_key'] : '' ?>
|
286 |
|
287 |
onLoad: theChampLinkedInOnLoad
|
288 |
</script>
|
289 |
<?php
|
290 |
-
wp_enqueue_script('the_champ_sl_linkedin', plugins_url('js/front/social_login/linkedin.js', __FILE__),
|
291 |
}
|
292 |
// Vkontakte scripts
|
293 |
if(the_champ_social_login_provider_enabled('vkontakte') && !is_user_logged_in()){
|
@@ -295,7 +309,7 @@ function the_champ_frontend_scripts(){
|
|
295 |
<div id="vk_api_transport"></div>
|
296 |
<script> var theChampVkKey = '<?php echo (isset($theChampLoginOptions["vk_key"]) && $theChampLoginOptions["vk_key"] != "") ? $theChampLoginOptions["vk_key"] : 0 ?>' </script>
|
297 |
<?php
|
298 |
-
wp_enqueue_script('the_champ_sl_vkontakte', plugins_url('js/front/social_login/vkontakte.js', __FILE__),
|
299 |
}
|
300 |
// Instagram scripts
|
301 |
if(the_champ_social_login_provider_enabled('instagram') && !is_user_logged_in()){
|
@@ -316,19 +330,27 @@ function the_champ_frontend_scripts(){
|
|
316 |
?>
|
317 |
<script> var theChampFacebookScope = 'email<?php echo (isset( $theChampFacebookOptions["enable_fbfeed"] ) && $theChampFacebookOptions["enable_fbfeed"] == 1) ? ", publish_stream" : "" ?>'; var theChampFBFeedEnabled = <?php echo the_champ_facebook_feed_enabled() ? 'true' : 'false' ?>; </script>
|
318 |
<?php
|
319 |
-
wp_enqueue_script('the_champ_sl_facebook', plugins_url('js/front/social_login/facebook.js', __FILE__),
|
320 |
}
|
321 |
// Facebook commenting
|
322 |
if(the_champ_facebook_commenting_enabled()){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
?>
|
324 |
-
<script> var theChampFBCommentEnable = <?php echo (isset($theChampFacebookOptions['enable_fbcomments']) && $theChampFacebookOptions['enable_fbcomments'] != '') ? 'true' : 'false' ?>; var theChampForceFBComment = <?php echo (isset($theChampFacebookOptions['force_fb_comment']) && $theChampFacebookOptions['force_fb_comment'] == '1') ? 'true' : 'false' ?>; var theChampFBCommentTitle = '<?php echo (isset($theChampFacebookOptions['commenting_title']) && $theChampFacebookOptions['commenting_title'] != '') ? $theChampFacebookOptions['commenting_title'] : '' ?>'; var theChampFBCommentUrl = '<?php echo
|
325 |
<?php
|
326 |
wp_enqueue_script('the_champ_fb_commenting', plugins_url('js/front/facebook/commenting.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
327 |
}
|
328 |
// Facebook feed posts
|
329 |
if(the_champ_facebook_feed_enabled()){
|
330 |
?>
|
331 |
-
<script> var theChampFacebookFeedMsg = '<?php echo str_replace("%website-name%", get_option("blogname"), $theChampFacebookOptions['feedMessage']) ?>'; var theChampFBFeedName = '<?php echo (isset($theChampFacebookOptions['feed_name']) && $theChampFacebookOptions['feed_name'] != '') ? $theChampFacebookOptions['feed_name'] : '' ?>'; var theChampFBFeedDesc = '<?php echo (isset($theChampFacebookOptions['feed_description']) && $theChampFacebookOptions['feed_description'] != '') ? trim(preg_replace("/\r?\n/", '\n', $theChampFacebookOptions['feed_description'])) : '' ?>'; var theChampFBFeedLink = '<?php echo (isset($theChampFacebookOptions['feed_link']) && $theChampFacebookOptions['feed_link'] != '') ? $theChampFacebookOptions['feed_link'] : '' ?>'; var theChampFBFeedSource = '<?php echo (isset($theChampFacebookOptions['feedSource']) && $theChampFacebookOptions['feedSource'] != '') ? $theChampFacebookOptions['feedSource'] : '' ?>'; var theChampFBFeedPicture = '<?php echo (isset($theChampFacebookOptions['feedPicture']) && $theChampFacebookOptions['feedPicture'] != '') ? $theChampFacebookOptions['feedPicture'] : '' ?>'; var theChampFBFeedCaption = '<?php echo (isset($theChampFacebookOptions['feed_caption']) && $theChampFacebookOptions['feed_caption'] != '') ? $theChampFacebookOptions['feed_caption'] : '' ?>'; </script>
|
332 |
<?php
|
333 |
wp_enqueue_script('the_champ_fb_feed', plugins_url('js/front/facebook/feed.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
334 |
}
|
@@ -336,9 +358,9 @@ function the_champ_frontend_scripts(){
|
|
336 |
if(the_champ_social_sharing_enabled()){
|
337 |
global $theChampSharingOptions, $post;
|
338 |
?>
|
339 |
-
<script> var
|
340 |
<?php
|
341 |
-
wp_enqueue_script('the_champ_share_counts', plugins_url('js/front/sharing/sharing.js', __FILE__),
|
342 |
}
|
343 |
}
|
344 |
|
@@ -376,410 +398,95 @@ function the_champ_create_admin_menu(){
|
|
376 |
}
|
377 |
add_action('admin_menu', 'the_champ_create_admin_menu');
|
378 |
|
379 |
-
/**
|
380 |
-
* Display notification message when plugin options are saved
|
381 |
-
*/
|
382 |
-
function the_champ_settings_saved_notification(){
|
383 |
-
if(isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true'){
|
384 |
-
return "<div class='the_champ_error' style='height: 20px; margin-top: 10px'><p style ='color:green; margin:0'>" . __('Options saved successfully', 'TheChamp') . "</p></div>";
|
385 |
-
}
|
386 |
-
}
|
387 |
-
|
388 |
-
/**
|
389 |
-
* Display Facebook notifications
|
390 |
-
*/
|
391 |
-
function the_champ_facebook_notifications($fbOptions){
|
392 |
-
global $theChampLoginOptions;
|
393 |
-
$errorHtml = '';
|
394 |
-
if( isset($fbOptions['enable_fbfeed']) && $fbOptions['enable_fbfeed'] == 1 ){
|
395 |
-
if(!isset($theChampLoginOptions['fb_key']) || $theChampLoginOptions['fb_key'] == '' || !isset($theChampLoginOptions['providers']) || !in_array('facebook', $theChampLoginOptions['providers'])){
|
396 |
-
$errorHtml .= the_champ_error_message('Facebook Login, at "Social Login" page, must be enabled for Feed to work');
|
397 |
-
}
|
398 |
-
}
|
399 |
-
return $errorHtml;
|
400 |
-
}
|
401 |
-
|
402 |
-
/**
|
403 |
-
* Display Social Login notifications
|
404 |
-
*/
|
405 |
-
function the_champ_login_notifications($loginOptions){
|
406 |
-
$errorHtml = '';
|
407 |
-
if(isset($loginOptions['providers'])){
|
408 |
-
if(in_array('facebook', $loginOptions['providers']) && (!isset($loginOptions['fb_key']) || $loginOptions['fb_key'] == '')){
|
409 |
-
$errorHtml .= the_champ_error_message('Facebook App ID is required for Facebook Login to work');
|
410 |
-
}
|
411 |
-
if(in_array('twitter', $loginOptions['providers']) && (!isset($loginOptions['twitter_key']) || $loginOptions['twitter_key'] == '' || !isset($loginOptions['twitter_secret']) || $loginOptions['twitter_secret'] == '')){
|
412 |
-
$errorHtml .= the_champ_error_message('Twitter Consumer Key and Secret are required for Twitter Login to work');
|
413 |
-
}
|
414 |
-
if(in_array('linkedin', $loginOptions['providers']) && (!isset($loginOptions['li_key']) || $loginOptions['li_key'] == '')){
|
415 |
-
$errorHtml .= the_champ_error_message('LinkedIn API Key is required for LinkedIn Login to work');
|
416 |
-
}
|
417 |
-
if(in_array('google', $loginOptions['providers']) && (!isset($loginOptions['google_key']) || $loginOptions['google_key'] == '')){
|
418 |
-
$errorHtml .= the_champ_error_message('Google Plus Client ID is required for Google Plus Login to work');
|
419 |
-
}
|
420 |
-
if(in_array('vkontakte', $loginOptions['providers']) && (!isset($loginOptions['vk_key']) || $loginOptions['vk_key'] == '')){
|
421 |
-
$errorHtml .= the_champ_error_message('Vkontakte Application ID is required for Vkontakte Login to work');
|
422 |
-
}
|
423 |
-
if(in_array('instagram', $loginOptions['providers']) && (!isset($loginOptions['insta_id']) || $loginOptions['insta_id'] == '')){
|
424 |
-
$errorHtml .= the_champ_error_message('Instagram Client ID is required for Instagram Login to work');
|
425 |
-
}
|
426 |
-
}
|
427 |
-
return $errorHtml;
|
428 |
-
}
|
429 |
-
|
430 |
-
/**
|
431 |
-
* Facebook option page of plugin in WP admin.
|
432 |
-
*/
|
433 |
-
function the_champ_facebook_page(){
|
434 |
-
// facebook options
|
435 |
-
global $theChampFacebookOptions;
|
436 |
-
// message on saving options
|
437 |
-
echo the_champ_settings_saved_notification();
|
438 |
-
echo the_champ_facebook_notifications($theChampFacebookOptions);
|
439 |
-
require 'admin/facebook.php';
|
440 |
-
}
|
441 |
-
|
442 |
-
/**
|
443 |
-
* Social Login page of plugin in WP admin.
|
444 |
-
*/
|
445 |
-
function the_champ_social_login_page(){
|
446 |
-
// social login options
|
447 |
-
global $theChampLoginOptions;
|
448 |
-
// message on saving options
|
449 |
-
echo the_champ_settings_saved_notification();
|
450 |
-
echo the_champ_login_notifications($theChampLoginOptions);
|
451 |
-
require 'admin/social_login.php';
|
452 |
-
}
|
453 |
-
|
454 |
-
/**
|
455 |
-
* Social Sharing page of plugin in WP admin.
|
456 |
-
*/
|
457 |
-
function the_champ_social_sharing_page(){
|
458 |
-
// social sharing options
|
459 |
-
global $theChampSharingOptions;
|
460 |
-
// message on saving options
|
461 |
-
echo the_champ_settings_saved_notification();
|
462 |
-
require 'admin/social_sharing.php';
|
463 |
-
}
|
464 |
-
|
465 |
-
/**
|
466 |
-
* Plugin options page in WP Admin.
|
467 |
-
*/
|
468 |
-
function the_champ_option_page(){
|
469 |
-
require 'admin/social_admin.php';
|
470 |
-
}
|
471 |
-
|
472 |
/**
|
473 |
-
*
|
474 |
-
*
|
475 |
-
* IMPROVEMENT: complexity can be reduced (this function is called on each option page validation and "if($k == 'providers'){"
|
476 |
-
* condition is being checked every time)
|
477 |
*/
|
478 |
-
function
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
}
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
register_setting('the_champ_login_options', 'the_champ_login', 'the_champ_validate_options');
|
495 |
-
register_setting('the_champ_sharing_options', 'the_champ_sharing', 'the_champ_validate_options');
|
496 |
-
// show option to disable sharing on particular page/post
|
497 |
-
foreach(array('post', 'page') as $type){
|
498 |
-
add_meta_box('the_champ_meta', 'Super Socializer', 'the_champ_sharing_meta_setup', $type);
|
499 |
-
}
|
500 |
-
// save sharing meta on post/page save
|
501 |
-
add_action('save_post', 'the_champ_save_sharing_meta');
|
502 |
-
}
|
503 |
-
add_action('admin_init', 'the_champ_options_init');
|
504 |
-
|
505 |
-
/**
|
506 |
-
* Include javascript files in admin.
|
507 |
-
*/
|
508 |
-
function the_champ_admin_scripts(){
|
509 |
-
?>
|
510 |
-
<script>var theChampWebsiteUrl = '<?php echo site_url() ?>'; </script>
|
511 |
-
<?php
|
512 |
-
wp_enqueue_script('the_champ_admin_script', plugins_url('js/admin/admin.js', __FILE__), array('jquery', 'jquery-ui-tabs'));
|
513 |
-
}
|
514 |
-
|
515 |
-
/**
|
516 |
-
* Include Javascript SDK in admin.
|
517 |
-
*/
|
518 |
-
function the_champ_fb_sdk_script(){
|
519 |
-
wp_enqueue_script('the_champ_fb_sdk_script', plugins_url('js/admin/fb_sdk.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
520 |
-
}
|
521 |
-
|
522 |
-
/**
|
523 |
-
* Include javascript files in admin sharing page.
|
524 |
-
*/
|
525 |
-
function the_champ_admin_sharing_scripts(){
|
526 |
-
wp_enqueue_script('the_champ_sharing', plugins_url('js/admin/sharing/admin.js', __FILE__), array('jquery', 'jquery-ui-sortable'), THE_CHAMP_SS_VERSION);
|
527 |
-
}
|
528 |
-
|
529 |
-
/**
|
530 |
-
* Include CSS files in admin.
|
531 |
-
*/
|
532 |
-
function the_champ_admin_style(){
|
533 |
-
wp_enqueue_style('the_champ_admin_style', plugins_url('css/admin.css', __FILE__), false, THE_CHAMP_SS_VERSION);
|
534 |
-
}
|
535 |
-
|
536 |
-
function the_champ_add_settings_link($links, $file){
|
537 |
-
static $plugin;
|
538 |
-
if(!$plugin){
|
539 |
-
$plugin = plugin_basename(__FILE__);
|
540 |
-
}
|
541 |
-
if ($file == $plugin){
|
542 |
-
$settingsLink = '<a href="options-general.php?page=the-champ">' . __('Settings') . '</a>';
|
543 |
-
array_unshift($links, $settingsLink); // before other links
|
544 |
-
}
|
545 |
-
return $links;
|
546 |
-
}
|
547 |
-
add_filter('plugin_action_links', 'the_champ_add_settings_link', 10, 2);
|
548 |
-
|
549 |
-
/**
|
550 |
-
* Return ajax response
|
551 |
-
*/
|
552 |
-
function the_champ_ajax_response($status, $message){
|
553 |
-
die(
|
554 |
-
json_encode(
|
555 |
-
array(
|
556 |
-
'status' => $status,
|
557 |
-
'message' => $message
|
558 |
-
)
|
559 |
-
)
|
560 |
-
);
|
561 |
-
}
|
562 |
-
|
563 |
-
/**
|
564 |
-
* Show notification in popup
|
565 |
-
*/
|
566 |
-
function the_champ_notify(){
|
567 |
-
if(isset($_GET['message'])){
|
568 |
-
?>
|
569 |
-
<div><?php echo trim($_GET['message']) ?></div>
|
570 |
-
<?php
|
571 |
-
}
|
572 |
-
die;
|
573 |
-
}
|
574 |
-
add_action('wp_ajax_nopriv_the_champ_notify', 'the_champ_notify');
|
575 |
-
|
576 |
-
/**
|
577 |
-
* Check if Social Login is enabled.
|
578 |
-
*/
|
579 |
-
function the_champ_social_login_enabled(){
|
580 |
-
global $theChampLoginOptions;
|
581 |
-
if(isset($theChampLoginOptions['enable']) && $theChampLoginOptions['enable'] == 1){
|
582 |
-
return true;
|
583 |
-
}else{
|
584 |
-
return false;
|
585 |
-
}
|
586 |
-
}
|
587 |
-
|
588 |
-
/**
|
589 |
-
* Check if Social Sharing is enabled.
|
590 |
-
*/
|
591 |
-
function the_champ_social_sharing_enabled(){
|
592 |
-
global $theChampSharingOptions;
|
593 |
-
if(isset($theChampSharingOptions['enable']) && $theChampSharingOptions['enable'] == 1){
|
594 |
-
return true;
|
595 |
-
}else{
|
596 |
-
return false;
|
597 |
-
}
|
598 |
-
}
|
599 |
-
|
600 |
-
/**
|
601 |
-
* Check if Social Login from particular provider is enabled.
|
602 |
-
*/
|
603 |
-
function the_champ_social_login_provider_enabled($provider){
|
604 |
-
global $theChampLoginOptions;
|
605 |
-
if(the_champ_social_login_enabled() && isset($theChampLoginOptions['providers']) && in_array($provider, $theChampLoginOptions['providers'])){
|
606 |
-
return true;
|
607 |
-
}else{
|
608 |
-
return false;
|
609 |
-
}
|
610 |
-
}
|
611 |
-
|
612 |
-
/**
|
613 |
-
* Check if Facebook commenting is enabled.
|
614 |
-
*/
|
615 |
-
function the_champ_facebook_commenting_enabled(){
|
616 |
-
global $theChampFacebookOptions;
|
617 |
-
if(isset($theChampFacebookOptions['enable_fbcomments']) && $theChampFacebookOptions['enable_fbcomments'] == 1){
|
618 |
-
return true;
|
619 |
-
}else{
|
620 |
-
return false;
|
621 |
-
}
|
622 |
-
}
|
623 |
-
|
624 |
-
/**
|
625 |
-
* Check if Facebook feed is enabled.
|
626 |
-
*/
|
627 |
-
function the_champ_facebook_feed_enabled(){
|
628 |
-
global $theChampFacebookOptions;
|
629 |
-
if(isset($theChampFacebookOptions['enable_fbfeed']) && $theChampFacebookOptions['enable_fbfeed'] == 1){
|
630 |
-
return true;
|
631 |
-
}else{
|
632 |
-
return false;
|
633 |
-
}
|
634 |
-
}
|
635 |
-
|
636 |
-
/**
|
637 |
-
* Check if any Facebook plugin is enabled.
|
638 |
-
*/
|
639 |
-
function the_champ_facebook_plugin_enabled(){
|
640 |
-
global $theChampFacebookOptions;
|
641 |
-
if(the_champ_social_login_provider_enabled('facebook') || the_champ_facebook_feed_enabled() || the_champ_facebook_commenting_enabled()){
|
642 |
-
return true;
|
643 |
-
}else{
|
644 |
-
return false;
|
645 |
-
}
|
646 |
-
}
|
647 |
-
|
648 |
-
/**
|
649 |
-
* Log errors/exceptions
|
650 |
-
*/
|
651 |
-
function the_champ_log_error($error){
|
652 |
-
error_log(PHP_EOL . '[' . date('m/d/Y h:i:s a', time()) . '] ' . $error, 3, plugin_dir_path(__FILE__) . 'log.txt');
|
653 |
-
}
|
654 |
|
655 |
/**
|
656 |
* Default options when plugin is installed
|
657 |
*/
|
658 |
function the_champ_default_options(){
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
}
|
721 |
-
add_action('wpmu_new_blog', 'the_champ_replicate_settings');
|
722 |
-
|
723 |
-
/**
|
724 |
-
* update the social login options in all the old blogs
|
725 |
-
*/
|
726 |
-
function the_champ_update_old_blogs($oldConfig){
|
727 |
-
$optionParts = explode('_', current_filter());
|
728 |
-
$option = $optionParts[2] . '_' . $optionParts[3] . '_' . $optionParts[4];
|
729 |
-
$newConfig = get_option($option);
|
730 |
-
if(isset($newConfig['config_multisite']) && $newConfig['config_multisite'] == 1){
|
731 |
-
$blogs = get_blog_list(0, 'all');
|
732 |
-
foreach($blogs as $blog){
|
733 |
-
update_blog_option($blog['blog_id'], $option, $newConfig);
|
734 |
-
}
|
735 |
}
|
|
|
|
|
|
|
736 |
}
|
737 |
-
add_action('update_option_the_champ_login', 'the_champ_update_old_blogs');
|
738 |
-
add_action('update_option_the_champ_facebook', 'the_champ_update_old_blogs');
|
739 |
-
add_action('update_option_the_champ_sharing', 'the_champ_update_old_blogs');
|
740 |
-
}
|
741 |
-
|
742 |
-
/**
|
743 |
-
* Register LoginRadius_settings and its sanitization callback.
|
744 |
-
*/
|
745 |
-
function the_champ_sharing_meta_setup(){
|
746 |
-
global $post;
|
747 |
-
$postType = $post->post_type;
|
748 |
-
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
749 |
-
?>
|
750 |
-
<p>
|
751 |
-
<label for="the_champ_sharing">
|
752 |
-
<input type="checkbox" name="_the_champ_meta[sharing]" id="the_champ_sharing" value="1" <?php checked('1', @$sharingMeta['sharing']); ?> />
|
753 |
-
<?php _e('Disable Social Sharing on this '.$postType, 'TheChamp') ?>
|
754 |
-
</label>
|
755 |
-
</p>
|
756 |
-
<?php
|
757 |
-
echo '<input type="hidden" name="the_champ_meta_nonce" value="' . wp_create_nonce(__FILE__) . '" />';
|
758 |
}
|
759 |
-
|
760 |
-
/**
|
761 |
-
* Save sharing meta fields.
|
762 |
-
*/
|
763 |
-
function the_champ_save_sharing_meta($postId){
|
764 |
-
// make sure data came from our meta box
|
765 |
-
if(!isset($_POST['the_champ_meta_nonce']) || !wp_verify_nonce( $_POST['the_champ_meta_nonce'], __FILE__ )){
|
766 |
-
return $postId;
|
767 |
-
}
|
768 |
-
// check user permissions
|
769 |
-
if($_POST['post_type'] == 'page'){
|
770 |
-
if(!current_user_can('edit_page', $postId)){
|
771 |
-
return $postId;
|
772 |
-
}
|
773 |
-
}else{
|
774 |
-
if(!current_user_can('edit_post', $postId)){
|
775 |
-
return $postId;
|
776 |
-
}
|
777 |
-
}
|
778 |
-
if ( isset( $_POST['_the_champ_meta'] ) ) {
|
779 |
-
$newData = $_POST['_the_champ_meta'];
|
780 |
-
}else{
|
781 |
-
$newData = array( 'sharing' => 0 );
|
782 |
-
}
|
783 |
-
update_post_meta($postId, '_the_champ_meta', $newData);
|
784 |
-
return $postId;
|
785 |
-
}
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: https://www.facebook.com/SocializerChamp
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing, Social Feed and more.
|
6 |
+
Version: 2.8.0
|
7 |
Author: The Champ
|
8 |
Author URI: http://thechamplord.wordpress.com
|
9 |
License: GPL2+
|
10 |
*/
|
11 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
12 |
+
define('THE_CHAMP_SS_VERSION', '2.8.0');
|
13 |
+
|
|
|
|
|
14 |
require 'library/twitteroauth.php';
|
15 |
|
16 |
$theChampFacebookOptions = get_option('the_champ_facebook');
|
17 |
$theChampLoginOptions = get_option('the_champ_login');
|
18 |
$theChampSharingOptions = get_option('the_champ_sharing');
|
19 |
|
20 |
+
require 'helper.php';
|
21 |
// include social login functions
|
22 |
require 'inc/social_login.php';
|
23 |
|
31 |
require 'inc/shortcode.php';
|
32 |
|
33 |
/**
|
34 |
+
* Hook the plugin function on 'init' event.
|
35 |
*/
|
36 |
function the_champ_init(){
|
37 |
+
if(get_option('the_champ_ss_version') != THE_CHAMP_SS_VERSION){
|
38 |
+
update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
|
39 |
+
}
|
40 |
global $theChampLoginOptions;
|
41 |
if(isset($theChampLoginOptions['footer_script']) && $theChampLoginOptions['footer_script'] == 1){
|
42 |
add_action('wp_footer', 'the_champ_frontend_scripts');
|
47 |
add_action('wp_enqueue_scripts', 'the_champ_frontend_styles');
|
48 |
add_action('login_head', 'wp_enqueue_scripts', 1);
|
49 |
add_action('parse_request', 'the_champ_connect');
|
50 |
+
load_plugin_textdomain( 'Super-Socializer', false, dirname(plugin_basename(__FILE__)).'/languages/' );
|
51 |
}
|
52 |
add_action('init', 'the_champ_init');
|
53 |
|
56 |
*/
|
57 |
function the_champ_connect(){
|
58 |
global $theChampLoginOptions;
|
59 |
+
/*
|
60 |
+
$response = wp_remote_get( 'http://share.yandex.ru/gpp.xml?url=http://facebook.com', array( 'timeout' => 15 ) );
|
61 |
+
var_dump(json_decode(wp_remote_retrieve_body($response)));
|
62 |
+
die;
|
63 |
+
*/
|
64 |
// verify email
|
65 |
+
if(isset($_GET['SuperSocializerKey']) && ($verificationKey = trim($_GET['SuperSocializerKey'])) != ''){
|
66 |
$users = get_users('meta_key=thechamp_key&meta_value='.$verificationKey);
|
67 |
if(count($users) > 0 && isset($users[0] -> ID)){
|
68 |
delete_user_meta($users[0] -> ID, 'thechamp_key');
|
70 |
$password = wp_generate_password();
|
71 |
wp_update_user(array('ID' => $users[0] -> ID, 'user_pass' => $password));
|
72 |
the_champ_password_email($users[0] -> ID, $password);
|
73 |
+
wp_redirect(site_url().'?SuperSocializerVerified=1');
|
74 |
die;
|
75 |
}
|
76 |
}
|
77 |
// Instagram auth
|
78 |
+
if(isset($_GET['SuperSocializerInstaToken']) && $_GET['SuperSocializerInstaToken'] != ''){
|
79 |
+
$instaAuthUrl = 'https://api.instagram.com/v1/users/self?access_token=' . trim($_GET['SuperSocializerInstaToken']);
|
80 |
$response = wp_remote_get( $instaAuthUrl, array( 'timeout' => 15 ) );
|
81 |
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
82 |
$body = json_decode(wp_remote_retrieve_body( $response ));
|
83 |
if(is_object($body -> data) && isset($body -> data) && isset($body -> data -> id)){
|
84 |
+
$redirection = isset($_GET['super_socializer_redirect_to']) && $_GET['super_socializer_redirect_to'] != '' ? $_GET['super_socializer_redirect_to'] : '';
|
85 |
the_champ_user_auth($body -> data, 'instagram', $redirection);
|
86 |
the_champ_close_login_popup(the_champ_get_login_redirection_url($redirection));
|
87 |
}
|
88 |
}
|
89 |
}
|
90 |
// send request to twitter
|
91 |
+
if(isset($_GET['SuperSocializerAuth']) && $_GET['SuperSocializerAuth'] == 'Twitter'){
|
92 |
if(isset($theChampLoginOptions['twitter_key']) && $theChampLoginOptions['twitter_key'] != '' && isset($theChampLoginOptions['twitter_secret']) && $theChampLoginOptions['twitter_secret'] != ''){
|
93 |
/* Build TwitterOAuth object with client credentials. */
|
94 |
$connection = new TwitterOAuth($theChampLoginOptions['twitter_key'], $theChampLoginOptions['twitter_secret']);
|
100 |
// save oauth token and secret in db temporarily
|
101 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtoken', $requestToken['oauth_token']);
|
102 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtokensecret', $requestToken['oauth_token_secret']);
|
103 |
+
if(isset($_GET['super_socializer_redirect_to']) && $_GET['super_socializer_redirect_to'] != ''){
|
104 |
+
update_user_meta($uniqueId, 'thechamp_twitter_redirect', $_GET['super_socializer_redirect_to']);
|
105 |
}
|
106 |
wp_redirect($connection->getAuthorizeURL($requestToken['oauth_token']));
|
107 |
die;
|
171 |
}
|
172 |
}
|
173 |
|
174 |
+
/**
|
175 |
+
* Return valid redirection url.
|
176 |
+
*/
|
177 |
+
function the_champ_get_valid_url($url){
|
178 |
+
if($url == wp_login_url() || $url == site_url().'/wp-login.php?action=register' || $url == site_url().'/wp-login.php?loggedout=true'){
|
179 |
+
$url = site_url().'/';
|
180 |
+
}elseif(isset($_GET['redirect_to'])){
|
181 |
+
if(urldecode($_GET['redirect_to']) == admin_url()){
|
182 |
+
$url = site_url().'/';
|
183 |
+
}elseif(the_champ_validate_url(urldecode($_GET['redirect_to'])) && (strpos(urldecode($_GET['redirect_to']), 'http://') !== false || strpos(urldecode($_GET['redirect_to']), 'https://') !== false)){
|
184 |
+
$url = $_GET['redirect_to'];
|
185 |
+
}else{
|
186 |
+
$url = site_url().'/';
|
187 |
+
}
|
188 |
+
}
|
189 |
+
return $url;
|
190 |
+
}
|
191 |
+
|
192 |
/**
|
193 |
* Return webpage url to redirect after login.
|
194 |
*/
|
206 |
}else{
|
207 |
$url = $http.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
|
208 |
}
|
209 |
+
return the_champ_get_valid_url($url);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
}elseif($theChampLoginOptions[$option.'_redirection'] == 'homepage'){
|
211 |
return site_url();
|
212 |
}elseif($theChampLoginOptions[$option.'_redirection'] == 'account'){
|
241 |
$userVerified = false;
|
242 |
$ajaxUrl = 'admin-ajax.php';
|
243 |
$notification = '';
|
244 |
+
if(isset($_GET['SuperSocializerVerified']) || isset($_GET['SuperSocializerUnverified'])){
|
245 |
$userVerified = true;
|
246 |
$ajaxUrl = add_query_arg(
|
247 |
array(
|
248 |
'height' => 60,
|
249 |
'width' => 300,
|
250 |
'action' => 'the_champ_notify',
|
251 |
+
'message' => urlencode(isset($_GET['SuperSocializerUnverified']) ? __('Please verify your email address to login.', 'Super-Socializer') : __('Your email has been verified. Now you can login to your account', 'Super-Socializer'))
|
252 |
),
|
253 |
'admin-ajax.php'
|
254 |
);
|
255 |
+
$notification = __('Notification', 'Super-Socializer');
|
256 |
}
|
257 |
|
258 |
$emailPopup = false;
|
261 |
$emailPopupErrorMessage = '';
|
262 |
$emailPopupUniqueId = '';
|
263 |
$emailPopupVerifyMessage = '';
|
264 |
+
if(isset($_GET['SuperSocializerEmail']) && isset($_GET['par']) && trim($_GET['par']) != ''){
|
265 |
$emailPopup = true;
|
266 |
$emailAjaxUrl = add_query_arg(
|
267 |
array(
|
268 |
+
'height' => isset($theChampLoginOptions['popup_height']) && $theChampLoginOptions['popup_height'] != '' ? $theChampLoginOptions['popup_height'] : 134,
|
269 |
'width' => 300,
|
270 |
'action' => 'the_champ_ask_email'
|
271 |
),
|
272 |
'admin-ajax.php'
|
273 |
);
|
274 |
+
$emailPopupTitle = __('Email required', 'Super-Socializer');
|
275 |
$emailPopupErrorMessage = isset($theChampLoginOptions["email_error_message"]) ? $theChampLoginOptions["email_error_message"] : "";
|
276 |
$emailPopupUniqueId = isset($_GET['par']) ? trim($_GET['par']) : '';
|
277 |
+
$emailPopupVerifyMessage = __('Please check your email inbox to complete the registration.', 'Super-Socializer');
|
278 |
}
|
279 |
?>
|
280 |
+
<script> var theChampVerified = <?php echo intval($userVerified) ?>; var theChampAjaxUrl = '<?php echo admin_url().$ajaxUrl ?>'; var theChampPopupTitle = '<?php echo $notification; ?>'; var theChampEmailPopup = <?php echo intval($emailPopup); ?>; var theChampEmailAjaxUrl = '<?php echo admin_url().$emailAjaxUrl; ?>'; var theChampEmailPopupTitle = '<?php echo $emailPopupTitle; ?>'; var theChampEmailPopupErrorMsg = '<?php echo htmlentities($emailPopupErrorMessage, ENT_QUOTES); ?>'; var theChampEmailPopupUniqueId = '<?php echo $emailPopupUniqueId; ?>'; var theChampEmailPopupVerifyMessage = '<?php echo $emailPopupVerifyMessage; ?>'; var theChampTwitterRedirect = '<?php echo urlencode(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); ?>'; </script>
|
281 |
<?php
|
282 |
+
wp_enqueue_script('the_champ_sl_common', plugins_url('js/front/social_login/common.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
283 |
+
|
|
|
284 |
wp_enqueue_script('thickbox');
|
285 |
wp_enqueue_style('thickbox');
|
286 |
}
|
290 |
?>
|
291 |
<script>var theChampGoogleKey = '<?php echo $googleKey ?>' </script>
|
292 |
<?php
|
293 |
+
wp_enqueue_script('the_champ_sl_google', plugins_url('js/front/social_login/google.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
294 |
}
|
295 |
// Linkedin scripts
|
296 |
if(the_champ_social_login_provider_enabled('linkedin') && !is_user_logged_in()){
|
297 |
?>
|
298 |
+
<script type="text/javascript" src="//platform.linkedin.com/in.js">
|
299 |
api_key: <?php echo isset($theChampLoginOptions['li_key']) ? $theChampLoginOptions['li_key'] : '' ?>
|
300 |
|
301 |
onLoad: theChampLinkedInOnLoad
|
302 |
</script>
|
303 |
<?php
|
304 |
+
wp_enqueue_script('the_champ_sl_linkedin', plugins_url('js/front/social_login/linkedin.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
305 |
}
|
306 |
// Vkontakte scripts
|
307 |
if(the_champ_social_login_provider_enabled('vkontakte') && !is_user_logged_in()){
|
309 |
<div id="vk_api_transport"></div>
|
310 |
<script> var theChampVkKey = '<?php echo (isset($theChampLoginOptions["vk_key"]) && $theChampLoginOptions["vk_key"] != "") ? $theChampLoginOptions["vk_key"] : 0 ?>' </script>
|
311 |
<?php
|
312 |
+
wp_enqueue_script('the_champ_sl_vkontakte', plugins_url('js/front/social_login/vkontakte.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
313 |
}
|
314 |
// Instagram scripts
|
315 |
if(the_champ_social_login_provider_enabled('instagram') && !is_user_logged_in()){
|
330 |
?>
|
331 |
<script> var theChampFacebookScope = 'email<?php echo (isset( $theChampFacebookOptions["enable_fbfeed"] ) && $theChampFacebookOptions["enable_fbfeed"] == 1) ? ", publish_stream" : "" ?>'; var theChampFBFeedEnabled = <?php echo the_champ_facebook_feed_enabled() ? 'true' : 'false' ?>; </script>
|
332 |
<?php
|
333 |
+
wp_enqueue_script('the_champ_sl_facebook', plugins_url('js/front/social_login/facebook.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
334 |
}
|
335 |
// Facebook commenting
|
336 |
if(the_champ_facebook_commenting_enabled()){
|
337 |
+
global $post;
|
338 |
+
if(isset($theChampFacebookOptions['urlToComment']) && $theChampFacebookOptions['urlToComment'] != ''){
|
339 |
+
$commentUrl = $theChampFacebookOptions['urlToComment'];
|
340 |
+
}elseif(isset($post -> ID) && $post -> ID){
|
341 |
+
$commentUrl = get_permalink($post -> ID);
|
342 |
+
}else{
|
343 |
+
$commentUrl = the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
|
344 |
+
}
|
345 |
?>
|
346 |
+
<script> var theChampFBCommentEnable = <?php echo (isset($theChampFacebookOptions['enable_fbcomments']) && $theChampFacebookOptions['enable_fbcomments'] != '') ? 'true' : 'false' ?>; var theChampForceFBComment = <?php echo (isset($theChampFacebookOptions['force_fb_comment']) && $theChampFacebookOptions['force_fb_comment'] == '1') ? 'true' : 'false' ?>; var theChampFBCommentTitle = '<?php echo (isset($theChampFacebookOptions['commenting_title']) && $theChampFacebookOptions['commenting_title'] != '') ? htmlentities($theChampFacebookOptions['commenting_title'], ENT_QUOTES) : '' ?>'; var theChampFBCommentUrl = '<?php echo $commentUrl ?>'; var theChampFBCommentColor = '<?php echo (isset($theChampFacebookOptions['comment_color']) && $theChampFacebookOptions['comment_color'] != '') ? $theChampFacebookOptions["comment_color"] : ''; ?>'; var theChampFBCommentNumPosts = '<?php echo (isset($theChampFacebookOptions['comment_numposts']) && $theChampFacebookOptions['comment_numposts'] != '') ? $theChampFacebookOptions["comment_numposts"] : ''; ?>'; var theChampFBCommentWidth = '<?php echo (isset($theChampFacebookOptions['comment_width']) && $theChampFacebookOptions['comment_width'] != '') ? $theChampFacebookOptions["comment_width"] : ''; ?>'; var theChampFBCommentOrderby = '<?php echo (isset($theChampFacebookOptions['comment_orderby']) && $theChampFacebookOptions['comment_orderby'] != '') ? $theChampFacebookOptions["comment_orderby"] : ''; ?>'; var theChampFBCommentMobile = '<?php echo (isset($theChampFacebookOptions['comment_mobile']) && $theChampFacebookOptions['comment_mobile'] != '') ? $theChampFacebookOptions["comment_mobile"] : ''; ?>'; var theChampFBAppID = '<?php echo (isset($theChampLoginOptions['fb_key']) && $theChampLoginOptions['fb_key'] != '') ? $theChampLoginOptions['fb_key'] : '' ?>'; var theChampSiteUrl = '<?php echo site_url() ?>'; var theChampWPCommentingContent = ''; var theChampFBCommentingContent = ''; </script>
|
347 |
<?php
|
348 |
wp_enqueue_script('the_champ_fb_commenting', plugins_url('js/front/facebook/commenting.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
349 |
}
|
350 |
// Facebook feed posts
|
351 |
if(the_champ_facebook_feed_enabled()){
|
352 |
?>
|
353 |
+
<script> var theChampFacebookFeedMsg = '<?php echo htmlentities(str_replace("%website-name%", get_option("blogname"), $theChampFacebookOptions['feedMessage']), ENT_QUOTES) ?>'; var theChampFBFeedName = '<?php echo (isset($theChampFacebookOptions['feed_name']) && $theChampFacebookOptions['feed_name'] != '') ? htmlentities($theChampFacebookOptions['feed_name'], ENT_QUOTES) : '' ?>'; var theChampFBFeedDesc = '<?php echo (isset($theChampFacebookOptions['feed_description']) && $theChampFacebookOptions['feed_description'] != '') ? htmlentities(trim(preg_replace("/\r?\n/", '\n', $theChampFacebookOptions['feed_description'])), ENT_QUOTES) : '' ?>'; var theChampFBFeedLink = '<?php echo (isset($theChampFacebookOptions['feed_link']) && $theChampFacebookOptions['feed_link'] != '') ? $theChampFacebookOptions['feed_link'] : '' ?>'; var theChampFBFeedSource = '<?php echo (isset($theChampFacebookOptions['feedSource']) && $theChampFacebookOptions['feedSource'] != '') ? $theChampFacebookOptions['feedSource'] : '' ?>'; var theChampFBFeedPicture = '<?php echo (isset($theChampFacebookOptions['feedPicture']) && $theChampFacebookOptions['feedPicture'] != '') ? $theChampFacebookOptions['feedPicture'] : '' ?>'; var theChampFBFeedCaption = '<?php echo (isset($theChampFacebookOptions['feed_caption']) && $theChampFacebookOptions['feed_caption'] != '') ? htmlentities($theChampFacebookOptions['feed_caption'], ENT_QUOTES) : '' ?>'; </script>
|
354 |
<?php
|
355 |
wp_enqueue_script('the_champ_fb_feed', plugins_url('js/front/facebook/feed.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
356 |
}
|
358 |
if(the_champ_social_sharing_enabled()){
|
359 |
global $theChampSharingOptions, $post;
|
360 |
?>
|
361 |
+
<script> var theChampSharingAjaxUrl = '<?php echo get_admin_url() ?>admin-ajax.php'; var theChampCloseIconPath = '<?php echo plugins_url('images/close.png', __FILE__) ?>'; var theChampPluginIconPath = '<?php echo plugins_url('images/logo.png', __FILE__) ?>'; var theChampHorizontalSharingCountEnable = <?php echo isset($theChampSharingOptions['horizontal_counts']) ? 1 : 0 ?>; var theChampVerticalSharingCountEnable = <?php echo isset($theChampSharingOptions['vertical_counts']) ? 1 : 0 ?>; </script>
|
362 |
<?php
|
363 |
+
wp_enqueue_script('the_champ_share_counts', plugins_url('js/front/sharing/sharing.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
364 |
}
|
365 |
}
|
366 |
|
398 |
}
|
399 |
add_action('admin_menu', 'the_champ_create_admin_menu');
|
400 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
/**
|
402 |
+
* Auto-approve comments made by social login users
|
|
|
|
|
|
|
403 |
*/
|
404 |
+
function the_champ_auto_approve_comment($approved){
|
405 |
+
global $theChampLoginOptions;
|
406 |
+
if(empty($approved)){
|
407 |
+
if(isset($theChampLoginOptions['autoApproveComment'])){
|
408 |
+
$userId = get_current_user_id();
|
409 |
+
if(is_numeric($userId)){
|
410 |
+
$commentUser = get_user_meta($userId, 'thechamp_social_id', true);
|
411 |
+
if($commentUser !== false){
|
412 |
+
$approved = 1;
|
413 |
+
}
|
414 |
+
}
|
415 |
+
}
|
416 |
+
}
|
417 |
+
return $approved;
|
418 |
+
}
|
419 |
+
add_action('pre_comment_approved', 'the_champ_auto_approve_comment');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
|
421 |
/**
|
422 |
* Default options when plugin is installed
|
423 |
*/
|
424 |
function the_champ_default_options(){
|
425 |
+
if(get_option('the_champ_ss_version') != THE_CHAMP_SS_VERSION){
|
426 |
+
// plugin version
|
427 |
+
update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
|
428 |
+
|
429 |
+
// login options
|
430 |
+
add_option('the_champ_login', array(
|
431 |
+
'title' => 'Login with your Social ID',
|
432 |
+
'email_error_message' => 'Email you entered is already registered or invalid',
|
433 |
+
'avatar' => 1,
|
434 |
+
'email_required' => 1,
|
435 |
+
'password_email' => 1,
|
436 |
+
'email_popup_text' => 'Please enter a valid email address. You may require to verify it.',
|
437 |
+
'enableAtLogin' => 1,
|
438 |
+
'enableAtRegister' => 1,
|
439 |
+
'enableAtComment' => 1,
|
440 |
+
));
|
441 |
+
|
442 |
+
// facebook options
|
443 |
+
add_option('the_champ_facebook', array(
|
444 |
+
'enable_fbcomments' => '1',
|
445 |
+
'feedMessage' => 'Has just logged into %website-name%',
|
446 |
+
'comment_lang' => get_locale(),
|
447 |
+
'feed_link' => site_url()
|
448 |
+
));
|
449 |
+
|
450 |
+
// sharing options
|
451 |
+
if(!add_option('the_champ_sharing', array(
|
452 |
+
'enable' => '1',
|
453 |
+
'hor_enable' => '1',
|
454 |
+
'vertical_enable' => '1',
|
455 |
+
'providers' => array('facebook', 'twitter', 'google', 'linkedin', 'pinterest', 'reddit', 'delicious', 'stumbleupon'),
|
456 |
+
'horizontal_re_providers' => array('facebook', 'twitter', 'google', 'linkedin', 'pinterest', 'reddit', 'delicious', 'stumbleupon'),
|
457 |
+
'vertical_providers' => array('facebook', 'twitter', 'google', 'linkedin', 'pinterest', 'reddit', 'delicious', 'stumbleupon'),
|
458 |
+
'vertical_re_providers' => array('facebook', 'twitter', 'google', 'linkedin', 'pinterest', 'reddit', 'delicious', 'stumbleupon'),
|
459 |
+
'title' => 'Share the joy',
|
460 |
+
'top' => '1',
|
461 |
+
'bottom' => '1',
|
462 |
+
'post' => '1',
|
463 |
+
'page' => '1',
|
464 |
+
'excerpt' => '1',
|
465 |
+
'horizontal_counts' => '1',
|
466 |
+
'vertical_post' => '1',
|
467 |
+
'vertical_page' => '1',
|
468 |
+
'vertical_excerpt' => '1',
|
469 |
+
'left_offset' => '215',
|
470 |
+
'top_offset' => '100',
|
471 |
+
'delete_options' => '1',
|
472 |
+
))){
|
473 |
+
$sharingOptions = get_option('the_champ_sharing');
|
474 |
+
$sharingOptions['hor_enable'] = '1';
|
475 |
+
$sharingOptions['vertical_enable'] = '1';
|
476 |
+
$sharingOptions['vertical_providers'] = array('facebook', 'twitter', 'google', 'linkedin', 'pinterest', 'reddit', 'delicious', 'stumbleupon');
|
477 |
+
$sharingOptions['vertical_re_providers'] = array('facebook', 'twitter', 'google', 'linkedin', 'pinterest', 'reddit', 'delicious', 'stumbleupon');
|
478 |
+
$sharingOptions['horizontal_counts'] = '1';
|
479 |
+
$sharingOptions['vertical_post'] = '1';
|
480 |
+
$sharingOptions['vertical_page'] = '1';
|
481 |
+
$sharingOptions['vertical_excerpt'] = '1';
|
482 |
+
$sharingOptions['left_offset'] = '215';
|
483 |
+
$sharingOptions['top_offset'] = '100';
|
484 |
+
$sharingOptions['delete_options'] = '1';
|
485 |
+
update_option('the_champ_sharing', $sharingOptions);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
}
|
487 |
+
$email = get_option('admin_email');
|
488 |
+
$headers = 'From: Admin <'.$email.'>' . "\r\n";
|
489 |
+
wp_mail('lordofthechamps@gmail.com', 'Super Socializer installed', site_url(), $headers);
|
490 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
}
|
492 |
+
register_activation_hook(__FILE__, 'the_champ_default_options');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uninstall.php
CHANGED
@@ -3,28 +3,31 @@
|
|
3 |
if( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
4 |
exit();
|
5 |
}
|
6 |
-
|
7 |
-
$
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
}
|
18 |
-
$wpdb->query("delete from $wpdb->usermeta where meta_key like 'thechamp%'");
|
19 |
-
}else{
|
20 |
-
// For Multisite
|
21 |
-
$theChampBlogIds = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
|
22 |
-
$theChampOriginalBlogId = get_current_blog_id();
|
23 |
-
foreach ( $theChampBlogIds as $blogId ){
|
24 |
-
switch_to_blog( $blogId );
|
25 |
foreach($theChampOptions as $option){
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
|
|
28 |
}
|
29 |
-
switch_to_blog( $theChampOriginalBlogId );
|
30 |
}
|
3 |
if( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
4 |
exit();
|
5 |
}
|
6 |
+
$theChampSharingOptions = get_option('the_champ_sharing');
|
7 |
+
if(isset($theChampSharingOptions['delete_options'])){
|
8 |
+
global $wpdb;
|
9 |
+
$theChampOptions = array(
|
10 |
+
'the_champ_login',
|
11 |
+
'the_champ_facebook',
|
12 |
+
'the_champ_sharing',
|
13 |
+
'the_champ_ss_version'
|
14 |
+
);
|
15 |
+
// For Single site
|
16 |
+
if( !is_multisite() ){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
foreach($theChampOptions as $option){
|
18 |
+
delete_option( $option );
|
19 |
+
}
|
20 |
+
$wpdb->query("delete from $wpdb->usermeta where meta_key like 'thechamp%'");
|
21 |
+
}else{
|
22 |
+
// For Multisite
|
23 |
+
$theChampBlogIds = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
|
24 |
+
$theChampOriginalBlogId = get_current_blog_id();
|
25 |
+
foreach ( $theChampBlogIds as $blogId ){
|
26 |
+
switch_to_blog( $blogId );
|
27 |
+
foreach($theChampOptions as $option){
|
28 |
+
delete_site_option($option);
|
29 |
+
}
|
30 |
}
|
31 |
+
switch_to_blog( $theChampOriginalBlogId );
|
32 |
}
|
|
|
33 |
}
|