| | |
| | | '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}}'], |
| | |
| | | $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; |
| | | } |
| | |
| | | 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); |