LoginRadiusShare - Version 1.1.0

Version Notes

Third release of social sharing

Download this release

Release Info

Developer LoginRadius Team
Extension LoginRadiusShare
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.0 to 1.1.0

Files changed (19) hide show
  1. app/code/community/Loginradius/Sharing/Block/Help.php +7 -7
  2. app/code/community/Loginradius/Sharing/Model/System/Config/Info.php +42 -228
  3. app/code/community/Loginradius/Sharing/etc/config.xml +111 -111
  4. app/code/community/Loginradius/Sharing/etc/system.xml +1 -1
  5. app/design/frontend/{default → base}/default/layout/sharing.xml +0 -0
  6. app/design/frontend/{default → base}/default/template/sharing/socialshare_head.phtml +0 -0
  7. app/design/frontend/{default → base}/default/template/sharing/socialshareproduct.phtml +1 -1
  8. app/design/frontend/{default → base}/default/template/sharing/socialsharesuccess.phtml +1 -1
  9. package.xml +5 -5
  10. skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/facebook.png +0 -0
  11. skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/google.png +0 -0
  12. skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/linkedin.png +0 -0
  13. skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/twitter.png +0 -0
  14. skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/youtube.png +0 -0
  15. skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing16.png +0 -0
  16. skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing32.png +0 -0
  17. skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Vertical/16VerticlewithBox.png +0 -0
  18. skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Vertical/32VerticlewithBox.png +0 -0
  19. skin/frontend/base/default/Loginradius/Sharing/js/admin-ui.js +109 -52
app/code/community/Loginradius/Sharing/Block/Help.php CHANGED
@@ -8,16 +8,16 @@ class Loginradius_Sharing_Block_Help extends Mage_Adminhtml_Block_System_Config_
8
  }
9
  protected function _getFieldHtml($fieldset) {
10
  $content = '<ul style="float:left; margin-right:43px">
11
- <li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/1296571-magento-social-sharing-installation-configuration-and-troubleshooting">Extension Installation, Configuration and Troubleshooting</a></li>
12
- <li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/677100-how-to-get-loginradius-api-key-and-secret">How to get LoginRadius API Key</a></li>
13
- <li><a target="_blank" href="http://support.loginradius.com/customer/portal/articles/1056696-magento-social-login-installation-configuration-and-troubleshooting#multisite">Magento Multisite Feature</a></li>
14
- <li><a target="_blank" href="http://www.loginradius.com/product/sociallogin">LoginRadius Products</a></li>
15
  </ul>
16
  <ul style="float:left; margin-right:43px">
17
  <li><a target="_blank" href="http://community.loginradius.com/">Discussion Forum</a></li>
18
- <li><a target="_blank" href="http://www.loginradius.com/loginradius/about">About LoginRadius</a></li>
19
- <li><a target="_blank" href="http://www.loginradius.com/addons">Social Plugins</a></li>
20
- <li><a target="_blank" href="http://www.loginradius.com/sdks/loginradiussdk">Social SDKs</a></li>
21
  </ul>';
22
  return $content;
23
  }
8
  }
9
  protected function _getFieldHtml($fieldset) {
10
  $content = '<ul style="float:left; margin-right:43px">
11
+ <li><a target="_blank" href="http://ish.re/9WBZ">Extension Installation, Configuration and Troubleshooting</a></li>
12
+ <li><a target="_blank" href="http://ish.re/AEFD">How to get LoginRadius API Key</a></li>
13
+ <li><a target="_blank" href="http://ish.re/9WBZ">Magento Multisite Feature</a></li>
14
+ <li><a target="_blank" href="http://ish.re/5P2D">LoginRadius Products</a></li>
15
  </ul>
16
  <ul style="float:left; margin-right:43px">
17
  <li><a target="_blank" href="http://community.loginradius.com/">Discussion Forum</a></li>
18
+ <li><a target="_blank" href="http://ish.re/HC0B">About LoginRadius</a></li>
19
+ <li><a target="_blank" href="http://ish.re/8PFR">Social Plugins</a></li>
20
+ <li><a target="_blank" href="http://ish.re/C9F7">Social SDKs</a></li>
21
  </ul>';
22
  return $content;
23
  }
app/code/community/Loginradius/Sharing/Model/System/Config/Info.php CHANGED
@@ -16,11 +16,38 @@ class Loginradius_Sharing_Model_System_Config_Info extends Mage_Adminhtml_Block_
16
  <fieldset class="loginRadiusFieldset" style="margin-right:13px; background-color:#EAF7FF; border-color:rgb(195, 239, 250); padding-bottom:25px; width:65%; height: 173px">
17
  <h4 style="color:#000"><strong>Thank you for installing LoginRadius Simplified Social Share extension!</strong></h4>
18
  <p>
19
- <a href="https://www.loginradius.com/">LoginRadius</a> provides <a target="_blank" href="https://www.loginradius.com/loginradius/product-overview#SocialLoginTab">Social Login</a>, <a target="_blank" href="https://www.loginradius.com/loginradius/product-overview#SocialSharingTab">Social Share</a>, <a target="_blank" href="https://www.loginradius.com/loginradius/product-overview#FriendsInviteTab">Friend Invite</a>, <a target="_blank" href="https://www.loginradius.com/loginradius/product-overview#UserProfileDataTab">User Social Profile Data</a>, <a target="_blank" href="https://www.loginradius.com/loginradius/product-overview#OnlineTab">User Profile Access</a>, <a target="_blank" href="https://www.loginradius.com/loginradius/product-overview#SingleSignOnTab">Single Sign-on</a> and <a target="_blank" href="https://www.loginradius.com/loginradius/product-overview#SocialAnalyticsTab">Social Analytics</a> as single Unified API.
 
 
 
 
 
 
 
20
  </p>
21
  <p>
22
- We also have ready to use plugins for <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#wordpressplugin" target="_blank">Wordpress</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#joomlaextension" target="_blank">Joomla</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#drupalmodule" target="_blank">Drupal</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#vBulletinplugin" target="_blank">vBulletin</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#vanillaaddons" target="_blank">VanillaForum</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#osCommerceaddons" target="_blank">OSCommerce</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#prestashopmodule" target="_blank">PrestaShop</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#xcartextension" target="_blank">X-Cart</a>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#zencartplugin" target="_blank">Zen-Cart</a> and <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#dotnetnukemodule" target="_blank">DotNetNuke</a>!
 
 
 
 
 
 
 
 
 
 
 
 
23
  </p>
 
 
 
 
 
 
 
 
24
  </fieldset>
25
  <!-- Get Updates -->
26
  <fieldset class="loginRadiusFieldset" style="width:26%; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); padding-bottom:6px;">
@@ -29,80 +56,26 @@ class Loginradius_Sharing_Model_System_Config_Info extends Mage_Adminhtml_Block_
29
  <strong>Author:</strong> LoginRadius<br/>
30
  <strong>Website:</strong> <a href="https://www.loginradius.com" target="_blank">www.loginradius.com</a> <br/>
31
  <strong>Community:</strong> <a href="http://community.loginradius.com" target="_blank">community.loginradius.com</a> <br/>
32
- To receive updates on new features, future releases and other updates, please connect with us on
33
- Facebook-
34
- <div>
35
- <div style="float:left">
36
- <iframe rel="tooltip" scrolling="no" frameborder="0" allowtransparency="true" style="border: none; overflow: hidden; width: 46px; height: 61px; margin-right:10px" src="//www.facebook.com/plugins/like.php?app_id=194112853990900&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FLoginRadius%2F119745918110130&amp;send=false&amp;layout=box_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=90" data-original-title="Like us on Facebook"></iframe>
37
- </div>
38
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
39
- </div>
 
 
 
 
 
