Hi there.

Why are the SMW_FACTBOX_* defines not defined in a way that you can
use bitwise operators?

define('SMW_FACTBOX_HIDDEN', 1);
define('SMW_FACTBOX_NONEMPTY',  2);
define('SMW_FACTBOX_SHOWN',  4);
define('SMW_FACTBOX_HIDDEN_IN_PRINTABLE',  8);

$smwgShowFactbox = SMW_FACTBOX_NONEMPTY | SMW_FACTBOX_HIDDEN_IN_PRINTABLE;

if($smwgShowFactbox & SMW_FACTBOX_NONEMPTY) {
  // show it
}

So you can assign more modes.

Cheers,
  Ingmar

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Semediawiki-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to