Commit 69af4e43 authored by Van's avatar Van

uvstat

parent 6f0f0487
var Util={uvstat:void 0,initViewCnt:function(){Util.uvstat=new Uvstat({loading:"<span>0</span>"}),Util.uvstat.setStat(),Util.uvstat.renderStat()},isArticlePage:function(e){var t=!0;return e.indexOf(Label.servePath+"/tags/")>-1&&(t=!1),e.indexOf(Label.servePath+"/tags.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/category/")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives/")>-1&&(t=!1),e.indexOf(Label.servePath+"/links.html")>-1&&(t=!1),e===Label.servePath&&(t=!1),/^[0-9]*$/.test(e.replace(Label.servePath+"/",""))&&(t=!1),t},initPjax:function(e){1===$("#pjax").length&&($.pjax({selector:"a",container:"#pjax",show:"",cache:!1,storage:!0,titleSuffix:"",filter:function(e,t){return!e||("_blank"===t.getAttribute("target")||(e===Label.servePath+"/rss.xml"||e.indexOf(Label.servePath+"/admin-index.do")>-1||(0===e.indexOf("#")||!(t.href.indexOf(Label.servePath)>-1))))},callback:function(){Util.parseMarkdown(),Util.parseLanguage(),Util.uvstat.renderStat(),e&&e()}}),NProgress.configure({showSpinner:!1}),$("#pjax").bind("pjax.start",(function(){NProgress.start()})),$("#pjax").bind("pjax.end",(function(){window.scroll(window.scrollX,0),NProgress.done()})))},previewImg:function(){$("body").on("click",".vditor-reset img",(function(){$(this).hasClass("prevent")||window.open(this.src)}))},addStyle:function(e,t){if(!document.getElementById(t)){var i=document.createElement("link");i.id=t,i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(i)}},addScript:function(e,t){if(!document.getElementById(t)){var i=new XMLHttpRequest;i.open("GET",e,!1),i.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),i.send("");var n=document.createElement("script");n.id=t,n.type="text/javascript",n.text=i.responseText,document.getElementsByTagName("head")[0].appendChild(n)}},parseLanguage:function(){Vditor.highlightRender({style:Label.hljsStyle,enable:!Label.luteAvailable},document)},parseMarkdown:function(){"undefined"==typeof Vditor&&Util.addScript("https://cdn.jsdelivr.net/npm/vditor@2.0.15/dist/method.min.js","vditorPreviewScript"),Vditor.codeRender(document.body,Label.langLabel),Label.luteAvailable?Vditor.mathRenderByLute(document.body):Vditor.mathRender(document.body),Vditor.abcRender(),Vditor.chartRender(),Vditor.mediaRender(document.body),Vditor.mermaidRender(document.body),document.querySelectorAll(".vditor-reset").forEach(e=>{Vditor.speechRender(e,Label.langLabel)})},killIE:function(e){var t=navigator.userAgent.split("MSIE")[1];t&&(e||(e=7),parseFloat(t.split(";"))<=e&&function(){try{var e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+($(window).width()-781)/2+"px;z-index:120;top: "+($(window).height()-680)/2+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";$("body").append(e)}catch(t){e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+10+"px;z-index:120;top: "+0+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";document.body.innerHTML=document.body.innerHTML+e}}())},setTopBar:function(){var e=$("#top");if(1===e.length){var t=$("#showTop");t.click((function(){e.slideDown(),t.hide()})),$("#hideTop").click((function(){e.slideUp(),t.show()}))}},goTop:function(){$("html, body").animate({scrollTop:0},800)},goBottom:function(e){e||(e=0),$("html, body").animate({scrollTop:$(document).height()-$(window).height()-e},800)},init:function(){Util.killIE(),Util.parseMarkdown(),Util.parseLanguage(),Util.initSW(),Util.previewImg(),Util.initDebugInfo(),Util.initViewCnt()},initDebugInfo:function(){console.log("%cSolo%c\n \ud83c\udfb8\u4e00\u6b3e\u5c0f\u800c\u7f8e\u7684\u535a\u5ba2\u7cfb\u7edf\uff0c\u4e13\u4e3a\u7a0b\u5e8f\u5458\u8bbe\u8ba1\u3002\n\n solo.b3log.org v"+Label.version+"\n Copyright \xa9 2010-present","font-size:96px;color:#3b3e43","font-size:12px;color:#4285f4;")},initSW:function(){navigator.serviceWorker&&navigator.serviceWorker.register("/sw.js",{scope:"/"})},buildTags:function(e){e=e||"tags";for(var t=["tags1","tags2","tags3","tags4","tags5"],i=$("#"+e+" b").get(),n=parseInt($("#"+e+" b").last().text()),a=Math.ceil(n/t.length),o=0;o<i.length;o++)for(var r=parseInt(i[o].innerHTML),l=0;l<t.length;l++)if(r>l*a&&r<=(l+1)*a){i[o].parentNode.className=t[l];break}$("#"+e).html($("#"+e+" li").get().sort((function(e,t){var i=$(e).find("span").text().toLowerCase(),n=$(t).find("span").text().toLowerCase();return i.localeCompare(n)})))}};
\ No newline at end of file
var Util={uvstat:void 0,initViewCnt:function(){Util.uvstat=new Uvstat,Util.uvstat.addStat(),Util.uvstat.renderStat()},isArticlePage:function(e){var t=!0;return e.indexOf(Label.servePath+"/tags/")>-1&&(t=!1),e.indexOf(Label.servePath+"/tags.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/category/")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives/")>-1&&(t=!1),e.indexOf(Label.servePath+"/links.html")>-1&&(t=!1),e===Label.servePath&&(t=!1),/^[0-9]*$/.test(e.replace(Label.servePath+"/",""))&&(t=!1),t},initPjax:function(e){1===$("#pjax").length&&($.pjax({selector:"a",container:"#pjax",show:"",cache:!1,storage:!0,titleSuffix:"",filter:function(e,t){return!e||("_blank"===t.getAttribute("target")||(e===Label.servePath+"/rss.xml"||e.indexOf(Label.servePath+"/admin-index.do")>-1||(0===e.indexOf("#")||!(t.href.indexOf(Label.servePath)>-1))))},callback:function(){Util.parseMarkdown(),Util.parseLanguage(),Util.uvstat.renderStat(),e&&e()}}),NProgress.configure({showSpinner:!1}),$("#pjax").bind("pjax.start",(function(){NProgress.start()})),$("#pjax").bind("pjax.end",(function(){window.scroll(window.scrollX,0),NProgress.done()})))},previewImg:function(){$("body").on("click",".vditor-reset img",(function(){$(this).hasClass("prevent")||window.open(this.src)}))},addStyle:function(e,t){if(!document.getElementById(t)){var i=document.createElement("link");i.id=t,i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(i)}},addScript:function(e,t){if(!document.getElementById(t)){var i=new XMLHttpRequest;i.open("GET",e,!1),i.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),i.send("");var n=document.createElement("script");n.id=t,n.type="text/javascript",n.text=i.responseText,document.getElementsByTagName("head")[0].appendChild(n)}},parseLanguage:function(){Vditor.highlightRender({style:Label.hljsStyle,enable:!Label.luteAvailable},document)},parseMarkdown:function(){"undefined"==typeof Vditor&&Util.addScript("https://cdn.jsdelivr.net/npm/vditor@2.0.15/dist/method.min.js","vditorPreviewScript"),Vditor.codeRender(document.body,Label.langLabel),Label.luteAvailable?Vditor.mathRenderByLute(document.body):Vditor.mathRender(document.body),Vditor.abcRender(),Vditor.chartRender(),Vditor.mediaRender(document.body),Vditor.mermaidRender(document.body),document.querySelectorAll(".vditor-reset").forEach(e=>{Vditor.speechRender(e,Label.langLabel)})},killIE:function(e){var t=navigator.userAgent.split("MSIE")[1];t&&(e||(e=7),parseFloat(t.split(";"))<=e&&function(){try{var e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+($(window).width()-781)/2+"px;z-index:120;top: "+($(window).height()-680)/2+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";$("body").append(e)}catch(t){e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+10+"px;z-index:120;top: "+0+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";document.body.innerHTML=document.body.innerHTML+e}}())},setTopBar:function(){var e=$("#top");if(1===e.length){var t=$("#showTop");t.click((function(){e.slideDown(),t.hide()})),$("#hideTop").click((function(){e.slideUp(),t.show()}))}},goTop:function(){$("html, body").animate({scrollTop:0},800)},goBottom:function(e){e||(e=0),$("html, body").animate({scrollTop:$(document).height()-$(window).height()-e},800)},init:function(){Util.killIE(),Util.parseMarkdown(),Util.parseLanguage(),Util.initSW(),Util.previewImg(),Util.initDebugInfo(),Util.initViewCnt()},initDebugInfo:function(){console.log("%cSolo%c\n \ud83c\udfb8\u4e00\u6b3e\u5c0f\u800c\u7f8e\u7684\u535a\u5ba2\u7cfb\u7edf\uff0c\u4e13\u4e3a\u7a0b\u5e8f\u5458\u8bbe\u8ba1\u3002\n\n solo.b3log.org v"+Label.version+"\n Copyright \xa9 2010-present","font-size:96px;color:#3b3e43","font-size:12px;color:#4285f4;")},initSW:function(){navigator.serviceWorker&&navigator.serviceWorker.register("/sw.js",{scope:"/"})},buildTags:function(e){e=e||"tags";for(var t=["tags1","tags2","tags3","tags4","tags5"],i=$("#"+e+" b").get(),n=parseInt($("#"+e+" b").last().text()),a=Math.ceil(n/t.length),r=0;r<i.length;r++)for(var o=parseInt(i[r].innerHTML),l=0;l<t.length;l++)if(o>l*a&&o<=(l+1)*a){i[r].parentNode.className=t[l];break}$("#"+e).html($("#"+e+" li").get().sort((function(e,t){var i=$(e).find("span").text().toLowerCase(),n=$(t).find("span").text().toLowerCase();return i.localeCompare(n)})))}};
\ No newline at end of file
......@@ -58,7 +58,7 @@
&nbsp; | &nbsp;
<span class="vditor-tooltipped vditor-tooltipped__n" aria-label="${viewCountLabel}">
<i class="icon-views"></i>
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span> ${viewLabel}
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}
</span>
</div>
</header>
......
......@@ -75,7 +75,7 @@
${statistic.statisticPublishedBlogCommentCount}
<span class="ft-gray">${commentLabel}</span></a><br/>
</#if>
<span data-uvstaturl="${servePath}">0</span> <span class="ft-gray">${viewLabel}</span><br/>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span> <span class="ft-gray">${viewLabel}</span><br/>
${onlineVisitorCnt} <span class="ft-gray">${onlineVisitorLabel}</span>
</div>
</main>
......@@ -120,4 +120,4 @@
</#if>
</section>
</#if>
</aside>
\ No newline at end of file
</aside>
......@@ -28,7 +28,7 @@
<li>
${viewCount1Label}
<span class='error-msg'>
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
</span>
</li>
<li>
......@@ -112,7 +112,7 @@
<li>
<a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}">
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>]</sup>
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>]</sup>
${article.articleTitle}
</a>
</li>
......@@ -211,4 +211,4 @@
</dl>
</div>
</#if>
</#if>
\ No newline at end of file
</#if>
......@@ -62,7 +62,7 @@
</#if>
&nbsp;·&nbsp;
<a class="item__tag" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span> ${viewLabel}
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}
</a>
</div>
</article>
......@@ -92,4 +92,4 @@
</#if>
</nav>
</#if>
</div>
\ No newline at end of file
</div>
......@@ -57,7 +57,7 @@
<#if commentable>
${statistic.statisticPublishedBlogCommentCount} ${commentLabel} <br>
</#if>
<span data-uvstaturl="${servePath}">0</span> ${viewLabel} <br>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span> ${viewLabel} <br>
${onlineVisitorCnt} ${onlineVisitorLabel}
</div>
</div>
......@@ -124,4 +124,4 @@
</ul>
</div>
</div>
</#macro>
\ No newline at end of file
</#macro>
......@@ -74,7 +74,7 @@
</a>
<#else>
<a class="item__meta" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span> ${viewLabel}
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}
</a>
</#if>
</div>
......
......@@ -44,7 +44,7 @@
<br>
${statistic.statisticPublishedBlogArticleCount} ${articleLabel} &nbsp;
<#if commentable>${statistic.statisticPublishedBlogCommentCount} ${commentLabel} &nbsp;</#if>
<span data-uvstaturl="${servePath}">0</span> ${viewLabel} &nbsp;
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span> ${viewLabel} &nbsp;
${onlineVisitorCnt} ${onlineVisitorLabel}
</div>
</div>
......
......@@ -38,7 +38,7 @@
</li>
<li>
<a rel="nofollow" href="${servePath}${article.articlePermalink}" title="${viewLabel}">
${viewLabel} (<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>)
${viewLabel} (<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>)
</a>
</li>
<#if commentable>
......
......@@ -32,7 +32,7 @@
<div class="right">
${viewCount1Label}
<span class='error-msg'>
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
</span>
&nbsp;&nbsp;
${articleCount1Label}
......
......@@ -50,7 +50,7 @@
<#list mostViewCountArticles as article>
<li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>]</sup>${article.articleTitle}
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>]</sup>${article.articleTitle}
</a>
</li>
</#list>
......@@ -141,8 +141,8 @@
<a rel="friend" href="${link.linkAddress}" title="${link.linkTitle}" target="_blank">
${link.linkTitle}
</a>
<img onclick="window.location='${link.linkAddress}'"
alt="${link.linkTitle}"
<img onclick="window.location='${link.linkAddress}'"
alt="${link.linkTitle}"
src="${faviconAPI}<#list link.linkAddress?split('/') as x><#if x_index=2>${x}<#break></#if></#list>" width="16" height="16" />
</li>
</#list>
......
......@@ -49,7 +49,7 @@
<#else>
<a href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
</#if>
<time>${comment.commentDate?string("yy-MM-dd HH")}</time>
<time>${comment.commentDate?string("yy-MM-dd HH")}</time>
</span>
<a class="fn-right" href="${servePath}${comment.commentSharpURL}">${viewLabel}»</a>
</div>
......@@ -96,7 +96,7 @@
${article.articleTitle}
</a>
<span data-ico="&#xe185;">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</span>
</li>
</#list>
......
......@@ -22,7 +22,7 @@
<span class="fn-right">
<#if isLoggedIn>
<a href="${servePath}/admin-index.do#main" title="${adminLabel}" class="icon-setting"></a>
&nbsp;
&nbsp;
<a title="${logoutLabel}" class="icon-logout" href="${logoutURL}"></a>
<#else>
<a href="${servePath}/start" title="${startToUseLabel}" class="icon-login"></a>
......@@ -74,7 +74,7 @@
</div>
<span>
${viewCount1Label}
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
</span> &nbsp; &nbsp;
<span>
${articleCount1Label}
......@@ -90,4 +90,4 @@
${onlineVisitor1Label}
${onlineVisitorCnt}
</span>
</div>
\ No newline at end of file
</div>
......@@ -52,7 +52,7 @@
<a class="ft__red" href="${servePath}${article.articlePermalink}#comments"><#if article.articleCommentCount gt 0>${article.articleCommentCount} </#if>${commentLabel}</a>
</#if>
<a class="ft__red" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="${servePath}${article.articlePermalink}">0</span> ${viewLabel}</a>
<a class="ft__red" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}</a>
</div>
</div>
<div class="vditor-reset article__content">
......@@ -93,4 +93,4 @@
<a href="${servePath}${path}${pagingSep}${paginationNextPageNum}" class="pagination__item fn__flex-center">Next &raquo;</a>
</#if>
</nav>
</#if>
\ No newline at end of file
</#if>
......@@ -61,7 +61,7 @@
</a> &nbsp;•&nbsp;
</#if>
<a href="${servePath}${article.articlePermalink}" class="ft-gray">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span> ${viewLabel}
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}
</a>
</div>
</header>
......@@ -89,4 +89,4 @@
<a href="${servePath}${path}${pagingSep}${paginationNextPageNum}" class="pagination__item">&raquo;</a>
</#if>
</nav>
</#if>
\ No newline at end of file
</#if>
......@@ -32,7 +32,7 @@
<div class="fn-clear">
${statistic.statisticPublishedBlogArticleCount} ${articleLabel} &nbsp;
<#if commentable>${statistic.statisticPublishedBlogCommentCount} ${commentLabel} &nbsp;</#if>
<span data-uvstaturl="${servePath}">0</span> ${viewLabel} &nbsp;
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span> ${viewLabel} &nbsp;
${onlineVisitorCnt} ${onlineVisitorLabel}
<div class="fn-right">
Powered by <a href="https://solo.b3log.org" target="_blank">Solo</a> •
......
......@@ -59,7 +59,7 @@
</a>&nbsp;&nbsp;
</#if>
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>&nbsp;&nbsp;${viewLabel}
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>&nbsp;&nbsp;${viewLabel}
</a>
</div>
<div class="clear"></div>
......
......@@ -61,7 +61,7 @@
<div class="right">
${viewCount1Label}
<span class="tip">
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
</span>
&nbsp;&nbsp;
${articleCount1Label}
......
......@@ -88,7 +88,7 @@
<ul class="side-li">
<#list mostViewCountArticles as article>
<li>
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>]</sup>
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>]</sup>
<a title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
......
......@@ -69,7 +69,7 @@
<#if commentable>
${statistic.statisticPublishedBlogCommentCount}
${commentLabel}</#if> <br>
<span data-uvstaturl="${servePath}">0</span> <span class="ft-gray">${viewLabel}</span> &nbsp; &nbsp;
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span> <span class="ft-gray">${viewLabel}</span> &nbsp; &nbsp;
${onlineVisitorCnt} <span class="ft-gray">${onlineVisitorLabel}</span> <br>
&copy; ${year}
<a class="ft__link" href="${servePath}">${blogTitle}</a>
......
......@@ -56,7 +56,7 @@
<div class="margin25">
<a rel="nofollow" href="${servePath}${article.articlePermalink}" class="left">
<span class="left article-browserIcon" title="${viewLabel}"></span>
<span class="count"><span data-uvstaturl="${servePath}${article.articlePermalink}">0</span></span>
<span class="count"><span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span></span>
</a>
<div class="left">
<span class="tagsIcon" title="${tagLabel}"></span>
......
......@@ -101,7 +101,7 @@
<li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>(<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>)
</a>(<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>)
</li>
</#list>
</ul>
......@@ -211,4 +211,4 @@
</#if>
</#if>
<div class="rings" style="bottom: 0px;"></div>
</div>
\ No newline at end of file
</div>
......@@ -21,7 +21,7 @@
<span>
${viewCount1Label}
<span class='error-msg'>
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
</span>
&nbsp;&nbsp;
</span>
......@@ -41,4 +41,4 @@
</span>
</#if>
</div>
<div class="clear"></div>
\ No newline at end of file
<div class="clear"></div>
......@@ -64,7 +64,7 @@
<div class="article-footer">
<a rel="nofollow" href="${servePath}${article.articlePermalink}" class="left">
<span class="left article-browserIcon" title="${viewLabel}"></span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</a>
<div class="left">
<span class="tagsIcon" title="${tagLabel}"></span>
......
......@@ -63,7 +63,7 @@
<span>
${viewCount1Label}
<span class='error-msg'>
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
</span>
&nbsp;&nbsp;
</span>
......@@ -84,4 +84,4 @@
</#if>
</div>
<div class="clear"></div>
</div>
\ No newline at end of file
</div>
......@@ -89,7 +89,7 @@
<li>
<a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}">
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>]</sup>
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>]</sup>
${article.articleTitle}
</a>
</li>
......
......@@ -33,7 +33,7 @@
</a>
</#if>
<a rel="nofollow" data-ico="&#xe185;" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</a>
<a rel="nofollow" data-ico="&#x0060;" href="${servePath}/authors/${article.authorId}">
${article.authorName}
......
......@@ -97,7 +97,7 @@
<span data-ico="&#xe037;"></span>
<div class="text">
${viewCount1Label}
<span data-uvstaturl="${servePath}">0</span><br/>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span><br/>
${articleCount1Label}
${statistic.statisticPublishedBlogArticleCount}<br/>
${commentCount1Label}
......@@ -153,7 +153,7 @@
${article.articleTitle}
</a>
<span data-ico="&#xe185;">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</span>
</li>
</#list>
......@@ -192,7 +192,7 @@
</div>
<div class="text fn-right">
<#list mostUsedTags as tag>
<a rel="tag" href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
<a rel="tag" href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
title="${tag.tagTitle}(${tag.tagPublishedRefCount})">
${tag.tagTitle}
</a>
......
......@@ -41,7 +41,7 @@
<span data-ico="&#xe037;"></span>
<div class="text">
${viewCount1Label}
<span data-uvstaturl="${servePath}">0</span><br/>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span><br/>
${articleCount1Label}
${statistic.statisticPublishedBlogArticleCount}<br/>
<#if commentable>
......@@ -205,4 +205,4 @@
</#if>
</div>
</div>
</#macro>
\ No newline at end of file
</#macro>
......@@ -57,7 +57,7 @@
${article.articleCommentCount} ${cmtLabel}</a>
</span>
</#if>
&nbsp; | &nbsp;${viewsLabel} <span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>°C
&nbsp; | &nbsp;${viewsLabel} <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>°C
</div>
</header>
<div class="vditor-reset">
......
......@@ -42,7 +42,7 @@
</div>
<div class="site-state-item site-state-categories">
<span class="site-state-item-count"><span data-uvstaturl="${servePath}">0</span></span>
<span class="site-state-item-count"><span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span></span>
<span class="site-state-item-name">${viewLabel}</span>
</div>
......@@ -118,4 +118,4 @@
</#if>
</section>
</#if>
</aside>
\ No newline at end of file
</aside>
......@@ -63,7 +63,7 @@
</#if>
<span class="tag">
<i class="icon__views"></i>
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span> ${viewLabel}
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}
</span>
</div>
......@@ -97,4 +97,4 @@
</nav>
</div>
</#if>
</div>
\ No newline at end of file
</div>
......@@ -140,7 +140,7 @@
<br/>
<div class="fn__flex">
<div class="fn__flex-1 ft__center">
<span data-uvstaturl="${servePath}">0</span> <span class="ft-gray">${viewLabel}</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span> <span class="ft-gray">${viewLabel}</span>
</div>
<div class="fn__flex-1 ft__center">
${onlineVisitorCnt} <span class="ft-gray">${onlineVisitorLabel}</span>
......@@ -148,4 +148,4 @@
</div>
</div>
</div>
</aside>
\ No newline at end of file
</aside>
......@@ -46,7 +46,7 @@
</#if> ${article.articleUpdateDate?string("yyyy-MM-dd HH:mm")} |
${viewCount1Label}
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</a><#if commentable> | ${commentCount1Label}
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<span class="left articles-commentIcon" title="${commentLabel}"></span>
......
......@@ -113,7 +113,7 @@
<li>
<a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}">
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>]</sup>
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>]</sup>
${article.articleTitle}
</a>
</li>
......
......@@ -67,7 +67,7 @@
</span>
<span class="ico-view ico" title="${viewLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</a>
</span>
</div>
......@@ -77,4 +77,4 @@
<div class="article-more" onclick="timeline.getNextPage(this)" data-page="${paginationCurrentPageNum}">${moreLabel}</div>
</#if>
</div>
</div>
\ No newline at end of file
</div>
......@@ -77,7 +77,7 @@
<ul class="list">
<#list mostCommentArticles as article>
<li class="fn-clear">
<a class="left" rel="nofollow" title="${article.articleTitle}"
<a class="left" rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}">
${article.articleTitle}
</a>
......@@ -106,7 +106,7 @@
</a>
<span class="ico ico-view right" title="${viewLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</a>
</span>
</li>
......@@ -118,7 +118,7 @@
<div class="module tags">
<h3 class="title">${popTagsLabel}</h3>
<#list mostUsedTags as tag>
<a rel="tag" href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
<a rel="tag" href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
title="${tag.tagTitle}(${tag.tagPublishedRefCount})">
${tag.tagTitle}
</a>&nbsp; &nbsp;
......
......@@ -34,7 +34,7 @@
<span class="left">
<span>
${viewCount1Label}
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
&nbsp;&nbsp;
</span>
<span>
......
......@@ -104,7 +104,7 @@
</#if>
<span class="ico-view ico" title="${viewLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</a>
</span>
</div>
......
......@@ -309,7 +309,8 @@ var timeline = {
+ Label.commentLabel + '"><a rel="nofollow" href="' + Label.servePath + article.articlePermalink
+ '#comments">' + (article.articleCommentCount === 0 ? Label.noCommentLabel : article.articleCommentCount)
+ '</a></span>&nbsp;<span class="ico-view ico" title="' + Label.viewLabel + '">'
+ '<a rel="nofollow" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="' + Label.servePath + article.articlePermalink + '">0</span>'
+ '<a rel="nofollow" href="${servePath}${article.articlePermalink}">'
+ '<span data-uvstaturl="' + Label.servePath + article.articlePermalink + '">' + article.articleViewCount + '</span>'
+ '</a></span></div></article>';
}
......
......@@ -22,7 +22,7 @@
<div>
${viewCount1Label}
<span class='error-msg'>
<span data-uvstaturl="${servePath}">0</span>
<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
</span>
</div>
<div>
......@@ -96,7 +96,7 @@
<#list mostViewCountArticles as article>
<li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>]</sup>${article.articleTitle}
<sup>[<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>]</sup>${article.articleTitle}
</a>
</li>
</#list>
......@@ -148,7 +148,7 @@
${link.linkTitle}
</a>
<img onclick="window.location='${link.linkAddress}'"
alt="${link.linkTitle}"
alt="${link.linkTitle}"
src="${faviconAPI}<#list link.linkAddress?split('/') as x><#if x_index=2>${x}<#break></#if></#list>" width="16" height="16" />
</li>
</#list>
......
......@@ -71,7 +71,7 @@
<a class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
href="${servePath}${article.articlePermalink}"
aria-label="${viewLabel}">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
<span class="icon-views"></span>
</a>
<a rel="nofollow" href="${servePath}/authors/${article.authorId}" class="fn__flex-center">
......
......@@ -43,7 +43,7 @@
<#else>
<a href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
</#if>
<time>${comment.commentDate?string("yy-MM-dd HH")}</time>
<time>${comment.commentDate?string("yy-MM-dd HH")}</time>
</span>
<a class="fn-right" href="${servePath}${comment.commentSharpURL}">${viewLabel}»</a>
</div>
......@@ -95,7 +95,7 @@
${article.articleTitle}
</a>
<span data-ico="&#xe185;">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>
</span>
</li>
</#list>
......
......@@ -25,7 +25,7 @@
<a rel="friend" href="http://vanessa.b3log.org" target="_blank">Vanessa</a>
</div>
<span class="fn-right">
${viewCount1Label}<span data-uvstaturl="${servePath}">0</span>
${viewCount1Label}<span data-uvstaturl="${servePath}">${statistic.statisticBlogViewCount}</span>
&nbsp;
${articleCount1Label}${statistic.statisticPublishedBlogArticleCount}
<#if commentable>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment