mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 01:00:20 +02:00
MySQL error message fix. Custom Page userclass fix. Media-manager import fix for files contained '%'. XML DB export fix. Other News custom caption fix. FB Like menu without app_id fix.
This commit is contained in:
@@ -10,11 +10,12 @@
|
||||
|
||||
//@see https://developers.facebook.com/docs/plugins/like-button
|
||||
e107::lan('social',false, true);
|
||||
$pref = e107::pref('social');
|
||||
if(deftrue('SOCIAL_FACEBOOK_INIT') )
|
||||
{
|
||||
e107::js('footer-inline', SOCIAL_FACEBOOK_INIT); // defined in e_header.php
|
||||
|
||||
$pref = e107::pref('social');
|
||||
|
||||
|
||||
$action = vartrue($pref['facebook_like_menu_action'], 'like'); // or 'recommend';
|
||||
$layout = vartrue($pref['facebook_like_menu_layout'], 'standard'); // standard, button_count, button or box_count.
|
||||
@@ -29,8 +30,15 @@ if(deftrue('SOCIAL_FACEBOOK_INIT') )
|
||||
|
||||
e107::getRender()->tablerender('Facebook',$text,'facebook-like-menu');
|
||||
|
||||
}elseif(ADMIN)
|
||||
}
|
||||
elseif(deftrue('XURL_FACEBOOK'))
|
||||
{
|
||||
$width = vartrue($pref['facebook_like_menu_width'], 350);
|
||||
$text .= '<iframe src="//www.facebook.com/plugins/likebox.php?href='.urlencode(XURL_FACEBOOK).'&width='.$width.'&height=200&colorscheme=light&show_faces=true&header=false&stream=false&show_border=false" scrolling="no" style="border:none; overflow:hidden; width:350px;height:200px;" allowtransparency="true" frameborder="0"></iframe>';
|
||||
e107::getRender()->tablerender('Facebook',$text,'facebook-like-menu');
|
||||
}
|
||||
elseif(ADMIN)
|
||||
{
|
||||
$text = "<div class='alert alert-danger'>".LAN_SOCIAL_100."</div>";
|
||||
e107::getRender()->tablerender('Facebook',$text,'twitter-menu');
|
||||
e107::getRender()->tablerender('Facebook',$text,'facebook-like-menu');
|
||||
}
|
Reference in New Issue
Block a user