mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
Improve featured video
The `$p->video` should return the video link only, to get the video ID we can use get_video_id(); and call it from the theme.
This commit is contained in:
parent
21d9bbb9b9
commit
84f4e565e6
13 changed files with 15 additions and 136 deletions
|
|
@ -28,7 +28,7 @@
|
|||
<?php endif; ?>
|
||||
<?php if (!empty($p->video)):?>
|
||||
<div class="post-thumbnail">
|
||||
<iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo $p->video; ?>" frameborder="0" allowfullscreen></iframe>
|
||||
<iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($p->quote)):?>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<?php endif; ?>
|
||||
<?php if (!empty($p->video)):?>
|
||||
<div class="post-thumbnail">
|
||||
<iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo $p->video; ?>" frameborder="0" allowfullscreen></iframe>
|
||||
<iframe width="100%" height="315px" class="embed-responsive-item" src="https://www.youtube.com/embed/<?php echo get_video_id($p->video); ?>" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($p->quote)):?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue