LoginRadius - Version 2.1.1

Version Notes

Seventh release of social login

Download this release

Release Info

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


Code changes from version 2.1.0 to 2.1.1

Files changed (49) hide show
  1. app/code/community/Loginradius/Sociallogin/Block/Auth.php +2 -5
  2. app/code/community/Loginradius/Sociallogin/Block/Sociallogin.php +2 -4
  3. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/horizontal.png +0 -0
  4. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/lrshare_iconsprite32.png +0 -0
  5. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/verticalhorizontal.png +0 -0
  6. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/verticalvertical.png +0 -0
  7. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/Virgilio.png +0 -0
  8. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/aol.png +0 -0
  9. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/facebook.png +0 -0
  10. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/foursquare.png +0 -0
  11. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/google.png +0 -0
  12. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/hyves.png +0 -0
  13. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/linkedin.png +0 -0
  14. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/live.png +0 -0
  15. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/livejournal.png +0 -0
  16. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/mixi.png +0 -0
  17. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/myopenid.png +0 -0
  18. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/myspace.png +0 -0
  19. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/openid.png +0 -0
  20. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/orange.png +0 -0
  21. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/persona.png +0 -0
  22. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/stackexchange.png +0 -0
  23. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/steamcommunity.png +0 -0
  24. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/twitter.png +0 -0
  25. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/verisign.png +0 -0
  26. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/vkontakte.png +0 -0
  27. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/wordpress.png +0 -0
  28. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/yahoo.png +0 -0
  29. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/16VerticlewithBox.png +0 -0
  30. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/32VerticlewithBox.png +0 -0
  31. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/horizonSharing16.png +0 -0
  32. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/horizonSharing32.png +0 -0
  33. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/single-image-theme-large.png +0 -0
  34. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/single-image-theme-small.png +0 -0
  35. app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/sprites/lrshare_iconsprite32.png +0 -0
  36. app/code/community/Loginradius/Sociallogin/Model/Source/SharingThemes.php +13 -0
  37. app/code/community/Loginradius/Sociallogin/Model/System/Config/Tools.php +32 -0
  38. app/code/community/Loginradius/Sociallogin/controllers/Popup.php +141 -0
  39. app/code/community/Loginradius/Sociallogin/etc/config.xml +1 -1
  40. app/code/community/Loginradius/Sociallogin/sql/sociallogin_setup/{mysql4-install-2.1.0.php → mysql4-install-2.1.1.php} +0 -0
  41. app/design/frontend/default/default/layout/sociallogin.xml +1 -1
  42. app/design/frontend/default/default/template/sociallogin/abovelogin.phtml +1 -6
  43. app/design/frontend/default/default/template/sociallogin/aboveregister.phtml +1 -6
  44. app/design/frontend/default/default/template/sociallogin/belowlogin.phtml +1 -6
  45. app/design/frontend/default/default/template/sociallogin/belowregister.phtml +1 -6
  46. app/design/frontend/default/default/template/sociallogin/sociallogin.phtml +1 -6
  47. app/design/frontend/default/default/template/sociallogin/sociallogincustom.phtml +1 -6
  48. app/design/frontend/default/default/template/sociallogin/socialshare_head.phtml +8 -0
  49. package.xml +5 -5
app/code/community/Loginradius/Sociallogin/Block/Auth.php CHANGED
@@ -19,16 +19,13 @@ class Loginradius_Sociallogin_Block_Auth extends Mage_Core_Block_Template implem
19
  }elseif( $UserAuth == false ){
20
  return '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
21
  }else {
22
- $IsHttps = (!empty($UserAuth->IsHttps)) ? $UserAuth->IsHttps : '';
23
- $iframeHeight = (!empty($UserAuth->height)) ? $UserAuth->height : 50;
24
- $iframeWidth = (!empty($UserAuth->width)) ? $UserAuth->width : 138;
25
- $http = ($IsHttps == 1) ? "https://" : "http://";
26
  $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
27
  if (empty($titleText)) {
28
  $titleText = 'Social Login';
29
  }
30
  $label = '<span ><b>' . $titleText . '</b></span>';
31
- $iframe = '<iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe>';
 
32
  return $label.$iframe;
33
  }
34
  }
19
  }elseif( $UserAuth == false ){
20
  return '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
21
  }else {
 
 
 
 
22
  $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
23
  if (empty($titleText)) {
24
  $titleText = 'Social Login';
25
  }
26
  $label = '<span ><b>' . $titleText . '</b></span>';
27
+ // $iframe = '<iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe>';
28
+ $iframe = '<div class="interfacecontainerdiv" style="margin-left:10px"></div>';
29
  return $label.$iframe;
30
  }
31
  }
app/code/community/Loginradius/Sociallogin/Block/Sociallogin.php CHANGED
@@ -126,15 +126,14 @@ class Loginradius_Sociallogin_Block_Sociallogin extends Mage_Core_Block_Template
126
  public function getProfileResult($ApiSecrete)
127
  {
128
  if(isset($_REQUEST['token'])) {
129
- $ValidateUrl = "http://hub.loginradius.com/userprofile.ashx?token=".$_REQUEST['token']."&apisecrete=".trim($ApiSecrete);
130
  return $this->getApiCall($ValidateUrl);
131
  }
132
  }
133
  public function getApiResult($ApiKey, $ApiSecrete)
134
  {
135
  if ( !empty($ApiKey) && !empty($ApiSecrete) && preg_match('/^\{?[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}\}?$/i', $ApiKey) && preg_match('/^\{?[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}\}?$/i', $ApiSecrete) ) {
136
- $url = "https://hub.loginradius.com/getappinfo/$ApiKey/$ApiSecrete";
137
- return $this->getApiCall($url);
138
  }
139
  else {
140
  return false;
@@ -142,7 +141,6 @@ class Loginradius_Sociallogin_Block_Sociallogin extends Mage_Core_Block_Template
142
  }
143
  public function getApiCall($url)
144
  {
145
-
146
  if ( $this->getApiOption() == 'curl' ){
147
  $curl_handle = curl_init();
148
  curl_setopt($curl_handle, CURLOPT_URL, $url);
126
  public function getProfileResult($ApiSecrete)
127
  {
128
  if(isset($_REQUEST['token'])) {
129
+ $ValidateUrl = "http://devhub.loginradius.com/userprofile.ashx?token=".$_REQUEST['token']."&apisecrete=".trim($ApiSecrete);
130
  return $this->getApiCall($ValidateUrl);
131
  }
132
  }
133
  public function getApiResult($ApiKey, $ApiSecrete)
134
  {
135
  if ( !empty($ApiKey) && !empty($ApiSecrete) && preg_match('/^\{?[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}\}?$/i', $ApiKey) && preg_match('/^\{?[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}\}?$/i', $ApiSecrete) ) {
136
+ return true;
 
137
  }
138
  else {
139
  return false;
141
  }
142
  public function getApiCall($url)
143
  {
 
144
  if ( $this->getApiOption() == 'curl' ){
145
  $curl_handle = curl_init();
146
  curl_setopt($curl_handle, CURLOPT_URL, $url);
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/horizontal.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/lrshare_iconsprite32.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/verticalhorizontal.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Counter/verticalvertical.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/Virgilio.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/aol.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/facebook.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/foursquare.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/google.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/hyves.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/linkedin.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/live.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/livejournal.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/mixi.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/myopenid.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/myspace.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/openid.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/orange.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/persona.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/stackexchange.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/steamcommunity.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/twitter.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/verisign.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/vkontakte.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/wordpress.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Linking/yahoo.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/16VerticlewithBox.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/32VerticlewithBox.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/horizonSharing16.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/horizonSharing32.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/single-image-theme-large.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/single-image-theme-small.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/Images/Sharing/sprites/lrshare_iconsprite32.png ADDED
Binary file
app/code/community/Loginradius/Sociallogin/Model/Source/SharingThemes.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Loginradius_Sociallogin_Model_Source_SharingThemes
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ $result = array();
7
+ $result[] = array('value' => '32', 'label'=>'<img src="Images/Sharing/horizonSharing32.png" />');
8
+ $result[] = array('value' => '16', 'label'=>'<img src="Images/Sharing/horizonSharing16.png" />');
9
+ $result[] = array('value' => 'single_large', 'label'=>'<img src="Images/Sharing/single-image-theme-large.png" />');
10
+ $result[] = array('value' => 'single_small', 'label'=>'<img src="Images/Sharing/single-image-theme-small.png" />');
11
+ return $result;
12
+ }
13
+ }
app/code/community/Loginradius/Sociallogin/Model/System/Config/Tools.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Loginradius_Sociallogin_Model_System_Config_Tools
4
+ extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
5
+ {
6
+
7
+ /**
8
+ * Render fieldset html
9
+ *
10
+ * @param Varien_Data_Form_Element_Abstract $element
11
+ * @return string
12
+ */
13
+ public function render(Varien_Data_Form_Element_Abstract $element)
14
+ {
15
+ //$helper = Mage::helper('powershare');
16
+
17
+ $html = $this->_getHeaderHtml($element);
18
+
19
+ $html .= $this->_getButtonHtml();
20
+
21
+ $html .= $this->_getFooterHtml($element);
22
+
23
+ return $html;
24
+ }
25
+
26
+ private function _getButtonHtml()
27
+ {
28
+ die('test');
29
+ $button = "<span>Button</span>";
30
+ }
31
+
32
+ }
app/code/community/Loginradius/Sociallogin/controllers/Popup.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function SL_popUpWindow( $loginRadiusPopupTxt, $socialLoginMsg = "", $loginRadiusShowForm = true ){
3
+ ?>
4
+ <!--css of email block -->
5
+ <style type="text/css">
6
+ .LoginRadius_overlay {
7
+ background: none no-repeat scroll 0 0 rgba(127, 127, 127, 0.6);
8
+ height: 100%;
9
+ left: 0;
10
+ overflow: auto;
11
+ padding: 0px 20px 130px;
12
+ position: fixed;
13
+ top: 0;
14
+ width: 100%;
15
+ z-index: 100001;
16
+ }
17
+ #popupouter{
18
+ -moz-border-radius:4px;
19
+ -webkit-border-radius:4px;
20
+ border-radius:4px;
21
+ margin-left:-185px;
22
+ left:50%;
23
+ background:#f3f3f3;
24
+ padding:1px 0px 1px 0px;
25
+ width:370px;
26
+ position: absolute;
27
+ top:50%;
28
+ z-index:9999;
29
+ margin-top:-96px;
30
+ }
31
+ #popupinner {
32
+ background: none repeat scroll 0 0 #FFFFFF;
33
+ border-radius: 4px 4px 4px 4px;
34
+ margin: 10px;
35
+ overflow: auto;
36
+ padding: 10px 8px 4px;
37
+ }
38
+ #textmatter {
39
+ color: #666666;
40
+ font-family: Arial,Helvetica,sans-serif;
41
+ font-size: 14px;
42
+ margin: 10px 0;
43
+ float:left
44
+ }
45
+ .inputtxt{
46
+ font-family:Arial, Helvetica, sans-serif;
47
+ color:#a8a8a8;
48
+ font-size:11px;
49
+ border:#e5e5e5 1px solid;
50
+ width:280px;
51
+ height:27px;
52
+ margin:5px 0px 15px 0px;
53
+ float:left
54
+ }
55
+ .inputbutton{
56
+ border:#dcdcdc 1px solid;
57
+ -moz-border-radius:2px;
58
+ -webkit-border-radius:2px;
59
+ border-radius:2px;
60
+ text-decoration:none;
61
+ color:#6e6e6e;
62
+ font-family:Arial, Helvetica, sans-serif;
63
+ font-size:13px;
64
+ cursor:pointer;
65
+ background:#f3f3f3;
66
+ padding:6px 7px 6px 8px;
67
+ margin:0px 8px 0px 0px;
68
+ float:left
69
+ }
70
+ .inputbutton:hover{
71
+ border:#00ccff 1px solid;
72
+ -moz-border-radius:2px;
73
+ -webkit-border-radius:2px;
74
+ border-radius:2px;
75
+ khtml-border-radius:2px;
76
+ text-decoration:none;
77
+ color:#000000;
78
+ font-family:Arial, Helvetica, sans-serif;
79
+ font-size:13px;
80
+ cursor:pointer;
81
+ padding:6px 7px 6px 8px;
82
+ -moz-box-shadow: 0px 0px 4px #8a8a8a;
83
+ -webkit-box-shadow: 0px 0px 4px #8a8a8a;
84
+ box-shadow: 0px 0px 4px #8a8a8a;
85
+ background:#f3f3f3;
86
+ margin:0px 8px 0px 0px;
87
+ }
88
+ #textdivpopup{
89
+ text-align:right;
90
+ font-family:Arial, Helvetica, sans-serif;
91
+ font-size:11px;
92
+ color:#000000;
93
+ }
94
+ .spanpopup{
95
+ font-family:Arial, Helvetica, sans-serif;
96
+ font-size:11px;
97
+ color:#00ccff;
98
+ }
99
+ .span1{
100
+ font-family:Arial, Helvetica, sans-serif;
101
+ font-size:11px;
102
+ color:#333333;
103
+ }
104
+ <!--[if IE]>
105
+ .LoginRadius_content_IE
106
+ {background:black;
107
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
108
+ filter: alpha(opacity=90);
109
+ }
110
+ <![endif]-->
111
+ </style>
112
+ </head>
113
+ <body>
114
+ <div id="fade" class="LoginRadius_overlay">
115
+ <div id="popupouter">
116
+ <div id="popupinner">
117
+ <div id="textmatter"><strong><?php echo $loginRadiusPopupTxt; ?></strong></div>
118
+ <div style="clear:both;"></div>
119
+ <div style="color:red; text-align:justify"><?php echo $socialLoginMsg ?></div>
120
+ <?php
121
+ if( $loginRadiusShowForm ){
122
+ ?>
123
+ <form method="post" action="">
124
+ <div><input type="text" name="SL_EMAIL" id="SL_EMAIL" class="inputtxt" /></div>
125
+ <div>
126
+ <input type="submit" id="LoginRadiusRedSliderClick" name="LoginRadiusRedSliderClick" value="Submit" class="inputbutton">
127
+ <input type="submit" value="Cancel" class="inputbutton" name="LoginRadiusPopupCancel" />
128
+ </div>
129
+ </form>
130
+ <?php
131
+ }else{
132
+ ?>
133
+ <input type="button" value="OK" onClick="location.href = '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); ?>'" />
134
+ <?php
135
+ }
136
+ ?>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ <?php
141
+ }
app/code/community/Loginradius/Sociallogin/etc/config.xml CHANGED
@@ -30,7 +30,7 @@
30
  </default>
