I am familiar with php but not familiar with smarty
template code.
I am trying to set a value that is set by my script that is formatted like this {$p.youtube_key}
it's a variable that will output the given url when a user has set a video as their upload post.
So in smarty, {$p.youtube_key}
will display as their given url that they submitted.
As for php, I have a html5 player that I need to output the video link in.
Here's my code:
<video width="800" height="680" style="margin-left:-30px;"
id="post_html5_api" autoplay="true" class="vjs-tech"
loop="" poster="" type="video/mp4" preload="auto"
src="<?php echo yt_video('baseurl'); ?>" >
The src=
is where I need to output {$p.youtube_key}
. But, I have no idea how it should be setup in the smarty
template.