[WordPress] 外掛分享: Dragons Print-Hint

前言介紹

  • 這款 WordPress 外掛「Dragons Print-Hint」是 2009-06-27 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2009-08-28,距離現在已有 5727 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.7.1 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

kronester |

外掛標籤

hint | print | comment | license | copyright |

內容簡介

在文章中印出提示文字有幾個原因。這些提示文字不會在螢幕上顯示,但你希望它會出現在列印紙張上。

功能清單:

定義提示文字,僅出現在列印紙張上。
你可以使用任何可以放置在

...

中的HTML標籤來格式化你的提示文字。
透過管理設置面板來舒適地定義提示文字。
隱藏文章/頁面中使用者定義區域-在任意部分之三中查看範例
ShortTag[PrintHint] 可以自由定義只在螢幕上/出力中顯示的文章區塊
在逗號分隔的列表中定義CSS類別(.classname)。這些類別不會出現在列印紙張上。
在逗號分隔的列表中定義CSS ID(#idname)。這些ID不會出現在列印紙張上。
設定列印框架的樣式定義
多語言支援:已實作英文、德語、俄語

這個外掛使用 the_content 過濾器搭配。使用 the_excerpt 過濾器勾選用於從搜尋結果頁面中移除提示。

*情境*

你只想在線上顯示一段文字?

[PrintHint show_on=”screen”] … 只在螢幕上顯示 … [/PrintHint]

你只想在列印紙張上顯示一段文字?

[PrintHint show_on=”print”] … 只在列印紙張上顯示 … [/PrintHint]

*提示*

注意關閉標記[/PrintHint]以及參數show_on,它們是必須的!
如果你不應用參數或給予錯誤的引數,內容區塊都將無法顯示。

在設定頁面中刪除整個框架CSS樣式將啟用定義在fdrag_phi_print.css中的預設樣式。

任意部分
範例1:提示文字

注意 - 版權聲明!

This Blog is licensed under a Creative Commons License,
which permits you to easily print the articles for personal use.
However, if you are viewing a site that does not contain such a license information and policies,
then printing a copy for personal use may not be permissible and lead to copyright/DMCA issues.

範例2:CSS類別/ID隱藏
, #top, #footer, #bottom, #sidebar,
.commentheader, #commentform

範例3:當印出時,隱藏文章/頁面中的一些部分

在文章中定義一個使用者定義且未被使用的ID區域。
這個ID不需要在所有CSS樣式表中都定義。它只適用於龍之列印提示。

.. 文章的一些內容

… 這裡是文章的一些內容 …

… 更多文章內容

如果你將這個ID(#RemoveOnPrint)定義在“隱藏CSS區塊”列表中(記住:逗號分隔多個值)
你可以看到帶有所有內容的文章,但在列印時使用具有id="RemoveOnPrint" 屬性的div標籤時會被隱藏。

範例4:使用短碼

如果文章中有需要在螢幕/列印輸出中明確隱藏/顯示的區域,
你可以使用短碼

[PrintHint show_on="screen|print"] .... [/PrintHint].

僅在線上顯示圖形連結,在列印紙張上則顯示URL。

我的文章內容
[PrintHint show_on="screen"][/PrintHint]
[PrintHint show_on="print"]http://myUrl[/PrintHint]

文章其他內容

原文外掛簡介

There are several reasons to print some hints on your posts. These hints will never been seen on the screen, but you want it to show on paper.
Feature-List:

Definition of a hint text, only appearing on printouts.
You can use any html tag that can be placed within

...

to format your hints.
Comfortable definition of hint text via admin settings panel.
Hiding user defined areas of posts / pages – see Example 3 in Arbitrary section
ShortTag [PrintHint] for free definition of post-blocks show only on screen/print output
Definition of CSS classes (.classname) in a comma separated list. These classes don’t appear on printouts.
Definition of CSS IDs (#idname) in a comma separated list. These IDs don’t appear on printouts.
Style definition for printout border frame
Multilanguage Support: English, Deutsch, Russian already implemented

The plugin hooks into the_content filter. The the_excerpt filter hook is used to remove the hint from displaying on search result page.
*Scenarios*
You want to show a text only online?

[PrintHint show_on=”screen”] … appears only on screen … [/PrintHint]

You want to show a text only on printout?

[PrintHint show_on=”print”] … appears only on printouts … [/PrintHint]

*Hint*
Beware of the closing tag [/PrintHint] as well as the parameter show_on, they are REQUIRED!
If you don’t apply the parameter or give them a wrong argument, the block content will not be displayed, anyway.
Removing the whole border css style from config page will activate the default style defined in fdrag_phi_print.css
Arbitrary section
Example 1: Hint-Text

Achtung - Urheberrechtshinweis!
Da dieses Blog unter einer Creative Commons Lizenz steht,
stellt das Ausdrucken für Sie kein Problem dar.
Bei Webseiten die nicht unter einer solchen oder ähnlichen Lizenz stehen,
kann das Ausdrucken zu einer Urheberrechtsverletzung führen.

Example 2: CSS Class/ID hiding
, #top, #footer, #bottom, #sidebar,
.commentheader, #commentform

Example 3: Hide some portion of a post / page while printing
Within the post define an area with a userdefined and no more referenced ID.
This ID don’t have to be defined within any CSS stylesheet. It’s just for Dragons Print-Hint.
.. some content of your post

... here is some content of the post ...

.. some more content of your post

If you define this ID (#RemoveOnPrint) in the “hide css blocks” list (remember: comma separate more then one value)
you can see the post with all content but while printing the div tag with id=”RemoveOnPrint” ist hidden.
Example 4: Using shortcodes
If there are areas within your post to explicitly hide/show on screen/print output,
you can use the shortcode

[PrintHint show_on="screen|print"] .... [/PrintHint].

Show graphical link only online, on printouts show the URL instead.

Here is my post text
[PrintHint show_on="screen"][/PrintHint]
[PrintHint show_on="print"]http://myUrl[/PrintHint]
and here is the rest of the text.

The Parameter show_on can be used to define the apperance of the content between the shortcode tags.
If you define show_on=”screen” the content part will only be shown an screen outputs.
Otherwise, the show_on=”print” parameter will show the hint only on printouts.

Remark: If you dont’t use the ‘show_on’ parameter or forget to close the shortcode tag, there will be no output!

= Example 5: Using your own border style for print-hint
Just enter the border attributes (see http://www.w3schools.com/css/pr_border.asp for usage example)
without the semicolon. e.g. 5px solid red

各版本下載點

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

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


0.2 | 0.3 | 0.4 | 0.3.1 | 0.3.2 | 0.3.3 | 0.3.4 | 0.3.5 | 0.3.6 | 0.4.1 | trunk | 0.4.1.1 |

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

  • Comments – wpDiscuz 》wpDiscuz是一個具有自訂評論表單和欄位的AJAX即時評論系統,旨在加強WordPress原生評論功能。速度超快且具有數十種功能,是Disqus和Jetpack Comments的最佳替...。
  • WordPress Social Login 》WordPress Social Login 允許你的網站讀者和顧客使用他們現有的社交帳戶 ID 註冊,消除填寫註冊表格和記住用戶名和密碼的需求。, WordPress Social Login 還...。
  • One Click Close Comments 》使用者可以從文章管理頁面(‘編輯文章’)及頁面管理頁面(‘編輯頁面’)中,對於他們有足夠權限進行更改的文章關閉或開啟評論(基本上是管...。
  • Honeypot Anti-Spam 》, Information, , Honeypot Anti-Spam is a WordPress anti-spam plugin that allows you to protect comment forms using the honeypot technique., By usin...。
  • Comments Like Dislike 》Comments Like Dislike 是一款免費的 WordPress 外掛,可啟用預設 WordPress 評論的「讚」和「踩」圖示。您可以選擇大拇指向上或向下、微笑或傷心、勾或叉,...。
  • Bad Behavior 》歡迎來到一個全新的方式來保持您的部落格、論壇、留言板、wiki或內容管理系統免於連結垃圾郵件的困擾。Bad Behavior是一款基於PHP的方案,可以阻止連結垃圾郵...。
  • DCO Comment Attachment 》DCO Comment Attachment 可讓您的讀者附上圖片、影片、音訊、文件和其他檔案於他們的留言中。他們還可以在留言中自動嵌入來自 YouTube、Facebook、Twitter 和...。
  • Bulk Delete Comments 》該外掛可以讓您一次性刪除所有評論,您可以選擇刪除所有未批准和待審批的評論,或基於類別/文章的評論。。
  • Comment Reply Email Notification 》這個外掛讓訪客可以透過電子郵件訂閱他們的評論,以便得到回應。, 警告, 此外掛使用「wp_insert_comment」鉤子,因此每當創建一則評論,通知便有可能被發送。...。
  • Relative URL 》相對網址 (Relative URL) 外掛可將鏈接(文章、分類、頁面等)應用 wp_make_link_relative 函數來轉換為相對網址。開發人員在手機設備(iPad、iPhone 等)上...。
  • AnyComment 》AnyComment 是一個基於 React 的 WordPress 快速留言外掛程式。, , 它以簡單與快速為特點。我們非常重視使用者的反饋,所以如果您有任何問題或建議,請在支援...。
  • Word Replacer 》Word Replacer 是一個 WordPress 外掛,可將任何文字或單詞替換為其他內容。您可以篩選要替換的內容,例如僅在頁面、評論或文章中進行替換。通過非常用戶友好...。
  • Decent Comments 》Decent Comments 顯示人們的評論。, 如果想要顯示評論,並連同評論者的頭像和評論摘錄,那麼這就是適合您的外掛程式。, 而且,這不僅僅是顯示最新評論的小工...。
  • Comments Disable – AccessPress 》Comments Disable - AccessPress是一個外掛,可以全局禁用評論。這個插件允許管理員在任何文章類型(文章、頁面、附件等)上全局禁用評論,從而無需為單個文...。
  • Bulk Comment Remove 》這是一個外掛,可以讓你一次清除所有未審核的留言。如果你被大量的垃圾訊息騷擾,或是有段時間沒有管理您的部落格,並想清空留言,這是一個非常有用的工具。...。

文章
Filter
Apply Filters
Mastodon