當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。