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


PHP getImageTitle函数代码示例

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


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


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