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

PHP getImageTitle函数代码示例

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

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



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

示例1: getPlayerConfig

    /**
     * Prints the JS configuration of flv player
     *
     * @param string $moviepath the direct path of a movie (within the slideshow), if empty (within albums) the zenphoto function getUnprotectedImageURL() is used
     * @param string $imagetitle the title of the movie to be passed to the player for display (within slideshow), if empty (within albums) the function getImageTitle() is used
     * @param string $count unique text for when there are multiple player items on a page
     */
    function getPlayerConfig($moviepath = '', $imagetitle = '', $count = '')
    {
        global $_zp_current_image, $_zp_current_album;
        if (empty($moviepath)) {
            $moviepath = getUnprotectedImageURL();
            $ext = strtolower(strrchr(getUnprotectedImageURL(), "."));
        } else {
            $ext = strtolower(strrchr($moviepath, "."));
        }
        if (empty($imagetitle)) {
            $imagetitle = getImageTitle();
        }
        if (!empty($count)) {
            $count = "-" . $count;
        }
        $imgextensions = array(".jpg", ".jpeg", ".gif", ".png");
        if (is_null($_zp_current_image)) {
            $albumfolder = $moviepath;
            $filename = $imagetitle;
            $videoThumb = '';
        } else {
            $album = $_zp_current_image->getAlbum();
            $albumfolder = $album->name;
            $filename = $_zp_current_image->filename;
            $videoThumb = checkObjectsThumb(getAlbumFolder() . $albumfolder, $filename);
            if (!empty($videoThumb)) {
                $videoThumb = getAlbumFolder(WEBPATH) . $albumfolder . '/' . $videoThumb;
            }
        }
        $output = '';
        $output .= '<p id="player' . $count . '"><a href="http://www.macromedia.com/go/getflashplayer">' . gettext("Get Flash") . '</a> to see this player.</p>
			<script type="text/javascript">';
        if ($ext === ".mp3" and !isset($videoThumb)) {
            $output .= '	var so = new SWFObject("' . WEBPATH . '/' . ZENFOLDER . '/plugins/flvplayer/' . getOption("flv_player_version") . '.swf","player' . $count . '","' . getOption('flv_player_width') . '","' . FLV_PLAYER_MP3_HEIGHT . '","7");';
        } else {
            $output .= '	var so = new SWFObject("' . WEBPATH . '/' . ZENFOLDER . '/plugins/flvplayer/' . getOption("flv_player_version") . '.swf","player' . $count . '","' . getOption('flv_player_width') . '","' . getOption('flv_player_height') . '","7");';
            $output .= 'so.addVariable("displayheight","' . getOption('flv_player_displayheight') . '");';
        }
        $output .= 'so.addParam("allowfullscreen","true");
			so.addVariable("file","' . $moviepath . '&amp;title=' . strip_tags($imagetitle) . '");
			' . (!empty($videoThumb) ? 'so.addVariable("image","' . $videoThumb . '")' : '') . '
			so.addVariable("backcolor","' . getOption('flv_player_backcolor') . '");
			so.addVariable("frontcolor","' . getOption('flv_player_frontkcolor') . '");
			so.addVariable("lightcolor","' . getOption('flv_player_lightcolor') . '");
			so.addVariable("screencolor","' . getOption('flv_player_screencolor') . '");
			so.addVariable("autostart","' . (getOption('flv_player_autostart') ? 'true' : 'false') . '");
			so.addVariable("overstretch","true");
			so.addVariable("bufferlength","' . getOption('flv_player_buffer') . '");
			so.addVariable("controlbar","' . getOption('flv_player_controlbar') . '");
			so.write("player' . $count . '");
			</script>';
        return $output;
    }
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:60,代码来源:flvplayer.php


