Astra_Ext_Blog_Pro_Markup::astra_social_sharing()
Social sharing.
Description
Source
File: addons/blog-pro/classes/class-astra-ext-blog-pro-markup.php
public function astra_social_sharing() {
$social_sharing_position = astra_get_option( 'single-post-social-sharing-icon-position' );
$is_social_sharing_enabled = astra_get_option( 'single-post-social-sharing-icon-enable' );
if ( $is_social_sharing_enabled ) {
if ( is_single() ) {
if ( 'below-post-title' === $social_sharing_position ) {
add_action( 'astra_single_post_banner_after', array( $this, 'astra_render_social_sharing' ) );
} else {
add_action( 'astra_entry_bottom', array( $this, 'astra_render_social_sharing' ) );
}
}
}
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |