EVOLUTION-MANAGER
Edit File: 22bebab0c85b9bb996d5dbeae5ffd427654098ac.php
<?php $__env->startSection('style'); ?> <style type="text/css"> @media (min-height: : 620px){ #table_b{ height: 100%; } } .page-item.active .page-link { z-index: 1; color: #fff; background-color: #47d04c; border-color: #47d04c; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('contenido'); ?> <?php function cortar_string ($string, $largo) { $marca = "<!--corte-->"; if (strlen($string) > $largo) { $string = wordwrap($string, $largo, $marca); $string = explode($marca, $string); $string = $string[0]; } return $string; } ?> <div id="fb-root"></div> <script async defer src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"></script> <article class="art-post"> <div class="art-postmetadataheader"> </div> <h2 class="art-postheader" style="margin-left: 100px;margin-top: 30px;"> Videos </h2> <div class="art-postcontent clearfix"> <div class="art-article"> <p> </p> <?php $videos=App\articuloModel::where('tipo_articulo_id',14) ->orderBy('created_at','desc') ->paginate(6); ?> <?php if($videos->first()): ?> <div class="content table-responsive table-full-width"> <table id="table_b" align="center" border="0" style="height: 400px; width: 947px;margin-left: 100px;"> <tbody> <?php $__currentLoopData = $videos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $video): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $length = strlen($video->id); $url = $video->url_direccion; $coincidencia_fb = strrpos($url, 'facebook'); $coincidencia_youtube = strrpos($url, 'youtube'); //dd($coincidencia_youtube);?> <tr style="height: 160px;"> <td style="width: 200px; text-align: center;padding-right: 20px;padding-bottom: 10px;"> <?php if($coincidencia_youtube != false): ?> <iframe allowfullscreen="" async="" class="video-frame" data-video-ready="" frameborder="0" height="200" id="video-block_1434-1" mozallowfullscreen="" src="https://www.youtube.com/embed/<?php echo e($video->video); ?>" style="visibility: visible;" webkitallowfullscreen="" width="350"> </iframe> <?php endif; ?> <?php if($coincidencia_fb != false): ?> <div class="fb-video" data-href="<?php echo e($url); ?>" data-width="350" data-allowfullscreen="true"></div> <?php endif; ?> </td> <td style="width: 800px; text-align: justify;"> <div style="height: 95px; overflow: hidden;"> <p style="margin-top: 0px;"> <a href='<?php echo e(url("noticias/".str_random(20).$video->id.str_random(20)).$length); ?>'> <span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"> <strong style="font-size: 14px;"><?php echo e($video->titulo); ?></strong> <!--<span id="detalle<?php echo e($video->id); ?>" style="font-size: 10pt; line-height: 107%; font-family: Arial, sans-serif;"> <?php echo $video->titulo; ?> </span>--> </span> <span style="font-size: 10pt; font-family: Arial, sans-serif; color: #000000; background-image: initial; background-position: initial; background-repeat: initial; background-attachment: initial;"> <span style="font-size: 10pt; line-height: 107%; font-family: Arial, sans-serif;"> </span> </span> </a> </p> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <div style="text-align: center;display: flex;justify-content: center;"> <?php echo e($videos->links()); ?> </div> <?php else: ?> <br><br> <div style="text-align: center;"> <h2>Sin resultados</h2> </div> <br><br><br><br><br><br> <?php endif; ?> <br> </div> </div> </article> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>