2013-02-07, 16:55:23
(2013-02-07, 11:49:00)stryker Wrote: I love the simplicity of this pugin but am trying to setup a simple Youtube Component so the end user can add / modify their own youtube vids. ie pass arguments through.
I've created a theme component titled "youtube" and placed the following code in it.
<?php global $args;?>
<iframe width="560" height="315" src="http://www.youtube.com/embed/<?php $args[0];?>" frameborder="0" allowfullscreen></iframe>
Then on the page I have placed
{% youtube Gng3sPiJdzA %}
<?php global $args;?>
<iframe width="560" height="315" src="http://www.youtube.com/embed/<?php echo $args[0];?>" frameborder="0" allowfullscreen></iframe>