本文整理汇总了PHP中GoogleSitemapGenerator::HtmlGetChecked方法的典型用法代码示例。如果您正苦于以下问题:PHP GoogleSitemapGenerator::HtmlGetChecked方法的具体用法?PHP GoogleSitemapGenerator::HtmlGetChecked怎么用?PHP GoogleSitemapGenerator::HtmlGetChecked使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoogleSitemapGenerator
的用法示例。
在下文中一共展示了GoogleSitemapGenerator::HtmlGetChecked方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HtmlShowOptionsPage
//.........这里部分代码省略.........
</tr>
<?php
if (count($this->sg->_pages) <= 0) {
?>
<tr>
<td colspan="5" align="center"><?php
_e('No pages defined.', 'sitemap');
?>
</td>
</tr><?php
}
?>
</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->sg->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
for ($i = 0; $i < count($this->sg->_prioProviders); $i++) {
echo "<li><p><input type=\"radio\" id=\"sm_b_prio_provider_{$i}\" name=\"sm_b_prio_provider\" value=\"" . $this->sg->_prioProviders[$i] . "\" " . $this->sg->HtmlGetChecked($this->sg->GetOption("b_prio_provider"), $this->sg->_prioProviders[$i]) . " /> <label for=\"sm_b_prio_provider_{$i}\">" . call_user_func(array(&$this->sg->_prioProviders[$i], 'getName')) . "</label><br />" . call_user_func(array(&$this->sg->_prioProviders[$i], 'getDescription')) . "</p></li>";
}
?>
</ul>
<?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>