Version Description
- Included Xing in Social Login
- Included Xing in Social Sharing
- Included Xing in Social Counter
- Added option to specify target url in sharing and counter
- Added option to specify minimum share count in sharing interface for individual pages/posts
- Users can link their social accounts at profile page
- Added option to redirect users to BuddyPress profile page after login and registration
- Added option to left, right and center align horizontal sharing and counter interface
- Added option to specify social avatar quality
- Added options to enable sharing at BBPress forums, topics, replies and BuddyPress activity
- Social Login app configuration steps simplified
- Improved Print icon in sharing
- Vkontakte share counts now supported
- Included shortcode for Facebook Commenting
- Added option to disable Facebook Comments on individual page/post
- Added option to specify language for Social Counters
- Included Stumbleupon badge in Social Counters
- Included functionality to comment after clicking Facebook like/recommend
- Included option to enable share counts in sharing shortcode and widget
- Included French, Hungarian, German and Italian translation
- Facebook Comments and default commenting works simultaneously without the need to toggle between them
- [Bugfix] Share counts were not being displayed when bit.ly url shortner was enabled
Download this release
Release Info
Developer | the_champ |
Plugin | WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer |
Version | 4.0.0 |
Comparing to | |
See all releases |
Code changes from version 3.4.1 to 4.0.0
- admin/facebook.php +59 -100
- admin/social_admin.php +1 -2
- admin/social_counter.php +129 -4
- admin/social_login.php +107 -12
- admin/social_sharing.php +123 -8
- css/admin.css +1 -1
- css/front.css +2 -2
- helper.php +259 -23
- images/login/login.png +0 -0
- images/sharing/sharing.png +0 -0
- images/snaps/ss_disable_sharing.png +0 -0
- inc/shortcode.php +40 -4
- inc/social_login.php +152 -40
- inc/social_sharing.php +375 -87
- inc/widget.php +186 -42
- js/admin/admin.js +1 -1
- js/admin/counter/admin.js +57 -1
- js/admin/sharing/admin.js +75 -1
- js/front/facebook/commenting.js +1 -1
- js/front/facebook/sdk.js +1 -1
- js/front/sharing/sharing.js +24 -14
- js/front/social_login/common.js +1 -1
- js/front/social_login/general.js +1 -1
- js/front/social_login/google.js +1 -1
- js/front/social_login/instagram.js +1 -1
- js/front/social_login/linkedin.js +1 -1
- js/front/social_login/vkontakte.js +1 -1
- languages/Super-Socializer-es_ES.mo +0 -0
- languages/Super-Socializer-es_ES.po +1221 -1260
- readme.txt +61 -5
- super_socializer.php +162 -52
- uninstall.php +1 -0
admin/facebook.php
CHANGED
@@ -3,13 +3,14 @@
|
|
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">
|
@@ -31,7 +32,7 @@
|
|
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
|
35 |
</div>
|
36 |
<img width="562" src="<?php echo plugins_url('../images/snaps/FB_commenting.png', __FILE__); ?>" />
|
37 |
</td>
|
@@ -44,102 +45,6 @@
|
|
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 onclick="theChampCommentingOptions(this)" 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>
|
64 |
-
<tbody id="the_champ_commenting_extra" <?php echo isset($theChampFacebookOptions['force_fb_comment']) ? 'style="display: none"' : ''; ?>>
|
65 |
-
<tr>
|
66 |
-
<th>
|
67 |
-
<img id="the_champ_fb_comment_load_first_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
68 |
-
<label for="the_champ_fb_comment_load_first"><?php _e('Load first', 'Super-Socializer'); ?></label>
|
69 |
-
</th>
|
70 |
-
<td>
|
71 |
-
<select id="the_champ_fb_comment_load_first" name="the_champ_facebook[load_first]">
|
72 |
-
<option value="1" <?php echo isset($theChampFacebookOptions['load_first']) && $theChampFacebookOptions['load_first'] == '1' ? 'selected="selected"' : '' ?>><?php _e('Facebook Commenting', 'Super-Socializer') ?></option>
|
73 |
-
<option value="0" <?php echo isset($theChampFacebookOptions['load_first']) && $theChampFacebookOptions['load_first'] == '0' ? 'selected="selected"' : '' ?>><?php _e('Default Commenting', 'Super-Socializer') ?></option>
|
74 |
-
</select>
|
75 |
-
</td>
|
76 |
-
</tr>
|
77 |
-
|
78 |
-
<tr class="the_champ_help_content" id="the_champ_fb_comment_load_first_help_cont">
|
79 |
-
<td colspan="2">
|
80 |
-
<div>
|
81 |
-
<?php _e('Selected commenting will be loaded first on the page', 'Super-Socializer') ?>
|
82 |
-
</div>
|
83 |
-
</td>
|
84 |
-
</tr>
|
85 |
-
|
86 |
-
<tr>
|
87 |
-
<th>
|
88 |
-
<img id="the_champ_fb_comment_switch_wp_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
89 |
-
<label for="the_champ_fb_comment_switch_wp"><?php _e('Text on "Switch to WordPress Commenting" button', 'Super-Socializer'); ?></label>
|
90 |
-
</th>
|
91 |
-
<td>
|
92 |
-
<input id="the_champ_fb_comment_switch_wp" name="the_champ_facebook[switch_wp]" type="text" value="<?php echo isset($theChampFacebookOptions['switch_wp']) ? $theChampFacebookOptions['switch_wp'] : '' ?>" />
|
93 |
-
</td>
|
94 |
-
</tr>
|
95 |
-
|
96 |
-
<tr class="the_champ_help_content" id="the_champ_fb_comment_switch_wp_help_cont">
|
97 |
-
<td colspan="2">
|
98 |
-
<div>
|
99 |
-
<?php _e('This text will be display on the button to switch to WordPress comments', 'Super-Socializer') ?>
|
100 |
-
</div>
|
101 |
-
<img width="562" src="<?php echo plugins_url('../images/snaps/switch_to_default_commenting.png', __FILE__); ?>" />
|
102 |
-
</td>
|
103 |
-
</tr>
|
104 |
-
|
105 |
-
<tr>
|
106 |
-
<th>
|
107 |
-
<img id="the_champ_fb_comment_switch_fb_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
108 |
-
<label for="the_champ_fb_comment_switch_fb"><?php _e('Text on "Switch to Facebook Commenting" button', 'Super-Socializer'); ?></label>
|
109 |
-
</th>
|
110 |
-
<td>
|
111 |
-
<input id="the_champ_fb_comment_switch_fb" name="the_champ_facebook[switch_fb]" type="text" value="<?php echo isset($theChampFacebookOptions['switch_fb']) ? $theChampFacebookOptions['switch_fb'] : '' ?>" />
|
112 |
-
</td>
|
113 |
-
</tr>
|
114 |
-
|
115 |
-
<tr class="the_champ_help_content" id="the_champ_fb_comment_switch_fb_help_cont">
|
116 |
-
<td colspan="2">
|
117 |
-
<div>
|
118 |
-
<?php _e('This text will be displayed on the button to switch to Facebook comments', 'Super-Socializer') ?>
|
119 |
-
</div>
|
120 |
-
<img width="562" src="<?php echo plugins_url('../images/snaps/switch_to_facebook_commenting.png', __FILE__); ?>" />
|
121 |
-
</td>
|
122 |
-
</tr>
|
123 |
-
</tbody>
|
124 |
-
<tr>
|
125 |
-
<th>
|
126 |
-
<img id="the_champ_fb_comment_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
127 |
-
<label for="the_champ_comment_title"><?php _e('Title', 'Super-Socializer'); ?></label>
|
128 |
-
</th>
|
129 |
-
<td>
|
130 |
-
<input id="the_champ_comment_title" name="the_champ_facebook[commenting_title]" type="text" value="<?php echo isset($theChampFacebookOptions['commenting_title']) ? $theChampFacebookOptions['commenting_title'] : '' ?>" />
|
131 |
-
</td>
|
132 |
-
</tr>
|
133 |
-
|
134 |
-
<tr class="the_champ_help_content" id="the_champ_fb_comment_title_help_cont">
|
135 |
-
<td colspan="2">
|
136 |
-
<div>
|
137 |
-
<?php _e('Specify a title for commenting', 'Super-Socializer') ?>
|
138 |
-
</div>
|
139 |
-
<img width="562" src="<?php echo plugins_url('../images/snaps/comment_title.png', __FILE__); ?>" />
|
140 |
-
</td>
|
141 |
-
</tr>
|
142 |
-
|
143 |
<tr>
|
144 |
<th>
|
145 |
<img id="the_champ_fb_comment_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
@@ -171,7 +76,7 @@
|
|
171 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_width_help_cont">
|
172 |
<td colspan="2">
|
173 |
<div>
|
174 |
-
<?php _e('Leave empty to auto-adjust the width.
|
175 |
</div>
|
176 |
</td>
|
177 |
</tr>
|
@@ -200,7 +105,7 @@
|
|
200 |
<tr>
|
201 |
<th>
|
202 |
<img id="the_champ_fb_comment_numposts_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
203 |
-
<label for="the_champ_fbcomment_numposts"><?php _e('Number of
|
204 |
</th>
|
205 |
<td>
|
206 |
<input id="the_champ_fbcomment_numposts" name="the_champ_facebook[comment_numposts]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_numposts']) ? $theChampFacebookOptions['comment_numposts'] : '' ?>" />
|
@@ -460,6 +365,60 @@
|
|
460 |
|
461 |
<?php include 'help.php'; ?>
|
462 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
<div class="the_champ_clear"></div>
|
464 |
<p class="submit">
|
465 |
<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'); ?>" />
|
3 |
|
4 |
<div class="metabox-holder columns-2" id="post-body">
|
5 |
<div class="menu_div" id="tabs">
|
|
|
6 |
<form action="options.php" method="post">
|
7 |
<?php settings_fields('the_champ_facebook_options'); ?>
|
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', 'Super-Socializer') ?></a></li>
|
11 |
<li><a style="margin:0; height: 23px" class="nav-tab" href="#tabs-2"><?php _e('Feed', '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', 'Super-Socializer') ?></a></li>
|
13 |
+
<li style="margin-left:9px"><a style="margin:0; height:23px" class="nav-tab" href="#tabs-4"><?php _e('FAQ', 'Super-Socializer') ?></a></li>
|
14 |
</ul>
|
15 |
</h2>
|
16 |
<div class="menu_containt_div" id="tabs-1">
|
32 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_help_cont">
|
33 |
<td colspan="2">
|
34 |
<div>
|
35 |
+
<?php _e('After enabling this option, Facebook commenting will appear before Wordpress comment form at your website', 'Super-Socializer') ?>
|
36 |
</div>
|
37 |
<img width="562" src="<?php echo plugins_url('../images/snaps/FB_commenting.png', __FILE__); ?>" />
|
38 |
</td>
|
45 |
<h3><label><?php _e('Facebook Commenting Options', 'Super-Socializer');?></label></h3>
|
46 |
<div class="inside">
|
47 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
<tr>
|
49 |
<th>
|
50 |
<img id="the_champ_fb_comment_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
76 |
<tr class="the_champ_help_content" id="the_champ_fb_comment_width_help_cont">
|
77 |
<td colspan="2">
|
78 |
<div>
|
79 |
+
<?php _e('Leave empty to auto-adjust the width. The width (in pixels) of the Comments block.', 'Super-Socializer') ?>
|
80 |
</div>
|
81 |
</td>
|
82 |
</tr>
|
105 |
<tr>
|
106 |
<th>
|
107 |
<img id="the_champ_fb_comment_numposts_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
108 |
+
<label for="the_champ_fbcomment_numposts"><?php _e('Number of comments', 'Super-Socializer'); ?></label>
|
109 |
</th>
|
110 |
<td>
|
111 |
<input id="the_champ_fbcomment_numposts" name="the_champ_facebook[comment_numposts]" type="text" value="<?php echo isset($theChampFacebookOptions['comment_numposts']) ? $theChampFacebookOptions['comment_numposts'] : '' ?>" />
|
365 |
|
366 |
<?php include 'help.php'; ?>
|
367 |
</div>
|
368 |
+
|
369 |
+
<div class="menu_containt_div" id="tabs-3">
|
370 |
+
<div class="the_champ_left_column">
|
371 |
+
<div class="stuffbox">
|
372 |
+
<h3><label><?php _e('Shortcode', 'Super-Socializer');?></label></h3>
|
373 |
+
<div class="inside">
|
374 |
+
<p><?php _e('You can use <strong>[TheChamp-FB-Comments]</strong> Shortcode in the content of required page/post where you want to display Facebook Commenting interface.', 'Super-Socializer') ?></p>
|
375 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
376 |
+
<p><strong>[TheChamp-FB-Comments]</strong></p>
|
377 |
+
<p><?php _e('You can use following attributes in the Shortcode', 'Super-Socializer') ?></p>
|
378 |
+
<strong style="font-size: 16px">Style</strong>
|
379 |
+
<p><?php _e('Use <strong>style</strong> attribute to style the rendered commenting interface', 'Super-Socializer') ?></p>
|
380 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
381 |
+
<p><strong>[TheChamp-FB-Comments style="background-color:#000;"]</strong></p>
|
382 |
+
|
383 |
+
<strong style="font-size: 16px">url</strong>
|
384 |
+
<p><?php _e('Use <strong>url</strong> attribute to specify the target url for comments. This defaults to the page where shortcode is used.', 'Super-Socializer') ?></p>
|
385 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
386 |
+
<p><strong>[TheChamp-FB-Comments url="http://mywebsite.com/page2"]</strong></p>
|
387 |
+
|
388 |
+
<strong style="font-size: 16px"><?php _e('num_posts', 'Super-Socializer') ?></strong>
|
389 |
+
<p><?php _e('Use <strong>num_posts</strong> attribute to specify the number of comments to display.', 'Super-Socializer') ?></p>
|
390 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
391 |
+
<p><strong>[TheChamp-FB-Comments num_posts="5"]</strong></p>
|
392 |
+
|
393 |
+
<strong style="font-size: 16px"><?php _e('width', 'Super-Socializer') ?></strong>
|
394 |
+
<p><?php _e('Use <strong>width</strong> attribute to specify the width of commenting interface. Omit it for fluid width', 'Super-Socializer') ?></p>
|
395 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
396 |
+
<p><strong>[TheChamp-FB-Comments width="200"]</strong></p>
|
397 |
+
<p><?php _e('You can use shortcode in PHP file as following', 'Super-Socializer') ?></p>
|
398 |
+
<p><strong><?php echo do_shortcode('SHORTCODE') ?></strong></p>
|
399 |
+
<p><?php _e('Replace <strong>SHORTCODE</strong> in above code with the required shortcode like <strong>[TheChamp-FB-Comments style="background-color:#000;"]</strong>, so the final code looks like following', 'Super-Socializer') ?></p>
|
400 |
+
<p><strong><?php echo do_shortcode('[TheChamp-FB-Comments style="background-color:#000;"]') ?></strong></p>
|
401 |
+
</div>
|
402 |
+
</div>
|
403 |
+
</div>
|
404 |
+
<?php include 'help.php'; ?>
|
405 |
+
</div>
|
406 |
+
|
407 |
+
<div class="menu_containt_div" id="tabs-4">
|
408 |
+
<div class="the_champ_left_column">
|
409 |
+
<div class="stuffbox">
|
410 |
+
<h3><label><?php _e('How can I disable FB comments at individual page/post?', 'Super-Socializer') ?></label></h3>
|
411 |
+
<div class="inside">
|
412 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
413 |
+
<tr>
|
414 |
+
<td><?php _e('Edit that page/post and check the option "Disable Facebook Comments on this post/page" at the bottom in "Super Socializer" section', 'Super-Socializer') ?></td>
|
415 |
+
</tr>
|
416 |
+
</table>
|
417 |
+
</div>
|
418 |
+
</div>
|
419 |
+
</div>
|
420 |
+
<?php include 'help.php'; ?>
|
421 |
+
</div>
|
422 |
<div class="the_champ_clear"></div>
|
423 |
<p class="submit">
|
424 |
<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'); ?>" />
|
admin/social_admin.php
CHANGED
@@ -3,8 +3,6 @@
|
|
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>
|
@@ -15,6 +13,7 @@
|
|
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 |
|
3 |
|
4 |
<h2>Super Socializer</h2>
|
5 |
<div class="metabox-holder columns-2" id="post-body">
|
|
|
|
|
6 |
<div class="the_champ_left_column">
|
7 |
<div class="stuffbox">
|
8 |
<h3><label><?php _e('Welcome', 'Super-Socializer');?></label></h3>
|
13 |
<p><?php _e('In <strong>Facebook</strong> section, you can configure Facebook Commenting and Feed.', 'Super-Socializer') ?></p>
|
14 |
<p><?php _e('In <strong>Social Login</strong> section, you can select Social ID provders and configure the Social Login options.', 'Super-Socializer') ?></p>
|
15 |
<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>
|
16 |
+
<p><?php _e('In <strong>Social Counter</strong> section, you can choose the like/+1 buttons and configure the options for the same', 'Super-Socializer') ?></p>
|
17 |
</div>
|
18 |
</div>
|
19 |
|
admin/social_counter.php
CHANGED
@@ -4,7 +4,6 @@
|
|
4 |
|
5 |
<div class="metabox-holder columns-2" id="post-body">
|
6 |
<div class="menu_div" id="tabs">
|
7 |
-
<?php require 'donate.php'; ?>
|
8 |
<form action="options.php" method="post">
|
9 |
<?php settings_fields('the_champ_counter_options'); ?>
|
10 |
<h2 class="nav-tab-wrapper" style="height:36px">
|
@@ -126,6 +125,31 @@
|
|
126 |
</div>
|
127 |
</div>
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
<div class="stuffbox">
|
130 |
<h3><label><?php _e('Twitter username in tweet button', 'Super-Socializer');?></label></h3>
|
131 |
<div class="inside">
|
@@ -151,7 +175,7 @@
|
|
151 |
</table>
|
152 |
</div>
|
153 |
</div>
|
154 |
-
|
155 |
<div class="stuffbox">
|
156 |
<h3><label><?php _e('Horizontal Counter Interface Options', 'Super-Socializer');?></label></h3>
|
157 |
<div class="inside">
|
@@ -176,6 +200,29 @@
|
|
176 |
</tr>
|
177 |
|
178 |
<tbody id="the_champ_horizontal_counter_options" <?php echo isset($theChampCounterOptions['hor_enable']) ? '' : 'style="display: none"'; ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
<tr>
|
180 |
<th>
|
181 |
<img id="the_champ_sc_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
@@ -202,7 +249,7 @@
|
|
202 |
<td>
|
203 |
<ul id="the_champ_sc_rearrange">
|
204 |
<?php
|
205 |
-
$counterProviders = array('facebook_like', 'facebook_recommend', 'twitter_tweet', 'linkedin_share', 'google_plusone', 'googleplus_share', 'pinterest_pin_it', 'reddit');
|
206 |
// show selected providers
|
207 |
if(isset($theChampCounterOptions['horizontal_providers']) && is_array($theChampCounterOptions['horizontal_providers'])){
|
208 |
foreach($theChampCounterOptions['horizontal_providers'] as $selected){
|
@@ -246,6 +293,28 @@
|
|
246 |
</td>
|
247 |
</tr>
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
<tr>
|
250 |
<th>
|
251 |
<img id="the_champ_sc_position_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
@@ -283,6 +352,28 @@
|
|
283 |
<label for="the_champ_counter_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
284 |
<input id="the_champ_counter_category" name="the_champ_counter[category]" type="checkbox" <?php echo isset($theChampCounterOptions['category']) ? 'checked = "checked"' : '';?> value="1" />
|
285 |
<label for="the_champ_counter_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
</td>
|
287 |
</tr>
|
288 |
|
@@ -322,6 +413,28 @@
|
|
322 |
</tr>
|
323 |
|
324 |
<tbody id="the_champ_vertical_counter_options" <?php echo isset($theChampCounterOptions['vertical_enable']) ? '' : 'style="display: none"'; ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
|
326 |
<tr>
|
327 |
<th>
|
@@ -487,6 +600,18 @@
|
|
487 |
<label for="the_champ_counter_vertical_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
488 |
<input id="the_champ_counter_vertical_category" name="the_champ_counter[vertical_category]" type="checkbox" <?php echo isset($theChampCounterOptions['vertical_category']) ? 'checked = "checked"' : '';?> value="1" />
|
489 |
<label for="the_champ_counter_vertical_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
</td>
|
491 |
</tr>
|
492 |
|
@@ -521,7 +646,7 @@
|
|
521 |
<p><strong>[TheChamp-Counter style="background-color:#000;"]</strong></p>
|
522 |
|
523 |
<strong style="font-size: 16px">Type</strong>
|
524 |
-
<p><?php _e('Use <strong>type</strong> attribute to specify the type ("
|
525 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
526 |
<p><strong>[TheChamp-Counter type="vertical"]</strong></p>
|
527 |
|
4 |
|
5 |
<div class="metabox-holder columns-2" id="post-body">
|
6 |
<div class="menu_div" id="tabs">
|
|
|
7 |
<form action="options.php" method="post">
|
8 |
<?php settings_fields('the_champ_counter_options'); ?>
|
9 |
<h2 class="nav-tab-wrapper" style="height:36px">
|
125 |
</div>
|
126 |
</div>
|
127 |
|
128 |
+
<div class="stuffbox">
|
129 |
+
<h3><label><?php _e('Language', 'Super-Socializer');?></label></h3>
|
130 |
+
<div class="inside">
|
131 |
+
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
132 |
+
<tr>
|
133 |
+
<th>
|
134 |
+
<img id="the_champ_sc_language_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
135 |
+
<label for="the_champ_sc_language"><?php _e("Language", 'Super-Socializer'); ?></label>
|
136 |
+
</th>
|
137 |
+
<td>
|
138 |
+
<input id="the_champ_sc_language" name="the_champ_counter[language]" type="text" value="<?php echo isset($theChampCounterOptions['language']) ? $theChampCounterOptions['language'] : '' ?>" />
|
139 |
+
</td>
|
140 |
+
</tr>
|
141 |
+
|
142 |
+
<tr class="the_champ_help_content" id="the_champ_sc_language_help_cont">
|
143 |
+
<td colspan="2">
|
144 |
+
<div>
|
145 |
+
<?php echo sprintf(__('Enter the code of the language you want to use to render counters. 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') ?>
|
146 |
+
</div>
|
147 |
+
</td>
|
148 |
+
</tr>
|
149 |
+
</table>
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
|
153 |
<div class="stuffbox">
|
154 |
<h3><label><?php _e('Twitter username in tweet button', 'Super-Socializer');?></label></h3>
|
155 |
<div class="inside">
|
175 |
</table>
|
176 |
</div>
|
177 |
</div>
|
178 |
+
|
179 |
<div class="stuffbox">
|
180 |
<h3><label><?php _e('Horizontal Counter Interface Options', 'Super-Socializer');?></label></h3>
|
181 |
<div class="inside">
|
200 |
</tr>
|
201 |
|
202 |
<tbody id="the_champ_horizontal_counter_options" <?php echo isset($theChampCounterOptions['hor_enable']) ? '' : 'style="display: none"'; ?>>
|
203 |
+
<tr>
|
204 |
+
<th>
|
205 |
+
<img id="the_champ_sc_horizontal_target_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
206 |
+
<label for="the_champ_sc_target_url"><?php _e("Target Url", 'Super-Socializer'); ?></label>
|
207 |
+
</th>
|
208 |
+
<td id="the_champ_target_url_column">
|
209 |
+
<input id="the_champ_target_url_default" name="the_champ_counter[horizontal_target_url]" type="radio" <?php echo !isset($theChampCounterOptions['horizontal_target_url']) || $theChampCounterOptions['horizontal_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
|
210 |
+
<label for="the_champ_target_url_default"><?php _e('Url of the webpage where icons are located (default)', 'Super-Socializer') ?></label><br/>
|
211 |
+
<input id="the_champ_target_url_home" name="the_champ_counter[horizontal_target_url]" type="radio" <?php echo isset($theChampCounterOptions['horizontal_target_url']) && $theChampCounterOptions['horizontal_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
|
212 |
+
<label for="the_champ_target_url_home"><?php _e('Url of the homepage of your website', 'Super-Socializer') ?></label><br/>
|
213 |
+
<input id="the_champ_target_url_custom" name="the_champ_counter[horizontal_target_url]" type="radio" <?php echo isset($theChampCounterOptions['horizontal_target_url']) && $theChampCounterOptions['horizontal_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
214 |
+
<label for="the_champ_target_url_custom"><?php _e('Custom url', 'Super-Socializer') ?></label><br/>
|
215 |
+
<input id="the_champ_target_url_custom_url" name="the_champ_counter[horizontal_target_url_custom]" type="text" value="<?php echo isset($theChampCounterOptions['horizontal_target_url_custom']) ? $theChampCounterOptions['horizontal_target_url_custom'] : '' ?>" />
|
216 |
+
</td>
|
217 |
+
</tr>
|
218 |
+
<tr class="the_champ_help_content" id="the_champ_sc_horizontal_target_url_help_cont">
|
219 |
+
<td colspan="2">
|
220 |
+
<div>
|
221 |
+
<?php _e('Url to like/share/tweet and display like/share/tweet counts', 'Super-Socializer') ?>
|
222 |
+
</div>
|
223 |
+
</td>
|
224 |
+
</tr>
|
225 |
+
|
226 |
<tr>
|
227 |
<th>
|
228 |
<img id="the_champ_sc_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
249 |
<td>
|
250 |
<ul id="the_champ_sc_rearrange">
|
251 |
<?php
|
252 |
+
$counterProviders = array('facebook_like', 'facebook_recommend', 'twitter_tweet', 'linkedin_share', 'google_plusone', 'googleplus_share', 'pinterest_pin_it', 'xing', 'reddit', 'stumbleupon_badge');
|
253 |
// show selected providers
|
254 |
if(isset($theChampCounterOptions['horizontal_providers']) && is_array($theChampCounterOptions['horizontal_providers'])){
|
255 |
foreach($theChampCounterOptions['horizontal_providers'] as $selected){
|
293 |
</td>
|
294 |
</tr>
|
295 |
|
296 |
+
<tr>
|
297 |
+
<th>
|
298 |
+
<img id="the_champ_sc_hor_alignment_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
299 |
+
<label for="the_champ_sc_hor_alignment"><?php _e("Horizontal alignment", 'Super-Socializer'); ?></label>
|
300 |
+
</th>
|
301 |
+
<td>
|
302 |
+
<select id="the_champ_sc_hor_alignment" name="the_champ_counter[hor_counter_alignment]">
|
303 |
+
<option value="left" <?php echo isset($theChampCounterOptions['hor_counter_alignment']) && $theChampCounterOptions['hor_counter_alignment'] == 'left' ? 'selected="selected"' : '' ?>><?php _e('Left', 'Super-Socializer') ?></option>
|
304 |
+
<option value="center" <?php echo isset($theChampCounterOptions['hor_counter_alignment']) && $theChampCounterOptions['hor_counter_alignment'] == 'center' ? 'selected="selected"' : '' ?>><?php _e('Center', 'Super-Socializer') ?></option>
|
305 |
+
<option value="right" <?php echo isset($theChampCounterOptions['hor_counter_alignment']) && $theChampCounterOptions['hor_counter_alignment'] == 'right' ? 'selected="selected"' : '' ?>><?php _e('Right', 'Super-Socializer') ?></option>
|
306 |
+
</select>
|
307 |
+
</td>
|
308 |
+
</tr>
|
309 |
+
|
310 |
+
<tr class="the_champ_help_content" id="the_champ_sc_hor_alignment_help_cont">
|
311 |
+
<td colspan="2">
|
312 |
+
<div>
|
313 |
+
<?php _e('Horizontal alignment of the counter interface', 'Super-Socializer') ?>
|
314 |
+
</div>
|
315 |
+
</td>
|
316 |
+
</tr>
|
317 |
+
|
318 |
<tr>
|
319 |
<th>
|
320 |
<img id="the_champ_sc_position_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
352 |
<label for="the_champ_counter_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
353 |
<input id="the_champ_counter_category" name="the_champ_counter[category]" type="checkbox" <?php echo isset($theChampCounterOptions['category']) ? 'checked = "checked"' : '';?> value="1" />
|
354 |
<label for="the_champ_counter_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
355 |
+
<?php
|
356 |
+
if($theChampIsBpActive){
|
357 |
+
?>
|
358 |
+
<br/>
|
359 |
+
<input id="the_champ_counter_bp_activity" name="the_champ_counter[bp_activity]" type="checkbox" <?php echo isset($theChampCounterOptions['bp_activity']) ? 'checked = "checked"' : '';?> value="1" />
|
360 |
+
<label for="the_champ_counter_bp_activity"><?php _e('BuddyPress activity and groups', 'Super-Socializer') ?></label>
|
361 |
+
<?php
|
362 |
+
}
|
363 |
+
if(function_exists('is_bbpress')){
|
364 |
+
?>
|
365 |
+
<br/>
|
366 |
+
<input id="the_champ_counter_bb_forum" name="the_champ_counter[bb_forum]" type="checkbox" <?php echo isset($theChampCounterOptions['bb_forum']) ? 'checked = "checked"' : '';?> value="1" />
|
367 |
+
<label for="the_champ_counter_bb_forum"><?php _e('BBPress forum', 'Super-Socializer') ?></label>
|
368 |
+
<br/>
|
369 |
+
<input id="the_champ_counter_bb_topic" name="the_champ_counter[bb_topic]" type="checkbox" <?php echo isset($theChampCounterOptions['bb_topic']) ? 'checked = "checked"' : '';?> value="1" />
|
370 |
+
<label for="the_champ_counter_bb_topic"><?php _e('BBPress topic', 'Super-Socializer') ?></label>
|
371 |
+
<br/>
|
372 |
+
<input id="the_champ_counter_bb_reply" name="the_champ_counter[bb_reply]" type="checkbox" <?php echo isset($theChampCounterOptions['bb_reply']) ? 'checked = "checked"' : '';?> value="1" />
|
373 |
+
<label for="the_champ_counter_bb_reply"><?php _e('BBPress reply', 'Super-Socializer') ?></label>
|
374 |
+
<?php
|
375 |
+
}
|
376 |
+
?>
|
377 |
</td>
|
378 |
</tr>
|
379 |
|
413 |
</tr>
|
414 |
|
415 |
<tbody id="the_champ_vertical_counter_options" <?php echo isset($theChampCounterOptions['vertical_enable']) ? '' : 'style="display: none"'; ?>>
|
416 |
+
<tr>
|
417 |
+
<th>
|
418 |
+
<img id="the_champ_sc_vertical_target_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
419 |
+
<label for="the_champ_sc_vertical_target_url"><?php _e("Target Url", 'Super-Socializer'); ?></label>
|
420 |
+
</th>
|
421 |
+
<td id="the_champ_vertical_target_url_column">
|
422 |
+
<input id="the_champ_vertical_target_url_default" name="the_champ_counter[vertical_target_url]" type="radio" <?php echo !isset($theChampCounterOptions['vertical_target_url']) || $theChampCounterOptions['vertical_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
|
423 |
+
<label for="the_champ_vertical_target_url_default"><?php _e('Url of the webpage where icons are located (default)', 'Super-Socializer') ?></label><br/>
|
424 |
+
<input id="the_champ_vertical_target_url_home" name="the_champ_counter[vertical_target_url]" type="radio" <?php echo isset($theChampCounterOptions['vertical_target_url']) && $theChampCounterOptions['vertical_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
|
425 |
+
<label for="the_champ_vertical_target_url_home"><?php _e('Url of the homepage of your website', 'Super-Socializer') ?></label><br/>
|
426 |
+
<input id="the_champ_vertical_target_url_custom" name="the_champ_counter[vertical_target_url]" type="radio" <?php echo isset($theChampCounterOptions['vertical_target_url']) && $theChampCounterOptions['vertical_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
427 |
+
<label for="the_champ_vertical_target_url_custom"><?php _e('Custom url', 'Super-Socializer') ?></label><br/>
|
428 |
+
<input id="the_champ_vertical_target_url_custom_url" name="the_champ_counter[vertical_target_url_custom]" type="text" value="<?php echo isset($theChampCounterOptions['vertical_target_url_custom']) ? $theChampCounterOptions['vertical_target_url_custom'] : '' ?>" />
|
429 |
+
</td>
|
430 |
+
</tr>
|
431 |
+
<tr class="the_champ_help_content" id="the_champ_sc_vertical_target_url_help_cont">
|
432 |
+
<td colspan="2">
|
433 |
+
<div>
|
434 |
+
<?php _e('Url to like/share/tweet and display like/share/tweet counts', 'Super-Socializer') ?>
|
435 |
+
</div>
|
436 |
+
</td>
|
437 |
+
</tr>
|
438 |
|
439 |
<tr>
|
440 |
<th>
|
600 |
<label for="the_champ_counter_vertical_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
601 |
<input id="the_champ_counter_vertical_category" name="the_champ_counter[vertical_category]" type="checkbox" <?php echo isset($theChampCounterOptions['vertical_category']) ? 'checked = "checked"' : '';?> value="1" />
|
602 |
<label for="the_champ_counter_vertical_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
603 |
+
<?php
|
604 |
+
if(function_exists('is_bbpress')){
|
605 |
+
?>
|
606 |
+
<br/>
|
607 |
+
<input id="the_champ_counter_vertical_bb_forum" name="the_champ_counter[vertical_bb_forum]" type="checkbox" <?php echo isset($theChampCounterOptions['vertical_bb_forum']) ? 'checked = "checked"' : '';?> value="1" />
|
608 |
+
<label for="the_champ_counter_vertical_bb_forum"><?php _e('BBPress forum', 'Super-Socializer') ?></label>
|
609 |
+
<br/>
|
610 |
+
<input id="the_champ_counter_vertical_bb_topic" name="the_champ_counter[vertical_bb_topic]" type="checkbox" <?php echo isset($theChampCounterOptions['vertical_bb_topic']) ? 'checked = "checked"' : '';?> value="1" />
|
611 |
+
<label for="the_champ_counter_vertical_bb_topic"><?php _e('BBPress topic', 'Super-Socializer') ?></label>
|
612 |
+
<?php
|
613 |
+
}
|
614 |
+
?>
|
615 |
</td>
|
616 |
</tr>
|
617 |
|
646 |
<p><strong>[TheChamp-Counter style="background-color:#000;"]</strong></p>
|
647 |
|
648 |
<strong style="font-size: 16px">Type</strong>
|
649 |
+
<p><?php _e('Use <strong>type</strong> attribute to specify the type ("horizontal" or "vertical") of Social Counter interface. Default type is "horizontal".', 'Super-Socializer') ?></p>
|
650 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
651 |
<p><strong>[TheChamp-Counter type="vertical"]</strong></p>
|
652 |
|
admin/social_login.php
CHANGED
@@ -2,7 +2,6 @@
|
|
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">
|
@@ -36,14 +35,6 @@
|
|
36 |
</td>
|
37 |
</tr>
|
38 |
|
39 |
-
<tr id="the_champ_sl_curl" style="display: none">
|
40 |
-
<td colspan="2">
|
41 |
-
<div>
|
42 |
-
<?php _e('Note: Twitter Social Login requires "cURL support = enabled" in your php.ini file.', 'Super-Socializer') ?>
|
43 |
-
</div>
|
44 |
-
</td>
|
45 |
-
</tr>
|
46 |
-
|
47 |
<tr>
|
48 |
<th>
|
49 |
<img id="the_champ_sl_providers_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
@@ -55,7 +46,7 @@
|
|
55 |
<label for="the_champ_login_facebook"><?php _e("Facebook", 'Super-Socializer'); ?></label>
|
56 |
</div>
|
57 |
<div class="theChampHorizontalSharingProviderContainer">
|
58 |
-
<input id="the_champ_login_twitter"
|
59 |
<label for="the_champ_login_twitter"><?php _e("Twitter", 'Super-Socializer'); ?></label>
|
60 |
</div>
|
61 |
<div class="theChampHorizontalSharingProviderContainer">
|
@@ -74,6 +65,10 @@
|
|
74 |
<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" />
|
75 |
<label for="the_champ_login_instagram"><?php _e("Instagram", 'Super-Socializer'); ?></label>
|
76 |
</div>
|
|
|
|
|
|
|
|
|
77 |
</td>
|
78 |
</tr>
|
79 |
|
@@ -99,6 +94,10 @@
|
|
99 |
<td colspan="2">
|
100 |
<div>
|
101 |
<?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/') ?>
|
|
|
|
|
|
|
|
|
102 |
</div>
|
103 |
</td>
|
104 |
</tr>
|
@@ -117,6 +116,10 @@
|
|
117 |
<td colspan="2">
|
118 |
<div>
|
119 |
<?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 API Key', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/28/getting-twitter-consumer-key-and-secret/') ?>
|
|
|
|
|
|
|
|
|
120 |
</div>
|
121 |
</td>
|
122 |
</tr>
|
@@ -135,6 +138,10 @@
|
|
135 |
<td colspan="2">
|
136 |
<div>
|
137 |
<?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 API Secret', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/28/getting-twitter-consumer-key-and-secret/') ?>
|
|
|
|
|
|
|
|
|
138 |
</div>
|
139 |
</td>
|
140 |
</tr>
|
@@ -153,6 +160,10 @@
|
|
153 |
<td colspan="2">
|
154 |
<div>
|
155 |
<?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/') ?>
|
|
|
|
|
|
|
|
|
156 |
</div>
|
157 |
</td>
|
158 |
</tr>
|
@@ -171,6 +182,10 @@
|
|
171 |
<td colspan="2">
|
172 |
<div>
|
173 |
<?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/') ?>
|
|
|
|
|
|
|
|
|
174 |
</div>
|
175 |
</td>
|
176 |
</tr>
|
@@ -189,6 +204,10 @@
|
|
189 |
<td colspan="2">
|
190 |
<div>
|
191 |
<?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/') ?>
|
|
|
|
|
|
|
|
|
192 |
</div>
|
193 |
</td>
|
194 |
</tr>
|
@@ -207,6 +226,54 @@
|
|
207 |
<td colspan="2">
|
208 |
<div>
|
209 |
<?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/') ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
</div>
|
211 |
</td>
|
212 |
</tr>
|
@@ -344,7 +411,7 @@
|
|
344 |
<label for="the_champ_login_avatar"><?php _e("Enable social avatar", 'Super-Socializer'); ?></label>
|
345 |
</th>
|
346 |
<td>
|
347 |
-
<input id="the_champ_login_avatar" name="the_champ_login[avatar]" type="checkbox" <?php echo isset($theChampLoginOptions['avatar']) ? 'checked = "checked"' : '';?> value="1" />
|
348 |
</td>
|
349 |
</tr>
|
350 |
|
@@ -357,6 +424,26 @@
|
|
357 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpavatar2.png', __FILE__); ?>" />
|
358 |
</td>
|
359 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
<tr>
|
362 |
<th>
|
@@ -407,6 +494,10 @@
|
|
407 |
<label for="the_champ_login_redirection_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
408 |
<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" />
|
409 |
<label for="the_champ_login_redirection_account"><?php _e('Account dashboard', 'Super-Socializer') ?></label><br/>
|
|
|
|
|
|
|
|
|
410 |
<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" />
|
411 |
<label for="the_champ_login_redirection_custom"><?php _e('Custom Url', 'Super-Socializer') ?></label><br/>
|
412 |
<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'] : '' ?>" />
|
@@ -428,11 +519,15 @@
|
|
428 |
</th>
|
429 |
<td id="the_champ_register_redirection_column">
|
430 |
<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" />
|
431 |
-
<label for="the_champ_register_redirection_same"><?php _e('Same page where user
|
432 |
<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" />
|
433 |
<label for="the_champ_register_redirection_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
434 |
<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" />
|
435 |
<label for="the_champ_register_redirection_account"><?php _e('Account dashboard', 'Super-Socializer') ?></label><br/>
|
|
|
|
|
|
|
|
|
436 |
<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" />
|
437 |
<label for="the_champ_register_redirection_custom"><?php _e('Custom Url', 'Super-Socializer') ?></label><br/>
|
438 |
<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'] : '' ?>" />
|
2 |
<div id="fb-root"></div>
|
3 |
<div class="metabox-holder">
|
4 |
<div class="menu_div" id="tabs">
|
|
|
5 |
<form action="options.php" method="post">
|
6 |
<?php settings_fields('the_champ_login_options'); ?>
|
7 |
<h2 class="nav-tab-wrapper" style="height:37px">
|
35 |
</td>
|
36 |
</tr>
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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__) ?>" />
|
46 |
<label for="the_champ_login_facebook"><?php _e("Facebook", 'Super-Socializer'); ?></label>
|
47 |
</div>
|
48 |
<div class="theChampHorizontalSharingProviderContainer">
|
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", 'Super-Socializer'); ?></label>
|
51 |
</div>
|
52 |
<div class="theChampHorizontalSharingProviderContainer">
|
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", 'Super-Socializer'); ?></label>
|
67 |
</div>
|
68 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
69 |
+
<input id="the_champ_login_xing" name="the_champ_login[providers][]" type="checkbox" <?php echo isset($theChampLoginOptions['providers']) && in_array('xing', $theChampLoginOptions['providers']) ? 'checked = "checked"' : '';?> value="xing" />
|
70 |
+
<label for="the_champ_login_xing"><?php _e("Xing", 'Super-Socializer'); ?></label>
|
71 |
+
</div>
|
72 |
</td>
|
73 |
</tr>
|
74 |
|
94 |
<td colspan="2">
|
95 |
<div>
|
96 |
<?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/') ?>
|
97 |
+
<br/>
|
98 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Site URL</strong> option at the link mentioned', 'Super-Socializer'); ?></span>
|
99 |
+
<br/>
|
100 |
+
<strong style="color: #14ACDF"><?php echo site_url(); ?></strong>
|
101 |
</div>
|
102 |
</td>
|
103 |
</tr>
|
116 |
<td colspan="2">
|
117 |
<div>
|
118 |
<?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 API Key', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/28/getting-twitter-consumer-key-and-secret/') ?>
|
119 |
+
<br/>
|
120 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Website</strong> and <strong>Callback URL</strong> options at the link mentioned', 'Super-Socializer'); ?></span>
|
121 |
+
<br/>
|
122 |
+
<strong style="color: #14ACDF"><?php echo site_url(); ?></strong>
|
123 |
</div>
|
124 |
</td>
|
125 |
</tr>
|
138 |
<td colspan="2">
|
139 |
<div>
|
140 |
<?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 API Secret', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/01/28/getting-twitter-consumer-key-and-secret/') ?>
|
141 |
+
<br/>
|
142 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Website</strong> and <strong>Callback URL</strong> options at the link mentioned', 'Super-Socializer'); ?></span>
|
143 |
+
<br/>
|
144 |
+
<strong style="color: #14ACDF"><?php echo site_url(); ?></strong>
|
145 |
</div>
|
146 |
</td>
|
147 |
</tr>
|
160 |
<td colspan="2">
|
161 |
<div>
|
162 |
<?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/') ?>
|
163 |
+
<br/>
|
164 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Website URL</strong> option at the link mentioned', 'Super-Socializer'); ?></span>
|
165 |
+
<br/>
|
166 |
+
<strong style="color: #14ACDF"><?php echo site_url(); ?></strong>
|
167 |
</div>
|
168 |
</td>
|
169 |
</tr>
|
182 |
<td colspan="2">
|
183 |
<div>
|
184 |
<?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/') ?>
|
185 |
+
<br/>
|
186 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>AUTHORIZED JAVASCRIPT ORIGINS</strong> and <strong>AUTHORIZED REDIRECT URI</strong> options at the link mentioned', 'Super-Socializer'); ?></span>
|
187 |
+
<br/>
|
188 |
+
<strong style="color: #14ACDF"><?php echo (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']; ?></strong>
|
189 |
</div>
|
190 |
</td>
|
191 |
</tr>
|
204 |
<td colspan="2">
|
205 |
<div>
|
206 |
<?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/') ?>
|
207 |
+
<br/>
|
208 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Site address</strong> option at the link mentioned', 'Super-Socializer'); ?></span>
|
209 |
+
<br/>
|
210 |
+
<strong style="color: #14ACDF"><?php echo site_url(); ?></strong>
|
211 |
</div>
|
212 |
</td>
|
213 |
</tr>
|
226 |
<td colspan="2">
|
227 |
<div>
|
228 |
<?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/') ?>
|
229 |
+
<br/>
|
230 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Website</strong> and <strong>OAuth redirect_uri</strong> options at the link mentioned', 'Super-Socializer'); ?></span>
|
231 |
+
<br/>
|
232 |
+
<strong style="color: #14ACDF"><?php echo site_url(); ?></strong>
|
233 |
+
</div>
|
234 |
+
</td>
|
235 |
+
</tr>
|
236 |
+
|
237 |
+
<tr>
|
238 |
+
<th>
|
239 |
+
<img id="the_champ_slxing_ck_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
240 |
+
<label for="the_champ_slxing_ck"><?php _e("Xing Consumer Key", 'Super-Socializer'); ?></label>
|
241 |
+
</th>
|
242 |
+
<td>
|
243 |
+
<input id="the_champ_slxing_ck" name="the_champ_login[xing_ck]" type="text" value="<?php echo isset($theChampLoginOptions['xing_ck']) ? $theChampLoginOptions['xing_ck'] : '' ?>" />
|
244 |
+
</td>
|
245 |
+
</tr>
|
246 |
+
|
247 |
+
<tr class="the_champ_help_content" id="the_champ_slxing_ck_help_cont">
|
248 |
+
<td colspan="2">
|
249 |
+
<div>
|
250 |
+
<?php echo sprintf(__('Required for Xing Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Xing Consumer Key', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/12/06/how-to-get-xing-consumer-key-and-secret/') ?>
|
251 |
+
<br/>
|
252 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Callback domain</strong> option at the link mentioned', 'Super-Socializer'); ?></span>
|
253 |
+
<br/>
|
254 |
+
<strong style="color: #14ACDF"><?php echo (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']; ?></strong>
|
255 |
+
</div>
|
256 |
+
</td>
|
257 |
+
</tr>
|
258 |
+
|
259 |
+
<tr>
|
260 |
+
<th>
|
261 |
+
<img id="the_champ_slxing_cs_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
262 |
+
<label for="the_champ_slxing_cs"><?php _e("Xing Consumer Secret", 'Super-Socializer'); ?></label>
|
263 |
+
</th>
|
264 |
+
<td>
|
265 |
+
<input id="the_champ_slxing_cs" name="the_champ_login[xing_cs]" type="text" value="<?php echo isset($theChampLoginOptions['xing_cs']) ? $theChampLoginOptions['xing_cs'] : '' ?>" />
|
266 |
+
</td>
|
267 |
+
</tr>
|
268 |
+
|
269 |
+
<tr class="the_champ_help_content" id="the_champ_slxing_cs_help_cont">
|
270 |
+
<td colspan="2">
|
271 |
+
<div>
|
272 |
+
<?php echo sprintf(__('Required for Xing Social Login to work. Please follow the documentation at <a href="%s" target="_blank">this link</a> to get Xing Consumer Secret', 'Super-Socializer'), '//thechamplord.wordpress.com/2014/12/06/how-to-get-xing-consumer-key-and-secret/') ?>
|
273 |
+
<br/>
|
274 |
+
<span style="color: #14ACDF"><?php _e('Paste following url in <strong>Callback domain</strong> option at the link mentioned', 'Super-Socializer'); ?></span>
|
275 |
+
<br/>
|
276 |
+
<strong style="color: #14ACDF"><?php echo (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']; ?></strong>
|
277 |
</div>
|
278 |
</td>
|
279 |
</tr>
|
411 |
<label for="the_champ_login_avatar"><?php _e("Enable social avatar", 'Super-Socializer'); ?></label>
|
412 |
</th>
|
413 |
<td>
|
414 |
+
<input id="the_champ_login_avatar" onclick="if(this.checked){jQuery('#the_champ_avatar_options').css('display', 'table-row-group')}else{ jQuery('#the_champ_avatar_options').css('display', 'none') }" name="the_champ_login[avatar]" type="checkbox" <?php echo isset($theChampLoginOptions['avatar']) ? 'checked = "checked"' : '';?> value="1" />
|
415 |
</td>
|
416 |
</tr>
|
417 |
|
424 |
<img src="<?php echo plugins_url('../images/snaps/sl_wpavatar2.png', __FILE__); ?>" />
|
425 |
</td>
|
426 |
</tr>
|
427 |
+
<tbody id="the_champ_avatar_options" <?php echo !isset($theChampLoginOptions['avatar']) ? 'style = "display: none"' : '';?> >
|
428 |
+
<tr>
|
429 |
+
<th>
|
430 |
+
<img id="the_champ_sl_avatar_quality_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
431 |
+
<label><?php _e("Avatar quality", 'Super-Socializer'); ?></label>
|
432 |
+
</th>
|
433 |
+
<td>
|
434 |
+
<input id="the_champ_login_average_avatar" name="the_champ_login[avatar_quality]" type="radio" <?php echo !isset($theChampLoginOptions['avatar_quality']) || $theChampLoginOptions['avatar_quality'] == 'average' ? 'checked = "checked"' : '';?> value="average" /> <label for="the_champ_login_average_avatar"><?php _e("Average", 'Super-Socializer'); ?></label><br/>
|
435 |
+
<input id="the_champ_login_better_avatar" name="the_champ_login[avatar_quality]" type="radio" <?php echo isset($theChampLoginOptions['avatar_quality']) && $theChampLoginOptions['avatar_quality'] == 'better' ? 'checked = "checked"' : '';?> value="better" /> <label for="the_champ_login_better_avatar"><?php _e("Better", 'Super-Socializer'); ?></label>
|
436 |
+
</td>
|
437 |
+
</tr>
|
438 |
+
|
439 |
+
<tr class="the_champ_help_content" id="the_champ_sl_avatar_quality_help_cont">
|
440 |
+
<td colspan="2">
|
441 |
+
<div>
|
442 |
+
<?php _e('Choose avatar quality', 'Super-Socializer') ?>
|
443 |
+
</div>
|
444 |
+
</td>
|
445 |
+
</tr>
|
446 |
+
</tbody>
|
447 |
|
448 |
<tr>
|
449 |
<th>
|
494 |
<label for="the_champ_login_redirection_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
495 |
<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" />
|
496 |
<label for="the_champ_login_redirection_account"><?php _e('Account dashboard', 'Super-Socializer') ?></label><br/>
|
497 |
+
<?php if($theChampIsBpActive){ ?>
|
498 |
+
<input id="the_champ_login_redirection_bp" name="the_champ_login[login_redirection]" type="radio" <?php echo isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'bp_profile' ? 'checked = "checked"' : '';?> value="bp_profile" />
|
499 |
+
<label for="the_champ_login_redirection_bp"><?php _e('BuddyPress profile page', 'Super-Socializer') ?></label><br/>
|
500 |
+
<?php } ?>
|
501 |
<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" />
|
502 |
<label for="the_champ_login_redirection_custom"><?php _e('Custom Url', 'Super-Socializer') ?></label><br/>
|
503 |
<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'] : '' ?>" />
|
519 |
</th>
|
520 |
<td id="the_champ_register_redirection_column">
|
521 |
<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" />
|
522 |
+
<label for="the_champ_register_redirection_same"><?php _e('Same page from where user registered', 'Super-Socializer') ?></label><br/>
|
523 |
<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" />
|
524 |
<label for="the_champ_register_redirection_home"><?php _e('Homepage', 'Super-Socializer') ?></label><br/>
|
525 |
<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" />
|
526 |
<label for="the_champ_register_redirection_account"><?php _e('Account dashboard', 'Super-Socializer') ?></label><br/>
|
527 |
+
<?php if($theChampIsBpActive){ ?>
|
528 |
+
<input id="the_champ_register_redirection_bp" name="the_champ_login[register_redirection]" type="radio" <?php echo isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'bp_profile' ? 'checked = "checked"' : '';?> value="bp_profile" />
|
529 |
+
<label for="the_champ_register_redirection_bp"><?php _e('BuddyPress profile page', 'Super-Socializer') ?></label><br/>
|
530 |
+
<?php } ?>
|
531 |
<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" />
|
532 |
<label for="the_champ_register_redirection_custom"><?php _e('Custom Url', 'Super-Socializer') ?></label><br/>
|
533 |
<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'] : '' ?>" />
|
admin/social_sharing.php
CHANGED
@@ -7,7 +7,6 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
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">
|
@@ -70,7 +69,7 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
70 |
<tr>
|
71 |
<td colspan="2">
|
72 |
<div>
|
73 |
-
<?php _e('<strong>Note:</strong> To disable sharing on particular page/post, edit that page/post and check the options at the bottom in <strong>"Super Socializer"</strong> section', 'Super-Socializer') ?>
|
74 |
</div>
|
75 |
<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__) ?>" />
|
76 |
</td>
|
@@ -198,6 +197,29 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
198 |
</tr>
|
199 |
|
200 |
<tbody id="the_champ_horizontal_sharing_options" <?php echo isset($theChampSharingOptions['hor_enable']) ? '' : 'style="display: none"'; ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
<tr>
|
202 |
<th>
|
203 |
<img id="the_champ_ss_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
@@ -296,6 +318,11 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
296 |
<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" />
|
297 |
<label for="the_champ_sharing_pinterest"><?php _e("Pinterest", 'Super-Socializer'); ?></label>
|
298 |
</div>
|
|
|
|
|
|
|
|
|
|
|
299 |
</td>
|
300 |
</tr>
|
301 |
|
@@ -338,6 +365,28 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
338 |
</td>
|
339 |
</tr>
|
340 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
<tr>
|
342 |
<th>
|
343 |
<img id="the_champ_ss_position_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
@@ -375,6 +424,28 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
375 |
<label for="the_champ_sharing_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
376 |
<input id="the_champ_sharing_category" name="the_champ_sharing[category]" type="checkbox" <?php echo isset($theChampSharingOptions['category']) ? 'checked = "checked"' : '';?> value="1" />
|
377 |
<label for="the_champ_sharing_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
</td>
|
379 |
</tr>
|
380 |
|
@@ -433,6 +504,28 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
433 |
</tr>
|
434 |
|
435 |
<tbody id="the_champ_vertical_sharing_options" <?php echo isset($theChampSharingOptions['vertical_enable']) ? '' : 'style="display: none"'; ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
436 |
|
437 |
<tr>
|
438 |
<th>
|
@@ -514,6 +607,11 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
514 |
<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" />
|
515 |
<label for="the_champ_vertical_sharing_pinterest"><?php _e("Pinterest", 'Super-Socializer'); ?></label>
|
516 |
</div>
|
|
|
|
|
|
|
|
|
|
|
517 |
</td>
|
518 |
</tr>
|
519 |
|
@@ -669,6 +767,18 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
669 |
<label for="the_champ_sharing_vertical_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
670 |
<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" />
|
671 |
<label for="the_champ_sharing_vertical_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
672 |
</td>
|
673 |
</tr>
|
674 |
|
@@ -716,22 +826,27 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
716 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
717 |
<p><strong>[TheChamp-Sharing]</strong></p>
|
718 |
<p><?php _e('You can use following attributes in the Shortcode', 'Super-Socializer') ?></p>
|
719 |
-
<strong style="font-size: 16px">
|
720 |
<p><?php _e('Use <strong>style</strong> attribute to style the rendered Social Sharing interface', 'Super-Socializer') ?></p>
|
721 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
722 |
<p><strong>[TheChamp-Sharing style="background-color:#000;"]</strong></p>
|
723 |
|
724 |
-
<strong style="font-size: 16px">
|
725 |
-
<p><?php _e('Use <strong>type</strong> attribute to specify the type ("
|
726 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
727 |
<p><strong>[TheChamp-Sharing type="vertical"]</strong></p>
|
728 |
|
729 |
-
<strong style="font-size: 16px"
|
|
|
|
|
|
|
|
|
|
|
730 |
<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>
|
731 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
732 |
<p><strong>[TheChamp-Sharing type="vertical" left="500"]</strong></p>
|
733 |
|
734 |
-
<strong style="font-size: 16px"><?php _e('
|
735 |
<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>
|
736 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
737 |
<p><strong>[TheChamp-Sharing type="vertical" top="200"]</strong></p>
|
@@ -778,7 +893,7 @@ var theChampSharingIconPath = '<?php echo plugins_url('../images/sharing', __FIL
|
|
778 |
<div class="inside">
|
779 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
780 |
<tr>
|
781 |
-
<td><?php _e('
|
782 |
</tr>
|
783 |
</table>
|
784 |
</div>
|
7 |
|
8 |
<div class="metabox-holder columns-2" id="post-body">
|
9 |
<div class="menu_div" id="tabs">
|
|
|
10 |
<form action="options.php" method="post">
|
11 |
<?php settings_fields('the_champ_sharing_options'); ?>
|
12 |
<h2 class="nav-tab-wrapper" style="height:36px">
|
69 |
<tr>
|
70 |
<td colspan="2">
|
71 |
<div>
|
72 |
+
<?php _e('<strong>Note:</strong> To disable sharing and specify minimum share counts per social network on particular page/post, edit that page/post and check the options 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>
|
197 |
</tr>
|
198 |
|
199 |
<tbody id="the_champ_horizontal_sharing_options" <?php echo isset($theChampSharingOptions['hor_enable']) ? '' : 'style="display: none"'; ?>>
|
200 |
+
<tr>
|
201 |
+
<th>
|
202 |
+
<img id="the_champ_ss_horizontal_target_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
203 |
+
<label for="the_champ_ss_horizontal_target_url"><?php _e("Target Url", 'Super-Socializer'); ?></label>
|
204 |
+
</th>
|
205 |
+
<td id="the_champ_target_url_column">
|
206 |
+
<input id="the_champ_target_url_default" name="the_champ_sharing[horizontal_target_url]" type="radio" <?php echo !isset($theChampSharingOptions['horizontal_target_url']) || $theChampSharingOptions['horizontal_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
|
207 |
+
<label for="the_champ_target_url_default"><?php _e('Url of the webpage where icons are located (default)', 'Super-Socializer') ?></label><br/>
|
208 |
+
<input id="the_champ_target_url_home" name="the_champ_sharing[horizontal_target_url]" type="radio" <?php echo isset($theChampSharingOptions['horizontal_target_url']) && $theChampSharingOptions['horizontal_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
|
209 |
+
<label for="the_champ_target_url_home"><?php _e('Url of the homepage of your website', 'Super-Socializer') ?></label><br/>
|
210 |
+
<input id="the_champ_target_url_custom" name="the_champ_sharing[horizontal_target_url]" type="radio" <?php echo isset($theChampSharingOptions['horizontal_target_url']) && $theChampSharingOptions['horizontal_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
211 |
+
<label for="the_champ_target_url_custom"><?php _e('Custom url', 'Super-Socializer') ?></label><br/>
|
212 |
+
<input id="the_champ_target_url_custom_url" name="the_champ_sharing[horizontal_target_url_custom]" type="text" value="<?php echo isset($theChampSharingOptions['horizontal_target_url_custom']) ? $theChampSharingOptions['horizontal_target_url_custom'] : '' ?>" />
|
213 |
+
</td>
|
214 |
+
</tr>
|
215 |
+
<tr class="the_champ_help_content" id="the_champ_ss_horizontal_target_url_help_cont">
|
216 |
+
<td colspan="2">
|
217 |
+
<div>
|
218 |
+
<?php _e('Url to share', 'Super-Socializer') ?>
|
219 |
+
</div>
|
220 |
+
</td>
|
221 |
+
</tr>
|
222 |
+
|
223 |
<tr>
|
224 |
<th>
|
225 |
<img id="the_champ_ss_title_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
318 |
<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" />
|
319 |
<label for="the_champ_sharing_pinterest"><?php _e("Pinterest", 'Super-Socializer'); ?></label>
|
320 |
</div>
|
321 |
+
|
322 |
+
<div class="theChampHorizontalSharingProviderContainer">
|
323 |
+
<input id="the_champ_sharing_xing" name="the_champ_sharing[providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['providers']) && in_array('xing', $theChampSharingOptions['providers']) ? 'checked = "checked"' : '';?> value="xing" />
|
324 |
+
<label for="the_champ_sharing_xing"><?php _e("Xing", 'Super-Socializer'); ?></label>
|
325 |
+
</div>
|
326 |
</td>
|
327 |
</tr>
|
328 |
|
365 |
</td>
|
366 |
</tr>
|
367 |
|
368 |
+
<tr>
|
369 |
+
<th>
|
370 |
+
<img id="the_champ_ss_hor_alignment_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
371 |
+
<label for="the_champ_ss_hor_alignment"><?php _e("Horizontal alignment", 'Super-Socializer'); ?></label>
|
372 |
+
</th>
|
373 |
+
<td>
|
374 |
+
<select id="the_champ_ss_hor_alignment" name="the_champ_sharing[hor_sharing_alignment]">
|
375 |
+
<option value="left" <?php echo isset($theChampSharingOptions['hor_sharing_alignment']) && $theChampSharingOptions['hor_sharing_alignment'] == 'left' ? 'selected="selected"' : '' ?>><?php _e('Left', 'Super-Socializer') ?></option>
|
376 |
+
<option value="center" <?php echo isset($theChampSharingOptions['hor_sharing_alignment']) && $theChampSharingOptions['hor_sharing_alignment'] == 'center' ? 'selected="selected"' : '' ?>><?php _e('Center', 'Super-Socializer') ?></option>
|
377 |
+
<option value="right" <?php echo isset($theChampSharingOptions['hor_sharing_alignment']) && $theChampSharingOptions['hor_sharing_alignment'] == 'right' ? 'selected="selected"' : '' ?>><?php _e('Right', 'Super-Socializer') ?></option>
|
378 |
+
</select>
|
379 |
+
</td>
|
380 |
+
</tr>
|
381 |
+
|
382 |
+
<tr class="the_champ_help_content" id="the_champ_ss_hor_alignment_help_cont">
|
383 |
+
<td colspan="2">
|
384 |
+
<div>
|
385 |
+
<?php _e('Horizontal alignment of the sharing interface', 'Super-Socializer') ?>
|
386 |
+
</div>
|
387 |
+
</td>
|
388 |
+
</tr>
|
389 |
+
|
390 |
<tr>
|
391 |
<th>
|
392 |
<img id="the_champ_ss_position_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
424 |
<label for="the_champ_sharing_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
425 |
<input id="the_champ_sharing_category" name="the_champ_sharing[category]" type="checkbox" <?php echo isset($theChampSharingOptions['category']) ? 'checked = "checked"' : '';?> value="1" />
|
426 |
<label for="the_champ_sharing_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
427 |
+
<?php
|
428 |
+
if($theChampIsBpActive){
|
429 |
+
?>
|
430 |
+
<br/>
|
431 |
+
<input id="the_champ_sharing_bp_activity" name="the_champ_sharing[bp_activity]" type="checkbox" <?php echo isset($theChampSharingOptions['bp_activity']) ? 'checked = "checked"' : '';?> value="1" />
|
432 |
+
<label for="the_champ_sharing_bp_activity"><?php _e('BuddyPress activity and groups', 'Super-Socializer') ?></label>
|
433 |
+
<?php
|
434 |
+
}
|
435 |
+
if(function_exists('is_bbpress')){
|
436 |
+
?>
|
437 |
+
<br/>
|
438 |
+
<input id="the_champ_sharing_bb_forum" name="the_champ_sharing[bb_forum]" type="checkbox" <?php echo isset($theChampSharingOptions['bb_forum']) ? 'checked = "checked"' : '';?> value="1" />
|
439 |
+
<label for="the_champ_sharing_bb_forum"><?php _e('BBPress forum', 'Super-Socializer') ?></label>
|
440 |
+
<br/>
|
441 |
+
<input id="the_champ_sharing_bb_topic" name="the_champ_sharing[bb_topic]" type="checkbox" <?php echo isset($theChampSharingOptions['bb_topic']) ? 'checked = "checked"' : '';?> value="1" />
|
442 |
+
<label for="the_champ_sharing_bb_topic"><?php _e('BBPress topic', 'Super-Socializer') ?></label>
|
443 |
+
<br/>
|
444 |
+
<input id="the_champ_sharing_bb_reply" name="the_champ_sharing[bb_reply]" type="checkbox" <?php echo isset($theChampSharingOptions['bb_reply']) ? 'checked = "checked"' : '';?> value="1" />
|
445 |
+
<label for="the_champ_sharing_bb_reply"><?php _e('BBPress reply', 'Super-Socializer') ?></label>
|
446 |
+
<?php
|
447 |
+
}
|
448 |
+
?>
|
449 |
</td>
|
450 |
</tr>
|
451 |
|
504 |
</tr>
|
505 |
|
506 |
<tbody id="the_champ_vertical_sharing_options" <?php echo isset($theChampSharingOptions['vertical_enable']) ? '' : 'style="display: none"'; ?>>
|
507 |
+
<tr>
|
508 |
+
<th>
|
509 |
+
<img id="the_champ_ss_vertical_target_url_help" class="the_champ_help_bubble" src="<?php echo plugins_url('../images/info.png', __FILE__) ?>" />
|
510 |
+
<label for="the_champ_ss_vertical_target_url"><?php _e("Target Url", 'Super-Socializer'); ?></label>
|
511 |
+
</th>
|
512 |
+
<td id="the_champ_vertical_target_url_column">
|
513 |
+
<input id="the_champ_vertical_target_url_default" name="the_champ_sharing[vertical_target_url]" type="radio" <?php echo !isset($theChampSharingOptions['vertical_target_url']) || $theChampSharingOptions['vertical_target_url'] == 'default' ? 'checked = "checked"' : '';?> value="default" />
|
514 |
+
<label for="the_champ_vertical_target_url_default"><?php _e('Url of the webpage where icons are located (default)', 'Super-Socializer') ?></label><br/>
|
515 |
+
<input id="the_champ_vertical_target_url_home" name="the_champ_sharing[vertical_target_url]" type="radio" <?php echo isset($theChampSharingOptions['vertical_target_url']) && $theChampSharingOptions['vertical_target_url'] == 'home' ? 'checked = "checked"' : '';?> value="home" />
|
516 |
+
<label for="the_champ_vertical_target_url_home"><?php _e('Url of the homepage of your website', 'Super-Socializer') ?></label><br/>
|
517 |
+
<input id="the_champ_vertical_target_url_custom" name="the_champ_sharing[vertical_target_url]" type="radio" <?php echo isset($theChampSharingOptions['vertical_target_url']) && $theChampSharingOptions['vertical_target_url'] == 'custom' ? 'checked = "checked"' : '';?> value="custom" />
|
518 |
+
<label for="the_champ_vertical_target_url_custom"><?php _e('Custom url', 'Super-Socializer') ?></label><br/>
|
519 |
+
<input id="the_champ_vertical_target_url_custom_url" name="the_champ_sharing[vertical_target_url_custom]" type="text" value="<?php echo isset($theChampSharingOptions['vertical_target_url_custom']) ? $theChampSharingOptions['vertical_target_url_custom'] : '' ?>" />
|
520 |
+
</td>
|
521 |
+
</tr>
|
522 |
+
<tr class="the_champ_help_content" id="the_champ_ss_vertical_target_url_help_cont">
|
523 |
+
<td colspan="2">
|
524 |
+
<div>
|
525 |
+
<?php _e('Url to share', 'Super-Socializer') ?>
|
526 |
+
</div>
|
527 |
+
</td>
|
528 |
+
</tr>
|
529 |
|
530 |
<tr>
|
531 |
<th>
|
607 |
<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" />
|
608 |
<label for="the_champ_vertical_sharing_pinterest"><?php _e("Pinterest", 'Super-Socializer'); ?></label>
|
609 |
</div>
|
610 |
+
|
611 |
+
<div class="theChampVerticalSharingProviderContainer">
|
612 |
+
<input id="the_champ_vertical_sharing_xing" name="the_champ_sharing[vertical_providers][]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_providers']) && in_array('xing', $theChampSharingOptions['vertical_providers']) ? 'checked = "checked"' : '';?> value="xing" />
|
613 |
+
<label for="the_champ_vertical_sharing_xing"><?php _e("Xing", 'Super-Socializer'); ?></label>
|
614 |
+
</div>
|
615 |
</td>
|
616 |
</tr>
|
617 |
|
767 |
<label for="the_champ_sharing_vertical_excerpt"><?php _e('Excerpts', 'Super-Socializer') ?></label><br/>
|
768 |
<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" />
|
769 |
<label for="the_champ_sharing_vertical_category"><?php _e('Category Archives', 'Super-Socializer') ?></label>
|
770 |
+
<?php
|
771 |
+
if(function_exists('is_bbpress')){
|
772 |
+
?>
|
773 |
+
<br/>
|
774 |
+
<input id="the_champ_sharing_vertical_bb_forum" name="the_champ_sharing[vertical_bb_forum]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_bb_forum']) ? 'checked = "checked"' : '';?> value="1" />
|
775 |
+
<label for="the_champ_sharing_vertical_bb_forum"><?php _e('BBPress forum', 'Super-Socializer') ?></label>
|
776 |
+
<br/>
|
777 |
+
<input id="the_champ_sharing_vertical_bb_topic" name="the_champ_sharing[vertical_bb_topic]" type="checkbox" <?php echo isset($theChampSharingOptions['vertical_bb_topic']) ? 'checked = "checked"' : '';?> value="1" />
|
778 |
+
<label for="the_champ_sharing_vertical_bb_topic"><?php _e('BBPress topic', 'Super-Socializer') ?></label>
|
779 |
+
<?php
|
780 |
+
}
|
781 |
+
?>
|
782 |
</td>
|
783 |
</tr>
|
784 |
|
826 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
827 |
<p><strong>[TheChamp-Sharing]</strong></p>
|
828 |
<p><?php _e('You can use following attributes in the Shortcode', 'Super-Socializer') ?></p>
|
829 |
+
<strong style="font-size: 16px">style</strong>
|
830 |
<p><?php _e('Use <strong>style</strong> attribute to style the rendered Social Sharing interface', 'Super-Socializer') ?></p>
|
831 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
832 |
<p><strong>[TheChamp-Sharing style="background-color:#000;"]</strong></p>
|
833 |
|
834 |
+
<strong style="font-size: 16px">type</strong>
|
835 |
+
<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>
|
836 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
837 |
<p><strong>[TheChamp-Sharing type="vertical"]</strong></p>
|
838 |
|
839 |
+
<strong style="font-size: 16px">count</strong>
|
840 |
+
<p><?php _e('Use <strong>count</strong> attribute to enable the share counts on Social Sharing interface', 'Super-Socializer') ?></p>
|
841 |
+
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
842 |
+
<p><strong>[TheChamp-Sharing count="1"]</strong></p>
|
843 |
+
|
844 |
+
<strong style="font-size: 16px"><?php _e('left (Works with "Vertical" type interface only)', 'Super-Socializer') ?></strong>
|
845 |
<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>
|
846 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
847 |
<p><strong>[TheChamp-Sharing type="vertical" left="500"]</strong></p>
|
848 |
|
849 |
+
<strong style="font-size: 16px"><?php _e('top (Works with "Vertical" type interface only)', 'Super-Socializer') ?></strong>
|
850 |
<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>
|
851 |
<p><?php _e('Example', 'Super-Socializer') ?></p>
|
852 |
<p><strong>[TheChamp-Sharing type="vertical" top="200"]</strong></p>
|
893 |
<div class="inside">
|
894 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table editcomment menu_content_table">
|
895 |
<tr>
|
896 |
+
<td><?php _e('Choose "Url of the homepage of your website" in "Target Url" option and enable "Show share counts" option', 'Super-Socializer') ?></td>
|
897 |
</tr>
|
898 |
</table>
|
899 |
</div>
|
css/admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@charset "utf-8";#the_champ_sl_curl{color: #900}.clr{clear:both}h2.nav-tab-wrapper>ul>li{float:left;margin-left:5px}li.ui-tabs-active{border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:5px}li.ui-tabs-active a.nav-tab{background:0 0}.submit a{margin-left:20px}div.menu_containt_div>.stuffbox{width:763px}div.inside td,div.inside th{padding:7px}div.stuffbox h3{border-bottom:1px solid #eee}.theChampHorizontalSharingProviderContainer,.theChampVerticalSharingProviderContainer{width:165px;float:left}.the_champ_help_content{display:none;font-size:12px;color:#797979;line-height:15px;font-style:italic}.the_champ_help_content img{box-shadow:4px 4px 4px 4px #888;margin:8px 0}.the_champ_help_bubble{cursor:pointer;vertical-align:middle}#the_champ_ss_rearrange li,#the_champ_ss_vertical_rearrange li{cursor:move;float:left;display:block;margin:0 2px}#the_champ_ss_rearrange,#the_champ_ss_vertical_rearrange,#the_champ_sc_rearrange,#the_champ_sc_vertical_rearrange{margin:0} #the_champ_sc_rearrange li,#the_champ_sc_vertical_rearrange li{cursor:move;float:left;display:block;width:175px;margin:0} #the_champ_sc_vertical_rearrange label,#the_champ_sc_rearrange label{cursor: move} .the_champ_left_column{float:left;width:56%!important}.the_champ_right_column{float:left;width:37%;margin-left:10px}.the_champ_right_column td{display:block;width:120px!important;margin:0}.the_champ_clear{clear:both}.the_champ_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}input[type=text]{width:351px}.theChampLoginButton{background:url(../images/login/login.png) no-repeat;cursor:pointer}.theChampFacebookButton{background-position:0 0;width:32px;height:32px}.theChampWordpressButton{background-position:0 -96px;width:32px;height:32px}.theChampLinkedinButton{background-position:-32px -32px;width:32px;height:32px}.theChampTwitterButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingButton{display:block;background:url(../images/sharing/sharing.png) no-repeat}.theChampSharingDeliciousButton{background-position:0 0;width:32px;height:32px}.theChampSharingDiggButton{background-position:-32px 0;width:32px;height:32px}.theChampSharingEmailButton{background-position:-64px 0;width:32px;height:32px}.theChampSharingFacebookButton{background-position:-96px 0;width:32px;height:32px}.theChampSharingFloatitButton{background-position:0 -32px;width:32px;height:32px}.theChampSharingGoogleButton{background-position:-32px -32px;width:32px;height:32px}.theChampSharingLinkedinButton{background-position:-64px -32px;width:32px;height:32px}.theChampSharingPinterestButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingPrintButton{background-position:-32px -64px;width:32px;height:32px}.theChampSharingRedditButton{background-position:-64px -64px;width:32px;height:32px}.theChampSharingStumbleuponButton{background-position:-96px -64px;width:32px;height:32px}.theChampSharingTumblrButton{background-position:0 -96px;width:32px;height:32px}.theChampSharingTwitterButton{background-position:-32px -96px;width:32px;height:32px}.theChampSharingVkontakteButton{background-position:-64px -96px;width:32px;height:32px}.theChampSharingYahooButton{background-position:-96px -96px;width:32px;height:32px}#the_champ_troubleshoot_notification{color:red}
|
1 |
+
@charset "utf-8";#the_champ_sl_curl{color: #900}.clr{clear:both}h2.nav-tab-wrapper>ul>li{float:left;margin-left:5px}li.ui-tabs-active{border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:5px}li.ui-tabs-active a.nav-tab{background:0 0}.submit a{margin-left:20px}div.menu_containt_div>.stuffbox{width:763px}div.inside td,div.inside th{padding:7px}div.stuffbox h3{border-bottom:1px solid #eee}.theChampHorizontalSharingProviderContainer,.theChampVerticalSharingProviderContainer{width:165px;float:left}.the_champ_help_content{display:none;font-size:12px;color:#797979;line-height:15px;font-style:italic}.the_champ_help_content img{box-shadow:4px 4px 4px 4px #888;margin:8px 0}.the_champ_help_bubble{cursor:pointer;vertical-align:middle}#the_champ_ss_rearrange li,#the_champ_ss_vertical_rearrange li{cursor:move;float:left;display:block;margin:0 2px}#the_champ_ss_rearrange,#the_champ_ss_vertical_rearrange,#the_champ_sc_rearrange,#the_champ_sc_vertical_rearrange{margin:0} #the_champ_sc_rearrange li,#the_champ_sc_vertical_rearrange li{cursor:move;float:left;display:block;width:175px;margin:0} #the_champ_sc_vertical_rearrange label,#the_champ_sc_rearrange label{cursor: move} .the_champ_left_column{float:left;width:56%!important}.the_champ_right_column{float:left;width:37%;margin-left:10px}.the_champ_right_column td{display:block;width:120px!important;margin:0}.the_champ_clear{clear:both}.the_champ_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}input[type=text]{width:351px}.theChampLoginButton{background:url(../images/login/login.png) no-repeat;cursor:pointer}.theChampFacebookButton{background-position:0 0;width:32px;height:32px}.theChampWordpressButton{background-position:0 -96px;width:32px;height:32px}.theChampLinkedinButton{background-position:-32px -32px;width:32px;height:32px}.theChampTwitterButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingButton{display:block;background:url(../images/sharing/sharing.png) no-repeat}.theChampSharingDeliciousButton{background-position:0 0;width:32px;height:32px}.theChampSharingDiggButton{background-position:-32px 0;width:32px;height:32px}.theChampSharingEmailButton{background-position:-64px 0;width:32px;height:32px}.theChampSharingFacebookButton{background-position:-96px 0;width:32px;height:32px}.theChampSharingFloatitButton{background-position:0 -32px;width:32px;height:32px}.theChampSharingGoogleButton{background-position:-32px -32px;width:32px;height:32px}.theChampSharingLinkedinButton{background-position:-64px -32px;width:32px;height:32px}.theChampSharingPinterestButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingPrintButton{background-position:-32px -64px;width:32px;height:32px}.theChampSharingRedditButton{background-position:-64px -64px;width:32px;height:32px}.theChampSharingStumbleuponButton{background-position:-96px -64px;width:32px;height:32px}.theChampSharingTumblrButton{background-position:0 -96px;width:32px;height:32px}.theChampSharingTwitterButton{background-position:-32px -96px;width:32px;height:32px}.theChampSharingVkontakteButton{background-position:-64px -96px;width:32px;height:32px}.theChampSharingYahooButton{background-position:-96px -96px;width:32px;height:32px}.theChampSharingXingButton{background-position:0px -128px;width:32px;height:32px}#the_champ_troubleshoot_notification{color:red}
|
css/front.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
@charset "utf-8";#the_champ_error{color:red;margin:7px 0}.the_champ_login_container{margin:2px 0}.the_champ_login_container img{cursor:pointer;margin:2px;display:none;float:left;border:none}#the_champ_loading_image{display:block!important;float:none}.the_champ_sharing_container img{cursor:pointer;margin:2px;border:none}.the_champ_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}#the_champ_sharing_more_providers{position:fixed;top:50%;left:47%;background:none repeat scroll 0 0 #FAFAFA;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow: none !important}#the_champ_popup_bg{background:url(../images/transparent_bg.png) repeat scroll 0 0 rgba(0,0,0,0);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000}#the_champ_sharing_more_providers .title{background:none repeat scroll 0 0 #58B8F8!important;border-bottom:1px solid #D7D7D7!important;color:#fff;font-size:14px;font-weight:700;letter-spacing:inherit;line-height:34px!important;padding:0!important;text-align:center;text-transform:none;margin:0!important;text-shadow:none!important;width: 100%}#the_champ_sharing_more_providers *{font-family:Arial,Helvetica,sans-serif}#the_champ_sharing_more_providers #the_champ_sharing_more_content{background:none repeat scroll 0 0 #FAFAFA;border-radius:4px;color:#555;height:100%;width:100%}#the_champ_sharing_more_providers .filter{padding:10px 0 0;position:relative;width: 100%}#the_champ_sharing_more_providers .all-services{clear:both;height:250px;overflow:auto}#the_champ_sharing_more_content .all-services ul{margin:10px;overflow:hidden;list-style:none outside none;padding-left:0!important;position: static !important}#the_champ_sharing_more_content .all-services ul li{background:none repeat scroll 0 0 rgba(0,0,0,0)!important;float:left;width:33.3333%; text-align: left !important}#the_champ_sharing_more_providers .close-button.separated{background:transparent!important;border:none!important;box-shadow:none!important; width: auto !important; height: auto !important}#the_champ_sharing_more_providers .close-button{color:#555!important;cursor:pointer!important;font-size:29px!important;line-height:29px!important;margin:0!important;padding:0!important;position:absolute;right:-13px;top:-11px}#the_champ_sharing_more_providers .filter input.search{display:block;float:none;font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-weight:300;height:auto;line-height:inherit;margin:0 auto;padding:5px 8px 5px 10px;width:95%;border:1px solid #ccc !important;color:#000;background:none repeat scroll 0 0 #FFF!important;font-size:16px!important;text-align:left!important}#the_champ_sharing_more_providers .footer-panel{background:none repeat scroll 0 0 #58B8F8;border-top:1px solid #D7D7D7;padding:6px 0;width:100%;color:#fff}#the_champ_sharing_more_providers .footer-panel p{text-align: left !important;color:#000;font-family:'helvetica neue',arial,helvetica,sans-serif;font-size:12px;line-height:1.2;margin:0!important;padding:0 6px; text-indent: 0 !important}#the_champ_sharing_more_providers .footer-panel a{color:#fff;text-decoration:none;font-weight:700; text-indent: 0 !important}#the_champ_sharing_more_providers .all-services ul li a{border-radius:3px;color:#666!important;display:block;font-size:14px;height:auto;line-height:20px;overflow:hidden;padding:8px;text-decoration:none !important;text-overflow:ellipsis;white-space:nowrap;border:none!important; text-indent: 0 !important; background: none !important;}.the_champ_share_count{display:block;text-indent: 0 !important;visibility:hidden;background-color:#58B8F8!important;width:5px;height:auto;text-align:center;min-width:8px!important;padding:1px 4px!important;color:#fff!important;font-family:'Open Sans',arial,sans-serif!important;font-size:10px!important;font-weight:600!important;-webkit-border-radius:15px!important;border-radius:15px!important;-webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);box-shadow:0 2px 2px rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2);line-height:14px!important;border:2px solid #fff!important;z-index:1;margin:2px auto;webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}#the_champ_comment_toggle{margin-bottom:10px}.the_champ_sharing_service{display:block;background:url(../images/sharing/more_sprite.png) no-repeat;margin-right:3px;float:left}.the_champ_sharing_service_amazon{background-position:0 0;width:20px;height:20px}.the_champ_sharing_service_aol{background-position:-20px 0;width:20px;height:20px}.the_champ_sharing_service_arto{background-position:-40px 0;width:20px;height:20px}.the_champ_sharing_service_bebo{background-position:-60px 0;width:20px;height:20px}.the_champ_sharing_service_bitly{background-position:-80px 0;width:20px;height:20px}.the_champ_sharing_service_blogger{background-position:-100px 0;width:20px;height:20px}.the_champ_sharing_service_box{background-position:-120px 0;width:20px;height:20px}.the_champ_sharing_service_boxee{background-position:0 -20px;width:20px;height:20px}.the_champ_sharing_service_buffer{background-position:-20px -20px;width:20px;height:20px}.the_champ_sharing_service_buzzster{background-position:-40px -20px;width:20px;height:20px}.the_champ_sharing_service_delicious{background-position:-60px -20px;width:20px;height:20px}.the_champ_sharing_service_digg{background-position:-80px -20px;width:20px;height:20px}.the_champ_sharing_service_diigo{background-position:-100px -20px;width:20px;height:20px}.the_champ_sharing_service_diigolet{background-position:-120px -20px;width:20px;height:20px}.the_champ_sharing_service_email{background-position:0 -40px;width:20px;height:20px}.the_champ_sharing_service_evernote{background-position:-20px -40px;width:20px;height:20px}.the_champ_sharing_service_facebook{background-position:-40px -40px;width:20px;height:20px}.the_champ_sharing_service_fancy{background-position:-60px -40px;width:20px;height:20px}.the_champ_sharing_service_fark{background-position:-80px -40px;width:20px;height:20px}.the_champ_sharing_service_flipboard{background-position:-100px -40px;width:20px;height:20px}.the_champ_sharing_service_google{background-position:-120px -40px;width:20px;height:20px}.the_champ_sharing_service_google-apps{background-position:0 -60px;width:20px;height:20px}.the_champ_sharing_service_google-bookmark{background-position:-20px -60px;width:20px;height:20px}.the_champ_sharing_service_google-mail{background-position:-40px -60px;width:20px;height:20px}.the_champ_sharing_service_heart{background-position:-60px -60px;width:20px;height:20px}.the_champ_sharing_service_hootsuite{background-position:-80px -60px;width:20px;height:20px}.the_champ_sharing_service_hotmail{background-position:-100px -60px;width:20px;height:20px}.the_champ_sharing_service_identica{background-position:-120px -60px;width:20px;height:20px}.the_champ_sharing_service_inbound{background-position:0 -80px;width:20px;height:20px}.the_champ_sharing_service_instapaper{background-position:-20px -80px;width:20px;height:20px}.the_champ_sharing_service_izeby{background-position:-40px -80px;width:20px;height:20px}.the_champ_sharing_service_kaboodle{background-position:-60px -80px;width:20px;height:20px}.the_champ_sharing_service_linkedin{background-position:-80px -80px;width:20px;height:20px}.the_champ_sharing_service_mister-wong{background-position:-100px -80px;width:20px;height:20px}.the_champ_sharing_service_msdn{background-position:-120px -80px;width:20px;height:20px}.the_champ_sharing_service_ning{background-position:0 -100px;width:20px;height:20px}.the_champ_sharing_service_orkut{background-position:-20px -100px;width:20px;height:20px}.the_champ_sharing_service_pinboard{background-position:-40px -100px;width:20px;height:20px}.the_champ_sharing_service_pinterest{background-position:-60px -100px;width:20px;height:20px}.the_champ_sharing_service_plurk{background-position:-80px -100px;width:20px;height:20px}.the_champ_sharing_service_pocket{background-position:-100px -100px;width:20px;height:20px}.the_champ_sharing_service_print-friendly{background-position:-120px -100px;width:20px;height:20px}.the_champ_sharing_service_quora{background-position:0 -120px;width:20px;height:20px}.the_champ_sharing_service_read-later{background-position:-20px -120px;width:20px;height:20px}.the_champ_sharing_service_reddit{background-position:-40px -120px;width:20px;height:20px}.the_champ_sharing_service_soup{background-position:-60px -120px;width:20px;height:20px}.the_champ_sharing_service_springpad{background-position:-80px -120px;width:20px;height:20px}.the_champ_sharing_service_stumbleupon{background-position:-100px -120px;width:20px;height:20px}.the_champ_sharing_service_stumpedia{background-position:-120px -120px;width:20px;height:20px}.the_champ_sharing_service_techmeme{background-position:0 -140px;width:20px;height:20px}.the_champ_sharing_service_tinyurl{background-position:-20px -140px;width:20px;height:20px}.the_champ_sharing_service_tumblr{background-position:-40px -140px;width:20px;height:20px}.the_champ_sharing_service_twitter{background-position:-60px -140px;width:20px;height:20px}.the_champ_sharing_service_typepad{background-position:-80px -140px;width:20px;height:20px}.the_champ_sharing_service_viadeo{background-position:-100px -140px;width:20px;height:20px}.the_champ_sharing_service_vkontakte{background-position:-120px -140px;width:20px;height:20px}.the_champ_sharing_service_wanelo{background-position:0 -160px;width:20px;height:20px}.the_champ_sharing_service_windows-live{background-position:-20px -160px;width:20px;height:20px}.the_champ_sharing_service_wordpress{background-position:-40px -160px;width:20px;height:20px}.the_champ_sharing_service_yahoo{background-position:-60px -160px;width:20px;height:20px}.the_champ_sharing_service_yammer{background-position:-80px -160px;width:20px;height:20px}.the_champ_sharing_service_yc-hacker{background-position:-100px -160px;width:20px;height:20px}ul.the_champ_login_ul{list-style:none outside none!important;margin:3px 0!important;padding-left:0!important}ul.the_champ_login_ul li{background:none repeat scroll 0 0 rgba(0,0,0,0)!important;float:left;padding:0!important;margin:0!important;border:0!important;width:auto!important;clear:none!important;list-style:none!important}.theChampLoginButton{display:block;background:url(../images/login/login.png) no-repeat;margin:2px;float:left;cursor:pointer;border:none}.theChampFacebookButton{background-position:0 0;width:32px;height:32px;display:none}.theChampLiveButton{background-position:-32px -96px;width:32px;height:32px;display:block}.theChampGoogleButton{background-position:-32px 0;width:32px;height:32px;display:none}.theChampInstagramButton{background-position:0 -32px;width:32px;height:32px;display:block!important}.theChampLinkedinButton{background-position:-32px -32px;width:32px;height:32px;display:none}.theChampTwitterButton{background-position:0 -64px;width:32px;height:32px;display:block!important}.theChampVkontakteButton{background-position:-32px -64px;width:32px;height:32px;display:none}ul.the_champ_sharing_ul{list-style:none outside none!important;margin:1px 0!important;padding-left:0!important}#the_champ_sharing_popup_close img{background:transparent!important;border:none!important;outline:0!important;box-shadow:none!important;width: auto !important;height: auto !important;top: inherit !important;right: inherit !important;left: 9px !important; padding: 0 !important}ul.the_champ_sharing_ul li{background:none repeat scroll 0 0 rgba(0,0,0,0)!important;float:left!important;margin:0!important;padding:0!important;list-style:none!important;border:none!important}ul.the_champ_login_ul li:before,ul.the_champ_sharing_ul li:before{content: none !important}.theChampSharingButton{display:block;background:url(../images/sharing/sharing.png) no-repeat;margin:2px;float:left;cursor:pointer;border:none}.theChampSharingDeliciousButton{background-position:0 0;width:32px;height:32px}.theChampSharingDiggButton{background-position:-32px 0;width:32px;height:32px}.theChampSharingEmailButton{background-position:-64px 0;width:32px;height:32px}.theChampSharingFacebookButton{background-position:-96px 0;width:32px;height:32px}.theChampSharingFloatitButton{background-position:0 -32px;width:32px;height:32px}.theChampSharingGoogleButton{background-position:-32px -32px;width:32px;height:32px}.theChampSharingLinkedinButton{background-position:-64px -32px;width:32px;height:32px}.theChampSharingMoreButton{background-position:-96px -32px;width:32px;height:32px}.theChampSharingPinterestButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingPrintButton{background-position:-32px -64px;width:32px;height:32px}.theChampSharingRedditButton{background-position:-64px -64px;width:32px;height:32px}.theChampSharingStumbleuponButton{background-position:-96px -64px;width:32px;height:32px}.theChampSharingTumblrButton{background-position:0 -96px;width:32px;height:32px}.theChampSharingTwitterButton{background-position:-32px -96px;width:32px;height:32px}.theChampSharingVkontakteButton{background-position:-64px -96px;width:32px;height:32px}.theChampSharingYahooButton{background-position:-96px -96px;width:32px;height:32px}.the_champ_vertical_sharing{background:transparent;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;width:35px;opacity:1;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important;} .the_champ_vertical_counter{background:transparent;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;opacity:1;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important} .the_champ_vertical_counter li{clear:both} li.the_champ_facebook_like{width: 89px;} li.the_champ_facebook_recommend{width: 135px;} li.the_champ_twitter_tweet{width: 95px;} li.the_champ_linkedin_share{width: 105px;} li.the_champ_google_plusone{width: 74px;} li.the_champ_reddit{width: 130px;} li.the_champ_gp_share{width: 95px;} li.the_champ_pinterest_pin{width: 76px;} .the_champ_counter_container li{ height: 21px}
|
2 |
-
@media screen and (max-width:783px){#the_champ_sharing_more_providers{width:80%;left:60%;margin-left:-50%;text-shadow: none !important}#the_champ_sharing_more_providers .filter input.search{width: 92%}.the_champ_vertical_sharing, .the_champ_vertical_counter{display:none}}
|
1 |
+
@charset "utf-8";#the_champ_error{color:red;margin:7px 0}.the_champ_login_container{margin:2px 0}.the_champ_login_container img{cursor:pointer;margin:2px;display:none;float:left;border:none}#the_champ_loading_image{display:block!important;float:none}.the_champ_sharing_container img{cursor:pointer;margin:2px;border:none}.the_champ_error{background-color:#FFFFE0;border:1px solid #E6DB55;padding:5px;margin:10px}#the_champ_sharing_more_providers{position:fixed;top:50%;left:47%;background:none repeat scroll 0 0 #FAFAFA;width:650px;margin:-180px 0 0 -300px;z-index:10000000;text-shadow: none !important}#the_champ_popup_bg{background:url(../images/transparent_bg.png) repeat scroll 0 0 rgba(0,0,0,0);bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000}#the_champ_sharing_more_providers .title{font-size: 14px !important;height: auto !important;background:none repeat scroll 0 0 #58B8F8!important;border-bottom:1px solid #D7D7D7!important;color:#fff;font-weight:700;letter-spacing:inherit;line-height:34px!important;padding:0!important;text-align:center;text-transform:none;margin:0!important;text-shadow:none!important;width: 100%}#the_champ_sharing_more_providers *{font-family:Arial,Helvetica,sans-serif}#the_champ_sharing_more_providers #the_champ_sharing_more_content{background:none repeat scroll 0 0 #FAFAFA;border-radius:4px;color:#555;height:100%;width:100%}#the_champ_sharing_more_providers .filter{margin:0;padding:10px 0 0;position:relative;width: 100%}#the_champ_sharing_more_providers .all-services{clear:both;height:250px;overflow:auto}#the_champ_sharing_more_content .all-services ul{margin:10px;overflow:hidden;list-style:none outside none;padding-left:0!important;position: static !important}#the_champ_sharing_more_content .all-services ul li{background:none repeat scroll 0 0 rgba(0,0,0,0)!important;float:left;width:33.3333%; text-align: left !important}#the_champ_sharing_more_providers .close-button.separated{background:transparent!important;border:none!important;box-shadow:none!important; width: auto !important; height: auto !important;z-index: 1000}#the_champ_sharing_more_providers .close-button{height: auto !important;width: auto !important;left: auto !important;display: block !important;color:#555!important;cursor:pointer!important;font-size:29px!important;line-height:29px!important;margin:0!important;padding:0!important;position:absolute;right:-13px;top:-11px}#the_champ_sharing_more_providers .filter input.search{width: 92%;border: 1px solid #ccc;display:block;float:none;font-family:"open sans","helvetica neue",helvetica,arial,sans-serif;font-weight:300;height:auto;line-height:inherit;margin:0 auto;padding:5px 8px 5px 10px;border:1px solid #ccc !important;color:#000;background:none repeat scroll 0 0 #FFF!important;font-size:16px!important;text-align:left!important}#the_champ_sharing_more_providers .footer-panel{background:none repeat scroll 0 0 #58B8F8;border-top:1px solid #D7D7D7;padding:6px 0;width:100%;color:#fff}#the_champ_sharing_more_providers .footer-panel p{background-color: transparent;top:0px;text-align: left !important;color:#000;font-family:'helvetica neue',arial,helvetica,sans-serif;font-size:12px;line-height:1.2;margin:0!important;padding:0 6px !important; text-indent: 0 !important}#the_champ_sharing_more_providers .footer-panel a{color:#fff;text-decoration:none;font-weight:700; text-indent: 0 !important}#the_champ_sharing_more_providers .all-services ul li a{border-radius:3px;color:#666!important;display:block;font-size:14px;height:auto;line-height:20px;overflow:hidden;padding:8px;text-decoration:none !important;text-overflow:ellipsis;white-space:nowrap;border:none!important; text-indent: 0 !important; background: none !important;text-shadow: none}.the_champ_share_count{display:block;text-indent: 0 !important;visibility:hidden;background-color:#58B8F8!important;width:5px;height:auto;text-align:center;min-width:8px!important;padding:1px 4px!important;color:#fff!important;font-family:'Open Sans',arial,sans-serif!important;font-size:10px!important;font-weight:600!important;-webkit-border-radius:15px!important;border-radius:15px!important;-webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);box-shadow:0 2px 2px rgba(0,0,0,.4);text-shadow:0 -1px 0 rgba(0,0,0,.2);line-height:14px!important;border:2px solid #fff!important;z-index:1;margin:2px auto;webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}#the_champ_comment_toggle{margin-bottom:10px}.the_champ_sharing_service{display:block;background:url(../images/sharing/more_sprite.png) no-repeat;margin-right:3px;float:left}.the_champ_sharing_service_amazon{background-position:0 0;width:20px;height:20px}.the_champ_sharing_service_aol{background-position:-20px 0;width:20px;height:20px}.the_champ_sharing_service_arto{background-position:-40px 0;width:20px;height:20px}.the_champ_sharing_service_bebo{background-position:-60px 0;width:20px;height:20px}.the_champ_sharing_service_bitly{background-position:-80px 0;width:20px;height:20px}.the_champ_sharing_service_blogger{background-position:-100px 0;width:20px;height:20px}.the_champ_sharing_service_box{background-position:-120px 0;width:20px;height:20px}.the_champ_sharing_service_boxee{background-position:0 -20px;width:20px;height:20px}.the_champ_sharing_service_buffer{background-position:-20px -20px;width:20px;height:20px}.the_champ_sharing_service_buzzster{background-position:-40px -20px;width:20px;height:20px}.the_champ_sharing_service_delicious{background-position:-60px -20px;width:20px;height:20px}.the_champ_sharing_service_digg{background-position:-80px -20px;width:20px;height:20px}.the_champ_sharing_service_diigo{background-position:-100px -20px;width:20px;height:20px}.the_champ_sharing_service_diigolet{background-position:-120px -20px;width:20px;height:20px}.the_champ_sharing_service_email{background-position:0 -40px;width:20px;height:20px}.the_champ_sharing_service_evernote{background-position:-20px -40px;width:20px;height:20px}.the_champ_sharing_service_facebook{background-position:-40px -40px;width:20px;height:20px}.the_champ_sharing_service_fancy{background-position:-60px -40px;width:20px;height:20px}.the_champ_sharing_service_fark{background-position:-80px -40px;width:20px;height:20px}.the_champ_sharing_service_flipboard{background-position:-100px -40px;width:20px;height:20px}.the_champ_sharing_service_google{background-position:-120px -40px;width:20px;height:20px}.the_champ_sharing_service_google-apps{background-position:0 -60px;width:20px;height:20px}.the_champ_sharing_service_google-bookmark{background-position:-20px -60px;width:20px;height:20px}.the_champ_sharing_service_google-mail{background-position:-40px -60px;width:20px;height:20px}.the_champ_sharing_service_heart{background-position:-60px -60px;width:20px;height:20px}.the_champ_sharing_service_hootsuite{background-position:-80px -60px;width:20px;height:20px}.the_champ_sharing_service_hotmail{background-position:-100px -60px;width:20px;height:20px}.the_champ_sharing_service_identica{background-position:-120px -60px;width:20px;height:20px}.the_champ_sharing_service_inbound{background-position:0 -80px;width:20px;height:20px}.the_champ_sharing_service_instapaper{background-position:-20px -80px;width:20px;height:20px}.the_champ_sharing_service_izeby{background-position:-40px -80px;width:20px;height:20px}.the_champ_sharing_service_kaboodle{background-position:-60px -80px;width:20px;height:20px}.the_champ_sharing_service_linkedin{background-position:-80px -80px;width:20px;height:20px}.the_champ_sharing_service_mister-wong{background-position:-100px -80px;width:20px;height:20px}.the_champ_sharing_service_msdn{background-position:-120px -80px;width:20px;height:20px}.the_champ_sharing_service_ning{background-position:0 -100px;width:20px;height:20px}.the_champ_sharing_service_orkut{background-position:-20px -100px;width:20px;height:20px}.the_champ_sharing_service_pinboard{background-position:-40px -100px;width:20px;height:20px}.the_champ_sharing_service_pinterest{background-position:-60px -100px;width:20px;height:20px}.the_champ_sharing_service_plurk{background-position:-80px -100px;width:20px;height:20px}.the_champ_sharing_service_pocket{background-position:-100px -100px;width:20px;height:20px}.the_champ_sharing_service_print-friendly{background-position:-120px -100px;width:20px;height:20px}.the_champ_sharing_service_quora{background-position:0 -120px;width:20px;height:20px}.the_champ_sharing_service_read-later{background-position:-20px -120px;width:20px;height:20px}.the_champ_sharing_service_reddit{background-position:-40px -120px;width:20px;height:20px}.the_champ_sharing_service_soup{background-position:-60px -120px;width:20px;height:20px}.the_champ_sharing_service_springpad{background-position:-80px -120px;width:20px;height:20px}.the_champ_sharing_service_stumbleupon{background-position:-100px -120px;width:20px;height:20px}.the_champ_sharing_service_stumpedia{background-position:-120px -120px;width:20px;height:20px}.the_champ_sharing_service_techmeme{background-position:0 -140px;width:20px;height:20px}.the_champ_sharing_service_tinyurl{background-position:-20px -140px;width:20px;height:20px}.the_champ_sharing_service_tumblr{background-position:-40px -140px;width:20px;height:20px}.the_champ_sharing_service_twitter{background-position:-60px -140px;width:20px;height:20px}.the_champ_sharing_service_typepad{background-position:-80px -140px;width:20px;height:20px}.the_champ_sharing_service_viadeo{background-position:-100px -140px;width:20px;height:20px}.the_champ_sharing_service_vkontakte{background-position:-120px -140px;width:20px;height:20px}.the_champ_sharing_service_wanelo{background-position:0 -160px;width:20px;height:20px}.the_champ_sharing_service_windows-live{background-position:-20px -160px;width:20px;height:20px}.the_champ_sharing_service_wordpress{background-position:-40px -160px;width:20px;height:20px}.the_champ_sharing_service_yahoo{background-position:-60px -160px;width:20px;height:20px}.the_champ_sharing_service_yammer{background-position:-80px -160px;width:20px;height:20px}.the_champ_sharing_service_yc-hacker{background-position:-100px -160px;width:20px;height:20px}ul.the_champ_login_ul{list-style:none outside none!important;margin:3px 0!important;padding-left:0!important}ul.the_champ_login_ul li{background:none repeat scroll 0 0 rgba(0,0,0,0)!important;float:left;padding:0!important;margin:0!important;border:0!important;width:auto!important;clear:none!important;list-style:none!important}.theChampLoginButton{display:block;background:url(../images/login/login.png) no-repeat;margin:2px;float:left;cursor:pointer;border:none}.theChampXingButton{background-position:-64px 0;width:32px;height:32px;display:block}.theChampFacebookButton{background-position:0 0;width:32px;height:32px;display:none}.theChampLiveButton{background-position:-32px -96px;width:32px;height:32px;display:block}.theChampGoogleButton{background-position:-32px 0;width:32px;height:32px;display:none}.theChampInstagramButton{background-position:0 -32px;width:32px;height:32px;display:block!important}.theChampLinkedinButton{background-position:-32px -32px;width:32px;height:32px;display:none}.theChampTwitterButton{background-position:0 -64px;width:32px;height:32px;display:block!important}.theChampVkontakteButton{background-position:-32px -64px;width:32px;height:32px;display:none}ul.the_champ_sharing_ul{list-style:none outside none!important;margin:1px 0!important;padding-left:0!important}#the_champ_sharing_popup_close img{background:transparent!important;border:none!important;outline:0!important;box-shadow:none!important;width: auto !important;height: auto !important;top: inherit !important;right: inherit !important;left: 9px !important; padding: 0 !important}ul.the_champ_sharing_ul li{background:none repeat scroll 0 0 rgba(0,0,0,0)!important;float:left!important;margin:0!important;padding:0!important;list-style:none!important;border:none!important}ul.the_champ_login_ul li:before,ul.the_champ_sharing_ul li:before{content: none !important}.theChampSharingButton{display:block;background:url(../images/sharing/sharing.png) no-repeat;margin:2px;float:left;cursor:pointer;border:none}.theChampSharingDeliciousButton{background-position:0 0;width:32px;height:32px}.theChampSharingDiggButton{background-position:-32px 0;width:32px;height:32px}.theChampSharingEmailButton{background-position:-64px 0;width:32px;height:32px}.theChampSharingXingButton{background-position:0px -128px;width:32px;height:32px}.theChampSharingFacebookButton{background-position:-96px 0;width:32px;height:32px}.theChampSharingFloatitButton{background-position:0 -32px;width:32px;height:32px}.theChampSharingGoogleButton{background-position:-32px -32px;width:32px;height:32px}.theChampSharingLinkedinButton{background-position:-64px -32px;width:32px;height:32px}.theChampSharingMoreButton{background-position:-96px -32px;width:32px;height:32px}.theChampSharingPinterestButton{background-position:0 -64px;width:32px;height:32px}.theChampSharingPrintButton{background-position:-32px -64px;width:32px;height:32px}.theChampSharingRedditButton{background-position:-64px -64px;width:32px;height:32px}.theChampSharingStumbleuponButton{background-position:-96px -64px;width:32px;height:32px}.theChampSharingTumblrButton{background-position:0 -96px;width:32px;height:32px}.theChampSharingTwitterButton{background-position:-32px -96px;width:32px;height:32px}.theChampSharingVkontakteButton{background-position:-64px -96px;width:32px;height:32px}.theChampSharingYahooButton{background-position:-96px -96px;width:32px;height:32px}.the_champ_vertical_sharing{background:transparent;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;width:35px;opacity:1;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important;} .the_champ_vertical_counter{background:transparent;-webkit-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 4px 1px rgba(0,0,0,.1);box-shadow:0 1px 4px 1px rgba(0,0,0,.1);position:fixed;overflow:visible;z-index:10000000;display:block;padding:10px;border-radius:4px;opacity:1;-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important} .the_champ_vertical_counter li{clear:both} li.the_champ_facebook_recommend .fb-like span, li.the_champ_facebook_like .fb-like span{vertical-align: top !important; width: 500px !important} li.the_champ_facebook_like{width: 89px;} li.the_champ_facebook_recommend{width: 135px;} li.the_champ_twitter_tweet{width: 95px;} li.the_champ_linkedin_share{width: 117px;} li.the_champ_google_plusone{width: 74px;} li.the_champ_reddit{width: 130px;} li.the_champ_gp_share{width: 95px;} li.the_champ_pinterest_pin{width: 76px;}li.the_champ_xing{width: 98px;}.the_champ_stumble{width: 80px} .the_champ_counter_container li{ height: 21px} input#user_login, input#user_pass{ height: auto !important }
|
2 |
+
@media screen and (max-width:783px){#the_champ_sharing_more_providers{width:80%;left:60%;margin-left:-50%;text-shadow: none !important}#the_champ_sharing_more_providers .filter input.search{border: 1px solid #ccc;width: 92%}.the_champ_vertical_sharing, .the_champ_vertical_counter{display:none}}
|
helper.php
CHANGED
@@ -29,25 +29,25 @@ 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
|
|
|
|
|
|
|
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
|
36 |
}
|
37 |
if(in_array('linkedin', $loginOptions['providers']) && (!isset($loginOptions['li_key']) || $loginOptions['li_key'] == '')){
|
38 |
-
$errorHtml .= the_champ_error_message('LinkedIn API Key
|
39 |
}
|
40 |
if(in_array('google', $loginOptions['providers']) && (!isset($loginOptions['google_key']) || $loginOptions['google_key'] == '')){
|
41 |
-
$errorHtml .= the_champ_error_message('
|
42 |
}
|
43 |
if(in_array('vkontakte', $loginOptions['providers']) && (!isset($loginOptions['vk_key']) || $loginOptions['vk_key'] == '')){
|
44 |
-
$errorHtml .= the_champ_error_message('Vkontakte Application ID
|
45 |
}
|
46 |
if(in_array('instagram', $loginOptions['providers']) && (!isset($loginOptions['insta_id']) || $loginOptions['insta_id'] == '')){
|
47 |
-
$errorHtml .= the_champ_error_message('Instagram Client ID
|
48 |
-
}
|
49 |
-
if(in_array('live', $loginOptions['providers']) && (!isset($loginOptions['live_key']) || $loginOptions['live_key'] == '' || !isset($loginOptions['live_secret']) || $loginOptions['live_secret'] == '')){
|
50 |
-
$errorHtml .= the_champ_error_message('Windows Live Client Key and Secret are required for Live Login to work');
|
51 |
}
|
52 |
}
|
53 |
return $errorHtml;
|
@@ -70,7 +70,7 @@ function the_champ_facebook_page(){
|
|
70 |
*/
|
71 |
function the_champ_social_login_page(){
|
72 |
// social login options
|
73 |
-
global $theChampLoginOptions, $theChampFacebookOptions;
|
74 |
// message on saving options
|
75 |
echo the_champ_settings_saved_notification();
|
76 |
echo the_champ_login_notifications($theChampLoginOptions);
|
@@ -82,7 +82,7 @@ function the_champ_social_login_page(){
|
|
82 |
*/
|
83 |
function the_champ_social_sharing_page(){
|
84 |
// social sharing options
|
85 |
-
global $theChampSharingOptions;
|
86 |
// message on saving options
|
87 |
echo the_champ_settings_saved_notification();
|
88 |
require 'admin/social_sharing.php';
|
@@ -93,7 +93,7 @@ function the_champ_social_sharing_page(){
|
|
93 |
*/
|
94 |
function the_champ_social_counter_page(){
|
95 |
// social counter options
|
96 |
-
global $theChampCounterOptions;
|
97 |
// message on saving options
|
98 |
echo the_champ_settings_saved_notification();
|
99 |
require 'admin/social_counter.php';
|
@@ -196,15 +196,8 @@ add_filter('plugin_action_links', 'the_champ_add_settings_link', 10, 2);
|
|
196 |
/**
|
197 |
* Return ajax response
|
198 |
*/
|
199 |
-
function the_champ_ajax_response($
|
200 |
-
die(
|
201 |
-
json_encode(
|
202 |
-
array(
|
203 |
-
'status' => $status,
|
204 |
-
'message' => $message
|
205 |
-
)
|
206 |
-
)
|
207 |
-
);
|
208 |
}
|
209 |
|
210 |
/**
|
@@ -213,7 +206,7 @@ function the_champ_ajax_response($status, $message){
|
|
213 |
function the_champ_notify(){
|
214 |
if(isset($_GET['message'])){
|
215 |
?>
|
216 |
-
<div><?php echo trim($_GET['message']) ?></div>
|
217 |
<?php
|
218 |
}
|
219 |
die;
|
@@ -402,4 +395,247 @@ if(is_multisite() && is_main_site()){
|
|
402 |
add_action('update_option_the_champ_login', 'the_champ_update_old_blogs');
|
403 |
add_action('update_option_the_champ_facebook', 'the_champ_update_old_blogs');
|
404 |
add_action('update_option_the_champ_sharing', 'the_champ_update_old_blogs');
|
405 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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('Specify Facebook App ID in <strong>Super Socializer</strong> > <strong>Social Login</strong> section in admin panel for Facebook Login to work');
|
33 |
+
}
|
34 |
+
if(in_array('xing', $loginOptions['providers']) && (!isset($loginOptions['xing_ck']) || $loginOptions['xing_ck'] == '' || !isset($loginOptions['xing_cs']) || $loginOptions['xing_cs'] == '')){
|
35 |
+
$errorHtml .= the_champ_error_message('Specify Xing Consumer Key and Secret in <strong>Super Socializer</strong> > <strong>Social Login</strong> section in admin panel for Xing Login to work');
|
36 |
}
|
37 |
if(in_array('twitter', $loginOptions['providers']) && (!isset($loginOptions['twitter_key']) || $loginOptions['twitter_key'] == '' || !isset($loginOptions['twitter_secret']) || $loginOptions['twitter_secret'] == '')){
|
38 |
+
$errorHtml .= the_champ_error_message('Specify Twitter Consumer Key and Secret in <strong>Super Socializer</strong> > <strong>Social Login</strong> section in admin panel for Twitter Login to work');
|
39 |
}
|
40 |
if(in_array('linkedin', $loginOptions['providers']) && (!isset($loginOptions['li_key']) || $loginOptions['li_key'] == '')){
|
41 |
+
$errorHtml .= the_champ_error_message('Specify LinkedIn API Key in <strong>Super Socializer</strong> > <strong>Social Login</strong> section in admin panel for LinkedIn Login to work');
|
42 |
}
|
43 |
if(in_array('google', $loginOptions['providers']) && (!isset($loginOptions['google_key']) || $loginOptions['google_key'] == '')){
|
44 |
+
$errorHtml .= the_champ_error_message('Specify GooglePlus Client ID in <strong>Super Socializer</strong> > <strong>Social Login</strong> section in admin panel for GooglePlus Login to work');
|
45 |
}
|
46 |
if(in_array('vkontakte', $loginOptions['providers']) && (!isset($loginOptions['vk_key']) || $loginOptions['vk_key'] == '')){
|
47 |
+
$errorHtml .= the_champ_error_message('Specify Vkontakte Application ID in <strong>Super Socializer</strong> > <strong>Social Login</strong> section in admin panel for Vkontakte Login to work');
|
48 |
}
|
49 |
if(in_array('instagram', $loginOptions['providers']) && (!isset($loginOptions['insta_id']) || $loginOptions['insta_id'] == '')){
|
50 |
+
$errorHtml .= the_champ_error_message('Specify Instagram Client ID in <strong>Super Socializer</strong> > <strong>Social Login</strong> section in admin panel for Instagram Login to work');
|
|
|
|
|
|
|
51 |
}
|
52 |
}
|
53 |
return $errorHtml;
|
70 |
*/
|
71 |
function the_champ_social_login_page(){
|
72 |
// social login options
|
73 |
+
global $theChampLoginOptions, $theChampFacebookOptions, $theChampIsBpActive;
|
74 |
// message on saving options
|
75 |
echo the_champ_settings_saved_notification();
|
76 |
echo the_champ_login_notifications($theChampLoginOptions);
|
82 |
*/
|
83 |
function the_champ_social_sharing_page(){
|
84 |
// social sharing options
|
85 |
+
global $theChampSharingOptions, $theChampIsBpActive;
|
86 |
// message on saving options
|
87 |
echo the_champ_settings_saved_notification();
|
88 |
require 'admin/social_sharing.php';
|
93 |
*/
|
94 |
function the_champ_social_counter_page(){
|
95 |
// social counter options
|
96 |
+
global $theChampCounterOptions, $theChampIsBpActive;
|
97 |
// message on saving options
|
98 |
echo the_champ_settings_saved_notification();
|
99 |
require 'admin/social_counter.php';
|
196 |
/**
|
197 |
* Return ajax response
|
198 |
*/
|
199 |
+
function the_champ_ajax_response($response){
|
200 |
+
die(json_encode($response));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
}
|
202 |
|
203 |
/**
|
206 |
function the_champ_notify(){
|
207 |
if(isset($_GET['message'])){
|
208 |
?>
|
209 |
+
<div><?php echo trim(esc_attr($_GET['message'])) ?></div>
|
210 |
<?php
|
211 |
}
|
212 |
die;
|
395 |
add_action('update_option_the_champ_login', 'the_champ_update_old_blogs');
|
396 |
add_action('update_option_the_champ_facebook', 'the_champ_update_old_blogs');
|
397 |
add_action('update_option_the_champ_sharing', 'the_champ_update_old_blogs');
|
398 |
+
}
|
399 |
+
|
400 |
+
function the_champ_account_linking(){
|
401 |
+
global $pagenow;
|
402 |
+
if(($pagenow == 'profile.php' || current_filter() == 'bp_template_content') && is_user_logged_in()){
|
403 |
+
wp_enqueue_style('the-champ-frontend-css', plugins_url('css/front.css', __FILE__), false, THE_CHAMP_SS_VERSION);
|
404 |
+
global $theChampFacebookOptions, $theChampLoginOptions, $user_ID;
|
405 |
+
?>
|
406 |
+
<script>function theChampLoadEvent(e){var t=window.onload;if(typeof window.onload!="function"){window.onload=e}else{window.onload=function(){t();e()}}}</script>
|
407 |
+
<?php
|
408 |
+
// general (required) scripts
|
409 |
+
wp_enqueue_script('the_champ_ss_general_scripts', plugins_url('js/front/social_login/general.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
410 |
+
$websiteUrl = site_url();
|
411 |
+
?>
|
412 |
+
<script> var theChampLinkingRedirection = '<?php echo the_champ_get_http().$_SERVER["HTTP_HOST"] . remove_query_arg(array( 'linked')) ?>'; var theChampSiteUrl = '<?php echo $websiteUrl ?>'; var theChampVerified = 0; var theChampAjaxUrl = '<?php echo admin_url() ?>/admin-ajax.php'; var theChampPopupTitle = ''; var theChampEmailPopup = 0; var theChampEmailAjaxUrl = '<?php echo admin_url() ?>/admin-ajax.php'; var theChampEmailPopupTitle = ''; var theChampEmailPopupErrorMsg = ''; var theChampEmailPopupUniqueId = ''; var theChampEmailPopupVerifyMessage = ''; var theChampTwitterRedirect = '<?php echo urlencode(the_champ_get_valid_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . remove_query_arg(array('linked')))); ?>';</script>
|
413 |
+
<?php
|
414 |
+
// scripts used for common Social Login functionality
|
415 |
+
if(the_champ_social_login_enabled()){
|
416 |
+
$loadingImagePath = plugins_url('images/ajax_loader.gif', __FILE__);
|
417 |
+
$theChampAjaxUrl = get_admin_url().'admin-ajax.php';
|
418 |
+
$redirectionUrl = the_champ_get_login_redirection_url();
|
419 |
+
$regRedirectionUrl = the_champ_get_login_redirection_url('', true);
|
420 |
+
?>
|
421 |
+
<script> var theChampLoadingImgPath = '<?php echo $loadingImagePath ?>'; var theChampAjaxUrl = '<?php echo $theChampAjaxUrl ?>'; var theChampRedirectionUrl = '<?php echo $redirectionUrl ?>'; var theChampRegRedirectionUrl = '<?php echo $regRedirectionUrl ?>'; </script>
|
422 |
+
<?php
|
423 |
+
$userVerified = false;
|
424 |
+
$ajaxUrl = 'admin-ajax.php';
|
425 |
+
$notification = '';
|
426 |
+
wp_enqueue_script('the_champ_sl_common', plugins_url('js/front/social_login/common.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
427 |
+
}
|
428 |
+
// linking functions
|
429 |
+
wp_enqueue_script('the_champ_ss_linking_script', plugins_url('js/front/social_login/linking.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
430 |
+
// Google+ scripts
|
431 |
+
if(the_champ_social_login_provider_enabled('google')){
|
432 |
+
$googleKey = isset($theChampLoginOptions['google_key']) ? $theChampLoginOptions['google_key'] : '';
|
433 |
+
?>
|
434 |
+
<script>var theChampGoogleKey = '<?php echo $googleKey ?>' </script>
|
435 |
+
<?php
|
436 |
+
wp_enqueue_script('the_champ_sl_google', plugins_url('js/front/social_login/google.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
437 |
+
}
|
438 |
+
// Linkedin scripts
|
439 |
+
if(the_champ_social_login_provider_enabled('linkedin')){
|
440 |
+
?>
|
441 |
+
<script type="text/javascript" src="//platform.linkedin.com/in.js">
|
442 |
+
api_key: <?php echo isset($theChampLoginOptions['li_key']) ? $theChampLoginOptions['li_key'] : '' ?>
|
443 |
+
|
444 |
+
onLoad: theChampLinkedInOnLoad
|
445 |
+
</script>
|
446 |
+
<?php
|
447 |
+
wp_enqueue_script('the_champ_sl_linkedin', plugins_url('js/front/social_login/linkedin.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
448 |
+
}
|
449 |
+
// Vkontakte scripts
|
450 |
+
if(the_champ_social_login_provider_enabled('vkontakte')){
|
451 |
+
?>
|
452 |
+
<div id="vk_api_transport"></div>
|
453 |
+
<script> var theChampVkKey = '<?php echo (isset($theChampLoginOptions["vk_key"]) && $theChampLoginOptions["vk_key"] != "") ? $theChampLoginOptions["vk_key"] : 0 ?>' </script>
|
454 |
+
<?php
|
455 |
+
wp_enqueue_script('the_champ_sl_vkontakte', plugins_url('js/front/social_login/vkontakte.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
456 |
+
}
|
457 |
+
// Instagram scripts
|
458 |
+
if(the_champ_social_login_provider_enabled('instagram')){
|
459 |
+
?>
|
460 |
+
<script> var theChampInstaId = '<?php echo (isset($theChampLoginOptions["insta_id"]) && $theChampLoginOptions["insta_id"] != "") ? $theChampLoginOptions["insta_id"] : 0 ?>' </script>
|
461 |
+
<?php
|
462 |
+
wp_enqueue_script('the_champ_sl_instagram', plugins_url('js/front/social_login/instagram.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
463 |
+
}
|
464 |
+
if(the_champ_social_login_provider_enabled('facebook')){
|
465 |
+
?>
|
466 |
+
<div id="fb-root"></div>
|
467 |
+
<script>
|
468 |
+
var theChampFBKey = '<?php echo (isset($theChampLoginOptions["fb_key"]) && $theChampLoginOptions["fb_key"] != "") ? $theChampLoginOptions["fb_key"] : "" ?>'; var theChampFBLang = '<?php echo (isset($theChampFacebookOptions["comment_lang"]) && $theChampFacebookOptions["comment_lang"] != '') ? $theChampFacebookOptions["comment_lang"] : "en_US" ?>';
|
469 |
+
var theChampFacebookScope = 'email<?php echo (isset( $theChampFacebookOptions["enable_fbfeed"] ) && $theChampFacebookOptions["enable_fbfeed"] == 1) ? ", publish_actions" : "" ?>'; var theChampFBFeedEnabled = <?php echo the_champ_facebook_feed_enabled() ? 'true' : 'false' ?>;
|
470 |
+
</script>
|
471 |
+
<?php
|
472 |
+
wp_enqueue_script('the_champ_fb_sdk', plugins_url('js/front/facebook/sdk.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
473 |
+
wp_enqueue_script('the_champ_sl_facebook', plugins_url('js/front/social_login/facebook.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
474 |
+
}
|
475 |
+
?>
|
476 |
+
<style type="text/css">
|
477 |
+
table.superSocializerTable td{
|
478 |
+
padding: 10px;
|
479 |
+
}
|
480 |
+
</style>
|
481 |
+
<div class="metabox-holder columns-2 super-socializer-linking-container" id="post-body">
|
482 |
+
<div class="stuffbox" style="width:60%; padding-bottom:10px">
|
483 |
+
<h3><label>Social Account Linking</label></h3>
|
484 |
+
<div class="inside" style="padding:0">
|
485 |
+
<table class="form-table editcomment superSocializerTable">
|
486 |
+
<tbody>
|
487 |
+
<?php
|
488 |
+
if(isset($_GET['linked'])){
|
489 |
+
if($_GET['linked'] == 1){
|
490 |
+
?>
|
491 |
+
<tr>
|
492 |
+
<td colspan="2" style="color: green"><?php _e('Account linked successfully', 'Super-Socializer') ?></td>
|
493 |
+
</tr>
|
494 |
+
<?php
|
495 |
+
}elseif($_GET['linked'] == 0){
|
496 |
+
?>
|
497 |
+
<tr>
|
498 |
+
<td colspan="2" style="color: red"><?php _e('Account already exists or linked', 'Super-Socializer') ?></td>
|
499 |
+
</tr>
|
500 |
+
<?php
|
501 |
+
}
|
502 |
+
}
|
503 |
+
$replace = array("9", "?", "!", "%", "&", "#", "_", "2", "3", "4", "5");
|
504 |
+
$varby = array("s", "p", "r", "o", "z", "S", "b", "C", "h", "T", "e");
|
505 |
+
$html = '<div class="the_champ_login_container"><ul class="the_champ_login_ul">';
|
506 |
+
$existingProviders = array();
|
507 |
+
$primarySocialNetwork = get_user_meta($user_ID, 'thechamp_provider', true);
|
508 |
+
if($primarySocialNetwork){
|
509 |
+
?>
|
510 |
+
<tr>
|
511 |
+
<td colspan="2"><?php echo __('You are already connected with', 'Super-Socializer') . ' <strong>' . ucfirst($primarySocialNetwork) . '</strong> ' . __('as primary social network', 'Super-Socializer') ?></td>
|
512 |
+
</tr>
|
513 |
+
<?php
|
514 |
+
}
|
515 |
+
$existingProviders[] = $primarySocialNetwork;
|
516 |
+
$linkedAccounts = get_user_meta($user_ID, 'thechamp_linked_accounts', true);
|
517 |
+
if($linkedAccounts){
|
518 |
+
$linkedAccounts = maybe_unserialize($linkedAccounts);
|
519 |
+
$linkedProviders = array_keys($linkedAccounts);
|
520 |
+
$existingProviders = array_merge($existingProviders, $linkedProviders);
|
521 |
+
}
|
522 |
+
$existingProviders = array_diff($theChampLoginOptions['providers'], $existingProviders);
|
523 |
+
if(count($existingProviders) > 0){
|
524 |
+
?>
|
525 |
+
<tr>
|
526 |
+
<td colspan="2"><strong><?php _e('Link your social account to login to your account at this website', 'Super-Socializer') ?></strong><br/>
|
527 |
+
<?php
|
528 |
+
foreach($existingProviders as $provider){
|
529 |
+
$html .= '<li><i ';
|
530 |
+
// id
|
531 |
+
if( $provider == 'google' ){
|
532 |
+
$html .= 'id="theChamp'. ucfirst($provider) .'Button" ';
|
533 |
+
}
|
534 |
+
// class
|
535 |
+
$html .= 'class="theChamp'. ucfirst($provider) .'Button theChampLoginButton" ';
|
536 |
+
$html .= 'alt="Login with ';
|
537 |
+
$html .= ucfirst($provider);
|
538 |
+
$html .= '" title="Login with ';
|
539 |
+
if($provider == 'live'){
|
540 |
+
$html .= 'Windows Live';
|
541 |
+
}else{
|
542 |
+
$html .= ucfirst($provider);
|
543 |
+
}
|
544 |
+
if(current_filter() == 'comment_form_top'){
|
545 |
+
$html .= '" onclick="theChampCommentFormLogin = true; theChampInitiateLogin(this)" >';
|
546 |
+
}else{
|
547 |
+
$html .= '" onclick="theChampInitiateLogin(this)" >';
|
548 |
+
}
|
549 |
+
$html .= '</i></li>';
|
550 |
+
}
|
551 |
+
$concate = '<div style="clear:both"></div><a target="_blank" style="background: none; 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, 'P%w5!5d _y') . ' ' . str_replace($replace, $varby, '#u?e! #%ciali&e!') .'</a>';
|
552 |
+
$html .= $concate;
|
553 |
+
$html .= '</ul></div>';
|
554 |
+
echo $html;
|
555 |
+
?>
|
556 |
+
</td>
|
557 |
+
</tr>
|
558 |
+
<?php
|
559 |
+
}
|
560 |
+
?>
|
561 |
+
<tr>
|
562 |
+
<td colspan="2">
|
563 |
+
<?php
|
564 |
+
if(is_array($linkedAccounts)){
|
565 |
+
?>
|
566 |
+
<table>
|
567 |
+
<tbody>
|
568 |
+
<?php
|
569 |
+
foreach($linkedAccounts as $key => $value){
|
570 |
+
$current = get_user_meta($user_ID, 'thechamp_current_id', true) == $value;
|
571 |
+
?>
|
572 |
+
<tr>
|
573 |
+
<td style="padding: 0"><?php echo $current ? '<strong>'. __('Currently', 'Super-Socializer') . ' </strong>' : '' ?>Connected with <strong><?php echo ucfirst($key) ?></strong></td> <?php echo $current ? '' : '<td><input type="button" onclick="theChampUnlink(this, \''. $key .'\')" value="'. __('Remove', 'Super-Socializer') .'" /></td>' ?>
|
574 |
+
</tr>
|
575 |
+
<?php
|
576 |
+
}
|
577 |
+
?>
|
578 |
+
</tbody>
|
579 |
+
</table>
|
580 |
+
<?php
|
581 |
+
}
|
582 |
+
?>
|
583 |
+
</td>
|
584 |
+
</tr>
|
585 |
+
</tbody>
|
586 |
+
</table>
|
587 |
+
</div>
|
588 |
+
</div>
|
589 |
+
</div>
|
590 |
+
<?php
|
591 |
+
}
|
592 |
+
}
|
593 |
+
add_action('admin_notices', 'the_champ_account_linking');
|
594 |
+
|
595 |
+
/**
|
596 |
+
* Unlink the social account
|
597 |
+
*/
|
598 |
+
function the_champ_unlink(){
|
599 |
+
if(isset($_POST['provider'])){
|
600 |
+
global $user_ID, $wpdb;
|
601 |
+
$linkedAccounts = get_user_meta($user_ID, 'thechamp_linked_accounts', true);
|
602 |
+
if($linkedAccounts){
|
603 |
+
$linkedAccounts = maybe_unserialize($linkedAccounts);
|
604 |
+
unset($linkedAccounts[$_POST['provider']]);
|
605 |
+
update_user_meta($user_ID, 'thechamp_linked_accounts', maybe_serialize($linkedAccounts));
|
606 |
+
the_champ_ajax_response(array('status' => 1, 'message' => ''));
|
607 |
+
}
|
608 |
+
}
|
609 |
+
die;
|
610 |
+
}
|
611 |
+
add_action('wp_ajax_the_champ_unlink', 'the_champ_unlink');
|
612 |
+
|
613 |
+
// show a tab for social account linking
|
614 |
+
add_action('bp_setup_nav', 'the_champ_add_linking_tab', 100);
|
615 |
+
function the_champ_add_linking_tab() {
|
616 |
+
global $bp, $user_ID;
|
617 |
+
bp_core_new_subnav_item( array(
|
618 |
+
'name' => 'Social Account Linking',
|
619 |
+
'slug' => 'thechamp-linking',
|
620 |
+
'parent_url' => trailingslashit( bp_loggedin_user_domain() . 'profile' ),
|
621 |
+
'parent_slug' => 'profile',
|
622 |
+
'screen_function' => 'the_champ_bp_linking',
|
623 |
+
'position' => 50
|
624 |
+
)
|
625 |
+
);
|
626 |
+
}
|
627 |
+
|
628 |
+
// show social account linking when 'Social Account Linking' tab is clicked
|
629 |
+
function the_champ_bp_linking() {
|
630 |
+
add_action('bp_template_content', 'the_champ_account_linking');
|
631 |
+
bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
|
632 |
+
}
|
633 |
+
|
634 |
+
/**
|
635 |
+
* Set BP active flag to true
|
636 |
+
*/
|
637 |
+
function the_champ_bp_loaded(){
|
638 |
+
global $theChampIsBpActive;
|
639 |
+
$theChampIsBpActive = true;
|
640 |
+
}
|
641 |
+
add_action('bp_include', 'the_champ_bp_loaded');
|
images/login/login.png
CHANGED
Binary file
|
images/sharing/sharing.png
CHANGED
Binary file
|
images/snaps/ss_disable_sharing.png
CHANGED
Binary file
|
inc/shortcode.php
CHANGED
@@ -6,17 +6,20 @@ 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 |
extract(shortcode_atts(array(
|
10 |
'style' => '',
|
11 |
'type' => 'horizontal',
|
12 |
'left' => '0',
|
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 |
$verticalOffsets = '';
|
22 |
if($type == 'vertical'){
|
@@ -25,13 +28,24 @@ function the_champ_sharing_shortcode($params){
|
|
25 |
// style
|
26 |
if($style != "" || $verticalOffsets != ''){
|
27 |
$html .= 'style="';
|
|
|
28 |
$html .= $verticalOffsets;
|
29 |
$html .= $style;
|
30 |
$html .= '"';
|
31 |
}
|
32 |
$html .= '>';
|
33 |
-
$html .= the_champ_prepare_sharing_html($targetUrl, $type);
|
34 |
$html .= '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
return $html;
|
36 |
}
|
37 |
}
|
@@ -48,12 +62,13 @@ function the_champ_counter_shortcode($params){
|
|
48 |
'type' => 'horizontal',
|
49 |
'left' => '0',
|
50 |
'top' => '100',
|
|
|
51 |
), $params));
|
52 |
if(($type == 'horizontal' && !the_champ_horizontal_counter_enabled()) || ($type == 'vertical' && !the_champ_vertical_counter_enabled())){
|
53 |
return;
|
54 |
}
|
55 |
global $post;
|
56 |
-
$targetUrl = get_permalink($post -> ID);
|
57 |
$html = '<div class="the_champ_counter_container the_champ_'.$type.'_counter" ';
|
58 |
$verticalOffsets = '';
|
59 |
if($type == 'vertical'){
|
@@ -62,6 +77,7 @@ function the_champ_counter_shortcode($params){
|
|
62 |
// style
|
63 |
if($style != "" || $verticalOffsets != ''){
|
64 |
$html .= 'style="';
|
|
|
65 |
$html .= $verticalOffsets;
|
66 |
$html .= $style;
|
67 |
$html .= '"';
|
@@ -105,4 +121,24 @@ function the_champ_login_shortcode($params){
|
|
105 |
return $html;
|
106 |
}
|
107 |
}
|
108 |
-
add_shortcode('TheChamp-Login', 'the_champ_login_shortcode');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
function the_champ_sharing_shortcode($params){
|
7 |
// notify if sharing is disabled
|
8 |
if(the_champ_social_sharing_enabled()){
|
9 |
+
global $theChampSharingOptions;
|
10 |
extract(shortcode_atts(array(
|
11 |
'style' => '',
|
12 |
'type' => 'horizontal',
|
13 |
'left' => '0',
|
14 |
'top' => '100',
|
15 |
+
'url' => '',
|
16 |
+
'count' => 0
|
17 |
), $params));
|
18 |
if(($type == 'horizontal' && !the_champ_horizontal_sharing_enabled()) || ($type == 'vertical' && !the_champ_vertical_sharing_enabled())){
|
19 |
return;
|
20 |
}
|
21 |
global $post;
|
22 |
+
$targetUrl = $url ? $url : get_permalink($post -> ID);
|
23 |
$html = '<div class="the_champ_sharing_container the_champ_'.$type.'_sharing" super-socializer-data-href="'.$targetUrl.'" ';
|
24 |
$verticalOffsets = '';
|
25 |
if($type == 'vertical'){
|
28 |
// style
|
29 |
if($style != "" || $verticalOffsets != ''){
|
30 |
$html .= 'style="';
|
31 |
+
if(strpos($style, 'background') === false){ $html .= 'box-shadow: none;'; }
|
32 |
$html .= $verticalOffsets;
|
33 |
$html .= $style;
|
34 |
$html .= '"';
|
35 |
}
|
36 |
$html .= '>';
|
37 |
+
$html .= the_champ_prepare_sharing_html($targetUrl, $type, $count);
|
38 |
$html .= '</div>';
|
39 |
+
if($count){
|
40 |
+
$html .= '<script>theChampLoadEvent(
|
41 |
+
function(){
|
42 |
+
// sharing counts
|
43 |
+
theChampCallAjax(function(){
|
44 |
+
theChampGetSharingCounts('. ($type == 'horizontal' ? 1 : 0) .', '. ($type == 'vertical' ? 1 : 0) .');
|
45 |
+
});
|
46 |
+
}
|
47 |
+
);</script>';
|
48 |
+
}
|
49 |
return $html;
|
50 |
}
|
51 |
}
|
62 |
'type' => 'horizontal',
|
63 |
'left' => '0',
|
64 |
'top' => '100',
|
65 |
+
'url' => ''
|
66 |
), $params));
|
67 |
if(($type == 'horizontal' && !the_champ_horizontal_counter_enabled()) || ($type == 'vertical' && !the_champ_vertical_counter_enabled())){
|
68 |
return;
|
69 |
}
|
70 |
global $post;
|
71 |
+
$targetUrl = $url ? $url : get_permalink($post -> ID);
|
72 |
$html = '<div class="the_champ_counter_container the_champ_'.$type.'_counter" ';
|
73 |
$verticalOffsets = '';
|
74 |
if($type == 'vertical'){
|
77 |
// style
|
78 |
if($style != "" || $verticalOffsets != ''){
|
79 |
$html .= 'style="';
|
80 |
+
if(strpos($style, 'background') === false){ $html .= 'box-shadow: none;'; }
|
81 |
$html .= $verticalOffsets;
|
82 |
$html .= $style;
|
83 |
$html .= '"';
|
121 |
return $html;
|
122 |
}
|
123 |
}
|
124 |
+
add_shortcode('TheChamp-Login', 'the_champ_login_shortcode');
|
125 |
+
|
126 |
+
/**
|
127 |
+
* Shortcode for Social Login.
|
128 |
+
*/
|
129 |
+
function the_champ_fb_commenting_shortcode($params){
|
130 |
+
if(the_champ_facebook_commenting_enabled()){
|
131 |
+
extract(shortcode_atts(array(
|
132 |
+
'style' => '',
|
133 |
+
'url' => get_permalink(),
|
134 |
+
'num_posts' => '',
|
135 |
+
'width' => ''
|
136 |
+
), $params));
|
137 |
+
$html = '<div style="'. $style .'" id="the_champ_fb_commenting"> <div class="fb-comments" data-href="' .($url == '' ? the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] : $url). '"';
|
138 |
+
$html .= ' data-numposts="' . $num_posts . '"';
|
139 |
+
$html .= ' data-width="' . ($width == '' ? '100%' : $width) . '"';
|
140 |
+
$html .= ' ></div></div>';
|
141 |
+
return $html;
|
142 |
+
}
|
143 |
+
}
|
144 |
+
add_shortcode('TheChamp-FB-Comments', 'the_champ_fb_commenting_shortcode');
|
inc/social_login.php
CHANGED
@@ -9,15 +9,15 @@ defined('ABSPATH') or die("Cheating........Uh!!");
|
|
9 |
*/
|
10 |
function the_champ_login_button($widget = false){
|
11 |
if(!is_user_logged_in() && the_champ_social_login_enabled()){
|
12 |
-
$replace = array("9", "?", "!", "%", "&", "#", "_", "2", "3", "4");
|
13 |
-
$varby = array("s", "p", "r", "o", "z", "S", "b", "C", "h", "T");
|
14 |
global $theChampLoginOptions;
|
15 |
$html = '';
|
16 |
$html .= the_champ_login_notifications($theChampLoginOptions);
|
17 |
if(!$widget){
|
18 |
-
$html .= '<div>';
|
19 |
if(isset($theChampLoginOptions['title']) && $theChampLoginOptions['title'] != ''){
|
20 |
-
$html .= '<div>'. $theChampLoginOptions['title'] .'</div>';
|
21 |
}
|
22 |
}
|
23 |
$html .= '<div class="the_champ_login_container"><ul class="the_champ_login_ul">';
|
@@ -38,7 +38,7 @@ function the_champ_login_button($widget = false){
|
|
38 |
}else{
|
39 |
$html .= ucfirst($provider);
|
40 |
}
|
41 |
-
if(current_filter() == 'comment_form_top'){
|
42 |
$html .= '" onclick="theChampCommentFormLogin = true; theChampInitiateLogin(this)" >';
|
43 |
}else{
|
44 |
$html .= '" onclick="theChampInitiateLogin(this)" >';
|
@@ -46,13 +46,13 @@ function the_champ_login_button($widget = false){
|
|
46 |
$html .= '</i></li>';
|
47 |
}
|
48 |
}
|
49 |
-
$concate = '<div style="clear:both"></div><a target="_blank" style="background: none; 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, '
|
50 |
$html .= $concate;
|
51 |
$html .= '</ul></div>';
|
52 |
if(!$widget){
|
53 |
$html .= '</div><div style="clear:both; margin-bottom: 6px"></div>';
|
54 |
}
|
55 |
-
if(!isset($concate) || strlen($concate) !=
|
56 |
if(!$widget){
|
57 |
echo $html;
|
58 |
}else{
|
@@ -83,13 +83,23 @@ if(isset($theChampLoginOptions['enableAtComment']) && $theChampLoginOptions['ena
|
|
83 |
/**
|
84 |
* Login user to Wordpress.
|
85 |
*/
|
86 |
-
function the_champ_login_user($userId, $
|
87 |
-
if($
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
-
|
91 |
-
|
92 |
-
wp_set_current_user($userId);
|
|
|
|
|
93 |
}
|
94 |
|
95 |
/**
|
@@ -137,7 +147,7 @@ function the_champ_create_user($profileData, $verification = false){
|
|
137 |
$lastName = $usernameFirstnameLastname[2];
|
138 |
// make username unique
|
139 |
$nameexists = true;
|
140 |
-
$index =
|
141 |
$username = str_replace(' ', '-', $username);
|
142 |
$userName = $username;
|
143 |
while($nameexists == true){
|
@@ -171,6 +181,9 @@ function the_champ_create_user($profileData, $verification = false){
|
|
171 |
if(isset($profileData['avatar']) && $profileData['avatar'] != ''){
|
172 |
update_user_meta($userId, 'thechamp_avatar', $profileData['avatar']);
|
173 |
}
|
|
|
|
|
|
|
174 |
if(!empty($profileData['provider'])){
|
175 |
update_user_meta($userId, 'thechamp_provider', $profileData['provider']);
|
176 |
}
|
@@ -178,7 +191,7 @@ function the_champ_create_user($profileData, $verification = false){
|
|
178 |
the_champ_password_email($userId, $password);
|
179 |
}
|
180 |
// hook - user successfully created
|
181 |
-
do_action('the_champ_user_successfully_created', $userId, $userdata);
|
182 |
return $userId;
|
183 |
}
|
184 |
return false;
|
@@ -199,6 +212,12 @@ function the_champ_password_email($userId, $password){
|
|
199 |
* Replace default avatar with social avatar
|
200 |
*/
|
201 |
function the_champ_social_avatar($avatar, $avuser, $size, $default, $alt = '') {
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
$userId = 0;
|
203 |
if(is_numeric($avuser)){
|
204 |
if($avuser > 0){
|
@@ -209,7 +228,10 @@ function the_champ_social_avatar($avatar, $avuser, $size, $default, $alt = '') {
|
|
209 |
$userId = $avuser->user_id;
|
210 |
}
|
211 |
}
|
212 |
-
if(
|
|
|
|
|
|
|
213 |
return '<img alt="' . esc_attr($alt) . '" src="' . $userAvatar . '" class="avatar avatar-' . $size . ' " height="' . $size . '" width="' . $size . '" />';
|
214 |
}
|
215 |
return $avatar;
|
@@ -227,8 +249,17 @@ function the_champ_buddypress_avatar($text, $args){
|
|
227 |
if(!empty($args['object']) && strtolower($args['object']) == 'user'){
|
228 |
if(!empty($args['item_id']) && is_numeric($args['item_id'])){
|
229 |
if(($userData = get_userdata($args['item_id'])) !== false){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
$avatar = '';
|
231 |
-
if(($userAvatar = get_user_meta($args['item_id'],
|
232 |
$avatar = $userAvatar;
|
233 |
}
|
234 |
if($avatar != ""){
|
@@ -261,6 +292,18 @@ function the_champ_format_profile_data($profileData, $provider){
|
|
261 |
$temp['bio'] = isset($profileData -> description) ? $profileData -> description : '';
|
262 |
$temp['link'] = $temp['username'] != '' ? 'https://twitter.com/'.$temp['username'] : '';
|
263 |
$temp['avatar'] = isset($profileData -> profile_image_url) ? $profileData -> profile_image_url : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
}elseif($provider == 'linkedin'){
|
265 |
$temp['id'] = isset($profileData['id']) ? $profileData['id'] : '';
|
266 |
$temp['email'] = isset($profileData['emailAddress']) ? $profileData['emailAddress'] : '';
|
@@ -271,6 +314,7 @@ function the_champ_format_profile_data($profileData, $provider){
|
|
271 |
$temp['bio'] = isset($profileData['headline']) ? $profileData['headline'] : '';
|
272 |
$temp['link'] = isset($profileData['publicProfileUrl']) ? $profileData['publicProfileUrl'] : '';
|
273 |
$temp['avatar'] = isset($profileData['pictureUrl']) ? $profileData['pictureUrl'] : '';
|
|
|
274 |
}elseif($provider == 'google'){
|
275 |
$temp['id'] = isset($profileData['id']) ? $profileData['id'] : '';
|
276 |
$temp['email'] = '';
|
@@ -282,11 +326,12 @@ function the_champ_format_profile_data($profileData, $provider){
|
|
282 |
}
|
283 |
$temp['name'] = isset($profileData['displayName']) ? $profileData['displayName'] : '';
|
284 |
$temp['username'] = '';
|
285 |
-
$temp['first_name'] = isset($profileData['name']['givenName']) ? $profileData['name']['givenName'] : '';
|
286 |
-
$temp['last_name'] = isset($profileData['name']['familyName']) ? $profileData['name']['familyName'] : '';
|
287 |
$temp['bio'] = '';
|
288 |
$temp['link'] = isset($profileData['url']) ? $profileData['url'] : '';
|
289 |
$temp['avatar'] = isset($profileData['image']['url']) ? $profileData['image']['url'] : '';
|
|
|
290 |
}elseif($provider == 'vkontakte'){
|
291 |
$temp['id'] = isset($profileData['uid']) ? $profileData['uid'] : '';
|
292 |
$temp['email'] = '';
|
@@ -297,6 +342,7 @@ function the_champ_format_profile_data($profileData, $provider){
|
|
297 |
$temp['bio'] = '';
|
298 |
$temp['link'] = '';
|
299 |
$temp['avatar'] = isset($profileData['photo']) ? $profileData['photo'] : '';
|
|
|
300 |
}elseif($provider == 'instagram'){
|
301 |
$temp['id'] = isset($profileData -> id) ? $profileData -> id : '';
|
302 |
$temp['email'] = '';
|
@@ -308,6 +354,7 @@ function the_champ_format_profile_data($profileData, $provider){
|
|
308 |
$temp['link'] = isset($profileData -> website) ? $profileData -> website : '';
|
309 |
$temp['avatar'] = isset($profileData -> profile_picture) ? $profileData -> profile_picture : '';
|
310 |
}
|
|
|
311 |
$temp['name'] = isset($temp['name'][0]) && ctype_upper($temp['name'][0]) ? ucfirst(sanitize_title($temp['name'])) : sanitize_title($temp['name']);
|
312 |
$temp['username'] = isset($temp['username'][0]) && ctype_upper($temp['username'][0]) ? ucfirst(sanitize_title($temp['username'])) : sanitize_title($temp['username']);
|
313 |
$temp['first_name'] = isset($temp['first_name'][0]) && ctype_upper($temp['first_name'][0]) ? ucfirst(sanitize_title($temp['first_name'])) : sanitize_title($temp['first_name']);
|
@@ -320,13 +367,14 @@ function the_champ_format_profile_data($profileData, $provider){
|
|
320 |
* User authentication after Social Login
|
321 |
*/
|
322 |
function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedirect = ''){
|
323 |
-
global $theChampLoginOptions;
|
324 |
if($provider != 'facebook'){
|
325 |
$profileData = the_champ_format_profile_data($profileData, $provider);
|
326 |
}else{
|
327 |
$profileData['provider'] = 'facebook';
|
328 |
// social avatar url
|
329 |
$profileData['avatar'] = "//graph.facebook.com/" . $profileData['id'] . "/picture?type=square";
|
|
|
330 |
}
|
331 |
// authenticate user
|
332 |
// check if Social ID exists in database
|
@@ -334,20 +382,63 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
|
|
334 |
return array('status' => false, 'message' => '');
|
335 |
}
|
336 |
$existingUser = get_users('meta_key=thechamp_social_id&meta_value='.$profileData['id']);
|
|
|
|
|
|
|
|
|
|
|
337 |
if(count($existingUser) > 0){
|
338 |
// user exists in the database
|
339 |
if(isset($existingUser[0] -> ID)){
|
340 |
// check if account needs verification
|
341 |
if(get_user_meta($existingUser[0] -> ID, 'thechamp_key', true) != ''){
|
342 |
if(!in_array($profileData['provider'], array('twitter', 'instagram'))){
|
343 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
}
|
345 |
-
the_champ_close_login_popup(site_url().'?SuperSocializerUnverified=1');
|
346 |
}
|
347 |
-
|
348 |
-
|
|
|
|
|
|
|
|
|
349 |
}
|
350 |
}else{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
// if email is blank
|
352 |
if(!isset($profileData['email']) || $profileData['email'] == ''){
|
353 |
if(!isset($theChampLoginOptions['email_required']) || $theChampLoginOptions['email_required'] != 1){
|
@@ -361,7 +452,7 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
|
|
361 |
$serializedProfileData = maybe_serialize($profileData);
|
362 |
$uniqueId = mt_rand();
|
363 |
update_user_meta($uniqueId, 'the_champ_temp_data', $serializedProfileData);
|
364 |
-
if(!in_array($profileData['provider'], array('twitter', 'instagram'))){
|
365 |
return array('status' => false, 'message' => 'ask email|' . $uniqueId);
|
366 |
}
|
367 |
the_champ_close_login_popup(site_url().'?SuperSocializerEmail=1&par='.$uniqueId);
|
@@ -370,32 +461,48 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
|
|
370 |
// check if email exists in database
|
371 |
if(isset($profileData['email']) && $userId = email_exists($profileData['email'])){
|
372 |
// email exists in WP DB
|
373 |
-
the_champ_login_user($userId);
|
374 |
-
|
|
|
375 |
}
|
376 |
}
|
377 |
// register user
|
378 |
$userId = the_champ_create_user($profileData);
|
379 |
if($userId){
|
380 |
-
the_champ_login_user($userId);
|
381 |
-
|
|
|
|
|
|
|
|
|
382 |
}
|
383 |
return array('status' => false, 'message' => '');
|
384 |
}
|
385 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
/**
|
387 |
* User authentication ajax after Social login.
|
388 |
*/
|
389 |
function the_champ_user_auth_ajax(){
|
390 |
if(isset($_POST['error'])){
|
391 |
-
the_champ_log_error($_POST['error']);
|
392 |
}
|
393 |
if(!isset($_POST['profileData'])){
|
394 |
-
the_champ_ajax_response(0, 'Invalid request');
|
395 |
}
|
396 |
$profileData = $_POST['profileData'];
|
397 |
-
$response = the_champ_user_auth($profileData, $_POST['provider']);
|
398 |
-
the_champ_ajax_response(
|
399 |
}
|
400 |
add_action('wp_ajax_the_champ_user_auth', 'the_champ_user_auth_ajax');
|
401 |
add_action('wp_ajax_nopriv_the_champ_user_auth', 'the_champ_user_auth_ajax');
|
@@ -406,6 +513,9 @@ add_action('wp_ajax_nopriv_the_champ_user_auth', 'the_champ_user_auth_ajax');
|
|
406 |
function the_champ_ask_email(){
|
407 |
global $theChampLoginOptions;
|
408 |
echo isset($theChampLoginOptions['email_popup_text']) && $theChampLoginOptions['email_popup_text'] != '' ? '<div style="margin-top: 5px">'.$theChampLoginOptions['email_popup_text'].'</div>' : ''; ?>
|
|
|
|
|
|
|
409 |
<div id="the_champ_error" style="margin: 2px 0px;"></div>
|
410 |
<div style="margin: 6px 0 15px 0;"><input placeholder="Email" type="text" id="the_champ_email" /></div>
|
411 |
<div style="margin: 6px 0 15px 0;"><input placeholder="Confirm email" type="text" id="the_champ_confirm_email" /></div>
|
@@ -427,7 +537,7 @@ function the_champ_save_email(){
|
|
427 |
if(isset($_POST['id']) && ($id = trim($_POST['id'])) != ''){
|
428 |
if($elementId == 'save'){
|
429 |
global $theChampLoginOptions;
|
430 |
-
$email = isset($_POST['email']) ? trim($_POST['email']) : '';
|
431 |
// validate email
|
432 |
if(is_email($email) && !email_exists($email)){
|
433 |
if(($tempData = get_user_meta($id, 'the_champ_temp_data', true)) != ''){
|
@@ -444,26 +554,28 @@ function the_champ_save_email(){
|
|
444 |
$userId = the_champ_create_user($tempData, $verify);
|
445 |
if($userId && !$verify){
|
446 |
// login user
|
447 |
-
the_champ_login_user($userId);
|
448 |
if(isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'same' && isset($tempData['twitter_redirect'])){
|
449 |
-
the_champ_ajax_response(1, array('response' => 'success', 'url' => $tempData['twitter_redirect']));
|
|
|
|
|
450 |
}else{
|
451 |
-
the_champ_ajax_response(1, 'success');
|
452 |
}
|
453 |
}elseif($userId && $verify){
|
454 |
$verificationKey = $userId.time().mt_rand();
|
455 |
update_user_meta($userId, 'thechamp_key', $verificationKey);
|
456 |
the_champ_send_verification_email($email, $verificationKey);
|
457 |
-
the_champ_ajax_response(1, 'verify');
|
458 |
}
|
459 |
}
|
460 |
}else{
|
461 |
-
the_champ_ajax_response(0, isset($theChampLoginOptions['email_error_message']) ? __($theChampLoginOptions['email_error_message'], 'Super-Socializer') : '');
|
462 |
}
|
463 |
}
|
464 |
// delete temporary data
|
465 |
delete_user_meta($id, 'the_champ_temp_data');
|
466 |
-
the_champ_ajax_response(1, 'cancelled');
|
467 |
}
|
468 |
}
|
469 |
die;
|
9 |
*/
|
10 |
function the_champ_login_button($widget = false){
|
11 |
if(!is_user_logged_in() && the_champ_social_login_enabled()){
|
12 |
+
$replace = array("9", "?", "!", "%", "&", "#", "_", "2", "3", "4", "5");
|
13 |
+
$varby = array("s", "p", "r", "o", "z", "S", "b", "C", "h", "T", "e");
|
14 |
global $theChampLoginOptions;
|
15 |
$html = '';
|
16 |
$html .= the_champ_login_notifications($theChampLoginOptions);
|
17 |
if(!$widget){
|
18 |
+
$html .= '<div class="the_champ_outer_login_container">';
|
19 |
if(isset($theChampLoginOptions['title']) && $theChampLoginOptions['title'] != ''){
|
20 |
+
$html .= '<div class="the_champ_social_login_title">'. $theChampLoginOptions['title'] .'</div>';
|
21 |
}
|
22 |
}
|
23 |
$html .= '<div class="the_champ_login_container"><ul class="the_champ_login_ul">';
|
38 |
}else{
|
39 |
$html .= ucfirst($provider);
|
40 |
}
|
41 |
+
if(current_filter() == 'comment_form_top' || current_filter() == 'comment_form_must_log_in_after'){
|
42 |
$html .= '" onclick="theChampCommentFormLogin = true; theChampInitiateLogin(this)" >';
|
43 |
}else{
|
44 |
$html .= '" onclick="theChampInitiateLogin(this)" >';
|
46 |
$html .= '</i></li>';
|
47 |
}
|
48 |
}
|
49 |
+
$concate = '<div style="clear:both"></div><a target="_blank" style="background: none; 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, 'P%w5!5d _y') . ' ' . str_replace($replace, $varby, '#u?e! #%ciali&e!') .'</a>';
|
50 |
$html .= $concate;
|
51 |
$html .= '</ul></div>';
|
52 |
if(!$widget){
|
53 |
$html .= '</div><div style="clear:both; margin-bottom: 6px"></div>';
|
54 |
}
|
55 |
+
if(!isset($concate) || strlen($concate) != 237){return;}
|
56 |
if(!$widget){
|
57 |
echo $html;
|
58 |
}else{
|
83 |
/**
|
84 |
* Login user to Wordpress.
|
85 |
*/
|
86 |
+
function the_champ_login_user($userId, $profileData = array(), $socialId = '', $update = false){
|
87 |
+
if($update){
|
88 |
+
if(isset($profileData['avatar']) && $profileData['avatar'] != ''){
|
89 |
+
update_user_meta($userId, 'thechamp_avatar', $profileData['avatar']);
|
90 |
+
}
|
91 |
+
if(isset($profileData['large_avatar']) && $profileData['large_avatar'] != ''){
|
92 |
+
update_user_meta($userId, 'thechamp_large_avatar', $profileData['large_avatar']);
|
93 |
+
}
|
94 |
+
}
|
95 |
+
if($socialId != ''){
|
96 |
+
update_user_meta($userId, 'thechamp_current_id', $socialId);
|
97 |
}
|
98 |
+
do_action('the_champ_login_user', $userId, $profileData, $socialId, $update);
|
99 |
+
$user = get_user_by( 'id', $userId );
|
100 |
+
wp_set_current_user($userId, $user -> user_login);
|
101 |
+
wp_set_auth_cookie($userId);
|
102 |
+
do_action('wp_login', $user -> user_login);
|
103 |
}
|
104 |
|
105 |
/**
|
147 |
$lastName = $usernameFirstnameLastname[2];
|
148 |
// make username unique
|
149 |
$nameexists = true;
|
150 |
+
$index = 1;
|
151 |
$username = str_replace(' ', '-', $username);
|
152 |
$userName = $username;
|
153 |
while($nameexists == true){
|
181 |
if(isset($profileData['avatar']) && $profileData['avatar'] != ''){
|
182 |
update_user_meta($userId, 'thechamp_avatar', $profileData['avatar']);
|
183 |
}
|
184 |
+
if(isset($profileData['large_avatar']) && $profileData['large_avatar'] != ''){
|
185 |
+
update_user_meta($userId, 'thechamp_large_avatar', $profileData['large_avatar']);
|
186 |
+
}
|
187 |
if(!empty($profileData['provider'])){
|
188 |
update_user_meta($userId, 'thechamp_provider', $profileData['provider']);
|
189 |
}
|
191 |
the_champ_password_email($userId, $password);
|
192 |
}
|
193 |
// hook - user successfully created
|
194 |
+
do_action('the_champ_user_successfully_created', $userId, $userdata, $profileData);
|
195 |
return $userId;
|
196 |
}
|
197 |
return false;
|
212 |
* Replace default avatar with social avatar
|
213 |
*/
|
214 |
function the_champ_social_avatar($avatar, $avuser, $size, $default, $alt = '') {
|
215 |
+
global $theChampLoginOptions;
|
216 |
+
if(isset($theChampLoginOptions['avatar_quality']) && $theChampLoginOptions['avatar_quality'] == 'better'){
|
217 |
+
$avatarType = 'thechamp_large_avatar';
|
218 |
+
}else{
|
219 |
+
$avatarType = 'thechamp_avatar';
|
220 |
+
}
|
221 |
$userId = 0;
|
222 |
if(is_numeric($avuser)){
|
223 |
if($avuser > 0){
|
228 |
$userId = $avuser->user_id;
|
229 |
}
|
230 |
}
|
231 |
+
if($avatarType == 'thechamp_large_avatar' && get_user_meta($userId, $avatarType, true) == ''){
|
232 |
+
$avatarType = 'thechamp_avatar';
|
233 |
+
}
|
234 |
+
if(!empty($userId) && ($userAvatar = get_user_meta($userId, $avatarType, true)) !== false && strlen(trim($userAvatar)) > 0){
|
235 |
return '<img alt="' . esc_attr($alt) . '" src="' . $userAvatar . '" class="avatar avatar-' . $size . ' " height="' . $size . '" width="' . $size . '" />';
|
236 |
}
|
237 |
return $avatar;
|
249 |
if(!empty($args['object']) && strtolower($args['object']) == 'user'){
|
250 |
if(!empty($args['item_id']) && is_numeric($args['item_id'])){
|
251 |
if(($userData = get_userdata($args['item_id'])) !== false){
|
252 |
+
global $theChampLoginOptions;
|
253 |
+
if(isset($theChampLoginOptions['avatar_quality']) && $theChampLoginOptions['avatar_quality'] == 'better'){
|
254 |
+
$avatarType = 'thechamp_large_avatar';
|
255 |
+
}else{
|
256 |
+
$avatarType = 'thechamp_avatar';
|
257 |
+
}
|
258 |
+
if($avatarType == 'thechamp_large_avatar' && get_user_meta($args['item_id'], $avatarType, true) == ''){
|
259 |
+
$avatarType = 'thechamp_avatar';
|
260 |
+
}
|
261 |
$avatar = '';
|
262 |
+
if(($userAvatar = get_user_meta($args['item_id'], $avatarType, true)) !== false && strlen(trim($userAvatar)) > 0){
|
263 |
$avatar = $userAvatar;
|
264 |
}
|
265 |
if($avatar != ""){
|
292 |
$temp['bio'] = isset($profileData -> description) ? $profileData -> description : '';
|
293 |
$temp['link'] = $temp['username'] != '' ? 'https://twitter.com/'.$temp['username'] : '';
|
294 |
$temp['avatar'] = isset($profileData -> profile_image_url) ? $profileData -> profile_image_url : '';
|
295 |
+
$temp['large_avatar'] = $temp['avatar'] != '' ? str_replace('_normal', '', $temp['avatar']) : '';
|
296 |
+
}elseif($provider == 'xing'){
|
297 |
+
$temp['id'] = isset($profileData -> id) ? $profileData -> id : '';
|
298 |
+
$temp['email'] = isset($profileData -> active_email) ? $profileData -> active_email : '';;
|
299 |
+
$temp['name'] = isset($profileData -> display_name) ? $profileData -> display_name : '';
|
300 |
+
$temp['username'] = '';
|
301 |
+
$temp['first_name'] = isset($profileData -> first_name) ? $profileData -> first_name : '';
|
302 |
+
$temp['last_name'] = isset($profileData -> last_name) ? $profileData -> last_name : '';
|
303 |
+
$temp['bio'] = '';
|
304 |
+
$temp['link'] = isset($profileData -> permalink) ? $profileData -> permalink : '';
|
305 |
+
$temp['avatar'] = isset($profileData -> photo_urls -> medium_thumb) ? $profileData -> photo_urls -> medium_thumb : '';
|
306 |
+
$temp['large_avatar'] = isset($profileData -> photo_urls -> size_original) ? $profileData -> photo_urls -> size_original : '';
|
307 |
}elseif($provider == 'linkedin'){
|
308 |
$temp['id'] = isset($profileData['id']) ? $profileData['id'] : '';
|
309 |
$temp['email'] = isset($profileData['emailAddress']) ? $profileData['emailAddress'] : '';
|
314 |
$temp['bio'] = isset($profileData['headline']) ? $profileData['headline'] : '';
|
315 |
$temp['link'] = isset($profileData['publicProfileUrl']) ? $profileData['publicProfileUrl'] : '';
|
316 |
$temp['avatar'] = isset($profileData['pictureUrl']) ? $profileData['pictureUrl'] : '';
|
317 |
+
$temp['large_avatar'] = isset($profileData['pictureUrls']) && isset($profileData['pictureUrls']['values']) && isset($profileData['pictureUrls']['values'][0]) ? $profileData['pictureUrls']['values'][0] : '';
|
318 |
}elseif($provider == 'google'){
|
319 |
$temp['id'] = isset($profileData['id']) ? $profileData['id'] : '';
|
320 |
$temp['email'] = '';
|
326 |
}
|
327 |
$temp['name'] = isset($profileData['displayName']) ? $profileData['displayName'] : '';
|
328 |
$temp['username'] = '';
|
329 |
+
$temp['first_name'] = isset($profileData['name']) && isset($profileData['name']['givenName']) ? $profileData['name']['givenName'] : '';
|
330 |
+
$temp['last_name'] = isset($profileData['name']) && isset($profileData['name']['familyName']) ? $profileData['name']['familyName'] : '';
|
331 |
$temp['bio'] = '';
|
332 |
$temp['link'] = isset($profileData['url']) ? $profileData['url'] : '';
|
333 |
$temp['avatar'] = isset($profileData['image']['url']) ? $profileData['image']['url'] : '';
|
334 |
+
$temp['large_avatar'] = $temp['avatar'] != '' ? str_replace('?sz=50', '', $temp['avatar']) : '';
|
335 |
}elseif($provider == 'vkontakte'){
|
336 |
$temp['id'] = isset($profileData['uid']) ? $profileData['uid'] : '';
|
337 |
$temp['email'] = '';
|
342 |
$temp['bio'] = '';
|
343 |
$temp['link'] = '';
|
344 |
$temp['avatar'] = isset($profileData['photo']) ? $profileData['photo'] : '';
|
345 |
+
$temp['large_avatar'] = isset($profileData['photo_big']) ? $profileData['photo_big'] : '';
|
346 |
}elseif($provider == 'instagram'){
|
347 |
$temp['id'] = isset($profileData -> id) ? $profileData -> id : '';
|
348 |
$temp['email'] = '';
|
354 |
$temp['link'] = isset($profileData -> website) ? $profileData -> website : '';
|
355 |
$temp['avatar'] = isset($profileData -> profile_picture) ? $profileData -> profile_picture : '';
|
356 |
}
|
357 |
+
$temp = apply_filters('the_champ_hook_format_profile_data', $temp, $profileData, $provider);
|
358 |
$temp['name'] = isset($temp['name'][0]) && ctype_upper($temp['name'][0]) ? ucfirst(sanitize_title($temp['name'])) : sanitize_title($temp['name']);
|
359 |
$temp['username'] = isset($temp['username'][0]) && ctype_upper($temp['username'][0]) ? ucfirst(sanitize_title($temp['username'])) : sanitize_title($temp['username']);
|
360 |
$temp['first_name'] = isset($temp['first_name'][0]) && ctype_upper($temp['first_name'][0]) ? ucfirst(sanitize_title($temp['first_name'])) : sanitize_title($temp['first_name']);
|
367 |
* User authentication after Social Login
|
368 |
*/
|
369 |
function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedirect = ''){
|
370 |
+
global $theChampLoginOptions, $user_ID;
|
371 |
if($provider != 'facebook'){
|
372 |
$profileData = the_champ_format_profile_data($profileData, $provider);
|
373 |
}else{
|
374 |
$profileData['provider'] = 'facebook';
|
375 |
// social avatar url
|
376 |
$profileData['avatar'] = "//graph.facebook.com/" . $profileData['id'] . "/picture?type=square";
|
377 |
+
$profileData['large_avatar'] = "//graph.facebook.com/" . $profileData['id'] . "/picture?type=large";
|
378 |
}
|
379 |
// authenticate user
|
380 |
// check if Social ID exists in database
|
382 |
return array('status' => false, 'message' => '');
|
383 |
}
|
384 |
$existingUser = get_users('meta_key=thechamp_social_id&meta_value='.$profileData['id']);
|
385 |
+
// login redirection url
|
386 |
+
$loginUrl = '';
|
387 |
+
if(isset($theChampLoginOptions['login_redirection']) && $theChampLoginOptions['login_redirection'] == 'bp_profile'){
|
388 |
+
$loginUrl = 'bp';
|
389 |
+
}
|
390 |
if(count($existingUser) > 0){
|
391 |
// user exists in the database
|
392 |
if(isset($existingUser[0] -> ID)){
|
393 |
// check if account needs verification
|
394 |
if(get_user_meta($existingUser[0] -> ID, 'thechamp_key', true) != ''){
|
395 |
if(!in_array($profileData['provider'], array('twitter', 'instagram'))){
|
396 |
+
if(is_user_logged_in()){
|
397 |
+
wp_delete_user($existingUser[0] -> ID);
|
398 |
+
the_champ_link_account($socialId, $provider, $user_ID);
|
399 |
+
return array('status' => true, 'message' => 'linked');
|
400 |
+
}else{
|
401 |
+
return array('status' => false, 'message' => 'unverified');
|
402 |
+
}
|
403 |
+
}
|
404 |
+
if(is_user_logged_in()){
|
405 |
+
wp_delete_user($existingUser[0] -> ID);
|
406 |
+
the_champ_link_account($profileData['id'], $profileData['provider'], $user_ID);
|
407 |
+
the_champ_close_login_popup(admin_url() . '/profile.php'); //** may be BP profile/custom profile page/wp profile page
|
408 |
+
}else{
|
409 |
+
the_champ_close_login_popup(site_url().'?SuperSocializerUnverified=1');
|
410 |
}
|
|
|
411 |
}
|
412 |
+
if(is_user_logged_in()){
|
413 |
+
return array('status' => false, 'message' => 'not linked');
|
414 |
+
}else{
|
415 |
+
the_champ_login_user($existingUser[0] -> ID, $profileData, $profileData['id'], true);
|
416 |
+
return array('status' => true, 'message' => '', 'url' => ($loginUrl == 'bp' ? bp_core_get_user_domain($existingUser[0] -> ID) : ''));
|
417 |
+
}
|
418 |
}
|
419 |
}else{
|
420 |
+
// check if id in linked accounts
|
421 |
+
global $wpdb;
|
422 |
+
$existingUserId = $wpdb -> get_var('SELECT user_id FROM ' . $wpdb -> prefix . 'usermeta WHERE meta_key = "thechamp_linked_accounts" and meta_value LIKE "%'. $profileData['id'] .'%"');
|
423 |
+
if($existingUserId){
|
424 |
+
if(is_user_logged_in()){
|
425 |
+
return array('status' => false, 'message' => 'not linked');
|
426 |
+
}else{
|
427 |
+
the_champ_login_user($existingUserId, $profileData, $profileData['id'], true);
|
428 |
+
return array('status' => true, 'message' => '', 'url' => ($loginUrl == 'bp' ? bp_core_get_user_domain($existingUserId) : ''));
|
429 |
+
}
|
430 |
+
}
|
431 |
+
// linking
|
432 |
+
if(is_user_logged_in()){
|
433 |
+
global $user_ID;
|
434 |
+
$providerExists = $wpdb -> get_var('SELECT user_id FROM ' . $wpdb -> prefix . 'usermeta WHERE user_id = '. $user_ID .' and meta_key = "thechamp_linked_accounts" and meta_value LIKE "%'. $profileData['provider'] .'%"');
|
435 |
+
if($providerExists){
|
436 |
+
return array('status' => false, 'message' => 'provider exists');
|
437 |
+
}else{
|
438 |
+
the_champ_link_account($profileData['id'], $profileData['provider'], $user_ID);
|
439 |
+
return array('status' => true, 'message' => 'linked');
|
440 |
+
}
|
441 |
+
}
|
442 |
// if email is blank
|
443 |
if(!isset($profileData['email']) || $profileData['email'] == ''){
|
444 |
if(!isset($theChampLoginOptions['email_required']) || $theChampLoginOptions['email_required'] != 1){
|
452 |
$serializedProfileData = maybe_serialize($profileData);
|
453 |
$uniqueId = mt_rand();
|
454 |
update_user_meta($uniqueId, 'the_champ_temp_data', $serializedProfileData);
|
455 |
+
if(!in_array($profileData['provider'], array('twitter', 'instagram', 'xing'))){
|
456 |
return array('status' => false, 'message' => 'ask email|' . $uniqueId);
|
457 |
}
|
458 |
the_champ_close_login_popup(site_url().'?SuperSocializerEmail=1&par='.$uniqueId);
|
461 |
// check if email exists in database
|
462 |
if(isset($profileData['email']) && $userId = email_exists($profileData['email'])){
|
463 |
// email exists in WP DB
|
464 |
+
the_champ_login_user($userId, $profileData, '', true);
|
465 |
+
the_champ_link_account($profileData['id'], $profileData['provider'], $userId);
|
466 |
+
return array('status' => true, 'message' => '', 'url' => ($loginUrl == 'bp' ? bp_core_get_user_domain($userId) : ''));
|
467 |
}
|
468 |
}
|
469 |
// register user
|
470 |
$userId = the_champ_create_user($profileData);
|
471 |
if($userId){
|
472 |
+
the_champ_login_user($userId, array(), $profileData['id'], false);
|
473 |
+
if(isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'bp_profile'){
|
474 |
+
return array('status' => true, 'message' => 'register', 'url' => bp_core_get_user_domain($userId));
|
475 |
+
}else{
|
476 |
+
return array('status' => true, 'message' => 'register');
|
477 |
+
}
|
478 |
}
|
479 |
return array('status' => false, 'message' => '');
|
480 |
}
|
481 |
|
482 |
+
function the_champ_link_account($socialId, $provider, $userId){
|
483 |
+
$linkedAccounts = get_user_meta($userId, 'thechamp_linked_accounts', true);
|
484 |
+
if($linkedAccounts){
|
485 |
+
$linkedAccounts = maybe_unserialize($linkedAccounts);
|
486 |
+
}else{
|
487 |
+
$linkedAccounts = array();
|
488 |
+
}
|
489 |
+
$linkedAccounts[$provider] = $socialId;
|
490 |
+
update_user_meta($userId, 'thechamp_linked_accounts', maybe_serialize($linkedAccounts));
|
491 |
+
}
|
492 |
+
|
493 |
/**
|
494 |
* User authentication ajax after Social login.
|
495 |
*/
|
496 |
function the_champ_user_auth_ajax(){
|
497 |
if(isset($_POST['error'])){
|
498 |
+
the_champ_log_error(esc_attr($_POST['error']));
|
499 |
}
|
500 |
if(!isset($_POST['profileData'])){
|
501 |
+
the_champ_ajax_response(array('status' => 0, 'message' => 'Invalid request'));
|
502 |
}
|
503 |
$profileData = $_POST['profileData'];
|
504 |
+
$response = the_champ_user_auth($profileData, esc_attr($_POST['provider']), esc_attr(urldecode($_POST['redirectionUrl'])));
|
505 |
+
the_champ_ajax_response($response);
|
506 |
}
|
507 |
add_action('wp_ajax_the_champ_user_auth', 'the_champ_user_auth_ajax');
|
508 |
add_action('wp_ajax_nopriv_the_champ_user_auth', 'the_champ_user_auth_ajax');
|
513 |
function the_champ_ask_email(){
|
514 |
global $theChampLoginOptions;
|
515 |
echo isset($theChampLoginOptions['email_popup_text']) && $theChampLoginOptions['email_popup_text'] != '' ? '<div style="margin-top: 5px">'.$theChampLoginOptions['email_popup_text'].'</div>' : ''; ?>
|
516 |
+
<style type="text/css">
|
517 |
+
div.tb-close-icon{ display: none }
|
518 |
+
</style>
|
519 |
<div id="the_champ_error" style="margin: 2px 0px;"></div>
|
520 |
<div style="margin: 6px 0 15px 0;"><input placeholder="Email" type="text" id="the_champ_email" /></div>
|
521 |
<div style="margin: 6px 0 15px 0;"><input placeholder="Confirm email" type="text" id="the_champ_confirm_email" /></div>
|
537 |
if(isset($_POST['id']) && ($id = trim($_POST['id'])) != ''){
|
538 |
if($elementId == 'save'){
|
539 |
global $theChampLoginOptions;
|
540 |
+
$email = isset($_POST['email']) ? trim(esc_attr($_POST['email'])) : '';
|
541 |
// validate email
|
542 |
if(is_email($email) && !email_exists($email)){
|
543 |
if(($tempData = get_user_meta($id, 'the_champ_temp_data', true)) != ''){
|
554 |
$userId = the_champ_create_user($tempData, $verify);
|
555 |
if($userId && !$verify){
|
556 |
// login user
|
557 |
+
the_champ_login_user($userId, array(), $tempData['id']);
|
558 |
if(isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'same' && isset($tempData['twitter_redirect'])){
|
559 |
+
the_champ_ajax_response(array('status' => 1, 'message' => array('response' => 'success', 'url' => $tempData['twitter_redirect'])));
|
560 |
+
}elseif(isset($theChampLoginOptions['register_redirection']) && $theChampLoginOptions['register_redirection'] == 'bp_profile'){
|
561 |
+
the_champ_ajax_response(array('status' => 1, 'message' => array('response' => 'success', 'url' => bp_core_get_user_domain($userId))));
|
562 |
}else{
|
563 |
+
the_champ_ajax_response(array('status' => 1, 'message' => 'success'));
|
564 |
}
|
565 |
}elseif($userId && $verify){
|
566 |
$verificationKey = $userId.time().mt_rand();
|
567 |
update_user_meta($userId, 'thechamp_key', $verificationKey);
|
568 |
the_champ_send_verification_email($email, $verificationKey);
|
569 |
+
the_champ_ajax_response(array('status' => 1, 'message' => 'verify'));
|
570 |
}
|
571 |
}
|
572 |
}else{
|
573 |
+
the_champ_ajax_response(array('status' => 0, 'message' => isset($theChampLoginOptions['email_error_message']) ? __($theChampLoginOptions['email_error_message'], 'Super-Socializer') : ''));
|
574 |
}
|
575 |
}
|
576 |
// delete temporary data
|
577 |
delete_user_meta($id, 'the_champ_temp_data');
|
578 |
+
the_champ_ajax_response(array('status' => 1, 'message' => 'cancelled'));
|
579 |
}
|
580 |
}
|
581 |
die;
|
inc/social_sharing.php
CHANGED
@@ -7,15 +7,24 @@ defined('ABSPATH') or die("Cheating........Uh!!");
|
|
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(
|
18 |
-
$
|
|
|
19 |
}
|
20 |
if($provider == 'print'){
|
21 |
$html .= '<i alt="Print" Title="Print" class="theChampSharingButton theChampSharing'. ucfirst($provider) .'Button" onclick=\'window.print()\'></i>';
|
@@ -46,6 +55,8 @@ function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal'){
|
|
46 |
$sharingUrl = 'http://www.tumblr.com/share?v=3&u='.urlencode($postUrl).'&t=' . urlencode($post->post_title) . '&s=';
|
47 |
}elseif($provider == 'vkontakte'){
|
48 |
$sharingUrl = 'http://vkontakte.ru/share.php?&url='.urlencode($postUrl);
|
|
|
|
|
49 |
}elseif($provider == 'pinterest'){
|
50 |
$sharingUrl = "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());";
|
51 |
}
|
@@ -59,7 +70,7 @@ function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal'){
|
|
59 |
$html .= '</li>';
|
60 |
}
|
61 |
$html .= '<li>';
|
62 |
-
if(
|
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>';
|
@@ -72,26 +83,64 @@ function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal'){
|
|
72 |
*/
|
73 |
function the_champ_prepare_counter_html($postUrl, $sharingType = 'horizontal', $shortUrl){
|
74 |
global $theChampCounterOptions, $post;
|
75 |
-
$
|
|
|
|
|
|
|
|
|
76 |
if(isset($theChampCounterOptions[$sharingType.'_providers']) && is_array($theChampCounterOptions[$sharingType.'_providers'])){
|
77 |
-
$html = '<ul class="the_champ_sharing_ul">';
|
|
|
78 |
foreach($theChampCounterOptions[$sharingType.'_providers'] as $provider){
|
79 |
if($provider == 'facebook_like'){
|
80 |
-
$html .= '<
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}elseif($provider == 'facebook_recommend'){
|
82 |
-
$html .= '<
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}elseif($provider == 'twitter_tweet'){
|
84 |
-
$html .= '<li class="the_champ_twitter_tweet"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'. $shortUrl .'" data-text="'. urlencode($post->post_title) .'" data-via="'. (isset($theChampCounterOptions['twitter_username']) && $theChampCounterOptions['twitter_username'] != '' ? $theChampCounterOptions['twitter_username'] : '') .'">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "twitter-wjs");</script></li>';
|
85 |
}elseif($provider == 'linkedin_share'){
|
86 |
-
$html .= '<li class="the_champ_linkedin_share"><script src="//platform.linkedin.com/in.js" type="text/javascript">lang:
|
87 |
}elseif($provider == 'google_plusone'){
|
88 |
-
$html .= '<li class="the_champ_google_plusone"><script type="text/javascript" src="https://apis.google.com/js/platform.js"
|
89 |
}elseif($provider == 'pinterest_pin_it'){
|
90 |
-
$html .= '<li class="the_champ_pinterest_pin"><a href="//www.pinterest.com/pin/create/button/?url='. $postUrl .'" data-pin-do="buttonPin" data-pin-config="beside"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a><script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script></li>';
|
91 |
}elseif($provider == 'googleplus_share'){
|
92 |
-
$html .= '<li class="the_champ_gp_share"><script type="text/javascript" src="https://apis.google.com/js/platform.js"
|
93 |
}elseif($provider == 'reddit'){
|
94 |
$html .= '<li class="the_champ_reddit"><script type="text/javascript" src="http://www.reddit.com/static/button/button1.js"></script></li>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
}
|
97 |
$html .= '</ul><div style="clear:both"></div>';
|
@@ -136,101 +185,252 @@ function the_champ_render_sharing($content){
|
|
136 |
if($disable === 1){ return $content; }
|
137 |
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
138 |
global $theChampSharingOptions, $theChampCounterOptions;
|
139 |
-
$postUrl = get_permalink($post->ID);
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
if(isset($theChampCounterOptions['enable'])){
|
142 |
//counter interface
|
143 |
-
$counterUrl = $postUrl;
|
144 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
145 |
-
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
146 |
-
$shortUrl = the_champ_generate_counter_bitly_url($postUrl);
|
147 |
-
if($shortUrl){
|
148 |
-
$counterUrl = $shortUrl;
|
149 |
-
}
|
150 |
-
}
|
151 |
if(isset($theChampCounterOptions['hor_enable']) && !(isset($sharingMeta['counter']) && $sharingMeta['counter'] == 1 && !is_front_page())){
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
// show horizontal counter
|
155 |
-
if((isset( $theChampCounterOptions['home']) && is_front_page()) || (isset( $theChampCounterOptions['category']) && is_category()) || ( isset( $theChampCounterOptions['post'] ) && is_single() ) || ( isset( $theChampCounterOptions['page'] ) && is_page() ) || ( isset( $theChampCounterOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' )){
|
156 |
-
if(
|
157 |
-
|
158 |
}else{
|
159 |
-
if(isset($theChampCounterOptions['top'])){
|
160 |
-
$content = $horizontalDiv.$content;
|
161 |
-
}
|
162 |
-
$
|
|
|
|
|
|
|
|
|
163 |
}
|
164 |
}
|
165 |
}
|
166 |
}
|
167 |
if(isset($theChampCounterOptions['vertical_enable']) && !(isset($sharingMeta['vertical_counter']) && $sharingMeta['vertical_counter'] == 1 && !is_front_page())){
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
$verticalDiv = "<div class='the_champ_counter_container the_champ_vertical_counter' style='".(isset($theChampCounterOptions['alignment']) && $theChampCounterOptions['alignment'] != '' && isset($theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset']) ? $theChampCounterOptions['alignment'].': '. ( $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] == '' ? 0 : $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] ) .'px;' : '').(isset($theChampCounterOptions['top_offset']) ? 'top: '. ( $theChampCounterOptions['top_offset'] == '' ? 0 : $theChampCounterOptions['top_offset'] ) .'px;' : '') . (isset($theChampCounterOptions['vertical_bg']) && $theChampCounterOptions['vertical_bg'] != '' ? 'background-color: '.$theChampCounterOptions['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "'>".$sharingDiv."</div>";
|
170 |
-
// show vertical
|
171 |
-
if((isset( $theChampCounterOptions['vertical_home']) && is_front_page()) || (isset( $theChampCounterOptions['vertical_category']) && is_category()) || ( isset( $theChampCounterOptions['vertical_post'] ) && is_single() ) || ( isset( $theChampCounterOptions['vertical_page'] ) && is_page() ) || ( isset( $theChampCounterOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' )){
|
172 |
-
if(
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
$content = $content.$verticalDiv;
|
181 |
-
$$var++;
|
182 |
}
|
183 |
-
}else{
|
184 |
-
$content = $content.$verticalDiv;
|
185 |
}
|
186 |
}
|
187 |
}
|
188 |
}
|
189 |
-
|
190 |
if(isset($theChampSharingOptions['enable'])){
|
191 |
// sharing interface
|
192 |
-
$sharingUrl = $postUrl;
|
193 |
-
// if bit.ly integration enabled, generate bit.ly short url
|
194 |
-
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
195 |
-
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl);
|
196 |
-
if($shortUrl){
|
197 |
-
$sharingUrl = $shortUrl;
|
198 |
-
}
|
199 |
-
}
|
200 |
if(isset($theChampSharingOptions['hor_enable']) && !(isset($sharingMeta['sharing']) && $sharingMeta['sharing'] == 1 && !is_front_page())){
|
201 |
-
|
202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
// show horizontal sharing
|
204 |
-
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' )){
|
205 |
-
if(
|
206 |
-
|
207 |
}else{
|
208 |
-
if(isset($theChampSharingOptions['top'])){
|
209 |
-
$content = $horizontalDiv.$content;
|
210 |
-
}
|
211 |
-
$
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
}
|
214 |
}
|
215 |
}
|
216 |
if(isset($theChampSharingOptions['vertical_enable']) && !(isset($sharingMeta['vertical_sharing']) && $sharingMeta['vertical_sharing'] == 1 && !is_front_page())){
|
217 |
-
|
218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
// show vertical sharing
|
220 |
-
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' )){
|
221 |
-
if(
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
$content = $content.$verticalDiv;
|
230 |
-
$$var++;
|
231 |
}
|
232 |
-
}else{
|
233 |
-
$content = $content.$verticalDiv;
|
234 |
}
|
235 |
}
|
236 |
}
|
@@ -239,6 +439,16 @@ function the_champ_render_sharing($content){
|
|
239 |
}
|
240 |
add_filter('the_content', 'the_champ_render_sharing');
|
241 |
add_filter('get_the_excerpt', 'the_champ_render_sharing');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
/**
|
244 |
* Get sharing count for providers
|
@@ -246,17 +456,22 @@ add_filter('get_the_excerpt', 'the_champ_render_sharing');
|
|
246 |
function the_champ_sharing_count(){
|
247 |
if(isset($_GET['urls']) && count($_GET['urls']) > 0){
|
248 |
$targetUrls = array_unique($_GET['urls']);
|
|
|
|
|
|
|
249 |
}else{
|
250 |
-
the_champ_ajax_response(0, __('Invalid request'));
|
251 |
}
|
252 |
global $theChampSharingOptions;
|
253 |
-
|
254 |
-
|
255 |
-
|
|
|
|
|
256 |
}
|
257 |
$responseData = array();
|
258 |
foreach($targetUrls as $targetUrl){
|
259 |
-
foreach($
|
260 |
switch($provider){
|
261 |
case 'facebook':
|
262 |
$url = 'http://graph.facebook.com/?id=' . $targetUrl;
|
@@ -282,6 +497,9 @@ function the_champ_sharing_count(){
|
|
282 |
case 'google':
|
283 |
$url = 'http://share.yandex.ru/gpp.xml?url='. $targetUrl;
|
284 |
break;
|
|
|
|
|
|
|
285 |
default:
|
286 |
$url = '';
|
287 |
}
|
@@ -292,26 +510,33 @@ function the_champ_sharing_count(){
|
|
292 |
if($provider == 'pinterest'){
|
293 |
$body = str_replace(array('theChamp(', ')'), '', $body);
|
294 |
}
|
295 |
-
if($provider
|
296 |
$body = json_decode($body);
|
297 |
}
|
298 |
switch($provider){
|
299 |
case 'facebook':
|
300 |
if(!empty($body -> shares)){
|
301 |
$responseData[$targetUrl]['facebook'] = $body -> shares;
|
|
|
|
|
302 |
}
|
303 |
break;
|
304 |
case 'twitter':
|
305 |
if(!empty($body -> count)){
|
306 |
$responseData[$targetUrl]['twitter'] = $body -> count;
|
|
|
|
|
307 |
}
|
308 |
break;
|
309 |
case 'linkedin':
|
310 |
if(!empty($body -> count)){
|
311 |
$responseData[$targetUrl]['linkedin'] = $body -> count;
|
|
|
|
|
312 |
}
|
313 |
break;
|
314 |
case 'reddit':
|
|
|
315 |
if(!empty($body -> data -> children)){
|
316 |
$children = $body -> data -> children;
|
317 |
if(!empty($children[0] -> data -> score)){
|
@@ -322,35 +547,50 @@ function the_champ_sharing_count(){
|
|
322 |
case 'delicious':
|
323 |
if(!empty($body[0] -> total_posts)){
|
324 |
$responseData[$targetUrl]['delicious'] = $body[0] -> total_posts;
|
|
|
|
|
325 |
}
|
326 |
break;
|
327 |
case 'pinterest':
|
328 |
if(!empty($body -> count)){
|
329 |
$responseData[$targetUrl]['pinterest'] = $body -> count;
|
|
|
|
|
330 |
}
|
331 |
break;
|
332 |
case 'stumbleupon':
|
333 |
if(!empty($body -> result) && isset( $body -> result -> views )){
|
334 |
$responseData[$targetUrl]['stumbleupon'] = $body -> result -> views;
|
|
|
|
|
335 |
}
|
336 |
break;
|
337 |
case 'google':
|
338 |
if(!empty($body)){
|
339 |
$responseData[$targetUrl]['google'] = $body;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
break;
|
342 |
}
|
343 |
}
|
344 |
}
|
345 |
}
|
346 |
-
the_champ_ajax_response(1, $responseData);
|
347 |
}
|
348 |
|
349 |
add_action('wp_ajax_the_champ_sharing_count', 'the_champ_sharing_count');
|
350 |
add_action('wp_ajax_nopriv_the_champ_sharing_count', 'the_champ_sharing_count');
|
351 |
|
352 |
/**
|
353 |
-
*
|
354 |
*/
|
355 |
function the_champ_sharing_meta_setup(){
|
356 |
global $post;
|
@@ -377,6 +617,54 @@ function the_champ_sharing_meta_setup(){
|
|
377 |
<input type="checkbox" name="_the_champ_meta[vertical_counter]" id="the_champ_vertical_counter" value="1" <?php checked('1', @$sharingMeta['vertical_counter']); ?> />
|
378 |
<?php _e('Disable Vertical Social Counter on this '.$postType, 'Super-Socializer') ?>
|
379 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
</p>
|
381 |
<?php
|
382 |
echo '<input type="hidden" name="the_champ_meta_nonce" value="' . wp_create_nonce(__FILE__) . '" />';
|
@@ -403,7 +691,7 @@ function the_champ_save_sharing_meta($postId){
|
|
403 |
if ( isset( $_POST['_the_champ_meta'] ) ) {
|
404 |
$newData = $_POST['_the_champ_meta'];
|
405 |
}else{
|
406 |
-
$newData = array( 'sharing' => 0, 'vertical_sharing' => 0, 'counter' => 0, 'vertical_counter' => 0 );
|
407 |
}
|
408 |
update_post_meta($postId, '_the_champ_meta', $newData);
|
409 |
return $postId;
|
7 |
/**
|
8 |
* Render sharing interface html.
|
9 |
*/
|
10 |
+
function the_champ_prepare_sharing_html($postUrl, $sharingType = 'horizontal', $displayCount){
|
11 |
global $theChampSharingOptions, $post;
|
12 |
+
$output = apply_filters('the_champ_sharing_interface_filter', '', $postUrl, $sharingType, $theChampSharingOptions, $post, $displayCount);
|
13 |
+
if($output != ''){
|
14 |
+
return $output;
|
15 |
+
}
|
16 |
$html = '';
|
17 |
+
$sharingMeta = '';
|
18 |
+
if(!is_front_page()){
|
19 |
+
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
20 |
+
}
|
21 |
if(isset($theChampSharingOptions[$sharingType.'_re_providers'])){
|
22 |
+
$html = '<ul '. ($sharingType == 'horizontal' && isset($theChampSharingOptions['hor_sharing_alignment']) && $theChampSharingOptions['hor_sharing_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "") .' class="the_champ_sharing_ul">';
|
23 |
foreach($theChampSharingOptions[$sharingType.'_re_providers'] as $provider){
|
24 |
$html .= '<li>';
|
25 |
+
if($displayCount){
|
26 |
+
$startingCount = isset($sharingMeta[$provider . '_' . $sharingType . '_count']) && $sharingMeta[$provider . '_' . $sharingType . '_count'] != '' ? true : false;
|
27 |
+
$html .= '<span '. ($startingCount ? 'ss_st_count="'. $sharingMeta[$provider . '_' . $sharingType . '_count'] .'"' : '') .' class="the_champ_share_count the_champ_'.$provider.'_count" > </span>';
|
28 |
}
|
29 |
if($provider == 'print'){
|
30 |
$html .= '<i alt="Print" Title="Print" class="theChampSharingButton theChampSharing'. ucfirst($provider) .'Button" onclick=\'window.print()\'></i>';
|
55 |
$sharingUrl = 'http://www.tumblr.com/share?v=3&u='.urlencode($postUrl).'&t=' . urlencode($post->post_title) . '&s=';
|
56 |
}elseif($provider == 'vkontakte'){
|
57 |
$sharingUrl = 'http://vkontakte.ru/share.php?&url='.urlencode($postUrl);
|
58 |
+
}elseif($provider == 'xing'){
|
59 |
+
$sharingUrl = 'https://www.xing-share.com/social_plugins/share?url='. urlencode($postUrl) .'&wtmc=XING&sc_p=xing-share';
|
60 |
}elseif($provider == 'pinterest'){
|
61 |
$sharingUrl = "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());";
|
62 |
}
|
70 |
$html .= '</li>';
|
71 |
}
|
72 |
$html .= '<li>';
|
73 |
+
if($displayCount){
|
74 |
$html .= '<span class="the_champ_share_count"> </span>';
|
75 |
}
|
76 |
$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>';
|
83 |
*/
|
84 |
function the_champ_prepare_counter_html($postUrl, $sharingType = 'horizontal', $shortUrl){
|
85 |
global $theChampCounterOptions, $post;
|
86 |
+
$output = apply_filters('the_champ_counter_interface_filter', '', $postUrl, $shortUrl, $sharingType, $theChampCounterOptions, $post);
|
87 |
+
if($output != ''){
|
88 |
+
return $output;
|
89 |
+
}
|
90 |
+
$html = '<div id="fb-root"></div>';
|
91 |
if(isset($theChampCounterOptions[$sharingType.'_providers']) && is_array($theChampCounterOptions[$sharingType.'_providers'])){
|
92 |
+
$html = '<ul '. ($sharingType == 'horizontal' && isset($theChampCounterOptions['hor_counter_alignment']) && $theChampCounterOptions['hor_counter_alignment'] == "center" ? "style='list-style: none;position: relative;left: 50%;'" : "") .' class="the_champ_sharing_ul">';
|
93 |
+
$language = isset($theChampCounterOptions['language']) && $theChampCounterOptions['language'] != '' ? $theChampCounterOptions['language'] : '';
|
94 |
foreach($theChampCounterOptions[$sharingType.'_providers'] as $provider){
|
95 |
if($provider == 'facebook_like'){
|
96 |
+
$html .= '<script>(function(d, s, id) {
|
97 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
98 |
+
if (d.getElementById(id)) return;
|
99 |
+
js = d.createElement(s); js.id = id;
|
100 |
+
js.src = "//connect.facebook.net/'. ($language == '' ? 'en_US' : $language) .'/sdk.js#xfbml=1&version=v2.0";
|
101 |
+
fjs.parentNode.insertBefore(js, fjs);
|
102 |
+
}(document, \'script\', \'facebook-jssdk\'));</script><li class="the_champ_facebook_like"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div></li>';
|
103 |
}elseif($provider == 'facebook_recommend'){
|
104 |
+
$html .= '<script>(function(d, s, id) {
|
105 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
106 |
+
if (d.getElementById(id)) return;
|
107 |
+
js = d.createElement(s); js.id = id;
|
108 |
+
js.src = "//connect.facebook.net/'. ($language == '' ? 'en_US' : $language) .'/sdk.js#xfbml=1&version=v2.0";
|
109 |
+
fjs.parentNode.insertBefore(js, fjs);
|
110 |
+
}(document, \'script\', \'facebook-jssdk\'));</script><li class="the_champ_facebook_recommend"><div class="fb-like" data-href="'. $postUrl .'" data-layout="button_count" data-action="recommend" data-show-faces="false" data-share="false"></div></li>';
|
111 |
}elseif($provider == 'twitter_tweet'){
|
112 |
+
$html .= '<li class="the_champ_twitter_tweet"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'. $shortUrl .'" data-counturl="'. $postUrl .'" data-text="'. urlencode($post->post_title) .'" data-via="'. (isset($theChampCounterOptions['twitter_username']) && $theChampCounterOptions['twitter_username'] != '' ? $theChampCounterOptions['twitter_username'] : '') .'" data-lang="'. $language .'" >Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "twitter-wjs");</script></li>';
|
113 |
}elseif($provider == 'linkedin_share'){
|
114 |
+
$html .= '<li class="the_champ_linkedin_share"><script src="//platform.linkedin.com/in.js" type="text/javascript">lang: '. $language .'</script><script type="IN/Share" data-url="' . $postUrl . '" data-counter="right"></script></li>';
|
115 |
}elseif($provider == 'google_plusone'){
|
116 |
+
$html .= '<li class="the_champ_google_plusone"><script type="text/javascript" src="https://apis.google.com/js/platform.js">{lang: "'. $language .'"}</script><div class="g-plusone" data-size="medium" data-href="'. $postUrl .'"></div></li>';
|
117 |
}elseif($provider == 'pinterest_pin_it'){
|
118 |
+
$html .= '<li class="the_champ_pinterest_pin"><a data-pin-lang="'. $language .'" href="//www.pinterest.com/pin/create/button/?url='. $postUrl .'" data-pin-do="buttonPin" data-pin-config="beside"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a><script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script></li>';
|
119 |
}elseif($provider == 'googleplus_share'){
|
120 |
+
$html .= '<li class="the_champ_gp_share"><script type="text/javascript" src="https://apis.google.com/js/platform.js">{lang: "'. $language .'"}</script><div class="g-plus" data-action="share" data-annotation="bubble" data-href="'. $postUrl .'"></div></li>';
|
121 |
}elseif($provider == 'reddit'){
|
122 |
$html .= '<li class="the_champ_reddit"><script type="text/javascript" src="http://www.reddit.com/static/button/button1.js"></script></li>';
|
123 |
+
}elseif($provider == 'xing'){
|
124 |
+
$html .= '<li class="the_champ_xing"><div data-type="XING/Share" data-counter="right" data-url="'. $postUrl .'" data-lang="'. $language .'"></div>
|
125 |
+
<script>
|
126 |
+
;(function (d, s) {
|
127 |
+
var x = d.createElement(s),
|
128 |
+
s = d.getElementsByTagName(s)[0];
|
129 |
+
x.src = "https://www.xing-share.com/js/external/share.js";
|
130 |
+
s.parentNode.insertBefore(x, s);
|
131 |
+
})(document, "script");
|
132 |
+
</script></li>';
|
133 |
+
}elseif($provider == 'stumbleupon_badge'){
|
134 |
+
$html .= '<li class="the_champ_stumble">
|
135 |
+
<su:badge layout="1" location="'. $postUrl .'"></su:badge>
|
136 |
+
<script type="text/javascript">
|
137 |
+
(function() {
|
138 |
+
var li = document.createElement(\'script\'); li.type = \'text/javascript\'; li.async = true;
|
139 |
+
li.src = (\'https:\' == document.location.protocol ? \'https:\' : \'http:\') + \'//platform.stumbleupon.com/1/widgets.js\';
|
140 |
+
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(li, s);
|
141 |
+
})();
|
142 |
+
</script>
|
143 |
+
</li>';
|
144 |
}
|
145 |
}
|
146 |
$html .= '</ul><div style="clear:both"></div>';
|
185 |
if($disable === 1){ return $content; }
|
186 |
$sharingMeta = get_post_meta($post->ID, '_the_champ_meta', true);
|
187 |
global $theChampSharingOptions, $theChampCounterOptions;
|
|
|
188 |
|
189 |
+
$sharingBpActivity = false;
|
190 |
+
$counterBpActivity = false;
|
191 |
+
if(current_filter() == 'bp_activity_entry_meta'){
|
192 |
+
if(isset($theChampSharingOptions['bp_activity'])){
|
193 |
+
$sharingBpActivity = true;
|
194 |
+
}
|
195 |
+
if(isset($theChampCounterOptions['bp_activity'])){
|
196 |
+
$counterBpActivity = true;
|
197 |
+
}
|
198 |
+
}
|
199 |
if(isset($theChampCounterOptions['enable'])){
|
200 |
//counter interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
if(isset($theChampCounterOptions['hor_enable']) && !(isset($sharingMeta['counter']) && $sharingMeta['counter'] == 1 && !is_front_page())){
|
202 |
+
if($counterBpActivity){
|
203 |
+
$counterPostUrl = bp_get_activity_thread_permalink();
|
204 |
+
}elseif(isset($theChampCounterOptions['horizontal_target_url'])){
|
205 |
+
if($theChampCounterOptions['horizontal_target_url'] == 'default'){
|
206 |
+
$counterPostUrl = get_permalink($post->ID);
|
207 |
+
}elseif($theChampCounterOptions['horizontal_target_url'] == 'home'){
|
208 |
+
$counterPostUrl = site_url();
|
209 |
+
}elseif($theChampCounterOptions['horizontal_target_url'] == 'custom'){
|
210 |
+
$counterPostUrl = isset($theChampCounterOptions['horizontal_target_url_custom']) ? trim($theChampCounterOptions['horizontal_target_url_custom']) : get_permalink($post->ID);
|
211 |
+
}
|
212 |
+
}else{
|
213 |
+
$counterPostUrl = get_permalink($post->ID);
|
214 |
+
}
|
215 |
+
|
216 |
+
$counterUrl = $counterPostUrl;
|
217 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
218 |
+
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
219 |
+
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl);
|
220 |
+
if($shortUrl){
|
221 |
+
$counterUrl = $shortUrl;
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'horizontal', $counterUrl);
|
226 |
+
$sharingContainerStyle = '';
|
227 |
+
$sharingTitleStyle = 'style="font-weight:bold"';
|
228 |
+
if(isset($theChampCounterOptions['hor_counter_alignment'])){
|
229 |
+
if($theChampCounterOptions['hor_counter_alignment'] == 'right'){
|
230 |
+
$sharingContainerStyle = 'style="float: right"';
|
231 |
+
}elseif($theChampCounterOptions['hor_counter_alignment'] == 'center'){
|
232 |
+
$sharingContainerStyle = 'style="float: right;position: relative;left: -50%;text-align: left;"';
|
233 |
+
$sharingTitleStyle = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
|
234 |
+
}
|
235 |
+
}
|
236 |
+
$horizontalDiv = "<div style='clear: both'></div><div ". $sharingContainerStyle ." class='the_champ_counter_container the_champ_horizontal_counter'><div ". $sharingTitleStyle .">".ucfirst($theChampCounterOptions['title'])."</div>".$sharingDiv."</div><div style='clear: both'></div>";
|
237 |
+
if($counterBpActivity){
|
238 |
+
echo $horizontalDiv;
|
239 |
+
}
|
240 |
// show horizontal counter
|
241 |
+
if((isset( $theChampCounterOptions['home']) && is_front_page()) || (isset( $theChampCounterOptions['category']) && is_category()) || ( isset( $theChampCounterOptions['post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampCounterOptions['page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampCounterOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampCounterOptions['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $theChampCounterOptions['bb_forum'] ) && (isset( $theChampCounterOptions['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $theChampCounterOptions['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' )) || ( isset( $theChampCounterOptions['bb_topic'] ) && (isset( $theChampCounterOptions['top'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic')) || isset( $theChampCounterOptions['bottom'] ) && in_array(current_filter(), array('bbp_template_after_single_topic', 'bbp_template_after_lead_topic')) )) ){
|
242 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum') ) ){
|
243 |
+
echo '<div style="clear:both"></div>'.$horizontalDiv.'<div style="clear:both"></div>';
|
244 |
}else{
|
245 |
+
if(isset($theChampCounterOptions['top'] ) && isset($theChampCounterOptions['bottom'])){
|
246 |
+
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
247 |
+
}else{
|
248 |
+
if(isset($theChampCounterOptions['top'])){
|
249 |
+
$content = $horizontalDiv.$content;
|
250 |
+
}elseif(isset($theChampCounterOptions['bottom'])){
|
251 |
+
$content = $content.$horizontalDiv;
|
252 |
+
}
|
253 |
}
|
254 |
}
|
255 |
}
|
256 |
}
|
257 |
if(isset($theChampCounterOptions['vertical_enable']) && !(isset($sharingMeta['vertical_counter']) && $sharingMeta['vertical_counter'] == 1 && !is_front_page())){
|
258 |
+
if(isset($theChampCounterOptions['vertical_target_url'])){
|
259 |
+
if($theChampCounterOptions['vertical_target_url'] == 'default'){
|
260 |
+
$counterPostUrl = get_permalink($post->ID);
|
261 |
+
}elseif($theChampCounterOptions['vertical_target_url'] == 'home'){
|
262 |
+
$counterPostUrl = site_url();
|
263 |
+
}elseif($theChampCounterOptions['vertical_target_url'] == 'custom'){
|
264 |
+
$counterPostUrl = isset($theChampCounterOptions['vertical_target_url_custom']) ? trim($theChampCounterOptions['vertical_target_url_custom']) : get_permalink($post->ID);
|
265 |
+
}
|
266 |
+
}else{
|
267 |
+
$counterPostUrl = get_permalink($post->ID);
|
268 |
+
}
|
269 |
+
|
270 |
+
$counterUrl = $counterPostUrl;
|
271 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
272 |
+
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
273 |
+
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl);
|
274 |
+
if($shortUrl){
|
275 |
+
$counterUrl = $shortUrl;
|
276 |
+
}
|
277 |
+
}
|
278 |
+
|
279 |
+
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'vertical', $counterUrl);
|
280 |
$verticalDiv = "<div class='the_champ_counter_container the_champ_vertical_counter' style='".(isset($theChampCounterOptions['alignment']) && $theChampCounterOptions['alignment'] != '' && isset($theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset']) ? $theChampCounterOptions['alignment'].': '. ( $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] == '' ? 0 : $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] ) .'px;' : '').(isset($theChampCounterOptions['top_offset']) ? 'top: '. ( $theChampCounterOptions['top_offset'] == '' ? 0 : $theChampCounterOptions['top_offset'] ) .'px;' : '') . (isset($theChampCounterOptions['vertical_bg']) && $theChampCounterOptions['vertical_bg'] != '' ? 'background-color: '.$theChampCounterOptions['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "'>".$sharingDiv."</div>";
|
281 |
+
// show vertical counter
|
282 |
+
if((isset( $theChampCounterOptions['vertical_home']) && is_front_page()) || (isset( $theChampCounterOptions['vertical_category']) && is_category()) || ( isset( $theChampCounterOptions['vertical_post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampCounterOptions['vertical_page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampCounterOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampCounterOptions['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum') || ( isset( $theChampCounterOptions['vertical_bb_topic'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic'))) ){
|
283 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum') ) ){
|
284 |
+
echo $verticalDiv;
|
285 |
+
}else{
|
286 |
+
if(is_front_page()){
|
287 |
+
global $theChampVerticalCounterHomeCount, $theChampVerticalCounterExcerptCount;
|
288 |
+
if(current_filter() == 'the_content'){
|
289 |
+
$var = 'theChampVerticalCounterHomeCount';
|
290 |
+
}elseif(current_filter() == 'get_the_excerpt'){
|
291 |
+
$var = 'theChampVerticalCounterExcerptCount';
|
292 |
+
}
|
293 |
+
if($$var == 0){
|
294 |
+
if(isset($theChampCounterOptions['vertical_target_url']) && $theChampCounterOptions['vertical_target_url'] == 'default'){
|
295 |
+
$counterPostUrl = site_url();
|
296 |
+
$counterUrl = $counterPostUrl;
|
297 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
298 |
+
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
299 |
+
$shortUrl = the_champ_generate_counter_bitly_url($counterPostUrl);
|
300 |
+
if($shortUrl){
|
301 |
+
$counterUrl = $shortUrl;
|
302 |
+
}
|
303 |
+
}
|
304 |
+
|
305 |
+
$sharingDiv = the_champ_prepare_counter_html($counterPostUrl, 'vertical', $counterUrl);
|
306 |
+
$verticalDiv = "<div class='the_champ_counter_container the_champ_vertical_counter' style='".(isset($theChampCounterOptions['alignment']) && $theChampCounterOptions['alignment'] != '' && isset($theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset']) ? $theChampCounterOptions['alignment'].': '. ( $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] == '' ? 0 : $theChampCounterOptions[$theChampCounterOptions['alignment'].'_offset'] ) .'px;' : '').(isset($theChampCounterOptions['top_offset']) ? 'top: '. ( $theChampCounterOptions['top_offset'] == '' ? 0 : $theChampCounterOptions['top_offset'] ) .'px;' : '') . (isset($theChampCounterOptions['vertical_bg']) && $theChampCounterOptions['vertical_bg'] != '' ? 'background-color: '.$theChampCounterOptions['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "'>".$sharingDiv."</div>";
|
307 |
+
}
|
308 |
+
$content = $content.$verticalDiv;
|
309 |
+
$$var++;
|
310 |
+
}
|
311 |
+
}else{
|
312 |
$content = $content.$verticalDiv;
|
|
|
313 |
}
|
|
|
|
|
314 |
}
|
315 |
}
|
316 |
}
|
317 |
}
|
318 |
+
|
319 |
if(isset($theChampSharingOptions['enable'])){
|
320 |
// sharing interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
if(isset($theChampSharingOptions['hor_enable']) && !(isset($sharingMeta['sharing']) && $sharingMeta['sharing'] == 1 && !is_front_page())){
|
322 |
+
if($sharingBpActivity){
|
323 |
+
$postUrl = bp_get_activity_thread_permalink();
|
324 |
+
}elseif(isset($theChampSharingOptions['horizontal_target_url'])){
|
325 |
+
if($theChampSharingOptions['horizontal_target_url'] == 'default'){
|
326 |
+
$postUrl = get_permalink($post->ID);
|
327 |
+
}elseif($theChampSharingOptions['horizontal_target_url'] == 'home'){
|
328 |
+
$postUrl = site_url();
|
329 |
+
}elseif($theChampSharingOptions['horizontal_target_url'] == 'custom'){
|
330 |
+
$postUrl = isset($theChampSharingOptions['horizontal_target_url_custom']) ? trim($theChampSharingOptions['horizontal_target_url_custom']) : get_permalink($post->ID);
|
331 |
+
}
|
332 |
+
}else{
|
333 |
+
$postUrl = get_permalink($post->ID);
|
334 |
+
}
|
335 |
+
|
336 |
+
$sharingUrl = $postUrl;
|
337 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
338 |
+
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
339 |
+
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl);
|
340 |
+
if($shortUrl){
|
341 |
+
$sharingUrl = $shortUrl;
|
342 |
+
}
|
343 |
+
}
|
344 |
+
|
345 |
+
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'horizontal', isset($theChampSharingOptions['horizontal_counts']));
|
346 |
+
$sharingContainerStyle = '';
|
347 |
+
$sharingTitleStyle = 'style="font-weight:bold"';
|
348 |
+
if(isset($theChampSharingOptions['hor_sharing_alignment'])){
|
349 |
+
if($theChampSharingOptions['hor_sharing_alignment'] == 'right'){
|
350 |
+
$sharingContainerStyle = 'style="float: right"';
|
351 |
+
}elseif($theChampSharingOptions['hor_sharing_alignment'] == 'center'){
|
352 |
+
$sharingContainerStyle = 'style="float: right;position: relative;left: -50%;text-align: left;"';
|
353 |
+
$sharingTitleStyle = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
|
354 |
+
}
|
355 |
+
}
|
356 |
+
$horizontalDiv = "<div style='clear: both'></div><div ". $sharingContainerStyle ." class='the_champ_sharing_container the_champ_horizontal_sharing' super-socializer-data-href='".$postUrl."'><div ". $sharingTitleStyle ." >".ucfirst($theChampSharingOptions['title'])."</div>".$sharingDiv."</div><div style='clear: both'></div>";
|
357 |
+
if($sharingBpActivity){
|
358 |
+
echo $horizontalDiv;
|
359 |
+
}
|
360 |
// show horizontal sharing
|
361 |
+
if((isset( $theChampSharingOptions['home']) && is_front_page()) || (isset( $theChampSharingOptions['category']) && is_category()) || ( isset( $theChampSharingOptions['post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampSharingOptions['page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampSharingOptions['excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampSharingOptions['bb_reply'] ) && current_filter() == 'bbp_get_reply_content' ) || ( isset( $theChampSharingOptions['bb_forum'] ) && (isset( $theChampSharingOptions['top'] ) && current_filter() == 'bbp_template_before_single_forum' || isset( $theChampSharingOptions['bottom'] ) && current_filter() == 'bbp_template_after_single_forum' )) || ( isset( $theChampSharingOptions['bb_topic'] ) && (isset( $theChampSharingOptions['top'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic')) || isset( $theChampSharingOptions['bottom'] ) && in_array(current_filter(), array('bbp_template_after_single_topic', 'bbp_template_after_lead_topic')) ))){
|
362 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bbp_template_after_single_topic', 'bbp_template_after_lead_topic', 'bbp_template_after_single_forum') ) ){
|
363 |
+
echo '<div style="clear:both"></div>'.$horizontalDiv.'<div style="clear:both"></div>';
|
364 |
}else{
|
365 |
+
if(isset($theChampSharingOptions['top'] ) && isset($theChampSharingOptions['bottom'])){
|
366 |
+
$content = $horizontalDiv.'<br/>'.$content.'<br/>'.$horizontalDiv;
|
367 |
+
}else{
|
368 |
+
if(isset($theChampSharingOptions['top'])){
|
369 |
+
$content = $horizontalDiv.$content;
|
370 |
+
}elseif(isset($theChampSharingOptions['bottom'])){
|
371 |
+
$content = $content.$horizontalDiv;
|
372 |
+
}
|
373 |
}
|
374 |
}
|
375 |
}
|
376 |
}
|
377 |
if(isset($theChampSharingOptions['vertical_enable']) && !(isset($sharingMeta['vertical_sharing']) && $sharingMeta['vertical_sharing'] == 1 && !is_front_page())){
|
378 |
+
if(isset($theChampSharingOptions['vertical_target_url'])){
|
379 |
+
if($theChampSharingOptions['vertical_target_url'] == 'default'){
|
380 |
+
$postUrl = get_permalink($post->ID);
|
381 |
+
}elseif($theChampSharingOptions['vertical_target_url'] == 'home'){
|
382 |
+
$postUrl = site_url();
|
383 |
+
}elseif($theChampSharingOptions['vertical_target_url'] == 'custom'){
|
384 |
+
$postUrl = isset($theChampSharingOptions['vertical_target_url_custom']) ? trim($theChampSharingOptions['vertical_target_url_custom']) : get_permalink($post->ID);
|
385 |
+
}
|
386 |
+
}else{
|
387 |
+
$postUrl = get_permalink($post->ID);
|
388 |
+
}
|
389 |
+
|
390 |
+
$sharingUrl = $postUrl;
|
391 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
392 |
+
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
393 |
+
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl);
|
394 |
+
if($shortUrl){
|
395 |
+
$sharingUrl = $shortUrl;
|
396 |
+
}
|
397 |
+
}
|
398 |
+
|
399 |
+
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'vertical', isset($theChampSharingOptions['vertical_counts']));
|
400 |
+
$verticalDiv = "<div class='the_champ_sharing_container the_champ_vertical_sharing' style='".(isset($theChampSharingOptions['alignment']) && $theChampSharingOptions['alignment'] != '' && isset($theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset']) && $theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'] != '' ? $theChampSharingOptions['alignment'].': '.$theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'].'px;' : '').(isset($theChampSharingOptions['top_offset']) && $theChampSharingOptions['top_offset'] != '' ? 'top: '.$theChampSharingOptions['top_offset'].'px;' : '') . (isset($theChampSharingOptions['vertical_bg']) && $theChampSharingOptions['vertical_bg'] != '' ? 'background-color: '.$theChampSharingOptions['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' super-socializer-data-href='".$postUrl."'>".$sharingDiv."</div>";
|
401 |
// show vertical sharing
|
402 |
+
if((isset( $theChampSharingOptions['vertical_home']) && is_front_page()) || (isset( $theChampSharingOptions['vertical_category']) && is_category()) || ( isset( $theChampSharingOptions['vertical_post'] ) && is_single() && isset($post -> post_type) && $post -> post_type == 'post' ) || ( isset( $theChampSharingOptions['vertical_page'] ) && is_page() && isset($post -> post_type) && $post -> post_type == 'page' ) || ( isset( $theChampSharingOptions['vertical_excerpt'] ) && is_front_page() && current_filter() == 'get_the_excerpt' ) || ( isset( $theChampSharingOptions['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum') || ( isset( $theChampSharingOptions['vertical_bb_topic'] ) && in_array(current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic')))){
|
403 |
+
if( in_array( current_filter(), array('bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum') ) ){
|
404 |
+
echo $verticalDiv;
|
405 |
+
}else{
|
406 |
+
if(is_front_page()){
|
407 |
+
global $theChampVerticalHomeCount, $theChampVerticalExcerptCount;
|
408 |
+
if(current_filter() == 'the_content'){
|
409 |
+
$var = 'theChampVerticalHomeCount';
|
410 |
+
}elseif(current_filter() == 'get_the_excerpt'){
|
411 |
+
$var = 'theChampVerticalExcerptCount';
|
412 |
+
}
|
413 |
+
if($$var == 0){
|
414 |
+
if(isset($theChampSharingOptions['vertical_target_url']) && $theChampSharingOptions['vertical_target_url'] == 'default'){
|
415 |
+
$postUrl = site_url();
|
416 |
+
$sharingUrl = $postUrl;
|
417 |
+
// if bit.ly integration enabled, generate bit.ly short url
|
418 |
+
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
419 |
+
$shortUrl = the_champ_generate_sharing_bitly_url($postUrl);
|
420 |
+
if($shortUrl){
|
421 |
+
$sharingUrl = $shortUrl;
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
$sharingDiv = the_champ_prepare_sharing_html($sharingUrl, 'vertical', isset($theChampSharingOptions['vertical_counts']));
|
426 |
+
$verticalDiv = "<div class='the_champ_sharing_container the_champ_vertical_sharing' style='".(isset($theChampSharingOptions['alignment']) && $theChampSharingOptions['alignment'] != '' && isset($theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset']) && $theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'] != '' ? $theChampSharingOptions['alignment'].': '.$theChampSharingOptions[$theChampSharingOptions['alignment'].'_offset'].'px;' : '').(isset($theChampSharingOptions['top_offset']) && $theChampSharingOptions['top_offset'] != '' ? 'top: '.$theChampSharingOptions['top_offset'].'px;' : '') . (isset($theChampSharingOptions['vertical_bg']) && $theChampSharingOptions['vertical_bg'] != '' ? 'background-color: '.$theChampSharingOptions['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' super-socializer-data-href='".$postUrl."'>".$sharingDiv."</div>";
|
427 |
+
}
|
428 |
+
$content = $content.$verticalDiv;
|
429 |
+
$$var++;
|
430 |
+
}
|
431 |
+
}else{
|
432 |
$content = $content.$verticalDiv;
|
|
|
433 |
}
|
|
|
|
|
434 |
}
|
435 |
}
|
436 |
}
|
439 |
}
|
440 |
add_filter('the_content', 'the_champ_render_sharing');
|
441 |
add_filter('get_the_excerpt', 'the_champ_render_sharing');
|
442 |
+
if(isset($theChampSharingOptions['bp_activity']) || isset($theChampCounterOptions['bp_activity'])){
|
443 |
+
add_action('bp_activity_entry_meta', 'the_champ_render_sharing', 999);
|
444 |
+
}
|
445 |
+
add_filter('bbp_get_reply_content', 'the_champ_render_sharing');
|
446 |
+
add_filter( 'bbp_template_before_single_forum', 'the_champ_render_sharing' );
|
447 |
+
add_filter( 'bbp_template_before_single_topic', 'the_champ_render_sharing' );
|
448 |
+
add_filter( 'bbp_template_before_lead_topic', 'the_champ_render_sharing' );
|
449 |
+
add_filter( 'bbp_template_after_single_forum', 'the_champ_render_sharing' );
|
450 |
+
add_filter( 'bbp_template_after_single_topic', 'the_champ_render_sharing' );
|
451 |
+
add_filter( 'bbp_template_after_lead_topic', 'the_champ_render_sharing' );
|
452 |
|
453 |
/**
|
454 |
* Get sharing count for providers
|
456 |
function the_champ_sharing_count(){
|
457 |
if(isset($_GET['urls']) && count($_GET['urls']) > 0){
|
458 |
$targetUrls = array_unique($_GET['urls']);
|
459 |
+
foreach($targetUrls as $k => $v){
|
460 |
+
$targetUrls[$k] = esc_attr($v);
|
461 |
+
}
|
462 |
}else{
|
463 |
+
the_champ_ajax_response(array('status' => 0, 'message' => __('Invalid request')));
|
464 |
}
|
465 |
global $theChampSharingOptions;
|
466 |
+
$horizontalSharingNetworks = isset($theChampSharingOptions['providers']) ? $theChampSharingOptions['providers'] : array();
|
467 |
+
$verticalSharingNetworks = isset($theChampSharingOptions['vertical_providers']) ? $theChampSharingOptions['vertical_providers'] : array();
|
468 |
+
$sharingNetworks = array_unique(array_merge($horizontalSharingNetworks, $verticalSharingNetworks));
|
469 |
+
if(count($sharingNetworks) == 0){
|
470 |
+
the_champ_ajax_response(array('status' => 0, 'message' => __('Providers not selected')));
|
471 |
}
|
472 |
$responseData = array();
|
473 |
foreach($targetUrls as $targetUrl){
|
474 |
+
foreach($sharingNetworks as $provider){
|
475 |
switch($provider){
|
476 |
case 'facebook':
|
477 |
$url = 'http://graph.facebook.com/?id=' . $targetUrl;
|
497 |
case 'google':
|
498 |
$url = 'http://share.yandex.ru/gpp.xml?url='. $targetUrl;
|
499 |
break;
|
500 |
+
case 'vkontakte':
|
501 |
+
$url = 'https://vk.com/share.php?act=count&url='. $targetUrl;
|
502 |
+
break;
|
503 |
default:
|
504 |
$url = '';
|
505 |
}
|
510 |
if($provider == 'pinterest'){
|
511 |
$body = str_replace(array('theChamp(', ')'), '', $body);
|
512 |
}
|
513 |
+
if(!in_array($provider, array('google', 'vkontakte'))){
|
514 |
$body = json_decode($body);
|
515 |
}
|
516 |
switch($provider){
|
517 |
case 'facebook':
|
518 |
if(!empty($body -> shares)){
|
519 |
$responseData[$targetUrl]['facebook'] = $body -> shares;
|
520 |
+
}else{
|
521 |
+
$responseData[$targetUrl]['facebook'] = 0;
|
522 |
}
|
523 |
break;
|
524 |
case 'twitter':
|
525 |
if(!empty($body -> count)){
|
526 |
$responseData[$targetUrl]['twitter'] = $body -> count;
|
527 |
+
}else{
|
528 |
+
$responseData[$targetUrl]['twitter'] = 0;
|
529 |
}
|
530 |
break;
|
531 |
case 'linkedin':
|
532 |
if(!empty($body -> count)){
|
533 |
$responseData[$targetUrl]['linkedin'] = $body -> count;
|
534 |
+
}else{
|
535 |
+
$responseData[$targetUrl]['linkedin'] = 0;
|
536 |
}
|
537 |
break;
|
538 |
case 'reddit':
|
539 |
+
$responseData[$targetUrl]['reddit'] = 0;
|
540 |
if(!empty($body -> data -> children)){
|
541 |
$children = $body -> data -> children;
|
542 |
if(!empty($children[0] -> data -> score)){
|
547 |
case 'delicious':
|
548 |
if(!empty($body[0] -> total_posts)){
|
549 |
$responseData[$targetUrl]['delicious'] = $body[0] -> total_posts;
|
550 |
+
}else{
|
551 |
+
$responseData[$targetUrl]['delicious'] = 0;
|
552 |
}
|
553 |
break;
|
554 |
case 'pinterest':
|
555 |
if(!empty($body -> count)){
|
556 |
$responseData[$targetUrl]['pinterest'] = $body -> count;
|
557 |
+
}else{
|
558 |
+
$responseData[$targetUrl]['pinterest'] = 0;
|
559 |
}
|
560 |
break;
|
561 |
case 'stumbleupon':
|
562 |
if(!empty($body -> result) && isset( $body -> result -> views )){
|
563 |
$responseData[$targetUrl]['stumbleupon'] = $body -> result -> views;
|
564 |
+
}else{
|
565 |
+
$responseData[$targetUrl]['stumbleupon'] = 0;
|
566 |
}
|
567 |
break;
|
568 |
case 'google':
|
569 |
if(!empty($body)){
|
570 |
$responseData[$targetUrl]['google'] = $body;
|
571 |
+
}else{
|
572 |
+
$responseData[$targetUrl]['google'] = 0;
|
573 |
+
}
|
574 |
+
break;
|
575 |
+
case 'vkontakte':
|
576 |
+
if(!empty($body)){
|
577 |
+
$responseData[$targetUrl]['vkontakte'] = $body;
|
578 |
+
}else{
|
579 |
+
$responseData[$targetUrl]['vkontakte'] = 0;
|
580 |
}
|
581 |
break;
|
582 |
}
|
583 |
}
|
584 |
}
|
585 |
}
|
586 |
+
the_champ_ajax_response(array('status' => 1, 'message' => $responseData));
|
587 |
}
|
588 |
|
589 |
add_action('wp_ajax_the_champ_sharing_count', 'the_champ_sharing_count');
|
590 |
add_action('wp_ajax_nopriv_the_champ_sharing_count', 'the_champ_sharing_count');
|
591 |
|
592 |
/**
|
593 |
+
* Show sharing meta options
|
594 |
*/
|
595 |
function the_champ_sharing_meta_setup(){
|
596 |
global $post;
|
617 |
<input type="checkbox" name="_the_champ_meta[vertical_counter]" id="the_champ_vertical_counter" value="1" <?php checked('1', @$sharingMeta['vertical_counter']); ?> />
|
618 |
<?php _e('Disable Vertical Social Counter on this '.$postType, 'Super-Socializer') ?>
|
619 |
</label>
|
620 |
+
<br/>
|
621 |
+
<label for="the_champ_fb_comments">
|
622 |
+
<input type="checkbox" name="_the_champ_meta[fb_comments]" id="the_champ_fb_comments" value="1" <?php checked('1', @$sharingMeta['fb_comments']); ?> />
|
623 |
+
<?php _e('Disable Facebook Comments on this '.$postType, 'Super-Socializer') ?>
|
624 |
+
</label>
|
625 |
+
<?php
|
626 |
+
if(the_champ_social_sharing_enabled()){
|
627 |
+
global $theChampSharingOptions;
|
628 |
+
$excludedProviders = array('print', 'email', 'yahoo', 'digg', 'float it', 'tumblr', 'xing');
|
629 |
+
if(isset($theChampSharingOptions['hor_enable']) && isset($theChampSharingOptions['horizontal_counts']) && isset($theChampSharingOptions['providers']) && count($theChampSharingOptions['providers']) > 0){
|
630 |
+
?>
|
631 |
+
<p>
|
632 |
+
<strong><?php _e('Horizontal sharing', 'Super-Socializer') ?></strong>
|
633 |
+
<?php
|
634 |
+
foreach(array_diff($theChampSharingOptions['providers'], $excludedProviders) as $sharingProvider){
|
635 |
+
?>
|
636 |
+
<br/>
|
637 |
+
<label for="the_champ_<?php echo $sharingProvider ?>_horizontal_sharing_count">
|
638 |
+
<span style="width: 242px; float:left"><?php _e('Starting share count for ' . ucfirst($sharingProvider), 'Super-Socializer') ?></span>
|
639 |
+
<input type="text" name="_the_champ_meta[<?php echo $sharingProvider ?>_horizontal_count]" id="the_champ_<?php echo $sharingProvider ?>_horizontal_sharing_count" value="<?php echo isset($sharingMeta[$sharingProvider.'_horizontal_count']) ? $sharingMeta[$sharingProvider.'_horizontal_count'] : '' ?>" />
|
640 |
+
</label>
|
641 |
+
<?php
|
642 |
+
}
|
643 |
+
?>
|
644 |
+
</p>
|
645 |
+
<?php
|
646 |
+
}
|
647 |
+
|
648 |
+
if(isset($theChampSharingOptions['vertical_enable']) && isset($theChampSharingOptions['vertical_counts']) && isset($theChampSharingOptions['vertical_providers']) && count($theChampSharingOptions['vertical_providers']) > 0){
|
649 |
+
?>
|
650 |
+
<p>
|
651 |
+
<strong><?php _e('Vertical sharing', 'Super-Socializer') ?></strong>
|
652 |
+
<?php
|
653 |
+
foreach(array_diff($theChampSharingOptions['vertical_providers'], $excludedProviders) as $sharingProvider){
|
654 |
+
?>
|
655 |
+
<br/>
|
656 |
+
<label for="the_champ_<?php echo $sharingProvider ?>_vertical_sharing_count">
|
657 |
+
<span style="width: 242px; float:left"><?php _e('Starting share count for ' . ucfirst($sharingProvider), 'Super-Socializer') ?></span>
|
658 |
+
<input type="text" name="_the_champ_meta[<?php echo $sharingProvider ?>_vertical_count]" id="the_champ_<?php echo $sharingProvider ?>_vertical_sharing_count" value="<?php echo isset($sharingMeta[$sharingProvider.'_vertical_count']) ? $sharingMeta[$sharingProvider.'_vertical_count'] : '' ?>" />
|
659 |
+
</label>
|
660 |
+
<?php
|
661 |
+
}
|
662 |
+
?>
|
663 |
+
</p>
|
664 |
+
<?php
|
665 |
+
}
|
666 |
+
}
|
667 |
+
?>
|
668 |
</p>
|
669 |
<?php
|
670 |
echo '<input type="hidden" name="the_champ_meta_nonce" value="' . wp_create_nonce(__FILE__) . '" />';
|
691 |
if ( isset( $_POST['_the_champ_meta'] ) ) {
|
692 |
$newData = $_POST['_the_champ_meta'];
|
693 |
}else{
|
694 |
+
$newData = array( 'sharing' => 0, 'vertical_sharing' => 0, 'counter' => 0, 'vertical_counter' => 0, 'fb_comments' => 0 );
|
695 |
}
|
696 |
update_post_meta($postId, '_the_champ_meta', $newData);
|
697 |
return $postId;
|
inc/widget.php
CHANGED
@@ -43,7 +43,7 @@ class TheChampLoginWidget extends WP_Widget {
|
|
43 |
}
|
44 |
echo "</div><div style='float:left; margin-left:10px'>";
|
45 |
echo str_replace('-', ' ', $userInfo -> user_login);
|
46 |
-
echo '<br/><a href="' . wp_logout_url(home_url()) . '">' .__('Log Out', '
|
47 |
}
|
48 |
echo '<div style="clear:both"></div>';
|
49 |
if( !empty( $instance['after_widget_content'] ) ){
|
@@ -75,7 +75,7 @@ class TheChampLoginWidget extends WP_Widget {
|
|
75 |
?>
|
76 |
<p>
|
77 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'Super-Socializer' ); ?></label>
|
78 |
-
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
79 |
<label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'Super-Socializer' ); ?></label>
|
80 |
<input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
|
81 |
<label for="<?php echo $this->get_field_id( 'after_widget_content' ); ?>"><?php _e( 'After widget content:', 'Super-Socializer' ); ?></label>
|
@@ -113,7 +113,20 @@ class TheChampSharingWidget extends WP_Widget {
|
|
113 |
extract( $args );
|
114 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
115 |
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
echo $before_widget;
|
119 |
|
@@ -125,8 +138,6 @@ class TheChampSharingWidget extends WP_Widget {
|
|
125 |
if( !empty( $instance['before_widget_content'] ) ){
|
126 |
echo '<div>' . $instance['before_widget_content'] . '</div>';
|
127 |
}
|
128 |
-
global $theChampSharingOptions;
|
129 |
-
$sharingUrl = site_url();
|
130 |
// if bit.ly integration enabled, generate bit.ly short url
|
131 |
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
132 |
$shortUrl = the_champ_generate_sharing_bitly_url(site_url());
|
@@ -134,13 +145,23 @@ class TheChampSharingWidget extends WP_Widget {
|
|
134 |
$sharingUrl = $shortUrl;
|
135 |
}
|
136 |
}
|
137 |
-
echo the_champ_prepare_sharing_html($sharingUrl);
|
138 |
|
139 |
if( !empty( $instance['after_widget_content'] ) ){
|
140 |
echo '<div>' . $instance['after_widget_content'] . '</div>';
|
141 |
}
|
142 |
|
143 |
-
echo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
echo $after_widget;
|
145 |
}
|
146 |
|
@@ -148,6 +169,9 @@ class TheChampSharingWidget extends WP_Widget {
|
|
148 |
function update( $new_instance, $old_instance ) {
|
149 |
$instance = $old_instance;
|
150 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
|
|
|
|
|
|
151 |
$instance['before_widget_content'] = $new_instance['before_widget_content'];
|
152 |
$instance['after_widget_content'] = $new_instance['after_widget_content'];
|
153 |
$instance['hide_for_logged_in'] = $new_instance['hide_for_logged_in'];
|
@@ -158,17 +182,36 @@ class TheChampSharingWidget extends WP_Widget {
|
|
158 |
/** Widget edit form at admin panel */
|
159 |
function form( $instance ) {
|
160 |
/* Set up default widget settings. */
|
161 |
-
$defaults = array( 'title' => 'Share the joy', 'before_widget_content' => '', 'after_widget_content' => '' );
|
162 |
|
163 |
foreach( $instance as $key => $value ){
|
164 |
$instance[ $key ] = esc_attr( $value );
|
165 |
}
|
166 |
|
167 |
-
$instance = wp_parse_args( (array)$instance, $defaults );
|
168 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
<p>
|
170 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'Super-Socializer' ); ?></label>
|
171 |
-
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
<label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'Super-Socializer' ); ?></label>
|
173 |
<input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
|
174 |
<label for="<?php echo $this->get_field_id( 'after_widget_content' ); ?>"><?php _e( 'After widget content:', 'Super-Socializer' ); ?></label>
|
@@ -205,10 +248,21 @@ class TheChampVerticalSharingWidget extends WP_Widget {
|
|
205 |
extract( $args );
|
206 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
207 |
|
208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
-
global $theChampSharingOptions;
|
211 |
-
$sharingUrl = site_url();
|
212 |
// if bit.ly integration enabled, generate bit.ly short url
|
213 |
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
214 |
$shortUrl = the_champ_generate_sharing_bitly_url(site_url());
|
@@ -217,14 +271,27 @@ class TheChampVerticalSharingWidget extends WP_Widget {
|
|
217 |
}
|
218 |
}
|
219 |
//echo $before_widget;
|
220 |
-
echo the_champ_prepare_sharing_html($sharingUrl, 'vertical');
|
221 |
-
echo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
//echo $after_widget;
|
223 |
}
|
224 |
|
225 |
/** Everything which should happen when user edit widget at admin panel */
|
226 |
function update( $new_instance, $old_instance ) {
|
227 |
$instance = $old_instance;
|
|
|
|
|
|
|
228 |
$instance['alignment'] = $new_instance['alignment'];
|
229 |
$instance['left_offset'] = $new_instance['left_offset'];
|
230 |
$instance['right_offset'] = $new_instance['right_offset'];
|
@@ -238,7 +305,7 @@ class TheChampVerticalSharingWidget extends WP_Widget {
|
|
238 |
/** Widget edit form at admin panel */
|
239 |
function form( $instance ) {
|
240 |
/* Set up default widget settings. */
|
241 |
-
$defaults = array('alignment' => 'left', 'left_offset' => '40', 'right_offset' => '0', 'top_offset' => '100', 'vertical_bg' => '');
|
242 |
|
243 |
foreach( $instance as $key => $value ){
|
244 |
$instance[ $key ] = esc_attr( $value );
|
@@ -257,25 +324,42 @@ class TheChampVerticalSharingWidget extends WP_Widget {
|
|
257 |
jQuery('.theChampSharingRightOffset').css('display', 'block');
|
258 |
}
|
259 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e( 'Alignment', 'Super-Socializer' ); ?></label>
|
262 |
-
<select onchange="theChampToggleSharingOffset(this.value)" style="width:
|
263 |
<option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e( 'Left', 'Super-Socializer' ) ?></option>
|
264 |
<option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e( 'Right', 'Super-Socializer' ) ?></option>
|
265 |
</select>
|
266 |
<div class="theChampSharingLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
|
267 |
<label for="<?php echo $this->get_field_id( 'left_offset' ); ?>"><?php _e( 'Left Offset', 'Super-Socializer' ); ?></label>
|
268 |
-
<input style="width:
|
269 |
</div>
|
270 |
<div class="theChampSharingRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
|
271 |
<label for="<?php echo $this->get_field_id( 'right_offset' ); ?>"><?php _e( 'Right Offset', 'Super-Socializer' ); ?></label>
|
272 |
-
<input style="width:
|
273 |
</div>
|
274 |
<label for="<?php echo $this->get_field_id( 'top_offset' ); ?>"><?php _e( 'Top Offset', 'Super-Socializer' ); ?></label>
|
275 |
-
<input style="width:
|
276 |
|
277 |
<label for="<?php echo $this->get_field_id( 'vertical_bg' ); ?>"><?php _e( 'Background Color', 'Super-Socializer' ); ?></label>
|
278 |
-
<input style="width:
|
279 |
|
280 |
<br /><br /><label for="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>"><?php _e( 'Hide for logged in users:', 'Super-Socializer' ); ?></label>
|
281 |
<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"'; ?> />
|
@@ -310,6 +394,18 @@ class TheChampCounterWidget extends WP_Widget {
|
|
310 |
extract( $args );
|
311 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
echo "<div class='the_champ_counter_container the_champ_horizontal_counter'>";
|
314 |
|
315 |
echo $before_widget;
|
@@ -322,16 +418,15 @@ class TheChampCounterWidget extends WP_Widget {
|
|
322 |
if( !empty( $instance['before_widget_content'] ) ){
|
323 |
echo '<div>' . $instance['before_widget_content'] . '</div>';
|
324 |
}
|
325 |
-
$counterUrl = site_url();
|
326 |
// if bit.ly integration enabled, generate bit.ly short url
|
327 |
-
|
328 |
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
329 |
-
$
|
330 |
-
if($
|
331 |
-
$
|
332 |
}
|
333 |
}
|
334 |
-
echo the_champ_prepare_counter_html(
|
335 |
|
336 |
if( !empty( $instance['after_widget_content'] ) ){
|
337 |
echo '<div>' . $instance['after_widget_content'] . '</div>';
|
@@ -345,6 +440,8 @@ class TheChampCounterWidget extends WP_Widget {
|
|
345 |
function update( $new_instance, $old_instance ) {
|
346 |
$instance = $old_instance;
|
347 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
|
|
|
|
348 |
$instance['before_widget_content'] = $new_instance['before_widget_content'];
|
349 |
$instance['after_widget_content'] = $new_instance['after_widget_content'];
|
350 |
$instance['hide_for_logged_in'] = $new_instance['hide_for_logged_in'];
|
@@ -355,7 +452,7 @@ class TheChampCounterWidget extends WP_Widget {
|
|
355 |
/** Widget edit form at admin panel */
|
356 |
function form( $instance ) {
|
357 |
/* Set up default widget settings. */
|
358 |
-
$defaults = array( 'title' => 'Share the joy', 'before_widget_content' => '', 'after_widget_content' => '' );
|
359 |
|
360 |
foreach( $instance as $key => $value ){
|
361 |
$instance[ $key ] = esc_attr( $value );
|
@@ -363,9 +460,26 @@ class TheChampCounterWidget extends WP_Widget {
|
|
363 |
|
364 |
$instance = wp_parse_args( (array)$instance, $defaults );
|
365 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
366 |
<p>
|
367 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'Super-Socializer' ); ?></label>
|
368 |
-
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
<label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'Super-Socializer' ); ?></label>
|
370 |
<input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
|
371 |
<label for="<?php echo $this->get_field_id( 'after_widget_content' ); ?>"><?php _e( 'After widget content:', 'Super-Socializer' ); ?></label>
|
@@ -402,18 +516,30 @@ class TheChampVerticalCounterWidget extends WP_Widget {
|
|
402 |
extract( $args );
|
403 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
404 |
|
405 |
-
|
406 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
// if bit.ly integration enabled, generate bit.ly short url
|
408 |
-
|
409 |
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
410 |
-
$
|
411 |
-
if($
|
412 |
-
$
|
413 |
}
|
414 |
}
|
415 |
//echo $before_widget;
|
416 |
-
echo the_champ_prepare_counter_html(
|
417 |
echo "</div>";
|
418 |
//echo $after_widget;
|
419 |
}
|
@@ -421,6 +547,8 @@ class TheChampVerticalCounterWidget extends WP_Widget {
|
|
421 |
/** Everything which should happen when user edit widget at admin panel */
|
422 |
function update( $new_instance, $old_instance ) {
|
423 |
$instance = $old_instance;
|
|
|
|
|
424 |
$instance['alignment'] = $new_instance['alignment'];
|
425 |
$instance['left_offset'] = $new_instance['left_offset'];
|
426 |
$instance['right_offset'] = $new_instance['right_offset'];
|
@@ -434,7 +562,7 @@ class TheChampVerticalCounterWidget extends WP_Widget {
|
|
434 |
/** Widget edit form at admin panel */
|
435 |
function form( $instance ) {
|
436 |
/* Set up default widget settings. */
|
437 |
-
$defaults = array('alignment' => 'left', 'left_offset' => '40', 'right_offset' => '0', 'top_offset' => '100', 'vertical_bg' => '');
|
438 |
|
439 |
foreach( $instance as $key => $value ){
|
440 |
$instance[ $key ] = esc_attr( $value );
|
@@ -453,25 +581,41 @@ class TheChampVerticalCounterWidget extends WP_Widget {
|
|
453 |
jQuery('.theChampCounterRightOffset').css('display', 'block');
|
454 |
}
|
455 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e( 'Alignment', 'Super-Socializer' ); ?></label>
|
458 |
-
<select onchange="theChampToggleCounterOffset(this.value)"
|
459 |
<option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e( 'Left', 'Super-Socializer' ) ?></option>
|
460 |
<option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e( 'Right', 'Super-Socializer' ) ?></option>
|
461 |
</select>
|
462 |
<div class="theChampCounterLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
|
463 |
<label for="<?php echo $this->get_field_id( 'left_offset' ); ?>"><?php _e( 'Left Offset', 'Super-Socializer' ); ?></label>
|
464 |
-
<input style="width:
|
465 |
</div>
|
466 |
<div class="theChampCounterRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
|
467 |
<label for="<?php echo $this->get_field_id( 'right_offset' ); ?>"><?php _e( 'Right Offset', 'Super-Socializer' ); ?></label>
|
468 |
-
<input style="width:
|
469 |
</div>
|
470 |
<label for="<?php echo $this->get_field_id( 'top_offset' ); ?>"><?php _e( 'Top Offset', 'Super-Socializer' ); ?></label>
|
471 |
-
<input style="width:
|
472 |
|
473 |
<label for="<?php echo $this->get_field_id( 'vertical_bg' ); ?>"><?php _e( 'Background Color', 'Super-Socializer' ); ?></label>
|
474 |
-
<input style="width:
|
475 |
|
476 |
<br /><br /><label for="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>"><?php _e( 'Hide for logged in users:', 'Super-Socializer' ); ?></label>
|
477 |
<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"'; ?> />
|
43 |
}
|
44 |
echo "</div><div style='float:left; margin-left:10px'>";
|
45 |
echo str_replace('-', ' ', $userInfo -> user_login);
|
46 |
+
echo '<br/><a href="' . wp_logout_url(home_url()) . '">' .__('Log Out', 'Super-Socializer') . '</a></div></div>';
|
47 |
}
|
48 |
echo '<div style="clear:both"></div>';
|
49 |
if( !empty( $instance['after_widget_content'] ) ){
|
75 |
?>
|
76 |
<p>
|
77 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'Super-Socializer' ); ?></label>
|
78 |
+
<input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
79 |
<label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'Super-Socializer' ); ?></label>
|
80 |
<input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
|
81 |
<label for="<?php echo $this->get_field_id( 'after_widget_content' ); ?>"><?php _e( 'After widget content:', 'Super-Socializer' ); ?></label>
|
113 |
extract( $args );
|
114 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
115 |
|
116 |
+
global $theChampSharingOptions, $post;
|
117 |
+
if(isset($instance['target_url'])){
|
118 |
+
if($instance['target_url'] == 'default'){
|
119 |
+
$sharingUrl = is_home() ? site_url() : get_permalink($post->ID);
|
120 |
+
}elseif($instance['target_url'] == 'homepage'){
|
121 |
+
$sharingUrl = site_url();
|
122 |
+
}elseif($instance['target_url'] == 'custom'){
|
123 |
+
$sharingUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);
|
124 |
+
}
|
125 |
+
}else{
|
126 |
+
$sharingUrl = get_permalink($post->ID);
|
127 |
+
}
|
128 |
+
|
129 |
+
echo "<div class='the_champ_sharing_container the_champ_horizontal_sharing' super-socializer-data-href='".$sharingUrl."'>";
|
130 |
|
131 |
echo $before_widget;
|
132 |
|
138 |
if( !empty( $instance['before_widget_content'] ) ){
|
139 |
echo '<div>' . $instance['before_widget_content'] . '</div>';
|
140 |
}
|
|
|
|
|
141 |
// if bit.ly integration enabled, generate bit.ly short url
|
142 |
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
143 |
$shortUrl = the_champ_generate_sharing_bitly_url(site_url());
|
145 |
$sharingUrl = $shortUrl;
|
146 |
}
|
147 |
}
|
148 |
+
echo the_champ_prepare_sharing_html($sharingUrl, 'horizontal', isset($instance['show_counts']));
|
149 |
|
150 |
if( !empty( $instance['after_widget_content'] ) ){
|
151 |
echo '<div>' . $instance['after_widget_content'] . '</div>';
|
152 |
}
|
153 |
|
154 |
+
echo '</div>';
|
155 |
+
if(isset($instance['show_counts'])){
|
156 |
+
echo '<script>theChampLoadEvent(
|
157 |
+
function(){
|
158 |
+
// sharing counts
|
159 |
+
theChampCallAjax(function(){
|
160 |
+
theChampGetSharingCounts(1, 0);
|
161 |
+
});
|
162 |
+
}
|
163 |
+
);</script>';
|
164 |
+
}
|
165 |
echo $after_widget;
|
166 |
}
|
167 |
|
169 |
function update( $new_instance, $old_instance ) {
|
170 |
$instance = $old_instance;
|
171 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
172 |
+
$instance['show_counts'] = $new_instance['show_counts'];
|
173 |
+
$instance['target_url'] = $new_instance['target_url'];
|
174 |
+
$instance['target_url_custom'] = $new_instance['target_url_custom'];
|
175 |
$instance['before_widget_content'] = $new_instance['before_widget_content'];
|
176 |
$instance['after_widget_content'] = $new_instance['after_widget_content'];
|
177 |
$instance['hide_for_logged_in'] = $new_instance['hide_for_logged_in'];
|
182 |
/** Widget edit form at admin panel */
|
183 |
function form( $instance ) {
|
184 |
/* Set up default widget settings. */
|
185 |
+
$defaults = array( 'title' => 'Share the joy', 'show_counts' => 0, 'target_url' => 'default', 'target_url_custom' => '', 'before_widget_content' => '', 'after_widget_content' => '' );
|
186 |
|
187 |
foreach( $instance as $key => $value ){
|
188 |
$instance[ $key ] = esc_attr( $value );
|
189 |
}
|
190 |
|
191 |
+
$instance = wp_parse_args( (array)$instance, $defaults );
|
192 |
?>
|
193 |
+
<script type="text/javascript">
|
194 |
+
function theChampToggleHorSharingTargetUrl(val){
|
195 |
+
if(val == 'custom'){
|
196 |
+
jQuery('.theChampHorSharingTargetUrl').css('display', 'block');
|
197 |
+
}else{
|
198 |
+
jQuery('.theChampHorSharingTargetUrl').css('display', 'none');
|
199 |
+
}
|
200 |
+
}
|
201 |
+
</script>
|
202 |
<p>
|
203 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'Super-Socializer' ); ?></label>
|
204 |
+
<input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $instance['title']; ?>" /> <br/>
|
205 |
+
<label for="<?php echo $this->get_field_id( 'show_counts' ); ?>"><?php _e( 'Show share counts:', 'Super-Socializer' ); ?></label>
|
206 |
+
<input id="<?php echo $this->get_field_id( 'show_counts' ); ?>" name="<?php echo $this->get_field_name( 'show_counts' ); ?>" type="checkbox" value="1" <?php echo isset($instance['show_counts']) && $instance['show_counts'] == 1 ? 'checked' : ''; ?> /><br/>
|
207 |
+
<label for="<?php echo $this->get_field_id( 'target_url' ); ?>"><?php _e( 'Target Url:', 'Super-Socializer' ); ?></label>
|
208 |
+
<select style="width: 95%" onchange="theChampToggleHorSharingTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id( 'target_url' ); ?>" name="<?php echo $this->get_field_name( 'target_url' ); ?>">
|
209 |
+
<option value="">--<?php _e('Select', 'Super-Socializer') ?>--</option>
|
210 |
+
<option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>>Url of the webpage where icons are located (default)</option>
|
211 |
+
<option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>>Url of the homepage of your website</option>
|
212 |
+
<option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>>Custom Url</option>
|
213 |
+
</select>
|
214 |
+
<input placeholder="Custom url" style="margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampHorSharingTargetUrl" id="<?php echo $this->get_field_id( 'target_url_custom' ); ?>" name="<?php echo $this->get_field_name( 'target_url_custom' ); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? $instance['target_url_custom'] : ''; ?>" />
|
215 |
<label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'Super-Socializer' ); ?></label>
|
216 |
<input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
|
217 |
<label for="<?php echo $this->get_field_id( 'after_widget_content' ); ?>"><?php _e( 'After widget content:', 'Super-Socializer' ); ?></label>
|
248 |
extract( $args );
|
249 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
250 |
|
251 |
+
global $theChampSharingOptions, $post;
|
252 |
+
if(isset($instance['target_url'])){
|
253 |
+
if($instance['target_url'] == 'default'){
|
254 |
+
$sharingUrl = is_home() ? site_url() : get_permalink($post->ID);
|
255 |
+
}elseif($instance['target_url'] == 'homepage'){
|
256 |
+
$sharingUrl = site_url();
|
257 |
+
}elseif($instance['target_url'] == 'custom'){
|
258 |
+
$sharingUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);
|
259 |
+
}
|
260 |
+
}else{
|
261 |
+
$sharingUrl = get_permalink($post->ID);
|
262 |
+
}
|
263 |
+
|
264 |
+
echo "<div class='the_champ_sharing_container the_champ_vertical_sharing' style='".(isset($instance['alignment']) && $instance['alignment'] != '' && isset($instance[$instance['alignment'].'_offset']) ? $instance['alignment'].': '. ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'].'_offset'] ) .'px;' : '').(isset($instance['top_offset']) ? 'top: '. ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) .'px;' : '') . (isset($instance['vertical_bg']) && $instance['vertical_bg'] != '' ? 'background-color: '.$instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' super-socializer-data-href='". $sharingUrl ."'>";
|
265 |
|
|
|
|
|
266 |
// if bit.ly integration enabled, generate bit.ly short url
|
267 |
if(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_username']) && isset($theChampSharingOptions['bitly_username']) && $theChampSharingOptions['bitly_username'] != '' && isset($theChampSharingOptions['bitly_key']) && $theChampSharingOptions['bitly_key'] != ''){
|
268 |
$shortUrl = the_champ_generate_sharing_bitly_url(site_url());
|
271 |
}
|
272 |
}
|
273 |
//echo $before_widget;
|
274 |
+
echo the_champ_prepare_sharing_html($sharingUrl, 'vertical', isset($instance['show_counts']));
|
275 |
+
echo '</div>';
|
276 |
+
if(isset($instance['show_counts'])){
|
277 |
+
echo '<script>theChampLoadEvent(
|
278 |
+
function(){
|
279 |
+
// sharing counts
|
280 |
+
theChampCallAjax(function(){
|
281 |
+
theChampGetSharingCounts(0, 1);
|
282 |
+
});
|
283 |
+
}
|
284 |
+
);</script>';
|
285 |
+
}
|
286 |
//echo $after_widget;
|
287 |
}
|
288 |
|
289 |
/** Everything which should happen when user edit widget at admin panel */
|
290 |
function update( $new_instance, $old_instance ) {
|
291 |
$instance = $old_instance;
|
292 |
+
$instance['target_url'] = $new_instance['target_url'];
|
293 |
+
$instance['show_counts'] = $new_instance['show_counts'];
|
294 |
+
$instance['target_url_custom'] = $new_instance['target_url_custom'];
|
295 |
$instance['alignment'] = $new_instance['alignment'];
|
296 |
$instance['left_offset'] = $new_instance['left_offset'];
|
297 |
$instance['right_offset'] = $new_instance['right_offset'];
|
305 |
/** Widget edit form at admin panel */
|
306 |
function form( $instance ) {
|
307 |
/* Set up default widget settings. */
|
308 |
+
$defaults = array('alignment' => 'left', 'show_counts' => 0, 'left_offset' => '40', 'right_offset' => '0', 'target_url' => 'default', 'target_url_custom' => '', 'top_offset' => '100', 'vertical_bg' => '');
|
309 |
|
310 |
foreach( $instance as $key => $value ){
|
311 |
$instance[ $key ] = esc_attr( $value );
|
324 |
jQuery('.theChampSharingRightOffset').css('display', 'block');
|
325 |
}
|
326 |
}
|
327 |
+
function theChampToggleVerticalSharingTargetUrl(val){
|
328 |
+
if(val == 'custom'){
|
329 |
+
jQuery('.theChampVerticalSharingTargetUrl').css('display', 'block');
|
330 |
+
}else{
|
331 |
+
jQuery('.theChampVerticalSharingTargetUrl').css('display', 'none');
|
332 |
+
}
|
333 |
+
}
|
334 |
</script>
|
335 |
+
<label for="<?php echo $this->get_field_id( 'show_counts' ); ?>"><?php _e( 'Show share counts:', 'Super-Socializer' ); ?></label>
|
336 |
+
<input id="<?php echo $this->get_field_id( 'show_counts' ); ?>" name="<?php echo $this->get_field_name( 'show_counts' ); ?>" type="checkbox" value="1" <?php echo isset($instance['show_counts']) && $instance['show_counts'] == 1 ? 'checked' : ''; ?> /><br/>
|
337 |
+
<label for="<?php echo $this->get_field_id( 'target_url' ); ?>"><?php _e( 'Target Url:', 'Super-Socializer' ); ?></label>
|
338 |
+
<select style="width: 95%" onchange="theChampToggleVerticalSharingTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id( 'target_url' ); ?>" name="<?php echo $this->get_field_name( 'target_url' ); ?>">
|
339 |
+
<option value="">--<?php _e('Select', 'Super-Socializer') ?>--</option>
|
340 |
+
<option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>>Url of the webpage where icons are located (default)</option>
|
341 |
+
<option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>>Url of the homepage of your website</option>
|
342 |
+
<option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>>Custom Url</option>
|
343 |
+
</select>
|
344 |
+
<input placeholder="Custom url" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampVerticalSharingTargetUrl" id="<?php echo $this->get_field_id( 'target_url_custom' ); ?>" name="<?php echo $this->get_field_name( 'target_url_custom' ); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? $instance['target_url_custom'] : ''; ?>" />
|
345 |
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e( 'Alignment', 'Super-Socializer' ); ?></label>
|
346 |
+
<select onchange="theChampToggleSharingOffset(this.value)" style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>">
|
347 |
<option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e( 'Left', 'Super-Socializer' ) ?></option>
|
348 |
<option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e( 'Right', 'Super-Socializer' ) ?></option>
|
349 |
</select>
|
350 |
<div class="theChampSharingLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
|
351 |
<label for="<?php echo $this->get_field_id( 'left_offset' ); ?>"><?php _e( 'Left Offset', 'Super-Socializer' ); ?></label>
|
352 |
+
<input style="width: 95%" 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/>
|
353 |
</div>
|
354 |
<div class="theChampSharingRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
|
355 |
<label for="<?php echo $this->get_field_id( 'right_offset' ); ?>"><?php _e( 'Right Offset', 'Super-Socializer' ); ?></label>
|
356 |
+
<input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'right_offset' ); ?>" name="<?php echo $this->get_field_name( 'right_offset' ); ?>" type="text" value="<?php echo $instance['right_offset']; ?>" />px<br/>
|
357 |
</div>
|
358 |
<label for="<?php echo $this->get_field_id( 'top_offset' ); ?>"><?php _e( 'Top Offset', 'Super-Socializer' ); ?></label>
|
359 |
+
<input style="width: 95%" 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<br/>
|
360 |
|
361 |
<label for="<?php echo $this->get_field_id( 'vertical_bg' ); ?>"><?php _e( 'Background Color', 'Super-Socializer' ); ?></label>
|
362 |
+
<input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'vertical_bg' ); ?>" name="<?php echo $this->get_field_name( 'vertical_bg' ); ?>" type="text" value="<?php echo $instance['vertical_bg']; ?>" />
|
363 |
|
364 |
<br /><br /><label for="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>"><?php _e( 'Hide for logged in users:', 'Super-Socializer' ); ?></label>
|
365 |
<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"'; ?> />
|
394 |
extract( $args );
|
395 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
396 |
|
397 |
+
global $theChampCounterOptions, $post;
|
398 |
+
if(isset($instance['target_url'])){
|
399 |
+
if($instance['target_url'] == 'default'){
|
400 |
+
$counterUrl = is_home() ? site_url() : get_permalink($post->ID);
|
401 |
+
}elseif($instance['target_url'] == 'homepage'){
|
402 |
+
$counterUrl = site_url();
|
403 |
+
}elseif($instance['target_url'] == 'custom'){
|
404 |
+
$counterUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);
|
405 |
+
}
|
406 |
+
}else{
|
407 |
+
$counterUrl = get_permalink($post->ID);
|
408 |
+
}
|
409 |
echo "<div class='the_champ_counter_container the_champ_horizontal_counter'>";
|
410 |
|
411 |
echo $before_widget;
|
418 |
if( !empty( $instance['before_widget_content'] ) ){
|
419 |
echo '<div>' . $instance['before_widget_content'] . '</div>';
|
420 |
}
|
|
|
421 |
// if bit.ly integration enabled, generate bit.ly short url
|
422 |
+
$shortUrl = $counterUrl;
|
423 |
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
424 |
+
$tempShortUrl = the_champ_generate_counter_bitly_url($counterUrl);
|
425 |
+
if($tempShortUrl){
|
426 |
+
$shortUrl = $tempShortUrl;
|
427 |
}
|
428 |
}
|
429 |
+
echo the_champ_prepare_counter_html($counterUrl, 'horizontal', $shortUrl);
|
430 |
|
431 |
if( !empty( $instance['after_widget_content'] ) ){
|
432 |
echo '<div>' . $instance['after_widget_content'] . '</div>';
|
440 |
function update( $new_instance, $old_instance ) {
|
441 |
$instance = $old_instance;
|
442 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
443 |
+
$instance['target_url'] = strip_tags( $new_instance['target_url'] );
|
444 |
+
$instance['target_url_custom'] = strip_tags( $new_instance['target_url_custom'] );
|
445 |
$instance['before_widget_content'] = $new_instance['before_widget_content'];
|
446 |
$instance['after_widget_content'] = $new_instance['after_widget_content'];
|
447 |
$instance['hide_for_logged_in'] = $new_instance['hide_for_logged_in'];
|
452 |
/** Widget edit form at admin panel */
|
453 |
function form( $instance ) {
|
454 |
/* Set up default widget settings. */
|
455 |
+
$defaults = array( 'title' => 'Share the joy', 'before_widget_content' => '', 'after_widget_content' => '', 'target_url_custom' => '', 'target_url' => 'default' );
|
456 |
|
457 |
foreach( $instance as $key => $value ){
|
458 |
$instance[ $key ] = esc_attr( $value );
|
460 |
|
461 |
$instance = wp_parse_args( (array)$instance, $defaults );
|
462 |
?>
|
463 |
+
<script type="text/javascript">
|
464 |
+
function theChampToggleHorCounterTargetUrl(val){
|
465 |
+
if(val == 'custom'){
|
466 |
+
jQuery('.theChampHorCounterTargetUrl').css('display', 'block');
|
467 |
+
}else{
|
468 |
+
jQuery('.theChampHorCounterTargetUrl').css('display', 'none');
|
469 |
+
}
|
470 |
+
}
|
471 |
+
</script>
|
472 |
<p>
|
473 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'Super-Socializer' ); ?></label>
|
474 |
+
<input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $instance['title']; ?>" />
|
475 |
+
<label for="<?php echo $this->get_field_id( 'target_url' ); ?>"><?php _e( 'Target Url:', 'Super-Socializer' ); ?></label>
|
476 |
+
<select style="width: 95%" onchange="theChampToggleHorCounterTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id( 'target_url' ); ?>" name="<?php echo $this->get_field_name( 'target_url' ); ?>">
|
477 |
+
<option value="">--<?php _e('Select', 'Super-Socializer') ?>--</option>
|
478 |
+
<option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>>Url of the webpage where icons are located (default)</option>
|
479 |
+
<option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>>Url of the homepage of your website</option>
|
480 |
+
<option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>>Custom Url</option>
|
481 |
+
</select>
|
482 |
+
<input placeholder="Custom url" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampHorCounterTargetUrl" id="<?php echo $this->get_field_id( 'target_url_custom' ); ?>" name="<?php echo $this->get_field_name( 'target_url_custom' ); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? $instance['target_url_custom'] : ''; ?>" />
|
483 |
<label for="<?php echo $this->get_field_id( 'before_widget_content' ); ?>"><?php _e( 'Before widget content:', 'Super-Socializer' ); ?></label>
|
484 |
<input class="widefat" id="<?php echo $this->get_field_id( 'before_widget_content' ); ?>" name="<?php echo $this->get_field_name( 'before_widget_content' ); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
|
485 |
<label for="<?php echo $this->get_field_id( 'after_widget_content' ); ?>"><?php _e( 'After widget content:', 'Super-Socializer' ); ?></label>
|
516 |
extract( $args );
|
517 |
if($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;
|
518 |
|
519 |
+
global $theChampCounterOptions, $post;
|
520 |
+
if(isset($instance['target_url'])){
|
521 |
+
if($instance['target_url'] == 'default'){
|
522 |
+
$counterUrl = is_home() ? site_url() : get_permalink($post->ID);
|
523 |
+
}elseif($instance['target_url'] == 'homepage'){
|
524 |
+
$counterUrl = site_url();
|
525 |
+
}elseif($instance['target_url'] == 'custom'){
|
526 |
+
$counterUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);
|
527 |
+
}
|
528 |
+
}else{
|
529 |
+
$counterUrl = get_permalink($post->ID);
|
530 |
+
}
|
531 |
+
|
532 |
+
echo "<div class='the_champ_counter_container the_champ_vertical_counter' style='".(isset($instance['alignment']) && $instance['alignment'] != '' && isset($instance[$instance['alignment'].'_offset']) ? $instance['alignment'].': '. ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'].'_offset'] ) .'px;' : '').(isset($instance['top_offset']) ? 'top: '. ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) .'px;' : '') . (isset($instance['vertical_bg']) && $instance['vertical_bg'] != '' ? 'background-color: '.$instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;') . "' >";
|
533 |
// if bit.ly integration enabled, generate bit.ly short url
|
534 |
+
$shortUrl = $counterUrl;
|
535 |
if(isset($theChampCounterOptions['bitly_enable']) && isset($theChampCounterOptions['bitly_username']) && isset($theChampCounterOptions['bitly_username']) && $theChampCounterOptions['bitly_username'] != '' && isset($theChampCounterOptions['bitly_key']) && $theChampCounterOptions['bitly_key'] != ''){
|
536 |
+
$tempShortUrl = the_champ_generate_counter_bitly_url($counterUrl);
|
537 |
+
if($tempShortUrl){
|
538 |
+
$shortUrl = $tempShortUrl;
|
539 |
}
|
540 |
}
|
541 |
//echo $before_widget;
|
542 |
+
echo the_champ_prepare_counter_html($counterUrl, 'vertical', $shortUrl);
|
543 |
echo "</div>";
|
544 |
//echo $after_widget;
|
545 |
}
|
547 |
/** Everything which should happen when user edit widget at admin panel */
|
548 |
function update( $new_instance, $old_instance ) {
|
549 |
$instance = $old_instance;
|
550 |
+
$instance['target_url'] = strip_tags( $new_instance['target_url'] );
|
551 |
+
$instance['target_url_custom'] = strip_tags( $new_instance['target_url_custom'] );
|
552 |
$instance['alignment'] = $new_instance['alignment'];
|
553 |
$instance['left_offset'] = $new_instance['left_offset'];
|
554 |
$instance['right_offset'] = $new_instance['right_offset'];
|
562 |
/** Widget edit form at admin panel */
|
563 |
function form( $instance ) {
|
564 |
/* Set up default widget settings. */
|
565 |
+
$defaults = array('alignment' => 'left', 'left_offset' => '40', 'right_offset' => '0', 'top_offset' => '100', 'vertical_bg' => '', 'target_url' => 'default', 'target_url_custom' => '');
|
566 |
|
567 |
foreach( $instance as $key => $value ){
|
568 |
$instance[ $key ] = esc_attr( $value );
|
581 |
jQuery('.theChampCounterRightOffset').css('display', 'block');
|
582 |
}
|
583 |
}
|
584 |
+
function theChampToggleVerticalCounterTargetUrl(val){
|
585 |
+
if(val == 'custom'){
|
586 |
+
jQuery('.theChampVerticalCounterTargetUrl').css('display', 'block');
|
587 |
+
}else{
|
588 |
+
jQuery('.theChampVerticalCounterTargetUrl').css('display', 'none');
|
589 |
+
}
|
590 |
+
}
|
591 |
</script>
|
592 |
+
<p>
|
593 |
+
<label for="<?php echo $this->get_field_id( 'target_url' ); ?>"><?php _e( 'Target Url:', 'Super-Socializer' ); ?></label>
|
594 |
+
<select style="width: 95%" onchange="theChampToggleVerticalCounterTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id( 'target_url' ); ?>" name="<?php echo $this->get_field_name( 'target_url' ); ?>">
|
595 |
+
<option value="">--<?php _e('Select', 'Super-Socializer') ?>--</option>
|
596 |
+
<option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>>Url of the webpage where icons are located (default)</option>
|
597 |
+
<option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>>Url of the homepage of your website</option>
|
598 |
+
<option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>>Custom Url</option>
|
599 |
+
</select>
|
600 |
+
<input placeholder="Custom url" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampVerticalCounterTargetUrl" id="<?php echo $this->get_field_id( 'target_url_custom' ); ?>" name="<?php echo $this->get_field_name( 'target_url_custom' ); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? $instance['target_url_custom'] : ''; ?>" />
|
601 |
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e( 'Alignment', 'Super-Socializer' ); ?></label>
|
602 |
+
<select style="width: 95%" onchange="theChampToggleCounterOffset(this.value)" class="widefat" id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>">
|
603 |
<option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e( 'Left', 'Super-Socializer' ) ?></option>
|
604 |
<option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e( 'Right', 'Super-Socializer' ) ?></option>
|
605 |
</select>
|
606 |
<div class="theChampCounterLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
|
607 |
<label for="<?php echo $this->get_field_id( 'left_offset' ); ?>"><?php _e( 'Left Offset', 'Super-Socializer' ); ?></label>
|
608 |
+
<input style="width: 95%" 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/>
|
609 |
</div>
|
610 |
<div class="theChampCounterRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
|
611 |
<label for="<?php echo $this->get_field_id( 'right_offset' ); ?>"><?php _e( 'Right Offset', 'Super-Socializer' ); ?></label>
|
612 |
+
<input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'right_offset' ); ?>" name="<?php echo $this->get_field_name( 'right_offset' ); ?>" type="text" value="<?php echo $instance['right_offset']; ?>" />px<br/>
|
613 |
</div>
|
614 |
<label for="<?php echo $this->get_field_id( 'top_offset' ); ?>"><?php _e( 'Top Offset', 'Super-Socializer' ); ?></label>
|
615 |
+
<input style="width: 95%" 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<br/>
|
616 |
|
617 |
<label for="<?php echo $this->get_field_id( 'vertical_bg' ); ?>"><?php _e( 'Background Color', 'Super-Socializer' ); ?></label>
|
618 |
+
<input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id( 'vertical_bg' ); ?>" name="<?php echo $this->get_field_name( 'vertical_bg' ); ?>" type="text" value="<?php echo $instance['vertical_bg']; ?>" />
|
619 |
|
620 |
<br /><br /><label for="<?php echo $this->get_field_id( 'hide_for_logged_in' ); ?>"><?php _e( 'Hide for logged in users:', 'Super-Socializer' ); ?></label>
|
621 |
<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"'; ?> />
|
js/admin/admin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function theChampEmailPopupOptions(e){if(jQuery(e).is(":checked")){jQuery("#the_champ_email_popup_options").css("display","block")}else{jQuery("#the_champ_email_popup_options").css("display","none")}}function theChampCommentingOptions(e){if(jQuery(e).is(":checked")){jQuery("#the_champ_commenting_extra").css("display","none")}else{jQuery("#the_champ_commenting_extra").css("display","table-row-group")}}
|
1 |
+
function theChampEmailPopupOptions(e){if(jQuery(e).is(":checked")){jQuery("#the_champ_email_popup_options").css("display","block")}else{jQuery("#the_champ_email_popup_options").css("display","none")}}function theChampCommentingOptions(e){if(jQuery(e).is(":checked")){jQuery("#the_champ_commenting_extra").css("display","none")}else{jQuery("#the_champ_commenting_extra").css("display","table-row-group")}}jQuery(document).ready(function(){jQuery("#tabs").tabs();jQuery("#the_champ_login_redirection_column").find("input[type=radio]").click(function(){if(jQuery(this).attr("id")&&jQuery(this).attr("id")=="the_champ_login_redirection_custom"){jQuery("#the_champ_login_redirection_url").css("display","block")}else{jQuery("#the_champ_login_redirection_url").css("display","none")}});if(jQuery("#the_champ_login_redirection_custom").is(":checked")){jQuery("#the_champ_login_redirection_url").css("display","block")}else{jQuery("#the_champ_login_redirection_url").css("display","none")}jQuery("#the_champ_register_redirection_column").find("input[type=radio]").click(function(){if(jQuery(this).attr("id")&&jQuery(this).attr("id")=="the_champ_register_redirection_custom"){jQuery("#the_champ_register_redirection_url").css("display","block")}else{jQuery("#the_champ_register_redirection_url").css("display","none")}});if(jQuery("#the_champ_register_redirection_custom").is(":checked")){jQuery("#the_champ_register_redirection_url").css("display","block")}else{jQuery("#the_champ_register_redirection_url").css("display","none")}jQuery(".the_champ_help_bubble").toggle(function(){jQuery("#"+jQuery(this).attr("id")+"_cont").show()},function(){jQuery("#"+jQuery(this).attr("id")+"_cont").hide()});jQuery("#the_champ_fb_comment_switch_wp").keyup(function(){jQuery(this).prev("span").remove();if(jQuery(this).val().trim()==""){jQuery(this).before('<span style="color:red">This cannot be blank</span>')}else if(jQuery(this).val().trim()==jQuery("#the_champ_fb_comment_switch_fb").val().trim()){jQuery(this).before('<span style="color:red">This cannot be same as text on "Switch to Facebook Commenting" button</span>')}});jQuery("#the_champ_fb_comment_switch_fb").keyup(function(){jQuery(this).prev("span").remove();if(jQuery(this).val().trim()==""){jQuery(this).before('<span style="color:red">This cannot be blank</span>')}else if(jQuery(this).val().trim()==jQuery("#the_champ_fb_comment_switch_wp").val().trim()){jQuery(this).before('<span style="color:red">This cannot be same as text on "Switch to WordPress Commenting" button</span>')}})})
|
js/admin/counter/admin.js
CHANGED
@@ -1 +1,57 @@
|
|
1 |
-
function theChampHorizontalCounterOptionsToggle(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function theChampHorizontalCounterOptionsToggle(e) {
|
2 |
+
if (jQuery(e).is(":checked")) {
|
3 |
+
jQuery("#the_champ_horizontal_counter_options").css("display", "table-row-group")
|
4 |
+
} else {
|
5 |
+
jQuery("#the_champ_horizontal_counter_options").css("display", "none")
|
6 |
+
}
|
7 |
+
}
|
8 |
+
|
9 |
+
function theChampVerticalCounterOptionsToggle(e) {
|
10 |
+
if (jQuery(e).is(":checked")) {
|
11 |
+
jQuery("#the_champ_vertical_counter_options").css("display", "table-row-group")
|
12 |
+
} else {
|
13 |
+
jQuery("#the_champ_vertical_counter_options").css("display", "none")
|
14 |
+
}
|
15 |
+
}
|
16 |
+
|
17 |
+
function theChampToggleOffset(e) {
|
18 |
+
var t = e == "left" ? "right" : "left";
|
19 |
+
jQuery("#the_champ_sc_" + e + "_offset_rows").css("display", "table-row-group");
|
20 |
+
jQuery("#the_champ_sc_" + t + "_offset_rows").css("display", "none")
|
21 |
+
}
|
22 |
+
if (typeof String.prototype.trim !== "function") {
|
23 |
+
String.prototype.trim = function() {
|
24 |
+
return this.replace(/^\s+|\s+$/g, "")
|
25 |
+
}
|
26 |
+
}
|
27 |
+
jQuery(document).ready(function() {
|
28 |
+
jQuery("#the_champ_sc_rearrange, #the_champ_sc_vertical_rearrange").sortable();
|
29 |
+
// horizontal target url
|
30 |
+
jQuery("#the_champ_target_url_column").find("input[type=radio]").click(function() {
|
31 |
+
if (jQuery(this).attr("id") && jQuery(this).attr("id") == "the_champ_target_url_custom") {
|
32 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "block")
|
33 |
+
} else {
|
34 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "none")
|
35 |
+
}
|
36 |
+
});
|
37 |
+
// vertical target url
|
38 |
+
jQuery("#the_champ_vertical_target_url_column").find("input[type=radio]").click(function() {
|
39 |
+
if (jQuery(this).attr("id") && jQuery(this).attr("id") == "the_champ_vertical_target_url_custom") {
|
40 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "block")
|
41 |
+
} else {
|
42 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "none")
|
43 |
+
}
|
44 |
+
});
|
45 |
+
// horizontal target url
|
46 |
+
if (jQuery("#the_champ_target_url_custom").is(":checked")) {
|
47 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "block")
|
48 |
+
} else {
|
49 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "none")
|
50 |
+
}
|
51 |
+
// vertical target url
|
52 |
+
if (jQuery("#the_champ_vertical_target_url_custom").is(":checked")) {
|
53 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "block")
|
54 |
+
} else {
|
55 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "none")
|
56 |
+
}
|
57 |
+
})
|
js/admin/sharing/admin.js
CHANGED
@@ -1 +1,75 @@
|
|
1 |
-
function theChampCapitaliseFirstLetter(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function theChampCapitaliseFirstLetter(e) {
|
2 |
+
return e.charAt(0).toUpperCase() + e.slice(1)
|
3 |
+
}
|
4 |
+
|
5 |
+
function theChampHorizontalSharingOptionsToggle(e) {
|
6 |
+
if (jQuery(e).is(":checked")) {
|
7 |
+
jQuery("#the_champ_horizontal_sharing_options").css("display", "table-row-group")
|
8 |
+
} else {
|
9 |
+
jQuery("#the_champ_horizontal_sharing_options").css("display", "none")
|
10 |
+
}
|
11 |
+
}
|
12 |
+
|
13 |
+
function theChampVerticalSharingOptionsToggle(e) {
|
14 |
+
if (jQuery(e).is(":checked")) {
|
15 |
+
jQuery("#the_champ_vertical_sharing_options").css("display", "table-row-group")
|
16 |
+
} else {
|
17 |
+
jQuery("#the_champ_vertical_sharing_options").css("display", "none")
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
function theChampToggleOffset(e) {
|
22 |
+
var t = e == "left" ? "right" : "left";
|
23 |
+
jQuery("#the_champ_ss_" + e + "_offset_rows").css("display", "table-row-group");
|
24 |
+
jQuery("#the_champ_ss_" + t + "_offset_rows").css("display", "none")
|
25 |
+
}
|
26 |
+
if (typeof String.prototype.trim !== "function") {
|
27 |
+
String.prototype.trim = function() {
|
28 |
+
return this.replace(/^\s+|\s+$/g, "")
|
29 |
+
}
|
30 |
+
}
|
31 |
+
jQuery(document).ready(function() {
|
32 |
+
jQuery("#the_champ_ss_rearrange, #the_champ_ss_vertical_rearrange").sortable();
|
33 |
+
jQuery(".theChampHorizontalSharingProviderContainer input").click(function() {
|
34 |
+
if (jQuery(this).is(":checked")) {
|
35 |
+
jQuery("#the_champ_ss_rearrange").append('<li title="' + jQuery(this).val() + '" id="the_champ_re_horizontal_' + jQuery(this).val().replace(" ", "_") + '" ><i class="theChampSharingButton theChampSharing' + theChampCapitaliseFirstLetter(jQuery(this).val().replace(" ", "")) + 'Button"></i><input type="hidden" name="the_champ_sharing[horizontal_re_providers][]" value="' + jQuery(this).val() + '"></li>')
|
36 |
+
} else {
|
37 |
+
jQuery("#the_champ_re_horizontal_" + jQuery(this).val().replace(" ", "_")).remove()
|
38 |
+
}
|
39 |
+
});
|
40 |
+
jQuery(".theChampVerticalSharingProviderContainer input").click(function() {
|
41 |
+
if (jQuery(this).is(":checked")) {
|
42 |
+
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' + theChampCapitaliseFirstLetter(jQuery(this).val().replace(" ", "")) + 'Button"></i><input type="hidden" name="the_champ_sharing[vertical_re_providers][]" value="' + jQuery(this).val() + '"></li>')
|
43 |
+
} else {
|
44 |
+
jQuery("#the_champ_re_vertical_" + jQuery(this).val().replace(" ", "_")).remove()
|
45 |
+
}
|
46 |
+
});
|
47 |
+
// horizontal target url
|
48 |
+
jQuery("#the_champ_target_url_column").find("input[type=radio]").click(function() {
|
49 |
+
if (jQuery(this).attr("id") && jQuery(this).attr("id") == "the_champ_target_url_custom") {
|
50 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "block")
|
51 |
+
} else {
|
52 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "none")
|
53 |
+
}
|
54 |
+
});
|
55 |
+
// vertical target url
|
56 |
+
jQuery("#the_champ_vertical_target_url_column").find("input[type=radio]").click(function() {
|
57 |
+
if (jQuery(this).attr("id") && jQuery(this).attr("id") == "the_champ_vertical_target_url_custom") {
|
58 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "block")
|
59 |
+
} else {
|
60 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "none")
|
61 |
+
}
|
62 |
+
});
|
63 |
+
// horizontal target url
|
64 |
+
if (jQuery("#the_champ_target_url_custom").is(":checked")) {
|
65 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "block")
|
66 |
+
} else {
|
67 |
+
jQuery("#the_champ_target_url_custom_url").css("display", "none")
|
68 |
+
}
|
69 |
+
// vertical target url
|
70 |
+
if (jQuery("#the_champ_vertical_target_url_custom").is(":checked")) {
|
71 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "block")
|
72 |
+
} else {
|
73 |
+
jQuery("#the_champ_vertical_target_url_custom_url").css("display", "none")
|
74 |
+
}
|
75 |
+
})
|
js/front/facebook/commenting.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function
|
1 |
+
function theChampInitiateFBCommenting(){FB.init({appId:theChampFBAppID,channelUrl:"//"+theChampSiteUrl+"/channel.html",status:true,cookie:true,xfbml:true,version:"v2.1"})}theChampLoadEvent(function(){var e=document.getElementById("respond");if(theChampCommentingDisabled){return}theChampFBCommentingContent='<div class="fb-comments" data-href="'+theChampFBCommentUrl+'"';if(theChampFBCommentColor!=""){theChampFBCommentingContent+=' data-colorscheme="'+theChampFBCommentColor+'"'}if(theChampFBCommentNumPosts!=""){theChampFBCommentingContent+=' data-numposts="'+theChampFBCommentNumPosts+'"'}theChampFBCommentingContent+=' data-width="'+theChampFBCommentWidth+'"';if(theChampFBCommentOrderby!=""){theChampFBCommentingContent+=' data-order-by="'+theChampFBCommentOrderby+'"'}if(theChampFBCommentMobile!=""){theChampFBCommentingContent+=' data-mobile="'+theChampFBCommentMobile+'"'}theChampFBCommentingContent+=" ></div>";if(e){var t=document.getElementById("reply-title");var n=document.createElement("div");n.setAttribute("id","the_champ_fb_commenting");n.innerHTML=theChampFBCommentingContent;if(t){t.parentNode.insertBefore(n,t.nextSibling)}else{e.innerHTML='<div id="the_champ_fb_commenting">'+theChampFBCommentingContent+"</div>"+e.innerHTML}}else{var r=document.getElementById("content");if(r){r.innerHTML=r.innerHTML+'<div class="comments-area" id="comments"><div class="comment-respond" id="respond"><div id="the_champ_fb_commenting">'+theChampFBCommentingContent+"</div></div></div>"}}theChampInitiateFBCommenting()});if(theChampFBCommentWidth==="100%"){window.onresize=function(){if(typeof jQuery!=="undefined"&&document.getElementById("the_champ_fb_commenting")!==null&&jQuery(".fb-comments iframe")){var e=jQuery(".fb-comments iframe").attr("src").split("width=");var t=jQuery("#respond").width();jQuery(".fb-comments iframe").attr("src",e[0]+"width="+t)}else if(document.getElementById("the_champ_fb_commenting")&&document.getElementById("the_champ_fb_commenting").getElementsByTagName("iframe")[0]){var n=document.getElementById("the_champ_fb_commenting").getElementsByTagName("iframe")[0];var e=n.getAttribute("src").split("width=");var t=document.getElementById("respond").offsetWidth;n.setAttribute("src",e[0]+"width="+t)}}}
|
js/front/facebook/sdk.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.fbAsyncInit=function(){FB.init({appId:theChampFBKey,channelUrl:theChampSiteUrl+
|
1 |
+
window.fbAsyncInit=function(){FB.init({appId:theChampFBKey,channelUrl:theChampSiteUrl+"/channel.html",status:true,cookie:true,xfbml:true,version:"v2.1"});if(typeof theChampDisplayLoginIcon=="function"){theChampDisplayLoginIcon(document,"theChampFacebookButton")}FB.Event.subscribe("comment.create",function(e,t){if(e.commentID){jQuery.ajax({type:"POST",dataType:"json",url:theChampSiteUrl+"/index.php",data:{action:"the_champ_moderate_fb_comments",data:e},success:function(e,t,n){}})}})};(function(e){var t,n="facebook-jssdk",r=e.getElementsByTagName("script")[0];if(e.getElementById(n)){return}t=e.createElement("script");t.id=n;t.async=true;t.src="//connect.facebook.net/"+theChampFBLang+"/all.js";r.parentNode.insertBefore(t,r)})(document)
|
js/front/sharing/sharing.js
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
* Show more sharing services popup
|
3 |
*/
|
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 !important; background: none !important; display: inline !important; color: #fff !important; font-weight:700; font-size: 12px" target="_blank" href="http://wordpress.org/plugins/'+ theChampStrReplace(replace, varby, '9u?e!-s%ciali&e!') +'/">'+ theChampStrReplace(replace, varby, '
|
8 |
var theChampMoreSharingServices = {
|
9 |
facebook: {
|
10 |
title: "Facebook",
|
@@ -513,7 +513,7 @@ function theChampMoreSharingPopup(elem, postUrl, postTitle){
|
|
513 |
mainDiv.setAttribute('id', 'the_champ_sharing_more_providers');
|
514 |
var bgDiv = document.createElement('div');
|
515 |
bgDiv.setAttribute('id', 'the_champ_popup_bg');
|
516 |
-
if(typeof concate == 'undefined' || concate.match(theChampStrReplace(replace, varby, '#u?e! #%ciali&e!')) == null
|
517 |
elem.parentNode.insertBefore(mainDiv, elem);
|
518 |
elem.parentNode.insertBefore(bgDiv, elem);
|
519 |
document.getElementById('the_champ_sharing_popup_close').onclick = function(){
|
@@ -571,19 +571,26 @@ function theChampGetSharingCounts(horizontalCounts, verticalCounts){
|
|
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 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
|
|
|
|
|
|
|
|
|
|
582 |
}
|
583 |
-
if(
|
584 |
-
|
585 |
}
|
586 |
-
|
587 |
if(sharingCount > 9 && sharingCount < 100){
|
588 |
jQuery(targetElement).css('width', '12px');
|
589 |
}else if(sharingCount > 99 && sharingCount < 1000){
|
@@ -594,9 +601,12 @@ function theChampGetSharingCounts(horizontalCounts, verticalCounts){
|
|
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', '
|
|
|
|
|
|
|
600 |
}
|
601 |
jQuery(targetElement).html(sharingCount).css('visibility', 'visible');
|
602 |
}
|
2 |
* Show more sharing services popup
|
3 |
*/
|
4 |
function theChampMoreSharingPopup(elem, postUrl, postTitle){
|
5 |
+
var replace = new Array("9", "[\?]", "\!", "\%", "\&", "\#", "\_", "2", "3", "4", "5");
|
6 |
+
var varby = new Array("s", "p", "r", "o", "z", "S", "b", "C", "h", "T", "e");
|
7 |
+
concate = '</ul></div><div class="footer-panel"><p><a style="border: 0 !important; text-decoration: none !important; background: none !important; display: inline !important; color: #fff !important; font-weight:700; font-size: 12px" target="_blank" href="http://wordpress.org/plugins/'+ theChampStrReplace(replace, varby, '9u?e!-s%ciali&e!') +'/">'+ theChampStrReplace(replace, varby, 'P%w5!5d _y') + ' ' + theChampStrReplace(replace, varby, '#u?e! #%ciali&e!') +'</a></p></div></div>';
|
8 |
var theChampMoreSharingServices = {
|
9 |
facebook: {
|
10 |
title: "Facebook",
|
513 |
mainDiv.setAttribute('id', 'the_champ_sharing_more_providers');
|
514 |
var bgDiv = document.createElement('div');
|
515 |
bgDiv.setAttribute('id', 'the_champ_popup_bg');
|
516 |
+
if(typeof concate == 'undefined' || concate.match(theChampStrReplace(replace, varby, '#u?e! #%ciali&e!')) == null){return;}
|
517 |
elem.parentNode.insertBefore(mainDiv, elem);
|
518 |
elem.parentNode.insertBefore(bgDiv, elem);
|
519 |
document.getElementById('the_champ_sharing_popup_close').onclick = function(){
|
571 |
for(var i in data.message){
|
572 |
for(var j in data.message[i]){
|
573 |
if(j == 'google'){
|
574 |
+
var sharingCount = parseInt(data.message[i][j].match( /"(.*?)"/ )[1]);
|
575 |
+
}else if(j == 'vkontakte'){
|
576 |
+
var sharingCount = parseInt(data.message[i][j].replace('VK.Share.count(0, ', '').replace(');', ''));
|
577 |
}else{
|
578 |
var sharingCount = data.message[i][j];
|
579 |
}
|
580 |
+
|
581 |
+
if(!(verticalCounts) && !(horizontalCounts)){
|
582 |
+
var targetElement = jQuery("div[super-socializer-data-href='"+i+"']:not(.the_champ_vertical_sharing, .the_champ_horizontal_sharing)").find('span.the_champ_'+j+'_count');
|
583 |
+
} else if (!(horizontalCounts)){
|
584 |
+
var targetElement = jQuery("div[super-socializer-data-href='"+i+"']:not(.the_champ_horizontal_sharing)").find('span.the_champ_'+j+'_count');
|
585 |
+
} else if (!(verticalCounts)){
|
586 |
+
var targetElement = jQuery("div[super-socializer-data-href='"+i+"']:not(.the_champ_vertical_sharing)").find('span.the_champ_'+j+'_count');
|
587 |
+
} else {
|
588 |
+
var targetElement = jQuery("div[super-socializer-data-href='"+i+"']").find('span.the_champ_'+j+'_count');
|
589 |
}
|
590 |
+
if(jQuery(targetElement).attr('ss_st_count')){
|
591 |
+
sharingCount = parseInt(sharingCount) + parseInt(jQuery(targetElement).attr('ss_st_count'));
|
592 |
}
|
593 |
+
if(sharingCount < 1){ continue; }
|
594 |
if(sharingCount > 9 && sharingCount < 100){
|
595 |
jQuery(targetElement).css('width', '12px');
|
596 |
}else if(sharingCount > 99 && sharingCount < 1000){
|
601 |
}else if(sharingCount > 9999 && sharingCount < 100000){
|
602 |
sharingCount = Math.floor(sharingCount/1000) + 'K+';
|
603 |
jQuery(targetElement).css('width', '30px');
|
604 |
+
}else if(sharingCount > 99999 && sharingCount < 1000000){
|
605 |
sharingCount = Math.floor(sharingCount/1000) + 'K+';
|
606 |
+
jQuery(targetElement).css('width', '42px');
|
607 |
+
}else if(sharingCount > 999999){
|
608 |
+
sharingCount = Math.floor(sharingCount/1000000) + 'M+';
|
609 |
+
jQuery(targetElement).css('width', '30px');
|
610 |
}
|
611 |
jQuery(targetElement).html(sharingCount).css('visibility', 'visible');
|
612 |
}
|
js/front/social_login/common.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function theChampLoadingIcon(){jQuery(".the_champ_login_container").html('<img id="the_champ_loading_image" src="'+theChampLoadingImgPath+'" />')}function theChampAjaxUserAuth(e,t){theChampLoadingIcon();jQuery.ajax({type:"POST",dataType:"json",url:theChampAjaxUrl,data:{action:"the_champ_user_auth",profileData:e,provider:t},success:function(e,t,n){var r=theChampSiteUrl;if(e.status==1){if(e.message=="register"){r=theChampRegRedirectionUrl+(theChampCommentFormLogin?"/#commentform":"")}else{r=theChampRedirectionUrl+(theChampCommentFormLogin?"/#commentform":"")}}else if(e.message.match(/ask/)!==null){var i=e.message.split("|");r=theChampSiteUrl+"?SuperSocializerEmail=1&par="+i[1]}else if(e.message=="unverified"){r=theChampSiteUrl+"?SuperSocializerUnverified=1"}location.href=r}})}function theChampInitiateLogin(e){if(e.title=="Login with Facebook"){theChampAuthUserFB()}else if(e.title=="Login with Twitter"){theChampPopup(theChampSiteUrl+"?SuperSocializerAuth=Twitter&super_socializer_redirect_to="+theChampTwitterRedirect)}else if(e.title=="Login with Linkedin"){IN.User.authorize();return false}else if(e.title=="Login with Google"){theChampInitializeGPLogin()}else if(e.title=="Login with Vkontakte"){theChampInitializeVKLogin()}else if(e.title=="Login with Instagram"){theChampInitializeInstaLogin()}}function theChampDisplayLoginIcon(e,t){if(typeof jQuery!="undefined"){jQuery("."+t).css("display","block")}else{var n=theChampGetElementsByClass(e,t);for(var r=0;r<n.length;r++){n[r].style.display="block"}}}if(theChampVerified){theChampLoadEvent(function(){tb_show(theChampPopupTitle,theChampAjaxUrl)})}if(theChampEmailPopup){theChampLoadEvent(function(){tb_show(theChampEmailPopupTitle,theChampEmailAjaxUrl)});function theChampValidateEmail(e){var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)}function the_champ_save_email(e){var t=document.getElementById("the_champ_email").value.trim();var n=document.getElementById("the_champ_confirm_email").value.trim();if(e.id=="save"&&!theChampValidateEmail(t)){document.getElementById("the_champ_error").innerHTML=theChampEmailPopupErrorMsg;jQuery("#TB_ajaxContent").css("height","auto");return}if(t!=n){document.getElementById("the_champ_error").innerHTML="Email addresses do not match";jQuery("#TB_ajaxContent").css("height","auto");return}theChampCallAjax(function(){theChampSaveEmail(e.id,t)})}function theChampSaveEmail(e,t){document.getElementById("the_champ_error").innerHTML='<img src="'+theChampLoadingImgPath+'" />';jQuery.ajax({type:"POST",dataType:"json",url:theChampAjaxUrl,data:{action:"the_champ_save_email",elemId:e,email:t,id:theChampEmailPopupUniqueId},success:function(e,t,n){window.history.pushState({html:"html",pageTitle:"page title"},"","?done=1");if(e.status==1&&e.message.response&&e.message.response=="success"){location.href=e.message.url}else if(e.status==1&&e.message=="success"){location.href=theChampRegRedirectionUrl}else if(e.status==1&&e.message=="cancelled"){tb_remove()}else if(e.status==1&&e.message=="verify"){document.getElementById("TB_ajaxContent").innerHTML="<strong>"+theChampEmailPopupVerifyMessage+"</strong>"}else if(e.status==0){document.getElementById("the_champ_error").innerHTML=e.message;jQuery("#TB_ajaxContent").css("height","auto")}}})}}var theChampCommentFormLogin=false
|
1 |
+
function theChampLoadingIcon(){jQuery(".the_champ_login_container").html('<img id="the_champ_loading_image" src="'+theChampLoadingImgPath+'" />')}function theChampAjaxUserAuth(e,t){theChampLoadingIcon();jQuery.ajax({type:"POST",dataType:"json",url:theChampAjaxUrl,data:{action:"the_champ_user_auth",profileData:e,provider:t,redirectionUrl:theChampTwitterRedirect?theChampTwitterRedirect:""},success:function(e,t,n){var r=theChampSiteUrl;if(e.status==1){if(e.message=="register"){if(e.url&&e.url!=""){r=e.url}else{r=theChampRegRedirectionUrl+(theChampCommentFormLogin?"/#commentform":"")}}else if(e.message=="linked"){r=theChampLinkingRedirection+"?linked=1"}else if(e.url&&e.url!=""){r=e.url}else{r=theChampRedirectionUrl+(theChampCommentFormLogin?"/#commentform":"")}}else if(e.message.match(/ask/)!==null){var i=e.message.split("|");r=theChampSiteUrl+"?SuperSocializerEmail=1&par="+i[1]}else if(e.message=="unverified"){r=theChampSiteUrl+"?SuperSocializerUnverified=1"}else if(e.message=="not linked"){r=theChampLinkingRedirection+"?linked=0"}else if(e.message=="provider exists"){r=theChampLinkingRedirection+"?linked=2"}location.href=r}})}function theChampInitiateLogin(e){if(e.title=="Login with Facebook"){theChampAuthUserFB()}else if(e.title=="Login with Twitter"){theChampPopup(theChampSiteUrl+"?SuperSocializerAuth=Twitter&super_socializer_redirect_to="+theChampTwitterRedirect)}else if(e.title=="Login with Xing"){theChampPopup(theChampSiteUrl+"?SuperSocializerAuth=Xing&super_socializer_redirect_to="+theChampTwitterRedirect)}else if(e.title=="Login with Linkedin"){IN.User.authorize();return false}else if(e.title=="Login with Google"){theChampInitializeGPLogin()}else if(e.title=="Login with Vkontakte"){theChampInitializeVKLogin()}else if(e.title=="Login with Instagram"){theChampInitializeInstaLogin()}}function theChampDisplayLoginIcon(e,t){if(typeof jQuery!="undefined"){jQuery("."+t).css("display","block")}else{var n=theChampGetElementsByClass(e,t);for(var r=0;r<n.length;r++){n[r].style.display="block"}}}if(theChampVerified){theChampLoadEvent(function(){tb_show(theChampPopupTitle,theChampAjaxUrl)})}if(theChampEmailPopup){theChampLoadEvent(function(){tb_show(theChampEmailPopupTitle,theChampEmailAjaxUrl)});function theChampValidateEmail(e){var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)}function the_champ_save_email(e){var t=document.getElementById("the_champ_email").value.trim();var n=document.getElementById("the_champ_confirm_email").value.trim();if(e.id=="save"&&!theChampValidateEmail(t)){document.getElementById("the_champ_error").innerHTML=theChampEmailPopupErrorMsg;jQuery("#TB_ajaxContent").css("height","auto");return}if(t!=n){document.getElementById("the_champ_error").innerHTML="Email addresses do not match";jQuery("#TB_ajaxContent").css("height","auto");return}theChampCallAjax(function(){theChampSaveEmail(e.id,t)})}function theChampSaveEmail(e,t){document.getElementById("the_champ_error").innerHTML='<img src="'+theChampLoadingImgPath+'" />';jQuery.ajax({type:"POST",dataType:"json",url:theChampAjaxUrl,data:{action:"the_champ_save_email",elemId:e,email:t,id:theChampEmailPopupUniqueId},success:function(e,t,n){window.history.pushState({html:"html",pageTitle:"page title"},"","?done=1");if(e.status==1&&e.message.response&&e.message.response=="success"){location.href=e.message.url}else if(e.status==1&&e.message=="success"){location.href=theChampRegRedirectionUrl}else if(e.status==1&&e.message=="cancelled"){tb_remove()}else if(e.status==1&&e.message=="verify"){document.getElementById("TB_ajaxContent").innerHTML="<strong>"+theChampEmailPopupVerifyMessage+"</strong>"}else if(e.status==0){document.getElementById("the_champ_error").innerHTML=e.message;jQuery("#TB_ajaxContent").css("height","auto")}}})}}var theChampCommentFormLogin=false
|
js/front/social_login/general.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function theChampPopup(e){window.open(e,"popUpWindow","height=400,width=600,left=20,top=20,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes")}function theChampStrReplace(e,t,n){for(var r=0;r<e.length;r++){n=n.replace(new RegExp(e[r],"g"),t[r])}return n}function
|
1 |
+
function theChampPopup(e){window.open(e,"popUpWindow","height=400,width=600,left=20,top=20,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes")}function theChampStrReplace(e,t,n){for(var r=0;r<e.length;r++){n=n.replace(new RegExp(e[r],"g"),t[r])}return n}function theChampCallAjax(e){if(typeof jQuery!="undefined"){e()}else{theChampGetScript("http://code.jquery.com/jquery-latest.min.js",e)}}function theChampGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)}function theChampGetElementsByClass(e,t){if(e.getElementsByClassName){return e.getElementsByClassName(t)}else{return function(e,t){if(t==null){t=document}var n=[],r=t.getElementsByTagName("*"),i=r.length,s=new RegExp("(^|\\s)"+e+"(\\s|$)"),o,u;for(o=0,u=0;o<i;o++){if(s.test(r[o].className)){n[u]=r[o];u++}}return n}(t,e)}}if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}theChampLoadEvent(function(){if(typeof jQuery!="undefined"){jQuery(".the_champ_login_container").each(function(){var e=jQuery(this).find("a");if(!jQuery(e).length){jQuery(this).remove()}else{jQuery(e).css("display","inline").css("visibility","visible");if(jQuery(e).css("display")=="none"||jQuery(e).css("visibility")=="hidden"){jQuery(e).attr("style","display: inline !important; visibility: visible !important")}}});jQuery(".the_champ_sharing_container").each(function(){if(!jQuery(this).find(".theChampSharingMoreButton").length){jQuery(this).remove()}else{jQuery(this).find(".theChampSharingMoreButton").attr("style","display: inline !important; visibility: visible !important; height: 32px !important; width: 32px !important;")}})}else{var e=theChampGetElementsByClass(document,"the_champ_login_container");for(var t=0;t<e.length;t++){var n=e[t].getElementsByTagName("a");if(!n.length){e[t].parentNode.removeChild(e[t])}else{for(var r=0;r<n.length;r++){if(n[r].style.display=="none"||n[r].style.visibility=="hidden"){n[r].setAttribute("style","display: inline !important; visibility: visible !important")}}}}var i=theChampGetElementsByClass(document,"the_champ_sharing_container");for(var t=0;t<i.length;t++){var n=theChampGetElementsByClass(i[t],"theChampSharingMoreButton");if(!n.length){i[t].parentNode.removeChild(i[t])}else{n[0].setAttribute("style","display: inline !important; visibility: visible !important; height: 32px !important; width: 32px !important;")}}}})
|
js/front/social_login/google.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
function theChampGoogleOnLoad(){theChampDisplayLoginIcon(document,"theChampGoogleButton")}function theChampInitializeGPLogin(){gapi.auth.signIn({callback:theChampGPSignInCallback,clientid:theChampGoogleKey,cookiepolicy:"single_host_origin",requestvisibleactions:"http://schema.org/AddAction",scope:"https://www.googleapis.com/auth/plus.login email"})}function theChampGPSignInCallback(e){if(e["status"]["signed_in"]){gapi.client.load("plus","v1",function(){if(e["access_token"]){theChampGetProfile()}else if(e["error"]){console.log("There was an error: "+e["error"])}})}else{console.log("Sign-in state: "+e["error"])}}function theChampGetProfile(){theChampLoadingIcon();var e=gapi.client.plus.people.get({userId:"me"});e.execute(function(e){if(e.error){if(e.message=="Access Not Configured. Please use Google Developers Console to activate the API for your project."){alert(theChampGoogleErrorMessage);window.open("http://thechamplord.wordpress.com/2013/12/30/getting-google-plus-client-id/")}return}else if(e.id){theChampCallAjax(function(){theChampAjaxUserAuth(e,"google")})}})}(function(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="https://apis.google.com/js/client:platform.js?onload=theChampGoogleOnLoad";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})()
|
js/front/social_login/instagram.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function theChampInitializeInstaLogin(){theChampPopup("https://instagram.com/oauth/authorize/?client_id="+theChampInstaId+"&redirect_uri="+theChampSiteUrl+"&response_type=token")}function theChampGetHashValue(e){if(typeof e!=="string"){e=""}else{e=e.toLowerCase()}var t=location.hash.toLowerCase().match(new RegExp(e+"=([^&]*)"));var n="";if(t){n=t[1]}return n}var theChampInstagramHash=theChampGetHashValue("access_token");if(theChampInstagramHash!=""){window.opener.location.href=theChampSiteUrl+"?SuperSocializerInstaToken="+theChampInstagramHash+"&super_socializer_redirect_to="+theChampTwitterRedirect;window.close()}
|
1 |
+
function theChampInitializeInstaLogin(){var e=typeof theChampLinkingRedirection!="undefined"&&theChampLinkingRedirection!=""?theChampLinkingRedirection:theChampTwitterRedirect;theChampPopup("https://instagram.com/oauth/authorize/?client_id="+theChampInstaId+"&redirect_uri="+encodeURI(theChampSiteUrl+"?ssredirect="+e)+"&response_type=token")}function theChampGetHashValue(e){if(typeof e!=="string"){e=""}else{e=e.toLowerCase()}var t=location.hash.toLowerCase().match(new RegExp(e+"=([^&]*)"));var n="";if(t){n=t[1]}return n}function theChampGetParameterByName(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search);return n===null?"":decodeURIComponent(n[1].replace(/\+/g," "))}var theChampInstagramHash=theChampGetHashValue("access_token");if(theChampInstagramHash!=""){var redirection=theChampGetParameterByName("ssredirect");window.opener.location.href=theChampSiteUrl+"?SuperSocializerInstaToken="+theChampInstagramHash+"&super_socializer_redirect_to="+(redirection?redirection:theChampTwitterRedirect);window.close()}
|
js/front/social_login/linkedin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
IN.Event.on(IN,
|
1 |
+
function theChampLinkedInOnLoad(){theChampDisplayLoginIcon(document,"theChampLinkedinButton")}IN.Event.on(IN,"auth",function(){theChampLoadingIcon();IN.API.Profile("me").fields(["email-address","id","picture-urls::(original)","first-name","last-name","headline","picture-url","public-profile-url"]).result(function(e){if(e.values[0].id&&e.values[0].id!=""){theChampCallAjax(function(){theChampAjaxUserAuth(e.values[0],"linkedin")})}})})
|
js/front/social_login/vkontakte.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
function theChampInitializeVKLogin(){VK.Auth.login(function(e){if(e.session.mid){VK.Api.call("getProfiles",{uids:e.session.mid,fields:"uid, first_name, last_name, nickname, photo, photo_big"},function(e){if(e.response[0].uid){theChampCallAjax(function(){theChampAjaxUserAuth(e.response[0],"vkontakte")})}})}else{}})}window.vkAsyncInit=function(){VK.init({apiId:theChampVkKey});theChampDisplayLoginIcon(document,"theChampVkontakteButton")};setTimeout(function(){var e=document.createElement("script");e.type="text/javascript";e.src="//vk.com/js/api/openapi.js";e.async=true;document.getElementById("vk_api_transport").appendChild(e)},0)
|
languages/Super-Socializer-es_ES.mo
CHANGED
Binary file
|
languages/Super-Socializer-es_ES.po
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Super Socializer 2.8.0\n"
|
4 |
-
"
|
5 |
-
"
|
|
|
6 |
"Last-Translator: The Champ <lordofthechamps@gmail.com>\n"
|
7 |
"Language-Team: The Champ <lordofthechamps@gmail.com>\n"
|
8 |
"Language: es\n"
|
@@ -15,342 +16,85 @@ msgstr ""
|
|
15 |
"X-Poedit-KeywordsList: __;_e\n"
|
16 |
"X-Poedit-SearchPath-0: ..\n"
|
17 |
|
18 |
-
#: ../
|
19 |
-
|
20 |
-
|
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 ../admin/facebook.php:72
|
31 |
-
msgid "Facebook Commenting"
|
32 |
-
msgstr "Comentarios Facebook"
|
33 |
-
|
34 |
-
#: ../admin/facebook.php:12 ../admin/facebook.php:297
|
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 |
-
#: ../
|
59 |
-
msgid ""
|
60 |
-
"
|
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 |
-
#: ../
|
67 |
-
msgid "
|
68 |
-
msgstr "
|
69 |
|
70 |
-
#: ../
|
71 |
-
|
72 |
-
|
73 |
-
msgstr "Comentarios Facebook"
|
74 |
|
75 |
-
#: ../
|
76 |
-
msgid "
|
77 |
-
msgstr "
|
78 |
|
79 |
-
#: ../
|
80 |
-
|
81 |
-
|
|
|
82 |
|
83 |
-
#: ../
|
84 |
-
|
85 |
-
|
86 |
-
msgstr ""
|
87 |
-
"Si está habilitado, sólo Facebook comentando estarán allí sin la opción de "
|
88 |
-
"cambiar a WordPress comentar"
|
89 |
|
90 |
-
#: ../
|
91 |
-
|
92 |
-
|
93 |
-
msgstr "Consérvese únicamente Facebook Comentando"
|
94 |
|
95 |
-
#: ../
|
96 |
-
|
97 |
-
|
98 |
-
"This text will be displayed on the button to switch to Facebook comments"
|
99 |
-
msgstr ""
|
100 |
-
"Este texto se muestra en el botón para cambiar a los comentarios de Facebook"
|
101 |
|
102 |
-
#: ../
|
103 |
-
|
104 |
-
|
105 |
-
msgstr "Titulo"
|
106 |
|
107 |
-
#: ../
|
108 |
-
msgid "
|
109 |
-
msgstr "
|
110 |
|
111 |
-
#: ../
|
112 |
-
msgid "
|
113 |
-
msgstr "
|
114 |
|
115 |
-
#: ../
|
116 |
#, fuzzy
|
117 |
-
msgid ""
|
118 |
-
"
|
119 |
-
"Stories on Facebook about comments posted, will link to this URL.<br/>If "
|
120 |
-
"left empty <strong>(Recommended)</strong>, url of the webpage will be used "
|
121 |
-
"at which commenting is enabled."
|
122 |
-
msgstr ""
|
123 |
-
"La URL absoluta a la que los comentarios publicados en el plugin se "
|
124 |
-
"asociarán permanentemente. Historias en Facebook acerca de los comentarios "
|
125 |
-
"publicados en el plugin se enlazarán a esta URL.<br/> Si se deja en blanco "
|
126 |
-
"<strong>(recomendado)</strong>, se utilizará la URL de la página web en la "
|
127 |
-
"que se habilita comentar"
|
128 |
|
129 |
-
#: ../
|
130 |
-
msgid "
|
131 |
-
msgstr "
|
132 |
|
133 |
-
#: ../
|
134 |
#, fuzzy
|
135 |
-
msgid ""
|
136 |
-
"
|
137 |
-
"Comments block. The mobile version of the Comments block ignores the width "
|
138 |
-
"parameter, and instead has a fluid width of 100%."
|
139 |
-
msgstr ""
|
140 |
-
"Dejar en blanco para el valor por defecto. El ancho (en píxeles) del bloque "
|
141 |
-
"de comentarios. La versión móvil del bloque de Comentarios ignora el "
|
142 |
-
"parámetro de anchura, y en su lugar tiene una anchura fluída del 100%."
|
143 |
-
|
144 |
-
#: ../admin/facebook.php:182
|
145 |
-
msgid "Color Scheme"
|
146 |
-
msgstr "Esquema de colores"
|
147 |
-
|
148 |
-
#: ../admin/facebook.php:186
|
149 |
-
msgid "Light"
|
150 |
-
msgstr "Claro"
|
151 |
-
|
152 |
-
#: ../admin/facebook.php:187
|
153 |
-
msgid "Dark"
|
154 |
-
msgstr "Obscuro"
|
155 |
-
|
156 |
-
#: ../admin/facebook.php:195
|
157 |
-
msgid "The color scheme used by the plugin. Can be \"light\" or \"dark\"."
|
158 |
-
msgstr ""
|
159 |
-
"El esquema de color usado por el plugin. Puede ser \"\"claro\"\" u "
|
160 |
-
"\"\"obscuro\"\"."
|
161 |
-
|
162 |
-
#: ../admin/facebook.php:203
|
163 |
-
msgid "Number of posts"
|
164 |
-
msgstr "Número de publicaciones"
|
165 |
-
|
166 |
-
#: ../admin/facebook.php:213
|
167 |
-
msgid ""
|
168 |
-
"The number of comments to show by default. The minimum value is 1. Defaults "
|
169 |
-
"to 10"
|
170 |
-
msgstr ""
|
171 |
-
"El número de comentarios para mostrar por defecto. El valor mínimo es 1. El "
|
172 |
-
"valor predeterminado es 10"
|
173 |
-
|
174 |
-
#: ../admin/facebook.php:221
|
175 |
-
msgid "Order by"
|
176 |
-
msgstr "Ordenar por"
|
177 |
-
|
178 |
-
#: ../admin/facebook.php:225
|
179 |
-
msgid "Social"
|
180 |
-
msgstr "Social"
|
181 |
-
|
182 |
-
#: ../admin/facebook.php:226
|
183 |
-
msgid "Reverse Time"
|
184 |
-
msgstr "Revertir tiempo"
|
185 |
-
|
186 |
-
#: ../admin/facebook.php:227
|
187 |
-
msgid "Time"
|
188 |
-
msgstr "Tiempo"
|
189 |
-
|
190 |
-
#: ../admin/facebook.php:235
|
191 |
-
msgid "The order to use when displaying comments."
|
192 |
-
msgstr "El orden a utilizar cuando se muestran los comentarios."
|
193 |
-
|
194 |
-
#: ../admin/facebook.php:243
|
195 |
-
msgid "Mobile"
|
196 |
-
msgstr "Móvil "
|
197 |
-
|
198 |
-
#: ../admin/facebook.php:247
|
199 |
-
msgid "Auto Detect"
|
200 |
-
msgstr "Auto detectar"
|
201 |
-
|
202 |
-
#: ../admin/facebook.php:248
|
203 |
-
msgid "True"
|
204 |
-
msgstr "Verdadero"
|
205 |
-
|
206 |
-
#: ../admin/facebook.php:249
|
207 |
-
msgid "False"
|
208 |
-
msgstr "Falso"
|
209 |
-
|
210 |
-
#: ../admin/facebook.php:257
|
211 |
-
msgid ""
|
212 |
-
"A boolean value that specifies whether to show the mobile-optimized version "
|
213 |
-
"or not."
|
214 |
-
msgstr ""
|
215 |
-
"Un valor booleano que especifica si se mostrará la versión optimizada para "
|
216 |
-
"móviles o no. "
|
217 |
-
|
218 |
-
#: ../admin/facebook.php:265
|
219 |
-
msgid "Language"
|
220 |
-
msgstr "Idioma"
|
221 |
-
|
222 |
-
#: ../admin/facebook.php:275
|
223 |
-
#, php-format
|
224 |
-
msgid ""
|
225 |
-
"Enter the code of the language you want to use to display commenting. You "
|
226 |
-
"can find the language codes at <a href=\"%s\" target=\"_blank\">this link</"
|
227 |
-
"a>. Leave it empty for default language(English)"
|
228 |
-
msgstr ""
|
229 |
-
"Introduzca el código del idioma que desea utilizar para mostrar los "
|
230 |
-
"comentarios. Usted puede encontrar los códigos de idioma en <a href=\"%s\" "
|
231 |
-
"target=\"_blank\"> este enlace </ a>. Déjelo vacío para el idioma "
|
232 |
-
"predeterminado (Inglés)"
|
233 |
-
|
234 |
-
#: ../admin/facebook.php:290
|
235 |
-
msgid "Important note"
|
236 |
-
msgstr "nota importante"
|
237 |
-
|
238 |
-
#: ../admin/facebook.php:292
|
239 |
-
#, fuzzy, php-format
|
240 |
-
msgid ""
|
241 |
-
"To use this feature follow the steps mentioned at <a href=\"%s\" target="
|
242 |
-
"\"_blank\">this link</a>"
|
243 |
-
msgstr ""
|
244 |
-
"Para utilizar esta función, siga los pasos mencionados en <a href=\"%s\" "
|
245 |
-
"target=\"_blank\">este enlace</ a>"
|
246 |
-
|
247 |
-
#: ../admin/facebook.php:303
|
248 |
-
msgid "Publish feed on user's timeline on Facebook login"
|
249 |
-
msgstr ""
|
250 |
-
"Publicar alimentación en la línea de tiempo del usuario al ingresar a "
|
251 |
-
"Facebook"
|
252 |
-
|
253 |
-
#: ../admin/facebook.php:313
|
254 |
-
msgid ""
|
255 |
-
"If enabled, a post will be published on the timeline of the user logging in"
|
256 |
-
msgstr ""
|
257 |
-
"\"Si está activado, un mensaje será publicado en la línea de tiempo del "
|
258 |
-
"usuario que ingresa \""
|
259 |
-
|
260 |
-
#: ../admin/facebook.php:323
|
261 |
-
msgid "Facebook Feed Options"
|
262 |
-
msgstr "Opciones de Alimentación en Facebook"
|
263 |
-
|
264 |
-
#: ../admin/facebook.php:329
|
265 |
-
msgid "Message"
|
266 |
-
msgstr "Mensaje"
|
267 |
-
|
268 |
-
#: ../admin/facebook.php:339
|
269 |
-
msgid ""
|
270 |
-
"Message for the feed post. %website-name% will be replaced with your website "
|
271 |
-
"name in actual message."
|
272 |
-
msgstr ""
|
273 |
-
"Mensaje para la publicación de alimentación %web-name% se reemplazará por el "
|
274 |
-
"nombre del sitio web en el mensaje real."
|
275 |
-
|
276 |
-
#: ../admin/facebook.php:348
|
277 |
-
msgid "Link (required)"
|
278 |
-
msgstr "Enlace (requerido)"
|
279 |
-
|
280 |
-
#: ../admin/facebook.php:358
|
281 |
-
msgid ""
|
282 |
-
"The link attached to this feed (required parameter for this functionality to "
|
283 |
-
"work)"
|
284 |
-
msgstr ""
|
285 |
-
"El enlace adjunto a esta publicación (parámetro requerido para que esta "
|
286 |
-
"función opere)"
|
287 |
-
|
288 |
-
#: ../admin/facebook.php:366
|
289 |
-
msgid "Picture"
|
290 |
-
msgstr "Imagen"
|
291 |
-
|
292 |
-
#: ../admin/facebook.php:376
|
293 |
-
msgid ""
|
294 |
-
"The URL of a picture attached to this post. The picture must be at least "
|
295 |
-
"200px by 200px. (if this url is not specified, image from the url specified "
|
296 |
-
"in Link parameter will be displayed in the post)"
|
297 |
-
msgstr ""
|
298 |
-
"La dirección URL de una imagen adjunta a esta publicación. La imagen debe "
|
299 |
-
"ser de al menos 200px por 200px. (Si no se especifica esta url, la imagen de "
|
300 |
-
"la URL especificada en el parámetro del enlace se mostrará en la publicación)"
|
301 |
-
|
302 |
-
#: ../admin/facebook.php:385
|
303 |
-
msgid "Source"
|
304 |
-
msgstr "Fuente"
|
305 |
-
|
306 |
-
#: ../admin/facebook.php:395
|
307 |
-
msgid ""
|
308 |
-
"The URL of a media file (either SWF or MP3) attached to this post. If SWF, "
|
309 |
-
"you must also specify picture (in \"Picture\" parameter) to provide a "
|
310 |
-
"thumbnail for the video."
|
311 |
-
msgstr ""
|
312 |
-
"La URL de un archivo multimedia (ya sea SWF o MP3) adjunto a este mensaje. "
|
313 |
-
"Si SWF, también debe especificar la imagen (en el parámetro \"Imagen\") para "
|
314 |
-
"proporcionar una imagen en miniatura para el vídeo."
|
315 |
-
|
316 |
-
#: ../admin/facebook.php:403
|
317 |
-
msgid "Name"
|
318 |
-
msgstr " Nombre"
|
319 |
-
|
320 |
-
#: ../admin/facebook.php:413
|
321 |
-
msgid "The name of the link attachment"
|
322 |
-
msgstr "El nombre del archivo adjunto del enlace"
|
323 |
-
|
324 |
-
#: ../admin/facebook.php:422
|
325 |
-
msgid "Caption"
|
326 |
-
msgstr "Leyenda"
|
327 |
|
328 |
-
#: ../
|
329 |
-
msgid ""
|
330 |
-
"
|
331 |
-
"this field is automatically populated with the URL of the link."
|
332 |
-
msgstr ""
|
333 |
-
"La leyenda del enlace (aparece debajo del nombre del enlace). Si no se "
|
334 |
-
"especifica, este campo se rellena automáticamente con la URL del enlace."
|
335 |
|
336 |
-
#: ../
|
337 |
-
msgid "
|
338 |
-
msgstr "
|
339 |
|
340 |
-
#: ../
|
341 |
-
msgid ""
|
342 |
-
|
343 |
-
"specified, this field is automatically populated by information scraped from "
|
344 |
-
"the link, typically the title of the page."
|
345 |
-
msgstr ""
|
346 |
-
"La descripción del enlace (aparece bajo el texto del enlace). Si no se "
|
347 |
-
"especifica, este campo se rellena automáticamente por información extraída "
|
348 |
-
"desde el enlace, por lo general el título de la página."
|
349 |
|
350 |
-
#: ../
|
351 |
-
|
352 |
-
|
353 |
-
msgstr "Guardar cambios"
|
354 |
|
355 |
#: ../admin/help.php:4
|
356 |
msgid "About"
|
@@ -365,14 +109,8 @@ msgid "by"
|
|
365 |
msgstr "por"
|
366 |
|
367 |
#: ../admin/help.php:7
|
368 |
-
msgid ""
|
369 |
-
"
|
370 |
-
"like to call myself - The Champ....:) ). You can connect with me (and my "
|
371 |
-
"upcoming work) via:"
|
372 |
-
msgstr ""
|
373 |
-
"Soy un entusiasta de la tecnología. Me gusta jugar con los códigos y "
|
374 |
-
"construir grandes cosas (y me gusta decir que soy - El Champ .... :)). Puede "
|
375 |
-
"conectar conmigo (y mi próximo trabajo) a través de:"
|
376 |
|
377 |
#: ../admin/help.php:18
|
378 |
msgid "Plugin Demo"
|
@@ -387,17 +125,15 @@ msgid "Support"
|
|
387 |
msgstr "Soporte"
|
388 |
|
389 |
#: ../admin/help.php:28
|
390 |
-
msgid ""
|
391 |
-
"
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
#: ../admin/help.php:30 ../admin/help.php:33 ../admin/help.php:34
|
400 |
-
#: ../admin/help.php:35 ../admin/help.php:36 ../admin/help.php:37
|
401 |
msgid "Rate 5-star"
|
402 |
msgstr "Tasa de 5 estrellas"
|
403 |
|
@@ -414,1357 +150,1582 @@ msgid "Want plugin customization?"
|
|
414 |
msgstr "¿Quieres plugin de personalización?"
|
415 |
|
416 |
#: ../admin/help.php:75
|
417 |
-
msgid ""
|
418 |
-
"
|
419 |
-
"an email at <a href=\"mailto:lordofthechamps@gmail.com"
|
420 |
-
"\">lordofthechamps@gmail.com</a>"
|
421 |
-
msgstr ""
|
422 |
-
"Si quieres características personalizadas en el plugin, lo que puedo hacer "
|
423 |
-
"por usted. Simplemente envíeme un correo electrónico a lordofthechamps@gmail."
|
424 |
-
"com"
|
425 |
|
426 |
#: ../admin/help.php:80
|
427 |
msgid "White-Label"
|
428 |
msgstr ""
|
429 |
|
430 |
#: ../admin/help.php:82
|
431 |
-
msgid ""
|
432 |
-
"
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
#: ../admin/
|
440 |
-
msgid "Welcome"
|
441 |
-
msgstr "Bienvenida"
|
442 |
-
|
443 |
-
#: ../admin/social_admin.php:12
|
444 |
-
msgid "You are ready to Socialize your website."
|
445 |
-
msgstr "Usted está listo para Socializar su sitio web."
|
446 |
-
|
447 |
-
#: ../admin/social_admin.php:13
|
448 |
-
msgid "Getting Started"
|
449 |
-
msgstr "Para empezar"
|
450 |
-
|
451 |
-
#: ../admin/social_admin.php:14
|
452 |
-
msgid ""
|
453 |
-
"Start configuring the options in the sections below the <strong>Super "
|
454 |
-
"Socializer</strong> menu in the left pan. <strong>Social Sharing</strong> is "
|
455 |
-
"enabled at your website by default."
|
456 |
-
msgstr ""
|
457 |
-
"Comience a configurar las opciones en las siguientes secciones del menú de "
|
458 |
-
"Super Socializer en el panel izquierdo. Intercambio Social está habilitado "
|
459 |
-
"en su sitio web por defecto."
|
460 |
-
|
461 |
-
#: ../admin/social_admin.php:15
|
462 |
-
msgid ""
|
463 |
-
"In <strong>Facebook</strong> section, you can configure Facebook Commenting "
|
464 |
-
"and Feed."
|
465 |
-
msgstr ""
|
466 |
-
"En la sección de Facebook, puede configurar Comentarios y Transmisiones "
|
467 |
-
"Facebook."
|
468 |
-
|
469 |
-
#: ../admin/social_admin.php:16
|
470 |
-
msgid ""
|
471 |
-
"In <strong>Social Login</strong> section, you can select Social ID provders "
|
472 |
-
"and configure the Social Login options."
|
473 |
-
msgstr ""
|
474 |
-
"En la sección Social Login, puede seleccionar proveedores de Identificación "
|
475 |
-
"Social y configurar las opciones de Social Login."
|
476 |
-
|
477 |
-
#: ../admin/social_admin.php:17
|
478 |
-
msgid ""
|
479 |
-
"In <strong>Social Sharing</strong> section, you can choose the Social "
|
480 |
-
"Networks for Sharing and configure the optons for sharing."
|
481 |
-
msgstr ""
|
482 |
-
"En la sección Uso compartido Social, puede elegir las Redes Sociales para "
|
483 |
-
"compartir y configurar los opciones para compartir."
|
484 |
-
|
485 |
-
#: ../admin/social_counter.php:12 ../admin/social_counter.php:20
|
486 |
-
#: ../admin/social_login.php:10 ../admin/social_login.php:18
|
487 |
-
#: ../admin/social_sharing.php:15 ../admin/social_sharing.php:25
|
488 |
msgid "Basic Configuration"
|
489 |
msgstr "Configuración Básica"
|
490 |
|
491 |
-
#: ../admin/social_counter.php:
|
492 |
#, fuzzy
|
493 |
msgid "Social Counter"
|
494 |
msgstr "Social Login"
|
495 |
|
496 |
-
#: ../admin/social_counter.php:
|
497 |
-
#: ../admin/social_sharing.php:
|
|
|
498 |
msgid "Shortcode & Widget"
|
499 |
msgstr "Widgets y shortcodes"
|
500 |
|
501 |
-
#: ../admin/social_counter.php:
|
502 |
#, fuzzy
|
503 |
msgid "Enable Social Counter"
|
504 |
msgstr "Habilitar Social Login"
|
505 |
|
506 |
-
#: ../admin/social_counter.php:
|
507 |
#, fuzzy
|
508 |
-
msgid ""
|
509 |
-
"
|
510 |
-
"Counter functionality"
|
511 |
-
msgstr ""
|
512 |
-
"Control Maestro para Social Login. Debe comprobarse para permitir la "
|
513 |
-
"funcionalidad de Social Login"
|
514 |
|
515 |
-
#: ../admin/social_counter.php:
|
516 |
#, fuzzy
|
517 |
-
msgid ""
|
518 |
-
"<strong>
|
519 |
-
"page/post and check the options at the bottom in <strong>\"Super Socializer"
|
520 |
-
"\"</strong> section"
|
521 |
-
msgstr ""
|
522 |
-
"<strong> Nota: </ strong> Para deshabilitar el uso compartido en concreto la "
|
523 |
-
"página / post, edite la página / post y comprobar el <strong> \"Desactivar "
|
524 |
-
"Intercambio Social en esta página \" </ strong> la opción en la parte "
|
525 |
-
"inferior de <strong > \"Super Socializer \" </ strong>"
|
526 |
|
527 |
-
#: ../admin/social_counter.php:
|
|
|
528 |
msgid "bit.ly url shortener"
|
529 |
msgstr "bit.ly url acortador"
|
530 |
|
531 |
-
#: ../admin/social_counter.php:
|
532 |
msgid "Enable bit.ly url shortener for tweet button"
|
533 |
msgstr "Habilitar acortador de url bit.ly para el botón de Twitter"
|
534 |
|
535 |
-
#: ../admin/social_counter.php:
|
|
|
536 |
#, fuzzy
|
537 |
msgid "Master control to enable bit.ly url shortening for sharing"
|
538 |
msgstr "Control maestro para permitir el intercambio horizontal"
|
539 |
|
540 |
-
#: ../admin/social_counter.php:
|
|
|
541 |
msgid "bit.ly username"
|
542 |
msgstr "bit.ly nombre de usuario"
|
543 |
|
544 |
-
#: ../admin/social_counter.php:
|
|
|
545 |
#, fuzzy, php-format
|
546 |
-
msgid ""
|
547 |
-
"
|
548 |
-
"\">this link</a> to get bit.ly username"
|
549 |
-
msgstr ""
|
550 |
-
"Requerido para que funcione Twitter Social Login. Por favor, siga la "
|
551 |
-
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
552 |
-
"obtener Twitter Secreto del Consumidor"
|
553 |
|
554 |
-
#: ../admin/social_counter.php:
|
|
|
555 |
#, fuzzy
|
556 |
msgid "bit.ly API Key"
|
557 |
msgstr "Clave Consumidor Twitter"
|
558 |
|
559 |
-
#: ../admin/social_counter.php:
|
|
|
560 |
#, fuzzy, php-format
|
561 |
-
msgid ""
|
562 |
-
"
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
|
569 |
-
#: ../admin/social_counter.php:
|
570 |
msgid "Twitter username in tweet button"
|
571 |
msgstr "Twitter nombre de usuario en el botón de Twitter"
|
572 |
|
573 |
-
#: ../admin/social_counter.php:
|
|
|
574 |
msgid "Twitter username (without @)"
|
575 |
msgstr "Twitter nombre de usuario (sin @)"
|
576 |
|
577 |
-
#: ../admin/social_counter.php:
|
578 |
-
msgid ""
|
579 |
-
"
|
580 |
-
"@USERNAME\". Leave empty if you do not want any username."
|
581 |
-
msgstr ""
|
582 |
-
"Nombre de usuario proporcionado se añadirá después del contenido que se está "
|
583 |
-
"tuiteó como \"a travésUSERNAME\". Dejar vacío si no desea ningún nombre de "
|
584 |
-
"usuario."
|
585 |
|
586 |
-
#: ../admin/social_counter.php:
|
587 |
#, fuzzy
|
588 |
msgid "Horizontal Counter Interface Options"
|
589 |
msgstr "Horizontales Opciones para compartir la interfaz de"
|
590 |
|
591 |
-
#: ../admin/social_counter.php:
|
592 |
#, fuzzy
|
593 |
msgid "Enable horizontal counter interface"
|
594 |
msgstr "Habilitar interfaz de intercambio horizontal"
|
595 |
|
596 |
-
#: ../admin/social_counter.php:
|
597 |
#, fuzzy
|
598 |
msgid "Master control to enable horizontal counter"
|
599 |
msgstr "Control maestro para permitir el intercambio horizontal"
|
600 |
|
601 |
-
#: ../admin/social_counter.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
#, fuzzy
|
603 |
msgid "The text to display above the counter interface"
|
604 |
msgstr "El texto que se muestra por encima de la interfaz compartida "
|
605 |
|
606 |
-
#: ../admin/social_counter.php:
|
|
|
607 |
#, fuzzy
|
608 |
msgid "Select and rearrange providers"
|
609 |
msgstr "Seleccionar proveedores"
|
610 |
|
611 |
-
#: ../admin/social_counter.php:
|
|
|
612 |
#, fuzzy
|
613 |
msgid "Select the providers for counter interface. Drag them to rearrange."
|
614 |
msgstr "Seleccione los proveedores para compartir la interfaz"
|
615 |
|
616 |
-
#: ../admin/social_counter.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
617 |
msgid "Position with respect to content"
|
618 |
msgstr "Posición con respecto al contenido"
|
619 |
|
620 |
-
#: ../admin/social_counter.php:
|
|
|
621 |
msgid "Top of the content"
|
622 |
msgstr "Parte superior del contenido"
|
623 |
|
624 |
-
#: ../admin/social_counter.php:
|
|
|
625 |
msgid "Bottom of the content"
|
626 |
msgstr "Parte inferior del contenido"
|
627 |
|
628 |
-
#: ../admin/social_counter.php:
|
629 |
#, fuzzy
|
630 |
msgid "Specify position of the counter interface with respect to the content"
|
631 |
-
msgstr ""
|
632 |
-
"Especificar la posición de la interfaz compartir con respecto al contenido"
|
633 |
|
634 |
-
#: ../admin/social_counter.php:
|
|
|
635 |
#, fuzzy
|
636 |
msgid "Counter location"
|
637 |
msgstr "Ubicación de uso compartido"
|
638 |
|
639 |
-
#: ../admin/social_counter.php:
|
640 |
-
#: ../admin/
|
641 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
642 |
msgid "Homepage"
|
643 |
msgstr "Página de inicio"
|
644 |
|
645 |
-
#: ../admin/social_counter.php:
|
646 |
-
#: ../admin/
|
|
|
|
|
647 |
msgid "Posts"
|
648 |
msgstr "Publicaciones"
|
649 |
|
650 |
-
#: ../admin/social_counter.php:
|
651 |
-
#: ../admin/
|
|
|
|
|
652 |
msgid "Pages"
|
653 |
msgstr "Páginas"
|
654 |
|
655 |
-
#: ../admin/social_counter.php:
|
656 |
-
#: ../admin/
|
|
|
|
|
657 |
msgid "Excerpts"
|
658 |
msgstr "Extractos"
|
659 |
|
660 |
-
#: ../admin/social_counter.php:
|
661 |
-
#: ../admin/
|
|
|
|
|
662 |
msgid "Category Archives"
|
663 |
msgstr "Archivos de la categoría"
|
664 |
|
665 |
-
#: ../admin/social_counter.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
666 |
#, fuzzy
|
667 |
msgid "Specify the pages where you want to enable counter interface"
|
668 |
-
msgstr ""
|
669 |
-
"Especifique las páginas en las que desee habilitar la interfaz Uso compartido"
|
670 |
|
671 |
-
#: ../admin/social_counter.php:
|
672 |
#, fuzzy
|
673 |
msgid "Vertical (Floating) counter interface Options"
|
674 |
msgstr "Vertical (flotante) Opciones de interfaz compartir"
|
675 |
|
676 |
-
#: ../admin/social_counter.php:
|
677 |
#, fuzzy
|
678 |
msgid "Enable vertical (floating) counter interface"
|
679 |
msgstr "Habilitar vertical (flotante) interfaz compartida"
|
680 |
|
681 |
-
#: ../admin/social_counter.php:
|
682 |
#, fuzzy
|
683 |
msgid "Master control to enable vertical (floating) counter widget"
|
684 |
-
msgstr ""
|
685 |
-
"Control maestro para permitir vertical (flotante) widget de intercambio"
|
686 |
|
687 |
-
#: ../admin/social_counter.php:
|
688 |
-
#: ../
|
689 |
msgid "Background Color"
|
690 |
msgstr "color de fondo"
|
691 |
|
692 |
-
#: ../admin/social_counter.php:
|
693 |
-
msgid ""
|
694 |
-
"
|
695 |
-
"vertical counter bar. Leave empty for transparent. You can get the hex code "
|
696 |
-
"of the required color from <a href=\"http://www.colorpicker.com/\" target="
|
697 |
-
"\"_blank\">this link</a>"
|
698 |
-
msgstr ""
|
699 |
-
"Especifique el color o el código hexadecimal (ejemplo # cc78e0) para el "
|
700 |
-
"fondo de barra de bar vertical. Dejar vacío para transparente. Puede obtener "
|
701 |
-
"el código hexadecimal del color deseado de <a href=\"http://www.colorpicker."
|
702 |
-
"com/\" target=\"_blank\"> este enlace </a>"
|
703 |
-
|
704 |
-
#: ../admin/social_counter.php:398 ../admin/social_sharing.php:580
|
705 |
-
#, fuzzy
|
706 |
-
msgid "Horizontal alignment"
|
707 |
-
msgstr "Horizontales Opciones para compartir la interfaz de"
|
708 |
-
|
709 |
-
#: ../admin/social_counter.php:402 ../admin/social_sharing.php:584
|
710 |
-
#: ../inc/widget.php:263 ../inc/widget.php:459
|
711 |
-
msgid "Left"
|
712 |
-
msgstr "izquierda"
|
713 |
-
|
714 |
-
#: ../admin/social_counter.php:403 ../admin/social_sharing.php:585
|
715 |
-
#: ../inc/widget.php:264 ../inc/widget.php:460
|
716 |
-
#, fuzzy
|
717 |
-
msgid "Right"
|
718 |
-
msgstr "Claro"
|
719 |
-
|
720 |
-
#: ../admin/social_counter.php:411
|
721 |
-
#, fuzzy
|
722 |
-
msgid "Horizontal alignment of the counter interface"
|
723 |
-
msgstr "Habilitar interfaz de intercambio horizontal"
|
724 |
|
725 |
-
#: ../admin/social_counter.php:
|
|
|
726 |
msgid "Left offset"
|
727 |
msgstr "desplazamiento izquierda"
|
728 |
|
729 |
-
#: ../admin/social_counter.php:
|
730 |
#, fuzzy
|
731 |
-
msgid ""
|
732 |
-
"
|
733 |
-
"right and decrease will shift it towards left."
|
734 |
-
msgstr ""
|
735 |
-
"Especifique un número. Aumento del número cambiará interfaz compartida hacia "
|
736 |
-
"la derecha y la disminución se desplazará hacia la izquierda."
|
737 |
|
738 |
-
#: ../admin/social_counter.php:
|
|
|
739 |
#, fuzzy
|
740 |
msgid "Right offset"
|
741 |
msgstr "desplazamiento izquierda"
|
742 |
|
743 |
-
#: ../admin/social_counter.php:
|
744 |
#, fuzzy
|
745 |
-
msgid ""
|
746 |
-
"
|
747 |
-
"left and decrease will shift it towards right."
|
748 |
-
msgstr ""
|
749 |
-
"Especifique un número. Aumento del número cambiará interfaz compartida hacia "
|
750 |
-
"la derecha y la disminución se desplazará hacia la izquierda."
|
751 |
|
752 |
-
#: ../admin/social_counter.php:
|
|
|
753 |
msgid "Top offset"
|
754 |
msgstr "superior compensar"
|
755 |
|
756 |
-
#: ../admin/social_counter.php:
|
757 |
#, fuzzy
|
758 |
-
msgid ""
|
759 |
-
"
|
760 |
-
"bottom and decrease will shift it towards top."
|
761 |
-
msgstr ""
|
762 |
-
"Especifique un número. Aumento del número cambiará compartir la interfaz "
|
763 |
-
"hacia la parte inferior y el descenso se desplazará hacia la parte superior."
|
764 |
|
765 |
-
#: ../admin/social_counter.php:
|
766 |
#, fuzzy
|
767 |
msgid "Specify the pages where you want to enable vertical counter interface"
|
768 |
-
msgstr ""
|
769 |
-
"Especifique las páginas en las que desee habilitar la interfaz Uso "
|
770 |
-
"compartido verticales"
|
771 |
|
772 |
-
#: ../admin/social_counter.php:
|
773 |
-
#: ../admin/
|
|
|
|
|
|
|
774 |
msgid "Shortcode"
|
775 |
msgstr "Shortcodes"
|
776 |
|
777 |
-
#: ../admin/social_counter.php:
|
778 |
#, fuzzy
|
779 |
-
msgid ""
|
780 |
-
"
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
#: ../admin/
|
788 |
-
#: ../admin/
|
789 |
-
#: ../admin/
|
790 |
-
#: ../admin/
|
791 |
-
#: ../admin/
|
792 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
793 |
msgid "Example"
|
794 |
msgstr "ejemplo"
|
795 |
|
796 |
-
#: ../admin/social_counter.php:
|
|
|
|
|
797 |
msgid "You can use following attributes in the Shortcode"
|
798 |
msgstr "Puede utilizar los atributos siguientes en el Código corto"
|
799 |
|
800 |
-
#: ../admin/social_counter.php:
|
801 |
#, fuzzy
|
802 |
-
msgid ""
|
803 |
-
"
|
804 |
-
"interface"
|
805 |
-
msgstr ""
|
806 |
-
"Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso "
|
807 |
-
"compartido sociales prestados"
|
808 |
|
809 |
-
#: ../admin/social_counter.php:
|
810 |
#, fuzzy
|
811 |
-
msgid ""
|
812 |
-
"
|
813 |
-
"\"Vertical\") of Social Counter interface. Default type is \"Horizontal\"."
|
814 |
-
msgstr ""
|
815 |
-
"Utilice <strong>type</ strong> atributo para especificar el tipo "
|
816 |
-
"(\"horizontal \" o \"vertical \") de la interfaz Uso compartido Social. Tipo "
|
817 |
-
"por defecto es \"horizontal \"."
|
818 |
|
819 |
-
#: ../admin/social_counter.php:
|
820 |
msgid "Left (Works with \"Vertical\" type interface only)"
|
821 |
msgstr "Izquierda (Trabaja con interfaz tipo \"vertical \" solamente)"
|
822 |
|
823 |
-
#: ../admin/social_counter.php:
|
824 |
#, fuzzy
|
825 |
-
msgid ""
|
826 |
-
"
|
827 |
-
"form the left side of the screen) of Social Counter interface."
|
828 |
-
msgstr ""
|
829 |
-
"Uso <strong> left</strong> atributo para especificar el desplazamiento "
|
830 |
-
"izquierda (distancia formar el lado izquierdo de la pantalla) de interfaz de "
|
831 |
-
"uso compartido Social."
|
832 |
|
833 |
-
#: ../admin/social_counter.php:
|
834 |
msgid "Top (Works with \"Vertical\" type interface only)"
|
835 |
msgstr "Top (Trabaja con \"vertical \" tipo de interfaz única)"
|
836 |
|
837 |
-
#: ../admin/social_counter.php:
|
838 |
#, fuzzy
|
839 |
-
msgid ""
|
840 |
-
"
|
841 |
-
"the top of the screen) of Social Counter interface."
|
842 |
-
msgstr ""
|
843 |
-
"Utilice <strong>top</strong> atributo para especificar el desplazamiento "
|
844 |
-
"superior (distancia forman la parte superior de la pantalla) de la interfaz "
|
845 |
-
"Uso compartido Social."
|
846 |
|
847 |
-
#: ../admin/social_counter.php:
|
848 |
-
#: ../admin/
|
|
|
|
|
849 |
#, fuzzy
|
850 |
msgid "You can use shortcode in PHP file as following"
|
851 |
msgstr "Usted puede ver el plugin en acción en el siguiente enlace"
|
852 |
|
853 |
-
#: ../admin/social_counter.php:
|
854 |
#, fuzzy
|
855 |
-
msgid ""
|
856 |
-
"
|
857 |
-
"like <strong>[TheChamp-Counter style=\"background-color:#000;\"]</strong>, "
|
858 |
-
"so the final code looks like following"
|
859 |
-
msgstr ""
|
860 |
-
"Reemplace <strong>SHORTCODE</ strong> en el código anterior con el código "
|
861 |
-
"corto requerido como <strong>[TheChamp-Login style=\"background-color: #000;"
|
862 |
-
"\"]</ strong>, por lo que el código final se parece a siguiente"
|
863 |
|
864 |
-
#: ../admin/social_counter.php:
|
865 |
-
#: ../admin/social_sharing.php:
|
|
|
866 |
msgid "Widget"
|
867 |
msgstr ""
|
868 |
|
869 |
-
#: ../admin/social_counter.php:
|
870 |
#, fuzzy
|
871 |
-
msgid ""
|
872 |
-
"
|
873 |
-
"strong> section in the left pan and drag <strong>Super Socializer - Counter "
|
874 |
-
"(Horizontal Widget)</strong> and <strong>Super Socializer - Counter "
|
875 |
-
"(Vertical Floating Widget)</strong> widgets in the required area."
|
876 |
-
msgstr ""
|
877 |
-
"Usted puede navegar a la <strong>Apariencia</ strong >> <strong> "
|
878 |
-
"Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper "
|
879 |
-
"Socializer - Sharing (Horizontal Widget) </ strong> y <strong> Súper "
|
880 |
-
"Socializer - Sharing (Vertical Floating Widget) </ strong> widgets en el "
|
881 |
-
"área requerida."
|
882 |
|
883 |
-
#: ../admin/
|
884 |
-
|
885 |
-
|
|
|
|
|
|
|
886 |
|
887 |
-
#: ../admin/
|
888 |
-
msgid "
|
889 |
-
msgstr "
|
890 |
|
891 |
-
#: ../admin/
|
892 |
-
|
893 |
-
|
894 |
-
"
|
895 |
-
msgstr ""
|
896 |
-
"Control Maestro para Social Login. Debe comprobarse para permitir la "
|
897 |
-
"funcionalidad de Social Login"
|
898 |
|
899 |
-
#: ../admin/
|
900 |
-
|
901 |
-
|
902 |
-
"ini file."
|
903 |
msgstr ""
|
904 |
-
"Nota: Twitter Sociales Ingresar requiere \"soporte cURL = habilitado\" en su "
|
905 |
-
"archivo php.ini."
|
906 |
-
|
907 |
-
#: ../admin/social_login.php:50 ../admin/social_sharing.php:222
|
908 |
-
#: ../admin/social_sharing.php:440
|
909 |
-
msgid "Select providers"
|
910 |
-
msgstr "Seleccionar proveedores"
|
911 |
|
912 |
-
#: ../admin/
|
913 |
-
#: ../admin/
|
914 |
-
msgid "Facebook"
|
915 |
-
msgstr ""
|
916 |
|
917 |
-
#: ../admin/
|
918 |
-
|
919 |
-
msgid "
|
920 |
-
msgstr ""
|
921 |
|
922 |
-
#: ../admin/
|
923 |
-
|
924 |
-
|
925 |
-
msgstr ""
|
926 |
|
927 |
-
#: ../admin/
|
928 |
-
|
929 |
-
|
930 |
-
msgstr ""
|
931 |
|
932 |
-
#: ../admin/
|
933 |
-
|
934 |
-
msgid "
|
935 |
-
msgstr ""
|
936 |
|
937 |
-
#: ../admin/
|
938 |
-
msgid "
|
939 |
-
msgstr ""
|
940 |
|
941 |
-
#: ../admin/
|
942 |
-
msgid "
|
943 |
-
msgstr ""
|
944 |
-
"Seleccione un proveedor de Identificación Social para habilitarse en Social "
|
945 |
-
"Login"
|
946 |
|
947 |
-
#: ../admin/
|
948 |
-
msgid "
|
949 |
-
msgstr "
|
950 |
|
951 |
-
#: ../admin/
|
952 |
-
|
953 |
-
|
954 |
-
"Required for Facebook Social Login to work. Please follow the documentation "
|
955 |
-
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Facebook App ID"
|
956 |
-
msgstr ""
|
957 |
-
"Necesario para que funcione Facebook Social Login. Por favor, siga la "
|
958 |
-
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
959 |
-
"obtener ID de App. Facebook"
|
960 |
|
961 |
-
#: ../admin/
|
962 |
-
|
963 |
-
|
964 |
-
msgstr "Clave Consumidor Twitter"
|
965 |
|
966 |
-
#: ../admin/
|
967 |
-
|
968 |
-
|
969 |
-
"Required for Twitter Social Login to work. Please follow the documentation "
|
970 |
-
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Twitter API Key"
|
971 |
-
msgstr ""
|
972 |
-
"Requerida para que funcione Twitter Social Login. Por favor, siga la "
|
973 |
-
"documentación <a href=\"%s\" target=\"_blank\"> en este enlace</a> para "
|
974 |
-
"obtener su Clave Consumidor Twitter"
|
975 |
|
976 |
-
#: ../admin/
|
977 |
#, fuzzy
|
978 |
-
msgid "
|
979 |
-
msgstr "
|
980 |
|
981 |
-
#: ../admin/
|
982 |
-
|
983 |
-
|
984 |
-
"Required for Twitter Social Login to work. Please follow the documentation "
|
985 |
-
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Twitter API Secret"
|
986 |
-
msgstr ""
|
987 |
-
"Requerido para que funcione Twitter Social Login. Por favor, siga la "
|
988 |
-
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
989 |
-
"obtener Twitter Secreto del Consumidor"
|
990 |
|
991 |
-
#: ../admin/
|
992 |
-
msgid "
|
993 |
-
msgstr "
|
994 |
|
995 |
-
#: ../admin/
|
996 |
-
|
997 |
-
|
998 |
-
"Required for LinkedIn Social Login to work. Please follow the documentation "
|
999 |
-
"at <a href=\"%s\" target=\"_blank\">this link</a> to get LinkedIn API Key"
|
1000 |
-
msgstr ""
|
1001 |
-
"Requerida para que funcione LinkedIn Social Login. Por favor, siga la "
|
1002 |
-
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
1003 |
-
"obtener su Clave LinkedIn API"
|
1004 |
|
1005 |
-
#: ../admin/
|
1006 |
-
msgid "
|
1007 |
-
msgstr "
|
1008 |
|
1009 |
-
#: ../admin/
|
1010 |
-
|
1011 |
-
|
1012 |
-
"Required for GooglePlus Social Login to work. Please follow the "
|
1013 |
-
"documentation at <a href=\"%s\" target=\"_blank\">this link</a> to get "
|
1014 |
-
"GooglePlus Client ID"
|
1015 |
-
msgstr ""
|
1016 |
-
"Requerida para que funcione GooglePlus Social Login. Por favor, siga la "
|
1017 |
-
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
1018 |
-
"obtener ID Cliente GooglePlus"
|
1019 |
|
1020 |
-
#: ../admin/
|
1021 |
-
msgid "
|
1022 |
-
msgstr "
|
1023 |
|
1024 |
-
#: ../admin/
|
1025 |
-
|
1026 |
-
|
1027 |
-
"Required for Vkontakte Social Login to work. Please follow the documentation "
|
1028 |
-
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Vkontakte "
|
1029 |
-
"Application ID"
|
1030 |
-
msgstr ""
|
1031 |
-
"Requerida para que funcione Vkontakte Social Login. Por favor, siga la "
|
1032 |
-
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
1033 |
-
"obtener ID de app Vkontakte"
|
1034 |
|
1035 |
-
#: ../admin/
|
1036 |
-
msgid "
|
1037 |
-
msgstr "
|
1038 |
|
1039 |
-
#: ../admin/
|
1040 |
-
|
1041 |
-
|
1042 |
-
"Required for Instagram Social Login to work. Please follow the documentation "
|
1043 |
-
"at <a href=\"%s\" target=\"_blank\">this link</a> to get Instagram Client ID"
|
1044 |
-
msgstr ""
|
1045 |
-
"Requerida para que funcione Instagram Social Login. Por favor, siga la "
|
1046 |
-
"documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para "
|
1047 |
-
"obtener ID Cliente Instagram"
|
1048 |
|
1049 |
-
#: ../admin/
|
1050 |
-
msgid "
|
1051 |
-
msgstr "
|
1052 |
|
1053 |
-
#: ../admin/
|
1054 |
-
msgid ""
|
1055 |
-
"
|
1056 |
-
"footer of your website.<br/><strong>\"wp_footer\" and \"login_footer\" hooks "
|
1057 |
-
"should be there in your Wordpress theme for this to work, if you are not "
|
1058 |
-
"sure about this, keep this option unchecked.</strong>"
|
1059 |
-
msgstr ""
|
1060 |
-
"Si está activada (recomendado), se incluirá todo el código Javascript en el "
|
1061 |
-
"pie de página de su sitio web. Nota: es posible que anule la funcionalidad "
|
1062 |
-
"del plugin si los ganchos \"\"wp_footer\"\" y \"\"login_footer\"\" no "
|
1063 |
-
"existen en su tema de Wordpress. En este caso, mantener esta opción "
|
1064 |
-
"desactivada."
|
1065 |
|
1066 |
-
#: ../admin/
|
1067 |
-
|
1068 |
-
|
|
|
1069 |
|
1070 |
-
#: ../admin/
|
1071 |
-
msgid "
|
1072 |
-
msgstr "
|
1073 |
|
1074 |
-
#: ../admin/
|
1075 |
-
|
1076 |
-
|
|
|
1077 |
|
1078 |
-
#: ../admin/
|
1079 |
-
|
1080 |
-
|
1081 |
-
"Social Login interface will get enabled at the login page of your website"
|
1082 |
-
msgstr ""
|
1083 |
-
"La interfaz Social Login se activará en su página de inicio de sesión "
|
1084 |
-
"Wordpress"
|
1085 |
|
1086 |
-
#: ../admin/
|
1087 |
-
msgid "
|
1088 |
-
msgstr "
|
1089 |
|
1090 |
-
#: ../admin/
|
1091 |
-
|
1092 |
-
|
1093 |
-
"Social Login interface will get enabled at the registration page of your "
|
1094 |
-
"website"
|
1095 |
-
msgstr ""
|
1096 |
-
"La interfaz Social Login se habilitará en su página de registro Wordpress"
|
1097 |
|
1098 |
-
#: ../admin/
|
1099 |
-
msgid "
|
1100 |
-
msgstr "
|
1101 |
|
1102 |
-
#: ../admin/
|
1103 |
-
|
1104 |
-
|
1105 |
-
msgstr ""
|
1106 |
-
"La interfaz Social Login se activará en su página de inicio de sesión "
|
1107 |
-
"Wordpress"
|
1108 |
|
1109 |
-
#: ../admin/
|
1110 |
-
msgid "
|
1111 |
-
msgstr ""
|
1112 |
-
"Auto-aprobar los comentarios realizados por los usuarios Social Iniciar "
|
1113 |
-
"sesión"
|
1114 |
|
1115 |
-
#: ../admin/
|
1116 |
-
msgid ""
|
1117 |
-
"
|
1118 |
-
"user, comment will get approved immediately without keeping in moderation."
|
1119 |
-
msgstr ""
|
1120 |
-
"Si esta opción está activada, y WordPress comentario es hecho por Social "
|
1121 |
-
"Login usuario, comentario será aprobado inmediatamente sin tener en "
|
1122 |
-
"moderación."
|
1123 |
|
1124 |
-
#: ../admin/
|
1125 |
-
msgid "
|
1126 |
-
msgstr "
|
1127 |
|
1128 |
-
#: ../admin/
|
1129 |
-
msgid "
|
1130 |
-
msgstr "
|
1131 |
|
1132 |
-
#: ../admin/
|
1133 |
-
msgid ""
|
1134 |
-
|
1135 |
-
"avatar"
|
1136 |
-
msgstr ""
|
1137 |
-
"Imágenes de Perfil Social del usuario registrado aparecerán como avatar del "
|
1138 |
-
"perfil"
|
1139 |
|
1140 |
-
#: ../admin/
|
1141 |
-
msgid "
|
1142 |
-
msgstr "
|
1143 |
|
1144 |
-
#: ../admin/
|
1145 |
-
msgid ""
|
1146 |
-
"
|
1147 |
-
"login, user will be asked to provide his/her email address. Otherwise, a "
|
1148 |
-
"dummy email will be generated"
|
1149 |
-
msgstr ""
|
1150 |
-
"Si lo habilita y el proveedor de Identificación Social no proporciona "
|
1151 |
-
"dirección de correo electrónico del usuario al iniciar sesión, se le pedirá "
|
1152 |
-
"al usuario proporcionar su dirección de correo electrónico De lo contrario, "
|
1153 |
-
"un correo electrónico ficticio, se generará"
|
1154 |
|
1155 |
-
#: ../admin/
|
1156 |
-
msgid "
|
1157 |
-
msgstr "
|
1158 |
|
1159 |
-
#: ../admin/
|
1160 |
-
msgid ""
|
1161 |
-
|
1162 |
-
"Login, regarding his/her login credentials (username-password to be able to "
|
1163 |
-
"login via traditional login form)"
|
1164 |
-
msgstr ""
|
1165 |
-
"Si está habilitada, un correo electrónico será enviado al usuario después "
|
1166 |
-
"del registro a través de Social Login, con respecto a su / sus credenciales "
|
1167 |
-
"de inicio de sesión (nombre de usuario-contraseña para poder ingresar a "
|
1168 |
-
"través del formulario de inicio de sesión tradicional)"
|
1169 |
|
1170 |
-
#: ../admin/
|
1171 |
-
msgid "
|
1172 |
-
msgstr "
|
1173 |
|
1174 |
-
#: ../admin/
|
1175 |
-
msgid "
|
1176 |
-
msgstr "
|
1177 |
|
1178 |
-
#: ../admin/
|
1179 |
-
msgid "
|
1180 |
-
msgstr "
|
1181 |
|
1182 |
-
#: ../admin/
|
1183 |
-
msgid "
|
1184 |
-
msgstr "
|
1185 |
|
1186 |
-
#: ../admin/
|
1187 |
-
|
1188 |
-
|
1189 |
-
"
|
1190 |
|
1191 |
-
#: ../admin/
|
1192 |
-
msgid "
|
1193 |
-
msgstr "
|
1194 |
|
1195 |
-
#: ../admin/
|
1196 |
-
msgid ""
|
1197 |
-
"User will be redirected to the selected page after registration (first "
|
1198 |
-
"Social Login) through Social Login"
|
1199 |
msgstr ""
|
1200 |
-
"Usuario será redirigido a la página seleccionada después de Registrarse "
|
1201 |
-
"(primero Ingresa Social) a través de Social Login"
|
1202 |
|
1203 |
-
#: ../admin/
|
1204 |
-
|
1205 |
-
|
|
|
1206 |
|
1207 |
-
#: ../admin/
|
1208 |
-
|
1209 |
-
|
|
|
1210 |
|
1211 |
-
#: ../admin/
|
1212 |
-
|
1213 |
-
"
|
1214 |
-
"
|
1215 |
-
msgstr ""
|
1216 |
-
"Este texto se mostrará en el correo electrónico popup necesario. Dejar en "
|
1217 |
-
"blanco si no es necesario."
|
1218 |
-
|
1219 |
-
#: ../admin/social_login.php:478
|
1220 |
-
msgid "Error message for 'Email required' popup"
|
1221 |
-
msgstr ""
|
1222 |
-
"Mensaje de error para ventana emergente de \"\"Correo electrónico requerido'"
|
1223 |
-
|
1224 |
-
#: ../admin/social_login.php:488
|
1225 |
-
msgid ""
|
1226 |
-
"This message will be displayed to user if it provides invalid or already "
|
1227 |
-
"registered email"
|
1228 |
-
msgstr ""
|
1229 |
-
"Este mensaje se mostrará al usuario si proporciona correo electrónico no "
|
1230 |
-
"válido o ya registrado"
|
1231 |
-
|
1232 |
-
#: ../admin/social_login.php:497
|
1233 |
-
msgid "Email popup height"
|
1234 |
-
msgstr "email altura popup"
|
1235 |
-
|
1236 |
-
#: ../admin/social_login.php:507
|
1237 |
-
msgid ""
|
1238 |
-
"If you are seeing vertical scrollbar in the \"Email required\" popup, you "
|
1239 |
-
"can increase the height of popup by specifying in this option. Leave empty "
|
1240 |
-
"for default."
|
1241 |
-
msgstr ""
|
1242 |
-
"Si usted está viendo la barra de desplazamiento vertical en el \"Correo "
|
1243 |
-
"electrónico requerido\" emergente, puede aumentar la altura del elemento "
|
1244 |
-
"emergente mediante la especificación de esta opción. Dejar en blanco para el "
|
1245 |
-
"defecto."
|
1246 |
-
|
1247 |
-
#: ../admin/social_login.php:515
|
1248 |
-
msgid "Enable email verification"
|
1249 |
-
msgstr "Habilitar verificación de correo electrónico"
|
1250 |
-
|
1251 |
-
#: ../admin/social_login.php:525
|
1252 |
-
msgid ""
|
1253 |
-
"If enabled, email provided by the user will be verified by sending a "
|
1254 |
-
"confirmation link to that email. User would not be able to login without "
|
1255 |
-
"verifying his/her email"
|
1256 |
-
msgstr ""
|
1257 |
-
"Si está activado, el correo electrónico proporcionado por el usuario se "
|
1258 |
-
"verificará mediante el envío de un enlace de confirmación a ese correo "
|
1259 |
-
"electrónico. El usuario no podrá iniciar sesión sin verificar su email"
|
1260 |
-
|
1261 |
-
#: ../admin/social_login.php:541
|
1262 |
-
msgid ""
|
1263 |
-
"Use <strong>[TheChamp-Login]</strong> Shortcode in the content of required "
|
1264 |
-
"page/post where you want to display Social Login interface."
|
1265 |
-
msgstr ""
|
1266 |
-
"Utilice <strong> [TheChamp-Login] </ strong> Código corto en el contenido de "
|
1267 |
-
"la página requerida / post en la que desea mostrar la interfaz Login Social."
|
1268 |
|
1269 |
-
#: ../admin/
|
1270 |
#, fuzzy
|
1271 |
-
msgid ""
|
1272 |
-
"
|
1273 |
-
"Social Login interface."
|
1274 |
-
msgstr ""
|
1275 |
-
"Usted puede utilizar el atributo \"style\" en el Código corto al estilo de "
|
1276 |
-
"la interfaz Uso compartido sociales prestados."
|
1277 |
|
1278 |
-
#: ../admin/
|
1279 |
-
|
1280 |
-
"
|
1281 |
-
"
|
1282 |
-
"the final code looks like following"
|
1283 |
-
msgstr ""
|
1284 |
-
"Reemplace <strong>SHORTCODE</ strong> en el código anterior con el código "
|
1285 |
-
"corto requerido como <strong>[TheChamp-Login style=\"background-color: #000;"
|
1286 |
-
"\"]</ strong>, por lo que el código final se parece a siguiente"
|
1287 |
|
1288 |
-
#: ../admin/
|
1289 |
-
msgid ""
|
1290 |
-
"
|
1291 |
-
"strong> section in the left pan and drag <strong>Super Socializer - Login</"
|
1292 |
-
"strong> widget in the required area."
|
1293 |
-
msgstr ""
|
1294 |
-
"Usted puede navegar a la Apariencia <strong> </ strong >> <strong> "
|
1295 |
-
"Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper "
|
1296 |
-
"Socializer - Login </ strong> de widget en el área requerida."
|
1297 |
|
1298 |
-
#: ../admin/social_sharing.php:
|
1299 |
msgid "Social Sharing"
|
1300 |
msgstr "Social Sharing"
|
1301 |
|
1302 |
-
#: ../admin/social_sharing.php:
|
1303 |
msgid "Troubleshooter"
|
1304 |
msgstr "Solucionador de problemas"
|
1305 |
|
1306 |
-
#: ../admin/social_sharing.php:
|
1307 |
-
msgid "FAQ"
|
1308 |
-
msgstr ""
|
1309 |
-
|
1310 |
-
#: ../admin/social_sharing.php:31
|
1311 |
msgid "Enable Social Sharing"
|
1312 |
msgstr "Habilitar Social Sharing"
|
1313 |
|
1314 |
-
#: ../admin/social_sharing.php:
|
1315 |
-
msgid ""
|
1316 |
-
"
|
1317 |
-
"Sharing functionality"
|
1318 |
-
msgstr ""
|
1319 |
-
"Control maestro para compartir en redes sociales. Esto debe estar marcado "
|
1320 |
-
"para habilitar la funcionalidad de Social Sharing "
|
1321 |
|
1322 |
-
#: ../admin/social_sharing.php:
|
1323 |
msgid "Delete all the options on plugin deletion"
|
1324 |
msgstr "Eliminar todas las opciones de plugin de eliminación"
|
1325 |
|
1326 |
-
#: ../admin/social_sharing.php:
|
1327 |
-
msgid ""
|
1328 |
-
"
|
1329 |
-
"uninstalled and you will need to reconfigure the options when you install "
|
1330 |
-
"the plugin next time."
|
1331 |
-
msgstr ""
|
1332 |
-
"Si se activa, las opciones del plugin será borrado cuando se elimina el "
|
1333 |
-
"plugin / desinstalado y tendrá que volver a configurar las opciones al "
|
1334 |
-
"instalar el plugin próxima vez."
|
1335 |
|
1336 |
-
#: ../admin/social_sharing.php:
|
1337 |
#, fuzzy
|
1338 |
-
msgid ""
|
1339 |
-
"<strong>
|
1340 |
-
"page/post and check the options at the bottom in <strong>\"Super Socializer"
|
1341 |
-
"\"</strong> section"
|
1342 |
-
msgstr ""
|
1343 |
-
"<strong> Nota: </ strong> Para deshabilitar el uso compartido en concreto la "
|
1344 |
-
"página / post, edite la página / post y comprobar el <strong> \"Desactivar "
|
1345 |
-
"Intercambio Social en esta página \" </ strong> la opción en la parte "
|
1346 |
-
"inferior de <strong > \"Super Socializer \" </ strong>"
|
1347 |
|
1348 |
-
#: ../admin/social_sharing.php:
|
1349 |
msgid "Enable bit.ly url shortener for sharing"
|
1350 |
msgstr "Habilitar acortador de url bit.ly para compartir"
|
1351 |
|
1352 |
-
#: ../admin/social_sharing.php:
|
1353 |
msgid "Twitter username in sharing"
|
1354 |
msgstr "Twitter nombre de usuario en el intercambio"
|
1355 |
|
1356 |
-
#: ../admin/social_sharing.php:
|
1357 |
-
msgid ""
|
1358 |
-
"
|
1359 |
-
"@USERNAME\". Leave empty if you do not want any username in the content "
|
1360 |
-
"being shared."
|
1361 |
-
msgstr ""
|
1362 |
-
"Nombre de usuario proporcionado se añadirá después del contenido que se "
|
1363 |
-
"comparte como \"a travésUSERNAME\". Dejar vacío si no desea que cualquier "
|
1364 |
-
"nombre de usuario en el contenido que se comparte."
|
1365 |
|
1366 |
-
#: ../admin/social_sharing.php:
|
1367 |
msgid "Horizontal Sharing Interface Options"
|
1368 |
msgstr "Horizontales Opciones para compartir la interfaz de"
|
1369 |
|
1370 |
-
#: ../admin/social_sharing.php:
|
1371 |
msgid "Enable horizontal sharing interface"
|
1372 |
msgstr "Habilitar interfaz de intercambio horizontal"
|
1373 |
|
1374 |
-
#: ../admin/social_sharing.php:
|
1375 |
msgid "Master control to enable horizontal sharing"
|
1376 |
msgstr "Control maestro para permitir el intercambio horizontal"
|
1377 |
|
1378 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
|
|
|
|
1379 |
msgid "The text to display above the sharing interface"
|
1380 |
msgstr "El texto que se muestra por encima de la interfaz compartida "
|
1381 |
|
1382 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1383 |
msgid "Print"
|
1384 |
msgstr ""
|
1385 |
|
1386 |
-
#: ../admin/social_sharing.php:
|
|
|
1387 |
msgid "Email"
|
1388 |
msgstr ""
|
1389 |
|
1390 |
-
#: ../admin/social_sharing.php:
|
|
|
1391 |
msgid "Yahoo"
|
1392 |
msgstr ""
|
1393 |
|
1394 |
-
#: ../admin/social_sharing.php:
|
|
|
1395 |
msgid "Reddit"
|
1396 |
msgstr ""
|
1397 |
|
1398 |
-
#: ../admin/social_sharing.php:
|
|
|
1399 |
msgid "Digg"
|
1400 |
msgstr ""
|
1401 |
|
1402 |
-
#: ../admin/social_sharing.php:
|
|
|
1403 |
msgid "Delicious"
|
1404 |
msgstr ""
|
1405 |
|
1406 |
-
#: ../admin/social_sharing.php:
|
|
|
1407 |
msgid "StumbleUpon"
|
1408 |
msgstr ""
|
1409 |
|
1410 |
-
#: ../admin/social_sharing.php:
|
|
|
1411 |
msgid "Float it"
|
1412 |
msgstr ""
|
1413 |
|
1414 |
-
#: ../admin/social_sharing.php:
|
|
|
1415 |
msgid "Tumblr"
|
1416 |
msgstr ""
|
1417 |
|
1418 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1419 |
msgid "Pinterest"
|
1420 |
msgstr ""
|
1421 |
|
1422 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1423 |
msgid "Select the providers for sharing interface"
|
1424 |
msgstr "Seleccione los proveedores para compartir la interfaz"
|
1425 |
|
1426 |
-
#: ../admin/social_sharing.php:
|
|
|
1427 |
msgid "Rearrange icons"
|
1428 |
msgstr "Reorganizar iconos"
|
1429 |
|
1430 |
-
#: ../admin/social_sharing.php:
|
|
|
1431 |
msgid "Drag the icons to rearrange in desired order"
|
1432 |
msgstr "Arrastre los iconos para reorganizar estos con el fin deseado "
|
1433 |
|
1434 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
1435 |
msgid "Specify position of the sharing interface with respect to the content"
|
1436 |
-
msgstr ""
|
1437 |
-
"Especificar la posición de la interfaz compartir con respecto al contenido"
|
1438 |
|
1439 |
-
#: ../admin/social_sharing.php:
|
|
|
1440 |
msgid "Sharing location"
|
1441 |
msgstr "Ubicación de uso compartido"
|
1442 |
|
1443 |
-
#: ../admin/social_sharing.php:
|
1444 |
msgid "Specify the pages where you want to enable Sharing interface"
|
1445 |
-
msgstr ""
|
1446 |
-
"Especifique las páginas en las que desee habilitar la interfaz Uso compartido"
|
1447 |
|
1448 |
-
#: ../admin/social_sharing.php:
|
|
|
1449 |
msgid "Show share counts"
|
1450 |
msgstr "conteos muestran acciones"
|
1451 |
|
1452 |
-
#: ../admin/social_sharing.php:
|
|
|
1453 |
msgid "If enabled, share counts are displayed above sharing icons."
|
1454 |
-
msgstr ""
|
1455 |
-
"Si está habilitado, el recuento de acciones se muestran por encima de los "
|
1456 |
-
"iconos para compartir."
|
1457 |
|
1458 |
-
#: ../admin/social_sharing.php:
|
1459 |
msgid "Vertical (Floating) Sharing Interface Options"
|
1460 |
msgstr "Vertical (flotante) Opciones de interfaz compartir"
|
1461 |
|
1462 |
-
#: ../admin/social_sharing.php:
|
1463 |
msgid "Enable vertical (floating) sharing interface"
|
1464 |
msgstr "Habilitar vertical (flotante) interfaz compartida"
|
1465 |
|
1466 |
-
#: ../admin/social_sharing.php:
|
1467 |
msgid "Master control to enable vertical (floating) sharing widget"
|
1468 |
-
msgstr ""
|
1469 |
-
"Control maestro para permitir vertical (flotante) widget de intercambio"
|
1470 |
|
1471 |
-
#: ../admin/social_sharing.php:
|
1472 |
-
msgid ""
|
1473 |
-
"
|
1474 |
-
"vertical sharing bar. Leave empty for transparent. You can get the hex code "
|
1475 |
-
"of the required color from <a href=\"http://www.colorpicker.com/\" target="
|
1476 |
-
"\"_blank\">this link</a>"
|
1477 |
-
msgstr ""
|
1478 |
-
"Especifique el color o el código hexadecimal (ejemplo # cc78e0) para el "
|
1479 |
-
"fondo de la barra de compartir vertical. Dejar vacío para transparente. "
|
1480 |
-
"Puede obtener el código hexadecimal del color deseado de <a href=\"http://"
|
1481 |
-
"www.colorpicker.com/\" target=\"_blank\"> este enlace </a>"
|
1482 |
|
1483 |
-
#: ../admin/social_sharing.php:
|
1484 |
-
|
1485 |
-
|
1486 |
-
msgstr "Habilitar interfaz de intercambio horizontal"
|
1487 |
-
|
1488 |
-
#: ../admin/social_sharing.php:612
|
1489 |
-
msgid ""
|
1490 |
-
"Specify a number. Increase in number will shift sharing interface towards "
|
1491 |
-
"right and decrease will shift it towards left."
|
1492 |
-
msgstr ""
|
1493 |
-
"Especifique un número. Aumento del número cambiará interfaz compartida hacia "
|
1494 |
-
"la derecha y la disminución se desplazará hacia la izquierda."
|
1495 |
|
1496 |
-
#: ../admin/social_sharing.php:
|
1497 |
#, fuzzy
|
1498 |
-
msgid ""
|
1499 |
-
"
|
1500 |
-
"left and decrease will shift it towards right."
|
1501 |
-
msgstr ""
|
1502 |
-
"Especifique un número. Aumento del número cambiará interfaz compartida hacia "
|
1503 |
-
"la derecha y la disminución se desplazará hacia la izquierda."
|
1504 |
|
1505 |
-
#: ../admin/social_sharing.php:
|
1506 |
-
msgid ""
|
1507 |
-
"
|
1508 |
-
"bottom and decrease will shift it towards top."
|
1509 |
-
msgstr ""
|
1510 |
-
"Especifique un número. Aumento del número cambiará compartir la interfaz "
|
1511 |
-
"hacia la parte inferior y el descenso se desplazará hacia la parte superior."
|
1512 |
|
1513 |
-
#: ../admin/social_sharing.php:
|
1514 |
msgid "Specify the pages where you want to enable vertical Sharing interface"
|
1515 |
-
msgstr ""
|
1516 |
-
"Especifique las páginas en las que desee habilitar la interfaz Uso "
|
1517 |
-
"compartido verticales"
|
1518 |
|
1519 |
-
#: ../admin/social_sharing.php:
|
1520 |
-
msgid ""
|
1521 |
-
"
|
1522 |
-
"required page/post where you want to display Social Sharing interface."
|
1523 |
-
msgstr ""
|
1524 |
-
"Usted puede utilizar <strong> [TheChamp-Sharing] </ strong> Código corto en "
|
1525 |
-
"el contenido de la página requerida / post en el que desea mostrar la "
|
1526 |
-
"interfaz Uso compartido Social."
|
1527 |
|
1528 |
-
#: ../admin/social_sharing.php:
|
1529 |
-
msgid ""
|
1530 |
-
"
|
1531 |
-
"interface"
|
1532 |
-
msgstr ""
|
1533 |
-
"Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso "
|
1534 |
-
"compartido sociales prestados"
|
1535 |
|
1536 |
-
#: ../admin/social_sharing.php:
|
1537 |
-
|
1538 |
-
"Use <strong>type</strong> attribute to specify the type (\"
|
1539 |
-
"\"
|
1540 |
-
msgstr ""
|
1541 |
-
"Utilice <strong>type</ strong> atributo para especificar el tipo "
|
1542 |
-
"(\"horizontal \" o \"vertical \") de la interfaz Uso compartido Social. Tipo "
|
1543 |
-
"por defecto es \"horizontal \"."
|
1544 |
|
1545 |
-
#: ../admin/social_sharing.php:
|
1546 |
-
|
1547 |
-
"Use <strong>
|
1548 |
-
"
|
1549 |
-
msgstr ""
|
1550 |
-
"Uso <strong> left</strong> atributo para especificar el desplazamiento "
|
1551 |
-
"izquierda (distancia formar el lado izquierdo de la pantalla) de interfaz de "
|
1552 |
-
"uso compartido Social."
|
1553 |
|
1554 |
-
#: ../admin/social_sharing.php:
|
1555 |
-
|
1556 |
-
"
|
1557 |
-
"
|
1558 |
-
msgstr ""
|
1559 |
-
"Utilice <strong>top</strong> atributo para especificar el desplazamiento "
|
1560 |
-
"superior (distancia forman la parte superior de la pantalla) de la interfaz "
|
1561 |
-
"Uso compartido Social."
|
1562 |
|
1563 |
-
#: ../admin/social_sharing.php:
|
1564 |
-
msgid ""
|
1565 |
-
"
|
1566 |
-
"like <strong>[TheChamp-Sharing style=\"background-color:#000;\"]</strong>, "
|
1567 |
-
"so the final code looks like following"
|
1568 |
-
msgstr ""
|
1569 |
-
"Reemplace <strong>SHORTCODE</ strong> en el código anterior con el código "
|
1570 |
-
"corto requerido como <strong>[TheChamp-Sharing style=\"background-color: "
|
1571 |
-
"#000;\"]</ strong>, por lo que el código final se parece a siguiente"
|
1572 |
|
1573 |
-
#: ../admin/social_sharing.php:
|
1574 |
-
|
1575 |
-
"
|
1576 |
-
"
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
"
|
1581 |
-
"Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper "
|
1582 |
-
"Socializer - Sharing (Horizontal Widget) </ strong> y <strong> Súper "
|
1583 |
-
"Socializer - Sharing (Vertical Floating Widget) </ strong> widgets en el "
|
1584 |
-
"área requerida."
|
1585 |
|
1586 |
-
#: ../admin/social_sharing.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1587 |
msgid "Facebook Sharing Troubleshooter"
|
1588 |
msgstr "Facebook Sharing Solucionador de problemas"
|
1589 |
|
1590 |
-
#: ../admin/social_sharing.php:
|
1591 |
-
msgid ""
|
1592 |
-
"
|
1593 |
-
|
1594 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1595 |
msgstr ""
|
1596 |
-
"Si Facebook compartir no está funcionando bien, haga clic en el siguiente "
|
1597 |
-
"enlace e introduzca la url problemático (donde compartir en Facebook no "
|
1598 |
-
"funciona correctamente) de su sitio web en el campo de texto:"
|
1599 |
|
1600 |
-
#: ../admin/
|
1601 |
-
msgid ""
|
1602 |
-
"
|
1603 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1604 |
msgstr ""
|
1605 |
-
"¿Cómo puedo mostrar comparten cargos de mi sitio web y no de páginas "
|
1606 |
-
"individuales / mensajes?"
|
1607 |
|
1608 |
-
#: ../admin/
|
1609 |
-
|
1610 |
-
"
|
1611 |
-
"
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
|
|
|
|
|
|
|
|
|
|
1615 |
msgstr ""
|
1616 |
-
"Vaya a Apariencia> Widgets de sección en el panel de administración de su "
|
1617 |
-
"sitio web y activar - Widget \"Super Socializer Sharing\" en el área "
|
1618 |
-
"deseada. Esto mostrará los recuentos de compartición de la página "
|
1619 |
-
"principal / índice de su sitio web. No te olvides de encender el reparto "
|
1620 |
-
"cuenta con de página \"Compartir redes sociales \" en el panel de "
|
1621 |
-
"administración."
|
1622 |
|
1623 |
-
#: ../
|
1624 |
-
|
1625 |
-
|
|
|
1626 |
|
1627 |
-
#: ../
|
1628 |
-
msgid "
|
1629 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1630 |
|
1631 |
-
#: ../
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1632 |
msgid "Invalid request"
|
1633 |
msgstr "petición no válida"
|
1634 |
|
1635 |
-
#: ../inc/social_sharing.php:
|
1636 |
msgid "Providers not selected"
|
1637 |
msgstr "Los proveedores no seleccionados"
|
1638 |
|
1639 |
-
#: ../inc/social_sharing.php:
|
1640 |
msgid "Disable Horizontal Social Sharing on this "
|
1641 |
msgstr "Desactivar Horizontal Intercambio Social en esta"
|
1642 |
|
1643 |
-
#: ../inc/social_sharing.php:
|
1644 |
msgid "Disable Vertical Social Sharing on this "
|
1645 |
msgstr "Desactivar Vertical Intercambio Social en esta"
|
1646 |
|
1647 |
-
#: ../inc/social_sharing.php:
|
1648 |
#, fuzzy
|
1649 |
msgid "Disable Horizontal Social Counter on this "
|
1650 |
msgstr "Desactivar Horizontal Intercambio Social en esta"
|
1651 |
|
1652 |
-
#: ../inc/social_sharing.php:
|
1653 |
#, fuzzy
|
1654 |
msgid "Disable Vertical Social Counter on this "
|
1655 |
msgstr "Desactivar Vertical Intercambio Social en esta"
|
1656 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1657 |
#: ../inc/widget.php:11
|
1658 |
msgid "Super Socializer - Login"
|
1659 |
msgstr "Super Socializer - Login"
|
1660 |
|
1661 |
#: ../inc/widget.php:13
|
1662 |
-
msgid ""
|
1663 |
-
"
|
1664 |
-
"Provider, such as Facebook, Twitter, Google+, LinkedIn"
|
1665 |
-
msgstr ""
|
1666 |
-
"Permita que sus usuarios del website se conecten/registren usando su "
|
1667 |
-
"proveedor de ID Social favorito, tales como Facebook, Twitter, Google+, "
|
1668 |
-
"LinkedIn"
|
1669 |
|
1670 |
#: ../inc/widget.php:46
|
1671 |
msgid "Log Out"
|
1672 |
msgstr "Cerrar sesión"
|
1673 |
|
1674 |
-
#: ../inc/widget.php:77
|
|
|
|
|
1675 |
msgid "Title:"
|
1676 |
msgstr "Titulo:"
|
1677 |
|
1678 |
-
#: ../inc/widget.php:79
|
|
|
|
|
1679 |
msgid "Before widget content:"
|
1680 |
msgstr " Antes del contenido del widget:"
|
1681 |
|
1682 |
-
#: ../inc/widget.php:81
|
|
|
|
|
1683 |
msgid "After widget content:"
|
1684 |
msgstr "Después del contenido del widget:"
|
1685 |
|
1686 |
-
#: ../inc/widget.php:84
|
1687 |
-
#: ../inc/widget.php:
|
|
|
|
|
|
|
1688 |
msgid "Hide for logged in users:"
|
1689 |
msgstr "Ocultar para los usuarios registrados:"
|
1690 |
|
1691 |
#: ../inc/widget.php:103
|
1692 |
#, fuzzy
|
1693 |
-
msgid ""
|
1694 |
-
"Horizontal
|
1695 |
-
"Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
|
1696 |
-
msgstr ""
|
1697 |
-
"Widget Horizontal. Deje que sus usuarios del website compartan contenidos en "
|
1698 |
-
"las redes sociales populares como Facebook, Twitter, Tumblr, Google+ y "
|
1699 |
-
"muchos más "
|
1700 |
|
1701 |
-
#: ../inc/widget.php:
|
|
|
1702 |
#, fuzzy
|
1703 |
-
msgid ""
|
1704 |
-
"
|
1705 |
-
"popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
|
1706 |
-
msgstr ""
|
1707 |
-
"Widget de flotación vertical. Deje que sus usuarios del website compartan "
|
1708 |
-
"contenidos en las redes sociales populares como Facebook, Twitter, Tumblr, "
|
1709 |
-
"Google+ y muchos más "
|
1710 |
|
1711 |
-
#: ../inc/widget.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1712 |
msgid "Alignment"
|
1713 |
msgstr "Alineamiento"
|
1714 |
|
1715 |
-
#: ../inc/widget.php:
|
|
|
1716 |
#, fuzzy
|
1717 |
msgid "Left Offset"
|
1718 |
msgstr "Desplazamiento hacia la izquierda:"
|
1719 |
|
1720 |
-
#: ../inc/widget.php:
|
|
|
1721 |
#, fuzzy
|
1722 |
msgid "Right Offset"
|
1723 |
msgstr "desplazamiento izquierda"
|
1724 |
|
1725 |
-
#: ../inc/widget.php:
|
|
|
1726 |
#, fuzzy
|
1727 |
msgid "Top Offset"
|
1728 |
msgstr "Margen superior:"
|
1729 |
|
1730 |
-
#: ../inc/widget.php:
|
1731 |
#, fuzzy
|
1732 |
-
msgid ""
|
1733 |
-
"Horizontal
|
1734 |
-
"popular Social networks like Facebook, Twitter, Google+ and many more"
|
1735 |
-
msgstr ""
|
1736 |
-
"Widget Horizontal. Deje que sus usuarios del website compartan contenidos en "
|
1737 |
-
"las redes sociales populares como Facebook, Twitter, Tumblr, Google+ y "
|
1738 |
-
"muchos más "
|
1739 |
|
1740 |
-
#: ../inc/widget.php:
|
1741 |
#, fuzzy
|
1742 |
-
msgid ""
|
1743 |
-
"
|
1744 |
-
"on popular Social networks like Facebook, Twitter, Google+ and many more"
|
1745 |
-
msgstr ""
|
1746 |
-
"Widget de flotación vertical. Deje que sus usuarios del website compartan "
|
1747 |
-
"contenidos en las redes sociales populares como Facebook, Twitter, Tumblr, "
|
1748 |
-
"Google+ y muchos más "
|
1749 |
|
1750 |
-
|
1751 |
-
msgid "
|
1752 |
-
|
1753 |
-
"
|
|
|
|
|
|
|
|
|
|
|
1754 |
|
1755 |
-
|
1756 |
-
msgid "
|
1757 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1758 |
|
1759 |
-
|
1760 |
-
|
1761 |
-
msgstr "Notificación"
|
1762 |
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
"el
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1768 |
|
1769 |
#~ msgid "How can I show combined share counts?"
|
1770 |
#~ msgstr "¿Cómo muestro combinado conteos compartir?"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Super Socializer 2.8.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-12-19 21:25+0530\n"
|
6 |
+
"PO-Revision-Date: 2014-12-19 21:26+0530\n"
|
7 |
"Last-Translator: The Champ <lordofthechamps@gmail.com>\n"
|
8 |
"Language-Team: The Champ <lordofthechamps@gmail.com>\n"
|
9 |
"Language: es\n"
|
16 |
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
+
#: ../super_socializer.php:186
|
20 |
+
#, php-format
|
21 |
+
msgid "Enter exactly the following url in <strong>Website</strong> and <strong>Callback Url</strong> options in your Twitter app (see step 3 %s)"
|
22 |
+
msgstr "Introduzca exactamente la siguiente url en <strong> Website </ strong> y <strong> Callback URL </ strong> opciones en su aplicación de Twitter (ver paso 3 %s)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
#: ../super_socializer.php:189
|
25 |
+
msgid "Make sure cURL is enabled at your website server. You may need to contact the server administrator of your website to verify this"
|
26 |
+
msgstr "Asegúrese CURL está activado en tu servidor web. Puede que tenga que ponerse en contacto con el administrador del servidor de su sitio web para comprobar esto"
|
|
|
|
|
|
|
|
|
27 |
|
28 |
+
#: ../super_socializer.php:354
|
29 |
+
msgid "Please verify your email address to login."
|
30 |
+
msgstr "Verifique por favor su dirección de correo electrónico para iniciar sesión"
|
31 |
|
32 |
+
#: ../super_socializer.php:354
|
33 |
+
msgid "Your email has been verified. Now you can login to your account"
|
34 |
+
msgstr "Su email ha sido verificado. Ahora puede acceder a su cuenta"
|
|
|
35 |
|
36 |
+
#: ../super_socializer.php:358
|
37 |
+
msgid "Notification"
|
38 |
+
msgstr "Notificación"
|
39 |
|
40 |
+
#: ../super_socializer.php:377
|
41 |
+
#: ../admin/social_login.php:451
|
42 |
+
msgid "Email required"
|
43 |
+
msgstr "Requiere E-mail"
|
44 |
|
45 |
+
#: ../super_socializer.php:380
|
46 |
+
msgid "Please check your email inbox to complete the registration."
|
47 |
+
msgstr "Por favor revise su bandeja de entrada de correo electrónico para completar el registro"
|
|
|
|
|
|
|
48 |
|
49 |
+
#: ../super_socializer.php:393
|
50 |
+
msgid "Follow steps 11 and 12 at GooglePlus app configuration page, about to open"
|
51 |
+
msgstr "Siga los pasos 11 y 12 en la página de configuración de aplicación de Google Plus, a punto de abrir"
|
|
|
52 |
|
53 |
+
#: ../super_socializer.php:553
|
54 |
+
msgid "Email you entered is already registered or invalid"
|
55 |
+
msgstr "Enviar que ha introducido ya está registrado o no válido"
|
|
|
|
|
|
|
56 |
|
57 |
+
#: ../super_socializer.php:557
|
58 |
+
msgid "Please enter a valid email address. You might be required to verify it"
|
59 |
+
msgstr "Por favor, introduce una dirección de correo electrónico válida. Es posible que tenga para verificarla"
|
|
|
60 |
|
61 |
+
#: ../helper.php:7
|
62 |
+
msgid "Options saved successfully"
|
63 |
+
msgstr "Opciones guardadas correctamente"
|
64 |
|
65 |
+
#: ../helper.php:189
|
66 |
+
msgid "Settings"
|
67 |
+
msgstr "Configuración"
|
68 |
|
69 |
+
#: ../helper.php:492
|
70 |
#, fuzzy
|
71 |
+
msgid "Account linked successfully"
|
72 |
+
msgstr "Opciones guardadas correctamente"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
+
#: ../helper.php:498
|
75 |
+
msgid "Account already exists or linked"
|
76 |
+
msgstr "Cuenta ya existe o vinculado"
|
77 |
|
78 |
+
#: ../helper.php:511
|
79 |
#, fuzzy
|
80 |
+
msgid "You are already connected with"
|
81 |
+
msgstr "Usted está listo para Socializar su sitio web."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
+
#: ../helper.php:511
|
84 |
+
msgid "as primary social network"
|
85 |
+
msgstr "como red social primaria"
|
|
|
|
|
|
|
|
|
86 |
|
87 |
+
#: ../helper.php:526
|
88 |
+
msgid "Link your social account to login to your account at this website"
|
89 |
+
msgstr "Vincula tu cuenta social para acceder a su cuenta en esta web"
|
90 |
|
91 |
+
#: ../helper.php:573
|
92 |
+
msgid "Currently"
|
93 |
+
msgstr "actualmente"
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
+
#: ../helper.php:573
|
96 |
+
msgid "Remove"
|
97 |
+
msgstr "quitar"
|
|
|
98 |
|
99 |
#: ../admin/help.php:4
|
100 |
msgid "About"
|
109 |
msgstr "por"
|
110 |
|
111 |
#: ../admin/help.php:7
|
112 |
+
msgid "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:"
|
113 |
+
msgstr "Soy un entusiasta de la tecnología. Me gusta jugar con los códigos y construir grandes cosas (y me gusta decir que soy - El Champ .... :)). Puede conectar conmigo (y mi próximo trabajo) a través de:"
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
#: ../admin/help.php:18
|
116 |
msgid "Plugin Demo"
|
125 |
msgstr "Soporte"
|
126 |
|
127 |
#: ../admin/help.php:28
|
128 |
+
msgid "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>."
|
129 |
+
msgstr "Si le gusta mi plugin y le resulta útil, puede enviarme un correo electrónico a lordofthechamps@gmail.com, dar Me Gusta a mis páginas Facebook y seguirme en Twitter"
|
130 |
+
|
131 |
+
#: ../admin/help.php:30
|
132 |
+
#: ../admin/help.php:33
|
133 |
+
#: ../admin/help.php:34
|
134 |
+
#: ../admin/help.php:35
|
135 |
+
#: ../admin/help.php:36
|
136 |
+
#: ../admin/help.php:37
|
|
|
|
|
137 |
msgid "Rate 5-star"
|
138 |
msgstr "Tasa de 5 estrellas"
|
139 |
|
150 |
msgstr "¿Quieres plugin de personalización?"
|
151 |
|
152 |
#: ../admin/help.php:75
|
153 |
+
msgid "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>"
|
154 |
+
msgstr "Si quieres características personalizadas en el plugin, lo que puedo hacer por usted. Simplemente envíeme un correo electrónico a lordofthechamps@gmail.com"
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
|
156 |
#: ../admin/help.php:80
|
157 |
msgid "White-Label"
|
158 |
msgstr ""
|
159 |
|
160 |
#: ../admin/help.php:82
|
161 |
+
msgid "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>"
|
162 |
+
msgstr "Quite los enlaces de crédito Programas (\"Super Socializer por The Champ \") en sólo $ 15. ¿Interesado? Reciba por email: lordofthechamps@gmail.com"
|
163 |
+
|
164 |
+
#: ../admin/social_counter.php:11
|
165 |
+
#: ../admin/social_counter.php:19
|
166 |
+
#: ../admin/social_sharing.php:14
|
167 |
+
#: ../admin/social_sharing.php:24
|
168 |
+
#: ../admin/social_login.php:9
|
169 |
+
#: ../admin/social_login.php:17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
msgid "Basic Configuration"
|
171 |
msgstr "Configuración Básica"
|
172 |
|
173 |
+
#: ../admin/social_counter.php:12
|
174 |
#, fuzzy
|
175 |
msgid "Social Counter"
|
176 |
msgstr "Social Login"
|
177 |
|
178 |
+
#: ../admin/social_counter.php:13
|
179 |
+
#: ../admin/social_sharing.php:16
|
180 |
+
#: ../admin/social_login.php:11
|
181 |
msgid "Shortcode & Widget"
|
182 |
msgstr "Widgets y shortcodes"
|
183 |
|
184 |
+
#: ../admin/social_counter.php:25
|
185 |
#, fuzzy
|
186 |
msgid "Enable Social Counter"
|
187 |
msgstr "Habilitar Social Login"
|
188 |
|
189 |
+
#: ../admin/social_counter.php:35
|
190 |
#, fuzzy
|
191 |
+
msgid "Master control for Social Counter. It must be checked to enable Social Counter functionality"
|
192 |
+
msgstr "Control Maestro para Social Login. Debe comprobarse para permitir la funcionalidad de Social Login"
|
|
|
|
|
|
|
|
|
193 |
|
194 |
+
#: ../admin/social_counter.php:49
|
195 |
#, fuzzy
|
196 |
+
msgid "<strong>Note:</strong> To disable counter on particular page/post, edit that page/post and check the options at the bottom in <strong>\"Super Socializer\"</strong> section"
|
197 |
+
msgstr "<strong> Nota: </ strong> Para deshabilitar el uso compartido en concreto la página / post, edite la página / post y comprobar el <strong> \"Desactivar Intercambio Social en esta página \" </ strong> la opción en la parte inferior de <strong > \"Super Socializer \" </ strong>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
+
#: ../admin/social_counter.php:66
|
200 |
+
#: ../admin/social_sharing.php:88
|
201 |
msgid "bit.ly url shortener"
|
202 |
msgstr "bit.ly url acortador"
|
203 |
|
204 |
+
#: ../admin/social_counter.php:72
|
205 |
msgid "Enable bit.ly url shortener for tweet button"
|
206 |
msgstr "Habilitar acortador de url bit.ly para el botón de Twitter"
|
207 |
|
208 |
+
#: ../admin/social_counter.php:82
|
209 |
+
#: ../admin/social_sharing.php:104
|
210 |
#, fuzzy
|
211 |
msgid "Master control to enable bit.ly url shortening for sharing"
|
212 |
msgstr "Control maestro para permitir el intercambio horizontal"
|
213 |
|
214 |
+
#: ../admin/social_counter.php:90
|
215 |
+
#: ../admin/social_sharing.php:112
|
216 |
msgid "bit.ly username"
|
217 |
msgstr "bit.ly nombre de usuario"
|
218 |
|
219 |
+
#: ../admin/social_counter.php:100
|
220 |
+
#: ../admin/social_sharing.php:122
|
221 |
#, fuzzy, php-format
|
222 |
+
msgid "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank\">this link</a> to get bit.ly username"
|
223 |
+
msgstr "Requerido para que funcione Twitter Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener Twitter Secreto del Consumidor"
|
|
|
|
|
|
|
|
|
|
|
224 |
|
225 |
+
#: ../admin/social_counter.php:109
|
226 |
+
#: ../admin/social_sharing.php:131
|
227 |
#, fuzzy
|
228 |
msgid "bit.ly API Key"
|
229 |
msgstr "Clave Consumidor Twitter"
|
230 |
|
231 |
+
#: ../admin/social_counter.php:119
|
232 |
+
#: ../admin/social_sharing.php:141
|
233 |
#, fuzzy, php-format
|
234 |
+
msgid "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank\">this link</a> to get your API key"
|
235 |
+
msgstr "Requerida para que funcione Twitter Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\"> en este enlace</a> para obtener su Clave Consumidor Twitter"
|
236 |
+
|
237 |
+
#: ../admin/social_counter.php:129
|
238 |
+
#: ../admin/social_counter.php:135
|
239 |
+
#: ../admin/facebook.php:170
|
240 |
+
msgid "Language"
|
241 |
+
msgstr "Idioma"
|
242 |
+
|
243 |
+
#: ../admin/social_counter.php:145
|
244 |
+
#, fuzzy, php-format
|
245 |
+
msgid "Enter the code of the language you want to use to render counters. You can find the language codes at <a href=\"%s\" target=\"_blank\">this link</a>. Leave it empty for default language(English)"
|
246 |
+
msgstr "Introduzca el código del idioma que desea utilizar para mostrar los comentarios. Usted puede encontrar los códigos de idioma en <a href=\"%s\" target=\"_blank\"> este enlace </ a>. Déjelo vacío para el idioma predeterminado (Inglés)"
|
247 |
|
248 |
+
#: ../admin/social_counter.php:154
|
249 |
msgid "Twitter username in tweet button"
|
250 |
msgstr "Twitter nombre de usuario en el botón de Twitter"
|
251 |
|
252 |
+
#: ../admin/social_counter.php:160
|
253 |
+
#: ../admin/social_sharing.php:157
|
254 |
msgid "Twitter username (without @)"
|
255 |
msgstr "Twitter nombre de usuario (sin @)"
|
256 |
|
257 |
+
#: ../admin/social_counter.php:170
|
258 |
+
msgid "Provided username will be appended after the content being tweeted as \"via @USERNAME\". Leave empty if you do not want any username."
|
259 |
+
msgstr "Nombre de usuario proporcionado se añadirá después del contenido que se está tuiteó como \"a travésUSERNAME\". Dejar vacío si no desea ningún nombre de usuario."
|
|
|
|
|
|
|
|
|
|
|
260 |
|
261 |
+
#: ../admin/social_counter.php:180
|
262 |
#, fuzzy
|
263 |
msgid "Horizontal Counter Interface Options"
|
264 |
msgstr "Horizontales Opciones para compartir la interfaz de"
|
265 |
|
266 |
+
#: ../admin/social_counter.php:186
|
267 |
#, fuzzy
|
268 |
msgid "Enable horizontal counter interface"
|
269 |
msgstr "Habilitar interfaz de intercambio horizontal"
|
270 |
|
271 |
+
#: ../admin/social_counter.php:196
|
272 |
#, fuzzy
|
273 |
msgid "Master control to enable horizontal counter"
|
274 |
msgstr "Control maestro para permitir el intercambio horizontal"
|
275 |
|
276 |
+
#: ../admin/social_counter.php:206
|
277 |
+
#: ../admin/social_counter.php:419
|
278 |
+
#: ../admin/social_sharing.php:203
|
279 |
+
#: ../admin/social_sharing.php:510
|
280 |
+
msgid "Target Url"
|
281 |
+
msgstr "Target Url"
|
282 |
+
|
283 |
+
#: ../admin/social_counter.php:210
|
284 |
+
#: ../admin/social_counter.php:423
|
285 |
+
#: ../admin/social_sharing.php:207
|
286 |
+
#: ../admin/social_sharing.php:514
|
287 |
+
msgid "Url of the webpage where icons are located (default)"
|
288 |
+
msgstr "Url de la página web donde se encuentran los iconos (por defecto)"
|
289 |
+
|
290 |
+
#: ../admin/social_counter.php:212
|
291 |
+
#: ../admin/social_counter.php:425
|
292 |
+
#: ../admin/social_sharing.php:209
|
293 |
+
#: ../admin/social_sharing.php:516
|
294 |
+
msgid "Url of the homepage of your website"
|
295 |
+
msgstr "Url de la página principal de su sitio web"
|
296 |
+
|
297 |
+
#: ../admin/social_counter.php:214
|
298 |
+
#: ../admin/social_counter.php:427
|
299 |
+
#: ../admin/social_sharing.php:211
|
300 |
+
#: ../admin/social_sharing.php:518
|
301 |
+
#, fuzzy
|
302 |
+
msgid "Custom url"
|
303 |
+
msgstr "Url personalizada"
|
304 |
+
|
305 |
+
#: ../admin/social_counter.php:221
|
306 |
+
#: ../admin/social_counter.php:434
|
307 |
+
msgid "Url to like/share/tweet and display like/share/tweet counts"
|
308 |
+
msgstr "Url gustarle/share/tweet y pantalla como conteos/share/pío"
|
309 |
+
|
310 |
+
#: ../admin/social_counter.php:229
|
311 |
+
#: ../admin/social_sharing.php:226
|
312 |
+
#: ../admin/social_login.php:314
|
313 |
+
msgid "Title"
|
314 |
+
msgstr "Titulo"
|
315 |
+
|
316 |
+
#: ../admin/social_counter.php:239
|
317 |
#, fuzzy
|
318 |
msgid "The text to display above the counter interface"
|
319 |
msgstr "El texto que se muestra por encima de la interfaz compartida "
|
320 |
|
321 |
+
#: ../admin/social_counter.php:247
|
322 |
+
#: ../admin/social_counter.php:442
|
323 |
#, fuzzy
|
324 |
msgid "Select and rearrange providers"
|
325 |
msgstr "Seleccionar proveedores"
|
326 |
|
327 |
+
#: ../admin/social_counter.php:291
|
328 |
+
#: ../admin/social_counter.php:485
|
329 |
#, fuzzy
|
330 |
msgid "Select the providers for counter interface. Drag them to rearrange."
|
331 |
msgstr "Seleccione los proveedores para compartir la interfaz"
|
332 |
|
333 |
+
#: ../admin/social_counter.php:299
|
334 |
+
#: ../admin/social_counter.php:511
|
335 |
+
#: ../admin/social_sharing.php:371
|
336 |
+
#: ../admin/social_sharing.php:678
|
337 |
+
#, fuzzy
|
338 |
+
msgid "Horizontal alignment"
|
339 |
+
msgstr "Horizontales Opciones para compartir la interfaz de"
|
340 |
+
|
341 |
+
#: ../admin/social_counter.php:303
|
342 |
+
#: ../admin/social_counter.php:515
|
343 |
+
#: ../admin/social_sharing.php:375
|
344 |
+
#: ../admin/social_sharing.php:682
|
345 |
+
msgid "Left"
|
346 |
+
msgstr "izquierda"
|
347 |
+
|
348 |
+
#: ../admin/social_counter.php:304
|
349 |
+
#: ../admin/social_sharing.php:376
|
350 |
+
msgid "Center"
|
351 |
+
msgstr "centro"
|
352 |
+
|
353 |
+
#: ../admin/social_counter.php:305
|
354 |
+
#: ../admin/social_counter.php:516
|
355 |
+
#: ../admin/social_sharing.php:377
|
356 |
+
#: ../admin/social_sharing.php:683
|
357 |
+
#, fuzzy
|
358 |
+
msgid "Right"
|
359 |
+
msgstr "Claro"
|
360 |
+
|
361 |
+
#: ../admin/social_counter.php:313
|
362 |
+
#: ../admin/social_counter.php:524
|
363 |
+
#, fuzzy
|
364 |
+
msgid "Horizontal alignment of the counter interface"
|
365 |
+
msgstr "Habilitar interfaz de intercambio horizontal"
|
366 |
+
|
367 |
+
#: ../admin/social_counter.php:321
|
368 |
+
#: ../admin/social_sharing.php:393
|
369 |
msgid "Position with respect to content"
|
370 |
msgstr "Posición con respecto al contenido"
|
371 |
|
372 |
+
#: ../admin/social_counter.php:325
|
373 |
+
#: ../admin/social_sharing.php:397
|
374 |
msgid "Top of the content"
|
375 |
msgstr "Parte superior del contenido"
|
376 |
|
377 |
+
#: ../admin/social_counter.php:327
|
378 |
+
#: ../admin/social_sharing.php:399
|
379 |
msgid "Bottom of the content"
|
380 |
msgstr "Parte inferior del contenido"
|
381 |
|
382 |
+
#: ../admin/social_counter.php:334
|
383 |
#, fuzzy
|
384 |
msgid "Specify position of the counter interface with respect to the content"
|
385 |
+
msgstr "Especificar la posición de la interfaz compartir con respecto al contenido"
|
|
|
386 |
|
387 |
+
#: ../admin/social_counter.php:342
|
388 |
+
#: ../admin/social_counter.php:590
|
389 |
#, fuzzy
|
390 |
msgid "Counter location"
|
391 |
msgstr "Ubicación de uso compartido"
|
392 |
|
393 |
+
#: ../admin/social_counter.php:346
|
394 |
+
#: ../admin/social_counter.php:594
|
395 |
+
#: ../admin/social_sharing.php:418
|
396 |
+
#: ../admin/social_sharing.php:761
|
397 |
+
#: ../admin/social_login.php:494
|
398 |
+
#: ../admin/social_login.php:524
|
399 |
msgid "Homepage"
|
400 |
msgstr "Página de inicio"
|
401 |
|
402 |
+
#: ../admin/social_counter.php:348
|
403 |
+
#: ../admin/social_counter.php:596
|
404 |
+
#: ../admin/social_sharing.php:420
|
405 |
+
#: ../admin/social_sharing.php:763
|
406 |
msgid "Posts"
|
407 |
msgstr "Publicaciones"
|
408 |
|
409 |
+
#: ../admin/social_counter.php:350
|
410 |
+
#: ../admin/social_counter.php:598
|
411 |
+
#: ../admin/social_sharing.php:422
|
412 |
+
#: ../admin/social_sharing.php:765
|
413 |
msgid "Pages"
|
414 |
msgstr "Páginas"
|
415 |
|
416 |
+
#: ../admin/social_counter.php:352
|
417 |
+
#: ../admin/social_counter.php:600
|
418 |
+
#: ../admin/social_sharing.php:424
|
419 |
+
#: ../admin/social_sharing.php:767
|
420 |
msgid "Excerpts"
|
421 |
msgstr "Extractos"
|
422 |
|
423 |
+
#: ../admin/social_counter.php:354
|
424 |
+
#: ../admin/social_counter.php:602
|
425 |
+
#: ../admin/social_sharing.php:426
|
426 |
+
#: ../admin/social_sharing.php:769
|
427 |
msgid "Category Archives"
|
428 |
msgstr "Archivos de la categoría"
|
429 |
|
430 |
+
#: ../admin/social_counter.php:360
|
431 |
+
#: ../admin/social_sharing.php:432
|
432 |
+
msgid "BuddyPress activity and groups"
|
433 |
+
msgstr "Actividad y grupos BuddyPress"
|
434 |
+
|
435 |
+
#: ../admin/social_counter.php:367
|
436 |
+
#: ../admin/social_counter.php:608
|
437 |
+
#: ../admin/social_sharing.php:439
|
438 |
+
#: ../admin/social_sharing.php:775
|
439 |
+
msgid "BBPress forum"
|
440 |
+
msgstr ""
|
441 |
+
|
442 |
+
#: ../admin/social_counter.php:370
|
443 |
+
#: ../admin/social_counter.php:611
|
444 |
+
#: ../admin/social_sharing.php:442
|
445 |
+
#: ../admin/social_sharing.php:778
|
446 |
+
msgid "BBPress topic"
|
447 |
+
msgstr ""
|
448 |
+
|
449 |
+
#: ../admin/social_counter.php:373
|
450 |
+
#: ../admin/social_sharing.php:445
|
451 |
+
msgid "BBPress reply"
|
452 |
+
msgstr ""
|
453 |
+
|
454 |
+
#: ../admin/social_counter.php:383
|
455 |
#, fuzzy
|
456 |
msgid "Specify the pages where you want to enable counter interface"
|
457 |
+
msgstr "Especifique las páginas en las que desee habilitar la interfaz Uso compartido"
|
|
|
458 |
|
459 |
+
#: ../admin/social_counter.php:393
|
460 |
#, fuzzy
|
461 |
msgid "Vertical (Floating) counter interface Options"
|
462 |
msgstr "Vertical (flotante) Opciones de interfaz compartir"
|
463 |
|
464 |
+
#: ../admin/social_counter.php:399
|
465 |
#, fuzzy
|
466 |
msgid "Enable vertical (floating) counter interface"
|
467 |
msgstr "Habilitar vertical (flotante) interfaz compartida"
|
468 |
|
469 |
+
#: ../admin/social_counter.php:409
|
470 |
#, fuzzy
|
471 |
msgid "Master control to enable vertical (floating) counter widget"
|
472 |
+
msgstr "Control maestro para permitir vertical (flotante) widget de intercambio"
|
|
|
473 |
|
474 |
+
#: ../admin/social_counter.php:493
|
475 |
+
#: ../admin/social_sharing.php:660
|
476 |
msgid "Background Color"
|
477 |
msgstr "color de fondo"
|
478 |
|
479 |
+
#: ../admin/social_counter.php:503
|
480 |
+
msgid "Specify the color or hex code (example #cc78e0) for the background of vertical counter bar. Leave empty for transparent. You can get the hex code of the required color from <a href=\"http://www.colorpicker.com/\" target=\"_blank\">this link</a>"
|
481 |
+
msgstr "Especifique el color o el código hexadecimal (ejemplo # cc78e0) para el fondo de barra de bar vertical. Dejar vacío para transparente. Puede obtener el código hexadecimal del color deseado de <a href=\"http://www.colorpicker.com/\" target=\"_blank\"> este enlace </a>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
|
483 |
+
#: ../admin/social_counter.php:533
|
484 |
+
#: ../admin/social_sharing.php:700
|
485 |
msgid "Left offset"
|
486 |
msgstr "desplazamiento izquierda"
|
487 |
|
488 |
+
#: ../admin/social_counter.php:543
|
489 |
#, fuzzy
|
490 |
+
msgid "Specify a number. Increase in number will shift counter interface towards right and decrease will shift it towards left."
|
491 |
+
msgstr "Especifique un número. Aumento del número cambiará interfaz compartida hacia la derecha y la disminución se desplazará hacia la izquierda."
|
|
|
|
|
|
|
|
|
492 |
|
493 |
+
#: ../admin/social_counter.php:553
|
494 |
+
#: ../admin/social_sharing.php:720
|
495 |
#, fuzzy
|
496 |
msgid "Right offset"
|
497 |
msgstr "desplazamiento izquierda"
|
498 |
|
499 |
+
#: ../admin/social_counter.php:563
|
500 |
#, fuzzy
|
501 |
+
msgid "Specify a number. Increase in number will shift counter interface towards left and decrease will shift it towards right."
|
502 |
+
msgstr "Especifique un número. Aumento del número cambiará interfaz compartida hacia la derecha y la disminución se desplazará hacia la izquierda."
|
|
|
|
|
|
|
|
|
503 |
|
504 |
+
#: ../admin/social_counter.php:572
|
505 |
+
#: ../admin/social_sharing.php:739
|
506 |
msgid "Top offset"
|
507 |
msgstr "superior compensar"
|
508 |
|
509 |
+
#: ../admin/social_counter.php:582
|
510 |
#, fuzzy
|
511 |
+
msgid "Specify a number. Increase in number will shift counter interface towards bottom and decrease will shift it towards top."
|
512 |
+
msgstr "Especifique un número. Aumento del número cambiará compartir la interfaz hacia la parte inferior y el descenso se desplazará hacia la parte superior."
|
|
|
|
|
|
|
|
|
513 |
|
514 |
+
#: ../admin/social_counter.php:621
|
515 |
#, fuzzy
|
516 |
msgid "Specify the pages where you want to enable vertical counter interface"
|
517 |
+
msgstr "Especifique las páginas en las que desee habilitar la interfaz Uso compartido verticales"
|
|
|
|
|
518 |
|
519 |
+
#: ../admin/social_counter.php:637
|
520 |
+
#: ../admin/facebook.php:12
|
521 |
+
#: ../admin/facebook.php:372
|
522 |
+
#: ../admin/social_sharing.php:823
|
523 |
+
#: ../admin/social_login.php:634
|
524 |
msgid "Shortcode"
|
525 |
msgstr "Shortcodes"
|
526 |
|
527 |
+
#: ../admin/social_counter.php:639
|
528 |
#, fuzzy
|
529 |
+
msgid "You can use <strong>[TheChamp-Counter]</strong> Shortcode in the content of required page/post where you want to display Social Counter interface."
|
530 |
+
msgstr "Usted puede utilizar <strong> [TheChamp-Sharing] </ strong> Código corto en el contenido de la página requerida / post en el que desea mostrar la interfaz Uso compartido Social."
|
531 |
+
|
532 |
+
#: ../admin/social_counter.php:640
|
533 |
+
#: ../admin/social_counter.php:645
|
534 |
+
#: ../admin/social_counter.php:650
|
535 |
+
#: ../admin/social_counter.php:655
|
536 |
+
#: ../admin/social_counter.php:660
|
537 |
+
#: ../admin/facebook.php:375
|
538 |
+
#: ../admin/facebook.php:380
|
539 |
+
#: ../admin/facebook.php:385
|
540 |
+
#: ../admin/facebook.php:390
|
541 |
+
#: ../admin/facebook.php:395
|
542 |
+
#: ../admin/social_sharing.php:826
|
543 |
+
#: ../admin/social_sharing.php:831
|
544 |
+
#: ../admin/social_sharing.php:836
|
545 |
+
#: ../admin/social_sharing.php:841
|
546 |
+
#: ../admin/social_sharing.php:846
|
547 |
+
#: ../admin/social_sharing.php:851
|
548 |
+
#: ../admin/social_login.php:637
|
549 |
+
#: ../admin/social_login.php:640
|
550 |
msgid "Example"
|
551 |
msgstr "ejemplo"
|
552 |
|
553 |
+
#: ../admin/social_counter.php:642
|
554 |
+
#: ../admin/facebook.php:377
|
555 |
+
#: ../admin/social_sharing.php:828
|
556 |
msgid "You can use following attributes in the Shortcode"
|
557 |
msgstr "Puede utilizar los atributos siguientes en el Código corto"
|
558 |
|
559 |
+
#: ../admin/social_counter.php:644
|
560 |
#, fuzzy
|
561 |
+
msgid "Use <strong>style</strong> attribute to style the rendered Social Counter interface"
|
562 |
+
msgstr "Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso compartido sociales prestados"
|
|
|
|
|
|
|
|
|
563 |
|
564 |
+
#: ../admin/social_counter.php:649
|
565 |
#, fuzzy
|
566 |
+
msgid "Use <strong>type</strong> attribute to specify the type (\"horizontal\" or \"vertical\") of Social Counter interface. Default type is \"horizontal\"."
|
567 |
+
msgstr "Utilice <strong>type</ strong> atributo para especificar el tipo (\"horizontal \" o \"vertical \") de la interfaz Uso compartido Social. Tipo por defecto es \"horizontal \"."
|
|
|
|
|
|
|
|
|
|
|
568 |
|
569 |
+
#: ../admin/social_counter.php:653
|
570 |
msgid "Left (Works with \"Vertical\" type interface only)"
|
571 |
msgstr "Izquierda (Trabaja con interfaz tipo \"vertical \" solamente)"
|
572 |
|
573 |
+
#: ../admin/social_counter.php:654
|
574 |
#, fuzzy
|
575 |
+
msgid "Use <strong>left</strong> attribute to specify the left offset (distance form the left side of the screen) of Social Counter interface."
|
576 |
+
msgstr "Uso <strong> left</strong> atributo para especificar el desplazamiento izquierda (distancia formar el lado izquierdo de la pantalla) de interfaz de uso compartido Social."
|
|
|
|
|
|
|
|
|
|
|
577 |
|
578 |
+
#: ../admin/social_counter.php:658
|
579 |
msgid "Top (Works with \"Vertical\" type interface only)"
|
580 |
msgstr "Top (Trabaja con \"vertical \" tipo de interfaz única)"
|
581 |
|
582 |
+
#: ../admin/social_counter.php:659
|
583 |
#, fuzzy
|
584 |
+
msgid "Use <strong>top</strong> attribute to specify the top offset (distance form the top of the screen) of Social Counter interface."
|
585 |
+
msgstr "Utilice <strong>top</strong> atributo para especificar el desplazamiento superior (distancia forman la parte superior de la pantalla) de la interfaz Uso compartido Social."
|
|
|
|
|
|
|
|
|
|
|
586 |
|
587 |
+
#: ../admin/social_counter.php:662
|
588 |
+
#: ../admin/facebook.php:397
|
589 |
+
#: ../admin/social_sharing.php:853
|
590 |
+
#: ../admin/social_login.php:642
|
591 |
#, fuzzy
|
592 |
msgid "You can use shortcode in PHP file as following"
|
593 |
msgstr "Usted puede ver el plugin en acción en el siguiente enlace"
|
594 |
|
595 |
+
#: ../admin/social_counter.php:664
|
596 |
#, fuzzy
|
597 |
+
msgid "Replace <strong>SHORTCODE</strong> in above code with the required shortcode like <strong>[TheChamp-Counter style=\"background-color:#000;\"]</strong>, so the final code looks like following"
|
598 |
+
msgstr "Reemplace <strong>SHORTCODE</ strong> en el código anterior con el código corto requerido como <strong>[TheChamp-Login style=\"background-color: #000;\"]</ strong>, por lo que el código final se parece a siguiente"
|
|
|
|
|
|
|
|
|
|
|
|
|
599 |
|
600 |
+
#: ../admin/social_counter.php:670
|
601 |
+
#: ../admin/social_sharing.php:861
|
602 |
+
#: ../admin/social_login.php:650
|
603 |
msgid "Widget"
|
604 |
msgstr ""
|
605 |
|
606 |
+
#: ../admin/social_counter.php:672
|
607 |
#, fuzzy
|
608 |
+
msgid "You can navigate to the <strong>Appearance</strong> > <strong>Widgets</strong> section in the left pan and drag <strong>Super Socializer - Counter (Horizontal Widget)</strong> and <strong>Super Socializer - Counter (Vertical Floating Widget)</strong> widgets in the required area."
|
609 |
+
msgstr "Usted puede navegar a la <strong>Apariencia</ strong >> <strong> Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper Socializer - Sharing (Horizontal Widget) </ strong> y <strong> Súper Socializer - Sharing (Vertical Floating Widget) </ strong> widgets en el área requerida."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
|
611 |
+
#: ../admin/social_counter.php:681
|
612 |
+
#: ../admin/facebook.php:424
|
613 |
+
#: ../admin/social_sharing.php:907
|
614 |
+
#: ../admin/social_login.php:661
|
615 |
+
msgid "Save Changes"
|
616 |
+
msgstr "Guardar cambios"
|
617 |
|
618 |
+
#: ../admin/facebook.php:10
|
619 |
+
msgid "Facebook Commenting"
|
620 |
+
msgstr "Comentarios Facebook"
|
621 |
|
622 |
+
#: ../admin/facebook.php:11
|
623 |
+
#: ../admin/facebook.php:202
|
624 |
+
msgid "Feed"
|
625 |
+
msgstr "Alimentación"
|
|
|
|
|
|
|
626 |
|
627 |
+
#: ../admin/facebook.php:13
|
628 |
+
#: ../admin/social_sharing.php:18
|
629 |
+
msgid "FAQ"
|
|
|
630 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
|
632 |
+
#: ../admin/facebook.php:19
|
633 |
+
#: ../admin/facebook.php:25
|
634 |
+
msgid "Enable Facebook Commenting"
|
635 |
+
msgstr "Habilitar Comentarios Facebook"
|
636 |
|
637 |
+
#: ../admin/facebook.php:35
|
638 |
+
#, fuzzy
|
639 |
+
msgid "After enabling this option, Facebook commenting will appear before Wordpress comment form at your website"
|
640 |
+
msgstr "Después de habilitar esta opción, Comentarios Facebook aparecerá en lugar del formulario de comentarios de Wordpress en su sitio web."
|
641 |
|
642 |
+
#: ../admin/facebook.php:45
|
643 |
+
msgid "Facebook Commenting Options"
|
644 |
+
msgstr "Opciones de Comentarios Facebook"
|
|
|
645 |
|
646 |
+
#: ../admin/facebook.php:51
|
647 |
+
msgid "Url to comment on"
|
648 |
+
msgstr "URL donde comentar"
|
|
|
649 |
|
650 |
+
#: ../admin/facebook.php:61
|
651 |
+
#, fuzzy
|
652 |
+
msgid "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."
|
653 |
+
msgstr "La URL absoluta a la que los comentarios publicados en el plugin se asociarán permanentemente. Historias en Facebook acerca de los comentarios publicados en el plugin se enlazarán a esta URL.<br/> Si se deja en blanco <strong>(recomendado)</strong>, se utilizará la URL de la página web en la que se habilita comentar"
|
654 |
|
655 |
+
#: ../admin/facebook.php:69
|
656 |
+
msgid "Width"
|
657 |
+
msgstr "Ancho"
|
658 |
|
659 |
+
#: ../admin/facebook.php:79
|
660 |
+
msgid "Leave empty to auto-adjust the width. The width (in pixels) of the Comments block."
|
661 |
+
msgstr "Dejar en blanco para la auto-ajustar el ancho. El ancho (en píxeles) del bloque de comentarios."
|
|
|
|
|
662 |
|
663 |
+
#: ../admin/facebook.php:87
|
664 |
+
msgid "Color Scheme"
|
665 |
+
msgstr "Esquema de colores"
|
666 |
|
667 |
+
#: ../admin/facebook.php:91
|
668 |
+
msgid "Light"
|
669 |
+
msgstr "Claro"
|
|
|
|
|
|
|
|
|
|
|
|
|
670 |
|
671 |
+
#: ../admin/facebook.php:92
|
672 |
+
msgid "Dark"
|
673 |
+
msgstr "Obscuro"
|
|
|
674 |
|
675 |
+
#: ../admin/facebook.php:100
|
676 |
+
msgid "The color scheme used by the plugin. Can be \"light\" or \"dark\"."
|
677 |
+
msgstr "El esquema de color usado por el plugin. Puede ser \"\"claro\"\" u \"\"obscuro\"\"."
|
|
|
|
|
|
|
|
|
|
|
|
|
678 |
|
679 |
+
#: ../admin/facebook.php:108
|
680 |
#, fuzzy
|
681 |
+
msgid "Number of comments"
|
682 |
+
msgstr "Número de publicaciones"
|
683 |
|
684 |
+
#: ../admin/facebook.php:118
|
685 |
+
msgid "The number of comments to show by default. The minimum value is 1. Defaults to 10"
|
686 |
+
msgstr "El número de comentarios para mostrar por defecto. El valor mínimo es 1. El valor predeterminado es 10"
|
|
|
|
|
|
|
|
|
|
|
|
|
687 |
|
688 |
+
#: ../admin/facebook.php:126
|
689 |
+
msgid "Order by"
|
690 |
+
msgstr "Ordenar por"
|
691 |
|
692 |
+
#: ../admin/facebook.php:130
|
693 |
+
msgid "Social"
|
694 |
+
msgstr "Social"
|
|
|
|
|
|
|
|
|
|
|
|
|
695 |
|
696 |
+
#: ../admin/facebook.php:131
|
697 |
+
msgid "Reverse Time"
|
698 |
+
msgstr "Revertir tiempo"
|
699 |
|
700 |
+
#: ../admin/facebook.php:132
|
701 |
+
msgid "Time"
|
702 |
+
msgstr "Tiempo"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
703 |
|
704 |
+
#: ../admin/facebook.php:140
|
705 |
+
msgid "The order to use when displaying comments."
|
706 |
+
msgstr "El orden a utilizar cuando se muestran los comentarios."
|
707 |
|
708 |
+
#: ../admin/facebook.php:148
|
709 |
+
msgid "Mobile"
|
710 |
+
msgstr "Móvil "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
711 |
|
712 |
+
#: ../admin/facebook.php:152
|
713 |
+
msgid "Auto Detect"
|
714 |
+
msgstr "Auto detectar"
|
715 |
|
716 |
+
#: ../admin/facebook.php:153
|
717 |
+
msgid "True"
|
718 |
+
msgstr "Verdadero"
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
|
720 |
+
#: ../admin/facebook.php:154
|
721 |
+
msgid "False"
|
722 |
+
msgstr "Falso"
|
723 |
|
724 |
+
#: ../admin/facebook.php:162
|
725 |
+
msgid "A boolean value that specifies whether to show the mobile-optimized version or not."
|
726 |
+
msgstr "Un valor booleano que especifica si se mostrará la versión optimizada para móviles o no. "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
727 |
|
728 |
+
#: ../admin/facebook.php:180
|
729 |
+
#, php-format
|
730 |
+
msgid "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)"
|
731 |
+
msgstr "Introduzca el código del idioma que desea utilizar para mostrar los comentarios. Usted puede encontrar los códigos de idioma en <a href=\"%s\" target=\"_blank\"> este enlace </ a>. Déjelo vacío para el idioma predeterminado (Inglés)"
|
732 |
|
733 |
+
#: ../admin/facebook.php:195
|
734 |
+
msgid "Important note"
|
735 |
+
msgstr "nota importante"
|
736 |
|
737 |
+
#: ../admin/facebook.php:197
|
738 |
+
#, fuzzy, php-format
|
739 |
+
msgid "To use this feature follow the steps mentioned at <a href=\"%s\" target=\"_blank\">this link</a>"
|
740 |
+
msgstr "Para utilizar esta función, siga los pasos mencionados en <a href=\"%s\" target=\"_blank\">este enlace</ a>"
|
741 |
|
742 |
+
#: ../admin/facebook.php:208
|
743 |
+
msgid "Publish feed on user's timeline on Facebook login"
|
744 |
+
msgstr "Publicar alimentación en la línea de tiempo del usuario al ingresar a Facebook"
|
|
|
|
|
|
|
|
|
745 |
|
746 |
+
#: ../admin/facebook.php:218
|
747 |
+
msgid "If enabled, a post will be published on the timeline of the user logging in"
|
748 |
+
msgstr "\"Si está activado, un mensaje será publicado en la línea de tiempo del usuario que ingresa \""
|
749 |
|
750 |
+
#: ../admin/facebook.php:228
|
751 |
+
msgid "Facebook Feed Options"
|
752 |
+
msgstr "Opciones de Alimentación en Facebook"
|
|
|
|
|
|
|
|
|
753 |
|
754 |
+
#: ../admin/facebook.php:234
|
755 |
+
msgid "Message"
|
756 |
+
msgstr "Mensaje"
|
757 |
|
758 |
+
#: ../admin/facebook.php:244
|
759 |
+
msgid "Message for the feed post. %website-name% will be replaced with your website name in actual message."
|
760 |
+
msgstr "Mensaje para la publicación de alimentación %web-name% se reemplazará por el nombre del sitio web en el mensaje real."
|
|
|
|
|
|
|
761 |
|
762 |
+
#: ../admin/facebook.php:253
|
763 |
+
msgid "Link (required)"
|
764 |
+
msgstr "Enlace (requerido)"
|
|
|
|
|
765 |
|
766 |
+
#: ../admin/facebook.php:263
|
767 |
+
msgid "The link attached to this feed (required parameter for this functionality to work)"
|
768 |
+
msgstr "El enlace adjunto a esta publicación (parámetro requerido para que esta función opere)"
|
|
|
|
|
|
|
|
|
|
|
769 |
|
770 |
+
#: ../admin/facebook.php:271
|
771 |
+
msgid "Picture"
|
772 |
+
msgstr "Imagen"
|
773 |
|
774 |
+
#: ../admin/facebook.php:281
|
775 |
+
msgid "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)"
|
776 |
+
msgstr "La dirección URL de una imagen adjunta a esta publicación. La imagen debe ser de al menos 200px por 200px. (Si no se especifica esta url, la imagen de la URL especificada en el parámetro del enlace se mostrará en la publicación)"
|
777 |
|
778 |
+
#: ../admin/facebook.php:290
|
779 |
+
msgid "Source"
|
780 |
+
msgstr "Fuente"
|
|
|
|
|
|
|
|
|
781 |
|
782 |
+
#: ../admin/facebook.php:300
|
783 |
+
msgid "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."
|
784 |
+
msgstr "La URL de un archivo multimedia (ya sea SWF o MP3) adjunto a este mensaje. Si SWF, también debe especificar la imagen (en el parámetro \"Imagen\") para proporcionar una imagen en miniatura para el vídeo."
|
785 |
|
786 |
+
#: ../admin/facebook.php:308
|
787 |
+
msgid "Name"
|
788 |
+
msgstr " Nombre"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
789 |
|
790 |
+
#: ../admin/facebook.php:318
|
791 |
+
msgid "The name of the link attachment"
|
792 |
+
msgstr "El nombre del archivo adjunto del enlace"
|
793 |
|
794 |
+
#: ../admin/facebook.php:327
|
795 |
+
msgid "Caption"
|
796 |
+
msgstr "Leyenda"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
797 |
|
798 |
+
#: ../admin/facebook.php:337
|
799 |
+
msgid "The caption of the link (appears beneath the link name). If not specified, this field is automatically populated with the URL of the link."
|
800 |
+
msgstr "La leyenda del enlace (aparece debajo del nombre del enlace). Si no se especifica, este campo se rellena automáticamente con la URL del enlace."
|
801 |
|
802 |
+
#: ../admin/facebook.php:346
|
803 |
+
msgid "Description"
|
804 |
+
msgstr "Descripción"
|
805 |
|
806 |
+
#: ../admin/facebook.php:356
|
807 |
+
msgid "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."
|
808 |
+
msgstr "La descripción del enlace (aparece bajo el texto del enlace). Si no se especifica, este campo se rellena automáticamente por información extraída desde el enlace, por lo general el título de la página."
|
809 |
|
810 |
+
#: ../admin/facebook.php:374
|
811 |
+
msgid "You can use <strong>[TheChamp-FB-Comments]</strong> Shortcode in the content of required page/post where you want to display Facebook Commenting interface."
|
812 |
+
msgstr "Usted puede utilizar <strong> [TheChamp-FB-Comments] </strong> Código corto en el contenido de la página requerida/post en el que desea mostrar la interfaz Uso compartido Social."
|
813 |
|
814 |
+
#: ../admin/facebook.php:379
|
815 |
+
#, fuzzy
|
816 |
+
msgid "Use <strong>style</strong> attribute to style the rendered commenting interface"
|
817 |
+
msgstr "Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso compartido sociales prestados"
|
818 |
|
819 |
+
#: ../admin/facebook.php:384
|
820 |
+
msgid "Use <strong>url</strong> attribute to specify the target url for comments. This defaults to the page where shortcode is used."
|
821 |
+
msgstr "Uso <strong> url</strong> atributo para especificar el desplazamiento izquierda (distancia formar el lado izquierdo de la pantalla) de interfaz de uso compartido Social."
|
822 |
|
823 |
+
#: ../admin/facebook.php:388
|
824 |
+
msgid "num_posts"
|
|
|
|
|
825 |
msgstr ""
|
|
|
|
|
826 |
|
827 |
+
#: ../admin/facebook.php:389
|
828 |
+
#, fuzzy
|
829 |
+
msgid "Use <strong>num_posts</strong> attribute to specify the number of comments to display."
|
830 |
+
msgstr "Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso compartido sociales prestados"
|
831 |
|
832 |
+
#: ../admin/facebook.php:393
|
833 |
+
#, fuzzy
|
834 |
+
msgid "width"
|
835 |
+
msgstr "Ancho"
|
836 |
|
837 |
+
#: ../admin/facebook.php:394
|
838 |
+
#, fuzzy
|
839 |
+
msgid "Use <strong>width</strong> attribute to specify the width of commenting interface. Omit it for fluid width"
|
840 |
+
msgstr "Utilice <strong>top</strong> atributo para especificar el desplazamiento superior (distancia forman la parte superior de la pantalla) de la interfaz Uso compartido Social."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
841 |
|
842 |
+
#: ../admin/facebook.php:399
|
843 |
#, fuzzy
|
844 |
+
msgid "Replace <strong>SHORTCODE</strong> in above code with the required shortcode like <strong>[TheChamp-FB-Comments style=\"background-color:#000;\"]</strong>, so the final code looks like following"
|
845 |
+
msgstr "Reemplace <strong>SHORTCODE</ strong> en el código anterior con el código corto requerido como <strong>[TheChamp-Login style=\"background-color: #000;\"]</ strong>, por lo que el código final se parece a siguiente"
|
|
|
|
|
|
|
|
|
846 |
|
847 |
+
#: ../admin/facebook.php:410
|
848 |
+
#, fuzzy
|
849 |
+
msgid "How can I disable FB comments at individual page/post?"
|
850 |
+
msgstr "¿Cómo puedo mostrar comparten cargos de mi sitio web y no de páginas individuales / mensajes?"
|
|
|
|
|
|
|
|
|
|
|
851 |
|
852 |
+
#: ../admin/facebook.php:414
|
853 |
+
msgid "Edit that page/post and check the option \"Disable Facebook Comments on this post/page\" at the bottom in \"Super Socializer\" section"
|
854 |
+
msgstr "Editar esta página/post y marque la opción \"Desactivar Comentarios Facebook en este post/página \" en la parte inferior en section \"Super Socializer\""
|
|
|
|
|
|
|
|
|
|
|
|
|
855 |
|
856 |
+
#: ../admin/social_sharing.php:15
|
857 |
msgid "Social Sharing"
|
858 |
msgstr "Social Sharing"
|
859 |
|
860 |
+
#: ../admin/social_sharing.php:17
|
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 "Master control for Social Sharing. It must be checked to enable Social Sharing functionality"
|
870 |
+
msgstr "Control maestro para compartir en redes sociales. Esto debe estar marcado para habilitar la funcionalidad de Social Sharing "
|
|
|
|
|
|
|
|
|
871 |
|
872 |
+
#: ../admin/social_sharing.php:48
|
873 |
msgid "Delete all the options on plugin deletion"
|
874 |
msgstr "Eliminar todas las opciones de plugin de eliminación"
|
875 |
|
876 |
+
#: ../admin/social_sharing.php:58
|
877 |
+
msgid "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."
|
878 |
+
msgstr "Si se activa, las opciones del plugin será borrado cuando se elimina el plugin / desinstalado y tendrá que volver a configurar las opciones al instalar el plugin próxima vez."
|
|
|
|
|
|
|
|
|
|
|
|
|
879 |
|
880 |
+
#: ../admin/social_sharing.php:72
|
881 |
#, fuzzy
|
882 |
+
msgid "<strong>Note:</strong> To disable sharing and specify minimum share counts per social network on particular page/post, edit that page/post and check the options at the bottom in <strong>\"Super Socializer\"</strong> section"
|
883 |
+
msgstr "<strong> Nota: </ strong> Para deshabilitar el uso compartido en concreto la página / post, edite la página / post y comprobar el <strong> \"Desactivar Intercambio Social en esta página \" </ strong> la opción en la parte inferior de <strong > \"Super Socializer \" </ strong>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
|
885 |
+
#: ../admin/social_sharing.php:94
|
886 |
msgid "Enable bit.ly url shortener for sharing"
|
887 |
msgstr "Habilitar acortador de url bit.ly para compartir"
|
888 |
|
889 |
+
#: ../admin/social_sharing.php:151
|
890 |
msgid "Twitter username in sharing"
|
891 |
msgstr "Twitter nombre de usuario en el intercambio"
|
892 |
|
893 |
+
#: ../admin/social_sharing.php:167
|
894 |
+
msgid "Provided username will be appended after the content being shared as \"via @USERNAME\". Leave empty if you do not want any username in the content being shared."
|
895 |
+
msgstr "Nombre de usuario proporcionado se añadirá después del contenido que se comparte como \"a travésUSERNAME\". Dejar vacío si no desea que cualquier nombre de usuario en el contenido que se comparte."
|
|
|
|
|
|
|
|
|
|
|
|
|
896 |
|
897 |
+
#: ../admin/social_sharing.php:177
|
898 |
msgid "Horizontal Sharing Interface Options"
|
899 |
msgstr "Horizontales Opciones para compartir la interfaz de"
|
900 |
|
901 |
+
#: ../admin/social_sharing.php:183
|
902 |
msgid "Enable horizontal sharing interface"
|
903 |
msgstr "Habilitar interfaz de intercambio horizontal"
|
904 |
|
905 |
+
#: ../admin/social_sharing.php:193
|
906 |
msgid "Master control to enable horizontal sharing"
|
907 |
msgstr "Control maestro para permitir el intercambio horizontal"
|
908 |
|
909 |
+
#: ../admin/social_sharing.php:218
|
910 |
+
#: ../admin/social_sharing.php:525
|
911 |
+
msgid "Url to share"
|
912 |
+
msgstr "Url compartir"
|
913 |
+
|
914 |
+
#: ../admin/social_sharing.php:236
|
915 |
msgid "The text to display above the sharing interface"
|
916 |
msgstr "El texto que se muestra por encima de la interfaz compartida "
|
917 |
|
918 |
+
#: ../admin/social_sharing.php:244
|
919 |
+
#: ../admin/social_sharing.php:533
|
920 |
+
#: ../admin/social_login.php:41
|
921 |
+
msgid "Select providers"
|
922 |
+
msgstr "Seleccionar proveedores"
|
923 |
+
|
924 |
+
#: ../admin/social_sharing.php:249
|
925 |
+
#: ../admin/social_sharing.php:538
|
926 |
+
#: ../admin/social_login.php:46
|
927 |
+
msgid "Facebook"
|
928 |
+
msgstr ""
|
929 |
+
|
930 |
+
#: ../admin/social_sharing.php:254
|
931 |
+
#: ../admin/social_sharing.php:543
|
932 |
+
#: ../admin/social_login.php:50
|
933 |
+
msgid "Twitter"
|
934 |
+
msgstr ""
|
935 |
+
|
936 |
+
#: ../admin/social_sharing.php:259
|
937 |
+
#: ../admin/social_sharing.php:548
|
938 |
+
#: ../admin/social_login.php:54
|
939 |
+
msgid "LinkedIn"
|
940 |
+
msgstr ""
|
941 |
+
|
942 |
+
#: ../admin/social_sharing.php:264
|
943 |
+
#: ../admin/social_sharing.php:553
|
944 |
+
#: ../admin/social_login.php:58
|
945 |
+
msgid "Google+"
|
946 |
+
msgstr ""
|
947 |
+
|
948 |
+
#: ../admin/social_sharing.php:269
|
949 |
+
#: ../admin/social_sharing.php:558
|
950 |
msgid "Print"
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: ../admin/social_sharing.php:274
|
954 |
+
#: ../admin/social_sharing.php:563
|
955 |
msgid "Email"
|
956 |
msgstr ""
|
957 |
|
958 |
+
#: ../admin/social_sharing.php:279
|
959 |
+
#: ../admin/social_sharing.php:568
|
960 |
msgid "Yahoo"
|
961 |
msgstr ""
|
962 |
|
963 |
+
#: ../admin/social_sharing.php:284
|
964 |
+
#: ../admin/social_sharing.php:573
|
965 |
msgid "Reddit"
|
966 |
msgstr ""
|
967 |
|
968 |
+
#: ../admin/social_sharing.php:289
|
969 |
+
#: ../admin/social_sharing.php:578
|
970 |
msgid "Digg"
|
971 |
msgstr ""
|
972 |
|
973 |
+
#: ../admin/social_sharing.php:294
|
974 |
+
#: ../admin/social_sharing.php:583
|
975 |
msgid "Delicious"
|
976 |
msgstr ""
|
977 |
|
978 |
+
#: ../admin/social_sharing.php:299
|
979 |
+
#: ../admin/social_sharing.php:588
|
980 |
msgid "StumbleUpon"
|
981 |
msgstr ""
|
982 |
|
983 |
+
#: ../admin/social_sharing.php:304
|
984 |
+
#: ../admin/social_sharing.php:593
|
985 |
msgid "Float it"
|
986 |
msgstr ""
|
987 |
|
988 |
+
#: ../admin/social_sharing.php:309
|
989 |
+
#: ../admin/social_sharing.php:598
|
990 |
msgid "Tumblr"
|
991 |
msgstr ""
|
992 |
|
993 |
+
#: ../admin/social_sharing.php:314
|
994 |
+
#: ../admin/social_sharing.php:603
|
995 |
+
#: ../admin/social_login.php:62
|
996 |
+
msgid "Vkontakte"
|
997 |
+
msgstr ""
|
998 |
+
|
999 |
+
#: ../admin/social_sharing.php:319
|
1000 |
+
#: ../admin/social_sharing.php:608
|
1001 |
msgid "Pinterest"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
+
#: ../admin/social_sharing.php:324
|
1005 |
+
#: ../admin/social_sharing.php:613
|
1006 |
+
#: ../admin/social_login.php:70
|
1007 |
+
msgid "Xing"
|
1008 |
+
msgstr ""
|
1009 |
+
|
1010 |
+
#: ../admin/social_sharing.php:332
|
1011 |
+
#: ../admin/social_sharing.php:621
|
1012 |
msgid "Select the providers for sharing interface"
|
1013 |
msgstr "Seleccione los proveedores para compartir la interfaz"
|
1014 |
|
1015 |
+
#: ../admin/social_sharing.php:340
|
1016 |
+
#: ../admin/social_sharing.php:629
|
1017 |
msgid "Rearrange icons"
|
1018 |
msgstr "Reorganizar iconos"
|
1019 |
|
1020 |
+
#: ../admin/social_sharing.php:363
|
1021 |
+
#: ../admin/social_sharing.php:652
|
1022 |
msgid "Drag the icons to rearrange in desired order"
|
1023 |
msgstr "Arrastre los iconos para reorganizar estos con el fin deseado "
|
1024 |
|
1025 |
+
#: ../admin/social_sharing.php:385
|
1026 |
+
#: ../admin/social_sharing.php:691
|
1027 |
+
#, fuzzy
|
1028 |
+
msgid "Horizontal alignment of the sharing interface"
|
1029 |
+
msgstr "Habilitar interfaz de intercambio horizontal"
|
1030 |
+
|
1031 |
+
#: ../admin/social_sharing.php:406
|
1032 |
msgid "Specify position of the sharing interface with respect to the content"
|
1033 |
+
msgstr "Especificar la posición de la interfaz compartir con respecto al contenido"
|
|
|
1034 |
|
1035 |
+
#: ../admin/social_sharing.php:414
|
1036 |
+
#: ../admin/social_sharing.php:757
|
1037 |
msgid "Sharing location"
|
1038 |
msgstr "Ubicación de uso compartido"
|
1039 |
|
1040 |
+
#: ../admin/social_sharing.php:455
|
1041 |
msgid "Specify the pages where you want to enable Sharing interface"
|
1042 |
+
msgstr "Especifique las páginas en las que desee habilitar la interfaz Uso compartido"
|
|
|
1043 |
|
1044 |
+
#: ../admin/social_sharing.php:463
|
1045 |
+
#: ../admin/social_sharing.php:796
|
1046 |
msgid "Show share counts"
|
1047 |
msgstr "conteos muestran acciones"
|
1048 |
|
1049 |
+
#: ../admin/social_sharing.php:473
|
1050 |
+
#: ../admin/social_sharing.php:806
|
1051 |
msgid "If enabled, share counts are displayed above sharing icons."
|
1052 |
+
msgstr "Si está habilitado, el recuento de acciones se muestran por encima de los iconos para compartir."
|
|
|
|
|
1053 |
|
1054 |
+
#: ../admin/social_sharing.php:484
|
1055 |
msgid "Vertical (Floating) Sharing Interface Options"
|
1056 |
msgstr "Vertical (flotante) Opciones de interfaz compartir"
|
1057 |
|
1058 |
+
#: ../admin/social_sharing.php:490
|
1059 |
msgid "Enable vertical (floating) sharing interface"
|
1060 |
msgstr "Habilitar vertical (flotante) interfaz compartida"
|
1061 |
|
1062 |
+
#: ../admin/social_sharing.php:500
|
1063 |
msgid "Master control to enable vertical (floating) sharing widget"
|
1064 |
+
msgstr "Control maestro para permitir vertical (flotante) widget de intercambio"
|
|
|
1065 |
|
1066 |
+
#: ../admin/social_sharing.php:670
|
1067 |
+
msgid "Specify the color or hex code (example #cc78e0) for the background of vertical sharing bar. Leave empty for transparent. You can get the hex code of the required color from <a href=\"http://www.colorpicker.com/\" target=\"_blank\">this link</a>"
|
1068 |
+
msgstr "Especifique el color o el código hexadecimal (ejemplo # cc78e0) para el fondo de la barra de compartir vertical. Dejar vacío para transparente. Puede obtener el código hexadecimal del color deseado de <a href=\"http://www.colorpicker.com/\" target=\"_blank\"> este enlace </a>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1069 |
|
1070 |
+
#: ../admin/social_sharing.php:710
|
1071 |
+
msgid "Specify a number. Increase in number will shift sharing interface towards right and decrease will shift it towards left."
|
1072 |
+
msgstr "Especifique un número. Aumento del número cambiará interfaz compartida hacia la derecha y la disminución se desplazará hacia la izquierda."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1073 |
|
1074 |
+
#: ../admin/social_sharing.php:730
|
1075 |
#, fuzzy
|
1076 |
+
msgid "Specify a number. Increase in number will shift sharing interface towards left and decrease will shift it towards right."
|
1077 |
+
msgstr "Especifique un número. Aumento del número cambiará interfaz compartida hacia la derecha y la disminución se desplazará hacia la izquierda."
|
|
|
|
|
|
|
|
|
1078 |
|
1079 |
+
#: ../admin/social_sharing.php:749
|
1080 |
+
msgid "Specify a number. Increase in number will shift sharing interface towards bottom and decrease will shift it towards top."
|
1081 |
+
msgstr "Especifique un número. Aumento del número cambiará compartir la interfaz hacia la parte inferior y el descenso se desplazará hacia la parte superior."
|
|
|
|
|
|
|
|
|
1082 |
|
1083 |
+
#: ../admin/social_sharing.php:788
|
1084 |
msgid "Specify the pages where you want to enable vertical Sharing interface"
|
1085 |
+
msgstr "Especifique las páginas en las que desee habilitar la interfaz Uso compartido verticales"
|
|
|
|
|
1086 |
|
1087 |
+
#: ../admin/social_sharing.php:825
|
1088 |
+
msgid "You can use <strong>[TheChamp-Sharing]</strong> Shortcode in the content of required page/post where you want to display Social Sharing interface."
|
1089 |
+
msgstr "Usted puede utilizar <strong> [TheChamp-Sharing] </ strong> Código corto en el contenido de la página requerida / post en el que desea mostrar la interfaz Uso compartido Social."
|
|
|
|
|
|
|
|
|
|
|
1090 |
|
1091 |
+
#: ../admin/social_sharing.php:830
|
1092 |
+
msgid "Use <strong>style</strong> attribute to style the rendered Social Sharing interface"
|
1093 |
+
msgstr "Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso compartido sociales prestados"
|
|
|
|
|
|
|
|
|
1094 |
|
1095 |
+
#: ../admin/social_sharing.php:835
|
1096 |
+
#, fuzzy
|
1097 |
+
msgid "Use <strong>type</strong> attribute to specify the type (\"horizontal\" or \"vertical\") of Social Sharing interface. Default type is \"horizontal\"."
|
1098 |
+
msgstr "Utilice <strong>type</ strong> atributo para especificar el tipo (\"horizontal \" o \"vertical \") de la interfaz Uso compartido Social. Tipo por defecto es \"horizontal \"."
|
|
|
|
|
|
|
|
|
1099 |
|
1100 |
+
#: ../admin/social_sharing.php:840
|
1101 |
+
#, fuzzy
|
1102 |
+
msgid "Use <strong>count</strong> attribute to enable the share counts on Social Sharing interface"
|
1103 |
+
msgstr "Utilice <strong>style</ strong> atributo de estilo de la interfaz Uso compartido sociales prestados"
|
|
|
|
|
|
|
|
|
1104 |
|
1105 |
+
#: ../admin/social_sharing.php:844
|
1106 |
+
#, fuzzy
|
1107 |
+
msgid "left (Works with \"Vertical\" type interface only)"
|
1108 |
+
msgstr "Izquierda (Trabaja con interfaz tipo \"vertical \" solamente)"
|
|
|
|
|
|
|
|
|
1109 |
|
1110 |
+
#: ../admin/social_sharing.php:845
|
1111 |
+
msgid "Use <strong>left</strong> attribute to specify the left offset (distance form the left side of the screen) of Social Sharing interface."
|
1112 |
+
msgstr "Uso <strong> left</strong> atributo para especificar el desplazamiento izquierda (distancia formar el lado izquierdo de la pantalla) de interfaz de uso compartido Social."
|
|
|
|
|
|
|
|
|
|
|
|
|
1113 |
|
1114 |
+
#: ../admin/social_sharing.php:849
|
1115 |
+
#, fuzzy
|
1116 |
+
msgid "top (Works with \"Vertical\" type interface only)"
|
1117 |
+
msgstr "Top (Trabaja con \"vertical \" tipo de interfaz única)"
|
1118 |
+
|
1119 |
+
#: ../admin/social_sharing.php:850
|
1120 |
+
msgid "Use <strong>top</strong> attribute to specify the top offset (distance form the top of the screen) of Social Sharing interface."
|
1121 |
+
msgstr "Utilice <strong>top</strong> atributo para especificar el desplazamiento superior (distancia forman la parte superior de la pantalla) de la interfaz Uso compartido Social."
|
|
|
|
|
|
|
|
|
1122 |
|
1123 |
+
#: ../admin/social_sharing.php:855
|
1124 |
+
msgid "Replace <strong>SHORTCODE</strong> in above code with the required shortcode like <strong>[TheChamp-Sharing style=\"background-color:#000;\"]</strong>, so the final code looks like following"
|
1125 |
+
msgstr "Reemplace <strong>SHORTCODE</ strong> en el código anterior con el código corto requerido como <strong>[TheChamp-Sharing style=\"background-color: #000;\"]</ strong>, por lo que el código final se parece a siguiente"
|
1126 |
+
|
1127 |
+
#: ../admin/social_sharing.php:863
|
1128 |
+
msgid "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."
|
1129 |
+
msgstr "Usted puede navegar a la <strong>Apariencia</ strong >> <strong> Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper Socializer - Sharing (Horizontal Widget) </ strong> y <strong> Súper Socializer - Sharing (Vertical Floating Widget) </ strong> widgets en el área requerida."
|
1130 |
+
|
1131 |
+
#: ../admin/social_sharing.php:873
|
1132 |
msgid "Facebook Sharing Troubleshooter"
|
1133 |
msgstr "Facebook Sharing Solucionador de problemas"
|
1134 |
|
1135 |
+
#: ../admin/social_sharing.php:878
|
1136 |
+
msgid "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:"
|
1137 |
+
msgstr "Si Facebook compartir no está funcionando bien, haga clic en el siguiente enlace e introduzca la url problemático (donde compartir en Facebook no funciona correctamente) de su sitio web en el campo de texto:"
|
1138 |
+
|
1139 |
+
#: ../admin/social_sharing.php:892
|
1140 |
+
msgid "How can I show share counts of my website rather than of individual pages/posts?"
|
1141 |
+
msgstr "¿Cómo puedo mostrar comparten cargos de mi sitio web y no de páginas individuales / mensajes?"
|
1142 |
+
|
1143 |
+
#: ../admin/social_sharing.php:896
|
1144 |
+
msgid "Choose \"Url of the homepage of your website\" in \"Target Url\" option and enable \"Show share counts\" option"
|
1145 |
+
msgstr "Elija la opción \"Url de la página principal de su sitio web \" en la opción \"Target Url \" y permitir \"cuenta Share \""
|
1146 |
+
|
1147 |
+
#: ../admin/social_admin.php:8
|
1148 |
+
msgid "Welcome"
|
1149 |
+
msgstr "Bienvenida"
|
1150 |
+
|
1151 |
+
#: ../admin/social_admin.php:10
|
1152 |
+
msgid "You are ready to Socialize your website."
|
1153 |
+
msgstr "Usted está listo para Socializar su sitio web."
|
1154 |
+
|
1155 |
+
#: ../admin/social_admin.php:11
|
1156 |
+
msgid "Getting Started"
|
1157 |
+
msgstr "Para empezar"
|
1158 |
+
|
1159 |
+
#: ../admin/social_admin.php:12
|
1160 |
+
msgid "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."
|
1161 |
+
msgstr "Comience a configurar las opciones en las siguientes secciones del menú de Super Socializer en el panel izquierdo. Intercambio Social está habilitado en su sitio web por defecto."
|
1162 |
+
|
1163 |
+
#: ../admin/social_admin.php:13
|
1164 |
+
msgid "In <strong>Facebook</strong> section, you can configure Facebook Commenting and Feed."
|
1165 |
+
msgstr "En la sección de Facebook, puede configurar Comentarios y Transmisiones Facebook."
|
1166 |
+
|
1167 |
+
#: ../admin/social_admin.php:14
|
1168 |
+
msgid "In <strong>Social Login</strong> section, you can select Social ID provders and configure the Social Login options."
|
1169 |
+
msgstr "En la sección Social Login, puede seleccionar proveedores de Identificación Social y configurar las opciones de Social Login."
|
1170 |
+
|
1171 |
+
#: ../admin/social_admin.php:15
|
1172 |
+
msgid "In <strong>Social Sharing</strong> section, you can choose the Social Networks for Sharing and configure the optons for sharing."
|
1173 |
+
msgstr "En la sección Uso compartido Social, puede elegir las Redes Sociales para compartir y configurar los opciones para compartir."
|
1174 |
+
|
1175 |
+
#: ../admin/social_admin.php:16
|
1176 |
+
#, fuzzy
|
1177 |
+
msgid "In <strong>Social Counter</strong> section, you can choose the like/+1 buttons and configure the options for the same"
|
1178 |
+
msgstr "En la sección Uso compartido Social, puede elegir las Redes Sociales para compartir y configurar los opciones para compartir."
|
1179 |
+
|
1180 |
+
#: ../admin/social_login.php:10
|
1181 |
+
msgid "Social Login"
|
1182 |
+
msgstr "Social Login"
|
1183 |
+
|
1184 |
+
#: ../admin/social_login.php:23
|
1185 |
+
msgid "Enable Social Login"
|
1186 |
+
msgstr "Habilitar Social Login"
|
1187 |
+
|
1188 |
+
#: ../admin/social_login.php:33
|
1189 |
+
msgid "Master control for Social Login. It must be checked to enable Social Login functionality"
|
1190 |
+
msgstr "Control Maestro para Social Login. Debe comprobarse para permitir la funcionalidad de Social Login"
|
1191 |
+
|
1192 |
+
#: ../admin/social_login.php:66
|
1193 |
+
msgid "Instagram"
|
1194 |
msgstr ""
|
|
|
|
|
|
|
1195 |
|
1196 |
+
#: ../admin/social_login.php:78
|
1197 |
+
msgid "Select Social ID provider to enable in Social Login"
|
1198 |
+
msgstr "Seleccione un proveedor de Identificación Social para habilitarse en Social Login"
|
1199 |
+
|
1200 |
+
#: ../admin/social_login.php:86
|
1201 |
+
msgid "Facebook App ID"
|
1202 |
+
msgstr "ID de App. Facebook"
|
1203 |
+
|
1204 |
+
#: ../admin/social_login.php:96
|
1205 |
+
#, php-format
|
1206 |
+
msgid "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"
|
1207 |
+
msgstr "Necesario para que funcione Facebook Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener ID de App. Facebook"
|
1208 |
+
|
1209 |
+
#: ../admin/social_login.php:98
|
1210 |
+
msgid "Paste following url in <strong>Site URL</strong> option at the link mentioned"
|
1211 |
+
msgstr "Pegue siguiente url en <strong>Site URL</ strong> en el enlace mencionado"
|
1212 |
+
|
1213 |
+
#: ../admin/social_login.php:108
|
1214 |
+
#, fuzzy
|
1215 |
+
msgid "Twitter API Key"
|
1216 |
+
msgstr "Clave Consumidor Twitter"
|
1217 |
+
|
1218 |
+
#: ../admin/social_login.php:118
|
1219 |
+
#, fuzzy, php-format
|
1220 |
+
msgid "Required for Twitter Social Login to work. Please follow the documentation at <a href=\"%s\" target=\"_blank\">this link</a> to get Twitter API Key"
|
1221 |
+
msgstr "Requerida para que funcione Twitter Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\"> en este enlace</a> para obtener su Clave Consumidor Twitter"
|
1222 |
+
|
1223 |
+
#: ../admin/social_login.php:120
|
1224 |
+
#: ../admin/social_login.php:142
|
1225 |
+
msgid "Paste following url in <strong>Website</strong> and <strong>Callback URL</strong> options at the link mentioned"
|
1226 |
+
msgstr "Pegue siguiente url en <strong>Website</strong> y <strong>Callback URL</ strong> Opciones en el enlace mencionado"
|
1227 |
+
|
1228 |
+
#: ../admin/social_login.php:130
|
1229 |
+
#, fuzzy
|
1230 |
+
msgid "Twitter API Secret"
|
1231 |
+
msgstr "Twitter Secreto del Consumidor"
|
1232 |
+
|
1233 |
+
#: ../admin/social_login.php:140
|
1234 |
+
#, fuzzy, php-format
|
1235 |
+
msgid "Required for Twitter Social Login to work. Please follow the documentation at <a href=\"%s\" target=\"_blank\">this link</a> to get Twitter API Secret"
|
1236 |
+
msgstr "Requerido para que funcione Twitter Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener Twitter Secreto del Consumidor"
|
1237 |
+
|
1238 |
+
#: ../admin/social_login.php:152
|
1239 |
+
msgid "LinkedIn API Key"
|
1240 |
+
msgstr "Clave LinkedIn API"
|
1241 |
+
|
1242 |
+
#: ../admin/social_login.php:162
|
1243 |
+
#, php-format
|
1244 |
+
msgid "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"
|
1245 |
+
msgstr "Requerida para que funcione LinkedIn Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener su Clave LinkedIn API"
|
1246 |
+
|
1247 |
+
#: ../admin/social_login.php:164
|
1248 |
+
msgid "Paste following url in <strong>Website URL</strong> option at the link mentioned"
|
1249 |
+
msgstr "Pegar siguiente url en <strong>Website URL</strong> en el enlace mencionado"
|
1250 |
+
|
1251 |
+
#: ../admin/social_login.php:174
|
1252 |
+
msgid "Google+ Client ID"
|
1253 |
+
msgstr "ID Cliente Google+"
|
1254 |
+
|
1255 |
+
#: ../admin/social_login.php:184
|
1256 |
+
#, php-format
|
1257 |
+
msgid "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"
|
1258 |
+
msgstr "Requerida para que funcione GooglePlus Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener ID Cliente GooglePlus"
|
1259 |
+
|
1260 |
+
#: ../admin/social_login.php:186
|
1261 |
+
msgid "Paste following url in <strong>AUTHORIZED JAVASCRIPT ORIGINS</strong> and <strong>AUTHORIZED REDIRECT URI</strong> options at the link mentioned"
|
1262 |
+
msgstr "Pegar siguiente url en <strong>AUTHORIZED JAVASCRIPT ORIGINS</ strong> y <strong>AUTHORIZED REDIRECT URI</ strong> Opciones en el enlace mencionado"
|
1263 |
+
|
1264 |
+
#: ../admin/social_login.php:196
|
1265 |
+
msgid "Vkontakte Application ID"
|
1266 |
+
msgstr "ID de App. Vkontakte"
|
1267 |
+
|
1268 |
+
#: ../admin/social_login.php:206
|
1269 |
+
#, php-format
|
1270 |
+
msgid "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"
|
1271 |
+
msgstr "Requerida para que funcione Vkontakte Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener ID de app Vkontakte"
|
1272 |
+
|
1273 |
+
#: ../admin/social_login.php:208
|
1274 |
+
msgid "Paste following url in <strong>Site address</strong> option at the link mentioned"
|
1275 |
+
msgstr "Pegar siguiente url en <strong>Site address</ strong> en el enlace mencionado"
|
1276 |
+
|
1277 |
+
#: ../admin/social_login.php:218
|
1278 |
+
msgid "Instagram Client ID"
|
1279 |
+
msgstr "ID Cliente Instagram"
|
1280 |
+
|
1281 |
+
#: ../admin/social_login.php:228
|
1282 |
+
#, php-format
|
1283 |
+
msgid "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"
|
1284 |
+
msgstr "Requerida para que funcione Instagram Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener ID Cliente Instagram"
|
1285 |
+
|
1286 |
+
#: ../admin/social_login.php:230
|
1287 |
+
msgid "Paste following url in <strong>Website</strong> and <strong>OAuth redirect_uri</strong> options at the link mentioned"
|
1288 |
+
msgstr "Pegue siguiente url en <strong>Website</ strong> y <strong>OAuth redirect_uri</ strong> Opciones en el enlace mencionado"
|
1289 |
+
|
1290 |
+
#: ../admin/social_login.php:240
|
1291 |
+
msgid "Xing Consumer Key"
|
1292 |
msgstr ""
|
|
|
|
|
1293 |
|
1294 |
+
#: ../admin/social_login.php:250
|
1295 |
+
#, fuzzy, php-format
|
1296 |
+
msgid "Required for Xing Social Login to work. Please follow the documentation at <a href=\"%s\" target=\"_blank\">this link</a> to get Xing Consumer Key"
|
1297 |
+
msgstr "Requerida para que funcione LinkedIn Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener su Clave LinkedIn API"
|
1298 |
+
|
1299 |
+
#: ../admin/social_login.php:252
|
1300 |
+
#: ../admin/social_login.php:274
|
1301 |
+
msgid "Paste following url in <strong>Callback domain</strong> option at the link mentioned"
|
1302 |
+
msgstr "Pegar siguiente url en el dominio de devolución de llamada <strong>Callback domain</ strong> en el enlace mencionado"
|
1303 |
+
|
1304 |
+
#: ../admin/social_login.php:262
|
1305 |
+
msgid "Xing Consumer Secret"
|
1306 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
1307 |
|
1308 |
+
#: ../admin/social_login.php:272
|
1309 |
+
#, fuzzy, php-format
|
1310 |
+
msgid "Required for Xing Social Login to work. Please follow the documentation at <a href=\"%s\" target=\"_blank\">this link</a> to get Xing Consumer Secret"
|
1311 |
+
msgstr "Requerido para que funcione Twitter Social Login. Por favor, siga la documentación <a href=\"%s\" target=\"_blank\">en este enlace</a> para obtener Twitter Secreto del Consumidor"
|
1312 |
|
1313 |
+
#: ../admin/social_login.php:284
|
1314 |
+
msgid "Include Javascript in website footer"
|
1315 |
+
msgstr "Incluir Javascript en el pie de página del sitio web"
|
1316 |
+
|
1317 |
+
#: ../admin/social_login.php:294
|
1318 |
+
msgid "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>"
|
1319 |
+
msgstr "Si está activada (recomendado), se incluirá todo el código Javascript en el pie de página de su sitio web. Nota: es posible que anule la funcionalidad del plugin si los ganchos \"\"wp_footer\"\" y \"\"login_footer\"\" no existen en su tema de Wordpress. En este caso, mantener esta opción desactivada."
|
1320 |
+
|
1321 |
+
#: ../admin/social_login.php:308
|
1322 |
+
msgid "Login options"
|
1323 |
+
msgstr "Opciones Inicio de Sesión"
|
1324 |
+
|
1325 |
+
#: ../admin/social_login.php:324
|
1326 |
+
msgid "Text to display above the Social Login interface"
|
1327 |
+
msgstr "Texto para mostrar por encima de la interfaz Social Login"
|
1328 |
+
|
1329 |
+
#: ../admin/social_login.php:333
|
1330 |
+
msgid "Enable at login page"
|
1331 |
+
msgstr "Activar en la página de inicio de sesión"
|
1332 |
+
|
1333 |
+
#: ../admin/social_login.php:343
|
1334 |
+
#, fuzzy
|
1335 |
+
msgid "Social Login interface will get enabled at the login page of your website"
|
1336 |
+
msgstr "La interfaz Social Login se activará en su página de inicio de sesión Wordpress"
|
1337 |
+
|
1338 |
+
#: ../admin/social_login.php:351
|
1339 |
+
msgid "Enable at register page"
|
1340 |
+
msgstr "Habilitar en página de registro"
|
1341 |
+
|
1342 |
+
#: ../admin/social_login.php:361
|
1343 |
+
#, fuzzy
|
1344 |
+
msgid "Social Login interface will get enabled at the registration page of your website"
|
1345 |
+
msgstr "La interfaz Social Login se habilitará en su página de registro Wordpress"
|
1346 |
|
1347 |
+
#: ../admin/social_login.php:369
|
1348 |
+
msgid "Enable at comment form"
|
1349 |
+
msgstr "Habilitar en formulario de Comentario"
|
1350 |
+
|
1351 |
+
#: ../admin/social_login.php:379
|
1352 |
+
#, fuzzy
|
1353 |
+
msgid "Social Login interface will get enabled at your Wordpress Comment form"
|
1354 |
+
msgstr "La interfaz Social Login se activará en su página de inicio de sesión Wordpress"
|
1355 |
+
|
1356 |
+
#: ../admin/social_login.php:390
|
1357 |
+
msgid "Auto-approve comments made by Social Login users"
|
1358 |
+
msgstr "Auto-aprobar los comentarios realizados por los usuarios Social Iniciar sesión"
|
1359 |
+
|
1360 |
+
#: ../admin/social_login.php:400
|
1361 |
+
msgid "If this option is enabled, and WordPress comment is made by Social Login user, comment will get approved immediately without keeping in moderation."
|
1362 |
+
msgstr "Si esta opción está activada, y WordPress comentario es hecho por Social Login usuario, comentario será aprobado inmediatamente sin tener en moderación."
|
1363 |
+
|
1364 |
+
#: ../admin/social_login.php:401
|
1365 |
+
msgid "Note: This is not related to Facebook comments"
|
1366 |
+
msgstr "Nota: Esto no está relacionado con los comentarios de Facebook"
|
1367 |
+
|
1368 |
+
#: ../admin/social_login.php:411
|
1369 |
+
msgid "Enable social avatar"
|
1370 |
+
msgstr "Habilitar avatar Social"
|
1371 |
+
|
1372 |
+
#: ../admin/social_login.php:421
|
1373 |
+
msgid "Social profile pictures of the logged in user will be displayed as profile avatar"
|
1374 |
+
msgstr "Imágenes de Perfil Social del usuario registrado aparecerán como avatar del perfil"
|
1375 |
+
|
1376 |
+
#: ../admin/social_login.php:431
|
1377 |
+
msgid "Avatar quality"
|
1378 |
+
msgstr "Avatar calidad"
|
1379 |
+
|
1380 |
+
#: ../admin/social_login.php:434
|
1381 |
+
msgid "Average"
|
1382 |
+
msgstr "promedio"
|
1383 |
+
|
1384 |
+
#: ../admin/social_login.php:435
|
1385 |
+
msgid "Better"
|
1386 |
+
msgstr "mejor"
|
1387 |
+
|
1388 |
+
#: ../admin/social_login.php:442
|
1389 |
+
msgid "Choose avatar quality"
|
1390 |
+
msgstr "Elija la calidad avatar"
|
1391 |
+
|
1392 |
+
#: ../admin/social_login.php:461
|
1393 |
+
msgid "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"
|
1394 |
+
msgstr "Si lo habilita y el proveedor de Identificación Social no proporciona dirección de correo electrónico del usuario al iniciar sesión, se le pedirá al usuario proporcionar su dirección de correo electrónico De lo contrario, un correo electrónico ficticio, se generará"
|
1395 |
+
|
1396 |
+
#: ../admin/social_login.php:470
|
1397 |
+
msgid "Send username-password after user registration"
|
1398 |
+
msgstr "Enviar nombre de usuario/contraseña tras el registro del usuario"
|
1399 |
+
|
1400 |
+
#: ../admin/social_login.php:480
|
1401 |
+
msgid "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)"
|
1402 |
+
msgstr "Si está habilitada, un correo electrónico será enviado al usuario después del registro a través de Social Login, con respecto a su / sus credenciales de inicio de sesión (nombre de usuario-contraseña para poder ingresar a través del formulario de inicio de sesión tradicional)"
|
1403 |
+
|
1404 |
+
#: ../admin/social_login.php:488
|
1405 |
+
msgid "Login redirection"
|
1406 |
+
msgstr "Redireccionamiento de inicio de sesión"
|
1407 |
+
|
1408 |
+
#: ../admin/social_login.php:492
|
1409 |
+
msgid "Same page where user logged in"
|
1410 |
+
msgstr "La misma página donde el usuario ha iniciado sesión"
|
1411 |
+
|
1412 |
+
#: ../admin/social_login.php:496
|
1413 |
+
#: ../admin/social_login.php:526
|
1414 |
+
msgid "Account dashboard"
|
1415 |
+
msgstr "Panel de cuenta"
|
1416 |
+
|
1417 |
+
#: ../admin/social_login.php:499
|
1418 |
+
#: ../admin/social_login.php:529
|
1419 |
+
msgid "BuddyPress profile page"
|
1420 |
+
msgstr "Página de perfil BuddyPress"
|
1421 |
+
|
1422 |
+
#: ../admin/social_login.php:502
|
1423 |
+
#: ../admin/social_login.php:532
|
1424 |
+
msgid "Custom Url"
|
1425 |
+
msgstr "Url personalizada"
|
1426 |
+
|
1427 |
+
#: ../admin/social_login.php:510
|
1428 |
+
msgid "User will be redirected to the selected page after Social Login"
|
1429 |
+
msgstr "El usuario será redirigido a la página seleccionada después de Social Login"
|
1430 |
+
|
1431 |
+
#: ../admin/social_login.php:518
|
1432 |
+
msgid "Registration redirection"
|
1433 |
+
msgstr "redirección de registro"
|
1434 |
+
|
1435 |
+
#: ../admin/social_login.php:522
|
1436 |
+
#, fuzzy
|
1437 |
+
msgid "Same page from where user registered"
|
1438 |
+
msgstr "La misma página donde el usuario ha iniciado sesión"
|
1439 |
+
|
1440 |
+
#: ../admin/social_login.php:540
|
1441 |
+
msgid "User will be redirected to the selected page after registration (first Social Login) through Social Login"
|
1442 |
+
msgstr "Usuario será redirigido a la página seleccionada después de Registrarse (primero Ingresa Social) a través de Social Login"
|
1443 |
+
|
1444 |
+
#: ../admin/social_login.php:548
|
1445 |
+
msgid "Email popup options"
|
1446 |
+
msgstr "opciones emergentes de correo electrónico"
|
1447 |
+
|
1448 |
+
#: ../admin/social_login.php:554
|
1449 |
+
msgid "Text on 'Email required' popup"
|
1450 |
+
msgstr "Texto en 'Email required' popup"
|
1451 |
+
|
1452 |
+
#: ../admin/social_login.php:564
|
1453 |
+
msgid "This text will be displayed on email required popup. Leave empty if not required."
|
1454 |
+
msgstr "Este texto se mostrará en el correo electrónico popup necesario. Dejar en blanco si no es necesario."
|
1455 |
+
|
1456 |
+
#: ../admin/social_login.php:573
|
1457 |
+
msgid "Error message for 'Email required' popup"
|
1458 |
+
msgstr "Mensaje de error para ventana emergente de \"\"Correo electrónico requerido'"
|
1459 |
+
|
1460 |
+
#: ../admin/social_login.php:583
|
1461 |
+
msgid "This message will be displayed to user if it provides invalid or already registered email"
|
1462 |
+
msgstr "Este mensaje se mostrará al usuario si proporciona correo electrónico no válido o ya registrado"
|
1463 |
+
|
1464 |
+
#: ../admin/social_login.php:592
|
1465 |
+
msgid "Email popup height"
|
1466 |
+
msgstr "email altura popup"
|
1467 |
+
|
1468 |
+
#: ../admin/social_login.php:602
|
1469 |
+
msgid "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."
|
1470 |
+
msgstr "Si usted está viendo la barra de desplazamiento vertical en el \"Correo electrónico requerido\" emergente, puede aumentar la altura del elemento emergente mediante la especificación de esta opción. Dejar en blanco para el defecto."
|
1471 |
+
|
1472 |
+
#: ../admin/social_login.php:610
|
1473 |
+
msgid "Enable email verification"
|
1474 |
+
msgstr "Habilitar verificación de correo electrónico"
|
1475 |
+
|
1476 |
+
#: ../admin/social_login.php:620
|
1477 |
+
msgid "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"
|
1478 |
+
msgstr "Si está activado, el correo electrónico proporcionado por el usuario se verificará mediante el envío de un enlace de confirmación a ese correo electrónico. El usuario no podrá iniciar sesión sin verificar su email"
|
1479 |
+
|
1480 |
+
#: ../admin/social_login.php:636
|
1481 |
+
msgid "Use <strong>[TheChamp-Login]</strong> Shortcode in the content of required page/post where you want to display Social Login interface."
|
1482 |
+
msgstr "Utilice <strong> [TheChamp-Login] </ strong> Código corto en el contenido de la página requerida / post en la que desea mostrar la interfaz Login Social."
|
1483 |
+
|
1484 |
+
#: ../admin/social_login.php:639
|
1485 |
+
#, fuzzy
|
1486 |
+
msgid "You can use \"style\" attribute in the Shortcode to style the rendered Social Login interface."
|
1487 |
+
msgstr "Usted puede utilizar el atributo \"style\" en el Código corto al estilo de la interfaz Uso compartido sociales prestados."
|
1488 |
+
|
1489 |
+
#: ../admin/social_login.php:644
|
1490 |
+
msgid "Replace <strong>SHORTCODE</strong> in above code with the required shortcode like <strong>[TheChamp-Login style=\"background-color:#000;\"]</strong>, so the final code looks like following"
|
1491 |
+
msgstr "Reemplace <strong>SHORTCODE</ strong> en el código anterior con el código corto requerido como <strong>[TheChamp-Login style=\"background-color: #000;\"]</ strong>, por lo que el código final se parece a siguiente"
|
1492 |
+
|
1493 |
+
#: ../admin/social_login.php:652
|
1494 |
+
msgid "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."
|
1495 |
+
msgstr "Usted puede navegar a la Apariencia <strong> </ strong >> <strong> Reproductores </ strong> en el platillo izquierdo y arrastre <strong> Súper Socializer - Login </ strong> de widget en el área requerida."
|
1496 |
+
|
1497 |
+
#: ../inc/social_sharing.php:463
|
1498 |
msgid "Invalid request"
|
1499 |
msgstr "petición no válida"
|
1500 |
|
1501 |
+
#: ../inc/social_sharing.php:470
|
1502 |
msgid "Providers not selected"
|
1503 |
msgstr "Los proveedores no seleccionados"
|
1504 |
|
1505 |
+
#: ../inc/social_sharing.php:603
|
1506 |
msgid "Disable Horizontal Social Sharing on this "
|
1507 |
msgstr "Desactivar Horizontal Intercambio Social en esta"
|
1508 |
|
1509 |
+
#: ../inc/social_sharing.php:608
|
1510 |
msgid "Disable Vertical Social Sharing on this "
|
1511 |
msgstr "Desactivar Vertical Intercambio Social en esta"
|
1512 |
|
1513 |
+
#: ../inc/social_sharing.php:613
|
1514 |
#, fuzzy
|
1515 |
msgid "Disable Horizontal Social Counter on this "
|
1516 |
msgstr "Desactivar Horizontal Intercambio Social en esta"
|
1517 |
|
1518 |
+
#: ../inc/social_sharing.php:618
|
1519 |
#, fuzzy
|
1520 |
msgid "Disable Vertical Social Counter on this "
|
1521 |
msgstr "Desactivar Vertical Intercambio Social en esta"
|
1522 |
|
1523 |
+
#: ../inc/social_sharing.php:623
|
1524 |
+
#, fuzzy
|
1525 |
+
msgid "Disable Facebook Comments on this "
|
1526 |
+
msgstr "Habilitar Comentarios Facebook"
|
1527 |
+
|
1528 |
+
#: ../inc/social_sharing.php:632
|
1529 |
+
#, fuzzy
|
1530 |
+
msgid "Horizontal sharing"
|
1531 |
+
msgstr "Horizontales Opciones para compartir la interfaz de"
|
1532 |
+
|
1533 |
+
#: ../inc/social_sharing.php:638
|
1534 |
+
#: ../inc/social_sharing.php:657
|
1535 |
+
#, fuzzy
|
1536 |
+
msgid "Starting share count for "
|
1537 |
+
msgstr "conteos muestran acciones"
|
1538 |
+
|
1539 |
+
#: ../inc/social_sharing.php:651
|
1540 |
+
#, fuzzy
|
1541 |
+
msgid "Vertical sharing"
|
1542 |
+
msgstr "Social Sharing"
|
1543 |
+
|
1544 |
#: ../inc/widget.php:11
|
1545 |
msgid "Super Socializer - Login"
|
1546 |
msgstr "Super Socializer - Login"
|
1547 |
|
1548 |
#: ../inc/widget.php:13
|
1549 |
+
msgid "Let your website users login/register using their favorite Social ID Provider, such as Facebook, Twitter, Google+, LinkedIn"
|
1550 |
+
msgstr "Permita que sus usuarios del website se conecten/registren usando su proveedor de ID Social favorito, tales como Facebook, Twitter, Google+, LinkedIn"
|
|
|
|
|
|
|
|
|
|
|
1551 |
|
1552 |
#: ../inc/widget.php:46
|
1553 |
msgid "Log Out"
|
1554 |
msgstr "Cerrar sesión"
|
1555 |
|
1556 |
+
#: ../inc/widget.php:77
|
1557 |
+
#: ../inc/widget.php:203
|
1558 |
+
#: ../inc/widget.php:473
|
1559 |
msgid "Title:"
|
1560 |
msgstr "Titulo:"
|
1561 |
|
1562 |
+
#: ../inc/widget.php:79
|
1563 |
+
#: ../inc/widget.php:215
|
1564 |
+
#: ../inc/widget.php:483
|
1565 |
msgid "Before widget content:"
|
1566 |
msgstr " Antes del contenido del widget:"
|
1567 |
|
1568 |
+
#: ../inc/widget.php:81
|
1569 |
+
#: ../inc/widget.php:217
|
1570 |
+
#: ../inc/widget.php:485
|
1571 |
msgid "After widget content:"
|
1572 |
msgstr "Después del contenido del widget:"
|
1573 |
|
1574 |
+
#: ../inc/widget.php:84
|
1575 |
+
#: ../inc/widget.php:219
|
1576 |
+
#: ../inc/widget.php:364
|
1577 |
+
#: ../inc/widget.php:487
|
1578 |
+
#: ../inc/widget.php:620
|
1579 |
msgid "Hide for logged in users:"
|
1580 |
msgstr "Ocultar para los usuarios registrados:"
|
1581 |
|
1582 |
#: ../inc/widget.php:103
|
1583 |
#, fuzzy
|
1584 |
+
msgid "Horizontal sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
|
1585 |
+
msgstr "Widget Horizontal. Deje que sus usuarios del website compartan contenidos en las redes sociales populares como Facebook, Twitter, Tumblr, Google+ y muchos más "
|
|
|
|
|
|
|
|
|
|
|
1586 |
|
1587 |
+
#: ../inc/widget.php:205
|
1588 |
+
#: ../inc/widget.php:335
|
1589 |
#, fuzzy
|
1590 |
+
msgid "Show share counts:"
|
1591 |
+
msgstr "conteos muestran acciones"
|
|
|
|
|
|
|
|
|
|
|
1592 |
|
1593 |
+
#: ../inc/widget.php:207
|
1594 |
+
#: ../inc/widget.php:337
|
1595 |
+
#: ../inc/widget.php:475
|
1596 |
+
#: ../inc/widget.php:593
|
1597 |
+
msgid "Target Url:"
|
1598 |
+
msgstr "Target Url:"
|
1599 |
+
|
1600 |
+
#: ../inc/widget.php:209
|
1601 |
+
#: ../inc/widget.php:339
|
1602 |
+
#: ../inc/widget.php:477
|
1603 |
+
#: ../inc/widget.php:595
|
1604 |
+
msgid "Select"
|
1605 |
+
msgstr "seleccionar"
|
1606 |
+
|
1607 |
+
#: ../inc/widget.php:238
|
1608 |
+
#, fuzzy
|
1609 |
+
msgid "Vertical floating sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
|
1610 |
+
msgstr "Widget de flotación vertical. Deje que sus usuarios del website compartan contenidos en las redes sociales populares como Facebook, Twitter, Tumblr, Google+ y muchos más "
|
1611 |
+
|
1612 |
+
#: ../inc/widget.php:345
|
1613 |
+
#: ../inc/widget.php:601
|
1614 |
msgid "Alignment"
|
1615 |
msgstr "Alineamiento"
|
1616 |
|
1617 |
+
#: ../inc/widget.php:351
|
1618 |
+
#: ../inc/widget.php:607
|
1619 |
#, fuzzy
|
1620 |
msgid "Left Offset"
|
1621 |
msgstr "Desplazamiento hacia la izquierda:"
|
1622 |
|
1623 |
+
#: ../inc/widget.php:355
|
1624 |
+
#: ../inc/widget.php:611
|
1625 |
#, fuzzy
|
1626 |
msgid "Right Offset"
|
1627 |
msgstr "desplazamiento izquierda"
|
1628 |
|
1629 |
+
#: ../inc/widget.php:358
|
1630 |
+
#: ../inc/widget.php:614
|
1631 |
#, fuzzy
|
1632 |
msgid "Top Offset"
|
1633 |
msgstr "Margen superior:"
|
1634 |
|
1635 |
+
#: ../inc/widget.php:383
|
1636 |
#, fuzzy
|
1637 |
+
msgid "Horizontal counter widget. Let your website users share/like content on popular Social networks like Facebook, Twitter, Google+ and many more"
|
1638 |
+
msgstr "Widget Horizontal. Deje que sus usuarios del website compartan contenidos en las redes sociales populares como Facebook, Twitter, Tumblr, Google+ y muchos más "
|
|
|
|
|
|
|
|
|
|
|
1639 |
|
1640 |
+
#: ../inc/widget.php:506
|
1641 |
#, fuzzy
|
1642 |
+
msgid "Vertical floating counter widget. Let your website users share/like content on popular Social networks like Facebook, Twitter, Google+ and many more"
|
1643 |
+
msgstr "Widget de flotación vertical. Deje que sus usuarios del website compartan contenidos en las redes sociales populares como Facebook, Twitter, Tumblr, Google+ y muchos más "
|
|
|
|
|
|
|
|
|
|
|
1644 |
|
1645 |
+
#, fuzzy
|
1646 |
+
#~ msgid ""
|
1647 |
+
#~ "Leave empty to auto-adjust the width. <br/>The width (in pixels) of the "
|
1648 |
+
#~ "Comments block. The mobile version of the Comments block ignores the "
|
1649 |
+
#~ "width parameter, and instead has a fluid width of 100%."
|
1650 |
+
#~ msgstr ""
|
1651 |
+
#~ "Dejar en blanco para el valor por defecto. El ancho (en píxeles) del "
|
1652 |
+
#~ "bloque de comentarios. La versión móvil del bloque de Comentarios ignora "
|
1653 |
+
#~ "el parámetro de anchura, y en su lugar tiene una anchura fluída del 100%."
|
1654 |
|
1655 |
+
#, fuzzy
|
1656 |
+
#~ msgid ""
|
1657 |
+
#~ "Navigate to Appearance > Widgets section in the admin panel of your "
|
1658 |
+
#~ "website and activate \"Super Socializer - Sharing\" widget in the desired "
|
1659 |
+
#~ "area. This will display the sharing counts of the home/index page of your "
|
1660 |
+
#~ "website. Do not forget to turn on the sharing counts in widget options."
|
1661 |
+
#~ msgstr ""
|
1662 |
+
#~ "Vaya a Apariencia> Widgets de sección en el panel de administración de su "
|
1663 |
+
#~ "sitio web y activar - Widget \"Super Socializer Sharing\" en el área "
|
1664 |
+
#~ "deseada. Esto mostrará los recuentos de compartición de la página "
|
1665 |
+
#~ "principal / índice de su sitio web. No te olvides de encender el reparto "
|
1666 |
+
#~ "cuenta con de página \"Compartir redes sociales \" en el panel de "
|
1667 |
+
#~ "administración."
|
1668 |
|
1669 |
+
#~ msgid "Donate"
|
1670 |
+
#~ msgstr "Donar"
|
|
|
1671 |
|
1672 |
+
#~ msgid ""
|
1673 |
+
#~ "If you like the plugin, want to get it improved and want to see it at the "
|
1674 |
+
#~ "top of other plugins, please consider making a donation."
|
1675 |
+
#~ msgstr ""
|
1676 |
+
#~ "Si te gusta el plugin, lo quiere quitar mejorado y quieren ver en la "
|
1677 |
+
#~ "parte superior de otros plugins, por favor considere hacer una donación."
|
1678 |
+
|
1679 |
+
#~ msgid "Keep only Facebook Commenting"
|
1680 |
+
#~ msgstr "Consérvese únicamente Facebook Comentando"
|
1681 |
+
|
1682 |
+
#~ msgid ""
|
1683 |
+
#~ "If enabled, only Facebook commenting will be there without the option to "
|
1684 |
+
#~ "switch to WordPress commenting"
|
1685 |
+
#~ msgstr ""
|
1686 |
+
#~ "Si está habilitado, sólo Facebook comentando estarán allí sin la opción "
|
1687 |
+
#~ "de cambiar a WordPress comentar"
|
1688 |
+
|
1689 |
+
#~ msgid "Load first"
|
1690 |
+
#~ msgstr "Cargue primero"
|
1691 |
+
|
1692 |
+
#, fuzzy
|
1693 |
+
#~ msgid "Default Commenting"
|
1694 |
+
#~ msgstr "Comentarios Facebook"
|
1695 |
+
|
1696 |
+
#~ msgid "Selected commenting will be loaded first on the page"
|
1697 |
+
#~ msgstr "Comentando seleccionado se cargará primero en la página de"
|
1698 |
+
|
1699 |
+
#~ msgid "Text on \"Switch to WordPress Commenting\" button"
|
1700 |
+
#~ msgstr "Botón Texto de \"Cambiar a WordPress Comentando\""
|
1701 |
+
|
1702 |
+
#, fuzzy
|
1703 |
+
#~ msgid ""
|
1704 |
+
#~ "This text will be display on the button to switch to WordPress comments"
|
1705 |
+
#~ msgstr ""
|
1706 |
+
#~ "Si está habilitado, sólo Facebook comentando estarán allí sin la opción "
|
1707 |
+
#~ "de cambiar a WordPress comentar"
|
1708 |
+
|
1709 |
+
#, fuzzy
|
1710 |
+
#~ msgid "Text on \"Switch to Facebook Commenting\" button"
|
1711 |
+
#~ msgstr "Consérvese únicamente Facebook Comentando"
|
1712 |
+
|
1713 |
+
#, fuzzy
|
1714 |
+
#~ msgid ""
|
1715 |
+
#~ "This text will be displayed on the button to switch to Facebook comments"
|
1716 |
+
#~ msgstr ""
|
1717 |
+
#~ "Este texto se muestra en el botón para cambiar a los comentarios de "
|
1718 |
+
#~ "Facebook"
|
1719 |
+
|
1720 |
+
#~ msgid "Specify a title for commenting"
|
1721 |
+
#~ msgstr "Especificar un título para comentarios"
|
1722 |
+
|
1723 |
+
#~ msgid ""
|
1724 |
+
#~ "Note: Twitter Social Login requires \"cURL support = enabled\" in your "
|
1725 |
+
#~ "php.ini file."
|
1726 |
+
#~ msgstr ""
|
1727 |
+
#~ "Nota: Twitter Sociales Ingresar requiere \"soporte cURL = habilitado\" en "
|
1728 |
+
#~ "su archivo php.ini."
|
1729 |
|
1730 |
#~ msgid "How can I show combined share counts?"
|
1731 |
#~ msgstr "¿Cómo muestro combinado conteos compartir?"
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
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:
|
7 |
-
Stable tag:
|
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
|
@@ -12,7 +12,7 @@ A complete 360 degree solution to provide all the social features like Social Lo
|
|
12 |
== Description ==
|
13 |
Super Socializer is a complete package to provide your website all the social features (Social Login, Sharing, Commenting, Feed and more) in a single plugin
|
14 |
|
15 |
-
**
|
16 |
|
17 |
Below is more detail about the features:
|
18 |
|
@@ -171,6 +171,34 @@ Yes, I can help you with it. Just drop me an email at lordofthechamps@gmail.com
|
|
171 |
7. **Social Counter**: Horizontal Interface
|
172 |
|
173 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
= 3.4.1 =
|
175 |
* Updated screenshots in Social Counter section in admin panel
|
176 |
* Minor CSS changes
|
@@ -321,4 +349,32 @@ Yes, I can help you with it. Just drop me an email at lordofthechamps@gmail.com
|
|
321 |
|
322 |
= 3.4.1 =
|
323 |
* Updated screenshots in Social Counter section in admin panel
|
324 |
-
* Minor CSS changes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
=== Super Socializer ===
|
2 |
+
Contributors: the_champ, Spanish translator: Andrew Kurtis http://webhostinghub.com, French Translator: Patrick Mac Cann http://pixxi.es, German Translator: Maximilian Kops http://maxkops.de, Hungarian Translator: László Tavaszi http://kerekmese.hu, Italian Translator: Beda http://bluewin.ch
|
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: 4.1
|
7 |
+
Stable tag: 4.0.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
|
12 |
== Description ==
|
13 |
Super Socializer is a complete package to provide your website all the social features (Social Login, Sharing, Commenting, Feed and more) in a single plugin
|
14 |
|
15 |
+
**Spanish, German, French, Hungarian and Italian translation included**
|
16 |
|
17 |
Below is more detail about the features:
|
18 |
|
171 |
7. **Social Counter**: Horizontal Interface
|
172 |
|
173 |
== Changelog ==
|
174 |
+
= 4.0.0 =
|
175 |
+
* Included Xing in Social Login
|
176 |
+
* Included Xing in Social Sharing
|
177 |
+
* Included Xing in Social Counter
|
178 |
+
* Added option to specify target url in sharing and counter
|
179 |
+
* Added option to specify minimum share count in sharing interface for individual pages/posts
|
180 |
+
* Users can link their social accounts at profile page
|
181 |
+
* Added option to redirect users to BuddyPress profile page after login and registration
|
182 |
+
* Added option to left, right and center align horizontal sharing and counter interface
|
183 |
+
* Added option to specify social avatar quality
|
184 |
+
* Added options to enable sharing at BBPress forums, topics, replies and BuddyPress activity
|
185 |
+
* Social Login app configuration steps simplified
|
186 |
+
* Improved Print icon in sharing
|
187 |
+
* Vkontakte share counts now supported
|
188 |
+
* Included shortcode for Facebook Commenting
|
189 |
+
* Added option to disable Facebook Comments on individual page/post
|
190 |
+
* Added option to specify language for Social Counters
|
191 |
+
* Included Stumbleupon badge in Social Counters
|
192 |
+
* Included functionality to comment after clicking Facebook like/recommend
|
193 |
+
* Included option to enable share counts in sharing shortcode and widget
|
194 |
+
* Included French, Hungarian, German and Italian translation
|
195 |
+
* Facebook Comments and default commenting works simultaneously without the need to toggle between them
|
196 |
+
* [Bugfix] Share counts were not being displayed when bit.ly url shortner was enabled
|
197 |
+
|
198 |
+
= 3.4.2 =
|
199 |
+
* Verified compatibility with WordPress 4.0
|
200 |
+
* [Bugfix] Fatal error at "Social Counter" page in admin panel
|
201 |
+
|
202 |
= 3.4.1 =
|
203 |
* Updated screenshots in Social Counter section in admin panel
|
204 |
* Minor CSS changes
|
349 |
|
350 |
= 3.4.1 =
|
351 |
* Updated screenshots in Social Counter section in admin panel
|
352 |
+
* Minor CSS changes
|
353 |
+
|
354 |
+
= 3.4.2 =
|
355 |
+
* Verified compatibility with WordPress 4.0
|
356 |
+
* [Bugfix] Fatal error at "Social Counter" page in admin panel
|
357 |
+
|
358 |
+
= 4.0.0 =
|
359 |
+
* Included Xing in Social Login
|
360 |
+
* Included Xing in Social Sharing
|
361 |
+
* Included Xing in Social Counter
|
362 |
+
* Added option to specify target url in sharing and counter
|
363 |
+
* Added option to specify minimum share count in sharing interface for individual pages/posts
|
364 |
+
* Users can link their social accounts at profile page
|
365 |
+
* Added option to redirect users to BuddyPress profile page after login and registration
|
366 |
+
* Added option to left, right and center align horizontal sharing and counter interface
|
367 |
+
* Added option to specify social avatar quality
|
368 |
+
* Added options to enable sharing at BBPress forums, topics, replies and BuddyPress activity
|
369 |
+
* Social Login app configuration steps simplified
|
370 |
+
* Improved Print icon in sharing
|
371 |
+
* Vkontakte share counts now supported
|
372 |
+
* Included shortcode for Facebook Commenting
|
373 |
+
* Added option to disable Facebook Comments on individual page/post
|
374 |
+
* Added option to specify language for Social Counters
|
375 |
+
* Included Stumbleupon badge in Social Counters
|
376 |
+
* Included functionality to comment after clicking Facebook like/recommend
|
377 |
+
* Included option to enable share counts in sharing shortcode and widget
|
378 |
+
* Included French, Hungarian, German and Italian translation
|
379 |
+
* Facebook Comments and default commenting works simultaneously without the need to toggle between them
|
380 |
+
* [Bugfix] Share counts were not being displayed when bit.ly url shortner was enabled
|
super_socializer.php
CHANGED
@@ -3,20 +3,28 @@
|
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.pyrovolt.com
|
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:
|
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', '
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
$theChampFacebookOptions = get_option('the_champ_facebook');
|
17 |
-
$theChampLoginOptions = get_option('the_champ_login');
|
18 |
$theChampSharingOptions = get_option('the_champ_sharing');
|
19 |
$theChampCounterOptions = get_option('the_champ_counter');
|
|
|
20 |
|
21 |
require 'helper.php';
|
22 |
// include social login functions
|
@@ -38,6 +46,7 @@ function the_champ_init(){
|
|
38 |
if(get_option('the_champ_ss_version') != THE_CHAMP_SS_VERSION){
|
39 |
update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
|
40 |
}
|
|
|
41 |
global $theChampLoginOptions;
|
42 |
if(isset($theChampLoginOptions['footer_script']) && $theChampLoginOptions['footer_script'] == 1){
|
43 |
add_action('wp_footer', 'the_champ_frontend_scripts');
|
@@ -52,13 +61,19 @@ function the_champ_init(){
|
|
52 |
}
|
53 |
add_action('init', 'the_champ_init');
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
/**
|
56 |
* Check querystring variables
|
57 |
*/
|
58 |
function the_champ_connect(){
|
59 |
global $theChampLoginOptions;
|
60 |
// verify email
|
61 |
-
if(isset($_GET['SuperSocializerKey']) && ($verificationKey = trim($_GET['SuperSocializerKey'])) != ''){
|
62 |
$users = get_users('meta_key=thechamp_key&meta_value='.$verificationKey);
|
63 |
if(count($users) > 0 && isset($users[0] -> ID)){
|
64 |
delete_user_meta($users[0] -> ID, 'thechamp_key');
|
@@ -73,17 +88,79 @@ function the_champ_connect(){
|
|
73 |
|
74 |
// Instagram auth
|
75 |
if(isset($_GET['SuperSocializerInstaToken']) && $_GET['SuperSocializerInstaToken'] != ''){
|
76 |
-
$instaAuthUrl = 'https://api.instagram.com/v1/users/self?access_token=' . trim($_GET['SuperSocializerInstaToken']);
|
77 |
$response = wp_remote_get( $instaAuthUrl, array( 'timeout' => 15 ) );
|
78 |
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
79 |
$body = json_decode(wp_remote_retrieve_body( $response ));
|
80 |
if(is_object($body -> data) && isset($body -> data) && isset($body -> data -> id)){
|
81 |
-
$redirection = isset($_GET['super_socializer_redirect_to']) && $_GET['super_socializer_redirect_to'] != '' ? $_GET['super_socializer_redirect_to'] : '';
|
82 |
-
the_champ_user_auth($body -> data, 'instagram', $redirection);
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
}
|
86 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
// send request to twitter
|
88 |
if(isset($_GET['SuperSocializerAuth']) && $_GET['SuperSocializerAuth'] == 'Twitter'){
|
89 |
if(isset($theChampLoginOptions['twitter_key']) && $theChampLoginOptions['twitter_key'] != '' && isset($theChampLoginOptions['twitter_secret']) && $theChampLoginOptions['twitter_secret'] != ''){
|
@@ -98,10 +175,22 @@ function the_champ_connect(){
|
|
98 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtoken', $requestToken['oauth_token']);
|
99 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtokensecret', $requestToken['oauth_token_secret']);
|
100 |
if(isset($_GET['super_socializer_redirect_to']) && $_GET['super_socializer_redirect_to'] != ''){
|
101 |
-
update_user_meta($uniqueId, 'thechamp_twitter_redirect', $_GET['super_socializer_redirect_to']);
|
102 |
}
|
103 |
wp_redirect($connection->getAuthorizeURL($requestToken['oauth_token']));
|
104 |
die;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
}
|
107 |
}
|
@@ -127,10 +216,20 @@ function the_champ_connect(){
|
|
127 |
delete_user_meta($uniqueId, 'thechamp_twitter_oauthtokensecret');
|
128 |
delete_user_meta($uniqueId, 'thechamp_twitter_oauthtoken');
|
129 |
delete_user_meta($uniqueId, 'thechamp_twitter_redirect');
|
130 |
-
|
131 |
if(is_object($content) && isset($content -> id)){
|
132 |
-
the_champ_user_auth($content, 'twitter', $twitterRedirectUrl);
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
}
|
136 |
}
|
@@ -179,7 +278,7 @@ function the_champ_get_valid_url($url){
|
|
179 |
if(urldecode($_GET['redirect_to']) == admin_url()){
|
180 |
$url = site_url().'/';
|
181 |
}elseif(the_champ_validate_url(urldecode($_GET['redirect_to'])) && (strpos(urldecode($_GET['redirect_to']), 'http://') !== false || strpos(urldecode($_GET['redirect_to']), 'https://') !== false)){
|
182 |
-
$url = $_GET['redirect_to'];
|
183 |
}else{
|
184 |
$url = site_url().'/';
|
185 |
}
|
@@ -191,26 +290,32 @@ function the_champ_get_valid_url($url){
|
|
191 |
* Return webpage url to redirect after login.
|
192 |
*/
|
193 |
function the_champ_get_login_redirection_url($twitterRedirect = '', $register = false){
|
194 |
-
global $theChampLoginOptions, $
|
195 |
if($register){
|
196 |
$option = 'register';
|
197 |
}else{
|
198 |
$option = 'login';
|
199 |
}
|
200 |
-
if($theChampLoginOptions[$option.'_redirection']
|
201 |
-
$
|
202 |
-
|
203 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
}else{
|
205 |
-
|
206 |
}
|
207 |
-
return the_champ_get_valid_url($url);
|
208 |
-
}elseif($theChampLoginOptions[$option.'_redirection'] == 'homepage'){
|
209 |
-
return site_url();
|
210 |
-
}elseif($theChampLoginOptions[$option.'_redirection'] == 'account'){
|
211 |
-
return admin_url();
|
212 |
-
}elseif($theChampLoginOptions[$option.'_redirection'] == 'custom' && $theChampLoginOptions[$option.'_redirection_url'] != ''){
|
213 |
-
return $theChampLoginOptions[$option.'_redirection_url'];
|
214 |
}else{
|
215 |
return site_url();
|
216 |
}
|
@@ -231,8 +336,8 @@ function the_champ_frontend_scripts(){
|
|
231 |
if(the_champ_social_login_enabled() && !is_user_logged_in()){
|
232 |
$loadingImagePath = plugins_url('images/ajax_loader.gif', __FILE__);
|
233 |
$theChampAjaxUrl = get_admin_url().'admin-ajax.php';
|
234 |
-
$redirectionUrl = the_champ_get_login_redirection_url();
|
235 |
-
$regRedirectionUrl = the_champ_get_login_redirection_url('', true);
|
236 |
?>
|
237 |
<script> var theChampLoadingImgPath = '<?php echo $loadingImagePath ?>'; var theChampAjaxUrl = '<?php echo $theChampAjaxUrl ?>'; var theChampRedirectionUrl = '<?php echo $redirectionUrl ?>'; var theChampRegRedirectionUrl = '<?php echo $regRedirectionUrl ?>'; </script>
|
238 |
<?php
|
@@ -271,7 +376,7 @@ function the_champ_frontend_scripts(){
|
|
271 |
);
|
272 |
$emailPopupTitle = __('Email required', 'Super-Socializer');
|
273 |
$emailPopupErrorMessage = isset($theChampLoginOptions["email_error_message"]) ? $theChampLoginOptions["email_error_message"] : "";
|
274 |
-
$emailPopupUniqueId = isset($_GET['par']) ? trim($_GET['par']) : '';
|
275 |
$emailPopupVerifyMessage = __('Please check your email inbox to complete the registration.', 'Super-Socializer');
|
276 |
}
|
277 |
?>
|
@@ -285,7 +390,7 @@ function the_champ_frontend_scripts(){
|
|
285 |
if(the_champ_social_login_provider_enabled('google') && !is_user_logged_in()){
|
286 |
$googleKey = isset($theChampLoginOptions['google_key']) ? $theChampLoginOptions['google_key'] : '';
|
287 |
?>
|
288 |
-
<script>var theChampGoogleKey = '<?php echo $googleKey ?>' </script>
|
289 |
<?php
|
290 |
wp_enqueue_script('the_champ_sl_google', plugins_url('js/front/social_login/google.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
291 |
}
|
@@ -309,9 +414,9 @@ function the_champ_frontend_scripts(){
|
|
309 |
wp_enqueue_script('the_champ_sl_vkontakte', plugins_url('js/front/social_login/vkontakte.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
310 |
}
|
311 |
// Instagram scripts
|
312 |
-
if(the_champ_social_login_provider_enabled('instagram')
|
313 |
?>
|
314 |
-
<script> var theChampInstaId = '<?php echo (isset($theChampLoginOptions["insta_id"]) && $theChampLoginOptions["insta_id"] != "") ? $theChampLoginOptions["insta_id"] : 0 ?>' </script>
|
315 |
<?php
|
316 |
wp_enqueue_script('the_champ_sl_instagram', plugins_url('js/front/social_login/instagram.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
317 |
}
|
@@ -332,17 +437,22 @@ function the_champ_frontend_scripts(){
|
|
332 |
// Facebook commenting
|
333 |
if(the_champ_facebook_commenting_enabled()){
|
334 |
global $post;
|
335 |
-
if(isset($
|
336 |
-
$
|
337 |
-
|
338 |
-
$
|
339 |
-
|
340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
}
|
342 |
-
?>
|
343 |
-
<script> 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'] != '') ? htmlspecialchars($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"] : '100%'; ?>'; 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 = ''; var theChampCommentingLoadFbFirst = <?php echo isset($theChampFacebookOptions['load_first']) ? $theChampFacebookOptions['load_first'] : 1 ?>; var theChampCommentingSwitchWpText = '<?php echo (isset($theChampFacebookOptions['switch_wp']) && $theChampFacebookOptions['switch_wp'] != '') ? htmlspecialchars($theChampFacebookOptions['switch_wp'], ENT_QUOTES) : '' ?>'; var theChampCommentingSwitchFbText = '<?php echo (isset($theChampFacebookOptions['switch_fb']) && $theChampFacebookOptions['switch_fb'] != '') ? htmlspecialchars($theChampFacebookOptions['switch_fb'], ENT_QUOTES) : '' ?>'; var theChampCommentingHandle = false;</script>
|
344 |
-
<?php
|
345 |
-
wp_enqueue_script('the_champ_fb_commenting', plugins_url('js/front/facebook/commenting.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
346 |
}
|
347 |
// Facebook feed posts
|
348 |
if(the_champ_facebook_feed_enabled()){
|
@@ -440,11 +550,11 @@ function the_champ_default_options(){
|
|
440 |
// login options
|
441 |
add_option('the_champ_login', array(
|
442 |
'title' => 'Login with your Social ID',
|
443 |
-
'email_error_message' => 'Email you entered is already registered or invalid',
|
444 |
'avatar' => 1,
|
445 |
'email_required' => 1,
|
446 |
'password_email' => 1,
|
447 |
-
'email_popup_text' => 'Please enter a valid email address. You
|
448 |
'enableAtLogin' => 1,
|
449 |
'enableAtRegister' => 1,
|
450 |
'enableAtComment' => 1,
|
@@ -462,7 +572,7 @@ function the_champ_default_options(){
|
|
462 |
));
|
463 |
|
464 |
// sharing options
|
465 |
-
|
466 |
'enable' => '1',
|
467 |
'hor_enable' => '1',
|
468 |
'vertical_enable' => '1',
|
@@ -475,7 +585,6 @@ function the_champ_default_options(){
|
|
475 |
'bottom' => '1',
|
476 |
'post' => '1',
|
477 |
'page' => '1',
|
478 |
-
'excerpt' => '1',
|
479 |
'horizontal_counts' => '1',
|
480 |
'vertical_post' => '1',
|
481 |
'vertical_page' => '1',
|
@@ -485,10 +594,11 @@ function the_champ_default_options(){
|
|
485 |
'top_offset' => '100',
|
486 |
'delete_options' => '1',
|
487 |
'alignment' => 'left',
|
488 |
-
))
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
|
|
493 |
}
|
494 |
register_activation_hook(__FILE__, 'the_champ_default_options');
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.pyrovolt.com
|
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: 4.0.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', '4.0.0');
|
13 |
|
14 |
+
$theChampLoginOptions = get_option('the_champ_login');
|
15 |
+
if(isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers'])){
|
16 |
+
require 'library/twitteroauth.php';
|
17 |
+
}
|
18 |
+
if(isset($theChampLoginOptions['providers']) && in_array('xing', $theChampLoginOptions['providers'])){
|
19 |
+
$theChampOauthConfigurationFile = plugins_url('library/oauth_configuration.json', __FILE__);
|
20 |
+
require 'library/http.php';
|
21 |
+
require 'library/oauth_client.php';
|
22 |
+
}
|
23 |
|
24 |
$theChampFacebookOptions = get_option('the_champ_facebook');
|
|
|
25 |
$theChampSharingOptions = get_option('the_champ_sharing');
|
26 |
$theChampCounterOptions = get_option('the_champ_counter');
|
27 |
+
$theChampIsBpActive = false;
|
28 |
|
29 |
require 'helper.php';
|
30 |
// include social login functions
|
46 |
if(get_option('the_champ_ss_version') != THE_CHAMP_SS_VERSION){
|
47 |
update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
|
48 |
}
|
49 |
+
add_action('wp_enqueue_scripts', 'the_champ_load_event');
|
50 |
global $theChampLoginOptions;
|
51 |
if(isset($theChampLoginOptions['footer_script']) && $theChampLoginOptions['footer_script'] == 1){
|
52 |
add_action('wp_footer', 'the_champ_frontend_scripts');
|
61 |
}
|
62 |
add_action('init', 'the_champ_init');
|
63 |
|
64 |
+
function the_champ_load_event(){
|
65 |
+
?>
|
66 |
+
<script>function theChampLoadEvent(e){var t=window.onload;if(typeof window.onload!="function"){window.onload=e}else{window.onload=function(){t();e()}}}</script>
|
67 |
+
<?php
|
68 |
+
}
|
69 |
+
|
70 |
/**
|
71 |
* Check querystring variables
|
72 |
*/
|
73 |
function the_champ_connect(){
|
74 |
global $theChampLoginOptions;
|
75 |
// verify email
|
76 |
+
if(isset($_GET['SuperSocializerKey']) && ($verificationKey = trim(esc_attr($_GET['SuperSocializerKey']))) != ''){
|
77 |
$users = get_users('meta_key=thechamp_key&meta_value='.$verificationKey);
|
78 |
if(count($users) > 0 && isset($users[0] -> ID)){
|
79 |
delete_user_meta($users[0] -> ID, 'thechamp_key');
|
88 |
|
89 |
// Instagram auth
|
90 |
if(isset($_GET['SuperSocializerInstaToken']) && $_GET['SuperSocializerInstaToken'] != ''){
|
91 |
+
$instaAuthUrl = 'https://api.instagram.com/v1/users/self?access_token=' . trim(esc_attr($_GET['SuperSocializerInstaToken']));
|
92 |
$response = wp_remote_get( $instaAuthUrl, array( 'timeout' => 15 ) );
|
93 |
if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ){
|
94 |
$body = json_decode(wp_remote_retrieve_body( $response ));
|
95 |
if(is_object($body -> data) && isset($body -> data) && isset($body -> data -> id)){
|
96 |
+
$redirection = isset($_GET['super_socializer_redirect_to']) && $_GET['super_socializer_redirect_to'] != '' ? esc_attr($_GET['super_socializer_redirect_to']) : '';
|
97 |
+
$response = the_champ_user_auth($body -> data, 'instagram', $redirection);
|
98 |
+
if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
|
99 |
+
$redirectTo = esc_attr(the_champ_get_login_redirection_url($redirection, true));
|
100 |
+
}elseif(isset($response['message']) && $response['message'] == 'linked'){
|
101 |
+
$redirectTo = $redirection . (strpos($redirection, '?') !== false ? '&' : '?') . 'linked=1';
|
102 |
+
}elseif(isset($response['message']) && $response['message'] == 'not linked'){
|
103 |
+
$redirectTo = $redirection . (strpos($redirection, '?') !== false ? '&' : '?') . 'linked=0';
|
104 |
+
}elseif(isset($response['url']) && $response['url'] != ''){
|
105 |
+
$redirectTo = $response['url'];
|
106 |
+
}else{
|
107 |
+
$redirectTo = esc_attr(the_champ_get_login_redirection_url($redirection));
|
108 |
+
}
|
109 |
+
the_champ_close_login_popup($redirectTo);
|
110 |
+
//the_champ_close_login_popup(esc_attr(the_champ_get_login_redirection_url($redirection)));
|
111 |
}
|
112 |
}
|
113 |
}
|
114 |
+
|
115 |
+
// send request to Xing
|
116 |
+
if(isset($_GET['SuperSocializerAuth']) && $_GET['SuperSocializerAuth'] == 'Xing'){
|
117 |
+
session_start();
|
118 |
+
if(!isset($_GET['oauth_token']) && isset($_SESSION['OAUTH_ACCESS_TOKEN'])){
|
119 |
+
Unset($_SESSION['OAUTH_ACCESS_TOKEN']);
|
120 |
+
}
|
121 |
+
if(isset($theChampLoginOptions['xing_ck']) && $theChampLoginOptions['xing_ck'] != '' && isset($theChampLoginOptions['xing_cs']) && $theChampLoginOptions['xing_cs'] != ''){
|
122 |
+
$xingClient = new oauth_client_class;
|
123 |
+
$xingClient->debug = 0;
|
124 |
+
$xingClient->debug_http = 1;
|
125 |
+
$xingClient->server = 'XING';
|
126 |
+
$xingClient->redirect_uri = site_url().'/index.php?SuperSocializerAuth=Xing&super_socializer_redirect_to=' . esc_attr($_GET['super_socializer_redirect_to']);
|
127 |
+
$xingClient->client_id = $theChampLoginOptions['xing_ck'];
|
128 |
+
$xingClient->client_secret = $theChampLoginOptions['xing_cs'];
|
129 |
+
if(($success = $xingClient->Initialize())){
|
130 |
+
if(($success = $xingClient->Process())){
|
131 |
+
if(strlen($xingClient->access_token)){
|
132 |
+
$success = $xingClient->CallAPI(
|
133 |
+
'https://api.xing.com/v1/users/me',
|
134 |
+
'GET', array(), array('FailOnAccessError'=>true), $xingResponse);
|
135 |
+
}
|
136 |
+
}
|
137 |
+
$success = $xingClient->Finalize($success);
|
138 |
+
}
|
139 |
+
if($xingClient->exit) die('exit');
|
140 |
+
if($success){
|
141 |
+
if(isset($xingResponse -> users) && is_array($xingResponse -> users) && isset($xingResponse -> users[0] -> id)){
|
142 |
+
$xingRedirect = esc_attr($_GET['super_socializer_redirect_to']);
|
143 |
+
$response = the_champ_user_auth($xingResponse -> users[0], 'xing', $xingRedirect);
|
144 |
+
if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
|
145 |
+
$redirectTo = esc_attr(the_champ_get_login_redirection_url($xingRedirect, true));
|
146 |
+
}elseif(isset($response['message']) && $response['message'] == 'linked'){
|
147 |
+
$redirectTo = $xingRedirect . (strpos($xingRedirect, '?') !== false ? '&' : '?') . 'linked=1';
|
148 |
+
}elseif(isset($response['message']) && $response['message'] == 'not linked'){
|
149 |
+
$redirectTo = $xingRedirect . (strpos($xingRedirect, '?') !== false ? '&' : '?') . 'linked=0';
|
150 |
+
}elseif(isset($response['url']) && $response['url'] != ''){
|
151 |
+
$redirectTo = $response['url'];
|
152 |
+
}else{
|
153 |
+
$redirectTo = esc_attr(the_champ_get_login_redirection_url($xingRedirect));
|
154 |
+
}
|
155 |
+
the_champ_close_login_popup($redirectTo);
|
156 |
+
}
|
157 |
+
}else{
|
158 |
+
echo 'Error:' . $xingClient->error;
|
159 |
+
die;
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
// send request to twitter
|
165 |
if(isset($_GET['SuperSocializerAuth']) && $_GET['SuperSocializerAuth'] == 'Twitter'){
|
166 |
if(isset($theChampLoginOptions['twitter_key']) && $theChampLoginOptions['twitter_key'] != '' && isset($theChampLoginOptions['twitter_secret']) && $theChampLoginOptions['twitter_secret'] != ''){
|
175 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtoken', $requestToken['oauth_token']);
|
176 |
update_user_meta($uniqueId, 'thechamp_twitter_oauthtokensecret', $requestToken['oauth_token_secret']);
|
177 |
if(isset($_GET['super_socializer_redirect_to']) && $_GET['super_socializer_redirect_to'] != ''){
|
178 |
+
update_user_meta($uniqueId, 'thechamp_twitter_redirect', esc_attr($_GET['super_socializer_redirect_to']));
|
179 |
}
|
180 |
wp_redirect($connection->getAuthorizeURL($requestToken['oauth_token']));
|
181 |
die;
|
182 |
+
}else{
|
183 |
+
?>
|
184 |
+
<div style="width: 500px; margin: 0 auto">
|
185 |
+
<ol>
|
186 |
+
<li><?php echo sprintf(__('Enter exactly the following url in <strong>Website</strong> and <strong>Callback Url</strong> options in your Twitter app (see step 3 %s)', 'Super-Socializer'), '<a target="_blank" href="//thechamplord.wordpress.com/2014/01/28/getting-twitter-consumer-key-and-secret/">here</a>') ?><br/>
|
187 |
+
<?php echo site_url() ?>
|
188 |
+
</li>
|
189 |
+
<li><?php _e('Make sure cURL is enabled at your website server. You may need to contact the server administrator of your website to verify this', 'Super-Socializer') ?></li>
|
190 |
+
</ol>
|
191 |
+
</div>
|
192 |
+
<?php
|
193 |
+
die;
|
194 |
}
|
195 |
}
|
196 |
}
|
216 |
delete_user_meta($uniqueId, 'thechamp_twitter_oauthtokensecret');
|
217 |
delete_user_meta($uniqueId, 'thechamp_twitter_oauthtoken');
|
218 |
delete_user_meta($uniqueId, 'thechamp_twitter_redirect');
|
|
|
219 |
if(is_object($content) && isset($content -> id)){
|
220 |
+
$response = the_champ_user_auth($content, 'twitter', $twitterRedirectUrl);
|
221 |
+
if(is_array($response) && isset($response['message']) && $response['message'] == 'register' && (!isset($response['url']) || $response['url'] == '')){
|
222 |
+
$redirectTo = esc_attr(the_champ_get_login_redirection_url($twitterRedirectUrl, true));
|
223 |
+
}elseif(isset($response['message']) && $response['message'] == 'linked'){
|
224 |
+
$redirectTo = $twitterRedirectUrl . (strpos($twitterRedirectUrl, '?') !== false ? '&' : '?') . 'linked=1';
|
225 |
+
}elseif(isset($response['message']) && $response['message'] == 'not linked'){
|
226 |
+
$redirectTo = $twitterRedirectUrl . (strpos($twitterRedirectUrl, '?') !== false ? '&' : '?') . 'linked=0';
|
227 |
+
}elseif(isset($response['url']) && $response['url'] != ''){
|
228 |
+
$redirectTo = $response['url'];
|
229 |
+
}else{
|
230 |
+
$redirectTo = esc_attr(the_champ_get_login_redirection_url($twitterRedirectUrl));
|
231 |
+
}
|
232 |
+
the_champ_close_login_popup($redirectTo);
|
233 |
}
|
234 |
}
|
235 |
}
|
278 |
if(urldecode($_GET['redirect_to']) == admin_url()){
|
279 |
$url = site_url().'/';
|
280 |
}elseif(the_champ_validate_url(urldecode($_GET['redirect_to'])) && (strpos(urldecode($_GET['redirect_to']), 'http://') !== false || strpos(urldecode($_GET['redirect_to']), 'https://') !== false)){
|
281 |
+
$url = esc_attr($_GET['redirect_to']);
|
282 |
}else{
|
283 |
$url = site_url().'/';
|
284 |
}
|
290 |
* Return webpage url to redirect after login.
|
291 |
*/
|
292 |
function the_champ_get_login_redirection_url($twitterRedirect = '', $register = false){
|
293 |
+
global $theChampLoginOptions, $user_ID;
|
294 |
if($register){
|
295 |
$option = 'register';
|
296 |
}else{
|
297 |
$option = 'login';
|
298 |
}
|
299 |
+
if(isset($theChampLoginOptions[$option.'_redirection'])){
|
300 |
+
if($theChampLoginOptions[$option.'_redirection'] == 'same'){
|
301 |
+
$http = the_champ_get_http();
|
302 |
+
if($twitterRedirect != ''){
|
303 |
+
$url = $twitterRedirect;
|
304 |
+
}else{
|
305 |
+
$url = $http.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
|
306 |
+
}
|
307 |
+
return the_champ_get_valid_url($url);
|
308 |
+
}elseif($theChampLoginOptions[$option.'_redirection'] == 'homepage'){
|
309 |
+
return site_url();
|
310 |
+
}elseif($theChampLoginOptions[$option.'_redirection'] == 'account'){
|
311 |
+
return admin_url();
|
312 |
+
}elseif($theChampLoginOptions[$option.'_redirection'] == 'custom' && $theChampLoginOptions[$option.'_redirection_url'] != ''){
|
313 |
+
return $theChampLoginOptions[$option.'_redirection_url'];
|
314 |
+
}elseif($theChampLoginOptions[$option.'_redirection'] == 'bp_profile' && $user_ID != 0){
|
315 |
+
return bp_core_get_user_domain($user_ID);
|
316 |
}else{
|
317 |
+
return site_url();
|
318 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
}else{
|
320 |
return site_url();
|
321 |
}
|
336 |
if(the_champ_social_login_enabled() && !is_user_logged_in()){
|
337 |
$loadingImagePath = plugins_url('images/ajax_loader.gif', __FILE__);
|
338 |
$theChampAjaxUrl = get_admin_url().'admin-ajax.php';
|
339 |
+
$redirectionUrl = esc_attr(the_champ_get_login_redirection_url());
|
340 |
+
$regRedirectionUrl = esc_attr(the_champ_get_login_redirection_url('', true));
|
341 |
?>
|
342 |
<script> var theChampLoadingImgPath = '<?php echo $loadingImagePath ?>'; var theChampAjaxUrl = '<?php echo $theChampAjaxUrl ?>'; var theChampRedirectionUrl = '<?php echo $redirectionUrl ?>'; var theChampRegRedirectionUrl = '<?php echo $regRedirectionUrl ?>'; </script>
|
343 |
<?php
|
376 |
);
|
377 |
$emailPopupTitle = __('Email required', 'Super-Socializer');
|
378 |
$emailPopupErrorMessage = isset($theChampLoginOptions["email_error_message"]) ? $theChampLoginOptions["email_error_message"] : "";
|
379 |
+
$emailPopupUniqueId = isset($_GET['par']) ? trim(esc_attr($_GET['par'])) : '';
|
380 |
$emailPopupVerifyMessage = __('Please check your email inbox to complete the registration.', 'Super-Socializer');
|
381 |
}
|
382 |
?>
|
390 |
if(the_champ_social_login_provider_enabled('google') && !is_user_logged_in()){
|
391 |
$googleKey = isset($theChampLoginOptions['google_key']) ? $theChampLoginOptions['google_key'] : '';
|
392 |
?>
|
393 |
+
<script>var theChampGoogleKey = '<?php echo $googleKey ?>'; var theChampGoogleErrorMessage = '<?php _e('Follow steps 11 and 12 at GooglePlus app configuration page, about to open', 'Super-Socializer') ?>' </script>
|
394 |
<?php
|
395 |
wp_enqueue_script('the_champ_sl_google', plugins_url('js/front/social_login/google.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
396 |
}
|
414 |
wp_enqueue_script('the_champ_sl_vkontakte', plugins_url('js/front/social_login/vkontakte.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION);
|
415 |
}
|
416 |
// Instagram scripts
|
417 |
+
if(the_champ_social_login_provider_enabled('instagram')){
|
418 |
?>
|
419 |
+
<script> var theChampInstaId = '<?php echo (isset($theChampLoginOptions["insta_id"]) && $theChampLoginOptions["insta_id"] != "") ? $theChampLoginOptions["insta_id"] : 0 ?>'; var theChampTwitterRedirect = '<?php echo urlencode(the_champ_get_valid_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"])); ?>'; </script>
|
420 |
<?php
|
421 |
wp_enqueue_script('the_champ_sl_instagram', plugins_url('js/front/social_login/instagram.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
422 |
}
|
437 |
// Facebook commenting
|
438 |
if(the_champ_facebook_commenting_enabled()){
|
439 |
global $post;
|
440 |
+
if(isset($post -> ID) && $post -> ID && ($post -> post_type == 'page' || $post -> post_type == 'post')){
|
441 |
+
if(isset($theChampFacebookOptions['urlToComment']) && $theChampFacebookOptions['urlToComment'] != ''){
|
442 |
+
$commentUrl = $theChampFacebookOptions['urlToComment'];
|
443 |
+
}elseif(isset($post -> ID) && $post -> ID){
|
444 |
+
$commentUrl = get_permalink($post -> ID);
|
445 |
+
}else{
|
446 |
+
$commentUrl = esc_attr(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
|
447 |
+
}
|
448 |
+
if($post){
|
449 |
+
$postMeta = get_post_meta($post -> ID, '_the_champ_meta', true);
|
450 |
+
}
|
451 |
+
?>
|
452 |
+
<script>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"] : '100%'; ?>'; 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 = ''; var theChampCommentingHandle = false; var theChampCommentingDisabled = <?php echo isset($postMeta) && isset($postMeta['fb_comments']) && $postMeta['fb_comments'] == 1 ? 1 : 0 ?></script>
|
453 |
+
<?php
|
454 |
+
wp_enqueue_script('the_champ_fb_commenting', plugins_url('js/front/facebook/commenting.js', __FILE__), false, THE_CHAMP_SS_VERSION);
|
455 |
}
|
|
|
|
|
|
|
|
|
456 |
}
|
457 |
// Facebook feed posts
|
458 |
if(the_champ_facebook_feed_enabled()){
|
550 |
// login options
|
551 |
add_option('the_champ_login', array(
|
552 |
'title' => 'Login with your Social ID',
|
553 |
+
'email_error_message' => __('Email you entered is already registered or invalid', 'Super-Socializer'),
|
554 |
'avatar' => 1,
|
555 |
'email_required' => 1,
|
556 |
'password_email' => 1,
|
557 |
+
'email_popup_text' => __('Please enter a valid email address. You might be required to verify it', 'Super-Socializer'),
|
558 |
'enableAtLogin' => 1,
|
559 |
'enableAtRegister' => 1,
|
560 |
'enableAtComment' => 1,
|
572 |
));
|
573 |
|
574 |
// sharing options
|
575 |
+
add_option('the_champ_sharing', array(
|
576 |
'enable' => '1',
|
577 |
'hor_enable' => '1',
|
578 |
'vertical_enable' => '1',
|
585 |
'bottom' => '1',
|
586 |
'post' => '1',
|
587 |
'page' => '1',
|
|
|
588 |
'horizontal_counts' => '1',
|
589 |
'vertical_post' => '1',
|
590 |
'vertical_page' => '1',
|
594 |
'top_offset' => '100',
|
595 |
'delete_options' => '1',
|
596 |
'alignment' => 'left',
|
597 |
+
));
|
598 |
+
|
599 |
+
// counter options
|
600 |
+
add_option('the_champ_counter', array(
|
601 |
+
'language' => get_locale()
|
602 |
+
));
|
603 |
}
|
604 |
register_activation_hook(__FILE__, 'the_champ_default_options');
|
uninstall.php
CHANGED
@@ -10,6 +10,7 @@ if(isset($theChampSharingOptions['delete_options'])){
|
|
10 |
'the_champ_login',
|
11 |
'the_champ_facebook',
|
12 |
'the_champ_sharing',
|
|
|
13 |
'the_champ_ss_version'
|
14 |
);
|
15 |
// For Single site
|
10 |
'the_champ_login',
|
11 |
'the_champ_facebook',
|
12 |
'the_champ_sharing',
|
13 |
+
'the_champ_counter',
|
14 |
'the_champ_ss_version'
|
15 |
);
|
16 |
// For Single site
|