LoginRadius - Version 3.5.0

Version Notes

Eleventh release of social login

Download this release

Release Info

Developer LoginRadius Team
Extension LoginRadius
Version 3.5.0
Comparing to
See all releases


Code changes from version 3.1.0 to 3.5.0

Files changed (53) hide show
  1. app/code/community/Loginradius/Sociallogin/Block/Counter.php +0 -17
  2. app/code/community/Loginradius/Sociallogin/Block/Info.php +0 -15
  3. app/code/community/Loginradius/Sociallogin/Block/Share.php +0 -17
  4. app/code/community/Loginradius/Sociallogin/Block/Sociallogin.php +46 -46
  5. app/code/community/Loginradius/Sociallogin/Block/horizontalsharing.php +17 -0
  6. app/code/community/Loginradius/Sociallogin/Block/verticalsharing.php +17 -0
  7. app/code/community/Loginradius/Sociallogin/Model/Source/CounterProviders.php +0 -18
  8. app/code/community/Loginradius/Sociallogin/Model/Source/CounterTheme.php +0 -11
  9. app/code/community/Loginradius/Sociallogin/Model/Source/CounterVerticalAlignment.php +0 -13
  10. app/code/community/Loginradius/Sociallogin/Model/Source/HorizontalCounter.php +0 -11
  11. app/code/community/Loginradius/Sociallogin/Model/Source/HorizontalSharing.php +6 -4
  12. app/code/community/Loginradius/Sociallogin/Model/Source/Iconsize.php +10 -0
  13. app/code/community/Loginradius/Sociallogin/Model/Source/SharingProviders.php +0 -26
  14. app/code/community/Loginradius/Sociallogin/Model/Source/SharingTheme.php +0 -11
  15. app/code/community/Loginradius/Sociallogin/Model/Source/VerticalCounter.php +0 -11
  16. app/code/community/Loginradius/Sociallogin/Model/Source/VerticalSharing.php +4 -2
  17. app/code/community/Loginradius/Sociallogin/Model/System/Config/Info.php +51 -7
  18. app/code/community/Loginradius/Sociallogin/controllers/IndexController.php +129 -60
  19. app/code/community/Loginradius/Sociallogin/etc/config.xml +23 -24
  20. app/code/community/Loginradius/Sociallogin/etc/system.xml +117 -117
  21. app/code/community/Loginradius/Sociallogin/etc/widget.xml +8 -8
  22. app/code/community/Loginradius/Sociallogin/sql/sociallogin_setup/{mysql4-install-3.1.0.php → mysql4-install-3.5.0.php} +0 -0
  23. app/design/adminhtml/default/default/layout/loginradius_sociallogin.xml +2 -2
  24. app/design/frontend/default/default/layout/sociallogin.xml +1 -5
  25. app/design/frontend/default/default/template/sociallogin/socialcounterproduct.phtml +0 -8
  26. app/design/frontend/default/default/template/sociallogin/socialcountersuccess.phtml +0 -8
  27. app/design/frontend/default/default/template/sociallogin/socialshare_head.phtml +101 -88
  28. app/design/frontend/default/default/template/sociallogin/socialshareproduct.phtml +6 -3
  29. app/design/frontend/default/default/template/sociallogin/socialsharesuccess.phtml +6 -3
  30. package.xml +5 -5
  31. skin/frontend/base/default/Loginradius/Sociallogin/css/admin-ui.css +28 -49
  32. skin/frontend/base/default/Loginradius/Sociallogin/images/Counter/verticalhorizontal.png +0 -0
  33. skin/frontend/base/default/Loginradius/Sociallogin/images/Counter/verticalvertical.png +0 -0
  34. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/amazon.png +0 -0
  35. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/github.png +0 -0
  36. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/kaixin.png +0 -0
  37. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/odnoklassniki.png +0 -0
  38. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/paypal.png +0 -0
  39. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/qq.png +0 -0
  40. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/renren.png +0 -0
  41. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/salesforce.png +0 -0
  42. skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/{Virgilio.png → virgilio.png} +0 -0
  43. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{horizonSharing16.png → Horizontal/horizonSharing16.png} +0 -0
  44. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{horizonSharing32.png → Horizontal/horizonSharing32.png} +0 -0
  45. skin/frontend/base/default/Loginradius/Sociallogin/images/{Counter → Sharing/Horizontal}/horizontal.png +0 -0
  46. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{single-image-theme-large.png → Horizontal/single-image-theme-large.png} +0 -0
  47. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{single-image-theme-small.png → Horizontal/single-image-theme-small.png} +0 -0
  48. skin/frontend/base/default/Loginradius/Sociallogin/images/{Counter → Sharing/Horizontal}/vertical.png +0 -0
  49. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{16VerticlewithBox.png → Vertical/16VerticlewithBox.png} +0 -0
  50. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{32VerticlewithBox.png → Vertical/32VerticlewithBox.png} +0 -0
  51. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/Vertical/verticalhorizontal.png +0 -0
  52. skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/Vertical/verticalvertical.png +0 -0
  53. skin/frontend/base/default/Loginradius/Sociallogin/js/admin-ui.js +141 -119
