本文整理汇总了PHP中GoogleSitemapGenerator::IsNginx方法的典型用法代码示例。如果您正苦于以下问题:PHP GoogleSitemapGenerator::IsNginx方法的具体用法?PHP GoogleSitemapGenerator::IsNginx怎么用?PHP GoogleSitemapGenerator::IsNginx使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoogleSitemapGenerator
的用法示例。
在下文中一共展示了GoogleSitemapGenerator::IsNginx方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HtmlShowOptionsPage
//.........这里部分代码省略.........
?>
','','width=650, height=500, resizable=yes'); return false;">your main sitemap and all sub-sitemaps</a> now.
</li>
<?php
}
?>
<?php
if (is_super_admin()) {
echo "<li>" . str_replace("%d", wp_nonce_url($this->sg->GetBackLink() . "&sm_rebuild=true&sm_do_debug=true", 'sitemap'), __('If you encounter any problems with your sitemap you can use the <a href="%d">debug function</a> to get more information.', 'sitemap')) . "</li>";
}
?>
<li>
<?php
_e('Version 4 of the XML Sitemap Generator introduces a new, more efficient format for your sitemap.', 'sitemap');
?>
<a href="<?php
echo $this->sg->GetRedirectLink('sitemap-newformat');
?>
"><?php
_e('Learn more', 'sitemap');
?>
</a>
</li>
</ul>
</div>
<?php
$this->HtmlPrintBoxFooter();
?>
<?php
if ($this->sg->IsNginx() && $this->sg->IsUsingPermalinks()) {
?>
<?php
$this->HtmlPrintBoxHeader('ngin_x', __('Webserver Configuration', 'sitemap'));
?>
<?php
_e('Since you are using Nginx as your web-server, please configure the following rewrite rules in case you get 404 Not Found errors for your sitemap:', 'sitemap');
?>
<p>
<code style="display:block; overflow-x:auto; white-space: nowrap;">
<?php
$rules = GoogleSitemapGeneratorLoader::GetNginXRules();
foreach ($rules as $rule) {
echo $rule . "<br />";
}
?>
</code>
</p>
<?php
$this->HtmlPrintBoxFooter();
?>
<?php
}
?>
<!-- Basic Options -->
<?php
$this->HtmlPrintBoxHeader('sm_basic_options', __('Basic Options', 'sitemap'));
?>
<b><?php
_e('Update notification:', 'sitemap');