????
| Current Path : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/framework/ |
| Current File : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/framework/social-share.php |
<?php
/**
* Social sharing functions
*
* @package Wanderfuls WordPress Theme
* @subpackage Framework
*/
/**
* Returns social sharing template part
*
* @since 2.0.0
*/
function tb_social_share_sites() {
$defs = array( 'twitter', 'facebook', 'google_plus', 'pinterest' );
$sites = tb_get_mod( 'social_share_sites', $defs );
$sites = apply_filters( 'tb_social_share_sites', $sites );
if ( $sites && ! is_array( $sites ) ) {
$sites = explode( ',', $sites );
}
return $sites;
}
/**
* Returns correct social share position
*
* @since 2.0.0
*/
function tb_social_share_position() {
$position = tb_get_mod( 'social_share_position' );
$position = $position ? $position : 'horizontal';
return apply_filters( 'tb_social_share_position', $position );
}
/**
* Returns correct social share style
*
* @since 2.0.0
*/
function tb_social_share_style() {
$style = tb_get_mod( 'social_share_style' );
$style = $style ? $style : 'flat';
return apply_filters( 'tb_social_share_style', $style );
}
/**
* Returns the social share heading
*
* @since 2.0.0
*/
function tb_social_share_heading() {
$heading = tb_get_mod( 'social_share_heading' );
$heading = $heading ? tb_translate_theme_mod( 'social_share_heading', $heading ) : __( 'Please Share This', 'tb' );
return apply_filters( 'tb_social_share_heading', $heading );
}