示例2: theme_content

    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Colorbox section -->
		<div id="images">
			<?php 
        $points = array();
        while (next_image()) {
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            ?>
				<div class="image">
					<div class="imagethumb">
						<?php 
            if (isImagePhoto()) {
                // colorbox is only for real images
                $link = html_encode(getDefaultSizedImage()) . '" class="thickbox"';
            } else {
                $link = html_encode(getImageURL()) . '"';
            }
            ?>
						<a href="<?php 
            echo $link;
            ?>
" title="<?php 
            echo getBareImageTitle();
            ?>
">
							<?php 
            printImageThumb(getImageTitle());
            ?>
						</a></div>
				</div>
				<?php 
        }
        ?>
		</div>
		<br class="clearall" />
		<?php 
        @call_user_func('printSlideShowLink');
    }
开发者ID:rb26,项目名称:zenphoto,代码行数:46,代码来源:functions.php


示例3: m9GetRSS

function m9GetRSS($option)
{
    global $_zp_current_album;
    $host = htmlentities($_SERVER['HTTP_HOST'], ENT_QUOTES, 'UTF-8');
    $lang = getOption('locale');
    switch ($option) {
        case 'gallery':
            return 'http://' . $host . WEBPATH . '/rss.php?lang=' . $lang;
        case 'album':
            return 'http://' . $host . WEBPATH . '/rss.php?albumtitle=' . urlencode(getAlbumTitle()) . '&amp;albumname=' . urlencode($_zp_current_album->getFilename()) . '&amp;lang=' . $lang;
        case 'collection':
            return 'http://' . $host . WEBPATH . '/rss.php?albumtitle=' . urlencode(getAlbumTitle()) . '&amp;folder=' . urlencode($_zp_current_album->getFilename()) . '&amp;lang=' . $lang;
        case 'comments':
            return 'http://' . $host . WEBPATH . '/rss-comments.php?lang=' . $lang;
        case 'comments-image':
            return 'http://' . $host . WEBPATH . '/rss-comments.php?id=' . $_zp_current_image->getID() . '&amp;title=' . urlencode(getImageTitle()) . '&amp;type=image&amp;lang=' . $lang;
        case 'comments-album':
            return 'http://' . $host . WEBPATH . '/rss-comments.php?id=' . $_zp_current_album->getID() . '&amp;title=' . urlencode(getAlbumTitle()) . '&amp;type=album&amp;lang=' . $lang;
        case 'albums-rss':
            return 'http://' . $host . WEBPATH . '/rss.php?lang=' . $lang . '&amp;albumsmode';
    }
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:22,代码来源:functions.php


示例4: theme_content

    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Image page section -->
		<div id="images">
			<?php 
        $points = array();
        while (next_image()) {
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            ?>
				<div class="image">
					<div class="imagethumb"><a href="<?php 
            echo html_encode(getImageURL());
            ?>
" title="<?php 
            echo html_encode(getBareImageTitle());
            ?>
"><?php 
            printImageThumb(getImageTitle());
            ?>
</a></div>
				</div>
				<?php 
        }
        ?>
		</div>
		<br class="clearall" />
		<?php 
        @call_user_func('printSlideShowLink');
    }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:36,代码来源:functions.php


示例5: define

<?php

require_once 'theme_functions.php';
define("AREA", GALLERY);
TileSet::init(getGalleryTitle() . ' : ' . getAlbumTitle() . ' : ' . getImageTitle(), "album");
include_once 'template.php';
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:6,代码来源:image.php


示例6: getFullImageURL

			<div id="image">
				<div>
					<?php 
$fullimage = getFullImageURL();
if (!empty($fullimage)) {
    ?>
						<a href="<?php 
    echo htmlspecialchars($fullimage);
    ?>
" title="<?php 
    echo getBareImageTitle();
    ?>
">
							<?php 
}
printDefaultSizedImage(html_encode(getImageTitle()), 'image', 'player');
if (!empty($fullimage)) {
    ?>
						</a>
						<?php 
}
?>
				</div>
			</div>
			<div id="data">
<?php 
if (getImageMetaData()) {
    echo '<div>' . printImageMetadata() . '</div>';
}
?>
			</div>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例7: while

    <div id="images_tlg">
		<?php 
