mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Removed debug from FB menu and now uses facebook page if defined, otherwise it uses SITEURL.
This commit is contained in:
parent
efe6f27c46
commit
879174ea03
@ -83,6 +83,9 @@ class social_ui extends e_admin_ui
|
||||
'facebook_like_menu_theme' => array('title'=> 'Theme', 'type'=>'dropdown', 'tab'=>2, 'writeParms'=>array('optArray'=>array('light'=>'Light','dark'=>'Dark')), 'data' => 'str'),
|
||||
'facebook_like_menu_action' => array('title'=> 'Action', 'type'=>'dropdown', 'tab'=>2, 'writeParms'=>array('optArray'=>array('like'=>'Like','recommend'=>'Recommend')), 'data' => 'str'),
|
||||
'facebook_like_menu_width' => array('title'=> 'Width', 'type'=>'number', 'tab'=>2, 'data' => 'int','help'=>'Width in px'),
|
||||
// 'facebook_like_menu_ref' => array('title'=> "Referrer", 'type'=>'text', 'tab'=>2, 'data' => 'str', 'writeParms'=>'size=xxlarge', 'help'=>'Leave blank to use Site Url'),
|
||||
|
||||
|
||||
|
||||
'twitter_menu_theme' => array('title'=> 'Theme', 'type'=>'dropdown', 'tab'=>3, 'writeParms'=>array('optArray'=>array('light'=>'Light','dark'=>'Dark')), 'data' => 'str'),
|
||||
'twitter_menu_height' => array('title'=> 'Height', 'type'=>'number', 'tab'=>3, 'data' => 'int','help'=>'Height in px'),
|
||||
|
@ -20,12 +20,14 @@ if(deftrue('SOCIAL_FACEBOOK_INIT') )
|
||||
$layout = vartrue($pref['facebook_like_menu_layout'], 'standard'); // standard, button_count, button or box_count.
|
||||
$width = vartrue($pref['facebook_like_menu_width'], 150);
|
||||
$theme = vartrue($pref['facebook_like_menu_theme'], 'light');
|
||||
$ref = deftrue('XURL_FACEBOOK', SITEURL); // vartrue($pref['facebook_like_menu_ref'], basename();
|
||||
$share = vartrue($pref['facebook_like_menu_share'], 'false');
|
||||
|
||||
$text = "<div style='overflow:hidden'>"; // prevent theme breakages.
|
||||
$text .= '<div class="fb-like" data-href="'.SITEURL.'" data-width="'.$width.'px" data-layout="'.$layout.'" data-colorscheme="'.$theme.'" data-action="'.$action.'" data-show-faces="true" data-share="true"></div>';
|
||||
$text .= '<div class="fb-like" data-href="'.rtrim($ref.'/').'" data-width="'.$width.'px" data-layout="'.$layout.'" data-colorscheme="'.$theme.'" data-action="'.$action.'" data-show-faces="true" data-share="'.$share.'"></div>';
|
||||
$text .= "</div>";
|
||||
|
||||
e107::getRender()->tablerender('Facebook '.$theme,$text,'facebook-like-menu');
|
||||
e107::getRender()->tablerender('Facebook',$text,'facebook-like-menu');
|
||||
|
||||
}elseif(ADMIN)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user