Jake Vanderwerf
2025-10-20 e729f920139f0c65902be2d6b2c32466b08375e8
inc/blocks/VideoCoverBlock.php
@@ -14,7 +14,7 @@
class VideoCoverBlock
{
   protected static ?VideoCoverBlock $instance = null;
   protected string $path = JVB_DIR . '/build/video-cover';
   protected string $path = JVB_DIR . '/build/video';
   public static function getInstance(): VideoCoverBlock
   {
@@ -47,6 +47,9 @@
      $mobile_sources = $attributes['mobileSources'] ?? [];
      $css_class = $attributes['className'] ?? '';
      $fade_class = $attributes['fadeEffect'] ?? false ? 'fade' : '';
      $overlay_opacity = $attributes['overlayOpacity'] ?? 0;
      $content_alignment = $attributes['contentAlignment'] ?? 'center';
      $min_height = $attributes['minHeight'] ?? 0;
      //Get date of current post
      global $post;
      $date = date('c',strtotime($post->post_date));