{"id":53431,"date":"2017-01-05T21:33:51","date_gmt":"2017-01-05T21:33:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dadi-shal\/"},"modified":"2017-01-05T21:33:51","modified_gmt":"2017-01-05T21:33:51","slug":"dadi-shal","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/dadi-shal\/","author":13828687,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0","tested":"4.7.33","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Dadi Share From Post List","header_author":"Davide Mura","header_description":"","assets_banners_color":"fdfdfd","last_updated":"2017-01-05 21:33:51","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.iljester.it\/plugins\/dadi-shal\/","header_plugin_uri":"http:\/\/www.iljester.it\/portfolio\/share-from-post-list\/","header_author_uri":"http:\/\/www.iljester.it\/davide\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1104,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>No upgrade notice<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1570110","resolution":"128x128","location":"assets","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1570112","resolution":"256x256","location":"assets","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1570102","resolution":"772x250","location":"assets","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1570122","resolution":"1","location":"assets","width":1332,"height":525}},"screenshots":{"1":"Dadi Shal List Post"}},"plugin_section":[],"plugin_tags":[563,3481,138],"plugin_category":[56],"plugin_contributors":[129305],"plugin_business_model":[],"class_list":["post-53431","plugin","type-plugin","status-publish","hentry","plugin_tags-administration","plugin_tags-post-list","plugin_tags-share","plugin_category-social-and-sharing","plugin_contributors-davidemura"],"banners":{"banner":"https:\/\/ps.w.org\/dadi-shal\/assets\/banner-772x250.png?rev=1570102","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dadi-shal\/assets\/icon-128x128.png?rev=1570110","icon_2x":"https:\/\/ps.w.org\/dadi-shal\/assets\/icon-256x256.png?rev=1570112","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/dadi-shal\/assets\/screenshot-1.png?rev=1570122","caption":"Dadi Shal List Post"}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Available features:<\/p>\n\n<ul>\n<li>You can select social network button between availables buttons<\/li>\n<li>You can set type of window open (popup or target blank)<\/li>\n<li>You can select type of list: post, page or custom posts type (if availables)<\/li>\n<\/ul>\n\n<p>Official buttons available:<\/p>\n\n<ul>\n<li>Facebook (slug: facebook)<\/li>\n<li>Twitter (slug: twitter)<\/li>\n<li>Google Plus (slug: googleplus)<\/li>\n<li>Linkedin (slug: linkedin)<\/li>\n<li>Pinterest (slug: pinterest)<\/li>\n<li>StumbleUpon (slug: stumbleupon)<\/li>\n<\/ul>\n\n<p>Translations: italian<\/p>\n\n<h4>For developers<\/h4>\n\n<p>Social values for conditional tag \"get_dadishal_options( $value )\" that allows to edit custom buttons:<\/p>\n\n<ul>\n<li>enable_facebook<\/li>\n<li>enable_twitter<\/li>\n<li>enable_googleplus<\/li>\n<li>enable_linkedin<\/li>\n<li>enable_pinterest<\/li>\n<li>enable_stumbleupon<\/li>\n<\/ul>\n\n<p>Remember to use this conditional tags when you edit default buttons. See FAQ for details.<\/p>\n\n<p>Values for the array button:<\/p>\n\n<ul>\n<li>url (share url)<\/li>\n<li>name (name of social)<\/li>\n<li>icon (css classes for icon font)<\/li>\n<li>color (background color for button. You must use Hex Color like #000000)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li><p>Download and extract plugin files to a wp-content\/plugin directory.<\/p><\/li>\n<li><p>Activate the plugin through the WordPress admin interface.<\/p><\/li>\n<li><p>Customize your buttons in settings\/dadi shal.<\/p><\/li>\n<\/ol>\n\n<p>If you have any questions or problems please make a post here: http:\/\/wordpress.org\/tags\/dadi-shal<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Can I add custom buttons?<\/dt>\n<dd><p>Yes! You can. Simply use shal_buttons filter in your theme functions.php or personal plugin. Example:<\/p>\n\n<pre><code>add_filter( 'shal_buttons', 'my_callback_function' );\nfunction my_callback_function( $buttons, $post_id ) {\n\n    $buttons['SLUG_OF_SOCIAL_BUTTON'] = array( \n        'url' =&gt; 'HERE_URL_FOR_SHARE',\n        'name' =&gt; 'NAME_OF_SOCIAL',\n        'icon' =&gt; 'ICON_CSS_CLASSES_OF_SOCIAL' \/\/ this plugin uses socicon - see http:\/\/www.socicon.com\/\n        'color' =&gt; 'BACKGROUND_COLOR_OF_BUTTON'\n    );\n\n    return $buttons;\n\n}\n<\/code><\/pre><\/dd>\n<dt>Can I rewrite entire default button?<\/dt>\n<dd><p>Yes! You can. Simply you use shal_buttons filter and rewrite entire button. Example, we rewrite facebook button:<\/p>\n\n<pre><code>add_filter( 'shal_buttons', 'my_callback_function' );\nfunction my_callback_function( $buttons, $post_id ) {\n\n    unset( $buttons['facebook'] ); \/\/ unset default facebook button\n\n    if( !get_dadishal_options( 'enable_facebook' ) ) return $buttons; \/\/ remember to add this conditional tag for enable\/disabled new button\n\n    $buttons['facebook'] = array( \/\/ set new facebook button\n        'url' =&gt; 'HERE_URL_FOR_SHARE',\n        'name' =&gt; 'NAME_OF_SOCIAL', \/\/ yes in example will be facebook\n        'icon' =&gt; 'ICON_CSS_CLASSES_OF_SOCIAL' \/\/ this plugin uses socicon - see http:\/\/www.socicon.com\/ ex. socicon socicon-facebook\n        'color' =&gt; 'BACKGROUND_COLOR_OF_BUTTON'\n    );\n\n    return $buttons;\n\n}\n<\/code><\/pre><\/dd>\n<dt>I rewrite entire button, and now this button is at the end of buttons.<\/dt>\n<dd><p>Yes. You can avoid this problem, editing button for each value without unset button. Example:<\/p>\n\n<pre><code>add_filter( 'shal_buttons', 'my_callback_function' );\nfunction my_callback_function( $buttons, $post_id ) {\n\n    unset( $buttons['facebook']['url'] );\n    unset( $buttons['facebook']['name'] );\n    unset( $buttons['facebook']['icon'] );\n    unset( $buttons['facebook']['color'] );\n\n    if( !get_dadishal_options( 'enable_facebook' ) ) return $buttons; \/\/ remember to add this conditional tag for enable\/disabled new button\n\n    $buttons['facebook']['url'] = 'NEW_SHARE_URL';\n    $buttons['facebook']['name'] = 'NEW_NAME';\n    $buttons['facebook']['icon'] = 'NEW_ICON_CLASSES'\n    $buttons['facebook']['color'] = 'NEW_COLOR' \/\/ rembember: hex color\n\n    return $buttons;\n\n}\n<\/code><\/pre><\/dd>\n<dt>Can I edit certain array value of default button<\/dt>\n<dd><p>Yes. Simply you use shal_buttons filter and unset chosen element of the array. See example above.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"Displays share buttons in the posts, pages and custom posts type list","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/53431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=53431"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/davidemura"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=53431"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=53431"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=53431"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=53431"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=53431"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=53431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}