function otf_php($option_key, $result, $ext)
{
    global $post;
    $ID = ppl_current_post_id();
    $value = '';
    if ($ext) {
        if (strpos($ext, '{') !== false) {
            $ext = ppl_expand_template($result, $ext, ppl_prepare_template($ext), $option_key);
        }
        ob_start();
        eval($ext);
        $value = ob_get_contents();
        ob_end_clean();
    }
    return $value;
}
Example #2
0
function where_just_post()
{
    $postid = ppl_current_post_id();
    if ($postid <= 1) {
        $postid = -1;
    }
    return "ID = {$postid}";
}