[WordPress] 外掛分享: Persian Nested Show/Hide Text

首頁外掛目錄 › Persian Nested Show/Hide Text
WordPress 外掛 Persian Nested Show/Hide Text 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
30+
安裝啟用
★★★★★
5/5 分(1 則評價)
2139 天前
最後更新
問題解決
WordPress 4.0+ v1.5 上架:2017-05-08

內容簡介

這個外掛與 Wp-ShowHide 類似,但擴展了巢狀短碼、自定義樣式和兩個鏈接以切換內容。一個鏈接位於內容上方,另一個位於內容下方。默認情況下,內容是隱藏的,用戶必須點擊鏈接來切換它。
示例用法:[pshowhide id=”1″] 這裡是您的文字。 [/pshowhide]。默認文本值為波斯語,但您可以更改它。

此外掛包含四個層級。外部層包含其他層。頂層包含頂部鏈接。中間層包含內容。下層包含下方鏈接。

用法

默認情況下,pshowhide 短碼內的內容將被隱藏。
示例:[pshowhide] 這裡是您的文本。[/pshowhide]

默認值: [pshowhide id=”1″ more_text=”+ 顯示以下文本” ‘less_text=”- 隱藏以下文本” less_textb=”- 隱藏上面的文本” hidden=”yes”]這裡是您的文本。[/pshowhide]。

您可以通過擁有唯一 id 來在帖子或頁面中有多個顯示/隱藏內容。
例如:[pshowhide id=”text1″] 這裡是您的文本。[/pshowhide]
[pshowhide id=”text2″] 這裡是您的文本。[/pshowhide]
[pshowhide id=”text3″] 這裡是您的文本。[/pshowhide]

您可以通過擁有唯一 id 來在帖子或頁面中有多個巢狀顯示/隱藏內容。此外掛還具有用於嵌套顯示/隱藏文本的其他短碼。您還可以使用 [pshowhide1],[pshowhide2],...,[pshowhide10] 以及 [pshowhide]。
例如:[pshowhide id=”text1″] 這裡是您的文本。
[pshowhide1 id=”text2″] 這裡是您的嵌套文本。
[pshowhide2 id=”text3″] 這裡是您的嵌套文本。
[/pshowhide2]
[/pshowhide1]
[/pshowhide]

如果您需要更多此類短碼,您可以通過將 $number_of_shortcodes 變量的值更改為您需要的數字來編輯外掛。默認值為10。

您可以使用許多選項來更改短碼的默認樣式。以下是您可以用於 pshowhide 短碼的選項清單,您可以將它們與您的自定義值一起使用:

id=”text1″:此選項為內容中每個顯示/隱藏短碼提供唯一的 id。
more_text=”+ 顯示以下文本”:此選項用於上部鏈接中的更多文本。
less_text=”- 隱藏以下文本”:此選項用於上方鏈接中的更少文本。
less_textb=”- 隱藏上面的文本”:此選項用於下方鏈接中的更少文本。
hidden=”yes” 或 “no”:此選項用於在加載帖子或頁面時顯示或隱藏內容。

其他選項用於更改樣式,因此您必須為其值知道 css 命令。

以下選項用於包含其他層的外部層

border=”1px solid #800000″:此選項用於短碼和內容周圍的邊框樣式。
padding=”2px 2px 2px 2px”:此選項用於短碼和內容周圍的填充樣式。
margin=”1px 1px 1px 1px”:此選項用於短碼和內容周圍的邊距樣式。
radius=”4px 4px 4px 4px”:此選項用於圓角樣式,用於短碼和內容周圍。
bgcolor=”#ffffff”:此選項用於短碼和內容周圍的背景顏色樣式。
color=”#000000″:此選項用於短碼和內容周圍的文本顏色樣式。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Persian Nested Show/Hide Text」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin is similar to Wp-ShowHide that extended for nested shortcodes, custom style and two link toggling the content. A link is top of the content and other is below the content. By default the content is hidden and user will have to click on the the link to toggle it.
Example usage: [pshowhide id=”1″]Your text is here.[/pshowhide]. The default text value is in Persian language, but you can change it.
This plugin contains four layers. External layer contains other layers. Top layer contains top link. Middle layer contains the content. Below layer contains below link.
Usage

By default, content within the pshowhide shortcode will be hidden.
Example: [pshowhide]Your text is here.[/pshowhide]

