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


PHP Asset::render_js方法代码示例

本文整理汇总了PHP中Asset::render_js方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset::render_js方法的具体用法?PHP Asset::render_js怎么用?PHP Asset::render_js使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Asset的用法示例。


在下文中一共展示了Asset::render_js方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

<?php

$this->load->helper('excerpt');
$this->lang->load('news/news');
Asset::add_path('news', 'addons/shared_addons/modules/news/');
Asset::js('news::jquery.bootstrap.newsbox.js', false, 'news');
Asset::js('news::init.js', false, 'news');
echo Asset::render_js('news');
?>
{{ if options.type == 'scroll' }}

{{ news_widget }}
	<marquee scrollamount="3" onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);">
	{{ news }}
		<a href="{{url:site}}news/{{id}}" title="{{intro}}">{{intro}}</a>
	{{ /news }}
	</marquee>
	{{ /news_widget }}
{{ endif }}

{{ if options.type == 'notice' }}

{{ news_widget }}
		<ul class="news-notice">
			{{ news }}
				<li><a href="{{url:site}}news/{{id}}" title="{{name}}">{{name}}</a>
				<p>{{ excerpt:excerpt text=body word_count="40" }}</p>
				</li>
			{{ /news }}
		</ul>
{{ /news_widget }}
开发者ID:jacksun101,项目名称:PyroAddons,代码行数:31,代码来源:display.php

示例2: function

	<?php Asset::js('developr.progress-slider.js'); ?>	
	<?php Asset::js('developr.tooltip.js'); ?>	
	<?php Asset::js('developr.confirm.js'); ?>
	<?php Asset::js('developr.agenda.js'); ?>	
	<?php Asset::js('developr.tabs.js'); ?>	<!-- Must be loaded last -->
	<?php Asset::js('developr.table.js'); ?>
	
	<!-- Plugins -->
	<?php Asset::js('libs/jquery.tablesorter.min.js'); ?>
	<?php Asset::js('libs/DataTables/jquery.dataTables.min.js'); ?>
	
	<!-- Tinycon -->	

	<?php Asset::js('libs/tinycon.min.js'); ?>	
	
	<?php echo Asset::render_js(); ?>
	<script>

		// Call template init (optional, but faster if called manually)
		$.template.init();

		// Favicon count
		Tinycon.setBubble(2);

		// If the browser support the Notification API, ask user for permission (with a little delay)
		if (notify.hasNotificationAPI() && !notify.isNotificationPermissionSet())
		{
			setTimeout(function()
			{
				notify.showNotificationPermission('Your browser supports desktop notification, click here to enable them.', function()
				{
开发者ID:relinkus,项目名称:ManageFan,代码行数:31,代码来源:default.php

示例3: 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

示例4: site_url

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,代码行数:30,代码来源:metadata.php

示例5: 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

示例6: render_js

 /**
  * Asset Render Javascript
  *
  * Render a Javascript asset group.
  *
  * Usage:
  *
  * {{ asset:render_js group="" }}
  *
  * @return string Script tags for Javascript
  */
 public function render_js()
 {
     $group = $this->attribute('group', false);
     return Asset::render_js($group);
 }
开发者ID:nockout,项目名称:tshpro,代码行数:16,代码来源:asset.php

示例7:

<?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

示例8: 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

示例9: 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

示例10:

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