1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 14:13:03 +02:00

Moved all social prefs (login/xurls etc) into the "Social" plugin admin area. Extended admin-ui with renderHelp() method for adding a help panel from within the admin-ui.

This commit is contained in:
Cameron
2015-04-08 20:20:10 -07:00
parent 1078c9c84c
commit d543ab71ff
9 changed files with 363 additions and 255 deletions

View File

@@ -81,9 +81,12 @@ class social_comment
$link = e_REQUEST_URL;
}
$pref = e107::pref('social');
$limit = vartrue($pref['facebook_comments_limit'], 10);
$theme = vartrue($pref['facebook_comments_theme'], 'light');
$loading = vartrue($pref['facebook_comments_loadingtext'], 'Loading...');
//TODO Consider adding prefs to colorscheme and number of posts to the social admin area.
$text = '<div class="fb-comments" data-href="'.$link.'" data-width="100%" data-numposts="10" data-colorscheme="light">Loading...</div>';
$text = '<div class="fb-comments" data-href="'.$link.'" data-width="100%" data-numposts="'.$limit.'" data-colorscheme="'.$theme.'">'.$loading.'</div>';
return $text;
}