Skip to content

Commit

Permalink
docs:add theme config docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfa committed Jun 19, 2024
1 parent 3ff44c6 commit d99c074
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ Farallon is a simple single column wordpress theme with perfect performace and e

[中文说明](https://github.com/bigfa/Farallon/blob/develop/README_CN.md)

latest version : `0.7.1`
latest version : `0.7.2`

[Simple User Guide(Chinese)](https://fatesinger.com/101971)

## Changelog

### 0.7.2

- add theme setting docs

### 0.7.1

- add twitter head meta
Expand Down
6 changes: 5 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@

## 更新日志

### 0.7,1
### 0.7.2

- 增加主题设置文档链接

### 0.7.1

- 增加 twiiter 头部标签

Expand Down
2 changes: 1 addition & 1 deletion build/css/setting.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions modules/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ function setting_page()
$class = $id == "basic" ? "div-tab" : "div-tab hidden";
?>
<div id="tab-<?php echo $id; ?>" class="<?php echo $class; ?>">
<?php if (isset($val['docs'])) : ?>
<div class="pure-docs">
<a href="<?php echo $val['docs']; ?>" target="_blank"><?php _e('Documentation', 'Farallon') ?></a>
</div>
<?php endif; ?>
<table class="form-table">
<tbody>
<?php
Expand Down Expand Up @@ -275,6 +280,7 @@ function setting_switch($params)
],
[
'id' => 'feature',
'docs' => 'https://docs.wpista.com/config/feature.html',
'content' => [
[
'type' => 'switch',
Expand Down Expand Up @@ -448,6 +454,7 @@ function setting_switch($params)
],
[
'id' => 'meta',
'docs' => 'https://docs.wpista.com/config/sns.html',
'content' => [
[
'type' => 'switch',
Expand Down
6 changes: 6 additions & 0 deletions scss/setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,9 @@ textarea.code {
background: #455473;
}
}

.pure-docs {
display: flex;
padding-bottom: 10px;
align-items: center;
}
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Theme URI: https://github.com/bigfa/Farallon
Author: bigfa
Author URI: https://github.com/bigfa
Description: theme 2024
Version: 0.7.1
Version: 0.7.2
Tags: Minimalism, Responsive
*/

0 comments on commit d99c074

Please sign in to comment.