Exemplo n.º 1
0
}
if ($course_config->course_released_date == "0") {
    $details .= '<b>' . JText::_("GURU_RELEASED") . ': </b>' . $data . '<br />';
}
if ($course_config->course_level == "0") {
    $details .= '<b>' . JText::_("GURU_LEVEL") . ': </b>' . $program->level . "<br />";
}
if (isset($course_config->duration) && $course_config->duration == 0) {
    $details .= '<b>' . JText::_("GURU_DURATION") . ': </b><span id="total-duration-1"></span><br />';
}
if ($course_config->course_price == "0") {
    $curent_currency = "GURU_CURRENCY_" . $res["currency"];
    if ($course_config->course_price_type == 0) {
        $prices = $guruModelguruProgram->getOnlyPricesR($program->id);
    } else {
        $prices = $guruModelguruProgram->getOnlyPrices($program->id);
    }
    if (isset($chb_free_courses) && $chb_free_courses == 1) {
        if ($step_access_courses == 2) {
            $text = JText::_("GURU_FREE_GUEST_PRICE");
        } elseif ($step_access_courses == 1) {
            $text = JText::_("GURU_FREE_FOR_MEMEBERS_PRICE");
        } elseif ($step_access_courses == 0 && $selected_course == -1) {
            $text = JText::_("GURU_FREE_FOR_STUDENTS_AC_PRICE");
        } elseif ($step_access_courses == 0 && $selected_course > -1) {
            $text = JText::_("GURU_FREE_FOR_STUDENTS_SC_PRICE") . " " . $all_title;
        }
        $details .= '<b>' . JText::_("GURU_BUY_PRICE") . ': </b>' . $text . '<br/>';
    } else {
        if (isset($prices)) {
            if ($res["currencypos"] == '0') {
Exemplo n.º 2
0
Arquivo: view.php Projeto: JozefAB/qk
    if (isset($author->name)) {
        $details .= '<b>' . JText::_("GURU_AUTHOR") . ': </b>' . $author->name . '<br />';
    }
}
if ($course_config->course_released_date == "0") {
    $details .= '<b>' . JText::_("GURU_RELEASED") . ': </b>' . $data . '<br />';
}
if ($course_config->course_level == "0") {
    $details .= '<b>' . JText::_("GURU_LEVEL") . ': </b>' . $program->level . "<br />";
}
if ($course_config->course_price == "0") {
    $curent_currency = "GURU_CURRENCY_" . $res["currency"];
    if ($course_config->course_price_type == 0) {
        $prices = guruModelguruProgram::getOnlyPricesR($program->id);
    } else {
        $prices = guruModelguruProgram::getOnlyPrices($program->id);
    }
    if (isset($chb_free_courses) && $chb_free_courses == 1) {
        if ($step_access_courses == 2) {
            $text = JText::_("GURU_FREE_GUEST_PRICE");
        } elseif ($step_access_courses == 1) {
            $text = JText::_("GURU_FREE_FOR_MEMEBERS_PRICE");
        } elseif ($step_access_courses == 0 && $selected_course == -1) {
            $text = JText::_("GURU_FREE_FOR_STUDENTS_AC_PRICE");
        } elseif ($step_access_courses == 0 && $selected_course > -1) {
            $text = JText::_("GURU_FREE_FOR_STUDENTS_SC_PRICE") . " " . $all_title;
        }
        $details .= '<b>' . JText::_("GURU_BUY_PRICE") . ': </b>' . $text . '<br/>';
    } else {
        if (isset($prices)) {
            if ($res["currencypos"] == '0') {