Skip to content

Commit

Permalink
Feat/session replay (#33)
Browse files Browse the repository at this point in the history
* feat: rename template name

* feat: remove play icon when no link
  • Loading branch information
xuliwenwenwen authored Sep 12, 2024
1 parent 9b2d661 commit 4f3f564
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions pingcap-jp/templates/page-session-replay.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@
$video_pdf = BlueprintBlocks::get_button_field_values('video_pdf', $video);
?>
<div class="block-columns__column wysiwyg">
<a class="block-columns__video-container js--trigger-video-modal ignore-link-styles" href="<?php echo esc_url($video_url); ?>">
<?php
Images::safe_image_output($video_image, ['class' => 'block-columns__video-image']);
<?php if ($video_url) { ?>
<a class="block-columns__video-container js--trigger-video-modal ignore-link-styles" href="<?php echo esc_url($video_url); ?>">
<?php
Images::safe_image_output($video_image, ['class' => 'block-columns__video-image']);

do_action('grav_blocks_get_video_link_button', '');
?>
</a>
do_action('grav_blocks_get_video_link_button', '');
?>
</a>
<?php } else { ?>
<div class="block-columns__video-container">
<?php
Images::safe_image_output($video_image, ['class' => 'block-columns__video-image']);
?>
</div>
<?php } ?>
<?php if ($video_pdf) { ?>
<div class="text-right">
<a class="button" href="<?php echo $video_pdf->link; ?>"><?php echo $video_pdf->text; ?></a>
Expand Down

0 comments on commit 4f3f564

Please sign in to comment.