這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Webshare

外掛說明

Webshare is another social sharing plugin but it only displays sharing links with Genericon fonts. So it’s lightweight.

Plugin usage

When you activate the plugin social sharing appears after singular post. You can drag and drop social icons in
different order under Settings >> Webshare.

There you can choose under which post types you want social icons to appear or do you want to disable some of them.

Add Twitter username in your profile page (called Twitter Username) if you want to show it when sharing to twitter.

Theme support

If you want to set location where social sharing appears, load Genericons and handle the CSS in your theme, add this code in your themes functions.php.

/* Webshare plugin support. This means that theme handles the CSS and location of websharing already. */
add_theme_support( 'webshare', array( 'styles' => true ) );

Then add this code in your themes template file where you want webshare to appear.

<?php 
if ( function_exists( 'webshare' ) ) {
    webshare(); // Sharing icons.
}
?>

Demo

You can see the demo in Mina olen demosite. You can
get Mina olen theme from here.

螢幕擷圖

  • Webshare after content

安裝方式

  1. Upload webshare to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

常見問題集

Is there any settings in this plugin?

No. You can only add Twitter username in your profile page.

Does social sharing automatically appear after or before content?

Not at the moment. I think about adding social sharing after content.

使用者評論

2016 年 9 月 3 日 1 則留言
It’s a good sharing plugin without “fat”. It’s lean and minimal and easy to use too. Nothing else matters. Several (maybe) improvement that can be implemented: – no genericons. this plugin only use several icons but uses genericons which is a large icon font library. – no autosave on drag and drop icons. It’s redundant because the settings page have a “save” button. it’s probably better to save when clicking “save” instead of partially save the order and different mechanism to save other settings.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Webshare〉的開發相關工作。

參與者

將〈Webshare〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2.7

  • Fix: Security update for XSS security flaw.

1.2.6

  • Fix sanitize callback function, yes again.

1.2.5

  • Fix incorrect sanitize callback function.
  • Serbian language files added.

1.2.4

  • Fix incorrect path to genericon CSS file.
  • Use the_title_attribute in title.

1.2.3

  • Tested up to WP 4.0.
  • Compress CSS files.
  • Update language files.

1.2.2

  • Fixed a small bug in Genericons.

1.2.1

  • Update Genericons to version 3.1.

1.2

  • Setting page added under Settings >> Webshare.
  • You can now drag and drop social icons in the order you want.
  • You can disable social icons.
  • You can choose under which post types you want social icons to appear.
  • When you uninstall the plugin database settings are deleted.

1.1.1

Add screenshot.

1.1

  • Social sharing appears now automatically after post if you don’t add support for your theme.

Social sharing

1.0.0

  • Everything’s brand new.