| | |
| | | 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 |
| | | { |
| | |
| | | $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)); |