From 60dde10b389667af0b4e1b703f8962e9e54f4a28 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Fri, 18 Jan 2013 16:51:20 -0500 Subject: Style fixes to match 1.8 widgets --- mod/twitter/views/default/widgets/twitter/content.php | 2 -- mod/twitter/views/default/widgets/twitter/edit.php | 16 +++++++--------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/mod/twitter/views/default/widgets/twitter/content.php b/mod/twitter/views/default/widgets/twitter/content.php index dd741745e..caefd369a 100644 --- a/mod/twitter/views/default/widgets/twitter/content.php +++ b/mod/twitter/views/default/widgets/twitter/content.php @@ -14,14 +14,12 @@ if (empty($username)) { } $username_is_valid = preg_match('~^[a-zA-Z0-9_]{1,20}$~', $username); - if (!$username_is_valid) { echo "

" . elgg_echo("twitter:invalid") . "

"; return; } - $num = $vars['entity']->twitter_num; if (empty($num)) { $num = 5; diff --git a/mod/twitter/views/default/widgets/twitter/edit.php b/mod/twitter/views/default/widgets/twitter/edit.php index 5dd291257..c3fc6f0d5 100644 --- a/mod/twitter/views/default/widgets/twitter/edit.php +++ b/mod/twitter/views/default/widgets/twitter/edit.php @@ -7,20 +7,18 @@ */ ?> -

-

+ 'params[twitter_username]', 'value' => $vars['entity']->twitter_username, )) ?> - -

-

-

+
+ 'params[twitter_num]', 'value' => $vars['entity']->twitter_num, )) ?> - - -

\ No newline at end of file + +
\ No newline at end of file -- cgit v1.2.3