From de699440ff94e9c0d8e8b5201ee93179c085bf60 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 01 Jan 2026 20:51:26 +0000
Subject: [PATCH] =Timeline fields in feedroutes.php
---
inc/blocks/VideoCoverBlock.php | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/inc/blocks/VideoCoverBlock.php b/inc/blocks/VideoCoverBlock.php
index 90bda6a..298ee76 100644
--- a/inc/blocks/VideoCoverBlock.php
+++ b/inc/blocks/VideoCoverBlock.php
@@ -57,7 +57,8 @@
$date = date('c',strtotime($post->post_date));
$title = $attributes['title'] ?? $post->post_title;
$description = $attributes['description'] ?? $post->post_excerpt;
-
+ $title = "Legacy Tattoo Removal";
+ $description="A video of Madi Rawson performing laser tattoo removal treatments.";
// If no video sources, return empty
if (empty($video_sources)) {
return '';
@@ -92,13 +93,13 @@
$html .= ' poster="' . esc_url($poster_url) . '"';
}
- $html .= '>';
+ $html .= ' fetch-priority="high">';
// Add mobile sources first (lower resolution)
foreach ($mobile_sources as $source) {
if (!empty($source['url']) && !empty($source['mime'])) {
$html .= '<source';
- $html .= ' src="' . esc_url($source['url']) . '"';
+ $html .= ' data-src="' . esc_url($source['url']) . '"';
$html .= ' type="' . esc_attr($source['mime']) . '"';
$html .= ' media="(max-width: 767px)"';
$html .= '>';
@@ -109,7 +110,7 @@
foreach ($video_sources as $source) {
if (!empty($source['url']) && !empty($source['mime'])) {
$html .= '<source';
- $html .= ' src="' . esc_url($source['url']) . '"';
+ $html .= ' data-src="' . esc_url($source['url']) . '"';
$html .= ' type="' . esc_attr($source['mime']) . '"';
// Add media query for desktop if mobile sources exist
--
Gitblit v1.10.0