31
  <modules>
32
  <Loginradius_Sociallogin>
33
- <version>2.1.0</version>
34
  </Loginradius_Sociallogin>
35
  </modules>
36
  <frontend>
30
  </default>
31
  <modules>
32
  <Loginradius_Sociallogin>
33
+ <version>2.1.1</version>
34
  </Loginradius_Sociallogin>
35
  </modules>
36
  <frontend>
app/code/community/Loginradius/Sociallogin/sql/sociallogin_setup/{mysql4-install-2.1.0.php → mysql4-install-2.1.1.php} RENAMED
File without changes
app/design/frontend/default/default/layout/sociallogin.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="2.1.0">
3
  <default>
4
  <reference name="right">
5
  <block type="sociallogin/sociallogin" name="sociallogin" template="sociallogin/sociallogin.phtml" before="-" />
1
  <?xml version="1.0"?>
2
+ <layout version="2.1.1">
3
  <default>
4
  <reference name="right">
5
  <block type="sociallogin/sociallogin" name="sociallogin" template="sociallogin/sociallogin.phtml" before="-" />
app/design/frontend/default/default/template/sociallogin/abovelogin.phtml CHANGED
@@ -13,12 +13,7 @@ if( $this->loginEnable() == "1" && !$this->user_is_already_login() ){
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
- $IsHttps = (!empty($UserAuth->IsHttps)) ? $UserAuth->IsHttps : '';
17
- $iframeHeight = (!empty($UserAuth->height)) ? $UserAuth->height : 50;
18
- $iframeWidth = (!empty($UserAuth->width)) ? $UserAuth->width : 138;
19
- $http = ($IsHttps == 1) ? "https://" : "http://";
20
- $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
21
- echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe></div>';
22
  }