40
  </div>
41
  </fieldset>
42
  <div style='clear:both'></div>
43
- <?php
44
- $loginRadiusObject = new Loginradius_Sharing_Block_Getconfig();
45
- if(trim($loginRadiusObject -> getApikey()) == ''){
46
- ?>
47
- <div id="loginRadiusLoginForm">
48
- <h4 id="loginRadiusFormTitle">Register your LoginRadius Account to change settings as per your requirements!</h4>
49
- <form id="loginRadiusLRForm">
50
- <table class="form-table">
51
- <tbody>
52
- <tr>
53
- <th><label for="username">Email</label></th>
54
- <td>
55
- <input type="text" name="username" id="username" class="regular-text">
56
- </td>
57
- </tr>
58
- <tr>
59
- <th><label for="password">Password</label></th>
60
- <td><input type="password" name="password" id="password" value="" class="regular-text"></td>
61
- </tr>
62
- <tr id="confirmPasswordRow">
63
- <th><label for="confirm_password">Confirm Password</label></th>
64
- <td><input onblur="loginRadiusConfirmPasswordValidate()" type="password" name="confirm_password" id="confirm_password" value="" class="regular-text"></td>
65
- </tr>
66
- <tr id="lrsiteRow">
67
- <th><label for="lrsite">LoginRadius Site</label></th>
68
- <td><input type="text" name="lrsite" id="lrsite" value="" class="regular-text"></td>
69
- </tr>
70
- <tr id="lrSiteMessageRow">
71
- <th></th>
72
- <td><span style="font-size:11px">(Your LoginRadius Site Name must not include periods ('.') or any other special symbols. Just use letters (A-Z), digits (0-9) or dash ( - )!)</span></td>
73
- </tr>
74
- <tr>
75
- <td><input type="button" id="loginRadiusSubmit" class="form-button" value="Register" /></td>
76
- <td><div id="loginRadiusMessage"></div></td>
77
- </tr>
78
- <tr>
79
- <td style="width:200px">
80
- <a style="text-decoration:none" id="loginRadiusToggleFormLink" href="javascript:void(0)" onclick="loginRadiusToggleForm('login')">Already have an account?</a><br/>
81
- <a style="text-decoration:none" target="_blank" href="https://www.loginradius.com/login/forgotten" onclick="loginRadiusToggleForm('login')">Forgot your password?</a>
82
- </td>
83
- </tr>
84
- </tbody>
85
- </table>
86
- </form>
87
- </div>
88
- <?php
89
- }
90
- ?>
91
  <script type="text/javascript">var islrsharing = true; var islrsocialcounter = true;</script>
92
  <script type="text/javascript" src="//share.loginradius.com/Content/js/LoginRadius.js" id="lrsharescript"></script>
93
  <script type="text/javascript">
94
  window.onload = function(){
95
- <?php
96
- if(trim($loginRadiusObject -> getApikey()) == ''){
97
- ?>
98
- $loginRadiusSharingJquery('.section-config, .entry-edit-head, .collapseable, .config, .collapseable').css('display', 'none');
99
- // bind LR login/register API call to the form button
100
- document.getElementById('loginRadiusSubmit').onclick = function(){
101
- loginRadiusLRLogin(this);
102
- };
103
- <?php
104
- }
105
- ?>
106
  var sharingType = ['horizontal', 'vertical'];
107
  var sharingModes = ['Sharing', 'Counter'];
108
  for(var i = 0; i < sharingType.length; i++){
@@ -143,165 +116,6 @@ class Loginradius_Sharing_Model_System_Config_Info extends Mage_Adminhtml_Block_
143
  document.getElementById('row_sharing_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden').style.display = 'none';
144
  }
145
  }
