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


PHP _adRenderBuildImageUrlPrefix函数代码示例

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


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

示例1: _adRenderBuildFileUrl

function _adRenderBuildFileUrl($aBanner, $useAlt = false, $params = '')
{
    $conf = $GLOBALS['_MAX']['CONF'];
    $fileUrl = '';
    if ($aBanner['type'] == 'url') {
        $fileUrl = $useAlt ? $aBanner['alt_imageurl'] : $aBanner['imageurl'];
        if (!empty($params)) {
            $fileUrl .= "?{$params}";
        }
    } else {
        $fileName = $useAlt ? $aBanner['alt_filename'] : $aBanner['filename'];
        $params = !empty($params) ? $params : '';
        if (!empty($fileName)) {
            if ($aBanner['type'] == 'web') {
                $fileUrl = _adRenderBuildImageUrlPrefix() . "/{$fileName}";
                if (!empty($params)) {
                    $fileUrl .= "?{$params}";
                }
            } elseif ($aBanner['type'] == 'sql') {
                $fileUrl = MAX_commonGetDeliveryUrl($conf['file']['image']) . "?filename={$fileName}&contenttype={$aBanner['contenttype']}";
                if (!empty($params)) {
                    $fileUrl .= "&{$params}";
                }
            }
        }
    }
    return $fileUrl;
}
开发者ID:hawodi,项目名称:revive-adserver,代码行数:28,代码来源:al.php

示例2: MAX_layerGetHtml

function MAX_layerGetHtml($output, $uniqid)
{
    global $target;
    global $align, $collapsetime, $padding, $closetext;
    $conf = $GLOBALS['_MAX']['CONF'];
    // Register input variables
    MAX_commonRegisterGlobalsArray(array('align', 'collapsetime', 'padding', 'closetext'));
    if (!isset($padding)) {
        $padding = '2';
    }
    // Calculate layer size (inc. borders)
    $layer_width = $output['width'] + 4 + $padding * 2;
    $layer_height = $output['height'] + 30 + $padding * 2;
    // Create imagepath
    $imagepath = _adRenderBuildImageUrlPrefix() . '/layerstyles/geocities/';
    // return HTML code
    return '
<div id="MAX_c' . $uniqid . '" style="position:absolute; width:' . $layer_width . 'px; height:' . $layer_height . 'px; z-index:98; left: 0px; top: 0px; visibility: hidden">
	<table width="100%" border="1" cellspacing="0" cellpadding="0" style="border-style: ridge; border-color: #ffffff">
		<tr>
			<td bordercolor="#DDDDDD" bgcolor="#000099" align="right" style="padding: 3px 3px 2px">' . '<img src="' . $imagepath . 'expand.gif" alt="" style="width:12px;height:12px;margin: 0 3px;" onclick="MAX_geopop(\'expand\', \'' . $uniqid . '\')" />' . '<img src="' . $imagepath . 'close.gif" alt="" style="width:12px;height:12px;" onclick="MAX_geopop(\'close\', \'' . $uniqid . '\')" />' . '</td>
		</tr>
' . (strlen($output['url']) && strlen($output['alt']) ? '		<tr>
			<td bgcolor="#FFFFCC" align="center" style="font-family: Arial, helvetica, sans-serif; font-size: 11px; padding: 2px"><a href="' . $output['url'] . '" ' . (isset($target) ? 'target="' . $target . '"' : '') . 'style="color: #0000ff">' . $output['alt'] . '</a></td>
		</tr>
' : '') . '	</table>
</div>
<div id="MAX_o' . $uniqid . '" style="position:absolute; width:' . $layer_width . 'px; height:' . $layer_height . 'px; z-index:99; left: 0px; top: 0px; visibility: hidden">
	<table width="100%" border="1" cellspacing="0" cellpadding="0" style="border-style: outset; border-color: #ffffff">
		<tr>
			<td bordercolor="#DDDDDD" bgcolor="#000099" align="right" style="padding: 3px 3px 2px">' . '<img src="' . $imagepath . 'expand-d.gif" alt="" style="width:12px;height:12px;margin: 0 3px;" />' . '<img src="' . $imagepath . 'collapse.gif" alt="" style="width:12px;height:12px;" onclick="MAX_geopop(\'collapse\', \'' . $uniqid . '\')" />' . '</td>
		</tr>
		<tr>
			<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td align="center">
							<table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
								<tr>
									<td width="' . $output['width'] . '" height="' . $output['height'] . '" align="center" valign="middle" style="padding: ' . $padding . 'px">' . $output['html'] . '</td>
								</tr>
							</table>
						</td>
					</tr>' . (strlen($closetext) ? '
					<tr>
						<td align="center" bgcolor="#FFFFFF" style="font-family: Arial, helvetica, sans-serif; font-size: 9px; padding: 1px">' . '<a href="#" onclick="MAX_geopop(\'collapse\', \'' . $uniqid . '\');return!1;" style="color:#0000ff">' . $closetext . '</a>' . '</td>
					</tr>' : '') . '
				</table>
			</td>
		</tr>
	</table>
</div>
';
}
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:54,代码来源:layerstyle.inc.php

示例3: getImageUrlFromFilename

function getImageUrlFromFilename($filename)
{
    return _adRenderBuildImageUrlPrefix() . "/" . $filename;
}
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:4,代码来源:commonDelivery.php

示例4: test_adRenderBuildImageUrlPrefix

 /**
  * build an image URL prefix
  *
  */
 function test_adRenderBuildImageUrlPrefix()
 {
     $this->sendMessage('test_adGetImageUrlPrefix');
     $GLOBALS['_MAX']['CONF']['webpath']['images'] = 'www.max.net/www/images';
     $ret = _adRenderBuildImageUrlPrefix();
     $this->assertEqual($ret, 'http://www.max.net/www/images');
 }
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:11,代码来源:adRender.del.test.php


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