本文整理匯總了PHP中GoogleSitemapGenerator::IsTaxonomySupported方法的典型用法代碼示例。如果您正苦於以下問題:PHP GoogleSitemapGenerator::IsTaxonomySupported方法的具體用法?PHP GoogleSitemapGenerator::IsTaxonomySupported怎麽用?PHP GoogleSitemapGenerator::IsTaxonomySupported使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GoogleSitemapGenerator
的用法示例。
在下文中一共展示了GoogleSitemapGenerator::IsTaxonomySupported方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: HtmlShowOptionsPage
//.........這裏部分代碼省略.........
<label for="sm_in_pages">
<input type="checkbox" id="sm_in_pages" name="sm_in_pages" <?php
echo $this->sg->GetOption("in_pages") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include static pages', 'sitemap');
?>
</label>
</li>
<li>
<label for="sm_in_cats">
<input type="checkbox" id="sm_in_cats" name="sm_in_cats" <?php
echo $this->sg->GetOption("in_cats") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include categories', 'sitemap');
?>
</label>
</li>
<li>
<label for="sm_in_arch">
<input type="checkbox" id="sm_in_arch" name="sm_in_arch" <?php
echo $this->sg->GetOption("in_arch") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include archives', 'sitemap');
?>
</label>
</li>
<?php
if ($this->sg->IsTaxonomySupported()) {
?>
<li>
<label for="sm_in_tags">
<input type="checkbox" id="sm_in_tags" name="sm_in_tags" <?php
echo $this->sg->GetOption("in_tags") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include tag pages', 'sitemap');
?>
</label>
</li>
<?php
}
?>
<li>
<label for="sm_in_auth">
<input type="checkbox" id="sm_in_auth" name="sm_in_auth" <?php
echo $this->sg->GetOption("in_auth") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include author pages', 'sitemap');
?>
</label>
</li>
</ul>
<?php
$this->HtmlPrintBoxFooter();
?>
示例2: HtmlShowOptionsPage
//.........這裏部分代碼省略.........
<label for="sm_in_cats">
<input type="checkbox" id="sm_in_cats" name="sm_in_cats" <?php
echo $this->sg->GetOption("in_cats") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include categories', 'sitemap');
?>
</label>
</li>
<li>
<label for="sm_in_arch">
<input type="checkbox" id="sm_in_arch" name="sm_in_arch" <?php
echo $this->sg->GetOption("in_arch") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include archives', 'sitemap');
?>
</label>
</li>
<li>
<label for="sm_in_auth">
<input type="checkbox" id="sm_in_auth" name="sm_in_auth" <?php
echo $this->sg->GetOption("in_auth") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include author pages', 'sitemap');
?>
</label>
</li>
<?php
if ($this->sg->IsTaxonomySupported()) {
?>
<li>
<label for="sm_in_tags">
<input type="checkbox" id="sm_in_tags" name="sm_in_tags" <?php
echo $this->sg->GetOption("in_tags") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include tag pages', 'sitemap');
?>
</label>
</li>
<?php
}
?>
</ul>
<?php
if ($this->sg->IsTaxonomySupported()) {
$taxonomies = $this->sg->GetCustomTaxonomies();
$enabledTaxonomies = $this->sg->GetOption('in_tax');
if (count($taxonomies) > 0) {
?>
<b><?php
_e('Custom taxonomies', 'sitemap');
?>
:</b><ul><?php
foreach ($taxonomies as $taxName) {
$taxonomy = get_taxonomy($taxName);
$selected = in_array($taxonomy->name, $enabledTaxonomies);
?>
<li>