本文整理匯總了PHP中GoogleSitemapGenerator::getXmlPath方法的典型用法代碼示例。如果您正苦於以下問題:PHP GoogleSitemapGenerator::getXmlPath方法的具體用法?PHP GoogleSitemapGenerator::getXmlPath怎麽用?PHP GoogleSitemapGenerator::getXmlPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GoogleSitemapGenerator
的用法示例。
在下文中一共展示了GoogleSitemapGenerator::getXmlPath方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: HtmlShowOptionsPage
//.........這裏部分代碼省略.........
<?php
$this->HtmlPrintBoxFooter();
?>
<!-- Location Options -->
<?php
$this->HtmlPrintBoxHeader('sm_location', __('Location of your sitemap file', 'sitemap'));
?>
<div>
<b><label for="sm_location_useauto"><input type="radio" id="sm_location_useauto" name="sm_b_location_mode" value="auto" <?php
echo $this->sg->GetOption("b_location_mode") == "auto" ? "checked=\"checked\"" : "";
?>
/> <?php
_e('Automatic detection', 'sitemap');
?>
</label></b>
<ul>
<li>
<label for="sm_b_filename">
<?php
_e('Filename of the sitemap file', 'sitemap');
?>
<input type="text" id="sm_b_filename" name="sm_b_filename" value="<?php
echo $this->sg->GetOption("b_filename");
?>
" />
</label><br />
<?php
_e('Detected Path', 'sitemap');
?>
: <?php
echo $this->sg->getXmlPath(true);
?>
<br /><?php
_e('Detected URL', 'sitemap');
?>
: <a href="<?php
echo $this->sg->getXmlUrl(true);
?>
"><?php
echo $this->sg->getXmlUrl(true);
?>
</a>
</li>
</ul>
</div>
<div>
<b><label for="sm_location_usemanual"><input type="radio" id="sm_location_usemanual" name="sm_b_location_mode" value="manual" <?php
echo $this->sg->GetOption("b_location_mode") == "manual" ? "checked=\"checked\"" : "";
?>
/> <?php
_e('Custom location', 'sitemap');
?>
</label></b>
<ul>
<li>
<label for="sm_b_filename_manual">
<?php
_e('Absolute or relative path to the sitemap file, including name.', 'sitemap');
echo "<br />";
_e('Example', 'sitemap');
echo ": /var/www/htdocs/wordpress/sitemap.xml";
?>
<br />