本文整理汇总了PHP中Gallery::addImageHandler方法的典型用法代码示例。如果您正苦于以下问题:PHP Gallery::addImageHandler方法的具体用法?PHP Gallery::addImageHandler怎么用?PHP Gallery::addImageHandler使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gallery
的用法示例。
在下文中一共展示了Gallery::addImageHandler方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defaultExtension
*/
$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);
示例2: gettext
* 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.')));
示例3: addPluginType
/**
* @deprecated
* @since 1.4.6
*
*/
function addPluginType($suffix, $objectName)
{
deprecated_functions::notify(gettext("use Gallery::addImageHandler()"));
return Gallery::addImageHandler($suffix, $objectName);
}
示例4: gettext
*
*/
$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');
}
}
示例5: gettext
* 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()
{