more setup

This commit is contained in:
John Bintz 2009-11-29 12:47:07 -05:00
parent e0e81f553f
commit 090c43691f
5 changed files with 41 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.settings/
.buildpath
.project
coverage

6
phpunit.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
<php>
<ini name="error_reporting" value="30719" />
</php>
</phpunit>

View File

@ -96,6 +96,17 @@ class QuickAudioEmbed {
function _the_content_callback($matches) {
$dimensions = explode('x', $this->settings['dimensions']);
if (preg_match('#rel="(?P<rel>[^\"]+)"#', $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('
<embed type="application/x-shockwave-flash"
src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=%s"

14
readme.txt Normal file
View File

@ -0,0 +1,14 @@
=== Quick Audio Embed ===
Contributors: johncoswell
Tags: audio, embed, mp3
Requires at least: 2.9
Tested up to: 2.9
Stable tag: 0.1
Donate link: http://www.coswellproductions.com/wordpress/wordpress-plugins/
Quick Audio Embed is a WordPress plugin that quickly turns any link to an MP3 file into an embedded MP3 player.
== Description ==
Uploaded an MP3 file and want to quickly wrap it in a player? Quick Audio Embed uses the Google Reader MP3 player
to automatically wrap all linked-to MP3 files in an embedded media player.

View File

@ -0,0 +1,9 @@
<?php
require_once('PHPUnit/Framework.php');
require_once('MockPress/mockpress.php');
require_once(dirname(__FILE__) . '/../quick-audio-embed.php');
class QuickAudioEmbedTest extends PHPUnit_Framework_TestCase {
function setUp() { _reset_wp(); }
}