($appId) ? $appId : '560423450833390',
'href' => '',
'width' => '340',
'height' => '500',
'hide_cover' => 'false',
'show_facepile' => 'false',
'align' => 'initial',
'tabs' => 'timeline',
'small_header' => 'false',
'adapt_container_width' => 'true',
'select_lang' => ($select_lang) ? $select_lang : 'en_US'
), $atts );
$localVars = array('app_id' => $facebook_pagelike_atts['app_id'], 'select_lang' => $facebook_pagelike_atts['select_lang']);
wp_localize_script('fbtw-widgets', 'sdftvars', $localVars);
$output = '';
//Facebook Widget Starts
$output .= '
';
$output .= '';
return $output;
}
add_shortcode( 'facebook-pagelike', 'sdaftw_facebook_shortcode' );
/**
* Create the [twitter-timeline] shortcode.
* @since 1.2
* @param $atts array user_name, follow_button, data_show_count, data_show_screen_name, data_size, min_width, height, data_dnt, data_link_color
* @return string Outputs the Twitter timeline with follow button via shortcode.
* Basic Shortcode [twitter-timeline user_name="TwitterDev"]
* Custom Shortcode with follow button [twitter-timeline user_name="TwitterDev" min_width="340" height="500" follow_button="true" data_show_count="true" data_show_screen_name="true" data_size="large"]
* Custom Shortcode without follow button [twitter-timeline user_name="TwitterDev" min_width="340" height="500" follow_button="false" data_dnt="true" data_link_color="#365899"]
*/
function sdaftw_twitter_shortcode( $atts ) {
$twitter_atts = shortcode_atts( array(
'user_name' => '',
'follow_button' => 'true',
'data_show_count' => 'true',
'data_show_screen_name' => 'true',
'data_size' => '',
'min_width' => '340',
'height' => '500',
'data_dnt' => 'true',
'data_link_color' => '#0073aa'
), $atts );
$output = '';
//Twitter Widget Starts
$output .= '';
$output .= '';
return $output;
}
add_shortcode( 'twitter-timeline', 'sdaftw_twitter_shortcode' );