[WordPress] 外掛分享: Humans TXT

WordPress 外掛 Humans TXT 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Humans TXT」是 2011-05-13 上架。
  • 目前有 500 個安裝啟用數。
  • 上一次更新是 2019-06-10,距離現在已有 2155 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 7 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tillkruess |

外掛標籤

human | humans | humanstxt | humans.txt |

內容簡介

使用WordPress外掛,在您的humans.txt文件中儲存網站背後的人員資訊,並且可以輕鬆在WordPress中編輯。

使用變數,例如最後更新日期、啟用的外掛,還有許多其他變數…
使用[humanstxt] shortcode顯示您的humans.txt在您的網站上
將作者鏈接標籤添加到您網站的標記中
允許非管理員編輯humans.txt
使用自訂過濾器、操作和可插入功能自定義所有內容
恢復以前保存的humans.txt版本

更多Humans TXT資訊可在官方Humans TXT網站上找到。
變數

$wp-title$- 網站/部落格名稱(標題)
$wp-tagline$- 網站/部落格口號(描述)
$wp-posts$- 已發布貼文總數
$wp-pages$- 已發布頁面總數
$wp-lastupdate$- 最後修改的貼文或頁面日期
$wp-authors$- 活動作者及其聯繫方式
$wp-language$- WordPress語言
$wp-plugins$- 啟用中的WordPress外掛
$wp-charset$- 用於網頁和餵養的編碼
$wp-version$- 已安裝的WordPress版本
$php-version$- 運行的PHP解析器版本
$wp-theme$- 活動中的WordPress主題摘要
$wp-theme-name$- 活動主題的名稱
$wp-theme-version$- 活動主題的版本號
$wp-theme-author$- 活動主題的作者名稱
$wp-theme-author-link$- 活動主題的作者鏈接

Shortcode用法

預設shortcode [humanstxt]會顯示虛擬humans.txt文件的內容。 URL、電子郵件地址和Twitter帳戶名稱將轉換為可點擊的鏈接。普通的電子郵件地址會以防垃圾郵件的方式編碼。輸出將使用

標記包裝,並可以通過humanstxt CSS類進行樣式設置。

您可以關閉“可點擊鏈接”功能: [humanstxt clickable="0"]

您還可以分別切換可點擊鏈接: [humanstxt urls="1" emails="0" twitter="1"]

要顯示humans.txt作為預格式化文本,請使用pre屬性:

 [humanstxt pre="1"] 

要顯示未更改的humans.txt,請使用plain屬性:[humanstxt plain="1"]

您可以省略

標記的包裝: [humanstxt wrap="0"]

您可以為包裝的

標記設置CSS ID:[humanstxt id="my-humans-txt"]

您可以關閉對電子郵件地址和常見文本實體的編碼:[humanstxt filter="0"]

有用的功能

humanstxt()
輸出虛擬humans.txt文件的內容。使用get_humanstxt()將內容作為字符串獲取。

is_humans()
確定當前請求是否為虛擬humans.txt文件。

可插入的功能

默認變量中的所有回調函數都可以使用。

原文外掛簡介

Credit the people behind your website in your humans.txt file. Easy to edit, directly within WordPress.

Use variables like a last-updated date, active plugins and many others…
Use the [humanstxt] shortcode to display your humans.txt on your site
Add an author link tag to your site’s

tag
Allow non-admins to edit the humans.txt
Customize everything with custom filters, actions and pluggable functions
Restore previously saved revisions of your humans.txt

More information on the Humans TXT can be found on the official Humans TXT website.
Variables

$wp-title$ – Name (title) of site/blog
$wp-tagline$ – Tagline (description) of site/blog
$wp-posts$ – Number of published posts
$wp-pages$ – Number of published pages
$wp-lastupdate$ – Date of last modified post or page
$wp-authors$ – Active authors and their contact details
$wp-language$ – WordPress language(s)
$wp-plugins$ – Activated WordPress plugins
$wp-charset$ – Encoding used for pages and feeds
$wp-version$ – Installed WordPress version
$php-version$ – Running PHP parser version
$wp-theme$ – Summary of the active WordPress theme
$wp-theme-name$ – Name of the active theme
$wp-theme-version$ – Version number of the active theme
$wp-theme-author$ – Author name of the active theme
$wp-theme-author-link$ – Author link of the active theme

Shortcode Usage
The default shortcode [humanstxt] will display the contents of the virtual humans.txt file. URLs, email addresses and Twitter account names are converted into clickable links. Plain email addresses are encoded for spam protection. The output will be wrapped with a

