Skip to content

Commit

Permalink
feat:add custom sns congi
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfa committed May 10, 2024
1 parent 8c15127 commit 49c8775
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 11 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.6.2`
latest version : `0.6.3`

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

## Changelog

### 0.6.3

- add custom sns config

### 0.6.2

- add theme docs link
Expand Down
4 changes: 4 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## 更新日志

### 0.6.3

- 增加自定义 SNS 设置

### 0.6.2

- 增加主题文档链接
Expand Down
24 changes: 16 additions & 8 deletions languages/farallon.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the .
msgid ""
msgstr ""
"Project-Id-Version: Farallon 0.6.2\n"
"Project-Id-Version: Farallon 0.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/Farallon\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-05-08T07:06:12+00:00\n"
"POT-Creation-Date: 2024-05-10T02:54:51+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.10.0\n"
"X-Domain: Farallon\n"
Expand Down Expand Up @@ -545,27 +545,35 @@ msgstr ""
msgid "Mastodon link"
msgstr ""

#: modules/setting.php:502
#: modules/setting.php:497
msgid "Custom"
msgstr ""

#: modules/setting.php:498
msgid "Custom sns link,use html."
msgstr ""

#: modules/setting.php:508
msgid "CSS"
msgstr ""

#: modules/setting.php:503
#: modules/setting.php:509
msgid "Custom CSS"
msgstr ""

#: modules/setting.php:508
#: modules/setting.php:514
msgid "Javascript"
msgstr ""

#: modules/setting.php:509
#: modules/setting.php:515
msgid "Custom Javascript"
msgstr ""

#: modules/setting.php:514
#: modules/setting.php:520
msgid "Copyright"
msgstr ""

#: modules/setting.php:515
#: modules/setting.php:521
msgid "Custom footer content"
msgstr ""

Expand Down
Binary file modified languages/zh_CN.mo
Binary file not shown.
8 changes: 8 additions & 0 deletions languages/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,14 @@ msgstr "长毛象"
msgid "Mastodon link"
msgstr "长毛象地址"

#: modules/setting.php:497
msgid "Custom"
msgstr "自定义"

#: modules/setting.php:498
msgid "Custom sns link,use html."
msgstr "自定义链接,使用html 格式。"

#: modules/setting.php:434
msgid "CSS"
msgstr "CSS"
Expand Down
6 changes: 6 additions & 0 deletions modules/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@ function setting_switch($params)
'label' => __('Mastodon', 'Farallon'),
'description' => __('Mastodon link', 'Farallon')
],
[
'type' => 'textarea',
'name' => 'custom_sns',
'label' => __('Custom', 'Farallon'),
'description' => __('Custom sns link,use html.', 'Farallon')
],
]
],
[
Expand Down
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.6.2
Version: 0.6.3
Tags: Minimalism, Responsive
*/
3 changes: 2 additions & 1 deletion template-parts/sns.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@
<path d="M2004.3 228h-.57c-19.87.163-38.97 2.491-50.13 7.601-.5.213-24.58 10.78-24.58 46.99 0 7.394-.14 16.236.09 25.612.4 16.438 2 32.742 7.21 45.957 5.67 14.406 15.47 25.335 32.04 29.72 14.11 3.737 26.23 4.503 35.99 3.967h.01c18.41-1.021 28.71-6.695 28.71-6.695a6.018 6.018 0 0 0 3.16-5.558l-.56-12.178a5.984 5.984 0 0 0-2.56-4.646 5.995 5.995 0 0 0-5.24-.804s-11.04 3.471-23.45 3.047c-4.87-.167-9.84-.357-14.18-1.544-3.91-1.069-7.14-3.148-8.76-7.347 5.59.951 13.45 2.021 22.27 2.425 10.49.481 20.33-.592 30.33-1.785 12.37-1.477 23.76-6.688 31.4-13.091 5.8-4.865 9.47-10.509 10.5-15.801v-.001c3.23-16.623 3.05-40.428 3.04-41.319-.01-36.286-24.23-46.801-24.58-46.951-11.14-5.105-30.25-7.436-50.14-7.599Zm59.9 93.58.09-.471c3.1-15.948 2.73-38.451 2.73-38.451v-.067c0-27.633-17.49-36.04-17.49-36.04a.234.234 0 0 0-.05-.024c-10.05-4.616-27.33-6.379-45.26-6.527h-.41c-17.93.148-35.2 1.911-45.25 6.527l-.06.024s-17.48 8.407-17.48 36.04c0 7.308-.15 16.047.09 25.314v.004c.36 14.96 1.64 29.826 6.37 41.852 4.27 10.836 11.49 19.221 23.95 22.519 12.65 3.349 23.51 4.066 32.26 3.585 9.61-.533 16.56-2.512 20.36-3.891l-.04-.739c-5.11 1.018-12.33 2.033-20 1.771-16.29-.559-32.69-3.029-35.34-23.016a40.2 40.2 0 0 1-.35-5.4 6 6 0 0 1 2.3-4.719 5.998 5.998 0 0 1 5.13-1.109s12.59 3.066 28.55 3.798c9.81.45 19.01-.598 28.36-1.713 9.88-1.18 19.01-5.258 25.11-10.372 3.36-2.814 5.83-5.834 6.43-8.895Zm-54.2-36.244c.68-2.603 3.99-12.807 14.27-12.807 10.68 0 10.54 12.137 10.54 12.137v34.224c0 3.311 2.69 6 6 6s6-2.689 6-6v-34.406s-.68-23.955-22.54-23.955c-10 0-16.43 5.292-20.4 10.778-4.07-5.273-10.62-10.293-20.78-10.293-6.92 0-11.53 2.138-14.68 4.857-6.67 5.747-6.86 14.826-6.81 16.949l.02.455s-.01-.161-.02-.455v-.052 36.342c0 3.311 2.69 6 6 6s6-2.689 6-6v-36.342c0-.169-.01-.338-.02-.507 0 0-.5-4.577 2.66-7.298 1.45-1.252 3.66-1.949 6.85-1.949 10.65 0 14.18 9.844 14.91 12.386v20.233c0 3.311 2.69 6 6 6s6-2.689 6-6v-20.297Z" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" transform="translate(-1908 -212)" />
</svg>
</a>
<?php endif; ?>
<?php endif; ?>
<?php if ($farallonSetting->get_setting('custom_sns')) echo $farallonSetting->get_setting('custom_sns'); ?>

0 comments on commit 49c8775

Please sign in to comment.