File: /www/wwwroot/www.scdc-marine.com/wp-content/plugins/Static-Html-Output/views/tab_crawling.phtml
<div class="crawl_settings" style="display:none;">
<!-- 爬站列表设置 -->
<table class="form-table">
<tbody>
<!-- <tr>
<th scope="row">
<label for="useBasicAuth"><?php echo __('是否使用登录验证', 'static-html-output-plugin');?></label>
</th>
<td>
<?php $tpl->displayCheckbox($this, 'useBasicAuth', '我的网站需要登录验证才能访问'); ?>
</td>
</tr>
<tr>
<th scope="row">
<label for="basicAuthUser"><?php echo __('基本身份验证用户', 'static-html-output-plugin');?></label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'basicAuthUser', '基本身份验证用户', '', ''); ?>
</td>
</tr>
<tr>
<th scope="row">
<label for="basicAuthPassword"><?php echo __('基本身份验证密码', 'static-html-output-plugin');?></label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'basicAuthPassword', '基本身份验证密码', '', 'password'); ?>
</td>
</tr>
<tr>
<th scope="row">
<label for="crawlPort"><?php echo __('自定义爬站端口', 'static-html-output-plugin');?></label>
</th>
<td>
<?php $tpl->displayTextfield($this, 'crawlPort', '自定义爬站端口', ''); ?>
</td>
</tr> -->
<tr>
<th scope="row">
<label for="detection_level"><?php echo __('爬站基础深度', 'static-html-output-plugin');?></label>
</th>
<td>
<select name="detection_level" id="detection_level">
<?php
// TODO: shift this into helper function for select
$detection_levels = array(
'everything' => '尽可能的爬所有页面',
'posts_and_pages' => '只爬产品页和单页',
'homepage' => '只爬网站主页'
);
foreach($detection_levels as $key => $level) : ?>
<option value="<?php echo $key; ?>"<?php echo $this->options->detection_level == $key ? ' selected' : ''; ?>><?php echo $level; ?></option>
<?php endforeach; ?>
</select>
<button class="button button-secondary" id="save-and-reload">保存并重新加载</button>
<p>保存并重新加载后,可以预览爬站的初始列表,根据列表可以在排除选型框和额外加载选项框中做调整,得到自己想要的爬站列表。</p>
</td>
</tr>
<tr>
<th scope="row">
<label><?php echo __('初始爬站列表', 'static-html-output-plugin');?></label>
</th>
<td>
<p>在开始导出站点之前,插件首先生成一个它认为应该包含的所有WordPress url的列表。它从你的帖子、页面、标签、档案和媒体中获取这些信息。</p>
<div id="initial_crawl_list_loader" class="spinner is-active" style="float:none;width:auto;height:auto;padding:10px 0 10px 50px;background-position:20px 0;">
Generating initial file list
</div>
<i><p id="initial_crawl_list_count"></p></i>
<br>
<a id="preview_initial_crawl_list_button" style="display:none;" href="<?php echo $this->wp_site->uploads_url; ?>/WP-STATIC-INITIAL-CRAWL-LIST.txt" class="button button-secondary" target="_blank">预览初始爬网列表</a>
</td>
</tr>
<tr>
<th scope="row">
<label><?php echo __('排除某些 URLs', 'static-html-output-plugin');?></label>
</th>
<td>
<p>如果插件检测到太多的文件,并且您希望从爬网中排除某些URL,请在此处指定这些URL。</p> <br>
<i><p>可以将其作为部分字符串或完整路径输入,如:</p> <br>
<div style="font-size: 18px;font-weight:500;color:#a93b3b;background: rgba(0,0,0,.07);padding: 15px;border-radius: 5px;max-width: 960px;line-height: 25px;">
/wp-content/themes/heku-cms\assets\admin<br>
/wp-content/themes/heku-cms\Library<br>
/wp-content/themes/heku-cms\TempParts<br>
/wp-content/themes/heku-cms\screenshot.png<br>
/wp-content/themes/heku-cms\style.css<br>
</div>
</i>
<br>
<textarea class="widefat" name="excludeURLs" id="excludeURLs" rows="5" cols="10"><?php echo $this->options->excludeURLs ? $this->options->excludeURLs : '' ?></textarea>
</td>
</tr>
<tr>
<th scope="row">
<label><?php echo __('包含额外的 URLs', 'static-html-output-plugin');?></label>
</th>
<td>
<p>如果插件无法检测到您知道要包含的某些URL,请在此处添加这些URL。这将在任何排除之后应用,以防您要排除整个目录,然后只包括其中一个文件。</p> <br>
<i><p>支持的格式是相对URL,如:</p> <br>
<div style="font-size: 18px;font-weight:500;color:#a93b3b;background: rgba(0,0,0,.07);padding: 15px;border-radius: 5px;max-width: 960px;line-height: 25px;">
/wp-content/plugins/Xml-Sitemap-Generator-For-Google/templates/sitemap.xsl<br>
</div>
</i>
<br>
<textarea class="widefat" name="additionalUrls" id="additionalUrls" rows="5" cols="10"><?php echo $this->options->additionalUrls ? $this->options->additionalUrls : '' ?></textarea>
</td>
</tr>
<tr>
<th scope="row">
<label for="crawl_delay"><?php echo __('爬站延迟', 'static-html-output-plugin');?></label>
</th>
<td>
<select name="crawl_delay" id="crawl_delay">
<?php
// TODO: shift this into helper function for select
$delays = array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 2, 3, 4, 10);
foreach($delays as $delay) : ?>
<option value="<?php echo $delay; ?>"<?php echo $this->options->crawl_delay == $delay ? ' selected' : ''; ?>><?php echo $delay; ?></option>
<?php endforeach; ?>
</select><br>
<p>默认情况下,此值设置为0以提高性能,但是如果导出失败并且启用调试日志时没有出现错误,或者在服务器日志中看到“打开的文件太多”或此类错误,请尝试增加此值,直到成功导出。</p>
</td>
</tr>
</tbody>
</table>
</div><!-- end crawl_setings -->