From 090c43691fc3a883df284c6a441dd45102152ae5 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 29 Nov 2009 12:47:07 -0500 Subject: [PATCH] more setup --- .gitignore | 1 + phpunit.xml | 6 ++++++ quick-audio-embed.php | 11 +++++++++++ readme.txt | 14 ++++++++++++++ test/QuickAudioEmbedTest.php | 9 +++++++++ 5 files changed, 41 insertions(+) create mode 100644 phpunit.xml create mode 100644 readme.txt create mode 100644 test/QuickAudioEmbedTest.php diff --git a/.gitignore b/.gitignore index 33711c3..c50484e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .settings/ .buildpath .project +coverage diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..7871c5a --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/quick-audio-embed.php b/quick-audio-embed.php index f8ce67f..2375e50 100644 --- a/quick-audio-embed.php +++ b/quick-audio-embed.php @@ -96,6 +96,17 @@ class QuickAudioEmbed { function _the_content_callback($matches) { $dimensions = explode('x', $this->settings['dimensions']); + if (preg_match('#rel="(?P[^\"]+)"#', $matches[0], $rel_match) > 0) { + foreach (explode(',', $rel_match['rel']) as $part) { + $values = explode('=', $part); + $key = array_shift($values); + $values = implode('=', $values); + switch ($key) { + case 'noembed': + } + } + } + return sprintf('