code/LivePubControllerHooks.php
public function LPH_If($func)
    {
        if (LivePubHelper::is_publishing()) {
            LivePubHelper::$context = 'php';
            $str = $this->getOwner()->$func();
            LivePubHelper::$context = 'html';
            return '<?php if (' . $str . '): ?>';
        }
    }
public function LPH_If($func)
    {
        if (LivePubHelper::is_publishing()) {
            LivePubHelper::$context = 'php';
            $str = $this->getOwner()->$func();
            LivePubHelper::$context = 'html';
            return '<?php if (' . $str . '): ?>';
        }
    }
if we're publishing, outputs an if statement
$func should be something on the controller that
is livepub sensitive (either uses eval_php or
some other method to return code)