}
$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;
*/
?>
-<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