* [MEDIAPLAYER <albumname> <imagefilename> <number>] * * Example: * [MEDIAPLAYER album1 video.mp4] * * If you are using more than one player on a page you need to pass a 3rd parameter with for example an unique number:<br> * [MEDIAPLAYER album1 video1.mp4 <var>1</var>]<br> * [MEDIAPLAYER album2 video2.mp4 <var>2</var>] * * <b>NOTE:</b> This player does not support external albums! * * @author Malte Müller (acrylian) * @package plugins * @subpackage media */ $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');
/** * Provide javaScript tag "suggestions" * Based on Remy Sharp's {@link http://remysharp.com/2007/12/28/jquery-tag-suggestion/ jQuery Tag Suggestion} * plugin as modified for ZenPhoto20 to enhance performance. * * This plugin provides suggestions for tag fields such as the search form. It is * automatically enabled for administration fields. The plugin must be enabled for * the suggestions to appear on theme pages. * * Copyright 2015 by Stephen L Billard for use in {@link https://github.com/ZenPhoto20/ZenPhoto20 ZenPhoto20} * * @author Stephen Billard (sbillard) * @package plugins * @subpackage theme */ $plugin_is_filter = defaultExtension(9 | THEME_PLUGIN); $plugin_description = gettext("Enables jQuery tag suggestions on the search field."); $plugin_author = "Stephen Billard"; $option_interface = 'tag_suggest'; zp_register_filter('theme_head', 'tag_suggest::JS'); zp_register_filter('admin_head', 'tag_suggest::JS'); class tag_suggest { function __construct() { if (OFFSET_PATH == 2) { setOptionDefault('tag_suggest_threshold', 1); } } function getOptionsSupported() {
* <img src="%WEBPATH%/%ZENFOLDER%/%PLUGIN_FOLDER%/elFInder/elfinder-logo.png" /> * "<i>elFinder</i> is a file manager for web similar to that you use on your computer. Written in JavaScript * using jQuery UI, it just work's in any modern browser. Its creation is inspired by simplicity and * convenience of Finder.app program used in Mac OS X." * * elFinder uses UNIX command line utils <var>zip</var>, <var>unzip</var>, <var>rar</var>, <var>unrar</var>, <var>tar</var>, * <var>gzip</var>, <var>bzip2</var>, and <var>7za</var> for archives support, * on windows you need to have full {@link http://www.cygwin.com/ cygwin} support in your webserver environment. * * * @author Stephen Billard (sbillard) * * @package plugins * @subpackage admin */ $plugin_is_filter = defaultExtension(5 | ADMIN_PLUGIN); $plugin_description = gettext('Provides file handling for the <code>upload/files</code> tab and the <em>TinyMCE</em> file browser.'); $plugin_author = "Stephen Billard (sbillard)"; $option_interface = 'elFinder_options'; /** * Option handler class * */ class elFinder_options { /** * class instantiation function * */ function __construct() {
* * <b>NOTE:</b> The website must be visited and live pages must be served for this * plugin to be able to check if it is time to run. * * Inacative or heavily cached sites may not get backed up as frequently as the * interval specifies. Of course, if there is no dynamic activity on the site, * there probably is little need to do the backup in the first place. * * Backups are run under the master administrator authority. * * @author Stephen Billard (sbillard) * * @package plugins * @subpackage admin */ $plugin_is_filter = defaultExtension(2 | ADMIN_PLUGIN | THEME_PLUGIN); $plugin_description = gettext("Periodically backup the database."); $plugin_author = "Stephen Billard (sbillard)"; $option_interface = 'auto_backup'; if (OFFSET_PATH == 2) { setOption('last_backup_run', 0); // for sure things have changed } else { if (getOption('last_backup_run') + getOption('backup_interval') * 86400 < time()) { // register if it is time for a backup require_once dirname(dirname(__FILE__)) . '/admin-functions.php'; zp_register_filter('admin_head', 'auto_backup::timer_handler'); zp_register_filter('theme_head', 'auto_backup::timer_handler'); $_backupMutex = new zpMutex('bK'); } }
* Prints an e-mail contact form that uses internal validation functions for <i>e-mail</i> and <i>URL</i>. * <i>Name</i>, <i>e-mail address</i>, <i>subject</i> and <i>message</i> are required fields by default. * You need to set a custom mail address to be used for the messages destination. * * Support is included for <i>CAPTCHA</i> and for confirmation before the message is sent. No other spam filter support is provided. * Your mail client will provide filtering on receipt of the message. * * The contact form itself is a separate file and located within <var>%ZENFOLDER%/%PLUGIN_FOLDER%/contact_form/form.php</var>. Place a customized * version of the form in a similar folder in your theme if you wish something different from the standard form. * * @author Malte Müller (acrylian), Stephen Billard (sbillard) * * @package plugins * @subpackage theme */ $plugin_is_filter = defaultExtension(5 | FEATURE_PLUGIN); $plugin_description = gettext("Prints an e-mail contact so that visitors may e-mail the site administrator."); $plugin_author = "Malte Müller (acrylian), Stephen Billard (sbillard)"; $option_interface = 'contactformOptions'; $_zp_conf_vars['special_pages']['contact'] = array('define' => '_CONTACT_', 'rewrite' => getOption('contactform_rewrite'), 'option' => 'contactform_rewrite', 'default' => '_PAGE_/contact'); $_zp_conf_vars['special_pages'][] = array('definition' => '%CONTACT%', 'rewrite' => '_CONTACT_'); $_zp_conf_vars['special_pages'][] = array('define' => false, 'rewrite' => '%CONTACT%', 'rule' => '^%REWRITE%/*$ index.php?p=contact [L,QSA]'); /** * Plugin option handling class * */ class contactformOptions { function __construct() { global $_zp_authority;
* versions of these files, so if a change is made to the distributed versions of the files you will have to update * your copies either by removing them before running setup or by manually applying the distributed file changes to your * files.) * * * The plugin works best if <var>mod_rewrite</var> is active and the <var>.htaccess</var> file exists. If this is not the case * the plugin will still work in most cases. However if you the release you are upgrading to has significant changes involving * plugin loading of the front-end site there may be PHP failures due if the site is accessed while the files * being uploaded are in a mixed release state. * * @author Stephen Billard (sbillard) * * @package plugins * @subpackage admin */ $plugin_is_filter = defaultExtension(1000 | ADMIN_PLUGIN | FEATURE_PLUGIN); $plugin_description = gettext('Utility to divert access to the gallery to a screen saying the site is upgrading.'); $plugin_author = "Stephen Billard (sbillard)"; $plugin_notice = MOD_REWRITE ? false : gettext('<em>mod_rewrite</em> is not enabled. This plugin may not work without rewrite redirection if the upgrade is significantly different than the running release.'); if (OFFSET_PATH) { $_site_filelist = array('closed.htm' => '+', 'closed.php' => '*', 'rss-closed.xml' => 'RSS', 'externalFeed-closed.xml' => 'externalFeed'); } switch (OFFSET_PATH) { case 0: function site_upgrade_notice($html) { ?> <div style="width: 100%; position: fixed; top: 0px; left: 0px; z-index: 1000;" > <p style="text-align: center;"> <strong style="background-color: #FFEFB7; color:black; padding: 5px;"> <?php