| 1 |
<?php |
| 2 |
do_action( 'betterdocs_docs_before_social' ); |
| 3 |
|
| 4 |
$mods = betterdocs()->customizer->defaults->generate_defaults(); |
| 5 |
|
| 6 |
if ( ! $mods['betterdocs_post_social_share'] ) { |
| 7 |
return; |
| 8 |
} |
| 9 |
|
| 10 |
$social_sharing_text = $mods['betterdocs_social_sharing_text']; |
| 11 |
$facebook_sharing = $mods['betterdocs_post_social_share_facebook']; |
| 12 |
$twitter_sharing = $mods['betterdocs_post_social_share_twitter']; |
| 13 |
$linkedin_sharing = $mods['betterdocs_post_social_share_linkedin']; |
| 14 |
$pinterest_sharing = $mods['betterdocs_post_social_share_pinterest']; |
| 15 |
|
| 16 |
$attributes = betterdocs()->template_helper->get_html_attributes( [ |
| 17 |
'title' => "{$social_sharing_text}", |
| 18 |
'facebook' => "{$facebook_sharing}", |
| 19 |
'twitter' => "{$twitter_sharing}", |
| 20 |
'linkedin' => "{$linkedin_sharing}", |
| 21 |
'pinterest' => "{$pinterest_sharing}" |
| 22 |
] ); |
| 23 |
|
| 24 |
echo do_shortcode( "[betterdocs_social_share " . $attributes . "]" ); |
| 25 |
|