- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
if($showmode == 0 || $showmode == 2):
if($count['user'] != 0):
if($count['user'] == 1):
echo '<p class="tpwhosonline">Members Online: <span>1</span></p>';
else:
if($count['user'] > 1):
echo '<p class="tpwhosonline">Members Online: <span>' . $count['user'] . '</span></p>';
endif;
endif;
else:
echo '<p class="tpwhosonline">Members Online: <span>0</span></p>';
endif;
if($count['guest'] != 0):
if($count['guest'] == 1):
echo '<p class="tpwhosonline">Guests Online: <span>1</span></p>';
else:
if($count['guest'] > 1):
echo '<p class="tpwhosonline">Guests Online: <span>' . $count['guest'] . '</span></p>';
endif;
endif;
else:
echo '<p class="tpwhosonline">Guests Online: <span>0</span></p>';
endif;
endif;
и такая вот хрень еще и за бабки продается (Joomla template)