本文整理匯總了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;
}