app/code/community/Loginradius/Sociallogin/Block/Counter.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Block_Counter extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface {
3
- private $loginRadiusCounter;
4
- public function __construct(){
5
- $this->loginRadiusCounter = new Loginradius_Sociallogin_Block_Sociallogin();
6
- }
7
- protected function _toHtml() {
8
- $content = "";
9
- if ($this->loginRadiusCounter->counterEnable() == "1" ){
10
- $content = "<div class='lrcounter_simplebox'></div>";
11
- }
12
- return $content;
13
- }
14
- protected function _prepareLayout() {
15
- parent::_prepareLayout();
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Block/Info.php DELETED
@@ -1,15 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Block_Info extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
3
- public function render(Varien_Data_Form_Element_Abstract $element) {
4
- $html = $this->_getHeaderHtml($element);
5
- $html.= $this->_getFieldHtml($element);
6
- $html .= $this->_getFooterHtml($element);
7
- return $html;
8
- }
9
- protected function _getFieldHtml($fieldset) {
10
- $content = '<p>Social Login for Magento ' . Mage::getConfig()->getModuleConfig("Loginradius_Sociallogin")->version . '</p>';
11
- $content.= '<p>This extension is developed by <a href="http://loginradius.com/" target="_blank">LoginRadius</a>. Please refer to our <a href="http://support.loginradius.com/customer/portal/articles/682910-how-do-i-implement-social-login-on-my-magento-website-" target="_blank">Documentation</a> on how to install and configure this extension.</p>';
12
- $content.= '<p>Copyright &copy ' . date("Y") . ' <a href="http://loginradius.com/" target="_blank">LoginRadius, Inc.</a></p>';
13
- return $content;
14
- }
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Block/Share.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Block_Share extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface {
3
- private $loginRadiusShare;
4
- public function __construct(){
5
- $this->loginRadiusShare = new Loginradius_Sociallogin_Block_Sociallogin();
6
- }
7
- protected function _toHtml() {
8
- $content = "";
9
- if ($this->loginRadiusShare->shareEnable() == "1" ){
10
- $content = "<div class='lrsharecontainer'></div>";
11
- }
12
- return $content;
13
- }
14
- protected function _prepareLayout() {
15
- parent::_prepareLayout();
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Block/Sociallogin.php CHANGED
@@ -3,7 +3,7 @@ class Loginradius_Sociallogin_Block_Sociallogin extends Mage_Core_Block_Template
3
  {
4
  protected function _construct(){
5
  parent::_construct();
6
- if( $this->shareEnable() == "1" || $this->counterEnable() == "1" ){
7
  $this->setTemplate('sociallogin/socialshare.phtml');
8
  }
9
  }
@@ -67,6 +67,18 @@ class Loginradius_Sociallogin_Block_Sociallogin extends Mage_Core_Block_Template
67
  public function getLoginRadiusTitle()
68
  {
69
  return Mage::getStoreConfig('sociallogin_options/messages/loginradius_title');
 
 
 
 
 
 
 
 
 
 
 
 
70
  }
71
  public function getRedirectOption(){
72
  return Mage::getStoreConfig('sociallogin_options/messages/redirect');
@@ -76,6 +88,9 @@ class Loginradius_Sociallogin_Block_Sociallogin extends Mage_Core_Block_Template
76
  }
77
  public function getProfileFieldsRequired(){
78
  return Mage::getStoreConfig('sociallogin_options/email_settings/profileFieldsRequired');
 
 
 
79
  }
80
  public function getEmailRequired(){
81
  return Mage::getStoreConfig('sociallogin_options/email_settings/emailrequired');
@@ -104,65 +119,50 @@ class Loginradius_Sociallogin_Block_Sociallogin extends Mage_Core_Block_Template
104
  public function notifyAdminText(){
105
  return Mage::getStoreConfig('sociallogin_options/email_settings/notifyAdminText');
106
  }
107
- public function shareEnable(){
108
- return Mage::getStoreConfig('sociallogin_options/sharing/shareEnable');
109
  }
110
- public function shareProduct(){
111
- return Mage::getStoreConfig('sociallogin_options/sharing/shareProduct');
112
  }
113
- public function shareSuccess(){
114
- return Mage::getStoreConfig('sociallogin_options/sharing/shareSuccess');
115
  }
116
- public function sharingTitle(){
117
- return Mage::getStoreConfig('sociallogin_options/sharing/sharingTitle');
118
- }
119
- public function sharingTheme(){
120
- return Mage::getStoreConfig('sociallogin_options/sharing/sharingTheme');
121
- }
122
- public function horizontalSharing(){
123
- return Mage::getStoreConfig('sociallogin_options/sharing/horizontalSharing');
124
- }
125
- public function verticalSharing(){
126
- return Mage::getStoreConfig('sociallogin_options/sharing/verticalSharing');
127
  }
128
- public function sharingVerticalAlignment(){
129
- return Mage::getStoreConfig('sociallogin_options/sharing/sharingVerticalAlignment');
130
  }
131
- public function sharingOffset(){
132
- return Mage::getStoreConfig('sociallogin_options/sharing/sharingOffset');
133
  }
134
- public function sharingProviders(){
135
- return Mage::getStoreConfig('sociallogin_options/sharing/sharingProvidersHidden');
136
- }
137
- public function counterEnable(){
138
- return Mage::getStoreConfig('sociallogin_options/counter/counterEnable');
139
- }
140
- public function counterProduct(){
141
- return Mage::getStoreConfig('sociallogin_options/counter/counterProduct');
142
  }
143
- public function counterSuccess(){
144
- return Mage::getStoreConfig('sociallogin_options/counter/counterSuccess');
145
  }
146
- public function counterTitle(){
147
- return Mage::getStoreConfig('sociallogin_options/counter/counterTitle');
148
  }
149
- public function counterTheme(){
150
- return Mage::getStoreConfig('sociallogin_options/counter/counterTheme');
151
  }
152
- public function horizontalCounter(){
153
- return Mage::getStoreConfig('sociallogin_options/counter/horizontalCounter');
154
  }
155
- public function verticalCounter(){
156
- return Mage::getStoreConfig('sociallogin_options/counter/verticalCounter');
157
  }
158
- public function counterVerticalAlignment(){
159
- return Mage::getStoreConfig('sociallogin_options/counter/counterVerticalAlignment');
160
  }
161
- public function counterOffset(){
162
- return Mage::getStoreConfig('sociallogin_options/counter/counterOffset');
163
  }
164
- public function counterProviders(){
165
- return Mage::getStoreConfig('sociallogin_options/counter/counterProvidersHidden');
166
  }
167
  public function getCallBack(){
168
  return Mage::getStoreConfig('sociallogin_options/messages/call');
3
  {
4
  protected function _construct(){
5
  parent::_construct();
6
+ if( $this->horizontalShareEnable() == "1" || $this->verticalShareEnable() == "1" ){
7
  $this->setTemplate('sociallogin/socialshare.phtml');
8
  }
9
  }
67
  public function getLoginRadiusTitle()
68
  {
69
  return Mage::getStoreConfig('sociallogin_options/messages/loginradius_title');
70
+ }
71
+ public function iconSize()
72
+ {
73
+ return Mage::getStoreConfig('sociallogin_options/messages/iconSize');
74
+ }
75
+ public function iconsPerRow()
76
+ {
77
+ return Mage::getStoreConfig('sociallogin_options/messages/iconsPerRow');
78
+ }
79
+ public function backgroundColor()
80
+ {
81
+ return Mage::getStoreConfig('sociallogin_options/messages/backgroundColor');
82
  }
83
  public function getRedirectOption(){
84
  return Mage::getStoreConfig('sociallogin_options/messages/redirect');
88
  }
89
  public function getProfileFieldsRequired(){
90
  return Mage::getStoreConfig('sociallogin_options/email_settings/profileFieldsRequired');
91
+ }
92
+ public function updateProfileData(){
93
+ return Mage::getStoreConfig('sociallogin_options/email_settings/updateProfileData');
94
  }
95
  public function getEmailRequired(){
96
  return Mage::getStoreConfig('sociallogin_options/email_settings/emailrequired');
119
  public function notifyAdminText(){
120
  return Mage::getStoreConfig('sociallogin_options/email_settings/notifyAdminText');
121
  }
122
+ public function horizontalShareEnable(){
123
+ return Mage::getStoreConfig('sociallogin_options/horizontalSharing/horizontalShareEnable');
124
  }
125
+ public function verticalShareEnable(){
126
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/verticalShareEnable');
127
  }
128
+ public function horizontalShareProduct(){
129
+ return Mage::getStoreConfig('sociallogin_options/horizontalSharing/horizontalShareProduct');
130
  }
131
+ public function verticalShareProduct(){
132
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/verticalShareProduct');
 
 
 
 
 
 
 
 
 
133
  }
134
+ public function horizontalShareSuccess(){
135
+ return Mage::getStoreConfig('sociallogin_options/horizontalSharing/horizontalShareSuccess');
136
  }
137
+ public function verticalShareSuccess(){
138
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/verticalShareSuccess');
139
  }
140
+ public function sharingTitle(){
141
+ return Mage::getStoreConfig('sociallogin_options/horizontalSharing/sharingTitle');
 
 
 
 
 
 
142
  }
143
+ public function horizontalSharingTheme(){
144
+ return Mage::getStoreConfig('sociallogin_options/horizontalSharing/horizontalSharingTheme');
145
  }
146
+ public function verticalSharingTheme(){
147
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/verticalSharingTheme');
148
  }
149
+ public function verticalAlignment(){
150
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/verticalAlignment');
151
  }
152
+ public function offset(){
153
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/offset');
154
  }
155
+ public function horizontalSharingProviders(){
156
+ return Mage::getStoreConfig('sociallogin_options/horizontalSharing/horizontalSharingProvidersHidden');
157
  }
158
+ public function verticalSharingProviders(){
159
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/verticalSharingProvidersHidden');
160
  }
161
+ public function horizontalCounterProviders(){
162
+ return Mage::getStoreConfig('sociallogin_options/horizontalSharing/horizontalCounterProvidersHidden');
163
  }
164
+ public function verticalCounterProviders(){
165
+ return Mage::getStoreConfig('sociallogin_options/verticalSharing/verticalCounterProvidersHidden');
166
  }
167
  public function getCallBack(){
168
  return Mage::getStoreConfig('sociallogin_options/messages/call');
app/code/community/Loginradius/Sociallogin/Block/horizontalsharing.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Loginradius_Sociallogin_Block_Horizontalsharing extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface {
3
+ private $loginRadiusHorizontalSharing;
4
+ public function __construct(){
5
+ $this->loginRadiusHorizontalSharing = new Loginradius_Sociallogin_Block_Sociallogin();
6
+ }
7
+ protected function _toHtml() {
8
+ $content = "";
9
+ if ($this->loginRadiusHorizontalSharing->horizontalShareEnable() == "1" ){
10
+ $content = "<div class='loginRadiusHorizontalSharing'></div>";
11
+ }
12
+ return $content;
13
+ }
14
+ protected function _prepareLayout() {
15
+ parent::_prepareLayout();
16
+ }
17
+ }
app/code/community/Loginradius/Sociallogin/Block/verticalsharing.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Loginradius_Sociallogin_Block_Verticalsharing extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface {
3
+ private $loginRadiusVerticalSharing;
4
+ public function __construct(){
5
+ $this->loginRadiusVerticalSharing = new Loginradius_Sociallogin_Block_Sociallogin();
6
+ }
7
+ protected function _toHtml() {
8
+ $content = "";
9
+ if ($this->loginRadiusVerticalSharing->verticalShareEnable() == "1" ){
10
+ $content = "<div class='loginRadiusVerticalSharing'></div>";
11
+ }
12
+ return $content;
13
+ }
14
+ protected function _prepareLayout() {
15
+ parent::_prepareLayout();
16
+ }
17
+ }
app/code/community/Loginradius/Sociallogin/Model/Source/CounterProviders.php DELETED
@@ -1,18 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Model_Source_CounterProviders
3
- {
4
- public function toOptionArray()
5
- {
6
- $result = array();
7
- $result[] = array('value' => 'Facebook Like', 'label'=>'Facebook Like');
8
- $result[] = array('value' => 'Facebook Recommend', 'label'=>'Facebook Recommend');
9
- $result[] = array('value' => 'Facebook Send', 'label'=>'Facebook Send');
10
- $result[] = array('value' => 'Google+ +1', 'label'=>'Google+ +1');
11
- $result[] = array('value' => 'Google+ Share', 'label'=>'Google+ Share');
12
- $result[] = array('value' => 'LinkedIn Share', 'label'=>'LinkedIn Share');
13
- $result[] = array('value' => 'Twitter Tweet', 'label'=>'Twitter Tweet');
14
- $result[] = array('value' => 'StumbleUpon Badge', 'label'=>'StumbleUpon Badge');
15
- $result[] = array('value' => 'Reddit', 'label'=>'Reddit');
16
- return $result;
17
- }
18
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Model/Source/CounterTheme.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Model_Source_CounterTheme
3
- {
4
- public function toOptionArray()
5
- {
6
- $result = array();
7
- $result[] = array('value' => 'horizontal', 'label'=>'Horizontal');
8
- $result[] = array('value' => 'vertical', 'label'=>'Vertical');
9
- return $result;
10
- }
11
- }
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Model/Source/CounterVerticalAlignment.php DELETED
@@ -1,13 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Model_Source_CounterVerticalAlignment
3
- {
4
- public function toOptionArray()
5
- {
6
- $result = array();
7
- $result[] = array('value' => 'top_left', 'label'=>'Top Left');
8
- $result[] = array('value' => 'top_right', 'label'=>'Top Right');
9
- $result[] = array('value' => 'bottom_left', 'label'=>'Bottom Left');
10
- $result[] = array('value' => 'bottom_right', 'label'=>'Bottom Right');
11
- return $result;
12
- }
13
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Model/Source/HorizontalCounter.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Model_Source_HorizontalCounter
3
- {
4
- public function toOptionArray()
5
- {
6
- $result = array();
7
- $result[] = array('value' => 'vertical', 'class' => 'loginradius_radio', 'label'=>'<img style="width: 276px" src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Counter'.DS.'vertical.png',array('_area'=>'frontend')).'" /><br />');
8
- $result[] = array('value' => 'horizontal', 'class' => 'loginradius_radio', 'label'=>'<img style="width: 279px" src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Counter'.DS.'horizontal.png',array('_area'=>'frontend')).'" /><br />');
9
- return $result;
10
- }
11
- }
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Model/Source/HorizontalSharing.php CHANGED
@@ -4,10 +4,12 @@
4
  public function toOptionArray()
5
  {
6
  $result = array();
7
- $result[] = array('value' => '32', 'label'=>'<img width="274" src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Sharing'.DS.'horizonSharing32.png',array('_area'=>'frontend')).'" /><br />');
8
- $result[] = array('value' => '16', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Sharing'.DS.'horizonSharing16.png',array('_area'=>'frontend')).'" /><br />');
9
- $result[] = array('value' => 'single_large', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Sharing'.DS.'single-image-theme-large.png',array('_area'=>'frontend')).'" /><br />');
10
- $result[] = array('value' => 'single_small', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Sharing'.DS.'single-image-theme-small.png',array('_area'=>'frontend')).'" />');
 
 
11
  return $result;
12
  }
13
  }
4
  public function toOptionArray()
5
  {
6
  $result = array();
7
+ $result[] = array('value' => '32', 'label'=>'<img width="274" src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Horizontal/horizonSharing32.png',array('_area'=>'frontend')).'" /><div style="clear:both"></div>');
8
+ $result[] = array('value' => '16', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Horizontal/horizonSharing16.png',array('_area'=>'frontend')).'" /><div style="clear:both"></div>');
9
+ $result[] = array('value' => 'single_large', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Horizontal/single-image-theme-large.png',array('_area'=>'frontend')).'" /><div style="clear:both"></div>');
10
+ $result[] = array('value' => 'single_small', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Horizontal/single-image-theme-small.png',array('_area'=>'frontend')).'" /><div style="clear:both"></div>');
11
+ $result[] = array('value' => 'counter_vertical', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Horizontal/vertical.png',array('_area'=>'frontend')).'" /><div style="clear:both"></div>');
12
+ $result[] = array('value' => 'counter_horizontal', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Horizontal/horizontal.png',array('_area'=>'frontend')).'" />');
13
  return $result;
14
  }
15
  }
app/code/community/Loginradius/Sociallogin/Model/Source/Iconsize.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Loginradius_Sociallogin_Model_Source_Iconsize
3
+ {
4
+ public function toOptionArray(){
5
+ $result = array();
6
+ $result[] = array('value' => 'medium', 'label'=>'Medium<br/>');
7
+ $result[] = array('value' => 'small', 'label'=>'Small<br/>');
8
+ return $result;
9
+ }
10
+ }
app/code/community/Loginradius/Sociallogin/Model/Source/SharingProviders.php DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Model_Source_SharingProviders
3
- {
4
- public function toOptionArray()
5
- {
6
- $result = array();
7
- $result[] = array('value' => 'facebook', 'label'=>'Facebook');
8
- $result[] = array('value' => 'googleplus', 'label'=>'Google Plus');
9
- $result[] = array('value' => 'twitter', 'label'=>'Twitter');
10
- $result[] = array('value' => 'google', 'label'=>'Google');
11
- $result[] = array('value' => 'yahoo', 'label'=>'Yahoo');
12
- $result[] = array('value' => 'reddit', 'label'=>'Reddit');
13
- $result[] = array('value' => 'email', 'label'=>'Email');
14
- $result[] = array('value' => 'print', 'label'=>'Print');
15
- $result[] = array('value' => 'tumblr', 'label'=>'Tumblr');
16
- $result[] = array('value' => 'linkedin', 'label'=>'LinkedIn');
17
- $result[] = array('value' => 'live', 'label'=>'Live');
18
- $result[] = array('value' => 'vkontakte', 'label'=>'Vkontakte');
19
- $result[] = array('value' => 'digg', 'label'=>'Digg');
20
- $result[] = array('value' => 'myspace', 'label'=>'Myspace');
21
- $result[] = array('value' => 'delicious', 'label'=>'Delicious');
22
- $result[] = array('value' => 'hyves', 'label'=>'Hyves');
23
- $result[] = array('value' => 'dotnetkicks', 'label'=>'DotNetKicks');
24
- return $result;
25
- }
26
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Model/Source/SharingTheme.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Model_Source_SharingTheme
3
- {
4
- public function toOptionArray()
5
- {
6
- $result = array();
7
- $result[] = array('value' => 'horizontal', 'label'=>'Horizontal');
8
- $result[] = array('value' => 'vertical', 'label'=>'Vertical');
9
- return $result;
10
- }
11
- }
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Model/Source/VerticalCounter.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- class Loginradius_Sociallogin_Model_Source_VerticalCounter
3
- {
4
- public function toOptionArray()
5
- {
6
- $result = array();
7
- $result[] = array('value' => 'horizontal', 'class' => 'loginradius_radio', 'label'=>'<img style="margin-right:5px" src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Counter'.DS.'verticalhorizontal.png',array('_area'=>'frontend')).'" /><br />');
8
- $result[] = array('value' => 'vertical', 'class' => 'loginradius_radio', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Counter'.DS.'verticalvertical.png',array('_area'=>'frontend')).'" /><br />');
9
- return $result;
10
- }
11
- }
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Loginradius/Sociallogin/Model/Source/VerticalSharing.php CHANGED
@@ -4,8 +4,10 @@
4
  public function toOptionArray()
5
  {
6
  $result = array();
7
- $result[] = array('value' => '32', 'label'=>'<img style="margin-right:5px" src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Sharing'.DS.'32VerticlewithBox.png',array('_area'=>'frontend')).'" /><br />');
8
- $result[] = array('value' => '16', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius'.DS.'Sociallogin'.DS.'images'.DS.'Sharing'.DS.'16VerticlewithBox.png',array('_area'=>'frontend')).'" /><br />');
 
 
9
  return $result;
10
  }
11
  }
4
  public function toOptionArray()
5
  {
6
  $result = array();
7
+ $result[] = array('value' => '32', 'label'=>'<img style="margin-right:5px" src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Vertical/32VerticlewithBox.png',array('_area'=>'frontend')).'" /><br />');
8
+ $result[] = array('value' => '16', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Vertical/16VerticlewithBox.png',array('_area'=>'frontend')).'" /><br />');
9
+ $result[] = array('value' => 'counter_vertical', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Vertical/verticalvertical.png',array('_area'=>'frontend')).'" /><br />');
10
+ $result[] = array('value' => 'counter_horizontal', 'label'=>'<img src="'.Mage::getDesign()->getSkinUrl('Loginradius/Sociallogin/images/Sharing/Vertical/verticalhorizontal.png',array('_area'=>'frontend')).'" /><br />');
11
  return $result;
12
  }
13
  }
app/code/community/Loginradius/Sociallogin/Model/System/Config/Info.php CHANGED
@@ -18,7 +18,7 @@ class Loginradius_Sociallogin_Model_System_Config_Info extends Mage_Adminhtml_Bl
18
  <h4 style="color:#000"><strong>Thank you for installing the LoginRadius Social Plugin!</strong></h4>
19
  <p>To activate the plugin, you will need to first configure it (manage your desired social networks, etc.) from your LoginRadius account. If you do not have an account, click <a target="_blank" href="http://www.loginradius.com/">here</a> and create one for FREE!</p>
20
  <p>
21
- We also offer Social Plugins for <a href="http://www.loginradius.com/addons/wordpress" target="_blank">Wordpress</a>, <a href="http://www.loginradius.com/addons/joomla" target="_blank">Joomla</a>, <a href="http://www.loginradius.com/addons/drupal" target="_blank">Drupal</a>, <a href="http://www.loginradius.com/addons/vbulletin" target="_blank">vBulletin</a>, <a href="http://www.loginradius.com/addons/vanilla" target="_blank">VanillaForum</a>, <a href="http://www.loginradius.com/addons/oscommerce" target="_blank">OSCommerce</a>, <a href="http://www.loginradius.com/addons/prestashop" target="_blank">PrestaShop</a>, <a href="http://www.loginradius.com/addons/Xcart" target="_blank">X-Cart</a>, <a href="http://www.loginradius.com/addons/zencart" target="_blank">Zen-Cart</a>, <a href="http://www.loginradius.com/addons/dotnetnuke" target="_blank">DotNetNuke</a> and <a href="http://www.loginradius.com/addons/blogengine" target="_blank">BlogEngine</a>!
22
  </p>
23
  <div style="margin-top:10px">
24
  <a style="text-decoration:none;" href="https://www.loginradius.com/" target="_blank">
@@ -36,10 +36,6 @@ class Loginradius_Sociallogin_Model_System_Config_Info extends Mage_Adminhtml_Bl
36
  <iframe rel="tooltip" scrolling="no" frameborder="0" allowtransparency="true" style="border: none; overflow: hidden; width: 46px;
37
  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>
38
  </div>
39
- <div>
40
- <div class="twitter_box"><span id="followers">880</span></div>
41
- <iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/follow_button.1363148939.html#_=1363649731067&amp;id=twitter-widget-0&amp;lang=en&amp;screen_name=LoginRadius&amp;show_count=false&amp;show_screen_name=false&amp;size=m" class="twitter-follow-button twitter-follow-button" style="width: 60px; height: 20px;" title="Twitter Follow Button" data-twttr-rendered="true"></iframe>
42
- </div>
43
  <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>
44
  </div>
45
  </fieldset>
@@ -65,9 +61,57 @@ class Loginradius_Sociallogin_Model_System_Config_Info extends Mage_Adminhtml_Bl
65
  <p>
66
  If you liked our FREE open-source plugin, please send your feedback/testimonial to <a href="mailto:feedback@loginradius.com">feedback@loginradius.com</a> !</p>
67
  </fieldset>
68
-
69
  <div style='clear:both'></div>
70
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  <?php
72
  }
73
  }
18
  <h4 style="color:#000"><strong>Thank you for installing the LoginRadius Social Plugin!</strong></h4>
19
  <p>To activate the plugin, you will need to first configure it (manage your desired social networks, etc.) from your LoginRadius account. If you do not have an account, click <a target="_blank" href="http://www.loginradius.com/">here</a> and create one for FREE!</p>
20
  <p>
21
+ We also offer Social 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>, <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#dotnetnukemodule" target="_blank">DotNetNuke</a> and <a href="https://www.loginradius.com/loginradius-for-developers/loginRadius-cms#blogengineextension" target="_blank">BlogEngine</a>!
22
  </p>
23
  <div style="margin-top:10px">
24
  <a style="text-decoration:none;" href="https://www.loginradius.com/" target="_blank">
36
  <iframe rel="tooltip" scrolling="no" frameborder="0" allowtransparency="true" style="border: none; overflow: hidden; width: 46px;
37
  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>
38
  </div>
 
 
 
 
39
  <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>
40
  </div>
41
  </fieldset>
61
  <p>
62
  If you liked our FREE open-source plugin, please send your feedback/testimonial to <a href="mailto:feedback@loginradius.com">feedback@loginradius.com</a> !</p>
63
  </fieldset>
 
64
  <div style='clear:both'></div>
65
+ <div id="loginRadiusKeySecretNotification" style="background-color: rgb(255, 255, 224); border: 1px solid rgb(230, 219, 85); padding: 5px; margin-bottom: 11px; display:none">To activate the <strong>Social Login</strong>, insert LoginRadius API Key and Secret in the <strong>Social Login Basic Settings</strong> section below. <strong>Social Sharing does not require API Key and Secret</strong>.</div>
66
+ <div style='clear:both'></div>
67
+ <script type="text/javascript">var islrsharing = true; var islrsocialcounter = true;</script>
68
+ <script type="text/javascript" src="//share.loginradius.com/Content/js/LoginRadius.js" id="lrsharescript"></script>
69
+ <script type="text/javascript">
70
+ window.onload = function(){
71
+ if(document.getElementById('sociallogin_options_messages_appid').value.trim() == "" || document.getElementById('sociallogin_options_messages_appkey').value.trim() == ""){
72
+ document.getElementById('loginRadiusKeySecretNotification').style.display = 'block';
73
+ }
74
+ var sharingType = ['horizontal', 'vertical'];
75
+ var sharingModes = ['Sharing', 'Counter'];
76
+ for(var i = 0; i < sharingType.length; i++){
77
+ for(var j = 0; j < sharingModes.length; j++){
78
+ if(sharingModes[j] == 'Counter'){
79
+ var providers = $SC.Providers.All;
80
+ }else{
81
+ var providers = $SS.Providers.More;
82
+ }
83
+ // populate sharing providers checkbox
84
+ loginRadiusCounterHtml = "<ul class='checkboxes'>";
85
+ // prepare HTML to be shown as Vertical Counter Providers
86
+ for(var ii = 0; ii < providers.length; ii++){
87
+ loginRadiusCounterHtml += '<li><input type="checkbox" id="'+sharingType[i]+'_'+sharingModes[j]+'_'+providers[ii]+'" ';
88
+ loginRadiusCounterHtml += 'value="'+providers[ii]+'"> <label for="'+sharingType[i]+'_'+sharingModes[j]+'_'+providers[ii]+'">'+providers[ii]+'</label></li>';
89
+ }
90
+ loginRadiusCounterHtml += "</ul>";
91
+ var tds = document.getElementById('row_sociallogin_options_'+sharingType[i]+'Sharing_'+sharingType[i]+sharingModes[j]+'Providers').getElementsByTagName('td');
92
+ tds[1].innerHTML = loginRadiusCounterHtml;
93
+ }
94
+ document.getElementById('row_sociallogin_options_'+sharingType[i]+'Sharing_'+sharingType[i]+'CounterProvidersHidden').style.display = 'none';
95
+ }
96
+ loginRadiusPrepareAdminUI();
97
+ }
98
+ // toggle sharing/counter providers according to the theme and sharing type
99
+ function loginRadiusToggleSharingProviders(element, sharingType){
100
+ if(element.value == '32' || element.value == '16'){
101
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProviders').style.display = 'table-row';
102
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'CounterProviders').style.display = 'none';
103
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden').style.display = 'table-row';
104
+ }else if(element.value == 'single_large' || element.value == 'single_small'){
105
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProviders').style.display = 'none';
106
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'CounterProviders').style.display = 'none';
107
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden').style.display = 'none';
108
+ }else{
109
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProviders').style.display = 'none';
110
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'CounterProviders').style.display = 'table-row';
111
+ document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden').style.display = 'none';
112
+ }
113
+ }
114
+ </script>
115
  <?php
116
  }
117
  }
app/code/community/Loginradius/Sociallogin/controllers/IndexController.php CHANGED
@@ -58,10 +58,18 @@ class Loginradius_Sociallogin_IndexController extends Mage_Core_Controller_Front
58
  break;
59
  }
60
  }
 
61
  if(!empty($sociallogin_id)){ //user is in database
62
  if(!$socialLinking){
63
- $this->socialLoginUserLogin( $sociallogin_id, $id );
64
- return;
 
 
 
 
 
 
 
65
  }else{
66
  // account already exists
67
  header("Location:".Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."customer/account/?LoginRadiusLinked=0");
@@ -87,11 +95,17 @@ class Loginradius_Sociallogin_IndexController extends Mage_Core_Controller_Front
87
  if( $this->blockObj->getLinking() == "1" ){ // Social Linking
88
  $this->loginRadiusSocialLinking($sociallogin_id, $user_obj->ID, $user_obj->Provider, $user_obj->ThumbnailImageUrl);
89
  }
90
- $this->socialLoginUserLogin( $sociallogin_id, $user_obj->ID );
91
- return;
 
 
 
 
 
 
 
92
  }
93
  }
94
-
95
  $socialloginProfileData = $this->socialLoginFilterData( $email, $user_obj );
96
  $socialloginProfileData['lrId'] = $user_obj->ID;
97
  if($this->blockObj->getProfileFieldsRequired() == 1){
@@ -112,7 +126,7 @@ class Loginradius_Sociallogin_IndexController extends Mage_Core_Controller_Front
112
  $socialloginProfileData['lrId'] = $user_obj->ID;
113
  if($this->blockObj->getProfileFieldsRequired() == 1){
114
  $id = $user_obj->ID;
115
- $socialloginProfileData = $this->socialLoginFilterData( $email, $user_obj );
116
  $this->setInSession($id, $socialloginProfileData);
117
  // show a popup to fill required profile fields
118
  SL_popUpWindow("Please provide following details:-", "", true, $socialloginProfileData, false);
@@ -174,7 +188,7 @@ class Loginradius_Sociallogin_IndexController extends Mage_Core_Controller_Front
174
  $socialloginProfileData['FullName'] = empty($user_obj->FullName) ? "" : $user_obj->FullName;
175
  $socialloginProfileData['NickName'] = empty($user_obj->NickName) ? "" : $user_obj->NickName;
176
  $socialloginProfileData['LastName'] = empty($user_obj->LastName) ? "" : $user_obj->LastName;
177
- if(is_array($user_obj->Addresses)){
178
  foreach($user_obj->Addresses as $address){
179
  if(isset($address->Address1) && !empty($address->Address1)){
180
  $socialloginProfileData['Address'] = $address->Address1;
@@ -305,41 +319,90 @@ class Loginradius_Sociallogin_IndexController extends Mage_Core_Controller_Front
305
  }
306
  }
307
 
308
- function socialLoginAddNewUser( $socialloginProfileData, $verify = false ) {
309
- // add new user magento way
310
  $websiteId = Mage::app()->getWebsite()->getId();
311
  $store = Mage::app()->getStore();
312
- $customer = Mage::getModel("customer/customer");
 
 
 
 
 
313
  $customer->website_id = $websiteId;
314
  $customer->setStore($store);
315
- $customer->firstname = $socialloginProfileData['FirstName'];
316
- $customer->lastname = $socialloginProfileData['LastName'] == "" ? $socialloginProfileData['FirstName'] : $socialloginProfileData['LastName'];
317
- $customer->email = $socialloginProfileData['Email'];
318
- $customer->dob = $socialloginProfileData['BirthDate'];
319
- $customer->gender = $socialloginProfileData['Gender'];
320
- $loginRadiusPwd = $customer->generatePassword(10);
321
- $customer->password_hash = md5( $loginRadiusPwd );
 
 
 
 
 
 
 
 
 
 
 
 
322
  $customer->setConfirmation(null);
323
  $customer->save();
324
-
325
- //$address = new Mage_Customer_Model_Address();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  $address = Mage::getModel("customer/address");
327
- $address->setCustomerId($customer->getId());
328
- $address->firstname = $customer->firstname;
329
- $address->lastname = $customer->lastname;
330
- $address->country_id = ucfirst( $socialloginProfileData['Country'] ); //Country code here
331
- if(isset($socialloginProfileData['Zipcode'])){
332
- $address->postcode = $socialloginProfileData['Zipcode'];
333
- }
334
- $address->city = ucfirst( $socialloginProfileData['City'] );
335
- // If country is USA, set up province
336
- if(isset($socialloginProfileData['Province'])){
337
- $address->region = $socialloginProfileData['Province'];
338
- }
339
- $address->telephone = $socialloginProfileData['PhoneNumber'];
340
- $address->company = ucfirst( $socialloginProfileData['Industry'] );
341
- $address->street = ucfirst( $socialloginProfileData['Address'] );
342
- $address->save();
 
 
 
 
 
 
343
  // add info in sociallogin table
344
  if( !$verify ){
345
  $fields = array();
@@ -347,32 +410,38 @@ class Loginradius_Sociallogin_IndexController extends Mage_Core_Controller_Front
347
  $fields['entity_id'] = $customer->getId();
348
  $fields['avatar'] = $socialloginProfileData['thumbnail'] ;
349
  $fields['provider'] = $socialloginProfileData['Provider'] ;
350
- $this->SocialLoginInsert( "sociallogin", $fields );
351
- $loginRadiusUsername = $socialloginProfileData['FirstName']." ".$socialloginProfileData['LastName'];
352
- // email notification to user
353
- if( $this->blockObj->notifyUser() == "1" ){
354
- $loginRadiusMessage = $this->blockObj->notifyUserText();
355
- if( $loginRadiusMessage == "" ){
356
- $loginRadiusMessage = "Welcome to ".$store->getGroup()->getName().". You can login to the store using following e-mail address and password:-";
357
- }
358
- $loginRadiusMessage .= "<br/>".
359
- "Email : ".$socialloginProfileData['Email'].
360
- "<br/>Password : ".$loginRadiusPwd;
361
-
362
- $this->loginRadiusEmail( "Welcome ".$loginRadiusUsername."!", $loginRadiusMessage, $socialloginProfileData['Email'], $loginRadiusUsername );
363
  }
364
- // new user notification to admin
365
- if( $this->blockObj->notifyAdmin() == "1" ){
366
- $loginRadiusAdminEmail = Mage::getStoreConfig('trans_email/ident_general/email');
367
- $loginRadiusAdminName = Mage::getStoreConfig('trans_email/ident_general/name');
368
- $loginRadiusMessage = trim($this->blockObj->notifyAdminText());
369
- if( $loginRadiusMessage == "" ){
370
- $loginRadiusMessage = "New customer has been registered to your store with following details:-";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
371
  }
372
- $loginRadiusMessage .= "<br/>".
373
- "Name : ".$loginRadiusUsername."<br/>".
374
- "Email : ".$socialloginProfileData['Email'];
375
- $this->loginRadiusEmail( "New User Registration", $loginRadiusMessage, $loginRadiusAdminEmail, $loginRadiusAdminName );
376
  }
377
  //login and redirect user
378
  $this->socialLoginUserLogin( $customer->getId(), $fields['sociallogin_id'] );
@@ -511,7 +580,7 @@ class Loginradius_Sociallogin_IndexController extends Mage_Core_Controller_Front
511
  $loginRadiusPopProvider = $socialLoginProfileData['Provider'];
512
  $loginRadiusAvatar = $socialLoginProfileData['thumbnail'];
513
 
514
- if( isset($_POST['LoginRadiusRedSliderClick']) ) {
515
  if(!empty($session_user_id) ){
516
  $loginRadiusProfileData = array();
517
  // address
58
  break;
59
  }
60
  }
61
+
62
  if(!empty($sociallogin_id)){ //user is in database
63
  if(!$socialLinking){
64
+ if($this->blockObj->updateProfileData() != '1'){
65
+ $this->socialLoginUserLogin( $sociallogin_id, $id );
66
+ return;
67
+ }else{
68
+ $socialloginProfileData = $this->socialLoginFilterData( '', $user_obj );
69
+ $socialloginProfileData['lrId'] = $user_obj->ID;
70
+ $this->socialLoginAddNewUser( $socialloginProfileData, $verify = false, true, $sociallogin_id );
71
+ return;
72
+ }
73
  }else{
74
  // account already exists
75
  header("Location:".Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."customer/account/?LoginRadiusLinked=0");
95
  if( $this->blockObj->getLinking() == "1" ){ // Social Linking
96
  $this->loginRadiusSocialLinking($sociallogin_id, $user_obj->ID, $user_obj->Provider, $user_obj->ThumbnailImageUrl);
97
  }
98
+ if($this->blockObj->updateProfileData() != '1'){
99
+ $this->socialLoginUserLogin( $sociallogin_id, $user_obj->ID );
100
+ return;
101
+ }else{
102
+ $socialloginProfileData = $this->socialLoginFilterData( '', $user_obj );
103
+ $socialloginProfileData['lrId'] = $user_obj->ID;
104
+ $this->socialLoginAddNewUser( $socialloginProfileData, $verify = false, true, $sociallogin_id );
105
+ return;
106
+ }
107
  }
108
  }
 
109
  $socialloginProfileData = $this->socialLoginFilterData( $email, $user_obj );
110
  $socialloginProfileData['lrId'] = $user_obj->ID;
111
  if($this->blockObj->getProfileFieldsRequired() == 1){
126
  $socialloginProfileData['lrId'] = $user_obj->ID;
127
  if($this->blockObj->getProfileFieldsRequired() == 1){
128
  $id = $user_obj->ID;
129
+ //$socialloginProfileData = $this->socialLoginFilterData( $email, $user_obj );
130
  $this->setInSession($id, $socialloginProfileData);
131
  // show a popup to fill required profile fields
132
  SL_popUpWindow("Please provide following details:-", "", true, $socialloginProfileData, false);
188
  $socialloginProfileData['FullName'] = empty($user_obj->FullName) ? "" : $user_obj->FullName;
189
  $socialloginProfileData['NickName'] = empty($user_obj->NickName) ? "" : $user_obj->NickName;
190
  $socialloginProfileData['LastName'] = empty($user_obj->LastName) ? "" : $user_obj->LastName;
191
+ if(isset($user_obj->Addresses) && is_array($user_obj->Addresses)){
192
  foreach($user_obj->Addresses as $address){
193
  if(isset($address->Address1) && !empty($address->Address1)){
194
  $socialloginProfileData['Address'] = $address->Address1;
319
  }
320
  }
321
 
322
+ function socialLoginAddNewUser( $socialloginProfileData, $verify = false, $update = false, $customerId = '' ) {
 
323
  $websiteId = Mage::app()->getWebsite()->getId();
324
  $store = Mage::app()->getStore();
325
+ if(!$update){
326
+ // add new user magento way
327
+ $customer = Mage::getModel("customer/customer");
328
+ }else{
329
+ $customer = Mage::getModel('customer/customer') -> load($customerId);
330
+ }
331
  $customer->website_id = $websiteId;
332
  $customer->setStore($store);
333
+ if($socialloginProfileData['FirstName'] != ""){
334
+ $customer->firstname = $socialloginProfileData['FirstName'];
335
+ }
336
+ if(!$update){
337
+ $customer->lastname = $socialloginProfileData['LastName'] == "" ? $socialloginProfileData['FirstName'] : $socialloginProfileData['LastName'];
338
+ }elseif($update && $socialloginProfileData['LastName'] != ""){
339
+ $customer->lastname = $socialloginProfileData['LastName'];
340
+ }
341
+ if(!$update){
342
+ $customer->email = $socialloginProfileData['Email'];
343
+ $loginRadiusPwd = $customer->generatePassword(10);
344
+ $customer->password_hash = md5( $loginRadiusPwd );
345
+ }
346
+ if($socialloginProfileData['BirthDate'] != ""){
347
+ $customer->dob = $socialloginProfileData['BirthDate'];
348
+ }
349
+ if($socialloginProfileData['Gender'] != ""){
350
+ $customer->gender = $socialloginProfileData['Gender'];
351
+ }
352
  $customer->setConfirmation(null);
353
  $customer->save();
354
+
355
+ // if updating user profile
356
+ if($update){
357
+ $addresses = $customer->getAddressesCollection();
358
+ $matched = false;
359
+ foreach($addresses as $address){
360
+ $address = $address->toArray();
361
+ if($address['firstname'] == $socialloginProfileData['FirstName']
362
+ && $address['lastname'] == $socialloginProfileData['LastName']
363
+ && $address['country_id'] == ucfirst($socialloginProfileData['Country'])
364
+ && $address['city'] == ucfirst($socialloginProfileData['City'])
365
+ && $address['telephone'] == $socialloginProfileData['PhoneNumber']
366
+ && $address['company'] == ucfirst($socialloginProfileData['Industry'])
367
+ && $address['street'] == ucfirst($socialloginProfileData['Address'])){
368
+ $matched = true;
369
+ // if profile data contains zipcode then match it with that in the address
370
+ if(isset($socialloginProfileData['Zipcode']) && $address['postcode'] != $socialloginProfileData['Zipcode']){
371
+ $matched = false;
372
+ }
373
+ // if profile data contains province then match it with that in the address
374
+ if(isset($socialloginProfileData['Province']) && $address['region'] != $socialloginProfileData['Province']){
375
+ $matched = false;
376
+ }
377
+ }
378
+ if($matched){
379
+ break;
380
+ }
381
+ }
382
+ }
383
  $address = Mage::getModel("customer/address");
384
+ if(!$update){
385
+ $address->setCustomerId($customer->getId());
386
+ }else{
387
+ $address->setCustomerId($customerId);
388
+ }
389
+ if(($update && !$matched) || !$update){
390
+ $address->firstname = $customer->firstname;
391
+ $address->lastname = $customer->lastname;
392
+ $address->country_id = ucfirst( $socialloginProfileData['Country'] ); //Country code here
393
+ if(isset($socialloginProfileData['Zipcode'])){
394
+ $address->postcode = $socialloginProfileData['Zipcode'];
395
+ }
396
+ $address->city = ucfirst( $socialloginProfileData['City'] );
397
+ // If country is USA, set up province
398
+ if(isset($socialloginProfileData['Province'])){
399
+ $address->region = $socialloginProfileData['Province'];
400
+ }
401
+ $address->telephone = $socialloginProfileData['PhoneNumber'];
402
+ $address->company = ucfirst( $socialloginProfileData['Industry'] );
403
+ $address->street = ucfirst( $socialloginProfileData['Address'] );
404
+ $address->save();
405
+ }
406
  // add info in sociallogin table
407
  if( !$verify ){
408
  $fields = array();
410
  $fields['entity_id'] = $customer->getId();
411
  $fields['avatar'] = $socialloginProfileData['thumbnail'] ;
412
  $fields['provider'] = $socialloginProfileData['Provider'] ;
413
+ if(!$update){
414
+ $this->SocialLoginInsert( "sociallogin", $fields );
415
+ }else{
416
+ $this->SocialLoginInsert( "sociallogin", array('avatar' => $socialloginProfileData['thumbnail']), true, array('entity_id = ?' => $customerId) );
 
 
 
 
 
 
 
 
 
417
  }
418
+ if(!$update){
419
+ $loginRadiusUsername = $socialloginProfileData['FirstName']." ".$socialloginProfileData['LastName'];
420
+ // email notification to user
421
+ if( $this->blockObj->notifyUser() == "1" ){
422
+ $loginRadiusMessage = $this->blockObj->notifyUserText();
423
+ if( $loginRadiusMessage == "" ){
424
+ $loginRadiusMessage = "Welcome to ".$store->getGroup()->getName().". You can login to the store using following e-mail address and password:-";
425
+ }
426
+ $loginRadiusMessage .= "<br/>".
427
+ "Email : ".$socialloginProfileData['Email'].
428
+ "<br/>Password : ".$loginRadiusPwd;
429
+
430
+ $this->loginRadiusEmail( "Welcome ".$loginRadiusUsername."!", $loginRadiusMessage, $socialloginProfileData['Email'], $loginRadiusUsername );
431
+ }
432
+ // new user notification to admin
433
+ if( $this->blockObj->notifyAdmin() == "1" ){
434
+ $loginRadiusAdminEmail = Mage::getStoreConfig('trans_email/ident_general/email');
435
+ $loginRadiusAdminName = Mage::getStoreConfig('trans_email/ident_general/name');
436
+ $loginRadiusMessage = trim($this->blockObj->notifyAdminText());
437
+ if( $loginRadiusMessage == "" ){
438
+ $loginRadiusMessage = "New customer has been registered to your store with following details:-";
439
+ }
440
+ $loginRadiusMessage .= "<br/>".
441
+ "Name : ".$loginRadiusUsername."<br/>".
442
+ "Email : ".$socialloginProfileData['Email'];
443
+ $this->loginRadiusEmail( "New User Registration", $loginRadiusMessage, $loginRadiusAdminEmail, $loginRadiusAdminName );
444
  }
 
 
 
 
445
  }
446
  //login and redirect user
447
  $this->socialLoginUserLogin( $customer->getId(), $fields['sociallogin_id'] );
580
  $loginRadiusPopProvider = $socialLoginProfileData['Provider'];
581
  $loginRadiusAvatar = $socialLoginProfileData['thumbnail'];
582
 
583
+ if(isset($_POST['LoginRadiusRedSliderClick'])) {
584
  if(!empty($session_user_id) ){
585
  $loginRadiusProfileData = array();
586
  // address
app/code/community/Loginradius/Sociallogin/etc/config.xml CHANGED
@@ -3,8 +3,9 @@
3
  <default>
4
  <sociallogin_options>
5
  <messages>
6
- <loginEnable>1</loginEnable>
7
  <loginradius_title>Login with your social account</loginradius_title>
 
8
  <showdefault>1</showdefault>
9
  <socialLinking>1</socialLinking>
10
  <redirect>account</redirect>
@@ -13,7 +14,8 @@
13
  </messages>
14
  <email_settings>
15
  <profileFieldsRequired>0</profileFieldsRequired>
16
- <emailrequired>0</emailrequired>
 
17
  <verificationText>Please click on the following link or paste it in browser to verify your email:-</verificationText>
18
  <popupText>Please enter your email to proceed</popupText>
19
  <popupError>The email you entered is already registered or invalid. Please enter a valid email.</popupError>
@@ -21,33 +23,30 @@
21
  <notifyAdmin>0</notifyAdmin>
22
  <notifyAdminText>New customer has been registered to your store with following details:-</notifyAdminText>
23
  </email_settings>
24
- <sharing>
25
- <shareEnable>1</shareEnable>
 
 
26
  <sharingTitle>Share it now!</sharingTitle>
27
- <sharingTheme>horizontal</sharingTheme>
28
- <horizontalSharing>32</horizontalSharing>
29
- <verticalSharing>32</verticalSharing>
30
- <sharingVerticalAlignment>top_left</sharingVerticalAlignment>
31
- <sharingProvidersHidden>facebook,twitter,googleplus,linkedin,print,email</sharingProvidersHidden>
32
- <shareProduct>1</shareProduct>
33
- <shareSuccess>1</shareSuccess>
34
- </sharing>
35
- <counter>
36
- <counterEnable>1</counterEnable>
37
- <counterTitle>Share it now!</counterTitle>
38
- <counterTheme>horizontal</counterTheme>
39
- <horizontalCounter>vertical</horizontalCounter>
40
- <verticalCounter>vertical</verticalCounter>
41
- <counterVerticalAlignment>top_left</counterVerticalAlignment>
42
- <counterProvidersHidden>Facebook Like,Google+ +1,LinkedIn Share,Twitter Tweet</counterProvidersHidden>
43
- <counterProduct>1</counterProduct>
44
- <counterSuccess>1</counterSuccess>
45
- </counter>
46
  </sociallogin_options>
47
  </default>
48
  <modules>
49
  <Loginradius_Sociallogin>
50
- <version>3.1.0</version>
51
  </Loginradius_Sociallogin>
52
  </modules>
53
  <frontend>
3
  <default>
4
  <sociallogin_options>
5
  <messages>
6
+ <loginEnable>0</loginEnable>
7
  <loginradius_title>Login with your social account</loginradius_title>
8
+ <iconSize>small</iconSize>
9
  <showdefault>1</showdefault>
10
  <socialLinking>1</socialLinking>
11
  <redirect>account</redirect>
14
  </messages>
15
  <email_settings>
16
  <profileFieldsRequired>0</profileFieldsRequired>
17
+ <updateProfileData>1</updateProfileData>
18
+ <emailrequired>1</emailrequired>
19
  <verificationText>Please click on the following link or paste it in browser to verify your email:-</verificationText>
20
  <popupText>Please enter your email to proceed</popupText>
21
  <popupError>The email you entered is already registered or invalid. Please enter a valid email.</popupError>
23
  <notifyAdmin>0</notifyAdmin>
24
  <notifyAdminText>New customer has been registered to your store with following details:-</notifyAdminText>
25
  </email_settings>
26
+ <horizontalSharing>
27
+ <horizontalShareEnable>1</horizontalShareEnable>
28
+ <horizontalShareProduct>1</horizontalShareProduct>
29
+ <horizontalShareSuccess>1</horizontalShareSuccess>
30
  <sharingTitle>Share it now!</sharingTitle>
31
+ <horizontalSharingTheme>32</horizontalSharingTheme>
32
+ <horizontalSharingProvidersHidden>Facebook,Twitter,GooglePlus,LinkedIn,Pinterest,Print,Email</horizontalSharingProvidersHidden>
33
+ <horizontalCounterProvidersHidden>Facebook Like,Google+ +1,Twitter Tweet,Pinterest Pin it,Hybridshare</horizontalCounterProvidersHidden>
34
+ </horizontalSharing>
35
+ <verticalSharing>
36
+ <verticalShareEnable>1</verticalShareEnable>
37
+ <verticalShareProduct>1</verticalShareProduct>
38
+ <verticalShareSuccess>1</verticalShareSuccess>
39
+ <verticalSharingTheme>counter_vertical</verticalSharingTheme>
40
+ <verticalAlignment>top_left</verticalAlignment>
41
+ <offset>150</offset>
42
+ <verticalSharingProvidersHidden>Facebook,Twitter,GooglePlus,LinkedIn,Pinterest,Print,Email</verticalSharingProvidersHidden>
43
+ <verticalCounterProvidersHidden>Facebook Like,Google+ +1,Twitter Tweet,Pinterest Pin it,Hybridshare</verticalCounterProvidersHidden>
44
+ </verticalSharing>
 
 
 
 
 
45
  </sociallogin_options>
46
  </default>
47
  <modules>
48
  <Loginradius_Sociallogin>
49
+ <version>3.5.0</version>
50
  </Loginradius_Sociallogin>
51
  </modules>
52
  <frontend>
app/code/community/Loginradius/Sociallogin/etc/system.xml CHANGED
@@ -44,7 +44,7 @@
44
  <appid translate="label">
45
  <label>LoginRadius API Key</label>
46
  <frontend_type>text</frontend_type>
47
- <comment><![CDATA[<span style="color:red">(Required for Social Login and Social Sharing to work)</span> Paste LoginRadius API Key here. To get the API Key, login to <a href="http://www.loginradius.com" target="_blank">LoginRadius</a>]]>
48
  </comment>
49
  <sort_order>15</sort_order>
50
  <show_in_default>1</show_in_default>
@@ -54,9 +54,9 @@
54
  <appkey translate="label">
55
  <label>LoginRadius API Secret</label>
56
  <frontend_type>text</frontend_type>
57
- <comment><![CDATA[<span style="color:red">(Required for Social Login to work)</span> Paste LoginRadius API Secret here. To get the API Secret, login to <a href="http://www.loginradius.com" target="_blank">LoginRadius</a>]]>
58
  </comment>
59
- <sort_order>20</sort_order>
60
  <show_in_default>1</show_in_default>
61
  <show_in_website>1</show_in_website>
62
  <show_in_store>1</show_in_store>
@@ -66,11 +66,39 @@
66
  <frontend_type>text</frontend_type>
67
  <comment><![CDATA[Text displayed above Social login Interface]]>
68
  </comment>
69
- <sort_order>22</sort_order>
70
  <show_in_default>1</show_in_default>
71
  <show_in_website>1</show_in_website>
72
  <show_in_store>1</show_in_store>
73
  </loginradius_title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  <showdefault translate="label">
75
  <label>Show Social Login interface in right side panel</label>
76
  <frontend_type>select</frontend_type>
@@ -165,12 +193,12 @@
165
  <show_in_website>1</show_in_website>
166
  <show_in_store>1</show_in_store>
167
  </api>
168
- </fields>
169
  </messages>
170
  <email_settings>
171
  <label>Social Login Advanced Settings</label>
172
  <frontend_type>text</frontend_type>
173
- <sort_order>20</sort_order>
174
  <show_in_default>1</show_in_default>
175
  <show_in_website>1</show_in_website>
176
  <show_in_store>1</show_in_store>
@@ -178,14 +206,23 @@
178
  <profileFieldsRequired translate="label">
179
  <label>Profile Fields Required</label>
180
  <frontend_type>select</frontend_type>
181
- <comment><![CDATA[Ask the required Magento User Profile fields in a popup when user registers through Social Login.]]>
182
- </comment>
183
  <source_model>adminhtml/system_config_source_yesno</source_model>
184
- <sort_order>21</sort_order>
185
  <show_in_default>1</show_in_default>
186
  <show_in_website>1</show_in_website>
187
  <show_in_store>1</show_in_store>
188
  </profileFieldsRequired>
 
 
 
 
 
 
 
 
 
 
189
  <emailrequired translate="label">
190
  <label>Email Required</label>
191
  <frontend_type>select</frontend_type>
@@ -271,26 +308,26 @@
271
  </notifyAdminText>
272
  </fields>
273
  </email_settings>
274
- <sharing translate="label">
275
- <label>Social Sharing</label>
276
  <frontend_type>text</frontend_type>
277
  <sort_order>30</sort_order>
278
  <show_in_default>1</show_in_default>
279
  <show_in_website>1</show_in_website>
280
  <show_in_store>1</show_in_store>
281
  <fields>
282
- <shareEnable translate="label">
283
- <label>Enable Social Sharing</label>
284
  <frontend_type>select</frontend_type>
285
  <source_model>adminhtml/system_config_source_yesno</source_model>
286
- <comment><![CDATA[Do you want to enable Social Sharing for your website?]]>
287
  </comment>
288
  <sort_order>31</sort_order>
289
  <show_in_default>1</show_in_default>
290
  <show_in_website>1</show_in_website>
291
  <show_in_store>1</show_in_store>
292
- </shareEnable>
293
- <shareProduct translate="label">
294
  <label>Show Social Sharing Interface at Product Pages</label>
295
  <frontend_type>select</frontend_type>
296
  <source_model>adminhtml/system_config_source_yesno</source_model>
@@ -298,8 +335,8 @@
298
  <show_in_default>1</show_in_default>
299
  <show_in_website>1</show_in_website>
300
  <show_in_store>1</show_in_store>
301
- </shareProduct>
302
- <shareSuccess translate="label">
303
  <label>Enable Social Sharing at Checkout Success Page</label>
304
  <frontend_type>select</frontend_type>
305
  <source_model>adminhtml/system_config_source_yesno</source_model>
@@ -307,7 +344,7 @@
307
  <show_in_default>1</show_in_default>
308
  <show_in_website>1</show_in_website>
309
  <show_in_store>1</show_in_store>
310
- </shareSuccess>
311
  <sharingTitle translate="label">
312
  <label>Sharing Title</label>
313
  <frontend_type>text</frontend_type>
@@ -318,18 +355,7 @@
318
  <show_in_website>1</show_in_website>
319
  <show_in_store>1</show_in_store>
320
  </sharingTitle>
321
- <sharingTheme translate="label">
322
- <label>Select Sharing Theme</label>
323
- <frontend_type>select</frontend_type>
324
- <comment><![CDATA[What Social Sharing widget theme would you like to use across your website?]]>
325
- </comment>
326
- <source_model>sociallogin/source_sharingTheme</source_model>
327
- <sort_order>35</sort_order>
328
- <show_in_default>1</show_in_default>
329
- <show_in_website>1</show_in_website>
330
- <show_in_store>1</show_in_store>
331
- </sharingTheme>
332
- <horizontalSharing translate="label">
333
  <label>Choose a theme</label>
334
  <frontend_type>radios</frontend_type>
335
  <source_model>sociallogin/source_HorizontalSharing</source_model>
@@ -337,65 +363,53 @@
337
  <show_in_default>1</show_in_default>
338
  <show_in_website>1</show_in_website>
339
  <show_in_store>1</show_in_store>
340
- </horizontalSharing>
341
- <verticalSharing translate="label">
342
- <label>Choose a theme</label>
343
- <frontend_type>radios</frontend_type>
344
- <source_model>sociallogin/source_VerticalSharing</source_model>
345
- <sort_order>37</sort_order>
346
- <show_in_default>1</show_in_default>
347
- <show_in_website>1</show_in_website>
348
- <show_in_store>1</show_in_store>
349
- </verticalSharing>
350
- <sharingVerticalAlignment translate="label">
351
- <label>Alignment</label>
352
- <frontend_type>select</frontend_type>
353
- <comment><![CDATA[Select the position of the Social Sharing widget with respect to page]]></comment>
354
- <source_model>sociallogin/source_SharingVerticalAlignment</source_model>
355
- <sort_order>38</sort_order>
356
  <show_in_default>1</show_in_default>
357
  <show_in_website>1</show_in_website>
358
  <show_in_store>1</show_in_store>
359
- </sharingVerticalAlignment>
360
- <sharingOffset translate="label">
361
- <label>Offset</label>
362
- <frontend_type>text</frontend_type>
363
- <comment><![CDATA[Specify distance of vertical sharing interface from top (Leave empty for default behaviour) <a style="text-decoration:none" href="javascript:void(0)" title="Enter a number (For example - 200). It will set the 'top' CSS attribute of the interface to the value specified. Increase in the number pushes interface towards bottom.">(?)</a>]]></comment>
364
- <sort_order>39</sort_order>
365
  <show_in_default>1</show_in_default>
366
  <show_in_website>1</show_in_website>
367
  <show_in_store>1</show_in_store>
368
- </sharingOffset>
369
- <sharingProviders translate="label">
370
  <label>Sharing Providers</label>
371
  <frontend_type>checkboxes</frontend_type>
372
  <comment><![CDATA[<div style="clear: both !important;"><p class="note"><span>Selected providers will be displayed in the Social Sharing widget</span></p></div>]]></comment>
373
- <source_model>sociallogin/source_SharingProviders</source_model>
374
  <sort_order>40</sort_order>
375
  <show_in_default>1</show_in_default>
376
  <show_in_website>1</show_in_website>
377
  <show_in_store>1</show_in_store>
378
- </sharingProviders>
379
- <sharingProvidersHidden translate="label">
380
  <label>Rearrange Icons</label>
381
  <frontend_type>hidden</frontend_type>
382
  <sort_order>41</sort_order>
383
  <show_in_default>1</show_in_default>
384
  <show_in_website>1</show_in_website>
385
  <show_in_store>1</show_in_store>
386
- </sharingProvidersHidden>
387
  </fields>
388
- </sharing>
389
- <counter translate="label">
390
- <label>Social Counter</label>
391
  <frontend_type>text</frontend_type>
392
  <sort_order>42</sort_order>
393
  <show_in_default>1</show_in_default>
394
  <show_in_website>1</show_in_website>
395
  <show_in_store>1</show_in_store>
396
  <fields>
397
- <counterEnable translate="label">
398
- <label>Enable Social Counter</label>
399
  <frontend_type>select</frontend_type>
400
  <source_model>adminhtml/system_config_source_yesno</source_model>
401
  <comment><![CDATA[Do you want to enable Social Counter for your website?]]>
@@ -404,75 +418,45 @@
404
  <show_in_default>1</show_in_default>
405
  <show_in_website>1</show_in_website>
406
  <show_in_store>1</show_in_store>
407
- </counterEnable>
408
- <counterProduct translate="label">
409
- <label>Show Social Counter Interface at Product Pages</label>
410
  <frontend_type>select</frontend_type>
411
  <source_model>adminhtml/system_config_source_yesno</source_model>
412
  <sort_order>44</sort_order>
413
  <show_in_default>1</show_in_default>
414
  <show_in_website>1</show_in_website>
415
  <show_in_store>1</show_in_store>
416
- </counterProduct>
417
- <counterSuccess translate="label">
418
- <label>Enable Social Counter at Checkout Success Page</label>
419
  <frontend_type>select</frontend_type>
420
  <source_model>adminhtml/system_config_source_yesno</source_model>
421
  <sort_order>45</sort_order>
422
  <show_in_default>1</show_in_default>
423
  <show_in_website>1</show_in_website>
424
  <show_in_store>1</show_in_store>
425
- </counterSuccess>
426
- <counterTitle translate="label">
427
- <label>Counter Title</label>
428
- <frontend_type>text</frontend_type>
429
- <comment><![CDATA[Enter the text that you wish to be displayed above the Social Counter Interface. Leave the field blank if you don't want any text to be displayed.]]>
430
- </comment>
431
- <sort_order>46</sort_order>
432
- <show_in_default>1</show_in_default>
433
- <show_in_website>1</show_in_website>
434
- <show_in_store>1</show_in_store>
435
- </counterTitle>
436
- <counterTheme translate="label">
437
- <label>Select Counter Theme</label>
438
- <frontend_type>select</frontend_type>
439
- <comment><![CDATA[What Social Counter widget theme would you like to use across your website?]]>
440
- </comment>
441
- <source_model>sociallogin/source_counterTheme</source_model>
442
- <sort_order>47</sort_order>
443
- <show_in_default>1</show_in_default>
444
- <show_in_website>1</show_in_website>
445
- <show_in_store>1</show_in_store>
446
- </counterTheme>
447
- <horizontalCounter translate="label">
448
  <label>Choose a theme</label>
449
  <frontend_type>radios</frontend_type>
450
- <source_model>sociallogin/source_HorizontalCounter</source_model>
451
  <sort_order>48</sort_order>
452
  <show_in_default>1</show_in_default>
453
  <show_in_website>1</show_in_website>
454
  <show_in_store>1</show_in_store>
455
- </horizontalCounter>
456
- <verticalCounter translate="label">
457
- <label>Choose a theme</label>
458
- <frontend_type>radios</frontend_type>
459
- <source_model>sociallogin/source_VerticalCounter</source_model>
460
- <sort_order>49</sort_order>
461
- <show_in_default>1</show_in_default>
462
- <show_in_website>1</show_in_website>
463
- <show_in_store>1</show_in_store>
464
- </verticalCounter>
465
- <counterVerticalAlignment translate="label">
466
  <label>Alignment</label>
467
  <frontend_type>select</frontend_type>
468
  <comment><![CDATA[Select the position of the Social Counter widget with respect to page]]></comment>
469
- <source_model>sociallogin/source_CounterVerticalAlignment</source_model>
470
  <sort_order>50</sort_order>
471
  <show_in_default>1</show_in_default>
472
  <show_in_website>1</show_in_website>
473
  <show_in_store>1</show_in_store>
474
- </counterVerticalAlignment>
475
- <counterOffset translate="label">
476
  <label>Offset</label>
477
  <frontend_type>text</frontend_type>
478
  <comment><![CDATA[Specify distance of vertical counter interface from top (Leave empty for default behaviour) <a style="text-decoration:none" href="javascript:void(0)" title="Enter a number (For example - 200). It will set the 'top' CSS attribute of the interface to the value specified. Increase in the number pushes interface towards bottom.">(?)</a>]]></comment>
@@ -480,27 +464,43 @@
480
  <show_in_default>1</show_in_default>
481
  <show_in_website>1</show_in_website>
482
  <show_in_store>1</show_in_store>
483
- </counterOffset>
484
- <counterProviders translate="label">
485
- <label>Counter Providers</label>
486
  <frontend_type>checkboxes</frontend_type>
487
  <comment><![CDATA[<div style="clear: both !important;"><p class="note"><span>Selected providers will be displayed in the Social Counter widget</span></p></div>]]></comment>
488
- <source_model>sociallogin/source_CounterProviders</source_model>
489
  <sort_order>52</sort_order>
490
  <show_in_default>1</show_in_default>
491
  <show_in_website>1</show_in_website>
492
  <show_in_store>1</show_in_store>
493
- </counterProviders>
494
- <counterProvidersHidden translate="label">
495
- <label></label>
496
  <frontend_type>hidden</frontend_type>
497
  <sort_order>53</sort_order>
498
  <show_in_default>1</show_in_default>
499
  <show_in_website>1</show_in_website>
500
  <show_in_store>1</show_in_store>
501
- </counterProvidersHidden>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  </fields>
503
- </counter>
504
  </groups>
505
  </sociallogin_options>
506
  </sections>
44
  <appid translate="label">
45
  <label>LoginRadius API Key</label>
46
  <frontend_type>text</frontend_type>
47
+ <comment><![CDATA[Paste LoginRadius API Key here. To get the API Key, login to <a href="http://www.loginradius.com" target="_blank">LoginRadius</a>]]>
48
  </comment>
49
  <sort_order>15</sort_order>
50
  <show_in_default>1</show_in_default>
54
  <appkey translate="label">
55
  <label>LoginRadius API Secret</label>
56
  <frontend_type>text</frontend_type>
57
+ <comment><![CDATA[Paste LoginRadius API Secret here. To get the API Secret, login to <a href="http://www.loginradius.com" target="_blank">LoginRadius</a>]]>
58
  </comment>
59
+ <sort_order>16</sort_order>
60
  <show_in_default>1</show_in_default>
61
  <show_in_website>1</show_in_website>
62
  <show_in_store>1</show_in_store>
66
  <frontend_type>text</frontend_type>
67
  <comment><![CDATA[Text displayed above Social login Interface]]>
68
  </comment>
69
+ <sort_order>17</sort_order>
70
  <show_in_default>1</show_in_default>
71
  <show_in_website>1</show_in_website>
72
  <show_in_store>1</show_in_store>
73
  </loginradius_title>
74
+ <iconSize translate="label">
75
+ <label>Social Login icons size</label>
76
+ <frontend_type>radios</frontend_type>
77
+ <comment><![CDATA[Select the icon size to use in the Social Login interface.]]></comment>
78
+ <source_model>sociallogin/source_iconsize</source_model>
79
+ <sort_order>18</sort_order>
80
+ <show_in_default>1</show_in_default>
81
+ <show_in_website>1</show_in_website>
82
+ <show_in_store>1</show_in_store>
83
+ </iconSize>
84
+ <iconsPerRow translate="label">
85
+ <label>Social Login icons per row</label>
86
+ <frontend_type>text</frontend_type>
87
+ <comment><![CDATA[How many social icons would you like to be displayed per row?]]></comment>
88
+ <sort_order>19</sort_order>
89
+ <show_in_default>1</show_in_default>
90
+ <show_in_website>1</show_in_website>
91
+ <show_in_store>1</show_in_store>
92
+ </iconsPerRow>
93
+ <backgroundColor translate="label">
94
+ <label>Background Color</label>
95
+ <frontend_type>text</frontend_type>
96
+ <comment><![CDATA[What background color would you like to use for the Social Login interface? (Leave empty for transparent. You can enter hexa-decimal code of the color as well as name of the color.)]]></comment>
97
+ <sort_order>20</sort_order>
98
+ <show_in_default>1</show_in_default>
99
+ <show_in_website>1</show_in_website>
100
+ <show_in_store>1</show_in_store>
101
+ </backgroundColor>
102
  <showdefault translate="label">
103
  <label>Show Social Login interface in right side panel</label>
104
  <frontend_type>select</frontend_type>
193
  <show_in_website>1</show_in_website>
194
  <show_in_store>1</show_in_store>
195
  </api>
196
+ </fields>
197
  </messages>
198
  <email_settings>
199
  <label>Social Login Advanced Settings</label>
200
  <frontend_type>text</frontend_type>
201
+ <sort_order>19</sort_order>
202
  <show_in_default>1</show_in_default>
203
  <show_in_website>1</show_in_website>
204
  <show_in_store>1</show_in_store>
206
  <profileFieldsRequired translate="label">
207
  <label>Profile Fields Required</label>
208
  <frontend_type>select</frontend_type>
209
+ <comment><![CDATA[Ask the required Magento User Profile fields in a popup when user registers through Social Login.]]></comment>
 
210
  <source_model>adminhtml/system_config_source_yesno</source_model>
211
+ <sort_order>20</sort_order>
212
  <show_in_default>1</show_in_default>
213
  <show_in_website>1</show_in_website>
214
  <show_in_store>1</show_in_store>
215
  </profileFieldsRequired>
216
+ <updateProfileData translate="label">
217
+ <label>Update Profile Data</label>
218
+ <frontend_type>select</frontend_type>
219
+ <comment><![CDATA[Select yes to update user profile details in your Magento website, every time user logs into your website.]]></comment>
220
+ <source_model>adminhtml/system_config_source_yesno</source_model>
221
+ <sort_order>21</sort_order>
222
+ <show_in_default>1</show_in_default>
223
+ <show_in_website>1</show_in_website>
224
+ <show_in_store>1</show_in_store>
225
+ </updateProfileData>
226
  <emailrequired translate="label">
227
  <label>Email Required</label>
228
  <frontend_type>select</frontend_type>
308
  </notifyAdminText>
309
  </fields>
310
  </email_settings>
311
+ <horizontalSharing translate="label">
312
+ <label>Horizontal Social Sharing</label>
313
  <frontend_type>text</frontend_type>
314
  <sort_order>30</sort_order>
315
  <show_in_default>1</show_in_default>
316
  <show_in_website>1</show_in_website>
317
  <show_in_store>1</show_in_store>
318
  <fields>
319
+ <horizontalShareEnable translate="label">
320
+ <label>Enable Horizontal Social Sharing</label>
321
  <frontend_type>select</frontend_type>
322
  <source_model>adminhtml/system_config_source_yesno</source_model>
323
+ <comment><![CDATA[Do you want to enable Horizontal Social Sharing for your website?]]>
324
  </comment>
325
  <sort_order>31</sort_order>
326
  <show_in_default>1</show_in_default>
327
  <show_in_website>1</show_in_website>
328
  <show_in_store>1</show_in_store>
329
+ </horizontalShareEnable>
330
+ <horizontalShareProduct translate="label">
331
  <label>Show Social Sharing Interface at Product Pages</label>
332
  <frontend_type>select</frontend_type>
333
  <source_model>adminhtml/system_config_source_yesno</source_model>
335
  <show_in_default>1</show_in_default>
336
  <show_in_website>1</show_in_website>
337
  <show_in_store>1</show_in_store>
338
+ </horizontalShareProduct>
339
+ <horizontalShareSuccess translate="label">
340
  <label>Enable Social Sharing at Checkout Success Page</label>
341
  <frontend_type>select</frontend_type>
342
  <source_model>adminhtml/system_config_source_yesno</source_model>
344
  <show_in_default>1</show_in_default>
345
  <show_in_website>1</show_in_website>
346
  <show_in_store>1</show_in_store>
347
+ </horizontalShareSuccess>
348
  <sharingTitle translate="label">
349
  <label>Sharing Title</label>
350
  <frontend_type>text</frontend_type>
355
  <show_in_website>1</show_in_website>
356
  <show_in_store>1</show_in_store>
357
  </sharingTitle>
358
+ <horizontalSharingTheme translate="label">
 
 
 
 
 
 
 
 
 
 
 
359
  <label>Choose a theme</label>
360
  <frontend_type>radios</frontend_type>
361
  <source_model>sociallogin/source_HorizontalSharing</source_model>
363
  <show_in_default>1</show_in_default>
364
  <show_in_website>1</show_in_website>
365
  <show_in_store>1</show_in_store>
366
+ </horizontalSharingTheme>
367
+ <horizontalSharingProviders translate="label">
368
+ <label>Sharing Providers</label>
369
+ <frontend_type>checkboxes</frontend_type>
370
+ <comment><![CDATA[<div style="clear: both !important;"><p class="note"><span>Selected providers will be displayed in the Social Sharing widget</span></p></div>]]></comment>
371
+ <sort_order>40</sort_order>
 
 
 
 
 
 
 
 
 
 
372
  <show_in_default>1</show_in_default>
373
  <show_in_website>1</show_in_website>
374
  <show_in_store>1</show_in_store>
375
+ </horizontalSharingProviders>
376
+ <horizontalSharingProvidersHidden translate="label">
377
+ <label>Rearrange Icons</label>
378
+ <frontend_type>hidden</frontend_type>
379
+ <sort_order>41</sort_order>
 
380
  <show_in_default>1</show_in_default>
381
  <show_in_website>1</show_in_website>
382
  <show_in_store>1</show_in_store>
383
+ </horizontalSharingProvidersHidden>
384
+ <horizontalCounterProviders translate="label">
385
  <label>Sharing Providers</label>
386
  <frontend_type>checkboxes</frontend_type>
387
  <comment><![CDATA[<div style="clear: both !important;"><p class="note"><span>Selected providers will be displayed in the Social Sharing widget</span></p></div>]]></comment>
 
388
  <sort_order>40</sort_order>
389
  <show_in_default>1</show_in_default>
390
  <show_in_website>1</show_in_website>
391
  <show_in_store>1</show_in_store>
392
+ </horizontalCounterProviders>
393
+ <horizontalCounterProvidersHidden translate="label">
394
  <label>Rearrange Icons</label>
395
  <frontend_type>hidden</frontend_type>
396
  <sort_order>41</sort_order>
397
  <show_in_default>1</show_in_default>
398
  <show_in_website>1</show_in_website>
399
  <show_in_store>1</show_in_store>
400
+ </horizontalCounterProvidersHidden>
401
  </fields>
402
+ </horizontalSharing>
403
+ <verticalSharing translate="label">
404
+ <label>Vertical Social Sharing</label>
405
  <frontend_type>text</frontend_type>
406
  <sort_order>42</sort_order>
407
  <show_in_default>1</show_in_default>
408
  <show_in_website>1</show_in_website>
409
  <show_in_store>1</show_in_store>
410
  <fields>
411
+ <verticalShareEnable translate="label">
412
+ <label>Enable Vertical Social Sharing</label>
413
  <frontend_type>select</frontend_type>
414
  <source_model>adminhtml/system_config_source_yesno</source_model>
415
  <comment><![CDATA[Do you want to enable Social Counter for your website?]]>
418
  <show_in_default>1</show_in_default>
419
  <show_in_website>1</show_in_website>
420
  <show_in_store>1</show_in_store>
421
+ </verticalShareEnable>
422
+ <verticalShareProduct translate="label">
423
+ <label>Show Social Sharing Interface at Product Pages</label>
424
  <frontend_type>select</frontend_type>
425
  <source_model>adminhtml/system_config_source_yesno</source_model>
426
  <sort_order>44</sort_order>
427
  <show_in_default>1</show_in_default>
428
  <show_in_website>1</show_in_website>
429
  <show_in_store>1</show_in_store>
430
+ </verticalShareProduct>
431
+ <verticalShareSuccess translate="label">
432
+ <label>Enable Social Sharing at Checkout Success Page</label>
433
  <frontend_type>select</frontend_type>
434
  <source_model>adminhtml/system_config_source_yesno</source_model>
435
  <sort_order>45</sort_order>
436
  <show_in_default>1</show_in_default>
437
  <show_in_website>1</show_in_website>
438
  <show_in_store>1</show_in_store>
439
+ </verticalShareSuccess>
440
+ <verticalSharingTheme translate="label">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
441
  <label>Choose a theme</label>
442
  <frontend_type>radios</frontend_type>
443
+ <source_model>sociallogin/source_VerticalSharing</source_model>
444
  <sort_order>48</sort_order>
445
  <show_in_default>1</show_in_default>
446
  <show_in_website>1</show_in_website>
447
  <show_in_store>1</show_in_store>
448
+ </verticalSharingTheme>
449
+ <verticalAlignment translate="label">
 
 
 
 
 
 
 
 
 
450
  <label>Alignment</label>
451
  <frontend_type>select</frontend_type>
452
  <comment><![CDATA[Select the position of the Social Counter widget with respect to page]]></comment>
453
+ <source_model>sociallogin/source_SharingVerticalAlignment</source_model>
454
  <sort_order>50</sort_order>
455
  <show_in_default>1</show_in_default>
456
  <show_in_website>1</show_in_website>
457
  <show_in_store>1</show_in_store>
458
+ </verticalAlignment>
459
+ <offset translate="label">
460
  <label>Offset</label>
461
  <frontend_type>text</frontend_type>
462
  <comment><![CDATA[Specify distance of vertical counter interface from top (Leave empty for default behaviour) <a style="text-decoration:none" href="javascript:void(0)" title="Enter a number (For example - 200). It will set the 'top' CSS attribute of the interface to the value specified. Increase in the number pushes interface towards bottom.">(?)</a>]]></comment>
464
  <show_in_default>1</show_in_default>
465
  <show_in_website>1</show_in_website>
466
  <show_in_store>1</show_in_store>
467
+ </offset>
468
+ <verticalSharingProviders translate="label">
469
+ <label>Sharing Providers</label>
470
  <frontend_type>checkboxes</frontend_type>
471
  <comment><![CDATA[<div style="clear: both !important;"><p class="note"><span>Selected providers will be displayed in the Social Counter widget</span></p></div>]]></comment>
 
472
  <sort_order>52</sort_order>
473
  <show_in_default>1</show_in_default>
474
  <show_in_website>1</show_in_website>
475
  <show_in_store>1</show_in_store>
476
+ </verticalSharingProviders>
477
+ <verticalSharingProvidersHidden translate="label">
478
+ <label>Rearrange Icons</label>
479
  <frontend_type>hidden</frontend_type>
480
  <sort_order>53</sort_order>
481
  <show_in_default>1</show_in_default>
482
  <show_in_website>1</show_in_website>
483
  <show_in_store>1</show_in_store>
484
+ </verticalSharingProvidersHidden>
485
+ <verticalCounterProviders translate="label">
486
+ <label>Sharing Providers</label>
487
+ <frontend_type>checkboxes</frontend_type>
488
+ <comment><![CDATA[<div style="clear: both !important;"><p class="note"><span>Selected providers will be displayed in the Social Sharing widget</span></p></div>]]></comment>
489
+ <sort_order>54</sort_order>
490
+ <show_in_default>1</show_in_default>
491
+ <show_in_website>1</show_in_website>
492
+ <show_in_store>1</show_in_store>
493
+ </verticalCounterProviders>
494
+ <verticalCounterProvidersHidden translate="label">
495
+ <label>Rearrange Icons</label>
496
+ <frontend_type>hidden</frontend_type>
497
+ <sort_order>55</sort_order>
498
+ <show_in_default>1</show_in_default>
499
+ <show_in_website>1</show_in_website>
500
+ <show_in_store>1</show_in_store>
501
+ </verticalCounterProvidersHidden>
502
  </fields>
503
+ </verticalSharing>
504
  </groups>
505
  </sociallogin_options>
506
  </sections>
app/code/community/Loginradius/Sociallogin/etc/widget.xml CHANGED
@@ -13,12 +13,12 @@
13
  </label_text>
14
  </parameters>
15
  </sociallogin_auth>
16
- <sociallogin_share type="sociallogin/share" translate="name description" module="sociallogin">
17
- <name>Social Share</name>
18
- <description type="desc">Adds Social Share interface to the page.</description>
19
- </sociallogin_share>
20
- <sociallogin_counter type="sociallogin/counter" translate="name description" module="sociallogin">
21
- <name>Social Counter</name>
22
- <description type="desc">Adds Social Counter interface to the page.</description>
23
- </sociallogin_counter>
24
  </widgets>
13
  </label_text>
14
  </parameters>
15
  </sociallogin_auth>
16
+ <sociallogin_horizontalsharing type="sociallogin/horizontalsharing" translate="name description" module="sociallogin">
17
+ <name>Social Sharing - Horizontal</name>
18
+ <description type="desc">Adds Social Sharing interface (horizontal theme) to the page.</description>
19
+ </sociallogin_horizontalsharing>
20
+ <sociallogin_verticalsharing type="sociallogin/verticalsharing" translate="name description" module="sociallogin">
21
+ <name>Social Sharing - Vertical</name>
22
+ <description type="desc">Adds Social Sharing interface (vertical theme) to the page.</description>
23
+ </sociallogin_verticalsharing>
24
  </widgets>
app/code/community/Loginradius/Sociallogin/sql/sociallogin_setup/{mysql4-install-3.1.0.php → mysql4-install-3.5.0.php} RENAMED
File without changes
app/design/adminhtml/default/default/layout/loginradius_sociallogin.xml CHANGED
@@ -1,10 +1,10 @@
1
  <?xml version="1.0"?>
2
- <layout version="3.1.0">
3
  <default>
4
  <reference name="head">
5
  <action method="addJs"><script>../skin/frontend/base/default/Loginradius/Sociallogin/js/jquery.js</script></action>
6
  <action method="addJs"><script>../skin/frontend/base/default/Loginradius/Sociallogin/js/jquery.ui.sortable.min.js</script></action>
7
- <action method="addJs"><script>../skin/frontend/base/default/Loginradius/Sociallogin/js/admin-ui.js</script></action>
8
  <action method="addCss"><script>../../../frontend/base/default/Loginradius/Sociallogin/css/admin-ui.css</script></action>
9
  </reference>
10
  </default>
1
  <?xml version="1.0"?>
2
+ <layout version="3.5.0">
3
  <default>
4
  <reference name="head">
5
  <action method="addJs"><script>../skin/frontend/base/default/Loginradius/Sociallogin/js/jquery.js</script></action>
6
  <action method="addJs"><script>../skin/frontend/base/default/Loginradius/Sociallogin/js/jquery.ui.sortable.min.js</script></action>
7
+ <action method="addJs"><script>../skin/frontend/base/default/Loginradius/Sociallogin/js/admin-ui.js</script></action>
8
  <action method="addCss"><script>../../../frontend/base/default/Loginradius/Sociallogin/css/admin-ui.css</script></action>
9
  </reference>
10
  </default>
app/design/frontend/default/default/layout/sociallogin.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="3.1.0">
3
  <default>
4
  <reference name="right">
5
  <block type="sociallogin/sociallogin" name="sociallogin" template="sociallogin/sociallogin.phtml" before="-" />
@@ -11,9 +11,6 @@
11
  <catalog_product_view>
12
  <reference name="alert.urls">
13
  <block type="sociallogin/sociallogin" name="socialshareproduct" template="sociallogin/socialshareproduct.phtml" before="-" />
14
- </reference>
15
- <reference name="product.info.extrahint">
16
- <block type="sociallogin/sociallogin" name="socialcounter" template="sociallogin/socialcounterproduct.phtml" />
17
  </reference>
18
  </catalog_product_view>
19
  <customer_account_login>
@@ -36,7 +33,6 @@
36
  <checkout_onepage_success>
37
  <reference name="content">
38
  <block type="sociallogin/sociallogin" name="checkoutsuccessshare" template="sociallogin/socialsharesuccess.phtml" before="-" />
39
- <block type="sociallogin/sociallogin" name="checkoutsuccesscounter" template="sociallogin/socialcountersuccess.phtml" before="-" />
40
  </reference>
41
  </checkout_onepage_success>
42
  </layout>
1
  <?xml version="1.0"?>
2
+ <layout version="3.5.0">
3
  <default>
4
  <reference name="right">
5
  <block type="sociallogin/sociallogin" name="sociallogin" template="sociallogin/sociallogin.phtml" before="-" />
11
  <catalog_product_view>
12
  <reference name="alert.urls">
13
  <block type="sociallogin/sociallogin" name="socialshareproduct" template="sociallogin/socialshareproduct.phtml" before="-" />
 
 
 
14
  </reference>
15
  </catalog_product_view>
16
  <customer_account_login>
33
  <checkout_onepage_success>
34
  <reference name="content">
35
  <block type="sociallogin/sociallogin" name="checkoutsuccessshare" template="sociallogin/socialsharesuccess.phtml" before="-" />
 
36
  </reference>
37
  </checkout_onepage_success>
38
  </layout>
app/design/frontend/default/default/template/sociallogin/socialcounterproduct.phtml DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- if( $this->counterEnable() == "1" && $this->counterProduct() == "1" ){
3
- if($this->counterTheme() == "horizontal" && trim($this->counterTitle()) != ""){
4
- echo '<div style="font-weight:bold">'.trim($this->counterTitle()).'</div>';
5
- }
6
- echo '<div class="lrcounter_simplebox"></div>';
7
- }
8
- ?>
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/sociallogin/socialcountersuccess.phtml DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- if( $this->counterEnable() == "1" && $this->counterSuccess() == "1"){
3
- if($this->counterTheme() == "horizontal" && trim($this->counterTitle()) != ""){
4
- echo '<div style="font-weight:bold">'.trim($this->counterTitle()).'</div>';
5
- }
6
- echo '<div class="lrcounter_simplebox"></div>';
7
- }
8
- ?>
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/sociallogin/socialshare_head.phtml CHANGED
@@ -1,130 +1,143 @@
1
  <?php
2
- if($this->shareEnable() == "1" || $this->counterEnable() == "1"){
3
  echo '<script type="text/javascript">var islrsharing = true; var islrsocialcounter = true;</script> <script type="text/javascript" src="//share.loginradius.com/Content/js/LoginRadius.js" id="lrsharescript"></script>';
4
  }
5
- if( $this->shareEnable() == "1" ){
6
- // sharing code
7
- if($this->sharingTheme() == "horizontal"){
 
 
 
 
 
 
 
 
8
  // interface
9
- if($this->horizontalSharing() == "32" || $this->horizontalSharing() == "16"){
10
- $interface = 'horizontal';
11
- }elseif($this->horizontalSharing() == "single_large" || $this->horizontalSharing() == "single_small"){
12
- $interface = 'simpleimage';
13
- }else{
14
- $interface = 'horizontal';
15
- }
16
- // size
17
- if($this->horizontalSharing() == "32" || $this->horizontalSharing() == "single_large"){
18
- $size = '32';
19
- }elseif($this->horizontalSharing() == "16" || $this->horizontalSharing() == "single_small"){
20
- $size = '16';
21
- }else{
22
- $size = '32';
23
- }
24
- }elseif($this->sharingTheme() == "vertical"){
25
- $interface = 'Simplefloat';
26
- if($this->verticalSharing() == "32" || $this->verticalSharing() == "single_large"){
27
- $size = '32';
28
  }else{
29
- $size = '16';
30
  }
31
  }else{
32
  $interface = 'horizontal';
33
- $size = '32';
34
  }
35
- if($this->sharingProviders() != ""){
36
- $providers = str_replace(',', '","', $this->sharingProviders());
 
 
 
37
  }else{
38
- $providers = 'Facebook","Twitter","GooglePlus","Print","Email';
39
  }
40
- $code = '<script type="text/javascript">LoginRadius.util.ready(function () { $i = $SS.Interface.'.$interface.'; $SS.Providers.Top = ["'.$providers.'"]; $u = LoginRadius.user_settings; $u.apikey= \''.trim($this->getApikey()).'\'; $i.size = '.$size.';';
41
- if($this->sharingTheme() == "vertical"){
42
- if($this->sharingVerticalAlignment() == 'top_left'){
43
- $position1 = 'top';
44
- $position2 = 'left';
45
- }elseif($this->sharingVerticalAlignment() == 'top_right'){
46
- $position1 = 'top';
47
- $position2 = 'right';
48
- }elseif($this->sharingVerticalAlignment() == 'bottom_left'){
49
- $position1 = 'bottom';
50
- $position2 = 'left';
51
  }else{
52
- $position1 = 'bottom';
53
- $position2 = 'right';
54
  }
55
- if(trim($this->sharingOffset()) != ""){
56
- $code .= '$i.top = \''.trim($this->sharingOffset()).'px\'; $i.'.$position2.' = \'0px\';';
 
 
 
57
  }else{
58
- $code .= '$i.'.$position1.' = \'0px\'; $i.'.$position2.' = \'0px\';';
59
  }
 
 
 
 
 
 
60
  }
61
- $code .= '$i.show("lrsharecontainer"); }); </script>';
62
- echo $code;
63
  ?>
64
  <style type="text/css">
65
- div.lrsharecontainer{
66
  z-index : 1000000;
67
  }
68
  </style>
69
  <?php
70
  }
71
- if($this->counterEnable() == "1"){
72
- $interface = 'simple';
73
- if($this->counterTheme() == "horizontal"){
74
- $isHorizontal = "true";
75
- // interface
76
- if($this->horizontalCounter() == "vertical"){
77
- $type = 'vertical';
78
- }else{
79
- $type = 'horizontal';
80
- }
81
- }elseif($this->counterTheme() == "vertical"){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  $isHorizontal = "false";
83
- if($this->verticalCounter() == "vertical"){
84
  $type = 'vertical';
85
- }else{
86
  $type = 'horizontal';
87
  }
88
  }else{
89
- $isHorizontal = "true";
90
- $type = 'horizontal';
91
- }
92
- if($this->counterProviders() != ""){
93
- $providers = str_replace(',', '","', $this->counterProviders());
94
- }else{
95
- $providers = 'Facebook Like","Google+ +1","LinkedIn Share","Twitter Tweet';
96
  }
97
- $code = '<script type="text/javascript">LoginRadius.util.ready(function () { $SC.Providers.Selected = ["'.$providers.'"]; $S = $SC.Interface.'.$interface.'; $S.isHorizontal = '.$isHorizontal.'; $S.countertype = \''.$type.'\';';
98
- if($this->counterTheme() == "vertical"){
99
- if($this->counterVerticalAlignment() == 'top_left'){
100
- $position1 = 'top';
101
- $position2 = 'left';
102
- }elseif($this->counterVerticalAlignment() == 'top_right'){
103
- $position1 = 'top';
104
- $position2 = 'right';
105
- }elseif($this->counterVerticalAlignment() == 'bottom_left'){
106
- $position1 = 'bottom';
107
- $position2 = 'left';
108
  }else{
109
- $position1 = 'bottom';
110
- $position2 = 'right';
111
  }
112
- if(trim($this->counterOffset()) != ""){
113
- $code .= '$S.top = \''.trim($this->counterOffset()).'px\'; $S.'.$position2.' = \'0px\';';
 
 
 
 
114
  }else{
115
- $code .= '$S.'.$position1.' = \'0px\'; $S.'.$position2.' = \'0px\';';
 
 
 
 
 
116
  }
 
117
  }
118
- $code .= '$S.show("lrcounter_simplebox"); }); </script>';
119
- echo $code;
120
  ?>
121
  <style type="text/css">
122
- div.lrcounter_simplebox{
123
  z-index : 1000000;
124
  }
125
  </style>
126
  <?php
127
  }
 
 
128
  if( $this->loginEnable() == "1" ){
129
  $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
130
  if($this->getLayout()->getBlock('head')->getTitle() == "Checkout"){
@@ -136,8 +149,8 @@ if( $this->loginEnable() == "1" ){
136
  }
137
  ?>
138
  <script src="//hub.loginradius.com/include/js/LoginRadius.js" ></script>
139
- <script type="text/javascript"> var options={}; options.login=true; LoginRadius_SocialLogin.util.ready(function () { $ui = LoginRadius_SocialLogin.lr_login_settings;$ui.interfacesize = "small";$ui.apikey = "<?php echo trim($this->getApikey()) ?>";$ui.callback = "<?php echo $loginRadiusCallback ?>"; $ui.lrinterfacecontainer ="interfacecontainerdiv"; LoginRadius_SocialLogin.init(options); });
140
  </script>
141
  <?php
142
  }
143
- ?>
1
  <?php
2
+ if($this->horizontalShareEnable() == "1" || $this->verticalShareEnable() == "1"){
3
  echo '<script type="text/javascript">var islrsharing = true; var islrsocialcounter = true;</script> <script type="text/javascript" src="//share.loginradius.com/Content/js/LoginRadius.js" id="lrsharescript"></script>';
4
  }
5
+ $sharingScript = '<script type="text/javascript">';
6
+ if( $this->horizontalShareEnable() == "1" ){
7
+ // interface
8
+ if($this->horizontalSharingTheme() == "32" || $this->horizontalSharingTheme() == "16"){
9
+ $interface = 'horizontal';
10
+ }elseif($this->horizontalSharingTheme() == "single_large" || $this->horizontalSharingTheme() == "single_small"){
11
+ $interface = 'simpleimage';
12
+ }elseif($this->horizontalSharingTheme() == "counter_horizontal" || $this->horizontalSharingTheme() == "counter_vertical"){
13
+ // set counter variables
14
+ $interface = 'simple';
15
+ $isHorizontal = "true";
16
  // interface
17
+ if($this->horizontalSharingTheme() == "counter_vertical"){
18
+ $type = 'vertical';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }else{
20
+ $type = 'horizontal';
21
  }
22
  }else{
23
  $interface = 'horizontal';
 
24
  }
25
+ // size
26
+ if($this->horizontalSharingTheme() == "32" || $this->horizontalSharingTheme() == "single_large"){
27
+ $size = '32';
28
+ }elseif($this->horizontalSharingTheme() == "16" || $this->horizontalSharingTheme() == "single_small"){
29
+ $size = '16';
30
  }else{
31
+ $size = '32';
32
  }
33
+ // counter providers
34
+ if($this->horizontalSharingTheme() == "counter_horizontal" || $this->horizontalSharingTheme() == "counter_vertical"){
35
+ if($this->horizontalCounterProviders() != ""){
36
+ $providers = str_replace(',', '","', $this->horizontalCounterProviders());
 
 
 
 
 
 
 
37
  }else{
38
+ $providers = 'Facebook Like","Google+ +1","Pinterest Pin it","LinkedIn Share","Hybridshare';
 
39
  }
40
+ // prepare counter script
41
+ $sharingScript .= 'LoginRadius.util.ready(function () { $SC.Providers.Selected = ["'.$providers.'"]; $S = $SC.Interface.'.$interface.'; $S.isHorizontal = '.$isHorizontal.'; $S.countertype = \''.$type.'\'; $S.show("loginRadiusHorizontalSharing"); });';
42
+ }else{
43
+ if($this->horizontalSharingProviders() != ""){
44
+ $providers = str_replace(',', '","', $this->horizontalSharingProviders());
45
  }else{
46
+ $providers = 'Facebook","Twitter","GooglePlus","LinkedIn","Pinterest","Print","Email';
47
  }
48
+ // prepare sharing script
49
+ $sharingScript .= 'LoginRadius.util.ready(function() { $i = $SS.Interface.'.$interface.'; $SS.Providers.Top = ["'.$providers.'"]; $u = LoginRadius.user_settings;';
50
+ if(trim($this->getApikey()) != ""){
51
+ $sharingScript .= '$u.apikey= \''.trim($this->getApikey()).'\';';
52
+ }
53
+ $sharingScript .= '$i.size = '.$size.'; $u.sharecounttype="url"; $i.show("loginRadiusHorizontalSharing"); });';
54
  }
 
 
55
  ?>
56
  <style type="text/css">
57
+ div.loginRadiusHorizontalSharing{
58
  z-index : 1000000;
59
  }
60
  </style>
61
  <?php
62
  }
63
+ // vertical sharing interface
64
+ if($this->verticalShareEnable() == "1"){
65
+ // relative vertical position
66
+ if($this->verticalAlignment() == 'top_left'){
67
+ $position1 = 'top';
68
+ $position2 = 'left';
69
+ }elseif($this->verticalAlignment() == 'top_right'){
70
+ $position1 = 'top';
71
+ $position2 = 'right';
72
+ }elseif($this->verticalAlignment() == 'bottom_left'){
73
+ $position1 = 'bottom';
74
+ $position2 = 'left';
75
+ }else{
76
+ $position1 = 'bottom';
77
+ $position2 = 'right';
78
+ }
79
+ // interface top offset
80
+ if($this->verticalSharingTheme() == "counter_horizontal" || $this->verticalSharingTheme() == "counter_vertical"){
81
+ $sharingVariable = 'S';
82
+ }else{
83
+ $sharingVariable = 'i';
84
+ }
85
+ $offset = "";
86
+ if(trim($this->offset()) != ""){
87
+ $offset = '$'.$sharingVariable.'.top = \''.trim($this->offset()).'px\'; $'.$sharingVariable.'.'.$position2.' = \'0px\';';
88
+ }else{
89
+ $offset = '$'.$sharingVariable.'.'.$position1.' = \'0px\'; $'.$sharingVariable.'.'.$position2.' = \'0px\';';
90
+ }
91
+ $interface = 'Simplefloat';
92
+ if($this->verticalSharingTheme() == "32"){
93
+ $size = '32';
94
+ }elseif($this->verticalSharingTheme() == "16"){
95
+ $size = '16';
96
+ }elseif($this->verticalSharingTheme() == "counter_horizontal" || $this->verticalSharingTheme() == "counter_vertical"){
97
+ $interface = 'simple';
98
  $isHorizontal = "false";
99
+ if($this->verticalSharingTheme() == "counter_vertical"){
100
  $type = 'vertical';
101
+ }elseif($this->verticalSharingTheme() == "counter_horizontal"){
102
  $type = 'horizontal';
103
  }
104
  }else{
105
+ $size = '16';
 
 
 
 
 
 
106
  }
107
+
108
+ // counter providers
109
+ if($this->verticalSharingTheme() == "counter_horizontal" || $this->verticalSharingTheme() == "counter_vertical"){
110
+ if($this->verticalCounterProviders() != ""){
111
+ $providers = str_replace(',', '","', $this->verticalCounterProviders());
 
 
 
 
 
 
112
  }else{
113
+ $providers = 'Facebook Like","Google+ +1","Pinterest Pin it","LinkedIn Share","Hybridshare';
 
114
  }
115
+ // prepare counter script
116
+ $sharingScript .= 'LoginRadius.util.ready(function () { $SC.Providers.Selected = ["'.$providers.'"]; $S = $SC.Interface.'.$interface.'; $S.isHorizontal = '.$isHorizontal.'; $S.countertype = \''.$type.'\'; '.$offset.' $S.show("loginRadiusVerticalSharing"); });';
117
+ }else{
118
+ // sharing providers
119
+ if($this->verticalSharingProviders() != ""){
120
+ $providers = str_replace(',', '","', $this->verticalSharingProviders());
121
  }else{
122
+ $providers = 'Facebook","Twitter","GooglePlus","LinkedIn","Pinterest","Print","Email';
123
+ }
124
+ // prepare sharing script
125
+ $sharingScript .= 'LoginRadius.util.ready(function() { $i = $SS.Interface.'.$interface.'; $SS.Providers.Top = ["'.$providers.'"]; $u = LoginRadius.user_settings;';
126
+ if($this->getApikey() != ""){
127
+ $sharingScript .= '$u.apikey= \''.trim($this->getApikey()).'\';';
128
  }
129
+ $sharingScript .= '$i.size = '.$size.'; '.$offset.' $i.show("loginRadiusVerticalSharing"); });';
130
  }
 
 
131
  ?>
132
  <style type="text/css">
133
+ div.loginRadiusVerticalSharing{
134
  z-index : 1000000;
135
  }
136
  </style>
137
  <?php
138
  }
139
+ $sharingScript .= '</script>';
140
+ echo $sharingScript;
141
  if( $this->loginEnable() == "1" ){
142
  $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
143
  if($this->getLayout()->getBlock('head')->getTitle() == "Checkout"){
149
  }
150
  ?>
151
  <script src="//hub.loginradius.com/include/js/LoginRadius.js" ></script>
152
+ <script type="text/javascript"> var options={}; options.login=true; LoginRadius_SocialLogin.util.ready(function () { $ui = LoginRadius_SocialLogin.lr_login_settings;$ui.interfacesize = "<?php echo $this->iconSize() == 'small' ? 'small' : '' ?>"; <?php if(trim($this->iconsPerRow()) != ''){ echo '$ui.noofcolumns = '.trim($this->iconsPerRow()).';'; } ?> $ui.apikey = "<?php echo trim($this->getApikey()) ?>";$ui.callback = "<?php echo $loginRadiusCallback ?>"; $ui.lrinterfacebackground = "<?php if(trim($this->backgroundColor()) != ''){ echo trim($this->backgroundColor()); } ?>"; $ui.lrinterfacecontainer ="interfacecontainerdiv"; LoginRadius_SocialLogin.init(options); });
153
  </script>
154
  <?php
155
  }
156
+ ?>
app/design/frontend/default/default/template/sociallogin/socialshareproduct.phtml CHANGED
@@ -1,8 +1,11 @@
1
  <?php
2
- if( $this->shareEnable() == "1" && $this->shareProduct() == "1"){
3
- if($this->sharingTheme() == "horizontal" && trim($this->sharingTitle()) != ""){
4
  echo '<div style="font-weight:bold">'.trim($this->sharingTitle()).'</div>';
5
  }
6
- echo '<div class="lrsharecontainer"></div>';
 
 
 
7
  }
8
  ?>
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
+ }
8
+ if($this->verticalShareEnable() == "1" && $this->verticalShareSuccess() == "1"){
9
+ echo '<div class="loginRadiusVerticalSharing"></div>';
10
  }
11
  ?>
app/design/frontend/default/default/template/sociallogin/socialsharesuccess.phtml CHANGED
@@ -1,8 +1,11 @@
1
  <?php
2
- if( $this->shareEnable() == "1" && $this->shareSuccess() == "1"){
3
- if($this->sharingTheme() == "horizontal" && trim($this->sharingTitle()) != ""){
4
  echo '<div style="font-weight:bold">'.trim($this->sharingTitle()).'</div>';
5
  }
6
- echo '<div class="lrsharecontainer"></div>';
 
 
 
7
  }
8
  ?>
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
+ }
8
+ if($this->verticalShareEnable() == "1" && $this->verticalShareSuccess() == "1"){
9
+ echo '<div class="loginRadiusVerticalSharing"></div>';
10
  }
11
  ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LoginRadius</name>
4
- <version>3.1.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Social Login, Sharing and Counter for Magento</summary>
10
  <description>Add Social Login, Sharing and Counter to your Magento website and also get accurate User Profile Data and Social Analytics.</description>
11
- <notes>Tenth release of social login</notes>
12
  <authors><author><name>LoginRadius Team</name><user>LoginRadius</user><email>developers@loginradius.com</email></author></authors>
13
- <date>2013-06-22</date>
14
- <time>01:47:11</time>
15
- <contents><target name="magecommunity"><dir name="Loginradius"><dir name="Sociallogin"><dir name="Block"><file name="Auth.php" hash="04701fceae03a0e1a689ecbfa1cafa0a"/><file name="Counter.php" hash="f79411371642a6940fe68f35cf09ef7b"/><file name="Info.php" hash="cb4e9999795b628b5e41ae1fb00fd78f"/><file name="Share.php" hash="ea9a80891c1c88f96b4f0a2e337d6d27"/><file name="Sociallogin.php" hash="c4f43965c4d7c3e5f7dd1fda2fc7fed8"/></dir><dir name="Helper"><file name="Data.php" hash="7fe10f157031a33dd5c312f61f36f650"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Sociallogin"><file name="Collection.php" hash="b4632ab82692843577c985a3ed23981f"/></dir><file name="Sociallogin.php" hash="8c8d5d266c57ea0400d5a560a943ea14"/></dir><file name="Sociallogin.php" hash="a49fc157930cd09fcbe522aabb1d986b"/><dir name="Source"><file name="CounterProviders.php" hash="3a766cbf9cb9266017b7db52eb803f8d"/><file name="CounterTheme.php" hash="9acf7eeb09922e30f280ed4adbc0c71b"/><file name="CounterVerticalAlignment.php" hash="b8a41b061e9cda5af2c26f86bd539642"/><file name="HorizontalCounter.php" hash="bff739afcd8a9214708ba9bb73c72b1f"/><file name="HorizontalSharing.php" hash="4928cee1eede58a9873bacbe14b8a71d"/><file name="SharingProviders.php" hash="78e4f9db98a27cee511f14fe6b6db932"/><file name="SharingTheme.php" hash="276aec035389937dca2ae4b403d62842"/><file name="SharingVerticalAlignment.php" hash="23ca47c9cc9409fb00993c4eb2b902c9"/><file name="Uihover.php" hash="a213bcf0ba0da0eda7cf5dd2301835a3"/><file name="Uihover2.php" hash="eec2eb63c5c53153ec026c65c1d973a5"/><file name="VerticalCounter.php" hash="ebb1981dafcf8bae47a37db2d927a053"/><file name="VerticalSharing.php" hash="cc319e204bc9bbc23d54c2ccbc24aec9"/></dir><dir name="System"><dir name="Config"><file name="Info.php" hash="2127cd991693595b79f988670ccbfcf9"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="1c31c922112a1d587015c426bf848bcd"/><file name="Popup.php" hash="3ad2694b93c3f0a9a34cd481e8ab1952"/></dir><dir name="etc"><file name="config.xml" hash="c754c2c27911c88caefe523c4b7ce6b9"/><file name="system.xml" hash="10b60d57f9c9c0f91192cd98f4f15f1e"/><file name="widget.xml" hash="75f4ee0b08fdd001bbd216bd965b644d"/></dir><dir name="sql"><dir name="sociallogin_setup"><file name="mysql4-install-3.1.0.php" hash="a04e6f43b037bea1d40147e9b7df3ef9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="sociallogin.xml" hash="d37abc9f3a395bc4ca3b25b32ab5ab9c"/></dir><dir name="template"><dir name="sociallogin"><file name="sociallogin.phtml" hash="afd4527bb917dd9b1d728aa013ab509e"/><file name="socialshareproduct.phtml" hash="0ca550886186babf7d4dddce12712be3"/><file name="socialshare_head.phtml" hash="67e957a912594272572aa3fedcc9b2f3"/><file name="socialcounterproduct.phtml" hash="32a8554e411b322ca8b17742221dc26b"/><file name="abovelogin.phtml" hash="2218de1a7e3a79ede44d249566bce724"/><file name="belowlogin.phtml" hash="08764826ede5f9b1bc6b6748ea6800c7"/><file name="belowregister.phtml" hash="ee0a9c08ae1a61665ab21ef654f04164"/><file name="aboveregister.phtml" hash="2d6a6dacde78cf0a50e95ecaba536e50"/><file name="sociallogincustom.phtml" hash="6ce07cbef83983289c89697ce18d679f"/><file name="linking.phtml" hash="bb48a1774b8e9e35d20c0dc058ef40a7"/><file name="linkingscript.phtml" hash="77f0e6348fed90c6cb24f064a8fac2e9"/><file name="socialcountersuccess.phtml" hash="4d980bd4a66481cddf8483d888fc9bcc"/><file name="socialsharesuccess.phtml" hash="3556544b11643b576459c51aea71f8b8"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="loginradius_sociallogin.xml" hash="7de921c6906cb83ff04a0fc1aeaec408"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Loginradius_Sociallogin.xml" hash="6c5bb03c460936006692aa1d01d142ba"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="Loginradius"><dir name="Sociallogin"><dir name="css"><file name="admin-ui.css" hash="0b90e548db7b2c178f359ef7b30c653e"/><file name="lrshare_iconsprite32.png" hash="a016ded3f25653acf2fa9dfab8a38103"/></dir><dir name="images"><dir name="Counter"><file name="horizontal.png" hash="6bb8038603bbf9cc70bac8365eebd7ba"/><file name="vertical.png" hash="9c71cfb83ffb121a0ef89e263d474387"/><file name="verticalhorizontal.png" hash="901ccbd1d55404cdb8e89a0fad1356f0"/><file name="verticalvertical.png" hash="20c533bceb055e8ce56a262325b550c1"/></dir><dir name="Linking"><file name="Virgilio.png" hash="f5c3b6e19c38903a192954934000f60a"/><file name="aol.png" hash="4e51f60c1b8750c5b9dfa94f56fe13b1"/><file name="facebook.png" hash="141309628c58912076f00954b3fd19a6"/><file name="foursquare.png" hash="de2f4fcf5b3c1156f22ed546f5c3f0c5"/><file name="google.png" hash="ffeddc7d14c9b4de2efb6b8ea0f5f652"/><file name="hyves.png" hash="3c77fd2243b22c61915a950c3910f37c"/><file name="linkedin.png" hash="7a9bc12ec91ab2a30442c56a9f70e9ea"/><file name="live.png" hash="9d747bae72fc0f2e3a04f32896d62fbc"/><file name="livejournal.png" hash="e21f34630444412ab3dd197884e0c2e6"/><file name="mixi.png" hash="909e7edc76e59b448d56043eee5e1412"/><file name="myopenid.png" hash="c8295969044cb9d99f8348091ba75319"/><file name="myspace.png" hash="42cd07decb5f4a1fba604ef8df32ef2e"/><file name="openid.png" hash="92bd4471ef1d5dd04855887806db74f0"/><file name="orange.png" hash="9b9b8f2da956a238e7d58c241423af8a"/><file name="persona.png" hash="e0d926f89e9c428aece1e0f9dbb1f8f2"/><file name="stackexchange.png" hash="8ab952fe75d4a96d6752792ffdcbf0c3"/><file name="steamcommunity.png" hash="ad05c57a4ee01ebc01428b0da905d6b6"/><file name="twitter.png" hash="48044aca3a1d4864361f78c02ba86848"/><file name="verisign.png" hash="7a15fd820171218d803d26e7a3ec46a3"/><file name="vkontakte.png" hash="ae1e98911fe9ea6da8a50a568c082133"/><file name="wordpress.png" hash="8ce8b46a2233b8497dd10d9c4d535e22"/><file name="yahoo.png" hash="5c159cc8fed73621b2c12600f8dac288"/></dir><dir name="Sharing"><file name="16VerticlewithBox.png" hash="73b3abf54889144e9188ffaa76cbb11f"/><file name="32VerticlewithBox.png" hash="37060e164ca4f7c00f430d5f1ab7eddd"/><file name="horizonSharing16.png" hash="64188c128c8263c052153cf9708ac218"/><file name="horizonSharing32.png" hash="5e85ac81864885bcef5cc9691a9eba49"/><file name="single-image-theme-large.png" hash="e6ff4a26149b631639b601d95e2dc361"/><file name="single-image-theme-small.png" hash="8c2b20fa0f276e33f3876783eb2cbd74"/></dir></dir><dir name="js"><file name="admin-ui.js" hash="bac0d3d97c9c7f13f9fcaed627cd60c5"/><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>LoginRadius</name>
4
+ <version>3.5.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Social Login, Sharing and Counter for Magento</summary>
10
  <description>Add Social Login, Sharing and Counter to your Magento website and also get accurate User Profile Data and Social Analytics.</description>
11
+ <notes>Eleventh release of social login</notes>
12
  <authors><author><name>LoginRadius Team</name><user>LoginRadius</user><email>developers@loginradius.com</email></author></authors>
13
+ <date>2013-07-19</date>
14
+ <time>22:57:51</time>
15
+ <contents><target name="magecommunity"><dir name="Loginradius"><dir name="Sociallogin"><dir name="Block"><file name="Auth.php" hash="04701fceae03a0e1a689ecbfa1cafa0a"/><file name="Sociallogin.php" hash="5f9c77ac48bd10ca8b5139f48168c29d"/><file name="horizontalsharing.php" hash="39367aceab78df1bec9bf86588de19f6"/><file name="verticalsharing.php" hash="e2322a53ba7c97abbf495506d078e0fb"/></dir><dir name="Helper"><file name="Data.php" hash="7fe10f157031a33dd5c312f61f36f650"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Sociallogin"><file name="Collection.php" hash="b4632ab82692843577c985a3ed23981f"/></dir><file name="Sociallogin.php" hash="8c8d5d266c57ea0400d5a560a943ea14"/></dir><file name="Sociallogin.php" hash="a49fc157930cd09fcbe522aabb1d986b"/><dir name="Source"><file name="HorizontalSharing.php" hash="5e1c18d133cd3117e0eb0c732544177c"/><file name="Iconsize.php" hash="320b4f0bfec0fea09a55d97e36146128"/><file name="SharingVerticalAlignment.php" hash="23ca47c9cc9409fb00993c4eb2b902c9"/><file name="Uihover.php" hash="a213bcf0ba0da0eda7cf5dd2301835a3"/><file name="Uihover2.php" hash="eec2eb63c5c53153ec026c65c1d973a5"/><file name="VerticalSharing.php" hash="01788a41fea1546ddd334bf9c3f9d7f4"/></dir><dir name="System"><dir name="Config"><file name="Info.php" hash="288de78fd8e7bad133a6010d0715a881"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="bd075c9276552e9587d7ef9421c50dee"/><file name="Popup.php" hash="3ad2694b93c3f0a9a34cd481e8ab1952"/></dir><dir name="etc"><file name="config.xml" hash="14af3c931916e2db1cdf1f5679606ef4"/><file name="system.xml" hash="222471ae4ed25e54cf2f076bd6646e19"/><file name="widget.xml" hash="d0b3df464a19067f1e8aee749d0f3b6d"/></dir><dir name="sql"><dir name="sociallogin_setup"><file name="mysql4-install-3.5.0.php" hash="a04e6f43b037bea1d40147e9b7df3ef9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="sociallogin.xml" hash="37c4b1c8c64c2f49ba3e00f240c50e7d"/></dir><dir name="template"><dir name="sociallogin"><file name="sociallogin.phtml" hash="afd4527bb917dd9b1d728aa013ab509e"/><file name="socialshareproduct.phtml" hash="f1e9b25c523a234546f4541e00fe7990"/><file name="socialshare_head.phtml" hash="87c500f6e9d0e9fbc2fb2402660aac6c"/><file name="abovelogin.phtml" hash="2218de1a7e3a79ede44d249566bce724"/><file name="belowlogin.phtml" hash="08764826ede5f9b1bc6b6748ea6800c7"/><file name="belowregister.phtml" hash="ee0a9c08ae1a61665ab21ef654f04164"/><file name="aboveregister.phtml" hash="2d6a6dacde78cf0a50e95ecaba536e50"/><file name="sociallogincustom.phtml" hash="6ce07cbef83983289c89697ce18d679f"/><file name="linking.phtml" hash="bb48a1774b8e9e35d20c0dc058ef40a7"/><file name="linkingscript.phtml" hash="77f0e6348fed90c6cb24f064a8fac2e9"/><file name="socialsharesuccess.phtml" hash="d3ee67d1a57ceaa2279e624c111cc4f2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="loginradius_sociallogin.xml" hash="9add00b5d5a0e5d37f8ef610513fde72"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Loginradius_Sociallogin.xml" hash="6c5bb03c460936006692aa1d01d142ba"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="Loginradius"><dir name="Sociallogin"><dir name="css"><file name="admin-ui.css" hash="1b7b41974b24267a9095318f10e3b1c3"/><file name="lrshare_iconsprite32.png" hash="a016ded3f25653acf2fa9dfab8a38103"/></dir><dir name="images"><dir name="Linking"><file name="amazon.png" hash="961d0082ed4b433d8e0274c133072e2c"/><file name="aol.png" hash="4e51f60c1b8750c5b9dfa94f56fe13b1"/><file name="facebook.png" hash="141309628c58912076f00954b3fd19a6"/><file name="foursquare.png" hash="de2f4fcf5b3c1156f22ed546f5c3f0c5"/><file name="github.png" hash="45f8e1436fc5c5803ed9d4edb7cb59b6"/><file name="google.png" hash="ffeddc7d14c9b4de2efb6b8ea0f5f652"/><file name="hyves.png" hash="3c77fd2243b22c61915a950c3910f37c"/><file name="kaixin.png" hash="bc84991a5c9d15e20946fae5e9c27f4d"/><file name="linkedin.png" hash="7a9bc12ec91ab2a30442c56a9f70e9ea"/><file name="live.png" hash="9d747bae72fc0f2e3a04f32896d62fbc"/><file name="livejournal.png" hash="e21f34630444412ab3dd197884e0c2e6"/><file name="mixi.png" hash="909e7edc76e59b448d56043eee5e1412"/><file name="myopenid.png" hash="c8295969044cb9d99f8348091ba75319"/><file name="myspace.png" hash="42cd07decb5f4a1fba604ef8df32ef2e"/><file name="odnoklassniki.png" hash="34cd7d239583b015cdd1adb5b7fec085"/><file name="openid.png" hash="92bd4471ef1d5dd04855887806db74f0"/><file name="orange.png" hash="9b9b8f2da956a238e7d58c241423af8a"/><file name="paypal.png" hash="082f0b50411b1dfb1bfd86cfdeb92cea"/><file name="persona.png" hash="e0d926f89e9c428aece1e0f9dbb1f8f2"/><file name="qq.png" hash="8e6dc34bdf03f07277e0aadf8706a4a7"/><file name="renren.png" hash="040a0af8119b7f85bfc2df41ec56f915"/><file name="salesforce.png" hash="e41bcac63438bb04af3a9745b816a675"/><file name="stackexchange.png" hash="8ab952fe75d4a96d6752792ffdcbf0c3"/><file name="steamcommunity.png" hash="ad05c57a4ee01ebc01428b0da905d6b6"/><file name="twitter.png" hash="48044aca3a1d4864361f78c02ba86848"/><file name="verisign.png" hash="7a15fd820171218d803d26e7a3ec46a3"/><file name="virgilio.png" hash="f5c3b6e19c38903a192954934000f60a"/><file name="vkontakte.png" hash="ae1e98911fe9ea6da8a50a568c082133"/><file name="wordpress.png" hash="8ce8b46a2233b8497dd10d9c4d535e22"/><file name="yahoo.png" hash="5c159cc8fed73621b2c12600f8dac288"/></dir><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="0f4729083e85894d126a7c5202b18465"/><file name="verticalvertical.png" hash="8587e3bc2ada62498cedc8e80eeee6ec"/></dir></dir></dir><dir name="js"><file name="admin-ui.js" hash="cd6cda17359bd581dcbeea19894cf45c"/><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/frontend/base/default/Loginradius/Sociallogin/css/admin-ui.css CHANGED
@@ -31,69 +31,48 @@
31
  .loginRadiusHelpDiv ul{
32
  margin: 0 15px;
33
  }
34
- .twitter_box {
35
- width: 58px; height: 34px;
36
- position: relative;
37
- background: #fff;
38
- border: 1px solid #bbb;
39
- -webkit-border-radius: 3px;
40
- -moz-border-radius: 3px;
41
- -ms-border-radius: 3px;
42
- -o-border-radius: 3px;
43
- border-radius: 3px;
44
- margin-bottom: 5px;
45
- margin-left: 56px;
46
- }
47
- .twitter_box:after, .twitter_box:before{
48
- width: 0; height: 0;
49
- position: absolute;
50
- top: 100%;
51
- border: solid transparent;
52
- pointer-events: none;
53
- content: " ";
54
- }
55
- .twitter_box:after{
56
- left: 50%;
57
- border-top-color: #fff;
58
- border-width: 3px;
59
- margin-left: -3px;
60
- }
61
- .twitter_box:before{
62
- left: 50%;
63
- border-top-color: #aaa;
64
- border-width: 4px;
65
- margin-left: -4px;
66
- }
67
- .twitter_box #followers{
68
- width: 100%; height: auto;
69
- position: absolute;
70
- top: 0px; left: 0px;
71
- font-family: "Helvetica Neue", helvetica, arial, sans-serif;
72
- font-size: 16px; line-height: 34px;
73
- letter-spacing: 0;
74
- white-space: nowrap;
75
- color: #333;
76
- text-align: center;
77
- -webkit-font-smoothing: subpixel-antialiased;
78
- }
79
  loginradius_radio{
80
  vertical-align:top;
81
  margin-left:7px
82
  }
83
- #row_sociallogin_options_sharing_sharingProviders ul li{
84
- width:100px;
85
  float:left
86
  }
87
  #row_sociallogin_options_messages_redirect td input{
88
  margin-right:2px
89
  }
90
- #row_sociallogin_options_counter_counterProviders ul li{
 
 
 
 
 
 
 
 
91
  width:149px;
92
  float:left
93
  }
94
- #loginRadiusRearrangeSharing li{
95
  float:left
96
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  #row_sociallogin_options_sharing_verticalSharing td input{
98
  vertical-align:top !important;
99
  float:left !important;
31
  .loginRadiusHelpDiv ul{
32
  margin: 0 15px;
33
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  loginradius_radio{
35
  vertical-align:top;
36
  margin-left:7px
37
  }
38
+ #row_sociallogin_options_horizontalSharing_horizontalSharingProviders ul li{
39
+ width:149px;
40
  float:left
41
  }
42
  #row_sociallogin_options_messages_redirect td input{
43
  margin-right:2px
44
  }
45
+ #row_sociallogin_options_verticalSharing_verticalSharingProviders ul li{
46
+ width:149px;
47
+ float:left
48
+ }
49
+ #row_sociallogin_options_verticalSharing_verticalCounterProviders ul li{
50
+ width:149px;
51
+ float:left
52
+ }
53
+ #row_sociallogin_options_horizontalSharing_horizontalCounterProviders ul li{
54
  width:149px;
55
  float:left
56
  }
57
+ #loginRadiushorizontalRearrangeSharing li, #loginRadiusverticalRearrangeSharing li{
58
  float:left
59
  }
60
+ #row_sociallogin_options_verticalSharing_verticalSharingTheme td label{
61
+ float:left !important
62
+ }
63
+ #row_sociallogin_options_messages_iconSize td input{
64
+ margin-right:2px
65
+ }
66
+ #row_sociallogin_options_verticalSharing_verticalSharingTheme td input{
67
+ float:left !important;
68
+ margin-left:4px
69
+ }
70
+ #row_sociallogin_options_horizontalSharing_horizontalSharingTheme td input{
71
+ vertical-align:top
72
+ }
73
+ #row_sociallogin_options_verticalSharing_verticalSharingTheme td.value{
74
+ width:400px !important;
75
+ }
76
  #row_sociallogin_options_sharing_verticalSharing td input{
77
  vertical-align:top !important;
78
  float:left !important;
skin/frontend/base/default/Loginradius/Sociallogin/images/Counter/verticalhorizontal.png DELETED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Counter/verticalvertical.png DELETED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/amazon.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/github.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/kaixin.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/odnoklassniki.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/paypal.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/qq.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/renren.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/salesforce.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Linking/{Virgilio.png → virgilio.png} RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{horizonSharing16.png → Horizontal/horizonSharing16.png} RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{horizonSharing32.png → Horizontal/horizonSharing32.png} RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/{Counter → Sharing/Horizontal}/horizontal.png RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{single-image-theme-large.png → Horizontal/single-image-theme-large.png} RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{single-image-theme-small.png → Horizontal/single-image-theme-small.png} RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/{Counter → Sharing/Horizontal}/vertical.png RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{16VerticlewithBox.png → Vertical/16VerticlewithBox.png} RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/{32VerticlewithBox.png → Vertical/32VerticlewithBox.png} RENAMED
File without changes
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/Vertical/verticalhorizontal.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/images/Sharing/Vertical/verticalvertical.png ADDED
Binary file
skin/frontend/base/default/Loginradius/Sociallogin/js/admin-ui.js CHANGED
@@ -1,72 +1,122 @@
1
- jQuery.noConflict();
2
- window.onload = function(){
3
- // hide counter providers hidden field
4
- document.getElementById('row_sociallogin_options_counter_counterProvidersHidden').style.display = 'none';
5
- // set left margin for first radio button in Horzontal counter
6
- var loginRadiusHorizontalCounter = document.getElementById('row_sociallogin_options_counter_horizontalCounter').getElementsByTagName('input');
7
- loginRadiusHorizontalCounter[0].style.marginLeft = '6px';
8
- // set left margin for first radio button in Horzontal sharing
9
- var loginRadiusHorizontalSharing = document.getElementById('row_sociallogin_options_sharing_horizontalSharing').getElementsByTagName('input');
10
- loginRadiusHorizontalSharing[0].style.marginLeft = '6px';
11
- // set left margin for first radio button in login redirection
12
- var loginRadiusRedirectionOptions = document.getElementById('row_sociallogin_options_messages_redirect').getElementsByTagName('input');
13
- loginRadiusRedirectionOptions[0].style.marginLeft = '6px';
14
- // sharing theme
15
- var loginRadiusSharingTheme = document.getElementById('sociallogin_options_sharing_sharingTheme');
16
- // show sharing themes according to the currently selected theme type
17
- loginRadiusToggleSharing(loginRadiusSharingTheme.value);
18
- // counter theme
19
- var loginRadiusCounterTheme = document.getElementById('sociallogin_options_counter_counterTheme');
20
- // show counter themes according to the currently selected theme type
21
- loginRadiusToggleCounter(loginRadiusCounterTheme.value);
22
- // show sharing themes according to the selected option
23
- loginRadiusSharingTheme.onchange = loginRadiusToggleSharing;
24
- // show counter themes according to the selected option
25
- loginRadiusCounterTheme.onchange = loginRadiusToggleCounter;
26
- // get counter providers table-row reference
27
- var loginRadiusCounterProvidersRow = document.getElementById('row_sociallogin_options_counter_counterProviders');
28
- // get counter providers checkboxes reference
29
- var loginRadiusCounterProviders = loginRadiusCounterProvidersRow.getElementsByTagName('input');
30
- for(var i = 0; i < loginRadiusCounterProviders.length; i++){
31
- loginRadiusCounterProviders[i].onclick = loginRadiusPopulateCounter;
32
  }
33
- // check the counter providers that were saved previously in the hidden field
34
- var loginRadiusCounterProvidersHidden = document.getElementById('sociallogin_options_counter_counterProvidersHidden').value.trim();
35
- if(loginRadiusCounterProvidersHidden != ""){
36
- var loginRadiusCounterProviderArray = loginRadiusCounterProvidersHidden.split(',');
37
- for(var i = 0; i < loginRadiusCounterProviderArray.length; i++){
38
- document.getElementById("sociallogin_options_counter_counterProviders_"+loginRadiusCounterProviderArray[i]).checked = true;
39
- loginRadiusPopulateCounter(document.getElementById("sociallogin_options_counter_counterProviders_"+loginRadiusCounterProviderArray[i]));
40
- }
41
- }else{
42
- document.getElementById("sociallogin_options_counter_counterProviders_Reddit").checked = false;
43
- var loginRadiusCounterProviderArray = ["Facebook Like", "Google+ +1", "Twitter Tweet", "LinkedIn Share"];
44
- for(var i = 0; i < loginRadiusCounterProviderArray.length; i++){
45
- document.getElementById("sociallogin_options_counter_counterProviders_"+loginRadiusCounterProviderArray[i]).checked = true;
46
- loginRadiusPopulateCounter(document.getElementById("sociallogin_options_counter_counterProviders_"+loginRadiusCounterProviderArray[i]), true);
47
  }
48
  }
49
- // get sharing providers table-row reference
50
- var loginRadiusSharingProvidersRow = document.getElementById('row_sociallogin_options_sharing_sharingProviders');
51
- // get sharing providers checkboxes reference
52
- var loginRadiusSharingProviders = loginRadiusSharingProvidersRow.getElementsByTagName('input');
53
- for(var i = 0; i < loginRadiusSharingProviders.length; i++){
54
- loginRadiusSharingProviders[i].onclick = loginRadiusShowIcon;
55
- }
56
- // check the sharing providers that were saved previously in the hidden field
57
- var loginRadiusSharingProvidersHidden = document.getElementById('sociallogin_options_sharing_sharingProvidersHidden').value.trim();
58
- if(loginRadiusSharingProvidersHidden != ""){
59
- var loginRadiusSharingProviderArray = loginRadiusSharingProvidersHidden.split(',');
60
- for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
61
- document.getElementById("sociallogin_options_sharing_sharingProviders_"+loginRadiusSharingProviderArray[i]).checked = true;
62
- loginRadiusShowIcon(document.getElementById("sociallogin_options_sharing_sharingProviders_"+loginRadiusSharingProviderArray[i]));
 
 
 
 
 
 
 
 
 
 
 
63
  }
64
- }else{
65
- document.getElementById("sociallogin_options_sharing_sharingProviders_dotnetkicks").checked = false;
66
- var loginRadiusSharingProviderArray = ["facebook", "googleplus", "twitter", "email", "print"];
67
- for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
68
- document.getElementById("sociallogin_options_sharing_sharingProviders_"+loginRadiusSharingProviderArray[i]).checked = true;
69
- loginRadiusShowIcon(document.getElementById("sociallogin_options_sharing_sharingProviders_"+loginRadiusSharingProviderArray[i]), true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  }
71
  }
72
  }
@@ -109,10 +159,10 @@ function loginRadiusToggleCounter(theme){
109
  }
110
  }
111
  // limit maximum number of providers selected in sharing
112
- function loginRadiusSharingLimit(elem){
113
  var checkCount = 0;
114
  // get providers table-row reference
115
- var loginRadiusSharingProvidersRow = document.getElementById('row_sociallogin_options_sharing_sharingProviders');
116
  // get sharing providers checkboxes reference
117
  var loginRadiusSharingProviders = loginRadiusSharingProvidersRow.getElementsByTagName('input');
118
  for(var i = 0; i < loginRadiusSharingProviders.length; i++){
@@ -121,16 +171,16 @@ function loginRadiusSharingLimit(elem){
121
  checkCount++;
122
  if(checkCount >= 10){
123
  elem.checked = false;
124
- if(document.getElementById('loginRadiusErrorDiv') == null){
125
  // create and show div having error message
126
  var errorDiv = document.createElement('div');
127
- errorDiv.setAttribute('id', 'loginRadiusErrorDiv');
128
  errorDiv.innerHTML = "You can select only 9 providers.";
129
  errorDiv.style.color = 'red';
130
  errorDiv.style.marginBottom = '10px';
131
  // append div to the <td> containing sharing provider checkboxes
132
  var rearrangeTd = loginRadiusSharingProvidersRow.getElementsByTagName('td');
133
- jQuery(rearrangeTd[1]).find('ul').before(errorDiv);
134
  }
135
  return;
136
  }
@@ -138,15 +188,12 @@ function loginRadiusSharingLimit(elem){
138
  }
139
  }
140
  // add/remove icons from counter hidden field
141
- function loginRadiusPopulateCounter(elem, lrDefault){
142
- if(typeof this.checked != "undefined"){
143
- elem = this;
144
- }
145
  // get providers hidden field value
146
- var providers = document.getElementById('sociallogin_options_counter_counterProvidersHidden');
147
  if(elem.checked){
148
  // add selected providers in the hiddem field value
149
- if(typeof this.checked != "undefined" || lrDefault == true){
150
  if(providers.value == ""){
151
  providers.value = elem.value;
152
  }else{
@@ -166,38 +213,35 @@ function loginRadiusPopulateCounter(elem, lrDefault){
166
  }
167
  }
168
  // show selected providers in rearrange option
169
- function loginRadiusShowIcon(elem, lrDefault){
170
- if(typeof this.checked != "undefined"){
171
- elem = this;
172
- loginRadiusSharingLimit(elem);
173
- }
174
  // get providers hidden field value
175
- var providers = document.getElementById('sociallogin_options_sharing_sharingProvidersHidden');
176
  if(elem.checked){
177
  // get reference to "rearrange providers" <ul> element
178
- var ul = document.getElementById('loginRadiusRearrangeSharing');
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', 'loginRadiusRearrangeSharing');
184
- jQuery(ul).sortable({
185
  update: function(e, ui) {
186
- var val = jQuery(this).children().map(function() {
187
- return jQuery(this).attr('title');
188
  }).get().join();
189
- jQuery(providers).val(val);
190
  },
191
  revert: true});
192
  }
193
  // create list items
194
  var listItem = document.createElement('li');
195
- listItem.setAttribute('id', 'loginRadiusLI'+elem.value);
196
  listItem.setAttribute('title', elem.value);
197
- listItem.setAttribute('class', 'lrshare_iconsprite32 lrshare_'+elem.value);
198
  ul.appendChild(listItem);
199
  // add selected providers in the hiddem field value
200
- if(typeof this.checked != "undefined" || lrDefault == true){
201
  if(providers.value == ""){
202
  providers.value = elem.value;
203
  }else{
@@ -205,12 +249,14 @@ function loginRadiusShowIcon(elem, lrDefault){
205
  }
206
  }
207
  // append <ul> to the <td>
208
- var rearrangeRow = document.getElementById('row_sociallogin_options_sharing_sharingProvidersHidden');
209
  var rearrangeTd = rearrangeRow.getElementsByTagName('td');
210
  rearrangeTd[1].appendChild(ul);
211
  }else{
212
- var remove = document.getElementById('loginRadiusLI'+elem.value);
213
- remove.parentNode.removeChild(remove);
 
 
214
  if(providers.value.indexOf(',') == -1){
215
  providers.value = providers.value.replace(elem.value, "");
216
  }else{
@@ -221,28 +267,4 @@ function loginRadiusShowIcon(elem, lrDefault){
221
  }
222
  }
223
  }
224
- }
225
- // twitter follow script
226
- jQuery(function(){
227
- function m(n, d){
228
- P = Math.pow;
229
- R = Math.round
230
- d = P(10, d);
231
- i = 7;
232
- while(i) {
233
- (s = P(10, i-- * 3)) <= n && (n = R(n * d / s) / d + "KMGTPE"[i])
234
- }
235
- return n;
236
- }
237
- jQuery.ajax({
238
- url: 'http://api.twitter.com/1/users/show.json',
239
- data: {
240
- screen_name: 'LoginRadius'
241
- },
242
- dataType: 'jsonp',
243
- success: function(data) {
244
- count = data.followers_count;
245
- jQuery('#followers').html(m(count, 1));
246
- }
247
- });
248
- });
1
+ // get trim() worked in IE
2
+ if(typeof String.prototype.trim !== 'function') {
3
+ String.prototype.trim = function() {
4
+ return this.replace(/^\s+|\s+$/g, '');
5
+ }
6
+ }
7
+ var $loginRadiusJquery = jQuery.noConflict();
8
+ // prepare admin UI on window load
9
+ function loginRadiusPrepareAdminUI(){
10
+ // highlight API Key and Secret notification
11
+ if($loginRadiusJquery('#loginRadiusKeySecretNotification')){
12
+ $loginRadiusJquery('#loginRadiusKeySecretNotification').animate({'backgroundColor' : 'rgb(241, 142, 127)'}, 1000).animate({'backgroundColor' : '#FFFFE0'}, 1000).animate({'backgroundColor' : 'rgb(241, 142, 127)'}, 1000).animate({'backgroundColor' : '#FFFFE0'}, 1000);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  }
14
+ // show notification, if API Key and secret are same
15
+ document.getElementById('sociallogin_options_messages_appkey').onkeyup = function(){
16
+ if(this.value.trim() == document.getElementById('sociallogin_options_messages_appid').value.trim()){
17
+ if($loginRadiusJquery('#spanApiKeyError').html() == undefined){
18
+ $loginRadiusJquery('#sociallogin_options_messages_appkey').before('<span id="spanApiKeyError" style="color:red">API Key and Secret cannot be same. Please paste correct API Key and Secret from your LoginRadius account in the corresponding fields.</span>');
19
+ }
20
+ }else{
21
+ $loginRadiusJquery('#spanApiKeyError').html('');
 
 
 
 
 
 
22
  }
23
  }
24
+ var horizontalSharingTheme, verticalSharingTheme;
25
+ // fetch horizontal and vertical sharing providers dynamically from LoginRadius on window load
26
+ var sharingType = ['horizontal', 'vertical'];
27
+ var sharingModes = ['Sharing', 'Counter'];
28
+ // show the sharing/counter providers according to the selected sharing theme
29
+ for(var j = 0; j < sharingType.length; j++){
30
+ var loginRadiusHorizontalSharingThemes = document.getElementById('row_sociallogin_options_'+sharingType[j]+'Sharing_'+sharingType[j]+'SharingTheme').getElementsByTagName('input');
31
+ for(var i = 0; i < loginRadiusHorizontalSharingThemes.length; i++){
32
+ if(sharingType[j] == 'horizontal'){
33
+ loginRadiusHorizontalSharingThemes[i].onclick = function(){
34
+ loginRadiusToggleSharingProviders(this, 'horizontal');
35
+ }
36
+ }else if(sharingType[j] == 'vertical'){
37
+ loginRadiusHorizontalSharingThemes[i].onclick = function(){
38
+ loginRadiusToggleSharingProviders(this, 'vertical');
39
+ }
40
+ }
41
+ if(loginRadiusHorizontalSharingThemes[i].checked == true){
42
+ if(sharingType[j] == 'horizontal'){
43
+ horizontalSharingTheme = loginRadiusHorizontalSharingThemes[i].value;
44
+ }else if(sharingType[j] == 'vertical'){
45
+ verticalSharingTheme = loginRadiusHorizontalSharingThemes[i].value;
46
+ }
47
+ loginRadiusToggleSharingProviders(loginRadiusHorizontalSharingThemes[i], sharingType[j]);
48
+ }
49
  }
50
+ }
51
+ // set left margin for first radio button in Social Login Icon Size
52
+ document.getElementById('sociallogin_options_messages_iconSizemedium').style.marginLeft = '6px';
53
+ // set left margin for first radio button in Horizontal counter
54
+ document.getElementById('sociallogin_options_horizontalSharing_horizontalSharingTheme32').style.marginLeft = '6px';
55
+ // set left margin for first radio button in login redirection
56
+ var loginRadiusRedirectionOptions = document.getElementById('row_sociallogin_options_messages_redirect').getElementsByTagName('input');
57
+ loginRadiusRedirectionOptions[0].style.marginLeft = '6px';
58
+
59
+
60
+ // if selected sharing theme is worth showing rearrange icons, then show rearrange icons and manage sharing providers in hidden field
61
+ for(var j = 0; j < sharingType.length; j++){
62
+ for(var jj = 0; jj < sharingModes.length; jj++){
63
+ // get sharing providers table-row reference
64
+ var loginRadiusHorizontalSharingProvidersRow = document.getElementById('row_sociallogin_options_'+sharingType[j]+'Sharing_'+sharingType[j]+sharingModes[jj]+'Providers');
65
+ // get sharing providers checkboxes reference
66
+ var loginRadiusHorizontalSharingProviders = loginRadiusHorizontalSharingProvidersRow.getElementsByTagName('input');
67
+ for(var i = 0; i < loginRadiusHorizontalSharingProviders.length; i++){
68
+ if(sharingType[j] == 'horizontal'){
69
+ if(sharingModes[jj] == 'Sharing'){
70
+ loginRadiusHorizontalSharingProviders[i].onclick = function(){
71
+ loginRadiusShowIcon(false, this, 'horizontal');
72
+ }
73
+ }else{
74
+ loginRadiusHorizontalSharingProviders[i].onclick = function(){
75
+ loginRadiusPopulateCounter(this, 'horizontal');
76
+ }
77
+ }
78
+ }else if(sharingType[j] == 'vertical'){
79
+ if(sharingModes[jj] == 'Sharing'){
80
+ loginRadiusHorizontalSharingProviders[i].onclick = function(){
81
+ loginRadiusShowIcon(false, this, 'vertical');
82
+ }
83
+ }else{
84
+ loginRadiusHorizontalSharingProviders[i].onclick = function(){
85
+ loginRadiusPopulateCounter(this, 'vertical');
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ // check the sharing providers that were saved previously in the hidden field
92
+ var loginRadiusSharingProvidersHidden = document.getElementById('sociallogin_options_'+sharingType[j]+'Sharing_'+sharingType[j]+sharingModes[jj]+'ProvidersHidden').value.trim();
93
+ if(loginRadiusSharingProvidersHidden != ""){
94
+ var loginRadiusSharingProviderArray = loginRadiusSharingProvidersHidden.split(',');
95
+ if(sharingModes[jj] == 'Sharing'){
96
+ for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
97
+ document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
98
+ loginRadiusShowIcon(true, document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j]);
99
+ }
100
+ }else{
101
+ for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
102
+ document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
103
+ }
104
+ }
105
+ }else{
106
+ if(sharingModes[jj] == 'Sharing'){
107
+ var loginRadiusSharingProviderArray = ["Facebook", "GooglePlus", "Twitter", "Pinterest", "Email", "Print"];
108
+ for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
109
+ document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
110
+ loginRadiusShowIcon(true, document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j], true);
111
+ }
112
+ }else{
113
+ var loginRadiusSharingProviderArray = ["Facebook Like", "Google+ +1", "Twitter Tweet", "Pinterest Pin it", "Hybridshare"];
114
+ for(var i = 0; i < loginRadiusSharingProviderArray.length; i++){
115
+ document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]).checked = true;
116
+ loginRadiusPopulateCounter(document.getElementById(sharingType[j]+"_"+sharingModes[jj]+"_"+loginRadiusSharingProviderArray[i]), sharingType[j]);
117
+ }
118
+ }
119
+ }
120
  }
121
  }
122
  }
159
  }
160
  }
161
  // limit maximum number of providers selected in sharing
162
+ function loginRadiusSharingLimit(elem, sharingType){
163
  var checkCount = 0;
164
  // get providers table-row reference
165
+ var loginRadiusSharingProvidersRow = document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProviders');
166
  // get sharing providers checkboxes reference
167
  var loginRadiusSharingProviders = loginRadiusSharingProvidersRow.getElementsByTagName('input');
168
  for(var i = 0; i < loginRadiusSharingProviders.length; i++){
171
  checkCount++;
172
  if(checkCount >= 10){
173
  elem.checked = false;
174
+ if(document.getElementById('loginRadius'+sharingType+'ErrorDiv') == null){
175
  // create and show div having error message
176
  var errorDiv = document.createElement('div');
177
+ errorDiv.setAttribute('id', 'loginRadius'+sharingType+'ErrorDiv');
178
  errorDiv.innerHTML = "You can select only 9 providers.";
179
  errorDiv.style.color = 'red';
180
  errorDiv.style.marginBottom = '10px';
181
  // append div to the <td> containing sharing provider checkboxes
182
  var rearrangeTd = loginRadiusSharingProvidersRow.getElementsByTagName('td');
183
+ $loginRadiusJquery(rearrangeTd[1]).find('ul').before(errorDiv);
184
  }
185
  return;
186
  }
188
  }
189
  }
190
  // add/remove icons from counter hidden field
191
+ function loginRadiusPopulateCounter(elem, sharingType, lrDefault){
 
 
 
192
  // get providers hidden field value
193
+ var providers = document.getElementById('sociallogin_options_'+sharingType+'Sharing_'+sharingType+'CounterProvidersHidden');
194
  if(elem.checked){
195
  // add selected providers in the hiddem field value
196
+ if(typeof elem.checked != "undefined" || lrDefault == true){
197
  if(providers.value == ""){
198
  providers.value = elem.value;
199
  }else{
213
  }
214
  }
215
  // show selected providers in rearrange option
216
+ function loginRadiusShowIcon(pageRefresh, elem, sharingType, lrDefault){
217
+ loginRadiusSharingLimit(elem, sharingType);
 
 
 
218
  // get providers hidden field value
219
+ var providers = document.getElementById('sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden');
220
  if(elem.checked){
221
  // get reference to "rearrange providers" <ul> element
222
+ var ul = document.getElementById('loginRadius'+sharingType+'RearrangeSharing');
223
  // if <ul> is not already created
224
  if(ul == null){
225
  // create <ul> element
226
  var ul = document.createElement('ul');
227
+ ul.setAttribute('id', 'loginRadius'+sharingType+'RearrangeSharing');
228
+ $loginRadiusJquery(ul).sortable({
229
  update: function(e, ui) {
230
+ var val = $loginRadiusJquery(this).children().map(function() {
231
+ return $loginRadiusJquery(this).attr('title');
232
  }).get().join();
233
+ $loginRadiusJquery(providers).val(val);
234
  },
235
  revert: true});
236
  }
237
  // create list items
238
  var listItem = document.createElement('li');
239
+ listItem.setAttribute('id', 'loginRadius'+sharingType+'LI'+elem.value);
240
  listItem.setAttribute('title', elem.value);
241
+ listItem.setAttribute('class', 'lrshare_iconsprite32 lrshare_'+elem.value.toLowerCase());
242
  ul.appendChild(listItem);
243
  // add selected providers in the hiddem field value
244
+ if(!pageRefresh || lrDefault == true){
245
  if(providers.value == ""){
246
  providers.value = elem.value;
247
  }else{
249
  }
250
  }
251
  // append <ul> to the <td>
252
+ var rearrangeRow = document.getElementById('row_sociallogin_options_'+sharingType+'Sharing_'+sharingType+'SharingProvidersHidden');
253
  var rearrangeTd = rearrangeRow.getElementsByTagName('td');
254
  rearrangeTd[1].appendChild(ul);
255
  }else{
256
+ var remove = document.getElementById('loginRadius'+sharingType+'LI'+elem.value);
257
+ if(remove){
258
+ remove.parentNode.removeChild(remove);
259
+ }
260
  if(providers.value.indexOf(',') == -1){
261
  providers.value = providers.value.replace(elem.value, "");
262
  }else{
267
  }
268
  }
269
  }
270
+ }