Skip to content

Commit

Permalink
fix(version) Version is too old
Browse files Browse the repository at this point in the history
- 修复了版本号过旧的 Bug(逃
  • Loading branch information
idawnlight committed Jul 16, 2017
1 parent 4c99a3c commit eeccef0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define(MATERIAL_VERSION,"3.0.1");
define(MATERIAL_VERSION,"3.0.2");

//Appearance setup
function themeConfig($form)
Expand Down Expand Up @@ -137,6 +137,9 @@ function themeConfig($form)
$ButtonThemeColor = new Typecho_Widget_Helper_Form_Element_Text('ButtonThemeColor', null, _t('#757575'), _t('按钮颜色'), null);
$form->addInput($ButtonThemeColor);

$CardElevation = new Typecho_Widget_Helper_Form_Element_Text('CardElevation', null, _t('2'), _t('卡片阴影'), _t('默认为 2'));
$form->addInput($CardElevation);

$avatarURL = new Typecho_Widget_Helper_Form_Element_Text('avatarURL', null, null, '个人头像地址', '填入头像的地址, 如不填写则使用默认头像');
$form->addInput($avatarURL);

Expand Down
14 changes: 7 additions & 7 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* 这是 Viosey 基于 Google Material Design 开发的 Typecho 主题,目前 Typecho 版由 <a herf="https://blog.lim-light.com/" target="_blank">黎明余光</a> 维护
* 这是 <a herf="https://viosey.com/" target="_blank">Viosey</a> 基于 Google Material Design 开发的 Typecho 主题,目前 Typecho 版由 <a herf="https://blog.lim-light.com/" target="_blank">黎明余光</a> 维护
*
* @package Theme.Material
* @author viosey
* @version 3.0.1
* @link https://viosey.com
* @author 黎明余光
* @version 3.0.2
* @link https://blog.lim-light.com
*/

$this->need('header.php');?>
Expand All @@ -25,7 +25,7 @@
<div class="material-index mdl-grid">

<!-- Daily Pic -->
<div class="mdl-card mdl-shadow--2dp daily-pic mdl-cell mdl-cell--8-col index-top-block">
<div class="mdl-card mdl-shadow--<?php $this->options->CardElevation() ?>dp daily-pic mdl-cell mdl-cell--8-col index-top-block">
<?php if (!empty($this->options->dailypic)): ?>
<div class="mdl-card__media mdl-color-text--grey-50" style="background-image:url(<?php $this->options->dailypic() ?>)">
<?php else: ?>
Expand Down Expand Up @@ -54,7 +54,7 @@
</div>

<!-- Blog info -->
<div class="mdl-card mdl-shadow--2dp something-else mdl-cell mdl-cell--8-col mdl-cell--4-col-desktop index-top-block">
<div class="mdl-card mdl-shadow--<?php $this->options->CardElevation() ?>dp something-else mdl-cell mdl-cell--8-col mdl-cell--4-col-desktop index-top-block">
<!-- Search -->
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable" method="post" action="">
<label id="search-label" class="mdl-button mdl-js-ripple-effect mdl-js-button mdl-button--fab mdl-color--accent mdl-shadow--4dp" for="search">
Expand Down Expand Up @@ -187,7 +187,7 @@
<?php while ($this->next()): ?>

<!-- Article module -->
<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

0 comments on commit eeccef0

Please sign in to comment.