本文整理汇总了PHP中GoogleSitemapGenerator::IsXslEnabled方法的典型用法代码示例。如果您正苦于以下问题:PHP GoogleSitemapGenerator::IsXslEnabled方法的具体用法?PHP GoogleSitemapGenerator::IsXslEnabled怎么用?PHP GoogleSitemapGenerator::IsXslEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoogleSitemapGenerator
的用法示例。
在下文中一共展示了GoogleSitemapGenerator::IsXslEnabled方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HtmlShowOptionsPage
//.........这里部分代码省略.........
?>
<label for="sm_b_style_default"><input <?php
echo $useDefStyle ? 'checked="checked" ' : '';
?>
type="checkbox" id="sm_b_style_default" name="sm_b_style_default" onclick="document.getElementById('sm_b_style').disabled = this.checked;" /> <?php
_e('Use default', 'sitemap');
?>
</label> <?php
}
?>
</li>
<li>
<label for="sm_b_baseurl"><?php
_e('Override the base URL of the sitemap:', 'sitemap');
?>
<input type="text" name="sm_b_baseurl" id="sm_b_baseurl" value="<?php
echo esc_attr($this->sg->GetOption("b_baseurl"));
?>
" /></label><br />
<small><?php
_e('Use this if your blog is in a sub-directory, but you want the sitemap be located in the root. Requires .htaccess modification.', 'sitemap');
?>
<a href="<?php
echo $this->sg->GetRedirectLink('sitemap-help-options-adv-baseurl');
?>
"><?php
_e('Learn more', 'sitemap');
?>
</a></small>
</li>
<li>
<label for="sm_b_html">
<input type="checkbox" id="sm_b_html" name="sm_b_html" <?php
if (!$this->sg->IsXslEnabled()) {
echo 'disabled="disabled"';
}
?>
<?php
echo $this->sg->GetOption("b_html") == true && $this->sg->IsXslEnabled() ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include sitemap in HTML format', 'sitemap');
?>
<?php
if (!$this->sg->IsXslEnabled()) {
_e('(The required PHP XSL Module is not installed)', 'sitemap');
}
?>
</label>
</li>
<li>
<label for="sm_b_stats">
<input type="checkbox" id="sm_b_stats" name="sm_b_stats" <?php
echo $this->sg->GetOption("b_stats") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Allow anonymous statistics (no personal information)', 'sitemap');
?>
</label> <label><a href="<?php
echo $this->sg->GetRedirectLink('sitemap-help-options-adv-stats');
?>
"><?php
_e('Learn more', 'sitemap');
?>