while (next_image()) {
    ?>

		<div class="image">
			<div id="image_box">
			<div id="image_position">
			<a href="<?php 
    echo getImageURL();
    ?>
" title="<?php 
    echo getImageTitle();
    ?>
"><?php 
    printImageThumb(getImageTitle());
    ?>
</a>
			</div>
			</div>
		</div>


		<?php 
}
?>
	<p style="margin:0px;padding:0px;clear: both; ">&nbsp;</p>
	</div>

	<?php 
printPageListWithNav("« prev", "next »");
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例8: printDefaultSizedImage

    ?>
">
							<?php 
    printDefaultSizedImage(html_encode(getImageTitle()), 'image', 'player');
    ?>
						</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>';
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例9: printImageTitle

/**
 * Prints title of the current image
 *
 * @author Ozh
 */
function printImageTitle()
{
    echo html_encodeTagged(getImageTitle());
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:9,代码来源:template-functions.php


示例10: printImageDiv

/**
 * @deprecated
 * @since 1.4.3
 */
function printImageDiv()
{
    deprecated_functions::notify(gettext('Use printImageThumb().'));
    if (!isset($_GET['sortable'])) {
        echo '<a href="' . html_encode(getImageURL()) . '" title="' . html_encode(getImageTitle()) . '">';
    }
    printImageThumb(getImageTitle());
    if (!isset($_GET['sortable'])) {
        echo '</a>';
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:15,代码来源:deprecated-functions.php


示例11: 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


示例12: getPlayerConfig

    /**
     * Prints the JS configuration of flv player
     *
     * @param string $moviepath the direct path of a movie (within the slideshow), if empty (within albums) the ZenPhoto function getUnprotectedImageURL() is used
     * @param string $imagetitle the title of the movie to be passed to the player for display (within slideshow), if empty (within albums) the function getImageTitle() is used
     * @param string $count unique text for when there are multiple player items on a page
     */
    function getPlayerConfig($moviepath = '', $imagetitle = '', $count = '')
    {
        global $_zp_current_image, $_zp_current_album, $_flv_player;
        if (empty($moviepath)) {
            $moviepath = getUnprotectedImageURL();
            $ext = strtolower(strrchr(getUnprotectedImageURL(), "."));
        } else {
            $ext = strtolower(strrchr($moviepath, "."));
        }
        if (empty($imagetitle)) {
            $imagetitle = getImageTitle();
        }
        if (!empty($count)) {
            $count = "-" . $count;
        }
        $imgextensions = array(".jpg", ".jpeg", ".gif", ".png");
        if (is_null($_zp_current_image)) {
            $albumfolder = $moviepath;
            $filename = $imagetitle;
            $videoThumb = '';
        } else {
            $album = $_zp_current_image->getAlbum();
            $albumfolder = $album->name;
            $filename = $_zp_current_image->filename;
            $videoThumb = $_zp_current_image->objectsThumb;
            if (!empty($videoThumb)) {
                $videoThumb = getAlbumFolder(WEBPATH) . $albumfolder . '/' . $videoThumb;
            }
        }
        $output = '';
        $output .= '<p id="player' . $count . '">' . gettext('The flv player is not installed. Please install or activate the flv player plugin.') . '</p>
			<script type="text/javascript">' . "\n\n";
        if ($ext === ".mp3" and !isset($videoThumb)) {
            $output .= 'var so = new SWFObject("' . WEBPATH . "/" . USER_PLUGIN_FOLDER . '/flvplayer/' . $_flv_player . '","player' . $count . '","' . getOption('flv_player_width') . '","' . FLV_PLAYER_MP3_HEIGHT . '",7);' . "\n";
        } else {
            $output .= 'var so = new SWFObject("' . WEBPATH . "/" . USER_PLUGIN_FOLDER . '/flvplayer/' . $_flv_player . '","player' . $count . '","' . getOption('flv_player_width') . '","' . getOption('flv_player_height') . '","7");' . "\n";
        }
        $output .= 'so.addVariable("file","' . $moviepath . '&amp;title=' . strip_tags($imagetitle) . '");' . "\n";
        if (!empty($videoThumb)) {
            $output .= 'so.addVariable("image","' . $videoThumb . '");' . "\n";
        }
        $output .= 'so.addVariable("backcolor","' . getOptionColor('flv_player_backcolor') . '");' . "\n";
        $output .= 'so.addVariable("frontcolor","' . getOptionColor('flv_player_frontcolor') . '");' . "\n";
        $output .= 'so.addVariable("lightcolor","' . getOptionColor('flv_player_lightcolor') . '");' . "\n";
        $output .= 'so.addVariable("screencolor","' . getOptionColor('flv_player_screencolor') . '");' . "\n";
        $output .= 'so.addVariable("autostart",' . (getOption('flv_player_autostart') ? 'true' : 'false') . ');' . "\n";
        $output .= 'so.addVariable("stretching","' . getOption('flv_player_stretching') . '");' . "\n";
        $output .= 'so.addVariable("bufferlength",' . getOption('flv_player_buffer') . ');' . "\n";
        $output .= 'so.addVariable("controlbar","' . getOption('flv_player_controlbar') . '");' . "\n";
        $output .= 'so.addParam("allowfullscreen",true);' . "\n";
        $output .= 'so.write("player' . $count . '");' . "\n";
        $output .= "\n</script>\n";
        return $output;
    }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:61,代码来源:flvplayer.php


示例13: foreach

                     foreach ($set['content'] as $image) {
                         if ($image['extension'] == "txt") {
                             // Read in text file and use contents for description
                             $f = $image['path'] . '/' . $image['file'];
                             $fh = fopen($f, 'r');
                             $contents = fread($fh, filesize($f));
                             fclose($fh);
                             // Add description attribute to this set if available
                             $g->setAttribute('description', $contents);
                         } else {
                             $img = $doc->createElement('img');
                             //$img->setAttribute('path', $image['path']);
                             $img->setAttribute('src', $image['file']);
                             $img->setAttribute('width', $image['width']);
                             $img->setAttribute('height', $image['height']);
                             $img->setAttribute('title', getImageTitle($image['file']));
                             $img->setAttribute('data-extension', $image['extension']);
                             $img->setAttribute('data-last-modified', $image['modified']);
                             $g->appendChild($img);
                         }
                     }
                     $c->appendChild($g);
                 }
             }
             // Close the category tag
             $a->appendChild($c);
         }
     }
     // Close the album tag
     $r->appendChild($a);
 }
开发者ID:uptonic,项目名称:Moopix,代码行数:31,代码来源:images.php


示例14: printCustomSizedImageMaxSpace

    printCustomSizedImageMaxSpace(getImageTitle(), 490, 700);
    ?>
</a><?php 
}
?>
						<?php 
if ($zpgal_final_link == 'standard-new') {
    ?>
<a target="_blank" href="<?php 
    echo htmlspecialchars(getFullImageURL());
    ?>
" title="<?php 
    echo getBareImageTitle();
    ?>
"><?php 
    printCustomSizedImageMaxSpace(getImageTitle(), 490, 700);
    ?>
</a><?php 
}
?>
					</div>
					<?php 
if (function_exists('printGoogleMap')) {
    setOption('gmap_width', 490, false);
    printGoogleMap();
}
?>

				</div>
				<?php 
if (function_exists('printCommentForm')) {
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:image.php


示例15: googleCheckout

/**
 * Places Google Checkout Options on your page.
 * 
 * @param array $pricelist optional array of specific pricing for the image.
 */
function googleCheckout($pricelist = NULL)
{
    if (!is_array($pricelist)) {
        $pricelist = GoogleCheckoutPricelistFromString(getOption('GoogleCheckout_pricelist'));
    }
    ?>

<div id="GoogleCheckout" class="product">
   <input type="hidden" class="product-image" value="<?php 
    echo getImageThumb();
    ?>
" />
   <input type="hidden" class="product-title" value="Album: <?php 
    echo getAlbumTitle();
    ?>
 Photo: <?php 
    echo getImageTitle();
    ?>
" />
   <input type="hidden" class="product-shipping" value="<?php 
    echo getOption('googleCheckout_ship_cost');
    ?>
" />
   Size/Finish: <select class="product-attr-sizefinish">
	<option googlecart-set-product-price=""></option>
	<?php 
    foreach ($pricelist as $key => $price) {
        ?>
	<option googlecart-set-product-price="<?php 
        echo $price;
        ?>
"><?php 
        echo $key;
        ?>
</option>
   <?php 
    }
    ?>
   </select><br />
   Price: <span class="product-price">Choose Size/Finish</span><br />
   How Many: <input type="text" class="googlecart-quantity" value="1" style="width:20px;" />&nbsp;&nbsp;
   <span class="googlecart-add-button"></span>
</div>
<?php 
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:50,代码来源:GoogleCheckout.php


示例16: getFullImageURL

    $fullimage = getFullImageURL();
} else {
    $fullimage = NULL;
}
if (!empty($fullimage)) {
    ?>
											<a href="<?php 
    echo html_encode(pathurlencode($fullimage));
    ?>
" title="<?php 
    printBareImageTitle();
    ?>
" class="thickbox">
												<?php 
}
printCustomSizedImage(getImageTitle(), null, 520);
if (!empty($fullimage)) {
    ?>
											</a>
											<?php 
}
?>
									</div>
									<?php 
if (function_exists('printAddToFavorites')) {
    printAddToFavorites($_zp_current_image);
}
@call_user_func('printRating');
@call_user_func('printCommentForm');
printCodeblock(2);
footer();
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:image.php


示例17: html_encode

" class="image">
						<a title="<?php 
    echo html_encode(getImageTitle());
    ?>
" href="<?php 
    echo html_encode($imgURL);
    ?>
"<?php 
    echo $boxclass . $cbRel;
    ?>
>
							<img src="<?php 
    echo getCustomImageURL(NULL, 298, 187, 298, 187, NULL, NULL, true);
    ?>
" alt="<?php 
    echo html_encode(getImageTitle());
    ?>
" />
						</a>
					</li>
<?php 
}
?>
				</ul>
				<div class="data">
					<?php 
