diff --git a/source/_talks/2014-03-01-git-flow.md b/source/_talks/2014-03-01-git-flow.md index 7c47ff3c..8de28e0b 100644 --- a/source/_talks/2014-03-01-git-flow.md +++ b/source/_talks/2014-03-01-git-flow.md @@ -26,11 +26,8 @@ tweets: yes {% endblock %} {% block feedback %} -
— CURVE (@CurveAgency) March 2, 2014
-
-Great presentation by @opdavies on git flow at #dclondon very well prepared and presented. pic.twitter.com/tDINp2Nsbn
— Greg Franklin (@gfranklin) March 2, 2014
-
-@opdavies Thanks for the talk today on git flow. Looking forward to use it. #drupalcampldn #dclondon #git
— Drupal Cafe UK (@drupal_cafe) March 2, 2014
-
-@opdavies @DrupalCampLDN always had trouble with git. Your talk + Git flow has made it all very easy.
— James Tombs (@jtombs) March 2, 2014
+{{ tweet('Great talk on git flow @opdavies #dclondon— CURVE (@CurveAgency) March 2, 2014')|raw }}
+{{ tweet('Great presentation by @opdavies on git flow at #dclondon very well prepared and presented. pic.twitter.com/tDINp2Nsbn— Greg Franklin (@gfranklin) March 2, 2014')|raw }}
+{{ tweet('@opdavies Thanks for the talk today on git flow. Looking forward to use it. #drupalcampldn #dclondon #git— Drupal Cafe UK (@drupal_cafe) March 2, 2014')|raw }}
+{{ tweet('@opdavies @DrupalCampLDN always had trouble with git. Your talk + Git flow has made it all very easy.— James Tombs (@jtombs) March 2, 2014')|raw }}
{% endblock %}
diff --git a/source/_talks/2015-04-08-drupal-8.md b/source/_talks/2015-04-08-drupal-8.md
index 51a5e75f..f524d60c 100644
--- a/source/_talks/2015-04-08-drupal-8.md
+++ b/source/_talks/2015-04-08-drupal-8.md
@@ -31,5 +31,5 @@ I categorised the technical changes into groups for site builders, developers an
{% endblock %}
{% block feedback %}
-Cool to hear how much new stuff is in @drupal 8. Integrating with more third party code rather than rolling their own. #phpsw
— Tom Robertshaw (@bobbyshaw) April 8, 2015
+{{ tweet('Cool to hear how much new stuff is in @drupal 8. Integrating with more third party code rather than rolling their own. #phpsw— Tom Robertshaw (@bobbyshaw) April 8, 2015')|raw }}
{% endblock %}
diff --git a/source/_talks/2015-07-25-test-drive-twig-with-sculpin.md b/source/_talks/2015-07-25-test-drive-twig-with-sculpin.md
index 62ed9a52..ea6098ee 100644
--- a/source/_talks/2015-07-25-test-drive-twig-with-sculpin.md
+++ b/source/_talks/2015-07-25-test-drive-twig-with-sculpin.md
@@ -27,5 +27,5 @@ This session covered how to install Sculpin itself, as well as how to use it to
{% endblock %}
{% block feedback %}
-Twig said 'foo', then Sculpin said 'bar'. They agreed to go spaceless ;-)
Interesting talk by @opdavies
#dcnorth15 http://t.co/26GmhiCdfJ
— Stefan van Hooft (@hooftio) July 25, 2015
+{{ tweet('Twig said 'foo', then Sculpin said 'bar'. They agreed to go spaceless ;-)
Interesting talk by @opdavies
#dcnorth15 http://t.co/26GmhiCdfJ— Stefan van Hooft (@hooftio) July 25, 2015')|raw }}
{% endblock %}
diff --git a/source/_talks/2015-08-25-dancing-for-drupal.md b/source/_talks/2015-08-25-dancing-for-drupal.md
index d53e2922..7b6ebdca 100644
--- a/source/_talks/2015-08-25-dancing-for-drupal.md
+++ b/source/_talks/2015-08-25-dancing-for-drupal.md
@@ -34,5 +34,5 @@ In each point, tried to cover the differences between Drupal core and developing
{% endblock %}
{% block feedback %}
-@opdavies @Horls @mhwelander @ThisisZone @mozzy16 Thanks for a top night of knowledge sharing! #drupal #episerver #sitecore #umbraco #h5yr
— umBristol (@umBristol) August 25, 2015
+{{ tweet('@opdavies @Horls @mhwelander @ThisisZone @mozzy16 Thanks for a top night of knowledge sharing! #drupal #episerver #sitecore #umbraco #h5yr— umBristol (@umBristol) August 25, 2015')|raw }}
{% endblock %}
diff --git a/source/_talks/2015-10-14-sculpin.md b/source/_talks/2015-10-14-sculpin.md
index dba6dec7..9b3d2834 100644
--- a/source/_talks/2015-10-14-sculpin.md
+++ b/source/_talks/2015-10-14-sculpin.md
@@ -32,5 +32,5 @@ You can [view the full slides](/slides/phpsw/building-static-websites-with-sculp
{% endblock %}
{% block feedback %}
-Simple and very cool use of video in @opdavies lightning talk @phpsw to show how to do things
— Stuart Herbert (@stuherbert) October 14, 2015
+{{ tweet('Simple and very cool use of video in @opdavies lightning talk @phpsw to show how to do things— Stuart Herbert (@stuherbert) October 14, 2015')|raw }}
{% endblock %}
diff --git a/source/_talks/2016-03-05-getting-started-with-drupal-8-module-development.md b/source/_talks/2016-03-05-getting-started-with-drupal-8-module-development.md
index 851f9835..b18b32a3 100644
--- a/source/_talks/2016-03-05-getting-started-with-drupal-8-module-development.md
+++ b/source/_talks/2016-03-05-getting-started-with-drupal-8-module-development.md
@@ -47,7 +47,7 @@ What we wonβt be covering:
{% endblock %}
{% block feedback %}
--@opdavies good talk on Getting started with Drupal 8 module development! π
— Michael trestianu (@Tresti88) March 5, 2016
-@opdavies Great talk. Thanks.
— John Bloomfield (@jbloomfield) March 5, 2016
+{{ tweet('@opdavies good talk on Getting started with Drupal 8 module development! π— Michael trestianu (@Tresti88) March 5, 2016')|raw }} +{{ tweet('@opdavies Great talk. Thanks.— John Bloomfield (@jbloomfield) March 5, 2016')|raw }} +{{ tweet('@opdavies definitely went well , I learnt from it , as did a others .— tim marsh (@timmarsh) March 5, 2016')|raw }} {% endblock %} diff --git a/src/AppBundle/Twig/TweetExtension.php b/src/AppBundle/Twig/TweetExtension.php new file mode 100644 index 00000000..80a9bf84 --- /dev/null +++ b/src/AppBundle/Twig/TweetExtension.php @@ -0,0 +1,44 @@ +@opdavies definitely went well , I learnt from it , as did a others .
— tim marsh (@timmarsh) March 5, 2016
%s', + $tweet + ); + } + + /** + * {@inheritdoc} + */ + public function getName() + { + return 'tweet'; + } + +} diff --git a/src/AppBundle/config/services.yml b/src/AppBundle/config/services.yml index 2172b27f..93a6dd68 100644 --- a/src/AppBundle/config/services.yml +++ b/src/AppBundle/config/services.yml @@ -3,6 +3,10 @@ services: class: AppBundle\Twig\SpeakerDeckExtension tags: - { name: twig.extension } + app.twig.tweet: + class: AppBundle\Twig\TweetExtension + tags: + - { name: twig.extension } app.twig.vimeo: class: AppBundle\Twig\VimeoExtension tags: