This commit is contained in:
杜恒
2021-04-28 10:41:11 +08:00
parent 5ae6a58e3a
commit 23fc07747a
9 changed files with 165 additions and 11 deletions

View File

@@ -32,6 +32,18 @@
</div>
<script>
<?php
$cookie = Typecho_Cookie::getPrefix();
$notice = $cookie . '__typecho_notice';
$type = $cookie . '__typecho_notice_type';
?>
<?php if (isset($_COOKIE[$notice]) && isset($_COOKIE[$type]) && ($_COOKIE[$type] == 'success' || $_COOKIE[$type] == 'notice' || $_COOKIE[$type] == 'error')) : ?>
Qmsg.info("<?php echo preg_replace('#\[\"(.*?)\"\]#', '$1', $_COOKIE[$notice]); ?>")
<?php endif; ?>
<?php
Typecho_Cookie::delete('__typecho_notice');
Typecho_Cookie::delete('__typecho_notice_type');
?>
console.log("%c页面加载耗时<?php _endCountTime(); ?> | Theme By Joe", "color:#fff; background: linear-gradient(270deg, #986fee, #8695e6, #68b7dd, #18d7d3); padding: 8px 15px; border-radius: 0 15px 0 15px");
<?php $this->options->JCustomScript() ?>
</script>