2025-2-26-fixed

This commit is contained in:
2025-02-26 09:16:07 +08:00
parent bf50b6c865
commit 4968d276dc
456 changed files with 27801 additions and 1 deletions

View File

@ -0,0 +1,22 @@
{%- if theme.rating.enable %}
<script{{ pjax }}>
if (CONFIG.page.isPost) {
wpac_init = window.wpac_init || [];
wpac_init.push({
widget: 'Rating',
id : {{ theme.rating.id }},
el : 'wpac-rating',
color : '{{ theme.rating.color }}'
});
(function() {
if ('WIDGETPACK_LOADED' in window) return;
WIDGETPACK_LOADED = true;
var mc = document.createElement('script');
mc.type = 'text/javascript';
mc.async = true;
mc.src = '//embed.widgetpack.com/widget.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(mc, s.nextSibling);
})();
}
</script>
{%- endif %}