%PDF- %PDF-
| Direktori : /home/bitrix/www/bitrix/components/bitrix/learning.lesson.detail/templates/.default/ |
| Current File : //home/bitrix/www/bitrix/components/bitrix/learning.lesson.detail/templates/.default/template.php |
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?if (!empty($arResult["LESSON"])):?>
<?if ($arResult["LESSON"]["DETAIL_TEXT_TYPE"] == "file"):?>
<iframe width="100%" height="95%" src="<?php echo $arResult["LESSON"]["LAUNCH"]?>" frameborder="0"
onload="
function learningIframeGetDocHeight(D) {
return Math.max(
Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
Math.max(D.body.clientHeight, D.documentElement.clientHeight)
);
}
this.height = learningIframeGetDocHeight(this.contentWindow.document)+4+'px'
"></iframe>
<?else:?>
<?if($arResult["LESSON"]["SELF_TEST_EXISTS"]):?>
<a href="<?=$arResult["LESSON"]["SELF_TEST_URL"]?>" title="<?=GetMessage("LEARNING_PASS_SELF_TEST")?>">
<div title="<?echo GetMessage("LEARNING_PASS_SELF_TEST")?>" class="learn-self-test-icon float-right"></div>
</a>
<?endif?>
<?if($arResult["LESSON"]["DETAIL_PICTURE_ARRAY"] !== false):?>
<?=ShowImage(
$arResult["LESSON"]["DETAIL_PICTURE_ARRAY"],
250,
250,
"hspace='8' vspace='1' align='left' border='0'"
. ' alt="' . htmlspecialcharsbx($arResult["LESSON"]["DETAIL_PICTURE_ARRAY"]['DESCRIPTION']) . '"',
"",
true);?>
<?endif?>
<?=$arResult["LESSON"]["DETAIL_TEXT"]?>
<?
$arParams["SHOW_RATING"] = $arResult["COURSE"]["RATING"];
CRatingsComponentsMain::GetShowRating($arParams);
if($arParams["SHOW_RATING"] == 'Y'):
?>
<div class="learn-rating">
<?
$APPLICATION->IncludeComponent(
"bitrix:rating.vote", $arResult["COURSE"]["RATING_TYPE"],
Array(
"ENTITY_TYPE_ID" => "LEARN_LESSON",
"ENTITY_ID" => $arResult["LESSON"]["LESSON_ID"],
"OWNER_ID" => $arResult["LESSON"]["CREATED_BY"],
"PATH_TO_USER_PROFILE" => $arParams["PATH_TO_USER_PROFILE"],
),
$component,
array("HIDE_ICONS" => "Y")
);?>
</div>
<?endif?>
<?if($arResult["LESSON"]["SELF_TEST_EXISTS"]):?>
<div class="float-clear"></div>
<br /><div title="<?echo GetMessage("LEARNING_PASS_SELF_TEST")?>" class="learn-self-test-icon float-left"></div> <a href="<?=$arResult["LESSON"]["SELF_TEST_URL"]?>"><?=GetMessage("LEARNING_PASS_SELF_TEST")?></a><br />
<?endif?>
<?endif?>
<?endif?>