tag and can be styled via the humanstxt CSS class.
You can turn off the “clickable links” functionality: [humanstxt clickable="0"]
You can also toggle the clickable links individually: [humanstxt urls="1" emails="0" twitter="1"]
To display the humans.txt as preformatted text, use the pre attribute:

[humanstxt pre="1"]

To display the untouched humans.txt, use the plain attribute: [humanstxt plain="1"]
You can omit the wrapping with the

tag: [humanstxt wrap="0"]
You can set a CSS id for the wrapping

tag: [humanstxt id="my-humans-txt"]
You can turn off the encoding of email addresses and common text entities: [humanstxt filter="0"]
Useful Functions
humanstxt()
Echos the content of the virtual humans.txt file. Use get_humanstxt() to get the contents as a string.
is_humans()
Determines if the current request is for the virtual humans.txt file.
Pluggable Functions
All callback functions of the default variables can be overridden. The callback functions are located in humanstxt/callbacks.php.
Plugin Constants
HUMANSTXT_METABOX
Define as false to disable the “rate this plugin” box on the options page.
Plugin Actions and Filters
Actions
do_humans
Runs when the current request is for the humans.txt file, right after the template_redirect action.
do_humanstxt
Runs right before the humans.txt is printed to the screen.
Filters
humans_txt
Applied to the final content of the virtual humans.txt file.
humans_authortag
Applied to the author link tag.
humanstxt_content
Applied to the humans.txt content. Applied prior to the humans_txt filter.
humanstxt_variables
Applied to the array of content-variables. See humanstxt_variables() for details.
humanstxt_max_revisions
Applied to the maximum number of stored revisions. If set to 0, revisions will be disabled. Default is 50.
humanstxt_shortcode_output
Applied to the final [humanstxt] shortcode output.
humanstxt_shortcode_content
Applied to the un-wrapped shortcode output.
humanstxt_shortcode_headline_replacement
Applied to replacement string for matched standard headlines: /* Title */. See humanstxt_shortcode() for details.
humanstxt_shortcode_twitter_replacement
Applied to replacement string for matched twitter account names. See humanstxt_shortcode() for details.
humanstxt_separator
Applied to the global text separator. Default is a comma followed by a space.
humanstxt_plugins_separator
Use to override the global text separator (see humanstxt_separator filter) for the list of active WordPress plugins.
humanstxt_languages_separator
Use to override the global text separator (see humanstxt_separator filter), for the current WordPress language(s).
humanstxt_postcount
Applied to the number of published posts: $wp-posts$.
humanstxt_pagecount
Applied to the number of published pages: $wp-pages$.
humanstxt_wptheme
Applied to the summary of the active WordPress theme: $wp-theme$.
humanstxt_plugins
Applied to the list of active WordPress plugins: $wp-plugins$.
humanstxt_languages
Applied to current WordPress language(s): $wp-language$.
humanstxt_lastupdate
Applied to returned date of the $wp-lastupdate$ variable.
humanstxt_lastupdate_format
Applied to the used date-format of the $wp-lastupdate$ variable. Default is Y/m/d. Read more about date and time formatting.
humanstxt_authors
Applied to the list of active authors: $wp-authors$.
humanstxt_authors_format
Applied to the format used for the author list $wp-authors$ variable. Please see humanstxt_callback_wpauthors() in humanstxt/callbacks.php for details.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Humans TXT」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.1.1 | 1.1.2 | 1.1.3 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | 1.2.9 | 1.3.0 | 1.3.1 | trunk |

延伸相關外掛(你可能也想知道)

  • HumanCaptcha by Outerbridge 》大部分的驗證碼需要輸入一些隨機生成的字符(有時模糊不清,擺動或者在模糊的背景下)的要求。HumanCaptcha 則生成一個需用邏輯思考回答的簡單問題。HumanCap...。
  • WP HRMS 》WP HRMS 是一款基於 WordPress 的人力資源管理插件,可用於維護組織中人力資源的記錄。它是一款輕量級插件,專注於輕鬆維護記錄。, 該插件的管理功能包括:, ...。
  • Languageswitcher 》設定兩個標籤後,您可以像正常的 HTML 標籤一樣在編輯器中使用它們(僅限於文字模式),以用不同的語言發佈文章。此外,可以插入特殊的切換元素。, , 使用本...。
  • Human Avatar for Robohash 》。
  • Euleo Übersetzungsbüro 》Das Euleo Übersetzungsbüro Plugin für WordPress, Websites übersetzen mit wenigen Klicks, Das "Euleo Übersetzungsbüro" ist ein Plugin, das es ermögl...。

文章
Filter
Apply Filters
Mastodon