146
- <?php
147
- if(trim($loginRadiusObject -> getApikey()) == ''){
148
- ?>
149
- // ajax for user registration/login to LR.com. Password validation
150
- function loginRadiusLRLogin(elem){
151
-
152
- // form validation
153
- var email = $loginRadiusSharingJquery('#username').val().trim();
154
- if(email == "" || $loginRadiusSharingJquery('#password').val().trim() == "" || ($loginRadiusSharingJquery('#lrsiteRow').css('display') != 'none' && $loginRadiusSharingJquery('#lrsite').val().trim() == "")){
155
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Please fill all the fields.').css('color', 'red');
156
- return;
157
- }
158
- // email validation
159
- var atPosition = email.indexOf("@");
160
- var dotPosition = email.lastIndexOf(".");
161
- if(atPosition < 1 || dotPosition < atPosition+2 || dotPosition+2>=email.length){
162
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Please enter a valid email address.').css('color', 'red');
163
- return;
164
- }
165
- //password length validation
166
- if($loginRadiusSharingJquery('#password').val().length < 6 || $loginRadiusSharingJquery('#password').val().length > 32 ) {
167
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Password length should be minimum of 6 characters and maximum 32 characters').css('color', 'red');
168
- return;
169
- }
170
-
171
- // confirm password validation
172
- if($loginRadiusSharingJquery('#confirmPasswordRow').css('display') != 'none' && !loginRadiusConfirmPasswordValidate()){
173
- return;
174
- }
175
- //Site Name validation
176
- if ($loginRadiusSharingJquery('#lrsiteRow').css('display') != 'none' && $loginRadiusSharingJquery('#lrsite').val().match(/[.]/g)) {
177
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Symbol "." not allowed in LoginRadius Site name.').css('color', 'red');
178
- return;
179
- }
180
- if ($loginRadiusSharingJquery('#lrsiteRow').css('display') != 'none' && $loginRadiusSharingJquery('#lrsite').val().match(/[_]/g)) {
181
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Symbol "_" not allowed in LoginRadius Site name.').css('color', 'red');
182
- return;
183
- }
184
- if($loginRadiusSharingJquery('#lrsiteRow').css('display') != 'none' && $loginRadiusSharingJquery('#lrsite').val().length < 4 ) {
185
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Site name must be longer than three characters.').css('color', 'red');
186
- return;
187
- }
188
- var url = "https://" + $loginRadiusSharingJquery('#lrsite').val().trim() + ".hub.loginradius.com";
189
- var regularExpression = "^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$";
190
- if ($loginRadiusSharingJquery('#lrsiteRow').css('display') != 'none' && !url.match(regularExpression)) {
191
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Site Name is not valid.').css('color', 'red');
192
- return;
193
- }
194
- // processing message
195
- $loginRadiusSharingJquery('#loginRadiusMessage').html('<img width="20" height="20" src="<?php echo Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/loading_icon.gif',array('_area'=>'frontend')); ?>" style="float:left;margin-right: 5px;" /><span style="color:blue; width:auto">Please wait. This may take a few minutes...</span>');
196
- // create data object
197
- var dataObject = {
198
- <?php
199
- $adminDetails = Mage::getSingleton('admin/session')->getUser()->getData();
200
- $adminName = '';
201
- if(isset($adminDetails['firstname']) && $adminDetails['firstname'] != ''){
202
- $adminName .= $adminDetails['firstname'];
203
- }
204
- if(isset($adminDetails['lastname']) && $adminDetails['lastname'] != ''){
205
- $adminName .= ' ' . $adminDetails['lastname'];
206
- }
207
- if($adminName == ''){
208
- $adminName = isset($adminDetails['username']) ? $adminDetails['username'] : '';
209
- }
210
- ?>
211
- UserName: $loginRadiusSharingJquery('#username').val().trim(),
212
- password: $loginRadiusSharingJquery('#password').val().trim(),
213
- <?php
214
- if($adminName != ''){
215
- ?>
216
- admin: '<?php echo $adminName; ?>'
217
- <?php
218
- }
219
- ?>
220
- };
221
- if($loginRadiusSharingJquery('#lrsiteRow').css('display') != 'none'){
222
- dataObject.lrsite = $loginRadiusSharingJquery('#lrsite').val().trim();
223
- }
224
- $loginRadiusSharingJquery.ajax({
225
- type: 'POST',
226
- url: '<?php echo Mage::getBaseUrl().'sharing'; ?>',
227
- data: dataObject,
228
- dataType: 'json',
229
- success: function(data, textStatus, XMLHttpRequest){
230
- if(data.status == 0){
231
- // show the message
232
- $loginRadiusSharingJquery('#loginRadiusMessage').html(data.message).css('color', 'red');
233
- }else if(data.status == 1 && data.message == 'registration successful'){
234
- document.getElementById('sharing_options_messages_appid').value = data.apikey;
235
- $loginRadiusSharingJquery('#loginRadiusMessage').html('<img width="20" height="20" src="<?php echo Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/loading_icon.gif',array('_area'=>'frontend')); ?>" style="float:left;margin-right: 5px;" /><span style="color:blue; width:auto">Please wait. This may take a few minutes...</span>');
236
- // save the options
237
- configForm.submit();
238
- }else if(data.status == 1 && data.message == 'login successful'){
239
- // display the app list
240
- var html = '<h3 id="loginRadiusFormTitle">Site Selection</h3><table class="form-table"><tbody><tr><th><label for="lrSites">Select a LoginRadius site</label></th><td><select id="lrSites"><option value="">--Select a Site--</option>';
241
- for(var i = 0; i < data.result.length; i++){
242
- html += '<option value="'+data.result[i].apikey+'">'+data.result[i].appName+'</option>';
243
- }
244
- html += '</select>';
245
- html += '</td></tr><tr><td><input type="button" id="loginRadiusLRSiteSave" class="form-button" value="Save" /></td><td><div id="loginRadiusMessage"></div></td></tr>';
246
- $loginRadiusSharingJquery('#loginRadiusLoginForm').html(html);
247
- document.getElementById('loginRadiusLRSiteSave').onclick = function(){
248
- loginRadiusSaveLRSite();
249
- };
250
- }
251
- },
252
- error: function(a, b, c){
253
- alert(JSON.stringify(a, null, 4)+"\n"+b+"\n"+c)
254
- }
255
- });
256
- }
257
- // toggle between login and registration form
258
- function loginRadiusToggleForm(val){
259
- if(val == 'login'){
260
- document.getElementById('lrsiteRow').style.display = 'none';
261
- document.getElementById('lrSiteMessageRow').style.display = 'none';
262
- document.getElementById('confirmPasswordRow').style.display = 'none';
263
- document.getElementById('loginRadiusToggleFormLink').innerHTML = 'New to LoginRadius, Register Now!';
264
- document.getElementById('loginRadiusToggleFormLink').setAttribute('onclick', 'loginRadiusToggleForm("register")');
265
- document.getElementById('loginRadiusSubmit').value = 'Login';
266
- document.getElementById('loginRadiusFormTitle').innerHTML = 'Login to your LoginRadius Account to change settings as per your requirements!';
267
- }else{
268
- document.getElementById('lrsiteRow').style.display = 'table-row';
269
- document.getElementById('lrSiteMessageRow').style.display = 'table-row';
270
- document.getElementById('confirmPasswordRow').style.display = 'table-row';
271
- document.getElementById('loginRadiusToggleFormLink').innerHTML = 'Already have an account?';
272
- document.getElementById('loginRadiusToggleFormLink').setAttribute('onclick', 'loginRadiusToggleForm("login")');
273
- document.getElementById('loginRadiusSubmit').value = 'Register';
274
- document.getElementById('loginRadiusFormTitle').innerHTML = 'Register your LoginRadius Account to change settings as per your requirements!';
275
- }
276
- document.getElementById('loginRadiusMessage').innerHTML = '';
277
- }
278
- // confirm password validation
279
- function loginRadiusConfirmPasswordValidate(){
280
- var loginRadiusNotificationDiv = document.getElementById('loginRadiusMessage');
281
- if(document.getElementById('password').value.trim() != document.getElementById('confirm_password').value.trim()){
282
- loginRadiusNotificationDiv.innerHTML = 'Passwords do not match.';
283
- loginRadiusNotificationDiv.style.color = 'red';
284
- return false;
285
- }else{
286
- loginRadiusNotificationDiv.innerHTML = '';
287
- return true;
288
- }
289
- }
290
-
291
- // save selected LR Site API Key
292
- function loginRadiusSaveLRSite(){
293
- if($loginRadiusSharingJquery('#lrSites').val().trim() == ""){
294
- $loginRadiusSharingJquery('#loginRadiusMessage').html('Please select a site').css('color', 'red');
295
- return;
296
- }
297
- document.getElementById('sharing_options_messages_appid').value = $loginRadiusSharingJquery('#lrSites').val();
298
- $loginRadiusSharingJquery('#loginRadiusMessage').html('<img width="20" height="20" src="<?php echo Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/loading_icon.gif',array('_area'=>'frontend')); ?>" style="float:left;margin-right: 5px;" /><span style="color:blue; width:auto">Please wait. This may take a few minutes...</span>');
299
- // save the options
300
- configForm.submit();
301
- }
302
- <?php
303
- }
304
- ?>
305
  </script>
306
  <?php
307
  }
16
  <fieldset class="loginRadiusFieldset" style="margin-right:13px; background-color:#EAF7FF; border-color:rgb(195, 239, 250); padding-bottom:25px; width:65%; height: 173px">
17
  <h4 style="color:#000"><strong>Thank you for installing LoginRadius Simplified Social Share extension!</strong></h4>
18
  <p>
19
+ <a href="https://www.loginradius.com/">LoginRadius</a> <a href="http://ish.re/9RZM" target="_blank">Social Login</a>,
20
+ <a href="http://ish.re/9RZO" target="_blank">Social Share</a>,
21
+ <a href="http://ish.re/9RZQ" target="_blank">Social Invite</a>,
22
+ <a href="http://ish.re/83Y8" target="_blank">User Social Profile Data</a>,
23
+ <a href="http://ish.re/83Y8" target="_blank">User Profile Access</a>,
24
+ <a href="http://ish.re/9RZS" target="_blank">Single Sign-On</a>,
25
+ <a href="http://ish.re/AQ5L" target="_blank">Social Engagement Analytics</a>
26
+ as single Unified API.
27
  </p>
28
  <p>
