File manager - Edit - /var/www/payraty/lms_main/storage/framework/views/a18e9765d00430519113bc2558d2c53f.php
Back
<?php if(isset($lesson_details->lesson_type)): ?> <?php if($lesson_details->lesson_type == 'text'): ?> <div class="course-video-area border-primary"> <div class="text_show"> <?php echo removeScripts($lesson_details->attachment); ?> </div> </div> <?php elseif($lesson_details->lesson_type == 'video-url'): ?> <div class="course-video-area border-primary border"> <!-- Video --> <div class="course-video-wrap"> <div id="player"> <iframe src="<?php echo e($lesson_details->lesson_src); ?>?origin=https://plyr.io&iv_load_policy=3&modestbranding=1&playsinline=1&showinfo=0&rel=0&enablejsapi=1" allowfullscreen allowtransparency allow="autoplay"></iframe> </div> <?php echo $__env->make('course_player.player_config', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <?php elseif($lesson_details->lesson_type == 'system-video'): ?> <?php $watermark_type = get_player_settings('watermark_type'); $lesson_video = $lesson_details->lesson_src; if ($watermark_type == 'ffmpeg') { $origin = dirname($lesson_details->lesson_src); $dir = $origin . '/watermark'; $file = str_replace($origin, '', $lesson_details->lesson_src); $lesson_video = "{$dir}{$file}"; } ?> <div class="course-video-area border-primary border"> <!-- Video --> <div class="course-video-wrap"> <div class=" bd-r-10 mb-16 position-relative bg-light custom-system-video"> <video id="player" playsinline controls> <source src="<?php echo e(asset('uploads/lesson_file/videos/' . $lesson_details->lesson_src)); ?>" type="video/mp4"> </video> <?php echo $__env->make('course_player.player_config', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> </div> <?php elseif($lesson_details->lesson_type == 'image'): ?> <?php $img = asset('uploads/lesson_file/attachment/' . $lesson_details->attachment); ?> <img width="100%" class="max-w-auto" height="auto" src="<?php echo e($img); ?>" /> <?php elseif($lesson_details->lesson_type == 'vimeo-url' && $lesson_details->video_type == 'vimeo'): ?> <?php $video_url = $lesson_details->lesson_src; $video_id = explode('https://vimeo.com/', $video_url); $video_id = str_replace('https://vimeo.com/', '', $video_url); ?> <div class="course-video-area border-primary border"> <!-- Video --> <div class="course-video-wrap"> <div id="player"> <iframe height="500" src="https://player.vimeo.com/video/<?php echo e($video_id); ?>?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media" allowfullscreen allowtransparency allow="autoplay"></iframe> <?php echo $__env->make('course_player.player_config', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> </div> <?php elseif($lesson_details->lesson_type == 'google_drive'): ?> <?php $video_url = $lesson_details->lesson_src; $url_array_1 = explode('/', $video_url . '/'); $url_array_2 = explode('=', $video_url); $video_id = null; if ($url_array_1[4] == 'd'): $video_id = $url_array_1[5]; else: $video_id = $url_array_2[1]; endif; ?> <div class="course-video-area border-primary border"> <!-- Video --> <div class="course-video-wrap"> <video width="100%" height="680" id="player" playsinline controls> <source class="" src="https://www.googleapis.com/drive/v3/files/<?php echo e($video_id); ?>?alt=media&key=<?php echo e(get_settings('youtube_api_key')); ?>" type="video/mp4"> </video> <?php echo $__env->make('course_player.player_config', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <?php elseif($lesson_details->lesson_type == 'html5'): ?> <div class="course-video-area border-primary border"> <!-- Video --> <div class="course-video-wrap"> <video width="100%" height="680" id="player" playsinline controls> <source class="remove_video_src" src="<?php echo e($lesson_details->lesson_src); ?>" type="video/mp4"> </video> <?php echo $__env->make('course_player.player_config', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <?php elseif($lesson_details->lesson_type == 'document_type'): ?> <?php if($lesson_details->attachment_type == 'pdf'): ?> <iframe class="embed-responsive-item" width="100%" src="<?php echo e(asset('uploads/lesson_file/attachment/' . $lesson_details->attachment)); ?>" allowfullscreen></iframe> <?php elseif($lesson_details->attachment_type == 'doc'): ?> <iframe src="https://view.officeapps.live.com/op/embed.aspx?src=<?php echo e(asset('uploads/lesson_file/attachment/' . $lesson_details->attachment)); ?>" width='100%' frameborder='0'></iframe> <?php elseif($lesson_details->attachment_type == 'txt'): ?> <iframe src="<?php echo e(asset('uploads/lesson_file/attachment/' . $lesson_details->attachment)); ?>" width='100%' frameborder='0'></iframe> <?php endif; ?> <?php elseif($lesson_details->lesson_type == 'quiz'): ?> <div class="course-video-area border-primary pb-5"> <?php echo $__env->make('course_player.quiz.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <?php else: ?> <iframe class="embed-responsive-item" width="100%" src="<?php echo e($lesson_details->lesson_src); ?>" allowfullscreen></iframe> <?php endif; ?> <?php endif; ?> <?php /**PATH /var/www/payraty/lms_main/resources/views/course_player/player_page.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings