本文整理汇总了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());
}
示例2: strip_formatting
<!-- Will build the page <title> -->
<?php
if (isset($title)) {
$titleParts[] = strip_formatting($title);
}
$titleParts[] = option('site_title');
?>
<title><?php
echo implode(' · ', $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();
?>