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


PHP head_js函数代码示例

本文整理汇总了PHP中head_js函数的典型用法代码示例。如果您正苦于以下问题:PHP head_js函数的具体用法?PHP head_js怎么用?PHP head_js使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: queue_css_file

?>


    <!-- Need to add custom and third-party CSS files? Include them here -->
    <?php 
queue_css_file('lib/bootstrap.min');
queue_css_file('style');
\queue_css_file('bootstrap-theme');
echo head_css();
?>

    <!-- Need more JavaScript files? Include them here -->
    <?php 
queue_js_file('lib/bootstrap.min');
queue_js_file('globals');
echo head_js();
?>
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<?php 
echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass));
?>
    <?php 
fire_plugin_hook('public_body', array('view' => $this));
?>
<!--     <header>
        <div class="container">
            <?php 
开发者ID:joelsalisbury,项目名称:findyourvoice,代码行数:31,代码来源:header.php

示例2: queue_css_url

    <?php 
queue_css_url('https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic');
queue_css_file(array('iconfonts', 'normalize', 'style'), 'screen');
queue_css_file('print', 'print');
echo head_css();
?>

    <!-- JavaScripts -->
    <?php 
$jsFiles = array('vendor/selectivizr', 'vendor/jquery-accessibleMegaMenu.min', 'vendor/respond', 'jquery-extra-selectors.min', 'seasons.min', 'globals.min');
if (isset($vars['bodyid']) && $vars['bodyid'] === 'home') {
    //homepage slider javascript
    array_push($jsFiles, 'jssor.slider.mini');
}
queue_js_file($jsFiles);
echo head_js() . "\n";
?>
    </head>

<?php 
echo body_tag(array('id' => @$bodyid, 'class' => @$bodyclass));
?>
    <div id="wrap">
        <header role="banner">
            <div id="site-title">
                <?php 
echo link_to_home_page(theme_logo());
?>
            </div>

            <?php 
开发者ID:KelvinSmithLibrary,项目名称:playhouse,代码行数:31,代码来源:header.php

示例3: queue_js_file

 

<!-- JavaScripts -->
<?php 
echo $bodyclass !== 'contribution' ? '<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=true"></script>' : null;
?>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<link href="https://vjs.zencdn.net/4.3/video-js.css" rel="stylesheet">
<script src="https://vjs.zencdn.net/4.3/video.js"></script>
<?php 
queue_js_file('audiojs/audiojs/audio.min');
queue_js_file('libraries.min');
// <-- combined: Modernizr, jQuery UI Maps, Swipe.js, Fancybox
queue_js_file('check-width');
echo head_js(false);
// <-- No to Omeka default scripts
?>
<!--[if lte IE 9]>
<?php 
echo js_tag('ie-polyfills.min');
?>
<![endif]-->

<!-- TypeKit -->
<?php 
echo mh_typekit();
?>

<!-- Google Analytics -->
<?php 
开发者ID:ebellempire,项目名称:curatescape_gardens,代码行数:29,代码来源:header.php

示例4: _getJsOutput

 private function _getJsOutput($includeDefaults = true)
 {
     ob_start();
     echo head_js($includeDefaults);
     return ob_get_clean();
 }
开发者ID:emhoracek,项目名称:Omeka,代码行数:6,代码来源:DisplayJsTest.php


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