1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-10 17:36:21 +00:00

Syntax fix. Also show navigations elements only if one element available

This commit is contained in:
Loic Blot 2014-09-16 17:32:30 +00:00
parent 431796c8be
commit 3f712180fb

View File

@ -1,6 +1,6 @@
<ul>
<?php if (count($_["PNLConversations"]) > 0) { ?>
<li><a href="#">Conversations</a></li>
<?php if count($_["PNLConversations"]) > 0) { ?>
<ul>
<?php foreach ($_["PNLConversations"] as $number) { ?>
<li><?php p($number); ?></li>
@ -8,8 +8,8 @@
</ul>
<?php } ?>
<?php if (count($_["PNLDrafts"]) > 0) { ?>
<li><a href="#">Drafts</a></li>
<?php if count($_["PNLDrafts"]) > 0) { ?>
<ul>
<?php foreach ($_["PNLDrafts"] as $number) { ?>
<li><?php p($number); ?></li>