本文整理汇总了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);
}
示例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;
?>
示例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();
}
示例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">    </span> <a href="#" class="get_file_browser" rel="albums">Add more images</a>
- - <span class="icon cross">    </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];
?>
">
示例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;
}