| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/betterdocs/includes/Shortcodes/ |
Upload File : |
<?php
namespace WPDeveloper\BetterDocs\Shortcodes;
use WPDeveloper\BetterDocs\Core\Shortcode;
use WPDeveloper\BetterDocs\Traits\SocialShare as SocialShareTrait;
class SocialShare extends Shortcode {
use SocialShareTrait;
protected $deprecated_attributes = [
'facebook_sharing' => 'facebook',
'pinterest_sharing' => 'pinterest',
'twitter_sharing' => 'twitter',
'linkedin_sharing' => 'linkedin'
];
public function get_name() {
return 'betterdocs_social_share';
}
public function get_style_depends() {
return ['betterdocs-social-share'];
}
/**
* Summary of default_attributes
* @return array
*/
public function default_attributes() {
return [
'title' => __( 'Share This Article :', 'betterdocs' ),
'facebook' => '1',
'twitter' => '1',
'linkedin' => '1',
'pinterest' => '1'
];
}
public function render( $atts, $content = null ) {
$this->views( 'widgets/social' );
}
}