gpluspost/tumblr: Some small optical changes to the settings of the connectors

This commit is contained in:
Michael Vogel 2013-10-03 14:14:26 +02:00
parent 88a0cac5a6
commit 67244bb9ea
4 changed files with 26 additions and 6 deletions

View file

@ -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;
}

View file

@ -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 .= '<div id="tumblr-password-wrapper">';
$s .= '<div id="tumblr-page-wrapper">';
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:")."<select name='tumblr_page'>";
$s .= '<label id="tumblr-page-label" for="tumblr-page">' . t('Post to page:') . '</label>';
$s .= '<select name="tumblr_page" id="tumblr-page">';
foreach($userinfo->response->user->blogs as $blog) {
$blogurl = substr(str_replace(array("http://", "https://"), array("", ""), $blog->url), 0, -1);
if ($page == $blogurl)