23
  echo '</p></div></div>';
24
  }
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
+ echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><div class="interfacecontainerdiv"></div></div>';
 
 
 
 
 
17
  }
18
  echo '</p></div></div>';
19
  }
app/design/frontend/default/default/template/sociallogin/aboveregister.phtml CHANGED
@@ -13,12 +13,7 @@ if( $this->loginEnable() == "1" && !$this->user_is_already_login() ){
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
- $IsHttps = (!empty($UserAuth->IsHttps)) ? $UserAuth->IsHttps : '';
17
- $iframeHeight = (!empty($UserAuth->height)) ? $UserAuth->height : 50;
18
- $iframeWidth = (!empty($UserAuth->width)) ? $UserAuth->width : 138;
19
- $http = ($IsHttps == 1) ? "https://" : "http://";
20
- $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
21
- echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe></div>';
22
  }
23
  echo '</p></div></div>';
24
  }
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
+ echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><div class="interfacecontainerdiv" ></div></div>';
 
 
 
 
 
17
  }
18
  echo '</p></div></div>';
19
  }
app/design/frontend/default/default/template/sociallogin/belowlogin.phtml CHANGED
@@ -13,12 +13,7 @@ if( $this->loginEnable() == "1" && !$this->user_is_already_login() ){
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
- $IsHttps = (!empty($UserAuth->IsHttps)) ? $UserAuth->IsHttps : '';
17
- $iframeHeight = (!empty($UserAuth->height)) ? $UserAuth->height : 50;
18
- $iframeWidth = (!empty($UserAuth->width)) ? $UserAuth->width : 138;
19
- $http = ($IsHttps == 1) ? "https://" : "http://";
20
- $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
21
- echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe></div>';
22
  }
