• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zp_has_filter函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中zp_has_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP zp_has_filter函数的具体用法?PHP zp_has_filter怎么用?PHP zp_has_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了zp_has_filter函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getImageDate

    echo '<div class="c"><small class="box date">' . getImageDate('%d.%m.%y %H:%M') . '</small></div>';
}
?>
				</div>
			</div>
<?php 
include_once 'footer.php';
?>
		</div>
<?php 
include_once 'analytics.php';
?>

<?php 
zp_apply_filter('theme_body_close');
if (extensionEnabled('colorbox_js') && zp_has_filter('theme_head', 'colorbox::css')) {
    ?>
<script type="text/javascript">
$( document ).ready(function() {
	$(".fullimage").colorbox({
		maxWidth: "98%",
		maxHeight: "98%",
		rel: function() { return $(this).data('rel') },
		current: "{current}/{total}",
		photo: true,
		close: '<?php 
    echo gettext("close");
    ?>
'
	});
})
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例2: onePage

<?php

/**
 * Colorbox personality
 */
// initialization stuff
if (zp_has_filter('theme_head', 'colorbox::css')) {
    $handler = new ef_colorbox();
} else {
    require_once SERVERPATH . '/' . THEMEFOLDER . '/effervescence_plus/image_page/functions.php';
}
class ef_colorbox
{
    function __construct()
    {
    }
    function onePage()
    {
        return false;
    }
    function theme_head($_zp_themeroot)
    {
        ?>
		<script type="text/javascript">
			// <!-- <![CDATA[
			$(document).ready(function() {
				$("a.thickbox").colorbox({
					maxWidth: "98%",
					maxHeight: "98%",
					photo: true,
					close: '<?php 
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:functions.php


示例3: printThemeInfo

function printThemeInfo()
{
    list($personality, $themeColor) = getPersonality();
    if ($themeColor == 'effervescence') {
        $themeColor = '';
    }
    if ($personality == 'Image page') {
        $personality = '';
    } else {
        if ($personality == 'Simpleviewer' && !class_exists('simpleviewer') || $personality == 'Colorbox' && !zp_has_filter('admin_head', 'colorbox::css')) {
            $personality = "<strike>{$personality}</strike>";
        }
    }
    $personality = str_replace('_', ' ', $personality);
    if (empty($themeColor) && empty($personality)) {
        echo '<p><small>Effervescence</small></p>';
    } else {
        if (empty($themeColor)) {
            echo '<p><small>' . sprintf(gettext('Effervescence %s'), $personality) . '</small></p>';
        } else {
            if (empty($personality)) {
                echo '<p><small>' . sprintf(gettext('Effervescence %s'), $themeColor) . '</small></p>';
            } else {
                echo '<p><small>' . sprintf(gettext('Effervescence %1$s %2$s'), $themeColor, $personality) . '</small></p>';
            }
        }
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:28,代码来源:functions.php


示例4: printGoogleMap


//.........这里部分代码省略.........
				function toggle_<?php 
            echo $id_data;
            ?>
() {
					if ($('#<?php 
            echo $id_data;
            ?>
').hasClass('hidden_map')) {
						$('#<?php 
            echo $id_data;
            ?>
').removeClass('hidden_map');
					} else {
						$('#<?php 
            echo $id_data;
            ?>
').addClass('hidden_map');
					}
				}
				//]]>
			</script>
			<a id="<?php 
            echo $id_toggle;
            ?>
" href="javascript:toggle_<?php 
            echo $id_data;
            ?>
();" title="<?php 
            echo gettext('Display or hide the Google Map.');
            ?>
">
				<?php 
            echo $text;
            ?>
			</a>
			<div id="<?php 
            echo $id_data;
            ?>
" class="hidden_map">
				<?php 
            echo $map->output_html;
            ?>
			</div>
			<?php 
            break;
        case 'colorbox':
            if (zp_has_filter('theme_head', 'colorbox::css')) {
                $map->create_map();
                $map_data["output_js_contents"] = $map->output_js_contents;
                $map_data["output_html"] = $map->output_html;
                if (getOption('gmap_sessions')) {
                    $param = '';
                    $_SESSION['GoogleMapVars'] = $map_data;
                } else {
                    $serializedData = serialize($map_data);
                    if (function_exists('bzcompress')) {
                        $data = bzcompress($serializedData);
                    } else {
                        $data = gzcompress($serializedData);
                    }
                    $param = '?map_data=' . base64_encode($data);
                }
                ?>
				<a href="<?php 
                echo WEBPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/googleMap/map.php' . $param;
                ?>
" title="<?php 
                echo $text;
                ?>
" class="google_map">
					<?php 
                echo $text;
                ?>
				</a>
				<script type="text/javascript">
					//<![CDATA[
					$(document).ready(function () {
						$(".google_map").colorbox({
							iframe: true,
							innerWidth: '<?php 
                echo (int) (getOption('gmap_width') + 20);
                ?>
px',
							innerHeight: '<?php 
                echo (int) ($cbox_h = getOption('gmap_height') + 20);
                ?>
px',
							close: '<?php 
                echo gettext("close");
                ?>
'
						});
					});
					//]]>
				</script>
				<?php 
            }
            break;
    }
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:101,代码来源:googleMap.php


示例5: printImageMetadata

/**
 * Prints the Metadata data of the current image
 *
 * @param string $title title tag for the class
 * @param bool $toggle set to true to get a javascript toggle on the display of the data
 * @param string $id style class id
 * @param string $class style class
 * @author Ozh
 */
function printImageMetadata($title = NULL, $toggle = true, $id = 'imagemetadata', $class = null, $span = NULL)
{
    global $_zp_exifvars, $_zp_current_image;
    if (false === ($exif = getImageMetaData($_zp_current_image, true))) {
        return;
    }
    if (is_null($title)) {
        $title = gettext('Image Info');
    }
    if ($class) {
        $class = ' class="' . $class . '"';
    }
    if (!$span) {
        $span = 'exif_link';
    }
    $dataid = $id . '_data';
    if ($id) {
        $id = ' id="' . $id . '"';
    }
    $refh = $refa = $style = '';
    if ($toggle == 'colorbox' && zp_has_filter('theme_head', 'colorbox::css')) {
        $refh = '<a href="#" class="colorbox" title="' . $title . '">';
        $refa = '</a>';
        $style = ' style="display:none"';
    } else {
        if ($toggle) {
            $refh = '<a href="javascript:toggle(\'' . $dataid . '\');" title="' . $title . '">';
            $refa = '</a>';
            $style = ' style="display:none"';
        }
    }
    ?>
	<span id="<?php 
    echo $span;
    ?>
" class="metadata_title">
		<?php 
    echo $refh;
    echo $title;
    echo $refa;
    ?>
	</span>
	<div id="<?php 
    echo $dataid;
    ?>
"<?php 
    echo $style;
    ?>
>
		<div<?php 
    echo $id . $class;
    ?>
>
			<table>
				<?php 
    foreach ($exif as $field => $value) {
        $label = $_zp_exifvars[$field][2];
        echo "<tr><td class=\"label\">{$label}:</td><td class=\"value\">";
        switch ($_zp_exifvars[$field][6]) {
            case 'time':
                echo zpFormattedDate(DATE_FORMAT, strtotime($value));
                break;
            default:
                echo html_encode($value);
                break;
        }
        echo "</td></tr>\n";
    }
    ?>
			</table>
		</div>
	</div>
	<?php 
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:83,代码来源:template-functions.php


示例6: seoFriendlyJS

/**
 *
 * emit the javascript seojs() function
 */
function seoFriendlyJS()
{
    if (zp_has_filter('seoFriendly_js')) {
        echo zp_apply_filter('seoFriendly_js');
    } else {
        ?>
		function seoFriendlyJS(fname) {
		fname=fname.trim();
		fname=fname.replace(/\s+\.\s*/,'.');
		fname = fname.replace(/\s+/g, '-');
		fname = fname.replace(/[^a-zA-Z0-9_.-]/g, '-');
		fname = fname.replace(/--*/g, '-');
		return fname;
		}
		<?php 
    }
}
开发者ID:JoniWeiss,项目名称:JoniWebGirl,代码行数:21,代码来源:functions.php


示例7: gettext

<?php

/**
 * Provides the means to set an limit of the number of images that can be uploaded to an album in total.
 * Of course this is bypassed if using FTP upload or ZIP files!
 * If you want to limit the latter you need to use the quota_managment plugin additionally.
 * NOTE: The http browser single file upload is disabled if using this plugin!
 *
 * @author Malte Müller (acrylian)
 * @package plugins
 * @subpackage users
 */
$plugin_is_filter = 5 | ADMIN_PLUGIN;
$plugin_description = gettext("Limits the number of images that can be uploaded to an album via the Zenphoto upload.");
$plugin_author = "Malte Müller (acrylian)";
$plugin_disable = zp_has_filter('get_upload_header_text') && !getoption('zp_plugin_image_upload_limiter') ? sprintf(gettext('<a href="#%1$s"><code>%1$s</code></a> is already enabled.'), stripSuffix(get_filterScript('get_upload_header_text'))) : '';
$option_interface = 'uploadlimit';
if ($plugin_disable) {
    setOption('zp_plugin_image_upload_limiter', 0);
} else {
    zp_register_filter('upload_helper_js', 'uploadLimiterJS');
    zp_register_filter('get_upload_header_text', 'uploadLimiterHeaderMessage');
    zp_register_filter('upload_filetypes', 'limitUploadFiletypes');
    zp_register_filter('upload_handlers', 'limitUploadHandlers', 0);
}
/**
 * Option handler class
 *
 */
class uploadlimit
{
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image_upload_limiter.php


示例8: gettext

 * Because of the difficulty of policing quotas when ZIP files are uploaded this plugin
 * has an option to diable ZIP file upload.
 *
 * Since uploads via the <var>files</var> tab are like FTP uploads and are not assigned to the user, you should not assign <var>files</var> rights
 * to users with upload limits.
 *
 * @author Stephen Billard (sbillard)
 *
 * @package plugins
 * @subpackage users
 */
$plugin_is_filter = 5 | ADMIN_PLUGIN;
$plugin_description = gettext("Provides a quota management system to limit the sum of sizes of images a user uploads.");
$plugin_notice = gettext("<strong>Note:</strong> if FTP is used to upload images, manual user assignment is necessary. ZIP file upload is disabled by default as quotas are not applied to the files contained therein.");
$plugin_author = "Stephen Billard (sbillard)";
$plugin_disable = zp_has_filter('get_upload_header_text') && !extensionEnabled('quota_manager') ? sprintf(gettext('<a href="#%1$s"><code>%1$s</code></a> is already enabled.'), stripSuffix(get_filterScript('get_upload_header_text'))) : '';
$option_interface = 'quota_manager';
if ($plugin_disable) {
    enableExtension('quota_manager', 0);
} else {
    zp_register_filter('save_admin_custom_data', 'quota_manager::save_admin');
    zp_register_filter('edit_admin_custom_data', 'quota_manager::edit_admin');
    zp_register_filter('new_image', 'quota_manager::new_image');
    zp_register_filter('image_refresh', 'quota_manager::image_refresh');
    zp_register_filter('check_upload_quota', 'quota_manager::checkQuota');
    zp_register_filter('get_upload_limit', 'quota_manager::getUploadLimit');
    zp_register_filter('get_upload_header_text', 'quota_manager::get_header');
    zp_register_filter('upload_filetypes', 'quota_manager::upload_filetypes');
    zp_register_filter('upload_helper_js', 'quota_manager::upload_helper_js');
}
/**
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:quota_manager.php


示例9: zp_remove_filter

/**
 * Removes a function from a specified filter hook.
 *
 * This function removes a function attached to a specified filter hook. This
 * method can be used to remove default functions attached to a specific filter
 * hook and possibly replace them with a substitute.
 *
 * To be removed the $function_to_remove and $priority arguments must match
 * when the hook was added.
 *
 * global array $_zp_filters storage for all of the filters
 * @param string $hook The filter hook to which the function to be removed is hooked.
 * @param callback $function_to_remove The name of the function which should be removed.
 * @param int $priority optional. The priority of the function. If not supplied we will get it from zp_has_filter
 * @param int $accepted_args optional. The number of arguments the function accpets (default: 1).
 * @return boolean Whether the function was registered as a filter before it was removed.
 */
function zp_remove_filter($hook, $function_to_remove, $priority = NULL, $accepted_args = 1)
{
    global $_zp_filters;
    if (is_null($priority)) {
        $priority = zp_has_filter($hook, $function_to_remove);
    }
    $function_to_remove = zp_filter_unique_id($hook, $function_to_remove, $priority);
    $remove = isset($_zp_filters[$hook][$priority][$function_to_remove]);
    if ($remove) {
        unset($_zp_filters[$hook][$priority][$function_to_remove]);
        if (empty($_zp_filters[$hook][$priority])) {
            unset($_zp_filters[$hook][$priority]);
        }
        if (empty($_zp_filters[$hook])) {
            unset($_zp_filters[$hook]);
        }
        if (DEBUG_FILTERS) {
            debugLog($function_to_remove . ' removed from ' . $hook);
        }
    }
    return $remove;
}
开发者ID:rb26,项目名称:zenphoto,代码行数:39,代码来源:functions-filter.php


示例10: addPluginScript

/**
 * @deprecated
 * @since 1.4.0
 */
function addPluginScript($script)
{
    deprecated_functions::notify(gettext('Register a “theme_head” filter.'));
    global $_zp_plugin_scripts;
    $_zp_plugin_scripts[] = $script;
    if (!zp_has_filter('theme_head', 'deprecated_functions::addPluginScript()')) {
        zp_register_filter('theme_head', 'deprecated_functions::addPluginScript()');
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:13,代码来源:deprecated-functions.php


示例11: printUserLogin_out

/**
 * Prints the logout link if the user is logged in.
 * This is for album passwords only, not admin users;
 *
 * @param string $before before text
 * @param string $after after text
 * @param int $showLoginForm to display a login form
 * 				to not display a login form, but just a login link, set to 0
 * 				to display a login form set to 1
 * 				to display a link to a login form in colorbox, set to 2, but you must have colorbox enabled for the theme pages where this link appears.)
 * @param string $logouttext optional replacement text for "Logout"
 */
function printUserLogin_out($before = '', $after = '', $showLoginForm = NULL, $logouttext = NULL)
{
    global $_zp_gallery, $__redirect, $_zp_current_admin_obj, $_zp_login_error, $_zp_gallery_page;
    $excludedPages = array('password.php', 'register.php', 'favorites.php', '404.php');
    $logintext = gettext('Login');
    if (is_null($logouttext)) {
        $logouttext = gettext("Logout");
    }
    $params = array("'userlog=0'");
    if (!empty($__redirect)) {
        foreach ($__redirect as $param => $value) {
            $params[] .= "'" . $param . '=' . urlencode($value) . "'";
        }
    }
    if (is_null($showLoginForm)) {
        $showLoginForm = getOption('user_logout_login_form');
    }
    if (is_object($_zp_current_admin_obj)) {
        if (!$_zp_current_admin_obj->logout_link) {
            return;
        }
    }
    $cookies = Zenphoto_Authority::getAuthCookies();
    if (empty($cookies) || !zp_loggedin()) {
        if (!in_array($_zp_gallery_page, $excludedPages)) {
            switch ($showLoginForm) {
                case 1:
                    ?>
					<div class="passwordform">
						<?php 
                    printPasswordForm('', true, false);
                    ?>
					</div>
					<?php 
                    break;
                case 2:
                    if (getOption('colorbox_' . $_zp_gallery->getCurrentTheme() . '_' . stripSuffix($_zp_gallery_page)) && zp_has_filter('theme_head', 'colorbox::css')) {
                        ?>
					<script type="text/javascript">
						// <!-- <![CDATA[
						$(document).ready(function() {
							$(".logonlink").colorbox({
								inline: true,
								innerWidth: "400px",
								href: "#passwordform",
								close: '<?php 
                        echo gettext("close");
                        ?>
',
								open: $('#passwordform_enclosure .errorbox').length
							});
						});
						// ]]> -->
					</script>
					<?php 
                        if ($before) {
                            echo '<span class="beforetext">' . html_encodeTagged($before) . '</span>';
                        }
                        ?>
					<a href="#" class="logonlink" title="<?php 
                        echo $logintext;
                        ?>
"><?php 
                        echo $logintext;
                        ?>
</a>
					<span id="passwordform_enclosure" style="display:none">
					<div class="passwordform">
						<?php 
                        printPasswordForm('', true, false);
                        ?>
					</div>
					</span>
					<?php 
                        if ($after) {
                            echo '<span class="aftertext">' . html_encodeTagged($after) . '</span>';
                        }
                    }
                    break;
                default:
                    if ($loginlink = zp_apply_filter('login_link', getCustomPageURL('password'))) {
                        if ($before) {
                            echo '<span class="beforetext">' . html_encodeTagged($before) . '</span>';
                        }
                        ?>
						<a href="<?php 
                        echo $loginlink;
                        ?>
//.........这里部分代码省略.........
开发者ID:rb26,项目名称:zenphoto,代码行数:101,代码来源:user_login-out.php


示例12: printAdminHeader


//.........这里部分代码省略.........
				<?php 
    }
    ?>
			<title><?php 
    echo sprintf(gettext('%1$s %2$s: %3$s%4$s'), html_encode($_zp_gallery->getTitle()), gettext('admin'), html_encode($tabtext), html_encode($subtabtext));
    ?>
</title>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/jquery.js" type="text/javascript"></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/jqueryui/jquery-ui-zenphoto.js" type="text/javascript"></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/zenphoto.js" type="text/javascript" ></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/admin.js" type="text/javascript" ></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/jquery.scrollTo.js" type="text/javascript"></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/jquery.are-you-sure.js" type="text/javascript"></script>
			<script type="text/javascript">
				// <!-- <![CDATA[

				$(document).ready(function() {
	<?php 
    if (zp_has_filter('admin_head', 'colorbox::css')) {
        ?>
						$("a.colorbox").colorbox({
							maxWidth: "98%",
							maxHeight: "98%",
							close: '<?php 
        echo addslashes(gettext("close"));
        ?>
'
						});

		<?php 
    }
    ?>
					$('form.dirty-check').areYouSure({
						'message': '<?php 
    echo addslashes(gettext('You have unsaved changes!'));
    ?>
',
						'addRemoveFieldsMarksDirty':false
					});
				});
				$(function() {
					$(".tooltip ").tooltip({
						show: 1000,
						hide: 1000,
						position: {
							my: "center bottom-20",
							at: "center top",
							using: function(position, feedback) {
								$(this).css(position);
								$("<div>")
												.addClass("arrow")
												.addClass(feedback.vertical)
												.addClass(feedback.horizontal)
												.appendTo(this);
							}
						}
					});
					$(".page-list_icon").tooltip({
						show: 1000,
						hide: 1000,
						position: {
							my: "center bottom-20",
							at: "center top",
							using: function(position, feedback) {
								$(this).css(position);
								$("<div>")
												.addClass("arrow")
												.addClass(feedback.vertical)
												.addClass(feedback.horizontal)
												.appendTo(this);
							}
						}
					});
				});
				jQuery(function($) {
					$(".fade-message").fadeTo(5000, 1).fadeOut(1000);
				})
				// ]]> -->
			</script>
			<?php 
    zp_apply_filter('admin_head');
}
开发者ID:JoniWeiss,项目名称:JoniWebGirl,代码行数:101,代码来源:admin-functions.php


示例13: gettext

<?php

/**
 * Changes <i>white space</i> characters to hyphens.
 *
 * @author Stephen Billard (sbillard)
 * 
 * @package plugins
 * @subpackage seo
 */
$plugin_is_filter = 5 | ADMIN_PLUGIN;
$plugin_description = gettext('SEO <em>Null</em> filter.');
$plugin_notice = gettext('The only translation performed is one or more <em>white space</em> characters are converted to a <em>hyphen</em>.');
$plugin_author = "Stephen Billard (sbillard)";
$plugin_disable = zp_has_filter('seoFriendly') && !extensionEnabled('seo_null') ? sprintf(gettext('Only one SEO filter plugin may be enabled. <a href="#%1$s"><code>%1$s</code></a> is already enabled.'), stripSuffix(get_filterScript('seoFriendly'))) : '';
zp_register_filter('seoFriendly', 'null_seo::filter');
zp_register_filter('seoFriendly_js', 'null_seo::js');
/**
 * Option handler class
 *
 */
class null_seo
{
    /**
     * class instantiation function
     *
     * @return zenphoto_seo
     */
    function __construct()
    {
    }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:seo_null.php


示例14: defaultExtension

<?php

/**
 * PHP sendmail mailing handler
 *
 * @author Stephen Billard (sbillard)
 *
 * @package plugins
 * @subpackage mail
 */
$plugin_is_filter = defaultExtension(5 | CLASS_PLUGIN);
$plugin_description = gettext("Outgoing mail handler based on the PHP <em>mail</em> facility.");
$plugin_author = "Stephen Billard (sbillard)";
$plugin_disable = zp_has_filter('sendmail') && !extensionEnabled('zenphoto_sendmail') ? sprintf(gettext('Only one Email handler plugin may be enabled. <a href="#%1$s"><code>%1$s</code></a> is already enabled.'), stripSuffix(get_filterScript('sendmail'))) : '';
if ($plugin_disable) {
    enableExtension('zenphoto_sendmail', 0);
} else {
    zp_register_filter('sendmail', 'zenphoto_sendmail');
}
function zenphoto_sendmail($msg, $email_list, $subject, $message, $from_mail, $from_name, $cc_addresses, $replyTo, $html = false)
{
    $headers = sprintf('From: %1$s <%2$s>', $from_name, $from_mail) . "\n";
    if (count($cc_addresses) > 0) {
        $cclist = '';
        foreach ($cc_addresses as $cc_name => $cc_mail) {
            $cclist .= ',' . $cc_mail;
        }
        $headers .= 'Cc: ' . substr($cclist, 1) . "\n";
    }
    if ($replyTo) {
        $headers .= 'Reply-To: ' . array_shift($replyTo) . "\n";
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:zenphoto_sendmail.php


示例15: printAdminHeader


//.........这里部分代码省略.........
    }
    ?>
			<title><?php 
    echo sprintf(gettext('%1$s %2$s: %3$s%4$s'), html_encode($_zp_gallery->getTitle()), gettext('admin'), html_encode($tabtext), html_encode($subtabtext));
    ?>
</title>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/jquery.js" type="text/javascript"></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/jqueryui/jquery-ui-zenphoto.js" type="text/javascript"></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/zenphoto.js" type="text/javascript" ></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/admin.js" type="text/javascript" ></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/jquery.scrollTo.js" type="text/javascript"></script>

			<?php 
    if (extensionEnabled('touchPunch')) {
        ?>
				<script src="<?php 
        echo WEBPATH . '/' . ZENFOLDER;
        ?>
/js/jquery.ui.touch-punch.min.js"></script>
				<?php 
    }
    ?>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/dirtyforms/jquery.dirtyforms.min.js" type="text/javascript"></script>
			<script src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/facebox/facebox.js" type="text/javascript"></script>


			<script type="text/javascript">
				// <!-- <![CDATA[
				function setClean(id) {
					$('form#' + id).dirtyForms('setClean');
					$('form#' + id).removeClass('tinyDirty');
				}
				$(document).ready(function () {
	<?php 
    if (zp_has_filter('admin_head', 'colorbox::css')) {
        ?>
						$("a.colorbox").colorbox({
							maxWidth: "98%",
							maxHeight: "98%",
							close: '<?php 
        echo addslashes(gettext("close"));
        ?>
'
						});
		<?php 
    }
    ?>
					$.DirtyForms.ignoreClass = 'ignoredirty';
					$.DirtyForms.message = '<?php 
    echo gettext('You have unsaved changes!');
    ?>
';
					$.DirtyForms.title = '<?php 
    echo gettext('Are you sure you want to leave this page?');
    ?>
';
					$.DirtyForms.continueText = '<?php 
    echo gettext('Leave');
    ?>
';
					$.DirtyForms.stopText = '<?php 
    echo gettext('Stay');
    ?>
';
					$.facebox.settings.closeImage = '<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/js/facebox/closelabel.png';
					$('#modal').facebox();
					$('form.dirtylistening').dirtyForms();
				});
				jQuery(function ($) {
					$(".fade-message").fadeTo(5000, 1).fadeOut(1000);
				})
				// ]]> -->
			</script>
			<?php 
    zp_apply_filter('admin_head');
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:101,代码来源:admin-functions.php


示例16: printSubtabs

    printSubtabs('Mailing');
    ?>
				<div class="tabbox">
					<?php 
    zp_apply_filter('admin_note', 'user_mailing', '');
    ?>
					<h1><?php 
    echo gettext('User mailing list');
    ?>
</h1>
					<p><?php 
    echo gettext("A tool to send e-mails to all registered users who have provided an e-mail address. There is always a copy sent to the current admin and all e-mails are sent as <em>blind copies</em>.");
    ?>
</p>
					<?php 
    if (!zp_has_filter('sendmail')) {
        $disabled = ' disabled="disabled"';
        ?>
						<p class="notebox">
							<?php 
        echo gettext("<strong>Note: </strong>No <em>sendmail</em> filter is registered. You must activate and configure a mailer plugin.");
        ?>
						</p>
						<?php 
    } else {
        $disabled = '';
    }
    if (isset($_GET['sendmail'])) {
        //form handling stuff to add...
        $subject = NULL;
        $message = NULL;
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:user_mailing_list.php


示例17: seoFriendly

/**
 * Strips out and/or replaces characters from the string that are not "soe" friendly
 *
 * @param string $source
 * @return string
 */
function seoFriendly($source)
{
    if (zp_has_filter('seoFriendly')) {
        $string = zp_apply_filter('seoFriendly', $source);
    } else {
        // no filter, do basic cleanup
        $string = preg_replace("/&([a-zA-Z])(uml|acute|grave|circ|tilde|ring),/", "", $source);
        $string = preg_replace("/[^a-zA-Z0-9_.-]/", "", $string);
        $string = str_replace(array('---', '--'), '-', $string);
    }
    return $string;
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:18,代码来源:functions.php



注:本文中的zp_has_filter函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zp_loggedin函数代码示例发布时间:2022-05-23
下一篇:
PHP zp_getCookie函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap