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:

le="color: #000000"><?php <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

le="color: #000000"><?php case (<{$module.pendingnum}> = 0) then <{$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

le="color: #000000"><?php <{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:

le="color: #000000"><?php <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

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits