本文整理汇总了PHP中Asset::get_file方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset::get_file方法的具体用法?PHP Asset::get_file怎么用?PHP Asset::get_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Asset
的用法示例。
在下文中一共展示了Asset::get_file方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
echo \Extension\Form::email('account_email', isset($account_email) ? $account_email : '', array('id' => 'account_email', 'maxlength' => '255', 'class' => 'form-control', 'autocomplete' => 'off'));
?>
</div>
</div>
<div class="form-group">
<label for="account_captcha" class="col-sm-2 control-label"><?php
echo __('account_captcha');
?>
: <span class="txt_require">*</span></label>
<div class="col-sm-5">
<?php
echo \Asset::img('securimage_show.php', array('class' => 'captcha'));
?>
<a href="#" onclick="$('.captcha').attr('src', '<?php
echo \Asset::get_file('securimage_show.php', 'img');
?>
?' + Math.random()); this.blur(); return false;" tabindex="-1"><?php
echo \Asset::img('reload.gif');
?>
</a>
<div>
<?php
echo \Form::input('captcha', isset($captcha) ? $captcha : null, array('id' => 'account_captcha', 'class' => 'form-control input-captcha', 'placeholder' => __('account_captcha_enter_text_you_see_in_image')));
?>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
示例2: isset
<!-- --><?php
//= (isset($navigation) ? $navigation : '' );
?>
</nav>
</div><!-- End /.row-->
<div class="row">
<h1 >
<?php
echo isset($pageTitle) ? $pageTitle : '';
?>
</h1>
<hr>
</div><!-- End /.row-->
<?php
echo isset($content) ? $content : '';
?>
</div> <!-- End /#wrapper .container-fluid -->
<!-- Add path to AngularJS app-->
<?php
echo Asset::add_path('app/', 'ngApp', ['js', 'html']);
?>
<!-- JS Libs -->
<?php
echo Asset::js(['//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.3/angular.min.js', 'https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.3/angular-animate.min.js', 'https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.12.1/ui-bootstrap-tpls.min.js', 'https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.min.js', Asset::get_file('app.module.js', 'ngApp'), Asset::get_file('common/frontCover/frontCoverController.js', 'ngApp'), Asset::get_file('common/sidebar/sidebarController.js', 'ngApp'), Asset::get_file('common/header/headerController.js', 'ngApp'), Asset::get_file('components/blog/blogController.js', 'ngApp'), Asset::get_file('components/authentication/authenticationController.js', 'ngApp')]);
?>
</body>
</html>
示例3: url
?>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<style media="screen">
#logo{
background-image: url(<?php
echo Asset::get_file('logo.png', 'img');
?>
);
background-size: contain;
}
.wallpaper{
width: 100%;
height: 100%;
/*background-image: url(<?php
echo Asset::get_file('b.png', 'img');
?>
);
background-repeat: space;*/
}
</style>
</head>
<body>
<div class="wallpaper">
<div class="main">
<header>
<div class="header-top">
<div class="navigator">
<ul class="navi-list">
<li><?php
echo Html::anchor('index.php/top', 'TOP', array('class' => 'link'));