29
+ <?php echo $this->__('We also offer Social Plugins for') ?>
30
+ <a href="http://ish.re/ADDT" target="_blank">Wordpress</a>,
31
+ <a href="http://ish.re/8PE6" target="_blank">Joomla</a>,
32
+ <a href="http://ish.re/8PE9" target="_blank">Drupal</a>,
33
+ <a href="http://ish.re/8PED" target="_blank">vBulletin</a>,
34
+ <a href="http://ish.re/8PEE" target="_blank">VanillaForum</a>,
35
+ <a href="http://ish.re/8PEG" target="_blank">osCommerce</a>,
36
+ <a href="http://ish.re/8PEH" target="_blank">PrestaShop</a>,
37
+ <a href="http://ish.re/8PFQ" target="_blank">X-Cart</a>,
38
+ <a href="http://ish.re/8PFR" target="_blank">Zen-Cart</a>,
39
+ <a href="http://ish.re/8PFS" target="_blank">DotNetNuke</a>,
40
+ <a href="http://ish.re/8PFT" target="_blank">SMF</a><?php echo $this->__('and') ?>
41
+ <a href="http://ish.re/8PFV" target="_blank">phpBB</a> !
42
  </p>
43
+ </br>
44
+ <div style="margin-top:10px">
45
+ <a style="text-decoration:none;margin-right:10px;" href="https://www.loginradius.com/" target="_blank">
46
+ <input class="form-button" type="button" value="<?php echo $this->__('Set up my FREE account!') ?>">
47
+ </a>
48
+ <a class="loginRadiusHow" target="_blank"
49
+ href="http://ish.re/ATM4">(<?php echo $this->__('How to set up an account?') ?>)</a>
50
+ </div>
51
  </fieldset>
52
  <!-- Get Updates -->
53
  <fieldset class="loginRadiusFieldset" style="width:26%; background-color: rgb(231, 255, 224); border: 1px solid rgb(191, 231, 176); padding-bottom:6px;">
56
  <strong>Author:</strong> LoginRadius<br/>
57
  <strong>Website:</strong> <a href="https://www.loginradius.com" target="_blank">www.loginradius.com</a> <br/>
58
  <strong>Community:</strong> <a href="http://community.loginradius.com" target="_blank">community.loginradius.com</a> <br/>
59
+ To receive updates on new features, releases, etc. Please connect to one of our social media pages
60
+ <div id="lr_media_pages_container">
61
+ <a target="_blank" href="https://www.facebook.com/loginradius"><img
62
+ src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/facebook.png'; ?>"></a>
63
+ <a target="_blank" href="https://twitter.com/LoginRadius"><img
64
+ src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/twitter.png'; ?>"></a>
65
+ <a target="_blank" href="https://plus.google.com/+Loginradius"> <img
66
+ src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/google.png'; ?>"></a>
67
+ <a target="_blank" href="http://www.linkedin.com/company/loginradius"> <img
68
+ src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/linkedin.png'; ?>"></a>
69
+ <a target="_blank" href="https://www.youtube.com/user/LoginRadius"> <img
70
+ src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/youtube.png'; ?>"></a>
71
+ </div>
72
  </div>
73
  </fieldset>
74
  <div style='clear:both'></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  <script type="text/javascript">var islrsharing = true; var islrsocialcounter = true;</script>
76
  <script type="text/javascript" src="//share.loginradius.com/Content/js/LoginRadius.js" id="lrsharescript"></script>
77
  <script type="text/javascript">
78
  window.onload = function(){
 
 
 
 
 
 
 
 
 
 
 
79
  var sharingType = ['horizontal', 'vertical'];
80
  var sharingModes = ['Sharing', 'Counter'];
81
  for(var i = 0; i < sharingType.length; i++){
116
  document.getElementById('row_sharing_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden').style.display = 'none';
117
  }
118
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  </script>
120
  <?php
121
  }
app/code/community/Loginradius/Sharing/etc/config.xml CHANGED
@@ -1,119 +1,119 @@
1
  <?xml version="1.0"?>
2
  <config>
3
- <default>
4
- <sharing_options>
5
- <messages>
6
- <sharingCount>page</sharingCount>
7
- </messages>
8
- <horizontalSharing>
9
- <horizontalShareEnable>1</horizontalShareEnable>
10
- <horizontalShareProduct>1</horizontalShareProduct>
11
- <horizontalShareSuccess>1</horizontalShareSuccess>
12
- <sharingTitle>Share it now!</sharingTitle>
13
- <horizontalSharingTheme>32</horizontalSharingTheme>
14
- <horizontalSharingProvidersHidden>Facebook,Twitter,GooglePlus,LinkedIn,Pinterest,Print,Email</horizontalSharingProvidersHidden>
15
- <horizontalCounterProvidersHidden>Facebook Like,Google+ +1,Twitter Tweet,Pinterest Pin it,Hybridshare</horizontalCounterProvidersHidden>
16
- </horizontalSharing>
17
- <verticalSharing>
18
- <verticalShareEnable>1</verticalShareEnable>
19
- <verticalShareProduct>1</verticalShareProduct>
20
- <verticalShareSuccess>1</verticalShareSuccess>
21
- <verticalSharingTheme>counter_vertical</verticalSharingTheme>
22
- <verticalAlignment>top_left</verticalAlignment>
23
- <offset>150</offset>
24
- <verticalSharingProvidersHidden>Facebook,Twitter,GooglePlus,LinkedIn,Pinterest,Print,Email</verticalSharingProvidersHidden>
25
- <verticalCounterProvidersHidden>Facebook Like,Google+ +1,Twitter Tweet,Pinterest Pin it,Hybridshare</verticalCounterProvidersHidden>
26
- </verticalSharing>
27
- </sharing_options>
28
- </default>
29
  <modules>
30
  <Loginradius_Sharing>
31
- <version>1.0.0</version>
32
  </Loginradius_Sharing>
33
  </modules>
34
- <frontend>
35
- <layout>
36
  <updates>
37
  <sharing>
38
  <file>sharing.xml</file>
39
  </sharing>
40
  </updates>
41
- </layout>
42
- <translate>
43
- <modules>
44
- <Loginradius_Sharing>
45
- <files>
46
- <default>Loginradius_Sharing.csv</default>
47
- </files>
48
- </Loginradius_Sharing>
49
- </modules>
50
- </translate>
51
- <routers>
52
- <sharing>
53
- <use>standard</use>
54
- <args>
55
- <module>Loginradius_Sharing</module>
56
- <frontName>sharing</frontName>
57
- </args>
58
- </sharing>
59
- </routers>
60
  </frontend>
61
- <admin>
62
  <routers>
63
- <sharing>
64
- <use>admin</use>
65
- <args>
66
- <module>Loginradius_Sharing</module>
67
- <frontName>sharing admin</frontName>
68
- </args>
69
- </sharing>
70
  </routers>
71
  </admin>
72
- <adminhtml>
73
- <acl>
74
- <resources>
75
- <admin>
76
- <children>
77
- <system>
78
- <children>
79
- <config>
80
- <children>
81
- <sharing_options>
82
- <title>Store Social login Module Section</title>
83
- </sharing_options>
84
- </children>
85
- </config>
86
- </children>
87
- </system>
88
- </children>
89
- </admin>
90
- </resources>
91
- </acl>
92
- <acl>
93
- <resources>
94
- <all>
95
- <title>Allow Everything</title>
96
- </all>
97
- <admin>
98
- <children>
99
- <Loginradius_Sharing>
100
- <title>Sharing Module</title>
101
- <sort_order>10</sort_order>
102
- </Loginradius_Sharing>
103
- </children>
104
- </admin>
105
- </resources>
106
- </acl>
107
- <layout>
108
- <updates>
109
- <sharing>
110
- <file>loginradius_sharing.xml</file>
111
- </sharing>
112
- </updates>
113
- </layout>
114
  </adminhtml>
115
- <global>
116
- <models>
117
  <sharing>
118
  <class>Loginradius_Sharing_Model</class>
