Linux 软件免费装

Social Likes

开发者 altpress
更新时间 2017年12月5日 21:19
PHP版本: 3.0 及以上
版权: MIT
版权网址: 版权信息

标签

jquery social facebook twitter pinterest linkedin share buttons social buttons social links google+ livejournal vkontakte odnoklassniki vk.com mail.ru

下载

5.1.26 5.2.5 5.5.7 5.6.8 6.1.11 6.3.18 6.9.16 6.9.19 7.9.5

详情介绍:

Little, easy to use plugin that adds social networks sharing buttons to WordPress pages and posts. Supported social networks: Features: Check screenshots page or try live preview to pick buttons look that best fits theme design of your site. Translation currently available in English and Russian. Any help with translating Social Likes to other languages will be greatly appreciated! (i18n with gettext) Based on the Social Likes library by Artem Sapegin.

屏幕截图:

  • Settings page allows you to customize list of website buttons and how they appear on page
  • Option in editor allows to control appearance of buttons for every post or page
  • Button style customization with 4 skins, "Icons only" and "Single button" modes

常见问题:

  1. Is it possible to place social buttons above the content of the page/post?

Yes. By default plugin places social buttons after page/post content. We find it reasonable to view a post before sharing it with others. But you can place buttons before or even before-and-after page/post content using hidden feature:

  1. Go to options list of your WordPress site: /wp-admin/options.php
  2. Find 'sociallikes_placement' option
  3. Assign one of these values to it: before, after, before-after
  4. Don't forget to apply changes with 'Save Changes' button
Sometimes WordPress options don't save because of a WP bug. To fix it, you may need to set the max_input_vars PHP variable to a greater value. Also you can insert buttons in post excerpts, see question 4 for details.

  1. Is it possible to use different language (locale) for plugin than the default locale of Wordpress?

Yes. By default plugin uses the same language (locale) as Wordpress does. If there is no translation for this locale, plugin would use English as a default language. We find it suitable for most cases. But you can change plugin language (locale) using hidden feature:

  1. First of all check whether plugin has translation to your language or not. If it does, go further. If not, contribute translation! :)
  2. Go to options list of your WordPress site: /wp-admin/options.php
  3. Find 'sociallikes_customlocale' option
  4. Assign proper locale to it. (See list of correct locales)
  5. Don't forget to apply changes with 'Save Changes' button

  1. Is there any shortcode for placing buttons anywhere inside page/post content?

Yes. In order to use Social Likes shortcodes on your blog, you should first enable this hidden feature on the WordPress advanced options page.

  1. Go to options list of your WordPress site: /wp-admin/options.php
  2. Find 'sociallikes_shortcode' option
  3. Change its value to 'enabled'. (You can then switch it back to 'disabled' if you wish to turn the shortcodes off)
  4. Don't forget to apply changes with 'Save Changes' button
Then, to insert Social Likes button on any position in a post, paste the following code there: [wp-social-likes]

  1. Is it possible to show Social Likes buttons for post excerpts, not only for full posts?

Yes. You should just enable this hidden feature on the WordPress advanced options page.

  1. Go to options list of your WordPress site: /wp-admin/options.php
  2. Find 'sociallikes_excerpts' option
  3. Change its value to 'enabled'
  4. Don't forget to apply changes with 'Save Changes' button

  1. Is there a function to display Social Likes buttons anywhere in a theme template?

Yes, after the Social Likes plugin is activated, you can use these two functions in your themes:

  • social_likes( $post_id ) - displays Social Likes buttons
  • get_social_likes( $post_id ) - returns buttons as string
$post_id is an optional argument. You can use it to get buttons for a specific post.

更新日志:

6.9.19 6.9.16 6.9.12 6.3.18 6.1.11 5.6.8 5.5.7 5.2.5 5.1.26 1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 1.0