当前位置: 首页>>代码示例>>PHP>>正文


PHP getImageDesc函数代码示例

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


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

示例1: printImageDesc

/**
 * Prints the description of the current image.
 * Converts and displays line breaks set in the admin field as <br />.
 *
 */
function printImageDesc()
{
    echo html_encodeTagged(getImageDesc());
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:9,代码来源:template-functions.php

示例2: printDefaultSizedImage

						</a>
					<?php 
} else {
    printDefaultSizedImage(html_encode(getImageTitle()), 'image', 'player');
}
?>
				</div>
				<div class="data">
					<?php 
if (getImageTitle()) {
    echo '<div class="c"><h4 class="box title">' . getImageTitle() . '</h4></div>';
}
?>
					<?php 
if (getImageDesc()) {
    echo '<div class="c"><div class="box desc">' . getImageDesc() . '</div></div>';
}
?>
					<?php 
if (getImageLocation()) {
    echo '<div class="c"><small class="box location">' . getImageLocation() . '</small></div>';
}
?>
					<?php 
if (getImageDate()) {
    echo '<div class="c"><small class="box date">' . getImageDate('%d.%m.%y %H:%M') . '</small></div>';
}
?>
				</div>
			</div>
<?php 
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:image.php

示例3: printDefaultSizedImage

    ?>
		<div class="audiovideo">
		<?php 
    printDefaultSizedImage(getBareImageTitle());
    ?>
		</div>
		<?php 
}
?>
	</div>


	<div id="narrow">

	<?php 
if (getImageDesc() != '') {
    ?>
		<div id="desc">
			<?php 
    printImageDesc(true);
    ?>
		</div>
	<?php 
}
?>

	<!-- exif -->


		<div id="comments">
		<?php 
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php

示例4: getAlbumDesc

								<div><?php 
    echo getAlbumDesc();
    ?>
</div>
							</div>
						</li>
						<?php 
}
?>
						<?php 
while (next_image()) {
    ?>
						<li>
							<div class="thumb">
								<a title="<?php 
    echo html_encode(getImageDesc());
    ?>
" href="<?php 
    echo htmlspecialchars(getImageURL());
    ?>
">
									<img src="<?php 
    echo getCustomImageURL(150, NULL, NULL, 150, 150, NULL, NULL, true);
    ?>
" alt="<?php 
    echo html_encode(getBareImageTitle() . ' (' . getImageDate(getOption('date_format')) . ')');
    ?>
" />
								</a>
							</div>
						</li>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php

示例5: getImagesHTML

 function getImagesHTML()
 {
     global $_zp_themeroot, $_zp_current_image, $_zp_current_album;
     $showImages = $this->getNumImages() > 0 && $this->albumPage >= $this->getFirstImagePage();
     $w = 318;
     if (!$showImages) {
         return '';
     }
     $inContext = $this->context & ZP_IMAGE || in_context(ZP_SEARCH);
     if ($inContext && $_zp_current_image) {
         $fileName = $_zp_current_image->getFileName();
         $folder = $_zp_current_image->album->getFilename();
     }
     $u = 0;
     $initialHeight = 0;
     $images = '';
     $start = $this->getAlbumPage() - ($this->getNumAlbums() > 0 ? $this->getFirstImagePage() - 1 : 0);
     $albumImages = $this->getAlbumImages($start);
     for ($k = 0; $k < count($albumImages); $k++) {
         $_zp_current_image = $this->getImage($albumImages[$k]);
         if ($u == 0) {
             $image = $_zp_current_image;
         }
         $cls = '';
         if (!$inContext && $u == 0 || $inContext && !$fileName && $u == 0 || $inContext && $_zp_current_image && $fileName == $_zp_current_image->getFileName() && $folder == $_zp_current_image->album->getFilename()) {
             $cls = 'force-selection';
             $image = $_zp_current_image;
         }
         $title = getImageTitle();
         $size = getSizeCustomImage(NULL, $w);
         $desc = getImageDesc();
         if (!empty($desc)) {
             //$desc = theme_clean($desc);
         } else {
             $desc = '';
         }
         $small = getCustomImageURL(NULL, $w);
         $full = getOption('protect_full_image') == 'Unprotected' ? getUnprotectedImageURL() : '';
         $thumb = getCustomImageURL(NULL, 32, 32);
         $width = $size[0];
         $height = $size[1];
         if ($width < $w + 2) {
             $width = $w + 2;
             $height = $height * ($w + 2) / $width;
         }
         if ($u == 0) {
             $initialHeight = $height;
         }
         $images .= "<span class='img img-{$u}' width='35' height='35'>" . "<a href='" . $this->getImageThumbLink() . "' sref='{$small}' title='{$title}' targetHeight='{$height}' >" . "<img src='{$thumb}' index='{$u}' width='35' height='35' title='{$title}' class='{$cls}' ref='{$full}' />" . "</a>" . "</span>";
         $u++;
     }
     $m = $u;
     while ($u < 8) {
         $images .= "<span class='img img-{$u}'>" . "<img src='{$_zp_themeroot}/resources/images/opa/bg-b-20.png' width='35' height='35' />" . "</span>";
         $u++;
     }
     if (!in_context(ZP_IMAGE)) {
         set_context(get_context() | ZP_IMAGE);
     }
     $_zp_current_image = $image;
     $numAlbums = $this->getNumAlbums();
     $slideshowLink = $this->getSlideshowLink();
     $s = ($this->getAlbumPage() - $this->getFirstImagePage()) * getOption('images_per_page');
     $batch = $s + 1 . "-" . ($s + $m);
     $imagesDivs = "<div id='subalbum-count' class='count'>" . (isset($slideshowLink) ? "<span id='album-slideshow-link' class='unselected'><a href='{$slideshowLink}'>Slideshow</a></span>" : "") . ($numAlbums > 0 ? "<span id='subalbum-count' class='unselected'>" . "<a href='" . $this->getAlbumTabLink() . "'>" . $numAlbums . " " . gettext($this->getAlbumTabText($numAlbums)) . "</a>" . "</span>" : "") . "<span class='selected last'>{$batch} / " . $this->getNumImages() . " " . gettext("images") . "</span></div>" . "<div id='images'>{$images}</div>" . "<div id='image-container'>" . "<img src='" . getCustomImageURL(NULL, $w) . "' width='316' />" . "</div> ";
     return $imagesDivs;
 }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:67,代码来源:GalleryController.php

示例6: printImageTitle

                    ?>
"></a>
								<?php 
                }
                ?>
								<div class="caption">
									<div class="image-title"><?php 
                printImageTitle(false);
                ?>
