<{xoInboxCount assign="unread_count" total='inbox_total'}>
<li class="nav-item">
<a class="nav-link" href="<{$xoops_url}>/viewpmsg.php">
<{if $unread_count}>
<span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope"></span> <span class="badge badge-pill badge-danger align-text-top"><{$unread_count}></span>
<{/if}>
<span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope-open"></span> <span class="badge badge-pill badge-secondary align-text-top"><{$inbox_total-$unread_count}></span>
</a>
</li>
goffy wrote:
I use also phpstorm, because with this tool you can immediately debug your code, can run code cleaning,....
geekwright wrote:
The first thing that will happen is the program will build an index of all the files in that directory. From that index, it will know in most cases all the functions, classes, and variables by type and signature. That enables auto-completion, parameter hints and easy access to documentation blocks.
Math and embedding tags:
{$x+$y} // will output the sum of x and y.
{assign var=foo value=$x+$y} // in attributes
{$foo[$x+3]} // as array index
{$foo={counter}+3} // tags within tags
{$foo="this is message {counter}"} // tags within double quoted strings
<{xoInboxCount assign="unread_count" total='inbox_total'}>
<li class="nav-item">
<a class="nav-link" href="<{$xoops_url}>/viewpmsg.php">
<{if $unread_count}>
<span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope"></span> <span class="badge badge-pill badge-danger align-text-top"><{$unread_count}></span>
<{/if}>
<span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope-open"></span> <span class="badge badge-pill badge-secondary align-text-top"><{$inbox_total-$unread_count}></span>
</a>
</li>