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


PHP Asset::render_css方法代码示例

本文整理汇总了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 
开发者ID:jacksun101,项目名称:PyroAddons,代码行数:31,代码来源:display.php

示例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'];
开发者ID:rishikeshwalawalkar,项目名称:GetARide,代码行数:31,代码来源:metadata.php

示例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>
开发者ID:nuit-de-l-info,项目名称:2015-ndl-jj,代码行数:31,代码来源:metadata.php

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

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

示例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 
    }
    ?>
开发者ID:rishikeshwalawalkar,项目名称:GetARide,代码行数:30,代码来源:display.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"],
开发者ID:nuit-de-l-info,项目名称:2015-ndl-jj,代码行数:31,代码来源:tinymce.php

示例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)) {
            ?>
开发者ID:jacksun101,项目名称:PyroAddons,代码行数:31,代码来源:display.php

示例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');
开发者ID:nuit-de-l-info,项目名称:2015-ndl-jj,代码行数:10,代码来源:assets.php


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