*Video Class * @package classes */ // force UTF-8 Ø $plugin_description = ($disable = ZENPHOTO_RELEASE < 3112) ? gettext('class-image is not compatible with this zenphoto release.') : gettext('Video and MP3/4 handling for Zenphoto.'); $plugin_author = "Stephen Billard (sbillard)"; $plugin_version = '1.0.0'; $plugin_disable = $disable; if ($plugin_disable) { return; } addPluginType('flv', 'Video'); addPluginType('3gp', 'Video'); addPluginType('mov', 'Video'); addPluginType('mp3', 'Video'); addPluginType('mp4', 'Video'); define('DEFAULT_MOV_HEIGHT', 496); define('DEFAULT_MOV_WIDTH', 640); define('DEFAULT_3GP_HEIGHT', 304); define('DEFAULT_3GP_WIDTH', 352); class Video extends _Image { /** * Constructor for class-video * * @param object &$album the owning album * @param sting $filename the filename of the image * @return Image */ function Video(&$album, $filename) {
* The particular form of the file name used when there is no thumb stand-in image allows zenphoto to choose an image in the * plugin folder. * * @author Stephen Billard (sbillard) * @version 1.0.0 * @package plugins * * */ $plugin_description = ($disable = ZENPHOTO_RELEASE < 2492) ? gettext('class-textobject requires Zenphoto v 1.2.1 or greater.') : gettext('Provides a means for showing text where zenphoto would normally display images. For documentation, see the script file.'); $plugin_author = "Stephen Billard (sbillard)"; $plugin_version = '1.0.0'; $plugin_disable = $disable; if ($plugin_disable) { return; } addPluginType('txt', 'TextObject'); class TextObject extends _Image { /** * creates a textobject (image standin) * * @param object $album the owner album * @param string $filename the filename of the text file * @return TextObject */ function TextObject($album, $filename) { // $album is an Album object; it should already be created. if (!is_object($album)) { return NULL; }
* */ $plugin_is_filter = 9 | CLASS_PLUGIN; $plugin_description = gettext('Provides a means for showing .pdf, .pps documents using WEBdocs for the document rendering'); $plugin_author = "Stephen Billard (sbillard)"; $plugin_version = '1.4.1'; $option_interface = 'WEBdocs_Options'; if (getOption('WEBdocs_pdf_provider')) { addPluginType('pdf', 'WEBdocs'); } if (getOption('WEBdocs_pps_provider')) { addPluginType('pps', 'WEBdocs'); } if (getOption('WEBdocs_tif_provider')) { addPluginType('tif', 'WEBdocs'); addPluginType('tiff', 'WEBdocs'); } /** * Option class for textobjects objects * */ class WEBdocs_Options { function WEBdocs_Options() { setOptionDefault('WEBdocs_pdf_provider', 'local'); setOptionDefault('WEBdocs_pps_provider', 'google'); setOptionDefault('WEBdocs_tif_provider', 'zoho'); } /** * Standard option interface
# audio addPluginType('ogg','HTML5Media'); addPluginType('oga','HTML5Media'); addPluginType('mp3','HTML5Media'); addPluginType('m4a','HTML5Media'); addPluginType('wma','HTML5Media'); # video addPluginType('ogv','HTML5Media'); addPluginType('mp4','HTML5Media'); addPluginType('m4v','HTML5Media'); addPluginType('mov','HTML5Media'); addPluginType('3gp','HTML5Media'); addPluginType('flv','HTML5Media'); addPluginType('mpg','HTML5Media'); addPluginType('avi','HTML5Media'); addPluginType('wmv','HTML5Media'); class HTML5Media extends _Image { /* corresponding to HTML5 tags and their file extensions. * yes, I'm way over-doing it in terms of what browser actually support. * a blanked out <video> tag is not the end of the world, however. */ public $mediaTypes = array( 'audio' => array('ogg','oga','mp3','m4a','wma'), 'video' => array('ogv','mp4','m4v','mov','3gp','flv','mpg','avi','wmv') ); /** * @param object $album the owner album * @param string $filename the filename of the media file
$plugin_notice = gettext("<strong>IMPORTANT</strong>: Only one multimedia player plugin can be enabled at the time and the class-video plugin must be enabled, too.") . gettext('The former separate flowplayer3_playlist plugin is now incorporated. You can use it to show the content of an multimedia album only as a playlist or as separate players on one page with Flowplayer 3') . '<br /><br />' . gettext("Please see <a href='http://flowplayer.org'>flowplayer.org</a> for more info about the player and its license."); $plugin_author = "Malte Müller (acrylian), Stephen Billard (sbillard)"; $plugin_disable = getOption('album_folder_class') === 'external' ? gettext('Flash players do not support <em>External Albums</em>.') : false; $option_interface = 'flowplayer3_options'; if (isset($_zp_flash_player) || $plugin_disable) { setOption('zp_plugin_flowplayer3', 0); if (isset($_zp_flash_player)) { trigger_error(sprintf(gettext('Flowplayer3 not enabled, %s is already instantiated.'), get_class($_zp_flash_player)), E_USER_NOTICE); } } else { addPluginType('flv', 'Video'); addPluginType('fla', 'Video'); addPluginType('mp3', 'Video'); addPluginType('mp4', 'Video'); addPluginType('m4v', 'Video'); addPluginType('m4a', 'Video'); $_zp_flash_player = new Flowplayer3(); // claim to be the flash player. zp_register_filter('theme_head', 'flowplayerJS'); if (getOption('flow_player3_loadplaylist')) { zp_register_filter('theme_head', 'flowplayer_playlistJS'); } } function flowplayerJS() { $curdir = getcwd(); chdir(SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/flowplayer3'); $filelist = safe_glob('flowplayer-*.min.js'); $player = array_shift($filelist); $filelist = safe_glob('flowplayer.playlist-*.min.js'); $playlist = array_shift($filelist);
* Plugin handler for arbitray files. * Only thumbnails are displayed. * * Default thumbnail images may be created in the "plugins/class-AnyFile" folder. The naming convention is * "<suffix>Default.png". If no such file is found, the class object default thumbnail will be used. * * @author Stephen Billard (sbillard) * @package plugins * */ $plugin_is_filter = 9 | CLASS_PLUGIN; $plugin_description = gettext('Provides a means for handling arbitrary file types. (No rendering provided!)'); $plugin_author = "Stephen Billard (sbillard)"; $plugin_version = '1.4.1'; foreach (get_AnyFile_suffixes() as $suffix) { addPluginType($suffix, 'AnyFile'); } $option_interface = 'AnyFile_Options'; /** * Option class for textobjects objects * */ class AnyFile_Options { /** * Standard option interface * * @return array */ function getOptionsSupported() {