aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/userdetails.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default/profile/userdetails.php')
-rw-r--r--mod/profile/views/default/profile/userdetails.php7
1 files changed, 5 insertions, 2 deletions
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}");