119
  </sharing>
@@ -138,15 +138,15 @@
138
  </connection>
139
  </sharing_read>
140
  </resources>
141
- <blocks>
142
- <sharing>
143
- <class>Loginradius_Sharing_Block</class>
144
- </sharing>
145
- </blocks>
146
- <helpers>
147
- <sharing>
148
- <class>Loginradius_Sharing_Helper</class>
149
- </sharing>
150
- </helpers>
151
- </global>
152
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <default>
4
+ <sharing_options>
5
+ <messages>
6
+ <sharingCount>page</sharingCount>
7
+ </messages>
8
+ <horizontalSharing>
9
+ <horizontalShareEnable>1</horizontalShareEnable>
10
+ <horizontalShareProduct>1</horizontalShareProduct>
11
+ <horizontalShareSuccess>1</horizontalShareSuccess>
12
+ <sharingTitle>Share it now!</sharingTitle>
13
+ <horizontalSharingTheme>32</horizontalSharingTheme>
14
+ <horizontalSharingProvidersHidden>Facebook,Twitter,GooglePlus,LinkedIn,Pinterest,Print,Email</horizontalSharingProvidersHidden>
15
+ <horizontalCounterProvidersHidden>Facebook Like,Google+ +1,Twitter Tweet,Pinterest Pin it,Hybridshare</horizontalCounterProvidersHidden>
16
+ </horizontalSharing>
17
+ <verticalSharing>
18
+ <verticalShareEnable>1</verticalShareEnable>
19
+ <verticalShareProduct>1</verticalShareProduct>
20
+ <verticalShareSuccess>1</verticalShareSuccess>
21
+ <verticalSharingTheme>counter_vertical</verticalSharingTheme>
22
+ <verticalAlignment>top_left</verticalAlignment>
23
+ <offset>150</offset>
24
+ <verticalSharingProvidersHidden>Facebook,Twitter,GooglePlus,LinkedIn,Pinterest,Print,Email</verticalSharingProvidersHidden>
25
+ <verticalCounterProvidersHidden>Facebook Like,Google+ +1,Twitter Tweet,Pinterest Pin it,Hybridshare</verticalCounterProvidersHidden>
26
+ </verticalSharing>
27
+ </sharing_options>
28
+ </default>
29
  <modules>
30
  <Loginradius_Sharing>
31
+ <version>1.1.0</version>
32
  </Loginradius_Sharing>
33
  </modules>
34
+ <frontend>
35
+ <layout>
36
  <updates>
37
  <sharing>
38
  <file>sharing.xml</file>
39
  </sharing>
40
  </updates>
41
+ </layout>
42
+ <translate>
43
+ <modules>
44
+ <Loginradius_Sharing>
45
+ <files>
46
+ <default>Loginradius_Sharing.csv</default>
47
+ </files>
48
+ </Loginradius_Sharing>
49
+ </modules>
50
+ </translate>
51
+ <routers>
52
+ <sharing>
53
+ <use>standard</use>
54
+ <args>
55
+ <module>Loginradius_Sharing</module>
56
+ <frontName>sharing</frontName>
57
+ </args>
58
+ </sharing>
59
+ </routers>
60
  </frontend>
61
+ <admin>
62
  <routers>
63
+ <sharing>
64
+ <use>admin</use>
65
+ <args>
66
+ <module>Loginradius_Sharing</module>
67
+ <frontName>sharing admin</frontName>
68
+ </args>
69
+ </sharing>
70
  </routers>
71
  </admin>
72
+ <adminhtml>
73
+ <acl>
74
+ <resources>
75
+ <admin>
76
+ <children>
77
+ <system>
78
+ <children>
79
+ <config>
80
+ <children>
81
+ <sharing_options>
82
+ <title>Store Social login Module Section</title>
83
+ </sharing_options>
84
+ </children>
85
+ </config>
86
+ </children>
87
+ </system>
88
+ </children>
89
+ </admin>
90
+ </resources>
91
+ </acl>
92
+ <acl>
93
+ <resources>
94
+ <all>
95
+ <title>Allow Everything</title>
96
+ </all>
97
+ <admin>
98
+ <children>
99
+ <Loginradius_Sharing>
100
+ <title>Sharing Module</title>
101
+ <sort_order>10</sort_order>
102
+ </Loginradius_Sharing>
103
+ </children>
104
+ </admin>
105
+ </resources>
106
+ </acl>
107
+ <layout>
108
+ <updates>
109
+ <sharing>
110
+ <file>loginradius_sharing.xml</file>
111
+ </sharing>
112
+ </updates>
113
+ </layout>
114
  </adminhtml>
115
+ <global>
116
+ <models>
117
  <sharing>
118
  <class>Loginradius_Sharing_Model</class>
119
  </sharing>
138
  </connection>
139
  </sharing_read>
140
  </resources>
141
+ <blocks>
142
+ <sharing>
143
+ <class>Loginradius_Sharing_Block</class>
144
+ </sharing>
145
+ </blocks>
146
+ <helpers>
147
+ <sharing>
148
+ <class>Loginradius_Sharing_Helper</class>
149
+ </sharing>
150
+ </helpers>
151
+ </global>
152
  </config>
app/code/community/Loginradius/Sharing/etc/system.xml CHANGED
@@ -34,7 +34,7 @@
34
  <appid translate="label">
35
  <label>LoginRadius API Key</label>
36
  <frontend_type>text</frontend_type>
37
- <comment><![CDATA[Paste LoginRadius API Key here. To get the API Key, login to <a href="http://www.loginradius.com" target="_blank">LoginRadius</a>]]></comment>
38
  <sort_order>15</sort_order>
39
  <show_in_default>1</show_in_default>
40
  <show_in_website>1</show_in_website>
34
  <appid translate="label">
35
  <label>LoginRadius API Key</label>
36
  <frontend_type>text</frontend_type>
37
+ <comment><![CDATA[You can leave it blank if you are Free Customer of LoginRadius and if you are paid customer then fill it to get the Advanced sharing features.]]></comment>
38
  <sort_order>15</sort_order>
39
  <show_in_default>1</show_in_default>
40
  <show_in_website>1</show_in_website>
app/design/frontend/{default → base}/default/layout/sharing.xml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/sharing/socialshare_head.phtml RENAMED
File without changes
app/design/frontend/{default → base}/default/template/sharing/socialshareproduct.phtml RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
  if( $this->horizontalShareEnable() == "1" && $this->horizontalShareProduct() == "1"){
3
  if(trim($this->sharingTitle()) != ""){
4
- echo '<div style="font-weight:bold">'.trim($this->sharingTitle()).'</div>';
5
  }
6
  echo '<div class="loginRadiusHorizontalSharing"></div>';
7
  }
1
  <?php
2
  if( $this->horizontalShareEnable() == "1" && $this->horizontalShareProduct() == "1"){
3
  if(trim($this->sharingTitle()) != ""){
4
+ echo '<div style="font-weight:bold;clear: both;">'.trim($this->sharingTitle()).'</div>';
5
  }
6
  echo '<div class="loginRadiusHorizontalSharing"></div>';
7
  }
app/design/frontend/{default → base}/default/template/sharing/socialsharesuccess.phtml RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
  if($this->horizontalShareEnable() == "1" && $this->horizontalShareSuccess() == "1"){
3
  if(trim($this->sharingTitle()) != ""){
4
- echo '<div style="font-weight:bold">'.trim($this->sharingTitle()).'</div>';
5
  }
6
  echo '<div class="loginRadiusHorizontalSharing"></div>';
7
  }
