本文整理汇总了PHP中Asset::img方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset::img方法的具体用法?PHP Asset::img怎么用?PHP Asset::img使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Asset
的用法示例。
在下文中一共展示了Asset::img方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: image
/**
* Asset Image
*
* Insert a image tag
*
* Usage:
*
* {{ asset:image file="" alt="" }}
*
* @return array Full url to image asset
*/
public function image()
{
$file = $this->attribute('file');
$alt = $this->attribute('alt');
$attributes = $this->attributes();
unset($attributes['file']);
unset($attributes['alt']);
return Asset::img($file, $alt, $attributes);
}
示例2: array
echo Asset::js('chart-master/Chart.js');
?>
<META HTTP-EQUIV="Refresh" CONTENT="10;URL=http://susumago.sakura.ne.jp/noteshare/">
<title>送信完了</title>
</head>
<body class="body404">
<h1>送信完了</h1>
<div>
<br><br><br><br>
<?php
echo Asset::img('local/501506562.jpg', array('class' => '', 'align' => 'center', 'width' => '100%', 'height' => '200%'));
?>
</div>
<div class="file404">送信が完了しました!</div>
<div class="main404">
<br>下記リンクよりトップページに戻れます。
<div class="home404"><a class="e404" href="http://susumago.sakura.ne.jp/noteshare/home">ホームへ戻る</a></div>
</div>
<div class="foot404">
Copyright © 2015 Loomba!. All rights reserved.<br>
</div>
</div>
示例3: array
?>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!--[if IE]><script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<?php
echo Asset::css("jquery.remodal.css");
?>
<title><?php
echo $title;
?>
| Game-BootCamp | Get Your Kids the Most Powerful Skill in 21st Century</title>
</head>
<body>
<header>
<h1><?php
echo Html::anchor('/', Asset::img('logo/logo3_c.png', array('alt' => 'Game-bootcamp', 'style' => 'width: 100%;')));
?>
</h1>
<nav>
<div class="toggle"><i class="fa fa-bars"></i></div>
<ul>
<?php
if ($auth_status) {
?>
<li><?php
echo Html::anchor('/students/profile', '<i class="fa fa-user"></i> Profile');
?>
</li>
<li><?php
echo Html::anchor('/students/setting', '<i class="fa fa-cog"></i> Setting');
?>
示例4:
<div id="drClient" class="decisionPopup">
<h1>DR Client</h1>
<p>Please give the following reference to the senior</p>
<h2 id="drClientID">182440</h2>
</div>
<div id="ppiChecker">
<div id="validateSpinner" style="display: none;"><?php
echo Asset::img('darkspinner.gif');
?>
Please Wait...</div>
<input type="submit" value="Validate" id="validateButton">
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12 error" id="errorMessage" style="display: none;">
There has been an error!
</div>
示例5:
echo Asset::css('website/content/itemdetail.css');
?>
<div class="menu">
<div class="heading">
商品詳細
</div>
<div class="menuin">
<div class="detail">
<div class="menuname"><?php
echo $detail['item_name'];
?>
</div>
<div class="menuleft">
<?php
echo Asset::img($detail['img_path']);
?>
</div>
<div class="menuright">
<!--<div class="pricelist">-->
<?php
if ($detail['prices']['unit_price'] != null) {
?>
¥<span id="price"><?php
echo $detail['prices']['unit_price'];
?>
</span>
<?php
} else {
?>
S¥<span id="price_s"><?php
示例6: nl2br
<h3><?php
echo Html::anchor('bbs/index' . DS . $shortName, $boardTitle);
?>
</h3>
<h4><?php
if (isset($boardDescription)) {
echo nl2br($boardDescription);
}
?>
</h4>
</div>
<?php
if (isset($ad1)) {
echo $ad1 . '<BR>';
}
echo $content;
if (isset($ad2)) {
echo $ad2 . '<BR>';
}
?>
<div id ="footer">
<HR>
<?php
echo Html::anchor(Uri::base(), Asset::img('siteLogo_small.png'));
?>
Copyright(c)2015 AdlTalk. All Rights Reserved.
</div>
</body>
</html>
示例7: base_url
<div class="banner">
<div class="logo">
<img src="" title="<?php
echo $heading_title;
?>
" onclick="location = '<?php
echo base_url();
?>
admin/dashboard'" />
</div>
<?php
if (isset($loggedin_flg) && $loggedin_flg) {
?>
<div class="logged_in">
<img src="<?php
echo Asset::img('img/lock.png', true);
?>
" style="position: relative; top: 3px;" /> <?php
echo $text_logged;
?>
</div>
<?php
}
?>
</div>
示例8: array
<aside>
<div id="sidebar" class="nav-collapse ">
<!--sidebar menu start-->
<ul class="sidebar-menu" id="nav-accordion">
<p class="centered">
<!--<a href="Mypage.html"></a>-->
<?php
echo Asset::img('local/ui-sam.jpg', array('class' => 'img-circle', 'width' => '60'));
?>
<!--<img src="assets/img/ui-sam.jpg" class="img-circle" width="60"></a>-->
</p>
<h5 class="centered">Shouwa Note</h5>
<li class="mt">
<!--<i class="fa fa-desktop"></i>-->
<?php
echo Html::anchor('home/index', ' Home', array('class' => 'fa fa-desktop '));
?>
</li>
<li class="sub-menu">
<!--<i class="fa fa-dashboard"></i>-->
<?php
echo Html::anchor('mypage/index', ' MyPage', array('class' => 'fa fa-dashboard'));
?>
</li>
示例9: date
?>
</td>
<td><?php
echo date("d/m/Y", strtotime($chase['Pack Sent Date']));
?>
</td>
<td><a href='#' class='reprintPack' rel='<?php
echo $chase['Client ID'];
?>
'><?php
echo Asset::img('icons/print.gif', array('height' => 16, 'id' => 'print_pack_image_' . $chase['Client ID']));
?>
</a> <a href='#' class='packReturned' rel='<?php
echo $chase['Client ID'];
?>
'><?php
echo Asset::img('icons/tick-off.png', array('height' => 16, 'id' => 'pack_returned_image_' . $chase['Client ID']));
?>
</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
echo asset::js('ppi-referrals.js');
示例10: foreach
</div>
<?php
echo View::forge()->render('backend/index/new/_buyoption');
?>
<div class="col-md-4 btn-group" id="coin-choice">
<?php
if ($coins) {
?>
<?php
foreach ($coins as $item) {
?>
<a type="button" class="btn btn-default"><?php
echo Asset::img('coin/' . $item->file, array('data-coinid' => $item->id, 'data-name' => $item->name, 'alt' => $item->alt, 'style' => 'width:3.5em', 'class' => 'img-responsive img-rounded', 'tabindex' => '-1'));
?>
</a>
<?php
}
?>
<?php
} else {
?>
<p>No notes.</p>
<?php
}
?>
</div><!-- End. Button Group-->
示例11: simplexml_load_file
<?php
$feed_1 = 'https://www.google.com/calendar/feeds/grameencompany%40gmail.com/public/basic';
$rss_1 = simplexml_load_file($feed_1);
$feed_2 = 'https://www.google.com/calendar/feeds/en.bd%23holiday%40group.v.calendar.google.com/public/basic';
$rss_2 = simplexml_load_file($feed_2);
?>
<div id="loading">
<p><?php
echo Html::anchor('/students/', Asset::img('logo/icon_b.png', array('width' => '200', 'alt' => 'Game-bootcamp')));
?>
</p>
<img src="/assets/img/loading.gif">
</div>
<div id="contents-wrap">
<div id="main">
<form action="" method="post" enctype="multipart/form-data">
<?php
if ($user->place == 1) {
?>
<input name="place" type="radio" value="0" checked hidden>
<button href="" class="switch" title="Want to study at Home? Then, click this button."><i class="fa fa-undo"></i> Switch to Home Course Calendar</button>
<?php
}
?>
<?php
if ($user->place == 0 && $user->grameen_student == 1) {
?>
<input name="place" type="radio" value="1" checked hidden>
<button href="" class="switch" title="Want to study at Grameen Communications? Then, click this button."><i class="fa fa-undo"></i> Switch to Grameen Course Calendar</button>
示例12:
<li class="setui-leaf <?php
echo $active ? 'setui-active setui-open' : '';
?>
"
id="setui_<?php
echo $node->tree_id . '_' . $node->id;
?>
"
>
<a href="<?php
echo $url;
?>
"><?php
echo $name;
?>
</a>
<?php
if (!empty($branches)) {
echo Asset::img('triangle.png', ['class' => 'setui-link', 'data-parent' => 'setui_' . $node->tree_id . '_' . $node->id]);
}
?>
<?php
echo $branches;
?>
</li>
示例13: __format_row
private function __format_row($entry)
{
$time = strtotime($entry->date_start);
return '<div class="calendar-entry-row" style="background-color:' . $entry->item_color . ';"> </div>' . date('H:i', $time) . ' - ' . $this->ci->parser->_parse($entry->admin_layout, get_object_vars($entry), true) . ' ' . anchor('admin/calendar/view/' . $entry->id, Asset::img('module::edit.png', 'Edit'), 'class="view-entry-link"');
}
示例14: array
<nav class=" navbar-default navbar-custom" role="navigation">
<div class="container">
<div class="navbar-header">
<!--
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
-->
<a class="navbar-brand" href='<?php
echo Uri::create('shop/');
?>
'>
<?php
echo Asset::img('logo.png', array('height' => '40', 'alt' => ''));
?>
</a>
</div>
<!--
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a class="nav-link" href="color-picker.html"><i class="fa fa-envelope-o fa-2x"></i></a>
</li>
</ul>
</div>
-->
</div>
</nav>
</div>
示例15: lang
<?php
}
?>
<?php
if (array_key_exists('users', $this->permissions) or $this->current_user->group == 'admin') {
?>
<li>
<a class="tooltip-s" title="<?php
echo lang('cp:manage_users');
?>
" href="<?php
echo site_url('admin/users');
?>
"><?php
echo Asset::img('icons/users.png', lang('cp:manage_users'));
?>
</a>
</li>
<?php
}
?>
</ul>
</div>
</section>
</div>
<?php
}
?>
<!-- End Quick Links -->