From 57d34239ee9ddb0bafe7b451edd766c2089fc9d7 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 28 May 2026 19:28:04 +0000
Subject: [PATCH] =gitblit switch
---
content/progress.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/content/progress.php b/content/progress.php
index ec84aee..4dcd882 100644
--- a/content/progress.php
+++ b/content/progress.php
@@ -192,7 +192,7 @@
'description' => '{{post_excerpt}}',
'temporalCoverage' => '{{post_date}}/{{last_date}}',
'additionalProperty'=> [
- ['id'=> 'number-of-sessions','name' => 'Number of sessions', 'value' => '{{number.name}}'],
+ ['id'=> 'number-of-sessions','name' => 'Number of sessions', 'value' => '{{number}}'],
['id' => 'treatment-area','name' => 'Treatment area', 'value' => '{{body_part.name}}'],
['id' => 'tattoo-style','name' => 'Tattoo style', 'value' => '{{style.name}}'],
['id' => 'skin-type','name' => 'Skin type', 'value' => '{{skin_type.name}}'],
@@ -478,7 +478,7 @@
$route = JVB()->routes('content');
global $post;
$data = $route->formatTimeline($post);
- $timeline = $data['fields']['timeline'];
+ $timeline = $data['fields']['timeline_gallery'];
if (!is_array($timeline)) {
return $out;
}
@@ -487,6 +487,7 @@
return $out;
}
+
$total--;
$first = '<span class="before">Before</span>'.jvbFormatImage($timeline[0]['post_thumbnail'],'tiny','medium',false);
$last = '<span class="after">After '.$total.' Tx</span>'.jvbFormatImage($timeline[$total]['post_thumbnail'],'tiny','medium',false);
--
Gitblit v1.10.0