本文整理汇总了PHP中GoogleSitemapGenerator::GetPrioProviders方法的典型用法代码示例。如果您正苦于以下问题:PHP GoogleSitemapGenerator::GetPrioProviders方法的具体用法?PHP GoogleSitemapGenerator::GetPrioProviders怎么用?PHP GoogleSitemapGenerator::GetPrioProviders使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoogleSitemapGenerator
的用法示例。
在下文中一共展示了GoogleSitemapGenerator::GetPrioProviders方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HtmlShowOptionsPage
//.........这里部分代码省略.........
}
?>
</table>
<a href="javascript:void(0);" onclick="sm_addPage();"><?php
_e("Add new page", 'sitemap');
?>
</a>
<?php
$this->HtmlPrintBoxFooter();
?>
<!-- AutoPrio Options -->
<?php
$this->HtmlPrintBoxHeader('sm_postprio', __('Post Priority', 'sitemap'));
?>
<p><?php
_e('Please select how the priority of each post should be calculated:', 'sitemap');
?>
</p>
<ul>
<li><p><input type="radio" name="sm_b_prio_provider" id="sm_b_prio_provider__0" value="" <?php
echo $this->HtmlGetChecked($this->sg->GetOption("b_prio_provider"), "");
?>
/> <label for="sm_b_prio_provider__0"><?php
_e('Do not use automatic priority calculation', 'sitemap');
?>
</label><br /><?php
_e('All posts will have the same priority which is defined in "Priorities"', 'sitemap');
?>
</p></li>
<?php
$provs = $this->sg->GetPrioProviders();
for ($i = 0; $i < count($provs); $i++) {
echo "<li><p><input type=\"radio\" id=\"sm_b_prio_provider_{$i}\" name=\"sm_b_prio_provider\" value=\"" . $provs[$i] . "\" " . $this->HtmlGetChecked($this->sg->GetOption("b_prio_provider"), $provs[$i]) . " /> <label for=\"sm_b_prio_provider_{$i}\">" . call_user_func(array($provs[$i], 'getName')) . "</label><br />" . call_user_func(array($provs[$i], 'getDescription')) . "</p></li>";
}
?>
</ul>
<?php
$this->HtmlPrintBoxFooter();
?>
<!-- Includes -->
<?php
$this->HtmlPrintBoxHeader('sm_includes', __('Sitemap Content', 'sitemap'));
?>
<b><?php
_e('WordPress standard content', 'sitemap');
?>
:</b>
<ul>
<li>
<label for="sm_in_home">
<input type="checkbox" id="sm_in_home" name="sm_in_home" <?php
echo $this->sg->GetOption("in_home") == true ? "checked=\"checked\"" : "";
?>
/>
<?php
_e('Include homepage', 'sitemap');
?>
</label>
</li>
<li>
<label for="sm_in_posts">
<input type="checkbox" id="sm_in_posts" name="sm_in_posts" <?php