26 lines
1.4 KiB
PHP
26 lines
1.4 KiB
PHP
|
@extends('layouts.applicant-layout')
|
|||
|
@section('content')
|
|||
|
<div class=" fw-bolder fs-1 text-center py-5 lh-lg"> Видеоматериалы для поступающих </div>
|
|||
|
<div class="container pt-4 d-flex justify-content-center">
|
|||
|
|
|||
|
<div class="col-10 text-center pb-4 ">
|
|||
|
@php
|
|||
|
use App\Services\PageScrapper;
|
|||
|
$pageScrapper = new PageScrapper("https://mkgtu.ru/postuplenie/priemnaya-kampaniya/videomaterialy-dlya-postupayushchikh/", '<div class=["\']content_info["\']>');
|
|||
|
$row = $pageScrapper->getHTML();
|
|||
|
$content = $pageScrapper->normalizeURLFile($row);
|
|||
|
$content = $pageScrapper->cutHTML($content,'/<footer(.*)<\/footer>/isU');
|
|||
|
|
|||
|
$content = str_replace(
|
|||
|
'<img width="614" alt="Обложка Госуслуги_page-0001.jpg" src="/upload/medialibrary/c76/c761087fd6938bd8eb8708e9e036679e.jpg" height="346" title="Обложка Госуслуги_page-0001.jpg">',
|
|||
|
'<img width="614" alt="Обложка Госуслуги_page-0001.jpg" src="https://mkgtu.ru/upload/medialibrary/c76/c761087fd6938bd8eb8708e9e036679e.jpg" height="346" title="Обложка Госуслуги_page-0001.jpg" class="border border-3 rounded-3 border-secondary">',
|
|||
|
$content);
|
|||
|
echo $content;
|
|||
|
|
|||
|
@endphp
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
@endsection
|
|||
|
|