PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.2.6
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.2.6
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / views / templates / parts / social.php

social.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.2.6, at views/templates/parts/social.php

27 lines 950 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $mods = betterdocs()->customizer->defaults->generate_defaults();
3
4 if ( ! $mods['betterdocs_post_social_share'] ) {
5 return;
6 }
7
8 $social_sharing_text = $mods['betterdocs_social_sharing_text'];
9 $social_sharing_title_tag = $mods['betterdocs_social_share_title_tag'];
10 $facebook_sharing = $mods['betterdocs_post_social_share_facebook'];
11 $twitter_sharing = $mods['betterdocs_post_social_share_twitter'];
12 $linkedin_sharing = $mods['betterdocs_post_social_share_linkedin'];
13 $pinterest_sharing = $mods['betterdocs_post_social_share_pinterest'];
14
15 $attributes = betterdocs()->template_helper->get_html_attributes(
16 [
17 'title' => "{$social_sharing_text}",
18 'title_tag' => "{$social_sharing_title_tag}",
19 'facebook' => "{$facebook_sharing}",
20 'twitter' => "{$twitter_sharing}",
21 'linkedin' => "{$linkedin_sharing}",
22 'pinterest' => "{$pinterest_sharing}"
23 ]
24 );
25
26 echo do_shortcode( '[betterdocs_social_share ' . $attributes . ']' );
27