function idcf_level_select_lb($project_id, $the_deck = null)
{
    //ob_start();
    //$project = new ID_Project($project_id);
    global $pwyw;
    if (isset($the_deck) && $the_deck->project_type !== 'pwyw') {
        $post_id = $the_deck->post_id;
        $image = idc_checkout_image($post_id);
        if (isset($the_deck->level_data)) {
            $level_data = $the_deck->level_data;
        } else {
            $level_data = new stdClass();
        }
        $purchase_url = getPurchaseURLfromType($project_id, 'purchaseform');
        $action = apply_filters('idcf_purchase_url', $purchase_url, $project_id);
        include ID_PATH . '/templates/_lbLevelSelect.php';
        //$content = ob_get_contents();
        //ob_end_flush();
        //echo $content;
    }
    return;
}
Exemple #2
0
function fh_level_select($project_id)
{
    //ob_start();
    global $pwyw;
    $permalink_structure = get_option('permalink_structure');
    if (empty($permalink_structure)) {
        $prefix = '&';
    } else {
        $prefix = '?';
    }
    if (class_exists('Deck')) {
        //$project = new ID_Project($project_id);
        $deck = new Deck($project_id);
        $the_deck = $deck->the_deck();
        if (isset($the_deck) && $the_deck->project_type !== 'pwyw') {
            $post_id = $the_deck->post_id;
            if (function_exists('idc_checkout_image')) {
                $image = idc_checkout_image($post_id);
                $level_data = $the_deck->level_data;
                $action = get_permalink($post_id) . $prefix . 'purchaseform=500&prodid=' . $project_id;
                include_once ID_PATH . 'templates/_lbLevelSelect.php';
            }
            //$content = ob_get_contents();
            //ob_end_flush();
            //echo $content;
        }
    }
    return;
}