</div>
									<?php 
                if (strlen(getImageDesc()) > 0) {
                    ?>
									<div class="image-desc">
										<?php 
                    echo shortenContent(getImageDesc(), 300, '...');
                    ?>
		
									</div>
									<?php 
                }
                ?>
									<div><?php 
                printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'hor-list', ', ', false);
                ?>
</div>
									<div class="download">
										<?php 
                if (isImageVideo()) {
                    $downLoadText = gettext('Video');
                } else {
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php

示例7: theme_content

    function theme_content($map)
    {
        global $_zp_current_image, $points;
        if (isImagePage()) {
            ?>
			<!-- Gallery section -->
			<div id="images">
				<?php 
            $points = array();
            $firstImage = null;
            $lastImage = null;
            if (getNumImages() > 0) {
                ?>
					<div id="gallery" class="ad-gallery">
						<div class="ad-image-wrapper"></div>
						<div class="ad-controls"></div>
						<div class="ad-nav">
							<div class="ad-thumbs">
								<ul class="ad-thumb-list">
									<?php 
                while (next_image(true)) {
                    if ($map) {
                        $coord = getGeoCoord($_zp_current_image);
                        if ($coord) {
                            $points[] = $coord;
                        }
                    }
                    if (isImagePhoto()) {
                        // does not do video
                        if (is_null($firstImage)) {
                            $lastImage = imageNumber();
                            $firstImage = $lastImage;
                        } else {
                            $lastImage++;
                        }
                        ?>
											<li>
												<a href="<?php 
                        echo html_encode(getDefaultSizedImage());
                        ?>
">
													<img src="<?php 
                        echo html_encode(pathurlencode(getImageThumb()));
                        ?>
"
															 class="image<?php 
                        echo $lastImage;
                        ?>
"
															 alt="<?php 
                        echo html_encode(getImageDesc());
                        ?>
">
												</a>
											</li>
											<?php 
                    }
                }
                ?>
								</ul>
							</div>
						</div>
					</div>
				<?php 
            }
            ?>

				<div id="caption"<?php 
            if (getOption('garland_caption_location') == 'none') {
                echo ' style="display:none"';
            }
            ?>
>
				</div>
				<div class="clearage"></div>
			</div><!-- images -->
			<br class="clearall" />
			<?php 
        }
    }
开发者ID:rb26,项目名称:zenphoto,代码行数:80,代码来源:functions.php

示例8: printImageTitle

?>
		</div>
		<div id="content" class="c">
			<div id="description">
				<div class="c">
					<div id="title" class="box"><h3><?php 
printImageTitle(true);
?>
</h3></div>
					<div id="date" class="box"><?php 
echo '( ' . getImageDate(getOption('date_format')) . ' )';
?>
</div>
				</div>
				<?php 
if (getImageDesc() or zp_loggedin()) {
    echo '<div class="c"><div id="desc" class="box">';
    echo printImageDesc(true);
    echo '</div></div>';
}
if (getTags() or zp_loggedin()) {
    echo '<div class="c"><div id="tags" class="box">';
    printTags('links', '', '', ', ', true, '', true);
    echo '</div></div>';
}
if (function_exists('printRating')) {
    echo '<div class="c"><div id="rating">';
    printRating();
    echo '</div></div>';
}
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php

示例9: theme_content

    function theme_content($map)
    {
        global $_zp_current_image, $_zp_current_album, $points;
        if (isImagePage()) {
            ?>
			<!-- Gallery section -->
			<div id="content">
				<div id="main">
					<div id="images">
						<?php 
            $points = array();
            $firstImage = null;
            $lastImage = null;
            if (getNumImages() > 0) {
                ?>
							<div id="gallery" class="ad-gallery">
								<div class="ad-image-wrapper"></div>
								<div class="ad-controls"></div>
								<div class="ad-nav">
									<div class="ad-thumbs">
										<ul class="ad-thumb-list">
											<?php 
                while (next_image(true)) {
                    if ($map) {
                        $coord = getGeoCoord($_zp_current_image);
                        if ($coord) {
                            $points[] = $coord;
                        }
                    }
                    if (isImagePhoto()) {
                        // does not do video
                        if (is_null($firstImage)) {
                            $lastImage = imageNumber();
                            $firstImage = $lastImage;
                        } else {
                            $lastImage++;
                        }
                        ?>
													<li>
														<a href="<?php 
                        echo html_encode(getDefaultSizedImage());
                        ?>
">
															<img src="<?php 
                        echo html_encode(pathurlencode(getImageThumb()));
                        ?>
"
																	 class="image<?php 
                        echo $lastImage;
                        ?>
"
																	 alt="<?php 
                        echo html_encode(getImageDesc());
                        ?>
">
														</a>
													</li>
													<?php 
                    }
                }
                ?>
										</ul>
									</div>
								</div>
							</div>
							<?php 
            }
            ?>

						<div id="caption"<?php 
            if (getOption('effervescence_caption_location') == 'none') {
                echo ' style="display:none"';
            }
            ?>
>
						</div>
						<div class="clearage"></div>
						<?php 
            if (!empty($points) && $map) {
                function map_callback($map)
                {
                    global $points;
                    foreach ($points as $coord) {
                        addGeoCoord($map, $coord);
                    }
                }
                ?>
							<div id="map_link">
							<?php 
                printGoogleMap(NULL, NULL, NULL, 'album_page', 'map_callback');
                ?>
							</div>
						<?php 
            }
            ?>
					</div><!-- images -->
			<?php 
            if (function_exists('printAddToFavorites')) {
                printAddToFavorites($_zp_current_album);
            }
//.........这里部分代码省略.........
开发者ID:rb26,项目名称:zenphoto,代码行数:101,代码来源:functions.php

示例10: getTags

					<?php 
$singletag = getTags();
$tagstring = implode(', ', $singletag);
?>
					<ul class="image-info">
						<?php 
if (strlen(getImageDate()) > 0 || zp_loggedin()) {
    ?>
<li class="date"><?php 
    printImageDate('');
    ?>
</li><?php 
}
?>
						<?php 
if (strlen(getImageDesc()) > 0 || zp_loggedin()) {
    ?>
<li class="desc"><?php 
    printImageDesc();
    ?>
</li><?php 
}
if (strlen($tagstring) > 0 || zp_loggedin()) {
    ?>
<li class="tags"><?php 
    printTags('links', ' ', 'taglist', ', ');
    ?>
</li><?php 
}
?>
					</ul>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php

示例11: getBareImageDesc

/**
 * Returns a text-only description of the current image.
 *
 * @return string
 */
function getBareImageDesc()
{
    return strip_tags(getImageDesc());
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:9,代码来源:template-functions.php

示例12: getBareImageDesc

/**
 * Returns a text-only description of the current image.
 *
 * @return string
 */
function getBareImageDesc()
{
    return html_encode(getImageDesc());
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:9,代码来源:template-functions.php

示例13: header

    header('Content-Type: application/xml');
    $path = '..';
    echo '<?xml version="1.0" encoding="UTF-8"?>
<simpleviewerGallery title=""  maxImageWidth="' . $maxImageWidth . '" maxImageHeight="' . $maxImageHeight . '" textColor="' . $textColor . '" frameColor="' . $frameColor . '" frameWidth="' . $frameWidth . '" stagePadding="' . $stagePadding . '" thumbnailColumns="' . $thumbnailColumns . '" thumbnailows="' . $thumbnailRows . '" navPosition="' . $navPosition . '" enableRightClickOpen="' . $enableRightClickOpen . '" backgroundImagePath="' . $backgroundImagePath . '" imagePath="' . $path . '" thumbPath="' . $path . '">';
    ?>

<?php 
    while (next_image(true)) {
        ?>
<image><filename><?php 
        echo htmlspecialchars(getFullImageURL());
        ?>
</filename><caption><![CDATA[<a href="<?php 
        echo htmlspecialchars(getImageLinkURL());
        ?>
" title="<?php 
        echo gettext('Open in a new window');
        ?>
">
<font face="Times"><u><b><em><?php 
        echo getImageTitle();
        ?>
</font></em></b></u></a></u>
<br></font><?php 
        echo getImageDesc();
        ?>
]]></caption></image><?php 
    }
    ?>
</simpleviewerGallery><?php 
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:request.php

示例14: getOption

<?php 
$imagesPerPage = getOption('images_per_page');
$count = 1;
while (next_image() && $count <= $imagesPerPage) {
    ?>

			<div class="image">
				<a href="<?php 
    echo getImageURL();
    ?>
"
					title="<?php 
    if (getImageDesc() == "") {
        echo getImageTitle();
    } else {
        echo getImageTitle() . ' - ' . getImageDesc();
    }
    ?>
"><img
					src="<?php 
    echo getCustomImageURL(100, 100, 100, 100);
    ?>
"
					alt="<?php 
    echo 'Image ' . ($count + ($currentPage - 1) * $imagesPerPage) . ' of ' . getNumImages();
    ?>
"
					width="100" height="100"<?php 
    if ($pc_AjaxFx) {
        echo '
				onLoad="new Effect.Fade(this, {from: 1 , to: .5, queue: \'parallel\', duration: .3});"
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php

示例15: while

    while (next_album()) {
        $a = $_zp_current_album;
        $thumb = $a->getAlbumThumbImage();
        $title = $a->getTitle();
        $desc = $a->getDesc();
        $customThumb = $thumb->getCustomImage(NULL, 202, 56, 202, 56, NULL, NULL, false);
        $url = getAlbumURL();
        echo "\t<div class='thumb' index='{$u}' title='{$title}' location='{$customThumb}' url='{$url}'><description>{$desc}</description></div>\n";
        $u++;
    }
} else {
    $u = 0;
    while (next_image()) {
        $title = getImageTitle();
        $size = getSizeCustomImage(NULL, 383);
        $desc = getImageDesc();
        if (!empty($desc)) {
            $desc = theme_clean($desc);
        } else {
            $desc = '';
        }
        $thumb = getImageThumb();
        $small = getCustomImageURL(NULL, 383);
        $full = getFullImageURL();
        $width = $size[0];
        $height = $size[1];
        $rating = $_zp_current_image->get('rating');
        echo "\t<div class='thumb' index='{$u}' title='{$title}' \n\t\twidth='{$width}' " . "\n\t\theight='{$height}' \n\t\turl='{$full}' \n\t\tpreviewUrl='{$small}'" . "\n\t\tlocation='{$thumb}' \n\t\trating='{$rating}' \n\t\tobject_id='" . $_zp_current_image->id . "'>" . "\n\t\t<description>\n\t\t\t{$desc}\n\t\t</description>\n\t</div>\n";
        $u++;
    }
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:fetch-thumbs.php


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