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


PHP Assets::assets_url方法代码示例

本文整理汇总了PHP中Assets::assets_url方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::assets_url方法的具体用法?PHP Assets::assets_url怎么用?PHP Assets::assets_url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Assets的用法示例。


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

示例1: module_js_path

/**
 * Returns full site url to assets javascript module folder.
 *
 * @return string    Returns full site url to assets javascript module folder.
 */
function module_js_path()
{
    return Assets::assets_url('js', true);
}
开发者ID:vamsi683,项目名称:accept,代码行数:9,代码来源:Assets.php

示例2: foreach

<div id="waitload" class="well center" style="display:none;">
    <img src="<?php 
echo Assets::assets_url() . 'images/ajax-loader.gif';
?>
" width="28" height="28" border="0" align="absmiddle" /><br />Operation in progress. Please wait...
</div>
<div id="ajaxStatusBox" style="display:none;"><div id="ajaxStatus" class="alert"></div></div>
<div class="right"><a href="#" class="btn" id="reload_comments"><i class="icon-refresh"></i> Update</a></div>
<div id="comments">
<?php 
if (isset($comments) && is_array($comments) && count($comments)) {
    $count = 1;
    foreach ($comments as $comment) {
        ?>
	<div class="well">
		<div data-toggle="collapse" href="#comment<?php 
        echo $count;
        ?>
">
			<b><?php 
        echo $comment->creator . " " . $comment->created;
        ?>
</b>
		</div>
		<div id="comment<?php 
        echo $count;
        ?>
">
			<p><?php 
        echo $comment->comment;
        ?>
开发者ID:brkrishna,项目名称:freelance,代码行数:31,代码来源:thread_view.php

示例3: assets_path

/**
 * Returns full site url to assets base folder.
 *
 * @access public
 *
 * @return string Returns full site url to assets base folder.
 */
function assets_path()
{
    return Assets::assets_url();
}
开发者ID:triasfahrudin,项目名称:siska21,代码行数:11,代码来源:assets.php

示例4: explode

    }
}
?>
			</select>
		</div>

		<div id="images" class="toggle" style="display:none">	
			<div style="padding:10px; background:#ffffcc; margin-bottom:10px">
				<b>Item Image Gallery</b>
				- - <span class="icon images">&#160; &#160; </span> <a href="#" class="get_file_browser" rel="albums">Add more images</a>
				- - <span class="icon cross">&#160; &#160; </span> <a href="#" id="remove_images">Remove Selected</a>
			</div>
				
			<div id="sortable_images_wrapper">
				<?php 
$img_path = Assets::assets_url();
foreach ($images as $data) {
    $data = explode('|', $data);
    ?>
					<div>
						<span>drag</span>
						<img src="<?php 
    echo "{$img_path}/{$data['0']}";
    ?>
" title="<?php 
    echo $data[1];
    ?>
" alt="<?php 
    echo $data[1];
    ?>
">
开发者ID:plusjade,项目名称:plusjade,代码行数:31,代码来源:edit_item.php

示例5: strpos

 /**
  * This method sets the URL to your assets.
  *
  * @param  string       the URL to the assets
  *
  * @return void
  */
 static function set_assets_url($url)
 {
     Assets::$assets_url = $url;
     Assets::$counter_cache = NULL;
     Assets::$dynamic = strpos($url, '%d') !== FALSE;
 }
开发者ID:ratbird,项目名称:hope,代码行数:13,代码来源:Assets.class.php


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