diff options
author | Friendika <info@friendika.com> | 2011-02-23 18:24:29 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-23 18:24:29 -0800 |
commit | 834439b7300584350ac1676f3f43f5511a4b509b (patch) | |
tree | 07eee6cd1f2e078d7f37e9fe7ce6fe7128255fbc /addon/facebook/facebook.php | |
parent | 352fef6208184d0609d3305010c5d74dd5e4c720 (diff) | |
download | volse-hubzilla-834439b7300584350ac1676f3f43f5511a4b509b.tar.gz volse-hubzilla-834439b7300584350ac1676f3f43f5511a4b509b.tar.bz2 volse-hubzilla-834439b7300584350ac1676f3f43f5511a4b509b.zip |
cleanup plugin and post settings
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index e989c90ea..876a9740b 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -114,14 +114,18 @@ function facebook_content(&$a) { return ''; } + $a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' + . $a->get_baseurl() . '/addon/facebook/facebook.css' . '" media="all" />' . "\r\n"; + $o .= '<h3>' . t('Facebook Connect') . '</h3>'; - $o .= '<br />'; + $o .= '<div id="facebook-enable-wrapper">'; $o .= '<a href="https://www.facebook.com/dialog/oauth?client_id=' . $appid . '&redirect_uri=' - . $a->get_baseurl() . '/facebook/' . $a->user['nickname'] . '&scope=publish_stream,read_stream,offline_access">' . t('Install Facebook post connector') . '</a><br /><br />'; + . $a->get_baseurl() . '/facebook/' . $a->user['nickname'] . '&scope=publish_stream,read_stream,offline_access">' . t('Install Facebook post connector') . '</a>'; + $o .= '</div><div id="facebook-disable-wrapper">'; - $o .= '<a href="' . $a->get_baseurl() . '/facebook/remove' . '">' . t('Remove Facebook post connector') . '</a><br />'; + $o .= '<a href="' . $a->get_baseurl() . '/facebook/remove' . '">' . t('Remove Facebook post connector') . '</a></div>'; return $o; @@ -143,8 +147,10 @@ function facebook_uninstall() { function facebook_plugin_settings(&$a,&$b) { + $b .= '<div class="settings-block">'; $b .= '<h3>' . t('Facebook') . '</h3>'; $b .= '<a href="facebook">' . t('Facebook Connector Settings') . '</a><br />'; + $b .= '</div>'; } |