瀏覽代碼

添加icon和百度统计

wqg 3 周之前
父節點
當前提交
f8dd9f7736
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      usr/themes/default/header.php

+ 13 - 0
usr/themes/default/header.php

@@ -16,9 +16,22 @@
     <link rel="stylesheet" href="<?php $this->options->themeUrl('normalize.css'); ?>">
     <link rel="stylesheet" href="<?php $this->options->themeUrl('grid.css'); ?>">
     <link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>">
+    <link rel="shortcut icon" href="https://cdn.wqg.life/common/logo.ico"type="image/x-icon" />
 
     <!-- 通过自有函数输出HTML头部信息 -->
     <?php $this->header(); ?>
+
+    <!-- 百度统计信息 -->
+    <script>
+    var _hmt = _hmt || [];
+    (function() {
+      var hm = document.createElement("script");
+      hm.src = "https://hm.baidu.com/hm.js?df916811d68cb68c48be1e2a619190a4";
+      var s = document.getElementsByTagName("script")[0]; 
+      s.parentNode.insertBefore(hm, s);
+    })();
+    </script>
+
 </head>
 <body>