Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Jul 16, 2017
2 parents eeccef0 + 6d173bd commit 0f08335
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<?php while ($this->next()): ?>

<!-- Article fragment -->
<div class="post_entry-module mdl-card mdl-shadow--2dp mdl-cell mdl-cell--12-col <?php if (!empty($this->options->switch) && in_array('ShowLoadingLine', $this->options->switch)): ?>fade out<?php endif; ?>">
<div class="post_entry-module mdl-card mdl-shadow--<?php $this->options->CardElevation() ?>dp mdl-cell mdl-cell--12-col <?php if (!empty($this->options->switch) && in_array('ShowLoadingLine', $this->options->switch)): ?>fade out<?php endif; ?>">

<!-- Article link & title -->
<?php if ($this->options->ThumbnailOption == '1'): ?>
Expand Down
14 changes: 14 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@
<div class="mdl-layout__obfuscator"></div>
</div>


<!-- UC Browser Compatible -->
<script>
var agent = navigator.userAgent.toLowerCase();
if(agent.indexOf('ucbrowser')>0) {
<?php if (!empty($this->options->CDNURL)): ?>
document.write('<link rel="stylesheet" href="<?php $this->options->CDNURL() ?>/MaterialCDN/css/uc.css">');
<?php else: ?>
document.write('<link rel="stylesheet" href="<?php $this->options->themeUrl('css/uc.css'); ?>">');
<?php endif; ?>
alert('由于 UC 浏览器使用极旧的内核,而本网站使用了一些新的特性。\n为了您能更好的浏览,推荐使用 Chrome 或 Firefox 浏览器。');
}
</script>

<!--Analysis code-->
<?php $this->options->analysis(); ?>
</body>
Expand Down
5 changes: 0 additions & 5 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
<meta name="description" itemprop="description" content="<?php $this->options->description() ?>">
<meta name="keywords" content="<?php $this->options->keywords() ?>">

<!-- Site Verification -->
<!--<% if(theme.head.site_verification.google) { %><meta name="google-site-verification" content="<%= theme.head.site_verification.google %>" /><% } %>
<% if(theme.head.site_verification.baidu) { %><meta name="baidu-site-verification" content="<%= theme.head.site_verification.baidu %>" /><% } %>
-->

<!-- Favicons -->
<link rel="icon shortcut" type="image/ico" href="<?php $this->options->favicon() ?>">
<link rel="icon" sizes="192x192" href="<?php $this->options->favicon() ?>">
Expand Down

0 comments on commit 0f08335

Please sign in to comment.