aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter_api/views/default
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-23 21:15:37 -0400
committercash <cash.costello@gmail.com>2011-06-23 21:15:37 -0400
commit42e02f03c306717002aac0d36f0e2b48bf369fed (patch)
tree7e5ff1ca950cdf6c4bcb990c374b4e2a5c6f39a6 /mod/twitter_api/views/default
parent32d1925d66bc65478d547ca3ed0e8d3e11bfcf2e (diff)
downloadelgg-42e02f03c306717002aac0d36f0e2b48bf369fed.tar.gz
elgg-42e02f03c306717002aac0d36f0e2b48bf369fed.tar.bz2
cleaned up the twitter api plugin settings so instructions are correct. Need to verify that login works.
Diffstat (limited to 'mod/twitter_api/views/default')
-rw-r--r--mod/twitter_api/views/default/settings/twitter_api/edit.php11
-rw-r--r--mod/twitter_api/views/default/twitter_api/css.php7
2 files changed, 8 insertions, 10 deletions
diff --git a/mod/twitter_api/views/default/settings/twitter_api/edit.php b/mod/twitter_api/views/default/settings/twitter_api/edit.php
index 467637147..4e52a5c9d 100644
--- a/mod/twitter_api/views/default/settings/twitter_api/edit.php
+++ b/mod/twitter_api/views/default/settings/twitter_api/edit.php
@@ -3,9 +3,7 @@
* Twitter API plugin settings
*/
-$instructions = elgg_echo('twitter_api:settings:instructions');
-
-$insert_view = elgg_view('twittersettings/extend');
+$instructions = elgg_echo('twitter_api:settings:instructions', array(elgg_get_site_url()));
$consumer_key_string = elgg_echo('twitter_api:consumer_key');
$consumer_key_view = elgg_view('input/text', array(
@@ -18,7 +16,7 @@ $consumer_secret_string = elgg_echo('twitter_api:consumer_secret');
$consumer_secret_view = elgg_view('input/text', array(
'name' => 'params[consumer_secret]',
'value' => $vars['entity']->consumer_secret,
- 'class' => 'text_input',
+ 'class' => 'text_input twitter-secret',
));
$sign_on_with_twitter_string = elgg_echo('twitter_api:login');
@@ -43,9 +41,8 @@ $new_users_with_twitter_view = elgg_view('input/dropdown', array(
$settings = <<<__HTML
<div class="elgg-instructs mtm"><p>$instructions</p></div>
-<div>$insert_view</div>
-<div>$consumer_key_string $consumer_key_view</div>
-<div>$consumer_secret_string $consumer_secret_view</div>
+<div><label>$consumer_key_string</label><br /> $consumer_key_view</div>
+<div><label>$consumer_secret_string</label><br /> $consumer_secret_view</div>
<div>$sign_on_with_twitter_string $sign_on_with_twitter_view</div>
<div>$new_users_with_twitter $new_users_with_twitter_view</div>
__HTML;
diff --git a/mod/twitter_api/views/default/twitter_api/css.php b/mod/twitter_api/views/default/twitter_api/css.php
index 140ce6a52..04bbed668 100644
--- a/mod/twitter_api/views/default/twitter_api/css.php
+++ b/mod/twitter_api/views/default/twitter_api/css.php
@@ -4,9 +4,10 @@
*/
?>
-#twitter_api_site_settings .text_input {
- width: 350px;
-}
#login_with_twitter {
padding: 10px 0 0 0;
}
+
+.twitter-secret {
+ width: 400px;
+} \ No newline at end of file