內容簡介
這個外掛可讓您使用 GIF 影像建立標籤雲。
標籤列表中的每個單字都會轉換為影像。影像的大小、方向和顏色可能會有所變化。然後,影像會以緊湊的方式定位,產生類似 Wordle 的標籤雲。
要使用影像樣式的標籤雲,請將 wp_tag_cloud 的 format 參數設置為 image。為了方便,提供了一個捷徑 [imagecloud],可以將帶有影像格式選項的標籤雲插入到文章或頁面的任何地方。imagecloud 縮略語接受 wp_tag_cloud 接受的所有引數,以及下面描述的幾個額外引數。
為了控制影像的創建,提供了一些額外的選項,可以在 wp_tag_cloud 或 [imagecloud] 縮略語中提供。這些是:
fgcolor:影像中文字的顏色。必須為格式“#AABBCC”。
fgcolor2:第二個前景色。當這個設置時,標籤文字顏色將在 fgcolor 和 fgcolor2 之間,取決於標籤計數(出現次數)。必須為格式“#AABBCC”。
bgcolor:文字的背景色彩。必須為“#AABBCC”格式。
transparent:如果希望使影像透明,則設置為 true。不要忘記設置 bgcolor,以防止文字邊緣顏色錯誤,因為文字會進行反鋸齒處理。
margin:為每個標籤添加的像素量。
font:用於創建標籤的 TrueType 字體(TTF)檔案的文件位置或 URL。
percentup:要旋轉 90 度的單字百分比。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows the creation of tag clouds based on GIF images.
Each word in the taglist is converted to an image. The images may vary in size, orientation and color. The images are then positioned in a condense way, resulting in Wordle-like tag-clouds.
To use the image-style tag-clouds set the format parameter of wp_tag_cloud to image. For convenience a shortcode is provided [imagecloud] that will insert the tag-cloud with the image format option set anywhere within a post or page. The imagecloud shortcode will accept all arguments that wp_tag_cloud accepts plus the few additional ones described below.
To control the image creation a few extra options are provided that may be provided with wp_tag_cloud or the [imagecloud] shortcode. These are:
fgcolor: The color of the texts in the images. Must be in the format “#AABBCC”.
fgcolor2: A second foreground color. When this is set, the tag text color will be a color between fgcolor and fgcolor2, depending on the tag count (occurance). Must be in the format “#AABBCC”.
bgcolor: The background color of the texts. Must be in the format “#AABBCC”.
transparent: set to true if you wish to make the image transparent. Do not forget to set the bgcolor also to prevent strange text-edge colors as the texts will be anti-aliased.
margin: set to the amount of pixels added around each tag.
font: set to the file location or url of the TrueType font (TTF) file to be used to create the tags.
percentup: percentage of words that is to be rotated 90 degrees.
