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

PHP zp_apply_filter函数代码示例

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

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



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

示例1: printHeadingImage

function printHeadingImage($randomImage)
{
    global $_zp_themeroot;
    $id = getAlbumId();
    echo '<div id="randomhead">';
    if (is_null($randomImage)) {
        echo '<img src="' . $_zp_themeroot . '/images/zen-logo.jpg" alt="' . gettext('There were no images from which to select the random heading.') . '" />';
    } else {
        $randomAlbum = $randomImage->getAlbum();
        $randomAlt1 = $randomAlbum->getTitle();
        if ($randomAlbum->getAlbumId() != $id) {
            $randomAlbum = $randomAlbum->getParent();
            while (!is_null($randomAlbum) && $randomAlbum->getAlbumId() != $id) {
                $randomAlt1 = $randomAlbum->getTitle() . ":\n" . $randomAlt1;
                $randomAlbum = $randomAlbum->getParent();
            }
        }
        $randomImageURL = html_encode(getURL($randomImage));
        if (getOption('allow_upscale')) {
            $wide = 620;
            $high = 180;
        } else {
            $wide = min(620, $randomImage->getWidth());
            $high = min(180, $randomImage->getHeight());
        }
        echo "<a href='" . $randomImageURL . "' title='" . gettext('Random picture...') . "'>";
        $html = "<img src='" . html_encode($randomImage->getCustomImage(NULL, $wide, $high, $wide, $high, NULL, NULL, !getOption('Watermark_head_image'))) . "' width='{$wide}' height='{$high}' alt=" . '"' . html_encode($randomAlt1) . ":\n" . html_encode($randomImage->getTitle()) . '" />';
        $html = zp_apply_filter('custom_image_html', $html, false);
        echo $html;
        echo '</a>';
    }
    echo '</div>';
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:33,代码来源:functions.php


示例2: Video

 /**
  * Constructor for class-video
  *
  * @param object &$album the owning album
  * @param sting $filename the filename of the image
  * @return Image
  */
 function Video(&$album, $filename)
 {
     global $_zp_supported_images;
     // $album is an Album object; it should already be created.
     if (!is_object($album)) {
         return NULL;
     }
     if (!$this->classSetup($album, $filename)) {
         // spoof attempt
         $this->exists = false;
         return;
     }
     $this->sidecars = $_zp_supported_images;
     $this->video = true;
     $this->objectsThumb = checkObjectsThumb($album->localpath, $filename);
     // Check if the file exists.
     if (!file_exists($this->localpath) || is_dir($this->localpath)) {
         $this->exists = false;
         return;
     }
     // This is where the magic happens...
     $album_name = $album->name;
     $this->updateDimensions();
     if (parent::PersistentObject('images', array('filename' => $filename, 'albumid' => $this->album->id), 'filename', false, empty($album_name))) {
         $this->set('mtime', $ts = filemtime($this->localpath));
         $this->updateMetaData();
         $this->save();
         zp_apply_filter('new_image', $this);
     }
 }
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:37,代码来源:class-video.php


示例3: css

    static function css()
    {
        global $_zp_gallery;
        $inTheme = false;
        if (OFFSET_PATH) {
            $themepath = 'colorbox_js/themes/example4/colorbox.css';
        } else {
            $theme = getOption('colorbox_theme');
            if (empty($theme)) {
                $themepath = 'colorbox_js/themes/example4/colorbox.css';
            } else {
                if ($theme == 'custom') {
                    $themepath = zp_apply_filter('colorbox_themepath', 'colorbox_js/colorbox.css');
                } else {
                    $themepath = 'colorbox_js/themes/' . $theme . '/colorbox.css';
                }
                $inTheme = $_zp_gallery->getCurrentTheme();
            }
        }
        $css = getPlugin($themepath, $inTheme, true);
        ?>
		<link rel="stylesheet" href="<?php 
        echo $css;
        ?>
" type="text/css" />
		<script type="text/javascript" src="<?php 
        echo FULLWEBPATH . "/" . ZENFOLDER . '/' . PLUGIN_FOLDER;
        ?>
/colorbox_js/jquery.colorbox-min.js"></script>
		<script>
			/* Colorbox resize function */
			var resizeTimer;
			function resizeColorBox()
			{
				if (resizeTimer)
					clearTimeout(resizeTimer);
				resizeTimer = setTimeout(function() {
					if (jQuery('#cboxOverlay').is(':visible')) {
						jQuery.colorbox.resize({width: '90%', maxHeight: '90%'});
						jQuery('#cboxLoadedContent img').css('max-width', '100%').css('height', 'auto');
					}
				}, 300)
			}

			// Resize Colorbox when resizing window or changing mobile device orientation
			jQuery(window).resize(resizeColorBox);
			window.addEventListener("orientationchange", resizeColorBox, false);

		</script>
		<?php 
    }
开发者ID:JoniWeiss,项目名称:JoniWebGirl,代码行数:51,代码来源:colorbox_js.php


示例4: __construct

 function __construct($folder8, $cache = true, $quiet = false)
 {
     $folder8 = trim($folder8, '/');
     $folderFS = internalToFilesystem($folder8);
     $localpath = ALBUM_FOLDER_SERVERPATH . $folderFS;
     $this->linkname = $this->name = $folder8;
     $this->localpath = rtrim($localpath, '/');
     if (!($this->exists = AlbumBase::albumCheck($folder8, $folderFS, $quiet, !file_exists($this->localpath) || is_dir($this->localpath)))) {
         return;
     }
     $data = explode("\n", file_get_contents($localpath));
     foreach ($data as $param) {
         $parts = explode('=', $param);
         switch (trim($parts[0])) {
             case 'USER':
                 $owner = trim($parts[1]);
                 break;
             case 'TITLE':
                 $this->instance = trim($parts[1]);
                 break;
             case 'THUMB':
                 $this->set('thumb', trim($parts[1]));
                 break;
         }
     }
     $new = $this->instantiate('albums', array('folder' => $this->name), 'folder', $cache);
     $title = $this->getTitle('all');
     $desc = $this->getDesc('all');
     parent::__construct($owner);
     $this->exists = true;
     if (!is_dir(stripSuffix($this->localpath))) {
         $this->linkname = stripSuffix($folder8);
     }
     $this->name = $folder8;
     $this->setTitle($title);
     $this->setDesc($desc);
     if ($new) {
         $title = $this->get('title');
         $this->set('title', stripSuffix($title));
         // Strip the suffix
         $this->setDateTime(strftime('%Y-%m-%d %H:%M:%S', $this->get('mtime')));
         $this->save();
         zp_apply_filter('new_album', $this);
     }
     zp_apply_filter('album_instantiate', $this);
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:46,代码来源:favoritesAlbums.php


示例5: __construct

	/**
	 * @param object $album the owner album
	 * @param string $filename the filename of the media file
	 */
	function __construct(&$album, $filename) {
		global $_zp_supported_images;

		// $album is an Album object; it should already be created.
		if ( ! is_object($album)) return NULL;
		if ( ! $this->classSetup($album, $filename)) { // spoof attempt
			$this->exists = FALSE;
			return;
		}
		$this->sidecars = $_zp_supported_images;
		$this->objectsThumb = checkObjectsThumb($album->localpath, $filename);
		// Check if the file exists.
		if ( ! file_exists($this->localpath) || is_dir($this->localpath)) {
			$this->exists = FALSE;
			return;
		}

		/* check the file extension, and then set the mediaType if supported */
		$extension = substr(strtolower(strrchr($this->localpath,'.')),1);
		foreach ($this->mediaTypes AS $t => $l) {
			if (in_array($extension,$l)) {
				$this->mediaType = $t;
				break;
			}
		}
		unset($t,$l);

		$this->updateDimensions();

		if (parent::PersistentObject('images', array('filename'=>$filename, 'albumid'=>$this->album->id), 'filename', FALSE, FALSE)) {
			$this->set('mtime', $ts = filemtime($this->localpath));
			$this->updateMetaData();
			$this->save();
			zp_apply_filter('new_image', $this);
		}
	}
开发者ID:rlaskey,项目名称:zenphoto-html5media,代码行数:40,代码来源:class-html5media.php


示例6: printContactForm

					<?php 
    printContactForm();
    ?>
				</div>
			</div>


			<!-- Footer -->
			<div class="footlinks">

				<?php 
    printThemeInfo();
    ?>
				<?php 
    printZenphotoLink();
    ?>

			</div> <!-- footerlinks -->


			<?php 
    zp_apply_filter('theme_body_close');
    ?>

		</body>
	</html>
	<?php 
} else {
    include SERVERPATH . '/' . ZENFOLDER . '/404.php';
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:30,代码来源:contact.php


示例7: printLogoAndLinks

	</head>
	<body>
		<?php 
    printLogoAndLinks();
    ?>
		<div id="main">
			<?php 
    printTabs();
    ?>
			<div id="content">
				<?php 
    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 
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:user_mailing_list.php


示例8: printLogoAndLinks

<?php 
printLogoAndLinks();
?>
<div id="main">
	<?php 
printTabs();
?>
	<div id="content">
		<div id="container">
			<?php 
$subtab = printSubtabs();
?>
			<div class="tabbox">
				<?php 
zp_apply_filter('admin_note', 'upload', $subtab);
?>
				<h1><?php 
echo gettext('File Manager');
?>
</h1>
				<?php 
$locale = substr(getOption("locale"), 0, 2);
if (empty($locale)) {
    $locale = 'en';
}
?>
				<iframe src="zp-extensions/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php?language=<?php 
echo $locale;
?>
&tab=files" width="100%" height="480" style="border: 0">
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:30,代码来源:admin-filemanager.php


示例9: sanitize

    $msg = sanitize($_GET['applied']);
    if ($msg) {
        echo "<div class=\"errorbox space\">";
        echo "<h2>" . $msg . "</h2>";
        echo "</div>";
    } else {
        echo '<div class="messagebox fade-message">';
        echo "<h2>" . gettext('Processed') . "</h2>";
        echo '</div>';
    }
}
$subtab = printSubtabs();
?>
			<div id="tab_users" class="tabbox">
				<?php 
zp_apply_filter('admin_note', 'users', $subtab);
$groups = array();
$subscription = 86400 * getOption('user_expiry_interval');
$now = time();
$warnInterval = $now + getOption('user_expiry_warn_interval') * 86400;
?>
				<p>
				<?php 
echo gettext("Manage user expiry.");
?>
				</p>
				<form action="?action=expiry" method="post" autocomplete="off" >
					<?php 
XSRFToken('expiry');
?>
					<span class="buttons">
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:user-expiry-tab.php


示例10: printSlideShowLink

    /**
     * Prints a link to call the slideshow (not shown if there are no images in the album)
     * To be used on album.php and image.php
     * A CSS id names 'slideshowlink' is attached to the link so it can be directly styled.
     *
     * If the mode is set to "jQuery Colorbox" and the Colorbox plugin is enabled this link starts a Colorbox slideshow
     * from a hidden HTML list of all images in the album. On album.php it starts with the first always, on image.php with the current image.
     *
     * @param string $linktext Text for the link
     * @param string $linkstyle Style of Text for the link
     */
    function printSlideShowLink($linktext = NULL, $linkstyle = Null)
    {
        global $_zp_gallery, $_zp_current_image, $_zp_current_album, $_zp_current_search, $slideshow_instance, $_zp_gallery_page;
        if (is_null($linktext)) {
            $linktext = gettext('View Slideshow');
        }
        if (empty($_GET['page'])) {
            $pagenr = 1;
        } else {
            $pagenr = sanitize_numeric($_GET['page']);
        }
        $slideshowhidden = '';
        $numberofimages = 0;
        if (in_context(ZP_SEARCH)) {
            $imagenumber = '';
            $imagefile = '';
            $albumnr = 0;
            $slideshowlink = rewrite_path(_PAGE_ . '/slideshow', "index.php?p=slideshow");
            $slideshowhidden = '<input type="hidden" name="preserve_search_params" value="' . html_encode($_zp_current_search->getSearchParams()) . '" />';
        } else {
            if (in_context(ZP_IMAGE)) {
                $imagenumber = imageNumber();
                $imagefile = $_zp_current_image->filename;
            } else {
                $imagenumber = '';
                $imagefile = '';
            }
            if (in_context(ZP_SEARCH_LINKED)) {
                $albumnr = -$_zp_current_album->getID();
                $slideshowhidden = '<input type="hidden" name="preserve_search_params" value="' . html_encode($_zp_current_search->getSearchParams()) . '" />';
            } else {
                $albumnr = $_zp_current_album->getID();
            }
            if ($albumnr) {
                $slideshowlink = rewrite_path(pathurlencode($_zp_current_album->getFileName()) . '/' . _PAGE_ . '/slideshow', "index.php?p=slideshow&amp;album=" . urlencode($_zp_current_album->getFileName()));
            } else {
                $slideshowlink = rewrite_path(_PAGE_ . '/slideshow', "index.php?p=slideshow");
                $slideshowhidden = '<input type="hidden" name="favorites_page" value="1" />' . "\n" . '<input type="hidden" name="title" value="' . $_myFavorites->instance . '" />';
            }
        }
        $numberofimages = getNumImages();
        $option = getOption('slideshow_mode');
        switch ($option) {
            case 'jQuery':
                if ($numberofimages > 1) {
                    ?>
					<form name="slideshow_<?php 
                    echo $slideshow_instance;
                    ?>
" method="post"	action="<?php 
                    echo zp_apply_filter('getLink', $slideshowlink, 'slideshow.php', NULL);
                    ?>
">
						<?php 
                    echo $slideshowhidden;
                    ?>
						<input type="hidden" name="pagenr" value="<?php 
                    echo html_encode($pagenr);
                    ?>
" />
						<input type="hidden" name="albumid" value="<?php 
                    echo $albumnr;
                    ?>
" />
						<input type="hidden" name="numberofimages" value="<?php 
                    echo $numberofimages;
                    ?>
" />
						<input type="hidden" name="imagenumber" value="<?php 
                    echo $imagenumber;
                    ?>
" />
						<input type="hidden" name="imagefile" value="<?php 
                    echo html_encode($imagefile);
                    ?>
" />
						<?php 
                    if (!empty($linkstyle)) {
                        echo '<p style="' . $linkstyle . '">';
                    }
                    ?>
						<a class="slideshowlink" id="slideshowlink_<?php 
                    echo $slideshow_instance;
                    ?>
" 	href="javascript:document.slideshow_<?php 
                    echo $slideshow_instance;
                    ?>
.submit()"><?php 
                    echo $linktext;
//.........这里部分代码省略.........
开发者ID:rb26,项目名称:zenphoto,代码行数:101,代码来源:slideshow.php


示例11: zp_apply_filter

								</table> <!-- single plugin page table -->
								<input type="hidden" name="checkForPostTruncation" value="1" />
								<?php 
    }
    ?>
						</form>

					</div>
					<!-- end of tab_plugin div -->
					<?php 
}
if ($subtab == 'security' && zp_loggedin(ADMIN_RIGHTS)) {
    ?>
					<div id="tab_security" class="tabbox">
						<?php 
    zp_apply_filter('admin_note', 'options', $subtab);
    ?>
						<form class="dirty-check" id="form_options" action="?action=saveoptions" method="post" autocomplete="off">
							<?php 
    XSRFToken('saveoptions');
    ?>
							<input type="hidden" name="savesecurityoptions" value="yes" />
							<table class="options">
								<tr>
									<td colspan="3">
										<p class="buttons">
											<button type="submit" value="<?php 
    echo gettext('save');
    ?>
"><img src="images/pass.png" alt="" /><strong><?php 
    echo gettext("Apply");
开发者ID:JoniWeiss,项目名称:JoniWebGirl,代码行数:31,代码来源:admin-options.php


示例12: header

 if (!$rightsalbum->isMyItem(UPLOAD_RIGHTS)) {
     if (!zp_apply_filter('admin_managed_albums_access', false, $return)) {
         header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin.php');
         exit;
     }
 }
 if ($new) {
     mkdir_recursive($targetPath, CHMOD_VALUE);
     $album = new Album($gallery, $folder);
     $album->setShow($_POST['http_publishalbum']);
     $album->setTitle(sanitize($_POST['http_albumtitle']));
     $album->setOwner($_zp_current_admin_obj->getUser());
     $album->save();
 }
 @chmod($targetPath, CHMOD_VALUE);
 $error = zp_apply_filter('check_upload_quota', UPLOAD_ERR_OK, $tempFile);
 if (!$error) {
     if (is_valid_image($name) || is_valid_other_type($name)) {
         $seoname = seoFriendly($name);
         if (strrpos($seoname, '.') === 0) {
             $seoname = sha1($name) . $seoname;
         }
         // soe stripped out all the name.
         $targetFile = $targetPath . '/' . internalToFilesystem($seoname);
         if (file_exists($targetFile)) {
             $append = '_' . time();
             $seoname = stripSuffix($seoname) . $append . '.' . getSuffix($seoname);
             $targetFile = $targetPath . '/' . internalToFilesystem($seoname);
         }
         if (move_uploaded_file($tempFile, $targetFile)) {
             @chmod($targetFile, 0666 & CHMOD_VALUE);
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:uploader.php


示例13: printLogoAndLinks

?>
</head>

<body>

	<link
	<?php 
printLogoAndLinks();
?>
		<div id="main">
			<?php 
printTabs();
?>
		<div id="content">
			<?php 
zp_apply_filter('admin_note', 'development', '');
?>
			<div id="container">
				<?php 
printSubtabs();
?>
				<div class="tabbox">
					<h1><?php 
echo gettext('ZenPhoto20 filters');
?>
</h1>
					<?php 
echo '<div style="float:left;width:70%;">';
include 'intro.html';
echo '</div>';
echo '<div style="float:right;width:30%;">';
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:admin_tab.php


示例14: getImageProcessorURI

/**
 * forms the i.php parameter list for an image.
 *
 * @param array $args
 * @param string $album the album name
 * @param string $image the image name
 * @return string
 */
function getImageProcessorURI($args, $album, $image)
{
    list($size, $width, $height, $cw, $ch, $cx, $cy, $quality, $thumb, $crop, $thumbstandin, $passedWM, $adminrequest, $effects) = $args;
    $args[8] = NULL;
    // not used by image processor
    $uri = WEBPATH . '/' . ZENFOLDER . '/i.php?a=' . $album;
    if (is_array($image)) {
        $uri .= '&i=' . $image['name'] . '&z=' . ($z = $image['source']);
    } else {
        $uri .= '&i=' . $image;
        $z = NULL;
    }
    if (empty($size)) {
        $args[0] = NULL;
    } else {
        $uri .= '&s=' . ($args[0] = (int) $size);
    }
    if ($width) {
        $uri .= '&w=' . ($args[1] = (int) $width);
    } else {
        $args[1] = NULL;
    }
    if ($height) {
        $uri .= '&h=' . ($args[2] = (int) $height);
    } else {
        $args[2] = NULL;
    }
    if (is_null($cw)) {
        $args[3] = NULL;
    } else {
        $uri .= '&cw=' . ($args[3] = (int) $cw);
    }
    if (is_null($ch)) {
        $args[4] = NULL;
    } else {
        $uri .= '&ch=' . ($args[4] = (int) $ch);
    }
    if (is_null($cx)) {
        $args[5] = NULL;
    } else {
        $uri .= '&cx=' . ($args[5] = (int) $cx);
    }
    if (is_null($cy)) {
        $args[6] = NULL;
    } else {
        $uri .= '&cy=' . ($args[6] = (int) $cy);
    }
    if ($quality) {
        $uri .= '&q=' . ($args[7] = (int) $quality);
    } else {
        $args[7] = NULL;
    }
    $args[8] = NULL;
    if ($crop) {
        $uri .= '&c=' . ($args[9] = 1);
    } else {
        $args[9] = NULL;
    }
    if ($thumb || $thumbstandin) {
        $uri .= '&t=' . ($args[10] = 1);
    } else {
        $args[10] = NULL;
    }
    if ($passedWM) {
        $uri .= '&wmk=' . $passedWM;
    } else {
        $args[11] = NULL;
    }
    if ($adminrequest) {
        $args[12] = true;
        $uri .= '&admin=1';
    } else {
        $args[12] = false;
    }
    if ($effects) {
        $uri .= '&effects=' . $effects;
    } else {
        $args[13] = NULL;
    }
    $args[14] = $z;
    $uri .= '&check=' . sha1(HASH_SEED . serialize($args));
    $uri = zp_apply_filter('image_processor_uri', $uri);
    return $uri;
}
开发者ID:rb26,项目名称:zenphoto,代码行数:92,代码来源:functions-basic.php


示例15: printLogoAndLinks

</head>
<body>
<?php 
printLogoAndLinks();
?>
<div id="main">
	<?php 
printTabs();
?>
	<div id="content">
		<?php 
$subtab = printSubtabs();
?>
		<div id="tab_articles" class="tabbox">
			<?php 
zp_apply_filter('admin_note', 'categories', $subtab);
foreach ($reports as $report) {
    echo $report;
}
?>
			<h1>
			<?php 
echo gettext('Categories');
?>
<span class="zenpagestats"><?php 
printCategoriesStatistic();
?>
</span></h1>
			<form action="admin-categories.php?page=news&amp;tab=categories" method="post" id="checkeditems" name="checkeditems" onsubmit="return confirmAction();">
				<?php 
XSRFToken('checkeditems');
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:admin-categories.php


示例16: printCommentForm


//.........这里部分代码省略.........
            foreach ($stored as $key => $value) {
                $disabled[$key] = false;
            }
            if (zp_loggedin()) {
                if (extensionEnabled('userAddressFields')) {
                    $address = userAddressFields::getCustomData($_zp_current_admin_obj);
                    foreach ($address as $key => $value) {
                        if (!empty($value)) {
                            $disabled[$key] = true;
                            $stored[$key] = $value;
                        }
                    }
                }
                $name = $_zp_current_admin_obj->getName();
                if (!empty($name)) {
                    $stored['name'] = $name;
                    $disabled['name'] = ' disabled="disabled"';
                } else {
                    $user = $_zp_current_admin_obj->getUser();
                    if (!empty($user)) {
                        $stored['name'] = $user;
                        $disabled['name'] = ' disabled="disabled"';
                    }
                }
                $email = $_zp_current_admin_obj->getEmail();
                if (!empty($email)) {
                    $stored['email'] = $email;
                    $disabled['email'] = ' disabled="disabled"';
                }
                if (!empty($address['website'])) {
                    $stored['website'] = $address['website'];
                    $disabled['website'] = ' disabled="disabled"';
                }
            }
            $data = zp_apply_filter('comment_form_data', array('data' => $stored, 'disabled' => $disabled));
            $disabled = $data['disabled'];
            $stored = $data['data'];
            foreach ($data as $check) {
                foreach ($check as $v) {
                    if ($v) {
                        $_zp_HTML_cache->disable();
                        //	shouldn't cache partially filled in pages
                        break 2;
                    }
                }
            }
            if (!empty($addcommenttext)) {
                echo $addcommenttext;
            }
            ?>
				<div id="commententry" <?php 
            echo $comment_commententry_mod;
            ?>
>
					<?php 
            $theme = getCurrentTheme();
            $form = getPlugin('comment_form/comment_form.php', $theme);
            require $form;
            ?>
				</div><!-- id="commententry" -->
				<?php 
        }
    } else {
        ?>
			<div id="commententry">
				<h3><?php 
        echo gettext('Closed for comments.');
        ?>
</h3>
			</div><!-- id="commententry" -->
			<?php 
    }
    ?>
	</div><!-- id="commentcontent" -->
	<?php 
    if (getOption('comment_form_rss') && getOption('RSS_comments')) {
        ?>
		<br clear="all" />
		<?php 
        if (class_exists('RSS')) {
            switch ($_zp_gallery_page) {
                case "image.php":
                    printRSSLink("Comments-image", "", gettext("Subscribe to comments"), "");
                    break;
                case "album.php":
                    printRSSLink("Comments-album", "", gettext("Subscribe to comments"), "");
                    break;
                case "news.php":
                    printRSSLink("Comments-news", "", gettext("Subscribe to comments"), "");
                    break;
                case "pages.php":
                    printRSSLink("Comments-page", "", gettext("Subscribe to comments"), "");
                    break;
            }
        }
    }
    ?>
	<!-- end printCommentForm -->
	<?php 
}
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:101,代码来源:comment_form.php


示例17: header

    header("HTTP/1.0 302 Found");
    header("Status: 302 Found");
    header('Location: ' . WEBPATH . '/index.php');
    exitZP();
}
$obj = @$_zp_gallery_page;
$_zp_gallery_page = '404.php';
if (isset($_index_theme)) {
    $_zp_script = SERVERPATH . "/" . THEMEFOLDER . '/' . internalToFilesystem($_index_theme) . '/404.php';
} else {
    $_zp_script = NULL;
}
header('Content-Type: text/html; charset=' . LOCAL_CHARSET);
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
zp_apply_filter('theme_headers');
debug404($album, $image, @$_index_theme);
if ($_zp_script && file_exists($_zp_script)) {
    if (isset($custom) && $custom) {
        require_once $custom;
    }
    include $_zp_script;
} else {
    ?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		</head>
		<body>
			<?php 
    print404status(isset($album) ? $album : NULL, isset($image) ? $image : NULL, $obj);
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:404.php


示例18: zp_apply_filter

']);
		_gaq.push(['_trackPageview']);
		(function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
		<?php 
    }
    ?>
	</script>
	<?php 
}
?>
	<?php 
zp_apply_filter('theme_body_open');
?>
	<!-- Pushy Menu -->
	<nav class="pushy pushy-right">
		<?php 
if (file_exists(UPLOAD_FOLDER . '/logo.png')) {
    ?>
		<img id="nav-logo" src="<?php 
    echo WEBPATH . '/' . UPLOAD_FOLDER . '/logo.png';
    ?>
" alt="<?php 
    printGalleryTitle();
    ?>
" />
		<?php 
} else {
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:inc-header.php


示例19: gettext

						handleSelectorChange($(this).val());
					});
				});
				//]]> -->
			</script>
			<h1>
				<?php 
if (is_array($result) && $result['id']) {
    echo gettext("Menu Manager: Edit Menu Item");
} else {
    echo gettext("Menu Manager: Add Menu Item");
}
?>
			</h1>
			<?php 
zp_apply_filter('admin_note', 'menu', 'edit');
foreach ($reports as $report) {
    echo $report;
}
if (isset($_GET['save']) && !isset($_GET['add'])) {
    ?>
				<div class="messagebox fade-message">
					<h2>
						<?php 
    echo gettext("Changes applied");
    ?>
					</h2>
				</div>
				<?php 
}
?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:menu_tab_edit.php


示例20: print_language_string_list

        print_language_string_list($result->getDesc('all'), 'desc', true, NULL, 'desc', '100%', 'zenpage_language_string_list', 10);
    } else {
        print_language_string_list($result->getContent('all'), 'content', true, NULL, 'content', '100%', 'zenpage_language_string_list', 13);
    }
    ?>
											</td>
										</tr>
										<?php 
    if (is_AdminEditPage("newsarticle")) {
        $custom = zp_apply_filter('edit_article_custom_data', '', $result);
    }
    if (is_AdminEditPage("newscategory")) {
        $custom = zp_apply_filter('edit_category_custom_data', '', $result);
    }
    if (is_AdminEditPage("page")) {
        $custom = zp_apply_filter('edit_page_custom_data', '', $result);
    }
    echo $custom;
    ?>
									</table>
									<span class="buttons">
										<strong><a href="<?php 
    echo $backurl;
    ?>
"><img	src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/images/arrow_left_blue_round.png" alt="" /><?php 
    echo gettext("Back");
    ?>
</a></strong>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:admin-edit.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP zp_error函数代码示例发布时间:2022-05-23
下一篇:
PHP zpFormattedDate函数代码示例发布时间: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