本文整理匯總了PHP中GoogleSitemapGeneratorLoader::GetNginXRules方法的典型用法代碼示例。如果您正苦於以下問題:PHP GoogleSitemapGeneratorLoader::GetNginXRules方法的具體用法?PHP GoogleSitemapGeneratorLoader::GetNginXRules怎麽用?PHP GoogleSitemapGeneratorLoader::GetNginXRules使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GoogleSitemapGeneratorLoader
的用法示例。
在下文中一共展示了GoogleSitemapGeneratorLoader::GetNginXRules方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: HtmlShowOptionsPage
//.........這裏部分代碼省略.........
?>
<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');
?>
</b> <a href="<?php
echo $this->sg->GetRedirectLink('sitemap-help-options-ping');
?>
"><?php
_e('Learn more', 'sitemap');
?>
</a>
<ul>
<li>
<input type="checkbox" id="sm_b_ping" name="sm_b_ping" <?php