Allow HTML
This commit is contained in:
parent
4eaecb9421
commit
4174948cc5
|
@ -22,7 +22,7 @@ tweets: yes
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block video %}
|
{% block video %}
|
||||||
{{ youtube('T-miCpHxfds')|raw }}
|
{{ youtube('T-miCpHxfds') }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block feedback %}
|
{% block feedback %}
|
||||||
|
|
|
@ -27,7 +27,7 @@ I categorised the technical changes into groups for site builders, developers an
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block video %}
|
{% block video %}
|
||||||
{{ youtube('36zCxPrOOzM')|raw }}
|
{{ youtube('36zCxPrOOzM') }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block feedback %}
|
{% block feedback %}
|
||||||
|
|
|
@ -28,7 +28,7 @@ You can [view the full slides](/slides/phpsw/building-static-websites-with-sculp
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block video %}
|
{% block video %}
|
||||||
{{ youtube('aN53arCKZAU')|raw }}
|
{{ youtube('aN53arCKZAU') }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block feedback %}
|
{% block feedback %}
|
||||||
|
|
|
@ -15,5 +15,5 @@ An impromptu lightning talk about the [Drupal VM Generator](https://github.com/o
|
||||||
{% block video %}
|
{% block video %}
|
||||||
Here is the recording of the NWDUG March meetup - my talk starts at 01:01:30.
|
Here is the recording of the NWDUG March meetup - my talk starts at 01:01:30.
|
||||||
|
|
||||||
{{ youtube('U1pbKAAO2Wo?s=1h1m31s')|raw }}
|
{{ youtube('U1pbKAAO2Wo?s=1h1m31s') }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -13,7 +13,9 @@ class YouTubeExtension extends Twig_Extension
|
||||||
public function getFunctions()
|
public function getFunctions()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
new Twig_SimpleFunction('youtube', [$this, 'embedCode'])
|
new Twig_SimpleFunction('youtube', [$this, 'embedCode'], [
|
||||||
|
'is_safe' => ['html']
|
||||||
|
])
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue