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


PHP end_javascript_tag函数代码示例

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


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

示例1: ie6_update

function ie6_update()
{
    use_helper('Javascript');
    echo "<!--[if lte IE 6]>";
    javascript_tag();
    echo <<<EOF
    /*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\\"text/javascript\\"   src=\\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\\"></"+"script>"); var __noconflict = true; } 
      var IE6UPDATE_OPTIONS = {
        icons_path: "http://static.ie6update.com/hosted/ie6update/images/"
      }
    </script>
    <script type="text/javascript" src="http://static.ie6update.com/hosted/ie6update/ie6update.js">
EOF;
    end_javascript_tag();
    echo "<![endif]-->";
}
开发者ID:bshaffer,项目名称:Symplist,代码行数:16,代码来源:SeoHelper.php

示例2: include_facebook_javascripts

<?php

/**
 * Facebook loading script
 */
?>
<div id="fb-root"></div>
<?php 
include_facebook_javascripts($locale);
javascript_tag();
?>
    <?php 
include_partial('sfFacebookGraphAuth/inlineLoaderLogin', array('signInUrl' => $signInUrl, 'noSessionUrl' => $noSessionUrl, 'redirectOnNoSession' => $redirectOnNoSession, 'apiKey' => $apiKey, 'jsStatus' => $jsStatus, 'jsCookie' => $jsCookie, 'jsXfbml' => $jsXfbml));
end_javascript_tag();
开发者ID:passkey1510,项目名称:sfFacebookGraphPlugin,代码行数:14,代码来源:_inlineLoader.php

示例3: jq_end_javascript_tag

function jq_end_javascript_tag()
{
    return end_javascript_tag();
}
开发者ID:slemoigne,项目名称:sympal,代码行数:4,代码来源:jQueryHelper.php

示例4: include_facebook_login_javascript

/**
 *
 * @param array $options  These can be
 *                        * signInUrlu
 */
function include_facebook_login_javascript(array $options = array())
{
    $defaultOptions = array('signInUrl' => null, 'signInUrlRaw' => null, 'noSessionUrl' => null, 'noSessionUrlRaw' => null, 'redirectOnNoSession' => null, 'includeJavascriptTags' => true, 'partial' => 'sfFacebookGraphAuth/inlineLogin');
    $options = array_merge($defaultOptions, $options);
    if ($options['signInUrlRaw'] === null) {
        $options['signInUrl'] = sfConfig::get('app_facebook_connect_signin_url', 'sfFacebookGraphAuth/signin');
        if ($options['signInUrl']) {
            $options['signInUrl'] = url_for($options['signInUrl']);
        }
    } else {
        $options['signInUrl'] = $options['signInUrlRaw'];
    }
    if ($options['noSessionUrlRaw'] === null) {
        $options['noSessionUrl'] = sfConfig::get('app_facebook_no_session_redirect_url', null);
        if ($options['noSessionUrl']) {
            $options['noSessionUrl'] = url_for($options['noSessionUrl']);
        }
    } else {
        $options['noSessionUrl'] = $options['noSessionUrlRaw'];
    }
    if ($options['redirectOnNoSession'] === null) {
        $options['redirectOnNoSession'] = sfConfig::get('app_facebook_redirect_on_no_session', true);
    }
    if ($options['includeJavascriptTags']) {
        javascript_tag();
    }
    include_partial($options['partial'], array('signInUrl' => $options['signInUrl'], 'noSessionUrl' => $options['noSessionUrl'], 'redirectOnNoSession' => $options['redirectOnNoSession']));
    if ($options['includeJavascriptTags']) {
        end_javascript_tag();
    }
}
开发者ID:kevindew,项目名称:sfFacebookGraphPlugin,代码行数:36,代码来源:sfFacebookGraphHelper.php


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