Default Values: [pshowhide id=”1″ more_text=”+ Show Below Text” ‘less_text=”- Hide Below Text” less_textb=”- Hide Up Text” hidden=”yes”]Your text is here.[/pshowhide].

You can have multiple show/hide contents within a post or a page, just by having a unique id.
Example: [pshowhide id=”text1″]Your text is here.[/pshowhide]
[pshowhide id=”text2″]Your text is here.[/pshowhide]
[pshowhide id=”text3″]Your text is here.[/pshowhide]

You can have multiple nested show/hide contents within a post or a page, just by having a unique id. this plugin has other shortcode for nested show/hide text. you can also use [pshowhide1], [pshowhide2], … , [pshowhide10] in addition [pshowhide].
Example: [pshowhide id=”text1″] Your text is here.
[pshowhide1 id=”text2″] Your nested text is here.
[pshowhide2 id=”text3″] Your nested text is here.
[/pshowhide2]
[/pshowhide1]
[/pshowhide]

If you need more than these shortcode, you can edit plugin by changing the value of $number_of_shortcodes variable to your number you need. default value is 10.

You can use a lot of options to change default style the shortcode. Below is the list of options you can use them with your custom value in pshowhide shortcode:
id=”text1″ : this option has uniqe id for per show/hide shortcode in the content.
more_text=”+ Show Below Text” : this option is used for the more text in up link.
less_text=”- Hide Below Text” : this option is used for the less text in up link.
less_textb=”- Hide Up Text” : this option is used for the less text in down link.
hidden=”yes” or “no” : this option is used for show or hide the content when post or page is loaded.
Other options is for changing styles, so you must now css command for their values.
The below options is used for the external layer that contains other layers.
border=”1px solid #800000″: this option is used for border style arround the shortcode and the content.
padding=”2px 2px 2px 2px” : this option is used for padding style arround the shortcode and the content.
margin=”1px 1px 1px 1px” : this option is used for margin style arround the shortcode and the content.
radius=”4px 4px 4px 4px” : this option is used for radius style arround the shortcode and the content.
bgcolor=”#ffffff” : this option is used for background color style arround the shortcode and the content.
color=”#000000″ : this option is used for text color style arround the shortcode and the content.
add_style=”” : this option is used for adding the css code to the shortcode and the content.
style=”” : this option is used for your personal css code to the shortcode and the content. when this option is used, other css code will be disabled.
The below options is similar to external layer options, but is used for the top link in pshowhide shortcode block.
link_border=”1px solid #800000″:
link_padding=”5px 12px”:
link_margin=”0px”:
link_radius=”20px”:
link_bgcolor=”#80BD00″
link_color=”#FFFFFF”
link_style=””
add_link_style=””
bg_hover=”#FFFF00″ : this option is used for change background color of top link whene you hover on it.
text_hover=”#FF0000″: this option is used for change link color of top link whene you hover on it.
The below options is similar to top link options, but is used for the below link in pshowhide shortcode block.
linkb=”off”: if this option value is “off”, the below link will be disable.
linkb_border=”1px solid #800000″:
linkb_padding=”5px 12px”:
linkb_margin=”0px”:
linkb_radius=”20px”:
linkb_bgcolor=”#80BD00″
linkb_color=”#FFFFFF”
linkb_style=””
add_linkb_style=””
bgb_hover=”#FFFF00″ : this option is used for change background color of top link whene you hover on it.
textb_hover=”#FF0000″: this option is used for change link color of top link whene you hover on it.
The below options is used for top layer contains top link and similar to external layer options.
up_border=”0px solid #ffffff”
up_padding=”0px”
up_margin=”0px”
up_radius=”0px”
up_bgcolor=”#ffffff”
up_color=”#000000″
add_up_style=””
up_style=””
The below options is used for middle layer contains the content and similar to external layer options.
mid_border=”0px solid #ffffff”
mid_padding=”0px”
mid_margin=”0px”
mid_radius=”0px”
mid_bgcolor=”#ffffff”
mid_color=”#000000″
add_mid_style=””
mid_style=””
The below options is used for below layer contains below link and similar to external layer options.
dwn_border=”0px solid #ffffff”
dwn_padding=”2px 2px 2px 2px”
dwn_margin=”1px 1px 1px 1px”
dwn_radius=”4px 4px 4px 4px”
dwn_bgcolor=”#ffffff”
dwn_color=”#000000″
add_dwn_style=””
dwn_style=””

延伸相關外掛

文章
Filter
Apply Filters
Mastodon