Title: Dadi Shal
Author: iljester
Published: <strong>January 5, 2017</strong>
Last modified: January 5, 2017

---

Search plugins

![](https://ps.w.org/dadi-shal/assets/banner-772x250.png?rev=1570102)

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://ps.w.org/dadi-shal/assets/icon-256x256.png?rev=1570112)

# Dadi Shal

 By [iljester](https://profiles.wordpress.org/davidemura/)

[Download](https://downloads.wordpress.org/plugin/dadi-shal.1.0.zip)

 * [Details](https://wordpress.org/plugins/dadi-shal/#description)
 * [Reviews](https://wordpress.org/plugins/dadi-shal/#reviews)
 *  [Installation](https://wordpress.org/plugins/dadi-shal/#installation)
 * [Development](https://wordpress.org/plugins/dadi-shal/#developers)

 [Support](https://wordpress.org/support/plugin/dadi-shal/)

## Description

Dadi Shal is a plugin that allows to share your contents in the social networks,
from posts, pages and custom post type lists, displayed in admin panel.

Available features:

 * You can select social network button between availables buttons
 * You can set type of window open (popup or target blank)
 * You can select type of list: post, page or custom posts type (if availables)

Official buttons available:

 * Facebook (slug: facebook)
 * Twitter (slug: twitter)
 * Google Plus (slug: googleplus)
 * Linkedin (slug: linkedin)
 * Pinterest (slug: pinterest)
 * StumbleUpon (slug: stumbleupon)

Translations: italian

#### For developers

Social values for conditional tag “get_dadishal_options( $value )” that allows to
edit custom buttons:

 * enable_facebook
 * enable_twitter
 * enable_googleplus
 * enable_linkedin
 * enable_pinterest
 * enable_stumbleupon

Remember to use this conditional tags when you edit default buttons. See FAQ for
details.

Values for the array button:

 * url (share url)
 * name (name of social)
 * icon (css classes for icon font)
 * color (background color for button. You must use Hex Color like #000000)

## Screenshots

[⌊Dadi Shal List Post⌉⌊Dadi Shal List Post⌉[

Dadi Shal List Post

## Installation

 1. Download and extract plugin files to a wp-content/plugin directory.
 2. Activate the plugin through the WordPress admin interface.
 3. Customize your buttons in settings/dadi shal.

If you have any questions or problems please make a post here: https://wordpress.
org/tags/dadi-shal

## FAQ

  Can I add custom buttons?

Yes! You can. Simply use shal_buttons filter in your theme functions.php or personal
plugin. Example:

    ```
    add_filter( 'shal_buttons', 'my_callback_function' );
    function my_callback_function( $buttons, $post_id ) {

        $buttons['SLUG_OF_SOCIAL_BUTTON'] = array( 
            'url' => 'HERE_URL_FOR_SHARE',
            'name' => 'NAME_OF_SOCIAL',
            'icon' => 'ICON_CSS_CLASSES_OF_SOCIAL' // this plugin uses socicon - see http://www.socicon.com/
            'color' => 'BACKGROUND_COLOR_OF_BUTTON'
        );

        return $buttons;

    }
    ```

  Can I rewrite entire default button?

Yes! You can. Simply you use shal_buttons filter and rewrite entire button. Example,
we rewrite facebook button:

    ```
    add_filter( 'shal_buttons', 'my_callback_function' );
    function my_callback_function( $buttons, $post_id ) {

        unset( $buttons['facebook'] ); // unset default facebook button

        if( !get_dadishal_options( 'enable_facebook' ) ) return $buttons; // remember to add this conditional tag for enable/disabled new button

        $buttons['facebook'] = array( // set new facebook button
            'url' => 'HERE_URL_FOR_SHARE',
            'name' => 'NAME_OF_SOCIAL', // yes in example will be facebook
            'icon' => 'ICON_CSS_CLASSES_OF_SOCIAL' // this plugin uses socicon - see http://www.socicon.com/ ex. socicon socicon-facebook
            'color' => 'BACKGROUND_COLOR_OF_BUTTON'
        );

        return $buttons;

    }
    ```

  I rewrite entire button, and now this button is at the end of buttons.

Yes. You can avoid this problem, editing button for each value without unset button.
Example:

    ```
    add_filter( 'shal_buttons', 'my_callback_function' );
    function my_callback_function( $buttons, $post_id ) {

        unset( $buttons['facebook']['url'] );
        unset( $buttons['facebook']['name'] );
        unset( $buttons['facebook']['icon'] );
        unset( $buttons['facebook']['color'] );

        if( !get_dadishal_options( 'enable_facebook' ) ) return $buttons; // remember to add this conditional tag for enable/disabled new button

        $buttons['facebook']['url'] = 'NEW_SHARE_URL';
        $buttons['facebook']['name'] = 'NEW_NAME';
        $buttons['facebook']['icon'] = 'NEW_ICON_CLASSES'
        $buttons['facebook']['color'] = 'NEW_COLOR' // rembember: hex color

        return $buttons;

    }
    ```

  Can I edit certain array value of default button

Yes. Simply you use shal_buttons filter and unset chosen element of the array. See
example above.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Dadi Shal” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ iljester ](https://profiles.wordpress.org/davidemura/)

[Translate “Dadi Shal” into your language.](https://translate.wordpress.org/projects/wp-plugins/dadi-shal)

### Interested in development?

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

## Changelog

#### 1.0

 * Initial version

## Meta

 *  Version **1.0**
 *  Last updated **10 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 2.8 or higher **
 *  Tested up to **4.7.35**
 * Tags
 * [administration](https://wordpress.org/plugins/tags/administration/)[post list](https://wordpress.org/plugins/tags/post-list/)
   [share](https://wordpress.org/plugins/tags/share/)
 *  [Advanced View](https://wordpress.org/plugins/dadi-shal/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/dadi-shal/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dadi-shal/reviews/)

## Contributors

 *   [ iljester ](https://profiles.wordpress.org/davidemura/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dadi-shal/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.iljester.it/plugins/dadi-shal/)