halo-theme-dream2.0-plus
Version:
12 lines (11 loc) • 895 B
HTML
<a xmlns:th="https://www.thymeleaf.org"
th:fragment="footer (footer)" class="record"
th:if="${!#strings.isEmpty(theme.config.basic_info.record_number_ps)}"
th:with="classStr = ${footer != null and not #lists.isEmpty(footer.show_style) ? #strings.trim(#strings.listJoin(footer.show_style,' ')) : ''}"
th:classappend="${classStr}"
th:aria-label="${theme.config.basic_info.record_number_ps}" th:title="${theme.config.basic_info.record_number_ps}"
th:href="'https://beian.mps.gov.cn/#/query/webSearch?code=' + ${theme.config.basic_info.record_number_ps.replaceAll('[^\d]', '')}" target="_blank" rel="noopener noreferrer nofollow">
<img
th:src="${#theme.assets('/img/ga.webp')}" height="auto" width="auto" th:alt="#{footer.ga.name}"
style="vertical-align: text-top; width: 1.2em; margin-right: 4px;"/>[[${theme.config.basic_info.record_number_ps}]]
</a>