diff --git a/gpluspost/gpluspost.css b/gpluspost/gpluspost.css new file mode 100755 index 000000000..a9bfb2b9e --- /dev/null +++ b/gpluspost/gpluspost.css @@ -0,0 +1,15 @@ + +#gpluspost-enable-label, #gpluspost-bydefault-label, #gpluspost-noloopprevention-label, #gpluspost-skipwithoutlink-label { + float: left; + width: 200px; + margin-top: 10px; +} + +#gpluspost-checkbox, #gpluspost-bydefault, #gpluspost-noloopprevention, #gpluspost-skipwithoutlink { + float: left; + margin-top: 10px; +} + +#gpluspost-submit { + margin-top: 15px; +} diff --git a/gpluspost/gpluspost.php b/gpluspost/gpluspost.php index dae59efe9..0880a4245 100644 --- a/gpluspost/gpluspost.php +++ b/gpluspost/gpluspost.php @@ -42,6 +42,10 @@ function gpluspost_settings(&$a,&$s) { if(! local_user()) return; + /* Add our stylesheet to the page so we can make our settings look nice */ + + $a->page['htmlhead'] .= '' . "\r\n"; + $enabled = get_pconfig(local_user(),'gpluspost','post'); $checked = (($enabled) ? ' checked="checked" ' : ''); @@ -79,8 +83,8 @@ function gpluspost_settings(&$a,&$s) { /* provide a submit button */ $s .= '
'; - $s .= 'Register an account at Hootsuite, add your G+ page and add the feed-url there.
'; - $s .= 'Feed-url: '.$a->get_baseurl().'/gpluspost/'.urlencode($a->user["nickname"]).''; + $s .= '

Register an account at Hootsuite, add your G+ page and add the feed-url there.
'; + $s .= 'Feed-url: '.$a->get_baseurl().'/gpluspost/'.urlencode($a->user["nickname"]).'

'; } function gpluspost_settings_post(&$a,&$b) { diff --git a/tumblr/tumblr.css b/tumblr/tumblr.css index bdb390467..c76fb61eb 100755 --- a/tumblr/tumblr.css +++ b/tumblr/tumblr.css @@ -1,11 +1,11 @@ -#tumblr-enable-label, #tumblr-username-label, #tumblr-password-label, #tumblr-bydefault-label { +#tumblr-enable-label, #tumblr-username-label, #tumblr-page-label, #tumblr-bydefault-label { float: left; width: 200px; margin-top: 10px; } -#tumblr-checkbox, #tumblr-username, #tumblr-password, #tumblr-bydefault { +#tumblr-checkbox, #tumblr-username, #tumblr-page, #tumblr-bydefault { float: left; margin-top: 10px; } diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index 4bbae8e6c..35004033f 100755 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -201,7 +201,7 @@ function tumblr_settings(&$a,&$s) { $oauth_token = get_pconfig(local_user(), "tumblr", "oauth_token"); $oauth_token_secret = get_pconfig(local_user(), "tumblr", "oauth_token_secret"); - $s .= '
'; + $s .= '
'; if (($oauth_token != "") and ($oauth_token_secret != "")) { $page = get_pconfig(local_user(),'tumblr','page'); @@ -214,7 +214,8 @@ function tumblr_settings(&$a,&$s) { $blogs = array(); - $s .= t("Post to page:")."'; foreach($userinfo->response->user->blogs as $blog) { $blogurl = substr(str_replace(array("http://", "https://"), array("", ""), $blog->url), 0, -1); if ($page == $blogurl)