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


PHP auto_discovery_link_tags函数代码示例

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


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

示例1: testLinkTagAvoidsXssAttack

 public function testLinkTagAvoidsXssAttack()
 {
     $this->dispatch('/items/browse/%22%3e%3cscript%3ealert(11639)%3c/script%3e');
     $html = '<link rel="alternate" type="application/rss+xml" title="Omeka RSS Feed" href="/items/browse/%22%3E%3Cscript%3Ealert%2811639%29%3C/script%3E?output=rss2" />';
     $html .= '<link rel="alternate" type="application/atom+xml" title="Omeka Atom Feed" href="/items/browse/%22%3E%3Cscript%3Ealert%2811639%29%3C/script%3E?output=atom" />';
     $this->assertContains($html, auto_discovery_link_tags());
 }
开发者ID:emhoracek,项目名称:Omeka,代码行数:7,代码来源:AutoDiscoveryLinkTagsTest.php

示例2: strip_formatting

    <!-- Will build the page <title> -->
    <?php 
if (isset($title)) {
    $titleParts[] = strip_formatting($title);
}
$titleParts[] = option('site_title');
?>
    <title><?php 
echo implode(' &middot; ', $titleParts);
?>
</title>
        <link href='https://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'>

    <?php 
echo auto_discovery_link_tags();
?>

    <!-- Will fire plugins that need to include their own files in <head> -->
    <?php 
fire_plugin_hook('public_head', array('view' => $this));
?>


    <!-- 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();
?>
开发者ID:joelsalisbury,项目名称:findyourvoice,代码行数:30,代码来源:header.php


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