Title: Ruven Themes: Sharing Links
Author: Ruven
Published: <strong>May 21, 2014</strong>
Last modified: September 5, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/ruven-themes-sharing-links.svg)

# Ruven Themes: Sharing Links

 By [Ruven](https://profiles.wordpress.org/ruven-themes/)

[Download](https://downloads.wordpress.org/plugin/ruven-themes-sharing-links.zip)

 * [Details](https://wordpress.org/plugins/ruven-themes-sharing-links/#description)
 * [Reviews](https://wordpress.org/plugins/ruven-themes-sharing-links/#reviews)
 *  [Installation](https://wordpress.org/plugins/ruven-themes-sharing-links/#installation)
 * [Development](https://wordpress.org/plugins/ruven-themes-sharing-links/#developers)

 [Support](https://wordpress.org/support/plugin/ruven-themes-sharing-links/)

## Description

This plugin provides a function to output links to share a post to Facebook, Twitter,
and Google+.

Selected themes by Ruven will display the links automatically when the plugin is
activated.
 In other themes you will have to edit the templates in your theme in
order to output the links.

Here an example of outputting the links in as list:

    ```
    <?php
    if(function_exists('ruven_sharing_links')) {
        echo '<ul class="sharing-list">';
        $sharing_links = ruven_sharing_links();
        foreach($sharing_links as $sharing_link) {
          echo "<li>$sharing_link</li>";
        }
        echo '</ul>';
    }
    ?>
    ```

#### Usage

    ```
    $sharing_links = ruven_sharing_links( $get_array, $include, $open_in_new_tab, $class );
    ```

#### Parameters

**$get_array**
 _(bool) (optional)_ If you want the return value to be an associative
array (title, URL) or an array of HTML links. By getting an associative array, you
are able to customize the output more.

Default: _false_

**$include**
 _(array) (optional)_ If you don’t want all platforms (Facebook, Twitter,
and Google+) included, you can specify here which you want specifically to be returned.
E.g. `array('Twitter', 'Facebook')` would only return Twitter and Facebook links.

Default: _array()_

**$open_in_new_tab**
 _(bool) (optional)_ If you want the sharing dialog to be opened
in a new tab/window or not.

Default: _true_

**$class**
 _(array) (optional)_ Classes you want to add to the links. E.g. `array('
sharing-button', 'big-button')`

Default: _array()_

#### Return Value

If the value of `$get_array` is `false` (default), the function returns an array
of HTML links.

If the value of `$get_array` is `true`, the function returns an associative array
of the title (e.g. “Twitter”) and the URL to share the post.

## Installation

This plugin can be installed directly from your site.

 1. Log in and navigate to Plugins → Add New.
 2. Type “Ruven Themes: Sharing Links” into the Search input and click the “Search 
    Plugins” button.
 3. Locate the Ruven Themes: Sharing Links in the list of search results and click “
    Install Now”.
 4. Click the “Activate Plugin” link at the bottom of the install screen.

It can also be installed manually.

 1. Download the “Ruven Themes: Sharing Links” plugin from WordPress.org.
 2. Unzip the package and move it into your plugins directory.
 3. Log into WordPress and navigate to the “Plugins” screen.
 4. Locate “Ruven Themes: Sharing Links” in the list and click the “Activate” link.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Ruven Themes: Sharing Links” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Ruven ](https://profiles.wordpress.org/ruven-themes/)

[Translate “Ruven Themes: Sharing Links” into your language.](https://translate.wordpress.org/projects/wp-plugins/ruven-themes-sharing-links)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ruven-themes-sharing-links/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ruven-themes-sharing-links/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ruven-themes-sharing-links/)
by [RSS](https://plugins.trac.wordpress.org/log/ruven-themes-sharing-links/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### v1.1

 * Minor code improvements.

#### v1.0

 * Initial Release.

## Meta

 *  Version **1.1**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.5.0 or higher **
 *  Tested up to **4.0.38**
 * Tags
 * [facebook](https://wordpress.org/plugins/tags/facebook/)[google](https://wordpress.org/plugins/tags/google/)
   [share](https://wordpress.org/plugins/tags/share/)[sharing](https://wordpress.org/plugins/tags/sharing/)
   [social](https://wordpress.org/plugins/tags/social/)
 *  [Advanced View](https://wordpress.org/plugins/ruven-themes-sharing-links/advanced/)

## Ratings

 4.5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/ruven-themes-sharing-links/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/ruven-themes-sharing-links/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ruven-themes-sharing-links/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ruven-themes-sharing-links/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/ruven-themes-sharing-links/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ruven-themes-sharing-links/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ruven-themes-sharing-links/reviews/)

## Contributors

 *   [ Ruven ](https://profiles.wordpress.org/ruven-themes/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ruven-themes-sharing-links/)