diff options
Diffstat (limited to 'mod/twitter/views')
-rw-r--r-- | mod/twitter/views/default/widgets/twitter/content.php | 2 | ||||
-rw-r--r-- | 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 "<p>" . elgg_echo("twitter:invalid") . "</p>"; 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 @@ */ ?> -<p> - <label><?php echo elgg_echo("twitter:username"); ?> +<div> + <?php echo elgg_echo("twitter:username"); ?> <?php echo elgg_view('input/text', array( 'name' => 'params[twitter_username]', 'value' => $vars['entity']->twitter_username, )) ?> - </label> -</p> -<p> - <label><?php echo elgg_echo("twitter:num"); ?> +</div> +<div> + <?php echo elgg_echo("twitter:num"); ?> <?php echo elgg_view('input/text', array( 'name' => 'params[twitter_num]', 'value' => $vars['entity']->twitter_num, )) ?> - </label> - <small style="font-size:.9em"><?php echo elgg_echo("twitter:apibug") ?></small> -</p>
\ No newline at end of file + <span class="elgg-text-help"><?php echo elgg_echo("twitter:apibug"); ?></span> +</div>
\ No newline at end of file |