Beispiel #1
0
                        <div class="item-image-holder" style="background-image: url(<?php 
        echo $arProg["UF_THUMBNAIL_URL"];
        ?>
)"></div>
                        
                        <span class="item-status-icon" href="#">
            				<span data-icon="icon-recorded"></span>
            				<span class="status-desc">Смотреть</span>
            			</span>
                        
                    	<div class="item-header">
                            <div class="meta"></div>
                            <div class="title">
                        		<a href="#"><?php 
        echo $arProg["UF_TITLE"];
        ?>
</a>
                            </div>
                    	</div>
                    </div>
                </div>
                <?php 
    } else {
        echo \Hawkart\Megatv\CScheduleTemplate::getProgInfoRecommend($arProg);
        //echo \Hawkart\Megatv\CScheduleTemplate::getProgSimilar($arProg, $arParams);
    }
}
?>
		</div>
	</div>
</section>
Beispiel #2
0
        $url = $url_params["path"] . "/";
        if (!empty($url_params["query"])) {
            $url .= "?" . $url_params["query"];
        }
        LocalRedirect($url, false, "301 Moved permanently");
    }
}
//SEO
$APPLICATION->SetTitle($arResult["UF_TITLE"]);
$APPLICATION->SetPageProperty("title", trim($arResult["UF_TITLE"] . " " . $arResult["UF_SUB_TITLE"]));
$APPLICATION->SetPageProperty("keywords", implode(", ", $arResult["KEYWORDS"]));
$APPLICATION->SetPageProperty("description", TruncateText($arResult["UF_DESC"], 256));
$APPLICATION->SetDirProperty('og_image', $arResult["PICTURE"]["SRC"]);
$APPLICATION->SetDirProperty('og_type', 'album');
//get status schedule
$arResult["STATUS"] = \Hawkart\Megatv\CScheduleTemplate::status(array("ID" => $arResult["ID"], "UF_CHANNEL_ID" => $arResult["UF_CHANNEL_ID"], "DATE_START" => $arResult["DATE_START"], "DATE_END" => $arResult["DATE_END"]));
foreach (array("UF_DIRECTOR", "UF_PRESENTER", "UF_ACTOR") as $type) {
    $_arResult[$type] = array();
    $arPeoples = explode(",", $arResult[$type]);
    foreach ($arPeoples as $actor) {
        $actor = trim($actor);
        if (!empty($actor)) {
            $link = \Hawkart\Megatv\PeopleTable::getKinopoiskLinkByName($actor);
            $link = str_replace("//name", "/name", $link);
            if (empty($link)) {
                $link = "#";
            }
            $_arResult[$type][] = array("NAME" => $actor, "LINK" => $link);
        }
    }
    $arResult[$type] = $_arResult[$type];
Beispiel #3
0
            echo $img;
            ?>
)"></div><?php 
        }
        echo $status_icon;
        echo \Hawkart\Megatv\CScheduleTemplate::driveNotifyMessage();
        if ($status == "recording") {
            ?>
        <div class="recording-notify">
            <div class="recording-notify-text-wrap">
                <div class="recording-notify-icon">
                </div>
                <p>Ваша любимая передача<br> поставлена на запись</p>
            </div>
        </div>
        <?php 
        }
        $content = ob_get_contents();
        ob_end_clean();
        $_arRecord = array("id" => $arRecord["ID"], "time" => $time, "date" => $date, "link" => $arRecord["DETAIL_PAGE_URL"], "name" => \Hawkart\Megatv\CScheduleTemplate::cutName(\Hawkart\Megatv\ProgTable::getName($arRecord), 35), "image" => $img, "category" => array("link" => $arResult["CATEGORIES"][$arRecord["UF_CATEGORY"]], "name" => $arRecord["UF_CATEGORY"]), "button" => $content, "status" => "status-" . $status);
        $arRecords[] = $_arRecord;
        unset($_arRecord);
    }
    //$arRecords["date"] = $date;
    echo json_encode($arRecords);
    die;
}
if (count($arResult["PROGS"]) > 0) {
    $arResult["PROGS"] = \Hawkart\Megatv\CScheduleView::setIndex(array("PROGS" => $arResult["PROGS"]));
}
$this->IncludeComponentTemplate();
Beispiel #4
0
        "recordingURL": "<?php 
echo SITE_TEMPLATE_PATH;
?>
/ajax/to_record.php"
    }
    </script>
	<div class="block-header">
		<h3 class="block-title">Мы рекомендуем</h3>
	</div>
	<div class="block-body">
		<div class="broadcasts-list">
            <?php 
