コード例 #1
0
ファイル: shutterfly.php プロジェクト: Imagenomad/Unsupported
<?php

/**
 * shutterfly -- Supports using Shutterfly for printing images from a gallery.
 * 
 * @author Darrell Dudics (GameDudeX) adapted as a plugin by Stephen Billard (sbillard)
 * @version 1.0.1
 * @package plugins 
 */
$plugin_description = gettext("Adds a link to allow requesting a single image print through Shutterfly.");
$plugin_author = gettext("Darrell Dudics (GameDudeX) adapted as a plugin by Stephen Billard (sbillard)");
$plugin_version = '1.0.1';
$plugin_URL = "http://www.zenphoto.org/documentation/plugins/_plugins---shutterfly.php.html";
// register the scripts needed
addPluginScript('<link rel="stylesheet" href="' . FULLWEBPATH . "/" . ZENFOLDER . PLUGIN_FOLDER . 'shutterfly/shutterfly.css" type="text/css" />');
/**
 * Prints the Shutterfly logo and links to print an image.
 *
 */
function printShutterfly()
{
    echo '<script type="text/javascript">' . "\n";
    echo '<!--/* Code from http://www.netlobo.com/div_hiding.html */-->' . "\n";
    echo '	function toggleLayer(whichLayer) {' . "\n";
    echo '		if (document.getElementById) {' . "\n";
    echo '// this is the way the standards work' . "\n";
    echo '			var style2 = document.getElementById(whichLayer).style;' . "\n";
    echo '			style2.display = style2.display? "":"block";' . "\n";
    echo '		} else if (document.all) {' . "\n";
    echo '// this is the way old msie versions work' . "\n";
    echo '			var style2 = document.all[whichLayer].style;' . "\n";
コード例 #2
0
 *   
 * Price lists can also be passed as a parameter to the zenPaypal() function. See also 
 * zenPaypalPricelistFromString() for parsing a string into the pricelist array. This could be used, 
 * for instance, by storing a pricelist string in the 'customdata' field of your images and then parsing and 
 * passing it in the zenPaypal() call. This would give you individual pricing by image.
 * 
 * @author Ebrahim Ezzy (Nimbuz) adapted as a plugin by Stephen Billard (sbillard)
 * @version 1.0.1
 * @package plugins 
 */
$plugin_description = "<a href =\"http://blog.qelix.com/2008/04/07/paypal-integraion-for-zenphoto-zenpaypal/\">" . "zenPayPal</a> -- " . gettext("Paypal Integration for Zenphoto.");
$plugin_author = gettext('Ebrahim Ezzy (Nimbuz) adapted as a plugin by Stephen Billard (sbillard)');
$plugin_version = '1.0.1';
$plugin_URL = "http://www.zenphoto.org/documentation/plugins/_plugins---zenPaypal.php.html";
$option_interface = new zenPaypalOptions();
addPluginScript('<link rel="stylesheet" href="' . FULLWEBPATH . "/" . ZENFOLDER . '/plugins/zenPaypal/zenPaypal.css" type="text/css" />');
/**
 * Plugin option handling class
 *
 */
class zenPaypalOptions
{
    function zenPaypalOptions()
    {
        $pricelist = array("4x6:" . gettext("Matte") => '5.75', "4x6:" . gettext("Glossy") => '10.00', "4x6:" . gettext("Paper") => '8.45', "8x10:" . gettext("Matte") => '15.00', "8x10:" . gettext("Glossy") => '20.00', "8x10:" . gettext("Paper") => '8.60', "11x14:" . gettext("Matte") => '25.65', "11x14:" . gettext("Glossy") => '26.75', "11x14:" . gettext("Paper") => '15.35');
        setOptionDefault('zenPaypal_userid', "");
        $pricelistoption = '';
        foreach ($pricelist as $item => $price) {
            $pricelistoption .= $item . '=' . $price . ' ';
        }
        setOptionDefault('zenPaypal_pricelist', $pricelistoption);
コード例 #3
0
/**
* Sets Google Checkout to Post to the Google Checkout Sandbox for configuraiton testing
*
*/
function googleCheckoutTesting()
{
    addPluginScript('<script type="text/javascript" src="' . FULLWEBPATH . "/" . ZENFOLDER . PLUGIN_FOLDER . 'GoogleCheckout/GoogleCartPostToSandBox.js"></script>');
}
コード例 #4
0
 * @package plugins
 */
$plugin_description = ($external = getOption('album_folder_class') === 'external') ? gettext('<strong>Flash players do not support <em>External Albums</em>!</strong>') : gettext("Enable <strong>FLV</strong> player to handle multimedia files. IMPORTANT: Only one multimedia player plugin can be enabled at the time.<br> <strong>NOTE: You need to buy a licence from the player's developer LongTail Video if you intend to use this plugin for commercial purposes.</strong> Please see <a href='http://www.longtailvideo.com/players/jw-flv-player/'>LongTail Video - JW players</a> for more info about the player and its licence.");
$plugin_author = "Malte Müller (acrylian), Stephen Billard (sbillard)";
$plugin_version = '1.0.3';
$plugin_URL = "http://www.zenphoto.org/documentation/plugins/_plugins---flvplayer.php.html";
$plugin_disable = $external;
$option_interface = new flvplayer();
$_zp_flash_player = $option_interface;
// claim to be the flash player.
if ($external) {
    return;
}
// can't process external album images
// register the scripts needed
addPluginScript('<script type="text/javascript" src="' . WEBPATH . '/' . ZENFOLDER . '/plugins/flvplayer/flvplayer.js"></script>');
define('FLV_PLAYER_MP3_HEIGHT', 20);
/**
 * Plugin option handling class
 *
 */
class flvplayer
{
    function flvplayer()
    {
        setOptionDefault('flv_player_width', '320');
        setOptionDefault('flv_player_height', '240');
        setOptionDefault('flv_player_backcolor', '0xFFFFFF');
        setOptionDefault('flv_player_frontcolor', '0x000000');
        setOptionDefault('flv_player_lightcolor', '0x000000');
        setOptionDefault('flv_player_screencolor', '0x000000');
コード例 #5
0
 * @version 1.3.0
 *
 * @package plugins
 */
$plugin_description = gettext("Support for providing Google Maps based on EXIF latitude and longitude in the images.");
$plugin_author = 'Dustin Brewer (mankind), Stephen Billard (sbillard), Eric Bayard (babar)';
$plugin_version = '1.3';
$plugin_URL = "";
$option_interface = new google_mapsOptions();
$mapkey = getOption('gmaps_apikey');
if (isset($_zp_gallery_page) && $_zp_gallery_page != 'index.php' && !empty($mapkey)) {
    // NOTE: This is copied from the printGoogleJS function in the phoogle class.
    //       If you update the phoogle class be sure this has not changed.
    addPluginScript('<script src="http://maps.google.com/maps?file=api&v=2&key=' . $mapkey . '" type="text/javascript"></script>');
    addPluginScript('<script type="text/javascript" src="' . WEBPATH . '/' . ZENFOLDER . PLUGIN_FOLDER . 'google_maps/gmaps.js"></script>');
    addPluginScript('<script type="text/javascript">var map;</script>');
}
/**
 * Plugin option handling class
 *
 */
class google_mapsOptions
{
    function google_mapsOptions()
    {
        /* put any setup code needed here */
        setOptionDefault('gmaps_apikey', '');
        setOptionDefault('gmaps_show_all_album_points', 0);
        setOptionDefault('gmaps_width', 595);
        setOptionDefault('gmaps_height', 300);
        setOptionDefault('gmaps_maptype_P', 0);
コード例 #6
0
<?php

/**
 * tag suggest plugin draft based on Remy Sharp's jQuery Tag Suggestion plugin
 * Just activate the plugin and the feature is available on the theme's search field.
 *
 * @author Malte Müller (acrylian), Stephen Billard (sbillard) - an adaption of Remy Sharp's <a href='http://remysharp.com/2007/12/28/jquery-tag-suggestion/ '>jQuery Tag Suggestion</a>
 * @version 1.0.0
 * @package plugins
 */
$plugin_description = gettext("Enables jQuery tag suggestions on the search field. Just activate the plugin and the feature is available on the theme's search field.");
$plugin_author = "Malte Müller (acrylian), Stephen Billard (sbillard) — " . gettext("an adaption of Remy Sharp's <a href='http://remysharp.com/2007/12/28/jquery-tag-suggestion/ '>jQuery Tag Suggestion</a>");
$plugin_version = '1.0.0';
$plugin_URL = "http://www.zenphoto.org/documentation/plugins/_plugins---tag_suggest.php.html";
// register the scripts needed
addPluginScript('<script type="text/javascript" src="' . WEBPATH . '/' . ZENFOLDER . '/js/tag.js"></script>');
addPluginScript('<link type="text/css" rel="stylesheet" href="' . WEBPATH . '/' . ZENFOLDER . '/plugins/tag_suggest/tag.css" />');
$taglist = getAllTagsUnique();
$c = 0;
$list = '';
foreach ($taglist as $tag) {
    if ($c > 0) {
        $list .= ',';
    }
    $c++;
    $list .= '"' . htmlspecialchars(htmlspecialchars_decode($tag), ENT_QUOTES) . '"';
}
$js = '<script type="text/javascript">' . '$(function () {' . "\$('#search_input').tagSuggest({" . 'tags: [' . $list . ']' . '});' . '});' . '</script>';
addPluginScript($js);
コード例 #7
0
ファイル: flowplayer.php プロジェクト: Imagenomad/Unsupported
 * @author Malte Müller (acrylian), Stephen Billard (sbillard)
 * @package plugins 
 */
$plugin_description = ($external = getOption('album_folder_class') === 'external') ? gettext('<strong>Flash players do not support <em>External Albums</em>!</strong>') : gettext("Enable <strong>flowplayer</strong> to handle multimedia files. IMPORTANT: Only one multimedia player plugin can be enabled at the time. <br> <strong>NOTE:</strong> This plugin currently still uses Flowplayer 2. Please see <a href='http://flowplayer.org/v2'>flowplayer.org/v2</a> for more info about the player and its licence.");
$plugin_author = "Malte Müller (acrylian), Stephen Billard (sbillard)";
$plugin_version = '1.2.6';
$plugin_URL = "http://www.zenphoto.org/documentation/plugins/_plugins---flowplayer.php.html";
$plugin_disable = $external;
$option_interface = new flowplayer();
$_zp_flash_player = $option_interface;
// claim to be the flash player.
if ($external) {
    setOption('zp_plugin_flowplayer', 0);
} else {
    // register the scripts needed
    addPluginScript('<script type="text/javascript" src="' . WEBPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/flowplayer/flashembed-0.34.pack.js"></script>');
}
if (!defined('FLOW_PLAYER_MP3_HEIGHT')) {
    define('FLOW_PLAYER_MP3_HEIGHT', 28);
}
/**
 * Plugin option handling class
 *
 */
class flowplayer
{
    function flowplayer()
    {
        setOptionDefault('flow_player_width', '320');
        setOptionDefault('flow_player_height', '240');
        setOptionDefault('flow_player_controlbarbackgroundcolor', '0x567890');
コード例 #8
0
ファイル: flvplayer.php プロジェクト: Imagenomad/Unsupported
$plugin_description = sprintf(gettext('Enable <strong>FLV player 4.x</strong> to handle multimedia files.') . '<p class="notebox">' . gettext('<strong>No <em>FLVPlayer</em> player files are included with this plugin due to licensing considerations.</strong> Please download these files from the <a href="http://www.longtailvideo.com/players/jw-flv-player/">Longtail Video</a> site. Extract the files "player*.swf" and "swobjects.js" into <code>/%s/flvplayer/</code>. <br /><strong>IMPORTANT:</strong> Only one multimedia player plugin can be enabled at the time. The class-video plugin must be enabled.') . '</p>', USER_PLUGIN_FOLDER);
$plugin_author = "Malte Müller (acrylian), Stephen Billard (sbillard)";
$plugin_version = '1.3.1';
$plugin_disable = getOption('album_folder_class') === 'external' ? gettext('Flash players do not support <em>External Albums</em>.') : false;
if ($plugin_disable) {
    setOption('zp_plugin_flvplayer', 0);
} else {
    $option_interface = new flvplayer();
    $_zp_flash_player = $option_interface;
    // claim to be the flash player.
    if (version_compare(ZENPHOTO_VERSION, '1.3.2') < 0) {
        ob_start();
        flvplayerJS();
        $str = ob_get_contents();
        ob_end_clean();
        addPluginScript($str);
    } else {
        zp_register_filter('theme_head', 'flvplayerJS');
    }
}
function flvplayerJS()
{
    ?>
	<script type="text/javascript" src="<?php 
    echo WEBPATH . '/' . USER_PLUGIN_FOLDER;
    ?>
/flvplayer/swfobject.js"></script>
	<?php 
}
define('FLV_PLAYER_MP3_HEIGHT', 20);
// load the script needed