=' ) ? html_entity_decode( $title, ENT_QUOTES, 'UTF-8' ) : html_entity_decode( $title ); if ( $fbid != null ) echo ''."\n"; if ( $fbappid != null ) echo ''."\n"; if ( $fbpageid != null ) echo ''."\n"; if ( $image != null ) echo ''."\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; if ( $description = trim( htmlspecialchars( $post->post_text ) ) ) echo '' . "\n"; foreach( array( 'longitude', 'latitude', 'street_address', 'locality', 'region', 'postal_code', 'country', 'email', 'phone_number', 'fax_number' ) as $k ) if ( $v = htmlspecialchars( trim( $fblike_plugopts[$k] ) ) ) echo '' . "\n"; } function fblike_footer() { global $fblike_plugopts; if( $fblike_plugopts['xfbml'] != true ) return; $appids = trim( $fblike_plugopts['facebook_app_id'] ); $appids = explode( ',', $appids ); if ( !count( $appids ) ) return; foreach( (array) $appids as $appid ) if( !is_numeric( $appid ) ) return; if( $fblike_plugopts['xfbml_async'] == true ) { echo "
"; } else { echo '
'; } } /** * Appends Like button under Topic title */ function fblike_button() { global $fblike_plugopts, $topic, $page; $purl = get_topic_link(); $button = "\n\n"; $showfaces = $fblike_plugopts['showfaces'] == true ? 'true' : 'false'; $url = urlencode( $purl ); $align = $fblike_plugopts['align']; $xfbml_font = ''; $url = $url . '&layout=' . $fblike_plugopts['layout'] . '&show_faces=' . $showfaces . '&width=' . $fblike_plugopts['width'] . '&action=' . $fblike_plugopts['verb'] . '&colorscheme=' . $fblike_plugopts['colorscheme'] ; if( $fblike_plugopts['font'] != '' ) { $url .= '&font=' . urlencode( $fblike_plugopts['font'] ); $xfbml_font = ' font="' . $fblike_plugopts['font'] . '"'; } $margin = $fblike_plugopts['margin_top'] . 'px ' . $fblike_plugopts['margin_right'] . 'px ' . $fblike_plugopts['margin_bottom'] . 'px ' . $fblike_plugopts['margin_left'] . 'px'; if( $fblike_plugopts['xfbml'] == true ) $button .= '
'; else $button .= ''; if( $align == 'right' ) $button = '
' . $button . '
'; $button .= "\n\n"; echo $button; } add_filter( 'bb_language_attributes', 'fblike_schema' ); add_action( 'under_title', 'fblike_button' ); add_action( 'bb_head', 'fblike_header_meta' ); add_action( 'bb_foot', 'fblike_footer' );