23
  echo '</p></div></div>';
24
  }
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
+ echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><div class="interfacecontainerdiv"></div></div>';
 
 
 
 
 
17
  }
18
  echo '</p></div></div>';
19
  }
app/design/frontend/default/default/template/sociallogin/belowregister.phtml CHANGED
@@ -13,12 +13,7 @@ if( $this->loginEnable() == "1" && !$this->user_is_already_login() ){
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
- $IsHttps = (!empty($UserAuth->IsHttps)) ? $UserAuth->IsHttps : '';
17
- $iframeHeight = (!empty($UserAuth->height)) ? $UserAuth->height : 50;
18
- $iframeWidth = (!empty($UserAuth->width)) ? $UserAuth->width : 138;
19
- $http = ($IsHttps == 1) ? "https://" : "http://";
20
- $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
21
- echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe></div>';
22
  }
23
  echo '</p></div></div>';
24
  }
13
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
14
  }
15
  else {
16
+ echo '<div style="margin:5px"><div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><div class="interfacecontainerdiv"></div></div>';
 
 
 
 
 
17
  }
18
  echo '</p></div></div>';
19
  }
app/design/frontend/default/default/template/sociallogin/sociallogin.phtml CHANGED
@@ -21,12 +21,7 @@ if( $this->loginEnable() == "1" ){
21
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
22
  }
23
  else {
24
- $IsHttps = (!empty($UserAuth->IsHttps)) ? $UserAuth->IsHttps : '';
25
- $iframeHeight = (!empty($UserAuth->height)) ? $UserAuth->height : 50;
26
- $iframeWidth = (!empty($UserAuth->width)) ? $UserAuth->width : 138;
27
- $http = ($IsHttps == 1) ? "https://" : "http://";
28
- $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
29
- echo $loginRadiusTitle.'<iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe>';
30
  }
