本文整理汇总了PHP中Asset::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset::render方法的具体用法?PHP Asset::render怎么用?PHP Asset::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Asset
的用法示例。
在下文中一共展示了Asset::render方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
echo \Asset::js('jquery-ui.min.js');
echo \Asset::js('bootstrap.min.js');
echo $theme->asset->js('smartmenus/jquery.smartmenus.min.js');
echo $theme->asset->js('chosen/chosen.jquery.min.js');
echo $theme->asset->js('icheck/icheck.min.js');
echo $theme->asset->js('jquery.floatThead.min.js');
echo $theme->asset->js('fs-sys2-sidebar-menu.min.js');
echo \Asset::render('fuelstart_footer');
echo $theme->asset->render('fuelstart_footer');
echo $theme->asset->js('main.js');
echo $theme->asset->js('fs-sys2-admin.js');
?>
</body>
</html>
示例2:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/<?php
echo $angularjs_version;
?>
/angular.min.js"></script>
<script>
if (typeof angular == 'undefined') document.write('<script src="<?php
echo Uri::base_path('assets/js/angularjs/' . $angularjs_version . '/angular.min.js');
?>
"><\/script>')
</script>
<?php
}
?>
<?php
Asset::js(array('bootstrap.js', 'apprise-1.5.full.js', 'jquery.autogrow-textarea.js', 'jquery.jgrowl.js', 'moment.js', 'moment.lang_ja.js', 'livestamp.js', 'js-url/js-url.js', 'util.js'), null, 'js_common', false, true);
echo Asset::render('js_common', false, 'js');
?>
<script>var gapi;</script>
<?php
if (is_enabled_share('google')) {
?>
<script src="//apis.google.com/js/platform.js" async defer>
{lang: "ja"}
</script>
<?php
}
?>
示例3: isset
<?php
Asset::js(array('bootstrap-datetimepicker.js', 'locales/bootstrap-datetimepicker.ja.js'), null, 'js_datetimepicker', false, true);
echo Asset::render('js_datetimepicker', false, 'js');
?>
<script>
$(function () {
$('<?php
echo isset($attr) ? $attr : '#form_date';
?>
').datetimepicker({
useCurrent: true, //when true, picker will set the value to the current date/time
//minuteStepping:1, //set the minute stepping
minDate:'1/1/1900', //set a minimum date
<?php
if (isset($max_date) && ($max_date = 'now')) {
?>
maxDate: moment(), //set a maximum date (defaults to today +100 years)
<?php
}
?>
language:'ja', //sets language locale
//defaultDate:"", //sets a default date, accepts js dates, strings and moment objects
//disabledDates:[], //an array of dates that cannot be selected
//enabledDates:[], //an array of dates that can be selected
//useStrict: true, //use "strict" when validating dates
//sideBySide: true, //show the date and time picker side by side
//daysOfWeekDisabled:[] //for example use daysOfWeekDisabled: [0,6] to disable weekends
});
});
</script>
示例4:
<?php
echo Asset::render('footer');
?>
asdasdsad
示例5: array
<?php
$data = array();
if (!empty($thumbnail_size)) {
$data['thumbnail_size'] = $thumbnail_size;
}
if (!empty($insert_target)) {
$data['insert_target'] = $insert_target;
}
echo render('filetmp/_parts/tmpl/image', $data);
echo Asset::js('jquery-file-upload/vendor/jquery.ui.widget.js');
echo Asset::js('jquery-file-upload/tmpl.min.js');
// The Templates plugin is included to render the upload/download listings
Asset::js(array('jquery-file-upload/load-image.all.min.js', 'jquery-file-upload/canvas-to-blob.min.js', 'blueimp-gallery/jquery.blueimp-gallery.min.js', 'jquery-file-upload/jquery.iframe-transport.js', 'jquery-file-upload/jquery.fileupload.js', 'jquery-file-upload/jquery.fileupload-process.js', 'jquery-file-upload/jquery.fileupload-image.js', 'jquery-file-upload/jquery.fileupload-validate.js', 'jquery-file-upload/jquery.fileupload-ui.js', 'site/common/file_tmp_upload.js'), null, 'js_upload', false, true);
echo Asset::render('js_upload', false, 'js');
?>
<!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
<!--[if (gte IE 8)&(lt IE 10)]>
<?php
echo Asset::js('jquery-file-upload/cors/jquery.xdr-transport.js');
?>
<![endif]-->
示例6: Date
echo @$description;
?>
">
<meta property="og:url" content="http://www.rakuichi-rakuza.jp/">
<meta property="og:image" content="http://www.rakuichi-rakuza.jp/assets/img/ogimage.png">
<link rel="apple-touch-icon" href="http://www.rakuichi-rakuza.jp/assets/img/ogimage.png">
<meta property="og:site_name" content="フリーマーケット楽市楽座">
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=yes">
<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/css/reset.css" rel="stylesheet">
<link href="/assets/css/base.css?20140526" rel="stylesheet">
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<?php
echo Asset::render('add_css', false);
echo Asset::render('add_js', false);
?>
</head>
<body>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-KWFSV9"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KWFSV9');</script>
<!-- End Google Tag Manager -->
<!-- header -->
<div id="header">
<!-- headerBar -->
示例7: isset
css/addition_fonts.css?family=mtcorsva' rel='stylesheet' type='text/css'>
</head>
<body id="page-top">
<!--menu-->
<?php
require_once 'menu_detail.php';
?>
<div class="container detail-article-container" style="padding-top: 80px;">
<?php
echo isset($content) ? $content : '';
?>
</div>
<!-- FOOTER -->
<div class="detail-article-footer">
<?php
require_once 'footer_news.php';
?>
</div>
<?php
echo Asset::render('js');
?>
</body>
</html>
示例8:
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/css/admin.css" rel="stylesheet">
<?php
echo Asset::render('add_css');
?>
<?php
echo Asset::render('add_js');
?>
</head>
<body>
<nav role="navigation" class="navbar navbar-default navbar-fixed-top">
<!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
<div class="container-fluid">
<div class="navbar-header">
<button data-target="#bs-example-navbar-collapse-6" data-toggle="collapse" class="navbar-toggle" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/admin/index" class="navbar-brand">楽市楽座</a>
</div>
<?php
if ($is_login) {
?>
示例9: array
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
echo $template['title'];
?>
</title>
<?php
Asset::css('login.css', array(), 'login-css');
?>
<?php
echo Asset::render('login-css');
?>
</head>
<body>
<div id="wrapper">
<?php
if (!isset($hide_header)) {
?>
<div class="header-area">
<div class='img-logo'>
<?php
echo logo();
?>
</div>
</div><!-- /header-area end -->
<?php
}
?>
示例10:
<?php
Asset::js(array('jquery-ui-1.10.3.custom.js', 'util/jquery-ui.js'), null, 'js_jquery_ui', false, true);
echo Asset::render('js_jquery_ui', false, 'js');
?>
示例11: __
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title><?php
echo __('title.system_manager_title');
?>
</title>
<?php
echo Asset::render('css');
?>
</head>
<body>
<div class="container">
<div>
<img style="height: 185px; display: table; margin: 0px auto;" src="<?php
echo Uri::base() . "assets/img/fixed/admin_login_logo.png";
?>
">
</div>
<?php
if (Session::get_flash('error')) {
?>
<div class="bs-callout bs-callout-danger" style="width: 50%; margin: 0 auto;">
<h4><?php
echo __("common.Error");
示例12:
<meta charset="utf-8">
<title><?php
echo @$title;
?>
</title>
<style type="text/css">
body { background-color: #F2F2F2; margin: 45px 0 0 0; font-family: ‘Palatino Linotype’, ‘Book Antiqua’, Palatino, serif; font-size: 18px }
#wrapper { width: 740px; margin: 0 auto; }
h1 { color: #333333; font: normal normal normal 62px/1em Impact, Charcoal, sans-serif; margin: 0 0 15px 0; }
pre { padding: 15px; background-color: #FFF; border: 1px solid #CCC; font-size: 16px;}
#footer p { font-size: 14px; text-align: right; }
a { color: #000; }
</style>
<?php
echo Asset::render('layout');
?>
</head>
<body>
<div id="wrapper">
<h2>Uploadify demo application</h2>
<h1><?php
echo @$title;
?>
</h1>
<div style="color: green;"><?php
echo @\Session::get_flash('notice');
?>
</div>
示例13: stylesheets
/**
* @param array $files The files to generate
* @param string $prefix A string to prefix to the cache file
* @return void
* @author Jonathan Geiger
*/
public static function stylesheets(array $files, $prefix = NULL)
{
$asset = new Asset($files, asset::STYLESHEET, $prefix);
return $asset->render();
}
示例14: load_js_auto_address
/**
* 住所自動入力用 js ロード
*
* @param View
* @return View
*/
protected function load_js_auto_address($view)
{
Asset::js(array('ajaxzip2/jquery.js', 'ajaxzip2/ajaxzip2.js'), array(), 'ajaxzip2', false);
$this->set_view_js($view, Asset::render('ajaxzip2'));
$this->set_view_js($view, Asset::js('ajaxzip2/setup_data.js', array(), null, true));
return $view;
}
示例15:
</div>
</div>
</footer>
</section>
<?php
echo Asset::js('bootstrap/bootstrap.min.js');
?>
<?php
echo Asset::js('https://code.jquery.com/jquery-1.11.3.min.js');
?>
<?php
echo Asset::js('https://code.jquery.com/ui/1.11.4/jquery-ui.min.js');
?>
<?php
echo Asset::js('https://ajax.googleapis.com/ajax/libs/jqueryui/1/i18n/jquery.ui.datepicker-ja.min.js');
?>
<?php
echo Asset::js('myscript.js');
?>
<?php
echo Asset::render('library_js');
?>
<?php
echo Asset::render('controller_script_js');
?>
<?php
echo Asset::render('action_script_js');
?>
</body>
</html>