1
  <?php
2
  if($this->horizontalShareEnable() == "1" && $this->horizontalShareSuccess() == "1"){
3
  if(trim($this->sharingTitle()) != ""){
4
+ echo '<div style="font-weight:bold; clear: both;">'.trim($this->sharingTitle()).'</div>';
5
  }
6
  echo '<div class="loginRadiusHorizontalSharing"></div>';
7
  }
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LoginRadiusShare</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Social Sharing for Magento</summary>
10
  <description>Add Sharing to your Magento website</description>
11
- <notes>First release</notes>
12
  <authors><author><name>LoginRadius Team</name><user>LoginRadius</user><email>developers@loginradius.com</email></author></authors>
13
- <date>2013-09-17</date>
14
- <time>21:39:15</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Loginradius_sharing.xml" hash="0b94fa11070a3a05b1a01a0f3f5d9fc3"/></dir></target><target name="magecommunity"><dir name="Loginradius"><dir name="Sharing"><dir name="Block"><file name="Getconfig.php" hash="113a0807ebbdf6dfefe50f05873b1e7d"/><file name="Help.php" hash="e85544e385a7ab10256bbd787c0e7f89"/><file name="Horizontalsharing.php" hash="893a2d1148d1599de82f7bf00a2567c2"/><file name="Verticalsharing.php" hash="66580a6c7f315d92abc49a5325eeac9a"/></dir><dir name="Helper"><file name="Data.php" hash="e710976936bfdcac2158945a897ba68c"/></dir><dir name="Model"><file name="Sharing.php" hash="8edd61deabbae3d90446ab06b9683ec0"/><dir name="Source"><file name="HorizontalSharing.php" hash="6b2f73b19d9af825c5d4e847d5e81b7c"/><file name="SharingCount.php" hash="e0566e1bde3e930459092ca89b4c0403"/><file name="SharingVerticalAlignment.php" hash="6a9abe69788ee40281bc806d36c0040f"/><file name="VerticalSharing.php" hash="3565034adcf02afc466b8735bb43296b"/></dir><dir name="System"><dir name="Config"><file name="Help.php" hash="47a9799af08d8be6c77cf9eff169beb2"/><file name="Info.php" hash="933e6fdbaf62e9b5acdc0b30be1c5f82"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="662ab1545b3147d4066906e67ef2d6a3"/></dir><dir name="etc"><file name="config.xml" hash="12549b68bcfa0ba3cbda33392d53af78"/><file name="system.xml" hash="1cf19a1deb7c283d92e7563df6c197f0"/><file name="widget.xml" hash="ca111c2e4529d2170aa6efb8bc6b1139"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="loginradius_sharing.xml" hash="dc56e0733d8f28d07fbc0335ab56a248"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="sharing"><file name="socialshare_head.phtml" hash="1c94bb8c32d33ffbb6fea8ce9e9df7c1"/><file name="socialshareproduct.phtml" hash="00f52350a189e734d7a7b16853ba15f5"/><file name="socialsharesuccess.phtml" hash="d3ee67d1a57ceaa2279e624c111cc4f2"/></dir></dir><dir name="layout"><file name="sharing.xml" hash="2fdad8cc52e96d57bce48097bf85edb9"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="Loginradius"><dir name="Sharing"><dir name="css"><file name="admin-ui.css" hash="9080b9e650dfb0def2c5d9471f1474ef"/><file name="lrshare_iconsprite32.png" hash="a016ded3f25653acf2fa9dfab8a38103"/></dir><dir name="images"><dir name="Sharing"><dir name="Horizontal"><file name="horizonSharing16.png" hash="64188c128c8263c052153cf9708ac218"/><file name="horizonSharing32.png" hash="5e85ac81864885bcef5cc9691a9eba49"/><file name="horizontal.png" hash="6bb8038603bbf9cc70bac8365eebd7ba"/><file name="single-image-theme-large.png" hash="e6ff4a26149b631639b601d95e2dc361"/><file name="single-image-theme-small.png" hash="8c2b20fa0f276e33f3876783eb2cbd74"/><file name="vertical.png" hash="9c71cfb83ffb121a0ef89e263d474387"/></dir><dir name="Vertical"><file name="16VerticlewithBox.png" hash="73b3abf54889144e9188ffaa76cbb11f"/><file name="32VerticlewithBox.png" hash="37060e164ca4f7c00f430d5f1ab7eddd"/><file name="verticalhorizontal.png" hash="469ce5302d294dc987bdb070ef448446"/><file name="verticalvertical.png" hash="f59288edc8c87dde216b6616027aa72b"/></dir></dir><file name="loading_icon.gif" hash="fe9eade61eaab26da5acbefe396a30f0"/></dir><dir name="js"><file name="admin-ui.js" hash="522ac93db985d57b126ecc78778283f9"/><file name="jquery.js" hash="5654b0561c66ca9c0ad2a1dd75e5d9b8"/><file name="jquery.ui.sortable.min.js" hash="b847eafb05bcc6ef0908ff07dcd2b0f1"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LoginRadiusShare</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Social Sharing for Magento</summary>
10
  <description>Add Sharing to your Magento website</description>
11
+ <notes>Third release of social sharing</notes>
12
  <authors><author><name>LoginRadius Team</name><user>LoginRadius</user><email>developers@loginradius.com</email></author></authors>
