本文整理汇总了PHP中GoogleSitemapGenerator::GetDefaultStyle方法的典型用法代码示例。如果您正苦于以下问题:PHP GoogleSitemapGenerator::GetDefaultStyle方法的具体用法?PHP GoogleSitemapGenerator::GetDefaultStyle怎么用?PHP GoogleSitemapGenerator::GetDefaultStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoogleSitemapGenerator
的用法示例。
在下文中一共展示了GoogleSitemapGenerator::GetDefaultStyle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HtmlShowOptionsPage
//.........这里部分代码省略.........
echo $this->sg->GetOption("b_max_posts") <= 0 ? "" : $this->sg->GetOption("b_max_posts");
?>
" /></label> (<?php
echo __('Newer posts will be included first', 'sitemap');
?>
)
</li>
<li>
<label for="sm_b_memory"><?php
_e('Try to increase the memory limit to:', 'sitemap');
?>
<input type="text" name="sm_b_memory" id="sm_b_memory" style="width:40px;" value="<?php
echo $this->sg->GetOption("b_memory");
?>
" /></label> (<?php
echo htmlspecialchars(__('e.g. "4M", "16M"', 'sitemap'));
?>
)
</li>
<li>
<label for="sm_b_time"><?php
_e('Try to increase the execution time limit to:', 'sitemap');
?>
<input type="text" name="sm_b_time" id="sm_b_time" style="width:40px;" value="<?php
echo $this->sg->GetOption("b_time") === -1 ? '' : $this->sg->GetOption("b_time");
?>
" /></label> (<?php
echo htmlspecialchars(__('in seconds, e.g. "60" or "0" for unlimited', 'sitemap'));
?>
)
</li>
<li>
<?php
$useDefStyle = $this->sg->GetDefaultStyle() && $this->sg->GetOption('b_style_default') === true;
?>
<label for="sm_b_style"><?php
_e('Include a XSLT stylesheet:', 'sitemap');
?>
<input <?php
echo $useDefStyle ? 'disabled="disabled" ' : '';
?>
type="text" name="sm_b_style" id="sm_b_style" value="<?php
echo $this->sg->GetOption("b_style");
?>
" /></label>
(<?php
_e('Full or relative URL to your .xsl file', 'sitemap');
?>
) <?php
if ($this->sg->GetDefaultStyle()) {
?>
<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');
?>
<?php
}
?>
</li>
<li>
<label for="sm_b_safemode">
<?php
$forceSafeMode = floatval($wp_version) < 2.2;
?>
示例2: HtmlShowOptionsPage
//.........这里部分代码省略.........
echo $this->sg->GetRedirectLink('sitemap-help-options-adv');
?>
"><?php
_e('Learn more', 'sitemap');
?>
</a>
<ul>
<li>
<label for="sm_b_memory"><?php
_e('Try to increase the memory limit to:', 'sitemap');
?>
<input type="text" name="sm_b_memory" id="sm_b_memory" style="width:40px;" value="<?php
echo esc_attr($this->sg->GetOption("b_memory"));
?>
" /></label> (<?php
echo htmlspecialchars(__('e.g. "4M", "16M"', 'sitemap'));
?>
)
</li>
<li>
<label for="sm_b_time"><?php
_e('Try to increase the execution time limit to:', 'sitemap');
?>
<input type="text" name="sm_b_time" id="sm_b_time" style="width:40px;" value="<?php
echo esc_attr($this->sg->GetOption("b_time") === -1 ? '' : $this->sg->GetOption("b_time"));
?>
" /></label> (<?php
echo htmlspecialchars(__('in seconds, e.g. "60" or "0" for unlimited', 'sitemap'));
?>
)
</li>
<li>
<?php
$useDefStyle = $this->sg->GetDefaultStyle() && $this->sg->GetOption('b_style_default') === true;
?>
<label for="sm_b_style"><?php
_e('Include a XSLT stylesheet:', 'sitemap');
?>
<input <?php
echo $useDefStyle ? 'disabled="disabled" ' : '';
?>
type="text" name="sm_b_style" id="sm_b_style" value="<?php
echo esc_attr($this->sg->GetOption("b_style"));
?>
" /></label>
(<?php
_e('Full or relative URL to your .xsl file', 'sitemap');
?>
) <?php
if ($this->sg->GetDefaultStyle()) {
?>
<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');
?>
<?php
}
?>
</li>
<li>
<label for="sm_b_html">
<input type="checkbox" id="sm_b_html" name="sm_b_html" <?php
echo $this->sg->GetOption("b_html") == true ? "checked=\"checked\"" : "";
?>