Exemplo n.º 1
0
 */
$plugin_is_filter = defaultExtension(5 | CLASS_PLUGIN);
$plugin_description = gettext("This plugin handles <code>flv</code>, <code>fla</code>, <code>mp3</code>, <code>mp4</code>, <code>m4v</code>, and <code>m4a</code> multi-media files.");
gettext("Please see <a href='http://jplayer.org'>jplayer.org</a> for more info about the player and its license.");
$plugin_author = "Malte Müller (acrylian)";
$plugin_disable = zpFunctions::pluginDisable(array(array(!extensionEnabled('class-video'), gettext('This plugin requires the <em>class-video</em> plugin')), array(!extensionEnabled('jplayer') && class_exists('Video') && Video::multimediaExtension() != 'pseudoPlayer', sprintf(gettext('jPlayer not enabled, %s is already instantiated.'), class_exists('Video') ? Video::multimediaExtension() : false)), array(getOption('album_folder_class') === 'external', gettext('This player does not support <em>External Albums</em>.'))));
$option_interface = 'jplayer_options';
if ($plugin_disable) {
    enableExtension('jplayer', 0);
} else {
    Gallery::addImageHandler('flv', 'Video');
    Gallery::addImageHandler('fla', 'Video');
    Gallery::addImageHandler('mp3', 'Video');
    Gallery::addImageHandler('mp4', 'Video');
    Gallery::addImageHandler('m4v', 'Video');
    Gallery::addImageHandler('m4a', 'Video');
    zp_register_filter('content_macro', 'jPlayer::macro');
}
class jplayer_options
{
    public $name = 'jPlayer';
    function __construct()
    {
        if (OFFSET_PATH == 2) {
            setOptionDefault('jplayer_autoplay', '');
            setOptionDefault('jplayer_poster', 1);
            setOptionDefault('jplayer_postercrop', 1);
            setOptionDefault('jplayer_showtitle', '');
            setOptionDefault('jplayer_playlist', '');
            setOptionDefault('jplayer_playlist_numbered', 1);
            setOptionDefault('jplayer_playlist_playtime', 0);
Exemplo n.º 2
0
 * image, it will be used. Otherwise [for this object implementation] we will use a thumbnail image provided with the plugin.
 * 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)
 *
 * @package plugins
 * @subpackage media
 *
 */
$plugin_is_filter = 990 | CLASS_PLUGIN;
$plugin_description = gettext('Provides a means for showing text type documents (.txt, .html, .htm).');
$plugin_author = "Stephen Billard (sbillard)";
Gallery::addImageHandler('htm', 'TextObject');
Gallery::addImageHandler('html', 'TextObject');
Gallery::addImageHandler('txt', 'TextObject');
$option_interface = 'textObject_Options';
/**
 * Option class for textobjects objects
 *
 */
class TextObject_Options
{
    /**
     * Standard option interface
     *
     * @return array
     */
    function getOptionsSupported()
    {
        return array(gettext('Watermark default images') => array('key' => 'textobject_watermark_default_images', 'type' => OPTION_TYPE_CHECKBOX, 'desc' => gettext('Check to place watermark image on default thumbnail images.')));
Exemplo n.º 3
0
/**
 * @deprecated
 * @since 1.4.6
 *
 */
function addPluginType($suffix, $objectName)
{
    deprecated_functions::notify(gettext("use Gallery::addImageHandler()"));
    return Gallery::addImageHandler($suffix, $objectName);
}
Exemplo n.º 4
0
 *
 */
$plugin_is_filter = 990 | CLASS_PLUGIN;
$plugin_description = gettext('Provides a means for showing documents using <em>WEBdocs</em> for the document rendering.');
$plugin_author = "Stephen Billard (sbillard)";
$option_interface = 'WEBdocs_Options';
if (getOption('WEBdocs_pdf_provider')) {
    Gallery::addImageHandler('pdf', 'WEBdocs');
}
if (getOption('WEBdocs_pps_provider')) {
    Gallery::addImageHandler('pps', 'WEBdocs');
    Gallery::addImageHandler('ppt', 'WEBdocs');
}
if (getOption('WEBdocs_tif_provider')) {
    Gallery::addImageHandler('tif', 'WEBdocs');
    Gallery::addImageHandler('tiff', 'WEBdocs');
}
/**
 * Option class for textobjects objects
 *
 */
class WEBdocs_Options
{
    function __construct()
    {
        if (OFFSET_PATH == 2) {
            setOptionDefault('WEBdocs_pdf_provider', 'local');
            setOptionDefault('WEBdocs_pps_provider', 'google');
            setOptionDefault('WEBdocs_tif_provider', 'zoho');
        }
    }
Exemplo n.º 5
0
 * Default thumbnail images may be created in the <var>%USER_PLUGIN_FOLDER%/class-AnyFile</var> folder. The naming convention is
 * <i>suffix</i><var>Default.png</var>. If no such file is found, the class object default thumbnail will be used.
 *
 * The plugin is an extension of <var>TextObject</var>. For more details see the <i>class-textobject</i> plugin.
 *
 * @author Stephen Billard (sbillard)
 *
 * @package plugins
 * @subpackage media
 *
 */
$plugin_is_filter = 990 | CLASS_PLUGIN;
$plugin_description = gettext('Provides a means for handling arbitrary file types. (No rendering provided!)');
$plugin_author = "Stephen Billard (sbillard)";
foreach (get_AnyFile_suffixes() as $suffix) {
    Gallery::addImageHandler($suffix, 'AnyFile');
}
$option_interface = 'AnyFile_Options';
/**
 * Option class for textobjects objects
 *
 */
class AnyFile_Options
{
    /**
     * Standard option interface
     *
     * @return array
     */
    function getOptionsSupported()
    {