13
+ <date>2014-12-23</date>
14
+ <time>07:07:13</time>
15
+ <contents><target name="magecommunity"><dir name="Loginradius"><dir name="Sharing"><dir name="Block"><file name="Getconfig.php" hash="113a0807ebbdf6dfefe50f05873b1e7d"/><file name="Help.php" hash="df23c2e8c6be9ddadc388f82d32e51b5"/><file name="Horizontalsharing.php" hash="893a2d1148d1599de82f7bf00a2567c2"/><file name="Verticalsharing.php" hash="66580a6c7f315d92abc49a5325eeac9a"/></dir><dir name="Helper"><file name="Data.php" hash="e710976936bfdcac2158945a897ba68c"/></dir><dir name="Model"><file name="Sharing.php" hash="8edd61deabbae3d90446ab06b9683ec0"/><dir name="Source"><file name="HorizontalSharing.php" hash="6b2f73b19d9af825c5d4e847d5e81b7c"/><file name="SharingCount.php" hash="e0566e1bde3e930459092ca89b4c0403"/><file name="SharingVerticalAlignment.php" hash="6a9abe69788ee40281bc806d36c0040f"/><file name="VerticalSharing.php" hash="3565034adcf02afc466b8735bb43296b"/></dir><dir name="System"><dir name="Config"><file name="Help.php" hash="47a9799af08d8be6c77cf9eff169beb2"/><file name="Info.php" hash="99c68282f2862b938f88a57b22092c67"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="662ab1545b3147d4066906e67ef2d6a3"/></dir><dir name="etc"><file name="config.xml" hash="b883d154c230d53aac0f6aabea2cbcd5"/><file name="system.xml" hash="b44849cf67b32712eba059023a750c8a"/><file name="widget.xml" hash="ca111c2e4529d2170aa6efb8bc6b1139"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="loginradius_sharing.xml" hash="dc56e0733d8f28d07fbc0335ab56a248"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="sharing.xml" hash="2fdad8cc52e96d57bce48097bf85edb9"/></dir><dir name="template"><dir name="sharing"><file name="socialshare_head.phtml" hash="1c94bb8c32d33ffbb6fea8ce9e9df7c1"/><file name="socialshareproduct.phtml" hash="439b51e1a645f796ba5f74391944a002"/><file name="socialsharesuccess.phtml" hash="2ed12339b4df90345964cafcb2a603da"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Loginradius_sharing.xml" hash="0b94fa11070a3a05b1a01a0f3f5d9fc3"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="Loginradius"><dir name="Sharing"><dir name="images"><dir name="media-pages"><file name="facebook.png" hash="a77fde5f83509192ad6827fc01502855"/><file name="google.png" hash="adaebd65b6f38ed79ef1598c88c30a0d"/><file name="linkedin.png" hash="b17944457a3654f1320d48de9c2fdcdc"/><file name="twitter.png" hash="11150d792156e123d4aace84ce5ab0fd"/><file name="youtube.png" hash="1496547f266f7b3c7634198eecf0e20a"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="Loginradius"><dir name="Sharing"><dir name="css"><file name="admin-ui.css" hash="9080b9e650dfb0def2c5d9471f1474ef"/><file name="lrshare_iconsprite32.png" hash="a016ded3f25653acf2fa9dfab8a38103"/></dir><dir name="images"><dir name="Sharing"><dir name="Horizontal"><file name="horizonSharing16.png" hash="d45c4fc3079d13da3518765a2c628023"/><file name="horizonSharing32.png" hash="8965430a7fda8aa5c0a63975d1f529a0"/><file name="horizontal.png" hash="6bb8038603bbf9cc70bac8365eebd7ba"/><file name="single-image-theme-large.png" hash="e6ff4a26149b631639b601d95e2dc361"/><file name="single-image-theme-small.png" hash="8c2b20fa0f276e33f3876783eb2cbd74"/><file name="vertical.png" hash="9c71cfb83ffb121a0ef89e263d474387"/></dir><dir name="Vertical"><file name="16VerticlewithBox.png" hash="03434efc41b14bf1656240a8ac51397f"/><file name="32VerticlewithBox.png" hash="2facc4dd2ba10ced41c724156a7d682d"/><file name="verticalhorizontal.png" hash="469ce5302d294dc987bdb070ef448446"/><file name="verticalvertical.png" hash="f59288edc8c87dde216b6616027aa72b"/></dir></dir><file name="loading_icon.gif" hash="fe9eade61eaab26da5acbefe396a30f0"/></dir><dir name="js"><file name="admin-ui.js" hash="f92fe30f33dae2bae24df63c89857b46"/><file name="jquery.js" hash="5654b0561c66ca9c0ad2a1dd75e5d9b8"/><file name="jquery.ui.sortable.min.js" hash="b847eafb05bcc6ef0908ff07dcd2b0f1"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/facebook.png ADDED
Binary file
skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/google.png ADDED
Binary file
skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/linkedin.png ADDED
Binary file
skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/twitter.png ADDED
Binary file
skin/adminhtml/default/default/Loginradius/Sharing/images/media-pages/youtube.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing16.png CHANGED
Binary file
skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing32.png CHANGED
Binary file
skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Vertical/16VerticlewithBox.png CHANGED
Binary file
skin/frontend/base/default/Loginradius/Sharing/images/Sharing/Vertical/32VerticlewithBox.png CHANGED
Binary file
skin/frontend/base/default/Loginradius/Sharing/js/admin-ui.js CHANGED
@@ -77,26 +77,34 @@ function loginRadiusSharingPrepareAdminUI(){
77
  var loginRadiusSharingProviderArray = loginRadiusSharingProvidersHidden.split(',');
78
  if(sharingModes[jj] == 'Sharing'){
79
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
 
80
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
81
  loginRadiusSharingShowIcon(true, document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j]);
 
82
  }
83
  }else{
84
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
 
85
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
 
86
  }
87
  }
88
  }else{
89
  if(sharingModes[jj] == 'Sharing'){
90
  var loginRadiusSharingProviderArray = ["Facebook", "GooglePlus", "Twitter", "Pinterest", "Email", "Print"];
91
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
 
92
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
93
  loginRadiusSharingShowIcon(true, document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j], true);
 
94
  }
95
  }else{
96
  var loginRadiusSharingProviderArray = ["Facebook Like", "Google+ +1", "Twitter Tweet", "Pinterest Pin it", "Hybridshare"];
97
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
 
98
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
99
  loginRadiusSharingPopulateCounter(document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j]);
 
100
  }
101
  }
102
  }
@@ -136,7 +144,8 @@ function loginRadiusSharingSharingLimit(elem, sharingType){
136
  function loginRadiusSharingPopulateCounter(elem, sharingType, lrDefault){
137
  // get providers hidden field value
138
  var providers = document.getElementById('sharing_options_'+sharingType+'Sharing_'+sharingType+'CounterProvidersHidden');
139
- if(elem.checked){
 
140
  // add selected providers in the hiddem field value
141
  if(typeof elem.checked != "undefined" || lrDefault == true){
142
  if(providers.value == ""){
@@ -156,60 +165,108 @@ function loginRadiusSharingPopulateCounter(elem, sharingType, lrDefault){
156
  }
157
  }
158
  }
 
159
  }
160
  // show selected providers in rearrange option
161
  function loginRadiusSharingShowIcon(pageRefresh, elem, sharingType, lrDefault){
162
  loginRadiusSharingSharingLimit(elem, sharingType);
163
  // get providers hidden field value
164
  var providers = document.getElementById('sharing_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden');
165
- if(elem.checked){
166
- // get reference to "rearrange providers" <ul> element
167
- var ul = document.getElementById('loginRadius'+sharingType+'RearrangeSharing');
168
- // if <ul> is not already created
169
- if(ul == null){
170
- // create <ul> element
171
- var ul = document.createElement('ul');
172
- ul.setAttribute('id', 'loginRadius'+sharingType+'RearrangeSharing');
173
- $loginRadiusSharingJquery(ul).sortable({
174
- update: function(e, ui) {
175
- var val = $loginRadiusSharingJquery(this).children().map(function() {
176
- return $loginRadiusSharingJquery(this).attr('title');
177
- }).get().join();
178
- $loginRadiusSharingJquery(providers).val(val);
179
- },
180
- revert: true});
181
- }
182
- // create list items
183
- var listItem = document.createElement('li');
184
- listItem.setAttribute('id', 'loginRadius'+sharingType+'LI'+elem.value);
185
- listItem.setAttribute('title', elem.value);
186
- listItem.setAttribute('class', 'lrshare_iconsprite32 lrshare_'+elem.value.toLowerCase());
187
- ul.appendChild(listItem);
188
- // add selected providers in the hiddem field value
189
- if(!pageRefresh || lrDefault == true){
190
- if(providers.value == ""){
191
- providers.value = elem.value;
192
- }else{
193
- providers.value += ","+elem.value;
194
- }
195
- }
196
- // append <ul> to the <td>
197
- var rearrangeRow = document.getElementById('row_sharing_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden');
198
- var rearrangeTd = rearrangeRow.getElementsByTagName('td');
199
- rearrangeTd[1].appendChild(ul);
200
- }else{
201
- var remove = document.getElementById('loginRadius'+sharingType+'LI'+elem.value);
202
- if(remove){
203
- remove.parentNode.removeChild(remove);
204
- }
205
- if(providers.value.indexOf(',') == -1){
206
- providers.value = providers.value.replace(elem.value, "");
207
- }else{
208
- if(providers.value.indexOf(","+elem.value) == -1){
209
- providers.value = providers.value.replace(elem.value+",", "");
210
- }else{
211
- providers.value = providers.value.replace(","+elem.value, "");
212
- }
213
- }
214
- }
215
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  var loginRadiusSharingProviderArray = loginRadiusSharingProvidersHidden.split(',');
78
  if(sharingModes[jj] == 'Sharing'){
79
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
80
+ if(document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i])){
81
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
82
  loginRadiusSharingShowIcon(true, document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j]);
83
+ }
84
  }
85
  }else{
86
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
87
+ if(document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i])){
88
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
89
+ }
90
  }
91
  }
92
  }else{
93
  if(sharingModes[jj] == 'Sharing'){
94
  var loginRadiusSharingProviderArray = ["Facebook", "GooglePlus", "Twitter", "Pinterest", "Email", "Print"];
95
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
96
+ if(document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i])){
97
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
98
  loginRadiusSharingShowIcon(true, document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j], true);
99
+ }
100
  }
101
  }else{
102
  var loginRadiusSharingProviderArray = ["Facebook Like", "Google+ +1", "Twitter Tweet", "Pinterest Pin it", "Hybridshare"];
103
  for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
104
+ if(document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i])){
105
  document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
106
  loginRadiusSharingPopulateCounter(document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j]);
107
+ }
108
  }
109
  }
110
  }
144
  function loginRadiusSharingPopulateCounter(elem, sharingType, lrDefault){
145
  // get providers hidden field value
146
  var providers = document.getElementById('sharing_options_'+sharingType+'Sharing_'+sharingType+'CounterProvidersHidden');
147
+ if(elem.value != 1){
148
+ if(elem.checked){
149
  // add selected providers in the hiddem field value
150
  if(typeof elem.checked != "undefined" || lrDefault == true){
151
  if(providers.value == ""){
165
  }
166
  }
167
  }
168
+ }
169
  }
170
  // show selected providers in rearrange option
171
  function loginRadiusSharingShowIcon(pageRefresh, elem, sharingType, lrDefault){
172
  loginRadiusSharingSharingLimit(elem, sharingType);
173
  // get providers hidden field value
174
  var providers = document.getElementById('sharing_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden');
175
+ if(elem.value != 1){
176
+ if(elem.checked){
177
+ // get reference to "rearrange providers" <ul> element
178
+ var ul = document.getElementById('loginRadius'+sharingType+'RearrangeSharing');
179
+ // if <ul> is not already created
180
+ if(ul == null){
181
+ // create <ul> element
182
+ var ul = document.createElement('ul');
183
+ ul.setAttribute('id', 'loginRadius'+sharingType+'RearrangeSharing');
184
+ $loginRadiusSharingJquery(ul).sortable({
185
+ update: function(e, ui) {
186
+ var val = $loginRadiusSharingJquery(this).children().map(function() {
187
+ return $loginRadiusSharingJquery(this).attr('title');
188
+ }).get().join();
189
+ $loginRadiusSharingJquery(providers).val(val);
190
+ },
191
+ revert: true});
192
+ }
193
+ // create list items
194
+ var listItem = document.createElement('li');
195
+ listItem.setAttribute('id', 'loginRadius'+sharingType+'LI'+elem.value);
196
+ listItem.setAttribute('title', elem.value);
197
+ listItem.setAttribute('class', 'lrshare_iconsprite32 lrshare_'+elem.value.toLowerCase());
198
+ ul.appendChild(listItem);
199
+ // add selected providers in the hiddem field value
200
+ if(!pageRefresh || lrDefault == true){
201
+ if(providers.value == ""){
202
+ providers.value = elem.value;
203
+ }else{
204
+ providers.value += ","+elem.value;
205
+ }
206
+ }
207
+ // append <ul> to the <td>
208
+ var rearrangeRow = document.getElementById('row_sharing_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden');
209
+ var rearrangeTd = rearrangeRow.getElementsByTagName('td');
210
+ rearrangeTd[1].appendChild(ul);
211
+ }else{
212
+ var remove = document.getElementById('loginRadius'+sharingType+'LI'+elem.value);
213
+ if(remove){
214
+ remove.parentNode.removeChild(remove);
215
+ }
216
+ if(providers.value.indexOf(',') == -1){
217
+ providers.value = providers.value.replace(elem.value, "");
218
+ }else{
219
+ if(providers.value.indexOf(","+elem.value) == -1){
220
+ providers.value = providers.value.replace(elem.value+",", "");
221
+ }else{
222
+ providers.value = providers.value.replace(","+elem.value, "");
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+
229
+ function loginradiusChangeInheritCheckbox(shareId1,shareId2){
230
+ if($loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"Providers_inherit").is(':checked')){
231
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"ProvidersHidden_inherit").attr('checked',true);
232
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"ProvidersHidden").attr("disabled", true);
233
+ }else{
234
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"ProvidersHidden_inherit").attr('checked',false);
235
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"ProvidersHidden").attr("disabled", false);
236
+ }
237
+ }
238
+
239
+ function loginradiusChangeInheritCheckboxHidden(shareId1,shareId2){
240
+ if($loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"ProvidersHidden_inherit").is(':checked')){
241
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"Providers_inherit").attr('checked',true);
242
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"ProvidersHidden").attr("disabled", true);
243
+ }else{
244
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"Providers_inherit").attr('checked',false);
245
+ $loginRadiusSharingJquery("#sharing_options_"+shareId1+"_"+shareId2+"ProvidersHidden").attr("disabled", false);
246
+ }
247
+ }
248
+
249
+ $loginRadiusSharingJquery(document).ready(function(){
250
+ loginradiusChangeInheritCheckboxHidden('horizontalSharing','horizontalCounter');
251
+ loginradiusChangeInheritCheckboxHidden('verticalSharing','verticalCounter');
252
+ loginradiusChangeInheritCheckboxHidden('horizontalSharing','horizontalSharing');
253
+ loginradiusChangeInheritCheckboxHidden('verticalSharing','verticalSharing');
254
+ $loginRadiusSharingJquery("#sharing_options_horizontalSharing_horizontalCounterProviders_inherit").click(function(){
255
+ loginradiusChangeInheritCheckbox('horizontalSharing','horizontalCounter');
256
+ });
257
+ $loginRadiusSharingJquery("#sharing_options_verticalSharing_verticalCounterProviders_inherit").click(function(){
258
+ loginradiusChangeInheritCheckbox('verticalSharing','verticalCounter');
259
+ });
260
+ $loginRadiusSharingJquery("#sharing_options_horizontalSharing_horizontalSharingProviders_inherit").click(function(){
261
+ loginradiusChangeInheritCheckbox('horizontalSharing','horizontalSharing');
262
+ });
263
+ $loginRadiusSharingJquery("#sharing_options_verticalSharing_verticalSharingProviders_inherit").click(function(){
264
+ loginradiusChangeInheritCheckbox('verticalSharing','verticalSharing');
265
+ });
266
+ $loginRadiusSharingJquery("#sharing_options_horizontalSharing_horizontalSharingProvidersHidden_inherit").click(function(){
267
+ loginradiusChangeInheritCheckboxHidden('horizontalSharing','horizontalSharing');
268
+ });
269
+ $loginRadiusSharingJquery("#sharing_options_verticalSharing_verticalSharingProvidersHidden_inherit").click(function(){
270
+ loginradiusChangeInheritCheckboxHidden('verticalSharing','verticalSharing');
271
+ });
272
+ });