mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Prevent social menus from breaking layout.
This commit is contained in:
parent
919de5d49f
commit
f6d7f2d31a
@ -34,7 +34,7 @@ if(deftrue('SOCIAL_FACEBOOK_INIT') )
|
||||
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>';
|
||||
$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;max-width:100%;" allowtransparency="true" frameborder="0"></iframe>';
|
||||
e107::getRender()->tablerender('Facebook',$text,'facebook-like-menu');
|
||||
}
|
||||
elseif(ADMIN)
|
||||
|
@ -31,7 +31,7 @@ if(deftrue('XURL_TWITTER'))
|
||||
|
||||
|
||||
|
||||
$text = '<a class="twitter-timeline" data-theme="'.$theme.'" href="'.XURL_TWITTER.'" data-tweet-limit="'.$limit.'" data-widget-id="'.$widgetId.'" style="height:'.$height.'px" data-screen-name="'.$screenName.'" data-chrome="noheader nofooter transparent noscrollbar">'.LAN_SOCIAL_201."@".$screenName.'</a>';
|
||||
$text = '<a class="twitter-timeline" data-theme="'.$theme.'" href="'.XURL_TWITTER.'" data-tweet-limit="'.$limit.'" data-widget-id="'.$widgetId.'" style="height:'.$height.'px;max-width:100%" data-screen-name="'.$screenName.'" data-chrome="noheader nofooter transparent noscrollbar">'.LAN_SOCIAL_201."@".$screenName.'</a>';
|
||||
|
||||
|
||||
e107::getRender()->tablerender('Twitter',$text,'twitter-menu');
|
||||
|
Loading…
x
Reference in New Issue
Block a user