aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/views/default/profile/css.php2
-rw-r--r--mod/profile/views/default/profile/userdetails.php7
2 files changed, 6 insertions, 3 deletions
diff --git a/mod/profile/views/default/profile/css.php b/mod/profile/views/default/profile/css.php
index 7eb5fa624..e6223bec7 100644
--- a/mod/profile/views/default/profile/css.php
+++ b/mod/profile/views/default/profile/css.php
@@ -48,4 +48,4 @@
.usericon div.sub_menu a:hover{ background:#cccccc; text-decoration:none;}
.usericon .item_line { border-top:solid 1px #dddddd;}
-.usericon div.sub_menu h3 {font-size:1.2em;} \ No newline at end of file
+.usericon div.sub_menu h3 {font-size:1.2em;}
diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php
index fd6c2c2bf..e17104d22 100644
--- a/mod/profile/views/default/profile/userdetails.php
+++ b/mod/profile/views/default/profile/userdetails.php
@@ -73,9 +73,12 @@
$value = $vars['entity']->$shortname;
if (!empty($value)) {
- ?>
+ //This function controls the alternating class
+ $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';
+
- <p>
+ echo "<p class=\"{$even_odd}\">";
+ ?>
<b><?php
echo elgg_echo("profile:{$shortname}");