Version Notes
Ability to add custom images or icons
Download this release
Release Info
Developer | Soclever Social |
Extension | socleverloginsharing |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- app/code/local/Soclever/Socialloginsharing/Block/Adminhtml/System/Config/Form/Field/Customopt1toggle.php +34 -0
- app/code/local/Soclever/Socialloginsharing/Model/Providers.php +1 -1
- app/code/local/Soclever/Socialloginsharing/etc/system.xml +63 -6
- app/design/frontend/base/default/template/socialloginsharing/scsl_buttons.phtml +100 -0
- package.xml +5 -5
app/code/local/Soclever/Socialloginsharing/Block/Adminhtml/System/Config/Form/Field/Customopt1toggle.php
CHANGED
@@ -60,6 +60,22 @@ class Soclever_Socialloginsharing_Block_Adminhtml_System_Config_Form_Field_Custo
|
|
60 |
document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletw').hide();
|
61 |
document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').hide();
|
62 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
});
|
64 |
Event.observe('socialloginsharing_options_displaysettingshare_yourstyle', 'change', function(){
|
65 |
enabled=document.getElementById('socialloginsharing_options_displaysettingshare_yourstyle').value;
|
@@ -85,6 +101,24 @@ class Soclever_Socialloginsharing_Block_Adminhtml_System_Config_Form_Field_Custo
|
|
85 |
document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').hide();
|
86 |
}
|
87 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
</script>";
|
89 |
|
90 |
$html .= $javaScript;
|
60 |
document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletw').hide();
|
61 |
document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').hide();
|
62 |
}
|
63 |
+
enabledlogin=document.getElementById('socialloginsharing_options_displaysettings_buttonstyle').value;
|
64 |
+
if (enabledlogin=='custom') {
|
65 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylefb').show();
|
66 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylegp').show();
|
67 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleli').show();
|
68 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyletw').show();
|
69 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleyh').show();
|
70 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylepp').show();
|
71 |
+
} else {
|
72 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylefb').hide();
|
73 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylegp').hide();
|
74 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleli').hide();
|
75 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyletw').hide();
|
76 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleyh').hide();
|
77 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylepp').hide();
|
78 |
+
}
|
79 |
});
|
80 |
Event.observe('socialloginsharing_options_displaysettingshare_yourstyle', 'change', function(){
|
81 |
enabled=document.getElementById('socialloginsharing_options_displaysettingshare_yourstyle').value;
|
101 |
document.getElementById('row_socialloginsharing_options_displaysettingshare_yourstyletm').hide();
|
102 |
}
|
103 |
});
|
104 |
+
Event.observe('socialloginsharing_options_displaysettings_buttonstyle', 'change', function(){
|
105 |
+
enabledlogin=document.getElementById('socialloginsharing_options_displaysettings_buttonstyle').value;
|
106 |
+
if (enabledlogin=='custom') {
|
107 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylefb').show();
|
108 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylegp').show();
|
109 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleli').show();
|
110 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyletw').show();
|
111 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleyh').show();
|
112 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylepp').show();
|
113 |
+
} else {
|
114 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylefb').hide();
|
115 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylegp').hide();
|
116 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleli').hide();
|
117 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyletw').hide();
|
118 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstyleyh').hide();
|
119 |
+
document.getElementById('row_socialloginsharing_options_displaysettings_buttonstylepp').hide();
|
120 |
+
}
|
121 |
+
});
|
122 |
</script>";
|
123 |
|
124 |
$html .= $javaScript;
|
app/code/local/Soclever/Socialloginsharing/Model/Providers.php
CHANGED
@@ -4,7 +4,7 @@ class Soclever_Socialloginsharing_Model_Providers
|
|
4 |
{
|
5 |
public function getbuttonstyles()
|
6 |
{
|
7 |
-
$buttonstylesarray=array("ic"=>"Icons","fc"=>"Full Logos - Colored","fg"=>"Full Logos - Grey");
|
8 |
return $buttonstylesarray;
|
9 |
|
10 |
}
|
4 |
{
|
5 |
public function getbuttonstyles()
|
6 |
{
|
7 |
+
$buttonstylesarray=array("ic"=>"Icons","fc"=>"Full Logos - Colored","fg"=>"Full Logos - Grey","custom"=>"Custom");
|
8 |
return $buttonstylesarray;
|
9 |
|
10 |
}
|
app/code/local/Soclever/Socialloginsharing/etc/system.xml
CHANGED
@@ -16,6 +16,14 @@
|
|
16 |
<show_in_website>1</show_in_website>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
<apisettings translate="label">
|
20 |
<label>Soclever Social API Settings</label>
|
21 |
<frontend_type>text</frontend_type>
|
@@ -219,17 +227,66 @@
|
|
219 |
<buttonstyle translate="label">
|
220 |
<label>Select Button Style</label>
|
221 |
<frontend_type>select</frontend_type>
|
222 |
-
<source_model>socialloginsharing/providers::getbuttonstyles</source_model>
|
|
|
223 |
<sort_order>207</sort_order>
|
224 |
<show_in_default>1</show_in_default>
|
225 |
<show_in_website>1</show_in_website>
|
226 |
<show_in_store>1</show_in_store>
|
227 |
</buttonstyle>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
<buttonsize translate="label">
|
229 |
<label>Button Size</label>
|
230 |
<frontend_type>select</frontend_type>
|
231 |
<source_model>socialloginsharing/providers::getsizes</source_model>
|
232 |
-
<sort_order>
|
233 |
<show_in_default>1</show_in_default>
|
234 |
<show_in_website>1</show_in_website>
|
235 |
<show_in_store>1</show_in_store>
|
@@ -238,7 +295,7 @@
|
|
238 |
<label>Select Providers</label>
|
239 |
<frontend_type>multiselect</frontend_type>
|
240 |
<source_model>socialloginsharing/providers::getloginproviders</source_model>
|
241 |
-
<sort_order>
|
242 |
<show_in_default>1</show_in_default>
|
243 |
<show_in_website>1</show_in_website>
|
244 |
<show_in_store>1</show_in_store>
|
@@ -247,7 +304,7 @@
|
|
247 |
<label>Login Box Caption</label>
|
248 |
<frontend_type>text</frontend_type>
|
249 |
<comment><![CDATA[Text to display on social login box i.e Social Login By]]></comment>
|
250 |
-
<sort_order>
|
251 |
<show_in_default>1</show_in_default>
|
252 |
<show_in_website>1</show_in_website>
|
253 |
<show_in_store>1</show_in_store>
|
@@ -257,7 +314,7 @@
|
|
257 |
<frontend_type>select</frontend_type>
|
258 |
<source_model>socialloginsharing/providers::showpoweredby</source_model>
|
259 |
<comment><![CDATA[At the bottom of login box will show "Powered By Socleversocial.com"]]></comment>
|
260 |
-
<sort_order>
|
261 |
<show_in_default>1</show_in_default>
|
262 |
<show_in_website>1</show_in_website>
|
263 |
<show_in_store>1</show_in_store>
|
@@ -266,7 +323,7 @@
|
|
266 |
<label>Send welcome email?</label>
|
267 |
<frontend_type>select</frontend_type>
|
268 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
269 |
-
<sort_order>
|
270 |
<show_in_default>1</show_in_default>
|
271 |
<show_in_website>1</show_in_website>
|
272 |
<show_in_store>1</show_in_store>
|
16 |
<show_in_website>1</show_in_website>
|
17 |
<show_in_store>1</show_in_store>
|
18 |
<groups>
|
19 |
+
<info translate="label">
|
20 |
+
<frontend_model>Soclever_Socialloginsharing_Model_Info</frontend_model>
|
21 |
+
<comment><![CDATA[]]></comment>
|
22 |
+
<sort_order>1</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
+
</info>
|
27 |
<apisettings translate="label">
|
28 |
<label>Soclever Social API Settings</label>
|
29 |
<frontend_type>text</frontend_type>
|
227 |
<buttonstyle translate="label">
|
228 |
<label>Select Button Style</label>
|
229 |
<frontend_type>select</frontend_type>
|
230 |
+
<source_model>socialloginsharing/providers::getbuttonstyles</source_model>
|
231 |
+
<frontend_model>socialloginsharing/adminhtml_system_config_form_field_customopt1toggle</frontend_model>
|
232 |
<sort_order>207</sort_order>
|
233 |
<show_in_default>1</show_in_default>
|
234 |
<show_in_website>1</show_in_website>
|
235 |
<show_in_store>1</show_in_store>
|
236 |
</buttonstyle>
|
237 |
+
<buttonstylefb translate="label">
|
238 |
+
<label>Facebook</label>
|
239 |
+
<frontend_type>text</frontend_type>
|
240 |
+
<sort_order>208</sort_order>
|
241 |
+
<show_in_default>1</show_in_default>
|
242 |
+
<show_in_website>1</show_in_website>
|
243 |
+
<show_in_store>1</show_in_store>
|
244 |
+
</buttonstylefb>
|
245 |
+
<buttonstylegp translate="label">
|
246 |
+
<label>Google+</label>
|
247 |
+
<frontend_type>text</frontend_type>
|
248 |
+
<sort_order>209</sort_order>
|
249 |
+
<show_in_default>1</show_in_default>
|
250 |
+
<show_in_website>1</show_in_website>
|
251 |
+
<show_in_store>1</show_in_store>
|
252 |
+
</buttonstylegp>
|
253 |
+
<buttonstyletw translate="label">
|
254 |
+
<label>Twitter</label>
|
255 |
+
<frontend_type>text</frontend_type>
|
256 |
+
<sort_order>210</sort_order>
|
257 |
+
<show_in_default>1</show_in_default>
|
258 |
+
<show_in_website>1</show_in_website>
|
259 |
+
<show_in_store>1</show_in_store>
|
260 |
+
</buttonstyletw>
|
261 |
+
<buttonstyleli translate="label">
|
262 |
+
<label>LinkedIN</label>
|
263 |
+
<frontend_type>text</frontend_type>
|
264 |
+
<sort_order>211</sort_order>
|
265 |
+
<show_in_default>1</show_in_default>
|
266 |
+
<show_in_website>1</show_in_website>
|
267 |
+
<show_in_store>1</show_in_store>
|
268 |
+
</buttonstyleli>
|
269 |
+
<buttonstyleyh translate="label">
|
270 |
+
<label>Yahoo!</label>
|
271 |
+
<frontend_type>text</frontend_type>
|
272 |
+
<sort_order>212</sort_order>
|
273 |
+
<show_in_default>1</show_in_default>
|
274 |
+
<show_in_website>1</show_in_website>
|
275 |
+
<show_in_store>1</show_in_store>
|
276 |
+
</buttonstyleyh>
|
277 |
+
<buttonstylepp translate="label">
|
278 |
+
<label>PayPal</label>
|
279 |
+
<frontend_type>text</frontend_type>
|
280 |
+
<sort_order>213</sort_order>
|
281 |
+
<show_in_default>1</show_in_default>
|
282 |
+
<show_in_website>1</show_in_website>
|
283 |
+
<show_in_store>1</show_in_store>
|
284 |
+
</buttonstylepp>
|
285 |
<buttonsize translate="label">
|
286 |
<label>Button Size</label>
|
287 |
<frontend_type>select</frontend_type>
|
288 |
<source_model>socialloginsharing/providers::getsizes</source_model>
|
289 |
+
<sort_order>214</sort_order>
|
290 |
<show_in_default>1</show_in_default>
|
291 |
<show_in_website>1</show_in_website>
|
292 |
<show_in_store>1</show_in_store>
|
295 |
<label>Select Providers</label>
|
296 |
<frontend_type>multiselect</frontend_type>
|
297 |
<source_model>socialloginsharing/providers::getloginproviders</source_model>
|
298 |
+
<sort_order>215</sort_order>
|
299 |
<show_in_default>1</show_in_default>
|
300 |
<show_in_website>1</show_in_website>
|
301 |
<show_in_store>1</show_in_store>
|
304 |
<label>Login Box Caption</label>
|
305 |
<frontend_type>text</frontend_type>
|
306 |
<comment><![CDATA[Text to display on social login box i.e Social Login By]]></comment>
|
307 |
+
<sort_order>216</sort_order>
|
308 |
<show_in_default>1</show_in_default>
|
309 |
<show_in_website>1</show_in_website>
|
310 |
<show_in_store>1</show_in_store>
|
314 |
<frontend_type>select</frontend_type>
|
315 |
<source_model>socialloginsharing/providers::showpoweredby</source_model>
|
316 |
<comment><![CDATA[At the bottom of login box will show "Powered By Socleversocial.com"]]></comment>
|
317 |
+
<sort_order>217</sort_order>
|
318 |
<show_in_default>1</show_in_default>
|
319 |
<show_in_website>1</show_in_website>
|
320 |
<show_in_store>1</show_in_store>
|
323 |
<label>Send welcome email?</label>
|
324 |
<frontend_type>select</frontend_type>
|
325 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
326 |
+
<sort_order>218</sort_order>
|
327 |
<show_in_default>1</show_in_default>
|
328 |
<show_in_website>1</show_in_website>
|
329 |
<show_in_store>1</show_in_store>
|
app/design/frontend/base/default/template/socialloginsharing/scsl_buttons.phtml
CHANGED
@@ -14,6 +14,105 @@ $selected_providers=Mage::getStoreConfig('socialloginsharing_options/displaysett
|
|
14 |
if($is_validated=='1' && $selected_providers!='' && $selected_providers!='0')
|
15 |
{
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
$valid_data=file_get_contents("https://www.socleversocial.com/dashboard/mage_login_buttons.php?site_id=".$site_id."&api_key=".$api_key."&api_secret=".$api_secret."&csplatform=magentologin&rt=gp&bcaption=".base64_encode($loginboxcaption)."&bshow=".$showpoweredby."&bstyle=".$btn_style."&bsize=".$button_size."&providers=".$selected_providers);
|
18 |
|
19 |
if($valid_data && $valid_data!='0~~0')
|
@@ -26,6 +125,7 @@ $selected_providers=Mage::getStoreConfig('socialloginsharing_options/displaysett
|
|
26 |
}
|
27 |
}
|
28 |
echo"";
|
|
|
29 |
|
30 |
|
31 |
|
14 |
if($is_validated=='1' && $selected_providers!='' && $selected_providers!='0')
|
15 |
{
|
16 |
|
17 |
+
if(strtolower($btn_style)=='custom')
|
18 |
+
{
|
19 |
+
|
20 |
+
|
21 |
+
$provider_arr=explode(",",$selected_providers);
|
22 |
+
$fbpath=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstylefb');
|
23 |
+
$gppath=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstylegp');
|
24 |
+
$lipath=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstyleli');
|
25 |
+
$twpath=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstyletw');
|
26 |
+
$yhpath=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstyleyh');
|
27 |
+
$pppath=Mage::getStoreConfig('socialloginsharing_options/displaysettings/buttonstylepp');
|
28 |
+
$gapi=file_get_contents('https://www.socleversocial.com/dashboard/get_fb_data.php?action=gapi&siteid='.$site_id.'');
|
29 |
+
if(in_array('2',$provider_arr) && !empty($fbpath))
|
30 |
+
{
|
31 |
+
$bg_position=$btn_width;
|
32 |
+
$fb_div .='<script type="text/javascript">';
|
33 |
+
$imgdiv='<div style="float: left; margin-right: 10px;margin-top: 10px;"><img src="'.$fbpath.'" alt="Login with Facebook" title="Login with Facebook""></div>';
|
34 |
+
$fb_div .='csbutton.init([\''.$imgdiv.'\',\'100%\' ,\'100%\',\'login_fb\']);'.PHP_EOL;
|
35 |
+
$fb_div .='csbutton.putCsbutton();
|
36 |
+
</script>';
|
37 |
+
|
38 |
+
}
|
39 |
+
$gp_div="";
|
40 |
+
if(in_array('4',$provider_arr) && !empty($gppath))
|
41 |
+
{
|
42 |
+
|
43 |
+
$gp_div .='<script type="text/javascript">';
|
44 |
+
$imgdiv='<div style="float: left; margin-right: 10px;margin-top: 10px;"><img src="'.$gppath.'" alt="Login with Google+" title="Login with Google+""></div>';
|
45 |
+
$gp_div .='csbutton.init([\''.$imgdiv.'\',\'100%\' ,\'100%\',\'login\',\''.$gapi.'\']);'.PHP_EOL;
|
46 |
+
$gp_div .='csbutton.putCsbutton();
|
47 |
+
</script>';
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
$li_div="";
|
52 |
+
if(!empty($lipath) && in_array('7',$provider_arr))
|
53 |
+
{
|
54 |
+
|
55 |
+
$li_div .='<script type="text/javascript">';
|
56 |
+
$imgdiv='<div style="float: left; margin-right: 10px;margin-top: 10px;"><img src="'.$lipath.'" alt="Login with LinkedIN" title="Login with LinkedIN""></div>';
|
57 |
+
$li_div .='csbutton.init([\''.$imgdiv.'\',\'100%\' ,\'100%\',\'login\',\'li\']);'.PHP_EOL;
|
58 |
+
$li_div .='csbutton.putCsbutton();
|
59 |
+
</script>';
|
60 |
+
|
61 |
+
}
|
62 |
+
|
63 |
+
$tw_div="";
|
64 |
+
if(!empty($twpath) && in_array('13',$provider_arr))
|
65 |
+
{
|
66 |
+
|
67 |
+
$tw_div .='<script type="text/javascript">';
|
68 |
+
$imgdiv='<div style="float: left; margin-right: 10px;margin-top: 10px;"><img src="'.$twpath.'" alt="Login with Twitter" title="Login with Twitter""></div>';
|
69 |
+
$tw_div .='csbutton.init([\''.$imgdiv.'\',\'100%\' ,\'100%\',\'login\',\'twitter\']);'.PHP_EOL;
|
70 |
+
$tw_div .='csbutton.putCsbutton();
|
71 |
+
</script>';
|
72 |
+
|
73 |
+
}
|
74 |
+
|
75 |
+
$yh_div="";
|
76 |
+
if(!empty($yhpath) && in_array('15',$provider_arr))
|
77 |
+
{
|
78 |
+
|
79 |
+
$yh_div .='<script type="text/javascript">';
|
80 |
+
$imgdiv='<div style="float: left; margin-right: 10px;margin-top: 10px;"><img src="'.$yhpath.'" alt="Login with Yahoo!" title="Login with Yahoo!""></div>';
|
81 |
+
$yh_div .='csbutton.init([\''.$imgdiv.'\',\'100%\' ,\'100%\',\'login\',\'yahoo\']);'.PHP_EOL;
|
82 |
+
$yh_div .='csbutton.putCsbutton();
|
83 |
+
</script>';
|
84 |
+
|
85 |
+
}
|
86 |
+
$pp_div="";
|
87 |
+
if(!empty($pppath) && in_array('16',$provider_arr))
|
88 |
+
{
|
89 |
+
|
90 |
+
$pp_div .='<script type="text/javascript">';
|
91 |
+
$imgdiv='<div style="float: left; margin-right: 10px;margin-top: 10px;"><img src="'.$pppath.'" alt="Login with PayPal" title="Login with PayPal""></div>';
|
92 |
+
$pp_div .='csbutton.init([\''.$imgdiv.'\',\'100%\' ,\'100%\',\'login\',\'paypal\']);'.PHP_EOL;
|
93 |
+
$pp_div .='csbutton.putCsbutton();
|
94 |
+
</script>';
|
95 |
+
|
96 |
+
}
|
97 |
+
|
98 |
+
$imgdiv='<script type="text/javascript" src="https://www.socleversocial.com/dashboard/client_share_js/csloginbuttonscombine_'.$site_id.'.js"></script>'.PHP_EOL.$fb_div.PHP_EOL.$gp_div.PHP_EOL.$li_div.PHP_EOL.$tw_div.PHP_EOL.$yh_div.PHP_EOL.$ig_div.PHP_EOL.$pp_div;
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
$display_buttons='<div style="margin-bottom:20px;width:52%;margin-bottom:10px;border:0px solid #bbb6a5;clear:both;overflow:hidden;height:1%;"><div><b>'.$loginboxcaption.'</b></div>'.$imgdiv.'';
|
104 |
+
if($showpoweredby=='1')
|
105 |
+
{
|
106 |
+
$display_buttons .='<div style="clear: both;text-align:left;padding-top:10px;"><b>Powered by </b><a href="https://www.socleversocial.com/" target="_blank">Socleversocial.com</a></div>';
|
107 |
+
}
|
108 |
+
$display_buttons .='</div>';
|
109 |
+
echo $display_buttons;
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
+
}
|
114 |
+
else
|
115 |
+
{
|
116 |
$valid_data=file_get_contents("https://www.socleversocial.com/dashboard/mage_login_buttons.php?site_id=".$site_id."&api_key=".$api_key."&api_secret=".$api_secret."&csplatform=magentologin&rt=gp&bcaption=".base64_encode($loginboxcaption)."&bshow=".$showpoweredby."&bstyle=".$btn_style."&bsize=".$button_size."&providers=".$selected_providers);
|
117 |
|
118 |
if($valid_data && $valid_data!='0~~0')
|
125 |
}
|
126 |
}
|
127 |
echo"";
|
128 |
+
}
|
129 |
|
130 |
|
131 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>socleverloginsharing</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -29,11 +29,11 @@
|
|
29 |
Send personalised message to your visitors by using our birthday reports. </p>
|
30 |
<p><strong>Dynamic JavaScript</strong><br />
|
31 |
Our asynchronous javascript loads faster without interfearing with the display or behaviour of the page. Dynamic JavaScript makes it easy to choose/sort social netork buttons for display.</p></description>
|
32 |
-
<notes>
|
33 |
<authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
|
34 |
-
<date>2015-06-
|
35 |
-
<time>
|
36 |
-
<contents><target name="magelocal"><dir name="Soclever"><dir name="Socialloginsharing"><dir name="Model"><file name="Observer.php" hash="e030057738d89a0b186ff25ce5e5dbfe"/><file name="Providers.php" hash="
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
39 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>socleverloginsharing</name>
|
4 |
+
<version>1.2.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
29 |
Send personalised message to your visitors by using our birthday reports. </p>
|
30 |
<p><strong>Dynamic JavaScript</strong><br />
|
31 |
Our asynchronous javascript loads faster without interfearing with the display or behaviour of the page. Dynamic JavaScript makes it easy to choose/sort social netork buttons for display.</p></description>
|
32 |
+
<notes>Ability to add custom images or icons</notes>
|
33 |
<authors><author><name>Soclever Social</name><user>Socleversocial</user><email>hemang@socleversocial.com</email></author></authors>
|
34 |
+
<date>2015-06-30</date>
|
35 |
+
<time>07:20:49</time>
|
36 |
+
<contents><target name="magelocal"><dir name="Soclever"><dir name="Socialloginsharing"><dir name="Model"><file name="Observer.php" hash="e030057738d89a0b186ff25ce5e5dbfe"/><file name="Providers.php" hash="c036d6fac3cc3259075b315b27f0d671"/></dir><dir name="Block"><file name="Scslhead.php" hash="219920fc652715e4383509b0ceedf82f"/><file name="Scslshow.php" hash="e979ec3119f18b8d0b8a2dc38b2d0341"/><file name="Scsltrackpixel.php" hash="dcb7add6ba6acd6cfd8080b40d2b0e24"/><file name="Scslheadfb.php" hash="4298e17782026f4003694ebcb1149376"/><file name="Scsshead.php" hash="173c515d7a83f8b42cd00d38bcd47a5e"/><file name="Scsshow.php" hash="392625a6c38bec962120fa40f0cf68ed"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Customopt1toggle.php" hash="2deb0de4baaa671232e7cadd9bddba1e"/></dir></dir></dir></dir></dir><file name="Scssfooter.php" hash="1437931932e9c6c6c0b7c3ab173dc51a"/></dir><dir name="controllers"><file name="IndexController.php" hash="c3bfa821dece756047c1680e59a2b341"/><file name="openid.php" hash="421d5936957b8ddda543b679d1876f04"/><file name="http.php" hash=""/><file name="oauth_client.php" hash=""/></dir><dir name="etc"><file name="config.xml" hash="ef6aec9ea5f1d5713b39df2baf71ee41"/><file name="system.xml" hash="0052b5e8b0e810f5895d0cddfa4b3c8a"/></dir><dir name="Helper"><file name="Data.php" hash="035a7f9b50f1e92c9955e427d4e7a73e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="socialloginsharing.xml" hash="dece49ed90e3ab16196ecaf878e505ab"/></dir><dir name="template"><dir name="socialloginsharing"><file name="scsl_buttons.phtml" hash="3bda0893a31e7d72f930b26d1f584e0a"/><file name="sociallogin_fb.phtml" hash="718d8596a14d123d83afb0d5d6d6fd96"/><file name="sociallogin_head.phtml" hash="f9a4331ee933427b6c3f36ae88b840e9"/><file name="sociallogin_trackpixel.phtml" hash="542ceb3ba7d5314f2f9aad416636d349"/><file name="socialshare_head.phtml" hash="f35a4bdaad57d1731be186f9e0ac612e"/><file name="socialshare_product.phtml" hash="66c0c9ba5380fa74baa0283dc163e15a"/><file name="socialshare_show.phtml" hash="49b7e88099e39550efdba024330dd1e0"/><file name="socialshare_footer.phtml" hash="d11a5014fc6b326123df5a1322582399"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="soclever_socialloginsharing.xml" hash="17a99813f44f3aa85a4781558133ac5c"/></dir></target></contents>
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
39 |
</package>
|