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


PHP Asset::img方法代码示例

本文整理汇总了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);
 }
开发者ID:gamchantoi,项目名称:sisfo-ft,代码行数:20,代码来源:asset.php

示例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 &copy; 2015 Loomba!. All rights reserved.<br>
        </div>
    </div>
开发者ID:nihonLoomba,项目名称:noteshare-,代码行数:30,代码来源:success.php

示例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');
    ?>
开发者ID:Trd-vandolph,项目名称:game-bootcamp,代码行数:31,代码来源:template.php

示例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>
						
开发者ID:ClixLtd,项目名称:pccupload,代码行数:28,代码来源:questions.php

示例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 
开发者ID:OICTH1,项目名称:mtpizza,代码行数:31,代码来源:itemdetail.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>
开发者ID:katsuwo,项目名称:bbs,代码行数:30,代码来源:template.php

示例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;" />&nbsp;<?php 
    echo $text_logged;
    ?>
    </div>
    <?php 
}
?>
</div>
开发者ID:nvmanh,项目名称:codeigniter-shop,代码行数:25,代码来源:banner.php

示例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>
开发者ID:nihonLoomba,项目名称:noteshare-,代码行数:30,代码来源:sidebar.php

示例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>&nbsp;&nbsp;&nbsp;<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');
开发者ID:ClixLtd,项目名称:pccupload,代码行数:31,代码来源:ppi_missing_info_chase.php

示例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-->
开发者ID:daniel-rodas,项目名称:rodasnet.com,代码行数:30,代码来源:index.php

示例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>
开发者ID:Trd-vandolph,项目名称:game-bootcamp,代码行数:31,代码来源:add.php

示例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>
开发者ID:stevewest,项目名称:setui,代码行数:28,代码来源:leaf.php

示例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 . ';">&nbsp;</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"');
 }
开发者ID:relinkus,项目名称:ManageFan,代码行数:5,代码来源:Calendar_lib.php

示例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>
开发者ID:kawanoseiya,项目名称:TEMP,代码行数:31,代码来源:docs-header-simple.php

示例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 -->
开发者ID:nockout,项目名称:tshpro,代码行数:31,代码来源:dashboard.php


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