Skip to content

Commit

Permalink
🏇 add theme option default value function
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Oct 22, 2017
1 parent 4edd575 commit e66b33a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/com/tale/extension/Theme.java
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,20 @@ public static String comments_num(String noComment, String value) {
return contents.getCommentsNum() > 0 ? String.format(value, contents.getCommentsNum()) : noComment;
}

/**
* 返回主题设置选项
*
* @param key
* @return
*/
public static String theme_option(String key, String defaultValue) {
String option = theme_option(key);
if (StringKit.isBlank(option)) {
return defaultValue;
}
return option;
}

/**
* 返回主题设置选项
*
Expand Down

0 comments on commit e66b33a

Please sign in to comment.