<?php
    if (!empty($inlinecontent)) $inlinecontent = ($data['type']=='embed' ? $inlinecontent : '<span>'.$inlinecontent.'</span>');
?>

<a href="<?php echo $url; ?>"  class="video-lightbox-style-2" title="<?php echo __('Click to play',OP_SN); ?>" rel="prettyPhoto" data-width="<?php echo $width; ?>" data-height="<?php echo $height; ?>" data-video="<?php echo $videoUrl; ?>" data-video1="<?php echo $videoUrl1; ?>" data-video2="<?php echo $videoUrl2; ?>" data-autobuffer="<?php echo $auto_buffer; ?>" data-hide-controls="<?php echo $hide_controls; ?>" data-autoplay="<?php echo $auto_play; ?>">
        <div class="preview-container">
                <img src="<?php echo $placeholder; ?>" class="scale-with-grid">
                <div class="circle"><div class="play"></div></div>
                <?php echo $inlinecontent; ?>
        </div>
</a>