if (getAlbumTitle()) {
    echo '<div class="c"><h4 class="box title">' . getAlbumTitle() . '</h4></div>';
}
?>
					<?php 
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例18: printCustomSizedImageMaxHeight

/**
 * @deprecated
 */
function printCustomSizedImageMaxHeight($maxheight)
{
    deprecated_function_notify(gettext('Use printCustomSizedImageMaxSpace().'));
    if (getFullWidth() === getFullHeight() or getDefaultHeight() > $maxheight) {
        printCustomSizedImage(getImageTitle(), null, null, $maxheight, null, null, null, null, null, null);
    } else {
        printDefaultSizedImage(getImageTitle());
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:12,代码来源:deprecated-functions.php


示例19: printImageMap

/**
 * Causes a Google map to be printed based on the gps data in the current image
 * @param string $zoomlevel the zoom in for the map
 * @param string $defaultmaptype the starting display of the map valid values are G_NORMAL_MAP | G_SATELLITE_MAP | G_HYBRID_MAP | G_PHYSICAL_MAP | G_SATELLITE_3D_MAP
 * @param int $width is the image width of the map. NULL will use the default
 * @param int $height is the image height of the map. NULL will use the default
 * @param string $text text for the pop-up link
 * @param bool $toggle set to true to hide initially
 * @param string $id DIV id
 * @param array $mapselections array of the maps to be used.
 * @param bool $addphysical Adds physical map.
 * @param bool $addwiki Adds wikipedia georeferenced data on your maps
 * @param string $background the background color for the map
 * @param string $mapcontrol values None | Small | Large
 * @param string $maptypecontrol values Buttons | List
 * @param string $customJS the extra javascript needed by the theme
 */
function printImageMap($zoomlevel = NULL, $defaultmaptype = NULL, $width = NULL, $height = NULL, $text = NULL, $toggle = true, $id = 'googlemap', $mapselections = NULL, $addwiki = NULL, $background = NULL, $mapcontrol = NULL, $maptypecontrol = NULL, $customJS = NULL)
{
    global $_zp_phoogle;
    if (getOption('gmaps_apikey') != '') {
        $exif = getImageEXIFData();
        if (!empty($exif['EXIFGPSLatitude']) && !empty($exif['EXIFGPSLongitude'])) {
            $defaultmaptype = setupAllowedMaps($defaultmaptype, $mapselections);
            if ($zoomlevel) {
                $_zp_phoogle->zoomLevel = $zoomlevel;
            }
            if (!is_null($width)) {
                $_zp_phoogle->setWidth($width);
            } else {
                $_zp_phoogle->setWidth(getOption('gmaps_width'));
            }
            if (!is_null($height)) {
                $_zp_phoogle->setHeight($height);
            } else {
                $_zp_phoogle->setHeight(getOption('gmaps_height'));
            }
            if (!is_null($mapcontrol)) {
                $_zp_phoogle->setControlMap($mapcontrol);
            } else {
                $_zp_phoogle->setControlMap(getOption('gmaps_control'));
            }
            if (!is_null($maptypecontrol)) {
                $_zp_phoogle->setControlMapType($maptypecontrol);
            } else {
                $_zp_phoogle->setControlMapType(getOption('gmaps_control_maptype'));
            }
            if (!is_null($background)) {
                $_zp_phoogle->setBackGround($background);
            } else {
                $_zp_phoogle->setBackGround(getOption('gmaps_background'));
            }
            if (!is_null($customJS)) {
                $_zp_phoogle->customJS = $customJS;
            }
            $lat = $exif['EXIFGPSLatitude'];
            $long = $exif['EXIFGPSLongitude'];
            if ($exif['EXIFGPSLatitudeRef'] == 'S') {
                $lat = '-' . $lat;
            }
            if ($exif['EXIFGPSLongitudeRef'] == 'W') {
                $long = '-' . $long;
            }
            $desc = getImageDesc();
            if (empty($desc)) {
                $desc = getImageTitle();
            }
            addPoint($lat, $long, js_encode($desc));
            $dataid = $id . '_data';
            //to avoid problems with google earth and the toggle options, the toggle option is removed from here when GE is activated
            //it is possible to have both functionnality work but the toogle option should then be integrated in the phoogle map class dirctly within the script
            //that calls the map and should alos trigger a map type change. check Sobre theme or  have alook at www.kaugite.com for an example
            $toggle = $toggle && $defaultmaptype != 'G_SATELLITE_3D_MAP';
            if (is_null($text)) {
                $text = gettext('Google Map');
            }
            echo "<a href=\"javascript: vtoggle('{$dataid}');\" title=\"" . gettext('Display or hide the Google Map.') . "\">";
            echo $text;
            echo "</a>\n";
            echo "  <div id=\"{$dataid}\"" . ($toggle ? " style=\"color:black; visibility: hidden;position:absolute;left: -3000px;top: -3000px\"" : '') . ">\n";
            $_zp_phoogle->showMap();
            echo "  </div>\n";
        }
    }
}
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:85,代码来源:google_maps.php


示例20: gettext

				<?php 
} else {
    ?>
					<li class="disabled"><a href="#"><?php 
    echo gettext('next');
    ?>
 &rarr;</a></li>
				<?php 
}
?>
				</ul>
			</div>

			<div class="center">
				<?php 
printDefaultSizedImage(getImageTitle(), 'image ombre remove-attributes');
?>
			</div>

			<div class="row photo-description">
				<div class="span3 offset2">
					<h4>
						<?php 
if (getOption('zpB_show_exif') && getImageMetaData()) {
    ?>
							<a href="#exif_data" data-toggle="modal"><i class="icon-info-sign"></i></a>
						<?php 
}
?>
						<?php 
printImageTitle(true);
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:image.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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