aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-01-18 16:51:20 -0500
committerSteve Clay <steve@mrclay.org>2013-01-18 16:51:20 -0500
commit60dde10b389667af0b4e1b703f8962e9e54f4a28 (patch)
tree8060b3a38840436a485f6c72422f3cda9f06c1fb /mod/twitter
parentb339fd125870bb0b084cf54b03cdacd257cc560b (diff)
downloadelgg-60dde10b389667af0b4e1b703f8962e9e54f4a28.tar.gz
elgg-60dde10b389667af0b4e1b703f8962e9e54f4a28.tar.bz2
Style fixes to match 1.8 widgets
Diffstat (limited to 'mod/twitter')
-rw-r--r--mod/twitter/views/default/widgets/twitter/content.php2
-rw-r--r--mod/twitter/views/default/widgets/twitter/edit.php16
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