foreach ($arResult["PROGS"] as $key => $arProg) {
    if ($key == 0) {
        ?>
                    <div class="quadro-container">
				        <div class="quadro-container-items-wrap">
                    <?php 
    }
    echo \Hawkart\Megatv\CScheduleTemplate::getProgInfoRecommendIndex($arProg, $arParams, $key);
    if ($key == 3) {
        ?>
                        </div>
                    </div>
                    <?php 
    }
}
?>
		</div>
	</div><!-- /.block-body -->
</section><!-- /.recomended-broadcasts -->
Beispiel #5
0
?>
" data-type="broadcast" data-broadcast-id="<?php 
echo $arResult["ID"];
?>
"> 

            <img src="<?php 
echo $arResult["PICTURE"]["SRC"];
?>
" alt="" width="480">
            
            <?php 
echo $status_icon;
?>
            <?php 
\Hawkart\Megatv\CScheduleTemplate::driveNotifyMessage();
?>
            
            
            <script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
            <script src="//yastatic.net/share2/share.js"></script>

            <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,moimir,gplus,twitter,linkedin"></div>

			<?php 
/*
			<ul class="action-panel">
				<li>
					<a href="#"><span data-icon="icon-yadisk-service" data-size="small"></span>Сохранить на Яндекс.Диск</a>
				</li>
				<li>
Beispiel #6
0
        $arProgs = $arChannels[$channel];
        if (!in_array($arChannel["UF_CHANNEL_BASE_ID"], $arResult["CHANNELS_SHOW"]) && $USER->IsAuthorized()) {
            continue;
        }
        foreach ($arProgs as $key => $arProg) {
            $time = substr($arProg['UF_DATE_START'], 11, 5);
            $arStatus = \Hawkart\Megatv\CScheduleTemplate::status($arProg, $arRecordsStatuses);
            $status = $arStatus["status"];
            $start = $arProg["DATE_START"];
            $end = $arProg["DATE_END"];
            $datetime = $arParams["DATETIME"]["SERVER_DATETIME_WITH_OFFSET"];
            $time_pointer = false;
            if (\CTimeEx::dateDiff($start, $datetime) && \CTimeEx::dateDiff($datetime, $end)) {
                $time_pointer = true;
            }
            $_arRecord = array("id" => $arProg["ID"], "channel_id" => $arProg["UF_CHANNEL_ID"], "time" => $time, "date" => $date, "date_start" => $arProg["DATE_START"], "date_end" => $arProg["DATE_END"], "link" => $arProg["DETAIL_PAGE_URL"], "name" => \Hawkart\Megatv\CScheduleTemplate::cutName(\Hawkart\Megatv\ProgTable::getName($arProg), 35), "images" => array('one' => \Hawkart\Megatv\CFile::getCropedPath($arProg["UF_IMG_PATH"], array(288, 288)), 'double' => \Hawkart\Megatv\CFile::getCropedPath($arProg["UF_IMG_PATH"], array(576, 288)), 'half' => \Hawkart\Megatv\CFile::getCropedPath($arProg["UF_IMG_PATH"], array(288, 144))), 'badge' => $time_pointer, "status" => "status-" . $status, "rating" => $arProg["UF_RATING"], "user_authorized" => $USER->IsAuthorized());
            foreach ($_arRecord["images"] as $type => $value) {
                $_arRecord["images"][$type . "_bad"] = SITE_TEMPLATE_PATH . "/ajax/img_grey.php?quality=1&grey=false&path=" . urlencode($_SERVER["DOCUMENT_ROOT"] . $value);
                if ($status == "viewed") {
                    $_arRecord["images"][$type] = ITE_TEMPLATE_PATH . "/ajax/img_grey.php?&path=" . urlencode($_SERVER["DOCUMENT_ROOT"] . $value);
                    $_arRecord["images"][$type . "_bad"] = str_replace("&grey=false", "", $_arRecord["images"][$type . "_bad"]);
                }
            }
            $arDates[$date][$channel][] = $_arRecord;
        }
    }
}
if ($_REQUEST["AJAX_JSON"] == "Y") {
    echo json_encode(array("CHANNELS" => $arResult["CHANNELS"], "DATES" => $arDates, "TIME" => date("Y-m-d H:i:s", strtotime(\CTimeEx::dateOffset(date("Y-m-d H:i:s"))))));
    die;
} else {