• Resolved macfo

    (@macfo)


    Hi, how are you?

    for my site I changed a little the layout of the code

    if you find it cute, this is it

    // Facebook comments
    	if ( ( wppa_switch('wppa_facebook_comments') || wppa_switch('wppa_facebook_like') ) && ! $wppa['in_widget'] ) {
    		$width = $wppa['fullsize'] == 'auto' ? 'auto' : min('470', wppa_get_container_width(true));
    		if ( wppa_switch('wppa_facebook_like') ) {
    			$fbc = '<div align="left" class="fb-like" data-href="'.$share_url.'" data-width="600" data-show-faces="false" data-send="true"></div><br />';
    		}
    		if ( wppa_switch('wppa_facebook_comments') ) {
    			$fbc .= '<div align="left"><b style="color: #3366FF;font-size: 16px;">'.__a('Commenta su Facebook:').'</b></div><br />';
    			$fbc .= '<div class="fb-comments" data-href="'.$share_url.'" data-width=600></div>';
    		}
    		$fbc .= '[script>wppaFbInit();[/script>';
    	}
    	else $fbc = '';

    You can watch it here:

    http://www.italiaonroad.it/galleria-foto/?wppa-album=26&wppa-occur=1&wppa-photo=1584

    sorry but where you set the width?

    Bye bye

    http://ww.wp.xz.cn/plugins/wp-photo-album-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘My personal code for facebook comment’ is closed to new replies.