Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c50cc5
commit 043add6
Showing
4 changed files
with
62 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/* | ||
Plugin Name: BuddyPress Media | ||
Plugin URI: http://rtcamp.com/buddypress-media/ | ||
Description: This plugin adds missing media rich features like photos, videos and audios uploading to BuddyPress which are essential if you are building social network, seriously! | ||
Version: 2.3.2 | ||
Author: rtCamp | ||
Author URI: http://rtcamp.com | ||
*/ | ||
|
||
if ( ! defined( 'BP_MEDIA_PATH' ) ) | ||
define( 'BP_MEDIA_PATH', plugin_dir_path( __FILE__ ) ); | ||
|
||
if ( ! defined( 'BP_MEDIA_URL' ) ) | ||
define( 'BP_MEDIA_URL', plugin_dir_url( __FILE__ ) ); | ||
|
||
function buddypress_media_autoloader( $class_name ) { | ||
$rtlibpath = array( | ||
'app/helper/' . $class_name . '.php', | ||
'app/admin/' . $class_name . '.php', | ||
'app/main/' . $class_name . '.php', | ||
'lib/rtlib/' . $class_name . '.php', | ||
); | ||
foreach ( $rtlibpath as $i => $path ) { | ||
if ( file_exists( $path ) ) { | ||
include $path; | ||
break; | ||
} | ||
} | ||
} | ||
|
||
spl_autoload_register('buddypress_media_autoloader'); | ||
|
||
global $bp_media, $bp_admin; | ||
$bp_admin = new BPMAdmin(); | ||
$bp_media = new BuddyPressMedia(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
bootstrap="tests/bootstrap.php" | ||
> | ||
<testsuites> | ||
<testsuite name="BuddyPress Media"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<phpunit | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
bootstrap="tests/bootstrap.php" | ||
> | ||
<testsuites> | ||
<testsuite name="BuddyPress Media"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |