[WordPress] 外掛分享: Social Counters

首頁外掛目錄 › Social Counters
20+
安裝啟用
尚無評分
3641 天前
最後更新
問題解決
WordPress 2.9+ v2.2.9 上架:2010-10-07

內容簡介

這個外掛可以讓您加入計數器和社交分享連結到最受歡迎的社交網站,例如 Menéame、Twitter、Facebook、Google Buzz、Tuenti 或 Bitacoras.com。

此外,它還有 WordPress 的操作(add_action)和篩選(add_filter),可以選擇想要顯示的社交分享連結。

可用的函數有:

the_social_counters( $counters = array() ):顯示已選擇的社交計數器。

$counters:要查看的社交計數器列表陣列,默認值為bitacoras,tuenti,google-buzz,meneame,twitter,facebook

the_social_counters__get ( $counters = array() ):返回已選擇的社交計數器。

$counters:要查看的社交計數器列表陣列,默認值為bitacoras,tuenti,google-buzz,meneame,twitter,facebook

social_counter( $social_counter = '', $postparam = false, $linked = true ):顯示特定的社交計數器

$social_counter:社交計數器名稱,默認選項為bitacoras,tuenti,google-buzz,meneame,twitter,facebook
$postparam:要獲取計數器的$post物件,默認系統使用全域的$post;
$linked:簡單的選項,用於停用鏈接。

social_counter__get( $social_counter = '', $postparam = false, $linked = true ):返回特定的社交計數器

$social_counter:社交計數器名稱,默認選項為bitacoras,tuenti,google-buzz,meneame,twitter,facebook
$postparam:要獲取計數器的$post物件,默認系統使用全域的$post;
$linked:簡單的選項,用於停用鏈接。

還可以在 ‘wp-config.php’ 中定義兩個常數...

SOCIAL_COUNTER__LOAD_CSS:如果將此常數定義為false,則該外掛將不會載入默認樣式。
SOCIAL_COUNTER__LOAD_CSS_SMALL:如果將此常數定義為true,則該外掛將載入小圖示。
SOCIAL_COUNTER__TWITTER_USER:Twitter分享鏈接會包括此用戶名和RT鏈接。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2.9) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Social Counters」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

It allows to place counters and social sharing links to the most popular social networks like Menéame, Twitter, Facebook, Google Buzz, Tuenti or Bitacoras.com.
It also has WordPress actions (add_action) and filters (add_filter) allowing to select the social sharing links we want to show.
The available functions are:

the_social_counters( $counters = array() ): Displays selected social counters.

$counters: Array with list of social counters to view, by default bitacoras,tuenti,google-buzz,meneame,twitter,facebook

the_social_counters__get ( $counters = array() ): Returns the selected social counters.

$counters: Array with list of social counters to view, by default bitacoras,tuenti,google-buzz,meneame,twitter,facebook

social_counter( $social_counter = '', $postparam = false, $linked = true ): Displays a particular social counter

$social_counter: Name of social counter, by default the options are bitacoras,tuenti,google-buzz,meneame,twitter,facebook
$postparam: $post object to get the counter, by default system use global $post;
$linked: Simple option to de-activate link.

social_counter__get( $social_counter = '', $postparam = false, $linked = true ): Returns a particular social counter

$social_counter: Name of social counter, by default the options are bitacoras,tuenti,google-buzz,meneame,twitter,facebook
$postparam: $post object to get the counter, by default system uses global $post var.
$linked: Simple option to de-activate link.

It’s also possible to define two constants in ‘wp-config.php’…

SOCIAL_COUNTER__LOAD_CSS: If we define this constant as false, the plugin will not load the default style.
SOCIAL_COUNTER__LOAD_CSS_SMALL: If we define this constanta as true, the plugin will load de small icons.
SOCIAL_COUNTER__TWITTER_USER: The twitter sharing link includes this username with the RT link.

延伸相關外掛

文章
Filter
Mastodon