31
  }
32
  echo '</p></div></div>';
21
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
22
  }
23
  else {
24
+ echo $loginRadiusTitle.'<div class="interfacecontainerdiv" style="margin-left:10px"></div>';
 
 
 
 
 
25
  }
26
  }
27
  echo '</p></div></div>';
app/design/frontend/default/default/template/sociallogin/sociallogincustom.phtml CHANGED
@@ -12,12 +12,7 @@ if( $this->loginEnable() == "1" && !$this->user_is_already_login() ){
12
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
13
  }
14
  else {
15
- $IsHttps = (!empty($UserAuth->IsHttps)) ? $UserAuth->IsHttps : '';
16
- $iframeHeight = (!empty($UserAuth->height)) ? $UserAuth->height : 50;
17
- $iframeWidth = (!empty($UserAuth->width)) ? $UserAuth->width : 138;
18
- $http = ($IsHttps == 1) ? "https://" : "http://";
19
- $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
20
- echo '<div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><iframe src="'.$http.'hub.loginradius.com/Control/PluginSlider.aspx?apikey='.$ApiKey.'&callback='.$loc.'" width="'.$iframeWidth.'" height="'.$iframeHeight.'" frameborder="0" scrolling="no" allowtransparency="true"></iframe>';
21
  }
22
  echo '</div>';
23
  }
12
  echo '<p style ="color:red;">Your LoginRadius API key and secret is not valid, please correct it or contact LoginRadius support at <b><a href ="http://www.loginradius.com" target = "_blank">www.LoginRadius.com</a></b></p>';
13
  }
14
  else {
15
+ echo '<div style="margin-bottom:5px">'.$loginRadiusTitle.'</div><div class="interfacecontainerdiv"></div>';
 
 
 
 
 
16
  }
17
  echo '</div>';
18
  }
app/design/frontend/default/default/template/sociallogin/socialshare_head.phtml CHANGED
@@ -20,4 +20,12 @@ if( $this->counterEnable() == "1" ){
20
  </style>
21
  <?php
22
  }
 
 
 
 
 
 
 
 
23
  ?>
20
  </style>
21
  <?php
22
  }
23
+ if( $this->loginEnable() == "1" ){
24
+ $loc = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK)."sociallogin/";
25
+ ?>
26
+ <script src="http://hub.loginradius.com/include/js/LoginRadius.js" ></script>
27
+ <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 $loc ?>"; $ui.lrinterfacecontainer ="interfacecontainerdiv"; LoginRadius_SocialLogin.init(options); });
28
+ </script>
29
+ <?php
30
+ }
31
  ?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>LoginRadius</name>
4
- <version>2.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>Sixth release of social login</notes>
12
  <authors><author><name>LoginRadius Team</name><user>LoginRadius</user><email>developers@loginradius.com</email></author></authors>
