1
Bender
Question: Colorize Waiting Content Block
  • 2005/1/20 18:55

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Would be nice if someone could have a quick shot at this:

<ul>
  <{foreach 
item=module from=$block.modules}>
  <
li><a href="<{$module.adminlink}>"><{$module.lang_linkname}>a>: <{$module.pendingnum}>li>
  <{/foreach}>
ul>


This is the usual ´Waiting content´-Block. Just looking for some code to use some color if the amount of waiting content is bigger than 0.

Something like

case (<{$module.pendingnum}> = 0then <{$module.pendingnum}>
else <
style="font-weight:bold; font-color:red"> <{$module.pendingnum}> style>


Uuhm ... just that with the correct syntax

2
Mithrandir
Re: Question: Colorize Waiting Content Block

<{if $module.pendingnum 0}>
    <
span style="font-weight:bold; font-color:red">
<{else}>
    <
span>
<{/if}>
    <{
$module.pendingnum}>
span>

3
Bender
Re: Question: Colorize Waiting Content Block
  • 2005/1/20 20:22

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Thanks Mithrandir,

works fine.

For those who want their waiting content colored too here is the complete template:

<ul>
  <{foreach 
item=module from=$block.modules}>
  <
li><a href="<{$module.adminlink}>"><{$module.lang_linkname}>a>: <{if $module.pendingnum 0}>
    <
span style="color:#CC0000; font-weight:bold">
<{else}>
    <
span>
<{/if}>
    <{
$module.pendingnum}>
span>li>
  <{/foreach}>
ul>

4
tjnemez
Re: Question: Colorize Waiting Content Block
  • 2005/1/20 21:17

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


cool, thanks for that bender

Login

Who's Online

332 user(s) are online (300 user(s) are browsing Support Forums)


Members: 0


Guests: 332


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits