Version Notes
Simplified Social Share extension
Download this release
Release Info
Developer | Social9 Team |
Extension | LoginRadiusShare |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.5.0
- app/code/community/Loginradius/Sharing/Block/Help.php +3 -10
- app/code/community/Loginradius/Sharing/Block/Sharing.php +2 -16
- app/code/community/Loginradius/Sharing/Model/Observer.php +2 -154
- app/code/community/Loginradius/Sharing/Model/Source/HorizontalSharing.php +2 -2
- app/code/community/Loginradius/Sharing/Model/System/Config/Info.php +7 -50
- app/code/community/Loginradius/Sharing/etc/system.xml +1 -20
- app/design/frontend/base/default/template/sharing/socialshare_head.phtml +3 -4
- package.xml +8 -8
- skin/adminhtml/default/default/Loginradius/Sharing/css/admin-ui.css +2 -2
- skin/adminhtml/default/default/Loginradius/Sharing/images/Sharing/Horizontal/{single-image-theme-large.png → singleImageThemeLarge.png} +0 -0
- skin/adminhtml/default/default/Loginradius/Sharing/images/Sharing/Horizontal/{single-image-theme-small.png → singleImageThemeSmall.png} +0 -0
app/code/community/Loginradius/Sharing/Block/Help.php
CHANGED
@@ -50,15 +50,8 @@ class Loginradius_Sharing_Block_Help extends Mage_Adminhtml_Block_System_Config_
|
|
50 |
*/
|
51 |
protected function _getFieldHtml($element)
|
52 |
{
|
53 |
-
|
54 |
-
<td><a
|
55 |
-
<td><a
|
56 |
-
<tr><td><a target="_blank" href="http://ish.re/9WBZ">Magento Multisite Feature</a></td>
|
57 |
-
<td><a target="_blank" href="http://ish.re/5P2D">LoginRadius Products</a></td></tr>
|
58 |
-
<tr><td><a target="_blank" href="http://ish.re/8PJ7">About LoginRadius</a></td>
|
59 |
-
<td><a target="_blank" href="http://ish.re/8PFR">Social Plugins</a></td></tr>
|
60 |
-
<tr><td><a target="_blank" href="http://ish.re/C9F7">Social SDKs</a></td></tr>';
|
61 |
-
|
62 |
-
return $content;
|
63 |
}
|
64 |
}
|
50 |
*/
|
51 |
protected function _getFieldHtml($element)
|
52 |
{
|
53 |
+
return '<tr><td><a href="http://ish.re/RPMU" target="_blank">Extension Installation, Configuration and Troubleshooting</a></td></tr>
|
54 |
+
<tr><td><a href="http://ish.re/ROSR" target="_blank">Advance Feature</a></td></tr>
|
55 |
+
<tr><td><a href="http://ish.re/ROVE" target="_blank">Social Plugins</a></td></tr>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
}
|
app/code/community/Loginradius/Sharing/Block/Sharing.php
CHANGED
@@ -33,14 +33,6 @@ class Loginradius_Sharing_Block_Sharing extends Mage_Core_Block_Template
|
|
33 |
parent::_construct();
|
34 |
}
|
35 |
|
36 |
-
/**
|
37 |
-
* @return LoginRadius API Key
|
38 |
-
*/
|
39 |
-
public function getApikey()
|
40 |
-
{
|
41 |
-
return Mage::getStoreConfig('sharing_options/messages/appid');
|
42 |
-
}
|
43 |
-
|
44 |
/**
|
45 |
* Get title for social sharing container!
|
46 |
*
|
@@ -110,7 +102,7 @@ class Loginradius_Sharing_Block_Sharing extends Mage_Core_Block_Template
|
|
110 |
/**
|
111 |
* function returns script required for vertical sharing.
|
112 |
*/
|
113 |
-
public function getVerticalSharingScript($loginRadiusSettings
|
114 |
{
|
115 |
$size = '';
|
116 |
$sharingScript = '';
|
@@ -186,9 +178,6 @@ class Loginradius_Sharing_Block_Sharing extends Mage_Core_Block_Template
|
|
186 |
$providers = self:: getSharingProviders('vertical', $loginRadiusSettings);
|
187 |
// prepare sharing script
|
188 |
$sharingScript .= 'LoginRadius.util.ready( function() { $i = $SS.Interface.' . $interface . '; $SS.Providers.Top = ["' . $providers . '"]; $u = LoginRadius.user_settings;';
|
189 |
-
if (isset($apiKey) && !empty($apiKey)) {
|
190 |
-
$sharingScript .= '$u.apikey= \'' . trim($apiKey) . '\';';
|
191 |
-
}
|
192 |
$sharingScript .= '$i.size = ' . $size . '; ' . $offset . ' if(typeof document.getElementsByName("viewport")[0] != "undefined"){$u.isMobileFriendly=true;}; $i.show( "loginRadiusVerticalSharing" ); } );';
|
193 |
}
|
194 |
|
@@ -256,7 +245,7 @@ class Loginradius_Sharing_Block_Sharing extends Mage_Core_Block_Template
|
|
256 |
/**
|
257 |
* function returns script required for horizontal sharing.
|
258 |
*/
|
259 |
-
public function getHorizontalSharingScript($loginRadiusSettings
|
260 |
{
|
261 |
$size = '';
|
262 |
$sharingScript = '';
|
@@ -315,9 +304,6 @@ class Loginradius_Sharing_Block_Sharing extends Mage_Core_Block_Template
|
|
315 |
|
316 |
// prepare sharing script
|
317 |
$sharingScript .= 'LoginRadius.util.ready( function() { $i = $SS.Interface.' . $interface . '; $SS.Providers.Top = ["' . $providers . '"]; $u = LoginRadius.user_settings;';
|
318 |
-
if (isset($apikey) && !empty($apikey)) {
|
319 |
-
$sharingScript .= '$u.apikey= \'' . trim($apikey) . '\';';
|
320 |
-
}
|
321 |
$sharingScript .= '$i.size = ' . $size . '; $u.sharecounttype="url"; if(typeof document.getElementsByName("viewport")[0] != "undefined"){$u.isMobileFriendly=true;}; $i.show( "loginRadiusHorizontalSharing" ); } );';
|
322 |
}
|
323 |
|
33 |
parent::_construct();
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/**
|
37 |
* Get title for social sharing container!
|
38 |
*
|
102 |
/**
|
103 |
* function returns script required for vertical sharing.
|
104 |
*/
|
105 |
+
public function getVerticalSharingScript($loginRadiusSettings)
|
106 |
{
|
107 |
$size = '';
|
108 |
$sharingScript = '';
|
178 |
$providers = self:: getSharingProviders('vertical', $loginRadiusSettings);
|
179 |
// prepare sharing script
|
180 |
$sharingScript .= 'LoginRadius.util.ready( function() { $i = $SS.Interface.' . $interface . '; $SS.Providers.Top = ["' . $providers . '"]; $u = LoginRadius.user_settings;';
|
|
|
|
|
|
|
181 |
$sharingScript .= '$i.size = ' . $size . '; ' . $offset . ' if(typeof document.getElementsByName("viewport")[0] != "undefined"){$u.isMobileFriendly=true;}; $i.show( "loginRadiusVerticalSharing" ); } );';
|
182 |
}
|
183 |
|
245 |
/**
|
246 |
* function returns script required for horizontal sharing.
|
247 |
*/
|
248 |
+
public function getHorizontalSharingScript($loginRadiusSettings)
|
249 |
{
|
250 |
$size = '';
|
251 |
$sharingScript = '';
|
304 |
|
305 |
// prepare sharing script
|
306 |
$sharingScript .= 'LoginRadius.util.ready( function() { $i = $SS.Interface.' . $interface . '; $SS.Providers.Top = ["' . $providers . '"]; $u = LoginRadius.user_settings;';
|
|
|
|
|
|
|
307 |
$sharingScript .= '$i.size = ' . $size . '; $u.sharecounttype="url"; if(typeof document.getElementsByName("viewport")[0] != "undefined"){$u.isMobileFriendly=true;}; $i.show( "loginRadiusHorizontalSharing" ); } );';
|
308 |
}
|
309 |
|
app/code/community/Loginradius/Sharing/Model/Observer.php
CHANGED
@@ -32,36 +32,8 @@ class Loginradius_Sharing_Model_Observer extends Mage_Core_Helper_Abstract
|
|
32 |
{
|
33 |
|
34 |
$post = Mage::app()->getRequest()->getPost();
|
35 |
-
|
36 |
-
|
37 |
-
$data = array('addon' => 'Magento', 'version' => '2.0.0', 'agentstring' => $_SERVER["HTTP_USER_AGENT"], 'clientip' => $_SERVER["REMOTE_ADDR"], 'configuration' => 'Validating API Key');
|
38 |
-
if (!empty($apiKey)) {
|
39 |
-
$validateUrl = 'https://api.loginradius.com/api/v2/app/validatekey?apikey=' . rawurlencode($apiKey);
|
40 |
-
$response = json_decode($this->accessLoginradiusApi($validateUrl, $data, true));
|
41 |
-
$result['status'] = isset($response->Status) ? $response->Status : false;
|
42 |
-
$result['message'] = isset($response->Messages[0]) ? $response->Messages[0] : 'an error occurred';
|
43 |
-
|
44 |
-
if (isset($result['status']) && $result['status']) {
|
45 |
-
$result['message'] = '';
|
46 |
-
$result['status'] = 'Success';
|
47 |
-
} else {
|
48 |
-
if ($result['message'] == 'API_KEY_NOT_FORMATED') {
|
49 |
-
$result['message'] = 'LoginRadius API key is not correct.';
|
50 |
-
} elseif ($result['message'] == 'API_SECRET_NOT_FORMATED') {
|
51 |
-
$result['message'] = 'LoginRadius API Secret key is not correct.';
|
52 |
-
} elseif ($result['message'] == 'API_KEY_NOT_VALID') {
|
53 |
-
$result['message'] = 'LoginRadius API key is not valid.';
|
54 |
-
} elseif ($result['message'] == 'API_SECRET_NOT_VALID') {
|
55 |
-
$result['message'] = 'LoginRadius API Secret key is not valid.';
|
56 |
-
} else {
|
57 |
-
$result['message'] = 'Some error occurred, please try again later';
|
58 |
-
}
|
59 |
-
}
|
60 |
-
if ($result['status'] != 'Success') {
|
61 |
-
throw new Exception($result['message']);
|
62 |
-
}
|
63 |
-
}
|
64 |
-
}
|
65 |
}
|
66 |
|
67 |
public function addCustomLayoutHandle(Varien_Event_Observer $observer)
|
@@ -75,128 +47,4 @@ class Loginradius_Sharing_Model_Observer extends Mage_Core_Helper_Abstract
|
|
75 |
}
|
76 |
return $this;
|
77 |
}
|
78 |
-
|
79 |
-
/**
|
80 |
-
* Function for caalling appropriate method ex. curl, fsockopen or magento default varien to call LoginRadius api.
|
81 |
-
*
|
82 |
-
* @param $url
|
83 |
-
* @param array $data
|
84 |
-
* @param bool $isPost
|
85 |
-
*
|
86 |
-
* @return mixed|string
|
87 |
-
*/
|
88 |
-
public function accessLoginradiusApi($url, $data = array(), $isPost = false)
|
89 |
-
{
|
90 |
-
|
91 |
-
if ($this->isCurlEnabled()) {
|
92 |
-
$JsonResponse = $this->curlApiMethod($url, $data, $isPost);
|
93 |
-
} else {
|
94 |
-
$JsonResponse = $this->fsockopenApiMethod($url, $data, $isPost);
|
95 |
-
}
|
96 |
-
$result = json_decode($JsonResponse);
|
97 |
-
if (is_object($result) && isset($result->customError)) {
|
98 |
-
$method = 'GET';
|
99 |
-
|
100 |
-
$client = new Varien_Http_Client($url);
|
101 |
-
$response = $client->request($method);
|
102 |
-
$Response = $response->getBody();
|
103 |
-
|
104 |
-
return $Response;
|
105 |
-
|
106 |
-
}
|
107 |
-
|
108 |
-
return $JsonResponse;
|
109 |
-
|
110 |
-
}
|
111 |
-
|
112 |
-
/**
|
113 |
-
* Check if curl is enabled or not!
|
114 |
-
*
|
115 |
-
* @return bool
|
116 |
-
*/
|
117 |
-
public function isCurlEnabled()
|
118 |
-
{
|
119 |
-
return function_exists('curl_version') ? '1' : '0';
|
120 |
-
}
|
121 |
-
|
122 |
-
/**
|
123 |
-
* Function for calling LoginRadius Api using curl method
|
124 |
-
*
|
125 |
-
* @param $url
|
126 |
-
* @param $data
|
127 |
-
* @param bool $post
|
128 |
-
*
|
129 |
-
* @return mixed|string
|
130 |
-
*/
|
131 |
-
public function curlApiMethod($url, $data = array(), $post = false)
|
132 |
-
{
|
133 |
-
$curl_handle = curl_init();
|
134 |
-
curl_setopt($curl_handle, CURLOPT_URL, $url);
|
135 |
-
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 10);
|
136 |
-
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 20);
|
137 |
-
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
|
138 |
-
if ($post) {
|
139 |
-
curl_setopt($curl_handle, CURLOPT_POST, 1);
|
140 |
-
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
|
141 |
-
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, http_build_query($data));
|
142 |
-
}
|
143 |
-
if (ini_get('open_basedir') == '' && (ini_get('safe_mode') == 'Off' or !ini_get('safe_mode'))) {
|
144 |
-
curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, 1);
|
145 |
-
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
|
146 |
-
} else {
|
147 |
-
curl_setopt($curl_handle, CURLOPT_HEADER, 1);
|
148 |
-
$url = curl_getinfo($curl_handle, CURLINFO_EFFECTIVE_URL);
|
149 |
-
curl_close($curl_handle);
|
150 |
-
$curl_handle = curl_init();
|
151 |
-
$url = str_replace('?', '/?', $url);
|
152 |
-
curl_setopt($curl_handle, CURLOPT_URL, $url);
|
153 |
-
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);
|
154 |
-
}
|
155 |
-
$JsonResponse = curl_exec($curl_handle);
|
156 |
-
$httpCode = curl_getinfo($curl_handle, CURLINFO_HTTP_CODE);
|
157 |
-
if (in_array($httpCode, array(400, 401, 403, 404, 500, 503))) {
|
158 |
-
$JsonResponse = json_encode(array("customError" => true, "Messages" => "Error in using curl connection ,Service connection error occurred"));
|
159 |
-
} else {
|
160 |
-
if (curl_errno($curl_handle) == 28) {
|
161 |
-
$JsonResponse = json_encode(array("customError" => true, "Messages" => "Connection timeout"));
|
162 |
-
}
|
163 |
-
}
|
164 |
-
curl_close($curl_handle);
|
165 |
-
|
166 |
-
return $JsonResponse;
|
167 |
-
}
|
168 |
-
|
169 |
-
/**
|
170 |
-
* Function for calling LoginRadius Api using fsockopen method
|
171 |
-
*
|
172 |
-
* @param $ValidateUrl
|
173 |
-
* @param $data
|
174 |
-
* @param bool $post
|
175 |
-
*
|
176 |
-
* @return string
|
177 |
-
*/
|
178 |
-
public function fsockopenApiMethod($ValidateUrl, $data, $post = false)
|
179 |
-
{
|
180 |
-
if (!empty($data)) {
|
181 |
-
$options = array('http' => array('method' => 'POST', 'timeout' => 15, 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $data));
|
182 |
-
$context = stream_context_create($options);
|
183 |
-
} else {
|
184 |
-
$context = null;
|
185 |
-
}
|
186 |
-
$jsonResponse = @file_get_contents($ValidateUrl, false, $context);
|
187 |
-
if (strpos(@$http_response_header[0], "400") !== false
|
188 |
-
|| strpos(@$http_response_header[0], "401") !== false
|
189 |
-
|| strpos(@$http_response_header[0], "403") !== false
|
190 |
-
|| strpos(@$http_response_header[0], "404") !== false
|
191 |
-
|| strpos(@$http_response_header[0], "500") !== false
|
192 |
-
|| strpos(@$http_response_header[0], "503") !== false
|
193 |
-
) {
|
194 |
-
$jsonResponse = json_encode(array("customError" => true, "Messages" => "Error in using FSOCKOPEN connection method, Service connection timeout occurred"));
|
195 |
-
}
|
196 |
-
if (!$jsonResponse) {
|
197 |
-
$jsonResponse = json_encode(array("customError" => true, "Messages" => "FSOCKOPEN not working"));
|
198 |
-
}
|
199 |
-
|
200 |
-
return $jsonResponse;
|
201 |
-
}
|
202 |
}
|
32 |
{
|
33 |
|
34 |
$post = Mage::app()->getRequest()->getPost();
|
35 |
+
$result['message'] = '';
|
36 |
+
$result['status'] = 'Success';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
public function addCustomLayoutHandle(Varien_Event_Observer $observer)
|
47 |
}
|
48 |
return $this;
|
49 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
app/code/community/Loginradius/Sharing/Model/Source/HorizontalSharing.php
CHANGED
@@ -36,8 +36,8 @@ class Loginradius_Sharing_Model_Source_HorizontalSharing
|
|
36 |
$result[] = array('value' => '32', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing32.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
37 |
$result[] = array('value' => '16', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing16.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
38 |
$result[] = array('value' => 'responsive', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/responsive-icons.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
39 |
-
$result[] = array('value' => 'single_large', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/
|
40 |
-
$result[] = array('value' => 'single_small', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/
|
41 |
$result[] = array('value' => 'counter_vertical', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/vertical.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
42 |
$result[] = array('value' => 'counter_horizontal', 'label' => '<img style="width:375px;" src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/horizontal.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
43 |
|
36 |
$result[] = array('value' => '32', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing32.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
37 |
$result[] = array('value' => '16', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/horizonSharing16.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
38 |
$result[] = array('value' => 'responsive', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/responsive-icons.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
39 |
+
$result[] = array('value' => 'single_large', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/singleImageThemeLarge.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
40 |
+
$result[] = array('value' => 'single_small', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/singleImageThemeSmall.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
41 |
$result[] = array('value' => 'counter_vertical', 'label' => '<img src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/vertical.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
42 |
$result[] = array('value' => 'counter_horizontal', 'label' => '<img style="width:375px;" src="' . Mage::getDesign()->getSkinUrl('Loginradius/Sharing/images/Sharing/Horizontal/horizontal.png', array('_area' => 'adminhtml')) . '" /><div style="clear:both"></div>');
|
43 |
|
app/code/community/Loginradius/Sharing/Model/System/Config/Info.php
CHANGED
@@ -47,38 +47,11 @@ class Loginradius_Sharing_Model_System_Config_Info extends Mage_Adminhtml_Block_
|
|
47 |
{
|
48 |
?>
|
49 |
<fieldset class="lr_admin_configuration_info_fieldsets lr_configuration_info_fieldsets_left" id="lr_thank_message_container">
|
50 |
-
<h4 class="lr_admin_fieldset_title"><strong><?php echo $this->__('Thank you for installing
|
51 |
|
52 |
<p>
|
53 |
-
<a href="
|
54 |
-
<a href="http://ish.re/9RZO" target="_blank">Social Share</a>,
|
55 |
-
<a href="http://ish.re/HNIA" target="_blank">Social Invite</a>,
|
56 |
-
<a href="http://ish.re/83Y8" target="_blank">User Social Profile Data</a>,
|
57 |
-
<a href="http://ish.re/9RZS" target="_blank">Single Sign-On</a>,
|
58 |
-
<a href="http://ish.re/AQ5L" target="_blank">Social Engagement Analytics</a>
|
59 |
-
as single Unified API.
|
60 |
</p>
|
61 |
-
|
62 |
-
<p>
|
63 |
-
<?php echo $this->__('We also offer Social Plugins for') ?>
|
64 |
-
<a href="http://ish.re/ADDT" target="_blank">Wordpress</a>,
|
65 |
-
<a href="http://ish.re/8PE6" target="_blank">Joomla</a>,
|
66 |
-
<a href="http://ish.re/8PE9" target="_blank">Drupal</a>,
|
67 |
-
<a href="http://ish.re/8PED" target="_blank">vBulletin</a>,
|
68 |
-
<a href="http://ish.re/8PEE" target="_blank">VanillaForum</a>,
|
69 |
-
<a href="http://ish.re/8PEG" target="_blank">osCommerce</a>,
|
70 |
-
<a href="http://ish.re/8PEH" target="_blank">PrestaShop</a>,
|
71 |
-
<a href="http://ish.re/8PFQ" target="_blank">X-Cart</a>,
|
72 |
-
<a href="http://ish.re/8PFR" target="_blank">Zen-Cart</a>,
|
73 |
-
<a href="http://ish.re/8PFS" target="_blank">DotNetNuke</a>,
|
74 |
-
<a href="http://ish.re/8PFT" target="_blank">SMF</a><?php echo $this->__('and') ?>
|
75 |
-
<a href="http://ish.re/8PFV" target="_blank">phpBB</a> !
|
76 |
-
</p>
|
77 |
-
</br>
|
78 |
-
<div style="margin-top:10px">
|
79 |
-
<input class="form-button" type="button" onclick="window.open('https://www.loginradius.com')" value="<?php echo $this->__('Set up LoginRadius account!') ?>"/>
|
80 |
-
<a class="loginRadiusHow" target="_blank" href="http://ish.re/ATM4">(<?php echo $this->__('How to set up an account?') ?>)</a>
|
81 |
-
</div>
|
82 |
</fieldset>
|
83 |
<?php
|
84 |
}
|
@@ -93,27 +66,11 @@ class Loginradius_Sharing_Model_System_Config_Info extends Mage_Adminhtml_Block_
|
|
93 |
<h4 class="lr_admin_fieldset_title"><strong><?php echo $this->__('Extension Information!') ?></strong></h4>
|
94 |
|
95 |
<div style="margin:5px 0">
|
96 |
-
<strong>Version: </strong>2.
|
97 |
-
<strong>Author:</strong>
|
98 |
-
<strong>Website:</strong> <a href="https://www.
|
99 |
-
<br/>
|
100 |
-
<strong>Community:</strong> <a href="http://community.loginradius.com" target="_blank">community.loginradius.com</a>
|
101 |
<br/>
|
102 |
-
|
103 |
-
<div id="sociallogin_get_update" style="float:left;">To receive updates on new features, releases, etc. Please connect to one of our social media pages
|
104 |
-
</div>
|
105 |
-
<div id="lr_media_pages_container">
|
106 |
-
<a target="_blank" href="https://www.facebook.com/loginradius"><img
|
107 |
-
src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/facebook.png'; ?>"></a>
|
108 |
-
<a target="_blank" href="https://twitter.com/LoginRadius"><img
|
109 |
-
src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/twitter.png'; ?>"></a>
|
110 |
-
<a target="_blank" href="https://plus.google.com/+Loginradius"> <img
|
111 |
-
src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/google.png'; ?>"></a>
|
112 |
-
<a target="_blank" href="http://www.linkedin.com/company/loginradius"> <img
|
113 |
-
src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/linkedin.png'; ?>"></a>
|
114 |
-
<a target="_blank" href="https://www.youtube.com/user/LoginRadius"> <img
|
115 |
-
src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/Loginradius/Sharing/images/media-pages/youtube.png'; ?>"></a>
|
116 |
-
</div>
|
117 |
</div>
|
118 |
</fieldset>
|
119 |
<?php
|
@@ -127,7 +84,7 @@ class Loginradius_Sharing_Model_System_Config_Info extends Mage_Adminhtml_Block_
|
|
127 |
?>
|
128 |
<script type="text/javascript">var islrsharing = true;
|
129 |
var islrsocialcounter = true;</script>
|
130 |
-
<script type="text/javascript" src="//
|
131 |
<script type="text/javascript">
|
132 |
window.onload = function () {
|
133 |
var sharingType = ['horizontal', 'vertical'];
|
47 |
{
|
48 |
?>
|
49 |
<fieldset class="lr_admin_configuration_info_fieldsets lr_configuration_info_fieldsets_left" id="lr_thank_message_container">
|
50 |
+
<h4 class="lr_admin_fieldset_title"><strong><?php echo $this->__('Thank you for installing Social9.com social sharing Extension!') ?></strong></h4>
|
51 |
|
52 |
<p>
|
53 |
+
Social9 provides Social Sharing solutions to your Magento website. We also offer Social Plugins for <a href="http://ish.re/RPLD" target="_blank">Wordpress</a>, <a href="http://ish.re/RPME" target="_blank">Drupal</a>, <a href="http://ish.re/RPMR" target="_blank">Joomla</a>, <a href="http://ish.re/RPN0" target="_blank">Zen-Cart</a>, <a href="http://ish.re/RPMW" target="_blank">Expression Engine</a> and <a href="http://ish.re/RPMS" target="_blank">Typo3</a>! Please visit <a href="http://www.social9.com" target="blank">www.social9.com</a> for more info.
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
</fieldset>
|
56 |
<?php
|
57 |
}
|
66 |
<h4 class="lr_admin_fieldset_title"><strong><?php echo $this->__('Extension Information!') ?></strong></h4>
|
67 |
|
68 |
<div style="margin:5px 0">
|
69 |
+
<strong>Version: </strong>2.5.0 <br/>
|
70 |
+
<strong>Author:</strong> Social9 Team<br/>
|
71 |
+
<strong>Website:</strong> <a href="https://www.social9.com" target="_blank">www.social9.com</a>
|
|
|
|
|
72 |
<br/>
|
73 |
+
<div id="sociallogin_get_update" style="float:left;">To receive updates on new features, releases, etc. </div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
</div>
|
75 |
</fieldset>
|
76 |
<?php
|
84 |
?>
|
85 |
<script type="text/javascript">var islrsharing = true;
|
86 |
var islrsocialcounter = true;</script>
|
87 |
+
<script type="text/javascript" src="//sharecdn.social9.com/v1/social9.min.js" id="lrsharescript"></script>
|
88 |
<script type="text/javascript">
|
89 |
window.onload = function () {
|
90 |
var sharingType = ['horizontal', 'vertical'];
|
app/code/community/Loginradius/Sharing/etc/system.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<tabs>
|
4 |
<socialconfig translate="label" module="sharing">
|
5 |
-
<label>
|
6 |
<sort_order>1</sort_order>
|
7 |
</socialconfig>
|
8 |
</tabs>
|
@@ -23,25 +23,6 @@
|
|
23 |
<show_in_website>1</show_in_website>
|
24 |
<show_in_store>1</show_in_store>
|
25 |
</info>
|
26 |
-
<messages translate="label">
|
27 |
-
<label>Basic Social Sharing Settings</label>
|
28 |
-
<frontend_type>text</frontend_type>
|
29 |
-
<sort_order>1</sort_order>
|
30 |
-
<show_in_default>1</show_in_default>
|
31 |
-
<show_in_website>1</show_in_website>
|
32 |
-
<show_in_store>1</show_in_store>
|
33 |
-
<fields>
|
34 |
-
<appid translate="label">
|
35 |
-
<label>LoginRadius API Key</label>
|
36 |
-
<frontend_type>text</frontend_type>
|
37 |
-
<comment><![CDATA[You can leave it blank if you are Free Customer of LoginRadius and if you are paid customer then fill it to get the Advanced sharing features.]]></comment>
|
38 |
-
<sort_order>15</sort_order>
|
39 |
-
<show_in_default>1</show_in_default>
|
40 |
-
<show_in_website>1</show_in_website>
|
41 |
-
<show_in_store>1</show_in_store>
|
42 |
-
</appid>
|
43 |
-
</fields>
|
44 |
-
</messages>
|
45 |
<horizontalSharing translate="label">
|
46 |
<label>Horizontal Social Sharing</label>
|
47 |
<frontend_type>text</frontend_type>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
<socialconfig translate="label" module="sharing">
|
5 |
+
<label>Social9</label>
|
6 |
<sort_order>1</sort_order>
|
7 |
</socialconfig>
|
8 |
</tabs>
|
23 |
<show_in_website>1</show_in_website>
|
24 |
<show_in_store>1</show_in_store>
|
25 |
</info>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<horizontalSharing translate="label">
|
27 |
<label>Horizontal Social Sharing</label>
|
28 |
<frontend_type>text</frontend_type>
|
app/design/frontend/base/default/template/sharing/socialshare_head.phtml
CHANGED
@@ -5,17 +5,16 @@
|
|
5 |
*/
|
6 |
$horizontalShareSettings = $this->getHorizontalSharingSettings();
|
7 |
$verticalShareSettings = $this->getVerticalSharingSettings();
|
8 |
-
$apiKey = $this->getApikey();
|
9 |
if ($horizontalShareSettings['horizontalShareEnable'] == "1" || $verticalShareSettings['verticalShareEnable'] == "1") {
|
10 |
-
$sharingScript = '<script type="text/javascript">var islrsharing = true; var islrsocialcounter = true;</script> <script type="text/javascript" src="//
|
11 |
|
12 |
if ($horizontalShareSettings['horizontalShareEnable'] == "1") {
|
13 |
// check horizontal sharing enabled
|
14 |
-
$sharingScript .= $this->getHorizontalSharingScript($horizontalShareSettings
|
15 |
}
|
16 |
if ($verticalShareSettings['verticalShareEnable'] == '1') {
|
17 |
// check vertical sharing enabled
|
18 |
-
$sharingScript .= $this->getVerticalSharingScript($verticalShareSettings
|
19 |
}
|
20 |
$sharingScript .= '</script>';
|
21 |
echo $sharingScript;
|
5 |
*/
|
6 |
$horizontalShareSettings = $this->getHorizontalSharingSettings();
|
7 |
$verticalShareSettings = $this->getVerticalSharingSettings();
|
|
|
8 |
if ($horizontalShareSettings['horizontalShareEnable'] == "1" || $verticalShareSettings['verticalShareEnable'] == "1") {
|
9 |
+
$sharingScript = '<script type="text/javascript">var islrsharing = true; var islrsocialcounter = true;</script> <script type="text/javascript" src="//sharecdn.social9.com/v1/social9.min.js" id="lrsharescript"></script><script type="text/javascript">';
|
10 |
|
11 |
if ($horizontalShareSettings['horizontalShareEnable'] == "1") {
|
12 |
// check horizontal sharing enabled
|
13 |
+
$sharingScript .= $this->getHorizontalSharingScript($horizontalShareSettings);
|
14 |
}
|
15 |
if ($verticalShareSettings['verticalShareEnable'] == '1') {
|
16 |
// check vertical sharing enabled
|
17 |
+
$sharingScript .= $this->getVerticalSharingScript($verticalShareSettings);
|
18 |
}
|
19 |
$sharingScript .= '</script>';
|
20 |
echo $sharingScript;
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>LoginRadiusShare</name>
|
4 |
-
<version>2.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Social Sharing for Magento</summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>
|
13 |
-
<date>2015-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Loginradius"><dir name="Sharing"><dir name="Block"><file name="Help.php" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.1.0</min><max>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>LoginRadiusShare</name>
|
4 |
+
<version>2.5.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Social Sharing for Magento</summary>
|
10 |
+
<description>Social Sharing to your Magento website</description>
|
11 |
+
<notes>Simplified Social Share extension</notes>
|
12 |
+
<authors><author><name>Social9 Team</name><user>Social9</user><email>developers@social9.com</email></author></authors>
|
13 |
+
<date>2015-09-19</date>
|
14 |
+
<time>06:24:21</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Loginradius"><dir name="Sharing"><dir name="Block"><file name="Help.php" hash="6083f3b824c09f37b5378c29bbae72f1"/><file name="Horizontalsharing.php" hash="35663b3b6e6f6cef0afe9a98a0755211"/><file name="Sharing.php" hash="1a1ef0a321caf9ae264b277df24800c9"/><file name="Verticalsharing.php" hash="439fa7142166729a68e7039ca4ff953f"/></dir><dir name="Helper"><file name="Data.php" hash="3872b2366517616d24125dda54462d00"/></dir><dir name="Model"><file name="Observer.php" hash="ee7653ff6cde93c043187d3d8176375a"/><dir name="Source"><file name="HorizontalSharing.php" hash="e8c7702889c219a8ba915ee80d7d467f"/><file name="SharingVerticalAlignment.php" hash="905d7e0d4a3878d4bb6a98614095b921"/><file name="VerticalSharing.php" hash="39d47e2500209afab6f3b51a9ca2861a"/></dir><dir name="System"><dir name="Config"><file name="Info.php" hash="e4206a3da0b9a16d178a1681055d818c"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="b444c52740621426733aa69022c9b819"/><file name="system.xml" hash="f7e861891f0e2f2a2a18c331db098905"/><file name="widget.xml" hash="ca111c2e4529d2170aa6efb8bc6b1139"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Loginradius_sharing.xml" hash="0b94fa11070a3a05b1a01a0f3f5d9fc3"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="loginradius_sharing.xml" hash="22b2ca66f5ba5ec09a583a61e13faefc"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="sharing.xml" hash="64a5b0c70a83aa6e6a5dd3e62c8c5b33"/></dir><dir name="template"><dir name="sharing"><file name="socialshare_head.phtml" hash="2320ac9df10294dffb9aa8ef9fdca4b2"/><file name="socialshareproduct.phtml" hash="2f2639165db807c798c1715a758c1cce"/><file name="socialsharesuccess.phtml" hash="6ce81c57c03f8f7157b2b68ee61d33d2"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="Loginradius"><dir name="Sharing"><dir name="css"><file name="admin-ui.css" hash="ab460627593f60e4e03708e6e3bf0549"/><file name="lrshare_iconsprite32.png" hash="a016ded3f25653acf2fa9dfab8a38103"/></dir><dir name="images"><dir name="Sharing"><dir name="Horizontal"><file name="horizonSharing16.png" hash="0fad94b8e4a3e44a2e14f81a2ee04041"/><file name="horizonSharing32.png" hash="561208c81d7cd9d3500e3c460a8a5c49"/><file name="horizontal.png" hash="628fb90190ea3ded7b1f384662ce8153"/><file name="responsive-icons.png" hash="f792ba85bf94a6cf05329d5a9a4087b5"/><file name="singleImageThemeLarge.png" hash="e6ff4a26149b631639b601d95e2dc361"/><file name="singleImageThemeSmall.png" hash="8c2b20fa0f276e33f3876783eb2cbd74"/><file name="vertical.png" hash="81e8591ec1216ffaa22430e86431bf15"/></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="fbbcf59f5e1c121d34073e4769048ff4"/></dir></dir><dir name="media-pages"><file name="facebook.png" hash="a77fde5f83509192ad6827fc01502855"/><file name="google.png" hash="adaebd65b6f38ed79ef1598c88c30a0d"/><file name="linkedin.png" hash="b17944457a3654f1320d48de9c2fdcdc"/><file name="twitter.png" hash="11150d792156e123d4aace84ce5ab0fd"/><file name="youtube.png" hash="1496547f266f7b3c7634198eecf0e20a"/></dir></dir><dir name="js"><file name="admin-ui.js" hash="9b74430c66d473c482b96a16a996dbaf"/><file name="jquery.js" hash="d05a3f47f076f2e0d1fc948d8d94d58d"/><file name="jquery.noConflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><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>7.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/adminhtml/default/default/Loginradius/Sharing/css/admin-ui.css
CHANGED
@@ -135,9 +135,9 @@ loginradius_radio {
|
|
135 |
}
|
136 |
|
137 |
#lr_thank_message_container {
|
138 |
-
width:
|
139 |
float: left;
|
140 |
-
height:
|
141 |
Margin-right: 6px;
|
142 |
}
|
143 |
|
135 |
}
|
136 |
|
137 |
#lr_thank_message_container {
|
138 |
+
width: 65%;
|
139 |
float: left;
|
140 |
+
height: 99px;
|
141 |
Margin-right: 6px;
|
142 |
}
|
143 |
|
skin/adminhtml/default/default/Loginradius/Sharing/images/Sharing/Horizontal/{single-image-theme-large.png → singleImageThemeLarge.png}
RENAMED
File without changes
|
skin/adminhtml/default/default/Loginradius/Sharing/images/Sharing/Horizontal/{single-image-theme-small.png → singleImageThemeSmall.png}
RENAMED
File without changes
|