本文整理汇总了PHP中Asset::render_css方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset::render_css方法的具体用法?PHP Asset::render_css怎么用?PHP Asset::render_css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Asset
的用法示例。
在下文中一共展示了Asset::render_css方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
<?php
if (count($images) > 0) {
$nivotheme = isset($options['theme']) ? $options['theme'] : 'default';
$settings = isset($options['settings']) ? $options['settings'] : '';
Asset::add_path('nivoslider', 'addons/shared_addons/widgets/nivoslider/');
Asset::css('nivoslider::themes/' . $nivotheme . '/' . $nivotheme . '.css', false, 'nivoslider');
Asset::css('nivoslider::nivo-slider.css', false, 'nivoslider');
Asset::js('nivoslider::jquery.nivo.slider.pack.js', false, 'nivoslider');
echo Asset::render_js('nivoslider');
echo Asset::render_css('nivoslider');
?>
<script type="text/javascript">
$(function(){
if($.isFunction($.fn.nivoSlider)){
$('.nivoSlider').nivoSlider(<?php
echo $settings;
?>
);
}
});
</script>
<div class="slider-wrapper theme-<?php
echo $nivotheme;
?>
clearfix">
<div class="nivoSlider">
<?php
foreach ($images as $image) {
?>
<img
示例2: config_item
echo config_item('cookie_prefix') . config_item('csrf_cookie_name');
?>
";
</script>
<?php
Asset::css(array('plugins.css', 'jquery/colorbox.css', 'codemirror.css', 'animate/animate.css'));
?>
<?php
echo Asset::render();
?>
<!--[if lt IE 9]>
<?php
echo Asset::css('ie8.css', null, 'ie8');
echo Asset::render_css('ie8');
?>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
if ($module_details['sections']) {
?>
<style>section#content {margin-top: 170px!important;}</style>
<?php
}
?>
<?php
echo $template['metadata'];
示例3: site_url
Asset::css('asset::bootstrap.min.css', false, 'front');
Asset::css('asset::hoverify-bootnav.css', false, 'front');
Asset::css('asset::chosen.min.css', false, 'front');
Asset::css('theme::style.css', false, 'front');
Asset::css('theme::mobile.css', false, 'front');
Asset::js('asset::jquery.1.11.1.min.js', false, 'front');
Asset::js('asset::jquery.easing.js', false, 'front');
Asset::js('asset::bootstrap.min.js', false, 'front');
Asset::js('asset::zoombox.js', false, 'front');
Asset::js('asset::chosen.jquery.min.js', false, 'front');
Asset::js('asset::hoverify-bootnav.js', false, 'front');
Asset::js('asset::jquery.konami.min.js', false, 'front');
Asset::js('asset::vanilla.konami.min.js', false, 'front');
Asset::js('theme::script.js', false, 'front');
Asset::js('theme::howler.min.js', false, 'front');
echo Asset::render_css('front');
echo Asset::render_js('front');
?>
<script type="text/javascript">
var base_url = "<?php
echo site_url('');
?>
/";
var theme_url = "<?php
echo base_url('themes');
?>
/";
</script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
示例4: foreach
<?php
if (count($images) > 0) {
?>
<?php
Asset::add_path('slider', 'addons/shared_addons/widgets/slider/');
Asset::css('slider::flexslider.css', false, 'flexslider');
Asset::js('slider::jquery.flexslider-min.js', false, 'flexslider');
echo Asset::render_js('flexslider');
echo Asset::render_css('flexslider');
?>
<script type="text/javascript">
$(function(){
if($.isFunction($.fn.flexslider)){
$('.myflexslider').flexslider({
animation: "slide"
});
}
});
</script>
<div class="myflexslider">
<ul class="slides">
<?php
foreach ($images as $image) {
?>
<li><img src="<?php
echo $image->path;
?>
" <?php
echo $options['captions'] === 'true' ? 'title="' . $image->name . '"' : null;
示例5: render_css
/**
* Asset Render CSS
*
* Render a CSS asset group.
*
* Usage:
*
* {{ asset:render_css group="" }}
*
* @return string Style tags for CSS
*/
public function render_css()
{
$group = $this->attribute('group', false);
return Asset::render_css($group);
}
示例6:
<?php
echo Asset::render_js('camera');
echo Asset::render_css('camera');
?>
<div id="camera_wrap_4" class="pattern_2">
<?php
foreach ($slides as $s) {
?>
<div data-thumb="<?php
echo site_url('files/large/' . $s->filename);
?>
" data-src="<?php
echo site_url('files/large/' . $s->filename);
?>
">
<div class="camera_caption left-bottom fadeIn" data-destination="left-bottom">
<div class="slider-caption">
<?php
if ($s->showcaption == 1) {
?>
<h3><span><?php
echo $s->html;
?>
</span></h3>
<?php
}
?>
示例7: function
<?php
Asset::css('asset::jquery-ui.min.css', false, 'elfinder_standalone');
Asset::css('finder::elfinder.min.css', false, 'elfinder_standalone');
Asset::css('finder::theme.css', false, 'elfinder_standalone');
Asset::js('finder::jquery-1.11.1.min.js', false, 'elfinder_standalone');
Asset::js('asset::jquery-ui.min.js', false, 'elfinder_standalone');
Asset::js('finder::elfinder.min.js', false, 'elfinder_standalone');
Asset::js('finder::i18n/elfinder.fr.js', false, 'elfinder_standalone');
echo Asset::render_css('elfinder_standalone');
echo Asset::render_js('elfinder_standalone');
?>
<script type="text/javascript" charset="utf-8">
$().ready(function(){
var FileBrowserDialogue = {
init: function() {},
mySubmit: function (URL) {
parent.tinymce.activeEditor.windowManager.getParams().setUrl(URL);
parent.tinymce.activeEditor.windowManager.close();
}
};
var elf = $('#elfinder').elfinder({
url: '/admin/files/connector',
lang: 'fr',
disabled: ['extract', 'archive', 'search'],
requestType: 'get',
resizable: false,
commands : ['open', 'reload', 'home', 'up', 'back', 'forward', 'getfile', 'quicklook',
'download', 'rm', 'rename', 'mkdir', 'upload', 'info', 'resize', 'sort'],
onlyMimes: ["image/png", "image/jpeg", , "image/gif", "image/jpg", "application/pdf", "video/mp4", "video/mpeg", "video/quicktime","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
示例8: foreach
<?php
if (count($images) != 0) {
Asset::add_path('slider', 'addons/shared_addons/modules/sliders/');
Asset::js('slider::jquery.flexslider-min.js');
Asset::css('slider::flexslider.css');
echo Asset::render_js();
echo Asset::render_css();
?>
<script type="text/javascript">
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});
</script>
<div class="flexslider">
<ul class="slides">
<?php
foreach ($images as $image) {
?>
<li><img src="<?php
echo $image->path;
?>
" <?php
echo $options['captions'] === 'true' ? 'title="' . $image->name . '"' : null;
?>
/>
<?php
if (!empty($image->alt_attribute) && !empty($image->description)) {
?>
示例9:
<?php
Asset::css('asset::jquery-ui.min.css', false, 'elfinder');
Asset::css('finder::elfinder.min.css', false, 'elfinder');
Asset::css('finder::theme.css', false, 'elfinder');
Asset::js('asset::jquery-ui.min.js', false, 'elfinder');
Asset::js('finder::elfinder.min.js', false, 'elfinder');
Asset::js('finder::i18n/elfinder.fr.js', false, 'elfinder');
echo Asset::render_css('elfinder');
echo Asset::render_js('elfinder');