13
- <date>2012-12-03</date>
14
- <time>20:32:09</time>
15
- <contents><target name="magecommunity"><dir name="Loginradius"><dir name="Sociallogin"><dir name="Block"><file name="Auth.php" hash="185ee3072b18a49bfd72112210ae118e"/><file name="Counter.php" hash="f79411371642a6940fe68f35cf09ef7b"/><file name="Info.php" hash="cb4e9999795b628b5e41ae1fb00fd78f"/><file name="Share.php" hash="ea9a80891c1c88f96b4f0a2e337d6d27"/><file name="Sociallogin.php" hash="22db3938658d802a56893c34eb1c7374"/></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="Uihover.php" hash="f82ae802e2561906bc4539e33aa041b8"/><file name="Uihover2.php" hash="6653f962c12471b1c635dae26af22a19"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="4ed0fcbe01a5906168096206ef27ed20"/><file name="inc.php" hash="05078196f80363c3802acf7180c22157"/></dir><dir name="etc"><file name="config.xml" hash="43aa42e183eb0a89ea2437c6662fd586"/><file name="system.xml" hash="30ed62a27b7d691f31584dedf2cd6a7f"/><file name="widget.xml" hash="75f4ee0b08fdd001bbd216bd965b644d"/></dir><dir name="sql"><dir name="sociallogin_setup"><file name="mysql4-install-2.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="3799d71955c1f5158ffced051051cbd3"/></dir><dir name="template"><dir name="sociallogin"><file name="sociallogin.phtml" hash="68fe4b553ce258dea9a76f367847429f"/><file name="socialshare.phtml" hash="d93ab7c0904ec6688924398f503d6cf5"/><file name="socialshare_head.phtml" hash="8905696bbde0ef363bd4a0c74e3b6d40"/><file name="socialcounter.phtml" hash="1c6ec1e3f25dacbb005391e764b9885d"/><file name="abovelogin.phtml" hash="6cdbe94c8e7bb3368565f40a7281dc3b"/><file name="belowlogin.phtml" hash="397ea3e8f3ca99d8266aaeed829424db"/><file name="belowregister.phtml" hash="0149d7760a85c9bc505b4950360d2a35"/><file name="aboveregister.phtml" hash="29617c839a4a97b0098fbe43325de764"/><file name="sociallogincustom.phtml" hash="976e73b33fd32b3d8a468fad200a3854"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Loginradius_Sociallogin.xml" hash="6c5bb03c460936006692aa1d01d142ba"/></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>2.1.1</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>Seventh 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-03-01</date>
14
+ <time>22:39:38</time>
15
+ <contents><target name="magecommunity"><dir name="Loginradius"><dir name="Sociallogin"><dir name="Block"><file name="Auth.php" hash="edfe7664ceea67a2f6cc356ff324bca2"/><file name="Counter.php" hash="f79411371642a6940fe68f35cf09ef7b"/><file name="Info.php" hash="cb4e9999795b628b5e41ae1fb00fd78f"/><file name="Share.php" hash="ea9a80891c1c88f96b4f0a2e337d6d27"/><file name="Sociallogin.php" hash="839badc3943ca3aaab734d0afcc0793c"/></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"><dir name="Images"><dir name="Counter"><file name="horizontal.png" hash="3e154ba18f297845d63434866843453d"/><file name="lrshare_iconsprite32.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 name="sprites"><file name="lrshare_iconsprite32.png" hash="a016ded3f25653acf2fa9dfab8a38103"/></dir></dir></dir><file name="SharingThemes.php" hash="931f55f7b1a1c0c7ac3659eb6023a478"/><file name="Uihover.php" hash="f82ae802e2561906bc4539e33aa041b8"/><file name="Uihover2.php" hash="6653f962c12471b1c635dae26af22a19"/></dir><dir name="System"><dir name="Config"><file name="Tools.php" hash="861c690aac0282cb57db2a3c076aa80c"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="4ed0fcbe01a5906168096206ef27ed20"/><file name="Popup.php" hash="03767a34a672efffb1179c8f44e6cac9"/><file name="inc.php" hash="05078196f80363c3802acf7180c22157"/></dir><dir name="etc"><file name="config.xml" hash="35291aa066bc3c669473a581565d6247"/><file name="system.xml" hash="30ed62a27b7d691f31584dedf2cd6a7f"/><file name="widget.xml" hash="75f4ee0b08fdd001bbd216bd965b644d"/></dir><dir name="sql"><dir name="sociallogin_setup"><file name="mysql4-install-2.1.1.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="afb8199570ff216f3d4a691ab8172b99"/></dir><dir name="template"><dir name="sociallogin"><file name="sociallogin.phtml" hash="5053a20274a71855d427d40faddc8a5b"/><file name="socialshare.phtml" hash="d93ab7c0904ec6688924398f503d6cf5"/><file name="socialshare_head.phtml" hash="e1d8c46dfe12a6e79182be354bb36290"/><file name="socialcounter.phtml" hash="1c6ec1e3f25dacbb005391e764b9885d"/><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"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Loginradius_Sociallogin.xml" hash="6c5bb03c460936006692aa1d01d142ba"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>